/* app.css · Shot Day phone app · look v2.4.0 (Nov 4, 2026). v2.4.0: Tools (Move my shot day, Doctor visit summary with a print page, Phone reminders). v2.3.0: Progress screen, Settings gear. v2.2.2: food noise slider. v2.2.1: two-column fields never overlap on iPhone (date inputs).
   From the Google Stitch designs (Nov 4) and .stitch/DESIGN.md, in plain CSS (no Tailwind, no icon font: icons are inline SVG).
   Handled For You brand: clay #D2603A (big text only), clay-dark #A8492A (buttons, small text), pine #1F3A3D, cream #FFF6F1.
   Fraunces for headings, Poppins for body. Follows the phone's light or dark mode. */
:root {
  --bg: #FFF6F1; --card: #FFFCFA; --tint: #F7ECE6; --ink: #1F3A3D; --muted: #565D5A; --line: #EBD8CC;
  --clay: #D2603A; --clay-dark: #A8492A; --on-primary: #FFFFFF; --pine: #1F3A3D; --on-pine: #FFF6F1;
  --mint: #E2F1E7; --mint-ink: #1D4E33; --peach: #FDE3D3; --peach-ink: #7A3214; --red: #FBDAD4; --red-ink: #8C1C0F;
  --shadow: 0 8px 24px rgba(31, 58, 61, .07); --shadow-sm: 0 3px 12px rgba(31, 58, 61, .045);
  --r-hero: 22px; --r-card: 20px; --r-tile: 16px; --r-btn: 15px; --r-in: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14272A; --card: #1F3A3D; --tint: #26464A; --ink: #FFF6F1; --muted: #C3CFCC; --line: #3B5556;
    --clay: #E07A55; --clay-dark: #F09A78; --on-primary: #14272A; --pine: #FFF6F1; --on-pine: #14272A;
    --mint: #1D4E33; --mint-ink: #E2F1E7; --peach: #5C3420; --peach-ink: #FDE3D3; --red: #5A1D14; --red-ink: #FFD2C9;
    --shadow: 0 8px 24px rgba(0, 0, 0, .25); --shadow-sm: 0 3px 12px rgba(0, 0, 0, .2);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 Poppins, system-ui, sans-serif; -webkit-text-size-adjust: 100%; }
main { max-width: 560px; margin: 0 auto; padding: calc(8px + env(safe-area-inset-top)) 16px calc(96px + env(safe-area-inset-bottom)); }
main.setup { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
h1, h2, h3, .big, .brand, .score { font-family: Fraunces, Georgia, serif; }
h1 { color: var(--clay); font-size: 28px; line-height: 1.15; margin: 0; }
h2 { font-size: 20px; margin: 0 0 6px; color: var(--ink); }
h3 { font-size: 18px; margin: 0 0 4px; }
p { margin: 0; }
a { color: var(--clay-dark); }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hide { display: none !important; }

/* ---- top bar and status ---- */
.top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.brand { font-size: 22px; font-weight: 700; color: var(--ink); }
.brand span { font-family: Poppins, system-ui, sans-serif; font-size: 14px; font-weight: 600; color: var(--muted); }
.status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin: 2px 0 10px; min-height: 28px; }
.status.tap-to-sync, .status.offline { background: var(--peach); color: var(--peach-ink); padding: 6px 6px 6px 12px; border-radius: 999px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); flex: none; display: inline-block; }
.dot.ok { background: #2E7D4F; }
.error { background: var(--red); color: var(--red-ink); padding: 10px 12px; border-radius: var(--r-in); margin: 0 0 10px; font-size: 14px; }
.demo { font-size: 12px; color: var(--muted); text-align: center; margin: -4px 0 8px; }
.page-head { margin: 6px 0 14px; }
.lead { color: var(--muted); font-size: 16px; margin-top: 4px; }

/* ---- cards ---- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px; margin: 0 0 12px; box-shadow: var(--shadow-sm); }
.card.soft { background: var(--tint); border-color: transparent; box-shadow: none; }
.card.inset { margin: 12px 0; padding: 14px; }
.over, .cap { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--clay-dark); margin-bottom: 6px; }
.cap { color: var(--muted); letter-spacing: .06em; font-size: 10.5px; margin: 0; }
.over small { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); margin-left: 6px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.pill .ic { width: 14px; height: 14px; }
.pill.mint { background: var(--mint); color: var(--mint-ink); }
.pill.red { background: var(--red); color: var(--red-ink); margin-top: 8px; }
.row-ic { display: flex; gap: 10px; align-items: flex-start; }
.row-ic .ic { color: var(--clay-dark); margin-top: 2px; }
.hint { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.disclaimer { font-size: 12.5px; color: var(--muted); margin: 18px 4px 0; line-height: 1.55; }
.clay { color: var(--clay); font-family: Fraunces, Georgia, serif; font-weight: 700; }

/* ---- Home ---- */
.hero { border: 2px solid var(--clay); border-radius: var(--r-hero); padding: 20px 18px 18px; box-shadow: var(--shadow); }
.hero.taken { border-color: var(--mint-ink); }
.hero.taken .over { color: var(--mint-ink); }
.hero.mini { border-width: 1px; padding: 16px; }
.hero-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hero-top .over { margin: 0; }
.big { font-size: 30px; font-weight: 700; line-height: 1.2; color: var(--clay); margin: 6px 0 2px; }
.hero.mini .big { font-size: 24px; color: var(--ink); }
.hero-sub { color: var(--muted); }
.details { display: grid; gap: 8px; margin-top: 14px; }
.detail { display: flex; gap: 12px; align-items: center; background: var(--mint); color: var(--mint-ink); border-radius: var(--r-in); padding: 10px 12px; }
.detail span { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.detail b { font-weight: 600; font-size: 15px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 2px 0 12px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-tile); padding: 14px; box-shadow: var(--shadow-sm); min-height: 104px; }
.tile-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; }
.tile-top .ic { color: var(--muted); width: 18px; height: 18px; }
.tile .val { font-weight: 600; font-size: 15px; margin-top: 8px; line-height: 1.35; }
.tile .val .clay, .tile .val.clay { font-size: 20px; }
.tile .sub { color: var(--muted); font-size: 12.5px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; }
.card.note { display: flex; gap: 12px; background: var(--peach); color: var(--peach-ink); border-color: transparent; }
.card.note .cap { color: var(--peach-ink); }
.card.note .ic { margin-top: 2px; }

/* ---- buttons ---- */
button { font: inherit; min-height: 44px; padding: 8px 16px; border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
button.primary { width: 100%; min-height: 56px; margin-top: 14px; background: var(--clay-dark); color: var(--on-primary); border: 0; font-weight: 600; font-size: 17px; box-shadow: 0 5px 13px rgba(168, 73, 42, .2); }
button.mini { min-height: 36px; padding: 4px 12px; font-size: 13px; font-weight: 600; color: var(--clay-dark); margin-left: auto; }
button.link { background: none; border: 0; min-height: 44px; padding: 0 4px; color: var(--clay-dark); font-weight: 600; font-size: 14px; }
a.button { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 6px; min-height: 48px; padding: 10px 14px; border-radius: var(--r-btn); background: var(--clay-dark); color: var(--on-primary); font-weight: 600; text-decoration: none; }
.btn-list { display: grid; gap: 8px; margin-top: 12px; }
.btn-list button { justify-content: flex-start; }

/* ---- forms ---- */
label { display: block; margin: 12px 0 0; font-weight: 500; font-size: 14px; }
label small, small.hint { display: block; color: var(--muted); font-weight: 400; font-size: 12.5px; margin-top: 4px; }
small.opt { display: inline; margin: 0 0 0 4px; }
label.plain { margin-top: 0; }
.field-label { font-weight: 500; font-size: 14px; margin: 14px 0 6px; }
.field-label small { color: var(--muted); font-weight: 400; font-size: 12.5px; }
input, select, textarea { display: block; width: 100%; min-height: 48px; margin-top: 6px; padding: 10px 12px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--r-in); }
textarea { resize: vertical; min-height: 72px; }
input:focus, select:focus, textarea:focus { border-color: var(--clay-dark); outline: none; }
input[type=radio], input[type=checkbox] { width: auto; min-height: 0; }
input.other { margin-top: 8px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.two > label { min-width: 0; }
input, select, textarea { min-width: 0; max-width: 100%; }
input[type=date], input[type=time] { -webkit-appearance: none; appearance: none; text-align: left; }
input::-webkit-date-and-time-value { text-align: left; }
.over.gap { margin-top: 16px; }
.two label { margin-top: 12px; }
.with-clear { display: flex; gap: 8px; align-items: center; }
.with-clear input { flex: 1; }
.with-clear button.mini { margin: 6px 0 0; min-height: 48px; }
.big-input { margin-top: 0; }
.unit-wrap { display: flex; align-items: center; gap: 8px; }
.unit-wrap input { font-family: Fraunces, Georgia, serif; font-size: 30px; font-weight: 700; min-height: 64px; color: var(--clay); }
.unit { font-weight: 600; color: var(--muted); }

/* segmented choice (Taken/Skipped, lb/kg, calendar Yes/No) */
.seg { display: flex; gap: 4px; padding: 4px; background: var(--tint); border-radius: 16px; margin: 0 0 12px; }
.seg label { flex: 1; margin: 0; position: relative; }
.seg input, .chip input, .site input, .option input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 12px; font-weight: 600; color: var(--muted); }
.seg input:checked + span { background: var(--pine); color: var(--on-pine); box-shadow: var(--shadow-sm); }

/* chips (symptoms) and site grid */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.chip { position: relative; margin: 0; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); font-weight: 500; font-size: 14px; }
.chip input:checked + span { background: var(--pine); color: var(--on-pine); border-color: var(--pine); }
.sites { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.site { position: relative; margin: 0; }
.site span { display: flex; align-items: center; min-height: 52px; padding: 8px 12px; border-radius: 14px; background: var(--tint); font-weight: 500; font-size: 14px; border: 1.5px solid transparent; }
.site input:checked + span { background: var(--pine); color: var(--on-pine); }

/* severity */
.score { font-size: 30px; font-weight: 700; color: var(--ink); }
.score output { color: var(--clay); }
input[type=range] { padding: 0; min-height: 36px; border: 0; background: transparent; accent-color: var(--clay-dark); }
.score.small { font-size: 22px; display: flex; align-items: baseline; gap: 2px; }
.score.small output { font-size: 22px; }
.score.small .fn-clear { margin-left: auto; font-family: Poppins, system-ui, sans-serif; }
input[type=range].unset { opacity: .45; }
.ticks { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }

/* ---- Settings ---- */
.walk { display: flex; gap: 12px; align-items: center; }
.walk h3 { font-size: 17px; }
.walk p { font-size: 13px; color: var(--muted); }
.walk button { flex: none; font-weight: 600; color: var(--clay-dark); }
.group h2 { margin-bottom: 2px; }
label.ro { font-weight: 500; }
.readonly { margin-top: 6px; padding: 10px 12px; border-radius: var(--r-in); background: var(--tint); color: var(--muted); font-weight: 500; }
.readonly.good { background: var(--mint); color: var(--mint-ink); }
.readonly.warn { background: var(--peach); color: var(--peach-ink); }

/* ---- walk-through ---- */
.wiz-top { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.progress { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin: 4px 0 8px; }
.progress span { height: 5px; border-radius: 3px; background: var(--line); }
.progress span.on { background: var(--clay-dark); }
.options { display: grid; gap: 8px; }
.option { position: relative; margin: 0; }
.option span { display: flex; flex-direction: column; padding: 12px 44px 12px 14px; min-height: 56px; border-radius: 14px; background: var(--card); border: 1.5px solid var(--line); }
.option span::after { content: ''; position: absolute; right: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; border: 2px solid var(--line); }
.option b { font-weight: 600; text-transform: capitalize; }
.option small { color: var(--muted); font-size: 13px; }
.option input:checked + span { border-color: var(--clay-dark); background: var(--peach); }
.option input:checked + span::after { border: 6px solid var(--clay-dark); }
.mini-steps { padding-left: 20px; color: var(--muted); margin: 0; }
.mini-steps li { margin: 6px 0; }
.wiz-nav { display: flex; gap: 10px; margin-top: 20px; position: sticky; bottom: calc(8px + env(safe-area-inset-bottom)); }
.wiz-nav button { flex: 1; min-height: 56px; margin: 0; }
.wiz-nav button.primary { flex: 2; }
.review { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-tile); padding: 6px 16px 12px; margin-bottom: 10px; }
.review-head { display: flex; justify-content: space-between; align-items: center; }
.review p { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14.5px; }
.review p + p { border-top: 1px solid var(--line); }
.review p span { color: var(--muted); }
.review p b { text-align: right; font-weight: 600; }

/* ---- first run ---- */
main.first { padding-top: calc(20px + env(safe-area-inset-top)); padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.welcome h1 { font-size: 34px; margin: 10px 0 6px; color: var(--ink); }
.steps { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.step-card { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-tile); padding: 14px; }
.step-card p { font-size: 13.5px; color: var(--muted); }
.step-card .num { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--clay-dark); font-weight: 600; }
.step-card.now { border-color: var(--clay-dark); }
.step-card.done { opacity: .7; }
.step-card.done .num { background: var(--mint); color: var(--mint-ink); }
.step-card .num .ic { width: 16px; height: 16px; }
.foot { text-align: center; font-size: 13px; color: var(--muted); margin-top: 14px; }

/* ---- tab bar and toast ---- */
nav { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; background: var(--card); border-top: 1px solid var(--line);
  padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); box-shadow: 0 -5px 18px rgba(31, 58, 61, .07); z-index: 5; }
nav a { flex: 1; max-width: 112px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 56px;
  font-size: 11px; font-weight: 500; color: var(--muted); text-decoration: none; border-radius: 12px; }
nav a .ic { width: 22px; height: 22px; }
nav a[aria-current] { color: var(--clay-dark); font-weight: 600; }
nav a[aria-current] .ic { background: var(--peach); border-radius: 10px; padding: 2px 8px; width: 40px; height: 26px; }
#toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%); max-width: calc(100% - 32px);
  background: var(--pine); color: var(--on-pine); padding: 12px 18px; border-radius: 14px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 10; }
#toast.show { opacity: 1; }

/* ---- focus and motion ---- */
.chip input:focus-visible + span, .site input:focus-visible + span, .seg input:focus-visible + span, .option input:focus-visible + span,
button:focus-visible, a:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (max-width: 380px) { main { padding-left: 13px; padding-right: 13px; } .tile { padding: 12px; } nav a { font-size: 10px; } .big { font-size: 27px; } }

/* ---- v2.3.0: Progress (Stitch design) and the Settings gear ---- */
.gear { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--muted); }
.gear.on, .gear:hover { color: var(--clay-dark); background: var(--tint); }
.gear .ic { width: 22px; height: 22px; }
.pcard { padding: 16px; }
.pcard-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.pcard-head > .ic { color: var(--clay-dark); }
.pcard-head h2 { font-size: 19px; margin: 0; flex: 1; }
.pcard-head .cap { white-space: nowrap; }
.takeaway { color: var(--muted); font-size: 13px; margin-top: 10px; }
.empty { color: var(--muted); font-size: 14px; background: var(--tint); border-radius: var(--r-in); padding: 14px; }
.ptiles { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.ptile { background: var(--tint); border-radius: var(--r-tile); padding: 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ptile b { font-family: Fraunces, Georgia, serif; font-size: 20px; font-weight: 700; line-height: 1.25; }
.ptile b.clay { color: var(--clay); }
.ptile b.good { color: var(--mint-ink); }
.ptile small { color: var(--muted); font-size: 12px; }
.rng { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--tint); gap: 2px; }
.rng button { min-height: 32px; padding: 2px 10px; border: 0; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; background: none; color: var(--muted); }
.rng button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.chart { width: 100%; height: auto; display: block; background: var(--tint); border-radius: var(--r-tile); }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font: 9px Poppins, system-ui, sans-serif; }
.chart .goal { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 4; }
.chart .w-line { fill: none; stroke: var(--ink); stroke-width: 1.2; opacity: .45; }
.chart .avg-line { fill: none; stroke: var(--clay-dark); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart .w-dot { fill: var(--ink); }
.chart .w-last { fill: var(--clay-dark); stroke: var(--card); stroke-width: 2; }
.chart .lvl-area { fill: var(--peach); opacity: .8; }
.chart .lvl-line { fill: none; stroke: var(--clay-dark); stroke-width: 2; }
.legend { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { display: inline-block; }
.lg.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.lg.avg { width: 14px; height: 3px; border-radius: 2px; background: var(--clay-dark); }
.lg.goal { width: 14px; border-top: 2px dashed var(--muted); }
.plist { display: grid; gap: 8px; }
.prow { display: flex; align-items: center; gap: 10px; background: var(--tint); border-radius: var(--r-tile); padding: 10px 12px; }
.prow > div { flex: 1; min-width: 0; }
.prow b { display: block; font-weight: 600; font-size: 14.5px; }
.prow small { color: var(--muted); font-size: 12.5px; }
.prow .pill { flex: none; }
.badge { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--muted); }
.badge .ic { width: 16px; height: 16px; }
.badge.ok { background: var(--mint); color: var(--mint-ink); }
.badge.red { background: var(--red); color: var(--red-ink); }
.pill.plain { background: var(--card); color: var(--muted); }
.pill.peach { background: var(--peach); color: var(--peach-ink); }
.pill.red { margin-top: 0; }
.pstep { background: var(--tint); border-radius: var(--r-tile); padding: 12px; }
.pstep-top { display: flex; align-items: center; gap: 8px; }
.pstep-top b { font-weight: 600; }
.pstep-top small { margin-left: auto; color: var(--muted); font-size: 12.5px; }
.pstep-nums { display: flex; align-items: baseline; justify-content: space-between; margin-top: 4px; }
.pstep-nums span { font-family: Fraunces, Georgia, serif; font-size: 22px; font-weight: 700; }
.pstep-nums small { color: var(--clay-dark); font-weight: 600; font-size: 13px; }
.hbars { display: grid; gap: 8px; background: var(--tint); border-radius: var(--r-tile); padding: 12px; }
.hbar { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 12.5px; }
.hb-label { color: var(--muted); }
.hb-track { height: 10px; border-radius: 999px; background: var(--card); overflow: hidden; }
.hb-fill { display: block; height: 100%; border-radius: 999px; background: var(--clay-dark); opacity: .55; }
.hb-fill.strong { opacity: 1; }
.hb-fill.met { background: var(--mint-ink); opacity: .7; }
.hb-val { font-weight: 600; min-width: 44px; text-align: right; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; margin-bottom: 10px; }
.week span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0; border-radius: 12px; background: var(--tint); color: var(--muted); }
.week span small { font-size: 11px; font-weight: 600; }
.week span i { font-style: normal; line-height: 18px; }
.week span .ic { width: 18px; height: 18px; }
.week span.done { background: var(--mint); color: var(--mint-ink); }
.week span.today { box-shadow: inset 0 0 0 2px var(--clay-dark); }
blockquote { margin: 10px 0 0; padding: 10px 14px; border-left: 3px solid var(--clay-dark); background: var(--tint); border-radius: 0 12px 12px 0; font-family: Fraunces, Georgia, serif; font-size: 16px; }
blockquote small { display: block; font-family: Poppins, system-ui, sans-serif; font-size: 12px; color: var(--muted); margin-top: 2px; }
details summary { cursor: pointer; text-align: center; color: var(--clay-dark); font-weight: 600; font-size: 13.5px; padding: 10px 0 2px; list-style: none; }
details[open] summary { margin-bottom: 8px; }

/* ---- v2.4.0: Tools ---- */
.top .back { min-height: 44px; width: 44px; padding: 0; border: 0; background: none; color: var(--ink); margin-left: -8px; }
.top .back + .brand { flex: 1; }
.tools { padding-bottom: 6px; }
a.tool { display: flex; align-items: center; gap: 12px; padding: 12px 0; min-height: 56px; color: var(--ink); text-decoration: none; border-top: 1px solid var(--line); }
.tools h2 + a.tool { border-top: 0; }
a.tool > .ic { color: var(--clay-dark); flex: none; }
a.tool span { flex: 1; min-width: 0; }
a.tool b { display: block; font-weight: 600; }
a.tool small { display: block; color: var(--muted); font-size: 12.5px; }
a.tool .chev { color: var(--muted); width: 18px; height: 18px; }
a.tool.solo { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 12px 16px; margin: 4px 0 0; box-shadow: var(--shadow-sm); }
.big.small-big { font-size: 24px; color: var(--ink); }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day { position: relative; margin: 0; }
.day input { position: absolute; opacity: 0; pointer-events: none; }
.day span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); font-weight: 600; font-size: 14px; }
.day span small { font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--clay-dark); }
.day input:checked + span { background: var(--pine); color: var(--on-pine); border-color: var(--pine); }
.day input:checked + span small { color: var(--on-pine); }
.day input:focus-visible + span { outline: 3px solid var(--clay-dark); outline-offset: 2px; }
.rng.wide { display: flex; width: 100%; margin: 0 0 12px; }
.rng.wide button { flex: 1; min-height: 40px; font-size: 12px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 14.5px; margin: 0; }
.kv:first-of-type { margin-top: 10px; }
.kv span { color: var(--muted); }
.kv b { text-align: right; font-weight: 600; }
.ptiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 10px; }
.chart.spark { margin-top: 10px; }
.guide .mini-steps { margin: 0 0 8px; }
.guide button { margin-top: 4px; }
.doc-actions { display: flex; flex-direction: column; gap: 8px; }
.doc-actions button:not(.primary):not(.link) { width: 100%; min-height: 48px; }
form[data-form="questions"] button { margin-top: 8px; }
.print-only { display: none; }
.lines { display: block; border-bottom: 1px solid #999; height: 28px; }

/* ---- print: the doctor visit summary as a plain white page ---- */
@media print {
  :root { --bg: #fff; --card: #fff; --tint: #fff; --ink: #111; --muted: #444; --line: #ccc; --clay: #1F3A3D; --clay-dark: #1F3A3D; --mint: #fff; --mint-ink: #111; --peach: #fff; --peach-ink: #111; --shadow: none; --shadow-sm: none; }
  html, body { background: #fff; color: #111; font-size: 12px; }
  main { max-width: none; padding: 0; }
  nav, .top, .status, .demo, .error, .noprint, #toast, .page-head .lead, a.tool { display: none !important; }
  .page-head h1 { font-size: 20px; color: #1F3A3D; }
  .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; padding: 10px 12px; margin-bottom: 8px; }
  .hero { border: 1px solid #1F3A3D; }
  .ptile { border: 1px solid #ddd; }
  .hb-fill { background: #1F3A3D !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .print-only { display: block; }
  .disclaimer { font-size: 10px; }
  .ptiles, .ptiles.three { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .ptile { padding: 6px 8px; }
  .ptile b { font-size: 15px; }
  .plist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .prow { padding: 4px 6px; }
  .badge { display: none; }
  .pcard-head { margin-bottom: 6px; }
  .pcard-head h2 { font-size: 15px; }
  .hbar { min-height: 0; padding: 2px 0; }
  .chart.spark { height: 50px; width: 100%; }
  .hero.mini .big { font-size: 18px; }
  .kv { padding: 3px 0; }
}
