/* Shared screen components from f97849a */
@scope (.reference-frame) {
.pad{padding:16px}
.vhead{position:sticky; top:0; z-index:6; background:var(--ground);
  background:color-mix(in srgb,var(--ground) 94%,transparent);
  backdrop-filter:blur(9px); margin:-16px -16px 14px; padding:13px 16px 10px;
  border-bottom:2px solid var(--console)}
.vhead::after{content:""; position:absolute; left:16px; bottom:-2px; width:54px; height:2px;
  background:var(--signal)}
.vhead .h{font-size:18px; font-weight:800; letter-spacing:.02em}
.vhead .sub{margin-top:2px}
.sub{color:var(--muted); font-size:12.5px}
.card{background:var(--surface); border:1px solid var(--line); border-radius:var(--r);
  padding:14px; margin-bottom:10px; box-shadow:0 3px 0 rgba(9,44,60,.06)}
.lv{display:flex; flex-direction:column; align-items:center; gap:2px; flex-shrink:0;
  border-radius:2px; padding:6px 8px; min-width:56px; border:1px solid currentColor}
.lv .f{font-family:var(--font-mono); font-size:10px; line-height:1; letter-spacing:.08em}
.lv .n{font-size:9.5px; font-weight:700}
.lv0{background:var(--raise); color:var(--muted)}
.lv1{background:var(--lv1s); color:var(--lv1)}
.lv2{background:var(--lv2s); color:var(--lv2)}
.lv3{background:var(--lv3s); color:var(--lv3)}
.lv4{background:var(--lv4s); color:var(--lv4)}
.qs{display:flex; align-items:center; gap:12px; background:var(--surface); border:1px solid var(--line);
  border-left:3px solid var(--accent); border-radius:var(--r); padding:13px 12px;
  margin-bottom:8px; width:100%; text-align:left; box-shadow:0 2px 0 rgba(9,44,60,.05)}
.qs .ic{width:48px; height:38px; border-radius:2px; display:grid; place-items:center;
  font-family:var(--font-mono); font-size:9px; font-weight:700; letter-spacing:.08em;
  border:1px solid currentColor; flex-shrink:0}
.qs .t{font-size:15px; font-weight:700}
.qs .d{font-size:11.5px; color:var(--muted); line-height:1.5}
.qs .cnt{margin-left:auto; font-family:var(--font-mono); font-size:13px; font-weight:700; color:var(--accent)}
.unit{display:flex; align-items:center; gap:11px; background:var(--surface); border:1px solid var(--line);
  border-radius:var(--r); padding:12px 12px 12px 0; margin-bottom:8px; width:100%;
  text-align:left; overflow:hidden; box-shadow:0 2px 0 rgba(9,44,60,.05)}
.unit .bar{width:7px; height:7px; align-self:flex-start; border-radius:0; flex-shrink:0;
  margin:10px 4px 0 11px; box-shadow:0 0 7px currentColor}
.unit .in{flex:1; min-width:0}
.unit .t{font-size:14.5px; font-weight:700; margin-bottom:5px}
.chips{display:flex; gap:5px; flex-wrap:wrap}
.chip{background:var(--raise); border-radius:5px; padding:2px 6px; font-size:10.5px; color:var(--muted);
  white-space:nowrap}
.chip .st{color:#E8A33D}
.chip .fi{color:#D9694A}
.segbar{display:flex; gap:2px; margin:8px 0 7px}
.segbar i{flex:1; height:7px; border-radius:2px; background:var(--lv0)}
.pct{font-family:var(--font-mono); font-size:13px; font-weight:700; color:var(--lv4)}
.rowsum{display:flex; align-items:center; gap:8px; font-size:11px; color:var(--muted)}
.rowsum .c{display:flex; align-items:center; gap:3px; font-family:var(--font-mono)}
.unitgroup{font-size:12px; color:var(--muted); font-weight:700; margin:14px 2px 7px}
.pastgroup{margin:14px 0 10px}
.pasthead{display:flex; align-items:center; gap:10px; min-height:52px; padding:10px 12px;
  background:var(--console); color:#EAF5F7; border-left:3px solid var(--signal);
  border-radius:var(--r)}
.pasthead::before{content:"EXAM"; display:grid; place-items:center; width:42px; height:24px;
  flex-shrink:0; border:1px solid #8DA9B4; border-radius:2px; color:#8DA9B4;
  font-family:var(--font-mono); font-size:8.5px; letter-spacing:.08em}
.pastgroup .sum{flex:1; min-width:0}
.pastgroup .sum .t{font-size:15px; font-weight:700}
.pastgroup .sum .d{font-size:11.5px; color:#8DA9B4; line-height:1.45}
.pastgroup .count{font-family:var(--font-mono); color:var(--signal); font-size:12px; font-weight:700}
.pastlist{padding-top:8px}
.subacts{display:flex; align-items:center; justify-content:space-between; margin-top:6px}
.subacts button{color:var(--muted); font-size:13px; padding:9px 4px; min-height:40px}
.qsection{font-size:12px; color:var(--accent); font-weight:700; letter-spacing:.06em;
  margin:15px 0 7px}
.qsrc{font-family:var(--font-mono); font-size:11.5px; color:var(--muted)}
.relbtn{display:flex; align-items:center; gap:8px; width:100%; text-align:left;
  background:var(--surface); border-radius:8px; padding:11px 13px; margin:0 0 8px; font-size:14px}
.relbtn .ar{margin-left:auto; color:var(--muted)}
.relbtn.ulink{margin:6px 0 4px; font-size:13.5px; color:var(--accent)}
.relbtn.uback{color:var(--accent); font-weight:700}
.guide{background:var(--surface); border-radius:var(--r); padding:14px 15px; margin:0 0 14px;
  font-size:13.5px; line-height:1.95; color:var(--ink)}
.guide .lk{font-family:var(--font-mono); font-size:10.5px; letter-spacing:.12em;
  color:var(--accent); margin-bottom:7px}
.guide b{color:var(--accent)}
.legend2{display:flex; flex-wrap:wrap; gap:6px; margin:12px 0 4px}
.legend2 span{font-family:var(--font-mono); font-size:10px; color:var(--muted);
  background:var(--raise); border-radius:4px; padding:3px 7px}
.legend{display:flex; gap:14px; justify-content:center; font-size:11.5px; color:var(--muted); margin-top:6px}
.legend b{font-family:var(--font-mono)}
.dist{display:grid; grid-template-columns:repeat(3,1fr); gap:8px}
.dist .d{background:var(--raise); border-radius:9px; padding:10px 6px; text-align:center}
.dist .d .v{font-size:20px; font-weight:700; font-family:var(--font-mono)}
.dist .d .p{font-size:10px; color:var(--muted)}
.dist .d .k{font-size:10.5px; margin-top:2px}
.note{font-size:11.5px; color:var(--muted); padding:2px 4px 20px}
.note code{font-family:var(--font-mono); background:var(--raise); padding:1px 5px; border-radius:4px}
.note a{color:var(--accent)}
@media (min-width:600px) and (hover:none) and (pointer:coarse){.vhead .h{font-size:22px}}
}
.reference-frame #head{display:none}.reference-frame #page{padding:0}.reference-frame .pad button{min-height:0}.reference-frame .pad .card{margin-top:0}.reference-frame svg{background:transparent}


.reference-frame .pad button{line-height:inherit}.reference-frame .pad .relbtn{margin-right:5px}

@scope (.reference-frame){
.pastmeta{display:flex; align-items:center; gap:7px; min-width:0}

.pastbadge{flex-shrink:0; border-radius:5px; background:var(--accent-soft); color:var(--accent);
  font-size:10.5px; font-weight:700; padding:2px 6px}

.pastsrc{font-size:11px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap}}

.nav{display:flex; background:var(--console); border-top:2px solid var(--signal); flex-shrink:0;
  padding-bottom:env(safe-area-inset-bottom)}
.nav button{flex:1; padding:9px 1px 8px; display:flex; flex-direction:column; align-items:center;
  gap:4px; color:#8DA9B4; font-size:9.5px; position:relative; min-height:58px;
  white-space:nowrap; overflow:hidden}
.nav button.on{color:#FFFFFF; background:linear-gradient(180deg,var(--console-2),var(--console))}
.nav button.on::before{content:""; position:absolute; top:0; left:24%; right:24%; height:2px;
  background:var(--signal); box-shadow:0 0 8px var(--signal)}
.nav .ico{font-family:var(--font-mono); font-size:9px; line-height:1; letter-spacing:.08em;
  min-width:34px; height:20px; padding:0 5px; display:grid; place-items:center;
  border:1px solid currentColor; border-radius:2px}
.badge{position:absolute; top:3px; left:calc(50% + 8px); background:var(--signal); color:#18242A;
  font-size:9px; font-weight:800; min-width:18px; height:17px; border-radius:2px;
  display:grid; place-items:center; padding:0 5px; font-family:var(--font-mono)}

.nav button{min-width:0;border:0;border-radius:0;background-color:transparent;line-height:inherit}
#main-tabs[hidden],#foot[hidden],.nav .badge[hidden]{display:none}
.home-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.reference-frame .home-actions button{min-height:52px;background:var(--accent);color:var(--accent-ink);font-size:15px;font-weight:700;border-radius:6px}
.brandcode{font:700 10px var(--font-mono);letter-spacing:.12em;color:var(--accent)}
