/* ShopAccount System Control Center v6 */
.system-suite-v6 {
    --sys-accent: #ff4f63;
    --sys-accent-strong: #e83d54;
    --sys-accent-soft: #fff0f2;
    --sys-ink: #172033;
    --sys-muted: #6f7b91;
    --sys-line: #e2e7ef;
    --sys-canvas: #f5f7fb;
    --sys-surface: #ffffff;
    --sys-navy: #172136;
    --sys-success: #168663;
    --sys-success-soft: #e8f8f1;
    --sys-warning: #b36a10;
    --sys-warning-soft: #fff5df;
    --sys-danger: #d83d52;
    --sys-danger-soft: #fff0f2;
    --sys-info: #3562d8;
    --sys-info-soft: #edf3ff;
    width: 100%;
    max-width: 1440px !important;
    margin: 0 auto;
    padding: 26px 28px 64px !important;
    color: var(--sys-ink);
}

.system-suite-v6 *,
.system-suite-v6 *::before,
.system-suite-v6 *::after {
    box-sizing: border-box;
}

.system-suite-v6 .ui-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

.system-page-head-v6 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.system-heading-v6 {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
}

.system-heading-icon-v6 {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: var(--sys-accent);
    background: var(--sys-accent-soft);
    border: 1px solid #ffcbd1;
    border-radius: 14px;
}

.system-heading-icon-v6 .ui-icon {
    width: 23px;
    height: 23px;
}

.system-heading-v6 h1 {
    margin: 0;
    color: var(--sys-ink);
    font-size: clamp(25px, 2.3vw, 34px);
    line-height: 1.13;
    letter-spacing: -.035em;
}

.system-heading-v6 p {
    margin: 6px 0 0;
    color: var(--sys-muted);
    font-size: 12px;
    line-height: 1.55;
}

.system-head-state-v6 {
    min-width: 205px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 14px;
    background: var(--sys-surface);
    border: 1px solid var(--sys-line);
    border-radius: 12px;
}

.system-head-state-v6 > i {
    width: 9px;
    height: 9px;
    background: var(--sys-muted);
    border-radius: 50%;
    box-shadow: 0 0 0 5px #f0f2f6;
}

.system-head-state-v6.is-healthy > i {
    background: var(--sys-success);
    box-shadow: 0 0 0 5px var(--sys-success-soft);
}

.system-head-state-v6.is-warning > i {
    background: var(--sys-warning);
    box-shadow: 0 0 0 5px var(--sys-warning-soft);
}

.system-head-state-v6 small,
.system-head-state-v6 b {
    display: block;
}

.system-head-state-v6 small {
    color: var(--sys-muted);
    font-size: 9px;
    font-weight: 750;
}

.system-head-state-v6 b {
    margin-top: 3px;
    color: var(--sys-ink);
    font-size: 11px;
}

.system-count-chip-v6 {
    min-width: 120px;
    padding: 10px 15px;
    text-align: right;
    background: var(--sys-surface);
    border: 1px solid var(--sys-line);
    border-radius: 11px;
}

.system-count-chip-v6 strong,
.system-count-chip-v6 span {
    display: block;
}

.system-count-chip-v6 strong {
    color: var(--sys-ink);
    font-size: 18px;
}

.system-count-chip-v6 span {
    margin-top: 2px;
    color: var(--sys-muted);
    font-size: 9px;
}

.system-head-stats-v6 {
    display: flex;
    overflow: hidden;
    background: var(--sys-surface);
    border: 1px solid var(--sys-line);
    border-radius: 12px;
}

.system-head-stats-v6 > span {
    min-width: 130px;
    padding: 10px 14px;
    border-left: 1px solid var(--sys-line);
}

.system-head-stats-v6 > span:first-child {
    border-left: 0;
}

.system-head-stats-v6 small,
.system-head-stats-v6 b {
    display: block;
}

.system-head-stats-v6 small {
    color: var(--sys-muted);
    font-size: 9px;
}

.system-head-stats-v6 b {
    margin-top: 4px;
    font-size: 14px;
}

.system-local-nav-v6 {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-bottom: 16px;
    overflow: hidden;
    background: var(--sys-surface);
    border: 1px solid var(--sys-line);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(33, 46, 73, .045);
}

.system-local-nav-v6 > a {
    position: relative;
    min-width: 0;
    min-height: 62px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 15px;
    color: #59657b;
    border-left: 1px solid var(--sys-line);
    text-decoration: none;
    transition: background .18s ease, color .18s ease;
}

.system-local-nav-v6 > a:first-child {
    border-left: 0;
}

.system-local-nav-v6 > a::after {
    content: '';
    position: absolute;
    right: 14px;
    bottom: 0;
    left: 14px;
    height: 2px;
    background: transparent;
    border-radius: 2px 2px 0 0;
}

.system-local-nav-v6 > a:hover {
    color: var(--sys-accent-strong);
    background: #fffafb;
}

.system-local-nav-v6 > a.active {
    color: var(--sys-accent-strong);
    background: var(--sys-accent-soft);
}

.system-local-nav-v6 > a.active::after {
    background: var(--sys-accent);
}

.system-local-nav-v6 > a > .ui-icon {
    color: var(--sys-accent);
}

.system-local-nav-v6 b,
.system-local-nav-v6 small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.system-local-nav-v6 b {
    font-size: 11px;
}

.system-local-nav-v6 small {
    margin-top: 3px;
    color: #8a94a7;
    font-size: 8px;
}

.system-card-v6 {
    background: var(--sys-surface);
    border: 1px solid var(--sys-line);
    border-radius: 15px;
    box-shadow: 0 12px 34px rgba(33, 46, 73, .055);
}

.system-card-head-v6 {
    min-height: 67px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 18px;
    border-bottom: 1px solid var(--sys-line);
}

.system-card-head-v6 > div:first-child {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}

.system-card-head-v6 > div:first-child > span {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: var(--sys-accent);
    background: var(--sys-accent-soft);
    border-radius: 10px;
}

.system-card-head-v6 h2 {
    margin: 0;
    color: var(--sys-ink);
    font-size: 14px;
    line-height: 1.25;
    letter-spacing: -.015em;
}

.system-card-head-v6 p {
    margin: 4px 0 0;
    color: var(--sys-muted);
    font-size: 9px;
    line-height: 1.45;
}

.system-status-v6 {
    width: max-content;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 25px;
    padding: 0 8px;
    color: #667085;
    background: #f1f3f7;
    border: 1px solid #e2e6ed;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 850;
    white-space: nowrap;
}

.system-status-v6.success {
    color: var(--sys-success);
    background: var(--sys-success-soft);
    border-color: #bde9d7;
}

.system-status-v6.warning {
    color: var(--sys-warning);
    background: var(--sys-warning-soft);
    border-color: #f1d59d;
}

.system-status-v6.danger {
    color: var(--sys-danger);
    background: var(--sys-danger-soft);
    border-color: #ffc8d0;
}

.system-status-v6.info {
    color: var(--sys-info);
    background: var(--sys-info-soft);
    border-color: #cad8ff;
}

.system-status-v6.neutral {
    color: #667085;
    background: #f1f3f7;
}

.system-kpis-v6 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 16px;
    overflow: hidden;
    background: var(--sys-surface);
    border: 1px solid var(--sys-line);
    border-radius: 15px;
    box-shadow: 0 10px 28px rgba(33, 46, 73, .045);
}

.system-kpis-v6 article {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 17px 18px;
    border-left: 1px solid var(--sys-line);
}

.system-kpis-v6 article:first-child {
    border-left: 0;
}

.system-kpis-v6 article > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--sys-accent);
    background: var(--sys-accent-soft);
    border-radius: 12px;
}

.system-kpis-v6 article.has-warning > span {
    color: var(--sys-warning);
    background: var(--sys-warning-soft);
}

.system-kpis-v6 small,
.system-kpis-v6 strong,
.system-kpis-v6 p {
    display: block;
}

.system-kpis-v6 small {
    color: var(--sys-muted);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.system-kpis-v6 strong {
    margin-top: 3px;
    color: var(--sys-ink);
    font-size: 22px;
    line-height: 1;
}

.system-kpis-v6 p {
    margin: 5px 0 0;
    overflow: hidden;
    color: #8a94a7;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.system-overview-grid-v6 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 355px;
    gap: 16px;
    align-items: start;
}

.system-diagnostic-list-v6 {
    padding: 0 18px;
}

.system-diagnostic-list-v6 > div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 34px 58px;
    gap: 11px;
    align-items: center;
    min-height: 57px;
    border-top: 1px solid #edf0f5;
}

.system-diagnostic-list-v6 > div:first-child {
    border-top: 0;
}

.system-diagnostic-icon-v6 {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    color: #68758b;
    background: #f3f5f8;
    border-radius: 9px;
}

.system-diagnostic-icon-v6 .ui-icon {
    width: 15px;
    height: 15px;
}

.system-diagnostic-list-v6 b,
.system-diagnostic-list-v6 small {
    display: block;
}

.system-diagnostic-list-v6 b {
    font-size: 10px;
}

.system-diagnostic-list-v6 small {
    margin-top: 3px;
    color: var(--sys-muted);
    font-size: 8px;
}

.system-diagnostic-list-v6 > div > strong {
    font-size: 15px;
    text-align: center;
}

.system-card-foot-v6 {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 18px;
    background: #fafbfe;
    border-top: 1px solid var(--sys-line);
    border-radius: 0 0 15px 15px;
}

.system-card-foot-v6 a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--sys-accent-strong);
    font-size: 9px;
    font-weight: 800;
    text-decoration: none;
}

.system-card-foot-v6 a span {
    transition: transform .18s ease;
}

.system-card-foot-v6 a:hover span {
    transform: translateX(3px);
}

.system-backup-card-v6 {
    padding: 25px;
    color: #fff;
    background: var(--sys-navy);
    border-color: var(--sys-navy);
}

.system-backup-icon-v6 {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--sys-accent);
    border-radius: 14px;
    box-shadow: 0 13px 30px rgba(255, 79, 99, .28);
}

.system-backup-card-v6 > small {
    display: block;
    margin-top: 24px;
    color: #9fabc0;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.system-backup-card-v6 h2 {
    margin: 7px 0 9px;
    color: #fff;
    font-size: 23px;
    letter-spacing: -.03em;
}

.system-backup-card-v6 > p {
    margin: 0 0 20px;
    color: #bcc5d5;
    font-size: 10px;
    line-height: 1.7;
}

.system-primary-button-v6,
.system-secondary-button-v6,
.system-text-button-v6,
.system-icon-button-v6 {
    font-family: Manrope, sans-serif;
    cursor: pointer;
}

.system-primary-button-v6 {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    color: #fff;
    background: var(--sys-accent);
    border: 1px solid var(--sys-accent);
    border-radius: 9px;
    box-shadow: 0 8px 20px rgba(255, 79, 99, .18);
    font-size: 10px;
    font-weight: 850;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.system-primary-button-v6:hover {
    color: #fff;
    background: var(--sys-accent-strong);
    border-color: var(--sys-accent-strong);
    transform: translateY(-1px);
}

.system-primary-button-v6.danger {
    background: var(--sys-danger);
    border-color: var(--sys-danger);
}

.system-secondary-button-v6 {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    color: #566278;
    background: #fff;
    border: 1px solid var(--sys-line);
    border-radius: 9px;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}

.system-warning-v6 {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    margin-top: 18px;
    padding: 13px;
    color: #efd9ad;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 11px;
}

.system-warning-v6 > .ui-icon {
    width: 16px;
    height: 16px;
    margin-top: 1px;
}

.system-warning-v6 b,
.system-warning-v6 span {
    display: block;
}

.system-warning-v6 b {
    color: #fff;
    font-size: 9px;
}

.system-warning-v6 span {
    margin-top: 4px;
    color: #acb6c9;
    font-size: 8px;
    line-height: 1.55;
}

.system-warning-v6.compact {
    margin: 14px 16px 0;
    color: var(--sys-warning);
    background: var(--sys-warning-soft);
    border-color: #f1d59d;
}

.system-warning-v6.compact b {
    color: #835116;
}

.system-warning-v6.compact span {
    color: #916d3d;
}

.system-notice-v6 {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    margin-bottom: 14px;
    padding: 10px 13px;
    border: 1px solid var(--sys-line);
    border-radius: 11px;
    font-size: 10px;
    font-weight: 750;
}

.system-notice-v6.success {
    color: var(--sys-success);
    background: var(--sys-success-soft);
    border-color: #bde9d7;
}

.system-notice-v6.danger {
    color: var(--sys-danger);
    background: var(--sys-danger-soft);
    border-color: #ffc8d0;
}

/* Table system */
.system-table-card-v6 {
    overflow: hidden;
}

.system-table-toolbar-v6 output {
    color: var(--sys-muted);
    font-size: 9px;
    font-weight: 800;
}

.system-filter-bar-v6 {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 190px 170px;
    gap: 9px;
    padding: 12px 16px;
    background: #fafbfe;
    border-bottom: 1px solid var(--sys-line);
}

.system-filter-bar-v6 > label:not(.system-search-field-v6) {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 8px 0 11px;
    color: var(--sys-muted);
    background: #fff;
    border: 1px solid var(--sys-line);
    border-radius: 9px;
    font-size: 8px;
    font-weight: 750;
}

.admin-surface .system-suite-v6 .system-filter-bar-v6 select {
    width: 100%;
    min-width: 0;
    height: 34px;
    padding: 0 5px;
    color: var(--sys-ink);
    background: transparent;
    border: 0;
    outline: 0;
    font: 700 9px/1 Manrope, sans-serif;
}

.system-search-field-v6 {
    min-width: 0;
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 11px;
    background: #fff;
    border: 1px solid var(--sys-line);
    border-radius: 9px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.system-search-field-v6:focus-within {
    border-color: var(--sys-accent);
    box-shadow: 0 0 0 3px rgba(255, 79, 99, .1);
}

.system-search-field-v6 .ui-icon {
    color: #8792a6;
}

.admin-surface .system-suite-v6 .system-search-field-v6 input {
    width: 100%;
    min-width: 0;
    height: 36px;
    padding: 0 !important;
    color: var(--sys-ink);
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: 0;
    font: 600 9px/1.4 Manrope, sans-serif;
}

.system-search-field-v6.compact {
    width: min(300px, 42vw);
}

.system-table-scroll-v6 {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    overscroll-behavior-x: contain;
}

.system-table-v6 {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.system-table-v6 th {
    height: 38px;
    padding: 0 13px;
    color: #7b879c;
    background: #f8f9fc;
    border-bottom: 1px solid var(--sys-line);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .055em;
    text-align: left;
    text-transform: uppercase;
}

.system-table-v6 td {
    min-height: 54px;
    padding: 11px 13px;
    color: #465166;
    border-bottom: 1px solid #edf0f5;
    font-size: 9px;
    line-height: 1.45;
    vertical-align: middle;
    overflow-wrap: anywhere;
}

.system-table-v6 tbody tr:last-child td {
    border-bottom: 0;
}

.system-table-v6 tbody tr:hover:not([data-log-empty]):not([data-queue-empty]) td {
    background: #fffafb;
}

.system-table-v6 td b,
.system-table-v6 td small,
.system-table-v6 time small {
    display: block;
}

.system-table-v6 td b {
    color: var(--sys-ink);
    font-size: 9px;
}

.system-table-v6 td small,
.system-table-v6 time small {
    margin-top: 3px;
    color: #929caf;
    font-size: 7px;
}

.system-table-v6 code {
    color: #4f5c72;
    font: 700 8px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.system-table-v6 tr[hidden] {
    display: none !important;
}

.system-audit-table-v6 {
    min-width: 1040px;
}

.system-audit-table-v6 th:nth-child(1) { width: 115px; }
.system-audit-table-v6 th:nth-child(2) { width: 145px; }
.system-audit-table-v6 th:nth-child(3) { width: 105px; }
.system-audit-table-v6 th:nth-child(4) { width: 165px; }
.system-audit-table-v6 th:nth-child(6) { width: 105px; }

.system-actor-v6 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.system-actor-v6 i {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    color: var(--sys-accent-strong);
    background: var(--sys-accent-soft);
    border-radius: 8px;
    font-size: 9px;
    font-style: normal;
    font-weight: 850;
}

.system-action-v6 {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    padding: 0 8px;
    color: #5f6b80;
    background: #f1f3f7;
    border-radius: 7px;
    font-size: 8px;
    font-weight: 850;
}

.system-action-v6.success { color: var(--sys-success); background: var(--sys-success-soft); }
.system-action-v6.danger { color: var(--sys-danger); background: var(--sys-danger-soft); }
.system-action-v6.info { color: var(--sys-info); background: var(--sys-info-soft); }

.system-detail-cell-v6 {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 8px !important;
}

.system-empty-inline-v6 {
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    color: var(--sys-muted);
}

.system-empty-inline-v6 > .ui-icon {
    width: 25px;
    height: 25px;
    color: var(--sys-accent);
}

.system-empty-inline-v6 b,
.system-empty-inline-v6 small {
    display: block;
}

.system-empty-inline-v6 b {
    color: var(--sys-ink);
    font-size: 10px;
}

.system-empty-inline-v6 small {
    margin-top: 4px;
    font-size: 8px;
}

.system-suite-v6 .table-pager {
    min-height: 53px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 15px;
    align-items: center;
    padding: 9px 14px;
    background: #fafbfe;
    border-top: 1px solid var(--sys-line);
    font-size: 8px;
}

.system-suite-v6 .table-page-size-form label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--sys-muted);
    font-size: 8px;
}

.admin-surface .system-suite-v6 .table-page-size-form select {
    height: 33px;
    min-width: 66px;
    padding: 0 8px;
    background: #fff;
    border: 1px solid var(--sys-line);
    border-radius: 8px;
    font: 750 9px Manrope, sans-serif;
}

.system-suite-v6 .table-pager-summary {
    color: var(--sys-muted);
    font-size: 8px;
}

.system-suite-v6 .table-pager nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.system-suite-v6 .table-pager nav a,
.system-suite-v6 .table-pager nav span,
.system-suite-v6 .table-pager nav strong {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    color: #59657a;
    background: #fff;
    border: 1px solid var(--sys-line);
    border-radius: 8px;
    font-size: 8px;
    text-decoration: none;
}

.system-suite-v6 .table-pager nav span.disabled {
    color: #a5adbb;
    background: #f5f6f8;
}

/* Queue workspace */
.system-channel-tabs-v6 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.system-channel-tabs-v6 a {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 13px;
    color: #59657a;
    background: var(--sys-surface);
    border: 1px solid var(--sys-line);
    border-radius: 11px;
    text-decoration: none;
}

.system-channel-tabs-v6 a > span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 9px;
    font-weight: 800;
}

.system-channel-tabs-v6 a b {
    min-width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    color: #7a8599;
    background: #f2f4f7;
    border-radius: 7px;
    font-size: 8px;
}

.system-channel-tabs-v6 a.active {
    color: var(--sys-accent-strong);
    background: var(--sys-accent-soft);
    border-color: #ffc4cc;
}

.system-channel-tabs-v6 a.active b {
    color: #fff;
    background: var(--sys-accent);
}

.queue-workspace-v6 {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.system-compose-v6 {
    overflow: hidden;
}

.system-form-body-v6,
.system-editor-grid-v6 {
    display: grid;
    gap: 11px;
}

.system-form-body-v6 {
    padding: 15px 16px;
}

.system-form-body-v6 label,
.system-editor-grid-v6 label {
    display: block;
    color: #536078;
    font-size: 8px;
    font-weight: 800;
}

.system-form-body-v6 label > span:first-child,
.system-editor-grid-v6 label > span:first-child {
    display: block;
    margin-bottom: 6px;
}

.system-form-body-v6 label i,
.system-editor-grid-v6 label i {
    color: var(--sys-accent);
    font-style: normal;
}

.admin-surface .system-suite-v6 .system-form-body-v6 input,
.admin-surface .system-suite-v6 .system-form-body-v6 textarea,
.admin-surface .system-suite-v6 .system-editor-grid-v6 input,
.admin-surface .system-suite-v6 .system-editor-grid-v6 select,
.admin-surface .system-suite-v6 .system-editor-grid-v6 textarea {
    width: 100%;
    min-height: 39px;
    display: block;
    margin: 0;
    padding: 9px 11px;
    color: var(--sys-ink);
    background: #fff;
    border: 1px solid #dce2eb;
    border-radius: 9px;
    box-shadow: none;
    outline: 0;
    font: 600 9px/1.45 Manrope, sans-serif;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.admin-surface .system-suite-v6 .system-form-body-v6 textarea,
.admin-surface .system-suite-v6 .system-editor-grid-v6 textarea {
    resize: vertical;
}

.admin-surface .system-suite-v6 .system-form-body-v6 input:focus,
.admin-surface .system-suite-v6 .system-form-body-v6 textarea:focus,
.admin-surface .system-suite-v6 .system-editor-grid-v6 input:focus,
.admin-surface .system-suite-v6 .system-editor-grid-v6 select:focus,
.admin-surface .system-suite-v6 .system-editor-grid-v6 textarea:focus {
    border-color: var(--sys-accent);
    box-shadow: 0 0 0 3px rgba(255, 79, 99, .1);
}

.system-form-body-v6 label > small,
.system-editor-grid-v6 label > small {
    display: block;
    margin-top: 5px;
    color: #8a94a7;
    font-size: 7px;
    font-weight: 600;
    line-height: 1.45;
}

.system-form-actions-v6,
.system-inline-editor-v6 > footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: #fafbfe;
    border-top: 1px solid var(--sys-line);
}

.system-form-actions-v6 > small,
.system-inline-editor-v6 > footer > small {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--sys-muted);
    font-size: 7px;
}

.system-form-actions-v6 > small .ui-icon,
.system-inline-editor-v6 > footer > small .ui-icon {
    width: 14px;
    height: 14px;
    color: var(--sys-success);
}

.queue-table-card-v6 {
    min-width: 0;
}

.system-queue-table-v6 {
    min-width: 880px;
}

.system-queue-table-v6 th:nth-child(1) { width: 135px; }
.system-queue-table-v6 th:nth-child(2) { width: 90px; }
.system-queue-table-v6 th:nth-child(4) { width: 120px; }
.system-queue-table-v6 th:nth-child(5) { width: 65px; }
.system-queue-table-v6 th:nth-child(6) { width: 85px; }
.system-queue-table-v6 th:nth-child(7) { width: 80px; }

.system-channel-v6,
.system-interval-v6 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #536078;
    font-weight: 750;
}

.system-channel-v6 .ui-icon,
.system-interval-v6 .ui-icon {
    width: 13px;
    height: 13px;
    color: var(--sys-accent);
}

.system-error-text-v6 {
    max-width: 150px;
    color: var(--sys-danger) !important;
}

.system-row-actions-v6 {
    display: flex;
    align-items: center;
    gap: 5px;
}

.system-row-actions-v6 form,
.system-table-v6 form {
    margin: 0;
}

.system-icon-button-v6 {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: var(--sys-info);
    background: #fff;
    border: 1px solid var(--sys-line);
    border-radius: 8px;
}

.system-icon-button-v6 .ui-icon {
    width: 14px;
    height: 14px;
}

.system-icon-button-v6.danger {
    color: var(--sys-danger);
    background: var(--sys-danger-soft);
    border-color: #ffcbd2;
}

/* Operations */
.operations-grid-v6 {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(370px, .8fr);
    gap: 14px;
    align-items: start;
}

.operations-task-card-v6,
.operations-ip-card-v6 {
    overflow: hidden;
}

.system-task-table-v6 {
    min-width: 600px;
}

.system-task-table-v6 th:nth-child(1) { width: 32%; }
.system-task-table-v6 th:nth-child(2) { width: 100px; }
.system-task-table-v6 th:nth-child(3) { width: 145px; }
.system-task-table-v6 th:nth-child(4) { width: 90px; }
.system-task-table-v6 th:nth-child(5) { width: 85px; }

.system-ip-table-v6 {
    min-width: 360px;
}

.system-ip-table-v6 th:nth-child(1) { width: 125px; }
.system-ip-table-v6 th:nth-child(3) { width: 70px; }

.system-text-button-v6 {
    min-height: 30px;
    padding: 0 9px;
    color: var(--sys-info);
    background: var(--sys-info-soft);
    border: 1px solid #cad8ff;
    border-radius: 7px;
    font-size: 8px;
    font-weight: 850;
}

.system-text-button-v6.danger {
    color: var(--sys-danger);
    background: var(--sys-danger-soft);
    border-color: #ffc8d0;
}

.system-inline-editor-v6 {
    border-top: 1px solid var(--sys-line);
}

.system-inline-editor-v6 > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 16px 4px;
}

.system-inline-editor-v6 > header h3 {
    margin: 0;
    font-size: 12px;
}

.system-inline-editor-v6 > header p {
    margin: 4px 0 0;
    color: var(--sys-muted);
    font-size: 8px;
}

.system-inline-editor-v6 > header > span {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    color: var(--sys-accent);
    background: var(--sys-accent-soft);
    border-radius: 9px;
}

.system-editor-grid-v6 {
    grid-template-columns: 1fr 1fr;
    padding: 13px 16px 16px;
}

.system-editor-grid-v6 .span-2 {
    grid-column: 1 / -1;
}

.system-editor-grid-v6.one-column {
    grid-template-columns: 1fr;
}

.system-input-suffix-v6 {
    display: flex;
    align-items: stretch;
}

.admin-surface .system-suite-v6 .system-input-suffix-v6 input {
    border-radius: 9px 0 0 9px;
}

.system-input-suffix-v6 b {
    min-width: 50px;
    display: grid;
    place-items: center;
    color: var(--sys-muted);
    background: #f5f7fa;
    border: 1px solid #dce2eb;
    border-left: 0;
    border-radius: 0 9px 9px 0;
    font-size: 8px;
}

/* Settings */
.settings-anchor-nav-v6 {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    padding: 7px;
    overflow-x: auto;
    background: var(--sys-surface);
    border: 1px solid var(--sys-line);
    border-radius: 12px;
    scrollbar-width: thin;
}

.settings-anchor-nav-v6 a {
    flex: 0 0 auto;
    min-height: 35px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 11px;
    color: #5f6b80;
    border-radius: 8px;
    font-size: 8px;
    font-weight: 800;
    text-decoration: none;
}

.settings-anchor-nav-v6 a:hover {
    color: var(--sys-accent-strong);
    background: var(--sys-accent-soft);
}

.settings-anchor-nav-v6 .ui-icon {
    width: 14px;
    height: 14px;
}

.settings-layout-v6 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 14px;
    align-items: start;
}

.settings-main-v6,
.settings-side-v6 {
    display: grid;
    gap: 14px;
}

.settings-card-v6 {
    overflow: hidden;
    scroll-margin-top: 90px;
}

.settings-fields-v6 {
    padding-top: 16px;
}

.system-input-icon-v6 {
    position: relative;
}

.system-input-icon-v6 > .ui-icon {
    position: absolute;
    z-index: 1;
    top: 12px;
    left: 11px;
    width: 14px;
    height: 14px;
    color: #8c96a8;
}

.admin-surface .system-suite-v6 .system-input-icon-v6 input {
    padding-left: 34px !important;
}

.settings-module-grid-v6 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.system-rule-list-v6 {
    padding: 0 16px 10px;
}

.system-rule-list-v6 > div {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid #edf0f5;
}

.system-rule-list-v6 > div:first-child {
    border-top: 0;
}

.system-rule-list-v6 b,
.system-rule-list-v6 small {
    display: block;
}

.system-rule-list-v6 b {
    font-size: 9px;
}

.system-rule-list-v6 small {
    margin-top: 4px;
    color: var(--sys-muted);
    font-size: 8px;
}

.maintenance-card-v6 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 17px 18px;
    border-color: #efdae0;
}

.maintenance-card-v6 > div:first-child {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.maintenance-icon-v6 {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: var(--sys-accent);
    background: var(--sys-accent-soft);
    border-radius: 11px;
}

.maintenance-card-v6 h2 {
    margin: 0;
    font-size: 13px;
}

.maintenance-card-v6 p {
    margin: 4px 0 0;
    color: var(--sys-muted);
    font-size: 8px;
}

.system-switch-v6 {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.system-switch-v6 > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.system-switch-v6 > span {
    position: relative;
    width: 42px;
    height: 23px;
    flex: 0 0 auto;
    background: #d6dbe4;
    border-radius: 999px;
    transition: background .18s ease;
}

.system-switch-v6 > span::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 17px;
    height: 17px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(31, 42, 64, .18);
    transition: transform .18s ease;
}

.system-switch-v6 > input:checked + span {
    background: var(--sys-accent);
}

.system-switch-v6 > input:checked + span::after {
    transform: translateX(19px);
}

.system-switch-v6 > input:focus-visible + span {
    outline: 3px solid rgba(255, 79, 99, .22);
    outline-offset: 3px;
}

.system-switch-v6 b,
.system-switch-v6 small,
.system-switch-v6 em {
    display: block;
}

.system-switch-v6 em {
    color: var(--sys-ink);
    font-size: 9px;
    font-style: normal;
}

.system-switch-v6 small {
    margin-top: 3px;
    color: var(--sys-muted);
    font-size: 7px;
}

.settings-side-v6 {
    position: sticky;
    top: 84px;
}

.settings-impact-v6,
.environment-card-v6 {
    overflow: hidden;
}

.settings-impact-v6 ul {
    margin: 0;
    padding: 4px 17px 13px;
    list-style: none;
}

.settings-impact-v6 li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid #edf0f5;
}

.settings-impact-v6 li:first-child {
    border-top: 0;
}

.settings-impact-v6 li > .ui-icon {
    width: 15px;
    height: 15px;
    color: var(--sys-accent);
}

.settings-impact-v6 li b,
.settings-impact-v6 li small {
    display: block;
}

.settings-impact-v6 li b {
    font-size: 9px;
}

.settings-impact-v6 li small {
    margin-top: 4px;
    color: var(--sys-muted);
    font-size: 8px;
    line-height: 1.5;
}

.environment-card-v6 dl {
    margin: 0;
    padding: 3px 16px 10px;
}

.environment-card-v6 dl > div {
    min-height: 47px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid #edf0f5;
}

.environment-card-v6 dl > div:first-child {
    border-top: 0;
}

.environment-card-v6 dt {
    color: var(--sys-muted);
    font-size: 9px;
}

.environment-card-v6 dd {
    margin: 0;
    color: var(--sys-ink);
    font-size: 10px;
    font-weight: 850;
}

.environment-card-v6 > a {
    min-height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--sys-accent-strong);
    background: #fafbfe;
    border-top: 1px solid var(--sys-line);
    font-size: 9px;
    font-weight: 850;
    text-decoration: none;
}

.system-savebar-v6 {
    position: sticky;
    z-index: 20;
    bottom: 10px;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
    padding: 9px 11px 9px 15px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid var(--sys-line);
    border-radius: 13px;
    box-shadow: 0 16px 38px rgba(33, 46, 73, .12);
    backdrop-filter: blur(10px);
}

.system-savebar-v6 > span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--sys-muted);
    font-size: 8px;
}

.system-savebar-v6 > span .ui-icon {
    color: var(--sys-success);
}

.system-savebar-v6 > div {
    display: flex;
    gap: 8px;
}

.system-suite-v6 .validation {
    color: var(--sys-danger);
    font-size: 8px;
}

.system-suite-v6 > .validation {
    margin-bottom: 12px;
    padding: 10px 12px;
    background: var(--sys-danger-soft);
    border: 1px solid #ffc8d0;
    border-radius: 9px;
}

.system-suite-v6 a:focus-visible,
.system-suite-v6 button:focus-visible,
.system-suite-v6 input:focus-visible,
.system-suite-v6 select:focus-visible,
.system-suite-v6 textarea:focus-visible {
    outline: 3px solid rgba(255, 79, 99, .24);
    outline-offset: 2px;
}

@media (max-width: 1500px) {
    .queue-workspace-v6 {
        grid-template-columns: 1fr;
    }

    .system-compose-v6 {
        display: grid;
        grid-template-columns: 1fr;
    }

    .system-compose-v6 > .system-card-head-v6,
    .system-compose-v6 > .validation,
    .system-compose-v6 > .system-form-actions-v6,
    .system-compose-v6 > .system-form-body-v6 {
        grid-column: 1 / -1;
    }

    .system-compose-v6 .system-form-body-v6 {
        grid-template-columns: 1fr 1fr 1.35fr;
    }
}

@media (max-width: 1250px) {
    .system-overview-grid-v6,
    .settings-layout-v6 {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

    .queue-workspace-v6,
    .operations-grid-v6 {
        grid-template-columns: 1fr;
    }

    .system-compose-v6 {
        display: grid;
        grid-template-columns: 290px minmax(0, 1fr);
    }

    .system-compose-v6 > .system-card-head-v6,
    .system-compose-v6 > .validation,
    .system-compose-v6 > .system-form-actions-v6 {
        grid-column: 1 / -1;
    }

    .system-form-body-v6 {
        grid-template-columns: 1fr 1fr 1.4fr;
        grid-column: 1 / -1;
    }
}

@media (max-width: 1020px) {
    .system-overview-grid-v6,
    .settings-layout-v6 {
        grid-template-columns: 1fr;
    }

    .settings-side-v6 {
        position: static;
        grid-template-columns: 1fr 1fr;
    }

    .system-local-nav-v6 b {
        font-size: 9px;
    }

    .system-local-nav-v6 small {
        display: none;
    }
}

@media (max-width: 760px) {
    .system-suite-v6 {
        padding: 18px 14px 48px !important;
    }

    .system-page-head-v6 {
        align-items: flex-start;
        flex-direction: column;
    }

    .system-heading-icon-v6 {
        width: 42px;
        height: 42px;
    }

    .system-head-state-v6,
    .system-count-chip-v6,
    .system-head-stats-v6 {
        width: 100%;
    }

    .system-count-chip-v6 {
        text-align: left;
    }

    .system-head-stats-v6 > span {
        flex: 1;
    }

    .system-local-nav-v6 {
        display: flex;
        overflow-x: auto;
        border-radius: 11px;
        scrollbar-width: thin;
    }

    .system-local-nav-v6 > a {
        min-width: 132px;
        border-left: 1px solid var(--sys-line);
    }

    .system-local-nav-v6 > a:first-child {
        border-left: 0;
    }

    .system-kpis-v6 {
        grid-template-columns: 1fr 1fr;
    }

    .system-kpis-v6 article:nth-child(3) {
        border-left: 0;
        border-top: 1px solid var(--sys-line);
    }

    .system-kpis-v6 article:nth-child(4) {
        border-top: 1px solid var(--sys-line);
    }

    .system-filter-bar-v6,
    .system-form-body-v6,
    .settings-module-grid-v6,
    .settings-side-v6 {
        grid-template-columns: 1fr;
    }

    .system-search-field-v6.compact {
        width: 100%;
    }

    .system-table-toolbar-v6 {
        align-items: flex-start;
        flex-direction: column;
    }

    .system-suite-v6 .table-pager {
        grid-template-columns: 1fr;
    }

    .system-suite-v6 .table-pager nav {
        justify-content: flex-start;
    }

    .system-channel-tabs-v6 {
        display: flex;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .system-channel-tabs-v6 a {
        min-width: 130px;
        flex: 0 0 auto;
    }

    .system-compose-v6 {
        display: block;
    }

    .system-compose-v6 .system-form-body-v6 {
        display: grid;
        grid-template-columns: 1fr;
    }

    .system-editor-grid-v6 {
        grid-template-columns: 1fr;
    }

    .system-editor-grid-v6 .span-2 {
        grid-column: auto;
    }

    .maintenance-card-v6,
    .system-savebar-v6 {
        align-items: flex-start;
        flex-direction: column;
    }

    .system-savebar-v6 {
        position: static;
    }

    .system-savebar-v6 > div,
    .system-savebar-v6 > div > * {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .system-kpis-v6 p {
        display: none;
    }

    .system-heading-v6 {
        align-items: flex-start;
    }

    .system-heading-v6 h1 {
        font-size: 25px;
    }

    .system-heading-v6 p {
        font-size: 10px;
    }

    .system-diagnostic-list-v6 > div {
        grid-template-columns: auto minmax(0, 1fr) auto;
        padding: 9px 0;
    }

    .system-diagnostic-list-v6 > div > .system-status-v6 {
        grid-column: 2 / -1;
    }

    .system-card-foot-v6,
    .system-form-actions-v6,
    .system-inline-editor-v6 > footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .system-form-actions-v6 > button,
    .system-inline-editor-v6 > footer > button {
        width: 100%;
    }

    .settings-anchor-nav-v6 {
        margin-inline: -2px;
    }

    .system-switch-v6 {
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .system-suite-v6 *,
    .system-suite-v6 *::before,
    .system-suite-v6 *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

html[data-color-scheme="dark"] .system-suite-v6 {
    --sys-ink: #f3f6fb;
    --sys-muted: #aab4c7;
    --sys-line: #30394d;
    --sys-canvas: #111827;
    --sys-surface: #182134;
    --sys-navy: #0b1120;
}

html[data-color-scheme="dark"] .system-suite-v6 .system-table-v6 th,
html[data-color-scheme="dark"] .system-suite-v6 .system-filter-bar-v6,
html[data-color-scheme="dark"] .system-suite-v6 .system-card-foot-v6,
html[data-color-scheme="dark"] .system-suite-v6 .system-form-actions-v6,
html[data-color-scheme="dark"] .system-suite-v6 .system-inline-editor-v6 > footer,
html[data-color-scheme="dark"] .system-suite-v6 .table-pager,
html[data-color-scheme="dark"] .system-suite-v6 .environment-card-v6 > a {
    background: #131c2d;
}
