/* Studio's own rules. Shared look (tokens, shell, rail, buttons, forms, lists, dialogs, chips, toggles, toasts, #031,
   #039) comes from e18-ui (static/ui); this sheet only adds what Studio has and the kit does not.
   Colours: only the token blocks below hold values (checked by ui/tools/check_app.py). Team hues validated with the
   dataviz palette checker in both themes (adjacent ΔE ≥ 22 normal and CVD): GD purple, Art orange, Anim blue, FE green. */
:root{
  --team-gd:#7B4FD6; --team-art:#E07A1F; --team-anim:#2F6FD6; --team-fe:#1F8A53; --team-qc:#8A93A3; --team-other:#B9C0CC;
  --bar-build:#2F6FD6; --bar-test:#E07A1F; --bar-wait:#8A93A3;
  --heat-0:transparent;
}
:root[data-theme="dark"]{
  --team-gd:#9068EE; --team-art:#D77A2E; --team-anim:#4F82EC; --team-fe:#2A9E64; --team-qc:#7D8799; --team-other:#4A5468;
  --bar-build:#4F82EC; --bar-test:#D77A2E; --bar-wait:#7D8799;
}

/* ---------------------------------------------------------------- page pieces */
h2{font:800 18px/1.2 var(--display);letter-spacing:-.01em;margin:0}
.h3{font:700 14px/1.3 var(--font);margin:18px 0 8px;color:var(--ink-2)}
.card.block{margin-bottom:20px}
.card.flush{padding:6px 18px;margin-bottom:20px}
.card .sub{margin-top:6px}
.tscroll{overflow-x:auto;scrollbar-width:thin}
.split2{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start;margin-bottom:20px}
.split2.wide-left{grid-template-columns:minmax(0,3fr) minmax(0,2fr)}
.split2>*{min-width:0}
.split2>.card.block,.split2>.stack{margin-bottom:0}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
.stack{display:flex;flex-direction:column;gap:20px}
.stack>.card.block{margin-bottom:0}
.foot-note{margin:-6px 0 20px;max-width:90ch}
.small-strip{margin-bottom:12px}
@media (max-width:900px){.split2,.split2.wide-left{grid-template-columns:minmax(0,1fr)}}
@media (max-width:520px){.grid2{grid-template-columns:1fr}.card.flush{padding:4px 12px}}

/* the number strip at the top of a page (house rule: one line of figures, no KPI cards) */
.strip{display:flex;flex-wrap:wrap;gap:6px 22px;margin-top:10px;color:var(--ink-2);font-size:14.5px}
.strip b{font:800 22px/1 var(--display);color:var(--ink);margin-right:4px;font-variant-numeric:tabular-nums}
.strip b.hot{color:var(--marker-ink)}
.small-strip b{font-size:18px}

/* a game is "ID - Name": the ID chip, then the name */
.game{display:inline-flex;align-items:center;gap:8px;min-width:0}
.game a{color:var(--ink);text-decoration:none;font-weight:600}
.game a:hover{text-decoration:underline}
.gid{display:inline-grid;place-items:center;min-width:44px;height:24px;padding:0 6px;border-radius:7px;background:var(--surface-3);color:var(--ink);font:700 12px/1 var(--display);font-variant-numeric:tabular-nums}
.gid.big{height:32px;min-width:58px;font-size:15px;margin-right:12px;vertical-align:4px}
.ptitle{display:flex;align-items:center;flex-wrap:wrap}
.meta-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;margin-top:10px;color:var(--ink-2);font-size:14px}

/* phase and scope: plain coloured words, no pills */
.phase{display:inline-flex;flex-wrap:wrap;gap:2px 10px}
.ph{font-size:13px;font-weight:700;white-space:nowrap;color:var(--ink-2)}
.ph-gd-creation{color:var(--tone-purple-ink)} .ph-art-creation{color:var(--tone-orange-ink)} .ph-development{color:var(--tone-blue-ink)}
.ph-finetune{color:var(--tone-teal-ink)} .ph-finalization{color:var(--tone-green-ink)} .ph-closed,.ph-forfeited{color:var(--ink-4);font-weight:600}
.scope{font-size:12.5px;font-weight:800;letter-spacing:.01em;color:var(--ink-2)}
.sc-new{color:var(--tone-blue-ink)} .sc-reskin{color:var(--tone-teal-ink)} .sc-localization{color:var(--tone-yellow-ink)}
.vs{font-size:12.5px;font-weight:700} .vs.ok{color:var(--tone-green-ink)} .vs.late{color:var(--marker-ink)}
.warn-t{color:var(--tone-orange-ink);font-weight:700} .err-t{color:var(--marker-ink)}
.key{display:inline-flex;align-items:center;height:18px;margin-left:8px;padding:0 6px;border-radius:5px;background:var(--accent-soft);color:var(--accent-ink);font:700 11px/1 var(--font);vertical-align:2px;white-space:nowrap}
.key.big{font-size:12.5px;padding:3px 9px;vertical-align:6px}

/* needs attention */
.attn{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:10px}
.attn>li{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:4px 18px;padding:12px 14px;border-radius:var(--r-m);background:var(--surface-2)}
.attn>li.attn-risk{background:var(--tone-red-soft)}
.attn>li.attn-watch{background:var(--tone-yellow-soft)}
.attn-g{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px}
.flags{list-style:none;margin:0;padding:0;font-size:13.5px;line-height:1.5}
.flags li::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:8px;vertical-align:1px;background:var(--ink-4)}
.flags .fl-risk::before{background:var(--marker)} .flags .fl-watch::before{background:var(--tone-orange)}
.flags .fl-data{color:var(--ink-3)}
.attn-card .flags{margin-top:8px}
.flag-n{display:inline-flex;margin-left:6px;color:var(--marker-ink);vertical-align:-3px}
.flag-n .i{width:15px;height:15px}
tr.r-risk .game a{color:var(--marker-ink)}
@media (max-width:640px){.attn>li{grid-template-columns:1fr}}

/* milestone lists */
.ms,.plain{list-style:none;margin:8px 0 0;padding:0}
.ms li{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;padding:9px 0;border-bottom:1px solid var(--hair)}
.ms li:last-child{border-bottom:0}
.ms-d{min-width:46px;font-weight:700}
.ms-w{min-width:96px;font-size:13px;color:var(--ink-3)}
.ms li.late .ms-d,.ms li.late .ms-w{color:var(--marker-ink)}
.plain li{padding:4px 0}

/* tables */
table.list.compact td{padding:8px 10px}
table.list th.num,table.list td.num{text-align:right}
table.list tr.tot td,table.list tr.tot th{border-top:1px solid var(--hair-2)}
.pipe td{white-space:nowrap}
@container (min-width:701px){.pipe,#ptable,#stable,#rtable{min-width:1000px}}   /* the kit's management table is table-layout:fixed: the first column gets the room; phones get the kit's card rows */
.pipe th:first-child,#ptable th:first-child{width:30%}
#stable th:first-child,#rtable th:first-child{width:24%}
.pipe th:nth-child(4),#ptable th:nth-child(4){width:15%}
.game{flex-wrap:nowrap}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.who-t{display:flex;flex-direction:column;gap:2px}
.who-t small{color:var(--ink-3);font-size:12px}

/* team dots and swatches */
.tdot,.sw{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:8px;vertical-align:0;background:var(--team-other)}
.t-gd{background:var(--team-gd)} .t-art{background:var(--team-art)} .t-anim{background:var(--team-anim)} .t-fe{background:var(--team-fe)}
.t-qc{background:var(--team-qc)} .t-other{background:var(--team-other)}
.legend{display:flex;flex-wrap:wrap;gap:6px 18px;list-style:none;margin:6px 0 14px;padding:0;font-size:13px;color:var(--ink-2)}
.legend.pad{padding:12px 0 10px;margin:0}
.legend .sw{width:12px;height:12px;border-radius:4px}

/* split bars (billable, effort by team): 2px surface gaps, rounded ends */
.sbar{display:flex;gap:2px;height:14px;border-radius:4px;overflow:hidden;min-width:60px}
.sbar .seg{display:block;height:100%}
.sbar .seg:first-child{border-radius:4px 0 0 4px} .sbar .seg:last-child{border-radius:0 4px 4px 0} .sbar .seg:only-child{border-radius:4px}
.seg-game{background:var(--accent)} .seg-other{background:color-mix(in srgb,var(--accent) 45%,var(--surface))}
.seg-leave{background:var(--surface-3)} .seg-rest{background:repeating-linear-gradient(135deg,var(--surface-2) 0 4px,var(--hair-2) 4px 5px)}
.sw.seg-game,.sw.seg-other,.sw.seg-leave,.sw.seg-rest{border-radius:4px}
.bar-col{width:46%;min-width:160px}
table.bill td,table.effort td{vertical-align:middle}

/* horizontal bars and month columns */
.hbars{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.hbars li{display:grid;grid-template-columns:130px minmax(0,1fr) 72px;align-items:center;gap:10px;font-size:13.5px}
.hb-t{height:12px;border-radius:4px;background:var(--surface-2);overflow:hidden}
.hb{display:block;height:100%;border-radius:4px;min-width:3px;background:var(--accent)}
.hb.neutral{background:var(--ink-4)}
.hb-v{text-align:right;color:var(--ink-2)}
.cols{display:flex;align-items:flex-end;gap:6px;height:150px;padding-top:18px;overflow-x:auto}
.col{flex:1 0 34px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:4px}
.col>i{display:block;width:70%;max-width:34px;border-radius:4px 4px 0 0;background:var(--accent);min-height:2px}
.col-v{font-size:11.5px;color:var(--ink-3)} .col-l{font-size:11.5px;color:var(--ink-3)}

/* project page */
.steps{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:2px}
.steps li{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--hair);font-size:14px}
.steps li:last-child{border-bottom:0}
.steps li.done .st-l::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--accent);margin-right:9px;vertical-align:1px}
.steps li:not(.done) .st-l::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;box-shadow:inset 0 0 0 1.5px var(--ink-4);margin-right:9px;vertical-align:1px}
.kv{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px 18px;margin:8px 0 0;font-size:14px}
.kv dt{color:var(--ink-3)} .kv dd{margin:0;overflow-wrap:anywhere}
.kv.tight{gap:4px 14px;font-size:13.5px;margin-bottom:12px}
.note{margin-top:14px;padding:12px 14px;border-radius:var(--r-m);background:var(--surface-2);font-size:14px;white-space:pre-wrap}
.links{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.btn.sm{height:32px;padding:0 12px;font-size:13px}
.sib{margin-top:14px;display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center}
.hist{list-style:none;margin:8px 0 0;padding:0;font-size:13.5px}
.hist li{display:flex;flex-direction:column;gap:2px;padding:8px 0;border-bottom:1px solid var(--hair)}
.hist li:last-child{border-bottom:0}
.hist s{color:var(--ink-4)}

/* ---------------------------------------------------------------- Gantt */
.gantt-card{padding:10px 18px 14px}
.gantt{--name:270px;min-width:760px}
.g-head,.g-row{display:grid;grid-template-columns:var(--name) minmax(0,1fr);align-items:center;gap:12px}
.g-head{position:sticky;top:0;z-index:2;padding:6px 0 8px;background:var(--surface);border-bottom:1px solid var(--hair)}
.g-axis{position:relative;height:18px}
.g-axis span{position:absolute;top:0;font-size:12px;color:var(--ink-3);padding-left:6px;white-space:nowrap;overflow:hidden}
.g-row{min-height:44px;border-bottom:1px solid var(--hair)}
.g-row:last-child{border-bottom:0}
.g-row.is-done .g-name{opacity:.7}
.g-name{display:flex;flex-direction:column;gap:2px;min-width:0;padding:6px 0}
.g-name .game a{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:190px}
.g-track{position:relative;height:44px}
.g-grid{position:absolute;top:0;bottom:0;width:1px;background:var(--hair)}
.g-bar{position:absolute;top:14px;height:16px;border-radius:4px;outline:2px solid var(--surface);outline-offset:-1px;cursor:default}
.gb-build{background:var(--bar-build)} .gb-test{background:var(--bar-test)} .gb-wait{background:var(--bar-wait)}
.g-bar.open{background-image:repeating-linear-gradient(135deg,transparent 0 5px,color-mix(in srgb,var(--surface) 55%,transparent) 5px 8px)}
.g-today{position:absolute;top:2px;bottom:2px;width:2px;margin-left:-1px;background:var(--accent);border-radius:2px;z-index:1}
.g-commit{position:absolute;top:31px;width:10px;height:10px;margin-left:-5px;background:var(--ink);transform:rotate(45deg);border-radius:2px;z-index:1}
.sw-commit{display:inline-block;width:9px;height:9px;margin-right:8px;background:var(--ink);transform:rotate(45deg);border-radius:2px}
.legend .sw.gb-build,.legend .sw.gb-test,.legend .sw.gb-wait{border-radius:4px}
.tl-tools{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin:0 0 14px}
.tl-tools .legend{margin:0 0 0 auto}
.gantt.mini{min-width:0;margin-top:16px}
.gantt.mini .g-row{grid-template-columns:minmax(0,1fr);border:0}
.gantt.mini .g-axis{margin-bottom:2px}
.g-tip{position:absolute;z-index:40;padding:7px 10px;border-radius:10px;background:var(--ink);color:var(--surface);font-size:12.5px;font-weight:600;pointer-events:none;white-space:nowrap}
@media (max-width:640px){.gantt{--name:170px}.g-name .game a{max-width:100px}}

/* ---------------------------------------------------------------- people */
.sig{font-size:12.5px;color:var(--ink-2)}
.last4{display:inline-flex;gap:3px;margin-left:8px;vertical-align:-1px}
.last4 i{width:10px;height:10px;border-radius:3px;background:var(--surface-3)}
.last4 i.ok{background:var(--tone-green)}
.matrix td{vertical-align:top;min-width:150px}
.matrix .cnt{display:block;font:800 18px/1 var(--display);margin-bottom:6px}
.matrix .names{display:flex;flex-wrap:wrap;gap:3px 10px;font-size:13px}
.matrix .names a{color:var(--ink-2);text-decoration:none}
.matrix .names a.km{color:var(--ink);font-weight:800}
.matrix .names a:hover{text-decoration:underline}
.heat{display:inline-grid;place-items:center;min-width:28px;height:24px;border-radius:6px;font-weight:700}
.heat.h1{background:color-mix(in srgb,var(--accent) 14%,transparent)} .heat.h2{background:color-mix(in srgb,var(--accent) 28%,transparent)}
.heat.h3{background:color-mix(in srgb,var(--accent) 44%,transparent)} .heat.h4{background:color-mix(in srgb,var(--accent) 62%,transparent);color:var(--on-accent)}

/* person: hours per day */
.days{display:flex;align-items:flex-end;gap:2px;height:90px;margin:12px 0 6px;position:relative;background:linear-gradient(to top,transparent 69.5%,var(--hair-2) 69.5%,var(--hair-2) 70.5%,transparent 70.5%)}
.day{flex:1 1 0;height:100%;display:flex;align-items:flex-end;min-width:3px}
.day i{display:block;width:100%;border-radius:3px 3px 0 0;background:var(--accent);min-height:0}
.day.short i{background:var(--tone-orange)}
.day.zero{background:repeating-linear-gradient(135deg,transparent 0 3px,var(--hair) 3px 4px);border-radius:3px}
.evals{list-style:none;margin:8px 0 0;padding:0}
.evals li{border-bottom:1px solid var(--hair)}
.evals li:last-child{border-bottom:0}
.evals summary{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;padding:10px 0;cursor:pointer;list-style:none}
.evals summary::-webkit-details-marker{display:none}
.ev-d{min-width:70px;font-weight:700}
.ev-s{display:flex;flex-wrap:wrap;gap:6px}
.mk{font-size:12.5px;font-weight:700;padding:2px 8px;border-radius:7px;background:var(--surface-2);color:var(--ink-3)}
.mk-ok{background:var(--tone-green-soft);color:var(--tone-green-ink)} .mk-warn,.mk-na{background:var(--tone-yellow-soft);color:var(--tone-yellow-ink)}
.mk-missing{background:var(--tone-red-soft);color:var(--marker-ink)}
.ev-body{white-space:pre-wrap;font-size:14px;line-height:1.6;padding:0 0 14px;color:var(--ink-2);max-width:90ch}
.recent .k-common td,.recent .k-admin td,.recent .k-leave td{color:var(--ink-3)}

/* ---------------------------------------------------------------- logwork grid */
table.lw{border-collapse:separate;border-spacing:2px;font-size:12.5px;width:100%}
table.lw th{font-weight:600;color:var(--ink-3);text-align:center;padding:4px 2px}
table.lw th small{display:block;font-size:11px}
table.lw .lw-who{position:sticky;left:0;z-index:2;background:var(--surface);text-align:left;white-space:nowrap;padding-right:10px;font-weight:600;color:var(--ink);min-width:150px}
table.lw .lw-tot{position:sticky;left:150px;z-index:2;background:var(--surface);padding:0 10px;min-width:56px}
table.lw thead th{position:sticky;top:0;z-index:1;background:var(--surface)}
table.lw thead .lw-who,table.lw thead .lw-tot{z-index:3}
.lw-scroll{max-height:76vh;overflow:auto}
.lw-c[tabindex]{cursor:pointer}
.lw-c.active{box-shadow:inset 0 0 0 2px var(--accent)}
tr.lw-row[hidden],tr.lw-detail[hidden]{display:none}
.lw-detail td{padding:4px 0 10px}
.lw-pop{position:sticky;left:150px;width:min(560px,86vw);padding:12px 14px;border-radius:var(--r-m);background:var(--surface-2);font-size:13.5px;text-align:left}
.lw-pop-h{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.lw-pop-h .icon-btn{margin-left:auto;width:28px;height:28px;font-size:18px}
.lw-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.lw-cm{color:var(--ink-3);white-space:pre-wrap;margin-top:2px}
.tk{font:700 12.5px/1 ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--accent-ink);text-decoration:none}
a.tk:hover{text-decoration:underline}
.tickets-t td{vertical-align:top}
table.lw .lw-who a{color:inherit;text-decoration:none}
table.lw th.today{color:var(--accent-ink)}
.lw-c{height:30px;min-width:34px;border-radius:6px;text-align:center;font-variant-numeric:tabular-nums;background:var(--surface-2)}
table.lw.compact .lw-c{height:18px;min-width:9px;border-radius:3px}
.lw-c.off{background:transparent}
.lw-c.h1{background:color-mix(in srgb,var(--accent) 14%,var(--surface))} .lw-c.h2{background:color-mix(in srgb,var(--accent) 32%,var(--surface))}
.lw-c.h3{background:color-mix(in srgb,var(--accent) 58%,var(--surface));color:var(--on-accent)} .lw-c.h4{background:var(--accent);color:var(--on-accent);font-weight:700}
.lw-c.due{background:var(--tone-red-soft);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--marker) 40%,transparent)}
.legend .sw.lw-c{width:14px;height:14px;min-width:0;border-radius:4px}
.pager-mini{display:inline-flex;gap:2px}
.sbar.teams{height:16px}

/* ---------------------------------------------------------------- forms */
.pform .dlg-b{max-height:min(68vh,640px);overflow-y:auto;scrollbar-width:thin}
.pform{width:min(640px,94vw)}
.form-err{color:var(--marker-ink)!important;font-weight:600}
.chip[aria-pressed="true"]{background:var(--accent);color:var(--on-accent)}
.phase-chips{display:flex;flex-wrap:wrap;gap:8px}
.phase-chips .chip{height:32px;font-size:13px}
.toggles{display:flex;flex-wrap:wrap;gap:12px 22px;margin:4px 0 18px}
.tools-row{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}
.preview{margin:4px 0 18px;padding:16px;border-radius:var(--r-m);background:var(--surface-2)}
.preview .pv-t{margin-bottom:12px}
.preview .h3{margin-top:0}
.preview details{margin:4px 0}
.preview summary{cursor:pointer}
.preview .plain{max-height:240px;overflow-y:auto;scrollbar-width:thin}
.preview s{color:var(--ink-4)}
.foot-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:14px}
.sync-rows{display:grid;gap:12px;margin:12px 0 6px}
.sync-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 20px;padding:14px;border-radius:var(--r-m);background:var(--surface-2)}
.sync-row .pill{margin-left:10px}
.sync-form{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.sync-form input{width:124px;height:36px}
[data-holidays]{width:100%;font-variant-numeric:tabular-nums}

/* review */
.rtotal{display:flex;align-items:baseline;gap:6px;font-size:14px}
.rtotal b{font:800 26px/1 var(--display)}
.rubric td{vertical-align:top}
.rubric .grp th{padding-top:18px;color:var(--ink)}
.rubric input.score{width:58px;height:38px;text-align:center;padding:0 6px}
.ratios input.score{width:64px;height:34px;text-align:right;padding:0 8px}
.sync-form input[type=text]{width:124px;height:38px}
.rubric input.score.bad{box-shadow:inset 0 0 0 2px var(--marker)}
.rubric .reason-row td{padding-top:0}
.rubric .reason-row input{width:100%;height:36px}
.ev-tag{margin-left:8px;font-size:11.5px;font-weight:700;color:var(--accent-ink)}
.bands summary{cursor:pointer;color:var(--ink-3);margin-top:4px;width:max-content}
.bands ul{list-style:none;margin:6px 0 0;padding:0;font-size:12.5px;color:var(--ink-2)}
.bands li{padding:2px 0}
.bands b{display:inline-block;min-width:44px}

/* Jira */
.ep-prog{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;margin:6px 0 10px}
.tasks tr.late td:first-child a{color:var(--marker-ink)}
.subs summary{cursor:pointer;margin-top:4px}

/* reports: on paper only the report itself (A4, light) */
.rep-strip{margin:0 0 20px}
.rep-t td{white-space:nowrap}
.rep-t td:first-child{white-space:normal;min-width:200px}
@media print{
  .rail,.no-print,.u070{display:none!important}
  .shell{display:block}
  main{padding:0;max-width:none}
  .card{box-shadow:none;padding:12px 0;break-inside:avoid-page}
  .rep-t{font-size:11px}
  @page{size:A4;margin:14mm}
}

/* scope colours (the validated categorical order: purple, orange, blue, green) */
.sc-bg-new{background:var(--team-gd)} .sc-bg-localization{background:var(--team-art)} .sc-bg-reskin{background:var(--team-anim)}
.sc-bg-port-cc{background:var(--team-fe)} .sc-bg-retest,.sc-bg-other,.sc-bg-—{background:var(--team-other)}
.legend .sw[class*="sc-bg-"]{border-radius:4px}
.hb-t .sbar{height:12px;min-width:0}
.cols.stacked .col{justify-content:flex-end}
.cols.stacked .stack{display:flex;flex-direction:column-reverse;gap:2px;width:70%;max-width:34px;min-height:2px}
.cols.stacked .stack i{display:block;width:100%;border-radius:0}
.cols.stacked .stack i:last-child{border-radius:4px 4px 0 0}
.miss-d{display:block;font-size:11.5px;font-weight:700;color:var(--marker-ink)}
th.sorter{cursor:pointer;user-select:none;white-space:nowrap}
th.sorter:hover{color:var(--ink)}
th.sorter[aria-sort="ascending"]::after{content:" ↑"} th.sorter[aria-sort="descending"]::after{content:" ↓"}
[data-tab-panel][hidden]{display:none}
.sib .game{margin-right:10px}

/* one line per cell in the people table: badges, not wrapped text */
#stable td{white-space:nowrap}
#stable td .one{display:block;max-width:190px;overflow:hidden;text-overflow:ellipsis}
.mini{display:inline-flex;align-items:center;height:18px;margin-left:6px;padding:0 6px;border-radius:5px;background:var(--surface-2);color:var(--ink-3);font:600 11px/1 var(--font)}
