/* Cupday: Apple-calm. System font (San Francisco on Apple devices), white and soft grey surfaces,
   rounded cards, pill buttons, generous space. Yellow is the one brand accent (primary action, your team);
   red only for live. Big type for low vision: 17px base, tables at least 16px. */
:root {
  /* Warm cream + butter yellow + ink (shared with Foresee). Anton only for short loud text: headline, scores, big numbers. Barlow for everything else. */
  --ground: #faf6e8;
  --soft: #f3ecd6;
  --panel: #fffdf4;
  --tab: #f0e9d2;
  --ink: #191613;
  --muted: #6b6247;
  --line: #e5dcbf;
  --line-soft: #efe7cf;
  --yellow: #ffd84d;
  --yellow-soft: #fff1bd;
  --live: #d63a26;
  --live-soft: #fbe6e2;
  --done: #17804a;
  --link: #2468b8;
  --r: 18px;
  --r-s: 12px;
  --anton: "Anton", "Impact", "Arial Narrow Bold", sans-serif;
  --display: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --body: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
  accent-color: var(--ink);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-size: 106.25%; } /* 17px, Apple's body size */
body { margin: 0; background: var(--ground); color: var(--ink); font: 500 1rem/1.45 var(--body); letter-spacing: 0; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
::selection { background: var(--yellow); color: var(--ink); }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-family: var(--anton); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; line-height: 1.02; }
h1 { font-size: clamp(2.1rem, 6.4vw, 3.6rem); }
h2 { font-size: clamp(1.45rem, 3.6vw, 2rem); }
h3 { font-size: 1.2rem; letter-spacing: -.02em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.narrow { max-width: 780px; }
.stack { display: flex; flex-direction: column; gap: var(--gap, 14px); }
.row { display: flex; flex-wrap: wrap; gap: var(--gap, 10px); align-items: center; }
.muted { color: var(--muted); }
.small { font-size: .94rem; }
.tnum, td, .num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* top bar: dark translucent, thin */
.top { background: rgba(22, 22, 23, .86); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); color: #f5f5f7; position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 52px; }
.brand { font: 700 1.25rem/1 var(--display); letter-spacing: -.02em; text-decoration: none; color: var(--yellow); }
.top nav { margin-left: auto; display: flex; gap: 2px; align-items: center; }
.top nav a { text-decoration: none; font-size: .94rem; padding: 10px 10px; color: #e8e8ed; white-space: nowrap; }
.top nav a:hover { color: #fff; }
.top nav a.btn { color: var(--ink); padding: 8px 14px; min-height: 36px; font-size: .9rem; }
@media (max-width: 720px) { .top nav a.hide-s { display: none; } }

/* buttons: pills */
.btn { appearance: none; border: 0; background: var(--soft); color: var(--ink); font: 600 1rem/1 var(--body); letter-spacing: -.01em; padding: 13px 22px; border-radius: 980px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; transition: background .15s, transform .1s; }
.btn:hover { background: #e8e8ed; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--yellow); color: var(--ink); }
.btn.primary:hover { background: #ffdb33; }
.btn.dark { background: var(--ink); color: #fff; }
.btn.big { font-size: 1.12rem; padding: 17px 30px; min-height: 58px; }
.btn.ghost { background: transparent; color: var(--link); padding-inline: 8px; }
.btn.ghost:hover { text-decoration: underline; }
.btn:disabled { opacity: .4; cursor: default; transform: none; }
.linkbtn { appearance: none; border: 0; background: none; padding: 8px 2px; font: inherit; color: var(--link); cursor: pointer; min-height: 44px; }
.linkbtn:hover { text-decoration: underline; }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 6px; font: 600 .82rem/1 var(--body); letter-spacing: 0; padding: 5px 10px; border-radius: 980px; background: var(--yellow); color: var(--ink); }
.badge.live { background: var(--live); color: #fff; }
.badge.plain { background: var(--soft); }

/* team badge: generated initials, Google-profile style */
.tb { display: inline-grid; place-items: center; flex: none; width: 1.75em; height: 1.75em; border-radius: 50%; background: var(--c, #3b3f46); color: #fff; font: 700 .72em/1 var(--body); letter-spacing: 0; margin-right: .5em; vertical-align: middle; }
.tb.s { font-size: .6em; width: 2.1em; height: 2.1em; }

/* modules become soft cards */
.mods { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.mods.tight { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.mod { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r); min-width: 0; overflow: hidden; }
.mod.wide { grid-column: 1 / -1; }
.mod > .mh { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 16px 18px 6px; min-height: 44px; }
.mod > .mh h2, .mod > .mh h3, .mod > .mh .ttl { font: 700 1.2rem/1.15 var(--display); letter-spacing: -.02em; margin: 0; }
.mod > .mb { padding: 10px 18px 18px; }
.mod > .mb.flush { padding: 0 0 6px; }

/* tables */
table { border-collapse: collapse; width: 100%; }
.tbl td, .tbl th { padding: 11px 12px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: middle; }
.tbl td:first-child, .tbl th:first-child { padding-left: 18px; }
.tbl td:last-child, .tbl th:last-child { padding-right: 18px; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl th { font: 600 .82rem var(--body); color: var(--muted); }
.tbl .t { font: 600 1.06rem var(--body); white-space: nowrap; width: 1%; }
.tbl .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 0; width: 40%; }
.tbl .nm.r { text-align: right; }
.tbl .sc { font: 700 1.2rem var(--display); text-align: center; white-space: nowrap; width: 1%; padding-inline: 6px; }
.tbl .sc .pen { display: block; font: 500 .78rem var(--body); color: var(--muted); }
.tbl .meta { font-size: .9rem; color: var(--muted); white-space: nowrap; width: 1%; }
.tbl tr.live .sc { color: var(--live); }
.tbl tr.mine td { background: var(--yellow-soft); }
.tbl .tbd { color: var(--muted); }
.tbl .win { font-weight: 700; }
.tbl tr.slot td { background: var(--soft); font: 600 .9rem var(--body); color: var(--muted); padding-block: 6px; }
.pt { display: inline-grid; place-items: center; min-width: 2em; height: 2em; padding: 0 6px; border-radius: 8px; background: var(--soft); font: 700 .95rem/1 var(--body); }
.livetag { display: block; font: 700 .74rem var(--body); letter-spacing: .04em; color: var(--live); text-transform: uppercase; }
.standings td { padding-block: 9px; }
.standings .pos { color: var(--muted); width: 1%; }
.standings .pts { font: 700 1.12rem var(--body); text-align: right; width: 1%; }
.standings .n { text-align: right; width: 1%; color: var(--muted); }
.standings a { text-decoration: none; }

/* your team's next pitch tile */
.next { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.ptile { display: grid; place-items: center; min-width: 84px; padding: 8px 12px; border-radius: 16px; background: var(--yellow); }
.ptile small { font: 600 .78rem var(--body); letter-spacing: .02em; }
.ptile b { font: 800 2.8rem/1 var(--display); letter-spacing: -.03em; }
.next .when { font: 700 1.35rem/1.2 var(--display); letter-spacing: -.02em; }
.next .sub { color: var(--muted); }
.follow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.follow select { flex: 1; min-width: 200px; }

/* tournament head + tabs (segmented control) */
.thead { padding-block: 22px 0; }
.facts { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: .97rem; margin-top: 8px; }
.facts b { color: var(--ink); }
.tabs { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); background: var(--soft); border-radius: 12px; padding: 3px; margin-top: 16px; gap: 2px; }
.tabs a { text-align: center; text-decoration: none; padding: 10px 4px; font-weight: 600; border-radius: 9px; min-height: 44px; display: grid; place-items: center; color: var(--muted); }
.tabs a[aria-current="page"] { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.filters { display: flex; gap: 8px; overflow-x: auto; padding-block: 12px; scrollbar-width: thin; }
.chip { flex: none; padding: 9px 15px; border: 0; border-radius: 980px; background: var(--soft); font: 500 .95rem var(--body); color: var(--ink); text-decoration: none; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.note { padding: 12px 16px; background: var(--yellow-soft); border-radius: var(--r-s); }
.ad { display: grid; place-items: center; min-height: 90px; border-radius: var(--r-s); background: var(--soft); color: var(--muted); font: 500 .8rem var(--body); letter-spacing: .08em; text-transform: uppercase; }
.page { padding-block: 16px 28px; }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-weight: 600; }
.hint { font-size: .92rem; color: var(--muted); }
textarea, input, select { font: inherit; font-size: 1rem; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-s); padding: 12px 14px; width: 100%; min-height: 48px; }
textarea { resize: vertical; min-height: 100px; line-height: 1.5; }
textarea:focus, input:focus, select:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 4px rgba(0, 102, 204, .18); }
::placeholder { color: #8a8a8f; }

/* ---------- start page: lead with what you get ---------- */
.start { padding-block: clamp(28px, 6vw, 72px) 24px; display: grid; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (min-width: 980px) { .start { grid-template-columns: 1.05fr .95fr; } .start .demo { position: sticky; top: 76px; } }
.eyebrow { font: 600 1rem var(--body); color: var(--muted); margin-bottom: 10px; }
.start h1 { max-width: 14ch; font-size: clamp(2.3rem, 5.6vw, 3.8rem); }
.start .lede { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 38ch; margin-top: 14px; line-height: 1.4; }
.gets { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.gets li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px 7px 10px; border-radius: 980px; background: var(--soft); font-weight: 600; font-size: .94rem; }
.gets li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%231d1d1f' stroke-width='2'/%3E%3C/svg%3E") center/16px no-repeat; }
.composer { margin-top: 24px; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 10px 40px rgba(0, 0, 0, .07); transition: border-color .15s, box-shadow .15s; overflow: hidden; }
.composer:focus-within { border-color: #aeaeb4; box-shadow: 0 12px 48px rgba(0, 0, 0, .1); }
.composer.drop { border-color: var(--link); box-shadow: 0 0 0 4px rgba(0, 102, 204, .18); }
.composer textarea { border: 0; border-radius: 0; box-shadow: none; padding: 20px 22px 8px; min-height: 180px; resize: none; font-size: 1.06rem; }
.composer textarea:focus { box-shadow: none; }
.composer .bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 12px 14px; }
.attach { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 980px; color: var(--ink); cursor: pointer; min-height: 44px; font-weight: 500; }
.attach:hover { background: var(--soft); }
.attach small { color: var(--muted); font-size: .86rem; }
.attach.small { align-self: flex-start; background: var(--panel); }
.files { list-style: none; margin: 0; padding: 0 22px 6px; display: grid; gap: 4px; font-size: .92rem; color: var(--muted); }
.files li b { color: var(--ink); font-weight: 600; }
.files li.ok span { color: var(--done); }
.files li.err span { color: var(--live); }
.tip { margin-top: 12px; color: var(--muted); font-size: .94rem; max-width: 52ch; }
.under { margin-top: 4px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }

/* demo: what you get from just the teams */
.demo { margin: 0; min-width: 0; }
.demo figcaption { font-size: .94rem; color: var(--muted); margin: 0 0 10px 4px; }
.demo figcaption .typed { font-weight: 600; color: var(--ink); }
.device { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 28px; box-shadow: 0 24px 60px rgba(0, 0, 0, .10); padding: 18px 0 10px; overflow: hidden; }
.d-head { padding: 0 18px; display: flex; flex-direction: column; gap: 2px; }
.d-head b { font: 700 1.35rem/1.15 var(--display); letter-spacing: -.02em; }
.d-head span { color: var(--muted); font-size: .92rem; }
.d-tabs { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--soft); border-radius: 10px; padding: 3px; margin: 14px 18px 6px; font-weight: 600; font-size: .9rem; text-align: center; color: var(--muted); }
.d-tabs span { padding: 7px 4px; border-radius: 8px; }
.d-tabs .on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.d-tbl td { padding-block: 9px; font-size: .97rem; }
.d-tbl .nm { width: 42%; }
.d-tbl tr.live td { background: var(--live-soft); }
.d-sub { font: 700 1.05rem var(--display); padding: 14px 18px 2px; letter-spacing: -.01em; }

/* question flow */
.flow, .result { padding-block: 26px 10px; max-width: 820px; }
.ask { background: var(--soft); border-radius: 24px; padding: clamp(20px, 4vw, 34px); }
.step { font: 600 .9rem var(--body); color: var(--muted); margin-bottom: 6px; }
.ask h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.ask-body { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.ask-body input, .ask-body textarea { font-size: 1.12rem; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { appearance: none; border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 980px; padding: 12px 20px; min-height: 52px; min-width: 64px; font: 600 1.12rem var(--body); cursor: pointer; }
.pick small { font-weight: 400; color: var(--muted); font-size: .85em; }
.pick:hover { border-color: var(--ink); }
.pick[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pick[aria-pressed="true"] small { color: #d2d2d7; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.two label span { display: block; font-weight: 600; margin-bottom: 6px; }
.ask-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.ask-bar .row { gap: 14px; margin-left: auto; }

/* result */
.res-head { text-align: center; padding-bottom: 18px; }
.res-head h2 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
.res-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; color: var(--muted); margin-top: 10px; font-size: 1.02rem; }
.res-actions { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 20px; }
.res-head .hint { margin-top: 4px; }
.warnbox { margin: 14px auto 0; max-width: 52ch; background: var(--live-soft); color: #9b0010; border-radius: var(--r-s); padding: 10px 14px; }
.adjust { background: var(--soft); border-radius: var(--r); margin-bottom: 14px; }
.adjust > summary { padding: 6px 18px; color: var(--link); font-weight: 500; list-style: none; justify-content: center; }
.adjust > summary::-webkit-details-marker { display: none; }
.adjust-body { padding: 4px 16px 18px; display: grid; gap: 14px; }
.facts-edit { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.fact { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; background: var(--panel); border-radius: var(--r-s); min-width: 0; }
.fact span { font: 500 .84rem var(--body); color: var(--muted); }
.fact input, .fact select { padding: 2px 0; min-height: 34px; border: 0; border-radius: 0; font-weight: 600; background: transparent; box-shadow: none; }
.cats { display: grid; gap: 8px; }
.cat { display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; padding: 12px; background: var(--panel); border-radius: var(--r-s); }
.cat b { font: 700 1.12rem var(--display); }
.cat select { grid-column: 1 / -1; }
.plans { display: grid; gap: 8px; }
.plan { text-align: left; display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: center; padding: 14px; border: 2px solid transparent; border-radius: var(--r-s); background: var(--panel); cursor: pointer; font: inherit; color: inherit; min-height: 64px; }
.plan:hover { border-color: var(--line); }
.plan[aria-pressed="true"] { border-color: var(--ink); }
.plan .dot { width: 20px; height: 20px; border: 2px solid var(--line); border-radius: 50%; }
.plan[aria-pressed="true"] .dot { border: 6px solid var(--ink); }
.plan .k { font-weight: 600; }
.plan .v { font: 700 1.3rem/1 var(--display); text-align: right; }
.plan .v small { font: 400 .85rem var(--body); color: var(--muted); }
.plan .d { grid-column: 2 / -1; font-size: .94rem; color: var(--muted); }
.warn { color: var(--live); font-weight: 600; }

/* timeline preview (time x pitch) */
.timeline { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--r); background: var(--panel); }
.timeline table { font-size: .97rem; }
.timeline th, .timeline td { border-bottom: 1px solid var(--line-soft); padding: 9px 12px; text-align: left; white-space: nowrap; vertical-align: top; }
.timeline th { position: sticky; top: 0; background: var(--panel); font: 600 .86rem var(--body); color: var(--muted); }
.timeline td.t { font: 600 1.02rem var(--body); }
.timeline tr:last-child td { border-bottom: 0; }
.cell { display: flex; flex-direction: column; gap: 4px; min-width: 170px; }
.cell .tm { display: flex; align-items: center; }
.cell .tbd { color: var(--muted); }
.cell small { color: var(--muted); font-size: .82rem; }

/* below the fold on home */
.more { padding-block: 40px 10px; }
.links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 16px; }
.links a { color: var(--link); text-decoration: none; }
.links a:hover { text-decoration: underline; }

/* lists */
.list td { padding: 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.list td:first-child { padding-left: 18px; }
.list tr:last-child td { border-bottom: 0; }
.list .d { white-space: nowrap; font: 600 1rem var(--body); width: 1%; }
.list a { font-weight: 600; text-decoration: none; }
.list a:hover { text-decoration: underline; }
.list .m { color: var(--muted); font-size: .92rem; }
.steps { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); counter-reset: s; gap: 8px; padding: 0 18px 18px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--yellow); font: 700 1rem var(--body); }
.hero { padding-block: 34px 18px; }
.hero .lede { font-size: 1.2rem; color: var(--muted); max-width: 60ch; margin-top: 10px; }
section.block { padding-block: 12px; }
footer.site { background: var(--soft); color: var(--muted); padding-block: 28px 44px; margin-top: 40px; font-size: .9rem; }
footer.site .brand { font-size: 1.15rem; color: var(--ink); }
footer.site .cols { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
footer.site b { color: var(--ink); font-weight: 600; }
footer.site a { text-decoration: none; display: block; padding: 4px 0; }
footer.site a:hover { text-decoration: underline; color: var(--ink); }
.copy { display: flex; gap: 6px; align-items: stretch; }
.copy input { font-size: .92rem; }
.prose { max-width: 70ch; }
.prose p + p { margin-top: 10px; }
.prose h2 { margin-top: 24px; margin-bottom: 8px; }
code { font: .9em ui-monospace, "SF Mono", Menlo, monospace; background: var(--soft); padding: 2px 6px; border-radius: 6px; }
pre { font: .9rem/1.55 ui-monospace, "SF Mono", Menlo, monospace; background: var(--soft); border-radius: var(--r-s); padding: 14px; overflow-x: auto; white-space: pre-wrap; }
details > summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }

/* score entry (organizer / referee) */
.entry { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
.score-card { border: 1px solid var(--line-soft); background: var(--panel); border-radius: var(--r); overflow: hidden; }
.score-card .hdr { display: flex; justify-content: space-between; gap: 8px; background: var(--soft); padding: 9px 14px; font-size: .95rem; }
.score-card .hdr b { font: 700 1.1rem var(--body); }
.score-card.live { border-color: var(--live); }
.score-card.live .hdr { background: var(--live-soft); }
.score-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 8px; align-items: center; padding: 10px 14px; }
.score-row .nm { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score-row .val { font: 700 2rem/1 var(--display); min-width: 1.6ch; text-align: center; }
.score-row .step { width: 54px; height: 54px; border: 0; border-radius: 50%; background: var(--soft); font: 600 1.6rem var(--body); color: var(--ink); cursor: pointer; margin: 0; }
.score-row .step.plus { background: var(--yellow); }
.score-card .acts { display: flex; gap: 8px; flex-wrap: wrap; padding: 4px 14px 14px; }
.score-card .acts .btn { flex: 1; }
.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: rgba(29, 29, 31, .94); color: #fff; padding: 12px 20px; border-radius: 980px; font-weight: 600; z-index: 50; max-width: calc(100% - 24px); }
.tbl .t small.ms { display: block; font: 500 .8rem/1.2 var(--body); color: var(--muted); letter-spacing: 0; white-space: normal; max-width: 7.5em; }
.tbl tr.newslot td { border-top: 1px solid var(--line); }
.tbl.sched td { padding-block: 9px; }
.tbl.sched .nm { font-size: 1rem; }
@media (max-width: 420px) { .tbl td, .tbl th { padding-inline: 6px; } .tbl td:first-child { padding-left: 12px; } .tbl .sc { font-size: 1.1rem; } .two { grid-template-columns: 1fr; } }
.tb.after { margin-right: 0; margin-left: .5em; }
.attach span, .composer .btn { white-space: nowrap; }
@media (max-width: 760px), (min-width: 980px) and (max-width: 1180px) { .composer .attach small { display: none; } }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.free-tag { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 980px; background: var(--ink); color: var(--yellow); font-weight: 700; font-size: .94rem; }
.free-line { margin-top: 8px; font-weight: 600; font-size: .98rem; max-width: 52ch; }

/* ---------- organizer: referee links + access ---------- */
.reflinks { display: grid; gap: 8px; }
.reflink { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; padding: 10px 12px; background: var(--soft); border-radius: var(--r-s); }
.reflink .rl-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.reflink input { font-size: .86rem; min-height: 38px; padding: 6px 10px; background: var(--panel); }
.reflink .rl-acts { grid-column: 1 / -1; display: flex; gap: 8px; }
.reflink .rl-acts .btn { flex: 1; min-height: 44px; background: var(--panel); }
@media (min-width: 720px) { .reflink { grid-template-columns: auto 1fr auto; } .reflink .rl-acts { grid-column: auto; } .reflink .rl-acts .btn { flex: none; } }
.ptile.mini { min-width: 44px; padding: 6px 8px; border-radius: 10px; font: 800 1.2rem/1 var(--display); }
.access { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; border-top: 1px solid var(--line-soft); }
.radio { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.radio input { width: 22px; height: 22px; min-height: 0; margin: 0; }
.pwrow { display: flex; flex-direction: column; gap: 6px; }
.access .btn { align-self: flex-start; }

/* ---------- referee app ---------- */
.ref-app { min-height: 100vh; background: var(--soft); }
.ref-top { position: sticky; top: 0; z-index: 10; background: rgba(22, 22, 23, .92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: #fff; padding: 10px max(16px, env(safe-area-inset-left)) 10px; }
.ref-t { max-width: 720px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; }
.ref-t > b { font: 600 .98rem var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #e8e8ed; }
.ref-pitch { appearance: none; border: 0; background: rgba(255,255,255,.12); color: #fff; border-radius: 980px; padding: 4px 14px 4px 4px; display: inline-flex; align-items: center; gap: 10px; font: 600 1rem var(--body); cursor: pointer; flex: none; min-height: 48px; }
.ref-pitch small { color: var(--yellow); font-size: .82rem; font-weight: 600; }
.ref-pitch .ptile.mini { color: var(--ink); }
.ref-main { max-width: 720px; margin: 0 auto; padding: 18px max(16px, env(safe-area-inset-left)) 60px; }
.ref-main > h1 { font-size: clamp(2rem, 8vw, 2.6rem); margin: 12px 0 20px; }
.pitch-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.pp { appearance: none; border: 0; background: var(--panel); border-radius: 20px; padding: 18px 12px; display: flex; flex-direction: column; align-items: center; gap: 10px; font: 600 1.05rem var(--body); color: var(--ink); cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.05); min-height: 150px; justify-content: center; }
.pp .ptile b { font-size: 3.4rem; }
.pp.all { min-height: 150px; background: var(--ink); color: #fff; }
.now-card { background: var(--panel); border-radius: 24px; box-shadow: 0 6px 30px rgba(0,0,0,.07); overflow: hidden; border: 2px solid transparent; }
.now-card.live { border-color: var(--live); }
.now-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 16px 18px 6px; }
.now-h > b { font: 700 1.7rem/1 var(--display); letter-spacing: -.02em; }
.now-h .muted { flex-basis: 100%; font-size: .95rem; }
.big-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line-soft); }
.big-team { display: flex; align-items: center; min-width: 0; font: 700 1.25rem/1.2 var(--display); letter-spacing: -.01em; }
.big-team span:last-child { overflow: hidden; text-overflow: ellipsis; }
.big-team .tb { font-size: .9rem; }
.big-score { display: flex; align-items: center; gap: 8px; flex: none; }
.big-score .step { width: 64px; height: 64px; border: 0; border-radius: 50%; background: var(--soft); font: 500 2rem/1 var(--body); color: var(--ink); cursor: pointer; touch-action: manipulation; }
.big-score .step.plus { background: var(--yellow); }
.big-score .step:active { transform: scale(.94); }
.big-score .val { font: 800 2.8rem/1 var(--display); min-width: 1.4ch; text-align: center; font-variant-numeric: tabular-nums; }
.now-acts { display: flex; gap: 10px; padding: 14px 18px 18px; }
.now-acts .btn { flex: 1; }
.all-done { padding: 28px 20px; font: 600 1.2rem/1.4 var(--body); text-align: center; }
.ref-h2 { font-size: 1.15rem; margin: 26px 4px 10px; color: var(--muted); font-weight: 600; letter-spacing: -.01em; }
.ref-list { background: var(--panel); border-radius: var(--r); overflow: hidden; }
.rl { appearance: none; border: 0; background: none; width: 100%; display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 10px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); font: inherit; color: inherit; text-align: left; cursor: pointer; min-height: 56px; }
.rl:last-child { border-bottom: 0; }
.rl .t { font-weight: 700; font-variant-numeric: tabular-nums; }
.rl .tm { display: flex; align-items: center; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .97rem; }
.rl .sc { font-weight: 700; min-width: 2.6em; text-align: center; }
@media (max-width: 420px) { .big-score .step { width: 56px; height: 56px; } .big-score .val { font-size: 2.4rem; } .big-team { font-size: 1.1rem; } .rl { grid-template-columns: auto 1fr auto; } .rl .tm:last-child { grid-column: 2 / -1; } }
.login { padding-block: 40px; }
.login h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); }
/* phone overflow guards */
.start > *, .start-in, .demo, .device, .composer { min-width: 0; }
.ref-t > b { min-width: 0; }
.big-team > span:last-child { display: block; min-width: 0; white-space: nowrap; }
.rl { grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr); }
@media (max-width: 420px) { .rl { grid-template-columns: auto minmax(0, 1fr) auto; } }
html, body { overflow-x: clip; }
.big-team > span:last-child { white-space: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.15; }

/* phones: schedule rows stack home over away (like fudisturnaus), score on the right */
@media (max-width: 560px) {
  .tbl.sched thead { display: none; }
  .tbl.sched tr.match { display: grid; grid-template-columns: 4.1em 2.5em minmax(0, 1fr) auto; grid-template-areas: "t p h s" "t p a s"; align-items: center; border-bottom: 1px solid var(--line-soft); padding-block: 6px; }
  .tbl.sched tr.match:last-child { border-bottom: 0; }
  .tbl.sched tr.match.newslot { border-top: 1px solid var(--line); }
  .tbl.sched tr.match td { border: 0; padding: 3px 6px; display: block; }
  .tbl.sched tr.match > td:nth-child(1) { grid-area: t; padding-left: 14px; align-self: start; padding-top: 5px; }
  .tbl.sched tr.match > td:nth-child(2) { grid-area: p; width: auto; }
  .tbl.sched tr.match > td:nth-child(3) { grid-area: h; text-align: left; max-width: none; width: auto; display: flex; align-items: center; }
  .tbl.sched tr.match > td:nth-child(4) { grid-area: s; padding-right: 14px; font-size: 1.25rem; }
  .tbl.sched tr.match > td:nth-child(5) { grid-area: a; max-width: none; width: auto; display: flex; align-items: center; }
  .tbl.sched tr.match .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tbl.sched tr.match.live td { background: var(--live-soft); }
  .tbl.sched tr.match.live { background: var(--live-soft); }
  .tbl.sched tr.match.mine, .tbl.sched tr.match.mine td { background: var(--yellow-soft); }
  .tbl .t small.ms { max-width: 4.6em; font-size: .74rem; }
}
.pp .ptile small { display: none; }
@media (max-width: 560px) { .attach.small small { display: none; } .d-tbl tr.match > td:nth-child(1) { padding-left: 18px; } }

/* ---- start v3: one headline, one button ---- */
.start h1 { max-width: 16ch; }
.cta-wrap { margin-top: 28px; display: grid; justify-items: start; gap: 12px; }
.btn.big { font-size: 1.2rem; padding: 18px 34px; min-height: 60px; border-radius: 980px; }
.cta-wrap .free-line { margin: 0; color: var(--muted); font-weight: 500; }
.maker .composer { margin-top: 28px; }
.ai-line { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); display: grid; gap: 10px; max-width: 52ch; }
.ai-line p { margin: 0; }
.ai-line .mcp { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--soft); border-radius: 14px; padding: 10px 14px; }
.ai-line code { font: 500 .95rem ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); overflow-wrap: anywhere; flex: 1; min-width: 0; }
.ai-line a { color: var(--link); font-weight: 500; }
@media (max-width: 560px) { .cta-wrap .btn.big { width: 100%; justify-content: center; } .cta-wrap { justify-items: stretch; } }

/* ---- one question at a time ---- */
.flow { min-height: calc(100svh - 120px); padding-block: clamp(16px, 4vw, 48px) 24px; }
.ask { position: relative; }
.ask.drop, .flow.drop .ask { outline: 3px dashed var(--link); outline-offset: 4px; }
.ask-top { display: flex; align-items: center; justify-content: space-between; min-height: 32px; }
.ask-top .step { margin: 0; }
.ask .back { appearance: none; border: 0; background: none; color: var(--link); font: 500 1rem var(--body); padding: 6px 0; cursor: pointer; min-height: 32px; }
.prog { height: 4px; border-radius: 4px; background: rgba(25, 22, 19, .08); margin: 8px 0 22px; overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--ink); border-radius: 4px; transition: width .3s ease; }
.ask .hint.lead { margin-top: 8px; color: var(--muted); max-width: 56ch; }
.options { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.options.two-up { grid-template-columns: 1fr; max-width: 520px; }
.opt { appearance: none; text-align: left; border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 16px; padding: 16px 18px; min-height: 58px; font: 600 1.08rem var(--body); cursor: pointer; transition: border-color .12s, transform .08s; }
.opt:hover { border-color: var(--ink); }
.opt:active { transform: scale(.98); }
.opt[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.opt.big { padding: 20px 22px; font-size: 1.12rem; }
.other-n { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.other-n span { font-weight: 600; color: var(--muted); }
.other-n input { width: 110px; }
.paste-any { appearance: none; border: 0; background: none; color: var(--muted); display: flex; align-items: center; gap: 8px; margin-top: 22px; padding: 14px 0 0; border-top: 1px solid rgba(25, 22, 19, .08); width: 100%; text-align: left; font: 500 .98rem var(--body); cursor: pointer; }
.paste-any:hover span { color: var(--link); text-decoration: underline; }
.ask-bar .btn.primary { margin-left: auto; min-width: 140px; }
@media (max-width: 560px) {
  .ask { border-radius: 20px; }
  .options { grid-template-columns: 1fr 1fr; }
  .ask-bar { flex-direction: column-reverse; align-items: stretch; }
  .ask-bar .btn.primary { width: 100%; margin: 0; }
  .ask-bar .linkbtn { align-self: center; }
}
.toast { left: 12px; right: 12px; transform: none; margin-inline: auto; width: fit-content; text-align: center; line-height: 1.35; border-radius: 18px; }
.flow { scroll-margin-top: 70px; }
a.tl, a.pt { color: inherit; text-decoration: none; }
a.tl { display: inline-flex; align-items: center; gap: 0; max-width: 100%; }
a.tl:hover { text-decoration: underline; text-underline-offset: 3px; }
a.pt:hover { background: var(--line); }
.tbl.list .nm a { color: var(--ink); text-decoration: none; font-weight: 600; }
.tbl.list .nm a:hover { text-decoration: underline; }
.tlinks { display: grid; gap: 2px; max-height: 420px; overflow: auto; border-radius: 14px; background: var(--soft); padding: 6px; }
.tlink { display: flex; align-items: center; gap: 4px; padding: 6px 8px; border-radius: 10px; background: var(--panel); }
.tlink a { flex: 1; min-width: 0; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tlink a:hover b { text-decoration: underline; }
.btn.small { min-height: 36px; padding: 8px 14px; font-size: .9rem; }
.wrap-row { flex-wrap: wrap; gap: 8px; }
.drop-box { display: grid; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 6px 6px 8px; }
.drop-box textarea { border: 0; box-shadow: none; min-height: 150px; resize: vertical; }
.drop-box textarea:focus { box-shadow: none; }
.drop-box .attach.small { margin-left: 6px; }
.drop-box .files { padding: 0 12px 4px; }
.flow.drop .drop-box { border-color: var(--link); box-shadow: 0 0 0 4px rgba(0, 102, 204, .18); }
.btn.wide, .opt.wide { width: 100%; }
.opt.wide { display: flex; justify-content: space-between; align-items: center; }
.or-line { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .92rem; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: rgba(0, 0, 0, .1); }
.cta-note { margin: 0; max-width: 46ch; font-weight: 500; color: var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand img { border-radius: 7px; display: block; }
.connect-link { appearance: none; margin-top: 28px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border: 1px solid var(--line); background: var(--panel); border-radius: 980px; font: 600 1rem var(--body); color: var(--ink); cursor: pointer; min-height: 48px; }
.connect-link:hover { border-color: var(--ink); }
.ai-dots i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--yellow); font: 700 .78rem var(--body); font-style: normal; }
dialog.connect { border: 0; border-radius: 24px; padding: 24px; width: min(560px, calc(100% - 24px)); max-height: calc(100svh - 32px); overflow: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .25); color: var(--ink); background: var(--panel); }
dialog.connect::backdrop { background: rgba(0, 0, 0, .4); backdrop-filter: blur(4px); }
dialog.connect > * + * { margin-top: 14px; }
.c-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.c-head h2 { font-size: 1.5rem; }
.c-head .x { appearance: none; border: 0; background: var(--soft); width: 36px; height: 36px; border-radius: 50%; font-size: 1.4rem; line-height: 1; cursor: pointer; flex: none; }
.seg { display: flex; background: var(--soft); border-radius: 12px; padding: 3px; }
.seg button { flex: 1; appearance: none; border: 0; background: none; padding: 9px; border-radius: 9px; font: 600 .95rem var(--body); cursor: pointer; color: var(--ink); }
.seg button[aria-selected="true"] { background: var(--panel); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.c-steps { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.c-steps li::marker { font-weight: 700; }
dialog .mcp { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--soft); border-radius: 12px; padding: 10px 14px; margin-top: 8px; }
dialog .mcp code { font: 500 .92rem ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; flex: 1; min-width: 0; }
.c-try { background: #fffbe6; border-radius: 14px; padding: 12px 14px; }
.c-try p { margin: 4px 0 0; }
dialog .small { color: var(--link); display: inline-block; }

/* ---- Foresee-style finish ---- */
.start h1 { font-size: clamp(2.7rem, 8vw, 4.6rem); max-width: 13ch; }
.thead h1 { font-size: clamp(2rem, 6vw, 3rem); }
.btn { font-weight: 700; }
.btn.primary { box-shadow: inset 0 -2px 0 rgba(25, 22, 19, .12); }
.btn.big { font: 400 1.35rem/1 var(--anton); letter-spacing: .04em; text-transform: uppercase; padding: 20px 36px; }
.btn:active, .opt:active, .pick:active { transform: translateY(1px); filter: brightness(.96); }
.tbl .sc, .score-big, .big-score .n { font-family: var(--anton); font-weight: 400; letter-spacing: .02em; }
.tbl .sc { font-size: 1.3rem; }
.top { background: var(--ink); }
.brand { font: 400 1.35rem/1 var(--anton); letter-spacing: .03em; text-transform: uppercase; }
.step, .label, .ask-top .step { font: 800 .72rem/1.2 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ask { background: var(--panel); border: 1.5px solid var(--line); }
.mod, .device, .composer, dialog.connect, .drop-box { border-color: var(--line); }
.tb { font-family: var(--body); font-weight: 800; letter-spacing: 0; }
.cta-note { color: var(--muted); }

/* demo card: sports-app game list */
.device { border: 1.5px solid var(--line); box-shadow: 0 1px 0 var(--line), 0 30px 60px -20px rgba(80, 60, 10, .22); border-radius: 26px; padding: 20px 0 8px; }
.d-head b { font: 400 1.7rem/1 var(--anton); letter-spacing: .02em; text-transform: uppercase; }
.d-head span { margin-top: 6px; }
.d-tabs { background: var(--tab); }
.d-tabs .on { background: var(--panel); }
.games { margin: 8px 0 0; }
.g { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 12px; padding: 11px 20px; position: relative; }
.g + .g::before { content: ""; position: absolute; top: 0; left: 96px; right: 20px; height: 1px; background: var(--line-soft); }
.g-time { display: grid; gap: 2px; font: 700 1.02rem/1 var(--body); }
.g-time small { font: 600 .74rem/1 var(--body); color: var(--muted); letter-spacing: .02em; }
.g-live { display: inline-flex; align-items: center; gap: 5px; color: var(--live); font: 800 .74rem/1 var(--body); letter-spacing: .14em; }
.g-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px var(--live-soft); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(214, 58, 38, .08); } }
@media (prefers-reduced-motion: reduce) { .g-live::before { animation: none; } }
.g-teams { display: grid; gap: 7px; min-width: 0; }
.g-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; min-width: 0; color: var(--muted); }
.g-row .g-n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; font-size: 1rem; }
.g-row .g-s { font: 400 1.25rem/1 var(--anton); min-width: 1.2ch; text-align: right; }
.g-row.w, .g.scheduled .g-row, .g.live .g-row { color: var(--ink); }
.g-row.w .g-n { font-weight: 800; }
.g.live .g-s { color: var(--live); }
.g .tb { font-size: .62rem; width: 2.2em; height: 2.2em; }
.g .tb.s { font-size: .54rem; width: 2.55em; height: 2.55em; }
.d-sub { font: 800 .72rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 18px 20px 6px; }
.d-tbl .pts { font: 400 1.2rem var(--anton); }
dialog.connect:focus, dialog.connect:focus-visible { outline: none; }
/* no tracked-out caps labels: plain sentence-case headings */
.step, .label, .ask-top .step { font: 600 .92rem/1.3 var(--body); letter-spacing: 0; text-transform: none; color: var(--muted); }
.d-sub { font: 800 1.1rem/1.2 var(--display); letter-spacing: -.005em; text-transform: none; color: var(--ink); padding: 20px 20px 6px; }
.ai-platform { margin: 32px 0 0; max-width: 44ch; color: var(--muted); }
.ai-platform + .connect-link { margin-top: 12px; }
/* compact live tag: always "LIVE" (understood in every language), never wider than the time column */
.g { grid-template-columns: minmax(64px, max-content) minmax(0, 1fr); }
.livetag { white-space: nowrap; }
.drop-box textarea { min-height: 112px; }
.path-card { appearance: none; width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; text-align: left; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 18px; background: var(--panel); color: var(--ink); cursor: pointer; font: inherit; transition: border-color .12s, transform .08s; }
.path-card:hover { border-color: var(--ink); }
.path-card:active { transform: translateY(1px); }
.pc-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--yellow); color: var(--ink); }
.pc-txt { display: grid; gap: 2px; min-width: 0; }
.pc-txt b { font-weight: 800; font-size: 1.08rem; line-height: 1.2; }
.pc-txt small { color: var(--muted); font-size: .92rem; }
.pc-go { font-size: 1.3rem; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 100%; }
/* sweep fixes */
a.tl { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
a.tl .tb { vertical-align: middle; }
.tbl th::first-letter { text-transform: uppercase; }
@media (max-width: 430px) { .tabs a { font-size: .86rem; padding-inline: 2px; letter-spacing: -.01em; } }
.opt.sp { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.sp-i { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--soft); font-size: 1.45rem; line-height: 1; }
.opt.sp[aria-pressed="true"] .sp-i { background: rgba(255, 255, 255, .14); }
.opt.rich { display: grid; gap: 3px; text-align: left; }
.opt.rich b { font-weight: 800; }
.opt.rich small { font-weight: 500; font-size: .9rem; color: var(--muted); }
.opt.rich[aria-pressed="true"] small { color: rgba(255, 255, 255, .75); }
.opt.rec { border-color: var(--ink); background: var(--yellow-soft); }
.options.sports { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
@media (max-width: 560px) { .options.sports { grid-template-columns: repeat(2, minmax(0, 1fr)); } .opt.sp { gap: 9px; padding: 10px; } .sp-i { width: 34px; height: 34px; font-size: 1.2rem; } }
.opt.sp > span:last-child { min-width: 0; overflow-wrap: anywhere; hyphens: auto; line-height: 1.15; }
.opt.sp > span:last-child { hyphens: manual; overflow-wrap: break-word; }
@media (max-width: 560px) { .opt.sp { font-size: .93rem; letter-spacing: -.01em; } .options.sports { gap: 8px; } }
/* account */
.top .acct { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; }
.top .acct:hover { background: rgba(255, 255, 255, .12); }
.login .h-plain, .h-plain { font-family: var(--display); font-weight: 800; text-transform: none; letter-spacing: -.01em; font-size: clamp(1.6rem, 5vw, 2.1rem); }
.login-form { display: grid; gap: 12px; margin-top: 18px; }
.login-form .lf-email, .login-form .lf-code { display: grid; gap: 10px; }
.login-form input { font-size: 1.15rem; }
.login-form #lf-c { font: 700 1.6rem/1 ui-monospace, Menlo, monospace; letter-spacing: .3em; text-align: center; }
.login-form .linkbtn { justify-self: start; }
.pub-login { margin-top: 16px; background: var(--panel); border: 1.5px solid var(--line); border-radius: 18px; padding: 18px; text-align: left; }

/* docs */
.docs { padding-block: 20px 56px; max-width: 900px; }
.docs-nav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.docs-nav a { flex: none; padding: 9px 14px; border-radius: 980px; text-decoration: none; font-weight: 600; color: var(--muted); background: var(--soft); white-space: nowrap; }
.docs-nav a[aria-current="page"] { background: var(--ink); color: var(--panel); }
.docs-head { margin: 26px 0 10px; }
.docs-head h1 { font-size: clamp(2.2rem, 7vw, 3.4rem); }
.docs-head .lede { margin-top: 10px; font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
.docs-sec { margin-top: 34px; }
.docs-sec h2 { font-size: 1.5rem; margin-bottom: 10px; }
.docs-sec h3 { font-size: 1.1rem; margin: 18px 0 8px; }
.docs-sec p + p { margin-top: 8px; }
.docs-list { margin: 8px 0 0; padding-left: 22px; display: grid; gap: 6px; }
.docs-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin-top: 18px; }
.docs-card { display: grid; gap: 6px; padding: 18px; border: 1.5px solid var(--line); border-radius: 18px; background: var(--panel); text-decoration: none; color: var(--ink); }
.docs-card:hover { border-color: var(--ink); }
.docs-card b { font-size: 1.15rem; font-weight: 800; }
.docs-card span { color: var(--muted); }
.docs-card .go { color: var(--ink); font-size: 1.2rem; }
.docs-tbl { overflow-x: auto; border: 1.5px solid var(--line); border-radius: 14px; background: var(--panel); margin-top: 10px; }
.docs-tbl table { width: 100%; min-width: 520px; }
.docs-tbl td { vertical-align: top; font-size: .95rem; }
.docs-tbl td:first-child { white-space: nowrap; }
.docs-sec code, .docs-tbl code { font: 500 .88em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--soft); padding: 1px 5px; border-radius: 5px; }
.docs pre { background: var(--ink); color: #f4f2ec; border-radius: 14px; padding: 14px 16px; margin: 10px 0 0; font: 500 .86rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.docs pre code { background: none; padding: 0; color: inherit; font: inherit; }
.docs-url { background: var(--yellow-soft); border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; overflow-wrap: anywhere; }
.docs-url code { font: 600 1rem ui-monospace, SFMono-Regular, Menlo, monospace; background: none; }
.docs-tool, .docs-ep { margin-top: 22px; padding-top: 18px; border-top: 1.5px solid var(--line-soft); }
.docs-tool h3, .docs-ep h3 { margin-top: 0; overflow-wrap: anywhere; }
.docs-ep .m { display: inline-block; font: 800 .78rem/1 var(--body); padding: 5px 8px; border-radius: 6px; background: var(--soft); vertical-align: 2px; }
.docs-ep .m.post { background: var(--yellow); }
.docs-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.docs-chips span { padding: 6px 10px; border-radius: 10px; background: var(--panel); border: 1.5px solid var(--line); font-size: .92rem; }
.docs-chat { display: grid; gap: 8px; }
.docs-chat p { margin: 0; padding: 10px 14px; border-radius: 16px; max-width: 86%; }
.docs-chat p b { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 2px; }
.docs-chat .you { justify-self: end; background: var(--yellow-soft); }
.docs-chat .ai { background: var(--panel); border: 1.5px solid var(--line); }
/* live = calm green blink, no movement */
:root { --live: #17804a; --live-soft: #dff3e8; }
.g-live::before, .livedot::before { animation: blink 1.4s ease-in-out infinite; box-shadow: none; }
@keyframes blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .g-live::before { animation: none; } }

/* ===== Type system (final word; keep all type on this scale) =====
   Anton: h1 page titles, logo, scores only.  Barlow: everything else.
   Sizes: --t-s .92rem (meta, hints, labels) · --t-m 1rem (body, inputs, buttons) · --t-l 1.15rem (card titles, lead)
          --t-xl 1.5rem (section/question headings) · --t-2xl 2rem (page headings on docs)
   Weights: 500 text · 700 buttons, labels, names · 800 headings */
:root { --t-s: .92rem; --t-m: 1rem; --t-l: 1.15rem; --t-xl: 1.5rem; --t-2xl: 2rem; }
body { font-weight: 500; }
h2 { font: 800 var(--t-xl)/1.2 var(--display); letter-spacing: -.01em; }
h3 { font: 800 var(--t-l)/1.25 var(--display); letter-spacing: -.005em; }
.ask h2, .result h2, .res-head h2 { font: 800 var(--t-xl)/1.2 var(--display); }
@media (min-width: 700px) { .ask h2, .res-head h2 { font-size: 1.75rem; } }
p, li, .lede, .hint, .ask .hint.lead, .cta-note, .ai-platform, .muted { font-size: var(--t-m); line-height: 1.45; }
.start .lede { font-size: var(--t-l); }
.small, small, .label, .step, .ask-top .step, .facts, .g-time small, .opt.rich small, .pc-txt small, .attach small, .free-line, .tip { font-size: var(--t-s); }
input, select, textarea, .composer textarea, .drop-box textarea, .ask-body input, .ask-body textarea, .login-form input { font-size: var(--t-m); font-weight: 500; }
textarea::placeholder, input::placeholder { color: #9a9079; font-weight: 500; }
.btn, .btn.big, .pick, .opt, .opt.big, .seg button, .tabs a, .connect-link, .attach, .linkbtn, .back, .paste-any { font-family: var(--body); font-size: var(--t-m); letter-spacing: 0; text-transform: none; }
.btn, .pick, .connect-link { font-weight: 700; }
.btn.big { font-weight: 800; font-size: var(--t-l); padding: 16px 30px; min-height: 56px; }
.opt b, .opt.rich b, .pc-txt b, .opt.big b, .opt.sp { font-size: var(--t-m); font-weight: 700; }
.attach, .paste-any, .linkbtn, .back { font-weight: 600; }
.d-head b, .thead h1, .start h1, .docs-head h1, .hero h1 { font-family: var(--anton); font-weight: 400; text-transform: uppercase; }
.login .h-plain, .h-plain { font: 800 var(--t-xl)/1.2 var(--display); text-transform: none; }
.g-row .g-n, .tbl td, .tbl .nm { font-size: var(--t-m); }
.tbl th { font-size: var(--t-s); font-weight: 600; }
@media (max-width: 430px) { .tabs a { font-size: .86rem; padding-inline: 2px; } }
/* docs v2 */
.docs-2col { display: grid; gap: 28px; }
@media (min-width: 980px) { .docs-2col { grid-template-columns: 210px minmax(0, 1fr); } .docs-toc { position: sticky; top: 80px; align-self: start; } }
.docs-toc { display: grid; gap: 2px; }
.docs-toc a { color: var(--muted); text-decoration: none; padding: 5px 10px; border-radius: 8px; font-weight: 600; font-size: var(--t-s); }
.docs-toc a:hover { color: var(--ink); background: var(--soft); }
@media (max-width: 979px) { .docs-toc { display: flex; flex-wrap: wrap; gap: 6px; } .docs-toc .label { width: 100%; } .docs-toc a { background: var(--soft); } }
.docs-main { min-width: 0; max-width: 760px; }
.docs-hero-card { background: var(--panel); border: 1.5px solid var(--line); border-radius: 20px; padding: 20px; display: grid; gap: 14px; }
.docs-url { display: flex; align-items: center; gap: 10px; background: var(--yellow-soft); border-radius: 12px; padding: 12px 14px; }
.docs-url code { flex: 1; min-width: 0; overflow-wrap: anywhere; font: 600 var(--t-m) ui-monospace, Menlo, monospace; }
.docs-copy { appearance: none; border: 1.5px solid var(--line); background: var(--panel); border-radius: 980px; padding: 6px 12px; font: 700 var(--t-s) var(--body); cursor: pointer; color: var(--ink); flex: none; }
.docs-copy:hover { border-color: var(--ink); }
.docs-steps { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.docs-prompts { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.dp-group { background: var(--panel); border: 1.5px solid var(--line); border-radius: 18px; padding: 14px; display: grid; gap: 8px; align-content: start; }
.dp-group h3 { margin-bottom: 2px; }
.dp { display: flex; align-items: start; gap: 10px; justify-content: space-between; background: var(--soft); border-radius: 12px; padding: 10px 12px; }
.docs-flow { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); counter-reset: f; }
.docs-flow li { counter-increment: f; background: var(--panel); border: 1.5px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 4px; }
.docs-flow li::before { content: counter(f); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); font-weight: 800; }
.docs-flow span { color: var(--muted); font-size: var(--t-s); }
.docs-chat2 { display: grid; gap: 10px; }
.cb { max-width: 88%; border-radius: 18px; padding: 12px 14px; display: grid; gap: 4px; }
.cb .who { font-size: var(--t-s); font-weight: 700; color: var(--muted); }
.cb.you { justify-self: end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.cb.you .who { color: rgba(255, 255, 255, .7); }
.cb.ai { justify-self: start; background: var(--panel); border: 1.5px solid var(--line); border-bottom-left-radius: 6px; }
.docs-call { margin-top: 6px; }
.docs-call summary { cursor: pointer; color: var(--muted); font-size: var(--t-s); font-weight: 600; list-style: none; display: flex; align-items: center; gap: 8px; }
.docs-call summary::-webkit-details-marker { display: none; }
.tool-chip { font: 600 .8rem ui-monospace, Menlo, monospace; background: var(--yellow-soft); color: var(--ink); padding: 3px 8px; border-radius: 6px; }
.docs-tool2 { border-top: 1.5px solid var(--line); padding-top: 18px; margin-top: 18px; display: grid; gap: 8px; }
.docs-tool2 header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.badge-t { font-size: .8rem; font-weight: 700; padding: 3px 9px; border-radius: 980px; }
.badge-t.ro { background: var(--done-soft, #dff3e8); color: #116e3e; }
.badge-t.rw { background: var(--yellow-soft); color: var(--ink); }
.docs-faq { border-top: 1.5px solid var(--line); padding: 12px 0; }
.docs-faq summary { cursor: pointer; font-weight: 700; }
.docs-faq p { margin-top: 8px; color: var(--muted); }
.connect-link { margin-top: 24px; }
.tbl .t small.ms { max-width: 7em; overflow-wrap: normal; word-break: normal; hyphens: manual; line-height: 1.25; }
.tz-note { margin-top: 8px; font-size: var(--t-s); color: var(--muted); }
/* organizer edits */
details.ed { border-top: 1.5px solid var(--line); padding-top: 12px; }
details.ed > summary { cursor: pointer; font-weight: 800; list-style: none; display: flex; justify-content: space-between; }
details.ed > summary::after { content: "+"; font-weight: 700; color: var(--muted); }
details.ed[open] > summary::after { content: "−"; }
.ed-form { display: grid; gap: 10px; margin-top: 10px; }
.ed-row { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); align-items: end; }
.ed-form label { display: grid; gap: 4px; }
.ed-form .btn { justify-self: start; }
.small-picks .pick { min-height: 40px; padding: 6px 14px; font-size: var(--t-s); }
.ed-teams { display: grid; gap: 8px; margin-top: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.ed-team { display: grid; gap: 2px; }
.ed-admins { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.ed-admins li { display: flex; justify-content: space-between; align-items: center; background: var(--soft); border-radius: 10px; padding: 8px 12px; }
.ed-row > label, .ed-form label { min-width: 0; } .ed-form input, .ed-form select, .ed-form textarea { width: 100%; min-width: 0; }
img.tb-img { width: 1.75em; height: 1.75em; border-radius: 50%; object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 1px; vertical-align: middle; flex: none; display: inline-block; }
.g img.tb-img { width: 2.2em; height: 2.2em; }
/* registration */
.reg-cta { margin-top: 12px; }
.reg-form label { display: grid; gap: 4px; }
.reg-form .radio { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-s); }
.reg-form .radio input { margin-top: 3px; }
.reg-note { background: var(--yellow-soft); border-radius: 12px; padding: 10px 12px; white-space: pre-line; }
.okbox { background: #dff3e8; color: #116e3e; border-radius: 12px; padding: 12px 14px; font-weight: 700; }
.reg-list { display: grid; gap: 8px; }
.reg-item { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; background: var(--soft); border-radius: 12px; padding: 10px 12px; }
.reg-item > div:first-child { min-width: 0; flex: 1 1 220px; overflow-wrap: anywhere; }
.reg-item.declined { opacity: .55; }
.reg-acts { display: flex; gap: 6px; }
.ed-form input[type="checkbox"], .ed-form input[type="radio"], .reg-form input[type="checkbox"] { width: auto; flex: none; }
.ed-form label.radio, .reg-form label.radio { display: flex; align-items: center; gap: 10px; grid-template-columns: none; font-weight: 700; }
.reg-form label.radio { align-items: flex-start; font-weight: 500; }
/* branding + sponsors */
.thead[style*="--accent"] { border-top: 5px solid var(--accent); }
.t-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.t-title h1 { min-width: 0; overflow-wrap: anywhere; }
.t-logo { width: 56px; height: 56px; object-fit: contain; border-radius: 12px; background: #fff; border: 1px solid var(--line); flex: none; padding: 3px; }
.sponsors { margin-top: 18px; padding: 16px; background: var(--panel); border: 1.5px solid var(--line); border-radius: 18px; text-align: center; }
.sp-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 24px; margin-top: 8px; }
.sp-row img { max-height: 44px; max-width: 140px; object-fit: contain; display: block; }
.sp-row a, .sp-row .sp { color: var(--ink); text-decoration: none; font-weight: 700; }
.ref-assign { display: grid; gap: 6px; margin-top: 10px; max-height: 480px; overflow: auto; }
.ref-assign .ra { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 150px); gap: 10px; align-items: center; background: var(--soft); border-radius: 10px; padding: 8px 10px; }
.ref-assign select { width: 100%; min-width: 0; }
.ref-me { margin-left: 8px; color: var(--muted); font-weight: 600; }
.ed-admins .btn { background: var(--panel); border: 1.5px solid var(--line); }
/* compare */
.cmp-price { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.cmp-price > div { background: var(--panel); border: 1.5px solid var(--line); border-radius: 18px; padding: 16px; display: grid; gap: 4px; }
.cmp-price > div:first-child { border-color: var(--ink); background: var(--yellow-soft); }
.cmp-price b { font: 400 1.6rem/1.1 var(--anton); text-transform: uppercase; }
table.cmp th[scope="row"] { font-weight: 600; color: var(--ink); font-size: var(--t-m); }
table.cmp td { width: 28%; }
.cy { color: #116e3e; font-weight: 800; } .cn { color: var(--muted); } .cu { color: var(--muted); font-style: italic; }
.cmp-two { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.cmp-two > section { background: var(--panel); border: 1.5px solid var(--line); border-radius: 18px; padding: 18px; }
.cmp-two h3 { margin-top: 14px; }
@media (max-width: 600px) {
  table.cmp thead { display: none; }
  table.cmp, table.cmp tbody { display: block; }
  table.cmp tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; padding: 10px 16px; border-bottom: 1px solid var(--line-soft); }
  table.cmp th[scope="row"] { grid-column: 1 / -1; padding: 0; border: 0; }
  table.cmp td { width: auto; padding: 0; border: 0; display: grid; gap: 2px; }
  table.cmp td::before { content: attr(data-l); font-size: var(--t-s); color: var(--muted); font-weight: 600; }
}
@media (max-width: 600px) {
  .docs-tbl table.cmp { min-width: 0 !important; width: 100% !important; }
  table.cmp tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  table.cmp th[scope="row"], table.cmp td { overflow-wrap: anywhere; white-space: normal; }
}

/* messages to send */
.sk { display: grid; gap: 6px; }
.sk textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: .92rem; line-height: 1.45; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line, #e5ddc8); background: var(--card, #fff); color: inherit; resize: vertical; }
