/* My Crusader — LEGACY CONTROL CHANGE-OUT (Lane B scratch, Stage 1)
   Wayne's rule (Nov 9, 2026): EVERY control takes the glass treatment;
   NO legacy control styling survives. This sheet loads AFTER app.css
   on Lane B's pages and re-skins every legacy control signature —
   including markup generated at runtime by app.js / camera.js /
   guide.js / dm bundles and by each page's inline templates, which
   all reuse these same classes. NO JavaScript is changed by this
   sheet; it is CSS only. The per-signature inventory is in
   lane-app/MANIFEST.md.
   Loaded only on Lane B's 15 pages in this scratch tree. */

/* ============ 1. BASE / TYPE / TEXT ============ */
h1,h2,h3,h4,.serif{font-family:var(--mc-font);font-weight:700;letter-spacing:-.01em;color:var(--mc-ink)}
h1.serif,h2.serif,h3.serif{color:var(--mc-ink) !important}
a{color:#7DEBD8}
.muted{color:var(--mc-ink-dim)}
.error{color:var(--mc-bad)}
.stat{color:var(--mc-rim);font-family:var(--mc-font);font-weight:800}
.mono{color:var(--mc-ink-2)}
:focus-visible{outline:none;box-shadow:0 0 0 2px var(--mc-rim),0 0 12px rgba(95,242,223,.30)}

/* ============ 2. HEADER BAR (app.js headerBar markup) ============ */
header.bar{
  background:linear-gradient(180deg, rgba(9,50,53,.85), rgba(7,40,43,.68));
  -webkit-backdrop-filter:blur(var(--mc-blur-pill)) saturate(1.35);
  backdrop-filter:blur(var(--mc-blur-pill)) saturate(1.35);
  border-bottom:1px solid var(--mc-line);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.20), 0 6px 20px rgba(0,22,20,.30);
  min-height:60px;padding:.55rem 1rem;
}
header.bar .brand{font-family:var(--mc-font);font-weight:800;color:var(--mc-ink);letter-spacing:.02em}
header.bar nav a{color:var(--mc-ink-2)}
header.bar nav a:hover{color:var(--mc-rim)}
header.bar .topbtn{
  width:44px;height:44px;border-radius:var(--mc-r-pill);
  background:linear-gradient(160deg, rgba(190,255,245,.34), rgba(90,200,185,.14));
  border:1px solid var(--mc-rim-soft);color:var(--mc-ink);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.55), inset 0 -8px 14px rgba(0,60,55,.22), 0 4px 14px rgba(0,25,23,.30);
}
header.bar .topbtn:hover{border-color:var(--mc-rim)}
.tab-badge{background:#0E7C74;color:#fff;border:1px solid rgba(255,255,255,.5)}

/* ============ 3. BUTTONS — every signature ============ */
button,.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.45rem;
  min-height:var(--mc-h-btn);padding:.55rem 1.1rem;
  border-radius:var(--mc-r-pill);
  /* ITEM 7 (Nov 16, 2026): this base wore the bright aqua puck — retired
     under Wayne's button law (Nov 13, 2026). The Lane B base button now
     wears the deepened dark glass (the .mcg-btn--primary treatment):
     rim border + rim glow as its distinction, light text throughout. */
  background:linear-gradient(160deg, rgba(190,255,245,.30), rgba(38,140,163,.34) 55%, rgba(9,49,61,.55));
  border:1px solid var(--mc-rim);color:var(--mc-ink);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.6), 0 0 14px rgba(95,242,223,.35), 0 4px 14px rgba(0,25,23,.30);
  font-weight:700;font-size:.95rem;font-family:var(--mc-font);line-height:1.2;
}
button:hover,.btn:hover{border-color:#fff}
button.ghost,.btn.ghost,button.chipbtn{
  background:linear-gradient(160deg, rgba(190,255,245,.26), rgba(90,200,185,.10));
  border:1px solid var(--mc-rim-soft);color:var(--mc-ink);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.45), 0 4px 12px rgba(0,25,23,.26);
}
button.chipbtn{min-height:var(--mc-h-chip);padding:.3rem .85rem;font-size:.86rem;font-weight:600}
button.danger{background:rgba(232,138,118,.10);border:1px solid rgba(232,138,118,.55);color:#F3B7A9;box-shadow:none}
button:disabled{opacity:.5}
/* auth.html page-local .bigbtn (its <style> block is untouched; these
   element+class selectors outrank it) */
button.bigbtn{min-height:52px;width:100%;font-size:1.02rem;letter-spacing:.02em}
button.bigbtn.ghost{
  background:linear-gradient(160deg, rgba(190,255,245,.26), rgba(90,200,185,.10));
  color:var(--mc-ink);border:1px solid var(--mc-rim-soft);
}
/* Identity chips as buttons: glass body, gold outline RETAINED —
   app.css records Wayne's Nov 8 ruling on this exact element (2px
   #e3bc3f outline, name legible); gold is the identity accent here,
   spec Decision D6 is Wayne's to settle (see MANIFEST flags). */
button.pill{
  min-height:var(--mc-h-chip);height:auto;
  background:linear-gradient(160deg, rgba(190,255,245,.20), rgba(90,200,185,.08));
  color:var(--mc-ink);border:2px solid var(--mc-gold);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.35);
  text-transform:none;font-size:.82rem;padding:.3rem .8rem;
}
button.pill.ok{background:rgba(227,188,63,.18);color:var(--mc-ink);border-color:var(--mc-gold)}
button.dictating{border-color:var(--mc-gold);color:var(--mc-gold);box-shadow:0 0 0 2px rgba(227,188,63,.45)}

/* ============ 4. PILLS / CHIPS (non-button) ============ */
.pill{
  display:inline-flex;align-items:center;gap:.35rem;min-height:28px;
  border:1px solid var(--mc-rim-dim);color:var(--mc-ink-2);
  background:rgba(140,235,220,.10);border-radius:var(--mc-r-pill);
  padding:.12rem .6rem;font-size:.78rem;text-transform:none;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22);
}
.pill.ok{border-color:var(--mc-ok);color:var(--mc-ok)}
.pill.bad{border-color:var(--mc-bad);color:var(--mc-bad)}
.pill button{min-height:0;padding:0 .2rem;background:transparent;border:0;box-shadow:none;color:inherit;font-size:.85rem}

/* ============ 5. INPUTS / SELECTS / TEXTAREAS / FILES ============ */
input,select,textarea{
  min-height:var(--mc-h-input);
  background:rgba(6,38,41,.66);color:var(--mc-ink);
  border:1px solid var(--mc-rim-dim);border-radius:var(--mc-r-input);
  padding:.55rem .7rem;font:inherit;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12), inset 0 2px 8px rgba(0,20,18,.30);
}
textarea{min-height:90px}
input::placeholder,textarea::placeholder{color:var(--mc-ink-dim)}
input:focus,select:focus,textarea:focus{border-color:var(--mc-rim);outline:none;box-shadow:0 0 0 2px rgba(95,242,223,.5)}
input[type="checkbox"],input[type="radio"]{
  min-height:0;width:20px;height:20px;accent-color:#2FBFAE;vertical-align:-4px;
  background:transparent;border:0;box-shadow:none;padding:0;
}
input[type="file"]{padding:.5rem .7rem}
input[type="time"],input[type="date"]{width:auto}
label{color:var(--mc-ink-dim)}
progress{accent-color:#2FBFAE;height:10px}
audio{width:100%}

/* ============ 6. CARDS / PANELS / NOTICES ============ */
.card{
  background:linear-gradient(165deg, rgba(140,235,220,.12), rgba(8,45,48,.78) 42%);
  background-color:var(--mc-glass-panel);
  border:1px solid var(--mc-rim-dim);border-radius:var(--mc-r-card);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.26), 0 10px 28px rgba(0,20,18,.36);
  padding:var(--mc-s3);
  -webkit-backdrop-filter:blur(var(--mc-blur-card)) saturate(1.3);
  backdrop-filter:blur(var(--mc-blur-card)) saturate(1.3);
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .card,header.bar{ -webkit-backdrop-filter:none;backdrop-filter:none;background-color:var(--mc-glass-panel-solid) }
}
.card h2{color:var(--mc-ink)}
.welcome{
  background:linear-gradient(160deg, rgba(190,255,245,.20), rgba(9,50,53,.85));
  border:1px solid var(--mc-rim-soft);border-radius:var(--mc-r-card);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.4), 0 10px 28px rgba(0,20,18,.36);
  padding:var(--mc-s3);
}
.welcome h2{color:var(--mc-ink) !important}
.notice{
  border:1px solid var(--mc-rim-soft);border-radius:var(--mc-r-card);
  background:linear-gradient(160deg, rgba(140,235,220,.16), rgba(9,48,51,.85));
  padding:var(--mc-s2) var(--mc-s3);
}
.soon{border:1px dashed var(--mc-rim-dim);border-radius:var(--mc-r-card);background:rgba(8,45,48,.6)}
.soon .tag{color:var(--mc-rim);font-family:var(--mc-font)}
.badge{
  border:1px solid var(--mc-rim-soft);border-radius:var(--mc-r-card);
  background:linear-gradient(150deg, rgba(190,255,245,.18), rgba(9,48,51,.85));
}
.badge .bno{font-family:var(--mc-font);color:var(--mc-ink)}
.avatar-slot{border:2px solid var(--mc-rim-soft);background:rgba(6,38,41,.6);box-shadow:0 6px 18px rgba(0,22,20,.35)}
hr{border-color:var(--mc-line)}
pre.letter{background:rgba(6,38,41,.7);border:1px solid var(--mc-line);border-radius:var(--mc-r-input);font-family:var(--mc-font)}
pre{background:rgba(6,38,41,.55);border-radius:var(--mc-r-input);padding:.6rem}

/* ============ 7. TABLES ============ */
th{color:var(--mc-ink);font-family:var(--mc-font);font-weight:700;border-bottom:1px solid var(--mc-line)}
td{border-bottom:1px solid var(--mc-line)}

/* ============ 8. TABS (room.html .tabs; .vtabs mapped for parity) == */
.tabs{gap:.5rem}
.tabs button{
  min-height:var(--mc-h-btn);border-radius:var(--mc-r-pill);
  background:linear-gradient(160deg, rgba(190,255,245,.16), rgba(90,200,185,.06));
  border:1px solid var(--mc-rim-dim);color:var(--mc-ink-dim);box-shadow:none;
  font-size:.88rem;
}
.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(--mc-ink);
  border-color:var(--mc-rim);box-shadow:inset 0 1px 0 rgba(255,255,255,.6), 0 0 14px rgba(95,242,223,.35);
}
.vtab-grid button{
  border:1px solid var(--mc-rim-dim);border-radius:16px;color:var(--mc-ink-dim);
  background:linear-gradient(165deg, rgba(140,235,220,.12), rgba(8,45,48,.7));box-shadow:none;min-height:68px;
}
.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(--mc-ink);border-color:var(--mc-rim)}
.vtab-group{font-family:var(--mc-font);color:var(--mc-ink-2)}

/* ============ 9. BOTTOM NAV — liquid glass (tabBar markup) ======== */
/* The <nav id="tabbar"> element itself carries .mcg-nav (added in each
   page's static markup; app.js fills only its innerHTML). Stations,
   order, labels, badges and role variants are tabBar()'s, untouched. */
.tabbar{
  border-top:0;align-items:flex-end;padding:.35rem .4rem .45rem;gap:.15rem;
}
.tabbar a{
  color:var(--mc-ink-dim);border-radius:16px;padding:.4rem 0 .45rem;font-size:.74rem;font-weight:600;
}
.tabbar a.on{color:var(--mc-rim)}
.tabbar a .tic{font-size:1.2rem}
body.has-tabbar .wrap{padding-bottom:7.5rem}

/* ============ 10. DOORS / MENU ROWS ============ */
a.door{border-radius:var(--mc-r-card)}
a.door:hover{border-color:var(--mc-rim)}
a.door h3{font-family:var(--mc-font);color:var(--mc-ink);font-size:1.12rem;font-weight:700}
.menu-sec{font-family:var(--mc-font);color:var(--mc-ink);font-weight:700;font-size:1.05rem;letter-spacing:.01em}
a.mrow,.mrow{
  background:linear-gradient(165deg, rgba(140,235,220,.12), rgba(8,45,48,.78) 42%);
  border:1px solid var(--mc-rim-dim);border-radius:16px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.24);
  padding:.7rem .9rem;min-height:56px;color:var(--mc-ink);
}
a.mrow:hover{border-color:var(--mc-rim)}
a.mrow .what .sub{color:var(--mc-ink-dim)}
a.mrow .go{color:var(--mc-rim)}

/* ============ 11. STREAMS (Keep / rooms / AI thread) ============ */
.keep-banner{border:1px solid var(--mc-rim-soft);border-radius:var(--mc-r-input);background:rgba(9,48,51,.8);font-family:var(--mc-font)}
.keep-banner .who{color:var(--mc-rim)}
.keep-msg,.ai-msg{
  background:rgba(6,36,39,.72);border:1px solid var(--mc-line);border-radius:14px;
}
.keep-msg .meta b,.ai-msg .meta b{color:var(--mc-ink)}
.keep-msg.operator,.ai-msg.ai{border-color:var(--mc-rim-dim)}
.ai-bar{background:rgba(6,38,41,.7);border:1px solid var(--mc-line)}
.ai-bar-fill{background:linear-gradient(90deg,#3EC9BC,#8FF5E6)}

/* ============ 12. HERALD — REMOVED Nov 10, 2026 ============ */
/* The herald pop is deleted whole on Wayne's order; no styles for
   it stand anywhere. Notifications live in the bell badge and the
   Alerts list (see app.js, the badge feed). */

/* ============ 13. CAMERA SHEET — LOOK ONLY (camera.js) ============ */
/* Gate copy, warning text, agreement text, choice order and all
   behaviour are camera.js's and are NOT touched. Only the furniture
   the module already renders is re-skinned. */
.cam-wrap{background:rgba(3,20,22,.62)}
.cam-sheet{
  background:linear-gradient(170deg, rgba(140,235,220,.16), rgba(7,42,45,.94));
  border:1px solid var(--mc-rim-soft);border-radius:var(--mc-r-sheet) var(--mc-r-sheet) 0 0;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.45), 0 -12px 34px rgba(0,20,18,.45);
  -webkit-backdrop-filter:blur(var(--mc-blur-sheet)) saturate(1.35);
  backdrop-filter:blur(var(--mc-blur-sheet)) saturate(1.35);
  padding:var(--mc-s3);
}
@media(min-width:640px){.cam-sheet{border-radius:var(--mc-r-sheet)}}
.cam-warn{
  border:2px solid var(--mc-rim);border-radius:16px;
  background:rgba(95,242,223,.08);color:var(--mc-ink);
}
.cam-agreement{
  border:1px solid var(--mc-line);border-radius:14px;background:rgba(6,36,39,.72);color:var(--mc-ink-2);
}
.cam-choice{text-align:left;justify-content:flex-start;width:100%}
.cam-video{border-radius:16px}
.cam-prog{background:rgba(6,38,41,.8);border:1px solid var(--mc-line)}
.cam-prog>i{background:linear-gradient(90deg,#3EC9BC,#8FF5E6)}
/* .cam-rec-dot keeps its red: a recording indicator's colour is a
   safety signal, not decoration. .cam-pop rise animation unchanged. */

/* ============ 14. VIEW-AS (app.js viewAsMount) ============ */
.viewas-fab{
  min-height:var(--mc-h-btn);
  background:linear-gradient(160deg, rgba(190,255,245,.26), rgba(9,50,53,.9));
  color:var(--mc-ink);border:2px solid var(--mc-gold);border-radius:var(--mc-r-pill);
  box-shadow:0 8px 22px rgba(0,20,18,.45);bottom:5.6rem;
}
.viewas-wrap{background:rgba(3,20,22,.62)}
.viewas-sheet{
  background:linear-gradient(170deg, rgba(140,235,220,.14), rgba(7,42,45,.95));
  border-top:2px solid var(--mc-gold);border-radius:var(--mc-r-sheet) var(--mc-r-sheet) 0 0;
}
.viewas-sheet-title{color:var(--mc-ink)}
.viewas-opt{
  min-height:56px;background:rgba(6,36,39,.72);border:1px solid var(--mc-line);
  border-radius:14px;color:var(--mc-ink);box-shadow:none;justify-content:flex-start;
}
.viewas-opt-here{color:var(--mc-rim)}
.viewas-cancel{
  min-height:var(--mc-h-btn);background:transparent;color:var(--mc-ink-dim);
  border:1px solid var(--mc-line);border-radius:var(--mc-r-pill);box-shadow:none;
}
.viewas-bar{
  background:linear-gradient(180deg, rgba(20,60,58,.95), rgba(9,48,51,.95));
  border-top:2px solid var(--mc-gold);border-bottom:1px solid var(--mc-line);
  bottom:calc(var(--mc-h-nav) + 1.1rem);
}
.viewas-bar-switch{
  min-height:40px;background:transparent;color:var(--mc-ink);box-shadow:none;
  border:2px solid var(--mc-gold);border-radius:var(--mc-r-pill);padding:.3rem .8rem;
}
.viewas-bar-back{
  min-height:40px;background:linear-gradient(160deg, rgba(190,255,245,.30), rgba(38,140,163,.34) 55%, rgba(9,49,61,.55));color:var(--mc-ink);
  border:1px solid var(--mc-rim-soft);border-radius:var(--mc-r-pill);box-shadow:none;
}
body.mc-viewas .wrap{padding-bottom:10.5rem}

/* ============ 15. VISITOR PAGE (operator lens frame) ============ */
.visitor-bar{
  background:linear-gradient(180deg, rgba(20,60,58,.95), rgba(9,48,51,.95));
  border-bottom:2px solid var(--mc-gold);
}
.visitor-bar-label{color:var(--mc-ink)}
.visitor-back{
  min-height:40px;background:linear-gradient(160deg, rgba(190,255,245,.30), rgba(38,140,163,.34) 55%, rgba(9,49,61,.55));color:var(--mc-ink);
  border:1px solid var(--mc-rim-soft);border-radius:var(--mc-r-pill);box-shadow:none;
}

/* ============ 16. AUTH (page-local classes in auth.html) ========= */
.authbrand{font-family:var(--mc-font);font-weight:800;color:var(--mc-ink)}
.authsub{color:var(--mc-ink-dim)}
.authcard{
  background:linear-gradient(165deg, rgba(140,235,220,.13), rgba(8,45,48,.82) 45%);
  border:1px solid var(--mc-rim-dim);border-radius:var(--mc-r-card);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.28), 0 12px 30px rgba(0,20,18,.4);
  padding:var(--mc-s3);
}
.authcard h2{font-family:var(--mc-font);color:var(--mc-ink)}
.authcard input,.authcard select{border-radius:var(--mc-r-input)}
.ordiv{color:var(--mc-ink-dim)}
.ordiv::before,.ordiv::after{border-top:1px solid var(--mc-line)}
.authnote{color:var(--mc-ink-dim)}
.policylinks{color:var(--mc-ink-dim)}
.policylinks a{color:#7DEBD8}

/* ============ 17. SENTINEL CENTER CHAT (center.html) ============= */
/* Tokens applied; layout law, heading text ("Sentinel"), face and
   motion untouched (spec §2c/§4.4 item 4). Scoped to body.center-chat
   by app.css's own architecture; these rules only re-paint. */
.chat-enter{
  min-height:52px;border-radius:16px;text-align:left;justify-content:flex-start;width:100%;
  background:linear-gradient(160deg, rgba(190,255,245,.22), rgba(9,50,53,.85));
  border:1px solid var(--mc-gold);color:var(--mc-ink);box-shadow:inset 0 1px 0 rgba(255,255,255,.3);
}
.chat-exit{
  min-height:40px;background:rgba(140,235,220,.08);border:1px solid var(--mc-line);
  border-radius:var(--mc-r-pill);color:var(--mc-ink-dim);box-shadow:none;
}
.chat-exit:hover{color:var(--mc-ink);border-color:var(--mc-rim)}
body.chat-open .chat-stage{background:linear-gradient(170deg, var(--mc-deep-2), var(--mc-deep-1))}
.chat-head .chat-ava{border:1px solid var(--mc-gold);background:rgba(6,38,41,.7);color:var(--mc-gold)}
.chat-head .chat-title{font-family:var(--mc-font);font-weight:700;color:var(--mc-ink)}
.chat-head .chat-sub{color:var(--mc-ink-dim)}
.chat-time{color:var(--mc-ink-dim)}
.msg .who{color:var(--mc-ink-dim)}
.msg.ai .who{color:var(--mc-rim)}
.msg.me .bubble{
  background:linear-gradient(180deg,#A9F7EA,#5ED8C8);color:var(--mc-on-bright);border-radius:20px;
}
.msg.ai .card{
  background:linear-gradient(165deg, rgba(140,235,220,.13), rgba(10,46,49,.9));
  border:1px solid var(--mc-rim-dim);border-radius:22px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22), 0 8px 22px rgba(0,20,18,.35);
}
.msg.working{background:rgba(10,46,49,.9);border:1px solid var(--mc-line)}
.msg.working .dots i{background:var(--mc-rim)}
.chat-composer{background:linear-gradient(to top, rgba(4,25,28,.96) 72%, rgba(4,25,28,0))}
.chat-composer .box{
  background:linear-gradient(165deg, rgba(140,235,220,.18), rgba(9,48,51,.92));
  border:1px solid var(--mc-rim-dim);border-radius:var(--mc-r-pill);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.3), 0 10px 26px rgba(0,20,18,.45);
}
.chat-composer .box:focus-within{border-color:var(--mc-rim)}
.chat-composer textarea{background:transparent;box-shadow:none;border:0;color:var(--mc-ink)}
.chat-composer textarea:focus{outline:none}
.cbtn{
  width:44px;height:44px;min-height:44px;border-radius:50%;padding:0;
  background:transparent;border:1px solid transparent;box-shadow:none;color:var(--mc-ink-dim);
}
.cbtn:hover{color:var(--mc-ink);border-color:var(--mc-line)}
.cbtn.send{
  background:linear-gradient(160deg, rgba(190,255,245,.30), rgba(38,140,163,.34) 55%, rgba(9,49,61,.55));color:var(--mc-ink);
  border:1px solid var(--mc-rim);box-shadow:inset 0 1px 0 rgba(255,255,255,.6), 0 0 12px rgba(95,242,223,.35);
}
.cbtn.send:disabled{opacity:.45}
.chat-composer.recording .cbtn.send::after{color:var(--mc-on-bright)}
.cbtn.dictating{color:var(--mc-gold);border-color:var(--mc-gold);box-shadow:0 0 0 2px rgba(227,188,63,.45)}
.chat-attach-name{color:var(--mc-rim)}
body.chat-open .tabbar a.on{color:var(--mc-rim)}

/* ============ 18. INLINE-STYLE GOLD HEADINGS ===================== */
/* Pages carry style="color:var(--gold)" on headings/copy. --gold is
   app.css's token and this sheet may not edit app.css in scratch
   parity (app.css stays byte-identical); the glass canvas makes the
   legacy gold read as the retained accent. Headings that also carry
   .serif are recolored by §1 above. Non-heading gold inline styles
   (recovery code, badge numbers) are identity accents — retained
   deliberately, listed in the MANIFEST allowlist. */

/* ============ 19. STAGE 2 — ONE FRONT DOOR (Wayne, Nov 9, 2026) == */
/* (a) The home tile cluster recomposed into the reference's
   overlapping arrangement. .mcg-doors keeps its stacked layout on
   every other surface; only home's cluster (the extra class) takes
   this composition. FILES is the tall left plaque; EVIDENCE (the
   bright tile) overlaps its top-right corner; UPDATES tucks under
   EVIDENCE, overlapping FILES' lower right. One light source,
   z-order FILES 1 / UPDATES 2 / EVIDENCE 3. */
.mcg-doors.mcg-doors-cluster{
  display:block;position:relative;height:212px;margin:var(--space-2) 0 var(--space-3);
}
.mcg-doors-cluster .mcg-tile{position:absolute;margin:0}
/* Stage 2.5 (Wayne, Nov 9, 2026) — ONE silhouette for all three doors.
   Before this, every tile shared the base .mcg-tile clip — a chevron
   whose point spans the tile's FULL height — so the point's angle was
   set by each tile's own height: FILES (212px tall) read as a plain
   rounded card, EVIDENCE/UPDATES (~100px) as steep arrows. Three
   shapes, not a family. The silhouette is now ONE parametric plaque,
   identical on all three tiles: a rounded-rectangle body — radius
   --tile-r on the left corners (via border-radius) and the SAME
   radius drawn as true arc points on the right shoulders — whose
   right edge carries ONE centred arrow tongue of fixed size: depth
   --tip-d, half-height --tip-t, tip at 50%. The tongue's diagonal
   angle is therefore the same on a 212px tile and a 94px tile; only
   size, position and brightness differ, as the composition requires.
   Constraint: --tile-r + --tip-t (24+18=42) must stay under half the
   shortest tile height (94px at <=380px -> 47) so the right edge
   keeps a straight run between shoulder arc and tongue. */
.mcg-doors-cluster .mcg-tile{
  --tile-r:24px; --tip-d:28px; --tip-t:18px;
  border-radius:var(--tile-r);
  clip-path:polygon(
    0 0,
    calc(100% - var(--tip-d) - var(--tile-r)*1) 0,
    calc(100% - var(--tip-d) - var(--tile-r)*0.805) calc(var(--tile-r)*0.019),
    calc(100% - var(--tip-d) - var(--tile-r)*0.617) calc(var(--tile-r)*0.076),
    calc(100% - var(--tip-d) - var(--tile-r)*0.444) calc(var(--tile-r)*0.169),
    calc(100% - var(--tip-d) - var(--tile-r)*0.293) calc(var(--tile-r)*0.293),
    calc(100% - var(--tip-d) - var(--tile-r)*0.169) calc(var(--tile-r)*0.444),
    calc(100% - var(--tip-d) - var(--tile-r)*0.076) calc(var(--tile-r)*0.617),
    calc(100% - var(--tip-d) - var(--tile-r)*0.019) calc(var(--tile-r)*0.805),
    calc(100% - var(--tip-d)) var(--tile-r),
    calc(100% - var(--tip-d)) calc(50% - var(--tip-t)),
    100% 50%,
    calc(100% - var(--tip-d)) calc(50% + var(--tip-t)),
    calc(100% - var(--tip-d)) calc(100% - var(--tile-r)),
    calc(100% - var(--tip-d) - var(--tile-r)*0.019) calc(100% - var(--tile-r)*0.805),
    calc(100% - var(--tip-d) - var(--tile-r)*0.076) calc(100% - var(--tile-r)*0.617),
    calc(100% - var(--tip-d) - var(--tile-r)*0.169) calc(100% - var(--tile-r)*0.444),
    calc(100% - var(--tip-d) - var(--tile-r)*0.293) calc(100% - var(--tile-r)*0.293),
    calc(100% - var(--tip-d) - var(--tile-r)*0.444) calc(100% - var(--tile-r)*0.169),
    calc(100% - var(--tip-d) - var(--tile-r)*0.617) calc(100% - var(--tile-r)*0.076),
    calc(100% - var(--tip-d) - var(--tile-r)*0.805) calc(100% - var(--tile-r)*0.019),
    calc(100% - var(--tip-d) - var(--tile-r)) 100%,
    0 100%);
}
.mcg-doors-cluster .mcg-tile-files{
  left:0;top:0;width:57%;height:212px;z-index:1;padding-top:var(--space-5);
}
.mcg-doors-cluster .mcg-tile-evidence{
  right:0;top:0;width:52%;height:104px;z-index:3;min-height:0;
}
.mcg-doors-cluster .mcg-tile-updates{
  right:0;top:112px;width:49%;height:100px;z-index:2;min-height:0;
}
@media (max-width:380px){
  .mcg-doors.mcg-doors-cluster{height:200px}
  .mcg-doors-cluster .mcg-tile-files{height:200px}
  .mcg-doors-cluster .mcg-tile-evidence{height:98px}
  .mcg-doors-cluster .mcg-tile-updates{top:106px;height:94px}
}
/* (b) The bottom bar's raised camera bubble (tabBar's centre slot).
   The slot holds the bar's rhythm; the bubble itself is Lane A's
   iridescent recipe (the .mcg-nav-cam values) lifted above the
   ribbon, exactly as the reference draws it. It is a plain link —
   the camera door and its gate live on intake.html, untouched. */
.tabbar .tab-cam-slot{flex:1 1 0;position:relative;min-width:0}
.tabbar a.tab-cam{
  position:absolute;left:50%;top:-30px;transform:translateX(-50%);
  width:var(--h-camera);height:var(--h-camera);border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:26px;color:var(--deep-900,#01242F);text-decoration:none;
  padding:0;border:1px solid rgba(255,255,255,.75);
  background:radial-gradient(120% 120% at 28% 22%, #FFFFFF 0%, var(--bubble-2) 34%, var(--bubble-1) 62%, var(--bubble-3) 100%);
  box-shadow:inset 0 2px 6px rgba(255,255,255,.85), inset 0 -8px 14px rgba(9,49,61,.28),
             0 10px 22px rgba(0,24,26,.45), 0 0 20px rgba(95,242,223,.35);
}
.tabbar a.tab-cam[aria-current="page"]{border-color:var(--mc-rim)}
html[data-look="lite"] .tabbar a.tab-cam{
  box-shadow:inset 0 2px 6px rgba(255,255,255,.85), inset 0 -8px 14px rgba(9,49,61,.28),
             0 4px 14px rgba(0,24,26,.35);
}

/* Stage-2 parent integration (Nov 9, 2026): with the view-as eye added,
   the operator header carries four pills; tighten at phone widths so
   wordmark + pills hold ONE row like the reference composition. */
@media (max-width:480px){
  header.bar .topbtn{width:38px;height:38px;font-size:1rem}
  header.bar .topbtns{gap:.4rem}
  header.bar .brand{font-size:.92rem}
}

/* Parent fix (Nov 9, 2026): an empty .pill with the hidden attribute
   still rendered as an empty oval beside "The Feed" — the .pill
   display rule beats the UA [hidden] rule. Hidden means hidden. */
.pill[hidden]{display:none!important}
