/* Compact workspaces: keep evidence readable and recurring decisions in reach. */
body{margin:0}
.wrap{padding-bottom:76px}
.wrap[data-phase="play"],.wrap[data-phase="s3play"],.wrap[data-phase="s4play"],.wrap[data-phase="s5play"]{max-width:1120px;gap:10px}
.brand-home{flex:none;width:112px;padding:0;border:0;background:transparent;border-radius:6px;cursor:pointer}
.brand-home .mini{display:block!important;width:100%;height:40px;object-fit:contain}
.brand-home:focus-visible{outline:3px solid var(--gold)}
.wrap[data-phase$="play"] .topbar{min-height:40px;position:sticky;top:0;z-index:9;background:rgba(6,17,31,.96)}
.wrap[data-phase$="play"]>.stats{gap:8px}
.wrap[data-phase$="play"]>.stats .stat{display:flex;align-items:center;justify-content:center;gap:10px;padding:4px 8px}
.wrap[data-phase$="play"]>.stats .stat .v{font-size:23px}
.wrap[data-phase$="play"]>.stats .stat svg{width:18px;height:18px}
.compact-title{font-size:15px;margin:0 0 9px;color:var(--gold);font-weight:800}
.lot-heading{padding:8px 12px}
.lot-heading>div{display:flex;gap:12px;align-items:baseline;flex-wrap:wrap}
.lot-heading b{font-size:20px;color:var(--gold)}
.lot-heading span{font-size:14px;color:var(--muted)}
.lot-heading p{font-size:14px;margin:5px 0 0}
.lot-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:10px}
.lot-layout>.panel{padding:10px 12px;min-width:0}
.lot-layout .docs{gap:8px}
.lot-layout .doc{gap:6px;padding:5px 0}
.lot-layout .doc svg{width:23px;height:23px}
.lot-layout .doc .k{font-size:10px;letter-spacing:0}
.lot-layout .doc .v{font-size:14px;line-height:1.35}
.lot-layout .lcdtable{width:100%;table-layout:fixed}
.lot-layout .lcdtable th{font-size:11px;text-align:left}
.lot-layout .lcdtable th:first-child{width:39%}
.lot-layout .lcdtable tbody th{font-size:13px;font-weight:600;color:var(--fg);padding:5px 3px}
.lot-layout .lcdtable th small{display:block;font:11px/1.35 var(--f-lcd);color:var(--muted);margin-top:2px;overflow-wrap:anywhere}
.lot-layout .lcdtable td{padding:4px 2px}
.lot-layout .lcdtable .lcd{font-size:18px;padding:4px 3px}
.lot-layout .visual{margin-top:8px;gap:10px}
.lot-layout .visual svg{width:64px;height:64px;flex:none}
.lot-layout .visual p{font-size:14px;margin:0}
.lot-reference{grid-column:1 / -1}
.lot-reference,.decision-help,.case-reference,.evidence-board,.case-chain{border:1px solid var(--edge-dim);border-radius:10px;background:#0b2038;min-width:0}
summary{cursor:pointer;padding:10px 12px;font-weight:700;font-size:14px;line-height:1.35}
summary:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
.lot-reference summary{color:var(--gold)}
.lot-reference summary span{color:var(--muted);font-weight:400;margin-left:12px}
.lot-reference .sheet{margin:0 8px 8px;padding:10px 12px}
.lot-reference .notes{font-size:13px;line-height:1.4;margin-bottom:0}
.lot-reference .sheet table{display:none} /* Specs are always beside the samples. */
.decision-help p,.case-reference p{font-size:14px;line-height:1.45;margin:0;padding:0 12px 12px}
.decision-help summary{font-weight:500;color:var(--muted);padding-block:7px}
.evidence-tabs{display:none}
.decision-dock,.wrap[data-phase="s5play"] .choices,.wrap[data-phase="s5play"] .confirm{position:fixed;z-index:8;bottom:0;left:50%;transform:translateX(-50%);width:min(1120px,100%);margin:0;background:rgba(5,17,31,.97);padding:10px max(14px,env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom));border-top:1px solid var(--edge);box-shadow:0 -8px 22px #04101f88;border-radius:0;gap:9px}
.choices.decision-dock,.wrap[data-phase="s5play"] .choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.decision-dock .choice,.wrap[data-phase="s5play"] .choices .choice{display:flex;justify-content:center;min-height:48px;padding:7px 9px;gap:8px;border-radius:10px;box-shadow:none;text-align:center;min-width:0}
.decision-dock .choice b,.wrap[data-phase="s5play"] .choices .choice b{font-size:17px;letter-spacing:0}
.decision-dock .choice .ic,.wrap[data-phase="s5play"] .choices .choice .ic{width:26px;height:26px;flex:none;border:0;background:transparent}
.decision-dock .choice .ic svg,.wrap[data-phase="s5play"] .choices .choice .ic svg{width:24px;height:24px}
.decision-dock .choice span,.decision-dock .choice .fl,.decision-dock .choice .chev,.wrap[data-phase="s5play"] .choices .choice span,.wrap[data-phase="s5play"] .choices .choice .fl,.wrap[data-phase="s5play"] .choices .choice .chev{display:none}
.decision-dock.judge{grid-template-columns:repeat(2,minmax(0,1fr))}
.judge.decision-dock.reveal{animation:none}
.decision-dock .jbtn{min-height:48px;padding:8px;font-size:18px;border-width:2px;box-shadow:none;letter-spacing:0}
.decision-dock .jbtn small{display:none}
.wrap[data-phase="s3play"] .lab{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:8px;padding:10px}
.wrap[data-phase="s3play"] .bpcard{grid-column:1;grid-row:1 / span 2;margin:0}
.wrap[data-phase="s3play"] .bpcard svg{height:94px;width:100%}
.wrap[data-phase="s3play"] .bphead{font-size:12px;letter-spacing:0}
.wrap[data-phase="s3play"] .bp-callout{font-size:19px;margin-bottom:7px;animation:none}
.wrap[data-phase="s3play"] .table3d{grid-column:2;grid-row:1;height:55px;margin:0}
.wrap[data-phase="s3play"] .onplate{width:50%;bottom:3px}
.wrap[data-phase="s3play"] .dro{grid-column:2;grid-row:2;margin:0;padding:8px}
.wrap[data-phase="s3play"] .dro .val{font-size:32px;line-height:1.2}
.wrap[data-phase="s3play"] .dro .val.attr{font-size:15px;white-space:normal}
.wrap[data-phase="s3play"] .dro .lbl{font-size:10px;letter-spacing:0}
.wrap[data-phase="s3play"] .watcher{grid-column:1 / -1;padding:0;justify-content:flex-start;align-items:center}
.wrap[data-phase="s3play"] .watcher .bubble{font-size:14px;padding:6px 9px;max-width:none;flex:1}
.wrap[data-phase="s3play"] .watcher .bubble::before{display:none}
.wrap[data-phase="s3play"] .watcher .face{width:32px;height:32px;border-width:2px}
.wrap[data-phase="s3play"][data-repeat="true"] .table3d,.wrap[data-phase="s3play"][data-repeat="true"] .steps,.wrap[data-phase="s3play"][data-repeat="true"] .watcher .face{display:none}
.wrap[data-phase="s3play"][data-repeat="true"] .dro{grid-row:1 / span 2}
.wrap[data-phase="s3play"] .steps{gap:6px}
.wrap[data-phase="s3play"] .stp{display:flex;align-items:center;justify-content:center;gap:6px;padding:3px;font-size:11px}
.wrap[data-phase="s3play"] .stp i{font-size:13px;width:20px;height:20px;margin:0}
.wrap[data-phase="s3play"] .wall{padding:10px}
.wrap[data-phase="s3play"] .wall-h{font-size:14px;margin-bottom:7px}
.wrap[data-phase="s3play"] .tools{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.wrap[data-phase="s3play"] .tool{min-height:87px;gap:3px;padding:7px}
.wrap[data-phase="s3play"] .tool svg{width:36px;height:36px}
.wrap[data-phase="s3play"] .tool b{font-size:12px;text-transform:none}
.wrap[data-phase="s3play"] .tool span{font-size:11px}
.wrap[data-phase="s4play"] .callout,.wrap[data-phase="s5play"] .callout{padding:6px 9px!important;gap:8px}
.wrap[data-phase="s4play"] .callout .face,.wrap[data-phase="s5play"] .callout .face{width:32px;height:32px;flex:none}
.wrap[data-phase="s4play"] .callout .bubble,.wrap[data-phase="s5play"] .callout .bubble{font-size:14px;padding:6px 9px}
.case-reference summary{font-size:13px;color:var(--muted);padding-block:7px}
.investigation-layout{display:grid;grid-template-columns:minmax(230px,.75fr) minmax(0,1.5fr);gap:12px;align-items:start}
.investigation-layout>aside{display:grid;gap:9px;min-width:0}
.investigation-layout .qbox{margin:0;padding:12px;min-width:0}
.investigation-layout .qlabel{font-size:13px;margin-bottom:5px}
.investigation-layout .qtext{font-size:18px;margin-bottom:9px}
.investigation-layout .opts{gap:7px}
.investigation-layout .opt{padding:9px;gap:8px}
.investigation-layout .opt .t{font-size:14px;line-height:1.4}
.investigation-layout .opt .let{width:26px;height:26px;font-size:15px;flex:none}
.investigation-layout .opt .evref{font-size:12px;margin-top:4px}
.evidence-board .evgrid{grid-template-columns:1fr;gap:5px;padding:0 8px 8px}
.evidence-board .evcard{transform:none;min-height:48px;padding:7px 9px;background:#e9e0ce;border:0;border-radius:5px;text-align:left;box-shadow:none}
.evidence-board .evcard::before{display:none}
.evidence-board .evcard b{font-size:13px;text-transform:none;letter-spacing:0}
.evidence-board .evcard>span:not(.seen){font-size:12px;margin-top:2px}
.evidence-board .evcard .seen{position:static;display:inline-block;font-size:9px;margin-top:3px;transform:none}
.case-chain ol{font-size:13px;line-height:1.45;padding:0 14px 4px 30px}
.case-chain li+li{margin-top:7px}
.wrap[data-phase="s5play"] .bosshud .stat{padding:4px 8px}
.wrap[data-phase="s5play"] .bosshud .stat .v{font-size:25px}
.wrap[data-phase="s5play"] .mission{gap:5px}
.wrap[data-phase="s5play"] .ms{display:flex;align-items:center;justify-content:center;gap:5px;padding:4px;font-size:10px}
.wrap[data-phase="s5play"] .ms i{font-size:13px;line-height:1;margin:0}
.wrap[data-phase="s5play"][data-repeat="true"] .callout .face{display:none}
.wrap[data-phase="s5play"] .bossp{padding:12px}
.wrap[data-phase="s5play"] .bossp .qlabel{font-size:14px}
.wrap[data-phase="s5play"] .bossp .qtext{font-size:18px;margin:6px 0 10px}
.wrap[data-phase="s5play"] .samples{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.wrap[data-phase="s5play"] .smp svg{width:100%;max-height:115px}
.wrap[data-phase="s5play"] .docs5{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.wrap[data-phase="s5play"] .doc5{padding:9px}
.wrap[data-phase="s5play"] .clues{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.wrap[data-phase="s5play"] .clue{font-size:13px}
.wrap[data-phase="s5play"] .opt{padding:10px}
.wrap[data-phase="s5play"] .opt .t{font-size:14px;line-height:1.4}
.wrap[data-phase="s5play"] .confirm{max-width:1120px;min-height:66px;color:var(--gold);font-size:19px}
.wrap[data-phase="s5play"] .confirm small{font-size:11px}
.vcard.panel{max-height:calc(100dvh - 32px);overflow-y:auto;margin:0;padding:14px}
.vcard .bigface{width:46px;height:46px;margin:0 auto 5px;border-width:2px}
.vcard h2{font-size:clamp(23px,5vw,30px);line-height:1.15}
.vcard .quote{display:none}
.vcard .pts{font-size:32px;margin:4px 0}
.vcard .calls{margin:6px 0;gap:5px}
.vcard .chip{font-size:11px;letter-spacing:0;padding:3px 7px}
.vcard p{font-size:14px;line-height:1.45;margin:7px 0}
.vcard .ev{font-size:12px;letter-spacing:0;margin-bottom:8px}
.vcard .cta{position:sticky;bottom:0;min-height:48px;font-size:18px;padding:9px;box-shadow:0 3px 0 var(--gold-dk)}
.vcard .vlimits{font-size:13px;padding:7px;margin:5px 0}
.leave-card{max-width:460px;padding:20px}
.leave-card h2{font-size:22px;margin:0 0 10px}
.leave-card p{font-size:15px;line-height:1.5}
.leave-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}
.leave-actions .cta{font-size:16px;padding:10px}
.wrap[data-phase$="intro"] .stagecard img{max-height:180px;aspect-ratio:auto!important;object-fit:cover;object-position:center 30%}
.wrap[data-phase="intro"]>.logo{max-width:300px}
.wrap[data-phase="intro"] .hero{grid-template-columns:110px 1fr}
.wrap[data-phase="intro"] .hero img{height:110px;object-fit:cover}
.wrap[data-phase$="intro"] .stagecard .body{padding:12px}
.wrap[data-phase$="intro"] .stagecard h2{font-size:26px}
.wrap[data-phase$="intro"] .stagecard p{font-size:14px}
.wrap[data-phase="intro"] #go,.wrap[data-phase="s2intro"] #s2go,.wrap[data-phase="s3intro"] #s3go,.wrap[data-phase="s4intro"] #s4go,.wrap[data-phase="s5intro"] #s5go{position:fixed;z-index:8;left:50%;bottom:calc(10px + env(safe-area-inset-bottom));transform:translateX(-50%);width:min(568px,calc(100% - 28px));min-height:50px;font-size:20px;padding:9px 14px}
@media(max-width:760px){
  .wrap[data-phase$="play"]{gap:8px;padding-top:6px}
  .brand-home{width:80px}.brand-home .mini{height:32px}
  .wrap[data-phase$="play"]>.stats .stat{display:block;padding:4px}
  .wrap[data-phase$="play"]>.stats .stat .k{font-size:10px}
  .wrap[data-phase$="play"]>.stats .stat .v{font-size:20px}
  .evidence-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .evidence-tabs button{font-size:13px;font-weight:700;min-height:42px;padding:7px 4px;background:#0c233f;border:1px solid var(--edge-dim);border-radius:8px}
  .evidence-tabs button[aria-selected="true"]{border-color:var(--gold);color:var(--gold);background:#1b3e64}
  .lot-layout{display:block}
  .lot-layout[data-tab="docs"]>:not(.lot-docs),.lot-layout[data-tab="measure"]>:not(.lot-measure),.lot-layout[data-tab="drawing"]>:not(.lot-reference){display:none}
  .lot-layout .docs{grid-template-columns:1fr 1fr}
  .lot-heading>div{gap:4px 10px}.lot-heading span{font-size:12px}.lot-heading p{font-size:13px}
  .lot-layout .doc .v{font-size:13px;overflow-wrap:anywhere}
  .lot-layout .doc svg{width:19px;height:19px;flex:none}
  .lot-layout .lcdtable .lcd{font-size:16px}
  .lot-layout .lcdtable tbody th{font-size:11px}
  .lot-layout .lcdtable th small{font-size:10px}
  .lot-layout .visual svg{width:56px;height:56px}
  .lot-layout .visual p{font-size:13px}
  .lot-reference summary span{display:block;margin-left:0}
  .lot-reference .sheet table{display:table}
  .decision-dock,.wrap[data-phase="s5play"] .choices{gap:5px;padding:8px 10px calc(8px + env(safe-area-inset-bottom))}
  .decision-dock .choice,.wrap[data-phase="s5play"] .choices .choice{padding:7px 3px;gap:4px}
  .decision-dock .choice b,.wrap[data-phase="s5play"] .choices .choice b{font-size:13px}
  .decision-dock .choice .ic,.wrap[data-phase="s5play"] .choices .choice .ic{display:none}
  .decision-dock .jbtn{font-size:16px}
  .wrap[data-phase="s3play"] .lab{grid-template-columns:1fr;padding:8px;gap:6px}
  .wrap[data-phase="s3play"] .bpcard{grid-column:1;grid-row:1}
  .wrap[data-phase="s3play"] .bpcard svg{height:68px}
  .wrap[data-phase="s3play"] .bphead{font-size:11px;padding:6px 8px 0}
  .wrap[data-phase="s3play"] .bp-callout{font-size:17px;margin:0 7px 6px}
  .wrap[data-phase="s3play"] .bp-callout small{display:none}
  .wrap[data-phase="s3play"] .table3d{display:none}
  .wrap[data-phase="s3play"] .dro,.wrap[data-phase="s3play"][data-repeat="true"] .dro{grid-column:1;grid-row:2;padding:6px 8px}
  .wrap[data-phase="s3play"] .dro .val{font-size:27px}
  .wrap[data-phase="s3play"] .dro .val.attr{font-size:14px}
  .wrap[data-phase="s3play"] .watcher{grid-column:1;grid-row:3}
  .wrap[data-phase="s3play"] .watcher .bubble{font-size:13px}
  .wrap[data-phase="s3play"] .watcher .face{display:none}
  .wrap[data-phase="s3play"] .tools{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .wrap[data-phase="s3play"] .tool{min-height:74px;padding:5px 4px;gap:1px}
  .wrap[data-phase="s3play"] .tool svg{width:28px;height:28px}
  .wrap[data-phase="s3play"] .tool b{font-size:11px}
  .wrap[data-phase="s3play"] .tool span{font-size:10px}
  .investigation-layout{display:flex;flex-direction:column;gap:8px}
  .investigation-layout>aside,.investigation-layout>.qbox{width:100%}
  .evidence-board .evgrid{grid-template-columns:1fr 1fr}
  .investigation-layout .qtext{font-size:16px}
  .investigation-layout .opt .t{font-size:13px}
  .wrap[data-phase="s5play"] .samples{grid-template-columns:repeat(3,minmax(0,1fr))}
  .wrap[data-phase="s5play"] .smp svg{max-height:85px}
  .wrap[data-phase="s5play"] .clues,.wrap[data-phase="s5play"] .docs5{grid-template-columns:1fr}
  .wrap[data-phase="s5play"] .ms{display:block;font-size:0;padding:5px 0}
  .wrap[data-phase="s5play"] .ms i{font-size:15px}
  .wrap[data-phase="s5play"] .bosshud .stat .v{font-size:22px}
  .wrap[data-phase="s5play"] .bossp .qtext{font-size:16px}
  .vcard.panel{padding:11px}.vcard .bigface{width:34px;height:34px}
  .vcard h2{font-size:23px}.vcard p{font-size:13px}
  .vcard .chip{font-size:10px}.vcard .pts{font-size:29px}
  .wrap[data-phase$="intro"] .stagecard img{max-height:140px}
}
@media(min-width:360px) and (max-width:760px){
  .wrap[data-phase="s3play"] .tools{grid-template-columns:repeat(3,minmax(0,1fr))}
  .wrap[data-phase="s3play"] .tool{min-height:68px;padding:4px}
  .wrap[data-phase="s3play"] .tool svg{width:24px;height:24px}
}
@media(max-height:760px){.wrap[data-phase="s3play"] .steps{display:none}}
