:root {
    --nv-bg: #eef6ff;
    --nv-bg-soft: #f6fbff;
    --nv-surface: rgba(255, 255, 255, 0.92);
    --nv-surface-strong: #ffffff;
    --nv-border: #cfe3f7;
    --nv-border-strong: #b7d8f3;
    --nv-blue-950: #08203c;
    --nv-blue-900: #0b2b50;
    --nv-blue-850: #0f3765;
    --nv-blue-800: #124a83;
    --nv-blue-700: #1769b1;
    --nv-blue-600: #1f88db;
    --nv-cyan: #14d8ff;
    --nv-cyan-strong: #00bfff;
    --nv-text: #173452;
    --nv-text-soft: #5c7390;
    --nv-shadow: 0 20px 55px rgba(10, 64, 110, 0.12);
    --nv-shadow-soft: 0 10px 30px rgba(12, 68, 116, 0.08);
    --nv-radius: 18px;
}

html, body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 85% 5%, rgba(20, 216, 255, 0.11), transparent 26rem),
        radial-gradient(circle at 15% 25%, rgba(31, 136, 219, 0.08), transparent 24rem),
        linear-gradient(180deg, var(--nv-bg-soft) 0%, var(--nv-bg) 100%);
    color: var(--nv-text);
}

body {
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, textarea {
    font: inherit;
}

.site-shell {
    display: flex;
    min-height: 100vh;
}

.side-panel {
    position: fixed;
    inset: 0 auto 0 0;
    width: 278px;
    display: flex;
    flex-direction: column;
    padding: 24px 18px;
    box-sizing: border-box;
    background:
        radial-gradient(circle at 15% 0%, rgba(20, 216, 255, 0.18), transparent 20rem),
        linear-gradient(180deg, #0d315b 0%, #092541 100%);
    color: #f1f8ff;
    box-shadow: 14px 0 45px rgba(6, 39, 70, 0.16);
    z-index: 20;
}

.brand-block {
    padding: 2px 8px 22px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-emblem {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: 
        drop-shadow(0 0 5px rgba(137, 226, 255, 0.55)) 
        drop-shadow(0 0 14px rgba(20, 216, 255, 0.28));
}

.brand-wordmark {
    display: flex;
    flex-direction: column;
    line-height: 1;
    letter-spacing: 0.18em;
    font-size: 13px;
}

.brand-wordmark strong {
    font-size: 16px;
    letter-spacing: 0.14em;
}

.brand-wordmark span {
    margin-top: 6px;
    color: #74dfff;
    font-size: 11px;
}

.brand-tagline {
    margin-top: 13px;
    font-size: 9px;
    letter-spacing: 0.24em;
    color: rgba(215, 237, 255, 0.58);
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 20px 0;
    overflow-y: auto;
}

.nav-group-label {
    padding: 10px 11px 8px;
    font-size: 9px;
    letter-spacing: 0.22em;
    font-weight: 700;
    color: rgba(208, 235, 255, 0.42);
}

.nav-group-spaced {
    margin-top: 8px;
}

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: rgba(236, 247, 255, 0.82);
    font-size: 13px;
    font-weight: 600;
    transition: 160ms ease;
}

.nav-link:hover {
    background: rgba(255,255,255,0.055);
    border-color: rgba(255,255,255,0.07);
    color: #fff;
}

.nav-link.active {
    background: linear-gradient(90deg, rgba(20, 216, 255, 0.14), rgba(31, 136, 219, 0.12));
    border-color: rgba(20, 216, 255, 0.24);
    color: #fff;
    box-shadow: inset 0 0 28px rgba(20,216,255,0.04);
}

.nav-link.active::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 9px;
    bottom: 9px;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: var(--nv-cyan);
    box-shadow: 0 0 14px rgba(20,216,255,0.8);
}

.nav-icon {
    width: 23px;
    text-align: center;
    color: #74dfff;
    font-size: 16px;
}

.side-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 14px 11px 4px;
    color: rgba(216, 239, 255, 0.62);
    font-size: 11px;
}

.status-dot,
.signal-dot {
    width: 8px;
    height: 8px;
    display: inline-block;
    flex: none;
    border-radius: 50%;
    background: #45f3c0;
    box-shadow: 0 0 12px rgba(69,243,192,0.8);
}

.main-column {
    min-width: 0;
    flex: 1;
    margin-left: 278px;
}

.top-bar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 0 38px;
    border-bottom: 1px solid rgba(19, 91, 150, 0.10);
    background: rgba(246, 251, 255, 0.80);
    backdrop-filter: blur(14px);
}

.eyebrow {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--nv-blue-600);
}

.top-bar-title {
    margin-left: 12px;
    color: #7a8ea4;
    font-size: 12px;
}

.top-bar-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.signal-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border: 1px solid #c7e8e0;
    border-radius: 999px;
    background: rgba(255,255,255,0.74);
    color: #2d7e6b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.main-content {
    width: min(1440px, calc(100% - 48px));
    margin: 0 auto;
    padding: 34px 0 24px;
}

.page-shell {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.narrow-page {
    max-width: 1060px;
}

.page-header {
    padding: 8px 4px 4px;
}

.page-header h1 {
    margin: 8px 0 4px;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--nv-blue-950);
}

.page-header p {
    margin: 0;
    max-width: 760px;
    color: var(--nv-text-soft);
    font-size: 15px;
    line-height: 1.7;
}

.hero-card {
    position: relative;
    overflow: hidden;
    min-height: 430px;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
    align-items: center;
    gap: 24px;
    padding: 48px 52px;
    border: 1px solid rgba(52, 138, 203, 0.18);
    border-radius: 28px;
    background:
        radial-gradient(circle at 78% 45%, rgba(20, 216, 255, 0.16), transparent 18rem),
        linear-gradient(135deg, rgba(255,255,255,0.96), rgba(226,243,255,0.88));
    box-shadow: var(--nv-shadow);
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.34;
    background-image:
        linear-gradient(rgba(31,136,219,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31,136,219,0.08) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,0.75) 42%, transparent 78%);
}

.hero-copy, .hero-emblem-wrap {
    position: relative;
    z-index: 1;
}

.hero-kicker {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    color: #2a708e;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.2em;
}

.hero-copy h1 {
    max-width: 720px;
    margin: 0;
    color: var(--nv-blue-950);
    font-size: clamp(2.8rem, 5.2vw, 5.5rem);
    line-height: 0.96;
    letter-spacing: -0.055em;
}

.hero-copy h1 span {
    color: var(--nv-blue-600);
    text-shadow: 0 0 32px rgba(20,216,255,0.15);
}

.hero-lead {
    max-width: 640px;
    margin: 24px 0 30px;
    color: var(--nv-text-soft);
    font-size: 17px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-emblem-wrap {
    display: grid;
    place-items: center;
    min-height: 330px;
}

.hero-emblem-glow {
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(20,216,255,0.28), rgba(31,136,219,0.10) 46%, transparent 72%);
    filter: blur(12px);
}

.hero-emblem {
    position: relative;
    width: min(340px, 80%);
    height: auto;
    filter: drop-shadow(0 22px 32px rgba(10, 76, 125, 0.20));
}

.nv-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid var(--nv-border-strong);
    background: rgba(255,255,255,0.86);
    color: var(--nv-blue-800);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    box-shadow: 0 8px 22px rgba(18, 74, 131, 0.08);
    cursor: pointer;
    transition: 160ms ease;
}

.nv-button:hover {
    transform: translateY(-1px);
    border-color: rgba(20,216,255,0.54);
    box-shadow: 0 10px 26px rgba(18, 74, 131, 0.12);
}

.nv-button-primary {
    border-color: #147fd0;
    background: linear-gradient(135deg, #1769b1, #1f93e6);
    color: #fff;
    box-shadow: 0 12px 28px rgba(21, 103, 173, 0.25), 0 0 26px rgba(20,216,255,0.12);
}

.nv-button-secondary {
    background: rgba(255,255,255,0.65);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 16px;
    margin-top: 18px;
}

.stat-card,
.panel-card {
    position: relative;
    padding: 22px;
    border: 1px solid var(--nv-border);
    border-radius: var(--nv-radius);
    background: var(--nv-surface);
    box-shadow: var(--nv-shadow-soft);
}

.stat-card {
    min-height: 124px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-label {
    color: #6d84a1;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.2em;
}

.stat-card strong {
    margin-top: 12px;
    font-size: 22px;
    color: var(--nv-blue-950);
}

.stat-meta {
    margin-top: 4px;
    color: var(--nv-text-soft);
    font-size: 12px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 18px;
    margin-top: 18px;
}

.three-column {
    grid-template-columns: repeat(3, minmax(0,1fr));
    margin-top: 0;
}

.panel-card h2 {
    margin: 8px 0 8px;
    color: var(--nv-blue-950);
    font-size: 22px;
}

.panel-card p {
    margin: 0;
    color: var(--nv-text-soft);
    line-height: 1.7;
}

.panel-card-feature {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.panel-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    flex: none;
    border: 1px solid rgba(20,216,255,0.22);
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(31,136,219,0.08), rgba(20,216,255,0.08));
    color: var(--nv-cyan-strong);
    font-size: 19px;
}

.text-link {
    display: inline-flex;
    margin-top: 16px;
    color: var(--nv-blue-600);
    font-size: 12px;
    font-weight: 800;
}

.text-link:hover {
    color: var(--nv-cyan-strong);
}

.metric-panel {
    min-height: 152px;
    display: flex;
    flex-direction: column;
}

.metric-panel strong {
    margin-top: 10px;
    color: var(--nv-blue-950);
    font-size: 24px;
}

.metric-panel p {
    margin-top: 12px;
    font-size: 13px;
}

.metric-accent {
    display: block;
    width: 80px;
    height: 3px;
    margin-top: 10px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--nv-blue-600), var(--nv-cyan));
    box-shadow: 0 0 14px rgba(20,216,255,0.35);
}

.table-card {
    overflow: hidden;
    padding: 0;
}

.table-header, .table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 0.8fr;
    gap: 12px;
    align-items: center;
    padding: 16px 18px;
    font-size: 12px;
}

.table-header {
    color: #6e849d;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: rgba(232,245,255,0.7);
}

.table-row {
    border-top: 1px solid rgba(29, 101, 157, 0.08);
    color: var(--nv-text-soft);
}

.table-row > span:first-child {
    color: var(--nv-text);
    font-weight: 700;
}

.tag {
    justify-self: start;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.tag.success {
    color: #1a785f;
    background: #e6faf4;
    border: 1px solid #c9efe4;
}

.tag.neutral {
    color: #5f738c;
    background: #edf3f8;
    border: 1px solid #dce6ef;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 18px;
}

.status-list {
    padding: 8px 18px;
}

.status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 0;
    border-bottom: 1px solid rgba(29, 101, 157, 0.08);
    color: var(--nv-text-soft);
    font-size: 13px;
}

.status-row:last-child {
    border-bottom: 0;
}

.status-row span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--nv-text);
    font-weight: 650;
}

.status-row strong {
    color: #2e876f;
    font-size: 12px;
}

.prose-card {
    max-width: 900px;
}

.prose-card h2 {
    margin-top: 24px;
}

.prose-card h2:first-child {
    margin-top: 0;
}

.feature-list {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.feature-list > div {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(29, 101, 157, 0.08);
    border-radius: 12px;
    background: #f8fcff;
    color: var(--nv-text);
    font-size: 13px;
    font-weight: 700;
}

.feature-mark {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    color: var(--nv-blue-700);
    background: #e7f5ff;
    font-size: 9px;
    letter-spacing: 0.08em;
}

.form-card {
    max-width: 930px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 16px;
}

.form-grid label {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-grid label span {
    color: #65809b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.form-grid .full-width {
    grid-column: 1 / -1;
}

.form-grid input,
.form-grid textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--nv-border);
    border-radius: 12px;
    outline: none;
    background: rgba(255,255,255,0.95);
    color: var(--nv-text);
    padding: 12px 13px;
    transition: 160ms ease;
}

.form-grid input:focus,
.form-grid textarea:focus {
    border-color: rgba(20,216,255,0.68);
    box-shadow: 0 0 0 4px rgba(20,216,255,0.10);
}

.form-card .nv-button {
    margin-top: 18px;
}

.notice-success {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid #c9efe4;
    border-radius: 13px;
    background: #eefbf7;
    color: #2b6d5c;
    font-size: 12px;
}

.empty-state {
    display: flex;
    min-height: 360px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 28px;
    border: 1px dashed #bcd9ee;
    border-radius: var(--nv-radius);
    background: rgba(255,255,255,0.62);
}

.empty-state.compact {
    min-height: 300px;
}

.empty-state-icon {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 24px;
    background: linear-gradient(145deg, #e7f5ff, #f7fdff);
    border: 1px solid #cfe7fa;
    color: var(--nv-blue-600);
    font-weight: 900;
    letter-spacing: 0.05em;
    box-shadow: 0 0 35px rgba(20,216,255,0.10);
}

.empty-state h1,
.empty-state h2 {
    margin: 0;
    color: var(--nv-blue-950);
}

.empty-state p {
    max-width: 590px;
    margin: 10px 0 18px;
    color: var(--nv-text-soft);
    line-height: 1.7;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 38px 28px;
    color: #7890aa;
    font-size: 11px;
}

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-links a:hover {
    color: var(--nv-blue-600);
}

@media (max-width: 1080px) {
    .side-panel {
        width: 228px;
    }

    .main-column {
        margin-left: 228px;
    }

    .top-bar, .site-footer {
        padding-left: 26px;
        padding-right: 26px;
    }

    .main-content {
        width: min(100% - 36px, 1280px);
    }

    .hero-card {
        padding: 38px;
        grid-template-columns: minmax(0,1fr) 260px;
    }
}

@media (max-width: 820px) {
    .side-panel {
        position: static;
        width: 100%;
        min-height: auto;
    }

    .site-shell {
        display: block;
    }

    .main-column {
        margin-left: 0;
    }

    .side-nav {
        display: grid;
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 4px;
        max-height: none;
    }

    .nav-group-label {
        grid-column: 1 / -1;
    }

    .nav-group-spaced {
        margin-top: 4px;
    }

    .hero-card,
    .content-grid,
    .three-column,
    .stat-grid,
    .settings-grid {
        grid-template-columns: 1fr;
    }

    .hero-emblem-wrap {
        min-height: 240px;
    }

    .top-bar {
        position: static;
    }
}

@media (max-width: 560px) {
    .top-bar-title {
        display: none;
    }

    .main-content {
        width: min(100% - 24px, 100%);
        padding-top: 20px;
    }

    .top-bar, .site-footer {
        padding-left: 14px;
        padding-right: 14px;
    }

    .hero-card {
        padding: 28px 22px;
        border-radius: 22px;
    }

    .hero-copy h1 {
        font-size: 3rem;
    }

    .table-card {
        overflow-x: auto;
    }

    .table-header, .table-row {
        min-width: 700px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-grid .full-width {
        grid-column: auto;
    }
}
