/* bundle.css — saari stylesheet ek file mein.
   Pehle 10 alag CSS files thin; har ek alag request, kuch pehle
   aati kuch baad mein. Isi se page "aadha phir pura" dikhta tha.
   Ek file = ek request = ek hi baar mein pura layout. */


/* ===== main.css ===== */
/* Himank World — design system
   Direction: a school results sheet. Hairlines, tabular figures, one accent.
   Palette: ink navy on cool paper, lane teal for actions, brass only for a personal best. */

:root {
  --ink: #12283c;
  --ink-2: #2c4459;
  --muted: #61798c;
  --paper: #f2f8fc;
  --surface: #ffffff;
  --line: #cfdae1;
  --line-soft: #e2e9ed;
  --accent: #1676b6;
  --accent-press: #115b90;
  --accent-tint: #eaf5fd;
  --pb: #8f6410;
  --pb-tint: #f7efdd;
  --ok: #1f7a4d;
  --warn: #a33a2a;

  --f-display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --f-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  --fs-xs: 0.8125rem;
  --fs-s: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;

  --sp: 8px;
  --wrap: 1080px;
  --r: 6px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  font-feature-settings: "tnum" 1;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 5.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, var(--fs-2xl)); }
h3 { font-size: var(--fs-lg); }

p { margin: 0 0 1em; max-width: 68ch; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-press); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; background: var(--surface);
  padding: 10px 14px; border: 1px solid var(--ink); z-index: 50; transition: top .15s;
}
.skip:focus { top: 12px; }

/* ---------- header ---------- */

.site-head {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: sticky; top: 0; z-index: 30;
}
.site-head .wrap {
  display: flex; align-items: center; gap: 20px;
  min-height: 60px;
}
.brand {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  display: flex; align-items: center; gap: 9px;
}
.brand svg { display: block; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  color: var(--ink-2); text-decoration: none; font-size: var(--fs-s);
  padding: 7px 11px; border-radius: var(--r); font-weight: 600;
}
.site-nav a:hover { background: var(--paper); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--accent); background: var(--accent-tint); }

.who {
  font-size: var(--fs-xs); color: var(--muted);
  border-left: 1px solid var(--line); padding-left: 12px; margin-left: 6px;
  white-space: nowrap;
}
.who b { color: var(--ink); font-weight: 600; }

@media (max-width: 660px) {
  .site-head .wrap { flex-wrap: wrap; gap: 8px; padding-block: 10px; }
  .site-nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; gap: 2px; }
  .site-nav a { padding: 6px 9px; font-size: var(--fs-xs); }
  .who { margin-left: auto; border-left: 0; padding-left: 0; }
}

/* ---------- hero: the join line ---------- */

.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: clamp(36px, 7vw, 72px) 0 clamp(32px, 6vw, 60px);
}
.hero p.lede { font-size: var(--fs-lg); color: var(--ink-2); max-width: 46ch; }

.joinbox { margin-top: 28px; }
.joinbox > label {
  display: block; font-size: var(--fs-s); font-weight: 600;
  color: var(--ink-2); margin-bottom: 10px;
}
.code-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.code-cells { display: flex; gap: 6px; }
.code-cells input {
  width: 46px; height: 58px; text-align: center;
  font-family: var(--f-display); font-size: 1.5rem; font-weight: 700;
  text-transform: uppercase; color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line); border-bottom-width: 3px;
  border-radius: var(--r);
}
.code-cells input:focus-visible {
  background: var(--surface); border-bottom-color: var(--accent);
}
@media (max-width: 400px) {
  .code-cells input { width: 40px; height: 52px; font-size: 1.25rem; }
}

/* ---------- buttons ---------- */

.btn {
  font: inherit; font-weight: 600; font-size: var(--fs-s);
  padding: 11px 20px; min-height: 44px;
  border-radius: var(--r); border: 1px solid transparent;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; transition: background-color .12s ease, color .12s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-press); color: #fff; }
.btn-quiet {
  background: var(--surface); color: var(--ink); border-color: var(--line);
}
.btn-quiet:hover { background: var(--paper); color: var(--ink); }
.btn-text { background: none; color: var(--accent); padding: 8px 4px; }
.btn-sm { padding: 7px 12px; min-height: 38px; font-size: var(--fs-xs); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-danger { background: none; color: var(--warn); border-color: var(--line); }

/* ---------- sections ---------- */

.band { padding: clamp(40px, 6vw, 68px) 0; }
.band-alt { background: var(--surface); border-block: 1px solid var(--line); }
.band > .wrap > h2 { margin-bottom: 6px; }
.band-intro { color: var(--muted); max-width: 58ch; margin-bottom: 28px; }

/* two tools — deliberately different shapes, not a card kit */

.tools { display: grid; gap: 28px; }
@media (min-width: 760px) { .tools { grid-template-columns: 1.05fr 1fr; gap: 40px; } }

.tool-lead {
  border-top: 3px solid var(--ink);
  padding-top: 18px;
}
.tool-lead h3 { margin-bottom: 8px; }
.tool-lead ul { margin: 0 0 20px; padding-left: 18px; color: var(--ink-2); }
.tool-lead li { margin-bottom: 5px; }

/* results-sheet table */

.sheet-scroll { overflow-x: auto; }
.sheet {
  width: 100%; border-collapse: collapse;
  background: var(--surface); font-size: var(--fs-s);
}
.sheet caption {
  text-align: left; font-family: var(--f-display); font-weight: 600;
  font-size: var(--fs-s); color: var(--muted); padding-bottom: 8px;
}
.sheet th, .sheet td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); text-align: left; }
.sheet thead th {
  font-family: var(--f-display); font-weight: 600; font-size: var(--fs-xs);
  color: var(--muted); border-bottom: 1px solid var(--line);
}
.sheet td.num, .sheet th.num { text-align: right; font-variant-numeric: tabular-nums; }
.sheet tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.sheet tr.is-next td { background: var(--accent-tint); }
.sheet tr.is-next td:first-child { box-shadow: inset 3px 0 0 var(--accent); font-weight: 600; }
.sheet tr.is-done td:first-child { color: var(--muted); }
.tick { color: var(--ok); font-weight: 700; }

/* ---------- panels & forms ---------- */

.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: clamp(18px, 3vw, 26px);
}
.panel + .panel { margin-top: 20px; }
.panel > h3 { margin-bottom: 4px; }
.panel-note { color: var(--muted); font-size: var(--fs-s); margin-bottom: 18px; }

.field { margin-bottom: 16px; }
.field label, .field legend {
  display: block; font-size: var(--fs-s); font-weight: 600; margin-bottom: 6px; color: var(--ink-2);
}
.field .hint { font-weight: 400; color: var(--muted); font-size: var(--fs-xs); display: block; margin-top: 4px; }
input[type="text"], input[type="number"], input[type="date"], select, textarea {
  font: inherit; width: 100%; padding: 10px 12px; min-height: 44px;
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r);
}
textarea { min-height: 80px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
.row { display: grid; gap: 14px; }
@media (min-width: 620px) {
  .row-2 { grid-template-columns: 1fr 1fr; }
  .row-3 { grid-template-columns: 1fr 1fr 1fr; }
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* option rows in the quiz builder / player */

.opt {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 10px 12px; margin-bottom: 8px; background: var(--surface);
  cursor: pointer;
}
.opt:hover { border-color: var(--muted); }
.opt input { width: auto; min-height: 0; margin: 0; accent-color: var(--accent); flex: none; }
.opt input[type="text"] { flex: 1; width: auto; min-width: 0; }
.opt span { flex: 1; }
.opt.is-right { border-color: var(--ok); background: #f0f8f3; }
.opt.is-wrong { border-color: var(--warn); background: #fbf1ef; }

/* ---------- small bits ---------- */

.tag {
  display: inline-block; font-size: var(--fs-xs); font-weight: 600;
  padding: 3px 9px; border-radius: 999px;
  background: var(--paper); color: var(--ink-2); border: 1px solid var(--line);
}
.tag-pb { background: var(--pb-tint); color: var(--pb); border-color: #e6d3ac; }

.code-out {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(2rem, 7vw, 2.75rem); letter-spacing: .16em;
  color: var(--ink); background: var(--paper);
  border: 1px dashed var(--line); border-radius: var(--r);
  padding: 16px 18px; text-align: center; margin: 4px 0 16px;
}

/* The link is what actually gets sent, so it sits under the code and reads
   as one line, never wrapped into something unrecognisable. */
.link-out {
  font-size: var(--fs-s); color: var(--muted);
  background: var(--paper); border: 1px solid var(--line-soft);
  border-radius: var(--r); padding: 10px 12px; margin: 0 0 16px;
  overflow-wrap: anywhere; text-align: center;
}

/* Three small facts under the hero. Not badges, not a feature grid —
   the things someone actually weighs before trying a new site. */
.proof {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 8px 40px;
  margin: 34px 0 0; padding: 20px 0 0;
  border-top: 1px solid var(--line);
}
.proof li { display: flex; flex-direction: column; }
.proof b {
  font-family: var(--f-display); font-size: var(--fs-xl);
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em; line-height: 1.1;
}
.proof span { font-size: var(--fs-xs); color: var(--muted); max-width: 22ch; }

.hero.deep { padding-bottom: clamp(34px, 5vw, 54px); }
.hero.deep h1 { letter-spacing: -0.03em; }

/* ================= deep water =================
   No wave graphics. A drawn wave reads as clip art at any size, and the
   sites this page competes with — federations, timing providers, kit brands
   — never use one. What they do use is depth, a hard edge, and a number big
   enough to be read from across a room. That is what is here.

   Depth comes from a single steep gradient; the lane markings are the same
   geometry used on the pool floor, straight lines vanishing into the dark. */

.waterhero {
  position: relative;
  isolation: isolate;
  padding: clamp(52px, 9vw, 104px) 0 clamp(48px, 8vw, 92px);
  background:
    radial-gradient(90% 120% at 88% 4%, rgba(56,190,204,.22), transparent 58%),
    linear-gradient(168deg, #10384f 0%, #0d2740 52%, #081a2b 100%);
  color: #e8f2f7;
  overflow: hidden;
  border-bottom: 3px solid var(--accent);
}

/* lane markings on the floor of the pool, in perspective */
.waterhero::before {
  content: "";
  position: absolute; inset: auto -30% -42% -30%; height: 78%;
  background: repeating-linear-gradient(90deg,
    rgba(255,255,255,.07) 0 2px, transparent 2px 84px);
  transform: perspective(300px) rotateX(58deg);
  transform-origin: bottom;
  pointer-events: none;
  z-index: -1;
}

.waterhero h1 {
  color: #fff;
  letter-spacing: -0.035em;
  max-width: 18ch;
}
.waterhero .band-intro { color: #a9c6d6; max-width: 50ch; }
.waterhero .deep-kicker,
.waterhero .deep-kicker a { color: #5fcfcb; }

.waterhero .headline-num {
  color: #fff;
  font-size: clamp(3.4rem, 13vw, 6.2rem);
  line-height: .92;
  letter-spacing: -0.045em;
  margin: 18px 0 6px;
}
.waterhero .num-label {
  display: block;
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .11em; text-transform: uppercase;
  color: #6ea4bd; margin-bottom: 10px;
}

/* Club pages are working screens — the same water, much less of it. */
.waterhero--slim { padding: clamp(28px, 4.5vw, 46px) 0 clamp(26px, 4vw, 42px); }
.waterhero--slim .hero-line { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 6px; }
.waterhero--slim::before { display: none; }

.waves { display: none; }   /* retired: the drawn wave never looked like water */

@media print {
  .waterhero { background: none; color: var(--ink); padding: 0 0 12px; border-bottom: 2px solid var(--ink); }
  .waterhero::before { display: none; }
  .waterhero h1, .waterhero .headline-num { color: var(--ink); }
  .waterhero .band-intro, .waterhero .deep-kicker, .waterhero .num-label { color: var(--muted); }
}

/* One event, one line. Opens into its full history when asked.
   A swimmer with four seasons logged has a lot of rows, and a coach opening
   a profile wants the best time and the direction first, not a wall. */
.ev { border-bottom: 1px solid var(--line-soft); }
.ev:last-of-type { border-bottom: 0; }

.ev__top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 14px;
  align-items: baseline;
  padding: 11px 0;
  cursor: pointer;
  list-style: none;
}
.ev__top::-webkit-details-marker { display: none; }
.ev__top:hover .ev__name { color: var(--accent); }

.ev__name { font-weight: 600; }
.ev__pool {
  display: inline-block; margin-left: 7px;
  font-family: var(--f-body); font-weight: 600;
  font-size: 0.7rem; letter-spacing: .06em;
  color: var(--muted); border: 1px solid var(--line);
  border-radius: 3px; padding: 0 4px; vertical-align: 2px;
}
.ev__best {
  font-family: var(--f-display); font-weight: 700;
  font-variant-numeric: tabular-nums; font-size: var(--fs-lg);
  grid-row: 1; grid-column: 2; text-align: right;
}
.ev__meta {
  grid-column: 1 / -1;
  font-size: var(--fs-xs); color: var(--muted);
}
.ev__body { margin: 0 0 8px; font-size: var(--fs-xs); color: var(--muted); }

.ev[open] .ev__top { border-bottom: 1px solid var(--line-soft); }

.sheet-tight th, .sheet-tight td { padding: 5px 6px; font-size: var(--fs-xs); }
.sheet-tight { margin-bottom: 12px; }

/* ================= the lane =================
   A swimmer's question is never "what is the record" — it is "how far is
   the next one". So the ladder is drawn as a lane read from the bottom up:
   school meet at the water line, national best at the far end, and the
   swimmer's own mark sitting between two of them.

   Built from borders and gradients, no images and no script, so it prints
   and it still works on a phone with one bar of signal. */

.lane {
  --lane-w: 3px;
  position: relative;
  margin: 22px 0 26px;
  padding-left: 30px;
}

/* the rope: two-tone dashes, the way a lane divider reads from the deck */
.lane::before {
  content: "";
  position: absolute;
  left: 8px; top: 10px; bottom: 10px;
  width: var(--lane-w);
  border-radius: 2px;
  background: repeating-linear-gradient(
    to bottom,
    var(--accent) 0 10px,
    var(--line) 10px 20px
  );
  opacity: .45;
}

.rung {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
}
.rung:last-child { border-bottom: 0; }

.rung::before {                       /* the node on the rope */
  content: "";
  position: absolute;
  left: -26px; top: 50%;
  width: 11px; height: 11px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--line);
}

.rung__name { flex: 1; font-weight: 600; }
.rung__time {
  font-family: var(--f-display);
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-lg);
}
.rung__gap { font-size: var(--fs-xs); color: var(--muted); min-width: 74px; text-align: right; }

/* already behind you */
.rung.is-done::before { background: var(--accent); border-color: var(--accent); }
.rung.is-done .rung__name, .rung.is-done .rung__time { color: var(--ink-2); }
.rung.is-done .rung__gap { color: var(--accent); font-weight: 600; }

/* the one that matters: the next step up */
.rung.is-next {
  background: linear-gradient(90deg, var(--accent-tint), transparent 70%);
  border-radius: var(--r);
  padding-left: 10px;
  margin-left: -10px;
}
.rung.is-next::before {
  left: -16px;
  width: 15px; height: 15px; margin-top: -7px;
  background: var(--surface);
  border: 3px solid var(--accent);
}
.rung.is-next .rung__gap { color: var(--accent); font-weight: 700; font-size: var(--fs-s); }

/* where the swimmer actually is — sits between two rungs */
.lane__you {
  position: relative;
  margin: 2px 0 2px -10px;
  padding: 7px 12px;
  border-left: 3px solid var(--pb);
  background: var(--pb-tint);
  border-radius: 0 var(--r) var(--r) 0;
  font-size: var(--fs-s);
  font-weight: 600;
  color: var(--pb);
}

/* ================= water band =================
   One band at the top of a swim page. Layered, not a picture: three soft
   bands of the same navy, which reads as depth without costing a download. */

.deep {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(15,110,104,.10), transparent 60%),
    linear-gradient(180deg, var(--surface), var(--paper));
  border-bottom: 1px solid var(--line);
}
.deep::after {                        /* lane lines, fading with depth */
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent 0 46px,
    rgba(18,40,60,.05) 46px 47px
  );
  pointer-events: none;
}
.deep > .wrap { position: relative; }

.deep-kicker {
  display: inline-block;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.headline-num {
  font-family: var(--f-display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.6rem, 9vw, 4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 4px 0 2px;
}

@media print {
  .deep::after { display: none; }
  .lane::before { opacity: 1; background: var(--line); }
  .rung.is-next { background: none; }
}

/* Club module: coach roster and parent panel. */

/* Editing happens in the row, not on another page. */
.edit-row { width: 100%; display: grid; gap: 10px; }
@media (min-width: 620px) {
  .edit-row { grid-template-columns: 1fr 1fr; align-items: end; }
  .edit-row .actions, .edit-row [data-rowmsg] { grid-column: 1 / -1; }
}
.edit-row .field { margin-bottom: 0; }
.edit-row label { font-size: var(--fs-xs); }
.list-strip li:has(.edit-row) { background: var(--paper); border-radius: var(--r); padding: 12px; }
.howto-list { margin: 6px 0 10px; padding-left: 20px; }
.howto-list li { margin-bottom: 10px; font-size: var(--fs-s); }
#howto > summary { cursor: pointer; font-family: var(--f-display); font-weight: 600; }
#joinlink { overflow-wrap: anywhere; }
.club-bar {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 8px;
}
.club-bar h1, .club-bar h2 { margin: 0 0 2px; }
.sub { margin: 0; font-size: var(--fs-xs); color: var(--muted); }

/* Growth report. It gets read twice — on a phone by a child, and on paper
   by a coach — so it has to survive being printed. */

.rep-top { padding-bottom: 14px; border-bottom: 2px solid var(--ink); margin-bottom: 24px; }
.rep-top h2 { margin: 0 0 2px; }

.rep-sub { margin: 0; font-size: var(--fs-xs); color: var(--muted); }

.rep-event { margin: 0 0 30px; padding-bottom: 24px; border-bottom: 1px solid var(--line-soft); }
.rep-event h3 { margin: 0 0 10px; }
.rep-pool { font-family: var(--f-body); font-weight: 400; font-size: var(--fs-xs); color: var(--muted); }

.rep-head { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.rep-big { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 2rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.rep-gain { margin: 6px 0 0; font-size: var(--fs-s); color: var(--ok); font-weight: 600; }

.rep-spark { flex: 0 1 260px; color: var(--accent); }
.spark { width: 100%; height: 56px; display: block; }
.rep-sparks { display: flex; flex-wrap: wrap; gap: 24px; margin: 14px 0 18px; color: var(--accent); }
.rep-sparks > div { flex: 1 1 200px; }

.sheet .is-best td { font-weight: 600; }
.sheet .down { color: var(--ok); }
.sheet .up { color: var(--muted); }
.delta { font-size: var(--fs-xs); color: var(--muted); font-weight: 400; }

.rep-growth { margin-top: 32px; }

@media print {
  .no-print, .site-head, .site-foot { display: none !important; }
  body { background: #fff; }
  main.band { padding: 0; }
  .wrap { max-width: none; padding: 0; }
  .rep-event { break-inside: avoid; }
  .sheet { font-size: 10pt; }
  a[href]::after { content: ""; }
}

/* Paste mode. Closed by default — most children type, most teachers paste. */
.paste-panel > summary {
  cursor: pointer;
  font-family: var(--f-display);
  font-weight: 600;
  margin-bottom: 4px;
}
.paste-panel > summary::marker { color: var(--muted); }
.paste-panel[open] > summary { margin-bottom: 10px; }
.paste-panel textarea { min-height: 160px; font-size: var(--fs-s); }

.paste-help {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: var(--fs-xs);
}
.paste-help p { margin: 0 0 8px; }
.paste-help pre {
  margin: 0 0 10px;
  padding: 12px 14px;
  overflow-x: auto;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--ink-2);
}

.paste-msg { margin: 12px 0 0; font-size: var(--fs-s); min-height: 1.4em; }
.paste-msg.is-ok { color: var(--ok); }
.paste-msg.is-warn { color: var(--pb); }

/* How far along the quiz is. Quiet until it turns into permission to save. */
.qcount {
  margin: 18px 0 0;
  padding-left: 12px;
  border-left: 3px solid var(--line);
  color: var(--muted);
  font-size: var(--fs-s);
}
.qcount.is-ready { border-left-color: var(--ok); color: var(--ok); }

/* The daily quiz. The only thing on the site that is different tomorrow,
   so it gets the one warm colour and everything else stays quiet. */
.panel-daily { border-color: var(--pb); box-shadow: inset 3px 0 0 var(--pb); }

.daily-date {
  font-size: var(--fs-xs); color: var(--muted);
  letter-spacing: .04em; margin: 0 0 2px;
}
.daily-title {
  font-family: var(--f-display); font-weight: 700;
  font-size: var(--fs-lg); margin: 0 0 6px;
}
.daily-done {
  display: inline-block; margin: 10px 0 0;
  background: var(--pb-tint); color: var(--pb);
  border: 1px solid #e6d3ac; border-radius: var(--r);
  padding: 6px 10px; font-size: var(--fs-s);
}

.daily-strip {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
  margin-top: 20px; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--pb); border-radius: var(--r);
}
.daily-strip .daily-title { margin: 0; }

/* Event lists on the swim pages: many short links, read down not across. */
.cols {
  columns: 2 14rem; column-gap: 28px;
  list-style: none; margin: 0 0 28px; padding: 0;
}
.cols li { break-inside: avoid; padding: 5px 0; }

.list-strip .ls-plays {
  display: block; font-size: var(--fs-xs); color: var(--accent); margin-top: 2px;
}

/* The one panel on the result screen that is asking for something. */
.panel-lead {
  border-color: var(--accent);
  box-shadow: inset 3px 0 0 var(--accent);
}
.panel-lead > h3 { margin-bottom: 0; }

.notice {
  border-left: 3px solid var(--accent); background: var(--accent-tint);
  padding: 12px 14px; border-radius: 0 var(--r) var(--r) 0;
  font-size: var(--fs-s); margin-bottom: 18px;
}
.notice-warn { border-left-color: var(--warn); background: #fbf1ef; }
.notice p:last-child { margin-bottom: 0; }

.empty {
  border: 1px dashed var(--line); border-radius: var(--r);
  padding: 28px 20px; text-align: center; color: var(--muted);
}
.empty p { margin-inline: auto; }

.list-strip {
  list-style: none; margin: 0; padding: 0;
  border-top: 1px solid var(--line);
}
.list-strip li {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 2px; border-bottom: 1px solid var(--line-soft);
}
.list-strip .ls-main { flex: 1; min-width: 180px; }
.list-strip .ls-main b { display: block; font-weight: 600; }
.list-strip .ls-sub { font-size: var(--fs-xs); color: var(--muted); }
.list-strip .ls-val {
  font-family: var(--f-display); font-weight: 700; font-size: var(--fs-lg);
  font-variant-numeric: tabular-nums;
}

.stat-row { display: flex; flex-wrap: wrap; gap: 28px; margin: 18px 0 0; }
.stat b {
  display: block; font-family: var(--f-display); font-size: var(--fs-2xl);
  font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums;
}
.stat span { font-size: var(--fs-xs); color: var(--muted); }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 16px 2px; font-weight: 600;
  font-family: var(--f-display); list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); font-size: 1.25rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > p { padding: 0 2px 16px; color: var(--ink-2); }

/* ---------- footer ---------- */

.site-foot {
  background: var(--ink); color: #c3d2dd;
  padding: 40px 0 32px; font-size: var(--fs-s);
}
.site-foot a { color: #fff; }
.site-foot h4 { color: #fff; font-size: var(--fs-s); margin-bottom: 10px; }
.foot-grid { display: grid; gap: 26px; }
@media (min-width: 700px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 6px; }
.foot-base {
  margin-top: 28px; padding-top: 18px; border-top: 1px solid #2c4459;
  font-size: var(--fs-xs); color: #91a7b6;
}

/* ---------- toast ---------- */

#toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r);
  font-size: var(--fs-s); z-index: 60; max-width: calc(100% - 32px);
}
#toast[hidden] { display: none; }

.hide { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* SwimLadder water theme — local artwork, no extra scripts or dependencies. */
@media screen {
  :root { --paper:#effbfd; --ink:#103851; --ink-2:#28546b; --muted:#506f81;
    --accent:#007b91; --accent-press:#005c73; --accent-tint:#def7fa;
    --line:#bddfe7; --line-soft:#d8edf1; --r:14px; }
  body { background:radial-gradient(ellipse at 100% 35%,#d6f5f8,transparent 55%),var(--paper); }
  .site-head { border-bottom-color:#c3e9ef; box-shadow:0 3px 18px #07516e0a; }
  .brand { color:#075470; }
  .site-nav a { border-radius:9px; }
  .site-nav a[aria-current="page"] { background:#e1f7fa; color:#00677d; }
  .waterhero { background:radial-gradient(ellipse at 95% 0,#20b9ca66,transparent 60%),linear-gradient(115deg,#073955,#086b88 65%,#098ea0);
    padding:64px 0 100px; border:0; }
  .waterhero > .wrap { position:relative; z-index:1; }
  .waterhero:not(.waterhero--slim) > .wrap { padding-right:40%; }
  .waterhero::before { display:block; inset:0 max(0px,calc((100vw - 1190px)/2)) 20px auto; width:43%; height:auto;
    background:url('../swim-scene.svg') center / contain no-repeat; transform:none; z-index:0; }
  .waterhero::after { content:""; position:absolute; bottom:-1px; left:-5%; width:110%; height:74px;
    background:url('../waves.svg') bottom / 100% 100% no-repeat; pointer-events:none;
    animation:swim-tide 7s ease-in-out infinite alternate; }
  .waterhero .band-intro { color:#d8f4f9; }
  .waterhero .deep-kicker, .waterhero .deep-kicker a, .waterhero .num-label { color:#a2f2ef; }
  .waterhero .btn-primary { background:#ffcf75; border-color:#ffcf75; color:#173e52; }
  .waterhero .btn-primary:hover { background:#ffdd9f; border-color:#ffdd9f; }
  .waterhero .btn-quiet { color:#fff; border-color:#8cdde4; background:#ffffff12; }
  .waterhero .btn-quiet:hover { background:#ffffff26; }
  .waterhero--slim { padding:32px 0 75px; }
  .waterhero--slim::before { width:240px; opacity:.23; }
  .btn { border-radius:999px; transition:background .2s,box-shadow .2s; }
  .btn-primary { box-shadow:0 4px 12px #007b911c; }
  .panel { box-shadow:0 8px 28px #07547009; border-color:#c2e2e9; }
  .lane { border-radius:14px; overflow:hidden; background:#fff; }
  .lane__you { background:#d9f7fa; }
  .cols { columns:auto; display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr)); gap:10px; }
  .cols li { padding:0; min-width:0; }
  .cols a { display:flex; align-items:center; gap:10px; height:100%; padding:13px 16px; background:#fff;
    border:1px solid #c5e5eb; border-radius:12px; text-decoration:none; font-weight:600; }
  .cols a::before { content:'≈'; color:#007b91; font-size:24px; line-height:1; }
  .cols a:hover { background:#e1f8fb; border-color:#63bfce; }
  .site-foot { background:#ddf3f7; border-top:1px solid #b7e1e9; }
  main.band { background-image:url('../waves.svg'); background-size:100% 65px; background-repeat:no-repeat; background-position:bottom; padding-bottom:85px; }
  @keyframes swim-tide { from { transform:translateX(-2%); } to { transform:translateX(2%); } }
  @media (max-width:700px) {
    .waterhero { padding:36px 0 75px; }
    .waterhero:not(.waterhero--slim) > .wrap { padding-right:0; padding-bottom:170px; }
    .waterhero:not(.waterhero--slim)::before { width:230px; height:190px; top:auto; bottom:28px; right:calc(50% - 115px); opacity:.9; }
    .waterhero--slim::before { opacity:.12; }
    .waterhero::after { height:50px; }
    .waterhero .headline-num { font-size:4rem; }
    .cols { gap:8px; }
  }
  @media (prefers-reduced-motion:reduce) { .waterhero::after { animation:none; } .btn { transition:none; } }
}

/* Accessible footer text on the light aquatic footer. */
.site-foot{color:#3c5e73}.site-foot a,.site-foot h4{color:#174e73}.site-foot a:hover{color:#0b3858;text-decoration:underline}.site-foot a:focus-visible{outline:2px solid #1676b6;outline-offset:4px}.site-foot .foot-base{color:#46677c;border-top-color:#b4d4e3}


/* ===== account-controls.css ===== */
/* Shared credential controls for sign-in, registration and account settings. */
.password-control { position:relative;width:100%;min-width:0; }
.password-control input { box-sizing:border-box; width:100%;min-width:0;min-height:50px;padding:12px 76px 12px 14px;border:1px solid #b9cfd7;border-radius:10px;background:#fff;color:#173d52;font:inherit;font-size:16px; }
.password-control input:focus { outline:2px solid #04788c;outline-offset:2px; }
.password-reveal { margin:0; position:absolute;right:5px;top:5px;bottom:5px;min-width:58px;border:0;border-radius:7px;padding:0 9px;background:transparent;color:#006d81;font:inherit;font-size:13px;font-weight:600;cursor:pointer; }
.password-reveal:hover { background:#e9f6f8; }
.password-settings { max-width:560px;padding:24px;border:1px solid #c2e2e9;border-radius:16px;background:#fff; }
.password-settings summary { cursor:pointer;font-weight:700;margin-bottom:18px; }
.password-settings .field { max-width:none !important;margin-bottom:18px; }
.password-settings label { display:block;margin-bottom:8px;font-weight:600;font-size:14px; }
.timing-editor { padding:22px;background:#eff9fb;border:1px solid #bedee6;border-radius:14px;margin:24px 0; }
.timing-editor .field input,.timing-editor .field select { width:100%;min-height:46px; }
.timing-editor h3 { margin-top:0; }

/* Dashboard forms share a compact tab workspace, with no horizontal swipe required. */
.swimmer-page main.band { padding-top:24px; }
.swimmer-tabs { display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;padding:6px;border:1px solid #c5e0e6;background:#e4f2f5;border-radius:14px;margin:20px 0 24px; }
.swimmer-tabs button { min-width:0;min-height:46px;padding:10px 8px;border:0;border-radius:10px;font:inherit;font-size:14px;font-weight:600;line-height:1.35;background:transparent;color:#315c70;cursor:pointer; }
.swimmer-tabs button[aria-selected="true"] { color:#fff;background:#067b90;box-shadow:0 3px 8px #006b821c; }
.swimmer-tabs button:hover:not([aria-selected="true"]) { background:#d4e9ef; }
.swimmer-tab-panel[hidden] { display:none !important; }
.swimmer-tab-panel>.panel,.swimmer-tab-panel>form.panel { margin-top:0; }
.swimmer-tab-panel .field input,.swimmer-tab-panel .field select,.swimmer-tab-panel .field textarea { border-radius:10px; }
#view-account .password-settings { max-width:none; }
#view-overview>.actions { margin-top:0;margin-bottom:20px; }
.record-summary { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 24px; }
.record-summary>div { padding:16px;border:1px solid #c4e3e9;border-radius:12px;background:#f2fbfd; }
.record-summary strong { display:block;font-size:26px;line-height:1.2;color:#075d74; }
.record-summary span { font-size:13px;color:#567586; }
.record-section { margin-top:20px;border-top:1px solid #d7e7ec;padding-top:18px; }
.record-section>summary { cursor:pointer;font-weight:700;color:#16495e; }
@media(max-width:620px){
 .swimmer-tabs { grid-template-columns:repeat(3,minmax(0,1fr));gap:5px; }
 .swimmer-tabs button { font-size:12px;min-height:46px; }
 .record-summary { gap:6px; }.record-summary>div { padding:12px 8px; }.record-summary span { font-size:11px; }
 .password-settings { padding:18px; }
}
@media print { .swimmer-tabs,#view-race,#view-measurements,#view-training,#view-account { display:none !important; } #view-overview[hidden] { display:block !important; } }

/* Profile and club forms, including inputs without an explicit HTML type. */
#view-account .field input:not([type=checkbox]):not([type=radio]),#view-account .field select,#view-account .field textarea,.roster-filter select { box-sizing:border-box;width:100%;min-height:49px;padding:12px 14px;border:1px solid #b8ced7;border-radius:10px;background:#fff;color:#193e51;font:inherit;font-size:16px; }
#view-account .password-control input { padding-right:76px !important; }
#view-account .field input:focus,#view-account .field select:focus,#view-account .field textarea:focus { outline:2px solid #05788b;outline-offset:2px; }
#view-account .field label,.roster-filter label { display:block;margin-bottom:8px;font-size:14px;font-weight:600;color:#254c60; }
#view-account .field { margin-bottom:20px; }
#view-account .panel>summary { padding:2px 0;font-size:17px;cursor:pointer;font-weight:700; }
.profile-form { margin-top:22px;max-width:800px; }
.form-intro { font-size:14px;line-height:1.6;color:#5a7583;margin:12px 0 24px; }
.profile-group { padding:0;margin:0 0 26px;border:0;min-width:0; }
.profile-group legend { display:block;width:100%;padding:0 0 12px;border-bottom:1px solid #dbe9ed;margin:0 0 20px;color:#276477;font-weight:700;font-size:13px;letter-spacing:.06em;text-transform:uppercase; }
.profile-grid { display:grid;grid-template-columns:1fr 1fr;gap:18px; }
.profile-form small,.roster-filter small { display:block;color:#607b88;font-size:12px;line-height:1.5;margin-top:8px; }
.profile-form .optional { font-weight:400;color:#67808b; }
.profile-save { display:flex;align-items:center;flex-wrap:wrap;gap:16px;border-top:1px solid #dbe9ed;padding-top:20px; }
.profile-save p { margin:0;color:#075f70; }
#saved-recovery-code { width:100%;font-family:monospace;font-size:16px;padding:14px;border:1px solid #b8ced7;border-radius:10px; }
#request-form[hidden],#verify-form[hidden],#recovery-help[hidden],#reset-form[hidden],#reset-done[hidden] { display:none !important; }
@media(max-width:620px){.profile-grid{grid-template-columns:1fr;gap:0}.profile-save .btn{width:100%}}

.recovery-reminder{max-width:1120px;margin:12px auto 20px;padding:14px 18px;background:#e4f4f5;border:1px solid #a9dadd;border-radius:10px;color:#205961}.recovery-reminder[hidden]{display:none}.recovery-reminder a{font-weight:700;color:#075e68}.recovery-settings input[type=email]{display:block;width:100%;min-height:48px;box-sizing:border-box;padding:12px;border:1px solid #b8ced7;border-radius:8px;font:inherit;font-size:16px}

#login-account-choice[hidden]{display:none!important}
/* Private swimmer portrait, shared across parent and coach views. */
.swimmer-identity{display:flex;align-items:center;gap:20px;min-width:0}.swimmer-identity>div{min-width:0}.profile-kicker{font-size:.7rem;letter-spacing:.14em;font-weight:700;color:#24717b;margin:0 0 6px}.swimmer-avatar{position:relative;display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;flex:0 0 auto;overflow:hidden;border-radius:50%;background:#dceef1;color:#1c6472;border:3px solid #fff;box-shadow:0 0 0 1px #c3dce4;font-size:19px;font-weight:700;vertical-align:middle}.swimmer-avatar--large{width:100px;height:100px;font-size:32px}.swimmer-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.swimmer-avatar img[hidden]{display:none}.avatar-slot{flex:0 0 auto}.profile-photo-editor{display:flex;align-items:flex-start;gap:28px;padding:22px;background:#f1f7fa;border:1px solid #d3e5ec;border-radius:14px;margin:20px 0 28px}.photo-preview{width:140px;height:140px;flex:0 0 140px;border-radius:18px;overflow:hidden;background:#dceef1;display:flex;align-items:center;justify-content:center}.photo-preview>.swimmer-avatar{width:100%;height:100%;border:0;border-radius:18px;box-shadow:none}.photo-preview>img{width:100%;height:100%;object-fit:cover}.photo-editor-fields{flex:1;min-width:0}.photo-editor-fields h3{margin:0 0 8px}.photo-editor-fields>p{color:#526f7f;line-height:1.5}.photo-editor-fields input[type=file]{width:100%;max-width:100%;background:#fff;padding:9px;border:1px solid #b6cfdb;border-radius:8px;font:inherit;box-sizing:border-box}.photo-editor-fields input::file-selector-button{border:0;border-radius:5px;background:#e1eef3;color:#1c5365;padding:8px 12px;font:inherit;margin-right:10px;cursor:pointer}#photo-cancel[hidden],#photo-remove[hidden]{display:none!important}
@media(max-width:600px){.swimmer-identity{gap:12px}.swimmer-avatar--large{width:72px;height:72px;font-size:26px}.profile-photo-editor{flex-direction:column;gap:16px;padding:16px}.photo-preview{width:120px;height:120px;flex-basis:120px}.photo-editor-fields{width:100%}.swimmer-identity h2{font-size:1.4rem}}


/* ===== coach-messages.css ===== */
.coach-profile-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px;margin:20px 0 28px}.coach-profile-card{background:#fff;border:1px solid #d4e5eb;border-radius:18px;padding:24px;box-shadow:0 5px 18px #153e4c08}.coach-profile-card h3{margin:14px 0 5px;font-size:1.4rem}.coach-profile-card .coach-club{color:#087781;font-size:.88rem;font-weight:600;margin:0 0 14px}.coach-profile-card p{white-space:pre-wrap;overflow-wrap:anywhere}.coach-profile-card dl{margin:18px 0}.coach-profile-card dt{font-size:.76rem;font-weight:700;color:#617782;text-transform:uppercase;letter-spacing:.05em;margin-top:12px}.coach-profile-card dd{margin:4px 0;white-space:pre-wrap;overflow-wrap:anywhere}.coach-portrait{width:104px;height:104px;flex:0 0 auto;border-radius:22px;background:#e0eff2;color:#176374;display:flex;align-items:center;justify-content:center;font-size:30px;font-weight:700;overflow:hidden;position:relative}.coach-portrait img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}.coach-profile-photo-row{display:flex;align-items:flex-start;gap:24px;padding-bottom:24px;margin-bottom:24px;border-bottom:1px solid #dce7ed}.coach-profile-photo-row form{flex:1;min-width:0}.coach-profile-editor textarea,.message-workspace textarea{width:100%;box-sizing:border-box;font:inherit;border:1px solid #b9cdd7;border-radius:9px;padding:12px;resize:vertical}.coach-profile-editor input[type=file]{max-width:100%;box-sizing:border-box}.message-workspace{background:#fff;border:1px solid #d4e5eb;border-radius:18px;padding:24px}.message-toolbar{display:flex;align-items:flex-end;gap:16px}.message-toolbar .field{flex:1;margin:0}.message-toolbar label,.message-workspace form>label{display:block;font-weight:600;margin-bottom:8px}.message-toolbar select{width:100%;padding:12px;border:1px solid #b9cdd7;border-radius:8px;font:inherit;background:#fff}.message-thread-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:20px;padding-top:16px;border-top:1px solid #dce7ed}.message-thread-heading h3{font-size:1.1rem;margin:0}.message-thread-heading span{font-size:.76rem;color:#49717b;background:#edf6f6;border-radius:20px;padding:6px 10px;white-space:nowrap}.message-list{height:350px;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:12px;background:#f4f8fa;border-radius:12px;margin:16px 0;padding:16px}.message-bubble{max-width:85%;align-self:flex-start;background:#fff;border:1px solid #dce7ed;border-radius:12px 12px 12px 3px;padding:12px 15px}.message-bubble.mine{align-self:flex-end;background:#dff1f0;border-color:#c1dfdf;border-radius:12px 12px 3px 12px}.message-bubble p{white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0 8px;line-height:1.5}.message-bubble small{display:block;color:#536e7b;font-size:.72rem}.message-bubble strong{font-size:.76rem;color:#295a66}.message-compose-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:12px}.message-compose-bottom small{color:#627985}.message-workspace button:disabled{opacity:.55;cursor:wait}.message-workspace [hidden],.coach-profile-editor [hidden]{display:none!important}.coach-profile-editor textarea:focus,.message-workspace textarea:focus,.message-toolbar select:focus{outline:3px solid #c1e9ec;border-color:#147d86}.message-empty{color:#617782;text-align:center;padding:24px}.coach-profile-editor .actions{flex-wrap:wrap}.coach-profile-card .btn{margin-top:10px}
@media(max-width:600px){.message-workspace{padding:16px}.message-toolbar{align-items:stretch;flex-direction:column;gap:10px}.message-bubble{max-width:92%}.message-list{height:320px;padding:10px}.message-compose-bottom{align-items:flex-start;flex-direction:column}.message-compose-bottom button{align-self:flex-end}.coach-profile-photo-row{flex-direction:column}.coach-profile-cards{grid-template-columns:1fr}}
@media print{#view-coach{display:none!important}}


/* ===== community.css ===== */
.unread-badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;margin-left:6px;border-radius:20px;background:#c73847;color:white;font-size:12px;font-weight:700;vertical-align:middle}.unread-badge[hidden],.message-alert[hidden]{display:none!important}.message-alert{display:block;width:100%;margin:10px 0;padding:13px 18px;border:1px solid #acdadd;border-radius:12px;background:#e3f7f6;color:#075568;text-align:left;font:600 15px/1.4 sans-serif;cursor:pointer}.community-heading{display:flex;gap:18px;align-items:center;justify-content:space-between;margin:16px 0 24px}.community-heading h2{margin:0;font-size:30px}.community-heading p{color:#547080}.private-pill{white-space:nowrap;padding:7px 12px;background:#e4f4ef;color:#246a57;border:1px solid #b7ddd0;border-radius:20px;font-size:12px;font-weight:700}.timeline-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:24px;align-items:start}.timeline-guide{background:#eaf3f7;border:1px solid #d4e4eb;border-radius:16px;padding:22px;color:#476575;font-size:14px}.timeline-guide h3{color:#12394f;margin:0 0 12px}.timeline-guide ul{padding-left:18px}.timeline-guide li{margin-bottom:10px}.timeline-composer,.timeline-post{padding:24px;background:#fff;border:1px solid #d5e2e9;border-radius:18px;box-shadow:0 4px 16px #12334a05}.timeline-composer h3{margin:0 0 18px}.timeline-composer label{display:block;font-weight:600;font-size:14px;margin:0 0 7px}.timeline-composer textarea,.timeline-composer input:not([type=checkbox]){width:100%;min-width:0;box-sizing:border-box;border:1px solid #b8cdd8;border-radius:10px;padding:12px;font:inherit;font-size:16px;background:#fbfdfe;color:#18364a}.timeline-composer textarea{resize:vertical;min-height:46px;height:46px}.timeline-composer :is(input,textarea):focus{outline:3px solid #c2eced;border-color:#14828a}.timeline-media-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:18px 0}.timeline-media-fields small{display:block;font-size:12px;color:#627885;margin:6px 0}.timeline-composer input[type=file]{font-size:13px}.timeline-preview{display:block;max-width:100%;max-height:260px;border-radius:10px;margin:16px 0;object-fit:contain}.timeline-composer [hidden],#timeline-more[hidden]{display:none!important}.timeline-feed-heading{display:flex;align-items:center;justify-content:space-between;margin:24px 0 12px;gap:12px}.timeline-feed-heading h3{margin:0}.timeline-post{margin-bottom:18px;overflow:hidden}.timeline-author{display:flex;gap:12px;align-items:center;margin-bottom:18px}.timeline-avatar{width:44px;height:44px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#e3f0f2;color:#147382;font-weight:700;flex-shrink:0}.timeline-author strong,.timeline-author small{display:block;overflow-wrap:anywhere}.timeline-author small{font-size:12px;color:#657c89;margin-top:3px}.timeline-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65}.timeline-image{width:100%;max-height:680px;object-fit:contain;border-radius:12px;background:#f3f7f9}.timeline-video{display:block;padding:16px;background:#edf6f8;border:1px solid #c8e1e8;border-radius:10px;margin-top:16px;color:#075f77;font-weight:600}.timeline-edited{display:block;color:#647c87;font-size:12px;margin-top:14px}.timeline-post-actions{display:flex;justify-content:flex-end;gap:8px;border-top:1px solid #e3ebef;padding-top:12px;margin-top:16px}.timeline-empty{padding:30px;border:1px dashed #b8d4df;border-radius:16px;color:#56727f;text-align:center}
/* Coach identity, spacious profile form and member-facing profile cards. */
.coach-dashboard .coach-profile-editor{padding:0;overflow:hidden;border:1px solid #cddde7;border-radius:20px}.coach-profile-cover{padding:34px;background:linear-gradient(115deg,#123b55,#116e79);color:#fff}.coach-profile-cover span{font-size:11px;font-weight:700;letter-spacing:.17em;color:#bce1e7}.coach-profile-cover h2{font-size:32px;margin:12px 0 6px;color:#fff;overflow-wrap:anywhere}.coach-profile-cover p{margin:0;color:#d5eaf0}.coach-profile-editor>.section-heading{padding:24px 32px 0;margin-bottom:20px}.coach-profile-editor>.coach-profile-photo-row{margin:0 32px 28px;padding:0 0 28px;align-items:center}.coach-profile-editor>#coach-profile-form{padding:0 32px 30px}.coach-profile-editor .coach-portrait{width:144px;height:144px;border-radius:50%;border:5px solid #fff;box-shadow:0 0 0 1px #cbdae1}.coach-profile-editor .field{margin-bottom:18px}.coach-profile-editor textarea{background:#fbfdfe;min-height:130px;line-height:1.6}.coach-profile-editor #coach-profile-save{min-width:190px}.coach-profile-card{position:relative;padding:32px;border-radius:20px;border-top:5px solid #0c7b89}.coach-profile-card .coach-portrait{width:112px;height:112px;border-radius:50%;border:4px solid #fff;box-shadow:0 0 0 1px #c9dde4}.coach-profile-card h3{font-size:25px}.coach-profile-card dl{padding:18px 20px;background:#f3f8fa;border-radius:12px}.coach-profile-card dt:first-child{margin-top:0}.coach-profile-card .btn{width:100%;text-align:center}.coach-profile-card p{line-height:1.6}
@media(max-width:900px){.timeline-layout{grid-template-columns:1fr}.timeline-guide{display:none}.community-heading{align-items:flex-start}.community-heading h2{font-size:25px}.timeline-composer,.timeline-post{padding:18px}.timeline-media-fields{grid-template-columns:1fr}.coach-profile-cover{padding:26px 22px}.coach-profile-editor>.section-heading{padding:22px 20px 0}.coach-profile-editor>.coach-profile-photo-row{margin:0 20px 24px;align-items:flex-start}.coach-profile-editor>#coach-profile-form{padding:0 20px 24px}.coach-profile-cover h2{font-size:27px}.coach-profile-card{padding:24px}}
@media print{#view-timeline,#coach-timeline,.message-alert,.unread-badge{display:none!important}}

.timeline-avatar{position:relative;overflow:hidden}.timeline-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.timeline-interactions{display:flex;gap:10px;flex-wrap:wrap;border-top:1px solid #e3ebef;padding-top:14px;margin-top:16px}.timeline-interactions [aria-pressed=true]{color:#b42852;background:#fff0f5}.timeline-comments{margin-top:18px;border-top:1px solid #d5e2e9;padding-top:18px}.timeline-comment{padding:15px;background:#f3f8fa;border-radius:12px;margin:0 0 12px;overflow-wrap:anywhere}.timeline-comment>small{display:block;color:#647c87;font-size:12px}.comment-avatar{float:left;width:36px;height:36px;border-radius:50%;object-fit:cover;margin-right:10px}.timeline-comment .timeline-image{max-height:320px}.timeline-comment-form{display:grid;gap:10px;margin-top:16px}.timeline-comment-form input:not([type=checkbox]),.timeline-comment-form textarea{box-sizing:border-box;width:100%;min-width:0;border:1px solid #b8cdd8;border-radius:10px;padding:12px;font:inherit;background:#fff}.timeline-comment-form [hidden]{display:none!important}.timeline-identity-note{font-size:13px;color:#547080;line-height:1.5}

/* Release 36: compact social actions and single-row comment composer. */
.timeline-link{appearance:none;border:0!important;background:transparent!important;box-shadow:none!important;padding:4px 6px!important;min-height:0!important;min-width:0!important;width:auto!important;border-radius:5px;color:#086e83;font:600 13px/1.4 system-ui;cursor:pointer;text-decoration:none}.timeline-link:hover{text-decoration:underline;background:#eaf4f7!important}.timeline-link:focus-visible{outline:2px solid #087d89;outline-offset:2px}.timeline-link:disabled{opacity:.5;cursor:wait}.timeline-interactions{gap:12px;padding-top:8px;margin-top:10px}.timeline-post-actions{padding-top:6px;margin-top:8px}.timeline-comment-form{display:flex!important;align-items:center;gap:3px;flex-wrap:wrap;padding:6px 8px;border:1px solid #cddde5;border-radius:20px;background:#f3f7fa}.timeline-comment-form textarea{flex:1 1 80px;width:0!important;min-width:60px!important;min-height:28px!important;height:32px;padding:5px 4px!important;border:0!important;background:transparent!important;resize:vertical;font-size:14px!important;max-height:140px}.timeline-comment-form>.comment-file{display:none!important}.timeline-comment-form>label,.timeline-comment-form>small{flex-basis:100%;font-size:12px}.timeline-comment-form>small:empty{display:none}.comment-send,.comment-attach,.emoji-trigger{font-size:20px;padding:3px 5px!important;line-height:1.2}.timeline-comment-form .emoji-control{flex:0 0 auto}.emoji-control{display:inline-block;position:relative}.emoji-picker{position:absolute;bottom:100%;right:0;z-index:10;display:grid;grid-template-columns:repeat(4,36px);gap:3px;padding:8px;background:white;border:1px solid #c8dce5;border-radius:12px;box-shadow:0 6px 24px #17374b26}.timeline-composer>.emoji-control .emoji-picker{left:0;right:auto}.emoji-picker[hidden]{display:none!important}.emoji-picker button{font-size:21px;border:0;padding:4px;background:transparent;border-radius:6px;cursor:pointer}.emoji-picker button:hover{background:#eaf4f7}.timeline-detected-link{color:#08728b;text-decoration:underline;overflow-wrap:anywhere}.timeline-setting{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;background:#edf6f8;border-radius:12px;margin:12px 0;font-size:14px}.timeline-layout[hidden]{display:none!important}.timeline-media-fields{grid-template-columns:1fr;margin:10px 0}.timeline-composer textarea{min-height:46px}.timeline-comment{padding:12px}.timeline-comment>.timeline-link{margin-right:10px}


/* ===== push-settings.css ===== */
.push-settings{margin:20px 0;padding:22px 24px;border:1px solid #c1dde5;border-radius:16px;background:#f0f9fb;color:#173e51}.push-settings strong{font-size:18px}.push-settings p{font-size:14px;margin:7px 0 12px;color:#4d6e7c}.push-settings .push-status{font-weight:600;color:#1c6071}.push-settings .actions{flex-wrap:wrap;gap:10px;margin-bottom:0}.push-settings [hidden]{display:none!important}.push-settings button:disabled{opacity:.6;cursor:default}@media(max-width:600px){.push-settings{padding:18px}.push-settings button{width:100%}}@media print{.push-settings{display:none!important}}

.push-settings{border:2px solid #07899a;background:linear-gradient(110deg,#e5f8fa,#f5fcff);box-shadow:0 4px 16px #087d8912}.push-settings [data-push-enable]:not(:disabled){background:#087b8d!important;color:#fff!important;border:1px solid #056577!important;box-shadow:0 3px 8px #087d8930;font-weight:700}.push-settings [data-push-enable]:disabled{background:#dbe5e9!important;color:#526a75!important;opacity:1}.push-settings .push-status{border-left:3px solid #087d89;padding-left:10px}


/* ===== workspace-polish.css ===== */
/* Shared workspace: quiet aquatic colours, clear type, compact social actions. */
body:has(.swimmer-tabs),body.coach-dashboard{background:#f1f5f8;color:#19374a}
main>.wrap{max-width:1180px}.community-heading{padding:28px 30px;background:#123e52;border-radius:20px;color:#fff;position:relative;overflow:hidden;margin-top:12px}.community-heading:after{content:"";position:absolute;right:-65px;bottom:-150px;width:340px;height:230px;border:1px solid #ffffff24;border-radius:50%;transform:rotate(-15deg);pointer-events:none}.community-heading h2{font-size:clamp(24px,3vw,34px);letter-spacing:-.035em;color:#fff}.community-heading p{color:#d1e5ec;margin-bottom:0;max-width:650px}.community-heading .dashboard-eyebrow{color:#8ed9dd;margin-top:0;margin-bottom:9px}.community-heading .private-pill{background:#ffffff12;color:#d6f7e9;border-color:#ffffff30;position:relative;z-index:1}.timeline-layout{grid-template-columns:225px minmax(0,760px);justify-content:center;gap:24px}.timeline-guide{background:#fff;border:1px solid #dce6eb;border-radius:16px;padding:23px;position:sticky;top:24px}.community-kicker{font-size:10px;font-weight:700;letter-spacing:.14em;color:#0a7987}.timeline-guide h3{font-size:23px;line-height:1.2;letter-spacing:-.02em;margin-top:12px}.timeline-guide ul{border-top:1px solid #e4ecef;padding-top:18px;font-size:13px}.timeline-composer,.timeline-post{border-color:#dce6eb;box-shadow:0 3px 12px #123e5205}.timeline-composer{padding:20px 24px}.timeline-composer h3{font-size:18px;margin-bottom:8px}.timeline-identity-note{font-size:12px;margin-bottom:14px}.timeline-composer textarea{border-radius:12px;background:#f6f9fb;border-color:#d9e5ec}.timeline-composer .actions{margin-top:10px}.timeline-composer input[type=file]{background:#fff;border-style:dashed;padding:9px}.timeline-media-fields small{font-size:11px}.timeline-feed-heading h3{font-size:17px;letter-spacing:-.02em}.timeline-feed-heading button{font-size:13px;min-height:32px;padding:5px 10px}.timeline-author{margin-bottom:14px}.timeline-avatar{width:46px;height:46px}.timeline-author strong{font-size:15px}.timeline-body{font-size:15px;line-height:1.7}.timeline-post{padding:22px 24px}.timeline-interactions{display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-start;gap:14px;overflow-x:auto;border-top:1px solid #e6edf1;padding-top:9px}.timeline-interactions>.timeline-link{flex:0 0 auto;white-space:nowrap;font-size:13px;padding:5px 0!important}.timeline-interactions>.timeline-link:nth-child(3){margin-left:auto}.timeline-interactions>.timeline-link:last-child:not(:nth-child(2)){color:#94606b}.timeline-interactions>[aria-pressed=true]{color:#bb3560}.timeline-comment{border:1px solid #e5edf1;background:#f6f9fb}.timeline-comment-form{background:#f5f8fa}.timeline-setting{background:#fff;border:1px solid #dce6eb;font-size:13px;padding:10px 16px}.timeline-setting [role=switch]{background:#e7f5f0!important;color:#126b55;border-radius:20px;padding:5px 12px!important}.timeline-setting [aria-checked=false]{background:#f0f2f5!important;color:#596b75}.push-settings{border-width:1px;box-shadow:none;padding:16px 20px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 20px;align-items:center}.push-settings strong{font-size:16px}.push-settings p{font-size:13px}.push-settings .push-status{grid-column:1;margin-bottom:0}.push-settings .actions{grid-column:2;grid-row:1 / span 2;max-width:300px}.push-settings .actions button{font-size:13px;min-height:38px;padding:8px 12px}.membership-options{margin-top:18px;border-top:1px solid #e2eaf0;padding-top:14px}.membership-options summary{font-size:14px;color:#536a79;cursor:pointer}.membership-options p{font-size:13px;max-width:620px}.membership-cancel{color:#9a3546!important}#pending-request-actions[hidden],#cancel-join[hidden],#leave-club[hidden]{display:none!important}
/* Coach hierarchy: club masthead, metrics, navigation and task panels. */
.coach-dashboard .club-bar{padding:28px 30px;background:#fff;border:1px solid #dce6eb;border-radius:18px;box-shadow:0 3px 12px #15374e04}.coach-dashboard .club-bar h1{font-size:30px}.coach-dashboard .club-bar .sub{color:#657b89;font-size:14px}.coach-dashboard .club-bar #signout{font-size:13px;border:1px solid #dce6eb;background:#fff;color:#536b7c;padding:7px 13px;min-height:34px}.coach-metrics{gap:14px;margin-bottom:20px}.coach-metrics>div{border-top:0;position:relative;padding:19px 24px;border-radius:14px;background:#fff}.coach-metrics>div:before{content:"";position:absolute;left:0;top:22px;bottom:22px;width:3px;background:#15949c;border-radius:0 3px 3px 0}.coach-metrics span{font-size:12px;letter-spacing:.015em}.coach-metrics strong{font-size:28px;color:#153e53;margin-top:6px}.coach-dashboard .coach-tabs,.swimmer-tabs{background:#fff;border:1px solid #dce6eb;border-radius:12px;padding:5px;gap:4px;margin-bottom:24px}.coach-dashboard .coach-tabs button,.swimmer-tabs [role=tab]{border:0!important;border-radius:8px;font-size:14px;padding:10px 16px;color:#5b7281}.coach-dashboard .coach-tabs button[aria-pressed=true],.swimmer-tabs [aria-selected=true]{background:#e6f3f5;color:#086e7b}.coach-dashboard .section-heading h2{font-size:23px;letter-spacing:-.025em}.coach-dashboard .section-heading p{font-size:14px;max-width:650px}.coach-dashboard .coach-filters{padding:19px 22px;background:#fff;border-color:#dce6eb;gap:18px}.coach-dashboard .field label{font-size:13px;color:#435f70}.coach-dashboard .field input,.coach-dashboard .field select{min-height:44px;border-color:#d0dee7;background:#fbfdfe;border-radius:9px}.coach-dashboard #roster .list-strip li{border-color:#dce6eb;box-shadow:0 2px 6px #19374a03;transition:border-color .15s}.coach-dashboard #roster .list-strip li:hover{border-color:#85b7c0}.coach-dashboard .ls-main b{font-size:16px}.coach-dashboard .ls-sub{font-size:13px}.coach-dashboard .panel{border-color:#dce6eb;border-radius:16px}.coach-dashboard .account-grid{gap:18px}.coach-dashboard .account-grid summary{font-size:16px}.coach-dashboard .coach-profile-cover{background:#123e52}.coach-dashboard .coach-profile-editor{box-shadow:none}.coach-dashboard #joinpanel{background:#f9fcfd}.coach-dashboard #joinlink{font-size:14px;background:#edf5f7;border:1px dashed #bdd7df}.coach-dashboard .recovery-reminder{font-size:13px;border-radius:10px}.coach-dashboard .message-workspace{border-color:#dce6eb;box-shadow:none}
@media(max-width:900px){.timeline-layout{grid-template-columns:minmax(0,1fr)}.timeline-guide{display:none}.community-heading{padding:23px}.push-settings{display:block}.push-settings .actions{max-width:none;margin-top:12px}.coach-dashboard .club-bar{padding:22px}.coach-dashboard .club-bar h1{font-size:26px}}
@media(max-width:600px){.timeline-post,.timeline-composer{padding:16px}.timeline-interactions{gap:11px}.timeline-interactions>.timeline-link{font-size:12px}.community-heading{padding:20px;border-radius:16px}.community-heading .private-pill{font-size:10px;padding:5px 8px}.coach-metrics{gap:8px}.coach-metrics>div{padding:14px 12px}.coach-metrics span{font-size:11px}.coach-metrics strong{font-size:25px}.coach-dashboard .club-bar{padding:18px}.push-settings .actions button{width:auto}.coach-dashboard .section-heading h2{font-size:21px}}
@media print{.membership-options,.timeline-setting{display:none!important}}
/* Release 38: soft sky-blue surfaces and compact coach conversations. */
body:has(.swimmer-tabs),body.coach-dashboard{background:#f2f8fc;color:#213e55;--accent:#1676b6;--accent-press:#115b90;--accent-tint:#eaf5fd}.community-heading{background:linear-gradient(115deg,#e2f3fd,#f4fbff);border:1px solid #cce4f4;color:#214e70}.community-heading h2{color:#214e70}.community-heading p{color:#4d6e86}.community-heading .dashboard-eyebrow{color:#3678a7}.community-heading:after{border-color:#83bed54d}.community-heading .private-pill{color:#386a8d;background:#ffffffa6;border-color:#bedbeb}.community-kicker,.timeline-guide h3{color:#2e6892}.timeline-link,.timeline-detected-link{color:#246da2}.timeline-setting [role=switch]{background:#e7f3fd!important;color:#246b9e}.timeline-guide,.timeline-post,.timeline-composer{border-color:#d6e6f1}.timeline-avatar{background:#e7f3fc;color:#2a709e}.timeline-comment,.timeline-comment-form{background:#f3f8fc}.timeline-comments[hidden]{display:none!important}.push-settings{background:#ecf7ff;border-color:#bedff4;color:#254f6b}.push-settings .push-status{color:#366b91;border-left-color:#80b7dc}.push-settings [data-push-enable]:not(:disabled){background:#1676b6!important;border-color:#1268a2!important;box-shadow:none}.coach-dashboard .btn-primary,.swimmer-tab-panel .btn-primary{background:#1676b6;border-color:#1676b6}.coach-dashboard .coach-tabs button[aria-pressed=true],.swimmer-tabs [aria-selected=true]{background:#e6f3fd;color:#226fa5}.coach-metrics>div:before{background:#6cadd7}.coach-dashboard .coach-profile-cover{background:linear-gradient(120deg,#e4f3fc,#f4faff);color:#234e6b;border-bottom:1px solid #cee3f1}.coach-profile-cover h2{color:#234e6b}.coach-profile-cover span,.coach-profile-cover p{color:#527993}.coach-dashboard .dashboard-eyebrow{color:#3a7aa8}
#view-coach{max-width:960px;margin-inline:auto}.coach-profile-cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:16px;margin:16px 0 22px}.coach-profile-card{display:grid;grid-template-columns:72px minmax(0,1fr);gap:5px 17px;align-content:start;padding:22px;border-top:3px solid #9fceec;border-radius:15px;box-shadow:none}.coach-profile-card .coach-portrait{grid-column:1;grid-row:1 / span 3;width:72px;height:72px;border-width:2px;box-shadow:0 0 0 1px #d4e5f1;font-size:23px}.coach-profile-card h3{grid-column:2;margin:3px 0 0;font-size:20px;line-height:1.3}.coach-profile-card .coach-club{grid-column:2;margin:0;color:#407ca7;font-size:13px}.coach-profile-card>p:not(.coach-club){grid-column:1 / -1;font-size:14px;line-height:1.6;margin:12px 0 0}.coach-profile-card dl{grid-column:1 / -1;display:grid;grid-template-columns:110px minmax(0,1fr);gap:8px 16px;background:#f4f9fd;padding:15px 17px;margin:12px 0 6px;border-radius:10px}.coach-profile-card dt{font-size:10px;margin:3px 0 0!important;letter-spacing:.06em;color:#607e92}.coach-profile-card dd{font-size:14px;margin:0;line-height:1.5}.coach-profile-card .btn{grid-column:2;justify-self:start;width:auto;min-height:36px;padding:7px 16px;border-radius:8px;font-size:13px;margin:5px 0 0}.coach-profile-editor .coach-profile-cover{padding:23px 26px}.coach-profile-editor .coach-profile-cover h2{font-size:26px;margin:8px 0 4px}.coach-profile-editor .coach-profile-photo-row{gap:18px;padding-bottom:18px;margin-bottom:18px}.coach-profile-editor .coach-portrait{width:92px;height:92px}.coach-profile-editor textarea{min-height:86px}.coach-profile-editor .field{margin-bottom:13px}
#coach-messages{max-width:920px;margin-inline:auto}.message-workspace,.coach-dashboard .message-workspace{padding:18px 20px;border-radius:14px;border-color:#d3e4f0;box-shadow:none}.message-toolbar{flex-direction:row;align-items:flex-end;gap:10px}.message-toolbar .field{max-width:460px;min-width:0;flex:1}.message-toolbar label{font-size:12px;color:#53758c;margin-bottom:5px}.message-toolbar select,.coach-dashboard .message-toolbar select{font-size:14px;min-height:38px;height:40px;padding:7px 10px;background:#fbfdff;border-color:#cbdfea}.message-toolbar button{font-size:12px;min-height:36px;padding:7px 12px;border-radius:8px}.message-thread-heading{margin-top:12px;padding-top:12px}.message-thread-heading h3{font-size:16px}.message-thread-heading span{font-size:10px;background:#edf6fd;color:#487a9e;padding:4px 8px}.message-list{height:auto;min-height:100px;max-height:300px;gap:8px;padding:12px;margin:12px 0;background:#f4f9fd;border:1px solid #e2edf5;border-radius:10px}.message-bubble{max-width:82%;padding:8px 12px;border-color:#d5e6f1}.message-bubble.mine{background:#e4f2ff;border-color:#c4dff3}.message-bubble p{font-size:14px;margin:3px 0 5px;line-height:1.5}.message-bubble small{font-size:10px;color:#648098}.message-bubble strong{font-size:11px;color:#437397}.message-empty{padding:15px;font-size:13px}#message-notice:empty{display:none}.message-workspace #message-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 10px;align-items:center}.message-workspace #message-form>label{grid-column:1 / -1;font-size:12px;color:#53758c;margin:0}.message-workspace #message-text{min-height:40px;height:42px;max-height:130px;padding:9px 12px;font-size:14px;border-color:#c9deed;background:#fff;resize:vertical}.message-compose-bottom{display:contents}.message-compose-bottom small{grid-column:1 / -1;grid-row:3;font-size:10px;margin:0}.message-compose-bottom button{grid-column:2;grid-row:2;font-size:13px;padding:8px 15px;min-height:40px;border-radius:8px}.message-toolbar select:focus,.message-workspace textarea:focus{outline-color:#d4eaf9;border-color:#81b7dd}
@media(max-width:600px){.coach-profile-card{padding:17px;grid-template-columns:58px minmax(0,1fr);gap:5px 12px}.coach-profile-card .coach-portrait{width:58px;height:58px}.coach-profile-card h3{font-size:18px}.coach-profile-card dl{grid-template-columns:1fr;gap:3px;padding:12px}.coach-profile-card dt:not(:first-child){margin-top:8px!important}.coach-profile-card .btn{grid-column:1 / -1}.message-workspace,.coach-dashboard .message-workspace{padding:14px}.message-list{min-height:90px;max-height:260px}.message-toolbar{flex-direction:row}.message-toolbar button{padding:7px 9px}.message-bubble{max-width:92%}.coach-profile-editor .coach-profile-cover{padding:20px}}

/* Private-message notifications remain conspicuous on mobile. */
.private-message-alert:not([hidden]){display:flex!important;align-items:center;justify-content:center;gap:8px;width:100%;box-sizing:border-box;background:#9f1239!important;color:#fff!important;border:2px solid #881337!important;border-radius:12px;padding:12px 16px;font-size:15px;font-weight:750;line-height:1.5;box-shadow:0 3px 10px #9f123925;cursor:pointer;white-space:normal;text-align:center}.private-message-alert:hover{background:#881337!important}.private-message-alert:focus-visible{outline:3px solid #0284c7;outline-offset:3px}.swimmer-tabs .unread-badge,.coach-tabs .unread-badge,.member-person .unread-badge{background:#be123c!important;color:white!important;border:2px solid white;min-width:22px;font-weight:800}.private-message-alert[hidden]{display:none!important}


/* ===== coach-inbox.css ===== */
#coach-messages{max-width:1120px}.member-messenger{display:grid;grid-template-columns:290px minmax(0,1fr);border:1px solid #ccdfed;border-radius:16px;background:white;overflow:hidden}.member-sidebar{padding:18px 14px;background:#f5faff;border-right:1px solid #d9e8f2}.member-sidebar-heading,.member-selection-tools{display:flex;align-items:center;justify-content:space-between;gap:8px}.member-sidebar-heading{margin-bottom:14px}.member-search-label,.member-help{font-size:12px;color:#57758b}.member-sidebar input[type=search]{width:100%;min-width:0;padding:9px 11px;border:1px solid #c9deed;border-radius:8px;font:inherit;font-size:14px;margin:5px 0 8px;background:#fff}.member-selection-tools{font-size:12px}.member-help{line-height:1.45}.member-row{display:flex;align-items:center;gap:8px;padding:6px;border-radius:9px;margin-bottom:3px}.member-row.is-selected{background:#deeffd}.member-row input{width:17px;height:17px;accent-color:#1676b6;flex-shrink:0}.member-person{display:flex;align-items:center;gap:9px;flex:1;min-width:0;border:0;background:transparent;text-align:left;padding:6px 2px;font:inherit;cursor:pointer;color:#25485f}.member-person strong,.member-person small{display:block;overflow-wrap:anywhere}.member-person strong{font-size:14px}.member-person small{font-size:11px;color:#607c91}.member-initial{width:32px;height:32px;border-radius:50%;background:#dcedfa;color:#296d9c;display:grid;place-items:center;flex-shrink:0;font-size:12px;font-weight:700}#member-list{max-height:520px;overflow-y:auto}.member-chat{padding:20px;min-width:0}.member-chat-heading{border-bottom:1px solid #e2ecf4;padding-bottom:12px}.member-chat-heading h3{font-size:18px;margin:0}.member-chat-heading p{font-size:12px;color:#52758e;margin:6px 0 0}#member-status{font-size:13px;color:#356889}#member-status:empty{display:none}#member-thread{height:320px;max-height:45vh;min-height:130px;overflow-y:auto}#member-form>label{font-size:12px;color:#53758c;display:block;margin-bottom:6px}#member-text{width:100%;box-sizing:border-box;min-height:65px;max-height:180px;resize:vertical;padding:11px;border:1px solid #c9deed;border-radius:10px;font:inherit;font-size:14px}.member-compose-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:10px}.member-compose-actions small{font-size:11px;color:#607c91}.member-compose-actions button{font-size:13px;white-space:nowrap}.member-messenger [hidden]{display:none!important}.member-messenger button:focus-visible,.member-messenger input:focus-visible{outline:2px solid #72adde;outline-offset:2px}.member-messenger button:disabled{opacity:.55;cursor:wait}@media(max-width:700px){.member-messenger{grid-template-columns:1fr}.member-sidebar{border-right:0;border-bottom:1px solid #d9e8f2;padding:14px}#member-list{max-height:180px}.member-chat{padding:15px}.member-compose-actions{align-items:flex-start;flex-direction:column}.member-compose-actions button{align-self:flex-end}#member-thread{height:260px}}

#view-coach .member-messenger{margin-top:22px}#view-coach #member-list{max-height:400px}#view-coach .member-chat{min-height:350px}


/* ===== compact-workspace.css ===== */
/* Release 43: compact aquatic workspaces. Loaded after existing layout styles. */
#view-coach{max-width:none}.parent-coach-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start}.parent-coach-info{min-width:0}.parent-coach-info>.member-sidebar{border:1px solid #d9e8f2;border-radius:14px;padding:12px 16px}.parent-coach-info .member-sidebar-heading{margin-bottom:6px}.parent-coach-info .member-selection-tools,.parent-coach-info .member-help{display:none}.parent-coach-info #member-list{max-height:150px;overflow:auto}.parent-coach-info .coach-profile-cards{grid-template-columns:1fr;margin:12px 0 0}.parent-coach-info .coach-profile-card{padding:18px}#view-coach .member-messenger{display:block;margin-top:0}#view-coach .member-chat{padding:18px;min-height:0}#view-coach #member-thread{height:300px;max-height:45vh}.parent-coach-info .member-search-label{font-size:11px}
/* Put totals beside the club identity inside Coach workspace. */
.coach-dashboard .coach-masthead{display:grid;grid-template-columns:minmax(180px,1fr) minmax(300px,1.4fr) auto;gap:20px;align-items:center;padding:18px 22px}.coach-masthead h1{margin:0}.coach-masthead .dashboard-eyebrow{margin:0 0 5px}.coach-masthead .sub{margin:5px 0 0}.coach-masthead .coach-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0}.coach-masthead .coach-metrics>div{padding:8px 12px;border:0;border-left:1px solid #d6e6f1;border-radius:0;background:transparent}.coach-masthead .coach-metrics>div:before{display:none}.coach-masthead .coach-metrics strong{font-size:24px;margin:3px 0 0}.coach-masthead .coach-metrics span{font-size:11px}
/* A slim heading, closed notification drawer and compact composer. */
.community-heading{margin:0 0 10px;padding:12px 16px;border-radius:12px;gap:12px}.community-heading:after{display:none}.community-heading h2{font-size:21px;margin:0 0 3px}.community-heading p{font-size:12px;line-height:1.4;margin:0}.community-heading .private-pill{padding:5px 10px;font-size:11px;white-space:nowrap}.timeline-setting{margin:8px 0;padding:7px 13px}.push-settings{display:block;padding:0;margin:8px 0 14px;border-radius:10px}.push-settings>summary{padding:10px 14px;cursor:pointer;font-size:13px;font-weight:650;color:#255b80}.push-summary-state{float:right;font-size:12px;font-weight:500;color:#496e87}.push-settings>div,.push-settings>.push-status{margin:10px 14px}.push-settings>div>strong{font-size:14px}.push-settings .actions{display:flex;flex-wrap:wrap;max-width:none;margin:10px 14px 14px}.push-settings .actions button{min-height:34px;padding:6px 10px;font-size:12px}.push-settings .push-status{font-size:12px}.timeline-layout{display:block;max-width:850px;margin:0 auto}.timeline-composer{padding:14px 16px;display:grid;grid-template-columns:auto auto 1fr auto;gap:9px 12px;align-items:center}.timeline-composer h3{grid-column:1 / 4;font-size:15px;margin:0}.timeline-posting-info{grid-column:4;grid-row:1;font-size:11px;justify-self:end}.timeline-posting-info summary,.timeline-media-fields summary{cursor:pointer;color:#326f9c}.timeline-posting-info[open]{grid-column:1 / -1;grid-row:auto;justify-self:stretch}.timeline-identity-note{margin:6px 0;font-size:12px}.timeline-composer>label[for=timeline-text]{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.timeline-composer textarea{grid-column:1 / -1;min-height:46px;height:46px;max-height:220px;padding:11px 12px;resize:vertical;font-size:14px}.timeline-composer textarea:focus{min-height:85px}.timeline-composer>.emoji-control{grid-column:1}.timeline-media-fields{grid-column:2 / 4;display:block;margin:0;font-size:12px;min-width:0}.timeline-media-fields details[open]{padding:6px 0}.timeline-media-fields input{max-width:100%;box-sizing:border-box;font-size:12px}.timeline-media-fields small{font-size:10px}.timeline-composer>.actions{grid-column:4;margin:0;gap:6px;display:flex;flex-wrap:wrap;justify-content:flex-end}.timeline-composer>.actions button{min-height:34px;padding:7px 12px;font-size:12px}.timeline-composer>.timeline-preview,.timeline-composer>#timeline-remove-wrap{grid-column:1 / -1}.timeline-preview{max-height:180px;width:auto;max-width:100%;object-fit:contain}.timeline-feed-heading{margin-top:16px}.timeline-posting-info[open]~textarea{grid-row:auto}
/* Swimmer tickets instead of long full-width rows. */
.coach-dashboard #roster .swimmer-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:0}.coach-dashboard #roster .swimmer-card-grid>li{display:grid;grid-template-columns:48px minmax(0,1fr);align-content:start;align-items:start;gap:12px;margin:0;padding:16px;border:1px solid #d6e6f1;border-radius:14px;background:#fff;min-width:0}.swimmer-card-grid .swimmer-avatar{width:48px;height:48px}.swimmer-card-grid .ls-main{min-width:0;overflow-wrap:anywhere}.swimmer-card-grid .ls-sub{display:block;margin-top:5px;font-size:12px;line-height:1.5}.swimmer-card-actions{grid-column:1 / -1;display:flex;flex-wrap:wrap;gap:6px;border-top:1px solid #e7eff5;padding-top:12px}.swimmer-card-actions .btn{padding:6px 9px;min-height:32px;font-size:11px}.swimmer-card-actions [data-del]{margin-left:auto}.swimmer-detail-heading{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px;align-items:center;padding:12px 35px 18px 0;border-bottom:1px solid #dce9f2}.swimmer-detail-heading .swimmer-identity{min-width:0}.swimmer-detail-heading .swimmer-avatar--large{width:76px;height:76px;flex-shrink:0}.swimmer-detail-heading h2{font-size:25px;overflow-wrap:anywhere}.swimmer-detail-heading .sub{font-size:12px;margin:5px 0 0}.swimmer-detail-close{position:absolute;right:0;top:0;border:1px solid #cfe1ee;background:#f2f8fc;color:#285c7e;border-radius:50%;width:32px;height:32px;font:25px/1 system-ui;cursor:pointer}.swimmer-detail-close:focus-visible{outline:2px solid #1676b6;outline-offset:2px}.swimmer-detail-meta dl{display:grid;grid-template-columns:55px minmax(0,1fr);gap:5px 10px;margin:0 0 12px;font-size:12px;line-height:1.5}.swimmer-detail-meta dt{color:#648095}.swimmer-detail-meta dd{margin:0;overflow-wrap:anywhere}.swimmer-detail-meta .btn{min-height:34px;padding:7px 12px;font-size:12px}#race-save-status:empty{display:none}
@media(max-width:1000px){.coach-dashboard #roster .swimmer-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.coach-dashboard .coach-masthead{grid-template-columns:1fr auto}.coach-masthead #work{grid-column:1 / -1;grid-row:2}.coach-masthead #signout{grid-column:2;grid-row:1}}
@media(max-width:760px){.parent-coach-layout{grid-template-columns:1fr}.swimmer-detail-heading{grid-template-columns:1fr;gap:14px}.swimmer-detail-meta{padding-left:0}.coach-dashboard .coach-masthead{padding:16px}.community-heading{padding:10px 12px}.community-heading h2{font-size:18px}.timeline-composer{padding:12px;gap:8px}.timeline-layout{width:100%}#view-coach #member-thread{height:250px}.parent-coach-info .coach-profile-card{padding:14px}}
@media(max-width:480px){.coach-dashboard #roster .swimmer-card-grid{grid-template-columns:1fr}.coach-masthead .coach-metrics{gap:4px}.coach-masthead .coach-metrics>div{padding:6px 8px}.coach-masthead .coach-metrics strong{font-size:22px}.timeline-composer>.actions button{padding:6px 9px}.timeline-posting-info{font-size:10px}.private-pill{display:none}.push-summary-state{font-size:11px}.swimmer-detail-heading h2{font-size:22px}}
.coach-dashboard #roster .swimmer-card-grid>li:has(input){grid-template-columns:1fr}.swimmer-card-grid>li:has(input) .field{min-width:0}

/* Release 45: inline icon composer and profile photo editor. */
.member-messenger #member-form>label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.chat-compose-field{display:flex;align-items:flex-end;gap:7px;padding:5px 6px 5px 12px;border:1px solid #bcd8eb;border-radius:25px;background:#fff}.chat-compose-field:focus-within{border-color:#1676b6;box-shadow:0 0 0 2px #dceffc}.member-messenger #member-text{flex:1;min-width:0;width:auto;height:38px;min-height:38px;max-height:140px;resize:none;border:0;background:transparent;box-shadow:none;outline:none;padding:9px 0;font-size:14px;line-height:20px}.member-messenger #member-send{flex:0 0 38px;width:38px;height:38px;min-height:38px;padding:0;display:grid;place-items:center;border-radius:50%;font:22px/1 system-ui;background:#1676b6;color:white;border:0}.member-messenger #member-send:hover:not(:disabled){background:#115b90}.member-messenger #member-send:focus-visible{outline:3px solid #6bb5e8;outline-offset:2px}.member-compose-actions{margin:6px 10px 0}.member-compose-actions small{font-size:10px}.parent-coach-info>.member-sidebar[hidden]{display:none!important}.parent-coach-info>.member-sidebar[hidden]+.coach-profile-cards{margin-top:0}
.coach-profile-editor .coach-profile-identity{display:flex;align-items:center;gap:22px;padding:22px 26px}.coach-avatar-editor{position:relative;flex:0 0 auto}.coach-profile-identity .coach-portrait{width:88px;height:88px;margin:0}.coach-photo-edit{position:absolute;bottom:-3px;right:-3px;display:grid;place-items:center;width:33px;height:33px;min-height:33px;padding:0;border:3px solid #eaf6fe;border-radius:50%;background:#1676b6;color:#fff;font:21px/1 system-ui;cursor:pointer}.coach-photo-edit:focus-visible{outline:3px solid #1676b6;outline-offset:2px}.coach-profile-identity>div:last-child{min-width:0}.coach-profile-identity h2{overflow-wrap:anywhere}.coach-photo-dialog .coach-portrait{width:120px;height:120px;margin:15px auto 20px}.coach-photo-dialog #coach-photo-remove{color:#a52c48;border-color:#dba6b2}.coach-photo-dialog .actions{flex-wrap:wrap}.coach-photo-dialog [hidden]{display:none!important}
@media(max-width:520px){.coach-profile-editor .coach-profile-identity{gap:15px;padding:18px 14px}.coach-profile-identity .coach-portrait{width:68px;height:68px}.coach-profile-editor .coach-profile-identity h2{font-size:21px}.coach-profile-identity p{font-size:12px}}

/* Release 46: useful club sidebar alongside the feed. */
.timeline-layout{display:grid;grid-template-columns:270px minmax(0,1fr);max-width:none;width:100%;gap:24px;align-items:start}.timeline-sidebar{min-width:0;position:sticky;top:90px}.timeline-main{min-width:0}.timeline-sidebar .community-heading{display:block;padding:18px;margin:0 0 12px;border-radius:14px}.timeline-sidebar .community-heading h2{font-size:22px;margin-bottom:7px}.timeline-sidebar .community-heading p{font-size:13px;line-height:1.5}.timeline-sidebar .private-pill{display:inline-block;margin-top:12px;font-size:10px}.timeline-sidebar .timeline-setting{display:flex;justify-content:space-between;gap:8px;padding:10px 12px;font-size:12px;border-radius:10px}.timeline-sidebar .push-settings{margin:10px 0 14px}.timeline-sidebar .push-settings>summary{padding:11px 12px;font-size:12px}.timeline-sidebar .push-summary-state{font-size:10px}.timeline-sidebar .push-settings p{font-size:12px;overflow-wrap:anywhere}.timeline-sidebar .push-settings .actions{gap:7px}.timeline-sidebar .push-settings .actions button{font-size:11px;white-space:normal}.timeline-share-guide{background:#fff;border:1px solid #d6e6f1;border-radius:14px;padding:20px 18px}.timeline-share-guide .guide-eyebrow{color:#397da9;font-size:10px;font-weight:700;letter-spacing:.12em;margin:0 0 8px}.timeline-share-guide h3{font-size:18px;margin:0 0 8px;color:#234f70}.timeline-share-guide p{font-size:13px;line-height:1.55;color:#56738a;margin:0 0 14px}.timeline-share-guide ul{list-style:none;padding:0;margin:0}.timeline-share-guide li{padding:11px 0;border-top:1px solid #e7eff5}.timeline-share-guide li strong{display:block;font-size:13px;color:#295c7f;margin-bottom:3px}.timeline-share-guide li span{display:block;font-size:12px;line-height:1.5;color:#627e92}.timeline-share-guide .guide-privacy{font-size:11px;padding-top:13px;margin:7px 0 0;border-top:1px solid #e7eff5}.timeline-tools{display:none}
@media(max-width:800px){.timeline-layout{grid-template-columns:minmax(0,1fr);gap:14px}.timeline-sidebar{position:static;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 12px}.timeline-sidebar .community-heading{grid-column:1 / -1;padding:12px 14px;margin:0}.timeline-sidebar .private-pill{margin-top:7px}.timeline-sidebar .timeline-setting,.timeline-sidebar .push-settings{margin:0;align-self:start}.timeline-share-guide{grid-column:1 / -1;padding:12px 14px}.timeline-share-guide ul{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.timeline-share-guide .guide-eyebrow{display:none}.timeline-share-guide h3{font-size:15px}.timeline-share-guide>p:not(.guide-privacy){display:none}.timeline-share-guide li{padding:6px 0;border:0}.timeline-share-guide li span{font-size:11px}.timeline-share-guide .guide-privacy{font-size:10px;padding-top:8px;margin-top:5px}}
@media(max-width:480px){.timeline-sidebar{grid-template-columns:1fr}.timeline-sidebar .community-heading,.timeline-share-guide{grid-column:1}.timeline-share-guide li strong{font-size:12px}.timeline-sidebar .community-heading h2{font-size:18px}}


/* ===== auth.css ===== */
/* Account forms: isolated from the dashboard and benchmark layouts. */
.auth-page { background: #edf8fa; }
.auth-main { padding:48px 24px 56px; background:radial-gradient(ellipse at 15% 15%,#d5f2f4,transparent 55%); }
.auth-shell { display:grid;grid-template-columns:1fr 1fr;max-width:1060px;margin:auto;background:#fff;border:1px solid #d2e6eb;border-radius:24px;overflow:hidden;box-shadow:0 20px 65px #0a425312; }
.auth-story { position:relative;display:flex;flex-direction:column;padding:42px 40px 30px;background:linear-gradient(145deg,#073b54,#07637b);color:white;overflow:hidden; }
.auth-story::after { content:'';position:absolute;bottom:-4px;left:0;right:0;height:100px;background:url('../waves.svg') bottom/160% 100% no-repeat;opacity:.08;pointer-events:none; }
.auth-eyebrow { font-size:11px;font-weight:700;letter-spacing:.14em;color:#06778b;line-height:1.6;margin:0 0 14px; }
.auth-story .auth-eyebrow { color:#a0e3e9;display:flex;align-items:center;gap:9px; }
.auth-eyebrow span { width:7px;height:7px;border-radius:50%;background:#80e2d3; }
.auth-story h2 { color:white;font-size:clamp(27px,3vw,36px);line-height:1.25;letter-spacing:-.03em;margin:10px 0 16px; }
.auth-story h2 em { color:#89e6df;font-style:normal; }
.auth-story-copy { color:#d0e9ee;font-size:16px;line-height:1.7;max-width:32ch;margin:0; }
.auth-illustration { display:block;width:100%;max-width:390px;height:auto;align-self:center;margin:6px 0; }
.auth-story-bottom { position:relative;z-index:1;display:flex;gap:14px;margin-top:auto;padding-top:22px;border-top:1px solid #ffffff25; }
.auth-story-bottom strong { display:block;font-size:15px;font-weight:600; }
.auth-story-bottom p { font-size:13px;line-height:1.65;color:#c2e2e9;margin:5px 0 0;max-width:32ch; }
.auth-watermark { font-size:36px;color:#85e2de;line-height:1; }
.auth-form-side { padding:36px 44px 34px;min-width:0; }
.auth-back { display:inline-flex;align-items:center;gap:8px;font-size:13px;color:#56717f;text-decoration:none;margin-bottom:32px; }
.auth-back:hover { color:#006f83; }
.auth-form-heading h1 { color:#123b50;font-size:34px;line-height:1.15;letter-spacing:-.04em;margin:0 0 10px;text-wrap:initial; }
.auth-form-heading>p:last-child { color:#607580;font-size:15px;line-height:1.6;margin:0 0 26px; }
.auth-form-heading .auth-eyebrow { margin-bottom:10px; }
.auth-form .field { margin:0 0 19px; }
.auth-form label { display:block;font-size:14px;font-weight:600;color:#224456;margin-bottom:8px; }
.auth-form input,.auth-form select { display:block;width:100%;min-height:50px;padding:12px 14px;background:#fff;border:1px solid #b9cfd7;border-radius:10px;color:#173d52;font:inherit;font-size:15px;transition:border-color .15s,box-shadow .15s; }
.auth-form input::placeholder { color:#728894;opacity:1; }
.auth-form input:focus,.auth-form select:focus { outline:2px solid #04788c;outline-offset:2px;border-color:#04788c;box-shadow:0 0 0 4px #dff4f6; }
.auth-password { position:relative; }
.auth-password input { padding-right:74px; }
.auth-reveal { position:absolute;right:5px;top:5px;bottom:5px;min-width:58px;padding:0 9px;background:transparent;border:0;border-radius:7px;font:inherit;font-size:13px;font-weight:600;color:#006d81;cursor:pointer; }
.auth-reveal:hover { background:#e9f6f8; }
.auth-help { font-size:13px;color:#526e7c;margin-top:-3px; }
.auth-help summary { cursor:pointer;color:#006e82;width:fit-content; }
.auth-help p { background:#f0f8fa;padding:12px;border-radius:8px;margin:10px 0 0; }
.auth-message { font-size:14px;line-height:1.5;color:#9c2e28;margin:0; }
.auth-message:not(:empty) { margin:15px 0;padding:11px 13px;background:#fff2ef;border:1px solid #efc7bf;border-radius:9px; }
.auth-form .auth-submit { display:flex;align-items:center;justify-content:center;gap:14px;width:100%;min-height:51px;margin-top:23px;background:#04788b;border:1px solid #04788b;border-radius:10px;color:white;font-size:15px;font-weight:700;box-shadow:0 4px 12px #00788b18; }
.auth-form .auth-submit:hover { background:#035e73; }
.auth-form .auth-submit:disabled { opacity:.65;cursor:wait; }
.auth-privacy { display:flex;align-items:center;justify-content:center;gap:7px;font-size:12px;color:#627c88;margin:16px 0 0; }
.auth-privacy svg { flex-shrink:0; }
.auth-divider { height:1px;background:#e4edf0;margin:26px 0 22px; }
.auth-register { font-size:14px;line-height:1.8;color:#56717f;margin:0; }
.auth-register a { color:#006d82;font-weight:600;text-decoration:none; }
.auth-coach { font-size:13px;color:#607986;margin:9px 0 0; }
.auth-coach a { color:#406777; }
.auth-page .site-foot { background:transparent;border-top:1px solid #d8e9ed; }
.auth-page .site-foot .wrap { text-align:center;font-size:13px; }
.auth-page .site-foot p { margin-inline:auto !important; }
.auth-fieldset { border:0;padding:0;margin:0 0 17px;min-width:0; }
.auth-fieldset legend { width:100%;padding:0 0 10px;margin:0 0 16px;border-bottom:1px solid #e3edf0;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#496b7a; }
.auth-field-row { display:grid;grid-template-columns:1fr 1fr;gap:15px; }
.auth-form small { display:block;font-size:12px;line-height:1.5;color:#607984;margin-top:7px; }
.auth-optional { font-weight:400;color:#657d88; }
.auth-signup-note { font-size:13px;color:#607984;line-height:1.6;margin:0; }
.auth-shell-signup .auth-story { justify-content:flex-start; }
.auth-shell-signup .auth-illustration { margin:36px 0; }
@media(max-width:800px) {
 .auth-main { padding:28px 18px 36px; }
 .auth-story { padding:32px 26px; }
 .auth-form-side { padding:30px 26px; }
 .auth-story h2 { font-size:28px; }
 .auth-form-heading h1 { font-size:29px; }
 .auth-privacy { font-size:11px; }
}
@media(max-width:620px) {
 .auth-main { padding:20px 14px 28px; }
 .auth-shell { grid-template-columns:1fr;border-radius:18px;max-width:460px; }
 .auth-story { padding:24px; }
 .auth-story h2 { font-size:25px;margin:3px 0 0; }
 .auth-story h2 br { display:none; }
 .auth-story h2 em::before { content:' '; }
 .auth-story-copy,.auth-illustration,.auth-story-bottom { display:none; }
 .auth-story .auth-eyebrow { font-size:9px;margin-bottom:10px; }
 .auth-form-side { padding:25px 24px 30px; }
 .auth-back { margin-bottom:24px; }
 .auth-form input,.auth-form select { font-size:16px; }
 .auth-form-heading h1 { font-size:30px; }
 .auth-privacy { font-size:12px;justify-content:flex-start; }
 .auth-shell-signup .auth-story h2 { font-size:22px; }
}
@media(prefers-reduced-motion:reduce) { .auth-form input,.auth-form select { transition:none; } }


/* ===== coach-dashboard.css ===== */
.coach-dashboard{background:#f2f6fa;color:#18334a}.coach-dashboard .site-head{background:#fff;border-bottom:1px solid #dce5ed}.coach-dashboard main.band{padding:32px 0 64px}.coach-dashboard main>.wrap{max-width:1180px}.coach-dashboard .club-bar{margin-bottom:24px;align-items:center}.dashboard-eyebrow{color:#167974;font-size:.73rem;letter-spacing:.13em;font-weight:700;margin:0 0 8px}.club-bar h1{font-size:clamp(1.75rem,4vw,2.5rem);margin:0;letter-spacing:-.03em}.club-bar .sub{margin:6px 0 0}.coach-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:24px}.coach-metrics>div{background:#fff;border:1px solid #dce5ed;border-radius:14px;padding:20px 24px;border-top:3px solid #219b9c}.coach-metrics span{display:block;color:#536b7e;font-size:.9rem}.coach-metrics strong{font:700 2rem Archivo,sans-serif;display:block;margin-top:8px}.coach-tabs{display:flex;gap:6px;border-bottom:1px solid #cedce6;margin:0 0 28px;overflow:auto}.coach-tabs button{font-family:inherit;font-size:1rem;font-weight:600;white-space:nowrap;padding:14px 22px;background:transparent;border:0;border-bottom:3px solid transparent;color:#526779;cursor:pointer}.coach-tabs button[aria-pressed=true]{color:#086b70;border-bottom-color:#0b858c}.coach-tabs button:focus-visible{outline:3px solid #69c9ce;outline-offset:-3px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}.section-heading h2{margin:0;font-size:1.5rem}.section-heading p{color:#526779;margin:6px 0 0}.coach-filters{display:grid;grid-template-columns:1.4fr 1fr;gap:20px;padding:22px;background:#fff;border:1px solid #dce5ed;border-radius:14px;margin-bottom:16px}.coach-filters .field{max-width:none!important;margin:0!important}.coach-dashboard .field input,.coach-dashboard .field select{width:100%;min-height:48px;border:1px solid #bdcdd8;border-radius:8px;background:#fff;color:#18334a;font:inherit;font-size:16px;padding:11px 13px;box-sizing:border-box}.coach-dashboard .field label{display:block;font-weight:600;margin-bottom:7px}.coach-dashboard .field small{display:block;color:#607486;font-size:.8rem;margin-top:6px}.coach-dashboard .field input:focus,.coach-dashboard .field select:focus{outline:3px solid #c0ebed;border-color:#147f86}.coach-dashboard .panel{background:#fff;border:1px solid #dce5ed;border-radius:14px;padding:24px;box-shadow:none}.coach-dashboard #roster .list-strip{display:grid;grid-template-columns:1fr;gap:10px;background:none;border:0}.coach-dashboard #roster .list-strip li{background:#fff;border:1px solid #dce5ed;border-radius:12px;padding:18px 22px;gap:12px;flex-wrap:wrap}.coach-dashboard #roster .ls-main{min-width:210px;flex:1}.coach-dashboard .ls-main b{font-size:1.1rem}.coach-dashboard .ls-sub{color:#587083;line-height:1.6}.coach-dashboard .btn{border-radius:8px;min-height:42px}.coach-dashboard .btn-primary{background:#087d85;border-color:#087d85}.coach-dashboard .btn-danger{background:#fff;color:#a7343a;border-color:#e7c5c6}.coach-dashboard .account-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}.coach-dashboard .account-grid .panel{margin:0}.coach-dashboard .account-grid form{margin-top:16px}.coach-dashboard #joinlink{overflow-wrap:anywhere;background:#f1f7fa;padding:14px;border-radius:8px}.coach-dashboard #request-badge:not(:empty){background:#d5efec;border-radius:20px;padding:2px 7px;font-size:.8rem;margin-left:5px}.coach-dashboard [hidden]{display:none!important}.coach-dashboard #detail:empty{display:none}.coach-dashboard #detail{margin-top:24px}.coach-dashboard #roster-error:empty{display:none}.coach-dashboard .empty{background:#fff;border:1px dashed #b7cbd7;padding:30px;border-radius:12px;color:#587083}.coach-dashboard .site-foot{background:#fff;border-top:1px solid #dce5ed}
@media(max-width:680px){.coach-metrics{gap:8px}.coach-metrics>div{padding:14px 12px}.coach-metrics strong{font-size:1.6rem}.coach-metrics span{font-size:.76rem}.coach-filters,.coach-dashboard .account-grid{grid-template-columns:1fr}.section-heading{align-items:flex-start;flex-direction:column}.coach-tabs button{padding:12px 15px}.coach-dashboard #roster .list-strip li{padding:16px}.coach-dashboard .panel{padding:18px}.coach-dashboard .club-bar{gap:12px}.coach-dashboard main.band{padding-top:22px}}


/* ===== app-ui.css ===== */
/* ==========================================================================
   JS chalne se PEHLE ka haal.

   Ye teeno tab (race / measurements / training) asal mein popup hain, par
   unke form page ke andar padde hain aur JS unhe <dialog> mein daalta hai.
   Jab tak JS nahi chalti, wo content ki tarah dikhte hain aur page lamba ho
   jaata hai - isi se footer upar aa kar beech mein dikhta tha, aur JS chalte
   hi gayab ho kar jhatka deta tha.

   Tabbar bhi JS banata hai; uski jagah pehle se ghira rakhi hai taaki wo
   aate hi neeche ka content na khiskaye.

   CSS <head> se aati hai, yaani pehle paint par ye niyam already lage hote
   hain - koi jhatka nahi. JS teeno ko <dialog> mein le jaata hai, phir
   neeche wale normal rule unhe sambhaalte hain. */
#view-race, #view-measurements, #view-training { display: none; }
body.swimmer-page #view-race,
body.swimmer-page #view-measurements,
body.swimmer-page #view-training { display: none; }
dialog#swim-race-dialog, dialog#swim-measurements-dialog, dialog#swim-training-dialog { display: none; }
dialog#swim-race-dialog[open], dialog#swim-measurements-dialog[open], dialog#swim-training-dialog[open] { display: block; }

/* app-ui.css — wo saara CSS jo pehle JS se inject hota tha.

   Injected CSS pehle paint ke BAAD aati hai. Iska matlab har refresh par
   page ek baar purane layout mein banta tha aur phir naye mein kood jaata
   tha - dashboard ka jhatka aur timeline ka "aadha phir pura" isi wajah se
   tha.

   Stylesheet <head> mein hone se browser pehla paint hi sahi naap ke saath
   karta hai. Koi kood nahi. */


/* ===== swimmer-tabs ===== */
.swim-dialog:not([open]){display:none!important}
.swim-dialog[open]{display:block;position:fixed;inset:0;margin:auto;width:min(520px,calc(100vw - 24px));max-height:90dvh;overflow:auto;box-sizing:border-box;border:1px solid #bcd7e9;border-radius:18px;padding:20px;background:#f7fbff;color:#163b55;box-shadow:0 20px 80px #163b5540;z-index:10000}
.swim-dialog::backdrop{background:#163b5580}
.swim-dialog .panel,.swim-dialog .timing-editor{border:0;box-shadow:none;padding:0;margin:0;background:transparent}
.swim-dialog .swim-close{float:right;min-height:36px;padding:5px 12px;margin:0 0 10px 10px;border:1px solid #bcd7e9;background:#fff;color:#164e73;border-radius:8px;cursor:pointer}
.swim-dialog h3{margin-top:4px}
.swim-dialog .field{margin-bottom:10px}
.swim-dialog input,.swim-dialog select{min-width:0;width:100%;box-sizing:border-box}
.swim-dialog .panel-note{font-size:12px}
.swim-dialog .actions{margin-top:10px}
@media(max-width:420px){.swim-dialog{padding:15px}.swim-dialog .row-2{grid-template-columns:1fr 1fr}}

.quick-card{border:1px solid #dbe7ee;border-radius:14px;background:#fff;padding:16px 16px 14px;margin:0 0 16px}
.quick-card__title{margin:0 0 12px;font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#5d7484}
.quick-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(185px,1fr));gap:10px}
.quick{display:flex;align-items:center;gap:12px;width:100%;padding:12px 14px;border:1px solid #d5e4ec;border-radius:12px;background:#f8fbfd;font:inherit;text-align:left;cursor:pointer;transition:border-color .15s,background .15s}
.quick:hover{border-color:#067b90;background:#fff}
.quick:focus-visible{outline:3px solid #f0a500;outline-offset:2px}
.quick__icon{flex:0 0 auto;display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#e4f1f6;color:#0b6072}
.quick__icon svg{width:20px;height:20px}
.quick__text{display:flex;flex-direction:column;min-width:0}
.quick__title{font-weight:700;font-size:14px;color:#12303f;line-height:1.25}
.quick__sub{font-size:12px;color:#5d7484;line-height:1.3}
@media(prefers-reduced-motion:reduce){.quick{transition:none}}

/* Club timeline, phone par.

   Chaudi screen par sidebar baayein hai aur post box daayein - theek hai.
   Phone par sidebar poori chaudai le leta hai, isliye "Club timeline",
   status aur "What to share" - teeno post box se pehle aa jaate the, aur
   likhne ki jagah teen screen neeche chali jaati thi.

   Aadmi yahan padhne nahi, likhne aur dekhne aata hai. To phone par post
   box aur feed sabse upar, samjhane wali cheezein neeche. */
@media(max-width:900px){
  .timeline-layout{display:flex;flex-direction:column;gap:14px}
  .timeline-main{order:1}
  .timeline-sidebar{order:2}
  .timeline-sidebar .community-heading{margin-bottom:10px}
}

/* "What to share" ek lambi samjhaane wali cheez hai - pehli baar kaam ki,
   uske baad har roz raaste mein. Phone par ise band rakha hai. */
.share-guide-fold{border:1px solid #dbe7ee;border-radius:12px;background:#fff;padding:0}
.share-guide-fold>summary{cursor:pointer;padding:12px 14px;font-weight:700;font-size:14px;color:#12303f;list-style:none}
.share-guide-fold>summary::-webkit-details-marker{display:none}
.share-guide-fold>summary::after{content:"＋";float:right;color:#5d7484;font-weight:400}
.share-guide-fold[open]>summary::after{content:"−"}
.share-guide-fold .timeline-share-guide{border:0;padding:0 14px 14px;margin:0;background:transparent}
.share-guide-fold .timeline-share-guide>h3{display:none}

/* Post box par label aur ek line ka matlab. Pehle sirf ek lamba placeholder
   tha - phone par wo kat jaata tha ("...website lin"), aur placeholder
   likhna shuru karte hi gayab ho jaata hai, isliye jo samajh nahi aaya wo
   dobara dikhta bhi nahi. Label aur hint hamesha wahin rehte hain. */
.timeline-composer label[for="timeline-text"]{display:block;font-weight:700;font-size:14px;color:#12303f;margin-bottom:6px}
.timeline-composer #timeline-text{min-height:66px;line-height:1.45}

/* Account aur Sign out: phone par hamburger ke andar, bade screen par gear
   ke neeche. Dono jagah wahi do cheezein. */
.account-host{position:relative;display:inline-flex}
.account-gear{display:grid;place-items:center;width:38px;height:38px;border:1px solid #c5d5de;border-radius:10px;background:#fff;color:#315c70;cursor:pointer}
.account-gear:hover{background:#eef5f8;color:#0b6072}
.account-gear[aria-expanded="true"]{background:#e4f1f6;color:#0b6072}
.account-gear:focus-visible{outline:3px solid #f0a500;outline-offset:2px}
.account-pop{position:absolute;right:0;top:calc(100% + 8px);min-width:180px;padding:6px;border:1px solid #d5e4ec;border-radius:12px;background:#fff;box-shadow:0 14px 40px rgba(13,39,64,.16);z-index:9000}
.account-pop[hidden]{display:none}
.account-pop .account-item{display:block;width:100%;padding:9px 12px;border:0;border-radius:8px;background:transparent;color:#12303f;font:inherit;font-size:14px;font-weight:600;text-align:left;text-decoration:none;cursor:pointer}
.account-pop .account-item:hover{background:#eef5f8}
.account-pop .account-signout{color:#a5352b}
.site-nav .account-item{padding:8px 12px;border:0;background:transparent;font:inherit;font-weight:600;color:#315c70;text-align:left;cursor:pointer}
.site-nav .account-signout{color:#a5352b}


/* ===== tabbar ===== */
@media (max-width: 1000px) {
  /* Patti JS se banti hai, yaani pehle paint ke baad. Bina jagah bandhe
     wo aate hi neeche ka sab kuch dhakel deti thi - wahi jhatka dikhta tha.
     Ab uski jagah pehle se ghiri hui hai. */
  .menu-disclosure:has(.swimmer-tabs),
  .menu-disclosure:has(.coach-tabs){min-height:58px}

  /* Ye patti header ke neeche chipki rehti hai, scroll karne par bhi. */
  .tabbar {
    position: sticky; top: 0; z-index: 900;
    min-height: 58px; box-sizing: border-box;
    display: flex; gap: 2px;
    margin: 0 0 14px; padding: 4px;
    background: #fff;
    border-bottom: 1px solid #dce6ec;
    box-shadow: 0 2px 10px rgba(13,39,64,.05);
    overflow-x: auto; scrollbar-width: none;
  }
  .tabbar::-webkit-scrollbar { display: none; }

  .tabbar button {
    flex: 1 0 auto; min-width: 62px;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 7px 8px 6px;
    border: 0; border-radius: 10px; background: transparent;
    color: #5d7484; font: inherit; font-size: 10.5px; font-weight: 600;
    line-height: 1.15; text-align: center; cursor: pointer;
    position: relative;
  }
  .tabbar button svg { width: 21px; height: 21px; }
  .tabbar button .tabbar-label {
    max-width: 8ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .tabbar button[data-on="yes"] { color: #067b90; background: #e8f4f8; }

  /* badge (jaise naye membership requests) nishan ke kone par */
  .tabbar button .unread-badge,
  .tabbar button #request-badge {
    position: absolute; top: 3px; right: 50%; transform: translateX(20px);
    min-width: 16px; padding: 0 4px; border-radius: 9px;
    background: #c0392b; color: #fff; font-size: 10px; line-height: 16px;
  }

  /* purana "Sections" hamburger ab zaroorat nahi */
  .menu-disclosure > .menu-toggle { display: none !important; }
  .menu-disclosure > .swimmer-tabs,
  .menu-disclosure > .coach-tabs { display: none !important; }
}

@media (min-width: 1001px) {
  .tabbar { display: none; }   /* bade screen par shabd hi theek hain */
}

/* ---------- join link panel ----------
   Pehle isko beech mein kar ke chhota kar diya tha. Screen par wo ulta
   ganda laga: baaki panel poori chaudai ke, aur ye ek patla dabba beech
   mein tairta hua, neeche khaali jagah ke saath.

   Ek panel apne aas-paas ke panelon jaisa hona chahiye. To ab ye bhi poori
   chaudai ka hai, heading aur note baayein se - baaki page ki tarah - aur
   link ke saath uske dono button ek hi line mein. Nazar link par padti hai
   aur haath turant button par pahunchta hai, beech mein khaali jagah taye
   kiye bina. */
.joinpanel__row{
  display:flex;flex-wrap:wrap;align-items:center;gap:10px;
  margin-top:14px
}
.joinpanel__link{
  flex:1 1 280px;min-width:0;margin:0;
  padding:11px 14px;
  border:1px solid #d5e4ec;border-radius:10px;background:#f4f9fb;
  font:600 14px/1.45 ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  color:#12303f;overflow-wrap:anywhere
}
.joinpanel__actions{display:flex;flex-wrap:wrap;gap:8px;flex:0 0 auto}
.joinpanel__actions .btn{white-space:nowrap}

@media (max-width:640px){
  .joinpanel__row{flex-direction:column;align-items:stretch}
  .joinpanel__actions .btn{flex:1 1 100%}
}


/* ===== navigation ===== */
.brand{display:inline-flex;align-items:center;gap:9px}
.brand-logo{display:block;width:34px;height:28px;object-fit:contain;flex:0 0 auto}
@media(max-width:520px){.brand-logo{width:30px;height:25px}}
.account-host{position:relative;display:inline-flex}
.account-gear{display:grid;place-items:center;width:38px;height:38px;border:1px solid #c5d5de;border-radius:10px;background:#fff;color:#315c70;cursor:pointer}
.account-gear:hover{background:#eef5f8;color:#0b6072}
.account-gear[aria-expanded="true"]{background:#e4f1f6;color:#0b6072}
.account-gear:focus-visible{outline:3px solid #f0a500;outline-offset:2px}
.account-pop{position:absolute;right:0;top:calc(100% + 8px);min-width:180px;padding:6px;border:1px solid #d5e4ec;border-radius:12px;background:#fff;box-shadow:0 14px 40px rgba(13,39,64,.16);z-index:9000}
.account-pop[hidden]{display:none}
.account-pop .account-item{display:block;width:100%;padding:9px 12px;border:0;border-radius:8px;background:transparent;color:#12303f;font:inherit;font-size:14px;font-weight:600;text-align:left;text-decoration:none;cursor:pointer}
.account-pop .account-item:hover{background:#eef5f8}
.account-pop .account-signout{color:#a5352b}
.site-nav .account-item{
  display:flex;align-items:center;gap:8px;
  width:100%;padding:10px 12px;margin-top:2px;
  border:0;border-radius:9px;background:transparent;
  font:inherit;font-size:14px;font-weight:600;color:#315c70;
  text-align:left;text-decoration:none;cursor:pointer
}
.site-nav .account-item:hover{background:#eef5f8}
.site-nav .account-item::before{
  content:"";flex:0 0 auto;width:18px;height:18px;
  background:currentColor;opacity:.75;
  -webkit-mask:var(--ico) center/contain no-repeat;mask:var(--ico) center/contain no-repeat
}
.site-nav .account-item:first-of-type{margin-top:8px;border-top:1px solid #e1eaf0;padding-top:12px;border-radius:0}
.site-nav .account-signout{color:#a5352b}


/* ===== name-display ===== */
#athname,#cn,#name,#coach-profile-display-name,#coach-profile-name,.coach-club,#coach-profile-display-club,input[name="child_name"],input[data-f="child_name"],.swimmer-identity h2,.coach-profile-card h3,.coach-profile-card h2,.timeline-author strong,.timeline-comment>strong,.member-person strong,#member-title,#roster b,#requests b,#clubname,#coachname,[data-person-name],input[name="full_name"],input[name="parent_name"],input[data-f="full_name"],#an,#profile-name,#profile-parent{ text-transform:capitalize; }.timeline-avatar,.member-initial{text-transform:uppercase}


/* ===== race-dialog ===== */
.race-dialog:not([open]){display:none!important}.race-dialog[open]{display:block;position:fixed;inset:0;margin:auto;width:min(520px,calc(100vw - 24px));max-height:90dvh;overflow:auto;box-sizing:border-box;border:1px solid #bcd7e9;border-radius:18px;padding:20px;background:#f7fbff;color:#163b55;box-shadow:0 20px 80px #163b5540;z-index:10000}.race-dialog::backdrop{background:#163b5580}.race-dialog .panel,.race-dialog .timing-editor{border:0;box-shadow:none;padding:0;margin:0;background:transparent}.race-dialog .race-close{float:right;min-height:36px;padding:5px 12px;margin:0 0 10px 10px;border:1px solid #bcd7e9;background:white;color:#164e73;border-radius:8px;cursor:pointer}.race-dialog h3{margin-top:4px}.race-dialog .field{margin-bottom:10px}.race-dialog .row{gap:12px}.race-dialog input,.race-dialog select{min-width:0;width:100%;box-sizing:border-box}.race-dialog .panel-note{font-size:12px}.race-dialog .actions{margin-top:10px}@media(max-width:420px){.race-dialog{padding:15px}.race-dialog .row-2{grid-template-columns:1fr 1fr}}


/* ===== photo-viewer ===== */
.swimmer-photo-dialog:not([open]){display:none!important}
.swimmer-photo-dialog[open]{
  display:grid!important;place-items:center;
  position:fixed;inset:0;margin:0;width:100%;max-width:none;height:100%;max-height:none;
  box-sizing:border-box;padding:0;border:0;border-radius:0;background:transparent;
  overflow:hidden;z-index:2147483647;
  animation:photoIn .16s ease-out
}
.swimmer-photo-dialog::backdrop{background:rgba(6,18,28,.94)}
@keyframes photoIn{from{opacity:0}to{opacity:1}}

.swimmer-photo-dialog img{
  display:block;max-width:100%;max-height:100%;
  width:auto;height:auto;object-fit:contain;cursor:zoom-out;
  padding:max(12px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom));
  box-sizing:border-box
}

/* Close ek chhota gol nishan hai, kone mein tairta hua - tasveer ke upar
   ek patti nahi. Phone ke notch se neeche rehta hai. */
.swimmer-photo-dialog button{
  position:fixed;top:max(12px,env(safe-area-inset-top));right:12px;
  display:grid;place-items:center;width:42px;height:42px;padding:0;
  border:0;border-radius:50%;
  background:rgba(255,255,255,.14);color:#fff;
  font:600 19px/1 system-ui;cursor:pointer;
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)
}
.swimmer-photo-dialog button:hover{background:rgba(255,255,255,.26)}
.swimmer-photo-dialog button:focus-visible{outline:3px solid #f0a500;outline-offset:2px}

.swimmer-photo-dialog p{
  position:fixed;left:0;right:0;bottom:max(14px,env(safe-area-inset-bottom));
  margin:0;padding:0 16px;text-align:center;
  font:13px/1.4 system-ui;color:rgba(255,255,255,.72)
}
.swimmer-photo-dialog p:empty{display:none}

@media (prefers-reduced-motion:reduce){.swimmer-photo-dialog[open]{animation:none}}

/* ===== youtube-preview ===== */
.youtube-previews:empty{display:none}.youtube-card{display:grid;grid-template-columns:160px minmax(0,1fr);align-items:center;gap:15px;margin-top:12px;border:1px solid #cce0ef;border-radius:12px;overflow:hidden;background:#f3f9ff;text-decoration:none;color:#234d6b}.youtube-card img{display:block;width:160px;height:100px;object-fit:cover}.youtube-card>span{padding:12px 14px 12px 0}.youtube-card small{display:block;font-size:10px;color:#607e94;letter-spacing:.05em;margin-bottom:6px}.youtube-card strong{font-size:15px;line-height:1.4;display:block;overflow-wrap:anywhere}.youtube-card:hover{border-color:#77b2dc}.youtube-card img[hidden]{display:none}@media(max-width:500px){.youtube-card{grid-template-columns:110px minmax(0,1fr);gap:10px}.youtube-card img{width:110px;height:90px}.youtube-card strong{font-size:13px}}

/* Mobile par JS tab-patti banne tak uski jagah pehle se ghira do, warna
   patti aate hi content neeche khisak jaata hai (jhatka). :has() purane
   phone par nahi chalta, isliye seedha container par. */
@media (max-width: 1000px) {
  .swimmer-tabs, .coach-tabs { min-height: 58px; }
}
