/* ============================================================
   McGuinness Estate — client-portal project shell (1:1 with prod)
   Mirrors app.atelier.inc Option-H DARK left rail (ProjectRail /
   .oh-side in client-shell.css) + sticky breadcrumb bar.
   Locked kit: Roobert + Fragment Mono · accent #F1613A · rect radii.
   Rail markup is injected by shell.js from body[data-page].
   ============================================================ */
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--fb);font-weight:300}
a{color:inherit;text-decoration:none}
.mcg-app{display:flex;min-height:100vh}

/* ---- dark rail (prod .oh-side) ---- */
.mcg-side{flex:0 0 236px;width:236px;background:#171512;color:var(--cream);border-right:1px solid rgba(255,255,255,.08);padding:16px 12px;display:flex;flex-direction:column;gap:3px;position:sticky;top:0;height:100vh;overflow-y:auto;overflow-x:hidden}
.oh-toggle{display:flex;align-items:center;gap:12px;padding:9px 10px;border-radius:var(--r);color:rgba(255,255,255,.7);margin-bottom:8px}
.oh-toggle .ic{width:18px;height:18px;flex:0 0 auto;color:rgba(255,255,255,.5)}
.oh-toggle .tg-t{font-family:var(--fm);font-size:.52rem;letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.5);white-space:nowrap}
.oh-switch{display:flex;align-items:center;gap:10px;border:1px solid rgba(255,255,255,.1);border-radius:var(--r);padding:8px 10px;background:rgba(255,255,255,.05);cursor:pointer;margin-bottom:16px;color:var(--cream)}
.oh-switch img{width:30px;height:30px;border-radius:7px;object-fit:cover;flex:0 0 auto}
.oh-switch .st{line-height:1.2;min-width:0}
.oh-switch .st b{font-size:.82rem;font-weight:500;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.oh-switch .st span{font-family:var(--fm);font-size:.5rem;letter-spacing:.08em;text-transform:uppercase;color:rgba(255,255,255,.5)}
.oh-switch .car{margin-left:auto;font-family:var(--fm);color:rgba(255,255,255,.5);font-size:.68rem}
.oh-lbl{font-family:var(--fm);font-size:.52rem;letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.4);padding:6px 10px 4px}
.oh-nav{display:flex;align-items:center;gap:12px;padding:10px 11px;border-radius:var(--r);color:rgba(255,255,255,.7);font-size:.88rem;cursor:pointer;transition:.18s;position:relative;white-space:nowrap}
.oh-nav:hover{background:rgba(255,255,255,.06);color:#fff}
.oh-nav.on{background:rgba(241,97,58,.12);color:#fff}
.oh-nav.on::before{content:"";position:absolute;left:0;top:8px;bottom:8px;width:2px;border-radius:2px;background:#F1613A}
.oh-nav .ic{width:17px;height:17px;flex:0 0 auto;color:rgba(255,255,255,.5)}
.oh-nav.on .ic{color:#F1613A}
.oh-nav .nt{flex:1;overflow:hidden;text-overflow:ellipsis}
.oh-nav .nx{margin-left:auto;font-family:var(--fm);font-size:.54rem;letter-spacing:.06em;color:rgba(255,255,255,.6);border:1px solid rgba(255,255,255,.15);border-radius:6px;padding:2px 6px}
.oh-nav.on .nx{border-color:#F1613A;color:#F1613A}
.oh-nav .oh-notif{margin-left:auto;min-width:17px;height:17px;border-radius:9px;background:var(--accent);color:#fff;font-family:var(--fm);font-size:.56rem;display:inline-flex;align-items:center;justify-content:center;padding:0 5px}
.oh-nav.disabled{color:rgba(255,255,255,.3);cursor:default;pointer-events:none}
.oh-nav.disabled .ic{color:rgba(255,255,255,.3)}
.oh-nav .cs{margin-left:auto;font-family:var(--fm);font-size:.44rem;letter-spacing:.08em;text-transform:uppercase;color:rgba(255,255,255,.35);border:1px solid rgba(255,255,255,.12);border-radius:6px;padding:2px 6px;white-space:nowrap}
.oh-sfoot{margin-top:auto;padding-top:16px;border-top:1px solid rgba(255,255,255,.08);display:flex;align-items:center;gap:10px}
.oh-sfoot .av{width:30px;height:30px;border-radius:50%;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;font-family:var(--fm);font-size:.6rem;flex:0 0 auto}
.oh-sfoot .who{line-height:1.2}
.oh-sfoot .who b{font-size:.8rem;font-weight:500;display:block;color:var(--cream)}
.oh-sfoot .who span{font-family:var(--fm);font-size:.5rem;letter-spacing:.06em;text-transform:uppercase;color:rgba(255,255,255,.5)}

/* ---- main column + breadcrumb bar ---- */
.mcg-main{flex:1;min-width:0;display:flex;flex-direction:column}
.mcg-bar{position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:14px;padding:13px clamp(16px,2.4vw,26px);background:rgba(250,250,248,.86);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.mcg-crumb{font-family:var(--fm);font-size:.64rem;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.mcg-crumb b{color:var(--ink);font-weight:400}
.mcg-crumb a:hover{color:var(--accent)}
.mcg-crumb .sl{margin:0 8px;color:#C9C4BA}
.mcg-hub{margin-left:auto;font-family:var(--fm);font-size:.6rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);border:1px solid var(--line);border-radius:var(--r-sm);padding:7px 12px;transition:.2s}
.mcg-hub:hover{border-color:var(--accent);color:var(--accent)}
.mcg-wrap{padding:clamp(20px,3vw,34px) clamp(16px,3vw,40px) 70px;max-width:1340px;margin:0 auto;width:100%}

/* ---- shared page header ---- */
.mcg-hd{margin-bottom:22px}
.mcg-hd .eb{font-family:var(--fm);font-size:.62rem;letter-spacing:.16em;text-transform:uppercase;color:var(--accent);margin-bottom:11px;display:flex;align-items:center;gap:10px}
.mcg-hd h1{font-weight:500;font-size:clamp(24px,3.4vw,36px);letter-spacing:-.02em;line-height:1.05}
.mcg-hd p{color:var(--muted);margin-top:11px;max-width:72ch;font-size:14.5px}
.mcg-hd .proj{margin-top:16px;display:flex;flex-wrap:wrap;gap:8px}
.mcg-hd .proj .pk{font-family:var(--fm);font-size:.55rem;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-2);border:1px solid var(--line);border-radius:var(--r-sm);padding:5px 10px;background:var(--white)}
.mcg-hd .proj .pk b{color:var(--accent);font-weight:500}

/* ---- shared screen card ---- */
.screen{border:1px solid var(--line);border-radius:var(--r-card);background:var(--white);overflow:hidden;box-shadow:0 1px 0 rgba(23,21,18,.02),0 22px 44px -34px rgba(23,21,18,.28);margin-bottom:22px}
.scr-top{display:flex;align-items:center;gap:14px;padding:18px 22px;border-bottom:1px solid var(--line)}
.scr-top h2,.scr-top h3{font-weight:500;font-size:16px;letter-spacing:0;text-transform:uppercase}
.scr-top .cnt{font-family:var(--fm);font-size:.58rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.scr-top .spacer{flex:1}

/* ============================================================
   CANONICAL PROJECT HERO — option-final dark hero, ALL ROLES
   (decision 2026-08-02, memory/design-decisions.md — hero visual
   = admin-redesign/option-final.html, exactly). Shared component:
   .dhero (full-bleed dark cinematic cover) + .frost (dark stats
   strip band) + .statusbar (white PROJECT STATUS segmented spine,
   tb-*). Client role = same skeleton, firewalled stats, no CTA.
   Lives OUTSIDE .mcg-wrap (full-bleed under the breadcrumb bar).
   ============================================================ */
.dhero{position:relative;display:flex;flex-direction:column;justify-content:flex-end;min-height:clamp(300px,32vw,400px);background:linear-gradient(135deg,#1a1a18 0%,#2d2a24 50%,#3a3530 100%);overflow:hidden}
.dhero .cover{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.5;filter:saturate(.85)}
.dhero .veil{position:absolute;inset:0;background:linear-gradient(to top,rgba(10,9,8,.7) 0%,rgba(10,9,8,.22) 55%,rgba(10,9,8,.38) 100%),radial-gradient(ellipse 55% 90% at 80% 12%,rgba(241,97,58,.10),transparent 60%)}
.dhero .wordmark{position:absolute;top:26px;right:clamp(20px,3.4vw,48px);z-index:3;color:rgba(255,255,255,.45);font-size:13px;font-weight:500;letter-spacing:.28em;text-transform:uppercase}
.dhero .dh-body{position:relative;z-index:3;padding:92px clamp(20px,3.4vw,48px) 28px}
.dhero .dh-body h1{font-size:clamp(30px,4vw,42px);font-weight:300;letter-spacing:-.02em;color:#fff;line-height:1.02}
.dhero .dh-sub{font-family:var(--fm);font-size:11px;text-transform:uppercase;letter-spacing:.1em;color:rgba(255,255,255,.55);margin-top:10px}
.dhero .dh-meta{display:flex;align-items:center;gap:14px;margin-top:14px}
.dhero .hbadge{display:inline-flex;align-items:center;gap:6px;font-family:var(--fm);font-size:10px;text-transform:uppercase;letter-spacing:.1em;color:#fff;border:1px solid rgba(255,255,255,.4);border-radius:var(--r-sm);padding:5px 12px}
.dhero .hbadge .dot{width:6px;height:6px;border-radius:50%;background:var(--accent)}
/* dark stats strip band (option-final .frost) */
.frost{position:relative;z-index:4;display:flex;align-items:stretch;flex-wrap:wrap;background:rgba(10,10,8,.72);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-top:1px solid rgba(255,255,255,.12)}
.frost .stat{display:flex;flex-direction:column;justify-content:center;min-height:64px;padding:10px 28px;border-right:1px solid rgba(255,255,255,.15)}
.frost .stat:first-child{padding-left:clamp(20px,3.4vw,48px)}
.frost .lbl{font-family:var(--fm);font-size:9px;text-transform:uppercase;letter-spacing:.1em;color:rgba(255,255,255,.5)}
.frost .val{font-family:var(--fb);font-size:14px;font-weight:400;color:#fff;margin-top:4px;display:flex;align-items:baseline;gap:5px;white-space:nowrap}
.frost .val small{font-size:11px;color:rgba(255,255,255,.5)}
.frost .val .ok{color:var(--accent);font-size:12px}
.frost a.stat:hover .val{color:var(--accent)}
.frost.frost-even .stat{flex:1 1 0}
.frost .cta{margin-left:auto;display:flex;align-items:center;padding:10px clamp(20px,3.4vw,48px) 10px 16px}
.btn-ghost{display:inline-flex;align-items:center;gap:8px;font-family:var(--fb);font-size:11px;font-weight:500;text-transform:uppercase;letter-spacing:.14em;border-radius:var(--r);border:1px solid rgba(255,255,255,.45);background:transparent;color:#fff;padding:9px 16px;cursor:pointer;text-decoration:none;white-space:nowrap;transition:background .15s}
.btn-ghost:hover{background:rgba(255,255,255,.1)}
/* white PROJECT STATUS segmented spine (option-final .statusbar / TimelineBar) */
.statusbar{background:var(--white);border:1px solid var(--line);border-radius:var(--r-card);padding:18px 22px 12px}
.tb-top{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:22px}
.tb-eyebrow{font-family:var(--fm);font-size:10px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
.tb-state{font-family:var(--fm);font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:var(--ink);margin-top:4px}
.tb-state .ontrack{color:#22C55E}
.tb-pct{font-family:var(--fb);font-weight:300;font-size:clamp(34px,4vw,44px);color:var(--ink);line-height:1}
.tb-scroll{overflow:visible}
.tb-bar{position:relative;width:100%;height:48px;background:#E8E8E4;border:1px solid var(--line);border-radius:6px}
.tb-fill{position:absolute;left:0;top:0;height:100%;background:linear-gradient(90deg,#8B2E1A 0%,#C74A2E 30%,#E85D3A 60%,#F1613A 100%);border-radius:5px 0 0 5px}
.tb-div{position:absolute;top:0;width:1px;height:100%;background:rgba(0,0,0,.15)}
.tb-dot{position:absolute;width:12px;height:12px;border-radius:50%;background:#fff;border:1px solid rgba(23,21,18,.25);bottom:-6px;transform:translateX(-50%);z-index:2}
.tb-dot.done{background:#C74A2E}
.tb-dot.cur{width:16px;height:16px;background:#C74A2E;bottom:-8px}
.tb-ring{position:absolute;top:-2px;left:-2px;width:16px;height:16px;border:2px solid #C74A2E;border-radius:50%;box-sizing:content-box;animation:tbpulse 1.8s infinite}
@keyframes tbpulse{0%{transform:scale(1);opacity:.9}100%{transform:scale(1.9);opacity:0}}
.tb-labels{position:relative;height:56px;margin-top:14px}
.tb-lbl{position:absolute;top:0;transform:translateX(-50%);font-family:var(--fm);font-size:10px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);text-align:center;line-height:1.3;white-space:nowrap}
.tb-lbl.cur{color:var(--ink);font-weight:500}
.tb-lbl.first{transform:none;text-align:left}
.tb-lbl.last{transform:translateX(-100%);text-align:right}
.tb-date{display:block;font-size:10px;color:var(--muted);font-weight:400;margin-top:2px}
.tb-note{margin-top:2px;padding-bottom:6px;font-family:var(--fm);font-size:.5rem;letter-spacing:.08em;text-transform:uppercase;color:#B4AEA2}
@media(max-width:1100px){
  .frost .stat{padding:10px 18px}
  .frost .cta{padding-right:20px}
}
@media(max-width:1023px){
  .statusbar .tb-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:6px}
  .statusbar .tb-scroll::-webkit-scrollbar{height:5px}
  .statusbar .tb-scroll::-webkit-scrollbar-thumb{background:rgba(23,21,18,.18);border-radius:4px}
  .statusbar .tb-scroll .tb-inner{min-width:760px;padding-bottom:2px}
}

/* ---- section heads — Roobert 16px · 500 · NO kerning (decision 2026-08-02) ---- */
h2.sh{font-family:var(--fb);font-size:16px;font-weight:500;letter-spacing:0;text-transform:uppercase;color:var(--ink);margin:0 0 16px;display:flex;align-items:center;gap:12px}
h2.sh::after{content:"";flex:1;height:1px;background:var(--line)}
h2.sh a{color:var(--accent-d);flex:0 0 auto;font-size:12px}
h2.sh .cnt{font-size:11px;color:var(--muted);flex:0 0 auto;letter-spacing:.02em}

/* ---- section cards — every section below the status spine = its own card,
       title INSIDE the card (decision 2026-08-02) ---- */
.seccard{border:1px solid var(--line);border-radius:var(--r-card);background:var(--white);padding:20px 22px;margin-top:16px}
.seccard>*:last-child{margin-bottom:0}

/* ============================================================
   RESPONSIVE SYSTEM (shared by client + admin walkthroughs)
   Breakpoints: desktop ≥1200 · tablet 768–1199 (icon rail)
   · mobile <768 (dark top bar + hamburger → slide-in drawer)
   ============================================================ */

/* ---- mobile top bar + drawer scrim (injected by shell js) ---- */
.mcg-topbar{display:none}
.mcg-scrim{display:none}
.conv-back{display:none}

/* ---- TABLET 768–1199: rail collapses to a 72px icon rail ---- */
@media(max-width:1199px) and (min-width:768px){
  .mcg-side{flex:0 0 72px;width:72px;padding:14px 10px}
  .oh-toggle{justify-content:center;padding:9px 0}
  .oh-toggle .tg-t{display:none}
  .oh-switch{justify-content:center;padding:7px 0}
  .oh-switch .st,.oh-switch .car{display:none}
  .oh-lbl{font-size:0;letter-spacing:0;padding:0;height:1px;background:rgba(255,255,255,.08);margin:9px 8px 8px}
  .oh-nav{justify-content:center;gap:0;padding:13px 0}
  .oh-nav .ic{width:19px;height:19px}
  .oh-nav .nt,.oh-nav .nx,.oh-nav .cs{display:none}
  .oh-nav .oh-notif{position:absolute;top:6px;right:14px;margin:0;min-width:9px;height:9px;padding:0;font-size:0;border-radius:50%}
  .oh-sfoot{justify-content:center}
  .oh-sfoot .who{display:none}
}

/* ---- MOBILE <768: top bar + slide-in drawer ---- */
@media(max-width:767px){
  body{overflow-x:hidden}
  .mcg-app{flex-direction:column}
  /* top app bar (dark, matches rail) */
  .mcg-topbar{display:flex;position:sticky;top:0;z-index:70;align-items:center;gap:12px;min-height:60px;background:#171512;color:var(--cream);padding:8px 12px;border-bottom:1px solid rgba(255,255,255,.08)}
  .mtb-burger{display:flex;align-items:center;justify-content:center;width:44px;height:44px;flex:0 0 auto;border:1px solid rgba(255,255,255,.16);border-radius:var(--r-sm);color:var(--cream);background:rgba(255,255,255,.04)}
  .mtb-burger svg{width:20px;height:20px}
  .mtb-title{line-height:1.25;min-width:0;flex:1}
  .mtb-title b{display:block;font-weight:500;font-size:.94rem;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .mtb-title span{font-family:var(--fm);font-size:.5rem;letter-spacing:.1em;text-transform:uppercase;color:rgba(255,255,255,.5)}
  .mtb-badge{flex:0 0 auto;font-family:var(--fm);font-size:.54rem;letter-spacing:.14em;text-transform:uppercase;color:#fff;border:1px solid var(--accent);border-radius:var(--r-sm);padding:5px 9px}
  /* rail → off-canvas drawer */
  .mcg-side{position:fixed;left:0;top:0;bottom:0;height:100dvh;width:min(300px,85vw);z-index:90;transform:translateX(-105%);transition:transform .32s cubic-bezier(.16,1,.3,1);box-shadow:24px 0 60px -20px rgba(0,0,0,.5)}
  .mcg-side.open{transform:none}
  .mcg-scrim{display:block;position:fixed;inset:0;z-index:80;background:rgba(20,18,14,.55);opacity:0;pointer-events:none;transition:opacity .25s}
  .mcg-scrim.on{opacity:1;pointer-events:auto}
  body.drawer-open{overflow:hidden}
  .oh-toggle{display:none}
  .oh-nav{padding:13px 12px}  /* ≥44px touch target */
  .oh-switch{padding:11px 10px}
  /* breadcrumb bar sits under the top bar */
  .mcg-bar{top:60px;flex-wrap:wrap;gap:8px 10px;padding:10px 14px}
  .mcg-hub{padding:9px 12px}
  .mcg-bar .adm-badge{display:none} /* role badge lives in the top bar on mobile */
  .mcg-wrap{padding:18px 14px 60px}

  /* ---- shared content patterns, mobile ---- */
  /* canonical dark hero scales down; stats strip → 2-col grid; spine → horizontal scroller */
  .dhero{min-height:0}
  .dhero .dh-body{padding:64px 16px 20px}
  .dhero .dh-body h1{font-size:28px}
  .dhero .wordmark{top:18px;right:16px;font-size:11px}
  .frost{display:grid;grid-template-columns:1fr 1fr}
  .frost .stat{min-height:0;padding:10px 16px;border-right:0;border-top:1px solid rgba(255,255,255,.12)}
  .frost .stat:first-child{padding-left:16px}
  .frost .stat:nth-child(odd){border-right:1px solid rgba(255,255,255,.15)}
  .frost .cta{grid-column:1 / -1;margin-left:0;padding:12px 16px;border-top:1px solid rgba(255,255,255,.12)}
  .frost .cta .btn-ghost{width:100%;justify-content:center;min-height:44px}
  .statusbar{padding:14px 16px 8px}
  .statusbar .tb-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:6px}
  .statusbar .tb-scroll::-webkit-scrollbar{height:5px}
  .statusbar .tb-scroll::-webkit-scrollbar-thumb{background:rgba(23,21,18,.18);border-radius:4px}
  .statusbar .tb-scroll .tb-inner{min-width:760px;padding-bottom:2px}
  /* legacy Option-G hero (non-overview pages, if any) */
  .mcg-wrap .e-cover{min-height:216px}
  .mcg-wrap .e-cover h1{font-size:26px}
  .mcg-wrap .e-cover .hero-cta{position:static;padding:14px 16px 0;justify-content:flex-start;flex-wrap:wrap}
  .mcg-wrap .glass{display:grid;grid-template-columns:1fr 1fr}
  .mcg-wrap .glass .gi{min-width:0;padding:11px 14px;border-left:0;border-top:1px solid rgba(23,21,18,.08)}
  .mcg-wrap .glass .gi:nth-child(-n+2){border-top:0}
  .mcg-wrap .glass .gi:nth-child(2n){border-left:1px solid rgba(23,21,18,.08)}
  .mcg-wrap .glass .gv{white-space:normal}
  /* segmented status spine scrolls horizontally, labels intact */
  .mcg-wrap .segscroll{overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:6px}
  .mcg-wrap .segscroll::-webkit-scrollbar{height:5px}
  .mcg-wrap .segscroll::-webkit-scrollbar-thumb{background:rgba(23,21,18,.18);border-radius:4px}
  .mcg-wrap .segscroll .segbar,.mcg-wrap .segscroll .seglbls{min-width:620px}
  /* needs-attention strip: CTA drops to its own full-width row */
  .mcg-wrap .needs .btn{margin-left:0;width:100%;justify-content:center}
  /* toolbars: search goes full-width, actions wrap */
  .mcg-wrap .tbar,.mcg-wrap .fbar,.mcg-wrap .ibar,.mcg-wrap .scr-top,.mcg-wrap .scr-bar{flex-wrap:wrap}
  .mcg-wrap .tsearch,.mcg-wrap .fsearch,.mcg-wrap .isearch{flex:1 1 100%;min-width:0}
  .mcg-wrap .tact,.mcg-wrap .iact{margin-left:0;width:100%}
  .mcg-wrap .fbar .push{display:none}
  /* section cards tighten */
  .mcg-wrap .seccard{padding:16px 14px}
  /* section heads wrap (long counts / action buttons) */
  .mcg-wrap h2.sh{flex-wrap:wrap}
  .mcg-wrap h2.sh::after{flex:1 1 30px}
  .mcg-wrap h2.sh .cnt{flex:0 1 auto;min-width:0;white-space:normal}
  /* shared grids collapse */
  .mcg-wrap .g2,.mcg-wrap .g3,.mcg-wrap .g4,.mcg-wrap .pgrid{grid-template-columns:1fr}
  .mcg-wrap .pchips{grid-template-columns:1fr 1fr}
  /* buttons: comfortable touch */
  .mcg-wrap .btn{min-height:44px}

  /* ---- data tables → card lists (js adds .rsp + data-th; photos stay) ---- */
  .mcg-wrap table.rsp{display:block;min-width:0!important;width:100%}
  .mcg-wrap table.rsp tbody{display:block}
  .mcg-wrap table.rsp thead{display:none}
  .mcg-wrap table.rsp tr{display:flex;flex-wrap:wrap;align-items:flex-start;gap:10px 18px;padding:14px 16px;border-bottom:1px solid var(--line)}
  .mcg-wrap table.rsp tr.rsp-head{display:none}
  .mcg-wrap table.rsp tr:last-child{border-bottom:0}
  .mcg-wrap table.rsp tr:hover td{background:transparent}
  .mcg-wrap table.rsp td{display:block;padding:0;border:0;text-align:left;white-space:normal}
  .mcg-wrap table.rsp td.num{text-align:left}
  .mcg-wrap table.rsp td[data-th]::before{content:attr(data-th);display:block;font-family:var(--fm);font-size:.46rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin-bottom:3px}
  .mcg-wrap table.rsp td.rsp-media{order:-2}
  .mcg-wrap table.rsp td.rsp-main{order:-1;flex:1 1 calc(100% - 88px);min-width:160px}
  .mcg-wrap table.rsp td:empty{display:none}

  /* ---- two-pane messages → single pane with back nav (js toggles) ---- */
  .mcg-wrap .msg2{grid-template-columns:1fr}
  .mcg-wrap .msg2>*{min-width:0}
  .mcg-wrap .msg2 .th .sub{min-width:0}
  .mcg-wrap .msg2.m-list .conv{display:none}
  .mcg-wrap .msg2.m-conv .tlist{display:none}
  .mcg-wrap .msgpane{grid-template-columns:1fr}
  .mcg-wrap .msgpane.m-list>div:not(.thl){display:none}
  .mcg-wrap .msgpane.m-conv .thl{display:none}
  .conv-back{display:inline-flex;align-items:center;gap:6px;font-family:var(--fm);font-size:.56rem;letter-spacing:.1em;text-transform:uppercase;color:var(--accent-d);padding:12px 16px 0;cursor:pointer}
}
