:root {
  --brand: #087f5b;
  --brand-strong: #066649;
  --accent: #c5f45d;
  --accent-strong: #9bcb31;
  --navy: #103d32;
  --navy-2: #145c4a;
  --ink: #19352d;
  --muted: #60756d;
  --soft: #f2f7ef;
  --surface: #ffffff;
  --surface-2: #f7faf5;
  --line: #dce8df;
  --success: #14835e;
  --warning: #a65a00;
  --danger: #c83a4b;
  --info: #2763c4;
  --shadow-sm: 0 4px 16px rgba(16, 61, 50, .08);
  --shadow: 0 14px 40px rgba(16, 61, 50, .13);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: Sora, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--soft);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--soft); scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; background: linear-gradient(160deg, #fbfdf9 0%, var(--soft) 55%, #e8f6ed 100%); }
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: var(--brand-strong); }
img { max-width: 100%; }
[hidden] { display: none !important; }

.skip-link { position: fixed; z-index: 9999; top: -100px; left: 16px; padding: 10px 14px; background: var(--navy); color: white; border-radius: 8px; }
.skip-link:focus { top: 10px; }

.boot-screen, .standalone-message { min-height: 100vh; min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 30px; text-align: center; }
.boot-screen strong { color: var(--navy); font-size: 2rem; letter-spacing: -.04em; }
.boot-screen span { color: var(--muted); }
.spinner { width: 28px; height: 28px; margin-top: 12px; border: 3px solid rgba(8, 127, 91, .2); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.app-shell { min-height: 100vh; min-height: 100dvh; padding-bottom: calc(84px + var(--safe-bottom)); }
.app-header { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: calc(70px + var(--safe-top)); padding: calc(10px + var(--safe-top)) max(16px, calc((100vw - 1180px) / 2)) 10px; background: rgba(255,255,255,.86); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(223,231,242,.9); }
.brand-link { display: inline-flex; align-items: center; gap: 9px; color: var(--navy); text-decoration: none; font-size: 1.28rem; font-weight: 850; letter-spacing: -.04em; }
.brand-link img { width: 38px; height: 38px; }
.header-actions { display: flex; gap: 7px; align-items: center; }
.icon-button { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--navy); transition: transform .16s, background .16s; }
.icon-button:hover { background: #e7effb; transform: translateY(-1px); }
.icon-button:focus-visible, .button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .nav-link:focus-visible, .choice-card:focus-visible { outline: 3px solid rgba(8,127,91,.28); outline-offset: 2px; }
.badge-count { position: absolute; right: -1px; top: -2px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: .68rem; font-weight: 800; border: 2px solid white; }
.connection-state { position: fixed; z-index: 90; top: calc(72px + var(--safe-top)); left: 50%; transform: translateX(-50%); padding: 7px 12px; border-radius: 999px; background: #fff3dc; color: #754300; box-shadow: var(--shadow-sm); font-size: .8rem; font-weight: 750; }

.app-main { width: min(1180px, 100%); margin: 0 auto; padding: 20px 16px 42px; }
.page { animation: pageIn .18s ease-out; }
@keyframes pageIn { from { opacity: .3; transform: translateY(5px); } }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 4px 0 18px; }
.page-title { margin: 0; color: var(--navy); font-size: clamp(1.65rem, 5vw, 2.45rem); line-height: 1.05; letter-spacing: -.055em; }
.page-subtitle { margin: 7px 0 0; max-width: 680px; color: var(--muted); line-height: 1.55; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 7px; color: var(--brand-strong); font-size: .77rem; font-weight: 850; letter-spacing: .075em; text-transform: uppercase; }
.section { margin-top: 26px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.section-title { margin: 0; color: var(--navy); font-size: 1.15rem; letter-spacing: -.02em; }
.section-note { color: var(--muted); font-size: .83rem; }

.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.stack { display: grid; gap: 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap { flex-wrap: wrap; }

.card { background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.card-body { padding: 17px; }
.card-flat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; }
.card-interactive { transition: transform .18s, box-shadow .18s, border-color .18s; }
.card-interactive:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #bfd2ef; }
.hero { position: relative; overflow: hidden; display: grid; gap: 18px; padding: 24px; border-radius: var(--radius-lg); color: white; background: radial-gradient(circle at 92% 10%, rgba(197,244,93,.72), transparent 38%), linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 66%, var(--brand) 100%); box-shadow: var(--shadow); }
.hero::after { content: ""; position: absolute; width: 170px; height: 170px; right: -45px; bottom: -90px; border: 30px solid rgba(255,255,255,.08); border-radius: 50%; }
.hero h1, .hero h2 { position: relative; z-index: 1; margin: 0; font-size: clamp(1.7rem, 7vw, 3.1rem); line-height: 1.02; letter-spacing: -.055em; }
.hero p { position: relative; z-index: 1; margin: 0; max-width: 650px; color: rgba(255,255,255,.83); line-height: 1.55; }
.hero-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; }
.hero .button-secondary { background: rgba(255,255,255,.14); color: white; border-color: rgba(255,255,255,.28); }
.hero .button-primary { background: white; color: var(--navy); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 15px; border: 1px solid transparent; border-radius: 13px; font-weight: 780; line-height: 1; text-decoration: none; transition: transform .14s, background .14s, opacity .14s, box-shadow .14s; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .52; transform: none; }
.button-primary { color: white; background: linear-gradient(135deg, var(--brand), var(--brand-strong)); box-shadow: 0 7px 20px rgba(23,105,255,.22); }
.button-secondary { color: var(--navy); background: white; border-color: var(--line); }
.button-ghost { color: var(--brand-strong); background: transparent; }
.button-success { color: white; background: var(--success); }
.button-danger { color: white; background: var(--danger); }
.button-warning { color: #fff; background: var(--warning); }
.button-small { min-height: 36px; padding: 8px 11px; border-radius: 10px; font-size: .84rem; }
.button-block { width: 100%; }
.button-icon { width: 44px; padding: 0; }

.pill, .status-pill, .sport-pill { display: inline-flex; align-items: center; gap: 5px; min-height: 25px; padding: 4px 9px; border-radius: 999px; font-size: .73rem; font-weight: 780; white-space: nowrap; }
.pill { color: var(--navy); background: #edf3ff; }
.sport-pill { color: #075d4e; background: #dcfaf3; }
.status-pill { background: #edf0f5; color: #455268; }
.status-confirmed, .status-active, .status-accepted, .status-checked_in, .status-verified, .status-completed { color: #086544; background: #dff7ed; }
.status-at_risk, .status-pending, .status-requested, .status-waitlisted, .status-reviewing { color: #854b00; background: #fff0d5; }
.status-cancelled, .status-declined, .status-no_show, .status-suspended, .status-rejected { color: #9c2536; background: #ffe5e9; }
.status-draft, .status-expired, .status-paused { color: #536177; background: #edf0f5; }

.event-card { display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 14px; padding: 16px; }
.event-date { align-self: start; display: grid; place-items: center; min-height: 72px; padding: 8px 5px; border-radius: 17px; background: linear-gradient(145deg, #edf3ff, #e2faf5); color: var(--navy); text-align: center; }
.event-date strong { display: block; font-size: 1.4rem; line-height: 1; }
.event-date span { display: block; margin-top: 4px; font-size: .7rem; text-transform: uppercase; font-weight: 850; letter-spacing: .06em; }
.event-content { min-width: 0; }
.event-title { margin: 2px 0 4px; color: var(--navy); font-size: 1.06rem; letter-spacing: -.02em; }
.event-meta { display: flex; flex-wrap: wrap; gap: 5px 12px; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.event-meta span { display: inline-flex; align-items: center; gap: 5px; }
.event-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.match-meter { display: grid; gap: 5px; margin-top: 12px; }
.match-bar { height: 7px; border-radius: 999px; overflow: hidden; background: #e8edf4; }
.match-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.match-reasons { display: flex; gap: 5px; flex-wrap: wrap; }

.metric { min-height: 112px; padding: 16px; border-radius: var(--radius); background: white; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.metric-value { color: var(--navy); font-size: 1.75rem; font-weight: 900; letter-spacing: -.05em; }
.metric-label { margin-top: 5px; color: var(--muted); font-size: .82rem; }
.metric-trend { margin-top: 9px; color: var(--success); font-size: .75rem; font-weight: 750; }

.empty-state { display: grid; place-items: center; gap: 8px; min-height: 190px; padding: 28px; text-align: center; background: rgba(255,255,255,.8); border: 1px dashed #bdcce0; border-radius: var(--radius); }
.empty-icon { font-size: 2.2rem; }
.empty-state h3 { margin: 0; color: var(--navy); }
.empty-state p { margin: 0; max-width: 460px; color: var(--muted); line-height: 1.5; }
.skeleton { min-height: 120px; background: linear-gradient(90deg,#eef2f7 25%,#f8fafc 40%,#eef2f7 60%); background-size: 300% 100%; animation: shimmer 1.2s infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -100% 0; } }

.form { display: grid; gap: 15px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.field { display: grid; gap: 6px; }
.field > label, .field-label { color: var(--ink); font-size: .82rem; font-weight: 750; }
.field-help { color: var(--muted); font-size: .74rem; line-height: 1.45; }
input, select, textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #cbd7e6; border-radius: 12px; background: #fff; color: var(--ink); transition: border-color .14s, box-shadow .14s; }
textarea { min-height: 100px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #9fb5d2; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(23,105,255,.11); outline: none; }
input[type="checkbox"], input[type="radio"] { width: 20px; min-height: 20px; accent-color: var(--brand); }
.checkbox { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: .84rem; line-height: 1.45; }
.checkbox input { margin-top: 1px; flex: 0 0 auto; }
.range-line { display: flex; align-items: center; gap: 12px; }
.range-line input { padding: 0; }
.range-value { min-width: 58px; color: var(--navy); font-weight: 800; }

.segmented { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; padding: 5px; border-radius: 15px; background: #e8eef7; }
.segmented button { min-height: 40px; border: 0; border-radius: 11px; color: var(--muted); background: transparent; font-weight: 750; }
.segmented button.active { background: white; color: var(--navy); box-shadow: var(--shadow-sm); }
.choice-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.choice-card { position: relative; display: grid; gap: 6px; min-height: 118px; padding: 15px; border: 1px solid var(--line); border-radius: 17px; background: white; text-align: left; color: var(--ink); }
.choice-card:hover { border-color: #afc6e8; }
.choice-card.selected { border: 2px solid var(--brand); padding: 14px; background: #f1f6ff; }
.choice-card .choice-icon { font-size: 1.45rem; }
.choice-card strong { color: var(--navy); }
.choice-card small { color: var(--muted); line-height: 1.4; }
.sport-choice-list { display: grid; gap: 8px; }
.sport-choice { display: grid; grid-template-columns: auto minmax(0,1fr) 90px; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 13px; background: white; }

.ready-switch { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 18px; background: linear-gradient(135deg,#fff,#edf8f6); border: 1px solid #cbe8e2; border-radius: var(--radius); }
.toggle { position: relative; display: inline-block; width: 54px; height: 30px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle span { position: absolute; inset: 0; border-radius: 999px; background: #b8c3d2; transition: .2s; }
.toggle span::before { content: ""; position: absolute; width: 24px; height: 24px; left: 3px; top: 3px; border-radius: 50%; background: white; box-shadow: 0 2px 7px rgba(0,0,0,.2); transition: .2s; }
.toggle input:checked + span { background: var(--accent-strong); }
.toggle input:checked + span::before { transform: translateX(24px); }

.auth-layout { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(320px, .9fr) minmax(460px, 1.1fr); }
.auth-brand { position: relative; display: grid; align-content: center; padding: clamp(28px,7vw,90px); color: white; background: radial-gradient(circle at 16% 16%, rgba(23,214,180,.75), transparent 29%), linear-gradient(145deg,var(--navy),#114bbf 64%,var(--brand)); overflow: hidden; }
.auth-brand::before, .auth-brand::after { content:""; position:absolute; border: 38px solid rgba(255,255,255,.08); border-radius:50%; }
.auth-brand::before { width: 240px; height: 240px; right:-120px; top:-80px; }
.auth-brand::after { width: 150px; height: 150px; left:-90px; bottom:-65px; }
.auth-logo { position: relative; display: flex; align-items: center; gap: 13px; margin-bottom: 38px; font-size: 2rem; font-weight: 900; letter-spacing: -.05em; }
.auth-logo img { width: 62px; height: 62px; }
.auth-brand h1 { position: relative; margin: 0; max-width: 700px; font-size: clamp(2.2rem,5vw,4.6rem); line-height: .96; letter-spacing: -.07em; }
.auth-brand p { position: relative; max-width: 600px; color: rgba(255,255,255,.8); font-size: 1.05rem; line-height: 1.6; }
.auth-points { position: relative; display: grid; gap: 12px; margin-top: 24px; }
.auth-point { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.9); }
.auth-point span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.13); }
.auth-panel { display: grid; align-content: center; justify-items: center; padding: 28px 20px; }
.auth-card { width: min(100%, 500px); padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255,255,255,.94); box-shadow: var(--shadow); }
.auth-card h2 { margin: 0; color: var(--navy); font-size: 1.65rem; letter-spacing: -.04em; }
.auth-card > p { color: var(--muted); line-height: 1.5; }
.demo-lab { margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line); }
.demo-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.demo-button { min-height: 46px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--navy); font-size: .8rem; font-weight: 760; }
.demo-button strong, .demo-button small { display: block; }
.demo-button small { margin-top: 3px; color: var(--muted); font-weight: 520; }
.demo-button:hover { background: #eaf1fd; }
.auth-footer { margin-top: 18px; color: var(--muted); font-size: .74rem; text-align: center; line-height: 1.5; }
.auth-footer a { margin: 0 5px; }

.bottom-nav { position: fixed; z-index: 40; left: 50%; bottom: max(8px, var(--safe-bottom)); transform: translateX(-50%); display: grid; grid-template-columns: repeat(5,1fr); width: min(calc(100% - 16px), 680px); min-height: 68px; padding: 5px; border: 1px solid rgba(215,225,239,.9); border-radius: 22px; background: rgba(255,255,255,.94); box-shadow: 0 14px 38px rgba(7,25,91,.21); backdrop-filter: blur(18px); }
.nav-link { position: relative; display: grid; place-items: center; align-content: center; gap: 2px; border-radius: 16px; color: #66758d; text-decoration: none; font-size: .66rem; font-weight: 740; }
.nav-link .nav-icon { font-size: 1.23rem; line-height: 1; }
.nav-link.active { color: var(--navy); background: #edf3ff; }
.nav-link.ready-link { margin-top: -15px; height: 65px; color: white; background: linear-gradient(145deg,var(--accent-strong),var(--brand)); border: 4px solid white; box-shadow: 0 7px 20px rgba(23,105,255,.28); }
.nav-link.ready-link.active { background: linear-gradient(145deg,var(--brand),var(--navy-2)); }

.modal-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; align-items: end; padding: 16px; background: rgba(7,16,43,.52); backdrop-filter: blur(5px); }
.modal { width: min(100%, 680px); max-height: min(88vh, 880px); margin: 0 auto; overflow: auto; border-radius: 26px; background: white; box-shadow: 0 24px 90px rgba(0,0,0,.35); animation: modalUp .18s ease-out; }
@keyframes modalUp { from { transform: translateY(30px); opacity: .2; } }
.modal-head { position: sticky; z-index: 2; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 17px 18px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.modal-head h2 { margin: 0; color: var(--navy); font-size: 1.2rem; }
.modal-body { padding: 18px; }
.modal-actions { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 9px; padding: 14px 18px; border-top: 1px solid var(--line); background: rgba(255,255,255,.97); }

.toast-region { position: fixed; z-index: 200; top: calc(14px + var(--safe-top)); right: 14px; display: grid; gap: 8px; width: min(370px, calc(100% - 28px)); }
.toast { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 9px; padding: 13px 14px; border-radius: 15px; background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); animation: toastIn .18s ease-out; }
@keyframes toastIn { from { transform: translateY(-10px); opacity: .2; } }
.toast.success { border-left: 5px solid var(--success); }
.toast.error { border-left: 5px solid var(--danger); }
.toast.info { border-left: 5px solid var(--brand); }
.toast strong { display: block; color: var(--navy); font-size: .85rem; }
.toast p { margin: 3px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.toast-close { border: 0; background: transparent; color: var(--muted); }

.notification-panel { position: fixed; z-index: 80; top: calc(65px + var(--safe-top)); right: 12px; width: min(430px, calc(100% - 24px)); max-height: min(75vh,700px); overflow: auto; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: var(--shadow); }
.notification-head { position: sticky; top:0; display:flex; justify-content:space-between; align-items:center; padding:14px 15px; border-bottom:1px solid var(--line); background:white; }
.notification-item { display:grid; grid-template-columns:10px 1fr; gap:10px; padding:14px 15px; border-bottom:1px solid #edf1f6; text-decoration:none; color:var(--ink); }
.notification-item.unread { background:#f4f8ff; }
.notification-dot { width:8px; height:8px; margin-top:6px; border-radius:50%; background:var(--brand); }
.notification-item.read .notification-dot { background:transparent; }
.notification-item strong { display:block; color:var(--navy); font-size:.85rem; }
.notification-item p { margin:3px 0; color:var(--muted); font-size:.78rem; line-height:1.4; }
.notification-item time { color:#8a96a8; font-size:.68rem; }

.install-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding: 13px 15px; border: 1px solid #b9d8d1; border-radius: 16px; background: #e8faf6; color: #07584b; }
.install-banner p { margin: 0; font-size: .82rem; line-height: 1.4; }

.timeline { position: relative; display: grid; gap: 12px; }
.timeline::before { content:""; position:absolute; left:17px; top:16px; bottom:16px; width:2px; background:var(--line); }
.timeline-item { position:relative; display:grid; grid-template-columns:36px 1fr; gap:10px; }
.timeline-marker { z-index:1; display:grid; place-items:center; width:36px; height:36px; border-radius:50%; background:white; border:2px solid var(--brand); color:var(--brand); font-weight:850; }
.timeline-content { padding:8px 0 14px; }

.tabs { display:flex; gap:5px; overflow:auto; padding:4px; margin-bottom:14px; border-radius:14px; background:#e8eef7; scrollbar-width:none; }
.tabs::-webkit-scrollbar { display:none; }
.tab { flex:0 0 auto; min-height:38px; padding:8px 13px; border:0; border-radius:10px; background:transparent; color:var(--muted); font-weight:750; }
.tab.active { background:white; color:var(--navy); box-shadow:var(--shadow-sm); }

.avatar { display:grid; place-items:center; width:46px; height:46px; flex:0 0 auto; border-radius:50%; background:linear-gradient(135deg,var(--brand),var(--accent)); color:white; font-weight:900; text-transform:uppercase; }
.member-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:11px 0; border-bottom:1px solid #edf1f6; }
.member-row:last-child { border-bottom:0; }
.member-info { display:flex; align-items:center; gap:10px; min-width:0; }
.member-info strong, .member-info small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.member-info small { color:var(--muted); }

.dev-environment-banner { padding: 8px 16px; background: #fff4df; color: #744501; border-bottom: 1px solid #efd59d; text-align: center; font-size: .78rem; font-weight: 750; }

.code-box { position:relative; overflow:auto; max-height:420px; padding:14px; border-radius:14px; background:#101a2d; color:#dce7fa; font: .77rem/1.55 ui-monospace,SFMono-Regular,Menlo,monospace; white-space:pre-wrap; }
.callout { display:flex; align-items:flex-start; gap:10px; padding:13px 14px; border-radius:14px; background:#edf4ff; color:#24446e; font-size:.82rem; line-height:1.5; }
.callout.warning { background:#fff4df; color:#744501; }
.callout.danger { background:#ffe9ed; color:#842435; }

.legal-page { width:min(860px,100%); margin:0 auto; padding:30px 18px 70px; }
.legal-page h1,.legal-page h2 { color:var(--navy); }
.legal-page p,.legal-page li { color:#45546b; line-height:1.65; }

@media (min-width: 860px) {
  .app-shell { padding-bottom: 30px; padding-left: 102px; }
  .app-header { padding-left: max(120px, calc((100vw - 1080px) / 2 + 90px)); }
  .bottom-nav { left: 13px; top: calc(84px + var(--safe-top)); bottom: auto; transform:none; grid-template-columns:1fr; grid-template-rows:repeat(5,68px); width:78px; min-height:0; padding:5px; border-radius:24px; }
  .nav-link.ready-link { margin:0; height:auto; border:0; }
  .app-main { max-width:1080px; }
  .modal-backdrop { align-items:center; }
}

@media (max-width: 859px) {
  .grid-3 { grid-template-columns:1fr; }
  .auth-layout { grid-template-columns:1fr; }
  .auth-brand { min-height:330px; padding:35px 24px; align-content:end; }
  .auth-logo { margin-bottom:18px; }
  .auth-brand h1 { font-size:2.5rem; }
  .auth-points { display:none; }
  .auth-panel { padding:18px 14px 38px; margin-top:-22px; position:relative; }
  .auth-card { padding:20px 17px; }
}

@media (max-width: 620px) {
  .app-main { padding-left:12px; padding-right:12px; }
  .page-head { display:block; }
  .page-head > .button { margin-top:12px; }
  .grid-2, .form-grid, .choice-grid { grid-template-columns:1fr; }
  .segmented { grid-template-columns:1fr; }
  .segmented button { text-align:left; padding-left:12px; }
  .sport-choice { grid-template-columns:auto minmax(0,1fr); }
  .sport-choice select { grid-column:2; }
  .event-card { grid-template-columns:60px minmax(0,1fr); padding:13px; gap:11px; }
  .event-date { min-height:60px; border-radius:14px; }
  .event-date strong { font-size:1.18rem; }
  .button:not(.button-small):not(.button-icon) { min-height:46px; }
  .modal-backdrop { padding:0; align-items:end; }
  .modal { max-height:92vh; border-radius:24px 24px 0 0; }
  .demo-grid { grid-template-columns:1fr; }
  .hero { padding:20px; }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior:auto !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
}
