/* Funding Runway — calm, warm, plain. Mobile first. */

:root {
  --bg: #F7F4EE;
  --surface: #FFFFFF;
  --surface-2: #F0ECE4;
  --ink: #18211D;
  --ink-2: #4B5651;
  --line: #DCD5C8;
  --brand: #1D5A46;
  --brand-hover: #174A3A;
  --brand-ink: #FFFFFF;
  --brand-soft: #E2EEE8;
  --focus: #0B57D0;

  --c-spent: #3E4A45;
  --c-pending: #B9771F;
  --c-committed: #5C7FA6;
  --c-free: #2E8A62;

  --ok-bg: #E3F1E9;   --ok-ink: #145236;
  --warn-bg: #FBEFD9; --warn-ink: #7A4A06;
  --over-bg: #F9E3DC; --over-ink: #8A2E14;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgb(30 40 35 / .06), 0 4px 16px rgb(30 40 35 / .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --nav-h: 68px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121815; --surface: #1A221E; --surface-2: #222C27; --ink: #EDF2EF; --ink-2: #B4C0BA;
    --line: #34403A; --brand: #86CDAE; --brand-hover: #A1DCC2; --brand-ink: #0D1A14; --brand-soft: #1F3329;
    --focus: #8AB4F8;
    --c-spent: #A9B6B0; --c-pending: #E2A54E; --c-committed: #8FB1D6; --c-free: #5CC394;
    --ok-bg: #1C3328; --ok-ink: #A6E3C4; --warn-bg: #3A2D16; --warn-ink: #F3CF92; --over-bg: #3E211A; --over-ink: #F5B6A1;
    --shadow: 0 1px 2px rgb(0 0 0 / .3);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 1.6rem; font-weight: 700; }
h2 { font-size: 1.2rem; font-weight: 650; }
h3 { font-size: 1.02rem; font-weight: 650; }
p { margin: 0; }
a { color: var(--brand); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.small { font-size: .9rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.noscript { padding: 24px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--surface); padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip-link:focus { top: 12px; }

/* ---------------------------------------------------------- layout shell */
.shell { min-height: 100dvh; padding-bottom: calc(var(--nav-h) + 96px + env(safe-area-inset-bottom)); }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top));
  background: var(--bg);
  border-bottom: 1px solid transparent;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand svg { width: 30px; height: 30px; flex: none; }
.pill.local-pill { display: none; }

main { max-width: 600px; margin: 0 auto; padding: 8px 16px 24px; }
.view-head { margin: 8px 0 16px; }
.view-head p { margin-top: 4px; }
.stack > * + * { margin-top: 14px; }

/* bottom navigation (mobile) */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--surface); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: var(--nav-h); text-decoration: none; color: var(--ink-2); font-size: .82rem; font-weight: 600;
}
.nav a svg { width: 24px; height: 24px; }
.nav a[aria-current="page"] { color: var(--brand); }
.nav a[aria-current="page"] svg { stroke-width: 2.4; }

.fab {
  position: fixed; z-index: 31; right: 16px;
  bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom));
  box-shadow: 0 6px 20px rgb(20 60 45 / .28);
}

@media (min-width: 900px) {
  .shell { padding-bottom: 48px; }
  .topbar { padding: 14px 32px; border-bottom-color: var(--line); }
  .pill.local-pill { display: inline-flex; }
  .nav { position: static; display: flex; gap: 4px; background: none; border: 0; padding: 0; }
  .nav a { flex-direction: row; min-height: 44px; padding: 0 14px; border-radius: 999px; font-size: .95rem; gap: 8px; }
  .nav a svg { width: 20px; height: 20px; }
  .nav a[aria-current="page"] { background: var(--brand-soft); }
  .fab { position: static; box-shadow: none; }
  main { max-width: 1040px; padding: 24px 32px; }
  .grid-2 { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; align-items: start; }
  .grid-2 > * + * { margin-top: 0; }
  .runway-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; align-items: start; grid-auto-flow: row dense; }
  .runway-grid > * { grid-column: 2; margin-top: 0 !important; }
  .runway-grid > .hero { grid-column: 1; grid-row: 1 / span 3; }
  .runway-grid > .col-1 { grid-column: 1; }
}

/* ---------------------------------------------------------- components */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
}
.card.flat { box-shadow: none; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }

.btn {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 650;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 999px; text-decoration: none;
  background: var(--brand); color: var(--brand-ink);
  transition: background-color .15s, transform .05s;
}
.btn:hover { background: var(--brand-hover); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; }
.btn.secondary { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); }
.btn.secondary:hover { background: var(--surface-2); }
.btn.ghost { background: transparent; color: var(--brand); padding: 0 12px; }
.btn.ghost:hover { background: var(--brand-soft); }
.btn.danger { background: var(--over-bg); color: var(--over-ink); }
.btn.block { width: 100%; }
.btn.small { min-height: 40px; padding: 0 14px; font-size: .92rem; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row > .btn { flex: 1 1 auto; }
.icon-btn { appearance: none; border: 0; background: transparent; color: var(--ink); width: 48px; height: 48px; border-radius: 999px; display: inline-grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 24px; height: 24px; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 650; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.pill svg { width: 14px; height: 14px; }
.pill.ok { background: var(--ok-bg); color: var(--ok-ink); }
.pill.warn { background: var(--warn-bg); color: var(--warn-ink); }
.pill.over { background: var(--over-bg); color: var(--over-ink); }
.pill.pending { background: var(--warn-bg); color: var(--warn-ink); }

/* ---------------------------------------------------------- runway hero */
.hero { padding: 22px 20px; }
.hero .label { font-weight: 650; color: var(--ink-2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hero .big { font-size: clamp(2.6rem, 11vw, 3.6rem); font-weight: 750; letter-spacing: -0.03em; line-height: 1.05; margin: 6px 0 4px; }
.hero .big.negative { color: var(--over-ink); }
.estimate-tag { font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; border: 1.5px dashed var(--ink-2); color: var(--ink-2); letter-spacing: .02em; }
.entered-tag { font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; border: 1.5px solid var(--ink-2); color: var(--ink-2); letter-spacing: .02em; }

.bar { display: flex; height: 22px; border-radius: 999px; overflow: hidden; background: var(--surface-2); margin: 18px 0 6px; }
.bar > span { height: 100%; flex: none; }
.bar > span + span { border-left: 2px solid var(--surface); }
.seg-spent { background: var(--c-spent); }
.seg-pending { background: repeating-linear-gradient(135deg, var(--c-pending) 0 5px, color-mix(in srgb, var(--c-pending) 45%, var(--surface)) 5px 9px); }
.seg-committed { background: var(--c-committed); }
.seg-free { background: var(--c-free); }
.legend { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 2px; }
.legend li { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.legend li:last-child { border-bottom: 0; font-weight: 700; }
.legend .swatch { width: 14px; height: 14px; border-radius: 4px; }
.legend li:last-child .amt { font-size: 1.05rem; }
.legend .amt { font-variant-numeric: tabular-nums; font-weight: 650; }
.legend .hint { display: block; font-size: .82rem; color: var(--ink-2); font-weight: 400; }

/* status */
.status { display: flex; gap: 14px; align-items: flex-start; border-radius: var(--radius); padding: 18px; border: 1px solid transparent; }
.status .ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgb(255 255 255 / .55); }
.status .ico svg { width: 24px; height: 24px; }
.status h2 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.status.ok { background: var(--ok-bg); color: var(--ok-ink); }
.status.warn { background: var(--warn-bg); color: var(--warn-ink); }
.status.over { background: var(--over-bg); color: var(--over-ink); }
.status.none { background: var(--surface-2); color: var(--ink); }
@media (prefers-color-scheme: dark) { .status .ico { background: rgb(0 0 0 / .2); } }

/* timeline */
.tl { position: relative; height: 76px; margin: 4px 6px 0; }
.tl-track { position: absolute; left: 0; right: 0; top: 34px; height: 8px; border-radius: 9px; background: var(--c-free); overflow: hidden; }
.tl-past { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink-2); opacity: .5; }
.tl-short { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(90deg, var(--c-pending) 0 6px, var(--surface) 6px 10px); }
.tl-today, .tl-run { position: absolute; top: 27px; width: 22px; height: 22px; margin-left: -11px; }
.tl-today i { display: block; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 5px solid var(--ink); }
.tl-run::before { content: ""; display: block; width: 16px; height: 16px; margin: 3px; transform: rotate(45deg); background: var(--c-pending); border: 2px solid var(--surface); }
.tl-label { position: absolute; transform: translateX(-50%); font-size: .82rem; font-weight: 700; white-space: nowrap; }
.tl-label.below { top: 54px; }
.tl-label.above { top: 2px; color: var(--warn-ink); }
.tl-ends { display: flex; justify-content: space-between; font-size: .85rem; color: var(--ink-2); margin-top: 2px; }
.insight { display: flex; gap: 12px; align-items: flex-start; }
.insight svg { flex: none; width: 22px; height: 22px; color: var(--brand); margin-top: 2px; }

/* category runway list */
.cat-list { display: grid; gap: 12px; }
.cat-row { display: block; }
.cat-row .top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cat-row .meta { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 6px; font-size: .9rem; color: var(--ink-2); }
.cat-row .bar { margin: 10px 0 0; }
.cat-row .bar svg { height: 12px; }

/* nudge */
.nudge { border: 1.5px dashed var(--line); background: transparent; box-shadow: none; }
.nudge h2 { margin-bottom: 6px; }
.nudge p { margin-bottom: 14px; }

/* ---------------------------------------------------------- items lists */
.section-head { display: flex; justify-content: space-between; align-items: center; margin: 26px 0 10px; gap: 10px; }
.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.item {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center;
  width: 100%; text-align: left; font: inherit; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 16px; cursor: pointer; min-height: 64px;
}
.item:hover { border-color: var(--ink-2); }
.item .who { font-weight: 650; overflow-wrap: anywhere; }
.item .amt { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.item .sub { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: .88rem; color: var(--ink-2); }
.item.dim { opacity: .72; }
.item-wrap { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: stretch; }
.item-wrap .quick { min-height: 64px; border-radius: var(--radius-sm); }
.empty { text-align: center; padding: 26px 18px; color: var(--ink-2); border: 1.5px dashed var(--line); border-radius: var(--radius); }
.empty p + .btn { margin-top: 14px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  appearance: none; font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer;
  min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink);
}
.chip[aria-pressed="true"] { background: var(--brand-soft); border-color: var(--brand); color: var(--ink); }

/* ---------------------------------------------------------- forms */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > label, .field > .label, fieldset legend { font-weight: 650; font-size: .98rem; }
.field .hint { font-size: .85rem; color: var(--ink-2); }
input[type="text"], input[type="date"], input[type="search"], textarea, select, .money input {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  min-height: 52px; padding: 10px 14px; width: 100%;
}
textarea { min-height: 88px; resize: vertical; }
input:focus-visible, textarea:focus-visible, select:focus-visible { border-color: var(--focus); outline: 2px solid var(--focus); outline-offset: 0; }
input[aria-invalid="true"] { border-color: var(--over-ink); }
.error { color: var(--over-ink); font-size: .9rem; font-weight: 600; }
.money { position: relative; }
.money::before { content: "$"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-2); font-weight: 650; pointer-events: none; }
.money input { padding-left: 30px; font-size: 1.15rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.money.big input { font-size: 1.6rem; min-height: 64px; }

fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
fieldset legend { padding: 0; margin-bottom: 8px; }
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; background: var(--surface-2); padding: 5px; border-radius: 14px; }
.segmented label { position: relative; display: grid; place-items: center; min-height: 46px; border-radius: 10px; font-weight: 650; font-size: .95rem; cursor: pointer; text-align: center; padding: 0 6px; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented label:has(input:checked) { background: var(--surface); box-shadow: var(--shadow); color: var(--brand); }
.segmented label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 1px; }
@media (max-width: 380px) { .segmented.wrap4 { grid-auto-flow: row; grid-template-columns: 1fr 1fr; } }

details.more { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 4px; }
details.more summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; gap: 8px; font-weight: 650; color: var(--brand); list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: "+"; font-size: 1.3rem; width: 20px; text-align: center; }
details.more[open] summary::before { content: "−"; }

.preview { background: var(--brand-soft); border-radius: var(--radius-sm); padding: 12px 14px; margin: 4px 0 16px; font-size: .95rem; }
.preview strong { font-variant-numeric: tabular-nums; }

.fund-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; margin-bottom: 10px; }
.fund-row .field { margin: 0; }
@media (max-width: 420px) { .fund-row { grid-template-columns: 1fr auto; } .fund-row .field:first-of-type { grid-column: 1 / -1; } }

/* ---------------------------------------------------------- sheet (dialog) */
.sheet {
  border: 0; padding: 0; color: var(--ink); background: var(--surface);
  width: 100%; max-width: 100%; max-height: 94dvh; margin: auto 0 0;
  border-radius: 22px 22px 0 0; box-shadow: 0 -8px 40px rgb(0 0 0 / .2);
}
.sheet::backdrop { background: rgb(18 24 21 / .45); }
.sheet[open] { animation: up .2s ease-out; }
@keyframes up { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet-inner { padding: 8px 18px calc(22px + env(safe-area-inset-bottom)); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; position: sticky; top: 0; background: var(--surface); padding: 10px 0; z-index: 2; }
.sheet-head h2 { font-size: 1.25rem; }
.sheet .grabber { width: 40px; height: 5px; border-radius: 9px; background: var(--line); margin: 8px auto 0; }
@media (min-width: 640px) {
  .sheet { max-width: 520px; margin: auto; border-radius: 22px; max-height: 88dvh; }
  .sheet .grabber { display: none; }
  .sheet-inner { padding: 10px 26px 26px; }
}
@media (prefers-reduced-motion: reduce) { .sheet[open] { animation: none; } * { transition: none !important; } }

.choice-grid { display: grid; gap: 12px; }
.choice {
  appearance: none; font: inherit; color: inherit; text-align: left; cursor: pointer;
  display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center;
  padding: 18px; border-radius: var(--radius); border: 1.5px solid var(--line); background: var(--surface);
}
.choice:hover { border-color: var(--brand); background: var(--brand-soft); }
.choice .ci { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.choice .ci svg { width: 26px; height: 26px; }
.choice strong { display: block; font-size: 1.08rem; }
.choice span { color: var(--ink-2); font-size: .92rem; }

.action-list { display: grid; gap: 8px; margin-top: 8px; }
.subpanel { background: var(--surface-2); border-radius: var(--radius-sm); padding: 14px; margin: 8px 0 12px; }

/* ---------------------------------------------------------- setup */
.setup { max-width: 520px; margin: 0 auto; padding: 24px 18px 40px; min-height: 100dvh; display: flex; flex-direction: column; }
.setup .steps { display: flex; gap: 6px; margin: 4px 0 26px; }
.setup .steps span { height: 5px; flex: 1; border-radius: 9px; background: var(--line); }
.setup .steps span.on { background: var(--brand); }
.setup h1 { margin-bottom: 8px; }
.setup .lead { color: var(--ink-2); margin-bottom: 22px; }
.setup .footer { margin-top: auto; padding-top: 22px; display: grid; gap: 10px; }
.welcome-mark { width: 76px; height: 76px; margin: 28px 0 22px; }
.welcome h1 { font-size: 2.1rem; }
.welcome .tagline { font-size: 1.2rem; color: var(--ink-2); margin: 10px 0 24px; }
.points { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 12px; }
.points li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; }
.points svg { width: 22px; height: 22px; color: var(--brand); margin-top: 2px; }

.disclaimer { font-size: .85rem; color: var(--ink-2); line-height: 1.45; }
.footer-note { max-width: 600px; margin: 28px auto 0; padding: 0 16px; text-align: center; }
@media (min-width: 900px) { .footer-note { max-width: 1040px; } }

/* ---------------------------------------------------------- toast */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 50;
  bottom: calc(var(--nav-h) + 88px + env(safe-area-inset-bottom));
  background: var(--ink); color: var(--bg); border-radius: 14px; padding: 12px 12px 12px 18px;
  display: flex; align-items: center; gap: 12px; max-width: calc(100% - 32px); box-shadow: 0 8px 30px rgb(0 0 0 / .25);
  font-weight: 600;
}
.toast[hidden] { display: none; }
.toast button { appearance: none; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 800; text-decoration: underline; min-height: 40px; padding: 0 10px; cursor: pointer; }
@media (min-width: 900px) { .toast { bottom: 32px; } }

@media print {
  .nav, .fab, .topbar .icon-btn { display: none !important; }
  .shell { padding: 0; }
}

/* ---------------------------------------------------------- small utilities */
[data-mt] { margin-top: 14px; }
.center { text-align: center; }
.big-ish { font-size: 2rem; font-weight: 750; letter-spacing: -0.02em; margin: 4px 0; }
.manage-h { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.about-list { padding-left: 20px; margin: 10px 0; display: grid; gap: 6px; }
.provider-chips { margin: -6px 0 16px; }
.subpanel h3 { margin-bottom: 4px; }
.sheet h3.eyebrow { margin: 24px 0 10px; }
.points.small li p { margin: 0; }
.points.small .entered-tag, .points.small .estimate-tag { margin-right: 6px; }
.linklike { appearance: none; border: 0; background: none; padding: 0; font: inherit; color: var(--brand); text-decoration: underline; cursor: pointer; min-height: 0; }
.tl-label.from-left { transform: translateX(-11px); }
.tl-label.from-right { transform: translateX(calc(-100% + 11px)); }

/* ---------------------------------------------------------- RC2: funding periods */
.released-line { display: flex; gap: 8px; align-items: flex-start; margin-top: 6px; color: var(--ink-2); font-size: .95rem; }
.released-line svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--brand); }
.seg-later { background: var(--surface-2); outline: 1.5px solid var(--line); outline-offset: -1.5px; }
.seg-none { background: transparent; outline: 2px dotted var(--ink-2); outline-offset: -2px; }
.segmented.tall label { min-height: 56px; line-height: 1.25; padding: 6px 8px; }
fieldset.availability { margin-top: 18px; }
fieldset.availability .hint { margin-top: 8px; font-size: .85rem; color: var(--ink-2); }
.period-cat { margin: 12px 0; }
.period-cat fieldset { margin-bottom: 10px; }
.period-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; padding: 10px 0; border-bottom: 1px solid var(--line); }
.period-row .field { margin: 0; }
.period-row .p-amt { grid-column: 1 / 3; }
.period-row .icon-btn { grid-row: 1 / 3; grid-column: 3; align-self: center; }
@media (min-width: 640px) { .period-row { grid-template-columns: 1fr 1fr 1fr auto; } .period-row .p-amt { grid-column: auto; } .period-row .icon-btn { grid-row: auto; grid-column: auto; align-self: end; } }
.period-row input[type="date"] { padding: 10px 8px; }
.period-list { list-style: none; margin: 0; padding: 0; }
.period-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.period-list li:last-child { border-bottom: 0; }
