/* 75 Hard — Squad Pulse
   Direction: a paper scoreboard. Ink-black type, one electric accent, and data
   set in tabular mono so counts line up like a race sheet. The signature is the
   75-tick tally strip in the header: the challenge is 75 discrete days, so the
   progress bar is 75 discrete marks rather than a smooth fill. */

:root {
  color-scheme: light dark;

  --paper: #ffffff;
  --wash: #f0f1ed;
  --ink: #111418;
  --ink-2: #5c6470;
  --ink-3: #6b7280;
  --line: #e3e5e0;
  --line-2: #d3d6d0;

  --volt: #3d2bf5;
  --volt-wash: #ecebff;
  --ember: #ff5b2e;
  --moss: #1c8a58;

  --t-indoor: #3d2bf5;
  --t-outdoor: #1c8a58;
  --t-diet: #b07600;
  --t-water: #0d87a4;
  --t-reading: #7a3fd0;

  --r: 14px;
  --r-lg: 20px;
  --pad: 16px;
  --shadow: 0 1px 2px rgba(17, 20, 24, .06), 0 8px 24px -16px rgba(17, 20, 24, .28);

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16181c;
    --wash: #0d0f12;
    --ink: #f2f3f0;
    --ink-2: #a2aab6;
    --ink-3: #8a93a1;
    --line: #262a30;
    --line-2: #333941;
    --volt: #8f83ff;
    --volt-wash: #23204a;
    --ember: #ff7a55;
    --moss: #45b985;
    --t-indoor: #8f83ff;
    --t-outdoor: #45b985;
    --t-diet: #d9a441;
    --t-water: #3fb6d1;
    --t-reading: #b189f0;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5);
  }
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button, input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

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

.phone {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100%;
  background: var(--wash);
  position: relative;
}

@media (min-width: 900px) {
  body { background: var(--wash); }
  .phone {
    box-shadow: 0 0 0 1px var(--line), 0 40px 80px -60px rgba(17, 20, 24, .5);
  }
}

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: max(10px, env(safe-area-inset-top)) var(--pad) 12px;
}

.topbar-row { display: flex; align-items: center; justify-content: space-between; }

.wordmark {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.04em;
  font-family: var(--mono);
}
.wordmark span {
  margin-left: 6px;
  padding: 2px 6px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 5px;
  font-size: 12px;
  letter-spacing: .12em;
  vertical-align: 2px;
}

.topbar-right { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: none;
  cursor: pointer;
}
.icon-btn svg { width: 18px; height: 18px; }

svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: none;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 2px 9px 2px 7px;
  cursor: pointer;
}
.status-dot {
  width: 6px; height: 6px; flex: none;
  border-radius: 50%;
  background: var(--ink-3);
}
.status-chip.offline {
  color: var(--ember);
  border-color: currentColor;
}
.status-chip.offline .status-dot { background: var(--ember); }
.status-chip.checking .status-dot { animation: status-pulse 1s ease-in-out infinite; }

@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .25; }
}

/* signature: 75 discrete day ticks */
.daymeter { margin-top: 12px; }
.daymeter-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-2);
}
.daymeter-head b { color: var(--ink); font-size: 13px; }
.daymeter-pct { color: var(--ink-3); }

.tally {
  margin-top: 7px;
  display: flex;
  gap: 1.5px;
  height: 16px;
  align-items: stretch;
}
.tally i {
  flex: 1 1 0;
  border-radius: 1px;
  background: var(--line-2);
}
.tally i.done { background: var(--ink); }
.tally i.today {
  background: var(--volt);
  box-shadow: 0 0 0 2px var(--volt-wash);
  border-radius: 2px;
}

/* ---------- view scaffold ---------- */

.view {
  padding: 14px var(--pad) calc(88px + env(safe-area-inset-bottom));
  outline: none;
}

.section-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 4px 0 10px;
}

.screen-title {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -.035em;
  margin: 0 0 2px;
}
.screen-sub { color: var(--ink-2); font-size: 13px; margin: 0 0 16px; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

.empty {
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
  padding: 28px 20px;
  text-align: center;
  color: var(--ink-2);
}
.empty b { display: block; color: var(--ink); margin-bottom: 4px; }

.loading {
  font-family: var(--mono); font-size: 12px; color: var(--ink-3);
  padding: 24px 0; text-align: center;
}

/* ---------- tab bar ---------- */

/* A floating island rather than a docked bar: air on all four sides, so the
   content reads as continuing underneath it. */
.tabbar {
  position: fixed;
  left: 50%; transform: translateX(-50%);
  bottom: calc(16px + env(safe-area-inset-bottom));
  display: flex; gap: 4px;
  padding: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border: 1px solid var(--line);
  box-shadow: 0 2px 6px rgba(17, 20, 24, .08), 0 18px 40px -22px rgba(17, 20, 24, .45);
  z-index: 30;
}
.tabbar a {
  display: grid; place-items: center;
  width: 54px; height: 44px;
  border-radius: 999px;
  color: var(--ink-3);
  transition: color .15s ease, background-color .15s ease;
}
/* The island is icon-only, as the design calls for; the label stays in the DOM
   so screen readers and the accessibility tree still name each destination. */
.tabbar a span {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.tabbar a svg { width: 21px; height: 21px; }
.tabbar a:hover { color: var(--ink); }
.tabbar a[aria-current="page"] {
  background: var(--volt);
  color: var(--paper);
}
.tabbar a:focus-visible { outline: 2px solid var(--volt); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .tabbar a { transition: none; }
}

/* ---------- avatars, pills ---------- */

.avatar {
  width: 38px; height: 38px; flex: none;
  border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; font-size: 13px;
  letter-spacing: -.02em;
  color: var(--paper);
  background: var(--ink);
}
.avatar.lg { width: 54px; height: 54px; border-radius: 16px; font-size: 18px; }

.pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .02em;
  padding: 3px 8px; border-radius: 999px;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.pill .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.t-indoor_workout { color: var(--t-indoor); }
.t-outdoor_workout { color: var(--t-outdoor); }
.t-diet { color: var(--t-diet); }
.t-water { color: var(--t-water); }
.t-reading { color: var(--t-reading); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* ---------- feed ---------- */

.daysep {
  display: flex; align-items: center; gap: 10px;
  margin: 20px 2px 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3);
}
.daysep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.daysep:first-child { margin-top: 0; }

.post { padding: 14px; margin-bottom: 10px; }
.post-head { display: flex; align-items: center; gap: 10px; }
.post-who { min-width: 0; }
.post-name { font-weight: 650; letter-spacing: -.01em; }
.post-meta { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.post-headline { margin: 11px 0 2px; font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.post-body { margin: 6px 0 0; color: var(--ink-2); }
.post-body.lead { color: var(--ink); }

.post-photo {
  margin-top: 12px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--wash);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
}
.post-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-photo.pending { display: grid; place-items: center; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }

/* ---------- squad ---------- */

.member-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; margin-bottom: 10px; width: 100%;
  text-align: left; cursor: pointer;
}
.member-row .grow { flex: 1; min-width: 0; }
.member-name { font-weight: 650; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.badge {
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-2);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 1px 7px;
}
.badge.ok { color: var(--moss); border-color: currentColor; }
.badge.miss { color: var(--ember); border-color: currentColor; }

.bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 9px; }
.bar > i { display: block; height: 100%; background: var(--volt); border-radius: 999px; transition: width .4s ease; }
.bar.full > i { background: var(--moss); }

.rowmeta {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-top: 6px;
}
.chev { color: var(--ink-3); width: 18px; height: 18px; flex: none; }

/* ---------- member detail ---------- */

.backlink {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-2); margin-bottom: 14px;
}
.backlink svg { width: 14px; height: 14px; }

.detail-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.detail-head .grow { flex: 1; min-width: 0; }
.detail-head h1 { font-size: 24px; font-weight: 800; letter-spacing: -.035em; margin: 0; }
.detail-head p { margin: 2px 0 0; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }

.pulse { display: flex; align-items: center; gap: 18px; padding: 16px; }
.ring { width: 92px; height: 92px; flex: none; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { stroke: var(--line); stroke-width: 9; }
.ring .fill { stroke: var(--volt); stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.ring.full .fill { stroke: var(--moss); }
.ring .num {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; font-size: 20px; letter-spacing: -.04em;
}
.pulse-copy h2 { margin: 0 0 4px; font-size: 15px; letter-spacing: -.01em; }
.pulse-copy p { margin: 0; color: var(--ink-2); font-size: 13px; }

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 12px; }
.tile { padding: 13px 14px; }
.tile .k {
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3);
}
.tile .v {
  font-family: var(--mono); font-size: 22px; font-weight: 700;
  letter-spacing: -.04em; margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.tile .u { font-size: 12px; color: var(--ink-3); font-weight: 500; margin-left: 3px; }
.tile.ok .v { color: var(--moss); }
.tile.miss .v { color: var(--ember); }

/* your own five tasks, at the top of the feed */

.mytasks { padding: 13px 14px 14px; margin-bottom: 18px; }

.mt-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; margin-bottom: 12px;
}
.mt-who {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3);
}
.mt-count { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--ink-2); }
.mt-count.full { color: var(--moss); }

.mt-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }

.mt-cell { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; }

/* The glyph carries its task's .t-* class, which sets `color`. Nothing here may
   set `color` on .mt-glyph itself — same specificity, later in the file, so it
   would win and every icon would come out grey. Untouched tasks are greyed via
   the parent state class instead, which outranks .t-*. */
.mt-glyph {
  position: relative;
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%;
  background: var(--wash); border: 1px solid var(--line);
}
/* The task icon only. Not :not()-less, because the progress ring is an svg in
   here too and this selector outranks .mt-arc — it would squash the ring to
   19px in the corner instead of letting it span the glyph. */
.mt-glyph svg:not(.mt-arc) { width: 19px; height: 19px; }

/* done: filled with the task's own colour. part: that colour as an arc on the
   ring. none: grey, so a glance reads colour = progress. */
.mt-cell.none .mt-glyph { color: var(--ink-3); }
/* Green is the app's "complete" everywhere else — the full progress bar, the
   Day done badge, the 5/5 count — so a cleared task gets it as a border while
   the fill stays the task's own colour. The inset ring is not decoration:
   --t-outdoor *is* --moss, so without a gap the outdoor task's border would
   disappear into its own fill and it alone would look uncompleted. */
.mt-cell.done .mt-glyph {
  background: currentColor;
  border: 2px solid var(--moss);
  box-shadow: inset 0 0 0 2px var(--paper);
}
.mt-cell.done .mt-glyph svg { color: var(--paper); }
/* The ring *is* the border here, so the div's own is turned off — otherwise the
   two sit a fraction of a pixel apart and read as one fuzzy doubled edge. */
.mt-cell.part .mt-glyph { background: var(--paper); border-color: transparent; }

/* Spans the border box, not the padding box, so its 2px stroke lands exactly
   where the done state's 2px border lands: same ring, differently filled. */
.mt-arc { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); transform: rotate(-90deg); }
.mt-arc circle { stroke: var(--line-2); stroke-width: 2; }
.mt-arc .mt-arc-fill { stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.mt-label {
  font-size: 11px; font-weight: 600; letter-spacing: -.01em; color: var(--ink-2);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mt-cell.done .mt-label { color: var(--ink); }
.mt-sub { font-family: var(--mono); font-size: 10px; color: var(--ink-3); }

/* panel switch — timeline vs calendar */

.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin: 22px 0 10px;
}
.panel-head .section-title { margin: 0; }

/* Equal columns, not intrinsic widths: the active pill must not resize as it
   moves between labels of different lengths. */
.seg {
  display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 2px;
  background: var(--wash); border: 1px solid var(--line);
  border-radius: 999px;
}
.seg-btn {
  font: inherit; font-size: 12px; font-weight: 600;
  padding: 5px 14px; border: none; border-radius: 999px;
  background: none; color: var(--ink-2); cursor: pointer;
}
.seg-btn.on { background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }

/* the 75-day grid */

.daygrid { padding: 14px; margin-bottom: 12px; }

.dg-head, .dg-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px;
}
.dg-head {
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  color: var(--ink-3); text-align: center; margin-bottom: 6px;
}

.dg-cell {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; border: 1px solid transparent;
  font-family: var(--mono); font-size: 11px; color: var(--ink-2);
  background: var(--wash);
}
.dg-cell.blank { background: none; }

.dg-cell.full { background: var(--moss); border-color: var(--moss); color: #fff; font-weight: 600; }
.dg-cell.part { background: var(--volt-wash); border-color: var(--volt); color: var(--volt); }
.dg-cell.miss { background: none; border-color: var(--ember); color: var(--ember); }
.dg-cell.idle { background: var(--wash); border-color: var(--line); color: var(--ink-3); }
.dg-cell.none { background: none; border: 1px dashed var(--line); color: var(--line-2); }

/* today is a ring; the day being viewed is a solid ink outline. Both can land
   on the same cell, so they use different properties. */
.dg-cell.now { box-shadow: 0 0 0 2px var(--volt-wash); }
.dg-cell.sel { outline: 2px solid var(--ink); outline-offset: 1px; }

.dg-legend {
  display: flex; flex-wrap: wrap; align-items: center; gap: 5px 12px;
  margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 10px; letter-spacing: .04em; color: var(--ink-3);
}
.dg-key {
  width: 9px; height: 9px; border-radius: 3px; border: 1px solid transparent; margin-right: -6px;
}
.dg-key.full { background: var(--moss); }
.dg-key.part { background: var(--volt-wash); border-color: var(--volt); }
.dg-key.miss { border-color: var(--ember); }
.dg-key.idle { background: var(--wash); border-color: var(--line); }

/* activity pulse timeline */
.timeline { margin-top: 6px; }
.tl-item {
  display: grid; grid-template-columns: 34px 1fr; gap: 12px;
  padding-bottom: 16px; position: relative;
}
.tl-item::before {
  content: ""; position: absolute; left: 17px; top: 34px; bottom: -2px;
  width: 1px; background: var(--line);
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item:last-child::before { display: none; }
.tl-icon {
  width: 34px; height: 34px; border-radius: 11px;
  display: grid; place-items: center;
  border: 1px solid currentColor;
  background: var(--paper);
}
.tl-icon svg { width: 17px; height: 17px; }
.tl-body { padding-top: 2px; min-width: 0; }
.tl-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.tl-task {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase;
}
.tl-when { font-family: var(--mono); font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.tl-text { margin: 3px 0 0; color: var(--ink); }
.tl-raw { margin: 3px 0 0; color: var(--ink-3); font-size: 13px; }

/* ---------- leaderboard ---------- */

.rank-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; margin-bottom: 10px;
}
.rank-no {
  font-family: var(--mono); font-size: 15px; font-weight: 700;
  width: 26px; text-align: right; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.rank-row.top .rank-no { color: var(--volt); }
.rank-stat {
  text-align: right; font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.rank-stat b { font-size: 19px; font-weight: 700; letter-spacing: -.04em; display: block; }
.rank-stat span { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.streak { color: var(--ember); font-family: var(--mono); font-size: 11px; }

/* ---------- setup / settings ---------- */

.setup { padding: 28px var(--pad) 40px; max-width: 480px; margin: 0 auto; }
.setup .mark { font-family: var(--mono); font-size: 40px; font-weight: 800; letter-spacing: -.06em; }
.setup .mark em { font-style: normal; color: var(--volt); }
.setup h1 { font-size: 26px; font-weight: 800; letter-spacing: -.035em; margin: 14px 0 6px; }
.setup p.intro { color: var(--ink-2); margin: 0 0 22px; }

.field { margin-bottom: 14px; }
.field label {
  display: block; font-family: var(--mono); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px;
}
.field input {
  width: 100%; padding: 12px 13px;
  border: 1px solid var(--line-2); border-radius: 11px;
  background: var(--paper); color: var(--ink);
}
.field input:focus { border-color: var(--volt); outline: none; box-shadow: 0 0 0 3px var(--volt-wash); }
.field .hint { font-size: 12px; color: var(--ink-3); margin-top: 6px; }

.btn {
  width: 100%; padding: 13px; border: 0; border-radius: 12px;
  background: var(--ink); color: var(--paper);
  font-weight: 650; letter-spacing: -.01em; cursor: pointer;
}
.btn[disabled] { opacity: .55; cursor: progress; }
.btn.ghost { background: none; border: 1px solid var(--line-2); color: var(--ink); }
.btn.danger { background: none; border: 1px solid var(--ember); color: var(--ember); }
.btn + .btn { margin-top: 10px; }
.btn.tiny { width: auto; padding: 7px 12px; border-radius: 999px; font-size: 13px; }

/* Update prompt. Sits above the tab island, never over it. */
.toast {
  position: fixed;
  left: 50%; transform: translateX(-50%);
  bottom: calc(88px + env(safe-area-inset-bottom));
  z-index: 40;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
  background: var(--ink); color: var(--paper);
  box-shadow: 0 2px 6px rgba(17, 20, 24, .1), 0 18px 40px -20px rgba(17, 20, 24, .5);
  font-size: 14px;
  max-width: calc(100% - 2 * var(--pad));
}
.toast .btn.tiny { background: var(--paper); color: var(--ink); flex: none; }

.alert {
  border: 1px solid var(--ember); border-left-width: 3px;
  border-radius: 10px; padding: 11px 13px; margin-bottom: 16px;
  background: color-mix(in srgb, var(--ember) 7%, transparent);
}
.alert b { display: block; margin-bottom: 2px; }
.alert p { margin: 0; font-size: 13px; color: var(--ink-2); }
.alert code { font-family: var(--mono); font-size: 12px; }

/* "Who are you?" — one row per squad member, radios doing the real work */

.pickers { display: grid; gap: 8px; margin-bottom: 22px; }

.picker {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px; cursor: pointer;
  background: var(--paper); border: 1px solid var(--line-2); border-radius: 12px;
}
.picker input { position: absolute; opacity: 0; pointer-events: none; }
.picker:has(input:focus-visible) { outline: 2px solid var(--volt); outline-offset: 2px; }
.picker.on { border-color: var(--volt); box-shadow: 0 0 0 3px var(--volt-wash); }

.picker-name { flex: 1; min-width: 0; font-weight: 650; letter-spacing: -.01em; }
.picker-tick {
  width: 20px; height: 20px; flex: none; color: var(--volt);
  stroke-width: 2.4;
  opacity: 0; transition: opacity .15s ease;
}
.picker.on .picker-tick { opacity: 1; }

.kv { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.kv:last-child { border-bottom: 0; }
.kv .k { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.kv .v { font-family: var(--mono); font-size: 12px; text-align: right; word-break: break-all; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
