@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --sidebar-width: 260px;
    --app-bg: #f4f7fb;
    --surface: #ffffff;
    --surface-soft: #f5f8fc;
    --border: #dde4ee;
    --text: #172338;
    --muted: #73829a;
    --sidebar: #176433;
    --sidebar-strong: #0e4f27;
    --sidebar-text: #f5fff7;
    --sidebar-muted: rgba(255, 255, 255, 0.68);
    --green: #1fb35d;
    --green-strong: #16914a;
    --green-soft: #e8f9ef;
    --yellow: #ffcf2d;
    --yellow-soft: #fff6cf;
    --blue: #4d88ff;
    --blue-soft: #edf4ff;
    --red: #ff6b6b;
    --red-soft: #fff0f0;
    --shadow: 0 14px 32px rgba(26, 43, 74, 0.08);
    --top-accent: #0f6a67;
}

html[data-theme="dark"] {
    --app-bg: #08131d;
    --surface: #0f1a27;
    --surface-soft: #111f2f;
    --border: #223246;
    --text: #ecf3ff;
    --muted: #8ea2bc;
    --sidebar: #0a2216;
    --sidebar-strong: #07180f;
    --sidebar-text: #effcf2;
    --sidebar-muted: rgba(239, 252, 242, 0.62);
    --green: #29c56f;
    --green-strong: #46d889;
    --green-soft: rgba(41, 197, 111, 0.14);
    --yellow-soft: rgba(255, 207, 45, 0.16);
    --blue-soft: rgba(77, 136, 255, 0.16);
    --red-soft: rgba(255, 107, 107, 0.16);
    --shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
    --top-accent: #0b5f5d;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
    font-family: "Outfit", "Segoe UI", sans-serif;
    background: var(--app-bg);
    color: var(--text);
    overflow: hidden;
    border-top: 6px solid var(--top-accent);
    transition: background 0.2s ease, color 0.2s ease;
}
body.is-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
p { margin: 0; line-height: 1.5; }
h1, h2, h3 { margin: 0; }
small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }

.mobile-nav-backdrop[hidden],
.modal-backdrop[hidden],
.profile-dropdown[hidden] {
    display: none !important;
}

.mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 25, 15, 0.34);
    z-index: 50;
}

.admin-shell {
    height: 100vh;
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
}

.sidebar {
    height: 100vh;
    background: linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-strong) 100%);
    color: var(--sidebar-text);
    padding: 16px 8px 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;           /* outer wrapper never scrolls */
    border-right: 1px solid rgba(255,255,255,0.08);
}

/* Scrollable nav body — sits between the brand and any pinned footer */
.sidebar-nav {
    flex: 1 1 0;                /* grow to fill available space */
    min-height: 0;              /* critical: allows flex child to shrink below content height */
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 14px 0 20px;
    /* thin custom scrollbar so it looks intentional, not broken */
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.18) transparent;
}
.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}
.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.18);
    border-radius: 4px;
}

.brand-block {
    flex-shrink: 0;             /* never shrink the brand into the scroll area */
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #1ac05c;
    color: #fff;
    font-weight: 800;
}

.brand-title {
    font-size: 15px;
    font-weight: 800;
}

.brand-subtitle {
    margin-top: 2px;
    color: var(--sidebar-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
    font-weight: 700;
}

.sidebar-collapse {
    margin-left: auto;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.12);
    color: #fff;
    cursor: pointer;
}

.sidebar-user-card {
    margin: 6px 0 12px;
    padding: 14px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: var(--yellow);
    color: #1b3f24;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 800;
}

.sidebar-user-meta {
    flex: 1;
    min-width: 0;
}

.sidebar-user-meta strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-meta span {
    display: block;
    color: #ffd84f;
    font-size: 12px;
    font-weight: 800;
    margin-top: 4px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #42e37f;
    box-shadow: 0 0 0 5px rgba(66, 227, 127, 0.14);
}

.nav-group {
    display: grid;
    gap: 6px;
}

.nav-label {
    padding: 6px 14px;
    color: var(--sidebar-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 11px;
    font-weight: 800;
}

.nav-group a {
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 12px;
    color: rgba(255,255,255,0.88);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.nav-group a:hover {
    background: rgba(255,255,255,0.08);
}

.nav-group a.active {
    background: var(--yellow);
    color: #183624;
    box-shadow: 0 10px 18px rgba(255, 207, 45, 0.22);
}

.nav-icon {
    width: 18px;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
}

/* nav badge — alert/unread count pill on sidebar items */
.nav-badge {
    margin-left: auto;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    letter-spacing: 0;
}
.nav-group a.active .nav-badge {
    background: #183624;
    color: var(--yellow);
}

.sidebar-logout {
    margin-top: auto;
    padding: 8px 8px 0;
}

.sidebar-logout-btn {
    width: 100%;
    border: none;
    background: transparent;
    color: #ff856f;
    text-align: left;
    padding: 10px 12px;
    font-weight: 700;
    cursor: pointer;
}

.main-panel {
    height: 100vh;
    overflow: auto;
    padding: 0 0 28px;
}

.content-shell {
    padding: 18px 18px 72px;
}

.navbar-shell {
    position: sticky;
    top: 0;
    z-index: 30;
    padding: 0;
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 26px rgba(26, 43, 74, 0.08);
    backdrop-filter: blur(14px);
}

.navbar {
    z-index: 30;
    min-height: 78px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 12px 18px;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.navbar-left,
.navbar-center,
.navbar-right,
.hero-stats,
.panel-head,
.row-between,
.modal-actions,
.split-fields {
    display: flex;
    gap: 12px;
    align-items: center;
}

.navbar-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
}

.breadcrumb-brand {
    color: var(--green-strong);
}

.breadcrumb-sep {
    color: #a0adbf;
}

.navbar-center {
    justify-content: center;
}

.navbar-right {
    justify-content: flex-end;
}

.navbar-right {
    gap: 10px;
}

.navbar-pill {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.navbar-pill-muted {
    background: #f4f6fb;
    color: #64748b;
}

.navbar-pill-live {
    background: var(--green-soft);
    color: var(--green-strong);
    border: 1px solid #c9efd7;
}

.pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
}

.navbar-action {
    min-height: 42px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.76);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
    backdrop-filter: blur(10px);
}

.navbar-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(26, 43, 74, 0.1);
}

.navbar-notification {
    position: relative;
}

.navbar-notification-count {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    position: absolute;
    top: -6px;
    right: -6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--green);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 8px 16px rgba(31, 179, 93, 0.24);
}

.navbar-action-label {
    font-size: 13px;
    font-weight: 800;
}

.navbar-theme-icon,
.navbar-icon-svg {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.navbar-theme-icon svg,
.navbar-icon-svg svg {
    width: 18px;
    height: 18px;
}

.theme-icon-dark {
    display: none;
}

.notification-header-card,
.notification-card,
.notification-card-main,
.notification-header-actions,
.notification-card-topline,
.notification-card-actions {
    display: flex;
    gap: 12px;
}

.notification-header-card {
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(245, 248, 252, 0.96) 100%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    margin-bottom: 18px;
}

.notification-header-card h3 {
    font-size: 26px;
    margin-top: 2px;
}

.notification-header-card p {
    color: var(--muted);
    max-width: 560px;
}

.notification-header-actions {
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.notification-panel-card {
    padding: 0;
}

.notification-list {
    display: grid;
    gap: 16px;
    padding: 0 20px 20px;
}

.notification-card {
    align-items: flex-start;
    justify-content: space-between;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--surface-soft);
}

.notification-card-main {
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.notification-card-main strong {
    font-size: 18px;
}

.notification-card-main p {
    color: var(--muted);
}

.notification-card-topline {
    align-items: center;
    flex-wrap: wrap;
}

.notification-card-actions {
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

html[data-theme="dark"] .notification-header-card {
    background: linear-gradient(180deg, rgba(15, 26, 39, 0.96) 0%, rgba(17, 31, 47, 0.94) 100%);
}

@media (max-width: 900px) {
    .notification-header-card,
    .notification-card {
        flex-direction: column;
        align-items: stretch;
    }

    .notification-header-actions,
    .notification-card-actions {
        justify-content: flex-start;
    }
}

.navbar-theme-toggle {
    min-width: 104px;
}

.navbar-notification {
    position: relative;
    width: 42px;
    min-width: 42px;
    padding: 0;
}

.navbar-notification-dot {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--red);
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.18);
}

.navbar-search {
    min-width: min(360px, 38vw);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    background: #f4f6fb;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.navbar-search-icon,
.search-shortcut {
    font-size: 12px;
    font-weight: 700;
    color: #8a98ad;
    white-space: nowrap;
}

.navbar-search-input {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    color: var(--text);
    font: inherit;
}

.navbar-profile {
    position: relative;
}

.navbar-avatar {
    min-width: 58px;
    height: 42px;
    padding: 0 8px 0 0;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.navbar-avatar-ring {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #1ca45b;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 800;
}

.navbar-avatar-caret {
    font-size: 12px;
    color: #7a8799;
    font-weight: 800;
}

.navbar-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(320px, 84vw);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(20, 36, 63, 0.12);
    overflow: hidden;
    z-index: 40;
}

.navbar-dropdown-head {
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(180deg, #178b46 0%, #146c3a 100%);
    color: #fff;
}

.navbar-dropdown-avatar {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,0.28);
    display: grid;
    place-items: center;
    font-weight: 800;
}

.profile-menu-item {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: none;
    border-top: 1px solid #eef2f7;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: var(--text);
}

.profile-menu-item:hover {
    background: #f7f9fc;
}

.profile-menu-danger {
    color: #d65252;
}

.profile-menu-danger:hover {
    background: #fff3f3;
}

.menu-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: #eef4ff;
    color: #466cf0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    flex: 0 0 30px;
}

.page-content,
.stack-grid,
.signal-list {
    display: grid;
    gap: 20px;
}

.page-actions,
.chip-row,
.action-row {
    display: flex;
    gap: 12px;
}

.page-actions {
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.chip-row,
.action-row {
    align-items: center;
    flex-wrap: wrap;
}

.dashboard-hero-grid,
.analytics-band,
.dashboard-panels {
    display: grid;
    gap: 18px;
}

.dashboard-hero-grid {
    grid-template-columns: 1.35fr 0.9fr;
}

.dashboard-hero-card {
    padding: 24px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(31, 179, 93, 0.18), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.hero-topline,
.hero-badge-cluster,
.hero-strip-grid,
.kpi-head,
.kpi-footer,
.recommendation-rail-head,
.signal-stat-grid {
    display: flex;
    gap: 12px;
}

.hero-topline,
.kpi-head,
.kpi-footer,
.recommendation-rail-head {
    justify-content: space-between;
    align-items: flex-start;
}

.hero-topline p {
    margin-top: 8px;
    color: var(--muted);
    max-width: 640px;
}

.hero-chip {
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 800;
}

.hero-chip-success {
    background: var(--green-soft);
    color: var(--green-strong);
}

.hero-chip-warning {
    background: var(--yellow-soft);
    color: #946b00;
}

.hero-chip-muted {
    background: #eef3fb;
    color: #6f7e94;
}

.hero-strip-grid {
    margin-top: 20px;
    flex-wrap: wrap;
}

.hero-strip-card {
    min-width: 160px;
    flex: 1;
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--border);
}

.hero-strip-card span,
.signal-stat-grid span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
}

.hero-strip-card strong,
.signal-stat-grid strong {
    display: block;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 4px;
}

.hero-wave-panel {
    margin-top: 22px;
    padding: 18px;
    border-radius: 18px;
    background: #102f21;
    color: #fff;
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 18px;
    overflow: hidden;
}

.hero-wave-copy p {
    margin-top: 8px;
    color: rgba(255,255,255,0.72);
}

.hero-wave-bars {
    min-height: 120px;
    display: flex;
    align-items: end;
    gap: 10px;
}

.hero-wave-bars span {
    flex: 1;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(180deg, #49d97e 0%, #1a9d53 100%);
    opacity: 0.92;
    animation: pulseBars 3.2s ease-in-out infinite;
}

.hero-wave-bars span:nth-child(2n) {
    animation-delay: 0.3s;
}

.priority-card {
    padding: 20px;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.priority-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: grid;
    gap: 14px;
}

.priority-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px;
    border-radius: 16px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
}

.priority-index {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #173b2a;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 800;
    flex: 0 0 32px;
}

.priority-list strong {
    display: block;
    margin-bottom: 5px;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.kpi-card {
    padding: 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-top: 3px solid #dfe8f3;
    box-shadow: var(--shadow);
}

.kpi-card.tone-success { border-top-color: var(--green); }
.kpi-card.tone-warning { border-top-color: #f1ba11; }
.kpi-card.tone-danger { border-top-color: var(--red); }

.kpi-label-group {
    max-width: calc(100% - 70px);
}

.kpi-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--surface-soft);
    color: var(--green-strong);
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 800;
}

.kpi-value {
    margin-top: 18px;
    font-size: 42px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.kpi-chip {
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 800;
}

.kpi-chip-success {
    background: var(--green-soft);
    color: var(--green-strong);
}

.kpi-chip-warning {
    background: var(--yellow-soft);
    color: #926f02;
}

.kpi-chip-danger {
    background: var(--red-soft);
    color: #d45151;
}

.kpi-spark {
    display: flex;
    align-items: end;
    gap: 5px;
    height: 32px;
}

.kpi-spark span {
    width: 6px;
    border-radius: 999px;
    background: linear-gradient(180deg, #7cb0ff 0%, #4d88ff 100%);
    animation: pulseBars 2.8s ease-in-out infinite;
}

.analytics-band {
    grid-template-columns: 1.15fr 0.85fr;
}

.analytics-panel {
    padding: 20px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.analytics-panel-dark {
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(77, 136, 255, 0.45), transparent 26%),
        linear-gradient(180deg, #13273f 0%, #112032 100%);
    border-color: rgba(255,255,255,0.08);
}

.analytics-panel-dark .eyebrow,
.analytics-panel-dark .muted-inline {
    color: rgba(255,255,255,0.62);
}

.lane-list {
    margin-top: 16px;
    display: grid;
    gap: 14px;
}

.lane-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr auto;
    gap: 14px;
    align-items: center;
}

.lane-copy small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
}

.lane-track {
    height: 10px;
    border-radius: 999px;
    background: #eef3fb;
    overflow: hidden;
}

.lane-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #7eb3ff 0%, #4d88ff 100%);
    animation: growLane 1.2s ease;
}

.lane-fill-success {
    background: linear-gradient(90deg, #49d97e 0%, #1fb35d 100%);
}

.lane-fill-warning {
    background: linear-gradient(90deg, #ffd96c 0%, #f1ba11 100%);
}

.lane-fill-danger {
    background: linear-gradient(90deg, #ffa7a7 0%, #ff6b6b 100%);
}

.lane-value {
    font-size: 12px;
    font-weight: 800;
    color: var(--muted);
}

.signal-orbital {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 10px auto 18px;
    display: grid;
    place-items: center;
}

.signal-ring {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
}

.signal-ring-a {
    transform: scale(1);
}

.signal-ring-b {
    transform: scale(0.78);
}

.signal-core {
    width: 116px;
    height: 116px;
    border-radius: 999px;
    background: linear-gradient(180deg, #1fb35d 0%, #178948 100%);
    display: grid;
    place-items: center;
    text-align: center;
    box-shadow: 0 0 0 18px rgba(255,255,255,0.04);
}

.signal-core strong {
    display: block;
    font-size: 30px;
    font-weight: 800;
}

.signal-core span {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.74);
}

.signal-stat-grid {
    justify-content: space-between;
}

.signal-stat-grid > div {
    flex: 1;
    padding: 12px 10px;
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.06);
}

.dashboard-panels {
    grid-template-columns: 1.15fr 0.85fr;
}

.panel-xl {
    min-height: 100%;
}

.recommendation-stack {
    display: grid;
    gap: 14px;
}

.recommendation-rail {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.recommendation-rail p {
    margin-top: 8px;
}

.recommendation-rail-head strong {
    max-width: 70%;
}

@keyframes pulseBars {
    0%, 100% { transform: scaleY(0.95); opacity: 0.85; }
    50% { transform: scaleY(1.08); opacity: 1; }
}

@keyframes growLane {
    from { width: 0; }
}

.hero-grid,
.content-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 18px;
}

.content-grid.single {
    grid-template-columns: 1fr;
}

.hero-card,
.panel-card,
.metric-card,
.mini-card,
.insight-card,
.auth-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(26, 43, 74, 0.08);
}

.hero-card,
.panel-card,
.metric-card,
.mini-card,
.auth-card {
    padding: 20px;
}

.panel-card,
.metric-card,
.mini-card {
    position: relative;
    overflow: hidden;
}

.panel-card::before,
.metric-card::before,
.mini-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, #1fb35d 0%, #4d88ff 55%, #ffcf2d 100%);
    opacity: 0.9;
}

.hero-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.hero-card p,
.metric-meta,
.mini-card p {
    color: var(--muted);
}

.hero-stats {
    flex-wrap: wrap;
    margin-top: 18px;
}

.hero-stats div {
    min-width: 126px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-soft);
}

.hero-stats span {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.hero-stats strong,
.metric-value,
.mini-card strong {
    font-size: 24px;
    font-weight: 800;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.metric-grid.compact {
    grid-template-columns: minmax(220px, 320px);
}

.metric-card {
    border-top: 3px solid #dfe8f3;
}

.tone-success { border-top-color: var(--green); }
.tone-warning { border-top-color: #f1ba11; }
.tone-danger { border-top-color: var(--red); }

.metric-label,
.mini-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.submetric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.signal-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}

.signal-list li,
.insight-card {
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
}

.table-wrap {
    overflow: auto;
    margin-top: 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.integration-sample-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.integration-sample-card,
.detail-item,
.token-block {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.integration-sample-card strong,
.detail-item strong,
.token-block strong {
    display: block;
    margin-top: 8px;
}

.payload-block {
    margin: 16px 0 0;
    padding: 18px;
    overflow: auto;
    border-radius: 18px;
    border: 1px solid #dbe5f0;
    background: #0d1a16;
    color: #dffce8;
    font-size: 13px;
    line-height: 1.65;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.detail-item span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.token-block {
    display: grid;
    gap: 14px;
}

.token-copy-row,
.table-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

@media (max-width: 720px) {
    .token-copy-row,
    .table-action-row {
        flex-direction: column;
        align-items: stretch;
    }

    .payload-block {
        font-size: 12px;
    }
}

.data-table {
    width: 100%;
    min-width: 780px;
    border-collapse: collapse;
    background: #fff;
}

.data-table th,
.data-table td {
    padding: 16px 14px;
    border-bottom: 1px solid #edf1f6;
    text-align: left;
    vertical-align: top;
}

.data-table th {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: #fbfdff;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.badge-success { background: var(--green-soft); color: var(--green-strong); }
.badge-warning,
.badge-medium { background: var(--yellow-soft); color: #9a7802; }
.badge-danger,
.badge-high,
.badge-critical { background: var(--red-soft); color: #d45151; }
.badge-low { background: #eef3fb; color: #7d8ba1; }

.filter-chip {
    padding: 8px 12px;
    border-radius: 999px;
    background: #eef3fb;
    color: #607188;
    font-size: 12px;
    font-weight: 800;
}

.btn,
.icon-btn {
    min-height: 40px;
    padding: 0 14px;
    border: none;
    border-radius: 12px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-primary {
    background: var(--green);
    color: #fff;
    box-shadow: 0 12px 24px rgba(31, 179, 93, 0.18);
}

.btn-secondary,
.icon-btn {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
}

.icon-btn-plain {
    min-width: 40px;
}

.btn:hover,
.icon-btn:hover {
    transform: translateY(-1px);
}

.app-footer {
    position: fixed;
    left: var(--sidebar-width);
    right: 0;
    bottom: 0;
    z-index: 24;
    width: auto;
    min-height: 42px;
    padding: 7px 18px;
    border: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-radius: 0;
    background: linear-gradient(90deg, #167c43 0%, #0f6c39 100%);
    backdrop-filter: none;
    box-shadow: 0 -8px 18px rgba(10, 35, 20, 0.18);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    color: rgba(255,255,255,0.78);
    font-size: 11px;
}

.app-footer-copy,
.app-footer-meta {
    display: grid;
    gap: 1px;
}

.app-footer-copy strong {
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
}

.app-footer-meta {
    text-align: right;
    flex: 0 0 auto;
}

.app-footer span {
    line-height: 1.2;
}

html[data-theme="dark"] .navbar-shell {
    background: rgba(8, 19, 29, 0.86);
}

html[data-theme="dark"] .app-footer {
    background: linear-gradient(90deg, #145f36 0%, #0d4d2b 100%);
    border-top-color: rgba(255,255,255,0.08);
    box-shadow: 0 -8px 18px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .navbar-pill-muted,
html[data-theme="dark"] .filter-chip,
html[data-theme="dark"] .status-chip,
html[data-theme="dark"] .icon-btn,
html[data-theme="dark"] .btn-secondary,
html[data-theme="dark"] .navbar-action,
html[data-theme="dark"] .support-modal-summary,
html[data-theme="dark"] .dashboard-focus-list li,
html[data-theme="dark"] .dashboard-snapshot-tile,
html[data-theme="dark"] .support-guide-list li,
html[data-theme="dark"] .support-lane-card,
html[data-theme="dark"] .support-pulse-stats > div,
html[data-theme="dark"] .finance-glance-card,
html[data-theme="dark"] .finance-pressure-card,
html[data-theme="dark"] .side-metric-card,
html[data-theme="dark"] .support-side-card,
html[data-theme="dark"] .support-summary-card,
html[data-theme="dark"] .support-minimal-header,
html[data-theme="dark"] .support-side-card-dark .support-desk-row,
html[data-theme="dark"] .support-pulse-orb,
html[data-theme="dark"] .rail-track,
html[data-theme="dark"] .lane-track,
html[data-theme="dark"] .billing-meter-track {
    background: #111c2a;
    color: var(--text);
    border-color: var(--border);
}

html[data-theme="dark"] .panel-card,
html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .mini-card,
html[data-theme="dark"] .toolbar-card,
html[data-theme="dark"] .rail-card,
html[data-theme="dark"] .staff-stat-card,
html[data-theme="dark"] .ops-banner,
html[data-theme="dark"] .command-sidecard,
html[data-theme="dark"] .finance-hero,
html[data-theme="dark"] .finance-side-panel,
html[data-theme="dark"] .finance-kpi-card,
html[data-theme="dark"] .finance-panel,
html[data-theme="dark"] .support-hero,
html[data-theme="dark"] .support-pulse-card,
html[data-theme="dark"] .dashboard-clean-hero,
html[data-theme="dark"] .dashboard-core-card,
html[data-theme="dark"] .dashboard-focus-card,
html[data-theme="dark"] .dashboard-snapshot-card,
html[data-theme="dark"] .modal-card,
html[data-theme="dark"] .navbar-dropdown,
html[data-theme="dark"] .table-wrap,
html[data-theme="dark"] .integration-sample-card,
html[data-theme="dark"] .detail-item,
html[data-theme="dark"] .token-block,
html[data-theme="dark"] .data-table {
    background: linear-gradient(180deg, #0f1722 0%, #122031 100%);
    border-color: var(--border);
    box-shadow: var(--shadow);
}

html[data-theme="dark"] .data-table th {
    background: #111c2a;
    color: #95a8bf;
}

html[data-theme="dark"] .data-table td,
html[data-theme="dark"] .modal-head,
html[data-theme="dark"] .modal-actions,
html[data-theme="dark"] .profile-menu-item {
    border-color: #1c2a3a;
}

html[data-theme="dark"] .profile-menu-item:hover,
html[data-theme="dark"] .data-table tbody tr:hover {
    background: #111c2a;
}

html[data-theme="dark"] .input,
html[data-theme="dark"] .table-wrap-premium,
html[data-theme="dark"] .recommendation-rail,
html[data-theme="dark"] .support-desk-row,
html[data-theme="dark"] .dashboard-hero-mini,
html[data-theme="dark"] .support-modal-summary {
    background: #111c2a;
    color: var(--text);
    border-color: var(--border);
}

html[data-theme="dark"] .muted-text,
html[data-theme="dark"] .metric-meta,
html[data-theme="dark"] .mini-card p,
html[data-theme="dark"] .dashboard-clean-copy p,
html[data-theme="dark"] .app-footer,
html[data-theme="dark"] .app-footer-copy span,
html[data-theme="dark"] .app-footer-meta,
html[data-theme="dark"] .dashboard-core-card p,
html[data-theme="dark"] .support-minimal-header p,
html[data-theme="dark"] .billing-tenant-meta span,
html[data-theme="dark"] .billing-tenant-meta small,
html[data-theme="dark"] .support-case-stack small {
    color: var(--muted);
}

html[data-theme="dark"] .breadcrumb-sep,
html[data-theme="dark"] .navbar-avatar-caret {
    color: #8ea2bc;
}

html[data-theme="dark"] .theme-icon-light {
    display: none;
}

html[data-theme="dark"] .theme-icon-dark {
    display: inline-flex;
}

.nav-toggle {
    display: none;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(16, 26, 39, 0.34);
}

.modal-card {
    width: min(640px, 100%);
    max-height: min(88vh, 900px);
    overflow: auto;
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 24px 60px rgba(20, 36, 63, 0.16);
}

.modal-head,
.modal-body,
.modal-actions {
    padding: 18px 20px;
}

.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #edf1f6;
}

.modal-body {
    display: grid;
    gap: 16px;
}

.modal-actions {
    justify-content: flex-end;
    border-top: 1px solid #edf1f6;
}

.input-label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 800;
}

.input,
.navbar-search-input {
    font-family: inherit;
}

.input {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: none;
}

.textarea {
    min-height: 120px;
    resize: vertical;
}

.toast-stack {
    position: fixed;
    top: 18px;
    right: 18px;
    display: grid;
    gap: 12px;
    z-index: 90;
}

.toast {
    min-width: 260px;
    max-width: 360px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-left: 4px solid var(--green);
    box-shadow: var(--shadow);
}

.auth-body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(31, 179, 93, 0.12), transparent 20%),
        linear-gradient(180deg, #f6fbf7 0%, #edf4f7 100%);
    overflow-x: hidden;
}

.auth-body.is-auth-busy {
    overflow: hidden;
}

.auth-shell {
    width: min(560px, calc(100% - 28px));
    margin: 0 auto;
    min-height: 100vh;
    padding: 32px 0;
    display: grid;
    align-items: center;
}

.auth-showcase,
.auth-login-panel {
    min-width: 0;
}

.auth-shell-minimal {
    width: min(520px, calc(100% - 24px));
}

.auth-login-panel-minimal {
    width: 100%;
}

.auth-showcase-card,
.auth-login-card,
.auth-card {
    border-radius: 28px;
    border: 1px solid rgba(221, 228, 238, 0.96);
    box-shadow: 0 24px 44px rgba(14, 30, 53, 0.08);
}

.auth-showcase-card {
    display: none;
}

.auth-login-card,
.auth-card {
    width: 100%;
    margin-left: 0;
    padding: 34px;
    background:
        radial-gradient(circle at top right, rgba(31, 179, 93, 0.08), transparent 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 251, 248, 0.96) 100%);
    display: grid;
    color: var(--text);
    gap: 22px;
}

.auth-login-card-minimal {
    gap: 20px;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.auth-brand-mark {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--green) 0%, var(--green-strong) 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 16px 28px rgba(31, 179, 93, 0.22);
}

.auth-brand strong {
    display: block;
    font-size: 1.8rem;
    line-height: 1.02;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.auth-brand span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.95rem;
}

.auth-heading {
    display: grid;
    gap: 6px;
}

.auth-heading h2 {
    font-size: clamp(1.65rem, 3vw, 2.2rem);
    line-height: 1.06;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.auth-heading-minimal .muted-text {
    max-width: 40ch;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-field {
    display: grid;
    gap: 8px;
}

.auth-field label {
    font-size: 14px;
    font-weight: 800;
}

.auth-input {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.auth-input:focus {
    outline: none;
    border-color: rgba(31, 179, 93, 0.4);
    box-shadow: 0 0 0 4px rgba(31, 179, 93, 0.12);
}

.auth-submit {
    width: 100%;
    min-height: 54px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(180deg, var(--green) 0%, var(--green-strong) 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 18px 30px rgba(31, 179, 93, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.auth-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 22px 34px rgba(31, 179, 93, 0.26);
}

.auth-submit:disabled {
    opacity: 0.82;
    cursor: not-allowed;
}

.auth-demo-panel {
    display: none;
}

.auth-alert {
    margin-top: 0;
}

.auth-footnote {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

.auth-preloader {
    position: fixed;
    inset: 0;
    z-index: 140;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at center, rgba(31, 179, 93, 0.14), transparent 24%),
        rgba(6, 17, 12, 0.76);
    backdrop-filter: blur(16px);
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.auth-preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.auth-preloader-core {
    min-width: 240px;
    padding: 26px 28px;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(16, 30, 21, 0.96) 0%, rgba(10, 21, 15, 0.96) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
    display: grid;
    justify-items: center;
    gap: 18px;
    color: #f4fff7;
    text-align: center;
}

.auth-preloader-mark {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--green) 0%, var(--green-strong) 100%);
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 16px 28px rgba(31, 179, 93, 0.2);
}

.auth-preloader-dots {
    position: relative;
    width: 88px;
    height: 16px;
}

.auth-preloader-dots span {
    position: absolute;
    top: 3px;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #ffffff;
    animation: auth-windows-dots 1.4s infinite ease-in-out;
}

.auth-preloader-dots span:nth-child(1) { animation-delay: 0s; }
.auth-preloader-dots span:nth-child(2) { animation-delay: 0.12s; }
.auth-preloader-dots span:nth-child(3) { animation-delay: 0.24s; }
.auth-preloader-dots span:nth-child(4) { animation-delay: 0.36s; }
.auth-preloader-dots span:nth-child(5) { animation-delay: 0.48s; }

@keyframes auth-windows-dots {
    0% {
        transform: translateX(0) scale(0.35);
        opacity: 0.2;
    }
    20% {
        transform: translateX(16px) scale(0.75);
        opacity: 0.55;
    }
    45% {
        transform: translateX(36px) scale(1);
        opacity: 1;
    }
    70% {
        transform: translateX(56px) scale(0.72);
        opacity: 0.55;
    }
    100% {
        transform: translateX(74px) scale(0.3);
        opacity: 0.12;
    }
}

.alert {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid transparent;
}

.alert-error {
    background: var(--red-soft);
    color: #cb4e4e;
    border-color: rgba(255, 107, 107, 0.18);
}

.alert-success {
    background: var(--green-soft);
    color: var(--green-strong);
    border-color: rgba(31, 179, 93, 0.18);
}

.eyebrow {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.muted-text {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

@media (max-width: 1120px) {
    .auth-shell {
        width: min(560px, calc(100% - 24px));
        padding: 24px 0 32px;
    }

    .auth-login-card,
    .auth-card {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 760px) {
    .auth-shell {
        width: min(100%, calc(100% - 20px));
    }

    .auth-showcase-card,
    .auth-login-card,
    .auth-card {
        padding: 22px;
        border-radius: 24px;
    }

    .auth-brand strong {
        font-size: 1.6rem;
    }
}

.profile-menu-form {
    margin: 0;
}

.btn-sm {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 13px;
}

.ops-banner,
.command-sidecard,
.toolbar-card,
.rail-card,
.staff-stat-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.security-command-grid,
.security-data-grid {
    display: grid;
    gap: 18px;
}

.security-command-grid {
    grid-template-columns: 1.35fr 0.9fr;
}

.security-data-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
    align-items: start;
}

.ops-banner {
    padding: 26px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    overflow: hidden;
    position: relative;
}

.ops-banner::after {
    content: "";
    position: absolute;
    inset: auto -90px -110px auto;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(31, 179, 93, 0.16) 0%, rgba(31, 179, 93, 0) 68%);
    pointer-events: none;
}

.ops-banner-security {
    background:
        radial-gradient(circle at top right, rgba(77, 136, 255, 0.1), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.ops-banner-copy {
    max-width: 720px;
    display: grid;
    gap: 14px;
}

.ops-banner-copy h3,
.toolbar-head h3,
.command-sidecard h3,
.rail-card h3 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.ops-banner-copy p,
.command-sidecard small,
.rail-card small,
.toolbar-card p {
    color: var(--muted);
}

.ops-banner-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.command-sidecard {
    padding: 22px;
    display: grid;
    gap: 18px;
}

.command-sidecard-head,
.toolbar-head,
.rail-card-head,
.staff-stat-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.side-metric-stack,
.right-rail-stack {
    display: grid;
    gap: 14px;
}

.side-metric-card {
    padding: 16px;
    border-radius: 18px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
}

.side-metric-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.side-metric-card strong {
    display: block;
    margin: 8px 0 6px;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.stats-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.staff-stat-card {
    padding: 20px;
    border-top: 3px solid #dfe8f3;
}

.staff-stat-head strong {
    display: block;
    margin-top: 10px;
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

.staff-stat-card p {
    margin-top: 16px;
    color: var(--muted);
    font-size: 14px;
}

.staff-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--surface-soft);
    color: var(--green-strong);
    font-size: 12px;
    font-weight: 800;
}

.toolbar-card {
    padding: 22px;
    display: grid;
    gap: 18px;
}

.toolbar-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.75fr) auto;
    gap: 16px;
    align-items: end;
}

.toolbar-field {
    display: grid;
}

.toolbar-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.status-filter-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.status-chip {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--muted);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.status-chip:hover,
.status-chip.is-active {
    border-color: #c8ecd6;
    background: var(--green-soft);
    color: var(--green-strong);
}

.staff-table-card {
    padding-bottom: 12px;
}

.table-wrap-premium {
    margin-top: 18px;
    overflow: auto;
}

.data-table-premium {
    min-width: 880px;
}

.data-table-premium tbody tr {
    transition: transform 0.18s ease, background 0.18s ease;
}

.data-table-premium tbody tr:hover {
    background: #fbfdff;
}

.staff-member-cell,
.staff-role-stack,
.staff-status-stack,
.staff-created-cell,
.staff-member-meta {
    display: grid;
    gap: 4px;
}

.staff-member-cell {
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.staff-avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #dff7ea 0%, #edf9ff 100%);
    color: var(--green-strong);
    font-size: 18px;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(31, 179, 93, 0.14);
}

.staff-member-meta strong,
.staff-role-stack strong,
.staff-created-cell strong {
    font-size: 14px;
    font-weight: 800;
}

.staff-member-meta span,
.staff-member-meta small,
.staff-role-stack small,
.staff-status-stack small,
.staff-created-cell small {
    color: var(--muted);
    font-size: 12px;
}

.inline-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.inline-actions form {
    margin: 0;
}

.rail-card {
    padding: 20px;
}

.rail-card-dark {
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(77, 136, 255, 0.45), transparent 26%),
        linear-gradient(180deg, #16304d 0%, #102235 100%);
    border-color: rgba(255,255,255,0.08);
}

.rail-card-dark .eyebrow,
.rail-card-dark small {
    color: rgba(255,255,255,0.68);
}

.rail-progress-list,
.rail-checklist {
    display: grid;
    gap: 14px;
}

.rail-progress-list {
    margin-top: 18px;
}

.rail-progress-row {
    display: grid;
    gap: 10px;
}

.rail-track {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #edf3fb;
    overflow: hidden;
}

.rail-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    animation: growLane 1s ease;
}

.rail-fill-success { background: linear-gradient(90deg, #49d97e 0%, #1fb35d 100%); }
.rail-fill-warning { background: linear-gradient(90deg, #ffd96c 0%, #f1ba11 100%); }
.rail-fill-primary { background: linear-gradient(90deg, #7eb3ff 0%, #4d88ff 100%); }

.rail-checklist {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
}

.rail-checklist li {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.9);
    line-height: 1.55;
}

.empty-state {
    margin: 16px 20px 8px;
    padding: 18px;
    border-radius: 18px;
    background: var(--surface-soft);
    border: 1px dashed #cbd7e6;
    text-align: center;
}

.empty-state strong {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
}

.billing-command-grid,
.billing-analytics-grid,
.billing-data-grid {
    display: grid;
    gap: 18px;
}

.billing-command-grid {
    grid-template-columns: 1.35fr 0.78fr;
}

.billing-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.billing-analytics-grid,
.billing-data-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(290px, 0.85fr);
    align-items: start;
}

.finance-hero,
.finance-side-panel,
.finance-kpi-card,
.finance-panel {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.finance-hero {
    position: relative;
    overflow: hidden;
    padding: 28px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) 320px;
    gap: 22px;
    background:
        radial-gradient(circle at top right, rgba(77, 136, 255, 0.12), transparent 28%),
        radial-gradient(circle at bottom left, rgba(31, 179, 93, 0.12), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.finance-hero::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -120px;
    width: 280px;
    height: 280px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(31, 179, 93, 0.12) 0%, rgba(31, 179, 93, 0) 70%);
    pointer-events: none;
}

.finance-hero-copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 16px;
}

.finance-hero-copy h3,
.finance-panel h3 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.finance-hero-copy p,
.finance-glance-card small,
.finance-pressure-card small,
.finance-panel small,
.finance-kpi-card p,
.billing-tenant-meta span,
.billing-tenant-meta small,
.billing-readiness-stack small {
    color: var(--muted);
}

.finance-glance-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.finance-glance-card {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.92);
    border: 1px solid var(--border);
}

.finance-glance-card span,
.finance-pressure-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.finance-glance-card strong,
.finance-pressure-card strong {
    display: block;
    margin: 10px 0 6px;
    font-size: 28px;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.finance-orbit-card {
    position: relative;
    min-height: 290px;
    display: grid;
    place-items: center;
}

.finance-orbit-ring {
    position: absolute;
    border-radius: 999px;
    border: 1px solid rgba(23, 35, 56, 0.08);
}

.finance-orbit-ring-a {
    width: 270px;
    height: 270px;
}

.finance-orbit-ring-b {
    width: 210px;
    height: 210px;
}

.finance-orbit-core {
    position: relative;
    z-index: 1;
    width: 162px;
    height: 162px;
    border-radius: 999px;
    background: linear-gradient(180deg, #16914a 0%, #0f6f39 100%);
    color: #fff;
    display: grid;
    place-items: center;
    text-align: center;
    box-shadow: 0 24px 44px rgba(22, 145, 74, 0.28);
}

.finance-orbit-core span,
.finance-orbit-stat span {
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.finance-orbit-core strong {
    display: block;
    margin: 6px 0;
    font-size: 28px;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.finance-orbit-core small {
    color: rgba(255,255,255,0.76);
}

.finance-orbit-stat {
    position: absolute;
    width: 88px;
    min-height: 72px;
    padding: 12px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 12px 28px rgba(26, 43, 74, 0.12);
    display: grid;
    place-items: center;
    text-align: center;
}

.finance-orbit-stat strong {
    display: block;
    margin-top: 6px;
    font-size: 20px;
    font-weight: 800;
}

.orbit-top { top: 4px; left: 50%; transform: translateX(-50%); }
.orbit-right { right: 8px; top: 50%; transform: translateY(-50%); }
.orbit-bottom { bottom: 4px; left: 50%; transform: translateX(-50%); }

.finance-side-panel,
.finance-panel {
    padding: 22px;
}

.finance-pressure-list,
.finance-action-stack {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.finance-pressure-card {
    padding: 16px;
    border-radius: 18px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
}

.finance-kpi-card {
    padding: 20px;
    border-top: 3px solid #dfe8f3;
}

.finance-kpi-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.finance-kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: var(--surface-soft);
    color: var(--green-strong);
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 800;
}

.finance-kpi-value {
    display: block;
    margin-top: 10px;
    font-size: 38px;
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.finance-kpi-card p {
    margin: 14px 0 0;
    min-height: 42px;
}

.finance-kpi-bars {
    height: 48px;
    display: flex;
    align-items: end;
    gap: 7px;
    margin-top: 14px;
}

.finance-kpi-bars span {
    width: 9px;
    border-radius: 999px;
    background: linear-gradient(180deg, #7eb3ff 0%, #4d88ff 100%);
}

.finance-kpi-foot {
    margin-top: 14px;
}

.finance-panel {
    min-height: 100%;
}

.finance-panel-dark {
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(77, 136, 255, 0.45), transparent 26%),
        linear-gradient(180deg, #13273f 0%, #112032 100%);
    border-color: rgba(255,255,255,0.08);
}

.finance-panel-dark .eyebrow,
.finance-panel-dark small {
    color: rgba(255,255,255,0.68);
}

.finance-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.finance-chart-stage {
    margin-top: 18px;
    padding: 18px;
    border-radius: 18px;
    background: #f6f9fe;
    border: 1px solid var(--border);
}

.finance-chart-bars {
    min-height: 160px;
    display: flex;
    align-items: end;
    gap: 14px;
}

.finance-chart-bars span {
    flex: 1;
    border-radius: 18px 18px 6px 6px;
    animation: growLane 0.9s ease;
}

.bar-success { background: linear-gradient(180deg, #49d97e 0%, #1fb35d 100%); }
.bar-danger { background: linear-gradient(180deg, #ffa7a7 0%, #ff6b6b 100%); }
.bar-warning { background: linear-gradient(180deg, #ffe08e 0%, #f1ba11 100%); }
.bar-primary { background: linear-gradient(180deg, #7eb3ff 0%, #4d88ff 100%); }

.finance-chart-labels {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-top: 10px;
}

.finance-chart-labels span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.finance-lane-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.finance-lane-row {
    display: grid;
    gap: 10px;
}

.finance-action-card {
    width: 100%;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.06);
    color: #fff;
    text-align: left;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease;
}

.finance-action-card:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.1);
}

.finance-action-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
}

.billing-table-card {
    padding-bottom: 12px;
}

.billing-tenant-cell,
.billing-coverage-stack,
.billing-readiness-stack,
.billing-readiness-meter,
.billing-tenant-meta {
    display: grid;
    gap: 6px;
}

.billing-tenant-cell {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.billing-tenant-avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #dff7ea 0%, #edf9ff 100%);
    color: var(--green-strong);
    font-size: 18px;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(31, 179, 93, 0.14);
}

.billing-tenant-meta strong,
.billing-readiness-meter strong,
.coverage-row strong {
    font-size: 14px;
    font-weight: 800;
}

.coverage-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
}

.billing-meter-track {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #edf3fb;
    overflow: hidden;
}

.billing-meter-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.billing-meter-fill-success {
    background: linear-gradient(90deg, #49d97e 0%, #1fb35d 100%);
}

.billing-meter-fill-warning {
    background: linear-gradient(90deg, #ffe08e 0%, #f1ba11 100%);
}

.support-command-grid,
.support-data-grid {
    display: grid;
    gap: 18px;
}

.support-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.support-hero,
.support-pulse-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.support-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) 320px;
    gap: 20px;
}

.support-hero-copy,
.support-pulse-card {
    padding: 24px;
}

.support-hero-copy {
    display: grid;
    gap: 16px;
}

.support-hero-copy h3,
.support-pulse-card h3 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.support-hero-lanes,
.support-pulse-stats {
    display: grid;
    gap: 14px;
}

.support-hero-lanes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.support-lane-card {
    padding: 16px 18px;
    border-radius: 18px;
    background: #f7fbff;
    border: 1px solid var(--border);
}

.support-lane-card span,
.support-pulse-stats span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.support-lane-card strong,
.support-pulse-stats strong {
    display: block;
    margin: 10px 0 6px;
    font-size: 26px;
    line-height: 1.05;
}

.support-pulse-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.support-pulse-orb {
    margin: 22px auto;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    border: 1px solid rgba(23, 35, 56, 0.08);
    display: grid;
    place-items: center;
    position: relative;
}

.support-pulse-orb::before,
.support-pulse-orb::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    border: 1px solid rgba(23, 35, 56, 0.08);
}

.support-pulse-orb::before {
    inset: 14px;
}

.support-pulse-orb::after {
    inset: 32px;
}

.support-pulse-core {
    position: relative;
    z-index: 1;
    width: 110px;
    height: 110px;
    border-radius: 999px;
    background: linear-gradient(180deg, #1f6bff 0%, #224db8 100%);
    color: #fff;
    display: grid;
    place-items: center;
    text-align: center;
    box-shadow: 0 18px 34px rgba(34, 77, 184, 0.26);
}

.support-pulse-core strong {
    display: block;
    font-size: 30px;
    line-height: 1;
}

.support-pulse-core span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: rgba(255,255,255,0.8);
}

.support-pulse-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.support-pulse-stats > div {
    padding: 14px;
    border-radius: 16px;
    background: #f7fbff;
    border: 1px solid var(--border);
}

.support-toolbar-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.7fr) minmax(220px, 0.7fr) auto;
}

.support-table-card {
    padding-bottom: 12px;
}

.support-data-grid {
    grid-template-columns: minmax(0, 1.18fr) minmax(290px, 0.82fr);
    align-items: start;
}

.support-case-stack {
    display: grid;
    gap: 6px;
}

.support-simple-hero,
.support-side-card,
.support-summary-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.support-simple-hero {
    padding: 22px 24px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.support-simple-copy {
    max-width: 720px;
}

.support-simple-copy h3,
.support-side-card h3 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.support-simple-copy p,
.support-summary-card p,
.support-guide-list li,
.support-desk-row span {
    color: var(--muted);
}

.support-simple-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.support-summary-grid,
.support-simple-grid {
    display: grid;
    gap: 18px;
}

.support-summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.support-summary-card {
    padding: 18px;
    border-top: 3px solid #dfe8f3;
}

.support-summary-card strong {
    display: block;
    margin: 10px 0 8px;
    font-size: 34px;
    line-height: 1;
    letter-spacing: -0.04em;
}

.support-toolbar-card {
    padding-top: 18px;
}

.support-filters-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(200px, 0.7fr) minmax(200px, 0.7fr) auto;
    gap: 16px;
    align-items: end;
}

.support-simple-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    align-items: start;
}

.support-farmer-cell {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.support-ops-panel {
    display: grid;
    gap: 16px;
}

.support-side-card {
    padding: 20px;
}

.support-side-card-dark {
    background:
        radial-gradient(circle at top right, rgba(77, 136, 255, 0.38), transparent 28%),
        linear-gradient(180deg, #16304d 0%, #102235 100%);
    border-color: rgba(255,255,255,0.08);
    color: #fff;
}

.support-side-card-dark .eyebrow,
.support-side-card-dark .support-desk-row span {
    color: rgba(255,255,255,0.72);
}

.support-guide-list {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.support-guide-list li {
    padding: 12px 14px;
    border-radius: 14px;
    background: #f7fbff;
    border: 1px solid var(--border);
    line-height: 1.5;
}

.support-side-card-dark .support-guide-list li {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.92);
}

.support-desk-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.support-desk-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.08);
}

.support-desk-row strong {
    font-size: 16px;
}

.support-minimal-header {
    padding: 18px 22px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.support-minimal-header h3 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.support-minimal-header p {
    color: var(--muted);
    margin-top: 8px;
}

.support-minimal-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.dashboard-clean-shell {
    display: grid;
    gap: 18px;
}

.dashboard-clean-hero,
.dashboard-focus-card,
.dashboard-snapshot-card,
.dashboard-core-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.dashboard-clean-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 320px;
    gap: 20px;
    padding: 28px;
    background:
        radial-gradient(circle at top right, rgba(77, 136, 255, 0.14), transparent 28%),
        radial-gradient(circle at bottom left, rgba(31, 179, 93, 0.14), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.dashboard-clean-hero::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -120px;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(31, 179, 93, 0.12) 0%, rgba(31, 179, 93, 0) 72%);
    pointer-events: none;
}

.dashboard-clean-copy {
    position: relative;
    z-index: 1;
}

.dashboard-clean-copy h3 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.dashboard-clean-copy p {
    margin-top: 10px;
    max-width: 640px;
    color: var(--muted);
    font-size: 15px;
}

.dashboard-hero-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.dashboard-hero-panel {
    position: relative;
    z-index: 1;
    padding: 20px;
    border-radius: 22px;
    background: linear-gradient(180deg, #16304d 0%, #102235 100%);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.08);
}

.dashboard-hero-panel-top span,
.dashboard-hero-mini span,
.dashboard-snapshot-tile span {
    display: block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dashboard-hero-panel-top span {
    color: rgba(255,255,255,0.64);
}

.dashboard-hero-panel-top strong {
    display: block;
    margin: 10px 0 8px;
    font-size: 28px;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.dashboard-hero-panel-top small {
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
}

.dashboard-hero-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.dashboard-hero-mini {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.08);
}

.dashboard-hero-mini span {
    color: rgba(255,255,255,0.66);
}

.dashboard-hero-mini strong {
    display: block;
    margin-top: 8px;
    font-size: 24px;
    line-height: 1;
}

.dashboard-core-grid,
.dashboard-secondary-grid {
    display: grid;
    gap: 18px;
}

.dashboard-core-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.dashboard-core-card,
.dashboard-focus-card,
.dashboard-snapshot-card {
    position: relative;
    overflow: hidden;
}

.dashboard-core-card {
    padding: 20px;
}

.dashboard-core-card::before,
.dashboard-focus-card::before,
.dashboard-snapshot-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
}

.dashboard-core-card.is-green::before,
.dashboard-focus-card::before {
    background: linear-gradient(90deg, #1fb35d 0%, #43d17c 100%);
}

.dashboard-core-card.is-blue::before,
.dashboard-snapshot-card::before {
    background: linear-gradient(90deg, #4d88ff 0%, #78a6ff 100%);
}

.dashboard-core-card.is-red::before {
    background: linear-gradient(90deg, #ff6b6b 0%, #ff9595 100%);
}

.dashboard-core-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.dashboard-core-value {
    margin-top: 10px;
    font-size: 42px;
    line-height: 1;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.dashboard-core-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 800;
    color: #1b3453;
    background: linear-gradient(180deg, #eef5ff 0%, #e9fff2 100%);
}

.dashboard-core-card p {
    margin-top: 14px;
    color: var(--muted);
}

.dashboard-secondary-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
}

.dashboard-focus-card,
.dashboard-snapshot-card {
    padding: 20px;
}

.dashboard-focus-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: grid;
    gap: 12px;
}

.dashboard-focus-list li {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    align-items: start;
    padding: 14px 16px;
    border-radius: 16px;
    background: #f7fbff;
    border: 1px solid var(--border);
}

.dashboard-focus-index {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #173b2a;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.dashboard-snapshot-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.dashboard-snapshot-tile {
    padding: 18px;
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid var(--border);
}

.dashboard-snapshot-tile span {
    color: var(--muted);
}

.dashboard-snapshot-tile strong {
    display: block;
    margin-top: 10px;
    font-size: 32px;
    line-height: 1;
    letter-spacing: -0.04em;
}

.support-modal-summary {
    padding: 14px 16px;
    border-radius: 16px;
    background: #f7fbff;
    border: 1px solid var(--border);
}

.support-modal-summary strong {
    display: block;
    margin-bottom: 5px;
    font-size: 15px;
}

.support-modal-summary small {
    color: var(--muted);
}

@media (max-width: 1260px) {
    .navbar {
        grid-template-columns: 1fr;
    }

    .navbar-center,
    .navbar-right {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 1100px) {
    body {
        overflow: auto;
    }

    .admin-shell {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100vh;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: min(320px, 88vw);
        z-index: 60;
        transform: translateX(-102%);
        box-shadow: 0 16px 50px rgba(12, 29, 17, 0.35);
    }

    body.nav-open .sidebar {
        transform: translateX(0);
    }

    .main-panel {
        height: auto;
        min-height: 100vh;
        overflow: visible;
        padding: 0 0 24px;
    }

    .navbar-shell,
    .content-shell {
        padding-left: 0;
        padding-right: 0;
    }

    .navbar {
        padding-left: 16px;
        padding-right: 16px;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .navbar-center,
    .navbar-right,
    .split-fields {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-hero-grid,
    .analytics-band,
    .dashboard-panels,
    .billing-command-grid,
    .billing-analytics-grid,
    .billing-data-grid,
    .support-command-grid,
    .support-data-grid,
    .security-command-grid,
    .security-data-grid,
    .hero-grid,
    .content-grid,
    .metric-grid,
    .submetric-grid,
    .billing-kpi-grid {
        grid-template-columns: 1fr;
    }

    .hero-wave-panel,
    .lane-row {
        grid-template-columns: 1fr;
    }

    .signal-stat-grid {
        flex-direction: column;
    }

    .ops-banner,
    .finance-hero,
    .support-hero,
    .toolbar-grid {
        grid-template-columns: 1fr;
    }

    .ops-banner,
    .finance-hero,
    .support-hero,
    .ops-banner-actions {
        align-items: stretch;
    }

    .support-hero-lanes,
    .support-pulse-stats {
        grid-template-columns: 1fr;
    }

    .support-simple-hero,
    .support-filters-grid,
    .support-simple-grid,
    .dashboard-clean-hero,
    .dashboard-secondary-grid,
    .dashboard-snapshot-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-hero-mini-grid {
        grid-template-columns: 1fr;
    }

    .support-simple-hero {
        flex-direction: column;
    }

    .support-minimal-header {
        flex-direction: column;
    }

    .ops-banner-actions,
    .toolbar-actions {
        justify-content: flex-start;
    }

    .navbar-search {
        min-width: 0;
        width: 100%;
    }

    .app-footer {
        left: 0;
        right: 0;
        bottom: 0;
        width: auto;
        text-align: left;
        min-height: 42px;
        padding: 7px 12px;
    }

    .app-footer-meta {
        text-align: left;
    }

    .modal-backdrop {
        padding: 14px;
        align-items: end;
    }

    .modal-card {
        width: 100%;
        max-height: 92vh;
        border-radius: 20px 20px 0 0;
    }
}

@media (max-width: 640px) {
    .main-panel {
        padding: 0 0 20px;
    }

    .navbar-shell,
    .content-shell {
        padding-left: 0;
        padding-right: 0;
    }

    .navbar {
        padding-left: 12px;
        padding-right: 12px;
    }

    .navbar,
    .hero-card,
    .panel-card,
    .metric-card,
    .mini-card,
    .auth-card {
        padding: 14px;
    }

    .staff-member-cell {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .staff-avatar {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        font-size: 15px;
    }

    .billing-tenant-cell {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .billing-tenant-avatar {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        font-size: 15px;
    }

    .dashboard-clean-hero,
    .dashboard-focus-card,
    .dashboard-snapshot-card,
    .dashboard-core-card {
        padding: 16px;
    }

    .dashboard-clean-copy h3 {
        font-size: 26px;
    }

    .data-table {
        min-width: 640px;
    }
}

.dashboard-ops-shell {
    display: grid;
    gap: 18px;
}

.dashboard-ops-hero,
.dashboard-surface-card,
.dashboard-stat-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.dashboard-ops-hero {
    padding: 24px 26px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.dashboard-ops-copy {
    display: grid;
    gap: 8px;
}

.dashboard-ops-copy h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.dashboard-ops-copy p,
.dashboard-surface-copy,
.dashboard-stat-card small,
.dashboard-model-name small {
    color: var(--muted);
}

.dashboard-ops-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.dashboard-tone-chip.is-success,
.dashboard-surface-chip.is-success {
    color: #137e45;
    background: rgba(31, 179, 93, 0.12);
    border-color: rgba(31, 179, 93, 0.18);
}

.dashboard-tone-chip.is-warning,
.dashboard-surface-chip.is-warning {
    color: #ad6e04;
    background: rgba(245, 181, 47, 0.16);
    border-color: rgba(245, 181, 47, 0.24);
}

.dashboard-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
}

.dashboard-stat-card {
    padding: 20px;
    display: grid;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.dashboard-stat-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #1fb35d 0%, #4d88ff 100%);
}

.dashboard-stat-label {
    color: #6c7f95;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.dashboard-stat-card strong {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1;
    letter-spacing: -0.06em;
}

.dashboard-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.9fr);
    gap: 18px;
}

.dashboard-surface-card {
    padding: 22px;
    display: grid;
    gap: 18px;
}

.dashboard-surface-card-compact {
    align-content: start;
}

.dashboard-surface-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.dashboard-surface-head h3 {
    margin: 4px 0 0;
    font-size: 1.5rem;
    letter-spacing: -0.04em;
}

.dashboard-surface-chip {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.dashboard-model-table th:nth-child(1) {
    min-width: 220px;
}

.dashboard-model-name {
    display: grid;
    gap: 6px;
}

.dashboard-detail-list {
    display: grid;
    gap: 12px;
}

.dashboard-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(246, 250, 247, 0.9);
    border: 1px solid #e6edf3;
}

.dashboard-detail-row span {
    color: var(--muted);
}

.dashboard-detail-row strong {
    font-size: 1rem;
    letter-spacing: -0.03em;
}

html[data-theme="dark"] .dashboard-ops-hero,
html[data-theme="dark"] .dashboard-surface-card,
html[data-theme="dark"] .dashboard-stat-card {
    background: linear-gradient(180deg, #0f1722 0%, #122031 100%);
    border-color: var(--border);
}

html[data-theme="dark"] .dashboard-ops-copy p,
html[data-theme="dark"] .dashboard-surface-copy,
html[data-theme="dark"] .dashboard-stat-card small,
html[data-theme="dark"] .dashboard-model-name small,
html[data-theme="dark"] .dashboard-detail-row span,
html[data-theme="dark"] .dashboard-stat-label {
    color: var(--muted);
}

html[data-theme="dark"] .dashboard-detail-row {
    background: #111c2a;
    border-color: #1c2a3a;
}

@media (max-width: 980px) {
    .dashboard-ops-hero,
    .dashboard-surface-head {
        flex-direction: column;
    }

    .dashboard-ops-badges {
        justify-content: flex-start;
    }

    .dashboard-overview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .dashboard-ops-hero,
    .dashboard-surface-card,
    .dashboard-stat-card {
        padding: 16px;
    }

    .dashboard-ops-copy h2 {
        font-size: 2rem;
    }

    .dashboard-detail-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

.nav-group a,
.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-icon,
.menu-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-icon svg,
.menu-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.nav-group a.active .nav-icon,
.nav-group a:hover .nav-icon,
.profile-menu-item:hover .menu-icon {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* ============================================================
   Phase-6 admin module utility classes
   ============================================================ */

/* page-header — used by all 7 new modules */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}
.page-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 4px 0 6px;
    color: var(--heading);
}
.page-header p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}
.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* stat-strip — compact 4-up KPI row */
.stat-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}
.stat-strip-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.stat-strip-card strong {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--heading);
    line-height: 1;
}
.stat-strip-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}
.stat-strip-card.is-success { border-left: 3px solid var(--green); }
.stat-strip-card.is-warning { border-left: 3px solid var(--yellow); }
.stat-strip-card.is-danger  { border-left: 3px solid var(--red); }

/* overview-grid — two column layout */
.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: flex-start;
}
@media (max-width: 900px) {
    .overview-grid { grid-template-columns: 1fr; }
}

/* surface-card — card inside the content area */
.surface-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}
.surface-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.surface-head h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--heading);
    margin: 4px 0 4px;
}
.surface-head p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* alert-banner — inline coloured alert strip */
.alert-banner {
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    border-left: 4px solid transparent;
}
.alert-banner.is-warning {
    background: rgba(255, 207, 45, 0.12);
    border-left-color: var(--yellow);
    color: #92740d;
}
.alert-banner.is-error {
    background: rgba(239, 68, 68, 0.1);
    border-left-color: var(--red);
    color: #b91c1c;
}
.alert-banner.is-info {
    background: rgba(59, 130, 246, 0.1);
    border-left-color: #3b82f6;
    color: #1e40af;
}
html[data-theme="dark"] .alert-banner.is-warning { color: #fde68a; }
html[data-theme="dark"] .alert-banner.is-error   { color: #fca5a5; }
html[data-theme="dark"] .alert-banner.is-info    { color: #93c5fd; }

/* status-pill variants */
.status-pill.is-neutral {
    background: var(--surface-2, var(--surface));
    color: var(--text-muted);
}
.status-pill.is-success {
    background: rgba(34,197,94,0.14);
    color: #15803d;
}
.status-pill.is-error {
    background: rgba(239,68,68,0.12);
    color: #dc2626;
}
html[data-theme="dark"] .status-pill.is-success { color: #86efac; }
html[data-theme="dark"] .status-pill.is-error { color: #fca5a5; }

.billing-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.billing-plan-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.billing-plan-top,
.billing-plan-rate-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.billing-plan-top strong {
    display: block;
    font-size: 18px;
}

.billing-plan-top span:not(.status-pill) {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.billing-plan-price {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.billing-plan-rate-list {
    display: grid;
    gap: 10px;
}

.billing-plan-rate-list span {
    color: var(--muted);
    font-size: 13px;
}

.billing-module-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.billing-module-pill {
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green-strong);
    border: 1px solid rgba(31, 179, 93, 0.15);
    font-size: 12px;
    font-weight: 700;
}

.billing-mini-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.billing-mini-metric {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--surface-soft);
}

.billing-mini-metric span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 8px;
}

.billing-mini-metric strong {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

@media (max-width: 900px) {
    .billing-mini-metrics {
        grid-template-columns: 1fr;
    }
}
