/* ============================================================
   30-Day Build — Command Center
   Aesthetic: calm, light, Notion-like. Warm neutrals + green accent.
   ============================================================ */

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

:root {
  /* --- surfaces: crisp cool white --- */
  --bg:        oklch(0.966 0.003 264);
  --surface:   oklch(1 0 0);
  --surface-2: oklch(0.985 0.002 264);
  --surface-3: oklch(0.960 0.004 264);
  --sunk:      oklch(0.947 0.006 264);
  --line:      oklch(0.908 0.006 264);
  --line-soft: oklch(0.934 0.004 264);

  /* --- ink: crisp near-black --- */
  --ink:   oklch(0.255 0.014 264);
  --ink-2: oklch(0.435 0.013 264);
  --ink-3: oklch(0.575 0.011 264);
  --ink-4: oklch(0.700 0.009 264);

  /* --- accent: modern indigo-blue --- */
  --accent:        oklch(0.530 0.170 264);
  --accent-strong: oklch(0.455 0.165 264);
  --accent-tint:   color-mix(in srgb, var(--accent) 12%, var(--surface));
  --accent-veil:   color-mix(in srgb, var(--accent) 6%, var(--surface));
  --accent-line:   color-mix(in srgb, var(--accent) 34%, var(--line));

  /* --- attention (used only on the Action Required tag) --- */
  --warn:      oklch(0.545 0.135 52);
  --warn-tint: color-mix(in srgb, oklch(0.66 0.14 58) 16%, var(--surface));

  /* --- type --- */
  --display: "Schibsted Grotesk", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;

  --fs-2xs: 0.6875rem;
  --fs-xs:  0.75rem;
  --fs-sm:  0.8125rem;
  --fs-base:0.9375rem;
  --fs-md:  1.0625rem;
  --fs-lg:  1.25rem;
  --fs-xl:  1.5rem;

  /* --- space (4pt) --- */
  --s1:0.25rem; --s2:0.5rem; --s3:0.75rem; --s4:1rem;
  --s5:1.5rem; --s6:2rem; --s7:3rem; --s8:4rem;

  --r-sm:5px; --r-md:8px; --r-lg:12px; --r-xl:16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --shadow-card: 0 1px 2px oklch(0.28 0.03 264 / 0.06), 0 1px 1px oklch(0.28 0.03 264 / 0.05);
  --shadow-pop: 0 -1px 2px oklch(0.28 0.03 264 / 0.05), 0 -14px 36px -10px oklch(0.25 0.04 264 / 0.17);
  --shadow-gate: 0 16px 48px -16px oklch(0.28 0.04 264 / 0.24);

  --shell: 58rem;
  --bar-h: 3.75rem;

  color-scheme: light;
}

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

body {
  font-family: var(--body);
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  min-height: 100svh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
[hidden] { display: none !important; }
::selection { background: var(--accent-tint); }

/* ============================================================
   ACCESS GATE
   ============================================================ */
.gate {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center;
  padding: var(--s5);
  background: var(--bg);
}
.gate__panel {
  width: min(25rem, 100%);
  display: flex; flex-direction: column; gap: var(--s3);
  padding: var(--s6) var(--s5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-gate);
}
.gate__eyebrow {
  font-size: var(--fs-2xs); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-strong);
}
.gate__title {
  font-family: var(--display); font-weight: 700;
  font-size: var(--fs-xl); line-height: 1.05; letter-spacing: -0.01em;
}
.gate__hint { font-size: var(--fs-sm); color: var(--ink-3); margin-bottom: var(--s1); }
.gate__field { display: flex; gap: var(--s2); }
.gate__field input {
  flex: 1; min-width: 0;
  padding: 0.65rem 0.8rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: var(--fs-base); color: var(--ink);
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.gate__field input::placeholder { color: var(--ink-4); }
.gate__field input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-veil);
}
.gate__field button {
  padding: 0 1.1rem;
  font-family: var(--display); font-weight: 600;
  font-size: var(--fs-sm);
  background: var(--accent); color: #fff;
  border-radius: var(--r-md);
  transition: background 0.16s var(--ease), transform 0.1s var(--ease);
}
.gate__field button:hover { background: var(--accent-strong); }
.gate__field button:active { transform: translateY(1px); }
.gate__error { font-size: var(--fs-sm); color: oklch(0.55 0.16 28); min-height: 1.1em; }
.gate.is-shaking .gate__panel { animation: shake 0.4s var(--ease); }
@keyframes shake {
  20%,60% { transform: translateX(-6px); }
  40%,80% { transform: translateX(6px); }
}

/* ============================================================
   BOOT
   ============================================================ */
.boot {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column; gap: var(--s4);
  align-items: center; justify-content: center;
  background: var(--bg);
  transition: opacity 0.4s var(--ease);
}
.boot.is-gone { opacity: 0; pointer-events: none; }
.boot__pulse {
  width: 2rem; height: 2rem; border-radius: var(--r-sm);
  background: var(--accent);
  animation: pulse 1.1s var(--ease) infinite;
}
@keyframes pulse {
  0%,100% { opacity: 0.3; transform: scale(0.8); }
  50%     { opacity: 1;   transform: scale(1); }
}
.boot__label {
  font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: 0.04em; color: var(--ink-3);
}

/* ============================================================
   COMMAND BAR
   ============================================================ */
.app { opacity: 0; }
.app.is-ready { opacity: 1; transition: opacity 0.35s var(--ease); }

.bar {
  position: sticky; top: 0; z-index: 30;
  min-height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s4);
  padding: 0 clamp(var(--s4), 4vw, var(--s7));
  padding-top: env(safe-area-inset-top);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.bar__brand { display: flex; align-items: center; gap: var(--s3); min-width: 0; }
.bar__mark {
  width: 1.35rem; height: 1.35rem; flex-shrink: 0;
  border-radius: 5px; background: var(--accent);
}
.bar__id { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.bar__eyebrow {
  font-size: var(--fs-2xs); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bar__title {
  font-family: var(--display); font-weight: 700;
  font-size: var(--fs-md); letter-spacing: -0.01em;
}
.bar__meta { display: flex; align-items: center; gap: var(--s3); flex-shrink: 0; }
.daycount {
  font-size: var(--fs-xs); font-weight: 500;
  color: var(--ink-2);
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--line); border-radius: 999px;
  white-space: nowrap;
}
.daycount b { color: var(--accent-strong); font-weight: 700; }
.sync { display: flex; align-items: center; gap: 0.4rem; }
.sync__dot {
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--accent); transition: background 0.2s var(--ease);
}
.sync__label {
  font-size: var(--fs-2xs); font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3);
}
.sync[data-sync="saving"] .sync__dot { background: var(--warn); animation: blink 0.9s steps(2) infinite; }
.sync[data-sync="error"]  .sync__dot { background: oklch(0.62 0.16 28); }
@keyframes blink { 50% { opacity: 0.25; } }

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
.main {
  width: min(var(--shell), 100%);
  margin-inline: auto;
  padding: clamp(var(--s5), 4vw, var(--s6)) clamp(var(--s4), 4vw, var(--s6));
  padding-bottom: calc(var(--s8) + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: var(--s4);
}
body.tray-on .main { padding-bottom: 8rem; }

.reveal { opacity: 0; transform: translateY(10px); }
.app.is-ready .reveal {
  animation: reveal 0.55s var(--ease) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes reveal { to { opacity: 1; transform: none; } }

/* ============================================================
   HERO — sprint progress
   ============================================================ */
.hero {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--s4) clamp(var(--s5), 5vw, var(--s7));
  padding: clamp(var(--s4), 3.5vw, var(--s5));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}
.hero__figure { flex-shrink: 0; display: flex; flex-direction: column; }
.hero__num { display: flex; align-items: baseline; }
.hero__pct {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.8rem, 8vw, 3.9rem);
  line-height: 0.9; letter-spacing: -0.03em;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.hero__sign {
  font-family: var(--display); font-weight: 600;
  font-size: 1.4rem; color: var(--accent); margin-left: 0.1rem;
}
.hero__caption {
  font-size: var(--fs-2xs); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
  margin-top: var(--s2);
}
.hero__console {
  flex: 1 1 20rem; display: flex; flex-direction: column; gap: var(--s4);
}
.hero__readouts { display: flex; gap: clamp(var(--s4), 4vw, var(--s6)); }
.readout { display: flex; flex-direction: column; gap: 0.25rem; }
.readout__val {
  font-family: var(--display); font-weight: 600; font-size: var(--fs-lg);
  line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap;
  color: var(--ink);
}
.readout__val.is-warn { color: var(--ink); }
.readout__label {
  font-size: var(--fs-2xs); font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3);
}
.hero__gauge { display: flex; flex-direction: column; gap: 0.4rem; }
.gauge { display: flex; gap: 3px; }
.gauge__seg {
  height: 0.6rem; background: var(--sunk);
  border-radius: 2px; overflow: hidden;
}
.gauge__seg:first-child { border-radius: 999px 2px 2px 999px; }
.gauge__seg:last-child  { border-radius: 2px 999px 999px 2px; }
.gauge__seg > i {
  display: block; height: 100%; width: var(--f, 0%);
  background: var(--accent);
  transition: width 0.85s var(--ease);
}
.gauge__seg.is-active { box-shadow: inset 0 0 0 1.5px var(--accent-line); }
.gauge__labels { display: flex; gap: 3px; }
.gauge__labels span {
  font-size: var(--fs-2xs); font-weight: 500;
  color: var(--ink-4); text-align: center;
  overflow: hidden; white-space: nowrap;
}
.gauge__labels span.is-active { color: var(--accent-strong); font-weight: 600; }

/* ============================================================
   NEXT UP — the "push forward" callout
   ============================================================ */
.nextup {
  display: flex; align-items: center; gap: var(--s4);
  padding: clamp(var(--s4), 3vw, var(--s5));
  background: var(--accent-veil);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.nextup:hover { background: var(--accent-tint); }
.nextup__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.nextup__kicker {
  display: flex; align-items: center; gap: var(--s2);
  font-size: var(--fs-2xs); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-strong);
}
.nextup__kicker .dot {
  width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--accent);
  animation: beat 1.8s var(--ease) infinite;
}
@keyframes beat { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }
.nextup__task {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  line-height: 1.2; letter-spacing: -0.01em; color: var(--ink);
}
.nextup__where {
  font-size: var(--fs-sm); color: var(--ink-2);
  display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap;
}
.nextup__go {
  flex-shrink: 0;
  width: 3rem; height: 3rem;
  display: grid; place-items: center;
  background: var(--accent); color: #fff;
  border-radius: var(--r-md);
  transition: background 0.16s var(--ease);
}
.nextup:hover .nextup__go { background: var(--accent-strong); }
.nextup__go svg { width: 1.4rem; height: 1.4rem; }
.nextup--done { cursor: default; }
.nextup--done:hover { background: var(--accent-veil); }

/* ============================================================
   PHASE NAV
   ============================================================ */
.phasenav {
  position: sticky; top: var(--bar-h); z-index: 20;
  display: flex; gap: var(--s2);
  margin-inline: calc(-1 * clamp(var(--s4), 4vw, var(--s6)));
  padding: var(--s2) clamp(var(--s4), 4vw, var(--s6));
  overflow-x: auto; scrollbar-width: none;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(8px);
  scroll-snap-type: x proximity;
}
.phasenav::-webkit-scrollbar { display: none; }
.phasechip {
  flex-shrink: 0; scroll-snap-align: start;
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.36rem 0.7rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.14s var(--ease), background 0.14s var(--ease);
}
.phasechip:hover { background: var(--surface-3); }
.phasechip__name {
  font-family: var(--display); font-weight: 600; font-size: var(--fs-sm);
  white-space: nowrap; color: var(--ink-2);
}
.phasechip__count {
  font-size: var(--fs-2xs); font-weight: 500;
  color: var(--ink-4); font-variant-numeric: tabular-nums;
}
.phasechip__ring {
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  border: 1.5px solid var(--line);
}
.phasechip.is-active { border-color: var(--accent-line); background: var(--accent-veil); }
.phasechip.is-active .phasechip__name { color: var(--accent-strong); }
.phasechip.is-active .phasechip__ring { border-color: var(--accent); background: var(--accent); }
.phasechip.is-complete .phasechip__ring { border-color: var(--accent); background: var(--accent); }
.phasechip.is-complete .phasechip__count { color: var(--accent-strong); }

/* ============================================================
   SECTIONS
   ============================================================ */
.sections { display: flex; flex-direction: column; gap: var(--s3); }

.phase {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  scroll-margin-top: calc(var(--bar-h) + 3.2rem);
}
.phase.is-active { border-color: var(--accent-line); background: var(--accent-veil); }
.phase.is-complete { background: var(--surface-2); }

.phase__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s2) var(--s4);
  align-items: start;
  width: 100%;
  padding: clamp(var(--s3), 2.4vw, var(--s5));
  text-align: left;
}
.phase__lead { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.phase__titlerow { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.phase__num {
  font-size: var(--fs-2xs); font-weight: 600;
  color: var(--ink-4); font-variant-numeric: tabular-nums;
}
.phase__title {
  font-family: var(--display); font-weight: 600;
  font-size: var(--fs-lg); letter-spacing: -0.01em; line-height: 1.1;
}
.phase__dates { font-size: var(--fs-2xs); color: var(--ink-3); }
.phase__caption { font-size: var(--fs-sm); color: var(--ink-2); }
.phase__goal { font-size: var(--fs-sm); color: var(--ink-3); max-width: 62ch; }
.phase__goal b { color: var(--ink-2); font-weight: 600; }

.phase__aside { display: flex; flex-direction: column; align-items: flex-end; gap: var(--s2); }
.phase__count {
  font-family: var(--display); font-weight: 600; font-size: var(--fs-base);
  font-variant-numeric: tabular-nums; color: var(--ink-3);
}
.phase__count b { color: var(--ink); }
.phase__minigauge {
  width: 4rem; height: 0.3rem;
  background: var(--sunk); border-radius: 999px; overflow: hidden;
}
.phase__minigauge > i {
  display: block; height: 100%; width: var(--fill, 0%);
  background: var(--accent); border-radius: 999px;
  transition: width 0.65s var(--ease);
}
.phase__chevron {
  width: 1.35rem; height: 1.35rem; color: var(--ink-4);
  transition: transform 0.28s var(--ease), color 0.14s var(--ease);
}
.phase__head:hover .phase__chevron { color: var(--ink-2); }
.phase.is-open .phase__chevron { transform: rotate(180deg); }

/* status tag */
.tag {
  font-size: var(--fs-2xs); font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem; border-radius: 4px; white-space: nowrap;
}
.tag--active   { color: var(--accent-strong); background: var(--accent-tint); }
.tag--required { color: var(--warn); background: var(--warn-tint); }
.tag--complete { color: var(--accent-strong); background: var(--accent-tint); }
.tag--ondeck   { color: var(--ink-2); background: var(--surface-3); }
.tag--queued   { color: var(--ink-3); background: var(--surface-3); }
.tag--later    { color: var(--ink-3); background: var(--surface-3); }

/* collapsible body */
.phase__body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.34s var(--ease);
}
.phase.is-open .phase__body { grid-template-rows: 1fr; }
.phase__bodyinner { overflow: hidden; }
.phase__pad {
  padding: 0 clamp(var(--s3), 2.4vw, var(--s5)) clamp(var(--s3), 2.4vw, var(--s5));
  display: flex; flex-direction: column; gap: var(--s4);
}

/* ============================================================
   GROUPS + ITEMS
   ============================================================ */
.group { display: flex; flex-direction: column; }
.group__head {
  display: flex; align-items: baseline; gap: var(--s2);
  padding: var(--s3) 0 var(--s1);
  border-top: 1px solid var(--line-soft);
}
.group:first-child .group__head { border-top: 0; padding-top: var(--s1); }
.group__label {
  font-size: var(--fs-2xs); font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3);
}
.group__note { font-size: var(--fs-2xs); color: var(--warn); }
.group__tally {
  margin-left: auto;
  font-size: var(--fs-2xs); font-weight: 500;
  color: var(--ink-4); font-variant-numeric: tabular-nums;
}

.item {
  display: flex; align-items: flex-start; gap: var(--s3);
  padding: 0.5rem 0.5rem;
  border-radius: var(--r-md);
  transition: background 0.12s var(--ease), box-shadow 0.12s var(--ease);
}
.item:hover { background: var(--surface-3); }
.item.is-next { background: var(--accent-veil); }
.item.is-sel {
  background: var(--accent-tint);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}

.check {
  flex-shrink: 0; margin-top: 0.05rem;
  width: 1.4rem; height: 1.4rem;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1.5px solid oklch(0.80 0.012 264);
  border-radius: var(--r-sm);
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.check:hover { border-color: var(--accent); }
.item.is-next .check { border-color: var(--accent); }
.check svg { width: 0.95rem; height: 0.95rem; }
.check path {
  fill: none; stroke: #fff; stroke-width: 3.4;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 26; stroke-dashoffset: 26;
  transition: stroke-dashoffset 0.26s var(--ease);
}

.item__body {
  flex: 1; min-width: 0;
  display: flex; align-items: flex-start; gap: var(--s3);
  text-align: left; background: none;
  -webkit-tap-highlight-color: transparent;
}
.item__id {
  flex-shrink: 0; margin-top: 0.05rem;
  min-width: 2.5rem; text-align: center;
  font-size: var(--fs-2xs); font-weight: 600;
  font-variant-numeric: tabular-nums; color: var(--ink-3);
  padding: 0.16rem 0.34rem;
  background: var(--surface-3); border-radius: 4px;
}
.item__text {
  flex: 1; min-width: 0;
  font-size: var(--fs-base); color: var(--ink);
  transition: color 0.18s var(--ease);
}
.item__tag {
  flex-shrink: 0; margin-top: 0.06rem;
  font-size: var(--fs-2xs); font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.16rem 0.4rem; border-radius: 4px;
}
.item__tag--you  { color: var(--accent-strong); background: var(--accent-tint); }
.item__tag--both { color: var(--ink-2); background: var(--surface-3); }

.item.is-sel .item__id { color: var(--accent-strong); background: var(--accent-tint); }

/* checked state */
.item.is-done .check { background: var(--accent); border-color: var(--accent); }
.item.is-done .check path { stroke-dashoffset: 0; }
.item.is-done .item__text { color: var(--ink-4); text-decoration: line-through; }
.item.is-done .item__id { color: var(--ink-4); }
.item.is-done .item__tag { opacity: 0.45; }

.check.is-pop { animation: pop 0.32s var(--ease); }
@keyframes pop { 40% { transform: scale(1.2); } }

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  display: flex; flex-wrap: wrap; gap: var(--s2);
  justify-content: center; align-items: center;
  padding-top: var(--s4);
  font-size: var(--fs-2xs); color: var(--ink-4);
}
.foot__sep { color: var(--line); }

/* ============================================================
   PROMPT TRAY
   ============================================================ */
.tray {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 0 clamp(var(--s4), 4vw, var(--s6));
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(130%);
  transition: transform 0.38s var(--ease);
  pointer-events: none;
}
.tray.is-active { transform: translateY(0); pointer-events: auto; }
.tray__inner {
  width: min(var(--shell), 100%); margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}
.tray__bar {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--s4);
}
.tray__toggle {
  display: flex; align-items: center; gap: var(--s2);
  flex: 1; min-width: 0; text-align: left;
}
.tray__dot {
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}
.tray__count {
  font-family: var(--display); font-weight: 600; font-size: var(--fs-base);
  white-space: nowrap;
}
.tray__chev {
  width: 1.05rem; height: 1.05rem; color: var(--ink-4);
  transition: transform 0.3s var(--ease);
}
.tray.is-open .tray__chev { transform: rotate(180deg); }
.tray__actions { display: flex; gap: var(--s2); flex-shrink: 0; }
.tray__clear {
  font-size: var(--fs-xs); font-weight: 600;
  color: var(--ink-3); padding: 0.5rem 0.65rem; border-radius: var(--r-sm);
}
.tray__clear:hover { color: var(--ink); background: var(--surface-3); }
.tray__copy {
  font-family: var(--display); font-weight: 600; font-size: var(--fs-sm);
  background: var(--accent); color: #fff;
  padding: 0.5rem 0.95rem; border-radius: var(--r-sm);
  transition: background 0.16s var(--ease);
}
.tray__copy:hover { background: var(--accent-strong); }
.tray__copy.is-copied { background: var(--accent-strong); }

.tray__preview {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s var(--ease);
}
.tray.is-open .tray__preview { grid-template-rows: 1fr; }
.tray__previewpad {
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}
.tray__hint {
  font-size: var(--fs-2xs); color: var(--ink-3);
  padding: var(--s3) var(--s4) 0;
}
.tray__prompt {
  margin: var(--s2) var(--s4) var(--s4);
  padding: var(--s3);
  background: var(--sunk);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  font-family: var(--body);
  font-size: var(--fs-xs); line-height: 1.6; color: var(--ink-2);
  white-space: pre-wrap; word-break: break-word;
  max-height: 36vh; overflow-y: auto;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 33rem) {
  .hero__readouts { gap: var(--s5); }
  .nextup__go { width: 2.6rem; height: 2.6rem; }
  .nextup__go svg { width: 1.2rem; height: 1.2rem; }
  .phase__aside { flex-direction: row; align-items: center; gap: var(--s3); }
  .bar__eyebrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
