

span.goal-dial { display: block; cursor: default; }
span.goal-dial:active { transform: none; }

/* Today's medicines (home-meds.js), after the owner's reference, in
   one glass card: the label with the count, one quiet row — the
   medicine, its time and state, and an outlined "Log" for that hour —
   and under a hairline the line for what comes next, which opens the
   day in a sheet. */
.med-h { padding: var(--pad-panel) var(--pad-card) 0; }
.med-h-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--pair-x); }
.med-h-head .section-label { margin: 0; padding: 0; }
.med-h-count { font-size: .74rem; font-weight: 600; color: var(--text-mute); font-variant-numeric: tabular-nums; }
/* Keep the action beside the dose; the name yields space before a button
   moves to another row, which made the whole card jump on small phones. */
.med-h-row { display: flex; align-items: center; gap: 0 var(--pair-x); min-height: 56px; }
.med-h-open { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: var(--pair-x); min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.med-h-glyphs { display: flex; flex: none; }
.med-h-glyph { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--mt1); background: var(--mt1-wash); box-shadow: 0 0 0 2px var(--glass-strong); }
.med-h-glyph[data-tint="2"] { color: var(--mt2); background: var(--mt2-wash); }
.med-h-glyph[data-tint="3"] { color: var(--mt3); background: var(--mt3-wash); }
.med-h-glyph[data-tint="4"] { color: var(--mt4); background: var(--mt4-wash); }
.med-h-glyph + .med-h-glyph { margin-inline-start: -14px; }
.med-h-glyph.is-ok { color: var(--accent-ink); background: var(--accent-wash); }
.med-h-glyph.is-ok svg { width: 18px; height: 18px; }
.med-h-what { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--pair-y); }
.med-h-what .med-agenda-name { display: block; font-size: .92rem; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.med-h-sub { font-size: .76rem; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.med-h-when { flex: none; display: flex; flex-direction: column; align-items: center; gap: var(--pair-y); text-align: center; }
.med-h-when time { font-size: .9rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.med-h-when > span { font-size: .7rem; color: var(--text-dim); max-width: 8.5em; line-height: 1.3; }
.med-h-row.is-late .med-h-when > span { color: var(--warn-ink); font-weight: 600; }
.med-h-log { flex: none; display: grid; place-items: center; min-width: 44px; min-height: 44px; margin-inline-start: auto; padding: 0; border: 0; background: none; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.med-h-log > span { padding: 7px 16px; border-radius: 999px; font-size: .84rem; font-weight: 600; color: var(--accent-ink); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent-ink) 55%, transparent); transition: transform .16s var(--ease), background .18s var(--ease); }
.med-h-log:active > span { transform: scale(.97); background: var(--accent-wash); }
.med-h-log:focus-visible, .med-h-open:focus-visible, .med-h-foot:focus-visible { outline: none; }
.med-h-log:focus-visible > span, .med-h-open:focus-visible .med-h-what, .med-h-foot:focus-visible > span { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 8px; }
.med-h-quiet { margin: 0; font-size: .88rem; font-weight: 600; color: var(--accent-ink); }
.med-h-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--pair-x); width: 100%; min-height: 44px; margin-top: var(--say-y); padding: 0; border: 0; border-top: 1px solid var(--hairline-dim); background: none; color: var(--text-dim); font: inherit; font-size: .8rem; text-align: start; cursor: pointer; }
.med-h-foot b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.med-h-foot .is-late { color: var(--warn-ink); font-weight: 600; }
.med-h-foot svg { width: 16px; height: 16px; flex: none; transform: rotate(-90deg); }
html[dir="rtl"] .med-h-foot svg { transform: rotate(90deg); }
@media (max-width: 359px) {
  .med-h-open { gap: var(--say-y); }
  .med-h-glyph { width: 32px; height: 32px; }
  .med-h-glyph + .med-h-glyph { margin-inline-start: -18px; }
  .med-h-log > span { padding-inline: 11px; }
}

/* shared by the sheet: a medicine's colour dot and its name */
.med-tile-line { display: flex; align-items: flex-start; gap: 7px; min-width: 0; }
.med-txt { min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; }
.med-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; margin-top: .42em; background: var(--mt1); }
.med-dot[data-tint="2"] { background: var(--mt2); } .med-dot[data-tint="3"] { background: var(--mt3); } .med-dot[data-tint="4"] { background: var(--mt4); }
.med-agenda-name { font-size: .9rem; font-weight: 600; line-height: 1.3; overflow-wrap: break-word; }
.med-agenda-dose { font-size: .78rem; color: var(--text-dim); overflow-wrap: anywhere; }

/* the sheet: one tile per hour, each dose with its own circle */
.med-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--pair-x); margin: var(--pad-panel) 0 var(--pad-card); }
.med-tile { display: flex; flex-direction: column; padding: var(--pad-panel) var(--pair-x); border-radius: var(--r-md); background: var(--glass); box-shadow: inset 0 0 0 1px var(--hairline); }
.med-tile-head { display: flex; align-items: center; justify-content: space-between; gap: var(--say-y); }
.med-tile-time { font-size: 1.05rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.med-tile-chip { display: inline-flex; align-items: center; gap: 3px; font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; color: var(--text-dim); background: var(--glass-sunk); }
.med-tile-chip svg { width: 12px; height: 12px; }
.med-tile.is-done { background: color-mix(in srgb, var(--accent) 9%, var(--glass)); box-shadow: none; }
.med-tile.is-done .med-tile-chip { color: var(--accent-ink); background: var(--accent-wash); }
.med-tile.is-done .med-tile-time { color: var(--text-dim); }
.med-tile.is-next { box-shadow: inset 0 0 0 1.5px var(--accent); }
.med-tile.is-next .med-tile-chip { color: var(--accent-ink); background: var(--accent-wash); }
.med-tile.is-late { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--warn) 75%, transparent); }
.med-tile.is-late .med-tile-chip { color: var(--warn-ink); background: color-mix(in srgb, var(--warn) 15%, transparent); }
.med-tile .med-agenda-list { list-style: none; margin: var(--say-y) 0 0; padding: 0; }
.med-tile .med-agenda-row { display: flex; align-items: center; gap: var(--say-y); }
.med-tile-line { flex: 1; }
.med-tile .med-agenda-row.is-taken .med-agenda-name { color: var(--text-dim); }
.med-tile .med-agenda-name { font-size: .84rem; overflow-wrap: break-word; }
.med-tile .med-agenda-dose { font-size: .74rem; }
.med-agenda-check { display: grid; place-items: center; width: 44px; height: 44px; margin-inline-end: -10px; padding: 0; border: 0; background: transparent; cursor: pointer; flex: none; -webkit-tap-highlight-color: transparent; }
.med-agenda-tick { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--text-mute); color: transparent; transition: transform .16s var(--ease), background .18s var(--ease); }
.med-agenda-tick svg { width: 14px; height: 14px; stroke-width: 2.8; }
.med-tile.is-late .med-agenda-tick { border-color: var(--warn); }
.med-tile.is-next .med-agenda-tick { border-color: var(--accent-ink); }
.med-agenda-check[aria-pressed="true"] .med-agenda-tick { background: var(--btn); border-color: var(--btn); color: #fff; }
.med-agenda-check:active .med-agenda-tick { transform: scale(.88); }
.med-slot-all { align-self: stretch; margin-top: var(--say-y); min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--accent-ink); font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; }
.med-slot-all > span { display: block; padding: 7px; border-radius: 11px; background: var(--accent-wash); }
.meds-sheet > .btn { width: 100%; }
.med-agenda-check:focus-visible, .med-slot-all:focus-visible { outline: none; }
.med-agenda-check:focus-visible .med-agenda-tick, .med-slot-all:focus-visible > span { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
.med-agenda-empty { font-size: .92rem; color: var(--text-dim); margin-block: var(--pad-panel); }
@media (prefers-reduced-motion: reduce) {
  .med-h-log:active > span, .med-agenda-check:active .med-agenda-tick { transform: none; }
  .med-agenda-tick, .med-h-log > span { transition: none; }
}

/* ---------- drag to reorder ---------- */
.drag-handle {
  flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center;
  padding: 0; border: 0; border-radius: var(--r-sm); background: transparent;
  color: var(--text-mute); cursor: grab; touch-action: none;
}
.drag-handle:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.drag-handle svg { width: 20px; height: 20px; }
.secrow { touch-action: pan-y; transition: transform .12s var(--ease); }
.secrow.dragging {
  position: relative; z-index: 5; cursor: grabbing;
  background: var(--glass-strong); border-radius: var(--r-md);
  box-shadow: var(--shadow-lift); transition: none;
}

/* ---------- lock screen ---------- */
.lockscreen {
  min-height: 78vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; text-align: center;
  padding: 0 8px;
}
.lock-mark { font-size: 2.6rem; }
.lock-title { font-size: 1.1rem; font-weight: 600; margin: 0; }
.pin-input {
  width: 168px; text-align: center; letter-spacing: .6em; text-indent: .6em;
  font-size: 1.6rem; font-weight: 600; padding: 14px 10px;
  border-radius: 16px; border: 1px solid var(--hairline);
  background: var(--glass); color: var(--text);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.lockscreen .btn { max-width: 220px; }

/* ---------- first-run sign in ---------- */
.signin-mark { font-size: 2.4rem; text-align: center; margin-bottom: 6px; }
/* beats `.card > h2`, which would otherwise make this a small caps label */
.card > h2.signin-title {
  font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em;
  text-align: center; margin: 0 0 8px; text-transform: none; color: var(--text);
}
.signin-intro { text-align: center; }
/* The method line under a recipe: no salt, not fried, drained. */
.cook-say {
  margin: 10px 0 0; padding: 10px 12px; border-radius: var(--r-sm, 12px);
  background: var(--glass-sunk); border: 1px solid var(--hairline-dim);
  font-size: .88rem; line-height: 1.45;
}

/* The main-goal card for somebody who is already there: no bar, no
   markers, one sentence and the reason. */
.wt-done { display: grid; gap: 5px; padding: 4px 0 2px; }
.wt-done b { font-size: 1.02rem; font-weight: 650; letter-spacing: -.01em; color: var(--accent-ink); }

/* ---------- deleting the account ----------
   A screen that has to be read, so it is set as prose: one lead line at
   reading size, then plain bulleted lists rather than the app's usual
   rows of cards — a list of what you are about to lose should look like
   a list, not like four more things to tap. */
.lead-line { margin: 0; font-size: .95rem; line-height: 1.5; color: var(--text); }
.plain-list { margin: 10px 0 0; padding-inline-start: 1.15em; display: grid; gap: 6px; }
.plain-list li { font-size: .88rem; line-height: 1.45; color: var(--text-dim); }
/* A heading after a list needs the gap the list does not provide — the
   grid's own gap stops at its last item. */
.plain-list + h2 { margin-top: 16px; }
/* An email is not a promo code: .code-in is monospaced, letter-spaced
   and uppercased, which turns a typed address into shouting and makes
   the check that follows look like it failed. */
.text-in {
  width: 100%; font: inherit; font-size: .95rem;
  padding: 11px 13px; border-radius: var(--r-sm, 12px);
  background: var(--glass-sunk); border: 1px solid var(--hairline);
  color: var(--text);
}
.text-in::placeholder { color: var(--text-mute); }

/* A line from the server, above everything, until it is taken down by
   clearing the field rather than by each person dismissing it. */
.notice-bar {
  margin: 0 0 14px; padding: 11px 14px; border-radius: var(--r-md);
  background: color-mix(in srgb, var(--warn) 15%, transparent);
  color: var(--warn-ink); font-size: .88rem; line-height: 1.45;
  border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent);
}

.gate-mark {
  width: 56px; height: 56px; margin: 22px auto 16px; border-radius: 18px;
  display: grid; place-items: center;
  background: var(--accent-wash); color: var(--accent-ink);
}

/* ---------- the free week is over ----------
   Read top to bottom in about eight seconds: the seven days drawn, one
   line about them, what is kept, the way forward, the way back in. */
.gate { max-width: 420px; margin: 0 auto; padding: 8px 4px 32px; text-align: center; }

/* Seven marks, six spent and one open — the shape of what just
   happened, so the sentence under it can be short. */
.gate-week { display: flex; justify-content: center; gap: 9px; margin: 18px 0 22px; }
.gate-week .gd {
  /* Each dot's place in the week, set inline. Declared here as well so
     the delay is 0 rather than invalid if the inline value is ever
     missing — and so every var() in this file resolves without one. */
  --i: 0;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--accent); opacity: .9;
  animation: gd-in .5s var(--ease) both;
  animation-delay: calc(var(--i) * 70ms);
}
.gate-week .gd.last {
  background: none;
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent);
}
@keyframes gd-in {
  from { opacity: 0; transform: translateY(6px) scale(.6); }
  to   { opacity: .9; transform: none; }
}

.gate-title { margin: 0 0 6px; font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; }
.gate-sub { margin: 0 auto 20px; max-width: 34ch; color: var(--text-dim); font-size: .92rem; line-height: 1.5; }

/* What they keep, as three things rather than a paragraph — the one
   fear this screen exists to answer. */
.gate-card {
  text-align: start; background: var(--glass); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); padding: 16px; margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.gate-kept { margin: 0 0 10px; font-size: .82rem; font-weight: 600; color: var(--text-dim); }
.gate-keeps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.gate-keeps li { display: flex; align-items: center; gap: 10px; font-size: .92rem; }
.gate-keeps .gk-ico {
  width: 30px; height: 30px; flex: none; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent-wash); color: var(--accent-ink);
}

.gate-note { margin: 10px auto 0; max-width: 32ch; font-size: .8rem; color: var(--text-dim); }

.gate-code { margin-top: 18px; text-align: start; }
.gate-code .gate-kept { margin-bottom: 8px; }
.gate-code + .gate-note { margin-top: 22px; }
.gate-ask { display: block; margin-top: 10px; text-align: center; text-decoration: none; }

/* The two ways off, stacked. Inline they ran into each other and read
   as one sentence with a stray "Sign out" on the end. */
.gate-links {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--hairline);
}
.gate-links .link-btn { font-size: .85rem; }

/* The dots are the only thing here that moves, and somebody who has
   asked for less movement has asked for none. */
@media (prefers-reduced-motion: reduce) {
  .gate-week .gd { animation: none; }
}

.signin-skip {
  display: block; width: 100%; text-align: center;
  margin-top: 14px; padding: 8px; color: var(--text-mute);
}

/* ---------- liver: how far along ----------
   Not a control. The dot marks where the user is between the scan they
   had and a healthy liver, which is a fact to be read rather than a
   value to be set. */
.liver-progress {
  display: flex; align-items: center; gap: 10px; margin-top: 6px;
}
.cmp-end {
  flex: 0 0 auto; font-size: .72rem; font-weight: 600;
  color: var(--text-mute); white-space: nowrap;
}
.lp-track {
  position: relative; flex: 1; min-width: 0; height: 4px; border-radius: 999px;
  background: var(--glass-sunk); border: 1px solid var(--hairline-dim);
}
.lp-fill {
  position: absolute; inset-block: 0; inset-inline-start: 0; pointer-events: none;
  border-radius: 999px; background: linear-gradient(90deg, var(--accent-2), var(--accent));
}
/* The real control, invisible on top of the painted one. Full height
   so the touch target is the whole bar, not the 15px dot. */
/* 44 tall, not 32: the groove it sits over is 4px, so the reach above
   and below it is the whole target. */
.lp-input {
  position: absolute; inset: -20px 0; inline-size: 100%; block-size: 44px;
  -webkit-appearance: none; appearance: none;
  background: none; margin: 0; cursor: grab; opacity: 0;
}
.lp-input::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 32px; height: 32px;
}
.lp-input::-moz-range-thumb { width: 32px; height: 32px; border: none; }
.lp-input:focus-visible { opacity: 1; outline: 2px solid var(--accent); border-radius: 999px; }

.lp-dot {
  position: absolute; top: 50%; width: 15px; height: 15px; border-radius: 50%;
  pointer-events: none;
  /* the offset is half the dot, so it sits centred on its own position
     at both ends rather than hanging off them */
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  border: 2px solid var(--glass-strong);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
[dir="rtl"] .lp-dot { transform: translate(50%, -50%); }

.detail-block { padding: 12px 0; border-bottom: 1px solid var(--hairline-dim); }
.detail-block:last-of-type { border-bottom: none; }
.detail-head { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; }
.detail-head b { flex: 1; font-size: .95rem; }

/* ---------- the liver sheet ----------
   The two grades lead, side by side, because they are what the sheet is
   opened to find out. Everything after them is one line long. */
.liver-grades { display: flex; gap: 10px; margin: 10px 0 12px; }
.liver-grade {
  flex: 1; min-width: 0; padding: 11px 13px; border-radius: var(--r-sm);
  background: var(--sunk-ink); border: 1px solid var(--edge);
}
.lg-label { display: block; font-size: .74rem; color: var(--muted); margin-bottom: var(--pair-y); }
.lg-value { font-size: 1.02rem; font-weight: 600; }
.lg-value.warn   { color: var(--warn-ink); }
/* --danger is a fill colour and dark never overrode it: on the dark
   liver sheet it measured 2.70:1, and this is the one piece of
   measured medical information on that screen. --danger-ink has a
   value in both themes — 5.23 light, 4.71 dark. */
.lg-value.danger { color: var(--danger-ink); }

/* Where the numbers came from, in a sentence rather than two headed
   blocks. Set apart by weight, not by a border, so it reads as an
   aside and not as a warning. */
.liver-source {
  margin: 12px 0 0; font-size: .82rem; line-height: 1.55; color: var(--muted);
  border-inline-start: 2px solid var(--edge); padding-inline-start: 10px;
}
.lg-sub { display: block; margin-top: 2px; font-size: .74rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- measurements ---------- */
.metric-row {
  display: flex; align-items: center; gap: 12px; width: 100%; cursor: pointer;
  padding: 11px 0; border: none; border-bottom: 1px solid var(--hairline-dim);
  background: none; font: inherit; color: var(--text); text-align: start;
}
.metric-row:last-child { border-bottom: none; }
.metric-glyph {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 11px;
  display: grid; place-items: center; font-size: 1rem;
  background: color-mix(in srgb, var(--c) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
}
.metric-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--pair-y); }
.metric-name { font-size: .9rem; font-weight: 600; }
.metric-sub { font-size: .72rem; color: var(--text-mute); }
.metric-val { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: var(--pair-y); }
.metric-val b { font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.metric-val b.good { color: var(--accent-ink); }
.metric-val b.bad { color: var(--warn-ink); }
.metric-val i { font-style: normal; font-size: .66rem; font-weight: 500; color: var(--text-mute); margin-inline-start: 3px; }
.metric-delta { font-size: .68rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.metric-delta.good { color: var(--accent-ink); }
.metric-delta.bad { color: var(--warn-ink); }
.seg .muted { color: var(--text-mute); font-weight: 500; }

/* ---------- onboarding ---------- */
/* The language switch sits above everything on the first screen, so it
   is what carries the safe-area inset now — the progress row used to,
   back when it was the top of the page. */
.onb-lang {
  /* The start corner, because Skip already owns the end one and two
     controls stacked in the same corner read as one crowded thing. */
  flex: 0 0 auto; display: flex; justify-content: flex-start;
  padding: calc(env(safe-area-inset-top) + 12px) 4px 0;
}
.onb-bar {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap;
  padding: 14px 4px 16px;
}
/* The bar keeps a full row to itself once the link beside it is long
   enough to crowd it — which Arabic always is. */
.onb-dots { flex: 1 1 55%; min-width: 120px; }
.onb-skip { flex: 0 1 auto; font-size: .84rem; text-align: start; }

.onb-dots { display: grid; grid-template-columns: repeat(var(--onb-steps), minmax(0, 1fr)); gap: 6px; }
.onb-dot {
  height: 5px; min-width: 0; border-radius: 999px;
  background: var(--glass-sunk); border: 1px solid var(--hairline-dim);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.onb-dot.done { background: color-mix(in srgb, var(--accent) 45%, transparent); border-color: transparent; }
.onb-dot.on { background: var(--accent); border-color: transparent; }

.card > h2.onb-title {
  font-size: 1.5rem; font-weight: 600; letter-spacing: -.025em; line-height: 1.2;
  text-transform: none; color: var(--text); margin: 0 0 10px;
}
.onb-body { font-size: .97rem; line-height: 1.6; color: var(--text-dim); margin: 0; }
.onb-medical {
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--hairline-dim);
  font-size: 12.5px;
}

/* ---------- fridge ---------- */
/* how you want to eat — one emphasis, picked once */
.styles { display: grid; gap: 8px; }
.style {
  display: grid; gap: var(--pair-y); text-align: start;
  padding: var(--pad-panel); border-radius: 14px;
  border: 1px solid var(--hairline-dim); background: var(--glass-sunk);
  color: var(--text); font: inherit; cursor: pointer;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.style b { font-size: 15px; font-weight: 600; }
.style small { font-size: 12.5px; line-height: 1.45; color: var(--text-dim); }
.style.on { border-color: var(--accent); background: var(--accent-wash); }
.style.on b { color: var(--accent-ink); }

.ing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.ing {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-block-size: 44px; justify-content: center;
  padding: 10px 6px; border-radius: var(--r-md); cursor: pointer;
  background: var(--glass-sunk); border: 1px solid var(--hairline-dim);
  font: inherit; color: var(--text); text-align: center;
  transition: .16s var(--ease);
}
.ing:active { transform: scale(.95); }
.ing.on {
  background: var(--accent-wash);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

.ing-name { font-size: 12.5px; font-weight: 500; line-height: 1.3; }
