/* Portfolio summary: one fixed screen, no scrolling, runs hands-free. Sizes are in rem and the root
   font size follows the viewport, so the layout scales from a phone to a wall TV. Light theme only.
   Landscape: issues + mall tiles on the left, rotating mall on the right. Portrait: stacked. */
:root{
  --bg:#edf2f8; --surface:#ffffff; --surface2:#f4f7fb; --border:#e0e8f2; --border2:#cad7e7;
  --text:#0c1a2b; --text2:#465e7b; --text3:#7b90ac;
  --blue:#0084CA; --solar:#e08a00; --solar2:#f6b73c;
  --ok:#05865d; --ok-bg:#e8f8f0; --ok-line:#b3e4cd;
  --warn:#b96f00; --warn-bg:#fff5e2; --warn-line:#f1cf8d;
  --bad:#d01f3e; --bad-bg:#fff0f2; --bad-line:#f3b6c1;
  --na:#6b7788; --na-bg:#eef1f5; --na-line:#d0d7e1;
  --shadow:0 .05rem .1rem rgba(16,40,70,.05),0 .5rem 1.6rem -.4rem rgba(16,40,70,.14);
  --glow:rgba(0,132,202,.08);
  --font:'Outfit',system-ui,-apple-system,'Segoe UI',sans-serif;
  --mono:'JetBrains Mono',ui-monospace,Consolas,monospace;
  --brand:#0084CA; --brand-red:#E40046;
  color-scheme:light;   /* light only, whatever the device setting */
}

html{font-size:clamp(7px,min(.94vw,1.72vh),48px)}
@media (orientation:portrait){html{font-size:clamp(7px,min(1.85vw,1.05vh),48px)}}
*{box-sizing:border-box}
html,body{height:100%;overflow:hidden}
body{margin:0;background:radial-gradient(60rem 40rem at 85% -10%,var(--glow),transparent 70%),var(--bg);color:var(--text);font-family:var(--font);line-height:1.3;-webkit-font-smoothing:antialiased;user-select:none}
.lbl{font-size:.66rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--text3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ok{--c:var(--ok);--cbg:var(--ok-bg);--cl:var(--ok-line)}
.warn{--c:var(--warn);--cbg:var(--warn-bg);--cl:var(--warn-line)}
.bad{--c:var(--bad);--cbg:var(--bad-bg);--cl:var(--bad-line)}
.na{--c:var(--na);--cbg:var(--na-bg);--cl:var(--na-line)}
.dot{display:inline-block;width:.6rem;height:.6rem;border-radius:50%;background:var(--c);flex-shrink:0;box-shadow:0 0 0 .18rem var(--cbg)}
.pill{display:inline-flex;align-items:center;gap:.4rem;font-size:.82rem;font-weight:700;border-radius:999px;padding:.22rem .8rem;white-space:nowrap;color:var(--c);background:var(--cbg);border:1px solid var(--cl)}
.pill::before{content:"";width:.5rem;height:.5rem;border-radius:50%;background:var(--c)}
.card{background:var(--surface);border:1px solid var(--border);border-radius:1.15rem;box-shadow:var(--shadow);min-width:0;min-height:0;overflow:hidden}
.ico{width:1.9rem;height:1.9rem;border-radius:.6rem;display:grid;place-items:center;flex-shrink:0;background:var(--ib,var(--surface2));color:var(--ic,var(--text2))}
.ico svg{width:1.05rem;height:1.05rem}

.kiosk{height:100vh;height:100dvh;display:grid;gap:.8rem;padding:.8rem;
  padding-top:calc(.8rem + env(safe-area-inset-top,0px));padding-bottom:calc(.8rem + env(safe-area-inset-bottom,0px));
  grid-template-columns:minmax(0,16fr) minmax(0,84fr);grid-template-rows:auto minmax(0,1fr)}
@media (orientation:portrait){.kiosk{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,42fr) minmax(0,58fr)}}

/* ---------- portfolio header (frozen, full width) + side panel: white with a soft sky tint ---------- */
.topbar,.side{
  --surface:#f6f9fd; --surface2:#eef4fa;
  color:var(--text);border:1px solid var(--border);
  background:radial-gradient(30rem 18rem at 0% 0%,rgba(0,132,202,.10),transparent 65%),linear-gradient(180deg,#ffffff,#fbfdff);
  border-radius:1.25rem;box-shadow:var(--shadow);overflow:hidden;min-height:0}
.topbar::before{content:"";position:absolute;inset:0 0 auto 0;height:.28rem;background:linear-gradient(90deg,var(--brand) 0 60%,var(--brand-red) 60% 100%)}
.topbar{position:relative;grid-column:1/-1;display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"id k c" "x x x";row-gap:.7rem;gap:1rem;align-items:center;padding:.8rem 1rem}
.topbar .id{grid-area:id;display:grid;gap:.5rem;min-width:0}
.topbar .kpis{grid-area:k}
.topbar .clock{grid-area:c;align-self:start}
.topbar .clock b{font-size:1.6rem}
.topbar .clock span{font-size:.76rem}
.topbar .k{padding:.6rem .8rem}
.topbar .k .v{font-size:1.6rem}
.topbar .k .ico{width:2.1rem;height:2.1rem;border-radius:.65rem}
.topbar .k .ico svg{width:1.1rem;height:1.1rem}
.side{display:grid;gap:.6rem;padding:.9rem;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto}
@media (orientation:portrait){
  .topbar{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"id c" "k k" "x x"}
}
/* Top exception: the single most serious open issue, always visible */
.topx{grid-area:x;display:flex;align-items:center;gap:.75rem;padding:.5rem .9rem;border-radius:.75rem;background:var(--cbg);border:1px solid var(--cl);font-size:.95rem;min-width:0;white-space:nowrap;overflow:hidden}
.topx .k3{display:inline-flex;align-items:center;gap:.45rem;font-size:.7rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--c);flex-shrink:0}
.topx .k3 .dot{box-shadow:none}
.topx .tx{min-width:0;overflow:hidden;text-overflow:ellipsis}
.topx .tx b{font-weight:700}
.topx .sep{color:var(--text3);margin:0 .4rem}
.topx .tg{margin-left:auto;flex-shrink:0;font-weight:700;color:var(--c)}
.topx .more{flex-shrink:0;font-size:.78rem;color:var(--text2);padding-left:.75rem;border-left:1px solid var(--cl)}
.brand b .wm{display:inline;font-size:inherit;font-weight:inherit;color:var(--brand);margin:0;white-space:nowrap}
.brand b .wm.r{color:var(--brand-red)}
.head{display:flex;align-items:center;gap:.65rem;min-width:0}
.logo{width:2.3rem;height:2.3rem;border-radius:.75rem;background:#fff;border:1px solid var(--border);display:grid;place-items:center;flex-shrink:0;box-shadow:0 .2rem .7rem -.25rem rgba(16,40,70,.22)}
.logo img{width:86%;height:86%;object-fit:contain;display:block}
.brand{display:grid;line-height:1.15;flex:1;min-width:0}
.brand b{font-size:1.1rem;font-weight:800;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.brand span{font-size:.74rem;color:var(--text3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.clock{display:grid;text-align:right;line-height:1.1;flex-shrink:0}
.clock b{font-size:1.15rem;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:-.01em}
.clock span{font-size:.68rem;color:var(--text3);white-space:nowrap}
.fresh{display:flex;align-items:center;gap:.45rem;font-size:.74rem;color:var(--text2);background:var(--surface);border:1px solid var(--border);border-radius:.6rem;padding:.32rem .65rem;white-space:nowrap;overflow:hidden}
.fresh i{width:.45rem;height:.45rem;border-radius:50%;background:var(--ok);box-shadow:0 0 0 .2rem var(--ok-bg);flex-shrink:0;animation:pulse 2.4s ease-in-out infinite}
@keyframes pulse{50%{opacity:.35}}
.fresh span{overflow:hidden;text-overflow:ellipsis}
.fresh b{color:var(--text)}

.kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.6rem}
@media (orientation:portrait){.kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
.k{background:var(--surface);border:1px solid var(--border);border-radius:.85rem;padding:.55rem .7rem;display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:.55rem;align-items:center;min-width:0}
.k .ico{grid-row:1/4;width:1.75rem;height:1.75rem;border-radius:.55rem}
.k .ico svg{width:.95rem;height:.95rem}
.k .v{font-size:1.32rem;font-weight:800;letter-spacing:-.02em;line-height:1.1;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.k .v em{font-style:normal;font-size:.76rem;font-weight:600;color:var(--text3);margin-left:.2rem}
.k .s{font-size:.72rem;color:var(--text2);font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.k .s b{font-weight:700}
.meter{height:.3rem;border-radius:.2rem;background:var(--border2);overflow:hidden;margin-top:.22rem}
.meter span{display:block;height:100%;border-radius:.2rem;background:linear-gradient(90deg,var(--c),color-mix(in srgb,var(--c) 60%,#fff))}

/* Material issues: cycles through every open issue, a few at a time */
.mat{background:var(--surface);border:1px solid var(--border);border-radius:.85rem;padding:.55rem .65rem;display:grid;gap:.4rem;min-width:0}
.mat-h{display:flex;justify-content:space-between;align-items:center;gap:.5rem}
/* "8 affect output" drops under the title in a narrow panel instead of pushing the pager out */
.mat-h b{font-size:.82rem;min-width:0;line-height:1.25}
.mat-h b span{display:inline-block;white-space:nowrap}
.mat-h .dots{flex-shrink:0;align-self:flex-start;margin-top:.1rem}
.mat-h .pg{font-size:.72rem;font-weight:700;color:var(--text2);font-variant-numeric:tabular-nums;white-space:nowrap;background:var(--surface2);border:1px solid var(--border);border-radius:999px;padding:.1rem .5rem}
.mat-h b span{color:var(--bad)}
.dots{display:flex;gap:.25rem}
.dots i{width:.4rem;height:.4rem;border-radius:50%;background:var(--border2)}
.dots i.on{width:1rem;border-radius:.2rem;background:var(--blue)}
.mat,.mlist,.malls{grid-template-columns:minmax(0,1fr)}
.mlist{display:grid;gap:.32rem}
.mi{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:auto auto auto;column-gap:.5rem;row-gap:.2rem;align-items:center;padding:.6rem .7rem;border-radius:.6rem;background:var(--cbg);border:1px solid var(--cl);animation:rise .5s ease both}
.mi .dot{grid-row:1/4;align-self:start;margin-top:.3rem;box-shadow:none}
.mi .t{font-size:.88rem;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mi .is{grid-column:2/4;font-size:.84rem;font-weight:600;color:var(--text);line-height:1.25}
.mi .d{font-size:.76rem;font-weight:700;color:var(--c);white-space:nowrap}
.mi .m{grid-column:2/4;font-size:.74rem;color:var(--text2);line-height:1.25;font-variant-numeric:tabular-nums}
@keyframes rise{from{opacity:0;transform:translateY(.35rem)}to{opacity:1;transform:none}}

.malls{display:grid;grid-template-rows:auto auto minmax(0,1fr);gap:.45rem;min-height:0}
.bhead{display:flex;justify-content:space-between;align-items:center;gap:.6rem}
.bhead b{font-size:.82rem;white-space:nowrap}
.bhead b span{color:var(--text3);font-weight:600}
.bnav{display:flex;align-items:center;gap:.35rem}
.tile{cursor:pointer;transition:transform .12s,box-shadow .12s}
.tile:hover{transform:translateY(-1px);box-shadow:0 .35rem 1rem -.4rem rgba(16,40,70,.35)}
.tile:focus-visible{outline:2px solid var(--brand,#0084CA);outline-offset:2px}
.mini i{cursor:pointer}
.bbtn{width:1.7rem;height:1.7rem;border-radius:50%;border:1px solid var(--border2);background:var(--surface);color:var(--brand,#0084CA);font:inherit;font-size:1.05rem;font-weight:800;line-height:1;display:grid;place-items:center;cursor:pointer;padding:0;transition:background .15s,color .15s}
.bbtn:hover{background:var(--brand,#0084CA);color:#fff;border-color:transparent}
.bbtn:focus-visible{outline:2px solid var(--brand,#0084CA);outline-offset:2px}
.mini{display:grid;gap:2px}
.mini i{height:.5rem;border-radius:2px;background:var(--c);opacity:.3;transition:opacity .4s}
.mini i.in{opacity:1}
.mini i.cur{outline:2px solid var(--blue);outline-offset:1px}
.tiles{display:grid;grid-template-columns:repeat(var(--cols,2),minmax(0,1fr));grid-template-rows:repeat(var(--rows,6),minmax(0,1fr));gap:.4rem;min-height:0}
.tile{position:relative;overflow:hidden;display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:.5rem;row-gap:.08rem;align-content:center;
  border:1px solid var(--cl);background:var(--cbg);border-radius:.7rem;padding:.32rem .65rem;min-width:0;min-height:0;max-height:4.8rem;animation:rise .45s ease both}
.tile .dot{grid-row:1/3;width:.65rem;height:.65rem;box-shadow:none}
.tile .n{font-size:.98rem;font-weight:700;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tile .p{font-size:1rem;font-weight:800;color:var(--c);font-variant-numeric:tabular-nums;white-space:nowrap;text-align:right}
.tile .w{grid-column:2/4;font-size:.72rem;color:var(--text2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
.tile .w b{color:var(--c);font-weight:700}
.tile.cur{background:#fff;border-color:var(--blue);box-shadow:0 0 0 .1rem var(--blue),0 .4rem 1.2rem -.4rem rgba(0,132,202,.45)}
.tile .prog{position:absolute;left:0;bottom:0;height:.18rem;width:0;background:var(--blue)}
.run{animation:fill var(--cycle,60000ms) linear forwards}
@keyframes fill{to{width:100%}}
.legend{display:flex;flex-wrap:wrap;gap:.2rem .75rem;font-size:.7rem;color:var(--text3);white-space:nowrap}
.legend span{display:inline-flex;align-items:center;gap:.3rem}
.legend .dot{width:.45rem;height:.45rem;box-shadow:none}

/* ---------- rotating mall ---------- */
.main{display:grid;gap:.8rem;min-height:0;min-width:0;grid-template-rows:auto auto minmax(0,1fr) minmax(0,1.05fr)}
.main.swap > *{animation:rise .55s ease both}
.main.swap > *:nth-child(2){animation-delay:.05s}
.main.swap > *:nth-child(3){animation-delay:.1s}
.main.swap > *:nth-child(4){animation-delay:.15s}
.hero{padding:.85rem 1.1rem;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.45rem 1rem;align-items:center;position:relative;
  background:radial-gradient(40rem 12rem at 0% 0%,color-mix(in srgb,var(--c) 14%,transparent),transparent 70%),var(--surface)}
.hero h1{margin:0;font-size:2.15rem;font-weight:800;letter-spacing:-.025em;line-height:1.05;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hero .meta{display:flex;gap:.9rem;font-size:.84rem;color:var(--text2);white-space:nowrap;overflow:hidden;margin-top:.15rem}
.hero .meta span{display:inline-flex;gap:.3rem;align-items:center}
.hero .right{display:grid;justify-items:end;gap:.35rem}
.hero .pos{font-size:.74rem;color:var(--text3);font-variant-numeric:tabular-nums;white-space:nowrap}
.banner{grid-column:1/-1;display:flex;gap:.6rem;align-items:center;border-radius:.7rem;padding:.42rem .75rem;font-size:.92rem;min-width:0;background:var(--cbg);border:1px solid var(--cl)}
.banner span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.banner b{color:var(--c)}
.hero .bar{position:absolute;left:0;right:0;bottom:0;height:.2rem}
.hero .bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--blue),color-mix(in srgb,var(--blue) 50%,#fff))}

.figs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem}
.fig{padding:.7rem .9rem;display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:.7rem;align-items:center}
.fig .ico{grid-row:1/4;width:2.4rem;height:2.4rem;border-radius:.8rem}
.fig .ico svg{width:1.25rem;height:1.25rem}
.fig .v{font-size:1.85rem;font-weight:800;letter-spacing:-.025em;font-variant-numeric:tabular-nums;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fig .v em{font-style:normal;font-size:.82rem;color:var(--text3);font-weight:600;margin-left:.25rem}
.fig .v.mute{color:var(--text3)}
.fig .s{font-size:.76rem;color:var(--text2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.health{display:grid;grid-template-columns:1fr 1fr;gap:.8rem;min-height:0}
.hc{padding:.8rem 1rem;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:.5rem}
.hc .top{display:flex;justify-content:space-between;gap:.5rem;align-items:center;min-width:0}
.hc .top div{display:flex;gap:.55rem;align-items:center;min-width:0}
.hc h2{margin:0;font-size:1rem;white-space:nowrap}
.hc .sub{display:block;font-size:.68rem;color:var(--text3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500}
.hc .body{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:1.3rem;align-items:center;min-height:0}
.ring{position:relative;height:100%;max-height:11rem;min-height:4rem;aspect-ratio:1;container-type:size}
.ring svg{width:100%;height:100%;transform:rotate(-90deg)}
.ring .val{position:absolute;inset:0;display:grid;place-content:center;text-align:center;line-height:1.05}
.ring .val b{font-size:clamp(.9rem,21cqmin,2.6rem);font-weight:800;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.ring .val span{font-size:clamp(.5rem,8cqmin,.8rem);margin-top:.15rem;letter-spacing:.08em;text-transform:uppercase;color:var(--text3);font-weight:700}
.rows{display:grid;gap:.32rem;margin:0;padding:0;list-style:none;font-size:.84rem;color:var(--text2);min-height:0;overflow:hidden}
.rows li{display:flex;justify-content:space-between;gap:.6rem;white-space:nowrap;padding-bottom:.3rem;border-bottom:1px dashed var(--border)}
.rows li:last-child{border-bottom:0;padding-bottom:0}
.rows li span{overflow:hidden;text-overflow:ellipsis}
.rows li b{color:var(--text);font-weight:700;font-variant-numeric:tabular-nums;overflow:hidden;text-overflow:ellipsis}
.rows li .dot{width:.5rem;height:.5rem;margin-right:.4rem;box-shadow:none;transform:translateY(-.05rem)}
.mets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem;align-content:center;min-width:0}
.met{background:var(--surface2);border:1px solid var(--border);border-radius:.85rem;padding:.6rem .8rem;min-width:0;display:grid;gap:.1rem}
.met b{font-size:1.6rem;font-weight:800;letter-spacing:-.02em;line-height:1.1;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.met small{font-size:.74rem;color:var(--text2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.trs{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:.45rem}
.trc{display:inline-flex;align-items:center;gap:.45rem;font-size:.8rem;font-weight:600;padding:.28rem .7rem;border-radius:999px;background:var(--cbg);border:1px solid var(--cl);white-space:nowrap}
.trc .dot{box-shadow:none;width:.5rem;height:.5rem}
.trc b{color:var(--c);font-weight:700}
.note{font-size:.76rem;color:var(--text2);background:var(--cbg);border:1px solid var(--cl);border-radius:.55rem;padding:.32rem .6rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.lower{display:grid;grid-template-columns:minmax(0,42fr) minmax(0,58fr);gap:.8rem;min-height:0}
.issues{padding:.8rem 1rem;display:flex;flex-direction:column;gap:.5rem}
.issues h2,.chart h2{margin:0;font-size:1rem;white-space:nowrap}
.issue{border:1px solid var(--cl);border-radius:.8rem;overflow:hidden;min-height:0;flex-shrink:1;background:var(--surface)}
.issue .ti{display:flex;gap:.5rem;align-items:center;padding:.45rem .7rem;background:var(--cbg);font-weight:700;font-size:.88rem;min-width:0}
.issue .ti span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.issue .ti .dot{box-shadow:none}
.issue dl{margin:0;display:grid;grid-template-columns:1fr 1fr;gap:.4rem .9rem;padding:.5rem .7rem}
.issue dt{font-size:.6rem;letter-spacing:.08em;text-transform:uppercase;color:var(--text3);font-weight:700}
.issue dd{margin:.08rem 0 0;font-size:.8rem;color:var(--text2);line-height:1.2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.issue dd.hi{color:var(--text);font-weight:700}
.clear{flex:1;display:grid;place-items:center;text-align:center;border-radius:.8rem;color:var(--text2);font-size:.9rem;padding:.5rem;background:var(--ok-bg);border:1px solid var(--ok-line)}
.clear b{display:block;color:var(--ok);font-size:1.1rem;margin-bottom:.15rem}
.more{font-size:.74rem;color:var(--text3)}
.chart{padding:.8rem 1rem .45rem;display:flex;flex-direction:column;gap:.2rem}
.chart .hd{display:flex;justify-content:space-between;gap:.6rem;align-items:baseline;min-width:0}
.chart .hd span{font-size:.72rem;color:var(--text2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.plot{flex:1;min-height:0;position:relative}
.plot svg{position:absolute;inset:0;width:100%;height:100%}
svg text{fill:var(--text3);font-family:var(--font)}

@media (orientation:landscape) and (max-height:620px){
  .hc .sub,.legend,.chart .hd span,.hero .meta{display:none}
}
@media (orientation:portrait){.main{grid-template-rows:auto auto minmax(0,1fr) minmax(0,1fr)}}
@media (orientation:portrait) and (max-aspect-ratio:3/5){.figs{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (prefers-reduced-motion:reduce){*{animation:none!important}.run{width:100%}}

/* ---------- loading / no data ---------- */
.boot{position:fixed;inset:0;display:grid;place-content:center;justify-items:center;gap:.8rem;background:var(--bg);z-index:40;text-align:center;color:var(--text2);font-size:1rem}
.boot img{width:4rem;height:4rem;border-radius:1rem;background:#fff;padding:.4rem;border:1px solid var(--border);box-shadow:var(--shadow)}
.boot b{color:var(--text);font-size:1.2rem}
.boot[hidden]{display:none}
.plot .empty{position:absolute;inset:0;display:grid;place-items:center;color:var(--text3);font-size:.85rem}
/* Portrait: the health cards are narrow, so drop the per-TR chips and tighten the figures */
@media (orientation:portrait){.hc .sub,.hc .trs{display:none}.mets{gap:.4rem}.met{padding:.4rem .55rem}.met b{font-size:1.2rem}}
/* Narrow health cards (phones, portrait TVs): the three figures stack as rows beside the ring */
.hc{container-type:inline-size}
@container (max-width:34rem){
  .hc .body{gap:.8rem}
  .mets{grid-template-columns:minmax(0,1fr);gap:.3rem}
  .met{display:flex;align-items:baseline;gap:.5rem;padding:.3rem .6rem}
  .met .lbl{flex:1;min-width:0}
  .met b{font-size:1.1rem}
  .hc .trs{display:none}
}
/* Short issue card: keep the impact and duration, drop the component and alert rows */
.issues{container-type:size}
@container (max-height:13rem){
  .issue dl > div:nth-child(n+3){display:none}
  .issue dd{-webkit-line-clamp:1}
}
