/* ============================================================================
   SecureDesk portal — design system
   A PAN-OS / Panorama copy (mirroring Rubix Vision): charcoal #19222e chrome
   carrying uppercase primary tab tiles, an accent brand strip beneath it, a light
   tree sidebar, white squared-corner panels with title bands, 26px-row zebra
   tables, Lato at 12.5px, and pill buttons. Accent is Rubix blue #2563eb (a
   deployment can override it via branding). Dark is the native default here; light
   is the same PAN-OS light theme, reachable from the header toggle.

   Two token systems live side by side on purpose: the rv-* tokens/classes the new
   shell is built from, and a bridge that maps the portal's older classes
   (.card/.pill/.stat/button/table/...) and legacy vars (--muted/--bad-fg/...) onto
   the rv tokens, so existing markup and app.js templates keep working.
   ============================================================================ */

@font-face { font-family: Lato; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/Lato-Regular.woff2') format('woff2'); }
@font-face { font-family: Lato; font-style: normal; font-weight: 600 700; font-display: swap; src: url('fonts/Lato-Bold.woff2') format('woff2'); }

/* ── Tokens: dark (default) ─────────────────────────────────────────────── */
:root,
:root[data-theme="dark"],
body.theme-dark {
    /* accent family — Rubix blue in place of PAN-OS gold / Vision mint */
    --rv-accent:        #2563eb;   /* primary fills, brand strip, active bars */
    --rv-accent-fg:     #ffffff;   /* text ON a blue fill (blue is dark, so white) */
    --rv-accent-hover:  #1d4ed8;
    --rv-accent-active: #1e40af;
    --rv-accent-strong: #7ca9fb;   /* links / accent text, AA on dark panels */
    --rv-accent-soft:   #17233b;   /* blue chip / wash background */
    --rv-accent-dim:    #2a3f63;   /* muted blue (progress trails) */
    --rv-accent-2:      #4e88a8;   /* steel blue — secondary series */
    --rv-violet:        #a97fc9;
    --rv-link:          #7ca9fb;
    --rv-focus-ring:    #3b82f6;
    --rv-accent-hdr:    #6ea8fe;   /* accent bits ON the charcoal header (constant) */

    --rv-bg:            #10161d;
    --rv-surface:       #1a222c;
    --rv-surface-2:     #202832;
    --rv-titlebar:      #232b35;
    --rv-sidebar:       #141b23;
    --rv-nav-sel:       #2a333e;
    --rv-topbar:        #19222e;

    --rv-text:          #d6dade;
    --rv-text-body:     #c3c9cf;
    --rv-text-muted:    #9aa4ad;
    --rv-text-faint:    #6b7580;
    --rv-text-invert:   #ffffff;

    --rv-border:        #232c36;
    --rv-border-strong: #3a444f;
    --rv-th-rule:       #4a545f;
    --rv-input-border:  #3a444f;
    --rv-input-bg:      #121a22;
    --rv-track:         #3a444f;

    --rv-header-bg:     #19222e;
    --rv-header-fg:     #ffffff;
    --rv-tab-fg:        #a2a9b0;
    --rv-tab-fg-active: #ffffff;
    --rv-tab-hover:     rgba(255, 255, 255, .06);
    --rv-tab-active-bg: #2f3742;

    --rv-success:       #a4c451;
    --rv-success-dot:   #8ab55e;
    --rv-success-soft:  rgba(164, 196, 81, .15);
    --rv-warning:       #ffc425;
    --rv-warning-dot:   #ffc425;
    --rv-warning-soft:  rgba(255, 196, 37, .14);
    --rv-danger:        #e05a61;
    --rv-danger-hover:  #ea7d83;
    --rv-danger-soft:   rgba(224, 90, 97, .18);
    --rv-info:          #4fa8e8;
    --rv-info-soft:     rgba(79, 168, 232, .14);

    --rv-row-alt:       #141d28;
    --rv-row-hover:     #17263a;

    --rv-chip-bg:       #232b35;
    --rv-chip-fg:       #c3c9cf;

    --rv-term-bg:       #0c1116;
    --rv-term-fg:       #d6dade;

    --rv-scrim:         rgba(0, 0, 0, .6);

    --rv-shadow-sm: 0 0 1px rgba(255, 255, 255, .08), 0 1px 2px rgba(0, 0, 0, .5);
    --rv-shadow:    0 0 1px rgba(255, 255, 255, .08), 0 8px 24px rgba(0, 0, 0, .85);
    --rv-shadow-lg: 0 0 1px rgba(255, 255, 255, .08), 0 12px 48px rgba(0, 0, 0, .9);

    --rv-radius:    3px;
    --rv-radius-sm: 2px;
    --rv-radius-lg: 3px;
    --rv-mono: ui-monospace, 'Cascadia Code', SFMono-Regular, Menlo, Consolas, monospace;

    --rv-sidebar-w: 210px;
    --rv-header-h:  44px;
    --rv-strip-h:   6px;

    color-scheme: dark;
}

/* ── Tokens: light (PAN-OS native) ──────────────────────────────────────── */
:root[data-theme="light"],
body.theme-light {
    --rv-accent:        #2563eb;
    --rv-accent-fg:     #ffffff;
    --rv-accent-hover:  #1d4ed8;
    --rv-accent-active: #1e40af;
    --rv-accent-strong: #1d4ed8;   /* AA on white panels */
    --rv-accent-soft:   #dbeafe;
    --rv-accent-dim:    #93c5fd;
    --rv-accent-2:      #346a88;
    --rv-violet:        #7d44a0;
    --rv-link:          #1d4ed8;
    --rv-focus-ring:    #2563eb;
    --rv-accent-hdr:    #6ea8fe;

    --rv-bg:            #f2f3f4;
    --rv-surface:       #ffffff;
    --rv-surface-2:     #edeeee;
    --rv-titlebar:      #dadcde;
    --rv-sidebar:       #f9f9f9;
    --rv-nav-sel:       #dadcde;
    --rv-topbar:        #19222e;

    --rv-text:          #2a3138;
    --rv-text-body:     #49535b;
    --rv-text-muted:    #6b7580;
    --rv-text-faint:    #999999;
    --rv-text-invert:   #ffffff;

    --rv-border:        #e4e6e8;
    --rv-border-strong: #c8cbce;
    --rv-th-rule:       #a4a9ad;
    --rv-input-border:  #b6babd;
    --rv-input-bg:      #ffffff;
    --rv-track:         #dadcde;

    --rv-header-bg:     #19222e;
    --rv-header-fg:     #ffffff;
    --rv-tab-fg:        #a2a9b0;
    --rv-tab-fg-active: #ffffff;
    --rv-tab-hover:     rgba(255, 255, 255, .06);
    --rv-tab-active-bg: #2f3742;

    --rv-success:       #4e7a2e;
    --rv-success-dot:   #6ba243;
    --rv-success-soft:  rgba(164, 196, 81, .18);
    --rv-warning:       #8a6400;
    --rv-warning-dot:   #ffc425;
    --rv-warning-soft:  rgba(255, 196, 37, .20);
    --rv-danger:        #cd383f;
    --rv-danger-hover:  #d95b61;
    --rv-danger-soft:   rgba(205, 56, 63, .10);
    --rv-info:          #006fcc;
    --rv-info-soft:     rgba(0, 111, 204, .10);

    --rv-row-alt:       #eef3fb;
    --rv-row-hover:     #e3edfb;

    --rv-chip-bg:       #edeeee;
    --rv-chip-fg:       #49535b;

    --rv-term-bg:       #131416;
    --rv-term-fg:       #dee0e3;

    --rv-scrim:         rgba(0, 0, 0, .35);

    --rv-shadow-sm: 0 0 1px rgba(25, 34, 46, .10), 0 1px 2px rgba(25, 34, 46, .06);
    --rv-shadow:    0 0 1px rgba(25, 34, 46, .10), 0 8px 24px rgba(25, 34, 46, .10);
    --rv-shadow-lg: 0 0 1px rgba(25, 34, 46, .10), 0 12px 48px rgba(25, 34, 46, .16);

    color-scheme: light;
}

/* ── Legacy portal vars → rv tokens (theme-independent indirection) ──────── */
:root {
    --bg:      var(--rv-bg);
    --panel:   var(--rv-surface);
    --panel2:  var(--rv-surface-2);
    --line:    var(--rv-border);
    --line2:   var(--rv-border-strong);
    --txt:     var(--rv-text);
    --muted:   var(--rv-text-muted);
    --dim:     var(--rv-text-faint);
    --accent:  var(--rv-accent);
    --accent2: var(--rv-accent-hover);
    --good:    var(--rv-success-soft);
    --good-fg: var(--rv-success);
    --warn-fg: var(--rv-warning);
    --bad:     var(--rv-danger-soft);
    --bad-fg:  var(--rv-danger);
    --sb:      var(--rv-sidebar);
}

/* ── Base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    font-family: Lato, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 12.5px;
    background: var(--rv-bg);
    color: var(--rv-text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: var(--rv-link); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--rv-text); font-weight: 700; margin: 0 0 .4em; }
h1 { font-size: 1.35rem; }

code, pre, .mono, .rv-mono { font-family: var(--rv-mono); }

:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--rv-focus-ring); }
::placeholder { color: var(--rv-text-faint); opacity: 1; }

* { scrollbar-width: thin; scrollbar-color: var(--rv-track) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--rv-track); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--rv-text-faint); }
::-webkit-scrollbar-track { background: transparent; }

.hidden { display: none !important; }

/* Hard 2FA gate: no navigating away until enrolled. */
body.gated .rv-toptabs, body.gated .rv-sidebar, body.gated .rv-user, body.gated #logout { display: none !important; }

/* ============================================================================
   App shell — PAN-OS chrome: charcoal header (brand + primary tab tiles +
   controls), accent brand strip, light tree sidebar, scrolling content.
   ============================================================================ */
.rv-shell { display: flex; flex-direction: column; min-height: 100vh; }

.rv-header { height: var(--rv-header-h); flex: 0 0 auto; display: flex; align-items: stretch; gap: 0; padding: 0 12px 0 16px; background: var(--rv-header-bg); color: var(--rv-header-fg); position: sticky; top: 0; z-index: 60; }
.rv-header-brand { display: flex; align-items: center; gap: 9px; margin-right: 20px; white-space: nowrap; }
.rv-header-brand .rv-brand-name { font-size: 14px; font-weight: 700; letter-spacing: .2px; color: #fff; }
.rv-header-brand .rv-brand-name b { color: var(--rv-accent-hdr); font-weight: 700; }
.rv-brand-dot { width: 26px; height: 26px; border-radius: var(--rv-radius-sm); background: rgba(255, 255, 255, .06); color: var(--rv-accent-hdr); display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; }
.rv-brand-dot svg, .rv-brand-dot img { width: 16px; height: 16px; object-fit: contain; }
.rv-header-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.rv-toptabs { display: flex; align-items: stretch; overflow-x: auto; scrollbar-width: none; }
.rv-toptabs::-webkit-scrollbar { display: none; }
.rv-toptab { display: flex; align-items: center; padding: 0 18px; background: transparent; border: 0; height: 100%; color: var(--rv-tab-fg); font-family: inherit; font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .12s ease, color .12s ease; }
.rv-toptab:hover { background: var(--rv-tab-hover); color: #fff; text-decoration: none; }
.rv-toptab.active { background: var(--rv-tab-active-bg); color: var(--rv-tab-fg-active); }

.rv-brandstrip { height: var(--rv-strip-h); flex: 0 0 auto; background: var(--rv-accent); position: sticky; top: var(--rv-header-h); z-index: 59; }

.rv-iconbtn { width: 28px; height: 28px; border-radius: var(--rv-radius-sm); border: none; background: transparent; color: #a2a9b0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .12s, color .12s; padding: 0; }
.rv-iconbtn:hover { background: var(--rv-tab-active-bg); color: #fff; }
.rv-iconbtn svg { width: 17px; height: 17px; }

.rv-theme-sun { display: none; }
:root[data-theme="light"] .rv-theme-sun, body.theme-light .rv-theme-sun { display: block; }
:root[data-theme="light"] .rv-theme-moon, body.theme-light .rv-theme-moon { display: none; }

.rv-user { display: flex; align-items: center; gap: 8px; padding: 3px 8px 3px 4px; border-radius: var(--rv-radius-sm); cursor: default; }
.rv-user:hover { background: var(--rv-tab-hover); }
.rv-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--rv-tab-active-bg); border: 1px solid rgba(255, 255, 255, .15); color: var(--rv-accent-hdr); display: grid; place-items: center; font-weight: 700; font-size: .85rem; flex: 0 0 auto; }
.rv-user-name { font-size: .95rem; font-weight: 600; line-height: 1.15; color: #fff; }
.rv-user-role { font-size: .82rem; color: #a2a9b0; text-transform: capitalize; }

.rv-body { display: flex; flex: 1 1 auto; min-height: 0; align-items: stretch; }

.rv-sidebar { width: var(--rv-sidebar-w); flex: 0 0 var(--rv-sidebar-w); background: var(--rv-sidebar); border-right: 1px solid var(--rv-border); display: flex; flex-direction: column; padding: 6px 0; position: sticky; top: calc(var(--rv-header-h) + var(--rv-strip-h)); align-self: flex-start; height: calc(100vh - var(--rv-header-h) - var(--rv-strip-h)); overflow-y: auto; }

.rv-nav { flex: 1 1 auto; overflow-y: auto; padding: 0; }
.rv-nav-section { font-size: .82rem; color: var(--rv-text-muted); font-weight: 700; letter-spacing: .6px; text-transform: uppercase; padding: 12px 12px 5px; }
.rv-nav-link { display: flex; align-items: center; justify-content: flex-start; gap: 8px; height: 26px; padding: 0 12px; border: 0; width: 100%; text-align: left; background: none; border-radius: 0; color: var(--rv-text-body); font-family: inherit; font-weight: 400; font-size: 1rem; cursor: pointer; transition: background .12s, color .12s; text-decoration: none; user-select: none; }
.rv-nav-link:hover { background: var(--rv-surface-2); color: var(--rv-text); text-decoration: none; }
.rv-nav-link.active { background: var(--rv-nav-sel); color: var(--rv-text); font-weight: 700; }
.rv-nav-link svg { width: 15px; height: 15px; flex: 0 0 auto; opacity: .85; }
.rv-nav-foot { padding: 10px 12px; border-top: 1px solid var(--rv-border); font-size: .82rem; color: var(--rv-text-faint); }

.rv-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.rv-content { flex: 1 1 auto; min-height: 0; min-width: 0; overflow-x: auto; }

/* Page header (title band under the shell) */
.rv-page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 32px 0; }
.rv-page-title { font-size: 1.3rem; font-weight: 700; margin: 0; }
.rv-page-sub { color: var(--rv-text-muted); margin: 3px 0 0; font-size: .95rem; }

@media (max-width: 900px) {
    .rv-user-meta { display: none; }
    .rv-toptab { padding: 0 10px; }
    /* Stack the tree above the content and lay its items out as a wrapping strip, so
       every nav item stays reachable without the desktop sidebar (previously the tree
       was display:none here, stranding all non-first items — e.g. Account > 2FA). */
    .rv-body { flex-direction: column; }
    .rv-sidebar { position: static; width: 100%; flex-basis: auto; height: auto; border-right: 0; border-bottom: 1px solid var(--rv-border); padding: 4px 8px; overflow: visible; }
    .rv-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; overflow-x: auto; }
    .rv-nav-section { width: auto; padding: 4px 8px 4px 4px; }
    .rv-nav-link { width: auto; height: 26px; border-radius: var(--rv-radius); padding: 0 12px; }
    .rv-nav-link.active { background: var(--rv-accent-soft); color: var(--rv-accent-strong); }
    .rv-nav-foot { display: none; }
}

/* ============================================================================
   Bridge — the portal's existing content classes, PAN-OS styling.
   ============================================================================ */

/* content column */
.wrap { padding: 18px 32px 48px; max-width: 1500px; }

/* Buttons — PAN-OS pills: bare button = blue primary; .ghost / .danger / .mini */
button {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 0 14px; height: 28px; font: 600 1rem/1 inherit; font-family: inherit;
    letter-spacing: .25px; border-radius: var(--rv-radius); cursor: pointer; white-space: nowrap;
    border: 1px solid var(--rv-accent); background: var(--rv-accent); color: var(--rv-accent-fg);
    transition: background .12s ease, color .12s ease, border-color .12s ease;
}
button:hover:not(:disabled) { background: var(--rv-accent-hover); border-color: var(--rv-accent-hover); }
button:active:not(:disabled) { background: var(--rv-accent-active); border-color: var(--rv-accent-active); }
button:disabled { opacity: .45; cursor: not-allowed; }
button.ghost { background: var(--rv-surface); border-color: var(--rv-border-strong); color: var(--rv-text-body); }
button.ghost:hover:not(:disabled) { background: var(--rv-surface-2); border-color: var(--rv-border-strong); }
button.danger { background: var(--rv-danger); border-color: var(--rv-danger); color: #fff; }
button.danger:hover:not(:disabled) { background: var(--rv-danger-hover); border-color: var(--rv-danger-hover); }
button.mini { height: 24px; padding: 0 10px; font-size: .95rem; }
button svg { width: 15px; height: 15px; }

/* Anchors that act as buttons (download links) — avoids nesting <button> in <a>. */
a.linkbtn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 14px; border-radius: var(--rv-radius); border: 1px solid var(--rv-border-strong); background: var(--rv-surface); color: var(--rv-text-body); font-weight: 600; font-size: 1rem; letter-spacing: .25px; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .12s ease, border-color .12s ease; }
a.linkbtn:hover { background: var(--rv-surface-2); text-decoration: none; }
a.linkbtn--primary { background: var(--rv-accent); border-color: var(--rv-accent); color: var(--rv-accent-fg); }
a.linkbtn--primary:hover { background: var(--rv-accent-hover); border-color: var(--rv-accent-hover); }

/* Form controls */
input, select, textarea {
    height: 28px; padding: 0 9px; font: 1rem inherit; font-family: inherit; color: var(--rv-text);
    background: var(--rv-input-bg); border: 1px solid var(--rv-input-border); border-radius: var(--rv-radius);
    transition: border-color .12s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--rv-accent); box-shadow: none; }
textarea { height: auto; min-height: 80px; padding: 6px 9px; resize: vertical; }
input[type="color"] { padding: 2px; }
input[type="checkbox"], input[type="radio"] { height: auto; width: auto; accent-color: var(--rv-accent); }
input[type="file"] { height: auto; padding: 5px 9px; }
label { display: block; font-size: .95rem; font-weight: 600; color: var(--rv-text-muted); margin-bottom: 4px; }
select {
    appearance: none; -webkit-appearance: none; padding-right: 24px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'><path d='M1 1l4 4 4-4' stroke='%239aa4ad' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat; background-position: right 8px center;
}

/* Cards — PAN-OS widget: bordered panel with a gray title band (from >h2) */
.card { background: var(--rv-surface); border: 1px solid var(--rv-border-strong); border-radius: var(--rv-radius); padding: 14px 16px; margin-bottom: 16px; min-width: 0; }
.card > h2 { margin: -14px -16px 14px; padding: 8px 14px; background: var(--rv-titlebar); border-bottom: 1px solid var(--rv-border-strong); font-size: 1.05rem; font-weight: 600; color: var(--rv-text); text-transform: none; letter-spacing: 0; border-radius: var(--rv-radius) var(--rv-radius) 0 0; }

/* form rows — align to the baseline of inputs (buttons without a label above them
   must sit level with the input boxes, not float to the vertical centre). */
.row { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }

/* KPI tiles */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 16px; }
.stat { background: var(--rv-surface); border: 1px solid var(--rv-border-strong); border-radius: var(--rv-radius); padding: 14px 16px; }
.stat .n { font-size: 26px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--rv-text); }
.stat .l { color: var(--rv-text-muted); font-size: .88rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.stat .l .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.stat.accent .n { color: var(--rv-accent-strong); }
.stat.good .n { color: var(--rv-success); }
.stat.warn .n { color: var(--rv-warning); }

/* Tables — 26px rows, banded uppercase header, blue-tinted zebra */
table { width: 100%; border-collapse: collapse; font-size: 1rem; }
th { text-align: left; height: 26px; background: var(--rv-surface-2); font-size: .88rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--rv-text); padding: 0 8px; border-bottom: 1px solid var(--rv-th-rule); white-space: nowrap; }
td { height: 26px; padding: 3px 8px; border-bottom: 1px solid var(--rv-border); vertical-align: middle; color: var(--rv-text-body); }
tbody tr { transition: background .12s ease; }
tbody tr:nth-child(even) { background: var(--rv-row-alt); }
tbody tr:hover { background: var(--rv-row-hover); }

/* Badges / pills — square, bordered, status-tinted */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 1px 7px; font-size: .92rem; font-weight: 600; border-radius: var(--rv-radius-sm); border: 1px solid var(--rv-border-strong); background: var(--rv-chip-bg); color: var(--rv-chip-fg); white-space: nowrap; }
.pill.connected, .pill.online, .pill.active { background: var(--rv-success-soft); border-color: transparent; color: var(--rv-success); }
.pill.waiting { background: var(--rv-chip-bg); border-color: var(--rv-border-strong); color: var(--rv-text-muted); }
.pill.warn { background: var(--rv-warning-soft); border-color: transparent; color: var(--rv-warning); }
.pill.used, .pill.expired, .pill.offline, .pill.revoked { background: var(--rv-danger-soft); border-color: transparent; color: var(--rv-danger); }

/* Inline callout banner */
.banner { display: flex; align-items: center; gap: 12px; background: var(--rv-accent-soft); border: 1px solid transparent; border-left: 3px solid var(--rv-accent); border-radius: var(--rv-radius); padding: 10px 14px; margin-bottom: 18px; color: var(--rv-text-body); }
.banner .t { flex: 1 1 auto; }
.banner .t b { color: var(--rv-text); }

/* helper text, code, links */
.hint { font-size: .9rem; color: var(--rv-text-muted); line-height: 1.5; }
.linkrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
code { font-family: var(--rv-mono); background: var(--rv-surface-2); border: 1px solid var(--rv-border); border-radius: var(--rv-radius-sm); padding: 1px 6px; font-size: .88rem; color: var(--rv-text-body); }
pre { font-family: var(--rv-mono); background: var(--rv-term-bg); color: var(--rv-term-fg); border: 1px solid var(--rv-border-strong); border-radius: var(--rv-radius); padding: 10px; overflow-x: auto; }
pre code { background: none; border: 0; padding: 0; color: inherit; }
.mono { font-family: var(--rv-mono); }
hr { border: 0; border-top: 1px solid var(--rv-border); margin: 14px 0; }
details summary { cursor: pointer; color: var(--rv-text-muted); }
.validation-message, .err { color: var(--rv-danger); }

/* ── Login — PAN-OS: neutral page, white card, underline inputs ─────────── */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--rv-bg); }
.auth-card { width: 100%; max-width: 400px; background: var(--rv-surface); border: 1px solid var(--rv-border-strong); border-radius: 8px; box-shadow: var(--rv-shadow-lg); padding: 36px 36px 28px; }
.auth-card .brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 22px; font-size: 18px; font-weight: 700; }
.auth-card .brand .mark { width: 26px; height: 26px; color: var(--rv-accent); }
.auth-card .brand .brandname { color: var(--rv-text); }
.auth-card input { border: 0; border-bottom: 1px solid var(--rv-input-border); border-radius: 0; background: transparent; height: 34px; padding: 0 2px; width: 100%; font-size: 1.05rem; }
.auth-card input:focus { border-bottom-color: var(--rv-accent); }

/* Official SSO sign-in buttons (Microsoft / Google brand-compliant), white per
   brand guidance so they read as official on either theme's login card. */
.sso-buttons { display: flex; flex-direction: column; gap: 10px; }
.sso-sep { display: flex; align-items: center; gap: 10px; color: var(--rv-text-faint); font-size: .85rem; margin: 16px 0 12px; }
.sso-sep::before, .sso-sep::after { content: ""; flex: 1; height: 1px; background: var(--rv-border); }
.sso-btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 40px; background: #fff; border: 1px solid #8c8c8c; color: #5e5e5e; font-family: "Segoe UI", Roboto, -apple-system, system-ui, sans-serif; font-size: 15px; font-weight: 600; letter-spacing: .2px; text-decoration: none; border-radius: var(--rv-radius); transition: background .12s ease; }
.sso-btn:hover { background: #f5f5f5; text-decoration: none; }
.sso-btn svg { flex: 0 0 auto; }
.sso-btn--google { border-color: #747775; color: #1f1f1f; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
