/* Coach portal: same Slate & Ember tokens and app shell as the hub and the check-in coach desk. */
@font-face { font-family:'Inter'; src:url('/fonts/Inter-Regular.woff2') format('woff2'); font-weight:400; font-display:swap; }
@font-face { font-family:'Inter'; src:url('/fonts/Inter-Bold.woff2') format('woff2'); font-weight:700; font-display:swap; }
@font-face { font-family:'Inter Display'; src:url('/fonts/InterDisplay-ExtraBold.woff2') format('woff2'); font-weight:800; font-display:swap; }
@font-face { font-family:'Inter Display'; src:url('/fonts/InterDisplay-Black.woff2') format('woff2'); font-weight:900; font-display:swap; }
@font-face { font-family:'Titling Gothic Compressed Medium'; src:url('/fonts/TitlingGothicCompressedMedium.woff2') format('woff2'); font-weight:400; font-display:swap; }

:root {
  --ink:#1C1F24; --accent:#D44D1A; --accent-deep:#B33F12;
  --50:#F6F5F2; --100:#F0EFEC; --200:#E4E3DE;
  --gray-200:#D8D8D4; --gray-300:#C7C7C1; --gray-500:#9EA4AD;
  --text-mute:#6B6F76; --body:#3A3F47;
  --red:#d64545; --red-bg:#fbeaea; --yellow-bg:#fbf3d9; --yellow-ink:#8a6a12;
  --accent-soft:rgba(212,77,26,0.10);
  --sidebar:#1C1F24; --sidebar-ink:#F6F5F2; --sidebar-mut:#9EA4AD; --sidebar-hover:rgba(255,255,255,0.06);
  --font:'Inter', system-ui, -apple-system, sans-serif; --font-display-bold:'Inter Display', system-ui, sans-serif;
  --font-titling-medium:'Titling Gothic Compressed Medium', system-ui, sans-serif;
}
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:var(--font); color:var(--body); font-size:15px; line-height:1.55; -webkit-font-smoothing:antialiased; background:var(--50); min-height:100vh; }
h1,h2,h3 { color:var(--ink); }
[hidden] { display:none !important; }
.grow { flex:1; min-width:0; }
.mute { color:var(--text-mute); }
a { color:var(--accent-deep); }

/* ---- buttons + inputs (inputs ≥16px so iOS doesn't zoom) ---- */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; background:var(--accent); color:#fff; border:none; border-radius:12px; font:inherit; font-weight:700; font-size:15px; padding:12px 18px; min-height:44px; cursor:pointer; text-decoration:none; }
.btn:hover { background:var(--accent-deep); }
.btn:disabled { opacity:.6; cursor:default; }
.btn.ghost { background:#fff; color:var(--ink); border:1px solid var(--gray-200); }
.btn.ghost:hover { background:var(--100); }
.link { background:none; border:none; font:inherit; font-weight:700; color:var(--accent-deep); cursor:pointer; padding:8px 0; min-height:44px; }
.link.small { font-size:13px; min-height:auto; }
.btn:focus-visible, .link:focus-visible, input:focus-visible, .icon-btn:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
label { display:block; font-size:13px; font-weight:700; color:var(--ink); margin-bottom:14px; }
input { display:block; width:100%; margin-top:6px; font:inherit; font-size:16px; padding:11px 13px; border:1px solid var(--gray-300); border-radius:12px; background:#fff; color:var(--ink); }
.msg { font-size:13.5px; font-weight:600; color:var(--red); background:var(--red-bg); border-radius:10px; padding:9px 12px; margin-bottom:14px; }
.msg.ok { color:#1f6b40; background:#e7f6ed; }

/* ---- sign-in ---- */
.auth { min-height:100vh; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:24px 16px; }
.auth-card { width:100%; max-width:400px; background:#fff; border:1px solid var(--gray-200); border-radius:20px; padding:28px 24px; }
.auth-card h1 { font-family:var(--font-display-bold); font-weight:900; font-size:26px; letter-spacing:-0.02em; margin:18px 0 4px; }
.auth-card h1:has(+ .mute[hidden]) { margin-bottom:20px; }
.auth-card .mute { margin-bottom:20px; font-size:14px; }
.auth-card .btn { width:100%; }
.auth-card .link { display:block; margin:10px auto 0; }
.auth-brand { display:flex; align-items:center; gap:10px; }
.auth-brand b { font-family:var(--font-titling-medium); font-weight:400; font-size:17px; text-transform:uppercase; color:var(--ink); }
.auth-brand .lg { background:var(--ink); }
.auth footer { border:none; margin-top:18px; }

/* ---- app shell: sidebar on desktop, bottom bar on phones ---- */
.app { display:flex; min-height:100vh; }
.side { width:242px; flex:0 0 242px; background:var(--sidebar); color:var(--sidebar-ink); display:flex; flex-direction:column; position:sticky; top:0; height:100vh; }
.side .brand { display:flex; align-items:center; gap:11px; padding:24px 20px 18px; }
.lg { width:36px; height:36px; border-radius:9px; background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.08); display:grid; place-items:center; flex:none; }
.lg span { width:13px; height:13px; border-radius:50%; background:var(--accent); }
.side .brand b { font-family:var(--font-titling-medium); font-weight:400; font-size:17px; text-transform:uppercase; color:#fff; line-height:1.15; }
.nav { padding:6px 12px; flex:1; }
.nav a, .mobnav a { text-decoration:none; }
.nav a { display:flex; align-items:center; gap:12px; color:var(--sidebar-mut); font-size:14px; font-weight:600; padding:11px 13px; border-radius:11px; margin-bottom:2px; transition:background .15s, color .15s; min-height:44px; }
.nav a:hover { background:var(--sidebar-hover); color:#fff; }
.nav a.on { background:var(--accent); color:#fff; }
.nav a:focus-visible { outline:2px solid #fff; outline-offset:-2px; }
.nav svg, .mobnav svg, .icon-btn svg { width:19px; height:19px; flex:none; stroke:currentColor; stroke-width:1.7; fill:none; stroke-linecap:round; stroke-linejoin:round; }
.side .me { border-top:1px solid rgba(255,255,255,0.08); padding:14px 16px; display:flex; align-items:center; gap:11px; }
.side .me .av { width:36px; height:36px; border-radius:50%; background:var(--accent); color:#fff; display:grid; place-items:center; font-family:var(--font-display-bold); font-weight:800; font-size:14px; flex:none; }
.side .me b { color:#fff; font-size:13.5px; display:block; font-weight:700; }
.side .me span { font-size:11.5px; color:var(--sidebar-mut); display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.icon-btn { background:none; border:none; color:var(--sidebar-mut); width:44px; height:44px; display:grid; place-items:center; border-radius:10px; cursor:pointer; flex:none; }
.icon-btn:hover { color:#fff; background:var(--sidebar-hover); }
.main { flex:1; min-width:0; display:flex; flex-direction:column; }
.topbar { display:flex; align-items:center; gap:14px; padding:16px 30px; border-bottom:1px solid var(--gray-200); background:rgba(246,245,242,0.85); backdrop-filter:blur(10px); position:sticky; top:0; z-index:6; }
.topbar h1 { font-family:var(--font-display-bold); font-weight:800; font-size:22px; letter-spacing:-0.02em; }
.content { padding:26px 30px 80px; max-width:1100px; width:100%; }
.mobnav, .mob-brand { display:none; }
@media (max-width:840px) {
  .side { display:none; } .app { flex-direction:column; }
  .content { padding:18px 16px 104px; }
  .topbar { padding:12px 16px; }
  .topbar h1 { font-size:19px; }
  .mob-brand { display:flex; align-items:center; gap:8px; padding:10px 16px 0; }
  .mob-brand .lg { width:28px; height:28px; border-radius:8px; background:var(--ink); }
  .mob-brand .lg span { width:10px; height:10px; }
  .mob-brand b { font-family:var(--font-titling-medium); font-weight:400; font-size:15px; text-transform:uppercase; color:var(--ink); }
  .mobnav { display:flex; position:fixed; bottom:0; left:0; right:0; background:var(--sidebar); z-index:20; padding:6px 2px calc(6px + env(safe-area-inset-bottom)); justify-content:space-around; }
  .mobnav a { color:var(--sidebar-mut); font-size:10.5px; font-weight:700; display:flex; flex-direction:column; align-items:center; gap:3px; padding:6px 2px; flex:1; min-height:44px; }
  .mobnav a.on { color:#fff; } .mobnav a.on svg { stroke:var(--accent); }
}

/* ---- content ---- */
.demo-pill { font-family:var(--font-display-bold); font-size:11px; font-weight:800; letter-spacing:0.12em; text-transform:uppercase; background:var(--yellow-bg); color:var(--yellow-ink); border:1px solid #f0dcb4; border-radius:999px; padding:3px 12px; white-space:nowrap; }
.eyebrow { font-family:var(--font-display-bold); font-size:12px; font-weight:800; letter-spacing:0.14em; text-transform:uppercase; color:var(--accent); margin-bottom:6px; }
.h1 { font-family:var(--font-display-bold); font-size:clamp(24px,4.6vw,32px); font-weight:900; letter-spacing:-0.03em; line-height:1.08; margin-bottom:18px; color:var(--ink); }
.counts { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; margin-bottom:22px; }
@media (min-width:760px) { .counts { grid-template-columns:repeat(4,1fr); } }
.count { background:#fff; border:1px solid var(--gray-200); border-radius:16px; padding:14px 16px; }
.count b { display:block; font-family:var(--font-display-bold); font-size:28px; font-weight:900; color:var(--ink); line-height:1.1; font-variant-numeric:tabular-nums; }
.count span { font-size:12.5px; font-weight:700; color:var(--text-mute); }
.stack { display:grid; gap:12px; }
.card { background:#fff; border:1px solid var(--gray-200); border-radius:20px; padding:18px 20px; min-width:0; }
.card h2 { font-family:var(--font-display-bold); font-size:17px; font-weight:800; margin-bottom:4px; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.card p { font-size:14px; }
.card .actions { margin-top:14px; display:flex; gap:10px; flex-wrap:wrap; }
.tag { font-family:var(--font); font-size:11.5px; font-weight:700; border-radius:999px; padding:2px 10px; background:var(--100); color:var(--text-mute); border:1px solid var(--gray-200); }
.tag.live { background:var(--accent-soft); color:var(--accent-deep); border-color:rgba(212,77,26,0.22); }
.section-h { font-family:var(--font-display-bold); font-size:13px; font-weight:800; letter-spacing:0.1em; text-transform:uppercase; color:var(--text-mute); margin:26px 0 10px; }
footer { margin-top:40px; padding-top:20px; border-top:1px solid var(--gray-200); font-size:12.5px; color:var(--gray-500); text-align:center; }
@media (prefers-reduced-motion: reduce) { * { transition:none !important; } }
