/* Vectari academy application. Tokens follow docs/blueprint/BRAND_IDENTITY_SPECIFICATION.md and the brand board. */
:root {
  --charcoal: #101419; --graphite: #1F2937; --lime: #C7FF3D; --lime-deep: #9BE000; --white: #F8FAFC; --grey: #94A3B8; --sand: #E5E7EB; --ink: #334155;
  --line: #E2E8F0; --line-strong: #64748B; --surface: #FFFFFF; --bg: #F5F7FA; --text: #101419; --text-2: #334155; --text-3: #556274;
  --error: #B91C1C; --error-bg: #FEF2F2; --success: #166534; --success-bg: #F0FDF4; --info: #1D4ED8; --info-bg: #EFF6FF; --warning: #854D0E; --warning-bg: #FEFCE8;
  --radius-sm: 8px; --radius: 12px; --radius-lg: 16px;
  /* Type scale: eight sizes, nothing under 12 px. */
  --fs-2xs: .75rem; --fs-xs: .8125rem; --fs-sm: .875rem; --fs-base: 1rem; --fs-md: 1.125rem; --fs-lg: 1.375rem; --fs-xl: 1.75rem; --fs-2xl: 2.25rem;
  /* Spacing scale. */
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem;
  /* Status edges, text on charcoal, chart series. */
  --error-line: #FCA5A5; --info-line: #93C5FD; --success-line: #86EFAC; --warning-line: #FDE047; --on-dark-2: #CBD5E1; --line-dark: #334155; --frame: #2B3340;
  --chart-2: #334155; --chart-3: #CBD5E1;
  --font: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 1px 2px rgba(16, 20, 25, .05), 0 2px 12px rgba(16, 20, 25, .04);
  --sidebar: 240px; --header: 60px;
  --accent: var(--lime); --accent-hover: #D4FF6A; --accent-soft: rgba(199, 255, 61, .35);
  --avatar-bg: var(--charcoal); --avatar-fg: var(--white); --selected-bg: #FCFFF2; --active-bg: var(--charcoal); --active-fg: var(--white);
  color-scheme: light;
}
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/static/fonts/inter-tight-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/static/fonts/inter-tight-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root[data-theme="dark"] {
  --bg: #0F1317; --surface: #1F2937; --text: #F8FAFC; --text-2: #CBD5E1; --text-3: #94A3B8; --line: #334155; --line-strong: #94A3B8; --sand: #334155;
  --error: #FCA5A5; --error-bg: #3B1212; --success: #86EFAC; --success-bg: #0F2A1A; --info: #93C5FD; --info-bg: #0F1F3B; --warning: #FDE047; --warning-bg: #2E2410;
  --shadow: none; --avatar-bg: #334155; --avatar-fg: #F8FAFC; --selected-bg: #1B2A10; --active-bg: var(--accent); --active-fg: var(--charcoal); --accent-soft: rgba(199, 255, 61, .22); --chart-2: #CBD5E1; --chart-3: #64748B;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0F1317; --surface: #1F2937; --text: #F8FAFC; --text-2: #CBD5E1; --text-3: #94A3B8; --line: #334155; --line-strong: #94A3B8; --sand: #334155;
  --error: #FCA5A5; --error-bg: #3B1212; --success: #86EFAC; --success-bg: #0F2A1A; --info: #93C5FD; --info-bg: #0F1F3B; --warning: #FDE047; --warning-bg: #2E2410;
  --shadow: none; --avatar-bg: #334155; --avatar-fg: #F8FAFC; --selected-bg: #1B2A10; --active-bg: var(--accent); --active-fg: var(--charcoal); --accent-soft: rgba(199, 255, 61, .22); --chart-2: #CBD5E1; --chart-3: #64748B;
  color-scheme: dark;
} }
*, *::before, *::after { box-sizing: border-box; }
html { font-family: var(--font); font-size: var(--fs-base); line-height: 1.5; color: var(--text); background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); }
h1, h2, h3 { margin: 0 0 .5rem; line-height: 1.2; letter-spacing: -0.015em; font-weight: 700; }
h1 { font-size: var(--fs-xl); } h2 { font-size: var(--fs-md); font-weight: 600; } h3 { font-size: var(--fs-base); font-weight: 600; }
p { margin: 0 0 1rem; } p:last-child { margin-bottom: 0; }
a { color: inherit; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--fs-sm); background: var(--sand); padding: .1em .35em; border-radius: 4px; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 3px solid var(--info); outline-offset: 2px; }
.visually-hidden, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--lime); color: var(--charcoal); padding: .5rem 1rem; border-radius: var(--radius-sm); }
/* The demo service's bar: a demo with sample data, and a way to Vectari. Quiet, one line, on every academy page. */
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 .75rem; padding: 0 1rem; background: var(--lime); color: var(--charcoal); font-size: var(--fs-xs); line-height: 1.4; text-align: center; }
.demo-bar a { display: inline-flex; align-items: center; min-height: 32px; color: var(--charcoal); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
@media print { .demo-bar { display: none; } }
.muted { color: var(--text-3); }
.small { font-size: var(--fs-sm); }
.eyebrow { font-size: var(--fs-2xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: .35rem; }
.eyebrow-lime { color: var(--lime); }
.subtitle { color: var(--text-2); margin: .25rem 0 0; }
.icon { width: 20px; height: 20px; flex: none; }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--white); }
.brand .mark { width: 28px; height: 23px; flex: none; }
.brand-dark { color: var(--text); }
.wordmark { font-weight: 700; letter-spacing: .18em; font-size: var(--fs-base); }
.wordmark-accent { color: var(--lime); }
.brand-dark .wordmark-accent { color: var(--lime-deep); }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .6rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid transparent; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.button-primary { background: var(--accent); color: var(--charcoal); border-color: var(--charcoal); }
.button-primary:hover { background: var(--accent-hover); }
.button-dark { background: var(--charcoal); color: var(--white); border-color: var(--line-strong); }
.button-dark:hover { background: var(--graphite); }
.button-outline { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.button-outline:hover { border-color: var(--text); }
.button-outline-light { background: transparent; color: var(--white); border-color: rgba(248, 250, 252, .5); }
.button-outline-light:hover { border-color: var(--white); }
.button-ghost { background: transparent; color: var(--text-2); border-color: var(--line); }
.button-ghost:hover { background: var(--sand); color: var(--text); }
.button-danger { background: var(--surface); color: var(--error); border-color: var(--error-line); }
.button-danger:hover { background: var(--error-bg); }
.button-small { min-height: 40px; padding: .35rem .75rem; font-size: var(--fs-sm); }
.button-large { min-height: 52px; padding: .8rem 1.5rem; font-size: var(--fs-base); }
.button-block { width: 100%; }
.button[disabled] { opacity: .6; cursor: progress; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: transparent; color: var(--text); border-radius: var(--radius-sm); cursor: pointer; }
.icon-button .icon { width: 24px; height: 24px; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--text-2); text-decoration: underline; cursor: pointer; }
.inline-form .link-button { min-height: 44px; }

/* Forms */
.form { display: grid; gap: 1rem; }
.form-row { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: var(--fs-base); }
.field .optional { font-weight: 400; color: var(--text-3); }
.field .hint { font-size: var(--fs-sm); color: var(--text-3); }
.field .error { font-size: var(--fs-sm); color: var(--error); font-weight: 600; }
.field input:not([type="radio"]):not([type="checkbox"]), .field select, .field textarea, .copy-row input { width: 100%; min-height: 44px; padding: .55rem .75rem; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--text); }
.field-error input, .field-error select { border-color: var(--error); }
.radio, .checkbox { display: flex; gap: .6rem; align-items: center; font-weight: 400; min-height: 44px; }
.radio input, .checkbox input { width: 20px; height: 20px; margin: .15rem 0 0; accent-color: var(--charcoal); flex: none; }
.alert { padding: .75rem 1rem; border-radius: var(--radius-sm); border: 1px solid; font-size: var(--fs-base); }
.alert-error { background: var(--error-bg); border-color: var(--error-line); color: var(--error); }
.alert-info { background: var(--info-bg); border-color: var(--info-line); color: var(--info); }
.flash { padding: .75rem 1rem; border-radius: var(--radius-sm); border: 1px solid; margin-bottom: 1rem; font-weight: 500; }
.flash-success { background: var(--success-bg); border-color: var(--success-line); color: var(--success); }
.flash-info { background: var(--info-bg); border-color: var(--info-line); color: var(--info); }
.flash-error { background: var(--error-bg); border-color: var(--error-line); color: var(--error); }
.copy-row { display: flex; gap: .5rem; }
.copy-row input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--fs-sm); }
.inline-form { display: flex; gap: .5rem; align-items: flex-end; flex-wrap: wrap; }
.inline-form .field { flex: 1 1 200px; }

/* Public layout */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 520px; padding-top: 2.5rem; padding-bottom: 4rem; }
.site-header { background: var(--charcoal); color: var(--white); }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.site-nav { display: flex; align-items: center; gap: .75rem; }
.site-nav a { color: var(--white); text-decoration: none; font-weight: 500; white-space: nowrap; }
.site-nav a:hover { color: var(--lime); }
.site-nav .button { min-height: 40px; padding: .4rem .9rem; color: var(--charcoal); border-color: transparent; }
.site-nav .button:hover { color: var(--charcoal); }
.site-footer { background: var(--charcoal); color: var(--grey); padding: 1.5rem 0; font-size: var(--fs-sm); margin-top: 2rem; }
.site-footer .muted { color: var(--on-dark-2); }
.hero { background: var(--charcoal); color: var(--white); padding: 3.5rem 0 4rem; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto -10% -40% auto; width: 60%; height: 120%; background: radial-gradient(closest-side, rgba(199, 255, 61, .18), transparent 70%); pointer-events: none; }
.hero-inner { display: grid; gap: 2rem; align-items: center; position: relative; }
.hero h1 { font-size: clamp(var(--fs-2xl), 6vw, 4rem); letter-spacing: -0.02em; margin-bottom: 1rem; }
.lede { font-size: var(--fs-md); color: var(--grey); max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero-visual { display: none; }
.hero-mark { width: 100%; height: auto; max-width: 420px; }
.section { padding-block: 3.5rem; }
.section-muted { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-heading { margin-bottom: 2rem; max-width: 40rem; }
.section-heading h2 { font-size: var(--fs-xl); font-weight: 700; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.step-number { font-weight: 700; color: var(--text-3); letter-spacing: .1em; font-size: var(--fs-xs); margin-bottom: .5rem; }
.step p { color: var(--text-2); margin: 0; }
.feature-grid { display: grid; gap: 1rem; }
.feature { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.feature-icon { width: 28px; height: 28px; color: var(--text); margin-bottom: .75rem; }
.feature p { color: var(--text-2); margin: 0; font-size: var(--fs-base); }
.cta-band { display: grid; gap: 1.5rem; align-items: center; }
.cta-band h2 { font-size: var(--fs-lg); }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem 1.5rem; box-shadow: var(--shadow); }
.auth-card .brand { margin-bottom: 1.5rem; }
.auth-card h1 { font-size: var(--fs-xl); }
.auth-card .intro { color: var(--text-2); }
.auth-footer { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: var(--fs-base); color: var(--text-2); }

/* App shell: charcoal sidebar with a lime active pill on a light canvas, as on the brand board (colours in Brand chrome below) */
.shell { min-height: 100vh; display: flex; }
.sidebar { position: fixed; top: 0; bottom: 0; left: 0; z-index: 30; width: var(--sidebar); background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 1.1rem .9rem; transform: translateX(-100%); visibility: hidden; transition: transform .2s ease, visibility 0s linear .2s; overflow-y: auto; }
body.sidebar-open .sidebar { transform: none; visibility: visible; transition-delay: 0s; box-shadow: 0 0 0 100vmax rgba(16, 20, 25, .45); }
.sidebar-brand { padding: .25rem .5rem; margin-bottom: .35rem; }
.sidebar-academy { font-size: var(--fs-2xs); color: var(--text-3); padding: 0 .5rem; margin-bottom: 1.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-nav { display: grid; gap: 2px; }
.sidebar-nav a { display: flex; align-items: center; gap: .7rem; min-height: 42px; padding: 0 .7rem; border-radius: var(--radius-sm); color: var(--text-2); text-decoration: none; font-weight: 500; font-size: var(--fs-base); }
.sidebar-nav a .icon { color: var(--text-3); }
.sidebar-nav a:hover { color: var(--text); background: var(--bg); }
.sidebar-nav a[aria-current="page"] { color: var(--charcoal); background: var(--accent); font-weight: 600; }
.sidebar-nav a[aria-current="page"] .icon { color: var(--charcoal); }
.sidebar-footer { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); display: grid; gap: .5rem; }
.sidebar-user { display: flex; align-items: center; gap: .6rem; min-width: 0; padding: 0 .25rem; }
.sidebar-user-text { min-width: 0; }
.sidebar-user-name { font-weight: 600; font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: var(--fs-2xs); color: var(--text-3); }
.sidebar-footer .button-ghost { justify-content: flex-start; }
.avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--avatar-bg); color: var(--avatar-fg); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: var(--fs-2xs); letter-spacing: .02em; }
.avatar-lime { background: var(--accent); color: var(--charcoal); }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: .5rem; height: var(--header); padding: 0 12px 0 6px; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand-mobile { margin-right: auto; }
.search { display: none; align-items: center; gap: .5rem; flex: 1; max-width: 420px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 0 .9rem; height: 40px; color: var(--text-3); }
.search input { flex: 1; border: 0; background: transparent; font: inherit; min-width: 0; color: var(--text); }
.search input:focus { outline: none; }
.search:focus-within { outline: 3px solid var(--info); outline-offset: 2px; }
.header-user { display: none; align-items: center; gap: .6rem; margin-left: auto; font-weight: 500; font-size: var(--fs-base); }
.header-user .avatar { width: 34px; height: 34px; }
.content { padding: 1.25rem 16px 3rem; width: 100%; max-width: 1180px; }
.content-wide { max-width: 1400px; }
.page-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.page-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* Cards, stats, tables, lists */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); min-width: 0; }
.card-highlight { border-color: var(--line-strong); border-left: 6px solid var(--accent); margin-bottom: 1rem; }
.card-dark { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }
.card-dark h2, .card-dark h3 { color: var(--white); }
.card-dark .muted { color: var(--grey); }
.card h2 { margin-bottom: .75rem; }
.card h3 { margin-top: 1.25rem; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.card-header h2, .card-header h3 { margin: 0; }
.grid { display: grid; gap: 1rem; }
.grid > * { min-width: 0; }
.stats { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 1rem; }
.stat { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1rem .9rem; box-shadow: var(--shadow); text-decoration: none; display: block; }
a.stat:hover { border-color: var(--line-strong); }
.stat-label { font-size: var(--fs-xs); font-weight: 500; color: var(--text-3); padding-right: 2.5rem; }
.stat-value { font-size: var(--fs-xl); font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; margin: .3rem 0 .2rem; }
.stat-note { font-size: var(--fs-xs); color: var(--text-2); }
.stat-note.up { color: var(--success); font-weight: 600; }
.stat-icon { position: absolute; top: .9rem; right: .9rem; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; color: var(--text); }
.stat-icon .icon { width: 18px; height: 18px; }
.empty { color: var(--text-2); background: var(--bg); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 1rem; }
.empty a { font-weight: 600; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; counter-reset: item; }
.checklist li { display: grid; gap: .15rem; padding-left: 2rem; position: relative; }
.checklist li::before { counter-increment: item; content: counter(item); position: absolute; left: 0; top: .1rem; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); font-size: var(--fs-2xs); font-weight: 700; display: flex; align-items: center; justify-content: center; color: var(--text-3); }
.checklist li.done::before { content: "\2713"; background: var(--accent); border-color: var(--charcoal); color: var(--charcoal); }
.checklist li > :first-child { font-weight: 600; }
.checklist li > span:last-child { font-size: var(--fs-sm); color: var(--text-2); }
.details { display: grid; gap: .5rem; margin: 0; }
.details div { display: grid; grid-template-columns: 7.5rem 1fr; gap: .5rem; }
.details dt { color: var(--text-3); font-size: var(--fs-sm); } .details dd { margin: 0; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { font-size: var(--fs-base); min-width: 100%; }
.table th, .table td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 600; }
.table tr:last-child td { border-bottom: 0; }
.table-actions { text-align: right; white-space: nowrap; }
.table-actions form { display: inline; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; text-align: right; }
.person { display: flex; align-items: center; gap: .6rem; font-weight: 500; }
td a.person { min-height: 44px; }
.person .avatar { width: 32px; height: 32px; font-size: var(--fs-2xs); }
.person-sub { font-weight: 400; font-size: var(--fs-sm); color: var(--text-3); }
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .6rem; border-radius: 999px; font-size: var(--fs-2xs); font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.badge-requested { background: var(--warning-bg); color: var(--warning); border-color: var(--warning-line); }
.badge-accepted { background: var(--success-bg); color: var(--success); border-color: var(--success-line); }
.badge-in_progress { background: var(--accent); color: var(--charcoal); }
.badge-completed { background: var(--sand); color: var(--text-2); }
.badge-cancelled, .badge-declined, .badge-no_show { background: var(--error-bg); color: var(--error); border-color: var(--error-line); }
.badge-inactive { background: var(--sand); color: var(--text-2); }
.badge-junior { background: var(--info-bg); color: var(--info); border-color: var(--info-line); }
.badge-lime { background: var(--accent); color: var(--charcoal); }
.toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.toolbar .spacer { flex: 1; }
.toolbar .field { flex: 1 1 220px; }
.day-nav { display: flex; align-items: center; gap: .25rem; }
.day-nav strong { padding: 0 .5rem; }
.lesson-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.lesson-row { display: grid; grid-template-columns: 4.5rem 1fr; gap: .75rem; align-items: start; padding: .75rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); text-decoration: none; color: inherit; }
a.lesson-row:hover { border-color: var(--line-strong); }
.lesson-time { font-variant-numeric: tabular-nums; font-weight: 700; line-height: 1.25; }
.lesson-time small { display: block; font-weight: 400; color: var(--text-3); font-size: var(--fs-2xs); }
.lesson-title { font-weight: 600; }
.lesson-meta { font-size: var(--fs-sm); color: var(--text-2); display: flex; flex-wrap: wrap; gap: .25rem .75rem; }
.lesson-row .badge { justify-self: start; margin-top: .25rem; }
.day-group h3 { margin: 1rem 0 .5rem; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.week { display: grid; gap: .5rem; }
.week-day { display: grid; grid-template-columns: 6.5rem 1fr; gap: .5rem; align-items: start; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.week-day:last-child { border-bottom: 0; }
.week-day strong { padding-top: .35rem; }
.window { display: inline-flex; align-items: center; gap: .5rem; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: .25rem .4rem .25rem .8rem; font-size: var(--fs-sm); margin: .15rem .25rem .15rem 0; font-variant-numeric: tabular-nums; }
.window form { display: inline; }
.window button { min-height: 28px; height: 28px; padding: 0 .55rem; font-size: var(--fs-xs); }
.pill-list { display: flex; flex-wrap: wrap; gap: .4rem; }

/* Booking workspace: selection lists, segmented control, day strip, slots, dark assistant pane */
.booking { display: grid; gap: 1rem; }
.step-title { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .75rem; }
.step-title .eyebrow { margin: 0; }
.choice-list { display: grid; gap: .5rem; }
.choice { display: flex; align-items: center; gap: .75rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); text-decoration: none; color: inherit; min-height: 56px; }
.choice:hover { border-color: var(--line-strong); }
.choice.selected { border-color: var(--line-strong); box-shadow: inset 0 0 0 1px var(--line-strong); background: var(--selected-bg); }
.choice-text { flex: 1; min-width: 0; }
.choice-text strong { display: block; }
.choice-text span { font-size: var(--fs-sm); color: var(--text-3); }
.choice-check { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: flex; align-items: center; justify-content: center; color: transparent; flex: none; }
.choice.selected .choice-check { background: var(--accent); border-color: var(--charcoal); color: var(--charcoal); }
.choice-check .icon { width: 14px; height: 14px; }
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; width: 100%; }
.segmented a { text-align: center; padding: .6rem .5rem; text-decoration: none; font-weight: 600; color: var(--text-2); background: var(--surface); border-right: 1px solid var(--line-strong); }
.segmented a:last-child { border-right: 0; }
.segmented a[aria-current="true"] { background: var(--active-bg); color: var(--active-fg); }
.segmented a.disabled { color: var(--grey); pointer-events: none; }
.day-strip { display: flex; gap: .4rem; overflow-x: auto; padding: .25rem 0 .5rem; scroll-snap-type: x proximity; }
.day { flex: 0 0 auto; width: 64px; padding: .5rem 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); text-align: center; text-decoration: none; color: inherit; scroll-snap-align: start; }
.day small { display: block; font-size: var(--fs-2xs); color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }
.day strong { display: block; font-size: var(--fs-md); line-height: 1.3; }
.day.unavailable { color: var(--text-3); background: var(--bg); }
.day.unavailable small { color: var(--text-3); }
.day[aria-current="true"] { background: var(--accent); border-color: var(--charcoal); color: var(--charcoal); }
.day[aria-current="true"] small { color: var(--charcoal); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .5rem; }
.slot { min-height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); font: inherit; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; color: var(--text); display: flex; align-items: center; justify-content: center; text-decoration: none; }
.slot:hover { border-color: var(--text); }
.slot[aria-current="true"] { background: var(--accent); border-color: var(--charcoal); }
.assistant { background: var(--charcoal); color: var(--white); border-radius: var(--radius); padding: 1.25rem; display: grid; gap: 1rem; align-content: start; }
.assistant .eyebrow { color: var(--lime); }
.assistant h2 { color: var(--white); margin: 0; }
.assistant dl { margin: 0; display: grid; gap: .6rem; }
.assistant dt { font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: .1em; color: var(--grey); }
.assistant dd { margin: .1rem 0 0; font-weight: 600; }
.assistant .muted { color: var(--grey); font-size: var(--fs-sm); }
.assistant ol { margin: 0; padding-left: 1.2rem; color: var(--grey); font-size: var(--fs-sm); display: grid; gap: .35rem; }
.assistant ol strong { color: var(--white); }
.assistant .button-primary { border-color: transparent; }
.price { font-size: var(--fs-lg); font-weight: 700; letter-spacing: -0.01em; }

@media (min-width: 600px) {
  .container { padding: 0 24px; }
  .site-nav { gap: 1.25rem; }
  .site-nav .button { min-height: 44px; padding: .6rem 1.1rem; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cta-band { grid-template-columns: 1fr auto; }
  .auth-card { padding: 2.5rem; }
  .search { display: flex; }
  .booking { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
  .assistant { position: sticky; top: calc(var(--header) + 1rem); }
}
@media (min-width: 1024px) {
  .container { padding: 0 32px; }
  .hero-inner { grid-template-columns: 1.2fr 1fr; }
  .hero-visual { display: block; justify-self: end; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .sidebar { transform: none; visibility: visible; box-shadow: none; }
  .main { margin-left: var(--sidebar); }
  .app-header { padding: 0 32px; }
  .app-header .icon-button, .brand-mobile { display: none; }
  .header-user { display: flex; }
  .content { padding: 1.75rem 32px 4rem; }
  .grid-main-aside { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); align-items: start; }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .booking { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (prefers-reduced-motion: reduce) { .sidebar, .button { transition: none; } }

/* Feedback and attendance */
.feedback .practice { background: var(--bg); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); padding: .75rem 1rem; margin-top: .75rem; }
.feedback .practice p { margin: 0; }
.feedback-form { padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-top: 1rem; }
.participant + .participant { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
details.correction { margin-top: .5rem; }
details.correction summary { cursor: pointer; color: var(--text-2); }
.toolbar .segmented a { padding: .5rem .75rem; }
.attendance { display: grid; gap: .5rem; }
.attendance-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: .75rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.attendance-row .person { min-width: 0; }
.attendance-action { margin-left: auto; }
.attendance-action .button { min-width: 7.5rem; }

/* Utilities (CSP forbids inline styles) */
.mt-sm { margin-top: .6rem; } .mt { margin-top: 1rem; } .mt-lg { margin-top: 1.5rem; } .mt-0 { margin-top: 0; } .m-0 { margin: 0; }
.card-flat { box-shadow: none; }
.steps-list { padding-left: 1.2rem; color: var(--grey); display: grid; gap: .4rem; margin: 0; }
.on-dark { color: var(--white); }
.steps-list li.current { color: var(--white); }
.segmented-auto { width: auto; min-width: 240px; }
.checkbox-inline { min-height: 44px; align-items: center; }
.inline-form-item { display: inline-block; margin: 0 .5rem .5rem 0; }
.assistant .field label { color: var(--grey); }
.assistant .field textarea { background: var(--graphite); color: var(--white); border-color: var(--line-strong); }

.fw-normal { font-weight: 400; } .mb { margin-bottom: 1rem; }
/* Dashboard: activity chart, utilisation meters, tiles */
.chart { width: 100%; height: auto; display: block; }
.chart .axis { stroke: var(--line); stroke-width: 1; }
.chart .label { fill: var(--text-3); font-family: var(--font); }
.chart .label.today { fill: var(--text); font-weight: 700; }
.chart .value { fill: var(--text-2); font-family: var(--font); font-weight: 600; }
.bar-private { fill: var(--accent); } .bar-shared { fill: var(--chart-2); } .bar-group { fill: var(--chart-3); }
.legend { display: flex; flex-wrap: wrap; gap: 1rem; font-size: var(--fs-sm); color: var(--text-2); margin-top: .5rem; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: .4rem; vertical-align: middle; }
.legend .l-private::before { background: var(--accent); } .legend .l-shared::before { background: var(--chart-2); } .legend .l-group::before { background: var(--chart-3); }
.meters { display: grid; gap: .75rem; }
.meter-row { display: grid; grid-template-columns: 1fr auto; gap: .25rem .75rem; align-items: center; }
.meter-row .person { grid-column: 1; }
.meter-row .meter-pct { font-weight: 700; font-variant-numeric: tabular-nums; }
.meter { grid-column: 1 / -1; width: 100%; height: 8px; display: block; }
.meter-track { fill: var(--sand); } .meter-fill { fill: var(--accent); }
.meter-note { grid-column: 1 / -1; font-size: var(--fs-xs); color: var(--text-3); }
.quick-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.quick-actions a { display: flex; align-items: center; gap: .6rem; min-height: 48px; padding: .5rem .75rem; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); background: var(--surface); }
.quick-actions a:hover { border-color: var(--line-strong); }
.quick-actions .icon { color: var(--text-3); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.tile { display: grid; gap: .5rem; align-content: end; min-height: 108px; padding: 1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 600; box-shadow: var(--shadow); }
.tile .icon { width: 26px; height: 26px; color: var(--text-3); }
.tile:hover { border-color: var(--line-strong); }
.tile-accent { background: var(--accent); color: var(--charcoal); border-color: transparent; }
.tile-accent .icon { color: var(--charcoal); }
.swatch { display: inline-block; width: 44px; height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); vertical-align: middle; }
.theme-options { display: grid; gap: .5rem; }
.theme-options .radio { padding: .6rem .75rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
@media (min-width: 600px) { .quick-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); } .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.grid-main-aside .quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field input[type="color"] { width: 64px; min-height: 44px; padding: 2px; cursor: pointer; }
.slots form { display: contents; }
.slots button.slot { width: 100%; }
.timeoff-list { display: grid; gap: .5rem; }
.timeoff-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }

/* Brand thread */
.app-header { border-top: 3px solid var(--accent); }
.sidebar-academy-brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); padding: .25rem .5rem; margin-bottom: 1rem; }
.academy-mark { flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--charcoal); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: var(--fs-xs); letter-spacing: .04em; }
.sidebar-academy-name { font-weight: 700; font-size: var(--fs-base); line-height: 1.2; }
.powered { gap: .4rem; margin-top: .25rem; padding: .35rem .25rem 0; border-top: 1px dashed var(--line); }
.powered .mark { width: 20px; height: 17px; }
.powered .wordmark { font-size: var(--fs-2xs); letter-spacing: .16em; }
.powered-label { font-size: var(--fs-2xs); color: var(--text-3); margin-right: .1rem; }
.page-header h1::after { content: ""; display: block; width: 36px; height: 3px; background: var(--accent); border-radius: 2px; margin-top: .45rem; }
.v-motif { width: 72px; height: 60px; color: var(--white); }
.mini-mark { width: 18px; height: 15px; vertical-align: middle; color: var(--charcoal); }
/* Media with placeholders */
.media { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--graphite); aspect-ratio: 16 / 10; position: relative; }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* <picture> only adds a WebP source; it must not become a box of its own between a figure and its photo. */
picture { display: contents; }
.media-placeholder { display: grid; place-items: center; align-content: center; gap: .5rem; background: radial-gradient(120% 90% at 85% 10%, rgba(199, 255, 61, .25), transparent 55%), linear-gradient(160deg, var(--graphite), var(--charcoal)); }
.media-placeholder figcaption { font-size: var(--fs-2xs); letter-spacing: .1em; text-transform: uppercase; color: var(--grey); }
.hero-media { aspect-ratio: 4 / 3; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
/* Public home */
.site-link { display: none; }
.hero-home { padding: 3rem 0 3.5rem; }
.hero-grid { display: grid; gap: 2rem; align-items: center; position: relative; }
.hero-points { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1rem; }
.hero-points li { display: flex; align-items: center; gap: .6rem; font-size: var(--fs-sm); color: var(--white); }
.hero-points .feature-icon { width: 24px; height: 24px; color: var(--lime); margin: 0; }
.section-heading p { margin-top: .5rem; max-width: 40rem; }
.module-grid { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.module { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; position: relative; }
.module .feature-icon { width: 26px; height: 26px; margin-bottom: .5rem; }
.module h3 { font-size: var(--fs-base); margin-bottom: .2rem; }
.module p { font-size: var(--fs-sm); color: var(--text-2); margin: 0; }
.module-soon { opacity: .75; }
.module .badge { position: absolute; top: .75rem; right: .75rem; }
.sport-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.sport-row li { display: flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--text-2); }
.sport-row li.active { color: var(--text); }
.sport-dot { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; background: var(--surface); }
.sport-row li.active .sport-dot { background: var(--lime); border-color: var(--charcoal); }
.sport-mark { width: 20px; height: 17px; color: var(--charcoal); }
.section-dark { background: var(--charcoal); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.application-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.application { background: var(--graphite); border-radius: var(--radius); overflow: hidden; }
.application .media { border-radius: 0; }
.application-text { padding: .9rem 1rem 1rem; }
.application-text h3 { font-size: var(--fs-base); margin-bottom: .2rem; }
.application-text p { color: var(--grey); font-size: var(--fs-sm); margin: 0; }
.whitelabel { display: grid; gap: 1.5rem; align-items: center; }
.whitelabel-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem; box-shadow: var(--shadow); display: grid; gap: 1rem; }
.whitelabel-brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; }
.whitelabel-dot { width: 28px; height: 28px; border-radius: 8px; background: var(--info); }
.whitelabel-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; align-items: end; height: 70px; }
.whitelabel-bars span { background: var(--lime); border-radius: 4px 4px 0 0; display: block; }
.whitelabel-bars span:nth-child(1) { height: 40%; } .whitelabel-bars span:nth-child(2) { height: 75%; } .whitelabel-bars span:nth-child(3) { height: 55%; background: var(--grey); } .whitelabel-bars span:nth-child(4) { height: 95%; }
.whitelabel-powered { font-size: var(--fs-xs); color: var(--text-3); display: flex; align-items: center; gap: .35rem; }
.whitelabel-powered strong { letter-spacing: .14em; color: var(--text); }
.whitelabel-powered .wordmark-accent { color: var(--lime-deep); }
@media (min-width: 600px) { .module-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .whitelabel { grid-template-columns: 1.2fr 1fr; } .application-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } .site-link { display: inline; } }

/* Full-bleed hero, previews, footer */
.hero-home { padding: 3rem 0 0; }
.hero-home .hero-grid { padding-bottom: 3rem; }
.hero-home .hero-media { border-radius: var(--radius-lg) var(--radius-lg) 0 0; aspect-ratio: 16 / 11; box-shadow: none; }
.hero-home .hero-media img { mask-image: linear-gradient(to right, rgba(0,0,0,.35), #000 35%); -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,.35), #000 35%); }
.icon-chip { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--text); margin-bottom: .6rem; }
.icon-chip .feature-icon { margin: 0; width: 22px; height: 22px; }
.sport-dot svg { width: 22px; height: 22px; color: var(--text-2); }
.sport-row li.active .sport-dot svg { color: var(--charcoal); }
.frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 70px rgba(16, 20, 25, .25); }
.frame-desktop { background: var(--surface); border: 1px solid var(--line); }
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--charcoal); color: var(--grey); font-size: var(--fs-2xs); }
.frame-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-dark); }
.frame-bar em { font-style: normal; margin-left: .75rem; font-family: ui-monospace, Menlo, monospace; }
.app-preview { display: grid; grid-template-columns: 200px 1fr; background: var(--bg); min-height: 420px; pointer-events: none; }
.app-preview .preview-side { background: var(--charcoal); border-right: 1px solid var(--line-dark); padding: .9rem .7rem; }
.app-preview .preview-main { padding: 1rem 1.1rem 1.1rem; display: grid; gap: .8rem; align-content: start; }
.app-preview .page-header { margin-bottom: 0; } .app-preview h1, .app-preview .preview-h1 { font-size: var(--fs-md); font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; margin: 0 0 .5rem; } .app-preview .subtitle { font-size: var(--fs-xs); }
.app-preview .stats { margin: 0; gap: .5rem; } .app-preview .stat { padding: .7rem .8rem .6rem; } .app-preview .stat-value { font-size: var(--fs-lg); } .app-preview .stat-label { font-size: var(--fs-2xs); } .app-preview .stat-note { font-size: var(--fs-2xs); } .app-preview .stat-icon { width: 26px; height: 26px; top: .6rem; right: .6rem; }
.app-preview .card { padding: .8rem .9rem; box-shadow: none; } .app-preview h2 { font-size: var(--fs-sm); } .app-preview .legend { font-size: var(--fs-2xs); }
.app-preview .lesson-row { padding: .5rem .6rem; grid-template-columns: 3.4rem 1fr; } .app-preview .lesson-time { font-size: var(--fs-sm); } .app-preview .lesson-title { font-size: var(--fs-sm); } .app-preview .lesson-meta { font-size: var(--fs-2xs); } .app-preview .badge { font-size: var(--fs-2xs); }
.app-preview .sidebar-nav a { min-height: 34px; font-size: var(--fs-xs); padding: 0 .5rem; } .app-preview .sidebar-nav .icon { width: 16px; height: 16px; }
.app-preview .meter-row .person { font-size: var(--fs-xs); } .app-preview .meter-pct { font-size: var(--fs-xs); } .app-preview .avatar { width: 26px; height: 26px; font-size: var(--fs-2xs); }
.app-preview .grid-main-aside { grid-template-columns: 1.4fr 1fr; }
.phones { display: grid; gap: 1.25rem; justify-items: center; }
.frame-phone { position: relative; width: 300px; max-width: 100%; aspect-ratio: 9 / 18.5; background: var(--charcoal); border: 8px solid var(--frame); border-radius: 36px; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); pointer-events: none; }
.frame-notch { position: absolute; top: 10px; left: 50%; width: 90px; height: 22px; transform: translateX(-50%); background: var(--frame); border-radius: 12px; }
.frame-screen { position: absolute; inset: 0; padding: 44px 14px 14px; color: var(--white); display: grid; gap: .6rem; align-content: start; overflow: hidden; --bg: #0F1317; --surface: #1F2937; --text: #F8FAFC; --text-2: var(--on-dark-2); --text-3: #94A3B8; --line: #334155; --line-strong: #94A3B8; --sand: #334155; --avatar-bg: #334155; --selected-bg: #1B2A10; --active-bg: var(--accent); --active-fg: var(--charcoal); --shadow: none; }
.phone-top { font-size: var(--fs-base); } .phone-top .wordmark { font-size: var(--fs-xs); }
.phone-greeting { font-size: var(--fs-lg); line-height: 1.15; }
.phone-card { padding: .9rem 1rem; } .phone-card strong { display: block; font-size: var(--fs-base); margin: .1rem 0; }
.frame-screen .tiles { gap: .5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); } .frame-screen .tile { min-height: 78px; padding: .7rem; font-size: var(--fs-xs); border-radius: 12px; } .frame-screen .tile .icon { width: 20px; height: 20px; }
.phone-label { font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: .08em; color: var(--grey); margin-top: .2rem; }
.frame-screen .choice { padding: .45rem .55rem; min-height: 44px; } .frame-screen .choice-text strong { font-size: var(--fs-xs); } .frame-screen .choice-text span { font-size: var(--fs-2xs); } .frame-screen .avatar { width: 28px; height: 28px; font-size: var(--fs-2xs); }
.frame-screen .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; } .frame-screen .slot { min-height: 34px; font-size: var(--fs-xs); } .frame-screen .slot[aria-current="true"] { color: var(--charcoal); }
.frame-screen .segmented a { padding: .4rem .3rem; font-size: var(--fs-xs); }
.frame-screen .button-block { min-height: 40px; font-size: var(--fs-sm); }
.frame-screen .feedback { background: var(--surface); border-radius: 12px; padding: .7rem; } .frame-screen .feedback p { margin: .4rem 0; } .frame-screen .practice { padding: .5rem .7rem; margin-top: .4rem; }
.frame-screen .attendance-row { background: var(--surface); font-size: var(--fs-xs); } .frame-screen .attendance-row .person-sub { font-size: var(--fs-2xs); }
.footer-grid { display: grid; gap: 1.5rem; padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--line-dark); }
.footer-grid h3 { color: var(--white); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .6rem; }
.footer-grid > div > a:not(.brand), .footer-grid > div > span { display: block; color: var(--grey); text-decoration: none; font-size: var(--fs-sm); margin-bottom: .35rem; }
.footer-grid > div > a:hover { color: var(--lime); }
.footer-base { font-size: var(--fs-xs); }
@media (min-width: 600px) { .phones { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
@media (max-width: 599px) { .app-preview { grid-template-columns: 1fr; } .app-preview .preview-side { display: none; } .app-preview .stats { grid-template-columns: repeat(2, 1fr); } .app-preview .grid-main-aside { grid-template-columns: 1fr; } }

/* Step 1 polish: scale, motion, toasts, empty states, inputs, menu, photos */
.hero-bleed { position: relative; min-height: 78vh; display: flex; align-items: center; padding: 4rem 0; overflow: hidden; }
.hero-bleed .hero-bg { position: absolute; inset: 0; margin: 0; border-radius: 0; aspect-ratio: auto; z-index: 0; }
.hero-bleed .hero-bg img { -webkit-mask-image: none; mask-image: none; object-position: 70% 40%; }
.hero-bleed::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(16,20,25,.96) 0%, rgba(16,20,25,.85) 40%, rgba(16,20,25,.35) 75%, rgba(16,20,25,.15) 100%), linear-gradient(0deg, rgba(16,20,25,.9), transparent 35%); }
.hero-bleed .hero-grid { position: relative; z-index: 2; grid-template-columns: minmax(0, 640px); padding-bottom: 0; }
.hero-bleed h1 { font-size: clamp(var(--fs-2xl), 7vw, 5rem); letter-spacing: -0.03em; }
.hero-bleed .lede { font-size: var(--fs-md); color: var(--on-dark-2); }
.swing-trail { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; opacity: .9; filter: drop-shadow(0 0 10px rgba(199,255,61,.7)); }
.swing-trail path { stroke-dasharray: 900; stroke-dashoffset: 900; animation: trail 2.2s cubic-bezier(.2,.7,.2,1) .4s forwards; }
@keyframes trail { to { stroke-dashoffset: 0; } }
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].in { opacity: 1; transform: none; }
.section { padding-block: 4.5rem; }
.section-heading h2 { font-size: clamp(var(--fs-xl), 3.2vw, 2.4rem); letter-spacing: -0.02em; }
.section-heading p { font-size: var(--fs-base); }
.module, .application, .step, .tile, .stat { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.module:hover, .step:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.application:hover { transform: translateY(-3px); }
.toast-region { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; display: grid; justify-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: .75rem; max-width: 560px; width: 100%; padding: .8rem 1rem; border-radius: var(--radius); background: var(--charcoal); color: var(--white); box-shadow: 0 16px 40px rgba(16,20,25,.35); border-left: 5px solid var(--accent); animation: toast-in .25s ease; }
.toast-error { border-left-color: var(--error-line); } .toast-info { border-left-color: var(--info-line); }
.toast span { flex: 1; font-weight: 500; }
.toast-close { background: transparent; border: 0; color: var(--grey); font-size: var(--fs-lg); line-height: 1; cursor: pointer; width: 36px; height: 36px; border-radius: 8px; }
.toast-close:hover { background: rgba(255,255,255,.08); color: var(--white); }
.toast-out { opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }
/* The mark sits in the padding so messages with links or bold text flow as one paragraph (flex split them into columns). */
.empty { display: block; position: relative; min-height: calc(30px + 2rem); padding-left: calc(1rem + 36px + .9rem); background: var(--bg); border: 1px dashed var(--line-strong); }
.empty::before { content: ""; position: absolute; left: 1rem; top: 1rem; width: 36px; height: 30px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 40'%3E%3Cpath d='M2 2h11l16 30-5.5 8z' fill='%2394A3B8'/%3E%3Cpath d='M46 2H35L19 32l5.5 8z' fill='%23C7FF3D'/%3E%3C/svg%3E") no-repeat center / contain; margin-top: .1rem; }
.field input[type="date"], .field input[type="time"], .field input[type="datetime-local"] { font-variant-numeric: tabular-nums; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.4rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .7rem center; background-size: 18px; }
.avatar-photo { object-fit: cover; }
.avatar-lg { width: 44px; height: 44px; }
.site-links { display: none; }
.site-menu-toggle { color: var(--white); }
body.site-nav-open .site-links { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--charcoal); padding: .75rem 16px 1rem; border-bottom: 1px solid var(--line-dark); z-index: 40; }
body.site-nav-open .site-links a { padding: .6rem 0; display: block; }
.site-header { position: relative; }
@media (min-width: 1024px) { .site-links { display: inline-flex; gap: 1.25rem; } .site-menu-toggle { display: none; } .section { padding: 6rem 0; } .toast-region { left: auto; right: 24px; bottom: auto; top: 24px; width: 420px; justify-items: end; } }
@media (prefers-reduced-motion: reduce) { .swing-trail path { animation: none; stroke-dashoffset: 0; } [data-reveal] { opacity: 1; transform: none; transition: none; } .module, .step, .application { transition: none; } }

.hero-enter { animation: none; }
@keyframes hero-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 599px) { .site-nav { gap: .4rem; } .site-nav .button { min-height: 44px; padding: .35rem .8rem; font-size: var(--fs-sm); } .site-nav > a.site-link, .site-nav > a:not(.button) { font-size: var(--fs-sm); } .hero-bleed { min-height: 92vh; align-items: flex-end; padding-bottom: 2.5rem; } .hero-bleed::before { background: linear-gradient(0deg, rgba(16,20,25,.97) 0%, rgba(16,20,25,.88) 45%, rgba(16,20,25,.3) 75%, rgba(16,20,25,.1) 100%); } .hero-bleed .hero-bg img { object-position: 60% 20%; } }
@media (prefers-reduced-motion: reduce) { .hero-enter { animation: none; } }

/* Step 2: auth pages with the venue photograph beside the form */
.auth-side { display: none; }
@media (min-width: 1024px) {
  .narrow.auth-main { max-width: 1080px; }
  .auth-split { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 1.5rem; align-items: stretch; }
  .auth-side { display: block; position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 520px; background: var(--charcoal); }
  .auth-side .auth-photo { position: absolute; inset: 0; margin: 0; border-radius: 0; aspect-ratio: auto; }
  .auth-side::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(16,20,25,.92), rgba(16,20,25,.1) 60%); }
  .auth-side-copy { position: absolute; left: 1.5rem; right: 1.5rem; bottom: 1.5rem; color: var(--white); }
  .auth-side-copy p { margin: 0; font-size: var(--fs-base); color: var(--on-dark-2); max-width: 26rem; }
}

/* Photo aside on onboarding forms; lesson progress rail */
.photo-aside { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 240px; background: var(--charcoal); }
.photo-aside-media { position: absolute; inset: 0; margin: 0; border-radius: 0; aspect-ratio: auto; }
.photo-aside::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(16,20,25,.92), rgba(16,20,25,.15) 60%); }
.photo-aside-copy { position: absolute; left: 1.25rem; right: 1.25rem; bottom: 1.25rem; color: var(--white); }
.photo-aside-copy p { margin: 0; color: var(--on-dark-2); }
.rail { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
.rail li { position: relative; padding-top: 14px; }
.rail li::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 4px; border-radius: 2px; background: var(--sand); }
.rail li.done::before { background: var(--accent); }
.rail li.current::before { background: linear-gradient(90deg, var(--accent), var(--accent) 50%, var(--sand) 50%); }
.rail-dot { display: none; }
.rail-label { font-size: var(--fs-2xs); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.rail li.done .rail-label, .rail li.current .rail-label { color: var(--text); }
.rail-ended li:not(.rail-end)::before { background: var(--sand); }
.rail-end::before { background: var(--error-line) !important; } .rail-end .rail-label { color: var(--error); }
@media (max-width: 599px) { .rail-label { font-size: var(--fs-2xs); } }
.grid-main-aside > .photo-aside { align-self: stretch; }

/* Week calendar */
.cal-card { padding: .75rem; }
.cal { border-collapse: separate; border-spacing: 0; min-width: 860px; table-layout: fixed; }
.cal th { font-weight: 600; text-align: center; padding: .4rem .25rem; border-bottom: 1px solid var(--line); }
.cal thead th.today .cal-day { background: var(--accent); color: var(--charcoal); border-radius: 999px; }
.cal-dow { display: block; font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.cal-day { display: inline-block; min-width: 28px; line-height: 28px; font-size: var(--fs-base); }
.cal-time { width: 52px; font-size: var(--fs-2xs); color: var(--text-3); text-align: right !important; padding-right: .5rem !important; vertical-align: top; font-variant-numeric: tabular-nums; }
.cal tbody td { height: 46px; position: relative; border-left: 1px solid var(--line); border-bottom: 1px dashed var(--line); padding: 0; }
.cal tbody tr.hour td { border-bottom-style: solid; }
.cal tbody td.today { background: rgba(199, 255, 61, .06); }
.cal-event { position: absolute; left: 2px; right: 2px; top: 1px; z-index: 2; display: block; overflow: hidden; border-radius: 6px; padding: 3px 6px; background: var(--success-bg); border: 1px solid var(--success-line); border-left-width: 4px; color: var(--text); text-decoration: none; font-size: var(--fs-2xs); line-height: 1.2; }
.cal-event:hover { z-index: 3; box-shadow: var(--shadow); }
.cal-event.offset-half { top: 24px; }
.cal-event-time { font-weight: 700; font-variant-numeric: tabular-nums; margin-right: .3rem; }
.cal-event-title { font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-event-meta { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.cal-event.status-requested { background: var(--warning-bg); border-color: var(--warning-line); }
.cal-event.status-in_progress { background: var(--accent-soft); border-color: var(--accent); }
.cal-event.status-completed { background: var(--sand); border-color: var(--line-strong); }
.cal-event.status-cancelled, .cal-event.status-declined, .cal-event.status-no_show { background: var(--error-bg); border-color: var(--error-line); opacity: .75; }
.dur-30 { height: 44px; } .dur-45 { height: 67px; } .dur-60 { height: 90px; } .dur-75 { height: 113px; } .dur-90 { height: 136px; } .dur-105 { height: 159px; } .dur-120 { height: 182px; } .dur-135 { height: 205px; } .dur-150 { height: 228px; } .dur-165 { height: 251px; } .dur-180 { height: 274px; } .dur-195 { height: 297px; } .dur-210 { height: 320px; } .dur-225 { height: 343px; } .dur-240 { height: 366px; }
.lanes-2.lane-0 { right: 50%; } .lanes-2.lane-1 { left: 50%; }
.lanes-3.lane-0 { right: 66%; } .lanes-3.lane-1 { left: 34%; right: 33%; } .lanes-3.lane-2 { left: 67%; }
.legend .l-requested::before { background: var(--warning-line); } .legend .l-off::before { background: var(--error-line); }
.toolbar .segmented-auto { min-width: 160px; }
.toolbar .segmented-3 { min-width: 260px; }
/* A free half hour on the owner's grid: the whole cell books it; the time shows on hover and focus. */
.cal-open { position: absolute; inset: 0 1px; z-index: 1; display: flex; align-items: center; justify-content: center; border-radius: 6px; color: var(--text-2); font-size: var(--fs-2xs); font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.cal-open-label { display: inline-flex; align-items: center; gap: .2rem; opacity: 0; }
.cal-open-label .icon { width: 14px; height: 14px; }
.cal-open:hover, .cal-open:focus-visible { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); color: var(--text); }
.cal-open:hover .cal-open-label, .cal-open:focus-visible .cal-open-label { opacity: 1; }
.legend .l-open::before { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); }
.cal-coaches { min-width: 640px; }
.cal-coach { display: inline-flex; flex-direction: column; align-items: center; gap: .3rem; font-size: var(--fs-sm); }
.cal-coach > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Guided lesson steps */
.step-panel { border-left: 6px solid var(--accent); }
.step-panel > .muted { margin-bottom: 1rem; }
.step-more { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .75rem; }
.step-more summary { cursor: pointer; font-weight: 600; color: var(--text-2); }
.step-more-body { display: grid; gap: 1rem; margin-top: .75rem; }

/* Notifications: bell in the header, list page */
.bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--text-2); text-decoration: none; margin-left: auto; }
.bell:hover, .bell[aria-current="page"] { background: var(--bg); color: var(--text); }
.bell .icon { width: 22px; height: 22px; }
.bell-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--charcoal); font-size: var(--fs-2xs); font-weight: 700; line-height: 18px; text-align: center; border: 2px solid var(--surface); box-sizing: content-box; }
.header-user { margin-left: 0; }
@media (min-width: 1024px) { .bell { margin-left: auto; } .header-user { margin-left: .25rem; } }
.notice-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.notice-link { display: grid; grid-template-columns: auto 1fr auto; gap: .75rem; align-items: start; padding: .75rem; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: inherit; background: var(--surface); }
.notice-link:hover { border-color: var(--line-strong); }
.notice-unread .notice-link { border-left: 4px solid var(--accent); background: var(--selected-bg); }
.notice-icon { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); display: inline-flex; align-items: center; justify-content: center; color: var(--text); }
.notice-icon .icon { width: 18px; height: 18px; }
.notice-text { display: grid; gap: .15rem; min-width: 0; }
.notice-title { font-weight: 600; }
.notice-body { color: var(--text-2); font-size: var(--fs-sm); }
.notice-meta { color: var(--text-3); font-size: var(--fs-xs); }
.notice-link .badge { align-self: center; }
@media (max-width: 599px) { .notice-link { grid-template-columns: auto 1fr; } .notice-link .badge { grid-column: 2; justify-self: start; } }

/* Packages and credits */
.credit-balance { display: inline-flex; align-items: baseline; gap: .35rem; font-size: var(--fs-xl); font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.credit-balance small { font-size: var(--fs-xs); font-weight: 500; color: var(--text-3); }
.ledger { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.ledger-row { display: grid; grid-template-columns: 3rem 1fr; gap: .6rem; align-items: start; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.ledger-row:last-child { border-bottom: 0; }
.ledger-delta { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-2); }
.ledger-delta.up { color: var(--success); }
.ledger-text { display: grid; gap: .1rem; min-width: 0; }
.packages-note { border-top: 1px solid var(--line-dark); padding-top: .9rem; display: grid; gap: .35rem; }
.packages-note-row { display: flex; justify-content: space-between; gap: .75rem; font-size: var(--fs-sm); }
.packages-note-row span:last-child { color: var(--grey); white-space: nowrap; }
.checkbox.on-dark input { accent-color: var(--lime); }
.table .col-name { min-width: 12rem; }

/* Profile editing */
.photo-preview { display: flex; align-items: center; gap: 1rem; }
.avatar-xl { width: 88px; height: 88px; font-size: var(--fs-lg); }
.field input[type="file"] { width: 100%; min-height: 44px; padding: .5rem .75rem; font: inherit; color: var(--text); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); }
.field input[type="file"]::file-selector-button { font: inherit; font-weight: 600; padding: .35rem .8rem; margin-right: .75rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); cursor: pointer; }
.choice-bio { display: block; color: var(--text-3); font-size: var(--fs-xs); margin-top: .15rem; }
.mb { margin-bottom: 1rem; }

/* Audit log */
.audit-filters { margin-bottom: 1rem; }
.audit-filter-grid { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.audit-filter-grid .field { margin: 0; }
@media (min-width: 1024px) { .audit-filter-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.audit-table { font-size: var(--fs-sm); }
.audit-when { font-variant-numeric: tabular-nums; color: var(--text-2); }
.audit-details { min-width: 16rem; max-width: 30rem; }
.audit-pair { display: inline-block; margin: 0 .6rem .2rem 0; color: var(--text-2); }
.audit-key { font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 600; }
.badge-lesson { background: var(--success-bg); color: var(--success); border-color: var(--success-line); }
.badge-attendance, .badge-feedback, .badge-practice { background: var(--accent-soft); color: var(--text); }
.badge-credits, .badge-package { background: var(--info-bg); color: var(--info); border-color: var(--info-line); }
.badge-student, .badge-account, .badge-profile, .badge-invitation { background: var(--sand); color: var(--text-2); }
.badge-lesson_type, .badge-site, .badge-venue, .badge-academy, .badge-availability, .badge-time_off { background: var(--warning-bg); color: var(--warning); border-color: var(--warning-line); }
.button-current { background: var(--active-bg); color: var(--active-fg); }
.button.disabled { opacity: .45; pointer-events: none; }
@media (max-width: 599px) {
  .audit-table thead { display: none; }
  .audit-table, .audit-table tbody { display: block; }
  .audit-table tr { display: grid; grid-template-columns: 1fr auto; gap: .3rem .75rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .audit-table tr:last-child { border-bottom: 0; }
  .audit-table td { display: block; border: 0; padding: 0; }
  .audit-when { grid-column: 1; grid-row: 1; font-size: var(--fs-xs); }
  .audit-table td:nth-child(3) { grid-column: 2; grid-row: 1; justify-self: end; }
  .audit-table td:nth-child(2), .audit-table td:nth-child(4), .audit-details { grid-column: 1 / -1; }
  .audit-details { min-width: 0; max-width: none; }
  .audit-table .col-name { min-width: 0; }
}
@media (max-width: 599px) {
  .import-table thead { display: none; }
  .import-table, .import-table tbody { display: block; }
  .import-table tr { display: grid; grid-template-columns: auto 1fr auto; gap: .2rem .6rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .import-table tr:last-child { border-bottom: 0; }
  .import-table td { display: block; border: 0; padding: 0; }
  .import-table td:nth-child(1) { grid-column: 1; grid-row: 1; }
  .import-table td:nth-child(2) { grid-column: 2; grid-row: 1; }
  .import-table td:nth-child(6) { grid-column: 3; grid-row: 1; text-align: right; max-width: 10rem; }
  .import-table td:nth-child(3), .import-table td:nth-child(4), .import-table td:nth-child(5) { grid-column: 2 / -1; font-size: var(--fs-sm); color: var(--text-2); white-space: normal; }
  .import-table .col-name { min-width: 0; }
}

/* Weekly lesson series */
.assistant .field select { background-color: var(--graphite); color: var(--white); border-color: var(--line-strong); }
.assistant .field .hint { color: var(--grey); }
.series-weeks { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.series-week { display: grid; grid-template-columns: 4.5rem 1fr auto; gap: .75rem; align-items: center; padding: .7rem .75rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.series-week-skipped { background: var(--bg); border-style: dashed; }
.series-week-no { font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.series-week-main { display: grid; gap: .1rem; min-width: 0; text-decoration: none; color: inherit; }
a.series-week-main:hover strong { text-decoration: underline; }
.cancel-scope { display: grid; gap: .75rem; padding: 1rem; border: 1px solid var(--error-line); border-radius: var(--radius-sm); background: var(--error-bg); }
.cancel-scope .button { justify-self: start; }
@media (max-width: 599px) { .series-week { grid-template-columns: 1fr auto; } .series-week-no { grid-column: 1 / -1; } }

/* Clinic waitlist */
.offer { display: grid; gap: .25rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: .75rem; }
.offer .page-actions form { display: inline; }
.waitlist { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.waitlist-row { display: flex; align-items: center; gap: .75rem; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.waitlist-row .person { flex: 1; min-width: 0; }
.waitlist-pos { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--sand); color: var(--text-2); font-weight: 700; font-size: var(--fs-xs); display: inline-flex; align-items: center; justify-content: center; }

/* Coach substitution */
.reassign { padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); }
.reassign select option:disabled { color: var(--grey); }

/* Assessments and progress */
.template + .template { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.skill-list { margin: .5rem 0 0; padding-left: 1.3rem; display: grid; gap: .25rem; }
.skill-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.skill-row form { display: inline; }
.assessment-form { margin-top: 1rem; padding: 1rem; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); background: var(--bg); }
.score-grid { display: grid; gap: .75rem; }
.score-row { display: grid; gap: .4rem; margin: 0; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.score-row legend { font-weight: 600; font-size: var(--fs-base); padding: 0; }
.score-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .3rem; }
.score-option { position: relative; display: grid; justify-items: center; gap: .05rem; padding: .35rem .2rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); cursor: pointer; text-align: center; font-weight: 700; }
.score-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.score-option small { display: none; font-weight: 400; font-size: var(--fs-2xs); color: var(--text-3); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@media (min-width: 1200px) { .score-option small { display: block; } }
.score-key { font-size: var(--fs-xs); color: var(--text-3); margin: 0; }
.score-option:has(input:checked) { background: var(--accent); border-color: var(--charcoal); color: var(--charcoal); }
.score-option:has(input:checked) small { color: var(--charcoal); }
.score-option:has(input:focus-visible) { outline: 3px solid var(--info); outline-offset: 2px; }
.score-row input[type="text"] { width: 100%; min-height: 40px; padding: .4rem .6rem; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.score { display: inline-flex; align-items: center; gap: 3px; vertical-align: middle; }
.score i { width: 12px; height: 12px; border-radius: 50%; background: var(--sand); display: inline-block; }
.score i.on { background: var(--accent); border: 1px solid var(--charcoal); }
.score-label { font-size: var(--fs-2xs); font-weight: 600; margin-left: .35rem; font-variant-numeric: tabular-nums; }
.score-list { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .35rem; }
.score-list li { display: grid; grid-template-columns: minmax(7rem, 1fr) auto; gap: .25rem .75rem; align-items: center; }
.score-list .score-note { grid-column: 1 / -1; }
.score-list.compact { gap: .2rem; } .score-list.compact li { grid-template-columns: minmax(6rem, 1fr) auto; }
.assessment { background: var(--bg); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); padding: .75rem 1rem; }
.progress-totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin-bottom: 1rem; }
.progress-totals div { padding: .6rem .75rem; border: 1px solid var(--line); border-radius: var(--radius-sm); display: grid; }
.progress-totals strong { font-size: var(--fs-lg); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.progress-totals span { font-size: var(--fs-xs); color: var(--text-3); }
@media (min-width: 600px) { .progress-totals { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline-item { display: grid; grid-template-columns: 28px 1fr; gap: .75rem; position: relative; padding-bottom: 1rem; }
.timeline-item::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.timeline-item:last-child::before { display: none; }
.timeline-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--sand); color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; font-size: var(--fs-xs); font-weight: 700; }
.timeline-attended .timeline-dot { background: var(--accent); color: var(--charcoal); }
.timeline-assessment .timeline-dot { background: var(--charcoal); color: var(--accent); }
.timeline-no_show .timeline-dot { background: var(--error-bg); color: var(--error); }
.timeline-body { min-width: 0; } .timeline-body p { margin: .25rem 0 0; }
.timeline-when { font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.skills-table td { vertical-align: middle; }
@media (max-width: 599px) {
  .skills-table thead { display: none; }
  .skills-table, .skills-table tbody { display: block; }
  .skills-table tr { display: grid; grid-template-columns: 1fr auto; gap: .2rem .75rem; padding: .6rem 0; border-bottom: 1px solid var(--line); align-items: center; }
  .skills-table tr:last-child { border-bottom: 0; }
  .skills-table td { display: block; border: 0; padding: 0; }
  .skills-table td:nth-child(1) { grid-column: 1; grid-row: 1; }
  .skills-table td:nth-child(2) { grid-column: 2; grid-row: 1; justify-self: end; }
  .skills-table td:nth-child(3) { grid-column: 1; grid-row: 2; font-size: var(--fs-sm); }
  .skills-table td:nth-child(4) { grid-column: 2; grid-row: 2; font-size: var(--fs-sm); color: var(--text-3); }
}

/* Swing media */
.media-block { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); display: grid; gap: .75rem; }
.media-form { padding: .9rem 1rem; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); background: var(--bg); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .75rem; }
.media-item { margin: 0; display: grid; gap: .35rem; }
.media-photo, .media-video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); background: var(--charcoal); display: block; }
.media-item figcaption { display: grid; gap: .15rem; font-size: var(--fs-sm); }
.media-item form { display: inline; }

/* Household */
.guardian-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.guardian-list li { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.guardian-list form { display: inline; }
.household .details div { grid-template-columns: 6.5rem 1fr; }

/* Reset requests */
.request-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.request-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; padding: .75rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.request-row > div:first-child { min-width: 0; flex: 1 1 240px; }

/* Medical and consent records */
.records-medical { color: var(--error); font-weight: 600; white-space: pre-line; }
.records-line { display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: center; margin-top: .25rem; }
.records .details div { grid-template-columns: 9rem 1fr; }
@media (max-width: 599px) { .records .details div { grid-template-columns: 1fr; gap: .1rem; } }

/* Finance */
.finance-table td { vertical-align: top; }

/* Retention */
.band-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin-bottom: 1rem; }
.band { display: grid; gap: .1rem; padding: .8rem .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit; box-shadow: var(--shadow); }
.band:hover { border-color: var(--line-strong); }
.band-current { border-color: var(--charcoal); box-shadow: inset 0 0 0 1px var(--charcoal); background: var(--selected-bg); }
.band-count { font-size: var(--fs-xl); font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.band-label { font-size: var(--fs-xs); color: var(--text-2); }
@media (min-width: 1024px) { .band-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 599px) {
  .retention-table thead { display: none; }
  .retention-table, .retention-table tbody { display: block; }
  .retention-table tr { display: grid; grid-template-columns: 1fr auto; gap: .15rem .75rem; padding: .7rem 0; border-bottom: 1px solid var(--line); align-items: center; }
  .retention-table tr:last-child { border-bottom: 0; }
  .retention-table td { display: block; border: 0; padding: 0; }
  .retention-table td:nth-child(1) { grid-column: 1; grid-row: 1; }
  .retention-table td:nth-child(3) { grid-column: 2; grid-row: 1; justify-self: end; }
  .retention-table td:nth-child(2)::before { content: "Last attended "; color: var(--text-3); }
  .retention-table td:nth-child(4)::before { content: "Next "; color: var(--text-3); }
  .retention-table td:nth-child(2), .retention-table td:nth-child(4) { grid-column: 1 / -1; font-size: var(--fs-sm); }
  .retention-table td:nth-child(5), .retention-table td:nth-child(6), .retention-table td:nth-child(7) { display: none; }
}

/* Academy logo */
.academy-logo { flex: none; height: 36px; width: auto; max-width: 120px; object-fit: contain; border-radius: 6px; }
.academy-logo-large { height: 64px; max-width: 200px; }
.academy-mark-large { width: 64px; height: 64px; font-size: var(--fs-lg); border-radius: 14px; }
.logo-preview { display: flex; align-items: center; gap: 1rem; }

/* Academy switcher */
.academy-switch { margin: -.5rem 0 .75rem; padding: 0 .5rem; font-size: var(--fs-sm); }
.academy-switch summary { cursor: pointer; color: var(--text-2); font-weight: 600; }
.academy-switch-list { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .3rem; }
.academy-switch-list form { display: inline; }
.academy-switch-current { font-weight: 600; }
.academy-switch-list-page .academy-row { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.academy-switch-list-page .academy-row:last-child { border-bottom: 0; }

/* Two-factor sign-in */
.qr-wrap { max-width: 280px; margin: 0 auto .75rem; }
.qr { width: 100%; height: auto; display: block; border-radius: var(--radius-sm); }
.secret { font-size: var(--fs-base); letter-spacing: .05em; }
.recovery-codes { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
.recovery-codes code { display: block; padding: .4rem .6rem; font-size: var(--fs-base); text-align: center; }

/* Report exports */
.exports-table td { vertical-align: top; }
@media (max-width: 599px) {
  .exports-table thead { display: none; }
  .exports-table, .exports-table tbody { display: block; }
  .exports-table tr { display: grid; grid-template-columns: 1fr auto; gap: .2rem .75rem; padding: .7rem 0; border-bottom: 1px solid var(--line); align-items: start; }
  .exports-table tr:last-child { border-bottom: 0; }
  .exports-table td { display: block; border: 0; padding: 0; }
  .exports-table td:nth-child(1) { grid-column: 1; grid-row: 1; }
  .exports-table td:nth-child(5) { grid-column: 2; grid-row: 1 / span 2; text-align: right; }
  .exports-table td:nth-child(2) { grid-column: 1 / -1; color: var(--text-2); }
  .exports-table td:nth-child(3), .exports-table td:nth-child(4) { grid-column: 1; text-align: left; }
}

/* Accessibility pass: content must wrap at 200% text on a phone */
.lesson-row > div { min-width: 0; }
.lesson-row .badge, .choice .badge, .household .badge { white-space: normal; }
.lesson-title { overflow-wrap: anywhere; }

/* Credits on clinics */
.join-option { display: inline-grid; gap: .35rem; vertical-align: top; }
.join-option .checkbox { min-height: 0; font-size: var(--fs-sm); }
.plain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .25rem; }

/* Clinic roster for staff */
.roster-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.roster-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.roster-row:last-child { border-bottom: 0; }
.roster-row .person { min-width: 0; }

/* Calendar subscription link */
.copy-field { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--fs-sm); }

/* Practice plans */
.practice-table th, .practice-table td { text-align: center; padding-left: .15rem; padding-right: .15rem; }
.practice-table th:first-child, .practice-table td:first-child { text-align: left; padding-left: 0; min-width: 6rem; }
.practice-table th:last-child, .practice-table td:last-child { padding-right: 0; }
.practice-day { width: 1.6rem; }
@media (max-width: 480px) { .practice-table { font-size: var(--fs-sm); } .practice-table th:first-child, .practice-table td:first-child { min-width: 5rem; } }
.practice-day.is-today { background: var(--surface-2, rgba(0,0,0,.04)); }
.practice-day-letter { font-weight: 600; color: var(--text-3); }
.practice-tick { display: inline-flex; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--accent); color: var(--charcoal); align-items: center; justify-content: center; font-weight: 700; font-size: var(--fs-sm); }
.practice-empty { color: var(--line-strong); }
.practice-on { color: var(--success); font-weight: 700; }
.practice-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.practice-actions form { display: inline; }

/* Lesson message threads */
.thread-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.thread-item { padding: .75rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.thread-item.is-mine { border-color: var(--accent); }
.thread-item.is-hidden { opacity: .8; }
.thread-body { margin: .4rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.thread-hidden-body { font-style: italic; }
.thread-item form { margin-top: .25rem; }

/* Enquiries */
.enquire { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 900px) { .enquire { grid-template-columns: 1fr 1.2fr; gap: 3rem; } }
.enquire-card { padding: 1.5rem; }
.enquire-sent { display: grid; gap: .5rem; }
.enquiry-row { align-items: flex-start; }
.enquiry-actions { flex: 1 1 260px; display: grid; gap: .5rem; }

/* Rounds */
.rounds-trend { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.rounds-trend > div { display: grid; }
.rounds-trend strong { font-size: var(--fs-xl); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.rounds-trend span { font-size: var(--fs-xs); color: var(--text-3); }
.sparkline { max-width: 100%; height: auto; }
.sparkline polyline { fill: none; stroke: var(--accent-ink, var(--charcoal)); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.timeline-round .timeline-dot { background: var(--success-bg); color: var(--success); }
.rounds-table { table-layout: auto; }
.rounds-table td, .rounds-table th { padding-left: .35rem; padding-right: .35rem; vertical-align: top; }
.rounds-table td:first-child, .rounds-table th:first-child { padding-left: 0; white-space: nowrap; }
.rounds-table td:last-child, .rounds-table th:last-child { padding-right: 0; }
.rounds-table td:nth-child(2) { overflow-wrap: anywhere; }
.rounds-table td:nth-child(3) { white-space: nowrap; }
/* On a phone each round is one row: the date and course on the left, the score on the right, Remove underneath. */
@media (max-width: 599px) {
  .rounds-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rounds-table, .rounds-table tbody { display: block; width: 100%; }
  .rounds-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
  .rounds-table td { display: block; padding: 0; border: 0; text-align: left; }
  .rounds-table td:nth-child(1) { grid-column: 1; color: var(--text-3); font-size: var(--fs-sm); }
  .rounds-table td:nth-child(2) { grid-column: 1; }
  .rounds-table td:nth-child(3) { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; }
  .rounds-table td:nth-child(4) { grid-column: 1 / -1; text-align: left; }
  .rounds-table td:nth-child(4):empty { display: none; }
}
.over-par { color: var(--text-3); font-size: var(--fs-sm); }

/* Offline page */
.offline { min-height: 60vh; display: grid; place-items: center; }
.offline-card { max-width: 32rem; padding: 2rem; display: grid; gap: .75rem; }

/* Day sheet */
.day-sheet { display: grid; gap: 1rem; }
.day-sheet-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.day-sheet-title { margin: .15rem 0; }
.day-sheet-lesson-head { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-bottom: .75rem; }
.day-sheet-lesson-head > div:nth-child(2) { flex: 1 1 200px; min-width: 0; }
.day-sheet-table td, .day-sheet-table th { vertical-align: top; padding-left: .4rem; padding-right: .4rem; }
.day-sheet-table td:first-child, .day-sheet-table th:first-child { padding-left: 0; }
.day-sheet-notes { min-width: 7rem; }
@media (max-width: 720px) { .day-sheet-table thead { display: none; } .day-sheet-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem .75rem; padding: .6rem 0; border-bottom: 1px solid var(--line); } .day-sheet-table td { display: block; padding: 0; border: 0; } .day-sheet-table td:first-child { grid-column: 1 / -1; } .day-sheet-table td.day-sheet-notes { display: none; } .day-sheet-table td[data-label]::before { content: attr(data-label); display: block; font-size: var(--fs-2xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: .1rem; } }
@media print {
  .site-header, .sidebar, .page-actions, .toast-region, .skip, [data-toggle], .page-head-actions { display: none !important; }
  body { background: #fff; color: #000; }
  .card { box-shadow: none; border: 1px solid #000; break-inside: avoid; page-break-inside: avoid; }
  .day-sheet-table td.day-sheet-notes { border-bottom: 1px dotted #000; min-width: 9rem; }
  a { text-decoration: none; color: inherit; }
}

/* Cross-academy roll-up */
.group-table th, .group-table td { white-space: nowrap; }
.group-table tfoot th, .group-table tfoot td { font-weight: 700; border-top: 2px solid var(--line-strong); }
.group-table .inline-form { display: inline; }

/* Rain-out */
.close-day { margin-top: 1rem; border-color: var(--line); }
.close-day summary { cursor: pointer; font-weight: 600; }

/* Pay statement */
.pay-table tfoot th, .pay-table tfoot td { border-top: 2px solid var(--line-strong); }
.pay-table td, .pay-table th { padding-left: .35rem; padding-right: .35rem; }
.pay-table td:first-child, .pay-table th:first-child { padding-left: 0; white-space: nowrap; }
.pay-table td:last-child, .pay-table th:last-child { padding-right: 0; white-space: nowrap; }
@media (max-width: 480px) { .pay-table .col-min { display: none; } }

/* Owner navigation groups and the first-day setup guide */
.nav-group { margin: .9rem .7rem .25rem; font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.setup-guide { display: grid; gap: 1rem; margin-bottom: 1.25rem; border-color: var(--line-strong); }
.setup-head { display: grid; gap: .75rem; }
.setup-head h2 { margin: .15rem 0 .1rem; }
.setup-head p { margin: 0; }
.setup-meter { width: 100%; height: 8px; }
.setup-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; padding: .9rem 1rem; border-radius: var(--radius-sm); background: var(--bg); }
.setup-next p { margin: .2rem 0 0; }
.setup-next .button { flex: 0 0 auto; }
.setup-steps { gap: .6rem; }
@media (min-width: 900px) { .setup-steps { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }
@media (max-width: 520px) { .setup-next .button { width: 100%; justify-content: center; } }

/* Coach page */
.coach-head { display: grid; gap: .9rem; margin-bottom: 1.25rem; }
.person-large { gap: 1rem; align-items: center; }
.person-large h2 { margin: 0 0 .1rem; }
.person-large .badge { margin-top: .35rem; }
.coach-bio { margin: 0; max-width: 60ch; color: var(--text-2); }
.coach-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.plain-list .person { display: flex; align-items: center; gap: .6rem; padding: .35rem 0; }
.person-large .avatar { width: 64px; height: 64px; font-size: var(--fs-md); }
.coach-table .col-name { min-width: 0; }
.coach-table td:nth-child(2) { white-space: nowrap; }
.coach-table .person-sub { max-width: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 520px) { .coach-table th:nth-child(2), .coach-table td:nth-child(2) { display: none; } .coach-table .person-sub { max-width: 9.5rem; } }
#step-type, #step-coach, #step-time, #request { scroll-margin-top: 5rem; }
.credential-list { gap: .75rem; }
.credential-list li { display: grid; gap: .2rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.credential-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.credential-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.credential-list form { justify-self: start; }
.follow-ups li { display: grid; gap: .1rem; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.follow-ups li:last-child { border-bottom: 0; }
.enquiry-actions .form-row { margin-top: .5rem; }

/* Scorecards */
.scorecard-entry { min-width: 0; }
.scorecard-entry th, .scorecard-entry td { padding: .3rem .35rem; }
.hole-input { width: 3.6rem; min-height: 44px; padding: .35rem .4rem; text-align: center; font-variant-numeric: tabular-nums; }
.scorecard { font-size: var(--fs-sm); }
.scorecard th, .scorecard td { padding: .4rem .35rem; text-align: center; }
.scorecard th[scope="row"] { text-align: left; }
.hole-under { display: inline-block; min-width: 1.6rem; border-radius: 50%; border: 1.5px solid var(--success); }
.hole-over { display: inline-block; min-width: 1.6rem; border: 1.5px solid var(--line-strong); }
.hole-par { display: inline-block; min-width: 1.6rem; }
.stats-compact { margin-bottom: 1rem; }
@media (max-width: 520px) {
  .scorecard-entry th, .scorecard-entry td { padding: .25rem .15rem; }
  .scorecard-entry th { font-size: var(--fs-2xs); letter-spacing: .02em; }
  .hole-input { width: 2.9rem; padding: .3rem .2rem; }
  .scorecard { font-size: var(--fs-2xs); }
  .scorecard th, .scorecard td { padding: .35rem .08rem; }
  .scorecard th[scope="row"], .scorecard thead th:first-child { font-size: var(--fs-2xs); letter-spacing: .02em; padding-right: .2rem; }
  .scorecard .hole-under, .scorecard .hole-over, .scorecard .hole-par { min-width: 1.2rem; }
}

/* Session readiness and junior handover */
.readiness { border-radius: var(--radius-sm); padding: .85rem 1rem; margin-bottom: 1rem; border: 1px solid var(--line-strong); background: var(--bg); }
.readiness ul { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .3rem; font-size: var(--fs-sm); }
.readiness li { padding-left: 1.5rem; position: relative; }
.readiness li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.readiness li.ok::before { content: "\2713"; color: var(--success); }
.readiness li.warn::before { content: "!"; color: var(--warning); }
.readiness-warn { border-color: var(--warning-line); }
.handover { display: grid; gap: .4rem; justify-items: stretch; min-width: 12rem; }
.handover select, .handover input { min-height: 40px; }

/* Safeguarding */
.fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: .45rem; }
.fieldset legend { font-weight: 600; font-size: var(--fs-base); margin-bottom: .35rem; }
.safety-row { padding: .55rem 0; border-bottom: 1px solid var(--line); }
.safety-row:last-child { border-bottom: 0; }

/* Equipment */
.equipment-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.equipment-list li:last-child { border-bottom: 0; }
.equipment-list .inline-form { display: flex; gap: .4rem; align-items: center; }
.equipment-list select { min-height: 36px; }
.money-now { display: grid; gap: .1rem; }
.money-now strong { font-size: var(--fs-xl); letter-spacing: -.02em; }
.progress-list li { display: flex; justify-content: space-between; gap: .75rem; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.progress-list li:last-child { border-bottom: 0; }

/* Practice consistency: one bar per week, height by tenths of the target reached */
.consistency { margin: .75rem 0; }
.consistency-head { display: flex; justify-content: space-between; gap: .5rem; margin-bottom: .35rem; }
.consistency-bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: .35rem; align-items: end; height: 56px; }
.consistency-bars .bar { display: block; border-radius: 4px 4px 0 0; background: var(--charcoal); min-height: 3px; }
.consistency-bars .bar-now { background: var(--accent); border: 1px solid var(--charcoal); }
.consistency-bars .bar-none { background: var(--line); height: 3px; }
.consistency-bars .bar-0 { height: 3%; }
.consistency-bars .bar-1 { height: 10%; }
.consistency-bars .bar-2 { height: 20%; }
.consistency-bars .bar-3 { height: 30%; }
.consistency-bars .bar-4 { height: 40%; }
.consistency-bars .bar-5 { height: 50%; }
.consistency-bars .bar-6 { height: 60%; }
.consistency-bars .bar-7 { height: 70%; }
.consistency-bars .bar-8 { height: 80%; }
.consistency-bars .bar-9 { height: 90%; }
.consistency-bars .bar-10 { height: 100%; }
.practice-notes { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .75rem; display: grid; gap: .5rem; }
.practice-notes h3 { margin: 0; }
.practice-notes li { display: grid; gap: .25rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.practice-notes li:last-child { border-bottom: 0; }
.practice-notes li .badge, .practice-notes li form { justify-self: start; }

/* Pay adjustments and approval */
.pay-block { display: grid; gap: .75rem; margin: 1rem 0; }
.pay-block h3 { margin: 0; }
.pay-adjustments li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.pay-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.pay-actions .step-more { flex-basis: 100%; }
@media print { .no-print { display: none !important; } }
.move-history { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .4rem; font-size: var(--fs-sm); }
.move-history span { display: block; opacity: .7; font-size: var(--fs-xs); }

/* Student home: your development (dark card, like the athlete board) */
.development { display: grid; gap: 1rem; }
.development-student { display: grid; gap: .75rem; }
.development-student + .development-student { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 1rem; }
.development h3 { margin: 0; color: inherit; }
.development-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.development-figure { font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -.02em; color: var(--accent); }
.development-label { font-size: var(--fs-sm); opacity: .75; }
.development .consistency-bars { margin-top: .5rem; height: 40px; }
.development .consistency-bars .bar { background: rgba(255, 255, 255, .35); }
.development .consistency-bars .bar-now { background: var(--accent); border-color: var(--accent); }
.development .consistency-bars .bar-none { background: rgba(255, 255, 255, .15); }
.development-drills { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; font-size: var(--fs-sm); }
.development-drills li { display: flex; justify-content: space-between; gap: .75rem; border-bottom: 1px solid rgba(255, 255, 255, .1); padding-bottom: .35rem; }
.development .button { justify-self: start; }

/* Student home: next lesson as a photo hero */
.next-hero { display: grid; padding: 0; overflow: hidden; }
.next-hero-media { aspect-ratio: auto; height: 11rem; border-radius: 0; }
.next-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.next-hero-body { padding: 1.5rem; display: grid; gap: .5rem; justify-items: start; align-content: center; }
.next-hero-body h2 { margin: 0; }
.next-hero-body p { margin: 0 0 .5rem; }
@media (min-width: 720px) {
  .next-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .next-hero-media { height: 100%; min-height: 12rem; order: 2; }
}

/* Needs a new time */
.recovery-actions { flex: 0 1 280px; display: grid; gap: .5rem; justify-items: start; }
.recovery-actions .step-more { width: 100%; }

/* Coach or venue problem */
.problem-kinds .choice svg { width: 22px; height: 22px; flex: none; }
.problem-actions { flex: 0 1 300px; display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-start; }
.problem-actions form { margin: 0; }

/* Account recovery */
.steps-list-light { color: var(--text-2); margin: 0 0 1rem; }
.reset-approve { display: grid; gap: .5rem; justify-items: start; }
.reset-outcome { display: grid; gap: .2rem; justify-items: end; text-align: right; }

/* Account security */
.security-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.security-checks li { display: flex; gap: .6rem; align-items: flex-start; }
.security-mark { flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: var(--fs-xs); }
.security-ok .security-mark { background: var(--accent); color: var(--charcoal); }
.security-todo .security-mark { background: var(--warning-bg); color: var(--warning); border: 1px solid currentColor; }
.security-activity li { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* Legal pages */
.legal { max-width: 46rem; padding-top: 1.5rem; }
.legal h2 { margin-top: 2rem; font-size: var(--fs-md); }
.legal ul { padding-left: 1.2rem; display: grid; gap: .4rem; }
.legal-draft { margin: 1rem 0 1.5rem; }
.legal-nav { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: var(--fs-sm); margin-bottom: 1.5rem; }
.legal-nav [aria-current="page"] { font-weight: 600; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; }
.footer-legal { display: flex; gap: 1rem; }
.footer-legal a { color: inherit; }
.sidebar-legal { display: flex; gap: .75rem; font-size: var(--fs-2xs); }
.sidebar-legal a { color: var(--text-3); }

/* Scorecard entry totals */
.scorecard-entry tfoot th, .scorecard-entry tfoot td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.scorecard-entry .scorecard-sub th, .scorecard-entry .scorecard-sub td { color: var(--text-2); border-top: 1px solid var(--line); }
.scorecard-entry .scorecard-total th, .scorecard-entry .scorecard-total td { font-weight: 700; border-top: 2px solid var(--line-strong); }

/* Junior handover at check-out */
.attendance-action-wide { flex: 1 1 100%; }
.handover { border-top: 1px solid var(--line); padding-top: .75rem; }
.handover legend { font-weight: 600; margin-bottom: .35rem; }
.readiness .button { white-space: normal; text-align: left; max-width: 100%; }

/* Credential documents */
.credential-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .5rem; }
.credential-actions .step-more { flex: 1 1 100%; }

/* Coach allocation */
.coach-choices { display: grid; gap: .4rem; }
.coach-choice { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.coach-choice > span { display: grid; min-width: 0; }
.coach-choice:has(input:checked) { border-color: var(--line-strong); background: var(--selected-bg); }
.coach-choice-off { opacity: .6; cursor: not-allowed; }

/* Team and venues */
.week-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-bottom: 1rem; }
.team-list > li, .team-venues > li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.team-list .person { flex: 1 1 260px; align-items: flex-start; }
.team-flags { display: flex; flex-wrap: wrap; gap: .35rem .5rem; align-items: center; margin-top: .3rem; }
.team-meter { display: flex; align-items: center; gap: .5rem; flex: 0 1 180px; }
.team-track { display: block; flex: 1; min-width: 80px; height: 8px; border-radius: 999px; background: var(--sand); overflow: hidden; }
.team-track-venue { flex: 0 1 120px; }
.team-fill { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.team-pct { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right; }
.team-fill.w-0 { width: 0; } .team-fill.w-1 { width: 10%; } .team-fill.w-2 { width: 20%; } .team-fill.w-3 { width: 30%; } .team-fill.w-4 { width: 40%; } .team-fill.w-5 { width: 50%; }
.team-fill.w-6 { width: 60%; } .team-fill.w-7 { width: 70%; } .team-fill.w-8 { width: 80%; } .team-fill.w-9 { width: 90%; } .team-fill.w-10 { width: 100%; }

/* Getting started */
.induction-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.induction-steps li { display: flex; align-items: center; gap: .6rem; }
.induction-mark { flex: none; width: 1.4rem; height: 1.4rem; border-radius: 50%; display: grid; place-items: center; font-size: var(--fs-2xs); font-weight: 700; border: 2px solid var(--line-strong); }
.induction-done .induction-mark { background: var(--accent); border-color: var(--accent); color: var(--charcoal); }
.induction-done span:last-child { color: var(--text-2); }

/* Balances and accounts */
.input-short { width: 7rem; }
.account .plain-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; }
.account-row-end { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-variant-numeric: tabular-nums; }
.account h3 { margin-top: 1rem; font-size: var(--fs-base); }
.membership-line { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }

/* Report drilldowns and definitions */
.stat-drill { position: relative; }
.stat-link { display: block; color: inherit; text-decoration: none; }
.stat-link:hover .stat-value, .stat-link:focus-visible .stat-value { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.stat-def { margin-top: .4rem; font-size: var(--fs-xs); }
.stat-def summary { color: var(--text-3); cursor: pointer; }
.stat-def p { margin: .3rem 0 0; color: var(--text-2); }
.drill-note { color: var(--text-2); margin: 0 0 .5rem; }
.drill-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem; }
.drill-chips a { padding: .3rem .65rem; border: 1px solid var(--line); border-radius: 999px; font-size: var(--fs-xs); text-decoration: none; color: inherit; }
.drill-chips a[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: var(--charcoal); }
.definitions summary { cursor: pointer; font-weight: 600; }
.definitions .details { margin-top: .75rem; }

/* Data checks */
.check-actions { flex: 0 1 260px; display: grid; gap: .4rem; justify-items: start; }
.check-actions .step-more { width: 100%; }
.check-clear li { display: flex; align-items: center; gap: .5rem; color: var(--text-2); }
.induction-done-mark { background: var(--accent); border-color: var(--accent); color: var(--charcoal); }

/* Family and authority */
.authority-list > li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.authority-list > li > div:first-child { flex: 1 1 220px; }
.authority-list .step-more { flex: 1 1 100%; }
.authority-flags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .3rem; }
.handover-barred { margin-bottom: .5rem; }

/* Privacy choices */
.privacy-choice legend { font-weight: 600; }
.privacy-choice .radio { display: inline-flex; margin-right: 1rem; }
.receipts li, .privacy .plain-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; align-items: center; }
.request-resolve { flex: 0 1 280px; }

/* Safeguarding case file */
.case-notes li, .case-evidence li { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.case-notes li:last-child, .case-evidence li:last-child { border-bottom: 0; }
.case-notes p { margin: 0 0 .2rem; }
.case-evidence li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; }
.case-timeline { list-style: none; margin: 0; padding: 0 0 0 1rem; border-left: 2px solid var(--line); }
.case-timeline li { position: relative; display: flex; flex-direction: column; padding: 0 0 .8rem; }
.case-timeline li::before { content: ''; position: absolute; left: calc(-1rem - 5px); top: .4rem; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }

/* Messages: one inbox */
.nav-count { margin-left: auto; min-width: 1.4rem; padding: 0 .4rem; border-radius: 999px; background: var(--text); color: var(--surface); font-size: var(--fs-2xs); font-weight: 700; line-height: 1.4rem; text-align: center; }
.inbox-list { list-style: none; margin: 0; padding: 0; }
.inbox-item { border-bottom: 1px solid var(--line); }
.inbox-item:last-child { border-bottom: 0; }
.inbox-link { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .75rem; align-items: start; padding: .8rem .25rem; color: inherit; text-decoration: none; }
.inbox-link:hover { background: var(--bg); }
.inbox-icon { color: var(--text-3); padding-top: .1rem; }
.inbox-text { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.inbox-title { font-weight: 600; }
.is-unread .inbox-title { font-weight: 800; }
.inbox-sub { font-size: var(--fs-sm); color: var(--text-2); }
.inbox-preview { font-size: var(--fs-sm); color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-meta { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; }
@media (max-width: 600px) { .inbox-link { grid-template-columns: minmax(0, 1fr) auto; } .inbox-icon { display: none; } }
.delivery-list li, .announce-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .4rem 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.delivery-list li:last-child, .announce-list li:last-child { border-bottom: 0; }
.delivery-list .person-sub, .announce-list .person-sub, .inbox-text .person-sub { display: block; }
.checkbox > span > .hint { display: block; font-weight: 400; margin-top: .15rem; }

/* Swing videos */
.swing-figure { margin: 0; }
.swing-video { display: block; width: 100%; max-height: 70vh; background: #000; border-radius: var(--radius-sm); }
.swing-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (max-width: 600px) { .swing-compare { grid-template-columns: 1fr; } }
.swing-moments li { display: flex; gap: .6rem; align-items: center; padding: .3rem 0; }
.swing-steps li.is-off strong { color: var(--text-3); }
.swing-steps li.is-waiting::before { background: var(--line); }
.swing-steps li.is-done::before { background: var(--text); }
.moment-row { grid-template-columns: 6rem minmax(0, 1fr); }
.capture-guide ol { list-style: decimal; padding-left: 1.1rem; display: grid; gap: .4rem; }

/* Development programmes */
.goal-list li { display: grid; gap: .35rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.goal-list li:last-child { border-bottom: 0; }
.goal-list .person-sub { display: block; }
.goal-figures { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: var(--fs-sm); color: var(--text-2); }
.goal-meter { width: 100%; height: .6rem; }
.goal-row { display: grid; gap: .6rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .goal-row { grid-template-columns: 1.2fr 1.4fr 1.4fr .6fr .6fr; align-items: end; } }
.stack-actions { display: grid; gap: .6rem; }
.stack-actions form, .stack-actions .button { width: 100%; }
.stack-actions .button { justify-content: center; }

/* Forecast */
.forecast-steps { margin: 0; padding-left: 1.2rem; display: grid; gap: .55rem; }
.week-bars li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) 2rem; gap: .6rem; align-items: center; padding: .25rem 0; }
.week-bars meter { width: 100%; height: .7rem; }
.week-bars strong { text-align: right; }
.stat-value-text { font-size: var(--fs-lg); }
.format-notes { display: grid; gap: .6rem; }
.goal-figures label { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
.goal-figures .hole-input { width: 4.5rem; }

/* Community */
.member-actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.results-list li { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; gap: .6rem; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.results-list li:last-child { border-bottom: 0; }
.results-pos { font-weight: 800; color: var(--text-3); }
.review-list li { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.review-list li:last-child { border-bottom: 0; }
.review-list p { margin: .25rem 0; }
.stars { color: var(--text); letter-spacing: .1em; }
.stars-off { color: var(--line-strong); }
.star-choice { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.announce-row { display: flex; justify-content: space-between; gap: .5rem; align-items: center; }

/* Platform: theme, support, identity, connectors */
.swatch { display: inline-block; width: 1rem; height: 1rem; border-radius: 4px; border: 1px solid var(--line-strong); vertical-align: -2px; }
.swatch-row { display: inline-flex; align-items: center; gap: .35rem; }
.theme-preview { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.preview-header { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; background: var(--surface); border-bottom: 3px solid var(--accent); }
.preview-body { padding: .9rem; display: grid; gap: .8rem; }
.preview-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem; display: grid; gap: .3rem; justify-items: start; }
.preview-nav { display: flex; gap: .4rem; flex-wrap: wrap; }
.preview-nav span { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .7rem; border-radius: var(--radius-sm); color: var(--text-2); }
.preview-nav .preview-nav-active { background: var(--accent); color: var(--charcoal); font-weight: 600; }
.theme-checks li, .readiness-list li, .connector-list li, .access-list li { display: flex; justify-content: space-between; gap: .6rem 1rem; align-items: flex-start; padding: .55rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.theme-checks li:last-child, .readiness-list li:last-child, .connector-list li:last-child, .access-list li:last-child { border-bottom: 0; }
.theme-checks .person-sub, .readiness-list .person-sub, .connector-list .person-sub, .access-list .person-sub { display: block; }
.theme-steps { list-style: decimal; padding-left: 1.1rem; display: grid; gap: .4rem; }
.pair { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.pair:last-child { border-bottom: 0; }
.pair-grid { display: grid; gap: .6rem; margin: .5rem 0; }
@media (min-width: 700px) { .pair-grid { grid-template-columns: 1fr 1fr; } }
.pair-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .6rem .8rem; display: grid; gap: .15rem; }
.pair-card .person-sub { display: block; }
.chip-nav { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip-nav a { padding: .4rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text-2); text-decoration: none; font-size: var(--fs-sm); font-weight: 600; }
.chip-nav a:hover { border-color: var(--line-strong); color: var(--text); }
.plain-list li > .person-sub { display: block; }

/* Sponsors and shop */
.sponsor-card { display: grid; gap: .35rem; border-left: 3px solid var(--line-strong); }
.sponsor-preview { padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); }
.sponsor-label { font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.product-list li, .order-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.product-list li:last-child, .order-list li:last-child { border-bottom: 0; }
.product-list .person-sub, .order-list .person-sub { display: block; }
.product-order { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.product-order select { min-height: 44px; }
.checkbox-small { font-size: var(--fs-sm); }
.partner-link { font-size: var(--fs-2xs); word-break: break-all; color: var(--text-2); }
.evidence-list li { padding: .3rem 0; }

/* Brand chrome: the charcoal sidebar, the academy in the phone header, and the back link above every title. */
.sidebar { background: var(--charcoal); border-right-color: var(--charcoal); color: var(--white); }
.sidebar-academy-brand { color: var(--white); }
.sidebar .academy-mark { background: var(--accent); color: var(--charcoal); }
.sidebar-nav a { color: var(--on-dark-2); }
.sidebar-nav a .icon { color: var(--grey); }
.sidebar-nav a:hover { color: var(--white); background: rgba(248, 250, 252, .07); }
.sidebar-nav a:hover .icon { color: var(--white); }
.sidebar-nav a[aria-current="page"] { color: var(--charcoal); background: var(--accent); }
.sidebar-nav a[aria-current="page"] .icon { color: var(--charcoal); }
.sidebar-nav .nav-count { background: var(--accent); color: var(--charcoal); }
.sidebar-nav a[aria-current="page"] .nav-count { background: var(--charcoal); color: var(--accent); }
.sidebar .nav-group { color: var(--grey); }
.sidebar-footer { border-top-color: var(--line-dark); }
.sidebar-user-name { color: var(--white); }
.sidebar-user-role, .sidebar-legal a, .sidebar .powered-label { color: var(--grey); }
.sidebar .button-ghost { color: var(--on-dark-2); }
.sidebar .button-ghost:hover { color: var(--white); background: rgba(248, 250, 252, .07); }
.sidebar .brand-dark { color: var(--white); }
.sidebar .brand-dark .wordmark-accent { color: var(--lime); }
.sidebar .academy-switch summary, .sidebar .academy-switch-list, .sidebar .link-button { color: var(--on-dark-2); }
.sidebar :focus-visible { outline-color: var(--accent); }
:root[data-theme="dark"] .sidebar { border-right-color: var(--line-dark); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sidebar { border-right-color: var(--line-dark); } }
.academy-mobile { display: inline-flex; align-items: center; gap: var(--space-2); min-width: 0; margin-right: auto; min-height: 44px; color: var(--text); text-decoration: none; font-weight: 700; font-size: var(--fs-base); }
.academy-mobile span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.academy-mobile .academy-mark { width: 30px; height: 30px; border-radius: 8px; }
.academy-mobile .academy-logo { width: 30px; height: 30px; object-fit: contain; }
@media (min-width: 1024px) { .academy-mobile { display: none; } }
.crumb { display: inline-flex; align-items: center; gap: var(--space-1); min-height: 44px; margin: calc(-1 * var(--space-3)) 0 var(--space-1) calc(-1 * var(--space-1)); padding-right: var(--space-2); color: var(--text-2); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; border-radius: var(--radius-sm); }
.crumb .icon { width: 18px; height: 18px; }
.crumb:hover { color: var(--text); }
.crumb:hover span { text-decoration: underline; text-underline-offset: 3px; }

/* Targets: anything a thumb uses is at least 44 px tall on a phone (40 px for compact buttons on a desktop).
   Disabled buttons stay readable instead of fading into a pale lime. */
.button[disabled], .button.disabled { opacity: 1; background: var(--sand); color: var(--text-2); border-color: var(--line); cursor: not-allowed; }
input[type="radio"], input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--charcoal); flex: none; }
:root[data-theme="dark"] input[type="radio"], :root[data-theme="dark"] input[type="checkbox"] { accent-color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) input[type="radio"], :root:not([data-theme="light"]) input[type="checkbox"] { accent-color: var(--accent); } }
summary { min-height: 44px; display: flex; align-items: center; gap: var(--space-2); cursor: pointer; }
.sidebar-nav a { min-height: 44px; }
.chip-nav a, .drill-chips a, .segmented a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.footer-legal a, .legal-nav a, .sidebar-legal a, .auth-footer a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 599px) {
  .button-small { min-height: 44px; }
  .site-nav > a:not(.button) { display: inline-flex; align-items: center; min-height: 44px; }
}

/* Errors inside the app: a calm photo and one way on. */
.error-card { display: grid; gap: var(--space-5); align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.error-card .error-media { margin: 0; aspect-ratio: 3 / 2; border-radius: 0; }
.error-card .error-media img { width: 100%; height: 100%; object-fit: cover; }
.error-copy { padding: 0 var(--space-5) var(--space-5); }
@media (min-width: 768px) { .error-card { grid-template-columns: 1fr 1fr; } .error-copy { padding: var(--space-6); } }

/* Sheets: forms and help open over the page when asked for. A side panel on a desktop, a bottom sheet on a phone. */
.sheet { display: inline-block; }
.sheet > summary { list-style: none; }
.sheet > summary::-webkit-details-marker { display: none; }
.sheet-backdrop { display: none; }
.sheet[open] > .sheet-backdrop { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(16, 20, 25, .5); }
.sheet-panel { display: none; }
.sheet[open] > .sheet-panel { display: flex; flex-direction: column; position: fixed; z-index: 56; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow: auto; background: var(--surface); color: var(--text); border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: 0 -16px 48px rgba(16, 20, 25, .3); animation: sheet-up .22s ease-out; text-align: left; white-space: normal; }
.sheet-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-3) var(--space-3) var(--space-5); background: var(--surface); border-bottom: 1px solid var(--line); }
.sheet-head h2 { margin: 0; font-size: var(--fs-md); }
.sheet-body { padding: var(--space-5); }
.sheet-body .form { max-width: none; }
body:has(.sheet[open]) { overflow: hidden; }
@keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sheet-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 768px) {
  .sheet[open] > .sheet-panel { top: 0; left: auto; bottom: 0; width: min(480px, 100vw); max-height: none; border-radius: var(--radius-lg) 0 0 var(--radius-lg); box-shadow: -16px 0 48px rgba(16, 20, 25, .25); animation-name: sheet-in; }
  .sheet-wide[open] > .sheet-panel { width: min(640px, 100vw); }
}
@media (prefers-reduced-motion: reduce) { .sheet[open] > .sheet-panel { animation: none; } }
.help-button { color: var(--text-2); }
.help-body ol, .help-body ul { padding-left: 1.2rem; display: grid; gap: var(--space-2); }

/* Tables that become cards on a phone: each row a block, each cell labelled by its data-label. */
@media (max-width: 599px) {
  .table-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-stack, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
  .table-stack tr { padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
  .table-stack td { padding: var(--space-1) 0; border: 0; text-align: left; white-space: normal; }
  .table-stack td[data-label] { display: flex; justify-content: space-between; gap: var(--space-3); }
  .table-stack td[data-label]::before { content: attr(data-label); color: var(--text-3); font-size: var(--fs-sm); }
  .table-stack .table-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); padding-top: var(--space-2); }
}

/* Quieter inputs: with scripts on, filters apply on change, so their Apply button steps aside. */
.js [data-autosubmit] .autosubmit-button { display: none; }
/* Drop zones: a large target that takes a dropped or picked file and previews a photo straight away. */
.dropzone { position: relative; display: grid; justify-items: center; gap: var(--space-2); padding: var(--space-5); text-align: center; border: 2px dashed var(--line-strong); border-radius: var(--radius); background: var(--bg); color: var(--text-2); cursor: pointer; }
.dropzone:hover, .dropzone-over { border-color: var(--charcoal); background: var(--selected-bg); }
.dropzone .icon { width: 28px; height: 28px; color: var(--text); }
.dropzone strong { color: var(--text); }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.dropzone input[type="file"]:focus-visible + .dropzone-focus { outline: 3px solid var(--info); }
.dropzone img[data-preview] { max-height: 160px; border-radius: var(--radius-sm); }
.dropzone-has-file { border-style: solid; border-color: var(--charcoal); }
/* Empty states: a charcoal tile with the lime mark on a soft panel, instead of a grey dashed box. */
.empty { background: linear-gradient(135deg, var(--surface), var(--bg)); border: 1px solid var(--line); border-radius: var(--radius); min-height: calc(44px + 2rem); padding: 1rem 1rem 1rem calc(1rem + 44px + .9rem); display: flex; flex-direction: column; justify-content: center; }
.empty::before { left: 1rem; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 12px; background: var(--charcoal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 40'%3E%3Cpath d='M2 2h11l16 30-5.5 8z' fill='%23F8FAFC'/%3E%3Cpath d='M46 2H35L19 32l5.5 8z' fill='%23C7FF3D'/%3E%3C/svg%3E") no-repeat center / 24px 20px; }
/* A page-level empty state with a photograph, one sentence and one next step. */
.empty-state { display: grid; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.empty-state .empty-media { margin: 0; aspect-ratio: 16 / 9; border-radius: 0; }
.empty-state .empty-media img { width: 100%; height: 100%; object-fit: cover; }
.empty-state-copy { padding: var(--space-5); display: grid; gap: var(--space-2); justify-items: start; }
.empty-state-copy h2 { margin: 0; }
.empty-state-copy p { margin: 0; color: var(--text-2); max-width: 46ch; }
@media (min-width: 768px) { .empty-state { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: center; } .empty-state .empty-media { aspect-ratio: 4 / 3; height: 100%; } .empty-state-copy { padding: var(--space-6); } }
.card .empty-state { border: 0; border-radius: var(--radius); background: var(--bg); }
.brand { min-height: 44px; }
.footer-grid a { display: inline-flex; align-items: center; min-height: 44px; }
.window .button-small { min-height: 44px; }

/* Sprint 16: the account link, + New, page tabs and the phone's bottom bar. */
.sidebar-user { text-decoration: none; color: inherit; border-radius: var(--radius-sm); padding: var(--space-2); margin: 0 calc(-1 * var(--space-1)); min-height: 44px; }
.sidebar-user:hover, .sidebar-user[aria-current="page"] { background: rgba(248, 250, 252, .07); }
.sidebar-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-3); }
.sidebar-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark-2); font-size: var(--fs-sm); text-decoration: none; }
.sidebar-links a:hover { color: var(--white); text-decoration: underline; }
.header-user { text-decoration: none; color: inherit; border-radius: 999px; padding: 2px 10px 2px 2px; }
.header-user:hover { background: var(--bg); }
.search-mobile { display: inline-flex; margin-left: auto; color: var(--text-2); }
.search-mobile + .bell { margin-left: 0; }
@media (min-width: 600px) { .search-mobile { display: none; } .search-mobile + .bell { margin-left: auto; } }
.new-menu { position: relative; flex: none; }
.new-menu > summary { list-style: none; min-height: 40px; padding: .4rem .85rem; }
.new-menu > summary::-webkit-details-marker { display: none; }
.new-menu-panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 45; width: 240px; padding: var(--space-2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 40px rgba(16, 20, 25, .18); display: grid; gap: 2px; }
.new-menu-panel a { display: flex; align-items: center; gap: var(--space-3); min-height: 44px; padding: 0 var(--space-3); border-radius: var(--radius-sm); color: var(--text); text-decoration: none; font-weight: 500; }
.new-menu-panel a .icon { color: var(--text-3); }
.new-menu-panel a:hover, .new-menu-panel a:focus-visible { background: var(--bg); }
@media (max-width: 599px) { .new-menu > summary span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .new-menu > summary { width: 44px; min-height: 44px; padding: 0; } .new-menu-panel { right: -48px; } }
.page-tabs { display: flex; gap: var(--space-1); margin: calc(-1 * var(--space-2)) 0 var(--space-5); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.page-tabs::-webkit-scrollbar { display: none; }
.page-tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-3); color: var(--text-2); font-weight: 600; text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.page-tabs a:hover { color: var(--text); }
.page-tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.tabbar { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -8px 24px rgba(16, 20, 25, .06); }
.tabbar a, .tabbar button { position: relative; display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 58px; padding: 0; border: 0; background: none; font: inherit; font-size: var(--fs-2xs); font-weight: 600; color: var(--text-3); text-decoration: none; cursor: pointer; }
.tabbar .icon { width: 22px; height: 22px; }
.tabbar a[aria-current="page"] { color: var(--text); }
.tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
.tabbar .nav-count { position: absolute; top: 6px; left: calc(50% + 6px); margin: 0; min-width: 18px; line-height: 18px; padding: 0 5px; background: var(--accent); color: var(--charcoal); }
body.has-tabbar .content { padding-bottom: calc(58px + 2rem + env(safe-area-inset-bottom)); }
body.has-tabbar .toast-region { bottom: calc(70px + env(safe-area-inset-bottom)); }
body.has-tabbar .header-menu { display: none; }
@media (min-width: 1024px) { .tabbar { display: none; } body.has-tabbar .content { padding-bottom: 2rem; } body.has-tabbar .toast-region { bottom: auto; } }
/* To do: one row per thing waiting, safeguarding first in red. */
.todo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.todo-row { display: flex; align-items: center; gap: var(--space-4); min-height: 64px; padding: var(--space-3) var(--space-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; font-weight: 600; transition: border-color .15s, transform .15s; }
.todo-row:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.todo-row > .icon { margin-left: auto; color: var(--text-3); }
.todo-count { flex: none; display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 var(--space-2); border-radius: 12px; background: var(--charcoal); color: var(--accent); font-size: var(--fs-md); font-weight: 800; font-variant-numeric: tabular-nums; }
.todo-urgent { border-color: var(--error-line); background: var(--error-bg); }
.todo-urgent .todo-count { background: var(--error); color: var(--white); }
.todo-tidy { margin-top: var(--space-5); }
.todo-tidy a { display: flex; align-items: center; gap: var(--space-3); min-height: 56px; padding: var(--space-3) var(--space-4); border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--text-2); text-decoration: none; }
.todo-tidy a > .icon:last-child { margin-left: auto; }
/* The Settings hub: tiles that show where each part stands. */
.hub-section { margin-bottom: var(--space-6); }
.hub-section h2 { font-size: var(--fs-md); margin-bottom: var(--space-3); }
.hub-grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.hub-tile { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.hub-tile:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.hub-icon { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--charcoal); color: var(--accent); }
.hub-text { display: grid; gap: 2px; min-width: 0; }
.hub-about { color: var(--text-3); font-size: var(--fs-sm); }
.hub-status { justify-self: start; margin-top: var(--space-2); padding: 2px 10px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 700; border: 1px solid transparent; }
.hub-ok { background: var(--success-bg); color: var(--success); border-color: var(--success-line); }
.hub-attention { background: var(--warning-bg); color: var(--warning); border-color: var(--warning-line); }
.hub-urgent { background: var(--error-bg); color: var(--error); border-color: var(--error-line); }
.hub-todo { background: var(--selected-bg); color: var(--text); border-color: var(--accent); }
.hub-quiet { background: var(--bg); color: var(--text-2); border-color: var(--line); }
.sidebar .avatar { background: var(--graphite); color: var(--white); }
/* The owner's home: number tiles with a change and a trend line, a sample chart, bays by hour. */
.stat-trend { position: relative; }
.stat-delta { font-size: var(--fs-xs); font-weight: 700; margin-top: 2px; }
.stat-delta span { font-weight: 500; color: var(--text-3); }
.stat-delta.up { color: var(--success); } .stat-delta.down { color: var(--error); } .stat-delta.flat { color: var(--text-3); }
.sparkline { display: block; width: 96px; height: 28px; margin-top: var(--space-2); overflow: visible; }
.sparkline polyline { fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sparkline circle { fill: var(--accent); stroke: var(--charcoal); stroke-width: 1.5; }
.chart-sample .chart, .chart-sample .legend { opacity: .45; filter: grayscale(.2); }
.waiting-card .todo-list { margin-top: var(--space-2); }
.bay-strip { display: grid; gap: 3px; overflow-x: auto; }
.bay-row { display: grid; grid-template-columns: minmax(64px, 7rem) repeat(15, minmax(14px, 1fr)); gap: 3px; align-items: center; }
.bay-hours span { font-size: var(--fs-2xs); color: var(--text-3); }
.bay-name { font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bay-cell { display: inline-block; height: 18px; min-width: 14px; border-radius: 4px; background: var(--bg); border: 1px solid var(--line); }
.bay-1 { background: var(--accent-soft); border-color: transparent; }
.bay-2 { background: var(--accent); border-color: transparent; opacity: .7; }
.bay-3 { background: var(--charcoal); border-color: var(--charcoal); }
:root[data-theme="dark"] .bay-3 { background: var(--accent); }
.bay-legend { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-3); }
.bay-legend .bay-cell { width: 18px; }

/* Sprint 17: the student record. A dark header with who and what to watch for, the open steps, then tabs. */
.page-header-crumb { margin-bottom: var(--space-3); }
.record-head { position: relative; overflow: hidden; display: grid; gap: var(--space-4); padding: var(--space-5); margin-bottom: var(--space-4); border-radius: var(--radius-lg); color: var(--white); background: radial-gradient(90% 120% at 100% 0%, rgba(199, 255, 61, .16), transparent 55%), linear-gradient(160deg, var(--graphite), var(--charcoal)); }
.record-id { display: flex; align-items: center; gap: var(--space-4); min-width: 0; }
.avatar-xl { width: 64px; height: 64px; font-size: var(--fs-md); box-shadow: 0 0 0 3px rgba(248, 250, 252, .12); }
.record-head .avatar:not(.avatar-lime):not(.avatar-photo) { background: var(--line-dark); color: var(--white); }
.record-id-text { min-width: 0; }
.record-head h1 { margin: 0; font-size: var(--fs-xl); line-height: 1.15; color: var(--white); overflow-wrap: anywhere; }
.record-facts { margin: var(--space-1) 0 0; color: var(--on-dark-2); font-size: var(--fs-sm); }
.record-who { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); margin: var(--space-2) 0 0; font-size: var(--fs-sm); color: var(--on-dark-2); }
.record-who strong { color: var(--white); }
.record-who-missing { color: var(--warning-line); font-weight: 600; }
.record-call { display: inline-flex; align-items: center; gap: var(--space-1); min-height: 44px; color: var(--accent); font-weight: 600; text-decoration: none; }
.record-call .icon { width: 18px; height: 18px; }
.record-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.record-chip { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; max-width: 100%; padding: 0 var(--space-3); border-radius: 999px; border: 1px solid var(--line-dark); background: rgba(248, 250, 252, .06); color: var(--on-dark-2); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; }
.record-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.record-chip .icon { width: 16px; height: 16px; flex: none; }
.record-chip:hover { border-color: var(--on-dark-2); }
.record-chip-urgent { background: rgba(239, 68, 68, .18); border-color: rgba(252, 165, 165, .6); color: #FECACA; }
.record-chip-warn { background: rgba(253, 224, 71, .12); border-color: rgba(253, 224, 71, .45); color: #FEF08A; }
.record-chip-ok { background: rgba(199, 255, 61, .12); border-color: rgba(199, 255, 61, .45); color: var(--lime); }
.record-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.record-actions .button { min-height: 44px; }
@media (min-width: 768px) {
  .record-head { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: var(--space-6); }
  .record-chips { grid-column: 1 / -1; grid-row: 2; }
  .record-actions { grid-column: 2; grid-row: 1; justify-content: flex-end; }
  .avatar-xl { width: 80px; height: 80px; font-size: var(--fs-lg); }
  .record-head h1 { font-size: var(--fs-2xl); }
}

.record-todo { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); padding: var(--space-4); margin-bottom: var(--space-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.record-ring { position: relative; width: 52px; height: 52px; flex: none; display: grid; place-items: center; }
.record-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.record-ring span { font-size: var(--fs-xs); font-weight: 700; }
.ring-track { fill: none; stroke: var(--sand); stroke-width: 5; }
.ring-done { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; }
.record-todo-text { display: grid; }
.record-todo-text span { color: var(--text-2); font-size: var(--fs-sm); }
.record-todo-steps { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; flex: 1 1 100%; }
@media (min-width: 768px) { .record-todo-steps { flex: 1 1 0; justify-content: flex-end; } }
.step-chip { display: inline-flex; align-items: center; gap: var(--space-1); min-height: 44px; padding: 0 var(--space-3); border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; background: var(--surface); transition: background .15s, border-color .15s; }
.step-chip .icon { width: 16px; height: 16px; }
a.step-chip:hover { background: var(--accent); border-color: var(--charcoal); color: var(--charcoal); }
.step-chip-wait { border-style: dashed; color: var(--text-3); }

.record-tabs { position: sticky; top: var(--header); z-index: 15; background: var(--bg); margin-top: 0; }
.record-panel { display: grid; gap: var(--space-4); }
.record-panel[hidden] { display: none; }
.record-panel > *, .record-admin-body > * { margin: 0; }
[data-tab-panel] [id], .record-admin [id] { scroll-margin-top: calc(var(--header) + 60px); }
.record-overview { gap: var(--space-4); }
.record-next-when { display: inline-grid; gap: 2px; padding: var(--space-3) var(--space-4); margin-bottom: var(--space-2); border-radius: var(--radius); background: var(--charcoal); color: var(--white); text-decoration: none; }
.record-next-when strong { font-size: var(--fs-xl); line-height: 1; color: var(--accent); }
.record-next-day { font-size: var(--fs-sm); color: var(--on-dark-2); }
.record-next p { margin: var(--space-1) 0 0; }
.record-quote { margin: var(--space-3) 0 0; padding: var(--space-1) 0 var(--space-1) var(--space-4); border-left: 3px solid var(--accent); font-size: var(--fs-md); line-height: 1.5; }
.record-task { display: grid; gap: var(--space-1); margin: var(--space-3) 0 0; padding: var(--space-3); border-radius: var(--radius-sm); background: var(--accent-soft); }
.record-glance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.glance { display: grid; align-content: start; gap: 2px; padding: var(--space-3); border-radius: var(--radius-sm); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: border-color .15s; }
.glance:hover { border-color: var(--line-strong); }
.glance-label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.glance strong { font-size: var(--fs-lg); overflow-wrap: anywhere; }

.money-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-3); }
.money-fig { display: grid; gap: 2px; padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); background: var(--bg); }
.money-fig > span:first-child { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.money-fig strong { font-size: var(--fs-xl); line-height: 1.2; }
.money-owes strong { color: var(--warning); }
.money-actions { margin-top: var(--space-4); justify-content: flex-start; }

.record-admin { padding: 0; }
.record-admin > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 64px; padding: var(--space-3) var(--space-4); cursor: pointer; list-style: none; }
.record-admin > summary::-webkit-details-marker { display: none; }
.record-admin > summary > span { display: grid; gap: 2px; }
.record-admin > summary .icon { flex: none; transition: transform .15s; }
.record-admin[open] > summary .icon { transform: rotate(90deg); }
.record-admin-body { display: grid; gap: var(--space-4); padding: 0 var(--space-4) var(--space-4); }
.record-admin-body > .card { box-shadow: none; }
.authority-payer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); margin-top: var(--space-3); padding: var(--space-3); border-radius: var(--radius-sm); background: var(--bg); }
.privacy-now li { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.card-header .sheet > summary, .page-actions .sheet > summary { white-space: nowrap; }
.form-part { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-4); }
.form-part[hidden] { display: none; }
.form-part legend { padding: 0 var(--space-2); font-weight: 700; }
.privacy-now li > span:first-child { flex: 1 1 auto; min-width: 0; }
.privacy-now .badge { flex: none; }
@media (max-width: 767px) { .record-actions .button { flex: 1 1 auto; justify-content: center; } }

/* Sprint 18: the coach's day. A dark "Next up" card that carries the one action, requests answered on the row. */
.nextup { position: relative; overflow: hidden; display: grid; min-height: 280px; margin-bottom: var(--space-4); border-radius: var(--radius-lg); background: var(--charcoal); color: var(--white); }
.nextup-media { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; background: var(--charcoal); }
.nextup-media img { width: 100%; height: 100%; object-fit: cover; opacity: .6; }
.nextup-media figcaption { display: none; }
.nextup-body { position: relative; display: grid; align-content: end; gap: var(--space-2); padding: var(--space-5); background: linear-gradient(0deg, rgba(16, 20, 25, .96) 0%, rgba(16, 20, 25, .8) 55%, rgba(16, 20, 25, .25) 100%); }
.nextup h2 { margin: 0; font-size: var(--fs-xl); line-height: 1.15; color: var(--white); overflow-wrap: anywhere; }
.nextup p { margin: 0; color: var(--on-dark-2); }
.nextup-eyebrow { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.nextup-focus { padding-left: var(--space-3); border-left: 3px solid var(--accent); color: var(--white) !important; font-size: var(--fs-md); }
.nextup-focus span { color: var(--on-dark-2); font-size: var(--fs-sm); margin-right: var(--space-1); }
.nextup-medical { display: flex; align-items: flex-start; gap: var(--space-2); color: #FECACA !important; font-weight: 600; font-size: var(--fs-sm); }
.nextup-medical .icon { flex: none; width: 18px; height: 18px; }
.nextup-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.nextup-actions .button { min-height: 48px; }
.nextup-actions form { display: contents; }
.nextup-quiet { min-height: 200px; }
@media (min-width: 768px) {
  .nextup { min-height: 300px; }
  .nextup-body { align-content: center; max-width: 640px; padding: var(--space-6); background: linear-gradient(90deg, rgba(16, 20, 25, .96) 0%, rgba(16, 20, 25, .85) 60%, rgba(16, 20, 25, 0) 100%); }
  .nextup h2 { font-size: var(--fs-2xl); }
}
.request-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.request-main { display: grid; gap: 2px; min-width: 0; flex: 1 1 200px; color: var(--text); text-decoration: none; }
.request-when { font-size: var(--fs-xs); font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; }
.request-actions { display: flex; align-items: center; gap: var(--space-2); }
.coach-day h3 { margin: var(--space-4) 0 var(--space-2); font-size: var(--fs-sm); color: var(--text-2); }
.coach-day h3:first-of-type { margin-top: 0; }
.day-dots { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--space-1); margin: 0 0 var(--space-3); padding: 0; list-style: none; }
.day-dots a { display: grid; justify-items: center; gap: var(--space-1); min-height: 64px; padding: var(--space-2) 0; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; }
.day-dots a:hover { background: var(--bg); }
.day-dots .is-today .dot-label { color: var(--text); font-weight: 700; }
.dot-label { font-size: var(--fs-xs); color: var(--text-2); }
.dot { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px dashed var(--line-strong); font-size: var(--fs-xs); font-weight: 700; }
.dot-1 { border: 0; background: var(--accent-soft); }
.dot-2 { border: 0; background: var(--accent); opacity: .7; color: var(--charcoal); }
.dot-3, .dot-4 { border: 0; background: var(--accent); color: var(--charcoal); }

/* The lesson as a coach sees it: who, their words, what to know, one action in a bar on phones, one composer. */
.lesson-focus { margin: 0; padding: var(--space-4) var(--space-5); border-radius: var(--radius); background: var(--charcoal); color: var(--white); font-size: var(--fs-md); line-height: 1.45; display: grid; gap: var(--space-1); }
.lesson-focus .eyebrow { color: var(--accent); }
.context-strip { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); padding: var(--space-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.context-who { display: flex; align-items: center; gap: var(--space-3); min-height: 44px; color: var(--text); text-decoration: none; }
.context-who > span { display: grid; }
.context-task { display: grid; gap: 2px; margin: 0; flex: 1 1 220px; font-size: var(--fs-sm); }
.context-task > span:first-child { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.context-flags { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.context-medical { display: inline-flex; align-items: center; gap: var(--space-1); padding: var(--space-1) var(--space-3); border-radius: 999px; background: var(--error-bg); color: var(--error); border: 1px solid var(--error-line); font-size: var(--fs-sm); font-weight: 600; }
.context-medical .icon, .context-call .icon { width: 16px; height: 16px; flex: none; }
.context-call { display: inline-flex; align-items: center; gap: var(--space-1); min-height: 44px; padding: 0 var(--space-3); border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text); font-weight: 600; font-size: var(--fs-sm); text-decoration: none; }
.step-panel h2 { margin: 0 0 var(--space-2); }
.action-bar { margin-top: var(--space-4); }
.action-bar .button-large { width: 100%; justify-content: center; }
.action-form { display: grid; gap: var(--space-3); }
@media (max-width: 1023px) {
  .action-bar { position: fixed; z-index: 24; left: 0; right: 0; bottom: 0; margin: 0; padding: var(--space-3) 16px calc(var(--space-3) + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(16, 20, 25, .12); }
  body.has-tabbar .action-bar { bottom: calc(58px + env(safe-area-inset-bottom)); padding-bottom: var(--space-3); }
  body:has(.action-bar) .content { padding-bottom: calc(58px + 120px + env(safe-area-inset-bottom)); }
  .action-bar .field { margin: 0; }
}
.lesson-details { padding: 0; }
.lesson-details > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 60px; padding: var(--space-3) var(--space-4); cursor: pointer; list-style: none; }
.lesson-details > summary::-webkit-details-marker { display: none; }
.lesson-details > summary > span { display: grid; gap: 2px; }
.lesson-details > summary .icon { transition: transform .15s; }
.lesson-details[open] > summary .icon { transform: rotate(90deg); }
.lesson-details-body { border: 0; box-shadow: none; margin: 0 var(--space-2) var(--space-2); }
.readiness > .muted { display: block; margin-top: var(--space-1); }
.composer { padding: var(--space-4) 0; border-top: 1px solid var(--line); }
.composer:first-of-type { border-top: 0; padding-top: 0; }
.task-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: calc(-1 * var(--space-2)); }
.chip-button { min-height: 36px; max-width: 100%; padding: 0 var(--space-3); border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-button:hover { background: var(--accent); border-color: var(--charcoal); color: var(--charcoal); }
.composer-part { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--space-3); margin: 0; }
.composer-part legend { padding: 0 var(--space-2); font-weight: 700; }
.composer-part .score-row { border: 0; padding: 0; margin: 0 0 var(--space-3); }
.composer-part .score-option { min-height: 44px; align-content: center; }
.composer-media { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.composer-media label.button { cursor: pointer; }
.visually-hidden-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.composer-media:has(input:focus-visible) label.button { outline: 3px solid var(--info); outline-offset: 2px; }
.composer-actions { justify-content: flex-start; }
.segmented + .student-cards, .segmented + .empty { margin-top: var(--space-4); }
.student-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.student-card { display: flex; align-items: center; gap: var(--space-3); min-height: 84px; padding: var(--space-3) var(--space-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.student-card:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.student-card > .icon { margin-left: auto; color: var(--text-3); flex: none; }
.student-card-text { display: grid; gap: 2px; min-width: 0; }
.student-card-flags { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); font-size: var(--fs-sm); color: var(--text-2); }
.student-card-medical { display: inline-flex; align-items: center; gap: 2px; color: var(--error); font-weight: 600; }
.student-card-medical .icon { width: 14px; height: 14px; }
.segmented a { min-height: 44px; display: grid; place-items: center; }
.segmented a[aria-current="page"] { background: var(--active-bg); color: var(--active-fg); }

/* Availability as a week: 30 half-hour columns from 06:00 to 21:00; blocks span them by class (no inline styles). */
.avail-scale, .avail-track { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); }
.avail-scale { margin: var(--space-3) 0 var(--space-1) 48px; font-size: var(--fs-2xs); color: var(--text-3); }
.avail-scale span { grid-row: 1; white-space: nowrap; transform: translateX(-50%); }
.avail-scale span:first-child { display: none; }
.avail-scale .gs-31 { grid-column-start: 30; transform: translateX(0); justify-self: end; }
.avail-week { display: grid; gap: var(--space-2); margin: 0 0 var(--space-3); padding: 0; list-style: none; }
.avail-day { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: var(--space-2); }
.avail-name { font-size: var(--fs-sm); font-weight: 700; color: var(--text-2); }
.avail-track { min-height: 44px; align-items: stretch; border-radius: var(--radius-sm); background: repeating-linear-gradient(90deg, var(--bg) 0, var(--bg) calc(100% / 5 - 1px), var(--line) calc(100% / 5 - 1px), var(--line) calc(100% / 5)); }
.avail-off { grid-column: 1 / -1; align-self: center; padding-left: var(--space-3); font-size: var(--fs-sm); color: var(--text-3); }
.avail-block { grid-row: 1; display: block; min-width: 0; }
.avail-block > summary.button-block { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 44px; padding: 0 var(--space-1); border: 1px solid var(--charcoal); border-radius: var(--radius-sm); background: var(--accent); color: var(--charcoal); font-size: var(--fs-xs); font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; }
.day-picks { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--space-1); }
.day-pick { position: relative; display: grid; place-items: center; min-height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-weight: 700; font-size: var(--fs-sm); cursor: pointer; }
.day-pick input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.day-pick:has(input:checked) { background: var(--accent); border-color: var(--charcoal); color: var(--charcoal); }
.day-pick:has(input:focus-visible) { outline: 3px solid var(--info); outline-offset: 2px; }
.gs-1 { grid-column-start: 1; }
.ge-1 { grid-column-end: 1; }
.gs-2 { grid-column-start: 2; }
.ge-2 { grid-column-end: 2; }
.gs-3 { grid-column-start: 3; }
.ge-3 { grid-column-end: 3; }
.gs-4 { grid-column-start: 4; }
.ge-4 { grid-column-end: 4; }
.gs-5 { grid-column-start: 5; }
.ge-5 { grid-column-end: 5; }
.gs-6 { grid-column-start: 6; }
.ge-6 { grid-column-end: 6; }
.gs-7 { grid-column-start: 7; }
.ge-7 { grid-column-end: 7; }
.gs-8 { grid-column-start: 8; }
.ge-8 { grid-column-end: 8; }
.gs-9 { grid-column-start: 9; }
.ge-9 { grid-column-end: 9; }
.gs-10 { grid-column-start: 10; }
.ge-10 { grid-column-end: 10; }
.gs-11 { grid-column-start: 11; }
.ge-11 { grid-column-end: 11; }
.gs-12 { grid-column-start: 12; }
.ge-12 { grid-column-end: 12; }
.gs-13 { grid-column-start: 13; }
.ge-13 { grid-column-end: 13; }
.gs-14 { grid-column-start: 14; }
.ge-14 { grid-column-end: 14; }
.gs-15 { grid-column-start: 15; }
.ge-15 { grid-column-end: 15; }
.gs-16 { grid-column-start: 16; }
.ge-16 { grid-column-end: 16; }
.gs-17 { grid-column-start: 17; }
.ge-17 { grid-column-end: 17; }
.gs-18 { grid-column-start: 18; }
.ge-18 { grid-column-end: 18; }
.gs-19 { grid-column-start: 19; }
.ge-19 { grid-column-end: 19; }
.gs-20 { grid-column-start: 20; }
.ge-20 { grid-column-end: 20; }
.gs-21 { grid-column-start: 21; }
.ge-21 { grid-column-end: 21; }
.gs-22 { grid-column-start: 22; }
.ge-22 { grid-column-end: 22; }
.gs-23 { grid-column-start: 23; }
.ge-23 { grid-column-end: 23; }
.gs-24 { grid-column-start: 24; }
.ge-24 { grid-column-end: 24; }
.gs-25 { grid-column-start: 25; }
.ge-25 { grid-column-end: 25; }
.gs-26 { grid-column-start: 26; }
.ge-26 { grid-column-end: 26; }
.gs-27 { grid-column-start: 27; }
.ge-27 { grid-column-end: 27; }
.gs-28 { grid-column-start: 28; }
.ge-28 { grid-column-end: 28; }
.gs-29 { grid-column-start: 29; }
.ge-29 { grid-column-end: 29; }
.gs-30 { grid-column-start: 30; }
.ge-30 { grid-column-end: 30; }
.gs-31 { grid-column-start: 31; }
.ge-31 { grid-column-end: 31; }
.month-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--space-3); margin-bottom: var(--space-4); }
.month-fig { display: grid; align-content: start; gap: 2px; padding: var(--space-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; }
a.month-fig:hover { border-color: var(--line-strong); }
.month-fig > span:first-child, .month-ring > span > span:first-child { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.month-fig strong { font-size: var(--fs-xl); line-height: 1.2; }
.month-ring { grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: var(--space-3); }
.month-ring svg { width: 64px; height: 64px; }
.month-ring > span { display: grid; gap: 2px; }
.month-ring .ring-track, .month-ring .ring-done { stroke-width: 7; }
.ahead-bar { height: 14px; border-radius: 999px; background: var(--sand); overflow: hidden; display: grid; grid-template-columns: repeat(10, 1fr); }
.ahead-fill { grid-row: 1; grid-column-start: 1; background: var(--accent); border-right: 1px solid var(--charcoal); }
.fill-0 { display: none; } .fill-1 { grid-column-end: 2; } .fill-2 { grid-column-end: 3; } .fill-3 { grid-column-end: 4; } .fill-4 { grid-column-end: 5; } .fill-5 { grid-column-end: 6; } .fill-6 { grid-column-end: 7; } .fill-7 { grid-column-end: 8; } .fill-8 { grid-column-end: 9; } .fill-9 { grid-column-end: 10; } .fill-10 { grid-column-end: 11; border-right: 0; }
.readiness li.info::before { content: "\2022"; color: var(--info); }
.grid > *, .step-panel { min-width: 0; }
.avail-block > summary.button-block { display: block; line-height: 42px; text-align: center; }
.composer > * { min-width: 0; }
.composer-media { position: relative; } .visually-hidden-file { left: 0; top: 0; }
.inline-form > input:not([type=hidden]), .inline-form > select { min-height: 44px; padding: 0 .75rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font: inherit; background: var(--surface); color: var(--text); }

/* Sprint 19: the swing line stays clear of text (drawn only beside the copy on wide screens). */
@media (max-width: 1023px) { .swing-trail { display: none; } }
@media (min-width: 1024px) { .swing-trail { left: 45%; width: 55%; } }

/* The academy's website at / */
.storefront .site-header { position: sticky; top: 0; z-index: 30; }
.storefront-brand { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--white); font-weight: 700; text-decoration: none; min-width: 0; }
.storefront-brand span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 52vw; }
.storefront .site-nav { gap: var(--space-3); }
.site-login { color: var(--white); font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 767px) { .storefront .site-nav .button { min-height: 44px; padding: 0 var(--space-4); } }
.store-hero { position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: 560px; padding: 6rem 0 2.5rem; background: var(--charcoal); color: var(--white); }
.store-hero-media { position: absolute; inset: 0; margin: 0; border-radius: 0; aspect-ratio: auto; }
.store-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 65% 40%; }
.store-hero-media figcaption { display: none; }
.store-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(16, 20, 25, .97) 0%, rgba(16, 20, 25, .78) 45%, rgba(16, 20, 25, .2) 100%); }
.store-hero-copy { position: relative; z-index: 2; display: grid; gap: var(--space-3); }
.store-hero h1 { margin: 0; font-size: clamp(var(--fs-2xl), 7vw, 4.5rem); line-height: 1.02; letter-spacing: -0.03em; color: var(--white); max-width: 14ch; }
.store-hero .lede { margin: 0; max-width: 36rem; font-size: var(--fs-md); color: var(--on-dark-2); }
.store-hero .hero-actions { margin-top: var(--space-2); }
.store-facts { margin: 0; color: var(--accent); font-weight: 700; font-size: var(--fs-sm); }
@media (min-width: 1024px) { .store-hero { min-height: 620px; align-items: center; } .store-hero::before { background: linear-gradient(90deg, rgba(16, 20, 25, .96) 0%, rgba(16, 20, 25, .8) 45%, rgba(16, 20, 25, .1) 100%); } }
.store-section { padding-block: 3rem; }
.store-heading { display: grid; gap: var(--space-1); margin-bottom: var(--space-5); }
.store-heading h2, .store-split h2, .store-band h2 { margin: 0; font-size: clamp(var(--fs-xl), 3.2vw, 2.4rem); letter-spacing: -0.02em; }
.store-heading p { margin: 0; }
.store-sub { margin: var(--space-6) 0 var(--space-3); font-size: var(--fs-md); }
.store-times { padding-block: 2rem 1rem; }
.time-chips { display: grid; grid-auto-flow: column; grid-auto-columns: max-content; gap: var(--space-2); margin: 0; padding: 0 0 var(--space-2); list-style: none; overflow-x: auto; scroll-snap-type: x proximity; }
.time-chip { display: flex; align-items: center; gap: var(--space-2); min-height: 56px; padding: var(--space-2) var(--space-4) var(--space-2) var(--space-2); border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none; scroll-snap-align: start; transition: background .15s, border-color .15s; }
.time-chip:hover { background: var(--accent); border-color: var(--charcoal); color: var(--charcoal); }
.time-chip > span { display: grid; line-height: 1.2; }
.time-chip > span span { font-size: var(--fs-sm); color: var(--text-2); }
.time-chip:hover > span span { color: var(--charcoal); }
.store-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 80%); gap: var(--space-3); margin: 0 -16px; padding: 0 16px var(--space-2); list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; }
.store-rail > li { scroll-snap-align: start; }
@media (min-width: 768px) { .store-rail { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin: 0; padding: 0; overflow: visible; } }
.price-card, .coach-card, .review-card { display: grid; align-content: start; gap: var(--space-2); padding: var(--space-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.price-card h3, .coach-card h3 { margin: 0; font-size: var(--fs-md); }
.price-format { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.price { margin: 0; }
.price strong { font-size: var(--fs-xl); }
.price-card-dark { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }
.price-card-dark h3 { color: var(--white); }
.price-card-dark .price-format, .price-card-dark .price span { color: var(--accent); }
.clinic-list { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.clinic-list a { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: var(--space-3); min-height: 64px; padding: var(--space-2) var(--space-4) var(--space-2) var(--space-2); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; }
.clinic-list a > span:nth-child(2) { display: grid; }
.clinic-date { display: grid; place-items: center; height: 56px; border-radius: var(--radius-sm); background: var(--charcoal); color: var(--white); font-size: var(--fs-xs); text-transform: uppercase; line-height: 1.1; }
.clinic-date strong { font-size: var(--fs-lg); color: var(--accent); }
.clinic-left { font-size: var(--fs-sm); font-weight: 700; color: var(--success); }
.coach-card { justify-items: start; }
.coach-photo { width: 88px; height: 88px; font-size: var(--fs-lg); }
.coach-card p { margin: 0; color: var(--text-2); }
.coach-badges { display: flex; flex-wrap: wrap; gap: var(--space-1); margin: 0; padding: 0; list-style: none; }
.coach-badges li { display: inline-flex; align-items: center; gap: 4px; padding: 2px var(--space-2); border-radius: 999px; background: var(--success-bg); color: var(--success); border: 1px solid var(--success-line); font-size: var(--fs-xs); font-weight: 600; }
.coach-badges .icon { width: 14px; height: 14px; }
.store-band { padding-block: 3.5rem; background: var(--charcoal); color: var(--white); }
.store-band h2 { color: var(--white); }
.store-split { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 900px) { .store-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.store-points { display: grid; gap: var(--space-3); margin: var(--space-5) 0 0; padding: 0; list-style: none; }
.store-points li { display: flex; align-items: center; gap: var(--space-3); font-size: var(--fs-md); }
.store-points .icon { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: rgba(199, 255, 61, .14); color: var(--accent); }
.store-phone .phones { grid-template-columns: minmax(0, 260px); justify-content: center; }
.store-phone .frame-phone:nth-child(n+2) { display: none; }
@media (max-width: 899px) { .store-phone { display: none; } }
.store-photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.store-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) { .store-photo { aspect-ratio: 16 / 9; } }
.store-list { display: grid; gap: var(--space-3); margin: var(--space-4) 0 var(--space-5); padding: 0; list-style: none; }
.store-list li { padding-left: var(--space-5); position: relative; color: var(--text-2); }
.store-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid var(--charcoal); }
.store-list strong { color: var(--text); }
.review-card blockquote { margin: 0; font-size: var(--fs-md); line-height: 1.45; }
/* Rating stars are graphics, so they need 3:1 against the card: a deeper gold in light, the bright one in dark. */
.stars { color: #A67700; letter-spacing: 2px; }
:root[data-theme="dark"] .stars { color: #F5B700; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stars { color: #F5B700; } }
.stars-off { color: var(--line-strong); }
.hours-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; font-variant-numeric: tabular-nums; }
.choice-pills { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.choice-pill { position: relative; display: grid; place-items: center; min-height: 48px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; }
.choice-pill input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.choice-pill:has(input:checked) { background: var(--accent); border-color: var(--charcoal); color: var(--charcoal); }
.choice-pill:has(input:focus-visible) { outline: 3px solid var(--info); outline-offset: 2px; }
.store-footer { display: grid; gap: var(--space-4); padding: var(--space-6) 0 var(--space-4); }
.store-footer > div:first-child { display: grid; gap: 2px; color: var(--white); }
.store-footer-links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.store-footer-links a { color: var(--on-dark-2); min-height: 44px; display: inline-flex; align-items: center; }
@media (min-width: 768px) { .store-footer { grid-template-columns: 1fr auto; align-items: center; } }

/* Students and parents: the app-style home. */
.family-home { display: grid; gap: var(--space-4); max-width: 880px; }
.family-hero { position: relative; overflow: hidden; display: grid; min-height: 320px; border-radius: var(--radius-lg); background: var(--charcoal); color: var(--white); }
.family-hero-media { position: absolute; inset: 0; margin: 0; border-radius: 0; aspect-ratio: auto; }
.family-hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.family-hero-media figcaption { display: none; }
.family-hero-body { position: relative; display: grid; align-content: end; gap: var(--space-2); padding: var(--space-5); background: linear-gradient(0deg, rgba(16, 20, 25, .97) 0%, rgba(16, 20, 25, .75) 60%, rgba(16, 20, 25, .15) 100%); }
.family-hero h2 { margin: 0; font-size: var(--fs-2xl); line-height: 1.08; color: var(--white); }
.family-hero p { margin: 0; color: var(--on-dark-2); }
.family-coach { display: flex; align-items: center; gap: var(--space-3); }
.family-coach .avatar { width: 48px; height: 48px; box-shadow: 0 0 0 2px var(--accent); }
.family-coach .muted { color: var(--on-dark-2); }
@media (min-width: 768px) { .family-hero-body { padding: var(--space-6); max-width: 560px; background: linear-gradient(90deg, rgba(16, 20, 25, .96) 0%, rgba(16, 20, 25, .8) 65%, rgba(16, 20, 25, 0) 100%); } }
.family-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); }
.family-tile { display: grid; justify-items: center; align-content: center; gap: var(--space-1); min-height: 84px; padding: var(--space-2); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: var(--fs-sm); font-weight: 600; text-align: center; }
.family-tile .icon { width: 26px; height: 26px; }
.family-tile-accent { background: var(--accent); border-color: var(--charcoal); color: var(--charcoal); }
.family-tile:hover { border-color: var(--line-strong); }
.family-preview { border-style: dashed; }
/* The example is marked by its label and a dashed edge; fading it would take its text under AA contrast. */
.family-preview .record-quote, .family-preview .record-task { outline: 1px dashed var(--line-strong); outline-offset: -1px; }
.progress-preview svg { width: 100%; height: 48px; }
.progress-preview polyline { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: .35; stroke-dasharray: 6 6; }
.family-kids { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.family-kids a { display: flex; align-items: center; gap: var(--space-3); min-height: 64px; padding: var(--space-2) var(--space-3); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; }
.family-kids a > span { display: grid; }
.family-kids a > .icon { margin-left: auto; color: var(--text-3); }
.development .card-header h2 { color: var(--white); margin: 0; }
.late-note { margin: 0; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); background: rgba(253, 224, 71, .12); border: 1px solid rgba(253, 224, 71, .45); color: #FEF08A; font-size: var(--fs-sm); }
.slot-late { position: relative; }
.slot-late::after { content: ""; position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--warning); }
.slot-late-hint::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--warning); vertical-align: middle; }
#soonest .step-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2); }
#soonest .time-chips { margin-bottom: var(--space-2); }
.book-bar { display: none; }
@media (max-width: 1023px) {
  .book-bar { position: fixed; z-index: 24; left: 0; right: 0; bottom: calc(58px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) 16px; background: var(--charcoal); color: var(--white); box-shadow: 0 -10px 30px rgba(16, 20, 25, .2); }
  .book-bar > span { display: grid; min-width: 0; }
  .book-bar > span span { font-size: var(--fs-sm); color: var(--on-dark-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .book-bar .button { flex: none; min-height: 48px; }
  body:has(.book-bar) .content { padding-bottom: calc(58px + 110px + env(safe-area-inset-bottom)); }
}
.follow-card { display: grid; gap: var(--space-2); padding: var(--space-5); border-radius: var(--radius-lg); background: var(--charcoal); color: var(--white); }
.follow-card h2 { margin: 0; font-size: var(--fs-lg); color: var(--white); }
.follow-card p { margin: 0; color: var(--on-dark-2); }
.follow-confirmed { border-left: 6px solid var(--accent); }
.follow-tip { padding-top: var(--space-2); border-top: 1px solid var(--line-dark); }
.choice-pills-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 520px) { .choice-pills-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Sign-up and log-in: a photo band above the form on phones, the full panel beside it on wide screens. */
@media (max-width: 1023px) {
  .auth-split { display: grid; gap: var(--space-3); }
  .auth-side { display: block; order: -1; position: relative; height: 150px; border-radius: var(--radius-lg); overflow: hidden; background: var(--charcoal); }
  .auth-side .auth-photo { position: absolute; inset: 0; margin: 0; border-radius: 0; aspect-ratio: auto; }
  .auth-side .auth-photo img { width: 100%; height: 100%; object-fit: cover; }
  .auth-side-copy { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--space-3) var(--space-4); background: linear-gradient(0deg, rgba(16, 20, 25, .9), rgba(16, 20, 25, 0)); }
  .auth-side-copy p { display: none; }
}
.auth-footer { display: grid; gap: var(--space-2); }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 48px; padding: 0 var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text); text-decoration: none; }
.auth-row span { color: var(--text-2); }
.auth-row:hover { border-color: var(--line-strong); }
.role-cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.role-card { position: relative; display: grid; overflow: hidden; border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer; background: var(--surface); }
.role-card input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 2; }
.role-photo { margin: 0; aspect-ratio: 4 / 3; border-radius: 0; }
.role-photo img { width: 100%; height: 100%; object-fit: cover; }
.role-photo figcaption { display: none; }
.role-card > span { display: grid; gap: 2px; padding: var(--space-2) var(--space-3) var(--space-3); }
.role-card > span span { font-size: var(--fs-sm); color: var(--text-2); }
.role-card:has(input:checked) { border-color: var(--charcoal); box-shadow: 0 0 0 3px var(--accent); }
.role-card:has(input:focus-visible) { outline: 3px solid var(--info); outline-offset: 2px; }
.emergency .page-actions { justify-content: flex-start; }
.hole-nav { display: none; }
@media (max-width: 767px) {
  .hole-nav { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; gap: var(--space-2); margin-bottom: var(--space-3); text-align: center; font-size: var(--fs-md); }
  .hole-nav .button { min-height: 56px; font-size: var(--fs-xl); padding: 0; }
  .scorecard-entry.stepping thead { display: none; }
  .scorecard-entry.stepping tbody tr { display: none; }
  .scorecard-entry.stepping tbody tr.is-current { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); padding: var(--space-3) 0; }
  .scorecard-entry.stepping tbody tr.is-current th { grid-column: 1 / -1; font-size: var(--fs-lg); text-align: left; }
  .scorecard-entry.stepping tbody tr.is-current td { display: grid; gap: 4px; border: 0; padding: 0; }
  .scorecard-entry.stepping tbody tr.is-current td::before { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
  .scorecard-entry.stepping tbody tr.is-current td:nth-of-type(1)::before { content: "Par"; }
  .scorecard-entry.stepping tbody tr.is-current td:nth-of-type(2) { grid-column: 1 / -1; grid-template-columns: 56px 1fr 56px; align-items: center; }
  .scorecard-entry.stepping tbody tr.is-current td:nth-of-type(2)::before { content: "Strokes"; grid-column: 1 / -1; }
  .scorecard-entry.stepping tbody tr.is-current td:nth-of-type(3)::before { content: "Putts"; }
  .scorecard-entry.stepping tbody tr.is-current td:nth-of-type(4)::before { content: "Penalties"; }
  .scorecard-entry.stepping .hole-input { width: 100%; min-height: 56px; font-size: var(--fs-xl); text-align: center; }
  .scorecard-entry.stepping .stroke-step { min-height: 56px; font-size: var(--fs-xl); padding: 0; }
}
.family-credits { display: flex; align-items: center; gap: var(--space-3); min-height: 56px; padding: var(--space-2) var(--space-4); border-radius: var(--radius); background: var(--accent-soft); color: var(--text); text-decoration: none; }
.family-credits > .icon:last-child { margin-left: auto; }
@media (max-width: 767px) {
  .store-section { padding-block: 2rem; }
  .store-band { padding-block: 2.5rem; }
  .store-heading { margin-bottom: var(--space-4); }
  #visit .store-photo { display: none; }
  .store-hero { min-height: 520px; padding-top: 5rem; }
}
.footer-powered { display: inline-flex; align-items: center; min-height: 44px; }

/* Sprint 20: one hero chart per report, change on the last period, and an unlock state instead of zeros. */
.unlock { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5); margin-bottom: var(--space-4); }
.unlock h2 { margin: 0 0 var(--space-1); }
.unlock p { margin: 0 0 var(--space-3); max-width: 40rem; }
.unlock-ring { position: relative; flex: none; width: 88px; height: 88px; display: grid; place-items: center; }
.unlock-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.unlock-ring .ring-track, .unlock-ring .ring-done { stroke-width: 6; }
.unlock-ring span { font-size: var(--fs-md); font-weight: 700; }
.hero-card .card-header { flex-wrap: wrap; gap: var(--space-2); }
.hero-chart { margin: 0; }
.hero-chart svg { width: 100%; height: auto; display: block; }
.hero-chart .axis { stroke: var(--line); stroke-width: 1; }
.hero-chart .bar-main { fill: var(--accent); stroke: var(--charcoal); stroke-width: 1; }
.hero-chart .bar-current { fill: var(--charcoal); }
.hero-chart .bar-second { stroke: var(--text); stroke-width: 3; stroke-linecap: round; }
.hero-chart text { fill: var(--text-2); }
.hero-chart text.value { font-weight: 700; fill: var(--text); }
.hero-chart text.today { font-weight: 700; fill: var(--text); }
.legend .l-second::before { background: var(--text) !important; height: 3px !important; border-radius: 2px; }
.delta { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; }
.delta-up { color: var(--success); }
.delta-down { color: var(--error); }
.delta-flat { color: var(--text-3); }
.stat-change { margin-top: 2px; }
@media (max-width: 767px) { .drill-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .drill-chips a { flex: none; } }
/* Chart text is drawn in the chart's own units; on a phone the chart shrinks, so the text is drawn larger to stay readable. */
/* Each chart is drawn at 320, 560 and 880 units. The chart's own width picks one, so its 13-unit text renders at
   12 to 20 px: phones and narrow cards get the small drawing, wide desktop cards the large one. */
.hero-chart, .chart-box { container-type: inline-size; }
svg.chart-s, svg.chart-l, .hero-chart svg.chart-s, .hero-chart svg.chart-l { display: none; }
@container (max-width: 599px) { svg.chart-m, .hero-chart svg.chart-m { display: none; } svg.chart-s, .hero-chart svg.chart-s { display: block; } }
@container (min-width: 860px) { svg.chart-m, .hero-chart svg.chart-m { display: none; } svg.chart-l, .hero-chart svg.chart-l { display: block; } }
.hero-chart text, .chart .label, .chart .value { font-size: 13px; }
/* The sample chart in the website's app picture is 360 units wide; in a narrow frame its labels grow to stay at 12 px or more. */
@container (max-width: 359px) { .chart-mini .label { font-size: 18px; } }
/* Activity log as sentences; data checks as compact rows. */
.feed { display: grid; margin: 0; padding: 0; list-style: none; }
.feed-item { display: flex; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
.feed-item:last-child { border-bottom: 0; }
.feed-text { display: grid; gap: 2px; min-width: 0; }
.feed-text p { margin: 0; overflow-wrap: anywhere; }
.feed-more { display: inline; }
.feed-more summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; text-decoration: underline; }
.feed-more[open] > span { display: block; margin-top: var(--space-1); }
.check-list { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.check-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-3); padding: var(--space-2) 0; border-bottom: 1px solid var(--line); }
.check-row:last-child { border-bottom: 0; }
.check-text { display: grid; min-width: 0; flex: 1 1 220px; }
.check-actions { display: flex; align-items: center; gap: var(--space-1); }
.check-clear-card > summary { display: flex; align-items: center; gap: var(--space-2); min-height: 44px; cursor: pointer; font-weight: 600; }
[data-show-unless][hidden], [data-row][hidden] { display: none; }
.audience-count { display: inline-block; margin-left: var(--space-1); padding: 0 var(--space-2); border-radius: 999px; background: var(--accent-soft); font-size: var(--fs-xs); font-weight: 700; }
[data-show-unless-filled][hidden] { display: none; }
.cover-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.cover-card { display: grid; align-content: start; gap: var(--space-2); padding: 0 0 var(--space-3); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.cover-card > span { padding: 0 var(--space-3); display: grid; gap: 2px; }
.cover-card > span:last-child:empty { display: none; }
.cover-photo { margin: 0; border-radius: 0; aspect-ratio: 16 / 9; }
.cover-photo img { width: 100%; height: 100%; object-fit: cover; }
.cover-photo figcaption { display: none; }
.rewards-off p { color: var(--on-dark-2); max-width: 40rem; }
.setup-slim { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-2) var(--space-4); }
.setup-slim .setup-meter { grid-column: 1 / -1; width: 100%; height: 8px; }
.coach-facts { font-weight: 600; margin: 2px 0 var(--space-1); }
.consent-ask { display: grid; gap: var(--space-2); padding: var(--space-4); border-radius: var(--radius); background: var(--accent-soft); border: 1px solid var(--line-strong); } .consent-ask p { margin: 0; }
.setup-slim .setup-more { grid-column: 1 / -1; }
.setup-slim .setup-more > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--text-2); }

/* Public pages: the footer sits at the bottom of short pages. */
body.public { display: flex; flex-direction: column; }
body.public > main { flex: 1 0 auto; }
.danger-zone { border-color: var(--error-line); } .danger-zone h2 { color: var(--error); }
.nines { display: grid; gap: var(--space-3); }
@media (min-width: 768px) { .nines { grid-template-columns: 1fr 1fr; } }
.nines caption { text-align: left; font-weight: 700; padding: 0 0 var(--space-1); }
[data-show-unless-not][hidden] { display: none; }
.todo-tidy-link { display: flex; align-items: center; min-height: 44px; padding: 0 var(--space-4); border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--text-2); text-decoration: none; font-weight: 600; }
.helper-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); margin: 0 0 var(--space-3); padding: 0; list-style: none; }
.helper-steps li { display: grid; justify-items: center; gap: var(--space-1); padding: var(--space-2); border-radius: var(--radius-sm); border: 1px dashed var(--line-strong); font-weight: 700; text-align: center; }
.helper-steps li span { font-size: var(--fs-xs); font-weight: 600; color: var(--text-2); }
.helper-steps li.done { border-style: solid; border-color: var(--charcoal); background: var(--accent); color: var(--charcoal); }
.helper-steps li.done span { color: var(--charcoal); }

/* Sprint 21 audit: text on the accent tint keeps AA contrast in both themes. */
.record-task .eyebrow, .consent-ask .muted { color: var(--text-2); }

/* Booking for a student: the last few booked, one tap each, above the search. */
.recent-students { margin-bottom: var(--space-4); }
.recent-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.recent-chip { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; max-width: 100%; padding: 0 var(--space-3) 0 var(--space-1); border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; }
.recent-chip .avatar { width: 34px; height: 34px; }
.recent-chip > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-chip:hover { border-color: var(--line-strong); }
.recent-chip.selected { border-color: var(--line-strong); box-shadow: inset 0 0 0 1px var(--line-strong); background: var(--selected-bg); }

/* First-week goal: one dark tile in place of a row of zeros. */
.stat-goal { grid-column: 1 / -1; background: var(--charcoal); border-color: var(--charcoal); color: var(--white); display: grid; gap: var(--space-2); align-content: start; }
.stat-goal .eyebrow { color: var(--lime); margin: 0; }
.stat-goal-title { margin: 0; color: var(--white); font-size: var(--fs-lg); }
.stat-goal-text { margin: 0; color: var(--on-dark-2); font-size: var(--fs-sm); max-width: 60ch; }
.goal-meter { display: flex; align-items: center; gap: var(--space-3); }
.goal-meter .team-track { background: var(--line-dark); max-width: 320px; }
.goal-count { color: var(--white); font-size: var(--fs-sm); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat-goal-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-1); }
@media (min-width: 600px) { .stat-goal.span-2 { grid-column: span 2; } .stat-goal.span-3 { grid-column: span 3; } .stat-goal.span-4 { grid-column: 1 / -1; } }
.stat-goal .button-primary { border-color: transparent; }

/* Data checks put right in place: one request to the families, a bay chosen in the row. */
.check-ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-3); margin: 0 0 var(--space-2); padding: var(--space-3); border-radius: var(--radius-sm); background: var(--sand); }
.check-ask .small { flex: 1 1 240px; color: var(--text-2); }
.check-inline { display: flex; align-items: center; gap: var(--space-1); }
.check-inline select { min-height: 44px; max-width: 200px; }
.check-actions .button-small, .check-actions summary.button { min-height: 44px; }

/* Colour and look: a look waiting for this owner, and the history tucked away. */
.theme-ask { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); border-left: 6px solid var(--accent); }
.theme-ask > div { flex: 1 1 280px; }
.theme-ask h2 { margin: 0 0 var(--space-1); }
.theme-sendback .field { margin: 0; }
.theme-history > summary { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); min-height: 44px; cursor: pointer; list-style: none; }
.theme-history > summary::-webkit-details-marker { display: none; }
.theme-history > summary h2 { margin: 0; }
.theme-history[open] > summary { margin-bottom: var(--space-2); }

/* Connections as tiles: a mark for what each one does, its state, and the one action. */
.connector-tiles { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); margin: 0; padding: 0; list-style: none; }
.connector-tile { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.connector-on { border-color: var(--success-line); }
.connector-head { display: flex; align-items: center; gap: var(--space-3); }
.connector-mark { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; background: var(--sand); color: var(--text); }
.connector-on .connector-mark { background: var(--accent); color: var(--charcoal); }
.connector-mark .icon { width: 24px; height: 24px; }
.connector-name { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); min-width: 0; }
.connector-what { margin: 0; font-size: var(--fs-sm); color: var(--text-2); }
.connector-tile .step-more { margin-top: 0; }
.connector-foot { margin-top: auto; padding-top: var(--space-1); }
.cal tbody td.cal-shut { background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(148, 163, 184, .12) 6px 7px), rgba(148, 163, 184, .08); }
.legend .l-shut::before { background: rgba(148, 163, 184, .3); }
.check-row .check-actions { flex-wrap: wrap; max-width: 100%; }
.check-inline { flex: 1 1 220px; min-width: 0; }
.check-inline select { flex: 1 1 140px; min-width: 0; max-width: 100%; }
/* In dark mode the page is near-black too: the goal tile lifts onto the panel colour with a lime edge. */
:root[data-theme="dark"] .stat-goal { background: var(--graphite); border-color: var(--line); box-shadow: inset 4px 0 0 var(--lime); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stat-goal { background: var(--graphite); border-color: var(--line); box-shadow: inset 4px 0 0 var(--lime); } }

/* Owner home on a phone: Today right after anything waiting, before the tiles and the chart. */
@media (max-width: 599px) {
  .owner-home { display: flex; flex-direction: column; gap: 1rem; }
  .owner-home > .grid-main-aside, .owner-home > .grid-main-aside > .grid { display: contents; }
  .owner-home > .stats { margin-bottom: 0; }
  .owner-home > :not(.stats):not(.grid-main-aside) { order: -2; }
  .owner-home .owner-today { order: -1; }
}

/* Preset chips: a choice of a few named amounts (the assistant's budget). */
.preset-chips { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); }
.preset-chip { position: relative; display: block; cursor: pointer; }
.preset-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.preset-chip > span { display: grid; gap: .1rem; min-height: 44px; padding: var(--space-2) var(--space-3); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); }
.preset-chip small { font-size: var(--fs-xs); color: var(--text-2); }
.preset-chip input:checked + span { background: var(--active-bg); border-color: var(--charcoal); color: var(--active-fg); }
.preset-chip input:checked + span small { color: inherit; }
.preset-chip input:focus-visible + span { outline: 2px solid var(--focus, var(--charcoal)); outline-offset: 2px; }

/* A "…" menu for rare row actions, and an on/off switch that saves on change. */
.more-menu { position: relative; flex: none; }
.more-menu > summary { list-style: none; cursor: pointer; }
.more-menu > summary::-webkit-details-marker { display: none; }
.more-menu-panel { position: absolute; right: 0; top: calc(100% + 4px); z-index: 45; min-width: 200px; padding: var(--space-1); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 16px 40px rgba(16, 20, 25, .18); display: grid; gap: 2px; }
.more-menu-panel form { margin: 0; }
.more-menu-panel .menu-item, .more-menu-panel a { display: flex; align-items: center; gap: var(--space-2); width: 100%; min-height: 44px; padding: 0 var(--space-3); border: 0; border-radius: var(--radius-sm); background: none; color: var(--text); font: inherit; font-weight: 500; text-align: left; text-decoration: none; cursor: pointer; }
.more-menu-panel .menu-item:hover, .more-menu-panel a:hover, .more-menu-panel .menu-item:focus-visible, .more-menu-panel a:focus-visible { background: var(--bg); }
.switch-form { display: inline-flex; align-items: center; gap: var(--space-1); margin: 0; }
.switch { position: relative; display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; cursor: pointer; font-size: var(--fs-sm); font-weight: 500; }
.switch input[type="checkbox"] { position: absolute; opacity: 0; width: 44px; height: 26px; margin: 0; cursor: pointer; }
.switch-track { position: relative; flex: none; width: 40px; height: 24px; border-radius: 999px; background: var(--sand); box-shadow: inset 0 0 0 1px var(--line-strong); transition: background .15s; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(16, 20, 25, .3); transition: transform .15s; }
.switch input:checked ~ .switch-track { background: var(--accent); box-shadow: inset 0 0 0 1px var(--charcoal); }
.switch input:checked ~ .switch-track::after { transform: translateX(16px); background: var(--charcoal); }
.switch input:focus-visible ~ .switch-track { outline: 2px solid var(--charcoal); outline-offset: 2px; }
.venue-chip { display: inline-flex; align-items: center; gap: var(--space-3); }
@media (prefers-reduced-motion: reduce) { .switch-track, .switch-track::after { transition: none; } }
.connector-tile .step-more { border-top: 0; padding-top: 0; }
.add-menu > summary.button { list-style: none; }
.dropzone-error { border-color: var(--error); }

/* Retention: one stacked bar of the bands. */
.risk-bar { display: flex; height: 12px; margin-bottom: var(--space-3); border-radius: 999px; overflow: hidden; background: var(--sand); gap: 2px; }
.risk-seg { display: block; height: 100%; }
.seg-1 { flex: 1 1 0; } .seg-2 { flex: 2 1 0; } .seg-3 { flex: 3 1 0; } .seg-4 { flex: 4 1 0; } .seg-5 { flex: 5 1 0; } .seg-6 { flex: 6 1 0; } .seg-7 { flex: 7 1 0; } .seg-8 { flex: 8 1 0; } .seg-9 { flex: 9 1 0; } .seg-10 { flex: 10 1 0; } .seg-11 { flex: 11 1 0; } .seg-12 { flex: 12 1 0; } .seg-13 { flex: 13 1 0; } .seg-14 { flex: 14 1 0; } .seg-15 { flex: 15 1 0; } .seg-16 { flex: 16 1 0; } .seg-17 { flex: 17 1 0; } .seg-18 { flex: 18 1 0; } .seg-19 { flex: 19 1 0; } .seg-20 { flex: 20 1 0; }
.risk-active { background: var(--success-line); } .risk-d30 { background: var(--warning-line); } .risk-d60 { background: #F59E0B; } .risk-d90 { background: var(--error-line); } .risk-never { background: var(--line-strong); }
a.stat { color: inherit; }
.stat-attention { border-color: var(--warning-line); box-shadow: inset 4px 0 0 var(--warning-line); }

/* New announcement: the coach or lesson select shows only for the audience that needs it. */
.form:has(input[name="audience"]) .audience-ref { display: none; }
.form:has(input[name="audience"][value="coach_students"]:checked) .audience-ref-coach, .form:has(input[name="audience"][value="lesson"]:checked) .audience-ref-lesson { display: grid; }
.preset-chip input { width: 100%; height: 100%; }
.site + .site { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--line); }

/* Booking: a finished step folds to one line with Change. */
.step-done { display: flex; align-items: center; gap: var(--space-3); padding-top: var(--space-2); padding-bottom: var(--space-2); }
.step-done-label { flex: none; width: 4.5rem; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.step-done-value { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--space-2); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.step-done-value .avatar { width: 30px; height: 30px; }

/* The week on a phone: a list grouped by day instead of a grid that would scroll sideways. */
.cal-agenda { display: none; }
@media (max-width: 767px) {
  .cal-card:has(.cal:not(.cal-coaches)) { display: none; }
  .cal-agenda { display: block; }
}
/* The Day view prints as the day sheet: hidden on screen, the only thing on paper. */
.print-only { display: none; }
@media print { .print-only { display: grid !important; } .page-head { display: none !important; } }
.lesson-row-coach { grid-template-columns: 4.5rem 1fr auto; } .lesson-row-coach .lesson-coach { align-self: center; }

/* Assistant proposals as cards: the task, who it is about, where it came from, and its state. */
.proposal-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.proposal-card { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: inherit; text-decoration: none; }
.proposal-card:hover { border-color: var(--line-strong); }
.proposal-open { box-shadow: inset 4px 0 0 var(--accent); }
.proposal-mark { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--sand); color: var(--text); }
.proposal-mark .icon { width: 22px; height: 22px; }
.proposal-body { flex: 1; min-width: 0; display: grid; gap: .1rem; }
.proposal-task { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.proposal-state { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-2); }
@media (max-width: 599px) { .proposal-card { flex-wrap: wrap; } .proposal-state { flex-direction: row; width: 100%; justify-content: space-between; align-items: center; } }

/* Lesson type form: places only for a group lesson. */
.form:has(select[name="format"]) .capacity-field { display: none; }
.form:has(select[name="format"] option[value="group"]:checked) .capacity-field { display: grid; }
/* Suggested packages as tiles. */
.suggest-tiles { list-style: none; margin: 0 0 var(--space-2); padding: 0; display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.suggest-tile { display: grid; gap: .15rem; padding: var(--space-3); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); background: var(--bg); color: inherit; text-decoration: none; }
.suggest-tile:hover { border-style: solid; border-color: var(--charcoal); }
.suggest-tile span { font-size: var(--fs-sm); color: var(--text-2); }
.suggest-tile .suggest-cta { display: inline-flex; align-items: center; gap: .25rem; margin-top: var(--space-1); color: var(--text); font-weight: 600; }
.suggest-cta .icon { width: 16px; height: 16px; }
.rules-preview { margin: 0 0 var(--space-3); padding: var(--space-3); border-left: 4px solid var(--accent); background: var(--bg); border-radius: var(--radius-sm); font-weight: 500; }
/* Chip editor for one-per-line lists (assessment skills). */
.chip-editor { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip-editor-chip { display: inline-flex; align-items: center; gap: 0; min-height: 44px; padding: 0 .2rem 0 var(--space-3); border-radius: 999px; background: var(--sand); font-size: var(--fs-sm); font-weight: 600; }
.chip-editor-chip button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--text-2); font-size: 1.1rem; cursor: pointer; }
.chip-editor-chip button:hover { background: var(--line); color: var(--text); }
.chip-editor-input { margin-top: var(--space-2); }
/* Sites: the next bay is one chip; another name is one tap further. */
.add-venue { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--space-2); }
.add-venue form { margin: 0; }
.add-chip { display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; padding: 0 var(--space-4); border: 1px dashed var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.add-chip:hover { border-style: solid; border-color: var(--charcoal); }
.add-chip .icon, .add-venue-other summary .icon { width: 16px; height: 16px; }
.add-venue-other > summary { display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; padding: 0 var(--space-3); cursor: pointer; font-weight: 600; color: var(--text-2); list-style: none; }
.add-venue-other > summary::-webkit-details-marker { display: none; }
.add-venue-other[open] { flex-basis: 100%; }
.drill-row { display: grid; grid-template-columns: 1fr 7rem; gap: var(--space-2); align-items: end; } .drill-rows { gap: var(--space-2); }
.not-started-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); } .not-started h2 { margin-bottom: var(--space-2); }

/* Scorecard: a circle under par, a square over, and the running total pinned at the foot of the screen. */
.hole-input.hole-birdie, .hole-input.hole-eagle { border-radius: 50%; box-shadow: 0 0 0 2px var(--success-line); }
.hole-input.hole-eagle { box-shadow: 0 0 0 2px var(--success-line), 0 0 0 5px var(--surface), 0 0 0 7px var(--success-line); }
.hole-input.hole-bogey, .hole-input.hole-double { border-radius: 2px; box-shadow: 0 0 0 2px var(--warning-line); }
.hole-input.hole-double { box-shadow: 0 0 0 2px var(--warning-line), 0 0 0 5px var(--surface), 0 0 0 7px var(--warning-line); }
.score-pin { position: sticky; bottom: var(--space-2); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin: var(--space-3) 0; padding: var(--space-2) var(--space-4); border-radius: 999px; background: var(--charcoal); color: var(--white); box-shadow: 0 8px 24px rgba(16, 20, 25, .25); }
.score-pin > span:first-child { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--lime); font-weight: 600; }
.score-pin strong { font-variant-numeric: tabular-nums; }
.score-pin-key { margin-left: auto; display: inline-flex; align-items: center; gap: .35rem; font-size: var(--fs-xs); color: var(--on-dark-2); }
.score-pin-key i { display: inline-block; width: 12px; height: 12px; }
.mark-birdie { border-radius: 50%; box-shadow: inset 0 0 0 2px var(--success-line); }
.mark-bogey { border-radius: 2px; box-shadow: inset 0 0 0 2px var(--warning-line); }
@media (max-width: 599px) { .has-tabbar .score-pin { bottom: calc(var(--space-2) + 64px); } }

/* Send a swing: the angle as picture tiles, and the coach to ask as photo tiles. */
.view-tiles, .coach-pick { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.view-tile, .coach-pick-tile { position: relative; display: grid; justify-items: center; gap: var(--space-1); padding: var(--space-3) var(--space-2); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; text-align: center; font-size: var(--fs-sm); font-weight: 600; }
.view-tile input, .coach-pick-tile input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.view-art { width: 96px; height: 64px; color: var(--text-2); }
.view-tile:has(input:checked), .coach-pick-tile:has(input:checked) { border-color: var(--charcoal); box-shadow: inset 0 0 0 2px var(--accent); background: var(--selected-bg); }
.view-tile:has(input:focus-visible), .coach-pick-tile:has(input:focus-visible) { outline: 2px solid var(--charcoal); outline-offset: 2px; }
/* Swing reviews: waiting swings as cards with a still from the video. */
.swing-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.swing-card { display: grid; gap: var(--space-2); align-content: start; padding: var(--space-2); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.swing-card-frame { width: 100%; aspect-ratio: 9 / 12; object-fit: cover; border-radius: var(--radius-sm); background: var(--charcoal); pointer-events: none; }
.swing-card-body { display: grid; gap: .15rem; padding: 0 var(--space-1); }
.swing-card-note { font-size: var(--fs-sm); color: var(--text-2); }
.swing-card .button { justify-self: stretch; }

/* Coach detail header: how full the week is, the rating, and the week as blocks. */
.coach-stats { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--line); }
.coach-stat { display: grid; gap: .25rem; align-content: start; }
.coach-stat-label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.coach-stat-value { font-size: var(--fs-lg); font-weight: 700; font-variant-numeric: tabular-nums; }
.coach-stat-value .stars { margin-left: .2rem; font-size: var(--fs-base); }
.coach-stat-note { font-size: var(--fs-sm); color: var(--text-2); }
.week-blocks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.week-block { display: grid; justify-items: center; gap: 2px; padding: 4px 0; border-radius: 6px; font-size: var(--fs-xs); font-weight: 600; }
.week-block strong { font-size: var(--fs-sm); min-height: 1.2em; }
.wb-booked { background: var(--accent); color: var(--charcoal); }
.wb-open { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text-2); }
.wb-off { background: var(--sand); color: var(--text-3); }
.wb-today { outline: 2px solid var(--charcoal); outline-offset: 1px; }
/* Coach profile: the card students see when booking. */
.coach-preview .eyebrow { margin-bottom: var(--space-2); }
.example-bio { margin: 0; font-style: italic; color: var(--text-2); }
/* Balances: what is owed by age. */
.aged-bars { display: grid; gap: var(--space-2); margin-bottom: var(--space-4); }
.aged-row { display: grid; grid-template-columns: 8.5rem 1fr 6rem; align-items: center; gap: var(--space-3); font-size: var(--fs-sm); }
.aged-amount { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.aged-late .team-fill { background: var(--warning-line); }
.pay-chart { margin-bottom: var(--space-3); }
/* Downloads: one tap for the usual periods, and the whole academy as its own row. */
.quick-picks { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-bottom: var(--space-4); }
.quick-picks form { margin: 0; }
.export-everything { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); }
.export-everything h2 { margin: 0 0 var(--space-1); }

/* New message: who to write to, as photos, filtered as you type. */
.contact-list { display: grid; gap: var(--space-3); max-height: 26rem; overflow-y: auto; padding: 2px; }
.contact-group { display: grid; gap: var(--space-1); }
.contact-group-name { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.contact-tile { position: relative; display: flex; align-items: center; gap: var(--space-3); min-height: 52px; padding: var(--space-2) var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; }
.contact-tile input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.contact-tile:has(input:checked) { border-color: var(--charcoal); box-shadow: inset 0 0 0 2px var(--accent); background: var(--selected-bg); }
.contact-tile:has(input:focus-visible) { outline: 2px solid var(--charcoal); outline-offset: 2px; }
.contact-text { display: grid; min-width: 0; }
.contact-text span { font-size: var(--fs-sm); color: var(--text-3); }
.contact-filter { margin-bottom: var(--space-2); }
/* Empty inbox: a family's coach to ask, or a coach's students to start with. */
.empty-ask { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); padding: var(--space-3); }
.empty-ask > div { flex: 1 1 240px; display: grid; gap: var(--space-2); justify-items: start; }
.empty-ask h2, .empty-start h2 { margin: 0; }
.empty-start { display: grid; gap: var(--space-2); }
.start-faces { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-3); }
.start-face { display: grid; justify-items: center; gap: var(--space-1); min-width: 64px; padding: var(--space-2); border-radius: var(--radius-sm); color: var(--text); text-decoration: none; font-size: var(--fs-sm); font-weight: 600; }
.start-face:hover { background: var(--bg); }

/* Enquiries: stage tiles filter the list; the board reads the stages side by side on a desktop. */
.stat-filter { color: inherit; }
.stat-current { border-color: var(--charcoal); box-shadow: inset 0 -3px 0 var(--accent); }
.board-toggle { margin-bottom: var(--space-3); }
@media (max-width: 899px) { .board-toggle { display: none; } }
.enquiry-board { display: grid; gap: var(--space-3); grid-template-columns: repeat(4, minmax(200px, 1fr)); overflow-x: auto; padding-bottom: var(--space-2); }
@media (max-width: 899px) { .enquiry-board { grid-template-columns: 1fr; } }
.board-col { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-3); min-width: 0; }
.board-col h2 { font-size: var(--fs-base); margin: 0 0 var(--space-2); }
.board-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.board-card { display: grid; gap: .1rem; padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: inherit; text-decoration: none; font-size: var(--fs-sm); }
.board-card span { color: var(--text-2); }
.board-card:hover { border-color: var(--line-strong); }
.points-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); } .points-row div { display: grid; } .points-row strong { font-size: var(--fs-lg); font-variant-numeric: tabular-nums; } .points-row span { font-size: var(--fs-sm); color: var(--text-2); }
/* Shop products with a photo. */
.product-list li.has-photo { align-items: center; }
.product-photo { flex: none; width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--line); }
.product-list li.has-photo > div:first-of-type { flex: 1 1 160px; }
/* Reviews: how the ratings spread. */
.rating-spread { display: grid; gap: .3rem; max-width: 360px; margin-bottom: var(--space-3); }
.rating-row { display: grid; grid-template-columns: 2.2rem 1fr 2rem; align-items: center; gap: var(--space-2); font-size: var(--fs-sm); }
.rating-count { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); }

/* Account: security folded into one area after the everyday settings. */
.security-area { margin-top: var(--space-4); }
.security-area > summary { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-3); min-height: 56px; padding: var(--space-3) var(--space-4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; list-style: none; }
.security-area > summary::-webkit-details-marker { display: none; }
.security-area > summary::after { content: "›"; margin-left: auto; font-size: 1.4rem; color: var(--text-3); transition: transform .15s; }
.security-area[open] > summary::after { transform: rotate(90deg); }
.security-title { font-size: var(--fs-md); font-weight: 700; }
.security-sub { flex: 1 1 200px; font-size: var(--fs-sm); color: var(--text-2); }
.security-body { margin-top: var(--space-3); }
/* Privacy choices: one switch per purpose. */
.privacy-switches { display: grid; gap: var(--space-2); }
.privacy-switch form { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: 0; padding: var(--space-2) 0; border-bottom: 1px solid var(--line); }
.privacy-switch:last-child form { border-bottom: 0; }
.privacy-switch .switch { flex: 1 1 260px; align-items: flex-start; }
.privacy-switch .switch-track { margin-top: 2px; }
.privacy-switch .switch input[type="checkbox"] { top: 0; left: 0; }
.privacy-detail { display: block; font-size: var(--fs-sm); font-weight: 400; color: var(--text-2); }
.link-rows a { display: flex; align-items: center; min-height: 44px; font-size: var(--fs-sm); font-weight: 600; }
.view-all { display: inline-flex; align-items: center; gap: .15rem; min-height: 44px; padding: 0 .25rem; color: var(--text); font-size: var(--fs-sm); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; } .view-all .icon { width: 16px; height: 16px; }
/* Coaches as cards: photo, flags, how full the week is and the next free time. */
.coach-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.coach-card { display: grid; justify-items: center; gap: var(--space-2); padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: inherit; text-decoration: none; text-align: center; height: 100%; }
.coach-card:hover { border-color: var(--line-strong); }
.coach-card-flags { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-1); min-height: 0; }
.coach-card-use { display: grid; gap: .25rem; width: 100%; font-size: var(--fs-sm); color: var(--text-2); }
.coach-card-next { font-size: var(--fs-sm); color: var(--text-2); }
/* New announcement: the rules it goes out under, as small chips. */
.rule-chips { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.rule-chips li { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .7rem; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: var(--fs-sm); color: var(--text-2); }
.rule-chips .icon { width: 15px; height: 15px; }
/* Sites: a picture of the place, and its bays and greens as tiles. */
.site-head { justify-content: flex-start; gap: var(--space-3); }
.site-head h3 { flex: 1; }
.site-photo { width: 96px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); flex: none; }
.venue-tiles { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); }
.venue-tiles .venue-chip { justify-content: space-between; padding: var(--space-2) var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); }
.venue-tiles .venue-chip.muted { opacity: .7; }
/* Packages as price cards. */
.price-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.price-card { display: grid; gap: var(--space-1); align-content: start; padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 4px 0 var(--accent); }
.price-card-off { box-shadow: none; opacity: .8; }
.price-card-price { font-size: var(--fs-xl); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price-card-meta { font-size: var(--fs-sm); color: var(--text-2); }
.price-card-note { margin: var(--space-1) 0 0; font-size: var(--fs-sm); color: var(--text-2); }
.price-card-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.price-card-actions form { margin: 0; }
/* Rewards as cards with a mark for the kind of reward. */
.reward-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.reward-card { display: grid; gap: var(--space-1); align-content: start; padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.reward-off { opacity: .75; }
.reward-art { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: var(--space-1); border-radius: 16px; background: var(--accent); color: var(--charcoal); }
.reward-art .icon { width: 28px; height: 28px; }
.reward-points { font-size: var(--fs-sm); font-weight: 600; }
.reward-card form { margin-top: var(--space-2); }
.access-explain { display: flex; gap: var(--space-3); align-items: flex-start; margin-bottom: var(--space-3); padding-bottom: var(--space-3); border-bottom: 1px solid var(--line); }
.access-explain > .icon { flex: none; width: 28px; height: 28px; color: var(--text-2); }
.access-explain h2 { margin: 0 0 var(--space-1); font-size: var(--fs-md); }
.access-explain p { margin: 0; color: var(--text-2); }
/* Legal pages: their contents in view beside the text on a wide screen. */
.legal-layout { display: grid; gap: var(--space-5); }
.legal-contents { font-size: var(--fs-sm); }
.legal-contents ol { margin: var(--space-2) 0 0; padding-left: 1.2rem; display: grid; gap: .1rem; }
.legal-contents a { display: inline-block; padding: .35rem 0; color: var(--text-2); }
@media (min-width: 1024px) { .legal-layout { grid-template-columns: 220px minmax(0, 1fr); align-items: start; } .legal-contents { position: sticky; top: var(--space-5); } }
@media (max-width: 1023px) { .legal-contents { padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); } }
/* The printed day sheet looks like paper: white, black text, ruled rows and a writing column. */
@media print {
  .day-sheet { background: #fff; color: #000; }
  .day-sheet .card { border: 0; border-top: 2px solid #000; border-radius: 0; box-shadow: none; padding: 8pt 0; background: #fff; break-inside: avoid; }
  .day-sheet-table td, .day-sheet-table th { border-bottom: 1px solid #999 !important; color: #000; }
  .day-sheet-table thead th { font-size: 8pt; letter-spacing: .06em; text-transform: uppercase; }
  .day-sheet .badge { border: 1px solid #000; background: none; color: #000; }
  .day-sheet .records-medical { font-weight: 700; color: #000; }
}
/* Report a concern: the reasons as a two-column set of tiles. */
.reason-tiles { display: grid; gap: var(--space-2); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.reason-tile { position: relative; display: flex; align-items: center; min-height: 56px; padding: var(--space-2) var(--space-3); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; font-weight: 600; font-size: var(--fs-sm); }
.reason-tile input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.reason-tile:has(input:checked) { border-color: var(--charcoal); box-shadow: inset 0 0 0 2px var(--accent); background: var(--selected-bg); }
.reason-tile:has(input:focus-visible) { outline: 2px solid var(--charcoal); outline-offset: 2px; }
.downloaded-mark .icon { width: 14px; height: 14px; color: var(--success); vertical-align: -2px; }
.notice-strip { display: flex; align-items: flex-start; gap: var(--space-2); margin: 0 0 var(--space-3); padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); background: var(--info-bg); color: var(--text); font-size: var(--fs-sm); } .notice-strip .icon { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--info); }
.last-time { margin-bottom: var(--space-2); padding: var(--space-2) var(--space-3); border-left: 3px solid var(--line-strong); background: var(--bg); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; } .last-time summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); } .last-time p { margin: var(--space-1) 0 0; font-size: var(--fs-sm); }
/* Week legend: each status has a mark as well as a colour, matched on the lesson blocks. */
.cal-event.status-requested { border-style: dashed; border-left-style: solid; }
.cal-event.status-completed .cal-event-time::before { content: "✓ "; }
.cal-event.status-cancelled .cal-event-title, .cal-event.status-declined .cal-event-title, .cal-event.status-no_show .cal-event-title { text-decoration: line-through; }
.legend .l-requested::before { border: 1px dashed var(--text-2); }
.legend .l-group::before { content: "✓"; width: auto; height: auto; background: none; font-size: var(--fs-xs); line-height: 1; }
.legend .l-off { text-decoration: line-through; }
.coach-rating-score { display: flex; align-items: baseline; gap: .35rem; margin: 0 0 var(--space-2); } .coach-rating-score strong { font-size: var(--fs-xl); } .coach-rating blockquote { margin: 0 0 var(--space-2); padding-left: var(--space-3); border-left: 3px solid var(--accent); font-size: var(--fs-sm); color: var(--text-2); }
.button-ghost-light { background: transparent; color: var(--on-dark-2); border-color: transparent; } .button-ghost-light:hover { color: var(--white); border-color: rgba(248, 250, 252, .35); }
.context-concern { display: inline-flex; align-items: center; gap: var(--space-1); min-height: 44px; padding: 0 var(--space-3); border-radius: 999px; color: var(--text-2); font-size: var(--fs-sm); text-decoration: none; } .context-concern:hover { color: var(--text); background: var(--bg); } .context-concern .icon { width: 16px; height: 16px; }
.coach-card-email { font-size: var(--fs-sm); color: var(--text-3); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.make-weekly > summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 600; color: var(--lime); } .make-weekly[open] > summary { margin-bottom: var(--space-2); }
/* Show or hide a password. */
.password-wrap { position: relative; display: block; }
.password-wrap input { width: 100%; padding-right: 4.5rem; }
.password-toggle { position: absolute; top: 50%; right: 2px; transform: translateY(-50%); min-height: 44px; min-width: 44px; padding: 0 var(--space-3); border: 0; border-radius: var(--radius-sm); background: none; color: var(--text-2); font: inherit; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; }
.password-toggle:hover { color: var(--text); }
.security-quiet .security-mark { background: var(--bg); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-strong); font-style: italic; }
/* A parent's children as chips at the top of home. */
.child-switch { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.child-chip { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-3) 0 var(--space-1); border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font-weight: 600; text-decoration: none; }
.child-chip:hover { border-color: var(--line-strong); }
.child-chip .avatar { width: 34px; height: 34px; }
/* Group clinics carry a photo, so they stand out from single lessons. */
.clinic-row { grid-template-columns: 72px 4.5rem 1fr; align-items: center; }
.clinic-photo { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); }
@media (max-width: 599px) { .clinic-row { grid-template-columns: 56px 1fr; } .clinic-row .lesson-time { grid-column: 2; } .clinic-row > div:last-child { grid-column: 1 / -1; } .clinic-photo { width: 56px; height: 56px; } }
.dob-age { margin: .2rem 0 0; font-weight: 600; color: var(--text); }
/* Sponsors as cards: their mark, and how their campaigns are doing. */
.sponsor-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.sponsor-card { display: grid; gap: var(--space-3); align-content: start; padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.sponsor-card-head { display: flex; align-items: center; gap: var(--space-3); }
.sponsor-card-head .person-sub { display: block; }
.sponsor-mark { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: var(--charcoal); color: var(--lime); font-weight: 800; letter-spacing: .04em; }
.sponsor-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); margin: 0; }
.sponsor-stats dt { font-size: var(--fs-xs); color: var(--text-3); }
.sponsor-stats dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.legal-contents a { display: flex; align-items: center; min-height: 44px; padding: 0; }

/* ---------- Public websites, November 2026: the academy's website and Vectari's own pages ---------- */
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.text-link:hover { text-decoration-color: currentColor; }

/* Academy website: booking first. The hero carries the next free times in a card beside the academy's name. */
.store-hero-book { align-items: flex-end; }
.store-hero-grid { position: relative; z-index: 2; display: grid; gap: var(--space-6); align-items: end; }
@media (min-width: 1024px) { .store-hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); align-items: center; } }
.book-card { display: grid; gap: var(--space-3); padding: var(--space-5); border-radius: var(--radius-lg); background: rgba(16, 20, 25, .72); border: 1px solid rgba(248, 250, 252, .14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--white); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.book-card-head h2 { margin: 0; font-size: var(--fs-lg); color: var(--white); }
.book-card-head p { margin: .2rem 0 0; color: var(--on-dark-2); }
.book-card-times { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.book-card-times a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-3); min-height: 56px; padding: var(--space-2) var(--space-3) var(--space-2) var(--space-2); border-radius: var(--radius); background: rgba(248, 250, 252, .06); border: 1px solid rgba(248, 250, 252, .1); color: var(--white); text-decoration: none; transition: background .15s, border-color .15s; }
.book-card-times a:hover { background: rgba(199, 255, 61, .12); border-color: var(--accent); }
.book-card-times source { display: none; }
.book-card-times a > span:not(.book-card-go) { grid-column: 2; display: grid; line-height: 1.25; }
.book-card-times a > span:not(.book-card-go) span { font-size: var(--fs-sm); color: var(--on-dark-2); }
.book-card-go { grid-column: 3; }
.book-card-go { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; font-size: var(--fs-sm); color: var(--accent); }
.book-card-go .icon { width: 16px; height: 16px; }
.book-card .avatar { width: 40px; height: 40px; }
.book-card-empty { color: var(--on-dark-2); margin: 0; }
.book-card-note { margin: 0; font-size: var(--fs-xs); color: var(--on-dark-2); text-align: center; }
@media (max-width: 1023px) { .store-hero-book { min-height: 0; padding-top: 7rem; } }

/* Programmes: photo cards that lead to a page each. */
.programme-grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); margin: 0; padding: 0; list-style: none; }
.programme-grid-large { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.programme-card { position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg); background: var(--charcoal); color: var(--white); text-decoration: none; isolation: isolate; }
.programme-photo { aspect-ratio: 4 / 5; border-radius: 0; }
.programme-grid-large .programme-photo { aspect-ratio: 16 / 10; }
.programme-photo img { transition: transform .5s ease; }
.programme-card:hover .programme-photo img { transform: scale(1.04); }
.programme-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(16, 20, 25, .92) 0%, rgba(16, 20, 25, .35) 55%, rgba(16, 20, 25, 0) 100%); z-index: 1; }
.programme-card-text { position: absolute; left: var(--space-5); right: 4rem; bottom: var(--space-5); z-index: 2; display: grid; gap: 2px; }
.programme-card-text strong { font-size: var(--fs-lg); letter-spacing: -0.01em; }
.programme-card-text span { color: var(--on-dark-2); font-size: var(--fs-sm); }
.programme-card-text .programme-card-price { color: var(--accent); font-weight: 700; }
.programme-card-go { position: absolute; right: var(--space-5); bottom: var(--space-5); z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--charcoal); transition: transform .2s; }
.programme-card:hover .programme-card-go { transform: translateX(3px); }
@media (max-width: 599px) { .programme-photo { aspect-ratio: 16 / 9; } }
.programme-facts { margin: var(--space-5) 0 0; font-weight: 700; color: var(--text-2); }
.price-card-book { justify-self: start; margin-top: var(--space-2); }
.coach-card-link { display: grid; justify-items: start; gap: var(--space-2); color: inherit; text-decoration: none; }
.coach-card-link:hover h3 { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.time-chip-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--text); }

/* Inner pages: a shorter photo hero with a breadcrumb. */
.store-hero-page { min-height: 420px; padding: 6rem 0 2.5rem; }
@media (min-width: 1024px) { .store-hero-page { min-height: 460px; } }
.store-hero-page h1 { max-width: 20ch; font-size: clamp(var(--fs-2xl), 5.5vw, 3.6rem); }
.store-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); font-size: var(--fs-sm); color: var(--on-dark-2); }
.store-crumbs a { color: var(--on-dark-2); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.store-crumbs a:hover { color: var(--accent); }
.store-crumbs [aria-current] { color: var(--white); }
.store-cta { display: grid; gap: var(--space-5); align-items: center; padding: var(--space-6); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.store-cta h2 { margin: 0 0 var(--space-1); font-size: clamp(var(--fs-lg), 2.6vw, 2rem); letter-spacing: -0.02em; }
.store-cta .hero-actions { margin-top: 0; }
@media (min-width: 900px) { .store-cta { grid-template-columns: minmax(0, 1fr) auto; padding: var(--space-6) var(--space-7); } }
.voucher-band { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-2) var(--space-4); align-items: center; padding: var(--space-5); border-radius: var(--radius-lg); background: var(--charcoal); color: var(--white); text-decoration: none; }
.voucher-band > span:nth-child(2) { display: grid; }
.voucher-band .muted { color: var(--on-dark-2); }
.voucher-band .text-link { color: var(--white); grid-column: 2; }
.voucher-band-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: var(--charcoal); }
@media (min-width: 768px) { .voucher-band { grid-template-columns: auto minmax(0, 1fr) auto; } .voucher-band .text-link { grid-column: auto; } }

/* A coach's page. */
.coach-hero { background: var(--charcoal); color: var(--white); padding: 2.5rem 0 3rem; position: relative; overflow: hidden; }
.coach-hero::after { content: ""; position: absolute; inset: auto -10% -50% auto; width: 60%; height: 140%; background: radial-gradient(closest-side, rgba(199, 255, 61, .14), transparent 70%); pointer-events: none; }
.coach-hero-grid { position: relative; z-index: 1; display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 900px) { .coach-hero-grid { grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); gap: var(--space-7); } .coach-hero { padding: 4rem 0; } }
.coach-hero-photo { aspect-ratio: 1; max-width: 380px; width: 100%; border-radius: var(--radius-lg); overflow: hidden; background: var(--graphite); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
@media (max-width: 899px) { .coach-hero-photo { max-width: 220px; } }
.coach-hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.coach-hero-initials { display: grid; place-items: center; width: 100%; height: 100%; font-size: 4rem; font-weight: 700; color: var(--accent); }
.coach-hero-copy { display: grid; gap: var(--space-3); justify-items: start; }
.coach-hero-copy h1 { margin: 0; font-size: clamp(var(--fs-2xl), 6vw, 4rem); letter-spacing: -0.03em; line-height: 1.02; color: var(--white); }
.coach-hero-copy .lede { margin: 0; color: var(--on-dark-2); }
.coach-hero-copy .hero-actions { margin-top: var(--space-2); }
.coach-badges-light li { background: rgba(134, 239, 172, .12); color: var(--success-line); border-color: rgba(134, 239, 172, .4); }

/* Questions: an accordion beside a way to ask. */
.faq-layout { display: grid; gap: var(--space-6); align-items: start; }
@media (min-width: 1024px) { .faq-layout { grid-template-columns: minmax(0, 1fr) 320px; } .faq-aside { position: sticky; top: 88px; } }
.faq-list { display: grid; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 64px; padding: var(--space-3) 0; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h2, .faq-item summary h3 { margin: 0; font-size: var(--fs-md); font-weight: 600; }
.faq-toggle { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); transition: transform .2s, background .2s; }
.faq-item[open] .faq-toggle { transform: rotate(45deg); background: var(--accent); border-color: var(--charcoal); color: var(--charcoal); }
.faq-answer { padding: 0 0 var(--space-5); max-width: 46rem; color: var(--text-2); }
.faq-answer p { margin: 0 0 var(--space-2); }
.faq-aside { display: grid; gap: var(--space-3); }
.faq-aside h2 { margin: 0; font-size: var(--fs-lg); }
.faq-aside-actions { display: grid; gap: var(--space-2); }

/* Visit: a map that loads only when asked, beside directions and hours. */
.visit-grid { display: grid; gap: var(--space-6); align-items: start; }
@media (min-width: 900px) { .visit-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.map-frame { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: radial-gradient(120% 90% at 80% 10%, rgba(199, 255, 61, .2), transparent 55%), linear-gradient(160deg, var(--graphite), var(--charcoal)); border: 1px solid var(--line); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: var(--space-3); padding: var(--space-5); text-align: center; color: var(--white); }
.map-placeholder > .icon { width: 40px; height: 40px; color: var(--accent); }
.map-placeholder .muted { color: var(--on-dark-2); max-width: 28ch; }
.visit-details h2 { margin: var(--space-5) 0 var(--space-3); font-size: var(--fs-md); }
.visit-details h2:first-child { margin-top: 0; }
.direction-buttons { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.visit-sites li { padding: var(--space-1) 0; }

/* Gift vouchers. */
.voucher-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); margin: 0; padding: 0; list-style: none; }
.voucher-card { display: grid; gap: var(--space-2); align-content: start; justify-items: start; padding: var(--space-5); border-radius: var(--radius-lg); background: var(--charcoal); color: var(--white); position: relative; overflow: hidden; }
.voucher-card::before { content: ""; position: absolute; inset: -40% -30% auto auto; width: 70%; height: 90%; background: radial-gradient(closest-side, rgba(199, 255, 61, .2), transparent 70%); }
.voucher-card h2 { margin: 0; color: var(--white); font-size: var(--fs-lg); position: relative; }
.voucher-card .muted { color: var(--on-dark-2); }
.voucher-card .button { margin-top: var(--space-2); }
.voucher-photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.voucher-mark { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--charcoal); position: relative; }
.voucher-steps { display: grid; gap: var(--space-3); margin: var(--space-6) 0 0; padding: 0; list-style: none; counter-reset: step; }
.voucher-steps li { counter-increment: step; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: var(--space-3); align-items: baseline; color: var(--text-2); }
.voucher-steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--text); font-weight: 700; }
.voucher-steps strong { color: var(--text); }
@media (min-width: 900px) { .voucher-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* The academy website's footer: who and where, then programmes, coaches and the academy. */
.store-footer { grid-template-columns: 1fr; }
.store-footer-about { display: grid; gap: 2px; color: var(--white); }
.store-footer-about a { color: var(--on-dark-2); }
.store-footer-col { display: grid; align-content: start; }
.store-footer-col h3 { margin: 0 0 var(--space-1); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--white); }
.store-footer-col a { display: inline-flex; align-items: center; min-height: 40px; color: var(--on-dark-2); text-decoration: none; font-size: var(--fs-sm); }
.store-footer-col a:hover { color: var(--accent); }
@media (min-width: 600px) { .store-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .store-footer { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); align-items: start; } }

/* WhatsApp, always in reach on the academy's website when the academy has a number. */
.whatsapp-fab { position: fixed; right: 16px; bottom: 16px; z-index: 35; display: inline-flex; align-items: center; gap: var(--space-2); min-height: 52px; padding: 0 var(--space-5) 0 var(--space-4); border-radius: 999px; background: #25D366; color: #0B2E17; font-weight: 700; text-decoration: none; box-shadow: 0 10px 30px rgba(16, 20, 25, .25); }
.whatsapp-fab:hover { background: #1FBE5B; }
.whatsapp-fab .icon { width: 22px; height: 22px; }
@media (max-width: 599px) { .whatsapp-fab { padding: 0; width: 56px; justify-content: center; } .whatsapp-fab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
@media print { .whatsapp-fab { display: none; } }

/* Settings: the website's questions and share image. */
.faq-slot { display: grid; gap: var(--space-2); padding: var(--space-3) 0; border-top: 1px solid var(--line); }
.share-preview { display: block; width: 100%; max-width: 360px; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); margin-top: var(--space-2); }

/* Vectari's own pages. */
.marketing .site-nav .site-login { color: var(--white); }
.site-link-demo { display: none; }
body.site-nav-open .site-link-demo { display: block; }
@media (max-width: 599px) { .marketing .site-nav > a.site-demo { display: none; } }
@media (min-width: 1024px) { .site-link-demo { display: none !important; } }
.site-link[aria-current="page"] { color: var(--lime); }
.page-hero { position: relative; overflow: hidden; background: var(--charcoal); color: var(--white); padding: 4rem 0 3.5rem; }
.page-hero::after { content: ""; position: absolute; inset: -30% -10% auto auto; width: 60%; height: 160%; background: radial-gradient(closest-side, rgba(199, 255, 61, .16), transparent 70%); pointer-events: none; }
.page-hero-inner { position: relative; z-index: 1; display: grid; gap: var(--space-3); justify-items: start; }
.page-hero h1 { margin: 0; max-width: 18ch; font-size: clamp(var(--fs-2xl), 6vw, 4.25rem); line-height: 1.03; letter-spacing: -0.03em; color: var(--white); }
.page-hero .lede { margin: 0; color: var(--on-dark-2); max-width: 40rem; }
.page-hero .hero-actions { margin-top: var(--space-2); }
@media (min-width: 1024px) { .page-hero { padding: 6rem 0 5rem; } }

.provider-band { display: grid; gap: var(--space-6); padding: var(--space-6); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.provider-lead h2 { font-size: clamp(var(--fs-xl), 3.2vw, 2.4rem); letter-spacing: -0.02em; }
.provider-points { display: grid; gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
.provider-points li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--space-3); color: var(--text-2); }
.provider-points strong { color: var(--text); }
.provider-points .icon { width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: var(--accent-soft); color: var(--text); }
@media (min-width: 900px) { .provider-band { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: var(--space-7); align-items: center; } }

/* A real screen from the demo, in a browser or phone frame. */
.screen { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--frame); border: 1px solid var(--line-dark); box-shadow: 0 30px 60px rgba(16, 20, 25, .18); }
.screen-bar { display: flex; gap: 6px; padding: 10px 14px; background: var(--frame); }
.screen-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(248, 250, 252, .25); }
.screen .media { border-radius: 0; aspect-ratio: 16 / 10; }
.screen .media img { object-fit: cover; object-position: top left; }
.screen-phone { width: min(100%, 300px); margin-inline: auto; padding: 10px; border-radius: 36px; background: var(--charcoal); border: 1px solid var(--frame); }
.screen-phone .media { aspect-ratio: 9 / 19.5; border-radius: 28px; }
.screen-phone .media img { object-position: top center; }
.feature-row { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 900px) { .feature-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--space-7); } .feature-row-flip .feature-copy { order: 2; } }
.feature-copy h2 { font-size: clamp(var(--fs-xl), 3.2vw, 2.4rem); letter-spacing: -0.02em; }
.feature-screen { margin: 0; display: grid; gap: var(--space-2); }
.feature-screen figcaption { font-size: var(--fs-xs); color: var(--text-3); text-align: center; }
.section-dark .feature-screen figcaption { color: var(--grey); }
.feature-screen-wide .screen { max-width: 1080px; margin-inline: auto; width: 100%; }
.tick-list { display: grid; gap: var(--space-2); margin: var(--space-4) 0 0; padding: 0; list-style: none; }
.tick-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: var(--space-2); align-items: start; color: var(--text-2); }
.tick-list .icon { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--accent); color: var(--charcoal); margin-top: 1px; }
@media (min-width: 768px) { .tick-list-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3) var(--space-6); } }
.feature-index { padding-top: var(--space-5); }
.feature-index ul { display: flex; gap: var(--space-2); margin: 0; padding: 0 0 var(--space-2); list-style: none; overflow-x: auto; }
.feature-index a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-4); border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text); text-decoration: none; white-space: nowrap; font-size: var(--fs-sm); font-weight: 600; }
.feature-index a:hover { background: var(--accent); border-color: var(--charcoal); color: var(--charcoal); }
.coming-grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin: 0; padding: 0; list-style: none; }
.module-grid { margin: 0; padding: 0; list-style: none; }
.closing-cta { display: grid; gap: var(--space-5); align-items: center; padding: var(--space-6); border-radius: var(--radius-lg); background: var(--charcoal); color: var(--white); position: relative; overflow: hidden; }
.closing-cta::after { content: ""; position: absolute; inset: -40% -10% auto auto; width: 50%; height: 180%; background: radial-gradient(closest-side, rgba(199, 255, 61, .18), transparent 70%); pointer-events: none; }
.closing-cta > * { position: relative; z-index: 1; }
.closing-cta h2 { margin: 0 0 var(--space-2); color: var(--white); font-size: clamp(var(--fs-xl), 3vw, 2.25rem); letter-spacing: -0.02em; }
.closing-cta p { margin: 0; color: var(--on-dark-2); max-width: 40rem; }
.closing-cta .hero-actions { margin-top: 0; }
@media (min-width: 900px) { .closing-cta { grid-template-columns: minmax(0, 1fr) auto; padding: var(--space-7); } }
.live-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--success); vertical-align: middle; }
.sport-grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); margin: 0; padding: 0; list-style: none; }
.sport-card { display: grid; gap: var(--space-1); justify-items: start; padding: var(--space-5); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.sport-card .sport-dot { margin-bottom: var(--space-2); }
.sport-card-live { border-color: var(--charcoal); box-shadow: inset 0 0 0 1px var(--charcoal); }
.sport-card-live .sport-dot { background: var(--lime); border-color: var(--charcoal); }
.sport-card-live .sport-dot svg { color: var(--charcoal); }
.sport-row a { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; color: inherit; text-decoration: none; }
.sport-row a:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); }
.plan-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); margin: 0; padding: 0; list-style: none; }
.plan-card { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-6); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.plan-card h3 { margin: 0; font-size: var(--fs-lg); }
.plan-card .muted { margin: 0; }
.plan-price { margin: var(--space-2) 0 0; font-size: var(--fs-xl); font-weight: 700; letter-spacing: -0.02em; }
.plan-card .tick-list { margin-bottom: var(--space-4); }
.plan-card .button { margin-top: auto; }
.plan-note { margin-top: var(--space-5); text-align: center; }
.pricing-split { display: grid; gap: var(--space-5); }
@media (min-width: 900px) { .pricing-split { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; } }
.pricing-split h2 { font-size: clamp(var(--fs-xl), 3vw, 2.25rem); letter-spacing: -0.02em; }
.promise-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin: 0; padding: 0; list-style: none; }
.promise { display: grid; gap: var(--space-2); align-content: start; padding: var(--space-5); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.promise > .icon { width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: var(--accent-soft); color: var(--text); }
.promise h3 { margin: var(--space-2) 0 0; font-size: var(--fs-md); }
.promise p { margin: 0; color: var(--text-2); }
.on-dark-soft { color: var(--on-dark-2); }
.about-split { display: grid; gap: var(--space-5); }
@media (min-width: 900px) { .about-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-7); } }
.about-split h2 { font-size: clamp(var(--fs-xl), 3.2vw, 2.4rem); letter-spacing: -0.02em; }
.about-copy p { font-size: var(--fs-md); color: var(--text-2); }
.contact-side h2 { font-size: var(--fs-lg); }
.contact-steps { display: grid; gap: var(--space-3); margin: var(--space-3) 0 var(--space-5); padding: 0; list-style: none; counter-reset: step; }
.contact-steps li { counter-increment: step; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: var(--space-3); color: var(--text-2); }
.contact-steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--charcoal); font-weight: 700; }
.contact-steps strong { color: var(--text); }
.persona-grid { display: grid; gap: var(--space-6) var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); margin: 0; padding: 0; list-style: none; }
.persona-card { display: grid; gap: var(--space-2); align-content: start; }
.persona-card .screen { margin-bottom: var(--space-3); }
.persona-card h3 { margin: 0; }
.persona-card p { margin: 0; color: var(--grey); font-size: var(--fs-sm); }
.demo-note { margin: var(--space-6) 0 0; text-align: center; color: var(--grey); font-size: var(--fs-sm); }
.demo-note a { color: var(--white); }
.feature-cards { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin: 0; padding: 0; list-style: none; }
.feature-card { display: grid; gap: var(--space-2); align-content: start; height: 100%; padding: var(--space-5); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.feature-card:hover { border-color: var(--charcoal); transform: translateY(-2px); }
.feature-card strong { font-size: var(--fs-md); line-height: 1.3; }
.feature-card .eyebrow { margin: 0; }
.footer-grid-marketing > div > span { color: var(--grey); }

/* Vectari support: walkthrough requests. */
.walkthrough-list > li { display: grid; gap: var(--space-1); padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
.walkthrough-list > li:last-child { border-bottom: 0; }
.walkthrough-list p { margin: 0; }
.walkthrough-head { display: flex; justify-content: space-between; gap: var(--space-3); align-items: start; }
.walkthrough-head > span { display: grid; }
.walkthrough-form { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; margin-top: var(--space-2); }
.walkthrough-form select, .walkthrough-form input { min-height: 40px; padding: 0 var(--space-3); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: inherit; }
.walkthrough-form input { flex: 1 1 200px; }
@media (max-width: 420px) { .marketing .site-nav { gap: .25rem; } .marketing .site-nav .button { padding: .35rem .7rem; font-size: var(--fs-xs); } }
/* On a dark page the charcoal cards keep a visible edge. */
.closing-cta, .voucher-card, .voucher-band { box-shadow: inset 0 0 0 1px rgba(248, 250, 252, .08); }
