:root {
  --bg: #0e0e10;
  --bg2: #14141a;
  --surface: #1a1a1f;
  --surface2: #23232a;
  --line: rgba(235, 230, 220, .08);
  --line2: rgba(235, 230, 220, .16);
  --fg: #ebe6dc;
  --muted: #9a9488;
  --dim: #625d55;
  --gold: #d4af37;
  --gold2: #f0c75e;
  --silver: #c0c5cb;
  --silver2: #e0e3e7;
  --bronze: #cd7f32;
  --crimson: #a8372e;
  --crimson2: #d0584d;
  --up: #6fbf73;
  --down: #d0584d;
  --flat: #c9b458;
  --f-disp: 'Archivo', 'Arial Narrow', sans-serif;
  --f-num: 'Martian Mono', ui-monospace, Menlo, monospace;
  --f-name: 'Barlow Semi Condensed', 'Arial Narrow', sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body {
  font-family: var(--f-name);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold2); }
:focus-visible { outline: 2px solid var(--gold2); outline-offset: 2px; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }

.wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  font: 500 11px/1.2 var(--f-num);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.strip > :first-child { color: var(--gold); }
.sync { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); }
.sync-meter { display: inline-flex; gap: 2px; }
.sync-meter i { display: block; width: 3px; height: 11px; background: var(--surface2); }
.sync-meter i.on { background: var(--gold); }
.sync.is-error { color: var(--crimson2); }
.sync.is-error .sync-meter i { background: var(--crimson); }
.strip-right { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.strip-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--line2);
  color: var(--fg);
}
.strip-link:hover { border-color: var(--gold); color: var(--gold2); }
.strip-link.admin { color: var(--crimson2); border-color: rgba(208, 88, 77, .45); }
.strip-link img { width: 18px; height: 18px; display: block; }


.hd { padding-block: 44px 32px; display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.hd-text { min-width: 0; flex: 1 1 420px; }
.hd h1 {
  font-family: var(--f-disp);
  font-variation-settings: 'wdth' 62;
  font-weight: 850;
  text-transform: uppercase;
  font-size: clamp(52px, 9vw, 124px);
  line-height: .86;
  letter-spacing: -.01em;
  margin: 0;
  overflow-wrap: anywhere;
}
.hd h1 em { font-style: normal; color: var(--gold); }
.hd p { margin: 14px 0 0; max-width: 56ch; color: var(--muted); font-size: 17px; }
.hd .kicker {
  font: 600 11px/1 var(--f-num);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.hd.crimson .kicker, .hd.crimson h1 em { color: var(--crimson2); }

.ootw { flex: 0 1 500px; min-width: 0; background: var(--bg2); border: 1px solid var(--line2); border-top: 2px solid var(--gold); padding: 16px; }
.ootw .lab { margin-bottom: 12px; }
.ootw-main { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; }
.ootw-av { width: 64px; height: 78px; background: var(--surface2) center/cover; border: 1px solid var(--line2); position: relative; }
.ootw-av::after { content: ""; position: absolute; left: 3px; right: 3px; bottom: 3px; height: 3px; background: var(--fac, var(--gold)); }
.ootw-name { font: 850 34px/.95 var(--f-disp); font-variation-settings: 'wdth' 70; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ootw-team { margin-top: 6px; font: 500 10.5px var(--f-num); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ootw-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); margin-top: 14px; }
.ootw-stats div { background: var(--bg2); padding: 8px 0; }
.ootw-stats span { display: block; font: 500 9.5px var(--f-num); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.ootw-stats b { font: 700 19px var(--f-num); font-variant-numeric: tabular-nums; }
.ootw-stats div:first-child b { color: var(--gold2); }

.figs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  background: var(--line2);
  border: 1px solid var(--line2);
  border-top: 2px solid var(--fg);
}
.figs > div { background: var(--bg2); padding: 14px 16px 16px; min-width: 0; }
.figs span {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 600 10.5px/1 var(--f-num);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.figs b {
  display: block;
  margin-top: 10px;
  font: 700 clamp(26px, 3.4vw, 40px)/1 var(--f-num);
  font-variation-settings: 'wdth' 85;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.figs b small { font-size: .4em; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-left: 4px; }
.figs em { display: block; margin-top: 8px; font: 500 10.5px/1.3 var(--f-num); font-style: normal; color: var(--dim); }
.figs .gold b { color: var(--gold2); }

.grid {
  display: grid;
  gap: 1px;
  background: var(--line2);
  border: 1px solid var(--line2);
  border-top: 0;
}
.cell { background: var(--bg); padding: 16px; min-width: 0; position: relative; }

.dash-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    "serv comb tcf"
    "pop  act  feed"
    "fac  feud feed"
    "arm  feud feed"
    "anch anch anch"
    "log  log  log";
}
.a-serv { grid-area: serv; } .a-comb { grid-area: comb; } .a-pop { grid-area: pop; }
.a-act { grid-area: act; } .a-tcf { grid-area: tcf; } .a-feed { grid-area: feed; }

.tcf { display: flex; flex-direction: column; gap: 2px; }
.tcf > div { display: grid; grid-template-columns: 4px 36px minmax(0, 1fr) auto; gap: 0 10px; align-items: center; background: var(--bg2); padding: 6px 10px 6px 0; }
.tcf .chip { height: 100%; }
.tcf .av { width: 36px; height: 36px; background: var(--surface2) center/cover; }
.tcf .fx { font: 500 10px/1.2 var(--f-num); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcf .who { font: 600 16px/1.2 var(--f-name); text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcf .ks { text-align: right; font: 600 15px/1.1 var(--f-num); font-variant-numeric: tabular-nums; }
.tcf .ks small { display: block; font: 500 10px var(--f-num); }
.a-fac { grid-area: fac; } .a-feud { grid-area: feud; } .a-arm { grid-area: arm; }
.a-anch { grid-area: anch; } .a-log { grid-area: log; }

.lab {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font: 600 10.5px/1.2 var(--f-num);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.lab em { font-style: normal; color: var(--gold); font-weight: 500; }
.lab .private { color: var(--crimson2); }
.lab button.reset {
  background: none;
  border: 1px solid var(--line2);
  color: var(--fg);
  font: 600 10px/1 var(--f-num);
  letter-spacing: .1em;
  padding: 5px 7px;
  cursor: pointer;
}
.lab button.reset:hover { border-color: var(--gold); }
.badge-new { font: 600 9px/1 var(--f-num); letter-spacing: .1em; color: var(--bg); background: var(--gold); padding: 3px 5px; }

.seg { display: inline-flex; border: 1px solid var(--line2); }
.seg button {
  text-transform: uppercase;
  font: 600 10px/1 var(--f-num);
  letter-spacing: .1em;
  background: none;
  color: var(--muted);
  border: 0;
  border-right: 1px solid var(--line2);
  padding: 7px 9px;
  cursor: pointer;
}
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--fg); color: var(--bg); }

.rows { display: flex; flex-direction: column; gap: 2px; }
.row {
  display: grid;
  grid-template-columns: 34px 4px minmax(0, 1fr) 74px 66px 40px;
  align-items: center;
  gap: 0 10px;
  height: 34px;
  background: var(--bg2);
  padding-right: 10px;
}
.row.kill { grid-template-columns: 34px 4px minmax(0, 1fr) 62px 50px 36px; }
.row.head { background: none; height: 20px; font: 500 9.5px var(--f-num); letter-spacing: .12em; color: var(--dim); }
.row.head span:nth-child(n+4) { text-align: right; }
.pos { height: 100%; display: grid; place-items: center; font: 700 13px var(--f-num); background: var(--surface2); }
.row.p1 .pos { background: var(--gold); color: #111; }
.row.p2 .pos { background: var(--silver); color: #111; }
.row.p3 .pos { background: var(--bronze); color: #111; }
.chip { height: 60%; width: 4px; background: var(--surface2); }
.nm {
  font: 600 16px/1 var(--f-name);
  text-transform: uppercase;
  letter-spacing: .03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.val, .gap, .mv, .k24 { font: 500 12px var(--f-num); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.val { font-weight: 600; }
.gap { color: var(--muted); }
.up { color: var(--up); }
.dn { color: var(--down); }
.eq { color: var(--dim); }
.flat { color: var(--flat); }

.redact { display: inline-block; height: 12px; width: 110px; max-width: 100%; background: var(--fg); vertical-align: middle; }

.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font: 500 9px var(--f-num); fill: var(--dim); }
.kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); margin-top: 16px; }
.kv div { background: var(--bg); padding: 8px 0; }
.kv span { display: block; font: 500 9.5px var(--f-num); letter-spacing: .12em; color: var(--dim); text-transform: uppercase; }
.kv b { font: 600 17px var(--f-num); font-variant-numeric: tabular-nums; }
.waiting { font: 500 12px/1.5 var(--f-num); color: var(--dim); padding: 18px 0; }

.hm { display: grid; grid-template-columns: 28px repeat(24, minmax(0, 1fr)); gap: 2px; }
.hm span { font: 500 9px var(--f-num); color: var(--dim); display: flex; align-items: center; }
.hm .hx { justify-content: center; }
.hm i { aspect-ratio: 1; max-width: 100%; border-radius: 2px; display: block; }
.scale { display: flex; align-items: center; gap: 6px; margin-top: 10px; font: 500 9.5px var(--f-num); color: var(--dim); flex-wrap: wrap; }
.scale i { width: 14px; height: 8px; border-radius: 2px; display: block; }

.a-feed { min-height: 320px; }
.a-feed .feed { position: absolute; left: 16px; right: 16px; top: 46px; bottom: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.feed li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font: 600 14px/1.3 var(--f-name);
  text-transform: uppercase;
  letter-spacing: .02em;
}
.feed li:last-child { border-bottom: 0; }
.feed time { font: 500 10px/1.8 var(--f-num); color: var(--dim); text-transform: none; }
.feed .w { font: 500 10px var(--f-num); color: var(--gold); letter-spacing: .04em; padding: 0 6px; text-transform: none; }
.feed .redact { width: 64px; height: 10px; }
.feed .env { color: var(--muted); }

.split { display: flex; height: 28px; gap: 2px; }
.split i { display: block; height: 100%; min-width: 3px; }
.split-lg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 16px; margin-top: 14px; }
.split-lg button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  padding: 5px 0;
  text-align: left;
  cursor: pointer;
  font: 600 13.5px var(--f-name);
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--fg);
  min-width: 0;
}
.split-lg button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.split-lg button:hover, .split-lg button[aria-pressed="true"] { color: var(--gold2); }
.split-lg i { width: 8px; height: 8px; flex: none; }
.split-lg b { margin-left: auto; font: 500 11px var(--f-num); color: var(--muted); }
.split-note { margin-top: 10px; font: 500 10px/1.4 var(--f-num); color: var(--dim); }

.wp { display: flex; flex-direction: column; gap: 9px; }
.wp div { display: grid; grid-template-columns: minmax(80px, 120px) minmax(0, 1fr) 52px; gap: 10px; align-items: center; font: 600 13px var(--f-name); text-transform: uppercase; }
.wp div > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wp em { display: block; height: 10px; background: var(--surface2); }
.wp em i { display: block; height: 100%; background: var(--silver); border-radius: 0 2px 2px 0; }
.wp div:first-child em i { background: var(--gold); }
.wp b { font: 500 11px var(--f-num); text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

.feuds { display: flex; flex-direction: column; gap: 16px; }
.fr { display: flex; flex-direction: column; gap: 7px; }
.fn { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font: 600 15px/1.1 var(--f-name); text-transform: uppercase; letter-spacing: .03em; }
.fn > span { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.fn > span a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fn b { font: 700 16px var(--f-num); font-variant-numeric: tabular-nums; }
.fn .r { color: var(--muted); }
.fn .r b { color: var(--muted); font-weight: 500; }
.fbar { display: flex; height: 6px; gap: 2px; }
.fbar i { display: block; height: 100%; }
.fbar i:first-child { background: var(--gold); border-radius: 2px 0 0 2px; }
.fbar i:last-child { background: var(--surface2); border-radius: 0 2px 2px 0; }
.fm { font: 500 10px var(--f-num); color: var(--dim); letter-spacing: .06em; }

.anchors { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin: 0 -16px -16px; border-top: 1px solid var(--line); }
.anchor { background: var(--bg); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 16px; display: grid; grid-template-columns: 4px 32px minmax(0, 1fr); gap: 0 10px; align-items: center; }
.anchor .chip { height: 100%; }
.anchor .av { width: 32px; height: 32px; background: var(--surface2) center/cover; }
.anchor .dv { font: 500 10px/1.2 var(--f-num); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.anchor .who { font: 600 15px/1.2 var(--f-name); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.anchor .who small { font: 500 11px var(--f-num); color: var(--muted); text-transform: none; margin-left: 6px; }
.cell-note { margin: -6px 0 14px; font: 500 10.5px/1.5 var(--f-num); color: var(--dim); }

.logs { margin: 0 -16px -16px; border: 0; background: var(--line); }
.logs > div { background: var(--bg); }

.empty { color: var(--dim); font: 500 12px/1.5 var(--f-num); padding: 6px 0; list-style: none; }

.foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-block: 28px 40px;
  font: 500 10.5px var(--f-num);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
}

.tip {
  position: fixed;
  z-index: 50;
  pointer-events: none;
  background: #000;
  color: var(--fg);
  border: 1px solid var(--line2);
  padding: 6px 9px;
  font: 500 12px/1.35 var(--f-num);
  border-radius: 4px;
  white-space: nowrap;
  transform: translate(-50%, calc(-100% - 10px));
}

.pl-hd { display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.pl-av { width: 112px; height: 136px; flex: none; background: var(--surface2) center/cover; border: 1px solid var(--line2); position: relative; }
.pl-av::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 4px; height: 3px; background: var(--fac, var(--gold)); }
.pl-sub { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 16px; font: 500 11px var(--f-num); letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.pl-sub a { color: var(--gold2); }

.privacy { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--bg2); border: 1px solid var(--line2); border-top: 0; cursor: pointer; }
.privacy input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.privacy .track { width: 38px; height: 20px; border: 1px solid var(--line2); background: var(--surface2); position: relative; flex: none; }
.privacy .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; background: var(--muted); transition: transform .15s; }
.privacy input:checked + .track { border-color: var(--gold); }
.privacy input:checked + .track::after { transform: translateX(18px); background: var(--gold2); }
.privacy input:focus-visible + .track { outline: 2px solid var(--gold2); outline-offset: 2px; }
.privacy strong { display: block; font: 600 15px var(--f-name); text-transform: uppercase; letter-spacing: .03em; }
.privacy small { font: 500 11px var(--f-num); color: var(--muted); }

.pl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pl-grid .span2 { grid-column: span 2; }
.pl-grid .span3 { grid-column: 1 / -1; }

.bars { display: flex; flex-direction: column; gap: 10px; }
.bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; align-items: baseline; }
.bar > span { font: 600 14px/1.2 var(--f-name); text-transform: uppercase; letter-spacing: .02em; display: flex; align-items: center; gap: 8px; min-width: 0; }
.bar > span i { width: 8px; height: 8px; flex: none; }
.bar > b { font: 500 11.5px var(--f-num); color: var(--muted); font-variant-numeric: tabular-nums; }
.bar > div { grid-column: 1 / -1; height: 4px; background: var(--surface2); }
.bar > div i { display: block; height: 100%; border-radius: 0 2px 2px 0; }

.nem { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); margin: 0 -16px -16px; }
.nem > a, .nem > div { background: var(--bg); padding: 14px 16px 16px; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 14px; align-items: center; }
.nem .tag { grid-column: 1 / -1; font: 600 10px var(--f-num); letter-spacing: .12em; text-transform: uppercase; color: var(--crimson2); margin-bottom: 6px; }
.nem .gold .tag, .nem > .gold .tag { color: var(--gold); }
.nem .av { width: 52px; height: 52px; background: var(--surface2) center/cover; }
.nem .who, .nem .cnt { display: block; }
.nem .who { font: 600 18px/1.1 var(--f-name); text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nem .cnt { font: 700 22px var(--f-num); font-variant-numeric: tabular-nums; }
.nem .cnt small { font: 500 11px var(--f-num); color: var(--muted); margin-left: 6px; }

.ev { list-style: none; margin: 0; padding: 0; max-height: 460px; overflow-y: auto; }
.ev li { display: grid; grid-template-columns: 64px 16px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line); }
.ev li:last-child { border-bottom: 0; }
.ev time { font: 500 10px var(--f-num); color: var(--dim); }
.ev .ar { font: 600 12px var(--f-num); }
.ev .ar.k { color: var(--up); }
.ev .ar.d { color: var(--down); }
.ev .who { font: 600 14px/1.25 var(--f-name); text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev .who small { font: 500 10px var(--f-num); color: var(--muted); text-transform: none; margin: 0 4px; }
.ev .tagx { font: 600 9px var(--f-num); letter-spacing: .08em; padding: 2px 4px; margin-left: 6px; background: var(--surface2); color: var(--muted); vertical-align: middle; }
.ev .wpn { font: 500 10px var(--f-num); color: var(--gold); text-align: right; white-space: nowrap; }

.sess { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 460px; overflow-y: auto; }
.sess li { display: grid; grid-template-columns: 118px minmax(0, 1fr) 62px; gap: 10px; align-items: center; }
.sess time { font: 500 10px var(--f-num); color: var(--muted); white-space: nowrap; }
.sess em { display: block; height: 8px; background: var(--surface2); }
.sess em i { display: block; height: 100%; background: var(--gold); border-radius: 0 2px 2px 0; }
.sess b { font: 500 11px var(--f-num); text-align: right; font-variant-numeric: tabular-nums; }

.jobs { list-style: none; margin: 0; padding: 0; max-height: 460px; overflow-y: auto; }
.jobs li { display: grid; grid-template-columns: 64px minmax(0, 1fr) 14px minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line); font: 600 13.5px/1.25 var(--f-name); text-transform: uppercase; }
.jobs li:last-child { border-bottom: 0; }
.jobs time { font: 500 10px var(--f-num); color: var(--dim); text-transform: none; }
.jobs .from { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jobs .to { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jobs .ar { color: var(--gold); font: 500 11px var(--f-num); }

.form { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.form input, .form textarea {
  flex: 1 1 260px;
  min-width: 0;
  background: var(--bg2);
  border: 1px solid var(--line2);
  color: var(--fg);
  font: 500 13px/1.5 var(--f-num);
  padding: 10px 12px;
  border-radius: 0;
  resize: vertical;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--gold); }
.btn {
  background: var(--fg);
  color: var(--bg);
  border: 0;
  font: 600 11px/1 var(--f-num);
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 11px 14px;
  cursor: pointer;
}
.btn:hover { background: var(--gold2); }
.btn.ghost { background: none; color: var(--fg); border: 1px solid var(--line2); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold2); }
.btn.danger { background: none; color: var(--crimson2); border: 1px solid rgba(208, 88, 77, .45); padding: 7px 10px; }
.btn.danger:hover { background: rgba(208, 88, 77, .12); }
.hint { font: 500 11px/1.5 var(--f-num); color: var(--muted); min-height: 1.5em; margin: 0; }
.hint.is-error { color: var(--crimson2); }
.hint.is-ok { color: var(--up); }

.notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; background: var(--line); }
.notes li { background: var(--bg2); padding: 12px 14px; }
.notes .meta { display: flex; align-items: center; gap: 10px; font: 500 10.5px var(--f-num); color: var(--muted); margin-bottom: 6px; }
.notes .meta img { width: 18px; height: 18px; }
.notes .meta strong { color: var(--fg); font-weight: 600; }
.notes .meta button { margin-left: auto; background: none; border: 0; color: var(--dim); cursor: pointer; font: 600 14px var(--f-num); }
.notes .meta button:hover { color: var(--crimson2); }
.notes .body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; }

.locked { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.locked p { margin: 0; max-width: 62ch; color: var(--muted); }

.tabs { display: flex; flex-wrap: wrap; border: 1px solid var(--line2); border-top: 0; background: var(--bg2); }
.tabs button {
  background: none;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 12px 16px;
  font: 600 10.5px/1 var(--f-num);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
}
.tabs button:hover { color: var(--fg); }
.tabs button[aria-selected="true"] { background: var(--fg); color: var(--bg); }
.tabs button.super { color: var(--crimson2); }
.tabs button.super[aria-selected="true"] { background: var(--crimson2); color: var(--bg); }

.ad-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ad-grid .span3 { grid-column: 1 / -1; }
.ad-grid .span2 { grid-column: span 2; }

.plist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.plist li > a, .plist li > div { display: grid; grid-template-columns: 30px 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; background: var(--bg2); padding: 5px 10px 5px 0; min-height: 38px; }
.plist.nopos li > a, .plist.nopos li > div { grid-template-columns: 28px minmax(0, 1fr) auto; padding-left: 8px; }
.plist .pos { font-size: 12px; }
.plist img, .plist .av { width: 28px; height: 28px; background: var(--surface2) center/cover; display: block; }
.plist .who { min-width: 0; }
.plist .who b { display: block; font: 600 15px/1.15 var(--f-name); text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plist .who small { display: block; font: 500 10px/1.3 var(--f-num); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plist .st { font: 500 11px var(--f-num); color: var(--fg); text-align: right; white-space: nowrap; }
.plist .super-tag { font: 600 9.5px var(--f-num); letter-spacing: .1em; color: var(--bg); background: var(--gold); padding: 3px 6px; }
.cell .actions { margin-top: 12px; }

.online { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px; list-style: none; margin: 0; padding: 0; }
.online a { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; align-items: center; background: var(--bg2); padding: 6px 10px 6px 6px; }
.online img, .online .av { width: 32px; height: 32px; background: var(--surface2) center/cover; display: block; }
.online b { display: block; font: 600 15px/1.15 var(--f-name); text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.online small { font: 500 10px var(--f-num); color: var(--muted); }

.err-page { padding-block: 80px; }

@media (max-width: 1080px) {
  .dash-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "serv comb"
      "tcf  tcf"
      "pop  act"
      "fac  feud"
      "arm  feud"
      "feed feed"
      "anch anch"
      "log  log";
  }
  .a-feed { min-height: 0; }
  .a-feed .feed { position: static; max-height: 440px; }
  .pl-grid, .ad-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; }
  .pl-grid .span2, .ad-grid .span2 { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .dash-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "serv" "comb" "tcf" "pop" "act" "fac" "feud" "arm" "feed" "anch" "log";
  }
  .pl-grid, .ad-grid { grid-template-columns: minmax(0, 1fr); }
  .figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row { grid-template-columns: 30px 4px minmax(0, 1fr) 64px 0 36px; gap: 0 8px; }
  .row:not(.kill) > :nth-child(5) { visibility: hidden; overflow: hidden; }
  .row.kill { grid-template-columns: 30px 4px minmax(0, 1fr) 56px 46px 34px; }
  .hm { grid-template-columns: 22px repeat(24, minmax(0, 1fr)); gap: 1px; }
  .nem { grid-template-columns: minmax(0, 1fr); }
  .strip-right { margin-left: 0; }
  .pl-av { width: 84px; height: 102px; }
  .sess li { grid-template-columns: 96px minmax(0, 1fr) 56px; }
}

.flist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.flist li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; background: var(--bg2); padding: 7px 8px 7px 10px; min-height: 40px; }
.flist li.has-av { grid-template-columns: 28px minmax(0, 1fr) auto; }
.flist .av { width: 28px; height: 28px; background: var(--surface2) center/cover; }
.flist b { display: block; font: 600 15px/1.15 var(--f-name); text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flist small { display: block; font: 500 10px/1.4 var(--f-num); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flist .btn { padding: 7px 10px; }
.flist .cnt { font: 500 11px var(--f-num); color: var(--muted); margin-right: 8px; }
.flist .acts { display: flex; align-items: center; }
.flist li.off { opacity: .45; }
.fteams { display: flex; flex-direction: column; gap: 2px; max-height: 620px; overflow-y: auto; }
.fteams .hd-row, .fteams .fr-row { display: grid; grid-template-columns: 4px minmax(0, 1fr) 46px 64px; gap: 10px; align-items: center; }
.fteams .hd-row { font: 500 9.5px var(--f-num); letter-spacing: .12em; color: var(--dim); text-transform: uppercase; padding: 0 0 4px; }
.fteams .hd-row span:nth-child(n+3) { text-align: center; }
.fteams .fr-row { background: var(--bg2); padding: 6px 0; }
.fteams .fr-row i { height: 100%; min-height: 20px; }
.fteams .fr-row span { font: 600 14px/1.2 var(--f-name); text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fteams input { justify-self: center; width: 16px; height: 16px; accent-color: var(--gold); margin: 0; }
