:root {
    color-scheme: dark;
    --hy-bg: #07090d;
    --hy-bg-start: #0a0d12;
    --hy-bg-end: #05070a;
    --hy-bg-soft: #0d1117;
    --hy-surface: #111820;
    --hy-surface-raised: #17212b;
    --hy-surface-muted: #1d2732;
    --hy-border: rgba(166, 179, 196, .18);
    --hy-border-strong: rgba(166, 179, 196, .32);
    --hy-text: #f6f8fb;
    --hy-text-soft: #c8d1dc;
    --hy-muted: #96a3b4;
    --hy-accent: #7dd3fc;
    --hy-accent-strong: #bae6fd;
    --hy-accent-rgb: 125, 211, 252;
    --hy-accent-alt: #a5b4fc;
    --hy-accent-alt-strong: #c4b5fd;
    --hy-on-accent: #061016;
    --hy-coral: #fb7185;
    --hy-blue: #93c5fd;
    --hy-yellow: #facc15;
    --hy-success: #38bdf8;
    --hy-warning: #fbbf24;
    --hy-danger: #fb7185;
    --hy-success-bg: rgba(56, 189, 248, .14);
    --hy-success-text: #bae6fd;
    --hy-warning-bg: rgba(251, 191, 36, .17);
    --hy-warning-text: #fde68a;
    --hy-danger-bg: rgba(251, 113, 133, .16);
    --hy-danger-text: #fecdd3;
    --hy-glow-a: rgba(125, 211, 252, .14);
    --hy-glow-b: rgba(251, 113, 133, .08);
    --hy-primary-surface: rgba(147, 197, 253, .18);
    --hy-primary-surface-strong: rgba(147, 197, 253, .24);
    --hy-primary-surface-hover: rgba(147, 197, 253, .28);
    --hy-radius: 8px;
    --hy-shadow: 0 18px 50px rgba(0, 0, 0, .34);
    --bs-body-bg: var(--hy-bg);
    --bs-body-color: var(--hy-text);
    --bs-primary: var(--hy-accent);
    --bs-primary-rgb: var(--hy-accent-rgb);
    --bs-link-color: var(--hy-accent-strong);
    --bs-link-hover-color: #ffffff;
    --bs-border-color: var(--hy-border);
    --bs-border-radius: var(--hy-radius);
}

html[data-theme="violet"] {
    --hy-bg: #10081c;
    --hy-bg-start: #1a0f2e;
    --hy-bg-end: #08040f;
    --hy-bg-soft: #171027;
    --hy-surface: #211631;
    --hy-surface-raised: #2b1d41;
    --hy-surface-muted: #372551;
    --hy-accent: #c084fc;
    --hy-accent-strong: #e9d5ff;
    --hy-accent-rgb: 192, 132, 252;
    --hy-accent-alt: #60a5fa;
    --hy-accent-alt-strong: #93c5fd;
    --hy-success-bg: rgba(96, 165, 250, .15);
    --hy-success-text: #bfdbfe;
    --hy-glow-a: rgba(192, 132, 252, .15);
    --hy-glow-b: rgba(96, 165, 250, .1);
    --hy-primary-surface: rgba(192, 132, 252, .18);
    --hy-primary-surface-strong: rgba(192, 132, 252, .25);
    --hy-primary-surface-hover: rgba(192, 132, 252, .3);
}

html[data-theme="ember"] {
    --hy-bg: #0c0908;
    --hy-bg-start: #14100d;
    --hy-bg-end: #070504;
    --hy-bg-soft: #15100d;
    --hy-surface: #1d1713;
    --hy-surface-raised: #291f18;
    --hy-surface-muted: #33271f;
    --hy-accent: #f59e0b;
    --hy-accent-strong: #fde68a;
    --hy-accent-rgb: 245, 158, 11;
    --hy-accent-alt: #fb7185;
    --hy-accent-alt-strong: #fecdd3;
    --hy-success-bg: rgba(245, 158, 11, .14);
    --hy-success-text: #fde68a;
    --hy-glow-a: rgba(245, 158, 11, .13);
    --hy-glow-b: rgba(251, 113, 133, .08);
    --hy-primary-surface: rgba(245, 158, 11, .18);
    --hy-primary-surface-strong: rgba(245, 158, 11, .24);
    --hy-primary-surface-hover: rgba(245, 158, 11, .3);
}

html[data-theme="rose"] {
    --hy-bg: #0c0710;
    --hy-bg-start: #130d17;
    --hy-bg-end: #07040a;
    --hy-bg-soft: #15101a;
    --hy-surface: #1b1521;
    --hy-surface-raised: #261d2e;
    --hy-surface-muted: #30243a;
    --hy-accent: #fb7185;
    --hy-accent-strong: #fecdd3;
    --hy-accent-rgb: 251, 113, 133;
    --hy-accent-alt: #f0abfc;
    --hy-accent-alt-strong: #f5d0fe;
    --hy-success-bg: rgba(251, 113, 133, .15);
    --hy-success-text: #fecdd3;
    --hy-glow-a: rgba(251, 113, 133, .14);
    --hy-glow-b: rgba(240, 171, 252, .09);
    --hy-primary-surface: rgba(251, 113, 133, .17);
    --hy-primary-surface-strong: rgba(251, 113, 133, .24);
    --hy-primary-surface-hover: rgba(251, 113, 133, .3);
}

html[data-theme="aurora"] {
    --hy-bg: #061012;
    --hy-bg-start: #091719;
    --hy-bg-end: #030809;
    --hy-bg-soft: #0b181b;
    --hy-surface: #102025;
    --hy-surface-raised: #172b31;
    --hy-surface-muted: #1f363d;
    --hy-accent: #22d3ee;
    --hy-accent-strong: #a5f3fc;
    --hy-accent-rgb: 34, 211, 238;
    --hy-accent-alt: #a78bfa;
    --hy-accent-alt-strong: #ddd6fe;
    --hy-success-bg: rgba(34, 211, 238, .14);
    --hy-success-text: #a5f3fc;
    --hy-glow-a: rgba(34, 211, 238, .14);
    --hy-glow-b: rgba(167, 139, 250, .09);
    --hy-primary-surface: rgba(34, 211, 238, .17);
    --hy-primary-surface-strong: rgba(34, 211, 238, .24);
    --hy-primary-surface-hover: rgba(34, 211, 238, .29);
}

html[data-theme="steel"] {
    --hy-bg: #080b0f;
    --hy-bg-start: #0e1319;
    --hy-bg-end: #05070a;
    --hy-bg-soft: #10161d;
    --hy-surface: #161d25;
    --hy-surface-raised: #202934;
    --hy-surface-muted: #2a3441;
    --hy-accent: #cbd5e1;
    --hy-accent-strong: #f8fafc;
    --hy-accent-rgb: 203, 213, 225;
    --hy-accent-alt: #94a3b8;
    --hy-accent-alt-strong: #e2e8f0;
    --hy-success-bg: rgba(148, 163, 184, .18);
    --hy-success-text: #f1f5f9;
    --hy-glow-a: rgba(148, 163, 184, .1);
    --hy-glow-b: rgba(203, 213, 225, .06);
    --hy-primary-surface: rgba(203, 213, 225, .15);
    --hy-primary-surface-strong: rgba(203, 213, 225, .21);
    --hy-primary-surface-hover: rgba(203, 213, 225, .27);
}

html[data-theme="cobalt"] {
    --hy-bg: #031225;
    --hy-bg-start: #062044;
    --hy-bg-end: #020815;
    --hy-bg-soft: #071a33;
    --hy-surface: #0d2543;
    --hy-surface-raised: #123158;
    --hy-surface-muted: #1a4070;
    --hy-accent: #60a5fa;
    --hy-accent-strong: #bfdbfe;
    --hy-accent-rgb: 96, 165, 250;
    --hy-accent-alt: #2dd4bf;
    --hy-accent-alt-strong: #99f6e4;
    --hy-success-bg: rgba(96, 165, 250, .15);
    --hy-success-text: #bfdbfe;
    --hy-glow-a: rgba(96, 165, 250, .15);
    --hy-glow-b: rgba(45, 212, 191, .08);
    --hy-primary-surface: rgba(96, 165, 250, .18);
    --hy-primary-surface-strong: rgba(96, 165, 250, .25);
    --hy-primary-surface-hover: rgba(96, 165, 250, .3);
}

html[data-theme="paper"] {
    color-scheme: light;
    --hy-bg: #f5f7fb;
    --hy-bg-start: #ffffff;
    --hy-bg-end: #e8edf5;
    --hy-bg-soft: #eef2f7;
    --hy-surface: #ffffff;
    --hy-surface-raised: #f8fafc;
    --hy-surface-muted: #e9eef5;
    --hy-border: rgba(15, 23, 42, .14);
    --hy-border-strong: rgba(15, 23, 42, .24);
    --hy-text: #111827;
    --hy-text-soft: #334155;
    --hy-muted: #64748b;
    --hy-accent: #2563eb;
    --hy-accent-strong: #1d4ed8;
    --hy-accent-rgb: 37, 99, 235;
    --hy-accent-alt: #14b8a6;
    --hy-accent-alt-strong: #0f766e;
    --hy-on-accent: #ffffff;
    --hy-success-bg: rgba(37, 99, 235, .11);
    --hy-success-text: #1e40af;
    --hy-warning-bg: rgba(217, 119, 6, .14);
    --hy-warning-text: #92400e;
    --hy-danger-bg: rgba(225, 29, 72, .11);
    --hy-danger-text: #be123c;
    --hy-glow-a: rgba(37, 99, 235, .1);
    --hy-glow-b: rgba(20, 184, 166, .08);
    --hy-primary-surface: rgba(37, 99, 235, .11);
    --hy-primary-surface-strong: rgba(37, 99, 235, .16);
    --hy-primary-surface-hover: rgba(37, 99, 235, .2);
    --hy-shadow: 0 18px 44px rgba(15, 23, 42, .12);
}

html[data-theme="mist"] {
    color-scheme: light;
    --hy-bg: #eef7f8;
    --hy-bg-start: #fbffff;
    --hy-bg-end: #dfeff1;
    --hy-bg-soft: #e5f1f3;
    --hy-surface: #fbffff;
    --hy-surface-raised: #f3fbfc;
    --hy-surface-muted: #dbecee;
    --hy-border: rgba(15, 74, 84, .16);
    --hy-border-strong: rgba(15, 74, 84, .28);
    --hy-text: #102027;
    --hy-text-soft: #28434a;
    --hy-muted: #667f87;
    --hy-accent: #0891b2;
    --hy-accent-strong: #0e7490;
    --hy-accent-rgb: 8, 145, 178;
    --hy-accent-alt: #7c3aed;
    --hy-accent-alt-strong: #6d28d9;
    --hy-on-accent: #ffffff;
    --hy-success-bg: rgba(8, 145, 178, .12);
    --hy-success-text: #155e75;
    --hy-warning-bg: rgba(202, 138, 4, .16);
    --hy-warning-text: #854d0e;
    --hy-danger-bg: rgba(220, 38, 38, .11);
    --hy-danger-text: #b91c1c;
    --hy-glow-a: rgba(8, 145, 178, .13);
    --hy-glow-b: rgba(124, 58, 237, .08);
    --hy-primary-surface: rgba(8, 145, 178, .12);
    --hy-primary-surface-strong: rgba(8, 145, 178, .18);
    --hy-primary-surface-hover: rgba(8, 145, 178, .23);
    --hy-shadow: 0 18px 44px rgba(15, 74, 84, .13);
}

html[data-theme="ivory"] {
    color-scheme: light;
    --hy-bg: #f8f4ec;
    --hy-bg-start: #fffaf2;
    --hy-bg-end: #ece3d3;
    --hy-bg-soft: #f1eadf;
    --hy-surface: #fffaf2;
    --hy-surface-raised: #fbf2e6;
    --hy-surface-muted: #eadfce;
    --hy-border: rgba(92, 64, 41, .18);
    --hy-border-strong: rgba(92, 64, 41, .3);
    --hy-text: #241b14;
    --hy-text-soft: #4b3b2e;
    --hy-muted: #7b6a58;
    --hy-accent: #b45309;
    --hy-accent-strong: #92400e;
    --hy-accent-rgb: 180, 83, 9;
    --hy-accent-alt: #0f766e;
    --hy-accent-alt-strong: #115e59;
    --hy-on-accent: #ffffff;
    --hy-success-bg: rgba(180, 83, 9, .12);
    --hy-success-text: #92400e;
    --hy-warning-bg: rgba(202, 138, 4, .17);
    --hy-warning-text: #854d0e;
    --hy-danger-bg: rgba(190, 18, 60, .1);
    --hy-danger-text: #9f1239;
    --hy-glow-a: rgba(180, 83, 9, .1);
    --hy-glow-b: rgba(15, 118, 110, .08);
    --hy-primary-surface: rgba(180, 83, 9, .12);
    --hy-primary-surface-strong: rgba(180, 83, 9, .18);
    --hy-primary-surface-hover: rgba(180, 83, 9, .24);
    --hy-shadow: 0 18px 44px rgba(92, 64, 41, .13);
}

html[data-theme="paper"],
html[data-theme="mist"],
html[data-theme="ivory"] {
    --bs-link-hover-color: var(--hy-accent-strong);
}

html[data-theme="paper"] body.app-body::before,
html[data-theme="mist"] body.app-body::before,
html[data-theme="ivory"] body.app-body::before {
    background-image:
        linear-gradient(rgba(15, 23, 42, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, .035) 1px, transparent 1px);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .32), transparent 72%);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body.app-body {
    min-height: 100vh;
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
    background:
        radial-gradient(circle at 14% -12%, var(--hy-glow-a), transparent 34rem),
        radial-gradient(circle at 94% 0%, var(--hy-glow-b), transparent 30rem),
        linear-gradient(180deg, var(--hy-bg-start) 0%, var(--hy-bg) 44%, var(--hy-bg-end) 100%);
    color: var(--hy-text);
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

body.app-body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .8), transparent 70%);
}

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: rgba(7, 12, 18, .82);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.app-navbar {
    padding: .75rem 0;
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    color: var(--hy-text);
    text-decoration: none;
}

.app-brand:hover,
.app-brand:focus {
    color: #ffffff;
}

.app-brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(var(--hy-accent-rgb), .2), var(--hy-glow-b));
    box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
}

.app-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-brand-copy {
    display: grid;
    line-height: 1.05;
}

.app-brand-name {
    font-size: 1.02rem;
    font-weight: 800;
}

.app-brand-subtitle {
    margin-top: .18rem;
    color: var(--hy-muted);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.navbar .nav-link {
    color: var(--hy-text-soft);
    border-radius: 7px;
    padding: .52rem .72rem;
    font-size: .94rem;
    font-weight: 600;
    transition: color .16s ease, background-color .16s ease, transform .16s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, .07);
}

.navbar .nav-link.active {
    color: var(--hy-accent-strong);
    background: rgba(var(--hy-accent-rgb), .12);
}

.navbar-toggler {
    border: 1px solid var(--hy-border);
    border-radius: 7px;
    padding: .45rem .55rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 .2rem rgba(var(--hy-accent-rgb), .2);
}

.navbar-toggler-icon {
    filter: invert(1) grayscale(1);
}

.app-user-menu .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
}

.app-user-avatar {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: linear-gradient(135deg, var(--hy-accent), var(--hy-accent-alt-strong));
    color: var(--hy-on-accent);
    font-size: .78rem;
    font-weight: 800;
}

.app-main {
    flex: 1;
    padding: 2rem 0 4rem;
}

.app-content {
    opacity: 1;
    transition: opacity .18s ease;
}

.app-footer {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 1rem 0;
    color: var(--hy-muted);
    font-size: .88rem;
    background: rgba(3, 6, 10, .48);
}

.app-env {
    color: var(--hy-yellow);
    font-weight: 700;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--hy-text);
    font-weight: 750;
    letter-spacing: 0;
}

h1 {
    font-size: clamp(1.8rem, 3vw, 2.65rem);
    line-height: 1.05;
}

a {
    text-underline-offset: .18em;
}

.text-muted {
    color: var(--hy-muted) !important;
}

.text-primary {
    color: var(--hy-accent-strong) !important;
}

.text-success {
    color: var(--hy-accent) !important;
}

.bg-primary,
.card-header.bg-primary,
.modal-body.bg-primary {
    background: linear-gradient(135deg, rgba(var(--hy-accent-rgb), .16), var(--hy-glow-b)) !important;
    color: var(--hy-text) !important;
}

.bg-dark,
.table-dark,
.card-header.bg-dark {
    background-color: #0a1017 !important;
    color: var(--hy-text) !important;
}

.bg-secondary {
    background-color: var(--hy-surface-muted) !important;
}

.bg-success {
    background-color: var(--hy-success-bg) !important;
    color: var(--hy-success-text) !important;
}

.bg-danger {
    background-color: rgba(251, 113, 133, .16) !important;
    color: #fecdd3 !important;
}

.bg-warning {
    background-color: rgba(251, 191, 36, .17) !important;
    color: #fde68a !important;
}

.btn {
    border-radius: 7px;
    font-weight: 700;
    letter-spacing: 0;
    transition: transform .16s ease, border-color .16s ease, background-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary,
.btn-success {
    border-color: transparent;
    background: linear-gradient(135deg, var(--hy-accent), var(--hy-accent-alt));
    color: var(--hy-on-accent);
    box-shadow: 0 12px 28px rgba(var(--hy-accent-rgb), .14);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-success:hover,
.btn-success:focus {
    border-color: transparent;
    background: linear-gradient(135deg, var(--hy-accent-strong), var(--hy-accent-alt-strong));
    color: var(--hy-on-accent);
    box-shadow: 0 14px 32px rgba(var(--hy-accent-rgb), .2);
}

.btn-outline-light,
.btn-outline-secondary,
.btn-outline-primary {
    border-color: var(--hy-border-strong);
    color: var(--hy-text-soft);
    background: rgba(255, 255, 255, .03);
}

.btn-outline-light:hover,
.btn-outline-secondary:hover,
.btn-outline-primary:hover {
    border-color: rgba(var(--hy-accent-rgb), .56);
    background: rgba(var(--hy-accent-rgb), .1);
    color: #ffffff;
}

.btn-close {
    filter: invert(1) grayscale(1);
    opacity: .72;
}

.dropdown-menu {
    --bs-dropdown-bg: rgba(11, 17, 24, .98);
    --bs-dropdown-border-color: var(--hy-border);
    --bs-dropdown-link-color: var(--hy-text-soft);
    --bs-dropdown-link-hover-color: #ffffff;
    --bs-dropdown-link-hover-bg: rgba(var(--hy-accent-rgb), .1);
    --bs-dropdown-divider-bg: var(--hy-border);
    border-radius: 8px;
    box-shadow: var(--hy-shadow);
}

.dropdown-item {
    font-weight: 600;
}

.app-theme-menu .dropdown-menu {
    min-width: 14rem;
}

.app-theme-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .9rem;
}

.app-theme-option.active,
.app-theme-option:active {
    background: rgba(var(--hy-accent-rgb), .14);
    color: var(--hy-accent-strong);
}

.theme-swatch {
    width: 34px;
    height: 18px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18);
}

.theme-swatch-core {
    background: linear-gradient(135deg, #7dd3fc, #a5b4fc);
}

.theme-swatch-violet {
    background: linear-gradient(135deg, #c084fc, #60a5fa);
}

.theme-swatch-ember {
    background: linear-gradient(135deg, #f59e0b, #fb7185);
}

.theme-swatch-rose {
    background: linear-gradient(135deg, #fb7185, #f0abfc);
}

.theme-swatch-aurora {
    background: linear-gradient(135deg, #22d3ee, #a78bfa);
}

.theme-swatch-steel {
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
}

.theme-swatch-cobalt {
    background: linear-gradient(135deg, #60a5fa, #2dd4bf);
}

.theme-swatch-paper {
    background: linear-gradient(135deg, #f8fafc 0 48%, #2563eb 48% 100%);
}

.theme-swatch-mist {
    background: linear-gradient(135deg, #eef7f8 0 48%, #0891b2 48% 100%);
}

.theme-swatch-ivory {
    background: linear-gradient(135deg, #fffaf2 0 48%, #b45309 48% 100%);
}

.card,
.modal-content,
.list-group-item,
.admin-dashboard .dashboard-panel,
.admin-dashboard .metric-tile {
    border: 1px solid var(--hy-border);
    border-radius: var(--hy-radius);
    background: linear-gradient(180deg, rgba(20, 31, 42, .92), rgba(12, 18, 26, .92));
    color: var(--hy-text);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .2);
}

.card {
    overflow: hidden;
}

.card-header,
.card-footer {
    border-color: var(--hy-border);
    background: rgba(255, 255, 255, .035);
    color: var(--hy-text);
}

.card-body {
    color: var(--hy-text-soft);
}

.modal-header,
.modal-footer {
    border-color: var(--hy-border);
}

.modal-backdrop.show {
    opacity: .74;
}

.alert {
    border: 1px solid var(--hy-border);
    border-radius: var(--hy-radius);
    color: var(--hy-text);
    background: rgba(20, 31, 42, .9);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .2);
}

.alert-success {
    border-color: rgba(52, 211, 153, .34);
    background: rgba(52, 211, 153, .1);
}

.alert-warning {
    border-color: rgba(243, 200, 91, .38);
    background: rgba(243, 200, 91, .11);
}

.alert-danger {
    border-color: rgba(255, 107, 122, .42);
    background: rgba(255, 107, 122, .1);
}

.alert-info {
    border-color: rgba(116, 185, 255, .38);
    background: rgba(116, 185, 255, .1);
}

.form-control,
.form-select {
    border-color: var(--hy-border);
    border-radius: 7px;
    background-color: rgba(255, 255, 255, .045);
    color: var(--hy-text);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(var(--hy-accent-rgb), .72);
    background-color: rgba(255, 255, 255, .06);
    color: var(--hy-text);
    box-shadow: 0 0 0 .2rem rgba(var(--hy-accent-rgb), .14);
}

.form-control::placeholder {
    color: rgba(198, 208, 220, .52);
}

.form-label,
.form-check-label {
    color: var(--hy-text-soft);
    font-weight: 600;
}

.form-check-input {
    background-color: rgba(255, 255, 255, .08);
    border-color: var(--hy-border-strong);
}

.form-check-input:checked {
    border-color: var(--hy-accent);
    background-color: var(--hy-accent);
}

select option {
    background-color: #0f1720;
    color: var(--hy-text);
}

.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--hy-text-soft);
    --bs-table-border-color: var(--hy-border);
    --bs-table-striped-bg: rgba(255, 255, 255, .035);
    --bs-table-striped-color: var(--hy-text);
    --bs-table-hover-bg: rgba(var(--hy-accent-rgb), .075);
    --bs-table-hover-color: #ffffff;
    color: var(--hy-text-soft);
    overflow: hidden;
}

.table thead,
.table .table-dark,
thead.table-dark {
    --bs-table-bg: rgba(5, 10, 16, .92);
    --bs-table-color: var(--hy-text);
    --bs-table-border-color: var(--hy-border);
}

.table-light,
.table-secondary,
.table-primary {
    --bs-table-bg: rgba(255, 255, 255, .045) !important;
    --bs-table-color: var(--hy-text-soft) !important;
    --bs-table-border-color: var(--hy-border) !important;
    --bs-table-striped-bg: rgba(255, 255, 255, .055) !important;
    --bs-table-striped-color: var(--hy-text) !important;
    --bs-table-active-bg: rgba(var(--hy-accent-rgb), .1) !important;
    --bs-table-active-color: var(--hy-text) !important;
    --bs-table-hover-bg: rgba(var(--hy-accent-rgb), .085) !important;
    --bs-table-hover-color: #ffffff !important;
    background-color: rgba(255, 255, 255, .045) !important;
    color: var(--hy-text-soft) !important;
}

.table-primary {
    --bs-table-bg: var(--hy-primary-surface) !important;
    --bs-table-color: #eef6ff !important;
    --bs-table-striped-bg: var(--hy-primary-surface-strong) !important;
    --bs-table-striped-color: #ffffff !important;
    --bs-table-hover-bg: var(--hy-primary-surface-hover) !important;
    background-color: var(--hy-primary-surface) !important;
    color: #eef6ff !important;
}

.table.table-striped > tbody > tr:nth-of-type(odd) > .table-light,
.table.table-striped > tbody > tr:nth-of-type(odd) > .table-secondary {
    --bs-table-bg-type: rgba(255, 255, 255, .055) !important;
}

.table.table-striped > tbody > tr:nth-of-type(odd) > .table-primary {
    --bs-table-bg-type: var(--hy-primary-surface-strong) !important;
}

.table-light a,
.table-secondary a,
.table-primary a {
    color: var(--hy-accent-strong) !important;
}

.table a {
    color: var(--hy-accent-strong);
    font-weight: 650;
}

.table-responsive {
    border: 1px solid var(--hy-border);
    border-radius: var(--hy-radius);
    background: rgba(10, 16, 23, .52);
}

.badge {
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 7px;
    padding: .42em .58em;
    font-weight: 750;
}

.ip-location-widget {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    max-width: 100%;
    padding: .34rem .56rem;
    border: 1px solid var(--hy-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, .045);
    color: var(--hy-text);
    vertical-align: middle;
}

.ip-location-flag {
    flex: 0 0 auto;
    width: 1.35rem;
    height: 1rem;
    border-radius: .18rem;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .16);
    line-height: 1;
}

.ip-location-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.12;
}

.ip-location-country {
    max-width: 12rem;
    overflow: hidden;
    color: var(--hy-text);
    font-size: .78rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ip-location-address {
    padding: 0;
    background: transparent;
    color: var(--hy-muted);
    font-size: .76rem;
    white-space: nowrap;
}

.ip-location-code {
    flex: 0 0 auto;
    padding: .16rem .35rem;
    border-radius: 999px;
    background: var(--hy-primary-surface);
    color: var(--hy-accent-strong);
    font-size: .68rem;
    font-weight: 900;
    line-height: 1;
}

.nav-pills {
    gap: .45rem;
}

.nav-pills .nav-link {
    border: 1px solid transparent;
    border-radius: 7px;
    color: var(--hy-text-soft);
    font-weight: 700;
}

.nav-pills .nav-link:hover {
    border-color: var(--hy-border);
    background: rgba(255, 255, 255, .045);
    color: #ffffff;
}

.nav-pills .nav-link.active,
.nav-tabs .nav-link.active {
    border-color: rgba(var(--hy-accent-rgb), .38);
    background: rgba(var(--hy-accent-rgb), .12);
    color: var(--hy-accent-strong);
}

.nav-tabs {
    border-color: var(--hy-border);
}

.nav-tabs .nav-link {
    border-radius: 7px 7px 0 0;
    color: var(--hy-text-soft);
}

.list-group {
    border-radius: var(--hy-radius);
    overflow: hidden;
}

.list-group-item-action:hover {
    background: rgba(var(--hy-accent-rgb), .08);
    color: #ffffff;
}

.page-hero {
    position: relative;
    --hero-bg-position: center 30%;
    min-height: min(560px, calc(100svh - 96px));
    display: grid;
    align-items: center;
    margin: -2rem calc(50% - 50vw) 2.5rem;
    padding: 5.5rem max(1.5rem, calc((100vw - 1140px) / 2)) 4rem;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(5, 9, 13, .94) 0%, rgba(5, 9, 13, .72) 45%, rgba(5, 9, 13, .24) 100%),
        url("../img/bg-9_dzr31.png") var(--hero-bg-position) / cover no-repeat;
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(to bottom, transparent, var(--hy-bg));
}

.page-hero-auth {
    --hero-bg-position: center 24%;
    min-height: max(680px, calc(100svh - 10rem));
    margin-bottom: -4rem;
    padding-top: clamp(5rem, 9svh, 7rem);
    padding-bottom: clamp(5rem, 12svh, 8rem);
    background:
        linear-gradient(90deg, rgba(16, 8, 28, .96) 0%, rgba(16, 8, 28, .76) 43%, rgba(16, 8, 28, .24) 100%),
        url("../img/bg-9_dzr31.png") var(--hero-bg-position) / cover no-repeat;
}

.page-hero-content {
    position: relative;
    z-index: 1;
    width: min(620px, 100%);
}

.login-sync-note {
    width: min(560px, 100%);
    border: 1px solid rgba(var(--hy-accent-rgb), .22);
    border-radius: var(--hy-radius);
    padding: .85rem 1rem;
    background: rgba(33, 22, 49, .72);
    color: var(--hy-text-soft);
    font-size: .92rem;
}

.eyebrow {
    color: var(--hy-accent-strong);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.lead {
    color: var(--hy-text-soft);
}

.auth-panel,
.content-panel {
    border: 1px solid var(--hy-border);
    border-radius: var(--hy-radius);
    background: rgba(15, 23, 32, .78);
    box-shadow: var(--hy-shadow);
}

.debug-workspace {
    max-width: 1180px;
}

.debug-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: .75rem;
}

.debug-action-panel,
.debug-submit-panel {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    border: 1px solid rgba(var(--hy-accent-rgb), .3);
    border-radius: var(--hy-radius);
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(var(--hy-accent-rgb), .15), rgba(255, 255, 255, .035));
}

.debug-action-panel .btn,
.debug-submit-panel .btn {
    align-self: flex-start;
}

.debug-submit-panel {
    border-color: rgba(52, 211, 153, .32);
    background: linear-gradient(135deg, rgba(52, 211, 153, .12), rgba(var(--hy-accent-rgb), .08));
}

.debug-notice {
    border: 1px solid rgba(var(--hy-accent-rgb), .22);
    border-radius: var(--hy-radius);
    padding: 1rem 1.1rem;
    background: rgba(var(--hy-accent-rgb), .08);
    color: var(--hy-text-soft);
}

.debug-empty-state {
    border: 1px dashed var(--hy-border-strong);
    border-radius: var(--hy-radius);
    padding: 2rem;
    color: var(--hy-muted);
    text-align: center;
}

.debug-log-accordion {
    display: grid;
    gap: .65rem;
}

.debug-log-accordion .accordion-item {
    overflow: hidden;
    border: 1px solid var(--hy-border);
    border-radius: var(--hy-radius);
    background: rgba(255, 255, 255, .03);
}

.debug-log-accordion .accordion-button {
    display: flex;
    gap: .75rem;
    align-items: center;
    justify-content: flex-start;
    border: 0;
    background: rgba(255, 255, 255, .035);
    color: var(--hy-text);
    font-weight: 750;
    box-shadow: none;
}

.debug-log-accordion .accordion-button:not(.collapsed) {
    background: rgba(var(--hy-accent-rgb), .13);
    color: var(--hy-text);
}

.debug-log-accordion .accordion-button::after {
    margin-left: .75rem;
    flex: 0 0 auto;
    filter: invert(1) grayscale(1);
}

.debug-log-accordion .accordion-body {
    border-top: 1px solid var(--hy-border);
    background: rgba(3, 6, 10, .24);
}

.debug-log-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.debug-member-title {
    min-width: 0;
    display: grid;
    gap: .15rem;
    overflow: hidden;
}

.debug-member-title span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.debug-member-title .text-muted {
    font-size: .84rem;
    font-weight: 600;
}

.debug-log-missing .debug-log-title {
    color: var(--hy-muted);
}

.debug-status-badge {
    flex: 0 0 auto;
    margin-left: auto;
    min-width: 4.8rem;
    border: 1px solid transparent;
    padding: .4rem .55rem;
    text-align: center;
}

.debug-status-found {
    border-color: rgba(52, 211, 153, .32);
    background: rgba(52, 211, 153, .16);
    color: #bbf7d0;
}

.debug-status-missing {
    border-color: rgba(148, 163, 184, .24);
    background: rgba(148, 163, 184, .12);
    color: var(--hy-muted);
}

.debug-log-meta {
    color: var(--hy-muted);
    font-size: .85rem;
}

.debug-log-output {
    max-height: 520px;
    overflow: auto;
    border: 1px solid var(--hy-border);
    border-radius: var(--hy-radius);
    padding: 1rem;
    background: rgba(3, 6, 10, .55);
    color: var(--hy-text-soft);
    font-size: .82rem;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.debug-log-body-toolbar {
    display: flex;
    justify-content: flex-end;
}

.debug-log-fullscreen-modal .modal-dialog {
    width: 100vw;
    max-width: none;
    height: 100%;
    margin: 0;
}

.debug-log-fullscreen-modal .modal-content {
    min-height: 100%;
    border-radius: 0;
}

.debug-log-fullscreen-body {
    display: flex;
    min-height: 0;
    padding: .75rem;
}

.debug-log-fullscreen-output {
    width: 100%;
    max-height: none;
    min-height: calc(100vh - 5.5rem);
    font-size: clamp(.78rem, 1.4vw, .95rem);
}

.debug-submission {
    border: 1px solid var(--hy-border);
    border-radius: var(--hy-radius);
    padding: 1rem;
    background: rgba(255, 255, 255, .03);
}

.debug-submission + .debug-submission {
    margin-top: 1rem;
}

.debug-submission summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .75rem;
    cursor: pointer;
    color: var(--hy-text);
    font-weight: 700;
}

.debug-submission-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .75rem;
}

.async-admin-placeholder {
    border: 1px dashed var(--hy-border-strong);
    border-radius: var(--hy-radius);
    padding: 1.25rem;
    color: var(--hy-muted);
    text-align: center;
}

.async-admin-section-loading {
    opacity: .72;
}

.async-admin-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .65rem;
    color: var(--hy-muted);
    font-size: .85rem;
    font-weight: 700;
}

.async-admin-pagination {
    display: flex;
    justify-content: flex-end;
    margin-top: .85rem;
}

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

.debug-guide-panel {
    border: 1px solid var(--hy-border);
    border-radius: var(--hy-radius);
    padding: 1.25rem;
    background: rgba(255, 255, 255, .035);
}

.debug-steps {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.debug-steps li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .85rem;
    color: var(--hy-text-soft);
}

.debug-step-number {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: rgba(var(--hy-accent-rgb), .16);
    color: var(--hy-accent-strong);
    font-weight: 800;
}

.debug-path-list {
    display: grid;
    gap: .65rem;
}

.debug-path-list div {
    display: grid;
    gap: .2rem;
}

.debug-path-list span {
    color: var(--hy-muted);
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.debug-file-list {
    border: 1px solid var(--hy-border);
    border-radius: var(--hy-radius);
    padding: 1rem 1.1rem;
    background: rgba(255, 255, 255, .025);
}

.debug-file-list summary {
    cursor: pointer;
    color: var(--hy-text);
    font-weight: 700;
}

.admin-dashboard .metric-tile,
.admin-dashboard .dashboard-panel {
    background: linear-gradient(180deg, rgba(20, 31, 42, .94), rgba(11, 17, 24, .92));
}

.admin-dashboard .metric-label,
.admin-dashboard .panel-note {
    color: var(--hy-muted) !important;
}

.admin-dashboard .chart-shell {
    height: 280px;
    min-height: 280px;
}

pre,
code {
    color: #ffe0a1;
}

pre {
    border: 1px solid var(--hy-border);
}

hr {
    border-color: var(--hy-border);
    opacity: 1;
}

.pagination {
    --bs-pagination-bg: rgba(255, 255, 255, .035);
    --bs-pagination-border-color: var(--hy-border);
    --bs-pagination-color: var(--hy-text-soft);
    --bs-pagination-hover-bg: rgba(var(--hy-accent-rgb), .1);
    --bs-pagination-hover-color: #ffffff;
    --bs-pagination-active-bg: var(--hy-accent);
    --bs-pagination-active-border-color: var(--hy-accent);
    --bs-pagination-active-color: var(--hy-on-accent);
}

html[data-theme="paper"] .app-header,
html[data-theme="mist"] .app-header,
html[data-theme="ivory"] .app-header {
    background: rgba(255, 255, 255, .78);
    border-bottom-color: var(--hy-border);
}

html[data-theme="paper"] .app-footer,
html[data-theme="mist"] .app-footer,
html[data-theme="ivory"] .app-footer {
    background: rgba(255, 255, 255, .62);
    border-top-color: var(--hy-border);
}

html[data-theme="paper"] .navbar .nav-link:hover,
html[data-theme="paper"] .navbar .nav-link:focus,
html[data-theme="mist"] .navbar .nav-link:hover,
html[data-theme="mist"] .navbar .nav-link:focus,
html[data-theme="ivory"] .navbar .nav-link:hover,
html[data-theme="ivory"] .navbar .nav-link:focus {
    color: var(--hy-text);
    background: rgba(var(--hy-accent-rgb), .1);
}

html[data-theme="paper"] .dropdown-menu,
html[data-theme="mist"] .dropdown-menu,
html[data-theme="ivory"] .dropdown-menu {
    --bs-dropdown-bg: rgba(255, 255, 255, .98);
    --bs-dropdown-border-color: var(--hy-border);
    --bs-dropdown-link-color: var(--hy-text-soft);
    --bs-dropdown-link-hover-color: var(--hy-text);
    --bs-dropdown-link-hover-bg: rgba(var(--hy-accent-rgb), .1);
    --bs-dropdown-divider-bg: var(--hy-border);
}

html[data-theme="paper"] .card,
html[data-theme="paper"] .modal-content,
html[data-theme="paper"] .list-group-item,
html[data-theme="paper"] .admin-dashboard .dashboard-panel,
html[data-theme="paper"] .admin-dashboard .metric-tile,
html[data-theme="mist"] .card,
html[data-theme="mist"] .modal-content,
html[data-theme="mist"] .list-group-item,
html[data-theme="mist"] .admin-dashboard .dashboard-panel,
html[data-theme="mist"] .admin-dashboard .metric-tile,
html[data-theme="ivory"] .card,
html[data-theme="ivory"] .modal-content,
html[data-theme="ivory"] .list-group-item,
html[data-theme="ivory"] .admin-dashboard .dashboard-panel,
html[data-theme="ivory"] .admin-dashboard .metric-tile {
    background: linear-gradient(180deg, var(--hy-surface), var(--hy-surface-raised));
    color: var(--hy-text);
}

html[data-theme="paper"] .card-header,
html[data-theme="paper"] .card-footer,
html[data-theme="mist"] .card-header,
html[data-theme="mist"] .card-footer,
html[data-theme="ivory"] .card-header,
html[data-theme="ivory"] .card-footer {
    background: rgba(15, 23, 42, .035);
    color: var(--hy-text);
}

html[data-theme="paper"] .bg-dark,
html[data-theme="paper"] .table-dark,
html[data-theme="paper"] .card-header.bg-dark,
html[data-theme="mist"] .bg-dark,
html[data-theme="mist"] .table-dark,
html[data-theme="mist"] .card-header.bg-dark,
html[data-theme="ivory"] .bg-dark,
html[data-theme="ivory"] .table-dark,
html[data-theme="ivory"] .card-header.bg-dark {
    background-color: #1f2937 !important;
    color: #f8fafc !important;
}

html[data-theme="paper"] .table-light,
html[data-theme="paper"] .table-secondary,
html[data-theme="mist"] .table-light,
html[data-theme="mist"] .table-secondary,
html[data-theme="ivory"] .table-light,
html[data-theme="ivory"] .table-secondary {
    --bs-table-bg: rgba(15, 23, 42, .045) !important;
    --bs-table-color: var(--hy-text-soft) !important;
    --bs-table-striped-bg: rgba(15, 23, 42, .065) !important;
    --bs-table-striped-color: var(--hy-text) !important;
    background-color: rgba(15, 23, 42, .045) !important;
    color: var(--hy-text-soft) !important;
}

html[data-theme="paper"] .table.table-striped > tbody > tr:nth-of-type(odd) > .table-light,
html[data-theme="paper"] .table.table-striped > tbody > tr:nth-of-type(odd) > .table-secondary,
html[data-theme="mist"] .table.table-striped > tbody > tr:nth-of-type(odd) > .table-light,
html[data-theme="mist"] .table.table-striped > tbody > tr:nth-of-type(odd) > .table-secondary,
html[data-theme="ivory"] .table.table-striped > tbody > tr:nth-of-type(odd) > .table-light,
html[data-theme="ivory"] .table.table-striped > tbody > tr:nth-of-type(odd) > .table-secondary {
    --bs-table-bg-type: rgba(15, 23, 42, .065) !important;
}

html[data-theme="paper"] .form-control,
html[data-theme="paper"] .form-select,
html[data-theme="mist"] .form-control,
html[data-theme="mist"] .form-select,
html[data-theme="ivory"] .form-control,
html[data-theme="ivory"] .form-select {
    background-color: rgba(255, 255, 255, .76);
    color: var(--hy-text);
}

html[data-theme="paper"] select option,
html[data-theme="mist"] select option,
html[data-theme="ivory"] select option {
    background-color: #ffffff;
    color: var(--hy-text);
}

@media (max-width: 991.98px) {
    .debug-guide-grid {
        grid-template-columns: 1fr;
    }

    .navbar-collapse {
        padding: .75rem 0 .35rem;
    }

    .navbar .nav-link,
    .navbar .btn {
        margin-top: .25rem;
    }

    .app-user-name {
        max-width: 16rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 767.98px) {
    .app-main {
        padding-top: 1.25rem;
    }

    .page-hero {
        min-height: 560px;
        padding-top: 4rem;
    }

    .table-responsive {
        border-radius: 7px;
    }

    h1 {
        font-size: 2rem;
    }
}
