/* =====================================================================
   My Crusader — STAFF GLASS SKIN (Lane D, Stage 3 remodel, Nov 9 2026)
   Scratch only. Loaded AFTER assets/app.css on staff pages whose <body>
   carries .mcg-staff. Every rule is paint/geometry-of-skin only:
   - no display, position, z-index, or visibility changes anywhere
     (the Vault secretary-ro fence in vault.html's local <style> hides
     controls with display:none — this sheet never sets display on
     controls, so that fence cannot be weakened by the skin);
   - no route, role, flag, or text changes (those live in markup/JS,
     which this lane leaves byte-identical — see MANIFEST.md).
   Design law: Wayne's official bar — institutional, dense, disciplined.
   One system with the member side (spec §0 tokens, sheet+pill recipes),
   composed for work: restrained glass sheets, uniform 36px controls,
   consistent table chrome, gold (--accent-warm) ONLY on operator /
   Sentinel-adjacent furniture (standing identity, spec D6 option a).
   Perf (§4.1): blur lives on chrome + sheets only; table rows, list
   rows and generated cards-within-sheets carry NO backdrop-filter.
   ===================================================================== */

/* ---------- 0. Token remap (scoped: legacy vars re-pointed) ---------- */
body.mcg-staff{
  --bg:#05272B; --panel:rgba(13,54,54,.72); --line:rgba(190,255,245,.28);
  --gold:#E3BC3F; --ink:#FFFFFF; --dim:#B9E8DE; --ok:#7FC97F; --bad:#E07A5F;
  --glass-sheet:rgba(120,225,205,.10); --glass-sheet-2:rgba(120,225,205,.16);
  --glass-line:rgba(190,255,245,.28); --glass-control:rgba(160,240,225,.14);
  --rim:#5FF2DF; --accent-warm:#E3BC3F; --deep-text:#062A2C;
  --r-sheet:14px; --r-control:14px; --ctl-h:36px;  /* --r-control raised 8px -> 14px
    Nov 13, 2026 (uniformity S-01): the token scale's --radius-m, so staff
    controls wear the same geometry family as the member side */
  --blur-sheet:blur(12px) saturate(1.35); --blur-chrome:blur(14px) saturate(1.4);
  background:
    radial-gradient(1100px 520px at 85% -10%,rgba(95,242,223,.14),transparent 60%),
    radial-gradient(900px 600px at -10% 110%,rgba(95,242,223,.10),transparent 60%),
    linear-gradient(165deg,#083B3D,#05272B 70%);
  background-attachment:fixed;
  color:var(--ink);
}

/* ---------- 1. Chrome: top bar + bottom tab bar ---------- */
body.mcg-staff header.bar{
  background:linear-gradient(170deg,rgba(190,255,245,.13),rgba(10,50,50,.82));
  -webkit-backdrop-filter:var(--blur-chrome);backdrop-filter:var(--blur-chrome);
  border-bottom:1px solid var(--glass-line);
  box-shadow:0 6px 18px rgba(0,25,23,.35);
}
body.mcg-staff header.bar .brand{color:var(--ink)}
body.mcg-staff header.bar nav a{color:var(--ink-2,#DFFBF5)}
body.mcg-staff header.bar nav a:hover{color:var(--rim)}
/* Tab bar: same fixed geometry as app.css — glass paint only.
   Active station: aqua text + rim top rule (replaces legacy gold). */
body.mcg-staff .tabbar{
  background:linear-gradient(180deg,rgba(16,66,63,.86),rgba(6,38,40,.94));
  -webkit-backdrop-filter:var(--blur-chrome);backdrop-filter:var(--blur-chrome);
  border-top:1px solid var(--glass-line);
  box-shadow:0 -8px 22px rgba(0,22,20,.45);
}
body.mcg-staff .tabbar a{color:var(--dim)}
body.mcg-staff .tabbar a.on{color:var(--rim);box-shadow:inset 0 2px 0 var(--rim)}

/* ---------- 2. Sheets (the card, everywhere) ---------- */
.mcg-sheet, body.mcg-staff .card{
  background:linear-gradient(170deg,rgba(190,255,245,.12),var(--glass-sheet) 55%);
  -webkit-backdrop-filter:var(--blur-sheet);backdrop-filter:var(--blur-sheet);
  border:1px solid var(--glass-line);border-radius:var(--r-sheet);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.26),0 8px 22px rgba(0,22,20,.38);
}
body.mcg-staff .card h2{color:var(--ink);letter-spacing:.01em}
body.mcg-staff h1.serif, body.mcg-staff h1{color:var(--ink)}
body.mcg-staff .stat{color:var(--rim)}
body.mcg-staff .notice{
  background:var(--glass-sheet-2);border:1px solid var(--rim);border-radius:var(--r-control);
}
body.mcg-staff .error{color:#F0A08C}
body.mcg-staff hr{border-color:var(--glass-line)}
body.mcg-staff a{color:var(--rim)}
body.mcg-staff label{color:var(--dim)}

/* ---------- 3. Controls — uniform height, one treatment ---------- */
body.mcg-staff button, body.mcg-staff .btn, .mcg-btn{
  min-height:var(--ctl-h);border-radius:var(--r-control);
  background:var(--glass-control);
  color:var(--ink-2,#DFFBF5);border:1px solid var(--glass-line);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22);
  font-weight:700;
}
/* ITEM 7 (Nov 16, 2026 — parent's call on Wayne's Nov 13 button law):
   the bright puck primary is retired on staff surfaces too, superseding
   the C-06 note below it in history. The primary keeps its distinction —
   a deepened dark glass + full rim border + rim glow — with light text.
   (C-06, Nov 13, 2026: staff buttons at rest wear the same glass-control
   fill as .ghost; mark a page's main action with .primary.) */
body.mcg-staff button.primary, body.mcg-staff .btn.primary{
  background:linear-gradient(160deg,rgba(190,255,245,.30),rgba(38,140,163,.34) 55%,rgba(9,49,61,.55));
  color:var(--ink,#fff);border:1px solid var(--rim,#5FF2DF);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.55),0 0 14px rgba(95,242,223,.35),0 4px 12px rgba(0,35,32,.35);
}
body.mcg-staff button.ghost, body.mcg-staff .btn.ghost, .mcg-btn-ghost{
  background:var(--glass-control);color:var(--ink-2,#DFFBF5);
  border:1px solid var(--glass-line);box-shadow:inset 0 1px 0 rgba(255,255,255,.22);
}
body.mcg-staff button.danger{
  background:rgba(224,122,95,.12);color:#F0A08C;border:1px solid var(--bad);box-shadow:none;
}
body.mcg-staff button:disabled{opacity:.45;box-shadow:none}
body.mcg-staff button:focus-visible, body.mcg-staff .btn:focus-visible,
body.mcg-staff input:focus-visible, body.mcg-staff select:focus-visible,
body.mcg-staff textarea:focus-visible, body.mcg-staff a:focus-visible{
  outline:none;box-shadow:0 0 0 2px var(--rim),0 0 10px rgba(95,242,223,.30);
}
/* Dictation live state (desk): warm ring retained — a live mic is an
   operator signal, and gold is the operator accent. */
body.mcg-staff button.dictating{border-color:var(--accent-warm);color:var(--accent-warm);
  box-shadow:0 0 0 2px rgba(227,188,63,.45)}
body.mcg-staff input, body.mcg-staff select, body.mcg-staff textarea{
  min-height:var(--ctl-h);
  background:rgba(4,32,34,.66);color:var(--ink);
  border:1px solid var(--glass-line);border-radius:var(--r-control);
}
body.mcg-staff textarea{min-height:90px}
body.mcg-staff input::placeholder, body.mcg-staff textarea::placeholder{color:rgba(185,232,222,.55)}
body.mcg-staff input[type="checkbox"], body.mcg-staff input[type="radio"]{
  min-height:0;width:18px;height:18px;accent-color:#3EC9BC;vertical-align:-3px;
}
body.mcg-staff input[type="file"]{padding:.45rem .6rem}

/* ---------- 4. Chips / pills — status language ---------- */
.mcg-chip, body.mcg-staff .pill{
  border:1px solid var(--glass-line);border-radius:999px;
  background:var(--glass-control);color:var(--ink-2,#DFFBF5);
}
body.mcg-staff button.pill{
  background:var(--glass-control);color:var(--ink-2,#DFFBF5);
  border:2px solid var(--rim);min-height:28px;
}
body.mcg-staff button.pill.ok{background:rgba(95,242,223,.18);color:#EAFFFB;border-color:var(--rim)}
body.mcg-staff .pill.ok{border-color:var(--ok);color:var(--ok);background:rgba(127,201,127,.10)}
body.mcg-staff .pill.bad{border-color:var(--bad);color:#F0A08C;background:rgba(224,122,95,.10)}

/* ---------- 5. Tab rows (case / war) + Vault desk tiles ---------- */
body.mcg-staff .tabs button{
  min-height:40px;background:var(--glass-control);color:var(--dim);
  border:1px solid var(--glass-line);border-radius:var(--r-control);
}
/* Active tab = ITEM 7 dark-glass primary (Nov 16, 2026), not the retired
   bright-aqua puck and not the legacy gold block. */
body.mcg-staff .tabs button.on{
  background:linear-gradient(160deg,rgba(190,255,245,.30),rgba(38,140,163,.34) 55%,rgba(9,49,61,.55));color:var(--ink,#fff);
  border-color:var(--rim,#5FF2DF);box-shadow:0 0 14px rgba(95,242,223,.35);
}
body.mcg-staff .vtab-group{color:var(--dim);letter-spacing:.14em}
body.mcg-staff .vtab-grid button{
  min-height:64px;color:var(--ink-2,#DFFBF5);
  background:linear-gradient(170deg,rgba(190,255,245,.12),var(--glass-sheet) 55%);
  -webkit-backdrop-filter:var(--blur-sheet);backdrop-filter:var(--blur-sheet);
  border:1px solid var(--glass-line);border-radius:var(--r-sheet);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.26),0 8px 22px rgba(0,22,20,.38);
}
body.mcg-staff .vtab-grid button.on{
  background:linear-gradient(160deg,rgba(190,255,245,.30),rgba(38,140,163,.34) 55%,rgba(9,49,61,.55));color:var(--ink,#fff);
  border-color:var(--rim,#5FF2DF);box-shadow:0 0 14px rgba(95,242,223,.35);
}
body.mcg-staff .vtab-badge{background:var(--bad);color:#fff;border:1px solid var(--glass-line);border-radius:999px;box-shadow:inset 0 1px 0 rgba(255,255,255,.22)}
body.mcg-staff .vtab-badge.held{background:var(--accent-warm);color:#14100A}

/* ---------- 6. Table chrome — one treatment on every staff page ----------
   Header: deep-teal band, small-caps rim label. Rows: hairline rules,
   no zebra, no blur (perf + discipline). */
body.mcg-staff table{border:1px solid var(--glass-line);border-radius:10px;overflow:hidden}
body.mcg-staff th{
  background:rgba(6,42,44,.92);color:var(--rim);
  font-family:inherit;font-size:.78rem;font-weight:700;
  letter-spacing:.09em;text-transform:uppercase;
  border-bottom:2px solid var(--glass-line);padding:.55rem .5rem;
}
body.mcg-staff td{border-bottom:1px solid rgba(190,255,245,.14);padding:.5rem}
body.mcg-staff tbody tr:hover td, body.mcg-staff tr:hover td{background:rgba(140,235,220,.06)}

/* ---------- 7. View-as lens (operator-only; injected by app.js) ----------
   PINNED-BAR BEHAVIOR UNTOUCHED: position, bottom offset and z-index
   stay exactly as app.css sets them — this block changes paint only.
   Gold retained: the lens is operator furniture (spec §2c, D6a). */
body.mcg-staff .viewas-fab{
  background:linear-gradient(170deg,rgba(190,255,245,.16),rgba(10,50,50,.9));
  -webkit-backdrop-filter:var(--blur-chrome);backdrop-filter:var(--blur-chrome);
  color:var(--accent-warm);border:2px solid var(--accent-warm);
  box-shadow:0 6px 18px rgba(0,25,23,.5);
}
body.mcg-staff .viewas-bar{
  background:linear-gradient(180deg,rgba(20,26,10,.92),rgba(10,40,38,.95));
  -webkit-backdrop-filter:var(--blur-chrome);backdrop-filter:var(--blur-chrome);
  border-top:2px solid var(--accent-warm);border-bottom:1px solid var(--glass-line);
}
body.mcg-staff .viewas-bar-switch{color:var(--accent-warm);border:2px solid var(--accent-warm)}
body.mcg-staff .viewas-bar-back{
  background:linear-gradient(180deg,#F2D06B,var(--accent-warm));color:#14100A;
}
body.mcg-staff .viewas-sheet{
  background:linear-gradient(170deg,rgba(190,255,245,.12),rgba(8,45,47,.97));
  border-top:2px solid var(--accent-warm);
}
body.mcg-staff .viewas-sheet-title{color:var(--accent-warm)}
body.mcg-staff .viewas-opt{background:var(--glass-control);border:1px solid var(--glass-line);color:var(--ink)}
body.mcg-staff .viewas-opt-here{color:var(--accent-warm)}
body.mcg-staff .viewas-cancel{background:transparent;color:var(--dim);border:1px solid var(--glass-line);box-shadow:none}

/* ---------- 8. command.html — the operator workstation ---------- */
body.mcgp-command .cmd-head h1, body.mcgp-command .op{color:var(--ink)}
body.mcgp-command .pulse{border:1px solid var(--glass-line);border-radius:var(--r-sheet);
  background:var(--glass-sheet);padding:.7rem .9rem}
body.mcgp-command .cmd-sec>h2{color:var(--ink)}
/* "Needs you" doors: glass plaques, dense rows — not member tiles. */
body.mcgp-command a.need{
  background:linear-gradient(170deg,rgba(190,255,245,.12),var(--glass-sheet));
  border:1px solid var(--glass-line);border-radius:12px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.24),0 6px 16px rgba(0,22,20,.35);
}
body.mcgp-command a.need:hover{border-color:var(--rim)}
body.mcgp-command a.need .n{color:var(--rim)}
body.mcgp-command a.need.clear .n{color:var(--dim)}
/* Sentinel door + Bat Cave card: gold frame RETAINED (Sentinel identity). */
body.mcgp-command .sentinel-door, body.mcgp-command .cave-card{
  border:1px solid var(--accent-warm);border-radius:var(--r-sheet);
  background:linear-gradient(170deg,rgba(227,188,63,.10),rgba(10,44,40,.6));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 8px 22px rgba(0,22,20,.4);
}
body.mcgp-command .clock-row{border-bottom:1px solid rgba(190,255,245,.14)}
body.mcgp-command .clock-row .when{color:var(--rim)}
body.mcgp-command .act-row .who{color:var(--accent-warm)}
body.mcgp-command .cmd-error{border:1px solid var(--bad);color:#F0A08C;border-radius:var(--r-control)}

/* ---------- 9. desk.html — secretary/operator desk ---------- */
/* Chat + day columns ride .card/.row/.pill (§2–§4). Desk is calmer:
   no extra decoration; the Jarvis/Sentinel-adjacent header keeps gold. */
body.mcgp-desk .card h2 .gold, body.mcgp-desk h2.serif{color:var(--ink)}

/* ---------- 10. war.html — the generals' board ---------- */
body.mcgp-war .tab-badge{background:var(--bad);color:#fff;border-radius:999px}
body.mcgp-war .keep-stream .card, body.mcgp-war #board .card{margin-bottom:.6rem}

/* ---------- 11. keep.html — the commissioned hall ---------- */
/* Operator banner: gold-accent glass (operator furniture). */
body.mcgp-keep .keep-banner{
  border:1px solid var(--accent-warm);border-radius:var(--r-sheet);
  background:linear-gradient(170deg,rgba(227,188,63,.12),rgba(10,44,40,.55));
}
body.mcgp-keep .keep-banner .who{color:var(--accent-warm)}
body.mcgp-keep .keep-msg{background:rgba(4,32,34,.6);border:1px solid var(--glass-line);border-radius:10px}
body.mcgp-keep .keep-msg .meta b{color:var(--rim)}
body.mcgp-keep .keep-msg.operator{border-color:var(--accent-warm)}
body.mcgp-keep .keep-msg.operator .meta b{color:var(--accent-warm)}

/* ---------- 12. letter.html — the request document ---------- */
/* The generated letter is a DOCUMENT: paper stays paper (light, flat,
   printable) inside glass chrome — an official letter must read as one. */
body.mcgp-letter pre.letter{
  background:#F7F4EA;color:#1C1A14;border-radius:6px;
  box-shadow:0 10px 28px rgba(0,22,20,.5);
}

/* ---------- 13. certificate.html — paper document, glass chrome only ----
   .cert-sheet is a printed commission certificate. It is NOT skinned:
   paper, double gold border and seal stand exactly as issued (official
   bar — a certificate rendered as frosted glass would fail it). Only
   the page canvas/chrome around it takes the glass system (§1–§3). */

/* ---------- 14. Fallbacks + motion (§4.1) ---------- */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .mcg-sheet, body.mcg-staff .card, body.mcg-staff header.bar, body.mcg-staff .tabbar,
  body.mcg-staff .viewas-bar, body.mcg-staff .viewas-fab{background-color:rgba(10,52,52,.94)}
}
@media (prefers-reduced-motion:reduce){
  body.mcg-staff .subview{animation:none}
}
@media print{
  body.mcg-staff{background:#fff!important}
  .mcg-sheet, body.mcg-staff .card{background:#fff;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
}

/* ---------- 15. LITE tier — html[data-look="lite"] (Nov 9, 2026) ----------
   The member Look choice now reaches the staff pages: each carries the
   same inline resolver as the member pages, which stamps data-look on
   <html> before first paint. FULL tier is this sheet exactly as it
   stands above — this section contains NO full-tier rules, and none
   apply when the attribute is absent (no-JS / pre-snippet).
   LITE = same layout, same institution, flatter machinery, mirroring
   the member mc-tiers.css approach for this sheet's own selectors:
   blur off (the sheet's two blur tokens are driven to none AND every
   blurred surface is restated with backdrop-filter:none), translucent
   fills swapped to solid deep-teal equivalents in the same hues,
   multi-layer shadow stacks collapsed to one soft shadow (the inset
   rim light is kept — it is flat, not a cast stack), decorative glow
   off, motion minimal. Paint only, like the rest of this sheet: this
   section adds no geometry-affecting declarations of any kind.
   Deliberately untouched here, as above: the certificate sheet and
   pre.letter stay paper (their fills are never restated), the active
   tab / desk-tile pucks keep their solid bright gradient AND their
   glow (active states, per the member rule), the dictating ring keeps
   its warm operator signal, and the Sentinel door / Bat Cave / Keep
   banner frames keep their gold borders and accents — only
   their translucent fills go solid and their blur/shadow flatten. */

/* 15.0 Tokens: both blur recipes off; legacy panel token goes solid. */
html[data-look="lite"] body.mcg-staff{
  --blur-sheet:none; --blur-chrome:none;
  --panel:#0E3A3A;
}

/* 15.1 Blurred surfaces: blur off, fills solid. */
html[data-look="lite"] body.mcg-staff header.bar{
  -webkit-backdrop-filter:none;backdrop-filter:none;
  background:linear-gradient(170deg,#12403F,#0A3033);
}
html[data-look="lite"] body.mcg-staff .tabbar{
  -webkit-backdrop-filter:none;backdrop-filter:none;
  background:linear-gradient(180deg,#10403E,#062628);
}
html[data-look="lite"] .mcg-sheet, html[data-look="lite"] body.mcg-staff .card{
  -webkit-backdrop-filter:none;backdrop-filter:none;
  background:linear-gradient(170deg,#154A4A,#0D383A);
}
html[data-look="lite"] body.mcg-staff .viewas-fab{
  -webkit-backdrop-filter:none;backdrop-filter:none;
  background:linear-gradient(170deg,#173F3C,#0A3233);
}
html[data-look="lite"] body.mcg-staff .viewas-bar{
  -webkit-backdrop-filter:none;backdrop-filter:none;
  background:linear-gradient(180deg,#141A0A,#0A2826);
}
/* Operator plaques + day-board pulse strip: translucent sheet fills
   go solid (no blur lived here; the swap holds contrast flat). */
html[data-look="lite"] body.mcgp-command a.need{
  background:linear-gradient(170deg,#154A4A,#0D383A);
}
html[data-look="lite"] body.mcgp-command .pulse{background:#0D383A}

/* 15.2 Translucent control fills go solid (no blur involved). */
html[data-look="lite"] body.mcg-staff button.ghost,
html[data-look="lite"] body.mcg-staff .btn.ghost,
html[data-look="lite"] .mcg-btn-ghost,
html[data-look="lite"] .mcg-chip,
html[data-look="lite"] body.mcg-staff .pill,
html[data-look="lite"] body.mcg-staff button.pill,
html[data-look="lite"] body.mcg-staff .tabs button,
html[data-look="lite"] body.mcg-staff .vtab-grid button,
html[data-look="lite"] body.mcg-staff .viewas-opt{
  background:#1B3F3C;
}
html[data-look="lite"] body.mcg-staff .notice{background:#123F3E}
html[data-look="lite"] body.mcg-staff input,
html[data-look="lite"] body.mcg-staff select,
html[data-look="lite"] body.mcg-staff textarea{
  background:#073638;
}
/* Gold-framed operator/Sentinel furniture: fills solid, frames kept. */
html[data-look="lite"] body.mcgp-command .sentinel-door,
html[data-look="lite"] body.mcgp-command .cave-card{
  background:linear-gradient(170deg,#262C18,#0B2E2A);
}
html[data-look="lite"] body.mcgp-keep .keep-banner{
  background:linear-gradient(170deg,#272D19,#0B2E2A);
}
html[data-look="lite"] body.mcgp-keep .keep-msg{background:#06282A}
/* 15.3 Shadow stacks collapse to the single soft shadow. */
html[data-look="lite"] body.mcg-staff header.bar,
html[data-look="lite"] body.mcg-staff .tabbar,
html[data-look="lite"] .mcg-sheet,
html[data-look="lite"] body.mcg-staff .card,
html[data-look="lite"] body.mcg-staff .viewas-fab,
html[data-look="lite"] body.mcgp-command a.need,
html[data-look="lite"] body.mcgp-command .sentinel-door,
html[data-look="lite"] body.mcgp-command .cave-card{
  box-shadow:0 4px 14px rgba(0,22,20,.35);
}
html[data-look="lite"] body.mcg-staff button,
html[data-look="lite"] body.mcg-staff .btn,
html[data-look="lite"] .mcg-btn{
  box-shadow:inset 0 1px 0 rgba(255,255,255,.55),0 2px 8px rgba(0,22,20,.3);
}

/* 15.4 Motion minimal (mirrors the member motion rule). */
html[data-look="lite"] body.mcg-staff button,
html[data-look="lite"] body.mcg-staff .btn,
html[data-look="lite"] body.mcg-staff .card,
html[data-look="lite"] body.mcg-staff .tabbar a,
html[data-look="lite"] body.mcg-staff .tabs button,
html[data-look="lite"] body.mcg-staff .vtab-grid button,
html[data-look="lite"] body.mcgp-command a.need,
html[data-look="lite"] body.mcg-staff .viewas-fab{
  transition:none;
}
html[data-look="lite"] body.mcg-staff button:active{transform:none}

/* 15.5 Print guard: the §14 print rules predate this section and sit
   earlier in the file at lower specificity — restate their white,
   shadowless card treatment for lite so paper still prints paper. */
@media print{
  html[data-look="lite"] .mcg-sheet,
  html[data-look="lite"] body.mcg-staff .card{
    background:#fff;box-shadow:none;
    -webkit-backdrop-filter:none;backdrop-filter:none;
  }
}

