/* TeamSorted: mobile-first styles. Light + dark via prefers-color-scheme. Club colours: pitch green and floodlight gold. */
:root {
  /* club palette: everything takes a little pitch-green tint */
  --bg: #edf2ec;
  --card: #ffffff;
  --ink: #10281d;
  --muted: #566a5d;
  --line: #d5dfd6;
  --field: #f4f7f3;
  --btn: #14492f;
  --on-btn: #ffffff;
  --band: #123c29;
  --band-2: #15442f;
  --gold: #a87600;
  --star: #f2b705;
  --blue: #1f5fd6;
  --on-blue: #ffffff;
  --orange: #c2410c;
  --on-orange: #ffffff;
  --grass: #2d7a4b;
  --grass-2: #358656;
  --chalk: rgba(255, 255, 255, .85);
  --good: #17803d;
  --bad: #b42318;
  --radius: 16px;
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #08130e;
    --card: #10201a;
    --ink: #e5eee8;
    --muted: #93a99b;
    --line: #20372b;
    --field: #0b1812;
    --btn: #45ad73;
    --on-btn: #04190e;
    --band: #0d2a1d;
    --band-2: #10311f;
    --gold: #f2b705;
    --blue: #5b9bff;
    --on-blue: #0b1220;
    --orange: #ff8a4c;
    --on-orange: #1a0d05;
    --grass: #21613b;
    --grass-2: #276b43;
    --good: #4ade80;
    --bad: #ff8a80;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.45 var(--body);
  padding-top: env(safe-area-inset-top, 0);
}
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; line-height: 1.1; letter-spacing: .01em; }
h1 { font-size: 38px; font-weight: 800; line-height: 1; letter-spacing: -.01em; margin-bottom: 14px; }
h2 { font-size: 24px; }
p { margin: 0 0 10px; }
button, input, select { font: inherit; color: inherit; }
img { display: block; }
.boot { padding: 40px; text-align: center; color: var(--muted); }
.muted { color: var(--muted); }
.small-text { font-size: 14px; }
:focus-visible { outline: 3px solid var(--btn); outline-offset: 2px; border-radius: 6px; }

/* ---------- layout ---------- */
.shell { max-width: 760px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
header.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; color: #fff; min-height: 58px;
  /* full-width club band with faint mowing stripes */
  background: repeating-linear-gradient(90deg, var(--band) 0 44px, var(--band-2) 44px 88px);
  box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax);
}
.brand { font: 800 24px/1 var(--display); display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-width: 0; }
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me { border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; flex: none; }
.me .disc { width: 36px; height: 36px; border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.12); color: #fff; }
header.top a:focus-visible { outline-color: var(--star); }
main { flex: 1; padding: 18px 16px calc(96px + env(safe-area-inset-bottom, 0)); }

.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  background: var(--card); border-top: 1px solid var(--line);
  display: flex; justify-content: center;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.tabs-inner { display: flex; width: 100%; max-width: 760px; }
.tabs a {
  position: relative; flex: 1; text-align: center; text-decoration: none; color: var(--muted);
  padding: 9px 4px 8px; font-size: 13px; font-weight: 600; min-height: 56px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.tabs a svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabs a.on { color: var(--ink); }
.tabs a.on svg { stroke: var(--btn); stroke-width: 2.4; }
/* the active tab gets a floodlight-gold bar along the top edge */
.tabs a.on::before { content: ""; position: absolute; top: -1px; left: 50%; width: 36px; height: 3px; margin-left: -18px; border-radius: 0 0 3px 3px; background: var(--star); }

/* ---------- cards & basics ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.card > h2 { margin-bottom: 10px; }
.rowhead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.rowhead h2 { margin: 0; }
.back { display: inline-block; margin: -6px 0 6px; color: var(--muted); text-decoration: none; font-weight: 600; padding: 6px 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--btn); color: var(--on-btn); border: 0; border-radius: 12px;
  padding: 0 18px; min-height: 48px; font-weight: 600; cursor: pointer; text-decoration: none;
}
.btn.block { width: 100%; }
.btn.ghost { background: var(--card); color: var(--ink); border: 1.5px solid var(--line); }
.btn.danger { background: transparent; color: var(--bad); border: 1.5px solid var(--bad); }
.btn.small { min-height: 40px; padding: 0 14px; border-radius: 10px; font-size: 15px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row .btn { flex: 1 1 140px; }

.field { display: block; margin-bottom: 14px; }
.field .lbl, .field > span:first-child { display: block; font-weight: 600; margin-bottom: 6px; }
input[type=date], input[type=text], input.num {
  width: 100%; min-height: 48px; padding: 0 12px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--field);
}
input.num { width: 72px; text-align: center; font: 700 22px var(--display); padding: 0 6px; }

.badge { display: inline-block; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--field); border: 1px solid var(--line); color: var(--ink); }
.badge.todo { background: var(--btn); color: var(--on-btn); border-color: var(--btn); }
.badge.win { background: var(--good); color: var(--bg); border-color: var(--good); }
.empty { text-align: center; padding: 28px 16px; }
.empty p { color: var(--muted); }

/* ---------- avatar disc ---------- */
.disc {
  display: inline-grid; place-items: center; overflow: hidden; flex: none;
  width: 40px; height: 40px; border-radius: 50%; background: var(--field);
  border: 2px solid var(--line); font: 700 16px var(--display); color: var(--ink);
}
.disc img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- login ---------- */
.hero { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.hero-in { max-width: 420px; width: 100%; text-align: center; }
.hero .mini-pitch { height: 120px; border-radius: var(--radius); margin-bottom: 26px; position: relative; overflow: hidden; background: repeating-linear-gradient(90deg, var(--grass) 0 36px, var(--grass-2) 36px 72px); }
.hero .mini-pitch::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--chalk); }
.hero .mini-pitch::after { content: ""; position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px; border: 2px solid var(--chalk); border-radius: 50%; }
.hero h1 { font-size: clamp(42px, 12vw, 56px); margin-bottom: 8px; }
.hero p { color: var(--muted); margin-bottom: 24px; }

/* ---------- match list ---------- */
.match { display: block; text-decoration: none; color: inherit; }
.match-row { display: flex; align-items: center; gap: 14px; }
.date-blk { text-align: center; min-width: 52px; font-family: var(--display); line-height: 1; }
.date-blk b { display: block; font-size: 38px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.date-blk span { font-size: 15px; color: var(--muted); font-weight: 600; }
.match-mid { flex: 1; min-width: 0; }
.match-mid .fmt { font: 700 20px/1.1 var(--display); }
.match-mid .sub { color: var(--muted); font-size: 14px; }
.scoreline { font: 700 34px/1 var(--display); white-space: nowrap; }
.scoreline { display: flex; align-items: center; gap: 4px; }
.scoreline .dash { color: var(--muted); padding: 0 4px; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }

/* ---------- segmented ---------- */
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.seg button {
  border: 1.5px solid var(--line); background: var(--field); border-radius: 12px; min-height: 58px;
  font: 700 20px/1.1 var(--display); cursor: pointer; padding: 6px 2px;
}
.seg button small { display: block; font: 500 12px var(--body); color: var(--muted); }
.seg button.on { background: var(--btn); color: var(--on-btn); border-color: var(--btn); }
.seg button.on small { color: inherit; opacity: .8; }

/* ---------- player picker ---------- */
.count { font: 700 24px var(--display); color: var(--muted); }
.count.ok { color: var(--good); } .count.over { color: var(--bad); }
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 4px 10px 4px 6px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--field); font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chip span .disc { width: 34px; height: 34px; font-size: 14px; }
.chip input:checked + span { border-color: var(--grass); background: color-mix(in srgb, var(--grass) 14%, var(--card)); }
.chip input:checked + span::after { content: "✓"; margin-left: auto; color: var(--good); font-weight: 700; }
.chip input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- THE PITCH ---------- */
.pitch-wrap { margin: 0 -4px 14px; }
/* The pitch grows to fit every row of players, so no names are ever clipped. */
.pitch {
  position: relative; width: 100%; max-width: 520px; margin: 0 auto;
  border-radius: 16px; overflow: hidden; display: flex; flex-direction: column;
  background: repeating-linear-gradient(180deg, var(--grass) 0 44px, var(--grass-2) 44px 88px);
  box-shadow: 0 0 0 3px var(--card), 0 0 0 4px var(--line);
}
.pitch .lines { position: absolute; inset: 14px; border: 2px solid var(--chalk); border-radius: 4px; pointer-events: none; }
.pitch .lines::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--chalk); transform: translateY(-1px); }
.pitch .lines::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; border: 2px solid var(--chalk); border-radius: 50%; transform: translate(-50%, -50%); }
.pitch .box { position: absolute; left: 50%; width: 46%; height: 13%; border: 2px solid var(--chalk); transform: translateX(-50%); pointer-events: none; }
.pitch .box.top { top: 14px; border-top: 0; }
.pitch .box.bot { bottom: 14px; border-bottom: 0; }
.half { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 34px 12px; }
.row { display: flex; justify-content: space-evenly; align-items: flex-start; gap: 4px; }
.team-tag {
  position: absolute; left: 24px; z-index: 2; font: 700 17px var(--display); padding: 2px 10px; border-radius: 99px;
}
.team-tag { background: var(--tc); color: var(--tc-on); box-shadow: 0 0 0 2px rgba(255,255,255,.85); max-width: calc(100% - 56px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.half.A .team-tag { top: 22px; }
.half.B .team-tag { bottom: 22px; }
.mid-score {
  position: absolute; left: 50%; top: 50%; z-index: 3; transform: translate(-50%, -50%);
  background: var(--card); color: var(--ink); border-radius: 12px; padding: 4px 16px 2px;
  font: 700 38px/1.1 var(--display); box-shadow: 0 2px 8px rgba(0,0,0,.25); white-space: nowrap;
}
.mid-score { display: flex; align-items: center; gap: 6px; padding: 5px 10px; }
.mid-score .dash { color: var(--muted); font-size: 30px; }
.tok { display: flex; flex-direction: column; align-items: center; width: 90px; position: relative; z-index: 1; }
.tok .disc { width: 46px; height: 46px; border: 3px solid; background: #fff; color: #14213d; font-size: 18px; box-shadow: 0 2px 5px rgba(0,0,0,.35); }
.tok .disc { border-color: var(--tc); box-shadow: 0 0 0 2px rgba(255,255,255,.9), 0 2px 5px rgba(0,0,0,.35); }

.tok .nm { margin-top: 3px; color: #fff; font: 600 13px/1.15 var(--body); text-shadow: 0 1px 3px rgba(0,0,0,.75); max-width: 90px; text-align: center; overflow-wrap: anywhere; }
.tok .gl { position: absolute; top: -7px; left: calc(50% + 15px); display: inline-flex; align-items: center; gap: 1px; padding: 1px 4px; border-radius: 999px; background: rgba(255,255,255,.95); box-shadow: 0 1px 3px rgba(0,0,0,.35); font-size: 13px; line-height: 1.2; color: #14213d; white-space: nowrap; z-index: 2; }
.tok .mo { position: absolute; top: -6px; right: calc(50% + 14px); width: 24px; height: 24px; border-radius: 50%; background: #f5b301; color: #fff; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); display: grid; place-items: center; font-size: 13px; line-height: 1; z-index: 2; }
.tok .gl b { font: 700 12px/1 var(--body); margin-left: 2px; }
.tok.me .nm { text-decoration: underline; text-underline-offset: 2px; }
.pitch.animate .tok { animation: drop .55s cubic-bezier(.2, 1.35, .4, 1) both; animation-delay: calc(var(--i) * 140ms + 150ms); }
@keyframes drop { from { opacity: 0; transform: translateY(-34px) scale(1.5); } to { opacity: 1; transform: none; } }
.pitch.animate .mid-score { animation: pop .4s ease both; animation-delay: 0ms; }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -50%) scale(.7); } }

/* ---------- score entry ---------- */
.score-entry { display: flex; align-items: flex-end; justify-content: center; gap: 14px; margin-bottom: 14px; }
.score-entry label { text-align: center; font-weight: 600; }
.score-entry label .lbl-name { display: flex; align-items: center; justify-content: center; gap: 6px; }
.score-entry input.num { display: block; width: 92px; min-height: 64px; font-size: 40px; margin-top: 6px; }
.score-entry .dash { font: 700 36px var(--display); padding-bottom: 10px; color: var(--muted); }

/* ---------- lists in cards ---------- */
.plist { list-style: none; margin: 0; padding: 0; }
.plist li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); min-height: 58px; }
.plist li:first-child { border-top: 0; }
.plist .who { flex: 1; min-width: 0; font-weight: 600; }
.plist .who small { display: block; font-weight: 400; color: var(--muted); }
.plist .goalsval { font: 700 24px var(--display); min-width: 32px; text-align: right; }
.sub-h { font: 700 18px var(--display); margin: 14px 0 2px; display: flex; align-items: center; gap: 8px; }
.sub-h:first-of-type { margin-top: 0; }


.sub-h small { font: 400 13px var(--body); color: var(--muted); margin-left: auto; }

.vote-list { display: grid; gap: 8px; margin-bottom: 14px; }
.vote-list button {
  display: flex; align-items: center; gap: 10px; text-align: left; width: 100%; min-height: 54px; padding: 4px 12px 4px 8px;
  border: 1.5px solid var(--line); background: var(--field); border-radius: 12px; font-weight: 600; cursor: pointer;
}
.vote-list button[aria-pressed=true] { border-color: var(--grass); background: color-mix(in srgb, var(--grass) 14%, var(--card)); }
.vote-list button[aria-pressed=true]::after { content: "✓"; margin-left: auto; color: var(--good); font-weight: 700; }
.result-bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 6px; }
.result-bar i { display: block; height: 100%; background: var(--grass); }

/* ---------- stats table ---------- */
.tablewrap { overflow-x: auto; margin: 0 -16px; padding: 0 16px; -webkit-overflow-scrolling: touch; }
table.stats { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 640px; font-variant-numeric: tabular-nums; }
.stats th, .stats td { padding: 10px 8px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
.stats th { font: 700 15px var(--display); position: sticky; top: 0; background: var(--card); }
.stats th button { background: none; border: 0; padding: 4px 2px; cursor: pointer; font: inherit; color: var(--muted); min-height: 32px; }
.stats th button[aria-pressed=true] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--grass); text-decoration-thickness: 3px; }
.stats th:first-child, .stats td:first-child { text-align: left; position: sticky; left: 0; background: var(--card); z-index: 1; }
.stats td:first-child { display: table-cell; font-weight: 600; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.stats td.k { font-weight: 700; }
.stats .nm-cell { display: flex; align-items: center; gap: 8px; }
.stats .nm-cell .disc { width: 28px; height: 28px; font-size: 12px; border-width: 1.5px; }
.stats .nm-cell span { overflow: hidden; text-overflow: ellipsis; }
.legend { margin-top: 12px; color: var(--muted); font-size: 14px; }
.legend b { color: var(--ink); }

/* ---------- toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom, 0)); transform: translate(-50%, 20px);
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; max-width: min(92vw, 460px);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; font-weight: 500;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.err { background: var(--bad); color: #fff; }

@media (min-width: 700px) {
  main { padding-top: 20px; }
  .tok { width: 104px; } .tok .nm { max-width: 104px; font-size: 14px; } .tok .disc { width: 54px; height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  .pitch.animate .tok, .pitch.animate .mid-score { animation: none; }
  #toast { transition: none; }
}

/* ---------- sign-in forms ---------- */
.login-form { text-align: left; }
.login-form .field { margin-bottom: 12px; }
input[type=email] {
  width: 100%; min-height: 48px; padding: 0 12px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--field);
}
.hero p.notice { color: var(--ink); background: var(--card); border: 1.5px solid var(--bad); border-radius: 12px; padding: 10px 14px; text-align: left; }
.hero .or { margin: 16px 0 12px; }

/* ---------- draw rules, share, admin extras ---------- */
.seg.two { grid-template-columns: 1fr 1fr; }
.rules { list-style: none; margin: 0; padding: 0; }
.rules li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-weight: 600; }
.rules li:first-child { border-top: 0; }
.inline-add { display: flex; gap: 8px; margin-top: 14px; }
.inline-add input { flex: 1; min-width: 0; min-height: 48px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--field); }
.inline-add .btn { flex: none; }
.btn.wa { background: #128c4a; color: #fff; }
.plist li.wrap { flex-wrap: wrap; }
.plist .acts { display: flex; gap: 8px; flex-wrap: wrap; width: 100%; padding-left: 50px; }

/* ---------- seasons + merge ---------- */
.years { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; -webkit-overflow-scrolling: touch; }
.years button { flex: none; min-height: 44px; min-width: 76px; padding: 0 16px; border: 1.5px solid var(--line); background: var(--card); border-radius: 99px; font: 700 20px var(--display); cursor: pointer; }
.years button.on { background: var(--btn); color: var(--on-btn); border-color: var(--btn); }
.merge-panel { border: 1.5px solid var(--line); background: var(--field); border-radius: 12px; padding: 14px; margin-bottom: 14px; }
.merge-panel h3 { font-size: 20px; margin-bottom: 8px; }
select { width: 100%; min-height: 48px; padding: 0 10px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); }

/* ---------- iPhone date field: stop Safari making it wider than its box ---------- */
input[type=date] {
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box;
  text-align: left; line-height: normal;
}
input[type=date]::-webkit-date-and-time-value { text-align: left; min-height: 1.5em; margin: 0; }
input[type=date]::-webkit-calendar-picker-indicator { margin: 0; }
.field { min-width: 0; }

/* ---------- team colours (fun only) ---------- */
.tc-red    { --tc: #c62828; --tc-on: #ffffff; }
.tc-orange { --tc: #c2410c; --tc-on: #ffffff; }
.tc-yellow { --tc: #f2c200; --tc-on: #1a1a1a; }
.tc-green  { --tc: #1b8a3a; --tc-on: #ffffff; }
.tc-blue   { --tc: #1f5fd6; --tc-on: #ffffff; }
.tc-purple { --tc: #7b3fc4; --tc-on: #ffffff; }
.tc-black  { --tc: #1a1a1a; --tc-on: #ffffff; }
.tc-white  { --tc: #f4f4f4; --tc-on: #1a1a1a; }
@media (prefers-color-scheme: dark) {
  .tc-red    { --tc: #ff6b6b; --tc-on: #2a0808; }
  .tc-orange { --tc: #ff8a4c; --tc-on: #1a0d05; }
  .tc-yellow { --tc: #ffd43b; --tc-on: #1a1a1a; }
  .tc-green  { --tc: #4ade80; --tc-on: #062010; }
  .tc-blue   { --tc: #5b9bff; --tc-on: #0b1220; }
  .tc-purple { --tc: #b794f4; --tc-on: #150a26; }
  .tc-black  { --tc: #3a3f48; --tc-on: #ffffff; }
  .tc-white  { --tc: #f4f4f4; --tc-on: #1a1a1a; }
}
.tdot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--tc); box-shadow: inset 0 0 0 1px rgba(128,128,128,.55); flex: none; }
.chip-score { display: inline-grid; place-items: center; min-width: 40px; padding: 2px 8px 0; border-radius: 8px; background: var(--tc); color: var(--tc-on); font: 700 30px/1.15 var(--display); box-shadow: inset 0 0 0 1px rgba(128,128,128,.5); }
.mid-score .chip-score { font-size: 34px; min-width: 46px; }
.sub-h { color: inherit; }
.team-style { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; margin-top: 12px; }
.team-style .ts-head { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 8px; }
.team-style input[type=text] { width: 100%; min-height: 48px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--field); margin-bottom: 10px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 8px; max-width: 100%; min-width: 0; }
.sw { position: relative; width: 100%; max-width: 48px; justify-self: center; aspect-ratio: 1; min-width: 0; border-radius: 50%; border: 2px solid transparent; background: var(--tc); box-shadow: inset 0 0 0 1px rgba(128,128,128,.55); cursor: pointer; padding: 0; color: var(--tc-on); font-weight: 700; display: grid; place-items: center; }
.sw span { visibility: hidden; font-size: 16px; }
.sw[aria-pressed=true] { border-color: var(--ink); outline: 2px solid var(--card); outline-offset: -5px; }
.sw[aria-pressed=true] span { visibility: visible; }

.team-style { min-width: 0; max-width: 100%; }
.team-style input[type=text] { max-width: 100%; box-sizing: border-box; }

.photo-row { display: flex; gap: 14px; align-items: center; }
.photo-row .disc { width: 64px; height: 64px; font-size: 22px; flex: none; }
label.btn { cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }

.vote-list.compact { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.vote-list.compact button { padding: 6px 8px; min-height: 44px; gap: 8px; font-size: 15px; }
.vote-list.compact button .disc { width: 30px; height: 30px; font-size: 12px; }
.vote-list.compact button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- folding admin sections (Members, Players) ---------- */
details.fold > summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 44px; margin: -6px 0; cursor: pointer; border-radius: 8px; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary h2 { margin: 0; }
.fold-meta { margin-left: auto; color: var(--muted); font-size: 14px; text-align: right; }
.chev { flex: none; width: 10px; height: 10px; border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted); transform: rotate(45deg); margin: -4px 4px 0 2px; transition: transform .2s; }
details.fold[open] > summary .chev { transform: rotate(-135deg); margin-top: 4px; }
details.fold > summary:hover .chev { border-color: var(--ink); }
.fold-body { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) { .chev { transition: none; } }

/* ---------- admin setting: who can see draw rules ---------- */
.seg.three { grid-template-columns: repeat(3, 1fr); }
.warn-note { padding: 8px 12px; border-radius: 10px; border: 1.5px solid var(--star); }

/* ---------- add to home screen ---------- */
.home-card h2 { font-size: 22px; margin-bottom: 4px; }
.home-steps { margin: 8px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.home-steps li { padding-left: 2px; }
.ico { display: inline-block; width: 18px; height: 18px; vertical-align: -3px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.home-tip { margin-top: 10px; }
.home-note { margin: 8px 0 0; }

/* ---------- admin: who uses the app from the home screen (Release 1.3) ---------- */
.plist .who small.hs { display: flex; align-items: center; gap: 6px; font-size: 13px; margin-top: 2px; }
.plist .who small.hs.yes { color: var(--good); font-weight: 600; }
.plist .who small.hs.stale { color: var(--muted); font-weight: 400; }
.hs-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.hs-sum { display: flex; align-items: center; gap: 14px; padding: 12px 14px; margin: 0 0 12px; border: 1.5px solid var(--line); border-radius: 12px; }
.hs-num { display: flex; align-items: baseline; gap: 4px; flex: none; }
.hs-num b { font: 700 30px var(--display); color: var(--good); line-height: 1; }
.hs-num span { color: var(--muted); font-weight: 600; }
.hs-sum small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.nudge-text { width: 100%; margin: 0 0 12px; font: 14px var(--body); padding: 10px; border-radius: 10px; border: 1.5px solid var(--line); background: transparent; color: inherit; }

/* ---------- Release 2: player cards, awards, season picture ---------- */
a.tok { text-decoration: none; color: inherit; -webkit-tap-highlight-color: transparent; }
a.tok:focus-visible { outline: 3px solid #fff; outline-offset: 2px; border-radius: 12px; }
a.nm-cell { color: inherit; text-decoration: none; }
a.nm-cell span { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.rowhead .btn.small { text-decoration: none; }
.award-actions { margin: -4px 0 14px; }
.award-actions .btn { text-decoration: none; }
.prof-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.prof-head .disc { width: 72px; height: 72px; font-size: 28px; }
.prof-head h1 { margin: 0; }
.award-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.award-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 99px; background: color-mix(in srgb, var(--star) 14%, var(--card)); border: 1.5px solid var(--star); color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tile { background: var(--band); color: #fff; border-radius: 10px; padding: 10px 6px 8px; text-align: center; min-width: 0; }
.tile b { display: block; font: 800 clamp(24px, 7.4vw, 32px)/1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -.01em; }
.tile span { display: block; font-size: 13px; color: rgba(255,255,255,.78); margin-top: 3px; }
.form-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.res { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; font: 700 16px var(--display); flex: none; }
.res-W { background: var(--good); color: var(--card); }
.res-D { background: var(--muted); color: var(--card); }
.res-L { background: var(--bad); color: var(--card); }
.game-link { display: flex; align-items: center; gap: 10px; width: 100%; color: inherit; text-decoration: none; }
.games-list li { padding: 6px 0; min-height: 52px; }
.gx { font-size: 15px; white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.gx .star { color: #e0a800; font-size: 18px; }
.awards { display: grid; gap: 0; }
.award { display: flex; gap: 14px; align-items: flex-start; }
.award-icon { font-size: 30px; line-height: 1; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--field); border: 1px solid var(--line); flex: none; }
.award-body { flex: 1; min-width: 0; }
.award-body h2 { margin: 0 0 2px; }
.award-body p { margin: 0; }
.holders { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.holders a, .holders .holder { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; font-weight: 600; padding: 4px 12px 4px 4px; border-radius: 99px; background: var(--field); border: 1px solid var(--line); min-height: 40px; box-sizing: border-box; }
.holders .holder.more { padding-left: 12px; color: var(--muted); }
.holders .disc { width: 32px; height: 32px; font-size: 13px; }
.award-val { font: 800 20px var(--display); margin-top: 6px !important; }
.award-none { color: var(--muted); margin-top: 8px !important; font-style: italic; }
.prov { font: 700 11px/1.6 var(--body); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 1px 8px; margin-left: 8px; vertical-align: middle; white-space: nowrap; }
.preview-note { margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; background: var(--field); border: 1px dashed var(--line); font-size: 14px; }
.preview-note a { color: inherit; font-weight: 600; }
.early-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--field); border: 1px dashed var(--line); font-size: 14px; }
.settle { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.settle i { width: 64px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--grass) calc(var(--p) * 100%), var(--line) 0); }
.feature-row .badge { margin-left: 6px; font-size: 12px; padding: 1px 8px; vertical-align: middle; }
.plist .feature-row .acts { padding-left: 0; }
.award-list .award-ico { font-size: 24px; width: 40px; text-align: center; flex: none; }
.award-list .acts { padding-left: 50px; }
.award-form { width: 100%; margin-top: 10px; padding: 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--field); box-sizing: border-box; }
.award-form h3 { font-size: 20px; margin: 0 0 10px; }
.award-form .lbl { display: block; font-weight: 600; margin-bottom: 6px; }
.award-form input[type=text] { width: 100%; box-sizing: border-box; background: var(--card); }
.ico-pick { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.ico-pick button { width: 44px; height: 44px; font-size: 22px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; padding: 0; }
.ico-pick button[aria-pressed=true] { border-color: var(--grass); box-shadow: inset 0 0 0 1.5px var(--grass); }
.plist .who small.seen { font-size: 13px; margin-top: 2px; }
.chase .plist .who small.seen-old { color: var(--bad); }
.chase .sub-h { margin-top: 12px; }

/* ---------- TeamSorted: logo, groups, plans, owner ---------- */
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ts-logo { display: flex; justify-content: center; margin-bottom: 18px; }
.ts-logo .ts-icon { border-radius: 22%; box-shadow: 0 8px 22px rgba(16, 40, 29, .18); }
.ts-word { font: 800 clamp(40px, 12vw, 56px)/1 var(--display) !important; max-width: 100%; letter-spacing: .02em; margin-bottom: 10px !important; }
.ts-word b { color: #1f8a4c; font-weight: inherit; }
.brand .ts-icon.sm { border-radius: 8px; flex: none; box-shadow: 0 0 0 1.5px rgba(255,255,255,.35); }
.gbadge { --h: 150; display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px;
  background: hsl(var(--h) 48% 30%); color: #fff; font: 700 18px/1 var(--display); letter-spacing: .03em; }
.gbadge.big { width: 76px; height: 76px; border-radius: 20px; font-size: 32px; margin: 0 auto 16px; display: grid; }
.gbadge.big0 { width: 64px; height: 64px; border-radius: 18px; font-size: 26px; }
.gbadge.sm { width: 34px; height: 34px; border-radius: 10px; font-size: 15px; box-shadow: 0 0 0 2px rgba(255,255,255,.7); }
.hero .kicker { font: 700 13px/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.glist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.gpick { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px; min-height: 68px; border: 1.5px solid var(--line);
  border-radius: 14px; background: var(--card); color: var(--ink); font: inherit; cursor: pointer; }
.gpick:hover { border-color: var(--muted); }
.gpick.on { border-color: var(--grass); box-shadow: inset 0 0 0 1px var(--grass); }
.gpick .gtxt { flex: 1; min-width: 0; }
.gpick b { display: block; font: 700 20px/1.1 var(--display); }
.gpick small { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }
.gpick .go { color: var(--muted); font-weight: 700; font-size: 20px; }
.gpick.on .go { font-size: 13px; color: var(--grass); }
a.brand { color: inherit; text-decoration: none; }
.brand .chev-s { flex: none; width: 9px; height: 9px; border-right: 2.5px solid rgba(255,255,255,.75); border-bottom: 2.5px solid rgba(255,255,255,.75); transform: rotate(45deg); margin: -5px 0 0 2px; }
.linkish { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.start-card h2 { font-size: 26px; }
.start-card .home-steps li { margin-bottom: 8px; }
.link-box, #start-url, #invite-url { width: 100%; margin: 4px 0 10px; }
textarea { width: 100%; min-height: 84px; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--field); font: inherit; color: inherit; resize: vertical; }
.notice { padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--grass); background: color-mix(in srgb, var(--grass) 8%, var(--card)); }
.made-with { text-align: center; margin: 18px 0 0; }

/* plans: reminders, locked previews ("teasers, not dead ends"), the Free / Plus table */
.plan-banner { border-color: var(--star); box-shadow: inset 4px 0 0 var(--star); }
.plan-banner h2 { font-size: 22px; margin-bottom: 6px; }
.plan-banner.urgent { background: color-mix(in srgb, var(--star) 10%, var(--card)); }
.lock-card { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; border-style: dashed; }
.lock-card .lock { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--star) 16%, var(--card)); font-size: 18px; }
.lock-card div { flex: 1; min-width: 0; }
.lock-card b { display: block; font: 700 19px/1.15 var(--display); }
.lock-card small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.lock-card .go, .owner-groups .go { color: var(--muted); font-weight: 700; font-size: 22px; flex: none; }
.lock-card:hover { border-color: var(--muted); }
.preview-art { position: relative; margin-top: 12px; border-radius: 12px; overflow: hidden; }
.preview-art .blur { filter: blur(3px); opacity: .7; pointer-events: none; user-select: none; padding: 4px; }
.preview-art .award { margin-bottom: 10px; }
.lock-pill { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--band); color: #fff; font: 700 18px var(--display); padding: 8px 16px; border-radius: 99px; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.plan-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.plan-tbl th, .plan-tbl td { text-align: left; vertical-align: top; padding: 8px 6px; border-top: 1px solid var(--line); }
.plan-tbl thead th { border-top: 0; font: 700 17px var(--display); padding-top: 0; }
.plan-tbl thead th:last-child { color: var(--gold); }
.plan-tbl tbody th { font-weight: 600; width: 34%; }
.plan-tbl td:last-child { font-weight: 600; }
.badge.plan-trial { border-color: var(--star); }
.badge.plan-plus, .badge.plan-complimentary { background: var(--band); color: #fff; border-color: var(--band); }

/* owner */
.owner-groups .game-link { min-height: 64px; }
.owner-groups .badge { font-size: 12px; padding: 1px 8px; vertical-align: middle; margin-left: 4px; }
.help-item .badge { font-size: 12px; padding: 1px 8px; }
.help-msg { margin: 6px 0 0 !important; font-weight: 400; white-space: pre-wrap; overflow-wrap: anywhere; }
.plist .help-item .acts { padding-left: 0; }
.sub-fold { margin-top: 12px; }
.sub-fold > summary { cursor: pointer; font-weight: 600; color: var(--muted); min-height: 40px; display: flex; align-items: center; }
.problems code { font: 600 14px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.problems details summary { cursor: pointer; color: var(--muted); font-size: 13px; margin-top: 4px; }
.problems pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; background: var(--field); padding: 8px; border-radius: 8px; margin: 6px 0 0; font-weight: 400; }
.help-list { margin-top: 12px; }
ul.checks { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; font-size: 15px; }
ul.checks li { display: flex; gap: 8px; align-items: baseline; }
ul.checks li span { flex: none; width: 18px; font-weight: 700; }
ul.checks li.ok span { color: var(--good); }
ul.checks li.todo { color: var(--muted); }
ul.checks i { font-style: normal; font-size: 13px; }
.plus-status { margin: 0; }

/* ---------- the front page, and the Privacy Policy and Terms pages ---------- */
.front, .doc-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.front > header.top, .doc-page > header.top { position: sticky; top: 0; z-index: 5; padding-left: max(16px, calc((100% - 1040px) / 2 + 16px)); padding-right: max(16px, calc((100% - 1040px) / 2 + 16px)); }
.band-btn { flex: none; background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.band-btn:hover { background: rgba(255,255,255,.22); }
.band-btn:focus-visible { outline-color: var(--star); }
.front-main { flex: 1; padding: 0 !important; }
.front-wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.front-main a:not(.btn), .doc a:not(.btn) { color: var(--btn); text-underline-offset: 2px; }
.front-hero { color: #fff; padding: 30px 0 44px; background: repeating-linear-gradient(90deg, var(--band) 0 44px, var(--band-2) 44px 88px); }
.front-hero-in { display: grid; gap: 28px; align-items: center; }
.front-hero-in > * { min-width: 0; }
@media (min-width: 860px) { .front-hero { padding: 56px 0 72px; } .front-hero-in { grid-template-columns: minmax(0, 1fr) minmax(340px, 400px); gap: 56px; } }
.front-intro .kicker { font: 700 13px/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--star); margin: 0 0 10px; }
.front-intro .ts-word { font-size: clamp(44px, 12.5vw, 80px) !important; margin-bottom: 14px !important; color: #fff; }
.front-intro .ts-word b { color: var(--star); }
.front .lede { font-size: clamp(19px, 4.8vw, 24px); line-height: 1.35; color: rgba(255,255,255,.9); max-width: 26em; margin: 0 0 18px; }
.front-ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 600; color: #fff; }
.front-ticks li::before { content: "✓"; color: var(--star); font-weight: 800; margin-right: 6px; }
.front-signin { background: var(--card); color: var(--ink); border-radius: 18px; padding: 20px; box-shadow: 0 18px 44px rgba(0,0,0,.3); }
.front-signin h2 { font-size: 30px; font-weight: 800; margin-bottom: 12px; }
.front-signin p.notice { color: var(--ink); background: var(--card); border-radius: 12px; padding: 10px 14px; }
.front-signin p.notice[role=alert] { border-color: var(--bad); }
.front-signin .agree, .hero .agree { margin: 14px 0 0; }
.hero .agree a { color: inherit; }
.front-sec { padding: 48px 0; }
.front-sec.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.front-h { font-size: clamp(32px, 7.5vw, 46px); font-weight: 800; line-height: 1.02; margin: 0 0 10px; }
.front-sub { color: var(--muted); font-size: 18px; max-width: 34em; margin: 0 0 24px; }
.feat-grid { display: grid; gap: 12px; }
@media (min-width: 600px) { .feat-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 940px) { .feat-grid { grid-template-columns: repeat(3, 1fr); } }
.feat { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.feat .fi { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; font-size: 22px; background: color-mix(in srgb, var(--grass) 16%, var(--card)); }
.feat h3 { font-size: 21px; margin: 2px 0 4px; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; }
.see-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 860px) { .see-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
.see-grid figure { margin: 0; }
.see-grid figcaption { color: var(--muted); font-size: 15px; margin: 12px auto 0; text-align: center; max-width: 26em; }
.see-grid .pitch-wrap { margin: 0; }
.see-grid .pitch { max-width: 400px; }
.sample-card { max-width: 420px; margin: 0 auto; }
.sample-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.sample-head .disc { width: 54px; height: 54px; font-size: 21px; }
.sample-head b { display: block; font: 800 26px/1.05 var(--display); }
.sample-head small { color: var(--muted); }
.steps { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 12px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; position: relative; padding: 16px 16px 16px 64px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 16px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--band); color: var(--star); font: 800 20px/1 var(--display); }
.steps h3 { font-size: 21px; margin: 4px 0; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
.plan-cards { display: grid; gap: 14px; margin-bottom: 16px; }
@media (min-width: 700px) { .plan-cards { grid-template-columns: 1fr 1fr; } }
.plan-card { margin: 0; padding: 20px; }
.plan-card h3 { font-size: 28px; font-weight: 800; }
.plan-card .price { margin: 8px 0 2px; color: var(--muted); }
.plan-card .price b { font: 800 46px/1 var(--display); color: var(--ink); margin-right: 4px; }
.plan-card.plus { border: 2px solid var(--star); box-shadow: 0 10px 30px color-mix(in srgb, var(--star) 16%, transparent); }
.plan-card.plus h3 { color: var(--gold); }
ul.ticks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
ul.ticks li { position: relative; padding-left: 26px; }
ul.ticks li::before { content: "✓"; position: absolute; left: 2px; top: 0; color: var(--good); font-weight: 800; }
ul.ticks li.lead { padding-left: 0; font-weight: 600; }
ul.ticks li.lead::before { content: none; }
.faq-list { max-width: 760px; margin-bottom: 22px; }
.faq { border-top: 1px solid var(--line); }
.faq:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 10px 0; font: 700 20px/1.2 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 600 26px/1 var(--body); color: var(--muted); }
.faq[open] summary::after { content: "−"; }
.faq p { color: var(--muted); margin: -2px 0 16px; max-width: 42em; }
.front-contact { margin: 0; font-size: 17px; }
.front-next { margin-top: 18px; padding: 16px 18px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); border-left: 5px solid var(--star); }
.front-next h3 { font-size: 22px; margin: 0 0 10px; }
.front-next ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 10px; }
.front-next li { display: flex; gap: 12px; align-items: flex-start; }
.front-next li > span { flex: none; font-size: 22px; line-height: 1.2; }
.front-next p { margin: 0; }
.land-foot { background: var(--band); color: rgba(255,255,255,.8); font-size: 14px; padding: 24px 0 calc(24px + env(safe-area-inset-bottom, 0)); }
.land-foot p { margin: 0 0 6px; }
.land-foot p:last-child { margin: 0; }
.land-foot a { color: #fff; }
.land-foot .legal-links { font-weight: 600; color: #fff; }
.made-with a { color: inherit; }
/* the Privacy Policy and Terms pages */
.doc-page main.doc { width: 100%; max-width: 760px; margin: 0 auto; padding: 28px 16px 48px; }
.doc h1 { font-size: clamp(38px, 10vw, 52px); margin-bottom: 6px; }
.doc h2 { font-size: 26px; margin: 34px 0 10px; }
.doc p, .doc li { max-width: 42em; }
.doc ul { padding-left: 22px; margin: 0 0 12px; }
.doc li { margin-bottom: 6px; }
.doc li ul { margin: 6px 0 0; }
.doc-summary { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--star); border-radius: var(--radius); padding: 2px 18px 6px; margin: 20px 0 6px; }
.doc-summary h2 { font-size: 22px; margin: 14px 0 8px; }
.doc-tbl { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: 15px; background: var(--card); border: 1px solid var(--line); }
.doc-tbl th, .doc-tbl td { text-align: left; vertical-align: top; padding: 10px 12px; border-top: 1px solid var(--line); }
.doc-tbl thead th { border-top: 0; background: var(--field); font: 700 17px var(--display); }
.doc-tbl tbody th { font-weight: 600; width: 34%; }
@media (max-width: 560px) { /* tables become stacked rows on a phone */
  .doc-tbl, .doc-tbl tbody, .doc-tbl tr, .doc-tbl th, .doc-tbl td { display: block; width: auto !important; }
  .doc-tbl thead { display: none; }
  .doc-tbl tr { padding: 10px 12px; border-top: 1px solid var(--line); }
  .doc-tbl tr:first-child { border-top: 0; }
  .doc-tbl th, .doc-tbl td { padding: 0; border: 0; }
  .doc-tbl tbody th { margin-bottom: 2px; }
  .doc-tbl td + td { color: var(--muted); margin-top: 2px; }
}
/* index.html's plain copy of the front page (for search engines and link previews) shows until the app takes over.
   Signed-in people, links and the home-screen app skip it and see "Loading…" instead. */
.seo-boot { display: none; }
.app-boot .seo-boot { display: block; }
.app-boot .seo-front { display: none; }
/* the free team picker (team-picker.html) */
.picker h1 { margin-bottom: 8px; }
.picker .lede { font-size: 18px; color: var(--muted); margin-bottom: 18px; }
.picker textarea { min-height: 150px; }
.pick-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 4px 0 14px; }
.picker #result { scroll-margin-top: 76px; } /* clear of the sticky header */
.pick-opts select { width: auto; min-width: 130px; min-height: 44px; padding: 0 10px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--field); font: inherit; color: inherit; }
.pick-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.pick-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: 600 15px var(--body); cursor: pointer; }
.pick-chip[aria-pressed="true"] { border-color: var(--star); background: color-mix(in srgb, var(--star) 16%, var(--card)); }
.pick-chip .gk { font-size: 15px; opacity: .35; }
.pick-chip[aria-pressed="true"] .gk { opacity: 1; }
.pick-teams { display: grid; gap: 12px; margin: 16px 0 12px; }
@media (min-width: 560px) { .pick-teams { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pick-team { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.pick-team h3 { margin: 0; padding: 10px 14px; background: var(--tc); color: var(--tc-on); font-size: 22px; display: flex; justify-content: space-between; align-items: baseline; }
.pick-team h3 small { font: 600 14px var(--body); opacity: .9; }
.pick-team ol { margin: 0; padding: 10px 14px 12px 36px; }
.pick-team li { padding: 3px 0; font-weight: 600; }
.pick-note { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.pick-cta { border-left: 5px solid var(--star); }
.missing { background: color-mix(in srgb, var(--star) 28%, transparent); outline: 1.5px dashed var(--gold); border-radius: 4px; padding: 0 3px; }
