/* Simple Hack app kit — the shared look for every signed-in screen.
   Brand: Simple Hack paper and ink with the red accent; the hand font is for the
   wordmark only. Work surfaces stay calm, straight and dense. Light only. */
:root{
  --paper:#f4efdf; --paper-hi:#fcf8ed; --surface:#fffdf7; --side:#efe8d6;
  --line:#2b2925; --line-soft:#615b51; --line-faint:#857d70;
  --rule:#e2d9c6; --rule-hi:#cfc4ad;
  --accent:#a33f31; --accent-hover:#823024; --accent-soft:#f6e3dc;
  --teal:#216c6a; --teal-soft:#dcece9;
  --warn:#8a5a00; --warn-soft:#fbf1dc; --warn-rule:#ecd9ad;
  --ok:#2f6b3a; --ok-soft:#e3f0e3;
  --danger:#a33f31; --danger-soft:#fbe9e4;
  --hand:'Caveat','Segoe Print','Bradley Hand',cursive;
  --font:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  --mono:ui-monospace,SFMono-Regular,Consolas,monospace;
  --r:8px; --r-sm:6px; --side-w:248px;
  color-scheme:light;
}
*{box-sizing:border-box}
html,body{margin:0;height:100%}
body{background:var(--paper);color:var(--line);font:14.5px/1.5 var(--font);-webkit-font-smoothing:antialiased}
body.booting{visibility:hidden}
a{color:var(--accent)}
h1,h2,h3{line-height:1.25;margin:0}
p{margin:0 0 10px}
/* [hidden] must always win, even over a display rule as specific as
   .btn{display:flex} (Grok S1) -- a hidden button or row must actually
   disappear, not just lose its box model. */
[hidden]{display:none!important}

/* ---------- shell ---------- */
.ico{width:16px;height:16px;flex:none}
.menu-pop .ico{width:18px;height:18px;opacity:.75}
.app{display:grid;grid-template-columns:var(--side-w) minmax(0,1fr);height:100vh}
.side{background:var(--side);border-right:1px solid var(--rule);display:flex;flex-direction:column;min-height:0}
/* Top-left brand: the one thing that always leads Home, from any screen (owner
   decision 2026-10-30). Replaces the switcher's old top-left spot -- the switcher
   now heads the event section below instead (see .event-nav). The hand font here
   is a deliberate, scoped exception to "no web fonts in the signed app": the
   wordmark itself is still reserved for this one spot, same as the public pages. */
.brand{display:flex;align-items:baseline;gap:7px;margin:10px 8px 2px;padding:7px 8px;border-radius:var(--r);text-decoration:none;color:inherit;min-width:0}
.brand:hover{background:#e6dec9}
.brand .mark{font-family:var(--hand);font-size:19px;font-weight:700;color:var(--teal);line-height:1;flex:none}
.brand .mark b{color:var(--accent);font-weight:700}
.brand .person{font-size:12.5px;color:var(--line-soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.event-nav{display:flex;flex-direction:column;flex:1;min-height:0;border-top:1px solid var(--rule);padding-top:4px}
.switcher{display:flex;align-items:center;gap:9px;margin:8px 8px 6px;padding:7px 8px;border-radius:var(--r);border:0;background:none;font:inherit;color:inherit;text-align:left;cursor:pointer;width:calc(100% - 16px)}
.switcher:hover,.switcher[aria-expanded=true]{background:#e6dec9}
.ev-mark{flex:none;width:28px;height:28px;border-radius:7px;display:grid;place-items:center;color:#fff;font-weight:700;font-size:13px;background:var(--ev,#d15d48)}
.switcher .ev-name{font-weight:650;font-size:14px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.switcher>span:not(.ev-mark){flex:1;min-width:0}
.switcher .ev-role{font-size:12px;color:var(--line-soft);display:block}
.switcher .chev{margin-left:auto;color:var(--line-faint);width:14px;height:14px;flex:none}
.menu-pop{position:fixed;z-index:40;left:8px;right:8px;top:50px;width:auto;background:var(--surface);border:1px solid var(--rule-hi);border-radius:10px;box-shadow:0 10px 30px rgba(43,41,37,.14);padding:6px;display:none}
@media(max-width:760px){.menu-pop.open{display:block}}

.menu-pop .lbl{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--line-faint);padding:6px 8px 4px}
.menu-pop a{display:flex;gap:9px;align-items:center;padding:6px 8px;border-radius:7px;color:inherit;text-decoration:none}
.menu-pop a:hover{background:var(--paper)}
.menu-pop a .ev-mark{width:22px;height:22px;font-size:11px;border-radius:6px}
.menu-pop small{display:block;color:var(--line-soft);font-size:12px}
.nav,.top-nav{padding:4px 8px}
.nav{overflow-y:auto;flex:1}
.nav a,.top-nav a{display:flex;align-items:center;gap:9px;padding:6px 9px;border-radius:var(--r-sm);color:var(--line);text-decoration:none;font-size:14px;margin:1px 0}
.nav a:hover,.top-nav a:hover{background:#e6dec9}
.nav a[aria-current=page],.top-nav a[aria-current=page]{background:var(--surface);box-shadow:0 0 0 1px var(--rule);font-weight:600}
.nav a.later{color:var(--line-faint)}
.nav .ico,.top-nav .ico{width:16px;height:16px;flex:none;opacity:.8}
.nav .count{margin-left:auto;font-size:11.5px;min-width:20px;text-align:center;padding:0 6px;border-radius:99px;background:var(--accent);color:#fff;font-weight:600}
.nav .count.quiet{background:#e0d7c3;color:var(--line-soft)}
.nav .sep{height:1px;background:var(--rule);margin:8px 6px}
/* Review #9: .side-foot used to sit at the bottom only because .nav{flex:1}
   pushed it there -- on a no-event page (/events, /account, /events/new)
   there is no .nav at all, and .top-nav isn't flex, so the footer floated up
   under Home. margin-top:auto holds it at the bottom of .side either way. */
.side-foot{border-top:1px solid var(--rule);padding:8px;margin-top:auto}
.side-foot a{display:flex;align-items:center;gap:9px;padding:6px 9px;border-radius:var(--r-sm);color:var(--line-soft);text-decoration:none;font-size:13.5px}
.side-foot a:hover{background:#e6dec9}
.side-foot summary{display:flex;align-items:center;gap:9px;padding:6px 9px;border-radius:var(--r-sm);color:var(--line-soft);font-size:13.5px;cursor:pointer;list-style:none}
.side-foot summary::-webkit-details-marker{display:none}
.side-foot summary:hover{background:#e6dec9}
.side-foot details a{padding-left:34px}
.side-foot .ico{width:16px;height:16px;flex:none;opacity:.8}
/* The brand wordmark: the site's own self-hosted hand font, nothing else uses
   it. Scoped under .pub (the public pages and the sign-in/boot screens that
   borrow their look) so the signed-in app shell never fetches this font
   (review 2026-10-30 item 12; tech_notes: "system fonts, no web fonts"). */
@font-face{font-family:Caveat;src:url('/fonts/caveat.woff2') format('woff2');font-weight:400 700;font-display:swap}
.pub .wordmark{font-family:var(--hand);font-size:24px;font-weight:700;color:var(--teal);padding:0 9px;text-decoration:none;line-height:1}
.pub .wordmark b{color:var(--accent);font-weight:700}
.col{display:flex;flex-direction:column;min-width:0;min-height:0}
.status{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:9px 24px;border-bottom:1px solid var(--rule);background:var(--paper-hi);font-size:13.5px;min-height:46px}
.status .grow{flex:1}
.content{overflow-y:auto;flex:1}
/* SIM-415: content layout follows the space it has, not the window. The
   app's scroll area (and inside it a sub-page column, .sp) is the container;
   public pages (.pub) and the MCP app frames (main.page straight under body)
   are their own. .scrim is viewport-sized, so dialogs keep their old
   window-width behaviour. Never body or html: a container there stops the
   page background reaching the canvas. */
.content,.pub,.scrim,body > main.page{container:page / inline-size}
.page{max-width:1040px;padding:22px 28px 64px}
.page.wide{max-width:none}
.page.narrow{max-width:760px}
.tabbar,.phone-top{display:none}

/* ---------- page header ---------- */
.ph{display:flex;align-items:flex-start;gap:16px;margin:0 0 18px}
.ph .t{flex:1;min-width:0}
.ph h1{font-size:22px;font-weight:700}
.ph p{color:var(--line-soft);margin:4px 0 0;max-width:640px}
.crumbs{font-size:13px;color:var(--line-soft);margin:0 0 6px}
.crumbs a{color:var(--line-soft);text-decoration:none}
.crumbs a:hover{text-decoration:underline}

/* ---------- building blocks ---------- */
.card{background:var(--surface);border:1px solid var(--rule);border-radius:10px;padding:16px 18px;margin:0 0 14px}
.card h2{font-size:15px;font-weight:650;margin:0 0 4px}
.card .sub{color:var(--line-soft);font-size:13.5px;margin:0 0 12px}
/* A13: an h3 inside a card must read smaller than the card's own h2, never
   fall back to the browser default (~17px, bigger than the 15px h2). */
.card h3{font-size:14.5px;font-weight:650;margin:12px 0 2px}
.card h3:first-child{margin-top:0}
/* A14: the browser's own indented <dl> never matches the kit -- a label/value
   grid instead, label column fixed, value column free to wrap long links. */
.card dl{display:grid;grid-template-columns:140px minmax(0,1fr);gap:8px 16px;margin:4px 0 12px}
.card dt{color:var(--line-soft);font-size:13.5px}
.card dd{margin:0;overflow-wrap:anywhere}
@container page (max-width:760px){.card dl{grid-template-columns:1fr;gap:2px}.card dd{margin-bottom:8px}}

.card.flush{padding:0;overflow:hidden}
.card.flush > h2{padding:14px 18px 0}
.pub-event .card.collapsed summary{font-size:15px;font-weight:650;margin:0 0 4px;cursor:pointer}
.section-title{font-size:12px;font-weight:650;letter-spacing:.06em;text-transform:uppercase;color:var(--line-faint);margin:22px 0 8px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
/* A10: cards already carry their own margin-bottom, which on top of the grid
   gap doubled the row spacing -- reset it inside every grid. grid4 is the
   four-tile snapshot (organiser-overview's grid3 becomes grid4, see
   kit-notes.md), 2x2 on phone instead of 3-plus-an-orphan. */
.grid2>.card,.grid3>.card,.grid4>.card{margin:0}
.grid4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.split{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:18px;align-items:start}
.stack > * + *{margin-top:10px}
.row-flex{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.row-flex .grow{flex:1}
.muted{color:var(--line-soft)} .faint{color:var(--line-faint)} .small{font-size:13px}
.mono{font-family:var(--mono);font-size:13px;overflow-wrap:break-word}
hr.rule{border:0;border-top:1px solid var(--rule);margin:14px 0}

/* disclosure triangles (A6): a plain <details> has no kit styling at all
   outside the sidebar, so it falls back to the raw browser triangle. */
details>summary{cursor:pointer;list-style:none}
#acct-connect-how>summary{color:var(--accent);font-weight:600;padding:11px 0}
details>summary::-webkit-details-marker{display:none}
details>summary::after{content:"";display:inline-block;width:7px;height:7px;margin-left:8px;border-right:1.6px solid var(--line-faint);border-bottom:1.6px solid var(--line-faint);transform:translateY(-3px) rotate(45deg)}
details[open]>summary::after{transform:translateY(1px) rotate(-135deg)}
details.card>summary{display:flex;align-items:center;justify-content:space-between;font-size:15px;font-weight:650;margin:-16px -18px;padding:16px 18px}
details.card[open]>summary{margin-bottom:6px}
.list details>summary{font-size:13px;color:var(--line-soft);padding:6px 8px;border-radius:var(--r-sm)}
.list details>summary:hover{background:var(--paper)}
.pub-event details>summary{font-weight:600;padding:9px 0}
.pub-event .card details+details{border-top:1px solid var(--rule)}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--rule-hi);background:var(--surface);color:var(--line);border-radius:var(--r-sm);padding:7px 13px;font:inherit;font-size:14px;font-weight:550;cursor:pointer;text-decoration:none;white-space:nowrap}
.btn:hover{background:var(--paper-hi);border-color:var(--line-faint)}
.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}
.btn.primary:hover{background:var(--accent-hover)}
.btn.quiet{border-color:transparent;background:none;color:var(--line-soft)}
.btn.quiet:hover{background:#ece4d1}
.btn.danger{color:var(--danger);border-color:#e3b6aa;background:var(--surface)}
.btn.danger:hover{background:var(--danger-soft)}
.btn.lg{padding:10px 18px;font-size:15px}
.btn.sm{padding:4px 9px;font-size:13px}
.btn[disabled]{opacity:.45;cursor:not-allowed}
/* A4: a disabled red button faded with plain opacity reads as a pale pink
   error, not "unavailable". Flatten it to a neutral disabled look instead;
   .btn.danger keeps the plain opacity fade since it never carries the same
   confusion (it's never the only action on the screen). */
.btn.primary[disabled]{background:#e6dec9;border-color:#e6dec9;color:var(--line-faint);opacity:1}
.btn.danger[disabled]{opacity:.5}
.btn-block{width:100%}

/* pills and badges */
.pill{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:600;padding:2px 9px;border-radius:99px;background:#e9e1cd;color:var(--line-soft);white-space:nowrap}
.pill .d{width:7px;height:7px;border-radius:50%;background:currentColor}
.pill.stage{background:var(--teal-soft);color:var(--teal)}
.pill.ok{background:var(--ok-soft);color:var(--ok)}
.pill.warn{background:var(--warn-soft);color:var(--warn)}
.pill.bad{background:var(--danger-soft);color:var(--danger)}
.pill.accent{background:var(--accent-soft);color:var(--accent)}

/* stage track */
.stages{display:flex;gap:4px;align-items:center;font-size:12.5px;flex-wrap:wrap}
.stages span{padding:3px 9px;border-radius:99px;color:var(--line-faint);background:#ece5d3}
.stages span.done{color:var(--line-soft);background:#e3dcc8}
.stages span.now{background:var(--teal);color:#fff;font-weight:600}

/* callouts */
.note{border-radius:var(--r);padding:11px 14px;margin:0 0 14px;border:1px solid var(--rule);background:var(--paper-hi);font-size:14px}
.note b{font-weight:650}
.note.info{background:var(--teal-soft);border-color:#b9d8d3}
.note.warn{background:var(--warn-soft);border-color:var(--warn-rule);color:#5f4100}
.note.ok{background:var(--ok-soft);border-color:#bcd9bd}
.note.bad{background:var(--danger-soft);border-color:#ecc0b5}
/* ui.toast's own notes (C2): placed right after the control that triggered
   them, so they need their own row layout -- plain .note elsewhere (a static
   card callout) keeps stacking its content as block text. */
.note.toast{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:8px 0 14px}

/* next step hero (Home) */
.next{background:var(--surface);border:1px solid var(--rule);border-left:4px solid var(--accent);border-radius:10px;padding:18px 20px;margin:0 0 16px;display:flex;gap:18px;align-items:center;flex-wrap:wrap}
.next .t{flex:1;min-width:220px}
.next .k{font-size:12px;font-weight:650;letter-spacing:.06em;text-transform:uppercase;color:var(--accent);margin:0 0 4px}
.next h2{font-size:19px;margin:0 0 4px}
.next p{margin:0;color:var(--line-soft)}
.clock{font-variant-numeric:tabular-nums;font-weight:650}

/* checklist / steps */
.steps{list-style:none;margin:0;padding:0}
.steps li{display:flex;gap:11px;align-items:flex-start;padding:10px 0;border-top:1px solid var(--rule)}
.steps li:first-child{border-top:0}
.steps .tick{flex:none;width:20px;height:20px;border-radius:50%;border:1.5px solid var(--rule-hi);display:grid;place-items:center;font-size:12px;margin-top:1px}
.steps li.done .tick{background:var(--teal);border-color:var(--teal);color:#fff}
.steps li.now .tick{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.steps li.done .what{color:var(--line-soft)}
.steps .what{flex:1}
.steps .what b{font-weight:600;display:block}

/* list rows (Linear-like) */
.list{background:var(--surface);border:1px solid var(--rule);border-radius:10px;overflow:hidden;margin:0 0 14px}
.list .lh{display:flex;align-items:center;gap:10px;padding:9px 14px;background:var(--paper-hi);border-bottom:1px solid var(--rule);font-size:12.5px;font-weight:600;color:var(--line-soft)}
.list .r{display:flex;align-items:center;gap:12px;padding:10px 14px;border-top:1px solid var(--rule);color:inherit;text-decoration:none}
.list:not(.results) .r{flex-wrap:wrap;row-gap:8px}
.list:not(.results) .r > .main{flex:1 1 var(--row-min,12rem);min-width:0}
.list .lh + .r,.list .r:first-child{border-top:0}
.list a.r:hover{background:var(--paper-hi)}
.list .r .main{flex:1;min-width:0}
.r-end{display:flex;flex-wrap:wrap;align-items:inherit;column-gap:12px;row-gap:8px;flex:0 1 auto;min-width:0}
.r-end > .btn{max-width:100%;white-space:normal;overflow-wrap:break-word}
.list .r .main b{font-weight:600;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.list .r .main .msg-text{white-space:pre-wrap;overflow:visible;overflow-wrap:anywhere}
.list .r .main span{font-size:13px;color:var(--line-soft)}
.list .r .meta{font-size:13px;color:var(--line-soft);white-space:nowrap}
.list .empty{padding:22px 14px;text-align:center;color:var(--line-soft)}
.av{flex:none;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:650;background:#e3dac5;color:var(--line-soft)}
.av.accent{background:var(--accent);color:#fff}
.av.sm{width:22px;height:22px;font-size:10.5px}
.avs{display:flex}.avs .av{border:2px solid var(--surface);margin-left:-6px}.avs .av:first-child{margin-left:0}

/* table */
table.t{width:100%;border-collapse:collapse;font-size:14px}
table.t th{text-align:left;font-size:12.5px;font-weight:600;color:var(--line-soft);padding:8px 12px;border-bottom:1px solid var(--rule);background:var(--paper-hi)}
table.t td{padding:9px 12px;border-bottom:1px solid var(--rule);vertical-align:middle}
table.t tr:last-child td{border-bottom:0}
table.t .num{text-align:right;font-variant-numeric:tabular-nums}

/* forms */
/* .field, its label and help: see the "Form layout" block at the end of this file */
.input,.select,textarea.input{width:100%;max-width:100%;min-width:0;font:inherit;font-size:14.5px;color:var(--line);background:#fff;border:1px solid var(--rule-hi);border-radius:var(--r-sm);padding:8px 10px}
/* A1: inputs nest inside <label>, and .field label{font-weight:600} is
   inherited by everything inside it -- every typed value, placeholder,
   select value and nested .help line was rendering bold. */
.input,.select,textarea.input,.field .help,.field label .help{font-weight:400}
textarea.input{min-height:90px;resize:vertical}
input[type=date].input,input[type=datetime-local].input,input[type=time].input{-webkit-appearance:none;appearance:none;min-height:40px;display:block}
/* A11: date pickers, number inputs and short selects otherwise stretch to
   the full 1000px card width. */
select.select{width:auto;min-width:220px}
input[type=date].input,input[type=datetime-local].input,input[type=time].input{max-width:280px}
input[type=number].input{max-width:140px}
.copy{max-width:640px}
.input:focus,.select:focus{outline:2px solid var(--accent-soft);border-color:var(--accent)}
.counter{font-size:12px;color:var(--line-faint);text-align:right;margin-top:3px}
/* A15: "Choose File" otherwise shows the system's own grey button. */
input[type=file].input{padding:6px}
input[type=file].input::file-selector-button{font:inherit;font-size:13.5px;font-weight:550;border:1px solid var(--rule-hi);background:var(--surface);color:var(--line);border-radius:var(--r-sm);padding:5px 11px;margin-right:10px;cursor:pointer}
/* .check rows: see the "Form layout" block at the end of this file */
.toggle{position:relative;flex:none;width:36px;height:21px;border-radius:99px;background:#d8cfba;display:inline-block;vertical-align:middle}
.toggle::after{content:"";position:absolute;top:2px;left:2px;width:17px;height:17px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.2)}
.toggle.on{background:var(--teal)}.toggle.on::after{left:17px}
.setting{display:flex;gap:14px;align-items:flex-start;padding:13px 0;border-top:1px solid var(--rule)}
.setting:first-of-type{border-top:0}
.setting .t{flex:1}.setting .t b{font-weight:600;display:block}.setting .t span{font-size:13.5px;color:var(--line-soft)}
.seg{display:inline-flex;border:1px solid var(--rule-hi);border-radius:var(--r-sm);overflow:hidden;background:#fff}
.seg span{padding:6px 12px;font-size:13.5px;border-left:1px solid var(--rule-hi);cursor:pointer}
.seg span:first-child{border-left:0}
/* A16: near-black selected states read as "dark mode leaking in" -- the
   owner wants nothing dark. Teal already means "current" on the stage
   track, so reuse it here too. */
.seg span.on{background:var(--teal);color:#fff;border-color:var(--teal)}
.drop{border:1.5px dashed var(--rule-hi);border-radius:10px;padding:22px;text-align:center;color:var(--line-soft);background:var(--paper-hi)}
.copy{display:flex;gap:6px;align-items:center}
.copy .input{font-family:var(--mono);font-size:13px;background:var(--paper-hi)}

/* sub tabs inside a page */
.subtabs{display:flex;gap:2px;border-bottom:1px solid var(--rule);margin:0 0 16px}
.subtabs a{padding:8px 12px;font-size:14px;color:var(--line-soft);text-decoration:none;border-bottom:2px solid transparent;margin-bottom:-1px}
.subtabs a[aria-current=page]{color:var(--line);font-weight:600;border-color:var(--accent)}
.subtabs .count{font-size:12px;color:var(--line-faint);margin-left:4px}

/* progress */
.bar{height:8px;border-radius:99px;background:#e6dec9;overflow:hidden}
.bar i{display:block;height:100%;background:var(--teal);border-radius:99px}
.stat{background:var(--surface);border:1px solid var(--rule);border-radius:10px;padding:12px 14px}
.stat b{display:block;font-size:22px;font-weight:700;font-variant-numeric:tabular-nums}
.stat span{font-size:13px;color:var(--line-soft)}

/* locked / not yet open */
.locked{text-align:center;padding:48px 20px;background:var(--surface);border:1px dashed var(--rule-hi);border-radius:12px;color:var(--line-soft)}
.locked h2{color:var(--line);font-size:17px;margin:0 0 6px}
.locked .ico{font-size:26px;margin-bottom:6px}
/* A20: a pending/rejected participant otherwise sees the full sidebar and
   tab bar, every one of which leads to the same lock card -- app.js adds
   this class to .app for that state. */
.locked-shell .nav a:not([aria-current]),.locked-shell .tabbar{display:none}

/* danger zone */
.danger-zone{border:1px solid #ecc0b5;border-radius:10px;background:#fffaf8;margin:24px 0 0}
.danger-zone > h2{font-size:14px;color:var(--danger);padding:12px 16px 0;margin:0}
.danger-zone .setting{padding:13px 16px}

/* ---------- guided walkthrough ---------- */
.tour-ring{outline:3px solid var(--accent);outline-offset:3px;border-radius:8px;transition:outline-offset .15s}
.tour-card{position:fixed;z-index:55;width:min(340px,calc(100vw - 24px));background:var(--surface);border:1px solid var(--rule-hi);border-radius:12px;box-shadow:0 14px 36px rgba(43,41,37,.22);padding:16px 18px}
.tour-card:focus{outline:none}
.tour-progress{font-size:11.5px;font-weight:650;letter-spacing:.05em;text-transform:uppercase;color:var(--accent);margin:0 0 6px}
.tour-title{font-size:16px;margin:0 0 6px}
.tour-body{font-size:13.5px;color:var(--line-soft);margin:0 0 14px}
.tour-actions{display:flex;align-items:center;justify-content:space-between;gap:10px}
.tour-nav{display:flex;gap:8px}
.tour-skip{color:var(--line-faint)}

/* confirm dialog (static mock) */
.dialog{max-height:calc(100dvh - 32px);overflow-y:auto;max-width:440px;background:var(--surface);border:1px solid var(--rule-hi);border-radius:12px;box-shadow:0 16px 40px rgba(43,41,37,.18);padding:18px 20px}
/* Finding #9 (prod full test, round 7): the "same 12px as a card heading"
   rule below only ever matched when a dialog's body was literally a
   .field/.field-row/etc. as ui.dialog()'s next DOM sibling after <h2> --
   Fill teams and Add track (like most formDialog callers) hand it one
   plain wrapper <div> instead, which the :is(...) selector never matches,
   so those titles got only the h2's own 6px and sat right on the first
   label. Setting the 12px on the h2 itself holds regardless of what kind
   of element follows it. */
.dialog h2{font-size:16px;margin:0 0 var(--s3)}
.dialog .acts{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}
.scrim{position:fixed;inset:0;background:rgba(43,41,37,.28);display:grid;place-items:center;z-index:60;padding:16px}

/* scoring focus layout */
.focus{display:grid;grid-template-columns:minmax(0,1fr) 380px;height:100%;min-height:0}
.focus .left{overflow-y:auto;padding:20px 26px;border-right:1px solid var(--rule)}
.focus .right{overflow-y:auto;padding:18px 20px;background:var(--paper-hi);display:flex;flex-direction:column}
.site-frame{border:1px solid var(--rule);border-radius:10px;background:#fff;aspect-ratio:16/10;display:grid;place-items:center;color:var(--line-faint);overflow:hidden}
.crit{padding:12px 0;border-top:1px solid var(--rule)}
.crit:first-child{border-top:0}
.crit b{font-weight:600}
.scale{display:flex;gap:5px;margin-top:7px}
.scale span{flex:1;text-align:center;padding:7px 0;border:1px solid var(--rule-hi);border-radius:6px;background:#fff;font-weight:600;font-size:14px;cursor:pointer}
.scale span.on{background:var(--teal);color:#fff;border-color:var(--teal)}
.sticky-foot{margin-top:auto;padding-top:12px;border-top:1px solid var(--rule);display:flex;gap:8px;align-items:center}

/* public pages (no shell) */
.pub{max-width:880px;margin:0 auto;padding:0 16px 64px}
.pub-top{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--rule);margin:0 0 24px}
.pub-top .grow{flex:1}
.hero{padding:28px 0 18px}
.hero h1{font-size:34px;line-height:1.1;margin:0 0 10px}
.hero p{font-size:17px;color:var(--line-soft);max-width:620px}

/* ---------- phone ---------- */
@media (max-width:760px){
  body{font-size:15px}
  .app{display:block;height:auto}
  .side{display:none}
  .app.menu-open .side{display:flex;position:fixed;inset:0 20% 0 0;z-index:50;box-shadow:0 0 0 100vmax rgba(43,41,37,.3)}
  .phone-top{display:flex;align-items:center;gap:10px;position:sticky;top:0;z-index:30;background:var(--paper-hi);border-bottom:1px solid var(--rule);padding:8px 12px}
  .phone-top .switcher,.phone-top .brand{margin:0;width:auto;flex:1;min-width:0;padding:4px 6px}
  /* Cosmetic #6: the Menu button measured 32px tall against the ~44px
     touch-target floor below. */
  .phone-top .menu-btn{border:1px solid var(--rule-hi);background:var(--surface);border-radius:7px;padding:5px 10px;font:inherit;font-size:13.5px;min-height:44px}
  .status{padding:8px 16px;position:static;gap:4px 10px;font-size:13px}
  /* A5: the stage track and the top-bar Copy buttons repeat what the hero
     and the Share cards already say on phone -- one line left: the pill
     plus the next deadline. Copy actions stay available on Overview, where
     those buttons are appended (see shell.js). */
  .status .stages,.status .btn{display:none}
  /* A18: the tab bar's own More sheet and the top "Menu" button opened the
     same sheet -- only one menu control once there's a tab bar. */
  .has-tabs .phone-top .menu-btn{display:none}
  /* A20: a pending/rejected participant's tab bar is hidden by .locked-shell
     below, but .has-tabs (set independently, from the role having tabs at
     all) still hides the top Menu button via the rule above -- leaving no
     way on phone to reach Account (sign out) or Help. Bring it back. */
  .locked-shell .phone-top .menu-btn{display:inline-flex}
  .page{padding:16px 16px 96px}
}
@container page (max-width:760px){
  .ph{flex-direction:column;gap:10px}
  .ph .btn{width:100%}
  .grid2,.grid3,.split{grid-template-columns:1fr}
  .grid4{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:760px){
  /* A17/Cosmetic #6: .btn.sm and the phone menu's own nav rows were under
     the touch target -- row actions (Move, Remove, Refresh, New link, ...)
     are .btn.sm throughout the organiser screens, so both sizes need the
     full ~44px floor, not just the plain .btn one. */
  .btn{min-height:44px}
  .btn.sm{min-height:44px;padding:8px 11px}
}
@container page (max-width:760px){
  /* The shared row in a narrow space: title and meta take the first line,
     pills and actions wrap below as a group. */
  .list:not(.editable):not(.results) .r > .main{flex-basis:100%}
  .list:not(.editable):not(.results) .r .main b{white-space:normal}
}
@media (max-width:760px){
  .app.menu-open .nav a,.app.menu-open .top-nav a,.app.menu-open .side-foot a,.app.menu-open .side-foot summary{padding:11px 12px;font-size:15px}
}
@container page (max-width:760px){
  .list details>summary{padding:10px 8px}
  .focus{display:block;height:auto}
  .focus .left,.focus .right{border:0;overflow:visible;padding:16px}
}
@media (max-width:760px){
  .focus .right{padding-bottom:100px}
}
@container page (max-width:760px){
  .scale{flex-wrap:wrap;gap:6px}
  .scale span{flex:0 0 calc((100% - 30px)/6);display:grid;place-items:center;font-size:15px}
}
@media (max-width:760px){
  .scale span{min-height:44px}
  .sticky-foot{position:fixed;left:0;right:0;bottom:0;background:var(--paper-hi);padding:10px 16px calc(10px + env(safe-area-inset-bottom));z-index:35;border-top:1px solid var(--rule)}
  .has-tabs .sticky-foot{bottom:58px}
  .tabbar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:30;background:var(--paper-hi);border-top:1px solid var(--rule);padding:4px 4px calc(4px + env(safe-area-inset-bottom))}
  .tabbar a{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;padding:5px 0;font-size:11px;color:var(--line-soft);text-decoration:none;position:relative}
  .tabbar a[aria-current=page]{color:var(--accent);font-weight:650}
  .tabbar .ico{width:20px;height:20px}
  .tabbar .count{position:absolute;top:1px;left:calc(50% + 6px);font-size:10px;padding:0 5px;border-radius:99px;background:var(--accent);color:#fff}
  .hero h1{font-size:27px}
}
@container page (max-width:760px){
  table.t{font-size:13.5px}
}
@media (max-width:760px){
  .tour-card{padding:14px 16px}
  .tour-title{font-size:15px}
}

/* public event page */
/* The whole page is themed by --ev (the organiser's raw colour: header rule, stage
   card border, icon fallback, letter marks) and a derived --accent (color-mix 50% black,
   for buttons/links, with a plain brand-red value declared first as the fallback for
   browsers without color-mix). Set `style="--ev:#d15d48"` on .pub-event; the taken-down
   state omits the class entirely and stays plain. */
.pub-event{
  --accent:#a33f31;
  --accent:color-mix(in srgb, var(--ev, #d15d48) 50%, #000);
  --accent-hover:color-mix(in srgb, var(--ev, #d15d48) 40%, #000);
  --accent-soft:#f6e3dc;
  --accent-soft:color-mix(in srgb, var(--ev, #d15d48) 20%, #fff);
}
.pub-event .next{border-left-color:var(--ev)}
/* Heading nav through Results/Tracks/Team sites matters more here than in
   the app shell, so this page darkens the label a touch past the kit
   default (review 2026-10-30 item 5). */
.pub-event .section-title{color:var(--line-soft)}
.find-link{display:inline}
.pub-foot .find-link{display:none}

/* event header: icon + title, facts line, left rule in the event colour */
.ev-header{border-left:4px solid var(--ev);padding-left:18px}
.ev-head-top{display:flex;align-items:center;gap:16px}
.ev-icon{flex:none;width:64px;height:64px;border-radius:50%;background:var(--ev);color:var(--ev-ink,#fff);display:grid;place-items:center;font-weight:700;font-size:22px;overflow:hidden}
.ev-icon img{width:100%;height:100%;object-fit:cover}
.ev-head-top h1{margin:0}
.ev-facts{font-size:14px;color:var(--line-soft);margin:10px 0 0}
.ev-facts .f{display:inline}
.ev-facts .f + .f::before{content:"\00b7";margin:0 7px;color:var(--line-faint)}
.ev-stage{margin:10px 0 0}
.ev-counts{margin:6px 0 0}

/* on this page: horizontally-scrolling chip nav */
.chips{display:flex;gap:8px;overflow-x:auto;padding:4px 2px 10px;margin:18px 0 20px;list-style:none;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{flex:none;display:inline-flex;align-items:center;padding:7px 14px;border-radius:99px;background:#ece5d3;color:var(--line-soft);font-size:13.5px;font-weight:600;text-decoration:none;white-space:nowrap}
.chip:hover{background:#e3dac5;color:var(--line)}

/* schedule rows: time at the right on desktop, under the title on phone */
.sched{list-style:none;margin:0;padding:0}
.sched li{display:flex;justify-content:space-between;align-items:baseline;gap:14px;padding:11px 0;border-top:1px solid var(--rule)}
.sched li:first-child{border-top:0}
.sched .what{flex:1;min-width:0}
.sched .what b{display:block;font-weight:600;color:var(--line)}
.sched .what>span{color:var(--line-soft);font-size:13.5px;white-space:pre-wrap}
.sched .when{flex:none;text-align:right;color:var(--line-soft);font-size:13.5px;white-space:nowrap}

/* team sites: 2-col cards on desktop, compact rows on phone */
.site-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.site-card{display:flex;flex-direction:column;gap:10px;background:var(--surface);border:1px solid var(--rule);border-radius:10px;padding:14px;text-decoration:none;color:inherit}
.site-card:hover{border-color:var(--line-faint)}
.site-card .site-frame{width:100%}
.site-frame.letter{background:var(--ev);color:var(--ev-ink,#fff);font-weight:700;font-size:26px}
.site-card b{font-size:15px;font-weight:650;color:var(--line);display:block}
.site-tagline{display:block;font-size:13.5px;color:var(--line-soft);margin-top:2px}
.site-team{display:block;font-size:12.5px;color:var(--line-soft);margin-top:4px}

/* results list: rank number ahead of the team name */
.rank{flex:none;width:20px;text-align:center;font-weight:700;color:var(--line-soft);font-variant-numeric:tabular-nums}

/* footer */
.pub-foot{display:flex;flex-wrap:wrap;gap:14px;align-items:center;padding:22px 0 4px;margin-top:8px;border-top:1px solid var(--rule);font-size:13px;color:var(--line-soft)}
.pub-foot a{color:var(--line-soft)}

@media (max-width:760px){
  .ev-head-top{align-items:flex-start;flex-direction:column;gap:10px}
  .ev-icon{width:56px;height:56px;font-size:19px}
  .ev-facts .f{display:block;margin:3px 0}
  .ev-facts .f + .f::before{content:none;margin:0}
  .chip{min-height:44px;padding:0 16px}
  .sched li{flex-direction:column;align-items:flex-start;gap:3px}
  .sched .when{text-align:left}
  .site-grid{display:block}
  .site-card{flex-direction:row;align-items:flex-start;gap:12px;padding:10px 0;border:0;border-radius:0;border-bottom:1px solid var(--rule)}
  .site-card:last-child{border-bottom:0}
  .site-card .site-frame{width:96px;height:60px;aspect-ratio:auto;flex:none;font-size:17px}
  .find-link{display:none}
  .pub-foot .find-link{display:inline}
  .pub-event .next{flex-direction:column;align-items:stretch}
  .pub-event .next .btn{width:100%}
  .btn-block{width:100%}
  .list.results .r{flex-wrap:wrap;row-gap:4px}
  .list.results .main{flex:1 1 180px;min-width:180px}
  .list.results .meta{margin-left:auto}
}

/* polish pass: shared layout parts requested by screen groups (2026-10-30) */
.toc-split{display:grid;grid-template-columns:170px minmax(0,1fr);gap:24px;align-items:start}
.toc{position:sticky;top:16px;display:flex;flex-direction:column;gap:2px}
.toc a{padding:6px 9px;border-radius:var(--r-sm);color:var(--line-soft);text-decoration:none;font-size:14px}
.toc a:hover{background:#e6dec9;color:var(--line)}
.item{padding:14px 0;border-top:1px solid var(--rule)}
.item:first-child{border-top:0;padding-top:4px}
.crit-row{display:grid;grid-template-columns:2fr 90px 90px 3fr auto;gap:10px;align-items:end}
.shot img{display:block;width:100%;height:auto;border-radius:8px;border:1px solid var(--rule)}
@container page (min-width:761px){#jsc-goscore{display:none}}

@container page (max-width:760px){
  .toc-split{display:block}
  .toc{position:static;flex-direction:row;overflow-x:auto;gap:6px;margin:0 0 12px}
  .toc a{flex:none;background:#ece5d3;border-radius:99px;padding:8px 14px;font-weight:600}
  /* Finding #9 (prod full test, round 7): .crit-row's desktop align-items:end
     lines up one single-row of 5 unequal-width columns, where every label is
     one line. Stacked two-up on phone, "Description (optional)" wraps to two
     lines and end-alignment then shoves the shorter "Max points" field's
     label down to match its bottom, so the two labels in a row no longer
     start at the same height. Top alignment reads as one plain stack again. */
  .crit-row{grid-template-columns:1fr 1fr;align-items:start}
  .page .focus .left,.page .focus .right{padding-left:0;padding-right:0}
}

/* ======================================================================
   Rhythm, editors and the collapsible sidebar (atlas 2026-10-30, Event page redesign)
   ----------------------------------------------------------------------
   Vertical rhythm, one 4px scale, used everywhere new:
     page header -> first block 20px . block -> block 16px . card padding 16/18px
     sub-page heading -> its card 16px . field -> field 16px . label -> control 6px
     control -> help or error 6px . section label 24px above, 8px below
     buttons in a group 8px apart . list rows at least 52px tall (56px with a thumbnail)
   Button placement, everywhere new:
     a form has ONE Save, in .card-foot at the card's bottom-right: primary last, Discard
       (quiet) to its left, a short status (.hint) on the far left. Long forms make the
       foot sticky so Save never scrolls away.
     a list's Add sits top-right in .sp-head (the sub-page heading), so it never moves as
       the list grows. Row actions sit at the row's right: a quiet Edit, then the row menu
       (...) holding Move up / Move down and, last and red, Remove.
     a dialog's actions sit bottom-right: Cancel (quiet), then the primary.
     exactly one primary (red) button per sub-page or dialog, never two.
   ====================================================================== */
:root{--s1:4px;--s2:8px;--s3:12px;--s4:16px;--s5:20px;--s6:24px;--s8:32px}

/* sub-pages: a compact list on the left (desktop), tabs that scroll sideways (phone) */
.subnav-split{display:grid;grid-template-columns:176px minmax(0,1fr);gap:32px;align-items:start}
.subnav{position:sticky;top:0;display:flex;flex-direction:column;gap:2px}
.subnav a{display:flex;align-items:center;gap:8px;padding:7px 10px;border-radius:var(--r-sm);color:var(--line-soft);text-decoration:none;font-size:14px}
.subnav a:hover{background:#ece5d3;color:var(--line)}
.subnav a[aria-current=page]{background:#e6dec9;color:var(--line);font-weight:600}
.subnav .n{margin-left:auto;font-size:12px;color:var(--line-faint);font-variant-numeric:tabular-nums;font-weight:500}
.subnav a:focus-visible,.icon-btn:focus-visible,.grip:focus-visible,.side-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.sp{min-width:0}
/* Beside the sub-page nav the column is its own container (SIM-415); on a
   phone it is the full width, so .content already answers for it. */
@media (min-width:761px){.sp{container:page / inline-size}}
.sp-head{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:16px;align-items:end;margin:0 0 16px}
.sp-head h2{grid-column:1;font-size:17px;font-weight:650}
.sp-head p{grid-column:1;color:var(--line-soft);font-size:13.5px;margin:4px 0 0;max-width:640px}
.sp-head .btn{grid-column:2;grid-row:1 / span 2;align-self:end}

/* card foot: the one place a form's Save lives */
.card-foot{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin:4px -18px -16px;padding:12px 18px;border-top:1px solid var(--rule);background:var(--paper-hi);border-radius:0 0 10px 10px}
.card-foot .hint{margin-right:auto;font-size:13px;color:var(--line-soft)}
.card-foot .hint.dirty{color:var(--warn);font-weight:550}
.card-foot.sticky{position:sticky;bottom:0;z-index:5;box-shadow:0 -6px 12px -10px rgba(43,41,37,.25)}

/* side-by-side fields, error state, label rows, field groups: see the "Form layout" block */

/* editable lists: rows with a grip, an optional thumbnail, a quiet Edit and a row menu */
.list.editable{overflow:visible}
.list.editable > :first-child{border-radius:10px 10px 0 0}
.list.editable > :last-child{border-radius:0 0 10px 10px}
.list.editable .r{min-height:52px;padding:8px 10px 8px 14px;gap:12px;position:relative}
.list.editable .r.has-grip{padding-left:6px}
.list.editable .r:hover{background:var(--paper-hi)}
.list.editable .r .main span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.list.editable .lh{border-top:1px solid var(--rule)}
.list.editable .lh:first-child{border-top:0}
.list.editable .lh + .r{border-top:0}
.grip{flex:none;width:18px;height:32px;display:grid;place-items:center;color:var(--line-faint);cursor:grab;border:0;background:none;border-radius:4px;padding:0}
.grip:hover{color:var(--line-soft);background:#ece5d3}
.grip svg{width:12px;height:16px}
.thumb{flex:none;width:40px;height:40px;border-radius:8px;border:1px solid var(--rule);background:#fff;display:grid;place-items:center;overflow:hidden;font-weight:650;color:var(--line-soft);font-size:12.5px}
.thumb img,.thumb svg{width:100%;height:100%;object-fit:contain;display:block}
.thumb.empty{background:var(--paper-hi);border-style:dashed;color:var(--line-faint)}
.thumb.empty svg{width:18px;height:18px}
.r-when{flex:none;width:100px;font-size:13.5px;color:var(--line-soft);font-variant-numeric:tabular-nums;line-height:1.35}
.r-when b{display:block;color:var(--line);font-weight:600}
.row-acts{flex:none;display:flex;align-items:center;gap:2px;margin-left:auto}
.icon-btn{display:inline-grid;place-items:center;width:32px;height:32px;border-radius:var(--r-sm);border:1px solid transparent;background:none;color:var(--line-soft);cursor:pointer;padding:0;font:inherit}
.icon-btn:hover,.icon-btn[aria-expanded=true]{background:#ece5d3;color:var(--line)}
.icon-btn .ico{width:16px;height:16px}
.row-menu{position:absolute;right:8px;top:calc(100% - 4px);z-index:20;min-width:176px;background:var(--surface);border:1px solid var(--rule-hi);border-radius:10px;box-shadow:0 10px 30px rgba(43,41,37,.14);padding:4px}
.row-menu button{display:flex;width:100%;align-items:center;gap:8px;padding:7px 10px;border:0;background:none;font:inherit;font-size:14px;color:var(--line);border-radius:6px;cursor:pointer;text-align:left}
.row-menu button:hover,.row-menu button:focus-visible{background:var(--paper);outline:none}
.row-menu button[disabled]{color:var(--line-faint);cursor:default;background:none}
.row-menu .danger{color:var(--danger)}
.row-menu hr{border:0;border-top:1px solid var(--rule);margin:4px 0}
.row-menu kbd{margin-left:auto;font:inherit;font-size:12px;color:var(--line-faint)}
.list-foot{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--line-soft);margin:-6px 0 14px;padding:0 2px}
.empty-state{text-align:center;padding:36px 20px;background:var(--surface);border:1px dashed var(--rule-hi);border-radius:10px;color:var(--line-soft)}
.empty-state h3{font-size:15px;color:var(--line);margin:0 0 4px}
.empty-state p{max-width:420px;margin:0 auto 16px}
.empty-state > .ico{width:28px;height:28px;color:var(--line-faint);margin:0 0 8px}

/* file pickers: the native input is hidden, a kit button opens it, a preview sits beside it */
.file-pick{display:flex;align-items:center;gap:14px}
.file-pick .pv{flex:none;width:56px;height:56px;border-radius:12px;border:1px solid var(--rule);background:#fff;display:grid;place-items:center;overflow:hidden;color:var(--line-faint);font-size:12px}
.file-pick .pv.round{border-radius:50%}
.file-pick .pv img,.file-pick .pv svg{width:100%;height:100%;object-fit:cover;display:block}
.file-pick .t{flex:1;min-width:0}
.file-pick .t b{display:block;font-weight:600;font-size:14px}
.file-pick .t span{display:block;font-size:13px;color:var(--line-soft)}
.file-pick .pick-acts{display:flex;gap:8px;flex-wrap:wrap}
label.btn{position:relative}
label.btn input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font-size:0}
label.btn:focus-within{outline:2px solid var(--accent);outline-offset:1px}
.drop{display:flex;flex-direction:column;align-items:center;gap:6px}
.drop b{color:var(--line);font-weight:600}
.drop .btn{margin-top:6px}
.drop .ico{width:24px;height:24px;color:var(--line-faint)}
/* Announcement text and address cards (server-rendered). The span rules
   name the element so a card inside a .list row keeps its own sizes. */
.ann-body{overflow-wrap:anywhere;line-height:1.55}
.ann-body p{margin:0 0 12px}
.ann-body ul{margin:0 0 12px;padding-left:24px}
.ann-body li{margin:4px 0}
.ann-body strong{font-weight:700}
.ann-body>:last-child{margin-bottom:0}
h3+.ann-body{margin-top:6px}
.ann-body a.ann-card{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:12px;margin:12px 0;border:1px solid var(--rule);border-radius:10px;background:var(--surface);color:var(--line);text-decoration:none}
.ann-body a.ann-card:hover{border-color:var(--line-faint)}
.ann-body a.ann-card:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.ann-body .ann-card span.ann-card-ico{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:8px;background:var(--accent-soft);color:var(--accent)}
.ann-body .ann-card span.ann-card-thumb{width:min(160px,35%);flex-shrink:0}
.ann-body .ann-card .ann-card-thumb img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:6px}
.ann-body .ann-card span.ann-card-text{display:block;flex:1 1 120px;min-width:0;white-space:normal}
.ann-body .ann-card span.ann-card-svc{display:block;font-size:12px;color:var(--line-soft)}
.ann-body .ann-card span.ann-card-label{display:block;font-size:15px;font-weight:600;color:var(--line);overflow-wrap:anywhere}
.ann-body .ann-card span.ann-card-btn{display:inline-block;padding:8px 14px;border-radius:8px;background:var(--accent);color:#fff;font-size:13.5px;font-weight:600;white-space:nowrap}
.ann-body a.ann-card:hover span.ann-card-btn{background:var(--accent-hover)}


.list.editable .r.ann{align-items:flex-start;padding-top:12px;padding-bottom:12px}
.list.editable .r.ann .row-acts{margin-top:-4px}
.preview-head{display:flex;align-items:center;gap:14px;border-left:4px solid var(--ev);padding:4px 0 4px 16px}
.preview-head .ev-icon{width:52px;height:52px}
.preview-head h3{font-size:18px;margin:0}
.preview-head p{margin:2px 0 0;font-size:13.5px;color:var(--line-soft)}

/* colour swatches: a radio group */
.swatches{display:flex;flex-wrap:wrap;gap:10px 6px;margin:12px 0 0;padding:0;border:0}
.swatch{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;width:64px;font-size:12.5px;color:var(--line-soft);cursor:pointer}
.swatch input{position:absolute;opacity:0;width:1px;height:1px}
.swatch i{width:34px;height:34px;border-radius:50%;background:var(--sw);box-shadow:inset 0 0 0 1px rgba(43,41,37,.14);display:grid;place-items:center;color:var(--sw-ink,#fff);font-style:normal;font-weight:700;font-size:12px}
.swatch i svg{width:16px;height:16px;opacity:0}
.swatch input:checked + i{box-shadow:0 0 0 2px var(--surface),0 0 0 4px var(--teal)}
.swatch input:checked + i svg{opacity:1}
.swatch input:checked ~ span{color:var(--line);font-weight:600}
.swatch input:focus-visible + i{outline:2px solid var(--accent);outline-offset:5px}
.swatch.auto i{background:conic-gradient(#d15d48 0 25%,#267b79 0 50%,#f2c94c 0 75%,#4a49a8 0);color:#fff}

/* single choices that save on change: a short confirmation beside the control */
.saved{display:inline-flex;align-items:center;gap:5px;font-size:13px;color:var(--ok);font-weight:550;white-space:nowrap}
.saved svg{width:14px;height:14px}

/* choice cards (radio) */
.choices{--choice-cols:2;display:grid;grid-template-columns:repeat(auto-fill,minmax(max(11rem,(100% - (var(--choice-cols) - 1) * 10px) / var(--choice-cols)),1fr));gap:10px}
.choice{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border:1px solid var(--rule-hi);border-radius:10px;background:#fff;cursor:pointer}
.choice input{margin:3px 0 0;accent-color:var(--teal);flex:none}
.choice b{display:block;font-weight:600}
.choice .d{display:block;font-size:13px;color:var(--line-soft);margin-top:2px}
.choice.on{border-color:var(--teal);box-shadow:0 0 0 1px var(--teal);background:#f7fbfa}
.choice.off{background:var(--paper-hi);cursor:not-allowed}
.choice.off b{color:var(--line-soft)}

/* settings rows that stack their control under the text (colour swatches) */
.setting.stack{display:block}
.setting .ctl{flex:none;display:flex;align-items:center;gap:8px}
.card.flat{padding-top:4px;padding-bottom:4px}

/* address line */
.addr{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.addr .mono{font-size:14px;padding:7px 10px;background:var(--paper-hi);border:1px solid var(--rule);border-radius:var(--r-sm);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* form dialogs (live): header, scrolling body, foot. On a phone they rise as a sheet. */
.dialog.form{width:min(520px,100%);max-width:520px;padding:0;display:flex;flex-direction:column;max-height:calc(100vh - 32px)}
.dialog.form .dlg-head{padding:18px 20px 0}
.dialog.form .dlg-head p{color:var(--line-soft);font-size:13.5px;margin:4px 0 0}
.dialog.form .dlg-body{padding:16px 20px 4px;overflow-y:auto}
.dialog.form .acts{margin:0;padding:12px 20px;border-top:1px solid var(--rule);background:var(--paper-hi);border-radius:0 0 12px 12px;align-items:center}
.dialog.form .acts .hint{margin-right:auto;font-size:13px;color:var(--line-soft)}
.dt-pair{display:grid;grid-template-columns:minmax(0,1fr) 128px;gap:8px;max-width:360px}
.dt-pair input.input{max-width:none;width:100%}
.field.grow .select{width:100%;min-width:0}
button.toggle{border:0;padding:0;cursor:pointer;font:inherit}
button.toggle:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.t-row{display:flex;align-items:center;gap:10px}
.setting .t .saved{font-size:13px;color:var(--ok)}
.list.editable a.main{color:inherit;text-decoration:none}
.list.editable a.main:hover b{text-decoration:underline;text-decoration-color:var(--rule-hi);text-underline-offset:3px}
.list.editable .r .meta{display:flex;flex-direction:column;align-items:flex-end;gap:3px}

/* clamp an excerpt to two lines */
.clamp2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal!important}
.list.editable .r .main span.clamp2{white-space:normal}

/* ---------- collapsible sidebar (desktop only; phone unchanged) ----------
   .app.side-collapsed turns the 248px sidebar into a 56px icon rail. Labels stay in
   the DOM (visually hidden), so every link keeps its accessible name; a tooltip from
   data-tip shows on hover and on keyboard focus. The choice is remembered per browser
   (localStorage 'sh_side' = 'collapsed'). Toggle: the panel button beside the brand,
   or the [ key outside a text field. */
.side-top{display:flex;align-items:center;gap:2px;padding-right:6px}
.side-top .brand{flex:1;margin-right:0}
.brand .mark-short{display:none}
.side-toggle{flex:none;display:inline-grid;place-items:center;width:30px;height:30px;margin-top:8px;border-radius:var(--r-sm);border:0;background:none;color:var(--line-faint);cursor:pointer;padding:0}
.side-toggle:hover{background:#e6dec9;color:var(--line)}
.side-toggle .ico{width:18px;height:18px}
@media (min-width:761px){
  .app{transition:grid-template-columns .16s ease}
  .app.side-collapsed{grid-template-columns:56px minmax(0,1fr)}
  .side-collapsed .side{position:relative;z-index:25}
  .side-collapsed .side-top{flex-direction:column;padding:0 0 4px}
  .side-collapsed .brand{margin:10px 6px 2px;padding:6px 0;justify-content:center;width:44px;flex:none}
  .side-collapsed .brand .mark-full,.side-collapsed .brand .person{display:none}
  .side-collapsed .brand .mark-short{display:inline}
  .side-collapsed .side-toggle{margin:0}
  .side-collapsed .nav,.side-collapsed .top-nav{padding:4px 6px;overflow:visible}
  .side-collapsed .nav a,.side-collapsed .top-nav a,.side-collapsed .side-foot a,.side-collapsed .side-foot summary{justify-content:center;padding:8px 0;position:relative}
  .side-collapsed .nav a > span:not(.count),.side-collapsed .top-nav a > span,.side-collapsed .side-foot a > span,.side-collapsed .side-foot summary > span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  .side-collapsed .nav .count{position:absolute;top:2px;left:26px;margin:0;min-width:16px;padding:0 4px;font-size:10px;line-height:16px;box-shadow:0 0 0 2px var(--side)}
  .side-collapsed .nav .sep{margin:6px 4px}
  .side-collapsed .side-foot{padding:8px 6px}
  .side-collapsed .side-foot details a{padding-left:0}

  .side-collapsed [data-tip]:hover::after,.side-collapsed [data-tip]:focus-visible::after{
    content:attr(data-tip);content:attr(data-tip) / "";position:absolute;left:calc(100% + 12px);top:50%;transform:translateY(-50%);
    background:var(--surface);color:var(--line);border:1px solid var(--rule-hi);box-shadow:0 6px 18px rgba(43,41,37,.14);
    padding:5px 9px;border-radius:6px;font-size:13px;font-weight:550;white-space:nowrap;pointer-events:none;z-index:70}
  .side-collapsed [aria-expanded=true]::after{display:none}
  .side-collapsed .brand[data-tip]:hover::after,.side-collapsed .brand[data-tip]:focus-visible::after{left:calc(100% + 14px)}
}

/* ---------- phone: sub-page tabs, sticky Save, dialogs as sheets ---------- */
@media (max-width:760px){
  /* R21: collapsing the sidebar is a desktop-only idea (the phone drawer is
     already full width when open, nothing to collapse into a rail) -- the
     toggle used to render inside the phone drawer too, where pressing it
     flipped the stored sh_side with no visible effect at this width. */
  .side-toggle{display:none}
}
@container page (max-width:760px){
  .subnav-split{display:block}
  .subnav{position:static;flex-direction:row;overflow-x:auto;gap:2px;margin:-4px -16px 16px;padding:0 12px;border-bottom:1px solid var(--rule);scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .subnav::-webkit-scrollbar{display:none}
  /* Finding #9 (prod full test, round 7): on phone this strip (Event page's
     Basics/About/Schedule/..., Teams' own subnav, a participant team's
     Members/Find people/Settings -- same shared .subnav) scrolls
     horizontally with no sign it does, so the last tabs just look cut off.
     A classic CSS-only scroll-shadow: two gradients that scroll WITH the
     tabs (background-attachment:local) paint over the shadow near either
     end, so a shadow only shows past where there is more to scroll to --
     neither shows at all when every tab already fits, and the left one
     only appears once actually scrolled right. No JS needed to tell
     "overflowing" apart from "not". */
  .subnav{
    background:
      linear-gradient(to right, var(--paper) 40%, rgba(244,239,223,0)) left / 24px 100%,
      linear-gradient(to left, var(--paper) 40%, rgba(244,239,223,0)) right / 24px 100%,
      linear-gradient(to right, rgba(43,41,37,.14), rgba(43,41,37,0)) left / 12px 100%,
      linear-gradient(to left, rgba(43,41,37,.14), rgba(43,41,37,0)) right / 12px 100%;
    background-repeat:no-repeat;
    background-attachment:local,local,scroll,scroll;
  }
}
@media (max-width:760px){
  .subnav a{min-height:44px}
  .sp-head .btn{min-height:40px}
}
@container page (max-width:760px){
  .subnav a{flex:none;border-radius:0;padding:0 10px;border-bottom:2px solid transparent;margin-bottom:-1px;background:none!important}
  .subnav a[aria-current=page]{border-color:var(--accent)}
  .subnav .n{display:none}
  .sp-head{align-items:center}
  .sp-head .btn{grid-row:1;align-self:center}
  .sp-head p{grid-column:1 / -1}
  .ph .ph-link{display:none}
  .card-foot{flex-wrap:wrap}
  .card-foot .hint{flex:1 0 100%;margin:0 0 2px}
  .card-foot .btn.primary{flex:1}
  .addr .mono{flex:1 0 100%}
  .addr .btn{flex:1}
  .list.editable .r .main b{white-space:normal}
  .list.editable .r.ann{flex-wrap:wrap;row-gap:6px}
  .list.editable .r.ann .main{flex:1 1 0;order:1}
  .list.editable .r.ann .row-acts{order:2}
  .list.editable .r.ann .meta{order:3;flex:1 0 100%;flex-direction:row;align-items:center;gap:8px}
  .preview-head .ev-icon{width:44px;height:44px}
  .preview-head h3{font-size:16px}
}
@media (max-width:760px){
  .card-foot.sticky{position:fixed;left:0;right:0;bottom:0;margin:0;border-radius:0;padding:10px 16px calc(10px + env(safe-area-inset-bottom));z-index:35}
}
@container page (max-width:760px){
  .dt-pair{max-width:none;grid-template-columns:minmax(0,1fr) 128px}
  .r-when{width:auto;font-size:13px}
  .list.editable .r.sched-row{flex-wrap:wrap;align-items:flex-start;row-gap:2px}
  .list.editable .r.sched-row .r-when{order:0;flex:1 0 100%;display:flex;gap:6px}
  .list.editable .r.sched-row .r-when b{display:inline}
  .list.editable .r .main span{white-space:normal}
  .grip{display:none}
  .list.editable .r.has-grip{padding-left:12px}
  .row-acts .btn.quiet{display:none}
}
@media (max-width:760px){
  .icon-btn{width:44px;height:44px}
}
@container page (max-width:760px){
  .setting.wraps{flex-wrap:wrap}
  .setting.wraps .ctl{width:100%}
  .file-pick{align-items:flex-start;flex-wrap:wrap}
  .file-pick .pick-acts{flex:1 0 100%}
  .file-pick .pick-acts .btn{flex:1}
  .swatches{gap:12px 0}
  .swatch{width:25%}
}
@media (max-width:760px){
  .scrim.sheet{place-items:end stretch;padding:0}
  .scrim.sheet .dialog.form{max-width:none;width:100%;border-radius:14px 14px 0 0;max-height:92vh}
  .scrim.sheet .dialog.form .acts{border-radius:0;padding-bottom:calc(12px + env(safe-area-inset-bottom))}
  .scrim.sheet .dialog.form .acts .btn{flex:1}
}
@container page (max-width:760px){
  .row-menu{right:4px}
}
@media (max-width:760px){
  .row-menu button{min-height:44px}
}
@container page (max-width:760px){
  /* SIM-340: a danger-zone .setting squeezed its text into a narrow column
     next to the button on phone (participant-home~pending-390-full.png,
     and today's Settings "Turn off" already clipped the same way) --
     stack the text above a full-width button instead. */
  .danger-zone .setting{flex-direction:column}
  .danger-zone .setting .btn{width:100%}
}

/* ======================================================================
   Entries (atlas 2026-11-02, "entries and participant journey" package,
   slice 1) -- moved unchanged from docs/ux-atlas/prototype/kit-next.css per
   BUILD.md. Same tokens as the rest of this file; nothing here is dark,
   nothing uses a web font.
   ====================================================================== */

/* --- entry summary card: the 20-second read --------------------------- */
.entry-card{background:var(--surface);border:1px solid var(--rule);border-left:4px solid var(--teal);border-radius:10px;padding:14px 18px 16px;margin:0 0 14px}
.entry-card .ec-head{display:flex;align-items:flex-start;gap:12px;flex-wrap:wrap;margin:0 0 10px}
.entry-card .ec-head .t{flex:1;min-width:200px}
.entry-card h1,.entry-card h2,.entry-card h3{font-size:19px;font-weight:700;margin:0;line-height:1.3}
.entry-card .ec-team{font-size:13px;color:var(--line-soft);margin:2px 0 0}
.entry-card .ec-pills{display:flex;gap:6px;flex-wrap:wrap}
.ec-rows{display:grid;grid-template-columns:96px minmax(0,1fr);gap:7px 14px;margin:0;font-size:14.5px;line-height:1.45}
.ec-rows dt{color:var(--line-soft);font-size:12.5px;font-weight:600;letter-spacing:.02em;padding-top:2px}
.ec-rows dd{margin:0;overflow-wrap:anywhere}
.ec-rows dd.missing{color:var(--warn);font-style:italic}
.entry-card .ec-links{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 0;padding-top:12px;border-top:1px solid var(--rule)}
.entry-card.compact{padding:12px 14px;border-left-width:3px}
.entry-card.compact h3{font-size:16px}
.entry-card.compact .ec-rows{grid-template-columns:84px minmax(0,1fr);font-size:14px;gap:5px 12px}
.entry-card .shot-row{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:16px;align-items:start}
.entry-card .shot-row .site-frame{width:100%}

/* maturity pill: what works today */
.pill.mat-working{background:var(--ok-soft);color:var(--ok)}
.pill.mat-partial{background:var(--warn-soft);color:var(--warn)}
.pill.mat-concept{background:#ebe4f2;color:#5b3f7a}

/* --- tags (tools and AI used) ------------------------------------------ */
.tags{display:flex;flex-wrap:wrap;gap:5px;list-style:none;margin:0;padding:0}
.tag{display:inline-flex;align-items:center;gap:4px;font-size:12.5px;font-weight:550;padding:2px 9px;border-radius:99px;background:#ece5d3;color:var(--line)}
.tag.ai{background:var(--teal-soft);color:var(--teal)}
.tag button{border:0;background:none;padding:0 0 0 2px;font:inherit;font-size:14px;line-height:1;color:var(--line-faint);cursor:pointer}
.tag-input{display:flex;flex-wrap:wrap;gap:6px;align-items:center;min-height:var(--control-h,40px);padding:5px 8px;background:#fff;border:1px solid var(--rule-hi);border-radius:var(--r-sm)}
.tag-input:focus-within{outline:2px solid var(--accent-soft);border-color:var(--accent)}
.tag-input input{flex:1 1 120px;min-width:100px;border:0;outline:0;font:inherit;font-size:14.5px;padding:3px 2px;background:none}
.suggest{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.suggest .k{font-size:12.5px;color:var(--line-faint);margin-right:2px}
.suggest button{font:inherit;font-size:12.5px;padding:3px 9px;border-radius:99px;border:1px dashed var(--rule-hi);background:var(--surface);color:var(--line-soft);cursor:pointer}
.suggest button:hover{border-style:solid;color:var(--line)}

/* --- radio choice row for "what works today" (3 compact cards) ---------- */
.choices.three{--choice-cols:3}

/* --- status line at the top of Entry: Draft / Submitted ---------------- */
.entry-status{display:flex;gap:14px;align-items:center;flex-wrap:wrap;background:var(--surface);border:1px solid var(--rule);border-radius:10px;padding:14px 18px;margin:0 0 14px}
.entry-status .t{flex:1;min-width:220px}
.entry-status .t > b{display:block;font-size:16px;font-weight:650}
.entry-status .t > span{font-size:13.5px;color:var(--line-soft)}
.entry-status.draft{border-left:4px solid var(--warn)}
.entry-status.submitted{border-left:4px solid var(--ok)}
.entry-status.late{border-left:4px solid var(--danger)}
/* Coordinator decision 2026-11-02 (replaces the plan's "not submitted /
   not judged" rule): an incomplete draft at the deadline is still judged,
   flagged Incomplete -- informational, not an error, so it gets the same
   amber border as a plain draft rather than the red of .late. */
.entry-status.incomplete{border-left:4px solid var(--warn)}
.need{list-style:none;margin:6px 0 0;padding:0;font-size:13.5px}
.need li{display:inline-flex;align-items:flex-start;gap:5px;margin:0 12px 4px 0;color:var(--line-soft)}
.need li::before{content:"";flex:none;width:8px;height:8px;margin-top:.45em;border-radius:50%;border:1.5px solid var(--warn)}
.need li.ok::before{background:var(--ok);border-color:var(--ok)}
.need li.ok{color:var(--line-faint)}

/* --- live countdown --------------------------------------------------- */
.countdown{display:inline-flex;align-items:baseline;gap:6px;font-variant-numeric:tabular-nums;font-weight:700;font-size:20px;color:var(--line)}
.countdown small{font-size:12px;font-weight:600;color:var(--line-soft)}
.countdown.soon{color:var(--warn)}
.countdown.urgent{color:var(--danger)}

/* --- Home checklist: .steps with an action per row ---------------------- */
.steps .act{flex:none;align-self:center}
.steps .what .sub{display:block;font-size:13.5px;color:var(--line-soft);margin-top:2px}
.steps li.opt .tick{border-style:dashed}
.steps .num{font-size:11px;font-weight:700;color:var(--line-faint)}
.steps li.done .num{display:none}

/* --- judge view: video and site preview -------------------------------- */
/* Not used by anything this slice builds (judge-scoring.js is slice 2) --
   moved over now, with the rest of kit-next.css, so slice 2 doesn't have to
   touch kit.css again for the classes its own prototype already relies on. */
.media{border:1px solid var(--rule);border-radius:10px;background:var(--surface);overflow:hidden;margin:0 0 14px}
.media .mbar{display:flex;align-items:center;gap:10px;padding:8px 12px;border-bottom:1px solid var(--rule);background:var(--paper-hi);font-size:13px}
.media .mbar b{font-weight:650;font-size:13.5px;white-space:nowrap}
.media .mbar .host{font-family:var(--mono);font-size:12.5px;color:var(--line-soft);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.media .mbar .grow{flex:1}
.video-box{position:relative;aspect-ratio:16/9;background:#e9e2cf;display:grid;place-items:center;color:var(--line);text-decoration:none;cursor:pointer;border:0;width:100%;font:inherit}
.video-box .play{width:64px;height:64px;border-radius:50%;background:var(--surface);display:grid;place-items:center;box-shadow:0 1px 3px rgba(0,0,0,.18)}
.video-box .play::after{content:"";border-left:18px solid var(--accent);border-top:11px solid transparent;border-bottom:11px solid transparent;margin-left:5px}
.video-box .cap{position:absolute;left:12px;bottom:10px;font-size:13px;color:var(--line-soft);background:rgba(252,248,237,.92);padding:3px 8px;border-radius:6px}
.video-link{display:flex;align-items:center;gap:12px;padding:14px;text-decoration:none;color:inherit}
.video-link .play{flex:none;width:44px;height:44px;border-radius:50%;background:var(--accent-soft);display:grid;place-items:center}
.video-link .play::after{content:"";border-left:13px solid var(--accent);border-top:8px solid transparent;border-bottom:8px solid transparent;margin-left:4px}
.site-preview{position:relative;height:520px;background:#fff}
.site-preview .fake{position:absolute;inset:0;overflow:hidden}
.site-preview.phone-tall{height:560px}
.site-preview .fallback{position:absolute;inset:0;display:grid;place-items:center;text-align:center;padding:20px;color:var(--line-soft)}
.crit .w{font-size:12px;font-weight:600;color:var(--line-faint);margin-left:6px}
.crit .t-row b{flex:1}
.jhead{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 12px}
.jhead .grow{flex:1}
.kbd-hint{flex-basis:100%;margin-top:2px}
.sticky-foot:has(.kbd-hint){flex-wrap:wrap}
.kbd{font-family:var(--mono);font-size:11.5px;border:1px solid var(--rule-hi);border-bottom-width:2px;border-radius:4px;padding:0 5px;background:#fff;color:var(--line-soft)}
/* entries slice 2: the live player and framed site inside .media blocks */
.video-frame{display:block;width:100%;aspect-ratio:16/9;border:0;background:#000}
.site-preview iframe{position:absolute;inset:0;width:100%;height:100%;border:0;background:#fff}
.media .media-body{padding:14px}
.media .media-body > :last-child{margin-bottom:0}
.media .media-body .site-frame{width:100%;margin:0 0 10px}
.media .media-body .site-frame img{display:block;max-width:100%;height:auto;border-radius:6px}
.jump{display:none}

/* --- Website: connect steps per AI app ---------------------------------- */
.conn{display:flex;gap:0;margin:0 0 14px;border:1px solid var(--rule);border-radius:10px;background:var(--surface);overflow:hidden}
.conn > div{flex:1;padding:12px 14px;border-left:1px solid var(--rule);min-width:0}
.conn > div:first-child{border-left:0}
.conn .k{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:650;letter-spacing:.05em;text-transform:uppercase;color:var(--line-faint)}
.conn .k::before{content:"";width:9px;height:9px;border-radius:50%;border:1.5px solid var(--rule-hi)}
.conn .on .k{color:var(--ok)}
.conn .on .k::before{background:var(--ok);border-color:var(--ok)}
.conn .wait .k{color:var(--warn)}
.conn .wait .k::before{border-color:var(--warn);border-style:dashed}
.conn b{display:block;font-weight:650;margin-top:4px;font-size:14.5px}
.conn span.s{display:block;font-size:13px;color:var(--line-soft);margin-top:2px;overflow-wrap:anywhere}
.howto{list-style:none;counter-reset:howto;margin:12px 0 0;padding:0}
.howto > li{counter-increment:howto;position:relative;padding:0 0 14px 36px}
.howto > li::before{content:counter(howto);position:absolute;left:0;top:0;width:24px;height:24px;border-radius:50%;background:var(--paper);border:1px solid var(--rule-hi);display:grid;place-items:center;font-size:12.5px;font-weight:700;color:var(--line-soft)}
.howto > li.done::before{content:"\2713";background:var(--teal);border-color:var(--teal);color:#fff}
.howto > li b{font-weight:600}
.howto > li .help{margin:4px 0 0}
.howto > li .copy{margin-top:8px}
.howto > li:last-child{padding-bottom:0}
.app-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0 4px}
.app-tabs a{display:inline-flex;align-items:center;gap:7px;padding:7px 13px;border:1px solid var(--rule-hi);border-radius:99px;background:#fff;font-size:13.5px;font-weight:600;color:var(--line-soft);text-decoration:none}
.app-tabs a[aria-current=true]{background:var(--teal);border-color:var(--teal);color:#fff}
.prompt{background:var(--paper-hi);border:1px solid var(--rule);border-radius:var(--r-sm);padding:10px 12px;font-size:14px;line-height:1.5;white-space:pre-wrap}
.site-row{display:grid;grid-template-columns:minmax(0,1fr) 200px;gap:16px;align-items:start}
.site-row .site-frame{width:100%}
@container page (max-width:560px){.site-row{grid-template-columns:1fr}}

/* --- organiser: what teams hand in ------------------------------------ */
.rules{margin-top:16px}
.rules .rr{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--rule)}
.rules .rr .t{flex:1;min-width:0}
.rules .rr .t b{display:block;font-weight:600;font-size:14.5px}
.rules .rr .t span{font-size:13px;color:var(--line-soft)}
.rules .rr .seg span{padding:5px 10px;font-size:13px}
.rules h3{font-size:12px;font-weight:650;letter-spacing:.06em;text-transform:uppercase;color:var(--line-faint);margin:16px 0 2px}
.stat-row{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 14px}
.stat-row .stat{flex:1 1 150px}

/* --- public results: a result row that carries its entry card --------- */
/* Not used by anything this slice builds (results/gallery land in slice 3). */
.result-entry{background:var(--surface);border:1px solid var(--rule);border-radius:10px;margin:0 0 12px;overflow:hidden}
.result-entry .re-head{display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid var(--rule)}
.result-entry .re-head .main{flex:1;min-width:0}
.result-entry .re-head b{font-size:16px;font-weight:650;display:block}
.result-entry .re-head span.sub{font-size:13.5px;color:var(--line-soft)}
.result-entry .re-body{display:grid;grid-template-columns:240px minmax(0,1fr);gap:16px;padding:14px 16px}
.result-entry .re-body .site-frame{width:100%}
.result-entry .ec-links{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.result-entry.winner{border-color:var(--ev,#d15d48);box-shadow:0 0 0 1px var(--ev,#d15d48)}
.site-card .tags{margin-top:6px}
/* Gallery cards (entries slice 3, build-plan §4.6): .site-card keeps its
   original two flex children (the shot and a text block), now a link and a
   div instead of two spans, so the sizing above (including the
   row-at-phone-width switch) needs no change. The tag list and "See
   result" link live inside that second block, below the site link, since a
   link element cannot nest another one. */
.site-card .site-link{display:block;text-decoration:none;color:inherit}
.site-card .site-text{flex:1;min-width:0}
.site-result-link{display:block;margin-top:6px;font-size:12.5px;color:var(--line-soft);text-decoration:none}
.site-result-link:hover{text-decoration:underline}
/* One-of: the segmented control's third (or fourth) option reads "One of"
   on the two show-your-work lines that allow it; kept visually identical to
   Required/Optional/Off otherwise, just its own on-state tint so a glance
   down the column tells "One of" apart from a plain "Required". (Slice 1
   addition, not in the original kit-next.css.) */
.seg span.oneof.on{background:var(--accent);border-color:var(--accent)}

@container page (max-width:760px){
  .media .mbar .host{display:none}
  .jump{display:block;margin:-6px 0 12px}
  .kbd-hint{display:none}
  .ec-rows{grid-template-columns:1fr;gap:1px}
  .ec-rows dt{padding-top:6px}
  .entry-card{padding:12px 14px 14px}
  .entry-card .shot-row{grid-template-columns:1fr}
  .site-preview{height:440px}
  .conn{flex-direction:column}
  .conn > div{border-left:0;border-top:1px solid var(--rule)}
  .conn > div:first-child{border-top:0}
  .rules .rr{flex-wrap:wrap}
  .rules .rr .seg{width:100%}
}
@media (max-width:760px){
  .rules .rr .seg span{min-height:44px}
}
@container page (max-width:760px){
  .rules .rr .seg span{flex:1;text-align:center;display:grid;place-items:center}
  .result-entry .re-body{grid-template-columns:1fr}
  /* A winner's re-head can carry a team name, a track pill, a Winner pill
     and a score all at once; .re-head has no wrap and every pill is
     flex:none, so at phone width .main (the only shrinkable item) was
     being squeezed to a sliver and its own title/subtitle text wrapped
     word-by-word instead. Letting the row wrap gives the title its own
     full-width line and drops the pills to the next one. */
  .result-entry .re-head{flex-wrap:wrap;row-gap:6px}
  .result-entry .re-head .main{flex-basis:100%}
  .countdown{font-size:18px}
  .steps .act{align-self:flex-start}
  .steps li{flex-wrap:wrap}
  .steps li .act{margin-left:31px}
}
@media (max-width:760px){
  /* 44px tap targets (phone convention): the tag chip's own remove button
     and the fixed tool/AI suggestion buttons are both well under that floor
     at their desktop size. */
  .tag{min-height:44px;padding:2px 9px 2px 9px}
  .tag button{min-width:32px;min-height:32px}
  .suggest button{min-height:44px}
  .choice{min-height:44px}
}

.result-entry .re-head .meta{font-variant-numeric:tabular-nums;color:var(--line-soft);font-size:13.5px;white-space:nowrap}
.result-entry .re-head .pill{flex:none}
@container page (min-width:761px){.split > aside{position:sticky;top:16px}}

.suggest .k{min-width:40px}
.deadline-line{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin:2px 0 6px}
.deadline-line small{font-size:13.5px;color:var(--line-soft)}
@container page (max-width:760px){.steps li .what{flex:1 1 calc(100% - 40px)}}

@container page (max-width:760px){
  .entry-card.compact .ec-rows{grid-template-columns:1fr;gap:1px}
}
@media (max-width:760px){
  .sticky-foot .hint-wide{display:none}
}

.focus .right > .next-guard{margin:auto 0 8px}
.focus .right > .next-guard + .sticky-foot{margin-top:0}
.choices.presets{--choice-cols:3}

/* ======================================================================= */

/* ======================================================================
   Form layout (2026-10-31) -- the ONE place form spacing and alignment live.
   ----------------------------------------------------------------------
   Every label-plus-control on every screen is one of these patterns. Fix a
   spacing or alignment problem here, never with a style="" or a one-off
   margin in a screen module. docs/ux-atlas/BUILD.md "Form layout" has the
   markup for each.

     .field              stacked: label above the control (the default)
     .field.inline       label and control on one row (a filter above a list);
                         stacks again on phone
     .check              checkbox or radio row: box on the first text line,
                         optional <b>title</b> plus help indented under it
     .setting            toggle row: title and help left, control right
     .field-row          several fields side by side, every control the same height
     .control-row        one control with its button(s) beside it (input + Save,
                         link + Copy), all the same height
     .form-actions       the action row under a form: 16px above, primary first
     .card-foot          a long editor card's footer band (Save right, dirty hint
                         left) -- see the Rhythm block above
   Spacing: field to field (and any form block to the next) --field-gap,
   label to control and control to help/error --label-gap. A field's
   children are spaced by the grid gap only, so their own margins are reset.
   ====================================================================== */
:root{
  --field-gap:var(--s4);      /* field -> field, check -> field, field -> actions */
  --label-gap:6px;            /* label -> control -> help -> error */
  --check-gap:10px;           /* box -> its text */
  --check-size:16px;
  --control-h:40px;           /* every single-line input, select, and a button beside one */
  --label-size:13.5px;
}

/* --- stacked field (default) ---------------------------------------- */
.field{display:grid;grid-template-columns:minmax(0,1fr);row-gap:var(--label-gap);margin:0 0 var(--field-gap);min-width:0}
.field > *{margin:0}
.field > label:not(.check),.field > .lab,.field > legend,.field .lab-row label{display:block;font-weight:600;font-size:var(--label-size);line-height:1.4;padding:0}
/* A label that wraps its control (<label>Name<input></label>, the older and
   the DOM-built markup) gets the same gap as a for= label beside it. */
.field > label:not(.check) > :is(.input,.select,textarea){display:block;margin-top:var(--label-gap)}
/* A select keeps its own width (A11) instead of stretching across the card. */
.field > .select,.field > label > .select{justify-self:start;max-width:100%}
.field.grow > .select,.field.grow > label > .select{justify-self:stretch}
.help,.field .help{font-size:13px;line-height:1.45;color:var(--line-soft);font-weight:400}
.help{margin:0 0 var(--field-gap)}
.field .help{margin:0}
.field .err{font-size:13px;color:var(--danger);font-weight:550}
.field.has-error .input,.field.has-error .select{border-color:var(--danger);box-shadow:0 0 0 1px var(--danger)}
.field .lab-row{display:flex;align-items:baseline;gap:var(--s2)}
.field .lab-row .opt{font-size:12.5px;color:var(--line-faint)}
.field .lab-row .counter{margin:0 0 0 auto}
.field .counter{margin:0}
/* Short controls keep their own width inside the field's grid column. */
.field > :is(.seg,.btn,.toggle,.pill){justify-self:start}
/* Empty help and error slots (filled by JS later) take no room. */
.help:empty,.field .err:empty{display:none}
/* A label with no control of its own (a group, a read-only value) */
.lab{display:block;font-weight:600;font-size:var(--label-size);line-height:1.4;margin:0 0 var(--label-gap)}
/* <fieldset class="field"> groups radios or several fields under one legend */
fieldset.field{border:0;padding:0;min-inline-size:0}
fieldset.field > legend{margin:0 0 var(--label-gap)}

/* --- inline field: label beside the control -------------------------- */
.field.inline{grid-template-columns:max-content minmax(0,1fr);column-gap:var(--s3);align-items:baseline}
.field.inline > :not(label,.lab,.lab-row){grid-column:2}
.field.inline > label,.field.inline > .lab{grid-column:1}

/* --- tie-break group (organiser Results, Finding #9): one shared grid so
   every input in the group lines up under the longest team name, instead
   of each row sizing its own label column -------------------------------- */
.tie-group{display:grid;grid-template-columns:max-content minmax(0,1fr);column-gap:var(--s3);row-gap:10px;align-items:center;margin:0 0 var(--field-gap)}
.tie-group label{font-weight:600}
.tie-group input{justify-self:start;width:100%;max-width:160px}

/* --- one control height everywhere ----------------------------------- */
.input:not(textarea),.select{min-height:var(--control-h)}
input[type=date].input,input[type=datetime-local].input,input[type=time].input{min-height:var(--control-h)}

/* --- checkbox and radio rows ----------------------------------------- */
.check{display:grid;grid-template-columns:var(--check-size) minmax(0,1fr);column-gap:var(--check-gap);align-items:start;margin:0 0 var(--field-gap);padding:0;font-size:14.5px;font-weight:400;color:var(--line);cursor:pointer}
.check > input{font:inherit;width:var(--check-size);height:var(--check-size);margin:calc((1.5em - var(--check-size)) / 2) 0 0;accent-color:var(--accent);cursor:pointer}
.check > :not(input){grid-column:2;min-width:0}
.check + .check{margin-top:calc(var(--s3) - var(--field-gap))}
.check b{display:block;font-weight:600}
.check .help,.check b ~ span{display:block;font-size:13px;line-height:1.45;color:var(--line-soft);font-weight:400;margin:2px 0 0}
.check:has(> input:disabled){cursor:default}
.check > input:disabled + *{color:var(--line-soft)}

/* --- toggle settings row (.setting lives in the forms section above) -- */
.setting .t > span{display:block}
/* a typed-confirm field inside a danger-zone row keeps its <b> inline */
.setting .t .field b{display:inline}

/* --- several fields on one row --------------------------------------- */
.field-row{display:flex;flex-wrap:wrap;align-items:flex-start;gap:var(--field-gap) var(--s4);margin:0 0 var(--field-gap)}
.field-row > .field{flex:0 0 auto;min-width:0;margin:0}
.field-row > .field.grow{flex:1 1 220px}
.field-row input[type=date].input{width:172px}
/* the rubric editor's criterion row (kit .crit-row): fields with no own
   margin, so the row's buttons line up with the inputs, at the same height */
.crit-row > .field{margin:0}
.crit-row .btn{min-height:var(--control-h)}

/* --- a control and its button(s) on one row --------------------------- */
.control-row{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s2)}
.control-row > .input,.control-row > .select{flex:1 1 200px;width:auto;min-width:0}
.control-row > .btn,.copy > .btn{flex:none;min-height:var(--control-h)}
.control-row > .check{margin:0}
.control-row + .control-row{margin-top:var(--s2)}

/* --- form actions ----------------------------------------------------- */
.form-actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s2);margin:var(--field-gap) 0 0}
.form-actions .hint{font-size:13px;color:var(--line-soft)}
.form-actions + .help{margin-top:var(--s3)}
.form-actions + :is(.field,.field-row,.check,.control-row){margin-top:var(--field-gap)}
/* an action row whose every button is hidden right now takes no room */
.form-actions:not(:has(> :not([hidden]))){display:none}

/* --- group of fields under a small heading inside a card -------------- */
.field-group{border-top:1px solid var(--rule);margin:20px -18px 0;padding:16px 18px 0}
.field-group > h3{font-size:12px;font-weight:650;letter-spacing:.06em;text-transform:uppercase;color:var(--line-faint);margin:0 0 12px}
.field-group > .t-row{margin:0 0 12px}
.field-group > .t-row > h3{margin:0}

/* --- the last form block in a card or dialog body sits on the padding -- */
/* --- spacing around form blocks ---------------------------------------- */
/* a card heading -> its first field: the same 12px as heading -> .sub */
.card > h2 + :is(.field,.field-row,.check,.control-row),
.card > h2 + form > :is(.field,.field-row,.check,.control-row):first-child{margin-top:var(--s3)}
/* Round-6 Cosmetic 4: a dialog's own title -> its first field, the same
   12px -- formDialog's body (Add track, Fill teams, the schedule, sponsor
   and FAQ dialogs) sits directly under ui.dialog()'s <h2> with no .card to
   pick up the rule above, so the title used to sit right on the first
   label (only the h2's own 6px). Fixed once here, not per dialog. */
.dialog > h2 + :is(.field,.field-row,.check,.control-row,.form-intro){margin-top:var(--s3)}
/* a disclosure (Advanced, Read the standard code) -> the next form block */
details + :is(.field,.field-row,.check,.form-actions){margin-top:var(--field-gap)}
details > .help:last-child{margin:var(--s2) 0 0}
/* the last form block in a card or dialog body sits on the padding */
.card > :is(.field,.field-row,.check,.form-actions,.help):last-child,
.card > form > :is(.field,.field-row,.check,.form-actions,.help):last-child,
details.card > :is(.field,.field-row,.check,.form-actions,.help):last-child,
.dlg-body > :is(.field,.field-row,.check,.help):last-child{margin-bottom:0}

/* intro line at the top of a form dialog or card ("Times are in UTC.") */
.form-intro{color:var(--line-soft);margin:0 0 var(--s3)}
.choices.auto{grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}
.file-pick .pv.sm{width:44px;height:44px}

/* Small structural rules that replaced one-off style="" attributes in the
   screens (2026-10-31). Add here, not inline. */
.note > .btn{margin-left:var(--s2)}
.site-frame img{max-width:100%}
.card > dl:only-child{margin:0}
.card > .section-title:first-child{margin-top:0}
.empty-state p:last-child{margin-bottom:0}

@container page (max-width:760px){
  .field.inline{grid-template-columns:minmax(0,1fr)}
  .field.inline > *{grid-column:1}
  .field-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--field-gap) 10px}
  .field-row > .field.grow,.field-row > .field:has(input[type=datetime-local]),.field-row > .field:has(.dt-pair){grid-column:1 / -1}
  .field-row input[type=date].input{width:100%;max-width:none}
  .field-row .select{width:100%;min-width:0}
  .form-actions .btn.primary{flex:1 1 auto}
  .crit-row > .row-flex{grid-column:1 / -1}
}

/* Inside a field the grid gap does the spacing, even for the blocks above
   that carry their own outer margin. */
.field > :is(.field-row,.control-row,.form-actions,.check,.help,.note){margin:0}
/* ---------------------------- end Form layout ---------------------------- */

/* === feature/hack-teams-redesign (kit additions) ====================== */
/* .choices.stack: one column at every width (Team's "How do you want to
   team up?" always stacks, unlike the Entry-form .choices' 2-col desktop
   default). */
.choices.stack{--choice-cols:1}
@container page (max-width:760px){
  /* .ph.keep-row: the header stays a row on phone, the button auto width --
     Overview's Change stage sits beside the h1, never a full-width bar
     above the next-step card. */
  .ph.keep-row{flex-direction:row;align-items:flex-start;gap:10px}
  .ph.keep-row .btn{width:auto;flex:none}
}

/* ======================================================================= */

/* Headings that receive focus for screen readers (tab switches) show no box to mouse users. */
[tabindex="-1"]:focus{outline:none}

/* Entries list (slice 1): a flagged row is a div holding the link and the
   Exclude / Include button, so the link part keeps the plain row look. */
.list .r a.main{color:inherit;text-decoration:none}
.list .r a.main:hover b{text-decoration:underline}
/* Entry: the show-your-work group's own error line ("Add a video or a
   published website."), which belongs to the card, not to one field. */
.card > p.err{font-size:13px;color:var(--danger);font-weight:550;margin:0 0 8px}
.card > p.err:empty{display:none}

/* Persistent membership navigation. */
.nav .pane-event{display:flex;align-items:center;gap:9px;min-width:0}
.pane-event .event-label{min-width:0;display:flex;flex-direction:column}
.pane-event b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.pane-event small{font-size:11px;color:var(--muted)}
.event-sections{padding-left:8px}
.nav .nav-group,[data-nav-group]{font-size:11px;color:var(--muted);font-weight:500;margin:16px 0 4px;padding-left:34px;line-height:1.4}
.past-events summary{font-size:12px;color:var(--muted);cursor:pointer;padding:9px}
.settings-select{display:none}
@media(min-width:761px){
 .side-collapsed .event-sections{padding-left:0}
 .side-collapsed .nav-group,.side-collapsed [data-nav-group]{display:none}
 .side-collapsed .nav .pane-event>.ev-mark{position:static;width:28px;height:28px;margin:0;clip:auto;overflow:visible;white-space:normal}
 .side-collapsed .past-events summary{font-size:0}
 .side-collapsed .past-events summary::after{content:'…';font-size:16px}
}

@container page (max-width:760px){
 .settings-select{display:block}
 .settings-layout>.subnav{display:none}
}

.step-actions{display:flex;align-items:center;gap:4px;flex-wrap:nowrap}
.steps .step-actions .btn{white-space:nowrap;padding:4px 8px;min-height:28px}
.steps .step-actions [data-dismiss]{font-size:12px;padding:4px}
@container page (max-width:760px){.steps .step-actions{grid-column:2 / -1;justify-self:start}}

.ov-public-url{margin:-8px 0 20px;font-size:14px;overflow-wrap:anywhere}

@container page (max-width:760px){
 .organiser-home-head{flex-direction:row;flex-wrap:wrap;gap:8px}
 .organiser-home-head .t{flex-basis:100%}
 .organiser-home-head .btn{width:auto}
 .steps li:is([data-checklist-id^="o."],[data-checklist-id^="j."]){display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:4px 11px}
 .steps li:is([data-checklist-id^="o."],[data-checklist-id^="j."]) .tick{grid-column:1;grid-row:1}
 .steps li:is([data-checklist-id^="o."],[data-checklist-id^="j."]) .what{grid-column:2;grid-row:1;min-width:0}
 .steps li:is([data-checklist-id^="o."],[data-checklist-id^="j."]) .act{grid-column:3;grid-row:1;margin:0;justify-self:end;align-self:start;min-height:28px;padding:0;width:auto}
 .steps li:is([data-checklist-id^="o."],[data-checklist-id^="j."]) .act.btn{padding:4px 8px}
}

/* ---------- organiser assistant (SIM-394, floating v2) ----------
   One Ask pill, fixed bottom-right, on every organiser screen of an event
   (mounted from the router -- assistant.js/app.js -- not any one screen).
   Desktop: opens a fixed right-side panel, shadow like .dialog, no scrim --
   the rest of the page stays usable. Phone: a full-screen sheet. Both the
   button and the panel are appended straight to document.body, never
   inside a screen's own <main>, so a screen re-render and in-app
   navigation (including clicking a link inside a reply) never tears
   either down. z-index sits below the tour card/scrim/dialog and below
   the panel itself (.assistant-fab 45 < .tour-card 55 < .assistant-panel/
   .scrim 50-60), but above the phone sticky save bars it shares the
   bottom-right corner with at narrow widths (see the bump below). */
.assistant-fab{position:fixed;right:16px;bottom:calc(16px + env(safe-area-inset-bottom));z-index:45;border-radius:999px;box-shadow:0 10px 24px rgba(43,41,37,.18)}
.assistant-panel{position:fixed;top:0;right:0;bottom:0;width:400px;z-index:50;background:var(--surface);border-left:1px solid var(--rule-hi);box-shadow:0 16px 40px rgba(43,41,37,.18);display:flex;flex-direction:column;min-height:0}
.assistant-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:16px 16px 4px}
.assistant-head h2{font-size:16px;flex:1;min-width:0}
.assistant-head-acts{display:flex;align-items:center;gap:4px;flex:none}
.assistant-sub{margin:0;padding:0 16px 10px}
.assistant-thread{flex:1;overflow-y:auto;min-height:0;padding:4px 16px;display:flex;flex-direction:column;gap:12px}
.assistant-msg.user{align-self:flex-end;max-width:85%;background:var(--accent-soft);color:var(--line);border-radius:10px;padding:8px 12px;overflow-wrap:anywhere}
.assistant-msg.assistant{align-self:stretch;min-width:0}
.assistant-bubble{background:var(--paper-hi);border:1px solid var(--rule);border-radius:10px;padding:10px 12px;overflow-wrap:anywhere}
.assistant-bubble p{margin:0 0 8px}
.assistant-bubble p:last-child{margin-bottom:0}
.assistant-bubble pre{background:var(--surface);border:1px solid var(--rule);border-radius:6px;padding:8px;overflow-x:auto;margin:0 0 8px}
.assistant-bubble code{font-family:var(--mono);font-size:12.5px}
.assistant-bubble pre code{font-size:12.5px}
.assistant-bubble ul,.assistant-bubble ol{margin:0 0 8px;padding-left:20px}
.assistant-bubble a{color:var(--accent)}
.assistant-thinking{color:var(--line-soft);font-style:italic;margin:0}
.assistant-acts{display:flex;align-items:center;gap:8px;margin-top:6px}
.assistant-chips{display:flex;flex-wrap:wrap;gap:8px;padding:0 16px 12px}
.assistant-error{display:flex;align-items:center;justify-content:space-between;gap:10px}
.assistant-compose{border-top:1px solid var(--rule);padding:12px 16px;background:var(--paper-hi)}
.assistant-input-row{display:flex;gap:8px;align-items:flex-end}
textarea.input.assistant-textarea{resize:none;min-height:var(--control-h);max-height:144px;overflow-y:auto;flex:1}
.assistant-hint{margin:6px 0 0}
@media(max-width:760px){
  .assistant-panel.sheet{inset:0;width:auto;border-left:0;z-index:60}
  .assistant-thread{padding:4px 16px}
  /* A phone sticky save bar (.sticky-foot, .card-foot.sticky -- both
     position:fixed at this width, see above) sits in the same bottom-right
     corner; when either is on screen the fab sits above it instead of
     under it. :has() keeps this in step with the bar's own, already-
     conditional markup -- no resize/mutation listener needed. */
  body:has(.sticky-foot,.card-foot.sticky) .assistant-fab{bottom:calc(112px + env(safe-area-inset-bottom))}
}

.dialog:has([data-judging-setup]),.dialog:has(#stage-setup){display:flex;flex-direction:column}
.dialog > [data-judging-setup],.dialog > #stage-setup{min-height:0;overflow-y:auto}
.dialog > .acts{flex-shrink:0}

@container page (max-width:760px){.choices,.choices.three,.choices.presets{--choice-cols:1}}
