:root {
    --bg: #161311;
    --bg-alt: #211c19;
    --panel: rgba(37, 31, 27, 0.92);
    --panel-strong: #2b241f;
    --line: rgba(255, 231, 209, 0.12);
    --line-strong: rgba(255, 231, 209, 0.24);
    --text: #f7efe5;
    --muted: #c7b5a4;
    --accent: #f08a24;
    --accent-soft: rgba(240, 138, 36, 0.16);
    --danger: #dd5a44;
    --danger-soft: rgba(221, 90, 68, 0.16);
    --info: #5fa7d4;
    --info-soft: rgba(95, 167, 212, 0.16);
    --success: #6aa676;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    --radius: 18px;
    --radius-sm: 12px;
    --font-ui: "Segoe UI", "Trebuchet MS", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 231, 209, 0.25) transparent;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(255, 231, 209, 0.25);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 231, 209, 0.4);
}

body {
    margin: 0;
    font-family: var(--font-ui);
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(240, 138, 36, 0.18), transparent 25%),
        linear-gradient(135deg, #140f0d 0%, #171311 35%, #0d0a09 100%);
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), transparent 70%);
}

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

code {
    font-family: Consolas, "Liberation Mono", monospace;
    padding: 0.15rem 0.35rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
}

.top-banner {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 0.9rem 1.2rem;
    text-align: center;
    background: linear-gradient(90deg, rgba(221, 90, 68, 0.92), rgba(240, 138, 36, 0.92));
    color: #fff8f2;
}

.shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
    height: 100vh;
    overflow-y: auto;
    padding: 1.5rem;
    background: rgba(20, 17, 15, 0.92);
    border-right: 1px solid var(--line);
    backdrop-filter: blur(14px);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 231, 209, 0.25) transparent;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(255, 231, 209, 0.25);
    border-radius: 999px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 231, 209, 0.4);
}

.brand,
.auth-brand {
    display: grid;
    gap: 0.35rem;
}

.brand__eyebrow,
.auth-brand__eyebrow,
.page-head__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.74rem;
    color: var(--muted);
}

.brand__title,
.auth-brand h1 {
    font-size: 1.7rem;
    line-height: 1.05;
}

.nav {
    display: grid;
    gap: 1.1rem;
    flex-shrink: 0;
}

.nav__group {
    display: grid;
    gap: 0.35rem;
}

.nav__group-label {
    padding: 0 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    opacity: 0.6;
}

.sidebar__footer {
    flex-shrink: 0;
}

.nav__link {
    display: block;
    padding: 0.7rem 1rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.02);
    font-size: 0.92rem;
    transition: 0.18s ease;
}

.nav__link:hover,
.nav__link.is-active {
    color: var(--text);
    border-color: var(--line-strong);
    background: linear-gradient(180deg, rgba(240, 138, 36, 0.14), rgba(255, 255, 255, 0.03));
}

.sidebar__footer {
    display: grid;
    gap: 0.9rem;
}

.user-card {
    display: grid;
    gap: 0.25rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
}

.user-card__label {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
}

.main {
    padding: 1.5rem;
}

.page-head {
    margin-bottom: 1.2rem;
    padding: 1.2rem 1.4rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(240, 138, 36, 0.08), rgba(255, 255, 255, 0.02));
    box-shadow: var(--shadow);
}

.page-head h1,
.panel h2,
.empty-state h3,
.auth-panel h2 {
    margin: 0;
}

.page-head p,
.panel__lead,
.auth-brand p,
.empty-state p {
    color: var(--muted);
}

.panel,
.stat-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.panel {
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.panel--error {
    border-color: rgba(221, 90, 68, 0.4);
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-card {
    padding: 1.2rem;
    display: grid;
    gap: 0.5rem;
}

.stat-card__label {
    color: var(--muted);
}

.stat-card__value {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1;
}

.stat-card__link {
    color: var(--accent);
}

.filters,
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.9rem;
}

.filters__actions {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.field {
    display: grid;
    gap: 0.45rem;
}

.field__label {
    font-size: 0.86rem;
    color: var(--muted);
}

.field__control {
    width: 100%;
    min-height: 44px;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: rgba(10, 8, 7, 0.35);
    color: var(--text);
    outline: none;
}

.field__control:focus {
    border-color: rgba(240, 138, 36, 0.72);
    box-shadow: 0 0 0 3px rgba(240, 138, 36, 0.16);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(240, 138, 36, 0.45);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(240, 138, 36, 0.95), rgba(196, 92, 18, 0.95));
    color: #fff7ef;
    cursor: pointer;
}

.button:hover {
    filter: brightness(1.05);
}

.button--ghost {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.button--block {
    width: 100%;
}

.alert {
    margin-bottom: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 12px;
    border: 1px solid transparent;
}

.alert--error {
    background: var(--danger-soft);
    border-color: rgba(221, 90, 68, 0.42);
}

.meta-pill,
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    font-size: 0.82rem;
    white-space: nowrap;
}

.badge {
    background: rgba(255, 255, 255, 0.04);
}

.badge--danger {
    background: var(--danger-soft);
    border-color: rgba(221, 90, 68, 0.42);
}

.badge--warning {
    background: var(--accent-soft);
    border-color: rgba(240, 138, 36, 0.45);
}

.badge--info {
    background: var(--info-soft);
    border-color: rgba(95, 167, 212, 0.42);
}

.badge--success {
    background: rgba(106, 166, 118, 0.16);
    border-color: rgba(106, 166, 118, 0.42);
}

.money-change {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.money--pos  { color: var(--success); }
.money--neg  { color: var(--danger); }
.money--zero { color: var(--muted); }

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.85rem 0.9rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}

.table th {
    position: sticky;
    top: 0;
    background: rgba(27, 22, 19, 0.98);
    color: #f1d8bf;
    font-weight: 600;
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.table-sort-link {
    color: inherit;
    white-space: nowrap;
}

.table-sort-link:hover {
    color: var(--accent);
}

.table-link {
    color: #ffcf93;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.table-link:hover {
    color: #ffd9ab;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.info-list {
    display: grid;
    gap: 0.75rem;
}

.info-list div {
    display: grid;
    gap: 0.2rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.info-list span,
.stat-card__meta {
    color: var(--muted);
    font-size: 0.88rem;
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.pagination__link {
    min-width: 42px;
    min-height: 42px;
    padding: 0.65rem 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.03);
}

.pagination__link.is-active {
    background: var(--accent-soft);
    border-color: rgba(240, 138, 36, 0.48);
}

.playtime-chart {
    display: grid;
    gap: .45rem;
}

.playtime-day {
    display: grid;
    grid-template-columns: 2rem 1fr 6rem;
    align-items: center;
    gap: .75rem;
}

.playtime-day--today .playtime-day__label {
    color: var(--accent);
    font-weight: 700;
}

.playtime-day__label {
    font-size: .88rem;
    color: var(--muted);
    text-align: right;
}

.playtime-day__track {
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.playtime-day__bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), #f0a24a);
    min-width: 2px;
    transition: width .3s ease;
}

.playtime-day--today .playtime-day__bar {
    background: linear-gradient(90deg, var(--success), #8fce9c);
}

.playtime-day__time {
    font-size: .86rem;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.playtime-day--today .playtime-day__time {
    color: var(--text);
    font-weight: 600;
}

.empty-state {
    padding: 2rem 1rem;
    text-align: center;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-sm);
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
}

.auth-shell__inner {
    width: min(960px, 100%);
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 420px);
    gap: 1.25rem;
    align-items: center;
}

.auth-panel {
    padding: 1.5rem;
}

.exception-box__trace {
    margin: 1rem 0 0;
    padding: 1rem;
    overflow-x: auto;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--line);
    color: #ffd7cb;
}

@media (max-width: 980px) {
    .shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

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

    .profile-grid,
    .property-grid {
        grid-template-columns: 1fr;
    }

    .auth-shell__inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .main,
    .sidebar {
        padding: 1rem;
    }

    .panel,
    .page-head {
        padding: 1rem;
    }

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

    .filters__actions {
        flex-direction: column;
        align-items: stretch;
    }
}


.table--wide {
    min-width: 1280px;
}

.muted,
small {
    color: var(--muted);
}

.cell-stack,
.log-code {
    display: grid;
    gap: 0.22rem;
}

.log-code strong {
    font-weight: 600;
}

.log-code code,
.operation-link code {
    width: fit-content;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #f4c792;
}

.operation-link:hover code {
    color: #ffe1bd;
    background: rgba(240, 138, 36, 0.18);
}

.value-transition,
.route-flow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    font-variant-numeric: tabular-nums;
}

.value-transition b,
.route-flow b {
    color: var(--accent);
}

.route-flow {
    min-width: 240px;
}

.details-cell {
    max-width: 520px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.operation-summary {
    background: linear-gradient(135deg, rgba(240, 138, 36, 0.14), rgba(37, 31, 27, 0.94));
}

.operation-id-full {
    margin-bottom: 1rem;
}

.operation-id-full code {
    display: block;
    width: 100%;
    padding: 0.85rem 1rem;
    overflow-wrap: anywhere;
    border: 1px solid var(--line-strong);
    background: rgba(10, 8, 7, 0.42);
}

/* === Operations Center + Premium Black (2026-09-23) === */
:root {
    --bg: #07090d;
    --bg-alt: #0b0e14;
    --panel: rgba(14, 18, 26, 0.96);
    --panel-strong: #111722;
    --line: rgba(148, 163, 184, 0.12);
    --line-strong: rgba(167, 139, 250, 0.26);
    --text: #f4f7fb;
    --muted: #8d98aa;
    --accent: #8b5cf6;
    --accent-soft: rgba(139, 92, 246, 0.14);
    --danger: #fb7185;
    --danger-soft: rgba(251, 113, 133, 0.12);
    --info: #38bdf8;
    --info-soft: rgba(56, 189, 248, 0.12);
    --success: #34d399;
    --shadow: 0 16px 42px rgba(0, 0, 0, 0.32);
    --radius: 13px;
    --radius-sm: 9px;
}

html { scrollbar-color: rgba(139, 92, 246, 0.34) transparent; }
::-webkit-scrollbar-thumb { background-color: rgba(139, 92, 246, 0.34); }
::-webkit-scrollbar-thumb:hover { background-color: rgba(139, 92, 246, 0.52); }

body {
    background:
        radial-gradient(circle at 80% -10%, rgba(124, 58, 237, 0.13), transparent 31%),
        radial-gradient(circle at 18% 110%, rgba(37, 99, 235, 0.07), transparent 34%),
        linear-gradient(160deg, #07090d 0%, #090c12 46%, #05070a 100%);
}
body::before {
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.015) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 78%);
}

.shell { grid-template-columns: 236px minmax(0, 1fr); }
.sidebar {
    gap: 1rem;
    padding: 1.1rem 0.9rem;
    background: rgba(6, 8, 12, 0.97);
    border-right-color: rgba(148, 163, 184, 0.1);
    backdrop-filter: blur(18px);
}
.brand { padding: 0.2rem 0.45rem 0.95rem; border-bottom: 1px solid var(--line); }
.brand__eyebrow { color: #a78bfa; }
.brand__title { font-size: 1.35rem; letter-spacing: -0.02em; }
.nav { gap: 0.85rem; }
.nav__group { gap: 0.18rem; }
.nav__group-label { padding: 0 0.5rem 0.15rem; font-size: 0.64rem; letter-spacing: 0.14em; }

.nav__link {
    padding: 0.56rem 0.7rem;
    border-radius: 8px;
    background: transparent;
    font-size: 0.86rem;
    color: #8994a6;
}
.nav__link:hover {
    color: #dbe3ef;
    border-color: rgba(148, 163, 184, 0.12);
    background: rgba(148, 163, 184, 0.045);
}
.nav__link.is-active {
    color: #f7f5ff;
    border-color: rgba(139, 92, 246, 0.24);
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.18), rgba(139, 92, 246, 0.045));
    box-shadow: inset 3px 0 0 #8b5cf6;
}
.user-card {
    padding: 0.8rem;
    background: rgba(148, 163, 184, 0.035);
    border-color: var(--line);
}
.main { padding: 1.15rem 1.3rem 2rem; }
.page-head {
    margin-bottom: 0.85rem;
    padding: 0.9rem 1.05rem;
    border-radius: 12px;
    background: linear-gradient(100deg, rgba(139, 92, 246, 0.09), rgba(14, 18, 26, 0.96) 35%);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}
.page-head::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, #a78bfa, #6d28d9);
}
.page-head h1 { font-size: clamp(1.35rem, 2vw, 1.9rem); letter-spacing: -0.025em; }
.page-head__eyebrow { color: #a78bfa; font-size: 0.65rem; }

.panel,
.stat-card {
    border-color: var(--line);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(17, 22, 32, 0.97), rgba(10, 14, 21, 0.97));
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.23);
}
.panel { padding: 1rem; margin-bottom: 0.78rem; }
.section-head { margin-bottom: 0.75rem; }
.section-head h2,
.panel h2 { font-size: 1.05rem; letter-spacing: -0.01em; }
.panel__lead { margin: 0.3rem 0 0; font-size: 0.86rem; }
.stats-grid { gap: 0.75rem; margin-bottom: 0.78rem; }
.stat-card { padding: 0.95rem; gap: 0.34rem; min-width: 0; }
.stat-card__label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.055em; }
.stat-card__value {
    font-size: clamp(1.6rem, 2.4vw, 2.15rem);
    letter-spacing: -0.035em;
    font-variant-numeric: tabular-nums;
    overflow: hidden;
    text-overflow: ellipsis;
}
.stat-card__meta { font-size: 0.76rem; }
:root {
    --bg: #07090d;
    --bg-alt: #0b0e14;
    --panel: rgba(14, 18, 26, 0.96);
    --panel-strong: #111722;
    --line: rgba(148, 163, 184, 0.12);
    --line-strong: rgba(167, 139, 250, 0.26);
    --text: #f4f7fb;
    --muted: #8d98aa;
    --accent: #8b5cf6;
    --accent-soft: rgba(139, 92, 246, 0.14);
    --danger: #fb7185;
    --danger-soft: rgba(251, 113, 133, 0.12);
    --info: #38bdf8;
    --info-soft: rgba(56, 189, 248, 0.12);
    --success: #34d399;
    --shadow: 0 16px 42px rgba(0, 0, 0, 0.32);
    --radius: 13px;
    --radius-sm: 9px;
}
html { scrollbar-color: rgba(139, 92, 246, 0.34) transparent; }
::-webkit-scrollbar-thumb { background-color: rgba(139, 92, 246, 0.34); }
::-webkit-scrollbar-thumb:hover { background-color: rgba(139, 92, 246, 0.52); }

body {
    background:
        radial-gradient(circle at 80% -10%, rgba(124, 58, 237, 0.13), transparent 31%),
        radial-gradient(circle at 18% 110%, rgba(37, 99, 235, 0.07), transparent 34%),
        linear-gradient(160deg, #07090d 0%, #090c12 46%, #05070a 100%);
}
body::before {
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.015) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 78%);
}

.shell { grid-template-columns: 236px minmax(0, 1fr); }
.sidebar {
    gap: 1rem;
    padding: 1.1rem 0.9rem;
    background: rgba(6, 8, 12, 0.97);
    border-right-color: rgba(148, 163, 184, 0.1);
    backdrop-filter: blur(18px);
}
.brand { padding: 0.2rem 0.45rem 0.95rem; border-bottom: 1px solid var(--line); }
.brand__eyebrow { color: #a78bfa; }
.brand__title { font-size: 1.35rem; letter-spacing: -0.02em; }
.nav { gap: 0.85rem; }
.nav__group { gap: 0.18rem; }
.nav__group-label { padding: 0 0.5rem 0.15rem; font-size: 0.64rem; letter-spacing: 0.14em; }

.nav__link {
    padding: 0.56rem 0.7rem;
    border-radius: 8px;
    background: transparent;
    font-size: 0.86rem;
    color: #8994a6;
}
.nav__link:hover {
    color: #dbe3ef;
    border-color: rgba(148, 163, 184, 0.12);
    background: rgba(148, 163, 184, 0.045);
}
.nav__link.is-active {
    color: #f7f5ff;
    border-color: rgba(139, 92, 246, 0.24);
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.18), rgba(139, 92, 246, 0.045));
    box-shadow: inset 3px 0 0 #8b5cf6;
}
.user-card {
    padding: 0.8rem;
    background: rgba(148, 163, 184, 0.035);
    border-color: var(--line);
}
.main { padding: 1.15rem 1.3rem 2rem; }
.page-head {
    margin-bottom: 0.85rem;
    padding: 0.9rem 1.05rem;
    border-radius: 12px;
    background: linear-gradient(100deg, rgba(139, 92, 246, 0.09), rgba(14, 18, 26, 0.96) 35%);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}
.page-head::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, #a78bfa, #6d28d9);
}
.page-head h1 { font-size: clamp(1.35rem, 2vw, 1.9rem); letter-spacing: -0.025em; }
.page-head__eyebrow { color: #a78bfa; font-size: 0.65rem; }
.panel,
.stat-card {
    border-color: var(--line);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(17, 22, 32, 0.97), rgba(10, 14, 21, 0.97));
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.23);
}
.panel { padding: 1rem; margin-bottom: 0.78rem; }
.section-head { margin-bottom: 0.75rem; }
.section-head h2,
.panel h2 { font-size: 1.05rem; letter-spacing: -0.01em; }
.panel__lead { margin: 0.3rem 0 0; font-size: 0.86rem; }
.stats-grid { gap: 0.75rem; margin-bottom: 0.78rem; }
.stat-card { padding: 0.95rem; gap: 0.34rem; min-width: 0; }
.stat-card__label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.055em; }
.stat-card__value {
    font-size: clamp(1.6rem, 2.4vw, 2.15rem);
    letter-spacing: -0.035em;
    font-variant-numeric: tabular-nums;
    overflow: hidden;
    text-overflow: ellipsis;
}
.stat-card__meta { font-size: 0.76rem; }
html { scrollbar-color: rgba(139, 92, 246, 0.34) transparent; }
::-webkit-scrollbar-thumb { background-color: rgba(139, 92, 246, 0.34); }
::-webkit-scrollbar-thumb:hover { background-color: rgba(139, 92, 246, 0.52); }

body {
    background:
        radial-gradient(circle at 80% -10%, rgba(124, 58, 237, 0.13), transparent 31%),
        radial-gradient(circle at 18% 110%, rgba(37, 99, 235, 0.07), transparent 34%),
        linear-gradient(160deg, #07090d 0%, #090c12 46%, #05070a 100%);
}
body::before {
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.015) 1px, transparent 1px);
    background-size: 28px 28px;
}
.shell { grid-template-columns: 236px minmax(0, 1fr); }
.sidebar {
    gap: 1rem;
    padding: 1.1rem 0.9rem;
    background: rgba(6, 8, 12, 0.97);
    border-right-color: rgba(148, 163, 184, 0.1);
}
.brand { padding: 0.2rem 0.45rem 0.95rem; border-bottom: 1px solid var(--line); }
.brand__eyebrow { color: #a78bfa; }
.brand__title { font-size: 1.35rem; letter-spacing: -0.02em; }
.nav { gap: 0.85rem; }
.nav__group { gap: 0.18rem; }
.nav__group-label { padding: 0 0.5rem 0.15rem; font-size: 0.64rem; letter-spacing: 0.14em; }
.nav__link {
    padding: 0.56rem 0.7rem;
    border-radius: 8px;
    background: transparent;
    font-size: 0.86rem;
    color: #8994a6;
}
.nav__link:hover {
    color: #dbe3ef;
    border-color: rgba(148, 163, 184, 0.12);
    background: rgba(148, 163, 184, 0.045);
}
.nav__link.is-active {
    color: #f7f5ff;
    border-color: rgba(139, 92, 246, 0.24);
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.18), rgba(139, 92, 246, 0.045));
    box-shadow: inset 3px 0 0 #8b5cf6;
}
.user-card {
    padding: 0.8rem;
    background: rgba(148, 163, 184, 0.035);
    border-color: var(--line);
}
.main { padding: 1.15rem 1.3rem 2rem; }
.page-head {
    margin-bottom: 0.85rem;
    padding: 0.9rem 1.05rem;
    border-radius: 12px;
    background: linear-gradient(100deg, rgba(139, 92, 246, 0.09), rgba(14, 18, 26, 0.96) 35%);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}
.page-head::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, #a78bfa, #6d28d9);
}
.page-head h1 { font-size: clamp(1.35rem, 2vw, 1.9rem); letter-spacing: -0.025em; }
.page-head__eyebrow { color: #a78bfa; font-size: 0.65rem; }
.panel,
.stat-card {
    border-color: var(--line);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(17, 22, 32, 0.97), rgba(10, 14, 21, 0.97));
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.23);
}
.panel { padding: 1rem; margin-bottom: 0.78rem; }
.section-head { margin-bottom: 0.75rem; }
.section-head h2,
.panel h2 { font-size: 1.05rem; letter-spacing: -0.01em; }
.panel__lead { margin: 0.3rem 0 0; font-size: 0.86rem; }
.stats-grid { gap: 0.75rem; margin-bottom: 0.78rem; }
.stat-card { padding: 0.95rem; gap: 0.34rem; min-width: 0; }
.stat-card__label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.055em; }
.stat-card__value {
    font-size: clamp(1.6rem, 2.4vw, 2.15rem);
    letter-spacing: -0.035em;
    font-variant-numeric: tabular-nums;
    overflow: hidden;
    text-overflow: ellipsis;
}
.stat-card__meta { font-size: 0.76rem; }
.field__label { font-size: 0.76rem; }
.field__control {
    min-height: 38px;
    padding: 0.58rem 0.7rem;
    border-radius: 8px;
    border-color: rgba(148, 163, 184, 0.16);
    background: rgba(5, 8, 13, 0.72);
}
.field__control:focus {
    border-color: rgba(139, 92, 246, 0.74);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.13);
}
.button {
    min-height: 38px;
    padding: 0.58rem 0.8rem;
    border-radius: 8px;
    border-color: rgba(139, 92, 246, 0.5);
    background: linear-gradient(180deg, #8b5cf6, #6d28d9);
    color: #fff;
    font-weight: 600;
}
.button--ghost {
    background: rgba(148, 163, 184, 0.045);
    border-color: rgba(148, 163, 184, 0.16);
    color: #dbe3ef;
}
.meta-pill,
.badge {
    padding: 0.28rem 0.55rem;
    border-color: rgba(148, 163, 184, 0.16);
    font-size: 0.74rem;
}
.badge { background: rgba(148, 163, 184, 0.045); }
.badge--warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.28);
}
.table-wrap {
    border-color: rgba(148, 163, 184, 0.12);
    border-radius: 9px;
    background: rgba(5, 8, 13, 0.5);
}
.table th,
.table td {
    padding: 0.68rem 0.76rem;
    border-bottom-color: rgba(148, 163, 184, 0.09);
}
.table th {
    background: rgba(10, 14, 21, 0.985);
    color: #aab5c5;
    font-size: 0.7rem;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}
.monitor-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.82rem 1rem;
    background: linear-gradient(100deg, rgba(139, 92, 246, 0.1), rgba(14, 18, 26, 0.98) 42%);
}
.monitor-status__copy {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}
.monitor-status__meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.monitor-status__eyebrow {
    flex: 0 0 auto;
    padding: 0.3rem 0.48rem;
    border-radius: 6px;
    border: 1px solid rgba(139, 92, 246, 0.28);
    background: rgba(139, 92, 246, 0.1);
    color: #b8a3ff;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}
.monitor-filter { padding: 0.72rem 0.85rem; }
.monitor-filter .filters {
    grid-template-columns: minmax(160px, 220px) minmax(160px, 220px) auto;
    align-items: end;
    gap: 0.65rem;
}
.monitor-kpis {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.72rem;
    margin-bottom: 0.72rem;
}
.monitor-kpis .stat-card { min-height: 122px; }
.stat-card--primary {
    border-color: rgba(139, 92, 246, 0.34);
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.16), rgba(12, 16, 24, 0.98) 58%);
}
.stat-card__value--fit {
    font-size: clamp(1.25rem, 1.65vw, 1.75rem);
    white-space: nowrap;
    text-overflow: clip;
}
.monitor-secondary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.72rem;
    margin-bottom: 0.72rem;
}
.stat-card--compact {
    min-height: 92px;
    padding: 0.8rem 0.9rem;
}
.stat-card--compact .stat-card__value {
    font-size: clamp(1.3rem, 2vw, 1.75rem);
}
.monitor-storage .table th:last-child,
.monitor-storage .table td:last-child { text-align: right; }
@media (max-width: 1380px) {
    .monitor-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .monitor-secondary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 980px) {
    .monitor-status {
        align-items: flex-start;
        flex-direction: column;
    }
    .monitor-status__meta {
        justify-content: flex-start;
    }
    .monitor-filter .filters {
        grid-template-columns: 1fr 1fr auto;
    }
    .monitor-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Dark native select menu */
select.field__control {
    color-scheme: dark;
    background-color: #080b11;
    color: #f4f7fb;
}
select.field__control option,
select.field__control optgroup {
    background: #0b0f17;
    color: #f4f7fb;
}

/* Economy antifraud */
.antifraud-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.antifraud-risk { font-weight: 700; }
.antifraud-risk--critical {
    color: #fecdd3;
    background: rgba(244, 63, 94, 0.14);
    border-color: rgba(244, 63, 94, 0.36);
}
.antifraud-risk--high {
    color: #fed7aa;
    background: rgba(249, 115, 22, 0.12);
    border-color: rgba(249, 115, 22, 0.32);
}
.antifraud-risk--medium {
    color: #fde68a;
    background: rgba(234, 179, 8, 0.1);
    border-color: rgba(234, 179, 8, 0.28);
}
@media (max-width: 1380px) {
    .antifraud-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .antifraud-kpis { grid-template-columns: 1fr; }
}

/* Economy graph */
.economy-chart-panel { overflow: hidden; }
.economy-chart-legend {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    font-size: 0.76rem;
    color: var(--muted);
}
.economy-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.economy-chart-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    display: inline-block;
}
.economy-chart-dot--issued { background: #34d399; }
.economy-chart-dot--withdrawn { background: #fb7185; }
.economy-chart-dot--net { background: #a78bfa; }
.economy-chart-wrap {
    overflow-x: auto;
    padding: 0.25rem 0 0;
}
.economy-chart {
    display: block;
    width: 100%;
    min-width: 720px;
    height: auto;
}
.economy-chart-grid {
    stroke: rgba(148, 163, 184, 0.11);
    stroke-width: 1;
}
.economy-chart-zero {
    stroke: rgba(226, 232, 240, 0.3);
    stroke-width: 1.2;
    stroke-dasharray: 5 6;
}
.economy-chart-axis-label,
.economy-chart-date {
    fill: #7f8a9d;
    font-size: 12px;
}
.economy-chart-line {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.economy-chart-line--issued { stroke: #34d399; }
.economy-chart-line--withdrawn { stroke: #fb7185; }
.economy-chart-line--net { stroke: #a78bfa; stroke-width: 3.5; }
.economy-chart-point-circle {
    stroke: #0b0f17;
    stroke-width: 2;
}
.economy-chart-point-circle--issued { fill: #34d399; }
.economy-chart-point-circle--withdrawn { fill: #fb7185; }
.economy-chart-point-circle--net { fill: #a78bfa; }

/* Full operation card */
.operation-hero { border-color: rgba(139, 92, 246, 0.2); }
.operation-hero__badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.operation-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.72rem;
    margin: 0.85rem 0 0.72rem;
}
.operation-kpi-text {
    display: block;
    color: var(--text);
    font-size: clamp(1rem, 1.4vw, 1.22rem);
    line-height: 1.3;
}
.operation-log-counts {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}
.operation-currency-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.72rem;
    margin-bottom: 0.78rem;
}
.operation-currency-card { min-width: 0; }
.operation-currency-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}
.operation-currency-card__details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    padding-top: 0.7rem;
    border-top: 1px solid var(--line);
    font-size: 0.76rem;
    color: var(--muted);
}
.operation-currency-card__details span {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.operation-context-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}
.operation-context-block {
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(5, 8, 13, 0.38);
}
.operation-context-label {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.operation-timeline {
    position: relative;
    display: grid;
    gap: 0;
}
.operation-timeline::before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 8px;
    width: 1px;
    background: rgba(148, 163, 184, 0.17);
}
.operation-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 0.72rem;
    padding: 0.55rem 0;
}
.operation-timeline-marker {
    position: relative;
    z-index: 1;
    width: 9px;
    height: 9px;
    margin-top: 0.35rem;
    margin-left: 4px;
    border-radius: 999px;
    border: 2px solid #0b0f17;
    background: #8b5cf6;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}
.operation-timeline-item--economy .operation-timeline-marker { background: #34d399; }
.operation-timeline-item--audit .operation-timeline-marker { background: #a78bfa; }
.operation-timeline-item--item .operation-timeline-marker { background: #38bdf8; }
.operation-timeline-item--security .operation-timeline-marker { background: #fb7185; }
.operation-timeline-content {
    display: grid;
    gap: 0.2rem;
    padding-bottom: 0.55rem;
}
.operation-timeline-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
@media (max-width: 1180px) {
    .operation-kpis,
    .operation-currency-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .operation-kpis,
    .operation-currency-grid,
    .operation-context-grid { grid-template-columns: 1fr; }
    .operation-currency-card__details { grid-template-columns: 1fr; }
    .operation-timeline-head { align-items: flex-start; flex-direction: column; gap: 0.3rem; }
}

/* VEGA LOGS: organized navigation and unified search */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.nav-search { display: grid; gap: .45rem; }
.nav-search > span { padding-left: .45rem; color: var(--muted); font-size: .78rem; }
.nav-search .field__control { min-height: 38px; padding: .55rem .65rem; font-size: .8rem; border-radius: 8px; }
.nav-search__empty { margin: 0; padding: .5rem; color: var(--muted); font-size: .82rem; }
.nav__group-label { line-height: 1.5; letter-spacing: .055em; font-size: .68rem; }
.nav__link { line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.page-head > div { min-width: 0; flex: 1 1 270px; }
.global-search { display: grid; grid-template-columns: minmax(150px,1fr) auto; align-items: center; gap: .5rem; flex: 1 1 380px; max-width: 510px; }
.global-search label { min-width: 0; }
.global-search .field__control { min-height: 42px; padding: .6rem .75rem; }
.global-search > a { grid-column: 1 / -1; font-size: .78rem; justify-self: end; color: #c4b5fd; }
.filters.filters--organized { display: flex; flex-direction: column; gap: 1rem; }
.filters__primary, .filters__grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .9rem 1rem; }
.filters__primary .field, .filters__grid .field { min-width: 0; align-content: start; }
.field--wide { grid-column: span 2; }
.filters__advanced { border: 1px solid var(--line); border-radius: 10px; background: rgba(148,163,184,.025); }
.filters__advanced > summary { cursor: pointer; padding: .8rem 1rem; color: #c4b5fd; font-size: .86rem; font-weight: 600; }
.filters__advanced[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 0; }
.filters__grid { padding: 1rem; }
.filters--organized > .filters__actions { border-top: 1px solid var(--line); padding-top: .9rem; align-items: center; }
.filters__hint { margin: -.2rem 0 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.date-shortcuts { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.date-shortcuts > span { margin-right: .25rem; font-size: .8rem; color: var(--muted); }
.date-shortcuts .button { padding: .4rem .65rem; min-height: 32px; font-size: .78rem; }
.search-start { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.search-start__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.search-notice { margin: 0 0 .9rem; padding: .8rem 1rem; border: 1px solid rgba(167,139,250,.22); background: rgba(139,92,246,.06); border-radius: 8px; font-size: .85rem; color: #d3c7f9; line-height: 1.5; }
.search-sources { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.search-sources__link { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .65rem; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: .8rem; }
.search-sources__link.is-active { color: #f5f3ff; border-color: rgba(139,92,246,.5); background: rgba(139,92,246,.15); }
.search-sources__link span { padding: .05rem .35rem; border-radius: 5px; background: rgba(148,163,184,.1); color: var(--text); }
.table--search { min-width: 760px; table-layout: fixed; }
.table--search th:nth-child(1) { width: 20%; }
.table--search th:nth-child(2) { width: 42%; }
.table--search th:nth-child(3) { width: 24%; }
.table--search th:nth-child(4) { width: 14%; }
.table--search td { vertical-align: top; white-space: normal; overflow-wrap: anywhere; }
.table--search td .cell-stack { gap: .4rem; }
.table--search .button { padding: .5rem .65rem; font-size: .8rem; }
.search-result__excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); line-height: 1.5; }
.search-result__details summary { cursor: pointer; color: #c4b5fd; font-size: .8rem; }
.search-result__details > div { margin-top: .6rem; padding: .7rem; background: rgba(148,163,184,.045); border-radius: 8px; }
.search-result__details p { margin: 0 0 .5rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.search-result__details p:last-child { margin-bottom: 0; }
@media (max-width: 1180px) { .filters__primary, .filters__grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 800px) {
    .shell { grid-template-columns: 1fr; }
    .sidebar { position: static; height: auto; max-height: none; }
    .nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
    .nav__group-label { min-height: 2.2em; }
    .global-search { max-width: none; }
}
@media (max-width: 560px) {
    .filters__primary, .filters__grid { grid-template-columns: 1fr; }
    .field--wide { grid-column: auto; }
    .main { padding: .8rem; }
    .page-head { padding: .85rem; }
    .global-search { flex-basis: 100%; }
    .filters__actions .button { flex: 1 1 auto; text-align: center; }
    .nav { gap: .8rem; }
}

/* VEGA LOGS: sidebar contrast v1 */
.shell { grid-template-columns: 264px minmax(0,1fr); }
.sidebar {
    background: #101521;
    border-right: 1px solid #34405a;
    box-shadow: 6px 0 24px rgba(0,0,0,.22);
    justify-content: flex-start;
    gap: 1rem;
    scrollbar-color: #7c65b0 #101521;
}
.sidebar::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-thumb { background: #7c65b0; }
.sidebar::-webkit-scrollbar-thumb:hover { background: #a78bfa; }
.sidebar .brand { border-bottom-color: #34405a; }
.nav-search > span { color: #d0d8e8; font-size: .82rem; font-weight: 500; }
.nav-search .field__control { color: #f1f5f9; background: #090e18; border-color: #46516a; }
.nav-search .field__control::placeholder { color: #a9b5ca; opacity: 1; }
.nav { gap: .75rem; }
.nav__group { gap: .28rem; }
.nav__group-label {
    display: block;
    padding: .5rem .65rem;
    margin: .2rem 0 .15rem;
    color: #d8cbff;
    background: rgba(139,92,246,.12);
    border-left: 3px solid #a78bfa;
    border-radius: 0 6px 6px 0;
    opacity: 1;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .025em;
    line-height: 1.5;
}
.nav__link {
    padding: .6rem .75rem;
    color: #e2e8f0;
    background: #171f2e;
    border: 1px solid #2e3950;
    font-size: .92rem;
    font-weight: 500;
    line-height: 1.4;
}
.nav__link:hover {
    color: #fff;
    background: #252b43;
    border-color: #9c83e6;
}
.nav__link.is-active {
    color: #fff;
    background: linear-gradient(100deg,#6d28d9,#493080);
    border-color: #b79df5;
    box-shadow: inset 4px 0 0 #e1d2ff, 0 3px 12px rgba(109,40,217,.22);
    font-weight: 700;
}
.nav__link:focus-visible { outline: 2px solid #ddd0ff; outline-offset: 3px; }
.sidebar__footer { margin-top: auto; padding-top: .4rem; }
.sidebar .user-card { border-color: #34405a; color: #d0d8e8; background: #171f2e; }
.nav-search__empty { color: #d0d8e8; }
@media (max-width: 980px) {
    .shell { grid-template-columns: 1fr; }
    .sidebar { position: static; height: auto; max-height: none; border-right: 0; border-bottom: 1px solid #34405a; }
    .nav { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
    .nav__group-label { min-height: 0; }
}
@media (max-width: 560px) { .nav__link { font-size: .86rem; padding: .55rem .6rem; } }

/* VEGA LOGS: black and amber theme v1 */
html[data-theme="black"] {
    color-scheme: dark;
    --bg: #141414;
    --bg-alt: #191919;
    --panel: #222222;
    --panel-strong: #292929;
    --line: #383838;
    --line-strong: #505050;
    --text: #f3f3f3;
    --muted: #bcb9b3;
    --accent: #f5b041;
    --accent-soft: #44331b;
    --danger: #f18b8b;
    --danger-soft: #3c2323;
    --info: #87b8df;
    --info-soft: #233340;
    --success: #86d99c;
    scrollbar-color: #67635d #191919;
    accent-color: var(--accent);
}
html[data-theme="black"] body { color: var(--text); background: var(--bg); }
html[data-theme="black"] body::before { display: none; }
html[data-theme="black"] ::-webkit-scrollbar-track { background: #191919; }
html[data-theme="black"] ::-webkit-scrollbar-thumb { background: #67635d; }
html[data-theme="black"] ::-webkit-scrollbar-thumb:hover { background: #938b7d; }
html[data-theme="black"] .sidebar {
    background: #191919;
    border-color: var(--line);
    scrollbar-color: #67635d #191919;
    box-shadow: 6px 0 24px rgba(0,0,0,.2);
}
html[data-theme="black"] .brand,
html[data-theme="black"] .sidebar .brand { border-color: var(--line); }
html[data-theme="black"] .brand__eyebrow,
html[data-theme="black"] .auth-brand__eyebrow,
html[data-theme="black"] .page-head__eyebrow { color: var(--muted); }
html[data-theme="black"] .nav__group-label {
    color: #d1cec7;
    background: #252525;
    border-left-color: #76716a;
    opacity: 1;
}
html[data-theme="black"] .nav__link { color: var(--text); background: #222222; border-color: var(--line); }
html[data-theme="black"] .nav__link:hover { color: var(--text); background: #303030; border-color: #80796d; }
html[data-theme="black"] .nav__link.is-active {
    color: var(--accent);
    background: var(--accent-soft);
    border-color: #9e7637;
    box-shadow: inset 4px 0 0 var(--accent);
}
html[data-theme="black"] .nav__link:focus-visible { outline-color: var(--accent); }
html[data-theme="black"] .sidebar .user-card { color: var(--text); background: #222222; border-color: var(--line); }
html[data-theme="black"] .nav-search > span,
html[data-theme="black"] .nav-search__empty { color: var(--muted); }
html[data-theme="black"] .page-head { background: #191919; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
html[data-theme="black"] .page-head::before { display: none; }
html[data-theme="black"] .panel,
html[data-theme="black"] .stat-card,
html[data-theme="black"] .auth-panel,
html[data-theme="black"] .monitor-status { background: var(--panel); border-color: var(--line); }
html[data-theme="black"] .stat-card--primary { background: #272727; border-color: #61533c; }
html[data-theme="black"] .monitor-status__eyebrow { color: var(--muted); background: #292929; border-color: var(--line-strong); }
html[data-theme="black"] .field__control,
html[data-theme="black"] .nav-search .field__control,
html[data-theme="black"] select.field__control,
html[data-theme="black"] select.field__control option,
html[data-theme="black"] select.field__control optgroup { color: var(--text); background: #141414; border-color: var(--line-strong); }
html[data-theme="black"] .field__control::placeholder,
html[data-theme="black"] .nav-search .field__control::placeholder { color: #a9a59e; opacity: 1; }
html[data-theme="black"] .field__control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245,176,65,.16); }
html[data-theme="black"] .button { color: #30210b; background: var(--accent); border-color: #f5b041; }
html[data-theme="black"] .button:hover { background: #ffc567; filter: none; }
html[data-theme="black"] .button--ghost { color: var(--text); background: #292929; border-color: var(--line-strong); }
html[data-theme="black"] .button--ghost:hover { color: var(--text); background: #363636; border-color: #80796d; }
html[data-theme="black"] .global-search > a,
html[data-theme="black"] .filters__advanced > summary,
html[data-theme="black"] .search-result__details summary { color: var(--accent); }
html[data-theme="black"] .filters__advanced { background: #1c1c1c; border-color: var(--line); }
html[data-theme="black"] .search-notice { color: #f5d69f; border-color: #61533c; background: #302719; }
html[data-theme="black"] .search-sources__link { color: var(--muted); background: #1c1c1c; border-color: var(--line); }
html[data-theme="black"] .search-sources__link.is-active { color: var(--accent); background: var(--accent-soft); border-color: #9e7637; }
html[data-theme="black"] .search-sources__link span,
html[data-theme="black"] .search-result__details > div { background: #303030; }
html[data-theme="black"] .table-wrap { background: #1c1c1c; border-color: var(--line); }
html[data-theme="black"] .table th { color: #cecac2; background: #191919; border-color: var(--line); }
html[data-theme="black"] .table td { border-color: #333333; }
html[data-theme="black"] .table tbody tr:hover { background: #292929; }
html[data-theme="black"] .table-link,
html[data-theme="black"] .log-code code,
html[data-theme="black"] .operation-link code { color: var(--accent); }
html[data-theme="black"] .table-link:hover,
html[data-theme="black"] .operation-link:hover code { color: #ffd38c; }
html[data-theme="black"] .meta-pill,
html[data-theme="black"] .badge { color: var(--text); background: #2a2a2a; border-color: var(--line-strong); }
html[data-theme="black"] .badge--warning { color: #f5d69f; background: var(--accent-soft); border-color: #7d602f; }
html[data-theme="black"] .badge--danger,
html[data-theme="black"] .alert--error,
html[data-theme="black"] .panel--error { color: #ffd0d0; background: var(--danger-soft); border-color: #9b5252; }
html[data-theme="black"] .badge--success { color: #b1edc0; background: #223729; border-color: #4d825c; }
html[data-theme="black"] .badge--info { color: #c5e1f6; background: var(--info-soft); border-color: #4d728e; }
html[data-theme="black"] .pagination__link { background: #292929; color: var(--text); border-color: var(--line-strong); }
html[data-theme="black"] .pagination__link.is-active { background: var(--accent-soft); color: var(--accent); border-color: #9e7637; }
html[data-theme="black"] .playtime-day__bar { background: var(--accent); }
html[data-theme="black"] .playtime-day--today .playtime-day__bar { background: var(--success); }
html[data-theme="black"] .operation-hero { border-color: var(--line); }
html[data-theme="black"] .operation-context-block { background: #1a1a1a; }
html[data-theme="black"] .operation-timeline::before { background: #505050; }
html[data-theme="black"] .operation-timeline-marker { border-color: var(--panel); background: var(--accent); box-shadow: 0 0 0 2px #544631; }
html[data-theme="black"] .operation-timeline-item--audit .operation-timeline-marker { background: var(--accent); }
html[data-theme="black"] .operation-timeline-item--economy .operation-timeline-marker { background: var(--success); }
html[data-theme="black"] .operation-timeline-item--item .operation-timeline-marker { background: var(--info); }
html[data-theme="black"] .operation-timeline-item--security .operation-timeline-marker { background: var(--danger); }
html[data-theme="black"] .economy-chart-dot--net { background: var(--accent); }
html[data-theme="black"] .economy-chart-line--net { stroke: var(--accent); }
html[data-theme="black"] .economy-chart-point-circle--net { fill: var(--accent); }
html[data-theme="black"] .economy-chart-point-circle { stroke: var(--panel); }
html[data-theme="black"] .economy-chart-grid { stroke: #444444; }
html[data-theme="black"] .economy-chart-axis-label,
html[data-theme="black"] .economy-chart-date { fill: var(--muted); }
html[data-theme="black"] .economy-chart-zero { stroke: #76716a; }
html[data-theme="black"] .antifraud-risk--critical { color: #ffd0d0; background: #3c2323; border-color: #9b5252; }
html[data-theme="black"] .antifraud-risk--high { color: #ffd9b5; background: #3c2c20; border-color: #9b6b43; }
html[data-theme="black"] .antifraud-risk--medium { color: #f5d69f; background: var(--accent-soft); border-color: #7d602f; }

/* Daily player registrations */
.registration-meter { width: min(100%, 260px); height: 9px; border-radius: 999px; background: var(--border-color, #30343b); overflow: hidden; }
.registration-meter > span { display: block; height: 100%; background: #e5bf45; border-radius: inherit; }
.table tr.is-selected > td { background: rgba(229, 191, 69, 0.08); }

/* Player activity analytics */
.analytics-switch,.analytics-legend {display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.analytics-legend{color:var(--muted, #aaa);font-size:.82rem;margin:12px 0 24px}
.analytics-legend span {display:inline-flex;align-items:center;gap:7px}
.analytics-dot {display:inline-block;width:10px;height:10px;border-radius:3px}
.analytics-dot--active {background:#34b98d}
.analytics-dot--new {background:#dfbb49}
.analytics-graph {display:flex;align-items:stretch;gap:5px;overflow-x:auto;padding:22px 3px 12px;min-height:260px}
.analytics-graph__day {display:flex;flex:1 0 28px;min-width:28px;flex-direction:column;justify-content:end;align-items:center;gap:8px}
.analytics-graph__bars {display:flex;align-items:flex-end;justify-content:center;gap:3px;height:185px;width:100%;border-bottom:1px solid rgba(255,255,255,.14)}
.analytics-graph__bar {min-width:5px;width:36%;border-radius:5px 5px 0 0;position:relative;transition:height .2s ease}
.analytics-graph__bar--active {background:linear-gradient(0deg,#208d70,#4ac9a0)}
.analytics-graph__bar--new {background:linear-gradient(0deg,#ae8528,#e7c654)}
.analytics-graph__bar span {position:absolute;bottom:calc(100% + 3px);left:50%;transform:translateX(-50%);font-size:10px;line-height:1;white-space:nowrap;color:var(--text, #ddd)}
.analytics-graph__bar[style="height:0%"] span {display:none}
.analytics-graph__label {font-size:10px;color:var(--muted,#aaa);white-space:nowrap}
@media(min-width:1050px){.analytics-graph{gap:8px}.analytics-graph__day{min-width:30px}}
@media(max-width:700px){.analytics-graph__day{flex-basis:34px}.analytics-switch .button{padding:6px 9px}}

/* Multiaccount discovery: automated risk-based overview */
.multi-risk-filters{display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0}
.multi-pair-meta{color:var(--muted,#aaa);font-size:.76rem;margin-top:3px}
