/* Component styles for this screen. Structural only.
   Anything decorative belongs in /shared/theme.css, which loads after
   this file so it can override without fighting specificity. */
.htabs{display:flex;gap:4px;overflow-x:auto;border-bottom:1px solid var(--line);margin:18px 0 22px}
.htabs button{font:inherit;font-size:13.5px;font-weight:600;background:none;border:0;
  border-bottom:2px solid transparent;color:var(--ash-2);padding:10px 14px;cursor:pointer;
  white-space:nowrap;display:flex;align-items:center;gap:7px}
.htabs button svg{width:15px;height:15px;flex:none}
.htabs button.on{color:var(--hex);border-bottom-color:var(--hex)}
.htabs .badge{font-family:var(--f-m);font-size:10.5px;background:var(--blood);color:#fff;
  border-radius:999px;padding:1px 6px;font-weight:600}
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(168px,1fr));gap:12px;margin-bottom:22px}
.tile{padding:15px;border-radius:var(--r-m);background:var(--crypt);border:1px solid var(--line-soft)}
.tile .k{font-size:10px;letter-spacing:.17em;text-transform:uppercase;color:var(--ash-2);font-weight:600}
.tile .v{font-family:var(--f-m);font-size:31px;font-weight:600;line-height:1.05;margin-top:9px;font-variant-numeric:tabular-nums}
.tile .d{font-size:11.5px;color:var(--ash);margin-top:5px}
.tile.hot{border-color:var(--blood-lo)}.tile.hot .v{color:var(--blood)}
.tile.warm .v{color:var(--candle)}.tile.cool .v{color:var(--ecto)}
.cols{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:18px;align-items:start}
@media(max-width:900px){.cols{grid-template-columns:1fr}}
.card{background:var(--crypt);border:1px solid var(--line-soft);border-radius:var(--r-m);overflow:hidden;margin-bottom:18px}
.card>header{display:flex;align-items:center;gap:10px;padding:13px 15px;border-bottom:1px solid var(--line-soft)}
.card>header h3{font-size:16px}
.card>header .r{margin-left:auto;display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.card .bd{padding:13px 15px}
.card .bd.flush{padding:0}
.judge{display:grid;grid-template-columns:150px minmax(0,1fr) auto;gap:15px;padding:15px;border-bottom:1px solid var(--line-soft)}
/* What the ledger has paid for this proof, on the right of the card. */
.judge .awd{display:flex;flex-direction:column;align-items:flex-end;min-width:86px;padding-left:14px;border-left:1px solid var(--line-soft);text-align:right}
.judge .awd b{font-family:var(--f-d);font-size:38px;line-height:1;color:var(--ash-2)}
.judge .awd.on b{color:var(--ecto)}
.judge .awd.neg b{color:var(--blood)}
.judge .awd span{margin-top:6px;font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--ash-2)}
@media(max-width:600px){.judge{grid-template-columns:1fr}
  .judge .awd{order:1;flex-direction:row;align-items:baseline;justify-content:flex-end;gap:8px;padding:0;border:0}
  .judge .awd b{font-size:28px}.judge .jb{order:2}}
.judge button.shot{padding:0;width:100%;font:inherit;color:inherit;cursor:zoom-in}
.judge button.shot:hover{border-color:var(--candle-lo)}
/* The enlarged view. */
.scrim.lb{align-items:center;padding:12px}
.lbx{display:flex;flex-direction:column;align-items:center;gap:10px;width:100%;max-width:min(1400px,100%);max-height:100%}
.lbbar{display:flex;align-items:center;gap:12px;width:100%;font-size:13px;color:var(--bone)}
.lbbar>span:first-child{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lbn{font-family:var(--f-m);font-size:12px;color:var(--ash)}
.lbx img,.lbx video{display:block;max-width:100%;max-height:calc(100dvh - 140px);object-fit:contain;border-radius:var(--r-s);background:#000}
.lbnav{display:flex;gap:10px}
.judge .shots{display:grid;gap:8px;align-content:start;min-width:0}
@media(max-width:600px){.judge .shots{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}}
.judge .who{display:flex;align-items:center;gap:9px;margin-bottom:8px;flex-wrap:wrap}
.judge h4{font-size:16.5px;margin-bottom:5px}
.judge .cap{font-size:13px;color:var(--ash);line-height:1.45;margin:0 0 9px}
.judge .tdesc{font-size:12.5px;color:var(--ash-2);line-height:1.45;margin:0 0 8px;padding-left:9px;border-left:2px solid var(--line-soft)}
.bonusrow{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:11px 0 12px;padding-top:11px;border-top:1px dashed var(--line)}
.bchip{font:inherit;font-family:var(--f-m);font-size:12px;font-weight:600;border:1px solid var(--line);
  background:var(--crypt-2);color:var(--ash);border-radius:999px;padding:4px 11px;cursor:pointer}
.bchip.on{background:var(--hex);border-color:var(--hex);color:#180F26}
.bchip.neg.on{background:var(--blood);border-color:var(--blood);color:#fff}
.acts{display:flex;gap:8px;flex-wrap:wrap}
.trow{display:flex;align-items:center;gap:12px;padding:12px 15px;border-bottom:1px solid var(--line-soft)}
.trow .nm{font-weight:600;font-size:14px;line-height:1.25}
.trow .sub{font-size:11.5px;color:var(--ash-2);margin-top:3px;display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.trow .rt{margin-left:auto;display:flex;align-items:center;gap:9px;flex:none}
.ptbox{font-family:var(--f-m);font-weight:600;font-size:15px;color:var(--candle);min-width:52px;text-align:right}
.tog{width:38px;height:21px;border-radius:999px;background:var(--crypt-3);border:1px solid var(--line);
  position:relative;cursor:pointer;flex:none;padding:0}
.tog i{position:absolute;top:2px;left:2px;width:15px;height:15px;border-radius:50%;background:var(--ash-2);transition:.18s}
.tog.on{background:var(--ecto-lo);border-color:var(--ecto)}
.tog.on i{left:19px;background:var(--ecto)}
/* The grid scrolls inside its own box, both ways, so the team row and the
   task column stay frozen. Sticky inside a sideways-only scroller never
   pinned the team row to anything. */
.mxwide{max-height:calc(100vh - 110px);max-height:calc(100dvh - 110px);overflow:auto}
table.mx{border-collapse:separate;border-spacing:0;font-size:13px;width:100%}
table.mx th,table.mx td{padding:0;border-bottom:1px solid var(--line-soft);text-align:center;white-space:nowrap}
table.mx thead th{position:sticky;top:0;background:var(--crypt-2);z-index:2;vertical-align:bottom;
  padding:0 0 9px;font-weight:600;font-size:10.5px;color:var(--ash-2);border-bottom:1px solid var(--line)}
/* Teams across the top: the badge, then the name wrapped under it. */
table.mx thead th.tm{height:auto;padding:10px 6px 9px;min-width:88px;max-width:120px;white-space:normal;vertical-align:bottom}
.tmh{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:12px;line-height:1.2;font-weight:600;color:var(--bone)}
.tmh span{max-width:108px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
/* Tasks down the side, in full. */
table.mx td.stick{white-space:normal;max-width:360px}
table.mx .tn{font-weight:600;font-size:13.5px;line-height:1.25}
table.mx .ts{font-size:11px;color:var(--ash-2);font-family:var(--f-m);margin-top:3px}
table.mx th.cnt,table.mx td.cnt{font-family:var(--f-m);font-size:12px;color:var(--ash);padding:0 14px;min-width:96px;text-align:right;white-space:nowrap}
table.mx tr.totals td{border-top:2px solid var(--line);border-bottom:0;padding-top:8px;padding-bottom:8px}
table.mx tr.totals td.stick{font-weight:600}
table.mx .stick{position:sticky;left:0;background:var(--crypt);z-index:3;text-align:left;padding:8px 12px 8px 14px;
  border-right:1px solid var(--line);min-width:180px}
table.mx thead .stick{background:var(--crypt-2);z-index:4;vertical-align:bottom;padding-bottom:9px;
  font-size:10.5px;letter-spacing:.15em;text-transform:uppercase}
.cellmark{display:inline-grid;place-items:center;width:23px;height:23px;border-radius:6px;font-size:11px;
  font-family:var(--f-m);font-weight:600}
.cellmark.approved{background:rgba(119,227,174,.16);color:var(--ecto)}
.cellmark.pending{background:rgba(244,163,64,.16);color:var(--candle)}
.cellmark.draft{background:rgba(143,176,207,.14);color:var(--hex)}
.cellmark.rejected{background:rgba(228,82,59,.15);color:var(--blood)}
.cellmark.none{color:var(--ash-2);opacity:.4}
td.tot{font-family:var(--f-m);font-weight:600;font-size:14px;padding-right:14px;text-align:right;min-width:74px}
.team{border-bottom:1px solid var(--line-soft);padding:14px 15px}
.team .hdr{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.team .nm{font-family:var(--f-d);font-size:17px;font-weight:700}
.team .mem{display:flex;gap:8px;flex-wrap:wrap;margin-top:11px}
.team .m{display:flex;align-items:center;gap:8px;background:var(--crypt-2);border:1px solid var(--line-soft);
  border-radius:999px;padding:4px 11px 4px 4px;font-size:12.5px}
.team .m .d{font-size:10px;color:var(--ecto);font-weight:600;letter-spacing:.06em}
.gate{max-width:440px;margin:min(9vh,70px) auto;text-align:center;padding:0 4px}
.gate h1{font-family:var(--f-d);font-size:28px;margin:16px 0 8px}
.gate .sub{color:var(--ash);font-size:14px;line-height:1.6;margin:0}
.gate .sub a{color:var(--candle)}
.gate .fl{text-align:left}
.hcode{font-family:var(--f-m);font-size:12px;font-weight:600;letter-spacing:.14em;color:var(--candle);
  background:rgba(244,163,64,.1);border:1px solid var(--candle-lo);border-radius:6px;padding:2px 7px}
@media(max-width:600px){
  .trow{flex-wrap:wrap}
  .trow .rt{margin-left:0;width:100%;padding-top:4px}
  .tiles{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}
  .tile .v{font-size:25px}
}

/* The grid on a phone. A teams-by-tasks matrix needs more width than a phone
   has: the task names end up rotated, cut short and unreadable. Below 720px
   the same data is a card per team with every task named in full as a chip,
   coloured the way the legend is. Nothing scrolls sideways. */
.mxcards{display:none}
.mxteam{padding:12px 14px 8px;border-bottom:1px solid var(--line-soft)}
.mxteam:last-child{border-bottom:0}
.mxhead{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.mxhead .nm{font-weight:600;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mxhead .sub{font-size:11px;color:var(--ash-2);font-family:var(--f-m)}
.mxchips{display:flex;flex-wrap:wrap;gap:6px}
.mxchip{display:inline-flex;align-items:center;gap:7px;padding:6px 11px 6px 9px;border-radius:999px;
  font-size:12.5px;line-height:1.2;border:1px solid var(--line-soft);background:var(--crypt);color:var(--ash)}
.mxchip i{font-style:normal;font-family:var(--f-m);font-size:11px;width:1em;text-align:center}
.mxchip.approved{background:rgba(119,227,174,.14);border-color:rgba(119,227,174,.35);color:var(--ecto)}
.mxchip.pending{background:rgba(244,163,64,.14);border-color:rgba(244,163,64,.4);color:var(--candle)}
.mxchip.draft{background:rgba(143,176,207,.12);border-color:rgba(143,176,207,.35);color:var(--hex)}
.mxchip.rejected{background:rgba(228,82,59,.13);border-color:rgba(228,82,59,.4);color:var(--blood)}
.mxchip.none{opacity:.55}
@media(max-width:719px){.mxwide{display:none}.mxcards{display:block}}

/* The arrows that arrange the list. Stacked so a row costs 26px of width,
   not two buttons' worth, and big enough to hit with a thumb. */
.trow .ord{display:flex;flex-direction:column;gap:3px;flex:none}
.trow .ord button{width:28px;height:22px;padding:0;border:1px solid var(--line-soft);border-radius:6px;
  background:var(--crypt-2);color:var(--ash);font-size:9px;line-height:1;cursor:pointer}
.trow .ord button:disabled{opacity:.28;cursor:default}
.trow .ord button:not(:disabled):hover{color:var(--candle);border-color:var(--candle)}

/* The assistant's chat. */
.chatlog{display:flex;flex-direction:column;gap:9px;padding:14px 15px;max-height:58vh;overflow:auto;
  -webkit-overflow-scrolling:touch}
.msg{max-width:88%;padding:10px 13px;border-radius:15px;font-size:14px;line-height:1.45;white-space:pre-wrap;
  overflow-wrap:anywhere}
.msg.me{align-self:flex-end;background:var(--candle);color:var(--candle-ink);border-bottom-right-radius:5px}
.msg.bot{align-self:flex-start;background:var(--crypt-2);border:1px solid var(--line-soft);border-bottom-left-radius:5px}
.msg.wait{color:var(--ash-2);font-style:italic}
.msg.note{align-self:center;max-width:100%;font-size:12.5px;color:var(--ash-2);text-align:center;background:none;padding:4px 8px}
.composer{display:flex;gap:9px;align-items:flex-end;border-top:1px solid var(--line-soft)}
.composer textarea{flex:1;min-height:44px;resize:vertical}
.composer .btn{flex:none;height:44px}

/* The gallery. */
.galf{display:flex;gap:6px;flex-wrap:wrap}
.galf .chip{cursor:pointer;border:1px solid var(--line-soft);background:var(--crypt-2)}
.galf .chip.on{border-color:var(--candle);color:var(--candle)}
/* The judging filter. A lit chip is shown; a dim, struck one is filtered out. */
.qbar{padding-bottom:8px;display:flex;flex-direction:column;gap:10px}
.qchip.off{opacity:.5;text-decoration:line-through}
.qsep{width:1px;align-self:stretch;background:var(--line-soft);margin:0 4px}
.qsel{display:flex;gap:10px;flex-wrap:wrap;align-items:flex-end}
.qsel label{display:flex;flex-direction:column;gap:4px;min-width:150px;flex:1 1 150px;max-width:260px}
.qsel label span{font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--ash-2)}
.qsel select{padding:7px 10px;font-size:14px}
.qhint{margin:0;font-size:11.5px;color:var(--ash-2)}
.gal{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;padding:8px 15px 15px}
.gi{margin:0;position:relative;background:var(--crypt-2);border:1px solid var(--line-soft);border-radius:var(--r-s);overflow:hidden}
.gi .gthumb{display:block;position:relative;aspect-ratio:4/5;background:#0d0b09}
.gi img,.gi video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.gi .badge{position:absolute;left:6px;bottom:6px;display:flex;align-items:center;gap:4px;font-family:var(--f-m);font-size:10px;
  padding:3px 7px;border-radius:999px;background:rgba(0,0,0,.6);color:var(--bone)}
.gi .badge svg{width:9px;height:9px}
.gi figcaption{padding:8px 9px 9px;font-size:12px;line-height:1.3;display:flex;flex-direction:column;gap:2px;min-width:0}
.gi figcaption b{font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gi figcaption span{color:var(--ash);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gi figcaption .gst{font-family:var(--f-m);font-size:10.5px;color:var(--ash-2)}
.gi.approved{border-color:rgba(119,227,174,.35)}
.gi.rejected{border-color:rgba(228,82,59,.35)}
.gi .gdl{position:absolute;top:6px;right:6px;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;
  background:rgba(0,0,0,.62);color:var(--bone)}
.gi .gdl svg{width:14px;height:14px}
.gi .gdl:hover{background:var(--candle);color:var(--candle-ink)}

/* Remove a member from a team, on the Teams tab. */
.mx-drop{margin-left:4px;width:20px;height:20px;padding:0;border:1px solid var(--line-soft);border-radius:50%;
  background:var(--crypt-2);color:var(--ash-2);font-size:13px;line-height:1;cursor:pointer}
.mx-drop:hover{color:var(--blood);border-color:var(--blood)}

/* The feed, as the hosts see it. */
.hfeed{display:flex;flex-direction:column;gap:10px;padding:12px 15px 15px;max-width:680px}
.hnote{display:flex;align-items:center;gap:9px;padding:8px 11px;border:1px solid var(--line-soft);border-radius:var(--r-s);
  background:var(--crypt-2);font-size:13px;color:var(--ash)}
.hnote b{color:var(--bone);font-weight:600}
.hnote .when{margin-left:auto;font-family:var(--f-m);font-size:11px;color:var(--ash-2)}
.hnote .pts{font-family:var(--f-m);font-weight:600;color:var(--candle)}
.hpost{border:1px solid var(--line-soft);border-radius:var(--r-m);background:var(--crypt-2);overflow:hidden}
.hph{display:flex;align-items:center;gap:10px;padding:10px 12px}
.hph .nm{font-weight:600;font-size:14px}
.hph .sub{font-size:11.5px;color:var(--ash-2)}
.hcap{margin:0;padding:0 12px 10px;font-size:14px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.hmedia img,.hmedia video{display:block;width:100%;max-height:420px;object-fit:contain;background:#0d0b09}
.hrx{display:flex;gap:12px;padding:8px 12px;font-size:13px;color:var(--ash)}
.hcm{padding:6px 12px 10px;border-top:1px solid var(--line-soft);font-size:13px;color:var(--ash);display:flex;flex-direction:column;gap:4px}
.hcm b{color:var(--bone)}

/* Posting and commenting from the desk. */
.hcomp{display:flex;flex-direction:column;gap:9px;max-width:680px;border-bottom:1px solid var(--line-soft)}
.hcomp textarea{min-height:64px;resize:vertical}
.hrow{display:flex;gap:8px;align-items:center}
.hthumb{position:relative;width:120px;border-radius:var(--r-s);overflow:hidden;border:1px solid var(--line-soft)}
.hthumb img,.hthumb video{display:block;width:100%}
.hthumb{width:180px}
.hthumb .x{position:absolute;top:4px;right:4px;width:24px;height:24px;border-radius:50%;border:0;background:rgba(0,0,0,.65);
  color:var(--bone);font-size:16px;line-height:1;cursor:pointer}
.hcrow{display:flex;gap:7px;margin-top:6px}
.hcrow input{flex:1;min-width:0}

/* One team's proof, opened from the Teams tab. */
.team .tlink{background:none;border:0;padding:0;color:inherit;cursor:pointer;text-align:left}
.team .tlink:hover{text-decoration:underline dotted;text-underline-offset:4px}
.tp{padding:13px 0;border-bottom:1px solid var(--line-soft);display:flex;flex-direction:column;gap:6px;align-items:flex-start}
.tp:first-child{padding-top:2px}
.tp-h{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tp-h b{font-size:15px}
.tp-sub{margin:0;font-size:11.5px;color:var(--ash-2)}
.tp-sub a{color:var(--candle)}
.tp .cap{margin:0;font-size:13px}
.tp-why{margin:0;font-size:12px;color:var(--candle)}
.tp-media{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px;width:100%}
.tp-open{padding-top:13px}
.tp-open p{margin:6px 0 0;font-size:12px;color:var(--ash);line-height:1.6}
