@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #f5f3fa;
  --surface: #ffffff;
  --surface-2: #efecf7;
  --text: #1b1838;
  --muted: #6c6789;
  --border: #e4e0f0;
  --rose: #e0476b;
  --rose-soft: #fbe1e8;
  --aqua: #1a9790;
  --aqua-soft: #d5f1ee;
  --gold: #b8871f;
  --gold-soft: #fbf0d4;
  --violet: #6d55d1;
  --violet-soft: #ebe6fb;
  --blue: #3f6fd1;
  --blue-soft: #e2eafb;
  --on-rose: #ffffff;
  --shadow: 0 1px 2px rgb(27 24 56 / 0.04), 0 8px 24px rgb(27 24 56 / 0.06);
  --glass: rgb(255 255 255 / 0.78);

  /* The hero is always a night sky, in both themes. */
  --night-1: #0a0f26;
  --night-2: #1f1b4d;
  --night-3: #45306b;
  --star: #f4f1ff;
  --moon-lit: #f6ecd2;
  --moon-dark: #2b2a55;
  --hero-text: #f4f1ff;
  --hero-muted: #b9b3dc;
  --hero-rose: #ff7393;
  --hero-aqua: #5fd8cc;
  --hero-gold: #f5d07c;
  --hero-dot: rgb(255 255 255 / 0.18);

  --radius: 20px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #090b1a;
    --surface: #13162c;
    --surface-2: #1d2140;
    --text: #eeeaf8;
    --muted: #9c98ba;
    --border: #272b4d;
    --rose: #ff6f8e;
    --rose-soft: #47203a;
    --aqua: #4fd1c5;
    --aqua-soft: #10363d;
    --gold: #f3cf7a;
    --gold-soft: #3a3120;
    --violet: #a996ff;
    --violet-soft: #2a2552;
  --blue: #7fa2ff;
  --blue-soft: #1c2a52;
    --on-rose: #1a0d16;
    --shadow: none;
    --glass: rgb(19 22 44 / 0.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #090b1a;
  --surface: #13162c;
  --surface-2: #1d2140;
  --text: #eeeaf8;
  --muted: #9c98ba;
  --border: #272b4d;
  --rose: #ff6f8e;
  --rose-soft: #47203a;
  --aqua: #4fd1c5;
  --aqua-soft: #10363d;
  --gold: #f3cf7a;
  --gold-soft: #3a3120;
  --violet: #a996ff;
  --violet-soft: #2a2552;
  --blue: #7fa2ff;
  --blue-soft: #1c2a52;
  --on-rose: #1a0d16;
  --shadow: none;
  --glass: rgb(19 22 44 / 0.8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.45 var(--sans);
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

#app {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 16px calc(110px + env(safe-area-inset-bottom));
}

.page-title { font-family: var(--serif); font-size: 2rem; font-weight: 600; letter-spacing: -0.01em; }
.page-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(20px + env(safe-area-inset-top)) 0 16px;
}
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.stack > * + * { margin-top: 12px; }
.section-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 24px 4px 10px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 12px; }
.card-title { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; margin-bottom: 10px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 500;
  min-height: 46px;
  transition: transform 0.1s;
}
.btn.primary {
  background: linear-gradient(135deg, var(--rose), color-mix(in oklab, var(--rose) 70%, var(--violet)));
  border: 0; color: var(--on-rose); font-weight: 600;
  box-shadow: 0 6px 20px color-mix(in oklab, var(--rose) 35%, transparent);
}
.btn.ghost { background: transparent; }
.btn.wide { width: 100%; }
.btn.danger { color: var(--rose); }
.btn.sm { min-height: 38px; padding: 6px 14px; font-size: 0.9rem; }
.btn:active { transform: scale(0.97); }
.link { background: none; border: 0; padding: 6px; color: inherit; opacity: 0.8; text-decoration: underline; text-underline-offset: 3px; font-size: 0.9rem; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------------------------------------------------------------- Hero */
.hero {
  position: relative;
  margin: 0 -16px;
  padding: calc(14px + env(safe-area-inset-top)) 16px 28px;
  color: var(--hero-text);
  background:
    radial-gradient(120% 70% at 50% 0%, transparent 40%, rgb(0 0 0 / 0.25)),
    linear-gradient(170deg, var(--night-1) 0%, var(--night-2) 55%, var(--night-3) 100%);
  border-radius: 0 0 32px 32px;
  overflow: hidden;
  isolation: isolate;
}
/* A scatter of stars, drawn with gradients so there are no image requests. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.9;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, var(--star), transparent),
    radial-gradient(1px 1px at 27% 62%, var(--star), transparent),
    radial-gradient(1.5px 1.5px at 41% 9%, var(--star), transparent),
    radial-gradient(1px 1px at 58% 33%, var(--star), transparent),
    radial-gradient(1.3px 1.3px at 73% 14%, var(--star), transparent),
    radial-gradient(1px 1px at 88% 41%, var(--star), transparent),
    radial-gradient(1.2px 1.2px at 8% 79%, var(--star), transparent),
    radial-gradient(1px 1px at 93% 82%, var(--star), transparent),
    radial-gradient(1.4px 1.4px at 66% 91%, var(--star), transparent),
    radial-gradient(1px 1px at 35% 87%, var(--star), transparent),
    radial-gradient(1px 1px at 81% 64%, var(--star), transparent),
    radial-gradient(1.1px 1.1px at 19% 45%, var(--star), transparent);
}
.hero-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.wordmark { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; display: flex; align-items: center; gap: 8px; letter-spacing: 0.01em; }
.wordmark .icon { color: var(--hero-gold); width: 20px; height: 20px; }
.hero-date { color: var(--hero-muted); font-size: 0.9rem; }

.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 6px; }
.wk { background: none; border: 0; padding: 4px 0; display: grid; justify-items: center; gap: 6px; color: var(--hero-text); }
.wk .dow { font-size: 0.72rem; color: var(--hero-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.wk .num {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-size: 0.95rem; font-weight: 500; border: 1.5px solid transparent;
}
.wk.period .num { background: var(--hero-rose); color: #2a0b16; font-weight: 600; }
.wk.predicted .num { border: 1.5px dashed var(--hero-rose); }
.wk.fertile .num { background: color-mix(in oklab, var(--hero-aqua) 22%, transparent); color: var(--hero-aqua); }
.wk.ovulation .num { border-color: var(--hero-gold); color: var(--hero-gold); box-shadow: 0 0 12px color-mix(in oklab, var(--hero-gold) 50%, transparent); }
.wk.today .dow { color: var(--hero-text); font-weight: 600; }
.wk.today .num { outline: 2px solid var(--hero-text); outline-offset: 2px; }

.ring-wrap { position: relative; display: grid; place-items: center; margin: 4px auto 10px; width: min(84vw, 330px); }
.ring { width: 100%; height: auto; display: block; overflow: visible; }
.ring .dot { fill: var(--hero-dot); }
.ring .dot.period { fill: var(--hero-rose); }
.ring .dot.period-soft { fill: color-mix(in oklab, var(--hero-rose) 40%, transparent); }
.ring .dot.fertile { fill: var(--hero-aqua); }
.ring .dot.ovulation { fill: var(--hero-gold); }
.ring .dot.past { opacity: 0.55; }
.ring .today-ring { fill: none; stroke: var(--hero-text); stroke-width: 2.5; }
.ring .today-dot { fill: var(--hero-text); }
.ring-center { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; padding: 0 64px; }
.moon { display: block; filter: drop-shadow(0 0 18px rgb(246 236 210 / 0.35)); margin-bottom: 10px; }
.ring-center .label { font-size: 0.78rem; color: var(--hero-muted); text-transform: uppercase; letter-spacing: 0.12em; }
.ring-center .big { font-family: var(--serif); font-size: 3.4rem; font-weight: 500; line-height: 1; margin: 4px 0 2px; letter-spacing: -0.02em; }
.ring-center .sub { font-size: 1rem; color: var(--hero-text); }

.hero-actions { display: grid; justify-items: center; gap: 6px; }
.hero-actions .btn.primary { min-width: 220px; min-height: 52px; font-size: 1.02rem; }
.hero-actions .link { color: var(--hero-muted); }
.hero-note { color: var(--hero-muted); font-size: 0.95rem; padding: 12px 0; }

/* ---------------------------------------------------------------- Today */
.phase-card { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.phase-card .moon { margin: 0; filter: none; }
.phase-card .moon-name { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.phase-card .phase-name { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; margin-top: 2px; }
.phase-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.fact-card .fact-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--violet);
}
.fact-card .fact-label .icon { width: 16px; height: 16px; }
.fact-card .fact-text { font-family: var(--serif); font-size: 1.08rem; line-height: 1.5; margin: 10px 0 6px; }
.fact-card .link { padding: 6px 0; color: var(--muted); }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 14px 12px; box-shadow: var(--shadow); }
.tile .k { font-size: 0.75rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.tile .v { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; margin-top: 6px; line-height: 1.1; }
.tile .s { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.pip { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.pip.rose { background: var(--rose); }
.pip.aqua { background: var(--aqua); }
.pip.gold { background: var(--gold); }
.pip.violet { background: var(--violet); }
.pip.blue { background: var(--blue); }

.notice { border-radius: 14px; padding: 12px 14px; background: var(--surface-2); font-size: 0.9rem; color: var(--muted); margin-top: 12px; }
.notice .link { color: var(--text); }
.notice.warn { background: var(--rose-soft); color: var(--text); }

/* ---------------------------------------------------------------- Calendar */
.cal-sticky {
  position: sticky; top: 0; z-index: 5;
  margin: 0 -16px; padding: calc(12px + env(safe-area-inset-top)) 16px 0;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.cal-sticky .page-head { padding: 0 0 10px; }
.dows { display: grid; grid-template-columns: repeat(7, 1fr); padding-bottom: 8px; }
.dows div { text-align: center; font-size: 0.75rem; color: var(--muted); font-weight: 500; }

.month { padding-top: 22px; scroll-margin-top: 130px; }
.month h2 { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; margin: 0 4px 12px; }
.month h2 span { color: var(--muted); font-weight: 400; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 6px; }
.cal-day {
  position: relative; border: 0; background: none; padding: 0;
  display: grid; justify-items: center; align-content: start; height: 52px;
}
.cal-day .n {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-size: 0.98rem; border: 1.5px solid transparent; position: relative;
}
.cal-day.blank { visibility: hidden; }
.cal-day.period .n { background: var(--rose); color: var(--on-rose); font-weight: 600; }
.cal-day.predicted .n { border: 1.5px dashed var(--rose); color: var(--rose); }
.cal-day.fertile .n { background: var(--aqua-soft); color: var(--aqua); font-weight: 500; }
.cal-day.ovulation .n { background: var(--gold-soft); border-color: var(--gold); color: var(--gold); font-weight: 600; }
.cal-day.today .n { outline: 2px solid var(--text); outline-offset: 2px; }
.cal-day.today .n::before { content: "Today"; position: absolute; top: -15px; font-size: 0.6rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text); font-weight: 600; }
.cal-day.future-edit { opacity: 0.35; }

/* Edit mode: a check circle under each day, like Flo's "Edit period dates". */
.cal-day.editing { height: 70px; }
.cal-day.editing .n { background: none !important; color: var(--text) !important; border-color: transparent !important; height: 30px; }
.cal-day .check {
  width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--border); margin-top: 4px;
  display: grid; place-items: center; background: var(--surface);
}
.cal-day .check .icon { width: 16px; height: 16px; stroke-width: 2.6; opacity: 0; }
.cal-day.on .check { background: var(--rose); border-color: var(--rose); color: var(--on-rose); }
.cal-day.on .check .icon { opacity: 1; }

.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 0.78rem; color: var(--muted); padding-bottom: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.swatch.period { background: var(--rose); }
.swatch.predicted { border: 1.5px dashed var(--rose); }
.swatch.fertile { background: var(--aqua-soft); border: 1.5px solid var(--aqua); }
.swatch.ovulation { background: var(--gold-soft); border: 1.5px solid var(--gold); }

.edit-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
  display: flex; gap: 10px; justify-content: center;
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
  background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
}
.edit-bar .btn { flex: 1; max-width: 220px; }
.fab-today { position: fixed; right: 20px; bottom: calc(100px + env(safe-area-inset-bottom)); z-index: 9; box-shadow: var(--shadow); }

/* ---------------------------------------------------------------- Insights */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-grid .tile .v { font-size: 1.6rem; }
.hist { display: grid; gap: 12px; }
.hist-row { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; gap: 10px; font-size: 0.85rem; }
.hist-row .d { color: var(--muted); }
.hist-row .len { text-align: right; font-weight: 500; }
.hist-bar { position: relative; height: 12px; display: flex; gap: 2px; }
.hist-bar i { display: block; height: 100%; border-radius: 4px; }
.hist-bar .p { background: var(--rose); }
.hist-bar .r { background: var(--surface-2); }
.hist-bar .avg { position: absolute; top: -4px; bottom: -4px; width: 0; border-left: 1.5px dashed var(--muted); }
.chart-legend { display: flex; gap: 14px; font-size: 0.78rem; color: var(--muted); margin-top: 12px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 14px; height: 8px; border-radius: 2px; display: inline-block; }

/* ---------------------------------------------------------------- Settings */
.list { padding: 4px 0; }
.row { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 6px 18px; }
.row + .row { border-top: 1px solid var(--border); }
.row .grow { flex: 1; }
.row .hint { font-size: 0.82rem; color: var(--muted); }
.row-ico { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.row-ico.rose { background: var(--rose-soft); color: var(--rose); }
.row-ico.aqua { background: var(--aqua-soft); color: var(--aqua); }
.row-ico.violet { background: var(--violet-soft); color: var(--violet); }
.row-ico.gold { background: var(--gold-soft); color: var(--gold); }
.row-btn { width: 100%; border: 0; background: none; text-align: left; }
.switch { appearance: none; width: 50px; height: 30px; background: var(--border); border-radius: 999px; position: relative; flex: none; transition: background .15s; margin: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgb(0 0 0 / .25); }
.switch:checked { background: var(--aqua); }
.switch:checked::after { transform: translateX(20px); }
select, input[type="date"] { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px; min-height: 44px; }
.about { text-align: center; color: var(--muted); font-size: 0.85rem; padding: 20px 8px; }
.about .moon { margin: 0 auto 8px; filter: none; }

/* ---------------------------------------------------------------- Nav */
.nav {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(14px + env(safe-area-inset-bottom));
  width: min(calc(100% - 28px), 440px);
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: 0 10px 30px rgb(10 10 40 / 0.18);
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 6px; z-index: 10;
}
.nav button {
  border: 0; background: none; padding: 8px 4px; border-radius: 20px;
  display: grid; justify-items: center; gap: 2px; font-size: 0.72rem; color: var(--muted);
}
.nav button[aria-current="page"] { color: var(--text); background: var(--surface-2); font-weight: 600; }
.nav button[aria-current="page"] .icon { color: var(--rose); }

.toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: 0.92rem; z-index: 30;
  display: flex; align-items: center; gap: 14px; white-space: nowrap;
  animation: fade .15s;
}
.toast-undo { background: none; border: 0; color: inherit; font-weight: 700; text-decoration: underline; padding: 4px; }

/* Onboarding */
.welcome { text-align: center; padding: 24px 8px 8px; }
.welcome h1 { font-family: var(--serif); font-size: 2.4rem; font-weight: 500; margin: 14px 0 6px; }
.welcome .moon { margin: 0 auto; }
.onboard-form { display: grid; gap: 12px; margin-top: 20px; }
.onboard-form input { width: 100%; }

@keyframes up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.ring .dot { animation: fade .5s backwards; }
.card, .tile { animation: rise .35s backwards; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Chart legend keys and log tag icons */
.chart-legend .key-period { background: var(--rose); }
.chart-legend .key-rest { background: var(--surface-2); border: 1px solid var(--border); }
.chart-legend .key-avg { width: 0; height: 12px; border-left: 1.5px dashed var(--muted); border-radius: 0; }

/* Phase card extras */
.tappable { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.tappable:active { transform: scale(0.99); }
.phase-card .more { color: var(--violet); font-size: 0.9rem; font-weight: 500; margin-top: 6px; }
.badge {
  display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  background: var(--violet-soft); color: var(--violet); white-space: nowrap;
}
.badge.aqua { background: var(--aqua-soft); color: var(--aqua); margin-top: 6px; }

/* Bottom sheet */
.scrim { position: fixed; inset: 0; background: rgb(6 6 20 / 0.5); z-index: 20; animation: fade .18s; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 21;
  max-width: 520px; margin: 0 auto; max-height: 90vh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); border-radius: 28px 28px 0 0;
  padding: 10px 18px calc(28px + env(safe-area-inset-bottom));
  animation: up .24s cubic-bezier(.2,.8,.2,1);
}
.grabber { width: 40px; height: 5px; border-radius: 5px; background: var(--border); margin: 0 auto 14px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sheet-head h2 { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; }
.sheet-foot { margin: 16px 4px 0; }

/* Phase wheel */
.wheel { display: block; width: 210px; height: auto; margin: 8px auto 12px; }
.wheel-arc { stroke-linecap: butt; }
.wheel-arc.rose { stroke: var(--rose); }
.wheel-arc.violet { stroke: var(--violet); }
.wheel-arc.gold { stroke: var(--gold); }
.wheel-arc.blue { stroke: var(--blue); }
.wheel-today { fill: var(--text); stroke: var(--bg); stroke-width: 3; }
.wheel-day { font-family: var(--serif); font-size: 26px; font-weight: 600; fill: var(--text); }
.wheel-of { font-size: 13px; fill: var(--muted); }

/* Phase list */
.phase-list { display: grid; gap: 8px; }
.phase-item { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.phase-item.open { box-shadow: var(--shadow); }
.phase-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: none; border: 0; text-align: left; min-height: 52px; }
.phase-row .pip { width: 12px; height: 12px; }
.phase-row .grow { flex: 1; }
.phase-row .chev { color: var(--muted); font-size: 1.2rem; width: 16px; text-align: center; }
.phase-detail { margin: 0; padding: 0 16px 16px 40px; }
.phase-detail dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }
.phase-detail dt:first-child { margin-top: 0; }
.phase-detail dd { margin: 4px 0 0; font-size: 0.95rem; line-height: 1.5; }
