/* KubbadNet — mobile-first styles. Colours come from the logo: green, black, white. */
:root {
  --green: #05732c; --green-d: #045c23; --green-l: #e7f4ec; --green-xl: #f3faf5;
  --ink: #11191c; --ink-2: #33403f; --muted: #67736f; --line: #e2e8e4; --bg: #f4f6f4; --card: #fff;
  --amber: #9a5b00; --amber-l: #fff4e0; --red: #b42318; --red-l: #fdecea; --blue: #1d4ed8; --blue-l: #eaf0ff;
  --wa: #128c4b;
  --r: 16px; --r-sm: 12px;
  --shadow: 0 1px 2px rgba(17, 25, 28, .05), 0 4px 16px rgba(17, 25, 28, .05);
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.45; -webkit-tap-highlight-color: transparent; }
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.15; }
h1 { font-size: 26px; font-weight: 800; }
h2 { font-size: 18px; font-weight: 750; }
p { margin: 0; }
img { display: block; max-width: 100%; }
.ic { width: 20px; height: 20px; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; justify-content: center; }
.center-block { display: flex; margin: 14px auto 0; justify-content: center; }
.grow { flex: 1; min-width: 0; }
:focus-visible { outline: 3px solid #7cc79a; outline-offset: 2px; }

/* splash */
.splash { position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; background: #fff; z-index: 100; font-weight: 800; font-size: 22px; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  height: calc(60px + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) max(14px, calc(50vw - 330px)) 0;
  background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.brand b { color: var(--green); font-weight: 800; }
.brand img { width: 34px; height: 34px; }
.top-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--ink); }
.icon-btn:active { background: var(--bg); }
.icon-btn .ic { width: 24px; height: 24px; }
.bell .dot { position: absolute; top: 2px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red);
  color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
.lang-btn { height: 34px; padding: 0 10px; border-radius: 10px; border: 1.5px solid var(--line); font-size: 13px; font-weight: 800; color: var(--ink-2); }

/* bottom tab bar */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px max(6px, calc(50vw - 330px)) calc(6px + var(--safe-b)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0 2px; font-size: 11.5px; font-weight: 650; color: var(--muted); }
.tab .ic { width: 24px; height: 24px; }
.tab.active { color: var(--green); }
.tab-post .post-circle { display: grid; place-items: center; width: 46px; height: 46px; margin-top: -18px; border-radius: 50%; background: var(--green);
  color: #fff; box-shadow: 0 6px 16px rgba(5, 115, 44, .35); border: 3px solid #fff; }
.tab-post .post-circle .ic { width: 26px; height: 26px; stroke-width: 2.4; }
.tab-post.active { color: var(--green); }

/* layout */
.main { min-height: 100vh; outline: none; }
.page { max-width: 660px; margin: 0 auto; padding: 18px 16px calc(100px + var(--safe-b)); display: flex; flex-direction: column; gap: 14px; }
.page-head { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; }
.page-head .lead, .lead { color: var(--muted); font-size: 15.5px; }
.section { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.section-head .count { min-width: 26px; height: 26px; padding: 0 8px; border-radius: 13px; background: var(--red); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.list { display: flex; flex-direction: column; gap: 12px; }
details.section > summary { cursor: pointer; font-weight: 700; color: var(--muted); padding: 6px 0; }
details.section > .card { margin-top: 8px; }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.skeleton { display: grid; gap: 10px; }
.skeleton div { height: 14px; border-radius: 7px; background: linear-gradient(90deg, #eef1ef, #f7f9f7, #eef1ef); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.skeleton div:first-child { width: 55%; height: 18px; }
.skeleton div:last-child { width: 35%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 16px; border-radius: var(--r-sm);
  font-weight: 750; font-size: 15.5px; line-height: 1.15; text-align: center; border: 1.5px solid transparent; transition: transform .06s, background .15s; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; pointer-events: none; }
.btn .ic { width: 20px; height: 20px; }
.btn-sm { min-height: 38px; padding: 6px 12px; font-size: 14.5px; }
.btn-lg { min-height: 54px; font-size: 17px; padding: 12px 20px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-d); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: #c9d3cd; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger-text { color: var(--red); }
.btn-white { background: #fff; color: var(--green-d); }
.btn-outline-white { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn.loading { position: relative; color: transparent !important; }
.btn.loading::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .5); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn-ghost.loading::after { border-color: var(--line); border-top-color: var(--green); }
@keyframes spin { to { transform: rotate(360deg); } }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row-btns.stretch > * { flex: 1 1 0; min-width: 0; }
.row-btns.stretch > .btn-primary:first-child:nth-last-child(3) { flex-basis: 100%; }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 700; font-size: 15px; }
.link .ic { width: 18px; height: 18px; }

/* pills, tags, ids */
.pill { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 13px; font-size: 13px; font-weight: 750; background: var(--bg); color: var(--ink-2); white-space: nowrap; }
.pill-open, .pill-confirmed, .pill-accepted, .pill-won { background: var(--green-l); color: var(--green-d); }
.pill-pending, .pill-result_due, .pill-draw { background: var(--amber-l); color: var(--amber); }
.pill-cancelled, .pill-declined, .pill-lost { background: var(--red-l); color: var(--red); }
.pill-completed, .pill-matched { background: var(--blue-l); color: var(--blue); }
.pill-expired, .pill-withdrawn { background: #eef0ef; color: var(--muted); }
.tag { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 14px; background: var(--green-xl); border: 1px solid var(--green-l); font-size: 13.5px; font-weight: 650; color: var(--green-d); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tags.center { justify-content: center; }
.kn-id { font: 600 12.5px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--muted); letter-spacing: .02em; }
.verified { display: inline-flex; align-items: center; gap: 4px; color: var(--green); font-size: 13px; font-weight: 750; vertical-align: middle; }
.verified .ic { width: 17px; height: 17px; }
.unverified { font-size: 13px; color: var(--muted); }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 10px; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; }

/* avatars */
.avatar { flex: none; border-radius: 50%; object-fit: cover; background: #fff; border: 1px solid var(--line); }
.avatar-txt { display: grid; place-items: center; font-weight: 800; border: 0; letter-spacing: -.02em; }

/* hero (guest home) */
.hero { position: relative; overflow: hidden; border-radius: 22px; padding: 26px 20px 22px; color: #fff;
  background: radial-gradient(120% 90% at 100% 0%, #0f9a42 0%, transparent 60%), linear-gradient(160deg, #067a30, #034d1d); box-shadow: 0 10px 30px rgba(5, 115, 44, .25); }
.hero::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; border: 28px solid rgba(255, 255, 255, .06); }
.hero-emblem { width: 72px; height: 72px; border-radius: 18px; background: #fff; padding: 6px; margin-bottom: 14px; }
.hero h1 { font-size: 30px; line-height: 1.08; max-width: 14ch; }
.hero p { margin-top: 10px; color: #d9f2e2; font-size: 16px; max-width: 40ch; }
.hero-actions { position: relative; z-index: 1; display: grid; gap: 10px; margin-top: 20px; }
@media (min-width: 520px) { .hero-actions { grid-template-columns: 1fr 1fr; } }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.stats3 > div { padding: 14px 6px; text-align: center; display: flex; flex-direction: column; }
.stats3 > div + div { border-left: 1px solid var(--line); }
.stats3 strong { font-size: 24px; font-weight: 800; color: var(--green); }
.stats3 span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.steps li > span { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; }
.steps p { color: var(--muted); font-size: 14.5px; margin-top: 2px; }

/* signed-in home */
.welcome h1 { font-size: 26px; }
.welcome p { color: var(--muted); margin-top: 4px; }
.onboard { display: grid; gap: 14px; }
.progress { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.progress li { display: flex; align-items: center; gap: 12px; font-weight: 650; color: var(--muted); }
.progress li b, .progress li > .ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); font-size: 14px; }
.progress li.done { color: var(--ink); }
.progress li.done > .ic { background: var(--green); color: #fff; border-color: var(--green); padding: 4px; }
.progress li.now { color: var(--ink); font-weight: 800; }
.progress li.now b { border-color: var(--green); color: var(--green); }
.team-hero { display: flex; align-items: center; gap: 14px; }
.team-hero small { color: var(--muted); font-weight: 600; }
.team-hero h1 { font-size: 24px; margin: 1px 0 3px; }
.team-hero .meta { display: block; color: var(--ink-2); font-size: 14px; font-weight: 600; margin-top: 2px; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick-btn { display: flex; flex-direction: column; gap: 3px; padding: 16px 14px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.quick-btn .ic { width: 28px; height: 28px; color: var(--green); margin-bottom: 6px; }
.quick-btn strong { font-size: 16px; line-height: 1.2; }
.quick-btn span { font-size: 13px; color: var(--muted); }
.quick-btn.primary { background: var(--green); border-color: var(--green); color: #fff; }
.quick-btn.primary .ic { color: #fff; background: rgba(255, 255, 255, .18); border-radius: 10px; padding: 4px; width: 32px; height: 32px; }
.quick-btn.primary span { color: #d9f2e2; }
.all-good { display: flex; gap: 12px; align-items: center; background: var(--green-xl); border-color: var(--green-l); box-shadow: none; }
.all-good > .ic { width: 34px; height: 34px; padding: 6px; border-radius: 50%; background: var(--green); color: #fff; stroke-width: 2.6; }
.all-good p { color: var(--muted); font-size: 14px; }
.todo { display: grid; gap: 12px; border-left: 4px solid var(--amber); }
.todo-head { display: flex; gap: 12px; align-items: center; }
.todo-head strong { display: block; font-size: 16px; line-height: 1.25; }
.todo-head small, .team-row small, .int-team small { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.switcher { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; border-radius: var(--r-sm); background: #fff; border: 1px solid var(--line); text-align: left; font-weight: 750; }
.switcher span { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.switcher small { color: var(--muted); font-weight: 600; font-size: 12px; }

/* match request card */
.req { display: grid; gap: 12px; }
.req-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.when { display: flex; align-items: center; gap: 10px; }
.when > .ic { width: 38px; height: 38px; padding: 8px; border-radius: 11px; background: var(--green-l); color: var(--green); }
.when strong { display: block; font-size: 16.5px; }
.when span { display: block; color: var(--ink-2); font-weight: 650; font-size: 14.5px; }
.cat { flex: none; padding: 5px 10px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 750; }
.req-team { display: flex; align-items: center; gap: 10px; }
.req-team strong { display: flex; align-items: center; gap: 4px; font-size: 15.5px; }
.req-team small { color: var(--muted); font-size: 13.5px; }
.req-where { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-2); font-size: 14.5px; }
.req-where .ic { width: 18px; height: 18px; margin-top: 1px; color: var(--muted); }
.need { color: var(--amber); font-style: normal; font-weight: 650; }
.note { padding: 10px 12px; border-radius: 10px; background: var(--bg); color: var(--ink-2); font-size: 14.5px; }
.req-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.req-foot .muted { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.req-foot .muted .ic { width: 18px; height: 18px; }
.req-sent { flex-direction: column; align-items: stretch; }
.ok-text { display: flex; align-items: center; gap: 6px; color: var(--green); font-weight: 750; font-size: 14.5px; }
.req.mine { border-left: 4px solid var(--green); }
.interested { display: grid; gap: 10px; }
.interested h3 { font-size: 15px; color: var(--green-d); }
.int-row { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: var(--green-xl); border: 1px solid var(--green-l); }
.int-team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.int-team strong { display: block; font-size: 15px; }
.waiting { display: flex; align-items: center; gap: 6px; }
.waiting .ic { width: 18px; height: 18px; }
.sent-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; }
.sent-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }

/* match card */
.match { display: grid; gap: 14px; }
.match-top { display: flex; justify-content: space-between; align-items: center; }
.versus { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.side { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; }
.side strong { font-size: 14.5px; line-height: 1.2; overflow-wrap: anywhere; }
.vs { font-weight: 900; color: var(--muted); font-size: 15px; padding: 6px 10px; border-radius: 10px; background: var(--bg); }
.score { font-size: 34px; font-weight: 900; letter-spacing: -.03em; display: flex; gap: 6px; align-items: center; }
.score span { color: var(--muted); font-weight: 500; }
.match-info { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; color: var(--ink-2); font-size: 14.5px; font-weight: 600; }
.match-info span { display: inline-flex; align-items: center; gap: 6px; }
.match-info .ic { width: 18px; height: 18px; color: var(--muted); }
.match-cancelled { opacity: .78; }
.match-cancelled .versus { filter: grayscale(1); }
.result-line { display: flex; align-items: center; justify-content: center; gap: 10px; }
.result-line .muted { display: inline-flex; gap: 4px; align-items: center; font-size: 14px; }
.result-line .ic { width: 16px; height: 16px; }
.callout { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--bg); font-size: 14.5px; }
.callout .ic { margin-top: 1px; }
.callout-amber { background: var(--amber-l); color: #5c3700; }
.callout-red { background: var(--red-l); color: var(--red); }

/* find page */
.segmented { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: #e6ebe8; }
.segmented.three { grid-template-columns: repeat(3, 1fr); }
.segmented a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; border-radius: 11px; font-weight: 750; font-size: 14.5px; color: var(--ink-2); }
.segmented a .ic { width: 18px; height: 18px; }
.segmented a.active { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.filters { display: grid; gap: 10px; }
.filter-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.filter-row::-webkit-scrollbar { display: none; }
.chip-select { position: relative; flex: none; display: flex; align-items: center; }
.chip-select select { appearance: none; -webkit-appearance: none; height: 40px; padding: 0 32px 0 14px; border-radius: 20px; border: 1.5px solid var(--line);
  background: #fff; font: inherit; font-size: 14.5px; font-weight: 650; color: var(--ink); }
.chip-select .ic { position: absolute; right: 10px; width: 16px; height: 16px; pointer-events: none; color: var(--muted); }
.chip-select.on select { border-color: var(--green); background: var(--green-l); color: var(--green-d); }
.search-box { position: relative; }
.search-box .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-box input { padding-left: 44px !important; }
.results-meta { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 14px; font-weight: 600; }
.team-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-align: left; width: 100%; }
.team-row strong { display: flex; align-items: center; gap: 4px; font-size: 16px; }
.team-row small .ic { width: 14px; height: 14px; vertical-align: -2px; margin-right: 2px; }
.team-row .chev { color: #b4beb9; }
.team-row.current { border-color: var(--green); background: var(--green-xl); }
.team-pick { display: grid; gap: 8px; }

/* team profile */
.profile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 22px 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.profile h1 { font-size: 25px; margin-top: 4px; }
.profile-ids { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.profile .muted { display: flex; align-items: center; gap: 4px; }
.profile .muted .ic { width: 16px; height: 16px; }
.academy-link { display: inline-flex; align-items: center; gap: 6px; color: var(--green-d); font-weight: 700; font-size: 14.5px; }
.academy-link .ic { width: 18px; height: 18px; }
.avail { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; }
.avail span { width: 9px; height: 9px; border-radius: 50%; }
.avail.yes { color: var(--green); } .avail.yes span { background: var(--green); box-shadow: 0 0 0 4px var(--green-l); }
.avail.no { color: var(--muted); } .avail.no span { background: #b4beb9; }
.profile-actions { display: grid; gap: 8px; width: 100%; margin-top: 8px; }
@media (min-width: 480px) { .profile-actions { grid-template-columns: 1fr 1fr; } .profile-actions > p { grid-column: 1 / -1; } }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.stat-row > div { padding: 12px 4px; text-align: center; display: flex; flex-direction: column; }
.stat-row > div + div { border-left: 1px solid var(--line); }
.stat-row strong { font-size: 22px; font-weight: 800; }
.stat-row span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.hist { padding: 4px 14px; }
.hist-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; font-size: 15px; }
.hist-row + .hist-row { border-top: 1px solid var(--line); }
.hist-date { width: 92px; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.wdl { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; font-size: 13px; font-weight: 800; color: #fff; }
.wdl-won { background: var(--green); } .wdl-draw { background: #9aa5a0; } .wdl-lost { background: var(--red); }
.details { display: grid; gap: 0; padding: 4px 16px; margin: 0; }
.details > div { padding: 11px 0; }
.details > div + div { border-top: 1px solid var(--line); }
.details dt { font-size: 13px; color: var(--muted); font-weight: 650; }
.details dd { margin: 2px 0 0; font-weight: 600; }

/* forms */
.form { display: grid; gap: 16px; }
.form fieldset { border: 1px solid var(--line); border-radius: var(--r); background: #fff; padding: 14px; margin: 0; display: grid; gap: 14px; min-width: 0; }
.form legend { display: flex; align-items: center; gap: 8px; padding: 0 6px; font-weight: 800; font-size: 16px; }
.form legend .ic { color: var(--green); }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-weight: 700; font-size: 14.5px; color: var(--ink-2); }
.field > span em, .field em { font-style: normal; font-weight: 500; color: var(--muted); }
.field.inline { grid-template-columns: auto 1fr; align-items: center; gap: 10px; }
.field.inline > span { font-weight: 600; color: var(--muted); font-size: 14px; }
input, select, textarea { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: var(--r-sm); border: 1.5px solid #d5ddd8; background: #fff;
  font: inherit; font-size: 16px; color: var(--ink); }
textarea { resize: vertical; min-height: 64px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-l); }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2367736f' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 38px; }
.hint { display: flex; gap: 6px; align-items: flex-start; color: var(--muted); font-size: 13.5px; }
.hint .ic { width: 15px; height: 15px; margin-top: 2px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (max-width: 460px) { .grid3 { grid-template-columns: 1fr 1fr; } .grid3 > :last-child { grid-column: 1 / -1; } }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.chip { flex: none; position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.chip span { display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 14px; border-radius: 12px; border: 1.5px solid #d5ddd8; background: #fff; font-weight: 700; font-size: 15px; white-space: nowrap; }
.chip input:checked + span { border-color: var(--green); background: var(--green); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid #7cc79a; outline-offset: 2px; }
.chip.day span { flex-direction: column; min-width: 62px; padding: 6px 10px !important; min-height: 60px; padding: 6px 4px; gap: 0; }
.chip.day small { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .02em; }
.chip.day b { font-size: 20px; }
.chip.day input:checked + span small { color: #d9f2e2; }
.phone-input { display: flex; align-items: stretch; border: 1.5px solid #d5ddd8; border-radius: var(--r-sm); background: #fff; overflow: hidden; }
.phone-input:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-l); }
.phone-input > span { display: grid; place-items: center; padding: 0 12px; background: var(--bg); color: var(--ink-2); font-weight: 700; border-right: 1.5px solid #d5ddd8; }
.phone-input input { border: 0; border-radius: 0; box-shadow: none !important; }
.phone-input.big input, .phone-input.big > span { font-size: 18px; min-height: 54px; }
.pin-input { position: relative; }
.pin-input input { font-size: 22px; letter-spacing: .35em; min-height: 54px; padding-right: 70px; }
.pin-input .link { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
.form-error { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--red-l); color: var(--red); font-weight: 650; font-size: 15px; }
.switch { display: flex; align-items: center; gap: 12px; font-weight: 700; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.switch .track { flex: none; position: relative; width: 50px; height: 30px; border-radius: 15px; background: #cfd8d3; transition: background .15s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .15s; }
.switch input:checked + .track { background: var(--green); }
.switch input:checked + .track::after { transform: translateX(20px); }
.logo-pick { display: flex; align-items: center; gap: 14px; }
.logo-pick.loading { opacity: .5; pointer-events: none; }
.invite-banner { display: flex; align-items: center; gap: 12px; background: var(--green-xl); border-color: var(--green-l); box-shadow: none; }
.invite-banner small { display: block; color: var(--muted); font-weight: 650; }
.mgr-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.mgr-row + .mgr-row { border-top: 1px solid var(--line); }
.mgr-row small { display: block; color: var(--muted); font-size: 13px; }
.academy-tree { display: flex; gap: 12px; align-items: flex-start; background: var(--green-xl); border-color: var(--green-l); box-shadow: none; }
.academy-tree > .ic { width: 30px; height: 30px; color: var(--green); }
.academy-tree ul { margin: 6px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14.5px; columns: 2; }
.academy-pitch { display: flex; gap: 12px; align-items: flex-start; }
.academy-pitch > .ic { width: 30px; height: 30px; color: var(--green); }
.academy-pitch p { color: var(--muted); font-size: 14px; margin: 2px 0 10px; }

/* success screens */
.success { display: grid; gap: 14px; text-align: center; justify-items: center; padding-top: 10px; }
.success > * { width: 100%; }
.success-icon { width: 76px !important; height: 76px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 10px var(--green-l); margin: 8px 0; }
.success-icon .ic { width: 40px; height: 40px; stroke-width: 2.6; }
.success p { color: var(--muted); }
.success .card { text-align: left; }
.big-id { font: 800 26px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .04em; padding: 18px; border-radius: 14px; background: #fff; border: 2px dashed var(--green); color: var(--green-d); }

/* me page */
.me-head { display: flex; align-items: center; gap: 14px; }
.me-head h1 { font-size: 23px; }
.me-head .muted { display: flex; gap: 6px; align-items: center; margin-top: 2px; }
.me-head .muted .ic { width: 16px; height: 16px; }
.menu { padding: 2px 0; }
.menu > a, .menu > button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; text-align: left; font-weight: 650; }
.menu > * + * { border-top: 1px solid var(--line); }
.menu > * > span { flex: 1; }
.menu em { font-style: normal; color: var(--muted); font-size: 14.5px; }
.menu .ic:first-child { color: var(--green); }
.menu .chev { color: #b4beb9; }
.footnote { text-align: center; color: var(--muted); font-size: 13px; }

/* support card */
.support-card { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; background: #fff; }
.support-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #e4f6ec; color: var(--wa); }
.support-icon .ic { width: 26px; height: 26px; }
.support-card p { color: var(--muted); font-size: 14px; }
.support-card .btn { grid-column: 1 / -1; }

/* notifications */
.notif-list { padding: 0; overflow: hidden; }
.notif { display: flex; gap: 12px; padding: 14px 16px; align-items: flex-start; }
.notif + .notif { border-top: 1px solid var(--line); }
.notif.unread { background: var(--green-xl); }
.notif small { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }
.notif-ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--bg); color: var(--ink-2); }
.notif-interest_new .ic, .notif-invite_new .ic, .notif-match_confirmed .ic, .notif-request_new .ic, .notif-team_verified .ic { color: var(--green); }
.notif-interest_new, .notif-invite_new, .notif-match_confirmed, .notif-request_new, .notif-team_verified { background: var(--green-l); }
.notif-result_submitted, .notif-result_due, .notif-match_tomorrow { background: var(--amber-l); color: var(--amber); }
.notif-match_cancelled, .notif-interest_declined, .notif-invite_declined, .notif-request_cancelled { background: var(--red-l); color: var(--red); }

/* auth */
.auth { max-width: 420px; width: 100%; margin: 0 auto; display: grid; gap: 16px; padding-top: 6px; }
.auth > a:first-child { justify-self: center; }
.auth-brand { display: grid; justify-items: center; gap: 2px; }
.auth-brand img { width: 88px; height: 88px; margin-bottom: 8px; border-radius: 24px; background: #fff; padding: 6px; box-shadow: var(--shadow); }
.auth-brand strong { font-size: 30px; font-weight: 850; letter-spacing: -.035em; }
.auth-brand strong b { color: var(--green); }
.auth-brand span { font-size: 14px; font-weight: 650; color: var(--ink-2); letter-spacing: .06em; }
.auth-brand span i { color: var(--green); font-style: normal; }
.auth-brand.small img { width: 64px; height: 64px; }
.auth-brand.small strong { font-size: 24px; }
.auth h1 { text-align: center; }
.auth-switch { text-align: center; padding: 14px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); font-weight: 600; }
.auth-switch a { color: var(--green); font-weight: 800; }

/* empty states */
.empty { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 30px 18px; background: #fff; border: 1.5px dashed #d5ddd8; border-radius: var(--r); }
.empty > .ic { width: 40px; height: 40px; padding: 8px; border-radius: 50%; background: var(--bg); color: var(--muted); }
.empty strong { font-size: 17px; }
.empty p { color: var(--muted); font-size: 14.5px; max-width: 34ch; }
.empty .btn { margin-top: 6px; }
.hint.card, .card.hint { display: flex; gap: 10px; align-items: flex-start; background: var(--blue-l); border-color: #d6e1ff; color: #1e3a8a; box-shadow: none; }
.setup { display: grid; gap: 10px; }
.setup > .ic { width: 36px; height: 36px; color: var(--green); }
.setup ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.prose { display: grid; gap: 10px; color: var(--ink-2); }
.install-card { display: grid; gap: 12px; }
.install-card > div { display: grid; gap: 4px; }
.install-card p { color: var(--ink-2); font-size: 14.5px; }
.install-card .first { order: -1; }

/* bottom sheet */
.sheet-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(10, 20, 15, .45); animation: fade .15s; }
.sheet { position: fixed; z-index: 51; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow-y: auto; margin: 0 auto; max-width: 560px;
  background: #fff; border-radius: 22px 22px 0 0; padding: 10px 18px calc(18px + var(--safe-b)); display: grid; gap: 14px; animation: up .2s ease-out; }
@media (min-width: 600px) { .sheet { bottom: auto; top: 50%; transform: translateY(-50%); border-radius: 22px; animation: fade .15s; } }
.sheet-grip { width: 40px; height: 5px; border-radius: 3px; background: #d5ddd8; justify-self: center; }
.sheet h2 { font-size: 21px; }
.sheet-body { display: grid; gap: 12px; color: var(--ink-2); }
.sheet-actions { display: flex; gap: 10px; }
.sheet-actions .btn { flex: 1; }
.sheet-actions .btn:only-child { flex: 1; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.score-entry { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.score-team { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 12px 6px; border-radius: 14px; background: var(--bg); }
.score-team strong { font-size: 14px; color: var(--ink); line-height: 1.2; min-height: 2.4em; }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button { width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1.5px solid #d5ddd8; font-size: 22px; font-weight: 700; line-height: 1; }
.stepper input { width: 58px; min-height: 52px; text-align: center; font-size: 26px; font-weight: 800; padding: 4px; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(92px + var(--safe-b)); z-index: 60; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: min(92vw, 460px); width: max-content; padding: 13px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 650; font-size: 15px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2); transition: opacity .2s, transform .2s; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.good { background: var(--green-d); }
.toast.bad { background: var(--red); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (min-width: 720px) {
  .page { padding-top: 26px; }
  h1 { font-size: 30px; }
}
