/* Cut Tracker — design tokens first, then layout, then components.
   Tune the tokens; the structure below reads from them. */

:root {
  /* Palette */
  --milk:     #F6F5F1;
  --ink:      #1D2422;
  --yolk:     #E8A13A;
  --sage:     #7C8B7F;
  --brick:    #C0522C;
  --hairline: #DDDAD2;

  /* Tinted surfaces, derived from the palette above */
  --sage-tint: rgba(124, 139, 127, 0.18);
  --yolk-tint: rgba(232, 161, 58, 0.18);
  --ink-soft:  rgba(29, 36, 34, 0.58);

  /* Type */
  --font-display: 'Bricolage Grotesque', Georgia, serif;
  --font-body:    'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;

  /* Rhythm */
  --gap:    16px;
  --gap-sm: 8px;
  --gap-lg: 28px;
  --radius: 12px;
  --tap:    44px;               /* minimum tap target */

  --appbar-h: 60px;
  --tabbar-h: 58px;
  --speed: 200ms;
}

@media (prefers-reduced-motion: reduce) {
  :root { --speed: 0ms; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

* { box-sizing: border-box; }

/* Several components below set `display`, which would otherwise beat the
   browser's default styling for the `hidden` attribute. */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  background: var(--milk);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}

/* Every number in this app is mono and tabular. No exceptions. */
.num, input.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin: 0; }

button, input, textarea, select { font: inherit; color: inherit; }

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

/* ── Chrome ─────────────────────────────────────────────────────────── */

.loadbar {
  position: fixed; inset: 0 auto auto 0;
  height: 2px; width: 100%;
  background: var(--yolk);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--speed) ease-out, opacity var(--speed);
  opacity: 0; z-index: 60;
}
.loadbar.on { transform: scaleX(0.7); opacity: 1; }

.appbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--gap);
  min-height: var(--appbar-h);
  padding: 0 var(--gap);
  padding-top: env(safe-area-inset-top);
  background: var(--milk);
  border-bottom: 1px solid var(--hairline);
}

.view-title { font-size: 24px; letter-spacing: -0.01em; }

.appbar-side { display: flex; align-items: center; gap: 2px; }
.icon-btn.gear { font-size: 20px; }

.pager { display: flex; align-items: center; gap: 2px; }
.pager[hidden] { display: none; }
.pager-arrow,
.pager-date {
  min-height: var(--tap);
  padding: 0 10px;
  background: none; border: 0;
  cursor: pointer;
}
.pager-arrow { font-size: 22px; line-height: 1; color: var(--ink-soft); }
.pager-date {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  min-width: 92px;
}

main { padding: var(--gap) var(--gap) calc(var(--tabbar-h) + 48px); }
.view { max-width: 560px; margin: 0 auto; }

.tabbar {
  position: fixed; inset: auto 0 0 0; z-index: 40;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--milk);
  border-top: 1px solid var(--hairline);
  padding-bottom: env(safe-area-inset-bottom);
}
.tab {
  min-height: var(--tabbar-h);
  background: none; border: 0; cursor: pointer;
  font-size: 13px; font-weight: 500;
  color: var(--ink-soft);
  border-top: 2px solid transparent;
  margin-top: -1px;
}
.tab.on { color: var(--ink); border-top-color: var(--ink); }

/* ── The dual meter ─────────────────────────────────────────────────── */

.meters { display: grid; gap: var(--gap-lg); margin-bottom: var(--gap-lg); }

.meter-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--gap-sm); margin-bottom: 10px;
}
.meter-name {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.meter-read { display: flex; align-items: baseline; gap: 4px; }
.num-lg { font-size: 30px; font-weight: 500; letter-spacing: -0.02em; }
.unit { font-size: 14px; color: var(--ink-soft); }
.meter-target { font-size: 13px; color: var(--ink-soft); margin-left: 4px; }

.track {
  position: relative;
  height: 22px;
  background: var(--hairline);
  border-radius: 4px;
  overflow: hidden;
}

/* The target band. Sits above the bars so its edges stay readable whether the
   bar has reached them or not; the tint only shows on the untouched track. */
.zone {
  position: absolute; top: 0; bottom: 0; z-index: 2;
  background: var(--sage-tint);
  border-left: 1.5px solid rgba(29, 36, 34, 0.45);
  border-right: 1.5px solid rgba(29, 36, 34, 0.45);
  pointer-events: none;
}
.zone-yolk { background: var(--yolk-tint); }

/* Calories: the remaining budget, anchored at the top of the band, draining
   rightward as the day is spent. It empties exactly at kcal_max. */
.drain {
  position: absolute; top: 0; bottom: 0;
  background: var(--sage);
  transition: left var(--speed) ease-out, width var(--speed) ease-out;
}
/* Past the band: overage grows rightward in brick. */
.over {
  position: absolute; top: 0; bottom: 0;
  background: var(--brick);
  transition: left var(--speed) ease-out, width var(--speed) ease-out;
}

/* Protein: fills from the left toward the floor. */
.fill {
  position: absolute; top: 0; bottom: 0; left: 0;
  background: var(--yolk);
  transition: width var(--speed) ease-out;
}

.meter-foot {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--ink-soft);
  min-height: 1em;
}
.meter-foot.over { color: var(--brick); }
.meter-foot.good { color: var(--sage); }

/* ── Blocks, chips, rows ────────────────────────────────────────────── */

.block { margin-bottom: var(--gap-lg); }
.block-title {
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.chips { display: flex; flex-wrap: wrap; gap: var(--gap-sm); }
.chip {
  min-height: var(--tap);
  padding: 6px 14px;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  text-align: left;
}
.chip:active { background: var(--hairline); }
.chip-name { font-size: 14px; font-weight: 500; }
.chip-meta { font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); }
.chip-meal { border-color: var(--ink); }
.chip-add { border-style: dashed; color: var(--ink-soft); }
.chips .empty { flex-basis: 100%; padding: 0 0 4px; }

.group-label {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--gap-sm);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-soft);
  padding: 14px 0 4px;
  border-bottom: 1px solid var(--hairline);
  margin: 0;
}

.row {
  display: flex; align-items: center; gap: var(--gap-sm);
  width: 100%;
  min-height: var(--tap);
  padding: 10px 0;
  background: none; border: 0; border-bottom: 1px solid var(--hairline);
  text-align: left; cursor: pointer;
}
.row-main { flex: 1; min-width: 0; }
.row-name { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-sub { font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); }
.row-macros { font-family: var(--font-mono); font-size: 13px; text-align: right; white-space: nowrap; }
.row-macros b { font-weight: 500; }
.row-macros .p { color: var(--yolk); }
.star { color: var(--yolk); }

/* A named meal: the header carries the name, its ingredients sit indented
   under it behind a rule, so the meal reads as one thing with parts. */
.row-group .row-name { font-weight: 500; }
.row-group { border-bottom: 0; }
.group-members { padding-left: var(--gap); border-left: 1px solid var(--hairline); }
.group-members .row-name { color: var(--ink-soft); }

.total-row {
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 2px 14px;
  padding: 12px 0;
  font-family: var(--font-mono); font-size: 13px;
  border-top: 1px solid var(--ink);
  margin-top: 4px;
}

.empty {
  padding: 4px 0 12px;
  color: var(--ink-soft);
  font-size: 14px;
}
.empty b { font-weight: 600; color: var(--ink); }

/* ── Controls ───────────────────────────────────────────────────────── */

.btn {
  min-height: var(--tap);
  padding: 0 16px;
  background: none;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 15px; font-weight: 500;
}
.btn:active { background: var(--hairline); }
.btn-solid { background: var(--ink); color: var(--milk); }
.btn-solid:active { opacity: 0.85; }
.btn-block { width: 100%; margin-bottom: var(--gap); }
.btn-quiet { border-color: var(--hairline); color: var(--ink-soft); }
.btn-danger { border-color: var(--brick); color: var(--brick); }

.icon-btn {
  width: var(--tap); height: var(--tap);
  background: none; border: 0; cursor: pointer;
  font-size: 24px; line-height: 1; color: var(--ink-soft);
}

.segmented {
  display: flex; gap: 4px;
  padding: 4px;
  background: var(--hairline);
  border-radius: var(--radius);
  margin-bottom: var(--gap);
}
.seg {
  flex: 1; min-height: 38px;
  background: none; border: 0; border-radius: 9px;
  cursor: pointer; font-size: 14px; font-weight: 500;
  color: var(--ink-soft);
}
.seg.on { background: var(--milk); color: var(--ink); }

/* Quantity stepper: ± 0.5 either side of a mono readout. */
.stepper { display: flex; align-items: center; gap: 2px; }
.stepper button {
  width: var(--tap); height: var(--tap);
  background: none; border: 1px solid var(--hairline); border-radius: 8px;
  cursor: pointer; font-size: 18px; line-height: 1;
}
.stepper button:active { background: var(--hairline); }
.stepper .qty {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  min-width: 44px; text-align: center; font-size: 15px;
}

.field { display: block; margin-bottom: var(--gap); }
.field-label {
  display: block;
  font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
/* "optional" sits inside a field label without shouting like one. */
.field-opt { text-transform: none; letter-spacing: 0; opacity: 0.7; font-weight: 400; }
/* Input chrome hangs off the grids as well as .field: the Scan review list
   uses a bare .field-row, and unstyled number inputs keep their ~180 px
   browser default width and overflow the viewport. */
.field input[type="text"],
.field input[type="number"],
.field input[type="search"],
.field-row input,
.field-pair input {
  width: 100%;
  min-width: 0;
  min-height: var(--tap);
  padding: 0 12px;
  background: var(--milk);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
.field-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-sm); }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-sm); }

.check { display: flex; align-items: center; gap: var(--gap-sm); min-height: var(--tap); }
.check input { width: 20px; height: 20px; accent-color: var(--ink); }

.weight-row { display: flex; align-items: center; gap: var(--gap-sm); }
.weight-row input {
  width: 110px; min-height: var(--tap);
  padding: 0 12px;
  background: var(--milk);
  border: 1px solid var(--hairline); border-radius: var(--radius);
}

.hint { font-size: 13px; color: var(--ink-soft); margin: 0 0 var(--gap); }

/* ── Sheets and modals ──────────────────────────────────────────────── */

.backdrop {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(29, 36, 34, 0.4);
  display: flex; align-items: flex-end; justify-content: center;
}
.backdrop-center { align-items: center; padding: var(--gap); }

.sheet {
  width: 100%; max-width: 560px;
  max-height: 88vh;
  display: flex; flex-direction: column;
  background: var(--milk);
  border-radius: 18px 18px 0 0;
  padding-bottom: env(safe-area-inset-bottom);
  animation: rise var(--speed) ease-out;
}
@keyframes rise { from { transform: translateY(16px); } to { transform: none; } }

.sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--gap-sm);
  padding: var(--gap) var(--gap) var(--gap-sm);
  border-bottom: 1px solid var(--hairline);
}
.sheet-title { font-size: 19px; }
.sheet-body { flex: 1; overflow-y: auto; padding: var(--gap); }
.sheet-foot {
  display: flex; gap: var(--gap-sm);
  padding: var(--gap);
  border-top: 1px solid var(--hairline);
}
.sheet-foot .btn { flex: 1; }
.sheet-foot .btn-narrow { flex: 0 0 auto; }

.modal {
  width: 100%; max-width: 340px;
  background: var(--milk);
  border-radius: 18px;
  padding: var(--gap-lg) var(--gap) var(--gap);
}
/* ── Sign-in page ──────────────────────────────────────────────────────
   Its own screen, not a modal: there is no app behind it to show through. */

.login-page {
  min-height: 100dvh;
  display: grid; place-items: center;
  padding: var(--gap);
}
.login-card {
  width: 100%; max-width: 340px;
  text-align: center;
}
.login-mark { display: block; margin: 0 auto var(--gap); }
.login-title { font-size: 34px; margin: 0; }
.login-sub { color: var(--muted); margin: 4px 0 var(--gap-lg); }

/* Reserves the button's height so the card doesn't jump when Google's iframe
   lands, or when a status message swaps places with it. */
.login-slot { min-height: 96px; display: grid; place-items: center; gap: var(--gap); }
.login-status { color: var(--muted); margin: 0; font-size: 14px; }
.login-retry { min-width: 120px; }
.login-legal { margin-top: var(--gap-lg); font-size: 13px; color: var(--muted); }
.login-legal a { color: inherit; }

/* A sheet row: name on the left, stepper and remove on the right. */
.sheet-item {
  display: flex; align-items: center; gap: var(--gap-sm);
  padding: var(--gap-sm) 0;
  border-bottom: 1px solid var(--hairline);
}
.sheet-item .row-main { min-width: 0; }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 20px);
  transform: translateX(-50%);
  z-index: 70;
  max-width: 90vw;
  padding: 10px 16px;
  background: var(--ink); color: var(--milk);
  border-radius: 999px;
  font-size: 14px;
}
.toast.err { background: var(--brick); }

/* Scanning on Library's behalf: say so, and offer the way out. */
.dest-banner {
  display: flex; align-items: center; gap: var(--gap-sm); flex-wrap: wrap;
  padding: 10px 12px; margin-bottom: var(--gap);
  border: 1px dashed var(--hairline);
  border-radius: var(--radius);
  font-size: 13px; color: var(--ink-soft);
}
.dest-banner[hidden] { display: none; }
.dest-banner span { flex: 1; min-width: 180px; }

.stub { padding: var(--gap-lg) 0; color: var(--ink-soft); }
.stub-title { font-family: var(--font-display); font-size: 18px; color: var(--ink); margin: 0 0 var(--gap-sm); }

/* ── Scan ───────────────────────────────────────────────────────────── */

.file-btn { display: flex; align-items: center; justify-content: center; }

textarea.field-text {
  width: 100%; min-height: 96px;
  padding: 10px 12px;
  background: var(--milk);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  resize: vertical;
}

.err-note { color: var(--brick); font-size: 13px; margin: var(--gap-sm) 0; }

.btn-row { display: flex; gap: var(--gap-sm); margin-top: var(--gap); }
.btn-row .btn { flex: 1; padding: 0 8px; }

/* Small caps pill: confidence on review items, grade on league rows. */
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 1px 7px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--ink-soft);
  vertical-align: middle;
}
.tag.conf-high { color: var(--sage); border-color: var(--sage); }
.tag.conf-low { color: var(--brick); border-color: var(--brick); }

/* Efficiency grades. Yolk is the protein accent, so the two good bands wear
   it; the weak ones are muted brick — a caution, not an alarm. */
.tag.g-elite, .tag.g-strong { color: var(--yolk); border-color: var(--yolk); }
.tag.g-solid { color: var(--ink); border-color: var(--hairline); }
.tag.g-dilute, .tag.g-filler { color: var(--brick); border-color: var(--brick); opacity: 0.75; }

.verdict {
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: var(--gap);
  margin: var(--gap) 0;
}
.verdict-grade { font-family: var(--font-display); font-size: 26px; font-weight: 700; margin: 0; }
.verdict-grade.g-elite, .verdict-grade.g-strong { color: var(--sage); }
.verdict-grade.g-dilute, .verdict-grade.g-filler { color: var(--brick); }
.verdict-nums { font-size: 13px; margin: 6px 0 0; }
.verdict-nums b { font-size: 15px; font-weight: 600; }

.review-item { padding: var(--gap-sm) 0 var(--gap); border-bottom: 1px solid var(--hairline); }
.review-head { display: flex; align-items: center; gap: var(--gap-sm); margin-bottom: var(--gap-sm); }
.review-name {
  flex: 1; min-width: 0;
  min-height: var(--tap);
  padding: 0 12px;
  background: var(--milk);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
.review-qty { display: flex; align-items: center; justify-content: space-between; margin-top: var(--gap-sm); }

/* ── Onboarding tour ────────────────────────────────────────────────── */

.tour-card {
  position: relative;
  max-width: 400px;
  width: 100%;
  padding: var(--gap-lg) var(--gap) var(--gap);
  display: flex; flex-direction: column;
}
.tour-close {
  position: absolute;
  top: calc(4px + env(safe-area-inset-top));
  right: 4px;
}

/* On a phone the tour takes the whole screen: no rounded card floating over
   the app, just the story — close icon top right, footer pinned to the
   bottom, safe areas respected. */
@media (max-width: 600px) {
  #tour-backdrop { padding: 0; }
  .tour-card {
    max-width: none;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    padding: calc(72px + env(safe-area-inset-top)) var(--gap)
             calc(var(--gap) + env(safe-area-inset-bottom));
  }
  .tour-foot { margin-top: auto; }
}
.tour-title {
  font-size: 22px;
  line-height: 1.2;
  margin: 0 36px var(--gap-sm) 0;
}
.tour-text {
  margin: 0 0 var(--gap);
  font-size: 15px;
  line-height: 1.55;
}
.tour-demo { margin: 0 0 var(--gap); }
.tour-meters { display: grid; gap: 14px; }
.tour-meters .meter-foot { margin-top: 4px; }
.tour-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--gap-sm);
  margin-top: var(--gap-sm);
}
.tour-dots { display: flex; gap: 6px; }
.tour-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hairline); }
.tour-dot.on { background: var(--ink); }
.tour-foot .btn { min-width: 140px; }

/* ── Meal sections ──────────────────────────────────────────────────── */

.section-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.sec-chip {
  min-height: var(--tap);
  padding: 0 4px;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-soft);
}
.sec-chip.on { background: var(--ink); border-color: var(--ink); color: var(--milk); }

/* ── Search ─────────────────────────────────────────────────────────── */

.search-results { margin-bottom: var(--gap); }
.row-action .row-name { color: var(--ink); font-weight: 500; }

/* ── Food form extras ───────────────────────────────────────────────── */

.f-grade { margin-top: 8px; min-height: 20px; }
.check-sm { min-height: 32px; font-size: 13px; color: var(--ink-soft); }
.check-sm input { width: 16px; height: 16px; }

.review-resolved {
  margin: 0 0 var(--gap-sm);
  font-size: 13px;
}

/* ── Weight check-in ────────────────────────────────────────────────── */

.checkin {
  padding: var(--gap);
  margin-bottom: var(--gap-lg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
.checkin.done {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--gap-sm);
  border-color: var(--sage);
}
.checkin-title {
  margin: 0 0 var(--gap-sm);
  font-family: var(--font-display); font-size: 16px; font-weight: 600;
}
.checkin-line { margin: 0; font-size: 15px; }
.checkin-line .tick { color: var(--sage); font-weight: 600; }
.checkin-row { display: flex; align-items: center; gap: var(--gap-sm); }
.checkin-row input {
  width: 110px; min-height: var(--tap);
  padding: 0 12px;
  background: var(--milk);
  border: 1px solid var(--hairline); border-radius: var(--radius);
}
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.link-btn {
  display: inline-block;
  margin-top: var(--gap-sm);
  padding: 6px 0;
  background: none; border: 0; cursor: pointer;
  font-size: 13px; color: var(--ink-soft);
  text-decoration: underline;
}

/* ── Cadence picker ─────────────────────────────────────────────────── */

.cadence-options { display: grid; gap: var(--gap-sm); }
.cadence-opt {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  min-height: var(--tap);
  padding: 10px 12px;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
}
.cadence-opt.on { border-color: var(--ink); }
.cadence-name { font-size: 15px; font-weight: 500; }
.cadence-note { font-size: 12px; color: var(--ink-soft); line-height: 1.35; }

/* ── Trends ─────────────────────────────────────────────────────────── */

.trend-svg { display: block; width: 100%; height: auto; }
.trend-tick {
  font-family: var(--font-mono);
  font-size: 10px;
  fill: var(--ink-soft);
}
.trend-summary {
  display: flex; flex-wrap: wrap; gap: 4px 18px;
  padding: 12px 0;
  border-top: 1px solid var(--ink);
  font-size: 13px;
}
.trend-summary b { font-weight: 600; }

/* League rows stack: name line, metrics line, provenance line. A one-line flex
   squeeze breaks as soon as a product name is longer than a word or two. */
.product-row { padding: 10px 0; border-bottom: 1px solid var(--hairline); }
.product-head { display: flex; align-items: center; gap: var(--gap-sm); }
.product-name { flex: 1; min-width: 0; font-size: 15px; }
.product-head .icon-btn { flex: 0 0 auto; }
.product-stats { margin: 0; font-size: 13px; }
.product-stats b { font-weight: 500; }
.product-sub {
  margin: 2px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
}

@media (max-width: 360px) {
  main { padding-left: 12px; padding-right: 12px; }
  .num-lg { font-size: 26px; }
  .field-row { grid-template-columns: repeat(2, 1fr); }
}
