/* Advantage Log Portal 4.0 RC1: visual foundation; respects existing templates. */
:root {
    --navy: #0b2033;
    --navy-light: #153954;
    --blue: #116ca9;
    --blue-bright: #238dd1;
    --background: #f3f6fb;
    --surface: #ffffff;
    --surface-alt: #f7f9fc;
    --border: #dce4ed;
    --text: #1d2e42;
    --muted: #62758b;
    --shadow: 0 10px 28px rgba(15, 37, 61, .055);
}
html[data-theme="dark"] {
    --background: #0c141e;
    --surface: #131f2c;
    --surface-alt: #1a2a3a;
    --border: #293c4f;
    --text: #edf3f9;
    --muted: #9db0c4;
    --shadow: 0 12px 35px rgba(0, 0, 0, .17);
}
body { font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif; font-size: 14px; }
.app-shell { grid-template-columns: 246px minmax(0, 1fr); }
.sidebar {
    background: linear-gradient(170deg, #071627 0%, #0d2a43 70%, #10263a 100%);
    border-right: 1px solid rgba(75,151,212,.16);
    box-shadow: 6px 0 36px rgba(0,0,0,.06);
}
.brand { padding-bottom: 24px; border-bottom: 1px solid rgba(225,241,255,.08); }
.brand-main { font-size: 10px; letter-spacing: .18em; font-weight: 850; color: #91bbdb; }
.brand-product { font-size: 24px; letter-spacing: -.045em; margin-top: 7px; }
.version-badge { border-radius: 7px; padding: 5px 8px; color: #bce3fc; background: rgba(39,141,209,.13); border: 1px solid rgba(55,153,211,.22); }
.nav-section-title { font-size: 10px; margin-top: 26px; letter-spacing: .16em; color: #779ab6; }
.nav-link { border-radius: 11px; font-size: 13px; font-weight: 650; padding: 12px 11px; transition: background .16s ease, color .16s ease; }
.nav-link:hover { background: rgba(131,196,245,.12); }
.nav-link.active { background: rgba(32,141,216,.22); color: #fff; box-shadow: inset 3px 0 #37a6e8; }
.nav-icon { font-size: 16px; opacity: .85; }
.main-area { min-width: 0; }
.topbar { background: var(--surface); border-bottom: 1px solid var(--border); padding: 17px 29px; }
.page-heading { font-size: 21px; font-weight: 850; letter-spacing: -.03em; }
.page-subtitle { font-size: 12px; margin-top: 4px; }
.container { width: calc(100% - 56px); max-width: 1650px; margin: 25px auto; }
.card { border-radius: 14px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.card-header { padding: 17px 20px; }
.card-title { font-size: 15px; font-weight: 800; }
.button { font-weight: 750; border-radius: 9px; transition: transform .15s ease, opacity .15s ease; }
.button:hover { opacity: .92; }
.button:focus-visible, .nav-link:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 2px; }
input, select, textarea { border-radius: 9px; background: var(--surface); color: var(--text); font-size: 13px; }
label { font-size: 11px; letter-spacing: .055em; }
.theme-button { border-radius: 9px; }
.severity-badge { padding: 6px 10px; min-width: 68px; }
@media (max-width: 900px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { position: relative; height: auto; }
    .nav-section-title, .sidebar-bottom { display: none; }
    .container { width: calc(100% - 26px); }
    .topbar { padding: 16px; }
}
