/* OUTPACE admin, "Control Room". Precision system: Schibsted Grotesk 500/800, the split mark,
   1.5px square-cap icons, hairlines instead of cards. Colour carries meaning only:
   green = live / OK / granted, red = banned / removed / destructive, gold = record. */

@font-face{font-family:"Schibsted Grotesk";font-style:normal;font-weight:500 800;font-display:swap;
  src:url(schibsted-grotesk-latin.woff2) format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Schibsted Grotesk";font-style:normal;font-weight:500 800;font-display:swap;
  src:url(schibsted-grotesk-latin-ext.woff2) format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

/* ---------- tokens ---------- */
:root{
  --bg:#eef0f1;--surface:#fff;--surface2:#f6f7f8;--ink:#0a0c0e;--dim:#5d656c;--faint:#848c93;
  --line:#e1e4e7;--line2:#c9cfd4;--sel:#0a0c0e;--on-sel:#fff;
  --ahead:#11895a;--ahead-bg:#e2f4ea;--behind:#cf3328;--behind-bg:#fce7e5;--best:#9a6a00;--best-bg:#fdf1d2;
  --r-supporter:#7b5cd6;--r-moderator:#1a8f9a;--r-dev:#4a63d6;--r-admin:#c2448f;--r-owner:#2b3036;
  --focus:#0a0c0e;color-scheme:light;
  --s1:4px;--s2:8px;--s3:12px;--s4:16px;--s5:24px;--s6:32px;--s7:48px;--s8:64px;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --bg:#0a0c0e;--surface:#111417;--surface2:#161a1e;--ink:#f5f7f8;--dim:#8f979e;--faint:#646d74;
  --line:#22272c;--line2:#323a40;--sel:#f5f7f8;--on-sel:#0a0c0e;
  --ahead:#36d987;--ahead-bg:rgba(54,217,135,.12);--behind:#ff5247;--behind-bg:rgba(255,82,71,.12);--best:#ffc847;--best-bg:rgba(255,200,71,.12);
  --r-supporter:#b59cff;--r-moderator:#5fd4d4;--r-dev:#7c9bff;--r-admin:#f08bc8;--r-owner:#f2f4f5;
  --focus:#f5f7f8;color-scheme:dark}}
:root[data-theme="dark"]{
  --bg:#0a0c0e;--surface:#111417;--surface2:#161a1e;--ink:#f5f7f8;--dim:#8f979e;--faint:#646d74;
  --line:#22272c;--line2:#323a40;--sel:#f5f7f8;--on-sel:#0a0c0e;
  --ahead:#36d987;--ahead-bg:rgba(54,217,135,.12);--behind:#ff5247;--behind-bg:rgba(255,82,71,.12);--best:#ffc847;--best-bg:rgba(255,200,71,.12);
  --r-supporter:#b59cff;--r-moderator:#5fd4d4;--r-dev:#7c9bff;--r-admin:#f08bc8;--r-owner:#f2f4f5;
  --focus:#f5f7f8;color-scheme:dark}

/* ---------- base ---------- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;background:var(--bg)}
body{background:var(--bg);color:var(--ink);font:500 14px/1.45 "Schibsted Grotesk",system-ui,sans-serif;min-height:100vh;overflow-x:hidden}
a{color:inherit;text-underline-offset:3px;text-decoration-color:var(--line2)}
a:hover{text-decoration-color:currentColor}
b,strong,.b{font-weight:800}
:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
::selection{background:var(--sel);color:var(--on-sel)}
.dim{color:var(--dim)}.faint{color:var(--faint)}
.ahead{color:var(--ahead)}.behind{color:var(--behind)}.best{color:var(--best)}
.r{text-align:right}.nowrap{white-space:nowrap}
/* tabular figures only where numbers line up: the font also sets punctuation tabular */
.tnum,td.r,.kpi .v{font-variant-numeric:tabular-nums}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- primitives ---------- */
svg.ic{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:square;stroke-linejoin:miter;flex:none}
svg.ic.lg{width:24px;height:24px}
svg.mark{width:26px;height:16px;color:var(--ink);flex:none}
svg.mark.lg{width:52px;height:32px}
.tag{display:inline-flex;align-items:center;gap:6px;height:20px;padding:0 6px;font-size:12px;border:1px solid var(--line2);color:var(--dim);white-space:nowrap;vertical-align:middle}
.tag.inv{background:var(--sel);color:var(--on-sel);border-color:var(--sel)}
.tag.g{background:var(--ahead-bg);color:var(--ahead);border-color:transparent}
.tag.r{background:var(--behind-bg);color:var(--behind);border-color:transparent}
.tag.y{background:var(--best-bg);color:var(--best);border-color:transparent}
.tags{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.sq{display:inline-block;width:8px;height:8px;flex:none;background:var(--faint)}
.sq.g{background:var(--ahead)}.sq.r{background:var(--behind)}.sq.y{background:var(--best)}
.sq.role-supporter{background:var(--r-supporter)}.sq.role-moderator{background:var(--r-moderator)}
.sq.role-dev{background:var(--r-dev)}.sq.role-admin{background:var(--r-admin)}.sq.role-owner{background:var(--r-owner)}
.av{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;background:var(--surface2);border:1px solid var(--line2);font-size:10px;font-weight:800;color:var(--dim);flex:none;letter-spacing:.02em}
.av.lg{width:56px;height:56px;font-size:18px}
img.av{object-fit:cover;padding:0;display:inline-block}
.cell{display:flex;align-items:center;gap:8px;min-width:0}
.cell a{text-decoration:none}.cell a:hover{text-decoration:underline}
svg.bar{width:96px;height:4px;flex:none;display:block}
svg.bar .bg{fill:var(--line)}svg.bar .fg{fill:var(--ink)}

/* buttons and fields */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:32px;padding:0 12px;font:800 13px/1 "Schibsted Grotesk",system-ui,sans-serif;border:1px solid var(--line2);background:var(--surface);color:var(--ink);cursor:pointer;white-space:nowrap;text-decoration:none}
.btn:hover{border-color:var(--ink)}
.btn.pri{background:var(--sel);color:var(--on-sel);border-color:var(--sel)}
.btn.pri:hover{opacity:.88}
.btn.danger{color:var(--behind);border-color:var(--behind);background:transparent}
.btn.danger:hover{background:var(--behind);color:var(--on-sel)}
.btn.sm{height:26px;padding:0 8px;font-size:12px}
.btn.ghost{border-color:transparent;background:none;color:var(--dim)}
.btn.ghost:hover{color:var(--behind)}
.btn.icon{width:32px;padding:0}
.btn.wide{width:100%}
.btn[aria-disabled="true"]{color:var(--faint);border-color:var(--line);pointer-events:none}
input,select,textarea{font:500 14px "Schibsted Grotesk",system-ui,sans-serif;color:var(--ink);background:var(--surface);border:1px solid var(--line2);border-radius:0;height:32px;padding:0 10px;min-width:0;width:100%}
select{appearance:none;padding-right:30px;background-image:linear-gradient(45deg,transparent 50%,var(--dim) 50%),linear-gradient(135deg,var(--dim) 50%,transparent 50%);background-position:calc(100% - 15px) 14px,calc(100% - 11px) 14px;background-size:4px 4px;background-repeat:no-repeat}
input:hover,select:hover{border-color:var(--dim)}
input:focus-visible,select:focus-visible{outline:2px solid var(--focus);outline-offset:-1px}
input::placeholder{color:var(--faint)}
input[type=number]{font-variant-numeric:tabular-nums}
input[type=checkbox]{width:16px;height:16px;accent-color:var(--behind);flex:none}
.field{display:flex;align-items:center;gap:8px;height:32px;padding:0 10px;border:1px solid var(--line2);background:var(--surface);color:var(--dim);min-width:0}
.field:focus-within{outline:2px solid var(--focus);outline-offset:-1px}
.field input{border:0;height:30px;padding:0;background:none;outline:none}
.lbl{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--dim);min-width:0}
.check{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--dim);cursor:pointer}

/* ---------- shell ---------- */
.app{display:grid;grid-template-columns:232px minmax(0,1fr);min-height:100vh}
.side{background:var(--surface);border-right:1px solid var(--line);display:flex;flex-direction:column;padding:16px 12px;position:sticky;top:0;height:100vh}
.brand{display:flex;align-items:center;gap:10px;padding:4px 8px 20px;font-weight:800;letter-spacing:.12em;font-size:14px;text-decoration:none}
.brand small{letter-spacing:0;font-weight:500;color:var(--faint);font-size:12px}
.nav{display:flex;flex-direction:column}
.nav a{display:flex;align-items:center;gap:10px;height:34px;padding:0 10px;text-decoration:none;color:var(--dim);position:relative}
.nav a:hover{color:var(--ink)}
.nav a.on{color:var(--ink);font-weight:800;background:var(--surface2)}
.nav a.on::before{content:"";position:absolute;left:-12px;top:6px;bottom:6px;width:2px;background:var(--ink)}
.nav a .n{margin-left:auto;font-size:12px;color:var(--faint);font-weight:500}
.me{margin-top:auto;border-top:1px solid var(--line);padding:12px 0 0 8px;display:flex;align-items:center;gap:10px;font-size:13px}
.me .who{min-width:0;flex:1;overflow:hidden}
.me .who span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:800}
.me small{display:block;color:var(--faint);font-size:12px}
.main{min-width:0;display:flex;flex-direction:column}
.top{height:52px;border-bottom:1px solid var(--line);background:var(--surface);display:flex;align-items:center;gap:12px;padding:0 24px;min-width:0;position:sticky;top:0;z-index:2}
.crumb{display:flex;gap:8px;align-items:center;color:var(--dim);white-space:nowrap;overflow:hidden;min-width:0}
.crumb a{text-decoration:none}.crumb a:hover{color:var(--ink)}
.crumb b{color:var(--ink);overflow:hidden;text-overflow:ellipsis}
.top form{margin-left:auto;width:320px;min-width:0}
.env{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--dim);white-space:nowrap}
.body{padding:24px;display:flex;flex-direction:column;gap:24px;min-width:0;max-width:1440px;width:100%}

/* page head */
.ph{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap}
.ph h1{font-size:28px;font-weight:800;letter-spacing:-.01em;line-height:1.1}
.ph p{color:var(--dim);font-size:13px;margin-top:4px;max-width:72ch}

/* banners */
.banner{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;font-size:13px;border:1px solid var(--line2);background:var(--surface)}
.banner .ic{margin-top:1px}
.banner.bad{background:var(--behind-bg);color:var(--behind);border-color:transparent}
.banner.bad b{color:var(--behind)}

/* ---------- sections and tables ---------- */
.sec{border:1px solid var(--line);background:var(--surface);min-width:0}
.sh{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:0 12px;border-bottom:1px solid var(--line)}
.sh.foot{border-bottom:0;border-top:1px solid var(--line)}
.sh h2,.sh b{font-size:14px;font-weight:800;display:flex;align-items:center;gap:8px}
.sh a{font-size:12px;color:var(--dim);text-decoration:none}.sh a:hover{color:var(--ink)}
.sh .note{font-size:12px;color:var(--faint)}
.tw{overflow-x:auto;-webkit-overflow-scrolling:touch}
table.t{width:100%;border-collapse:collapse;min-width:640px}
table.t th{font-size:12px;color:var(--dim);font-weight:500;text-align:left;padding:8px 12px;border-bottom:1px solid var(--line2);white-space:nowrap}
table.t td{padding:0 12px;height:36px;border-bottom:1px solid var(--line);white-space:nowrap}
table.t tr:last-child td{border-bottom:0}
table.t tbody tr:hover td{background:var(--surface2)}
table.t .r{text-align:right}
table.t td.wrap{white-space:normal;padding-top:8px;padding-bottom:8px;min-width:240px}
table.t td a{text-decoration:none}table.t td a:hover{text-decoration:underline}
table.t tr.day td{height:30px;font-size:12px;color:var(--faint);background:var(--surface2)}
table.t form{display:inline}
table.t form.stackrm{display:inline-flex;align-items:center;gap:4px}
table.t form.stackrm .qty{width:64px;height:26px;padding:0 6px;font-size:12px}
.empty{padding:40px 16px;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;color:var(--dim);font-size:13px}
.empty .ic{color:var(--faint);width:24px;height:24px}
.empty b{color:var(--ink);font-size:14px}
.empty p{max-width:44ch}

/* ---------- overview ---------- */
.kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));border:1px solid var(--line);background:var(--surface)}
.kpi{padding:14px 16px;border-right:1px solid var(--line);min-width:0}
.kpi:last-child{border-right:0}
.kpi .l{font-size:12px;color:var(--dim);display:flex;align-items:center;gap:6px;white-space:nowrap}
.kpi .v{font-size:28px;font-weight:800;letter-spacing:-.01em;margin-top:4px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kpi .s{font-size:12px;color:var(--faint);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cols{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:24px;align-items:start}
.feed>div{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:start;padding:9px 12px;border-bottom:1px solid var(--line);font-size:13px}
.feed>div:last-child{border-bottom:0}
.feed .av{margin-top:-2px}
.feed .txt a{text-decoration:none}.feed .txt a:hover{text-decoration:underline}
.feed small{display:block;color:var(--faint);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.feed .when{white-space:nowrap;color:var(--faint);font-size:12px}

/* ---------- players / player ---------- */
.searchbar{display:flex;gap:8px;padding:12px;border-bottom:1px solid var(--line);flex-wrap:wrap}
.searchbar .field{flex:1;min-width:200px}
.phd{display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.phd .id{min-width:0;flex:1}
.phd h1{font-size:28px;font-weight:800;line-height:1.1;letter-spacing:-.01em;overflow-wrap:anywhere}
.meta{display:flex;gap:6px 16px;flex-wrap:wrap;color:var(--dim);font-size:13px;margin-top:6px}
.meta a{display:inline-flex;align-items:center;gap:4px;text-decoration:none}.meta a:hover{color:var(--ink)}
.pcols{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px;align-items:start}
.tabs{display:flex;gap:20px;border-bottom:1px solid var(--line);padding:0 12px;overflow-x:auto}
.tabs a{height:42px;display:flex;align-items:center;gap:6px;color:var(--dim);white-space:nowrap;text-decoration:none}
.tabs a:hover{color:var(--ink)}
.tabs a.on{color:var(--ink);font-weight:800;box-shadow:inset 0 -2px 0 var(--ink)}
.tabs em{font-style:normal;font-size:12px;color:var(--faint);font-weight:500}
.act{border:1px solid var(--line);background:var(--surface);position:sticky;top:76px}
.act section{padding:14px;border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:8px}
.act section:last-child{border-bottom:0}
.act h2{font-size:13px;font-weight:800;display:flex;align-items:center;gap:8px}
.act .row{display:flex;gap:8px}
.act .row .qty{width:72px;flex:none}
.act p{font-size:12px;color:var(--faint)}
.act form{display:flex;flex-direction:column;gap:8px}
.act .roles{display:flex;flex-direction:column;gap:6px}
.act .roles form{flex-direction:row;align-items:center;justify-content:space-between;gap:8px;min-height:32px}
.act .roles .tag{height:22px}
.presets{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border:1px solid var(--line2)}
.presets label{position:relative;display:block;cursor:pointer}
.presets input{position:absolute;opacity:0;width:1px;height:1px}
.presets span{display:block;text-align:center;height:28px;line-height:28px;font-size:12px;color:var(--dim);border-right:1px solid var(--line2);white-space:nowrap}
.presets label:last-child span{border-right:0}
.presets label:hover span{color:var(--ink)}
.presets input:checked+span{background:var(--sel);color:var(--on-sel);font-weight:800}
.presets input:focus-visible+span{outline:2px solid var(--focus);outline-offset:-2px}
/* the ban button names the chosen preset; :has() picks the label, the generic one is the fallback */
.banlbl span{display:none}
.banlbl .b-any{display:inline}
.ban:has(input[name=hours]:checked) .banlbl .b-any{display:none}
.ban:has(input[value="1"]:checked) .banlbl .b-1,.ban:has(input[value="24"]:checked) .banlbl .b-24,
.ban:has(input[value="168"]:checked) .banlbl .b-168,.ban:has(input[value="720"]:checked) .banlbl .b-720,
.ban:has(input[value="0"]:checked) .banlbl .b-0{display:inline}
.danger-zone{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px 12px;border-top:1px solid var(--line)}

/* ---------- audit ---------- */
.filters{display:flex;gap:8px;flex-wrap:wrap;padding:12px;border-bottom:1px solid var(--line);align-items:flex-end}
.filters .lbl{width:180px}
.filters .lbl.grow{flex:1;min-width:200px;width:auto}
.filters .acts{display:flex;gap:8px}
.pager{display:flex;gap:6px}

/* ---------- seasons ---------- */
.formrow{display:flex;gap:8px;flex-wrap:wrap;align-items:flex-end;padding:12px}
.formrow .lbl{width:200px}
.formrow .lbl.grow{flex:1;min-width:220px;width:auto}
.formrow .lbl.num{width:88px}
.season-h{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0}
.season-h b{font-size:16px;overflow-wrap:anywhere}
.subh{font-size:12px;color:var(--dim);padding:12px 12px 0}

/* ---------- sign-in and messages ---------- */
.gate{min-height:100vh;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.gate .brandside{background:var(--surface);border-right:1px solid var(--line);padding:48px 64px;display:flex;flex-direction:column;justify-content:space-between;gap:48px}
.gate .brandside .wm{display:flex;align-items:center;gap:12px;font-weight:800;letter-spacing:.12em}
.gate .brandside h1{font-size:44px;line-height:1.05;font-weight:800;letter-spacing:-.02em;max-width:12ch}
.gate .brandside p{color:var(--dim);margin-top:12px;max-width:42ch}
.gate .brandside ul{list-style:none;display:flex;flex-direction:column;border-top:1px solid var(--line)}
.gate .brandside li{display:flex;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line);font-size:13px;color:var(--dim)}
.gate .formside{display:flex;align-items:center;justify-content:center;padding:48px 24px}
.gate .box{width:100%;max-width:360px;display:flex;flex-direction:column;gap:16px}
.gate .box h2{font-size:28px;font-weight:800;line-height:1.1;letter-spacing:-.01em}
.gate .box p{color:var(--dim);font-size:13px}
.gate .btn{height:44px;font-size:14px}
.gate .fine{font-size:12px;color:var(--faint);border-top:1px solid var(--line);padding-top:12px}
.gate .icon-box{width:44px;height:44px;border:1px solid var(--line2);display:flex;align-items:center;justify-content:center;color:var(--dim)}
.gate .icon-box.r{border-color:var(--behind);color:var(--behind)}
.gate .icon-box.g{border-color:var(--ahead);color:var(--ahead)}

/* ---------- responsive ---------- */
@media (max-width:1100px){
  .kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
  .kpi:nth-child(3){border-right:0}.kpi:nth-child(-n+3){border-bottom:1px solid var(--line)}
  .cols,.pcols{grid-template-columns:minmax(0,1fr)}
  .act{position:static}
}
@media (max-width:860px){
  .gate{grid-template-columns:minmax(0,1fr)}
  .gate .brandside{border-right:0;border-bottom:1px solid var(--line);padding:24px 16px;gap:24px}
  .gate .brandside h1{font-size:28px}
  .gate .brandside ul{display:none}
  .gate .formside{padding:32px 16px;align-items:flex-start}
}
@media (max-width:760px){
  .app{grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr}
  .side{flex-direction:row;align-items:center;padding:8px 12px;border-right:0;border-bottom:1px solid var(--line);overflow-x:auto;gap:4px;position:static;height:auto}
  .brand{padding:0 8px 0 0}.brand small,.nav a .n,.me .who,.me .av{display:none}
  .nav{flex-direction:row}.nav a{white-space:nowrap}.nav a.on::before{display:none}
  .me{margin:0 0 0 auto;border:0;padding:0}
  .top{padding:0 16px;position:static}.top form{width:auto;flex:1}.env{display:none}
  .body{padding:16px;gap:16px}
  .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .kpi{border-right:1px solid var(--line)!important;border-bottom:1px solid var(--line)}
  .kpi:nth-child(2n){border-right:0!important}
  .kpi .v{font-size:24px}
  .ph h1,.phd h1{font-size:24px}
  .filters .lbl,.formrow .lbl{width:100%}
  .filters .lbl.half{width:calc(50% - 4px)}
}
@media (prefers-reduced-motion:no-preference){.btn,.nav a,.tabs a{transition:color .12s,background-color .12s,border-color .12s}}
table.t input.pct{width:64px;height:26px;padding:0 6px;font-size:12px;text-align:right}
.formrow .check{align-self:center;min-height:32px}

/* ---------- bug reports ---------- */
.nav a .n.hot{background:var(--sel);color:var(--on-sel);font-weight:800;height:18px;line-height:18px;padding:0 6px}
.banner.flat{border-width:0 0 1px;border-color:var(--line)}
table.t.bugs td.wrap{min-width:280px}
table.t.bugs .ttl{font-weight:800;display:block;overflow-wrap:anywhere}
table.t.bugs .sub{display:flex;gap:4px 12px;flex-wrap:wrap;font-size:12px;color:var(--faint);margin-top:2px}
table.t.bugs .sub a{color:var(--dim)}
.bughd{display:flex;gap:16px;align-items:flex-end;justify-content:space-between;flex-wrap:wrap}
.bughd .id{min-width:0;flex:1}
.bughd .kick{display:flex;gap:12px;font-size:12px;color:var(--dim)}
.bughd .kick span:first-child{font-weight:800;color:var(--ink)}
.bughd h1{font-size:28px;font-weight:800;line-height:1.15;letter-spacing:-.01em;overflow-wrap:anywhere;margin-top:4px;max-width:60ch}
.stack{display:flex;flex-direction:column;gap:24px;min-width:0}
.prose{padding:12px;white-space:pre-wrap;overflow-wrap:anywhere;max-width:80ch}
.act .prose.small{padding:0;font-size:13px;color:var(--ink)}
a.shot{display:block;padding:12px;background:var(--surface2)}
a.shot img{display:block;width:100%;height:auto;border:1px solid var(--line2)}
dl.kv{display:grid;grid-template-columns:minmax(0,1fr)}
dl.kv>div{display:grid;grid-template-columns:160px minmax(0,1fr);gap:12px;align-items:baseline;padding:7px 12px;border-bottom:1px solid var(--line)}
dl.kv>div:last-child{border-bottom:0}
dl.kv dt{font-size:12px;color:var(--dim)}
dl.kv dd{overflow-wrap:anywhere}
pre.code{margin:0;padding:12px;max-height:420px;overflow:auto;font:500 12px/1.55 ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;background:var(--surface2);white-space:pre;tab-size:4}
pre.code:focus-visible{outline-offset:-2px}
textarea{height:auto;min-height:112px;padding:8px 10px;line-height:1.45;resize:vertical}
textarea:hover{border-color:var(--dim)}
textarea:focus-visible{outline:2px solid var(--focus);outline-offset:-1px}
.act .who{display:flex;align-items:center;gap:10px;text-decoration:none;min-width:0}
.act .who span{min-width:0}
.act .who b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.act .who small{display:block;font-size:12px;color:var(--faint)}
.act a.who:hover b{text-decoration:underline}
.movebtns{display:flex;flex-wrap:wrap;gap:6px}
.act form.moves{gap:8px}
.act form.moves p{color:var(--dim);font-size:13px}
ul.mini{list-style:none;display:flex;flex-direction:column}
ul.mini li{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 0;border-bottom:1px solid var(--line);font-size:13px;min-width:0}
ul.mini li:last-child{border-bottom:0}
ul.mini a{text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
ul.mini a:hover{text-decoration:underline}
.feed.tight>div{padding:8px 0}
.feed.tight small{white-space:normal}
@media (max-width:760px){dl.kv>div{grid-template-columns:minmax(0,1fr);gap:2px}}

/* ---------- phones and small tablets ---------- */
.navbtn{display:none}
@media (max-width:760px){
  /* the sidebar becomes a top bar; the sections open as a drawer under it (checkbox, no script) */
  .side{flex-wrap:wrap;overflow:visible;position:sticky;top:0;z-index:5;padding:6px 12px;gap:0 8px}
  .brand{min-height:44px}
  .navbtn{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 12px;margin-left:auto;border:1px solid var(--line2);cursor:pointer;font-weight:800;font-size:13px;position:relative}
  .navbtn .dot{width:8px;height:8px;background:var(--ink)}
  .navt:focus-visible+.navbtn{outline:2px solid var(--focus);outline-offset:2px}
  .navt:checked+.navbtn{background:var(--sel);color:var(--on-sel);border-color:var(--sel)}
  .navt:checked+.navbtn .dot{background:var(--on-sel)}
  .nav{display:none;order:10;flex-basis:100%;flex-direction:column;border-top:1px solid var(--line);margin:6px -12px 0;padding:6px 0}
  .navt:checked~.nav{display:flex}
  .nav a{height:48px;padding:0 16px;white-space:nowrap}
  .nav a .n{display:inline}
  .nav a.on::before{display:block;left:0;top:10px;bottom:10px}
  .me{margin:0}
  .me .btn.icon{width:44px;height:44px}
  .top{height:auto;flex-wrap:wrap;padding:8px 16px;gap:8px;position:static}
  .crumb{flex:1 1 auto}
  .top form{order:3;flex:1 1 100%;width:100%}
  .body{padding:12px;gap:12px}
  /* 44 px touch targets, full-width fields */
  input,select,.field{height:44px;font-size:16px}
  .field input{height:42px}
  textarea{font-size:16px}
  .btn,.btn.sm{height:44px;padding:0 14px;font-size:13px}
  .btn.icon{width:44px}
  .tabs a{height:48px}
  .presets span{height:44px;line-height:44px}
  .check{min-height:44px}
  input[type=checkbox]{width:22px;height:22px}
  .filters .lbl.half{width:calc(50% - 4px);flex:0 1 calc(50% - 4px)}
  .filters .lbl:not(.half),.formrow .lbl,.formrow .lbl.num,.formrow .lbl.grow{width:100%;min-width:0;flex:1 1 100%}
  .filters .acts,.formrow>.btn{flex:1 1 100%}
  .filters .acts .btn{flex:1}
  .searchbar .btn{flex:1}
  .act .row{flex-wrap:wrap}
  .act .row .qty{flex:1}
  table.t form.stackrm .qty,table.t input.pct{height:40px;width:72px}
  .danger-zone .btn{width:100%}
  /* tables scroll inside their box; the first column stays put */
  table.t th:first-child,table.t td:first-child{position:sticky;left:0;z-index:1;background:var(--surface);box-shadow:1px 0 0 var(--line)}
  table.t tbody tr:hover td:first-child{background:var(--surface2)}
  table.t tr.day td:first-child{background:var(--surface2)}
  table.t td{height:44px}
  .sh{flex-wrap:wrap;padding:8px 12px}
  .ph h1,.phd h1,.bughd h1{font-size:22px}
  .phd{gap:12px}
  .meta{gap:4px 12px;font-size:12px}
  .kpi{padding:12px}
  .feed>div{grid-template-columns:auto minmax(0,1fr);row-gap:2px}
  .feed .when{grid-column:2}
  a.shot{padding:8px}
  pre.code{max-height:320px}
  .movebtns .btn{flex:1 1 calc(50% - 6px)}
  ul.mini li{min-height:44px}
}
@media (max-width:420px){
  .brand small{display:none}
  .kpi .v{font-size:22px}
  .env{display:none}
}
@media (max-width:900px){.env{display:none}}
