/* Kardello, in WHOOP's clothes: black, charcoal panels, the strain blue and the recovery colours the TFT uses,
   Barlow Condensed for the numbers (WHOOP's tall metric numerals), Montserrat for everything else. */
:root {
  color-scheme: dark;
  --bg: #000;
  --panel: #0f0f0f;
  --panel-2: #181818;
  --line: #262626;
  --text: #fff;
  --muted: #8a8a8a;
  --dim: #2a2a2a;
  --strain: #0093e7;
  --blue: #0093e7;
  --rec: #16ec06;
  --warn: #ffde00;
  --alert: #ff0026;
  --sleep: #7ba1ff;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --ui: "Montserrat", -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; background: var(--bg); color: var(--text); font-family: var(--ui);
  font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
body { display: flex; flex-direction: column; }
:focus-visible { outline: 2px solid var(--strain); outline-offset: 3px; }

/* ---- header ------------------------------------------------------------------------------------------------ */
header { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 14px 18px 17px; background: rgba(0, 0, 0, .86); backdrop-filter: blur(14px); }
/* The lane rope: the floats that divide a pool, as the line that divides the page. */
header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; opacity: .9;
  background: repeating-linear-gradient(90deg, var(--strain) 0 22px, #000 22px 25px, #f2f2f2 25px 36px, #000 36px 39px); }
header a { color: inherit; text-decoration: none; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: .02em; line-height: 1;
  text-transform: uppercase; white-space: nowrap; }
.wordmark b { color: var(--strain); font-weight: 800; }
.room { flex: none; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; }
.status { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3a3a3a; flex: none; }
.status.live { color: var(--rec); } .status.live::before { background: var(--rec); animation: pulse 1.6s ease-in-out infinite; }
.status.warn { color: var(--warn); } .status.warn::before { background: var(--warn); }
header .spacer { flex: 1; }
header button { padding: 8px 14px; font-size: 12px; }

/* ---- controls ---------------------------------------------------------------------------------------------- */
button { font: inherit; font-weight: 700; font-size: 15px; letter-spacing: .04em; text-transform: uppercase;
  color: #000; background: #fff; border: 1px solid #fff; border-radius: 999px; padding: 15px 24px; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .1s; min-height: 48px; }
button:hover { background: #e6e6e6; }
button:active { transform: scale(.98); }
button.ghost { color: #fff; background: transparent; border-color: #3a3a3a; }
button.ghost:hover { border-color: #fff; background: transparent; }
button:disabled { opacity: .35; cursor: default; transform: none; }
input { font: inherit; font-size: 18px; color: #fff; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px; width: 100%; transition: border-color .15s; }
input:focus { outline: none; border-color: var(--strain); }
input::placeholder { color: #4a4a4a; }
select { font: inherit; font-size: 16px; color: #fff; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px; width: 100%; }
select:focus { outline: none; border-color: var(--strain); }
a { color: var(--strain); }
label { display: block; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; margin: 18px 0 8px; }
main { flex: 1; display: flex; flex-direction: column; padding: 0 16px 24px; min-height: 0; }
.controls { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; max-width: 440px; width: 100%;
  margin: 8px auto 14px; }
.controls h2 { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; letter-spacing: .01em;
  text-transform: uppercase; margin: 10px 0 2px; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.note { color: var(--muted); font-size: 14px; line-height: 1.55; margin-top: 16px; }
.note b { color: #fff; }

/* ---- home ------------------------------------------------------------------------------------------------- */
.hero { margin: auto; max-width: 860px; width: 100%; padding: 28px 0 10px; }
.eyebrow { color: var(--strain); font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  margin: 0 0 14px; }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(64px, 15vw, 150px); line-height: .88;
  letter-spacing: -.005em; text-transform: uppercase; margin: 0 0 20px; }
.hero h1 b { color: var(--strain); font-weight: 800; }
.hero p { color: var(--muted); margin: 0 0 26px; max-width: 520px; font-size: 17px; }
.hero .buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .buttons button { flex: 1 1 200px; font-size: 16px; padding: 18px 24px; }
.demo { height: clamp(170px, 32vh, 280px); margin: 34px 0 10px; --cols: 3 !important; }
.hero .note { margin-top: 8px; }
.keys { display: flex; flex-wrap: wrap; gap: 14px 22px; margin: 18px 0 0; padding: 0; list-style: none;
  color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.keys li { display: flex; align-items: center; gap: 8px; }
.keys i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* ---- the grid and the ring cards ------------------------------------------------------------------------- */
.grid { flex: 1; display: grid; gap: 12px; grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr));
  grid-auto-rows: 1fr; min-height: 0; padding-top: 12px; }
.card { position: relative; --zone: #3a3a3a;
  background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--zone) 13%, transparent), transparent 70%), var(--panel);
  border: 1px solid color-mix(in srgb, var(--zone) 28%, var(--line)); border-radius: 22px;
  transition: border-color .5s;
  padding: 14px 16px 12px; display: flex; flex-direction: column; min-height: 0; overflow: hidden;
  container-type: size; animation: pop .3s ease-out; }
.card.stale { opacity: .55; --zone: #3a3a3a !important; }
.card.stale .zone { color: var(--warn); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex: none; }
.name { font-weight: 800; font-size: clamp(14px, 8cqmin, 36px); letter-spacing: .04em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip { font-size: clamp(9px, 3.6cqmin, 14px); font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; white-space: nowrap;
  flex: none; }
.ring { flex: 1; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center;
  margin: 4px 0; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { fill: none; stroke: #1c1c1c; stroke-width: 5; }
/* A pace clock's face: sixty second marks, every fifth one heavier. */
.ring .ticks { fill: none; stroke: #333; stroke-width: 1.6; stroke-dasharray: .5 4.6313; stroke-dashoffset: .25; }
.ring .ticks.five { stroke: #6a6a6a; stroke-dasharray: 1 24.6563; stroke-dashoffset: .5; }
.spark { flex: none; display: block; width: 100%; height: clamp(12px, 9cqh, 44px); margin: 0 0 clamp(2px, 1.5cqh, 10px);
  overflow: visible; }
.spark path { fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke; opacity: .85; transition: stroke .5s; }
.ring .arc { fill: none; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 276.46;
  transition: stroke-dashoffset .7s cubic-bezier(.2, .7, .2, 1), stroke .5s; }
.big { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(2px, 1cqmin, 10px); pointer-events: none; }
.num { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 34cqmin, 340px); line-height: .9;
  letter-spacing: -.01em; transition: color .5s; font-variant-numeric: tabular-nums; }
.per { color: var(--muted); font-size: clamp(8px, 3.2cqmin, 13px); font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; }
.card-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex: none;
  color: var(--muted); font-size: clamp(9px, 3.8cqmin, 14px); font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; white-space: nowrap; }
.card-foot .zone { transition: color .5s; }
.card-foot .rate { color: #fff; font-variant-numeric: tabular-nums; }
.more { position: fixed; right: 24px; bottom: 20px; color: var(--muted); font-weight: 700; font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase; }
.self { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.self .grid { --cols: 1; }
#empty { text-align: center; margin: auto; max-width: 360px; }
#empty .eyebrow { margin-bottom: 10px; }

/* ---- a swimmer's practice -------------------------------------------------------------------------------- */
.controls.wide { max-width: 860px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 4px; }
.stat .k { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.stat b { font-family: var(--display); font-weight: 800; font-size: 36px; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .u { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.timeline { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 10px; margin: 12px 0; }
.timeline { padding: 14px 44px 10px 14px; }
.plot { position: relative; touch-action: pan-y; cursor: crosshair; }
.timeline svg { display: block; width: 100%; height: clamp(180px, 34vh, 320px); border-radius: 8px; overflow: hidden; }
.timeline path { fill: none; stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
#bands rect { opacity: .09; }
#cursor { stroke: #fff; stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .7; }
.ylabels span { position: absolute; left: 100%; margin-left: 8px; transform: translateY(-50%); font-family: var(--display);
  font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.xlabels { position: relative; height: 22px; margin-top: 6px; color: var(--muted); font-size: 11px; font-weight: 600;
  font-variant-numeric: tabular-nums; }
.xlabels span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.xlabels span:first-child { transform: none; } .xlabels span:last-child { transform: translateX(-100%); }
.tip { position: absolute; top: 8px; transform: translateX(10px); pointer-events: none; white-space: pre;
  background: #000; border: 1px solid #3a3a3a; border-radius: 10px; padding: 6px 10px; font-size: 12px; font-weight: 700;
  font-variant-numeric: tabular-nums; }
.tip.flip { transform: translateX(calc(-100% - 10px)); }
.sub { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  margin: 14px 0 8px; }
.zones { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.zbar { display: grid; grid-template-columns: 70px 1fr 56px; align-items: center; gap: 10px; color: var(--muted);
  font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.zbar i { display: block; height: 10px; border-radius: 5px; }
.zbar span:last-child { text-align: right; color: #fff; font-variant-numeric: tabular-nums; }

/* ---- coach lists ------------------------------------------------------------------------------------------- */
.items { list-style: none; margin: 0 0 6px; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.item { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; min-height: 60px; padding: 12px 16px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 16px; cursor: pointer; transition: border-color .15s; }
.item:hover { border-color: #3a3a3a; }
.item .who { flex: 1 1 140px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.item b { font-size: 17px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.item small { color: var(--muted); font-size: 11px; letter-spacing: .08em; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.item .max { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  white-space: nowrap; }
.item .chip, .item .badge { flex: none; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #3a3a3a; flex: none; }
.dot.live { background: var(--rec); box-shadow: 0 0 10px rgba(22, 236, 6, .55); } .dot.dim { background: #1e1e1e; }
.badge { font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--strain);
  border: 1px solid var(--strain); border-radius: 999px; padding: 3px 8px; }
.sig { font-family: var(--display); color: var(--strain); letter-spacing: 1px; font-size: 16px; flex: none; }
.err { color: var(--alert); font-size: 14px; min-height: 1.2em; margin: 0 auto 10px; max-width: 440px; width: 100%; }
.check { display: flex; align-items: center; gap: 12px; color: #fff; font-size: 15px; font-weight: 600;
  letter-spacing: 0; text-transform: none; margin: 20px 0 0; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--strain); }
button.danger { color: var(--alert); border-color: #3a3a3a; }
.item input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--strain); flex: none; margin: 0; cursor: pointer; }
.item input[type="checkbox"]:disabled { opacity: .3; cursor: default; }
.status.rec { color: var(--alert); } .status.rec::before { background: var(--alert); animation: pulse 1s ease-in-out infinite; }
.recline { display: flex; align-items: center; gap: 12px; margin: 6px 0 14px; color: var(--muted); font-size: 14px; }
.recline b { font-family: var(--display); font-size: 34px; color: #fff; font-variant-numeric: tabular-nums; line-height: 1; }
.recdot { width: 12px; height: 12px; border-radius: 50%; background: var(--alert); flex: none;
  box-shadow: 0 0 12px rgba(255, 0, 38, .6); animation: pulse 1s ease-in-out infinite; }
button.danger:hover { border-color: var(--alert); }

@container (max-width: 230px) {
  .card .chip, .card .per { display: none; }
  .card-foot { flex-direction: column; align-items: flex-start; gap: 2px; }
}
@container (max-height: 150px) { .card-foot, .card .per { display: none; } }
@container (max-height: 250px) { .spark { display: none; } }

/* ---- motion ------------------------------------------------------------------------------------------------ */
/* Scale only: a card must never depend on an animation finishing to be visible (TV browsers throttle them). */
@keyframes pop { from { transform: scale(.96); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 430px) { .item .max { display: none; } .status { letter-spacing: .1em; } }
@media (min-width: 720px) {
  header { padding: 16px 28px 19px; }
  main { padding: 0 24px 28px; }
  .wordmark { font-size: 30px; }
}

/* ---- section tabs: in the header on a wide screen, along the bottom on a phone ---------------------------- */
.tabs { display: flex; gap: 2px; margin-left: 14px; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px; color: var(--muted);
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; transition: color .15s, background .15s; }
.tabs a:hover { color: #fff; }
.tabs a[aria-current] { color: #fff; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.tabs svg { display: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }
:fullscreen .tabs { display: none; }
@media (max-width: 719px) {
  .tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; margin: 0; gap: 0; display: grid;
    grid-template-columns: repeat(4, 1fr); background: rgba(6, 6, 6, .94); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .tabs a { flex-direction: column; gap: 3px; padding: 7px 4px 5px; font-size: 10px; letter-spacing: .12em; border-radius: 12px;
    min-height: 48px; justify-content: center; }
  .tabs a[aria-current] { background: none; box-shadow: none; color: var(--strain); }
  .tabs svg { display: block; }
  /* A backdrop filter would make the header the tab bar's containing block and pin the bar to the top. */
  header { backdrop-filter: none; background: #000; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .more { bottom: calc(80px + env(safe-area-inset-bottom)); }
}

/* ---- the team strip on the watch screen ------------------------------------------------------------------- */
.teambar { flex: none; display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px 26px; padding: 14px 4px 2px; }
.teambar[hidden] { display: none; }
.teambar .k, .tb-zones .k { display: block; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; margin-bottom: 4px; white-space: nowrap; }
.tb-stat { display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: baseline; justify-content: start; }
.tb-stat .k { grid-column: 1 / -1; }
.tb-stat b { font-family: var(--display); font-weight: 800; font-size: 38px; line-height: .9; font-variant-numeric: tabular-nums; }
.tb-stat .u { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.tb-zones { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; }
.zstack { display: flex; gap: 3px; height: 26px; border-radius: 8px; overflow: hidden; background: var(--panel-2); }
.tb-zones .zstack { flex: 1; min-height: 26px; }
.zstack i { flex: 1 0 0; min-width: 22px; display: flex; align-items: center; justify-content: center; font-style: normal;
  color: #000; font-family: var(--display); font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums;
  transition: flex-grow .6s cubic-bezier(.2, .7, .2, 1); }
.zstack i:first-child { border-radius: 8px 0 0 8px; } .zstack i:last-child { border-radius: 0 8px 8px 0; }

/* ---- forms: a sheet, and the steps beside it -------------------------------------------------------------- */
.sheet { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 12px 20px 22px;
  margin-top: 22px; }
.sheet h2 { margin-top: 14px; }
.sheet input, .sheet select { background: #000; }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; max-width: 440px; width: 100%; margin: 0 auto; }
.split[hidden] { display: none; }
.split .controls { margin-top: 12px; }
.steps { list-style: none; counter-reset: step; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; }
.steps li::before { content: counter(step); grid-row: span 2; font-family: var(--display); font-weight: 800; font-size: 40px;
  line-height: .85; color: var(--strain); }
.steps b { font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.steps span { color: var(--muted); font-size: 14px; line-height: 1.45; }
@media (min-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 56px; max-width: 900px; align-items: center;
    margin: auto; }
  .steps { margin: 0; gap: 26px; }
  .steps li { grid-template-columns: 56px 1fr; }
  .steps li::before { font-size: 72px; }
  .steps b { font-size: 16px; }
  .split .controls { margin: 0; }
  .sheet { padding: 16px 28px 28px; }
}
@media (max-width: 430px) { .timeline { padding-right: 38px; } .tb-stat b { font-size: 32px; } }
@media (max-width: 520px) {
  /* A phone shows the team two across and scrolls, so each card keeps a readable number. */
  .grid:not(.demo):not([data-count="1"]) { --cols: 2 !important; grid-auto-rows: minmax(200px, 1fr); }
}
@media (max-width: 719px) { #full { display: none; } .tabs { grid-template-columns: repeat(5, 1fr) !important; } }

/* ---- stats pages ------------------------------------------------------------------------------------------- */
.controls.wide > .eyebrow { margin: 22px 0 0; }
.zstack.thin { height: 8px; gap: 2px; flex: 1 1 100%; border-radius: 4px; }
.zstack.thin i { min-width: 3px; border-radius: 0 !important; }
.nums { flex: none; display: grid; grid-template-columns: auto auto; column-gap: 6px; row-gap: 0; align-items: baseline;
  justify-items: end; }
.nums b { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1; font-variant-numeric: tabular-nums; }
.nums small { justify-self: start; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: 10px; }
.item.me { border-color: color-mix(in srgb, var(--strain) 55%, var(--line)); }
.team-static .item, .block .item, #season.items .item { cursor: default; }
.trend { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding: 12px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 16px; }
.tcol { position: relative; flex: 1 1 0; max-width: 46px; height: 100%; --zone: var(--strain); }
.tcol i { position: absolute; left: 0; right: 0; bottom: 0; height: var(--avg); background: var(--zone); border-radius: 5px 5px 2px 2px;
  opacity: .9; transition: opacity .15s; }
.tcol u { position: absolute; left: 15%; right: 15%; bottom: var(--peak); height: 3px; background: #fff; border-radius: 2px; }
.tcol:hover i { opacity: 1; }
.block { margin: 0 0 18px; }
.block-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 2px 8px; }
.block-head b { font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.block-head small { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.profile { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 6px; }
.profile summary { cursor: pointer; padding: 12px 0; color: var(--muted); font-size: 11px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; }
.profile[open] summary { color: #fff; }

/* ---- groups -------------------------------------------------------------------------------------------- */
.pitch h2 { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 7vw, 72px); line-height: .92;
  text-transform: uppercase; margin: 8px 0 12px; }
.pitch { margin-top: 22px; }
.split form + form { margin-top: 14px; }
.invite { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 16px; margin-bottom: 10px;
  background: var(--panel); border: 1px dashed color-mix(in srgb, var(--strain) 60%, var(--line)); border-radius: 16px; }
.invite[hidden] { display: none; }
.invite .k { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.invite b { flex: 1; font-family: var(--display); font-weight: 800; font-size: 34px; letter-spacing: .14em; line-height: 1; }
button.small, .invite button { min-height: 36px; padding: 7px 13px; font-size: 11px; }
#members .item { cursor: default; }

/* ---- profile pictures ------------------------------------------------------------------------------------ */
.avatar { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: grid;
  place-items: center; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted);
  font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: .04em; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar.big { width: 84px; height: 84px; font-size: 34px; }
.profile-head { display: flex; align-items: center; gap: 16px; margin-top: 22px; }
.profile-head .eyebrow { margin: 0; } .profile-head h2 { margin: 4px 0 0; }
.pic { padding: 0; min-height: 0; border: none; background: none; border-radius: 50%; position: relative; }
.pic:hover { background: none; }
.pic::after { content: "Edit"; position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 0 6px; font-size: 9px;
  letter-spacing: .14em; color: #fff; background: rgba(0, 0, 0, .62); border-radius: 0 0 42px 42px; pointer-events: none; }
.notice { margin: 6px 0 0; padding: 11px 14px; border-radius: 12px; font-size: 14px; background: var(--panel);
  border: 1px solid color-mix(in srgb, var(--strain) 55%, var(--line)); }
.row.inline { align-items: center; } .row.inline > button { flex: none; }
