/* Food — how Meal Log's layout fits inside Panora Life.
 *
 * HAND-WRITTEN, and deliberately separate from css/food.css, which is GENERATED
 * from Meal Log's stylesheet by tools/scope-food-css.py and gets overwritten each
 * time it is re-run. Anything that has to differ because Food now lives inside a
 * larger app goes here, so regenerating food.css cannot lose it.
 *
 * What changed, and why:
 *
 * 1. THE SHELL GIVES EVERY .screen EXTRA BOTTOM PADDING to clear its tab bar
 *    (css/shell.css, !important). Meal Log is a full-height app that manages its own
 *    insets, so that padding would push its whole layout past the bottom of the
 *    screen. The root of the Food screen opts out.
 *
 * 2. MEAL LOG IS A 100dvh COLUMN: header, a scroller that takes the rest, and its
 *    own tab bar at the bottom. Panora Life already has a fixed bottom bar, and two
 *    stacked bottom bars is two different meanings of "tab" on one screen. So the
 *    column is shortened by the shell's bar, and Food's tab bar is turned over to
 *    sit along the TOP - the same decision, made for the same reason, as Sleep's
 *    three sections.
 *
 * 3. THE SAFE-AREA INSET moves with it. Meal Log put env(safe-area-inset-top) on
 *    each page header, because the header was the first thing on screen. The
 *    first thing on screen is now the tab bar, so it takes the inset, and the
 *    headers stop doubling it.
 */

.screen.dom-food { padding: 0 !important; overflow: hidden; }

.dom-food #app {
  /* The page has already moved down by the Home strip (css/shell.css). */
  height: calc(calc(100vh / var(--tz, 1)) - var(--appbar-total));
  height: calc(calc(100dvh / var(--tz, 1)) - var(--appbar-total));
}

/* The tab bar, along the top. `order` moves it without touching Meal Log's markup. */
.dom-food .tabbar {
  order: -1;
  border-top: 0;
  border-bottom: 1px solid var(--hairline);
  padding-top: 0;
  padding-bottom: 0;
}
.dom-food .tab {
  min-height: 44px;
  flex-direction: row;
  gap: 6px;
  padding: 0 4px;
  font-size: 13px;
}
.dom-food .tab svg { width: 18px; height: 18px; }

.dom-food .page-head { padding-top: 8px; }

/* 4. DESCRIBE A MEAL (Panora-only, 2026-10-09). The action row gains a fourth
 *    button, so its three-column grid becomes two by two on a phone rather than
 *    squeezing four labels into one row; the photo preview and the review list are new. */
.dom-food .log-actions:has(.btn:nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* Fastest logging (Craig, 2026-11-01): the ways in, then one tap on what they really eat. */
.dom-food .log-actions .log-act { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 64px; height: auto; padding: 8px 4px; font-size: 13px; line-height: 1.15; }
.dom-food .log-ico { width: 22px; height: 22px; flex: none; }
.dom-food .again-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
/* A long portion line wraps inside its own space instead of running under the "+". */
.dom-food .recent-row .food-hit-main { min-width: 0; }
.dom-food .recent-row .food-hit-sub { white-space: normal; overflow-wrap: anywhere; }
.dom-food .recent-row .again-btn { align-self: center; }
.dom-food .again-chip { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-height: 52px; padding: 7px 12px; border-radius: 14px; border: 1px solid var(--edge); background: var(--surface); color: inherit; font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; }
.dom-food .again-name { display: block; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dom-food .again-kcal { font-size: 12px; font-weight: 400; color: var(--muted); }
/* "Log lunch" lands on lunch (decision 0163): the meal and day at the top, the usual food in one
   tap, then Search and Barcode two across and the other ways in four across. */
.dom-food .meal-focus { display: flex; align-items: center; gap: 6px; margin: 2px 0 10px; font-size: 20px; font-weight: 700; }
.dom-food .meal-focus-meal { font: inherit; color: inherit; background: transparent; border: 0; border-bottom: 2px solid var(--edge); border-radius: 0; padding: 2px 18px 2px 0; min-height: 44px; field-sizing: content; cursor: pointer; appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: right 6px center, right 1px center; background-size: 5px 5px; background-repeat: no-repeat; }
.dom-food .meal-focus-dot { color: var(--muted); }
.dom-food .meal-focus-day { font: inherit; color: inherit; background: transparent; border: 0; border-bottom: 2px solid var(--edge); padding: 2px 0; min-height: 44px; cursor: pointer; }
.dom-food .usual-meal { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; padding: 14px 16px; margin-bottom: 12px; text-align: left; font: inherit; color: inherit; cursor: pointer; border: 1.5px solid var(--accent); }
.dom-food .usual-meal-what { font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.dom-food .usual-meal-go { font-size: 15px; font-weight: 600; color: var(--accent-text); }
.dom-food .log-actions.log-first { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dom-food .log-actions.log-first .log-act { flex-direction: row; gap: 8px; min-height: 52px; font-size: 15px; }
.dom-food .log-sizes { margin-bottom: 8px; }
.dom-food .describe-thumb { display: block; max-width: 100%; max-height: 220px; border-radius: 12px; margin: 4px 0 8px; }
.dom-food .describe-photo { position: relative; cursor: pointer; margin: 2px 0 8px; }
.dom-food .meal-review .meal-item { padding: 12px 14px 6px; margin-bottom: 12px; }
.dom-food .meal-review .mi-head { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.dom-food .meal-review .mi-name { flex: 1; min-width: 0; font-weight: 600; }
.dom-food .meal-review .mi-drop {
  flex: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--hairline);
  background: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer;
}
/* Where an item's numbers came from, and the database match to change it to. */
.dom-food .meal-review .mi-match { display: flex; gap: 8px; align-items: center; margin: 0 0 6px; font-size: 13px; }
.dom-food .meal-review .mi-ok { flex: none; color: var(--good, #2e7d4f); font-weight: 600; }
.dom-food .meal-review .mi-est { flex: none; color: var(--muted); }
.dom-food .meal-review .mi-pick { flex: 1; min-width: 0; font-size: 13px; padding: 6px 8px; height: auto; }
/* How many, of what: a count beside a unit picker ("3" "large (50 g)"). */
.dom-food .meal-review .mi-amount {
  display: grid; grid-template-columns: auto 72px minmax(0, 1fr); align-items: center; gap: 8px;
  padding: 6px 0; border-top: 1px solid var(--hairline);
}
.dom-food .meal-review .mi-amount .input.num { width: 100%; text-align: right; }
.dom-food .meal-review .mi-amt-unit { min-width: 0; font-size: 14px; padding: 6px 8px; height: auto; }
.dom-food .meal-review .mi-row {
  display: grid; grid-template-columns: 1fr 96px 36px; align-items: center; gap: 8px;
  padding: 6px 0; border-top: 1px solid var(--hairline);
}
.dom-food .meal-review .mi-row .input.num { width: 100%; text-align: right; }
.dom-food .meal-review .mi-unit { color: var(--muted); font-size: 14px; }

/* 5. THE DAILY GOAL (Panora-only, 2026-10-10): the ring with what is left, the
 *    macro bars, and the setup sheet. Soft colours only: the accent while there
 *    is room, green when protein is reached, amber when over. */
.dom-food .goal-card { display: block; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; padding: 16px; }
.dom-food .goal-empty { cursor: default; }
.dom-food .goal-top { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.dom-food .goal-ring-wrap { position: relative; width: 116px; height: 116px; flex: none; }
.dom-food .goal-ring { width: 100%; height: 100%; display: block; }
.dom-food .goal-track { fill: none; stroke: var(--surface-2, rgba(127,127,127,.15)); stroke-width: 11; }
.dom-food .goal-fill { fill: none; stroke: var(--accent); stroke-width: 11; stroke-linecap: round; transition: stroke-dasharray .4s ease; }
.dom-food .goal-fill.over { stroke: #d99a2b; }
.dom-food .goal-ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.dom-food .goal-ring-label b { font-size: 26px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.dom-food .goal-ring-label span { font-size: 13px; color: var(--muted); margin-top: 2px; }
.dom-food .goal-ring-label.over b { color: #c4841c; }
.dom-food .goal-side { flex: 1; min-width: 0; display: grid; gap: 4px; }
.dom-food .goal-line { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; }
.dom-food .goal-line b { font-variant-numeric: tabular-nums; }
.dom-food .goal-line.muted { color: var(--muted); font-size: 13px; }
.dom-food .goal-bar { padding-top: 8px; }
.dom-food .goal-bar-top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 4px; }
.dom-food .goal-bar-num { color: var(--muted); font-variant-numeric: tabular-nums; }
.dom-food .goal-bar-track { height: 8px; border-radius: 4px; background: var(--surface-2, rgba(127,127,127,.15)); overflow: hidden; }
.dom-food .goal-bar-track span { display: block; height: 100%; border-radius: 4px; background: var(--accent); transition: width .4s ease; }
/* Each macro its own colour, the same in every theme (panel run 4). */
.dom-food .goal-bar.goal-protein .goal-bar-track span { background: #c2185b; }
.dom-food .goal-bar.goal-carb .goal-bar-track span { background: #e09a1a; }
.dom-food .goal-bar.goal-fat .goal-bar-track span { background: #3b82c4; }
/* Food's first card: "I don't want a calorie goal" and the import each on a line of their
   own (panel round 2, Daniel: they ran together). */
.dom-food .goal-empty .link-btn { display: block; margin-top: 8px; }
/* A search result: the name, and under it the portion line (decision 0040). */
.dom-food /* Kinds of one food, folded under its row (js/food/foods.js search fold). */
#food-results .food-kinds {
  display: block;
  min-height: 40px;
  margin: -8px 0 4px;
  padding: 6px 4px;
  border: 0;
  background: none;
  color: var(--accent-text, var(--accent));
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
#food-results .food-kinds::after {
  content: ' ›';
}
#food-results .food-kinds[aria-expanded='true']::after {
  content: ' ‹';
}
#food-results .food-kinds-list {
  margin-left: 16px;
  border-left: 2px solid var(--line, rgba(127, 127, 127, 0.25));
}
.food-hit-main { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; min-width: 0; }
.dom-food .food-hit-sub { white-space: normal; }
/* The row's one child is both its first and last, so ".list-btn > :last-child { flex: none }" (the
   figure that must not shrink) held the name to its full width: "Egg omelet or scrambled egg (made
   with butter)" ran off the card (Craig, from his phone, 2026-10-28). It shrinks and wraps. */
.dom-food .list-btn.food-hit > .food-hit-main { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
/* Sugar (decision 0036): its own colour, apart from carbs'. */
.dom-food .goal-bar.goal-sugar .goal-bar-track span { background: #8e5cc2; }
.dom-food .goal-bar.hit .goal-bar-track span { background: #2f9e62; }
.dom-food .goal-bar.hit .goal-bar-num { color: #2f9e62; font-weight: 600; }
/* Over: terracotta, not amber, which read as the carbs bar itself. The number says it too. */
.dom-food .goal-bar.over .goal-bar-track span { background: #c4552b; }
.dom-food .goal-bar.over .goal-bar-num { color: #c4552b; font-weight: 600; }
.dom-food .goal-form .goal-field { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; font-size: 14px; font-weight: 600; }
.dom-food .goal-form [hidden] { display: none !important; }
.dom-food .goal-form .mi-row { display: grid; grid-template-columns: 1fr 96px 64px; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--hairline); }
.dom-food .goal-form .mi-row select[data-g="sex"] { grid-column: 2 / 4; }
.dom-food .goal-form .mi-unit { color: var(--muted); font-size: 14px; }
.dom-food .goal-preview { margin: 14px 0 4px; padding: 14px; border-radius: 14px; background: var(--surface-2, rgba(127,127,127,.1)); }
.dom-food .goal-preview-big { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.dom-food .goal-preview-big span { font-size: 15px; font-weight: 500; color: var(--muted); }
.dom-food .goal-preview-macros { font-size: 15px; margin: 4px 0 6px; }
@media (prefers-reduced-motion: reduce) { .dom-food .goal-fill, .dom-food .goal-bar-track span { transition: none; } }

/* 6. MEAL SECTIONS (Panora-only, 2026-10-10): Breakfast / Lunch / Dinner / Snacks
 *    with a subtotal each, and the one-tap "Same as yesterday". */
.dom-food .meal-sec { margin-bottom: 4px; }
.dom-food .meal-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 14px 4px 6px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.dom-food .meal-kcal { font-variant-numeric: tabular-nums; letter-spacing: 0; text-transform: none; font-weight: 600; }
.dom-food .meal-repeat {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 14px 16px; font: inherit; color: var(--accent-text, var(--accent)); cursor: pointer; text-align: left;
  border: 1px dashed var(--hairline); background: transparent; box-shadow: none;
}
.dom-food .meal-repeat span:first-child { font-weight: 600; }

/* 7. FAVOURITES (Panora-only, 2026-10-10). The star is drawn here, not written
 *    into the page, so the Recent list's text is unchanged. */
.dom-food .recent-row { display: flex; align-items: stretch; }
.dom-food .recent-row .list-btn { flex: 1; min-width: 0; }
.dom-food .fav-btn {
  flex: none; width: 48px; border: 0; background: none; cursor: pointer; color: var(--muted);
  font-size: 20px; line-height: 1;
}
.dom-food .fav-btn::before { content: '\2606'; }
.dom-food .fav-btn.on { color: #e0a21b; }
.dom-food .fav-btn.on::before { content: '\2605'; }
.dom-food .fav-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; border-radius: 8px; }

/* ---------- 8. PORTED (f-adaptive): the weight trend and the weekly check-in ---------- */
.dom-food .weight-card, .dom-food .checkin-card { padding: 14px 16px; }
.dom-food .wt-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dom-food .wt-head .btn.small { min-height: 34px; padding: 4px 12px; font-size: 14px; }
.dom-food .wt-nums { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 6px; }
.dom-food .wt-trend-num { font-size: 22px; }
.dom-food .wt-move { font-size: 14px; color: var(--muted); }
.dom-food .wt-label { font-size: 12px; color: var(--muted); }
.dom-food .wt-spark { display: block; width: 100%; height: 70px; margin: 8px 0 4px; }
.dom-food .wt-trend { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.dom-food .wt-dot { fill: var(--muted); opacity: .55; }
.dom-food .checkin-card { border: 1px solid var(--accent); }
.dom-food .checkin-card .eyebrow-ish { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text, var(--accent)); }
.dom-food .checkin-card p { margin: 0 0 8px; }
.dom-food .checkin-card .row-actions { display: flex; gap: 8px; }
.dom-food .checkin-card .row-actions .btn { flex: 1; }

/* ---------- fastest logging (Craig, 2026-10-22: "go with all three") ---------- */
/* A. The meal you can see: its foods as chips, one Log button. */
.dom-food .meal-repeat { display: block; padding: 12px 14px; text-align: left; }
.dom-food .meal-repeat-head { margin: 0 0 8px; font-weight: 700; }
.dom-food .meal-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.dom-food .meal-chip { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px dashed var(--line, #c9b9a2); background: none; color: inherit; font: inherit; font-size: 15px; opacity: 0.7; cursor: pointer; }
.dom-food .meal-chip.on { border: 0; background: var(--accent-wash, #f6e1d6); font-weight: 700; opacity: 1; }
.dom-food .meal-log { display: block; width: 100%; min-height: 52px; font-size: 17px; font-weight: 800; }
.dom-food .meal-repeat-hint { margin: 6px 0 0; }
/* B. Portion first: the count big, a step either side, one big Add. */
.dom-food .log-count { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 4px; padding: 12px; border-radius: 18px; background: var(--card, #fdf6ea); }
.dom-food .log-step { width: 60px; height: 60px; flex: none; border-radius: 16px; border: 0; background: var(--accent-wash, #f1e6d6); color: inherit; font: inherit; font-size: 28px; font-weight: 800; cursor: pointer; }
.dom-food .log-count-mid { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.dom-food .log-count-n { width: 110px; height: 56px; font-size: 40px; font-weight: 900; text-align: center; border-color: transparent; background: transparent; }
.dom-food .log-count-unit { font-size: 15px; text-align: center; }
.dom-food .log-weigh { display: block; margin: 4px 0 8px; }
.dom-food .log-add, .sheet .log-add { display: block; width: 100%; min-height: 56px; margin: 12px 0 6px; font-size: 18px; font-weight: 800; }
.sheet .log-count { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 4px; padding: 12px; border-radius: 18px; background: var(--card, #fdf6ea); }
.sheet .log-step { width: 60px; height: 60px; flex: none; border-radius: 16px; border: 0; background: var(--accent-wash, #f1e6d6); color: inherit; font: inherit; font-size: 28px; font-weight: 800; cursor: pointer; }
.sheet .log-count-mid { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.sheet .log-count-n { width: 110px; height: 56px; font-size: 40px; font-weight: 900; text-align: center; border-color: transparent; background: transparent; }
.sheet .log-count-unit { font-size: 15px; text-align: center; }
.sheet .log-weigh { display: block; min-height: 44px; margin: 0 0 4px; padding: 0; border: 0; background: none; color: var(--accent-text, var(--accent, #c4470f)); font: inherit; font-weight: 700; cursor: pointer; }
/* C. One tap again: a "+" on each recent food. */
.dom-food .again-btn { width: 44px; height: 44px; flex: none; margin-left: 6px; border-radius: 50%; border: 2px solid var(--accent, #c4470f); background: none; color: var(--accent-text, var(--accent, #c4470f)); font: inherit; font-size: 24px; font-weight: 800; line-height: 1; cursor: pointer; }
.dom-food .again-btn:active { transform: scale(0.92); }
html[data-text-size='1.6'] .dom-food .log-actions:has(.btn:nth-child(4)), html[data-text-size='2'] .dom-food .log-actions:has(.btn:nth-child(4)){ grid-template-columns:repeat(2,minmax(0,1fr)); }
html[data-text-size='2'] .dom-food .again-row{ grid-template-columns:1fr; }
/* Eating out by the kind of place (decision 0122). A fifth way in fits one row of five. */
.dom-food .log-actions:has(.btn:nth-child(5)) { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.dom-food .log-actions:has(.btn:nth-child(5)) .log-act { padding-left: 2px; padding-right: 2px; }
html[data-text-size='1.15'] .dom-food .log-actions:has(.btn:nth-child(5)), html[data-text-size='1.3'] .dom-food .log-actions:has(.btn:nth-child(5)) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
html[data-text-size='1.6'] .dom-food .log-actions:has(.btn:nth-child(5)), html[data-text-size='2'] .dom-food .log-actions:has(.btn:nth-child(5)) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sheet .eo-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.sheet .eo-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 84px; padding: 10px 8px; border-radius: 14px; border: 1px solid var(--edge, #e3d8c8); background: var(--surface, #fff); color: inherit; font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; text-align: center; cursor: pointer; }
.sheet .eo-ico { width: 30px; height: 30px; flex: none; color: var(--accent-text, var(--accent, #c4470f)); }
.sheet .eo-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.sheet .eo-chip { min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--edge, #e3d8c8); background: var(--surface, #fff); color: inherit; font: inherit; font-size: 15px; cursor: pointer; }
.sheet .eo-chip[aria-pressed='true'] { border-color: var(--accent, #c4470f); background: var(--accent-wash, #f6e1d6); font-weight: 700; }
.sheet .eo-est { margin-bottom: 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--edge, #e3d8c8); background: var(--surface, #fff); }
.sheet .eo-est p { margin: 0 0 6px; }
.sheet .eo-est p:last-child { margin-bottom: 0; }
.sheet .eo-src { font-size: 13px; color: var(--muted, #6b5f52); }
.sheet .eo-back, .sheet .eo-numbers { display: block; min-height: 44px; margin: 0 0 4px; padding: 0; border: 0; background: none; color: var(--accent-text, var(--accent, #c4470f)); font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.sheet .eo-mine { margin-bottom: 14px; }
html[data-text-size='2'] .sheet .eo-tiles { grid-template-columns: 1fr; }
.sheet .eo-less { min-width: 44px; min-height: 44px; margin-left: -4px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--edge, #e3d8c8); background: none; color: var(--accent-text, var(--accent, #c4470f)); font: inherit; font-size: 20px; font-weight: 800; line-height: 1; cursor: pointer; }
/* A plate or a bowl (decision 0123). Six ways in sit three to a row. */
.dom-food .log-actions:has(.btn:nth-child(6)) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dom-food .log-actions:has(.btn:nth-child(6)) .log-act { padding-left: 4px; padding-right: 4px; }
.sheet .pl-kinds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sheet .eo-tile small { display: block; font-size: 12px; font-weight: 400; color: var(--muted, #6b5f52); }
.sheet .pl-group { margin-bottom: 4px; }
.sheet .pl-cover { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.sheet .pl-pie-chip { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 56px; padding: 6px 2px; border-radius: 12px; font-size: 13px; line-height: 1.1; text-align: center; }
html[data-text-size='1.3'] .sheet .pl-cover, html[data-text-size='1.6'] .sheet .pl-cover, html[data-text-size='2'] .sheet .pl-cover { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sheet .pl-pie { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; }
.sheet .pl-pie .fill { fill: currentColor; stroke: none; }
.sheet .pl-step { display: flex; align-items: center; gap: 12px; margin: -6px 0 14px; }
.sheet .pl-step output { min-width: 90px; text-align: center; font-weight: 700; }
.sheet .pl-step .eo-less { margin-left: 0; }
.sheet [data-act="pl-add"]:disabled { opacity: 0.5; }
html[data-text-size='1.6'] .sheet .pl-kinds, html[data-text-size='2'] .sheet .pl-kinds { grid-template-columns: 1fr; }
/* Your hand, sized for you (decision 0125). */
.sheet .hand-chips { gap: 6px; }
.sheet .hand-chip { display: inline-flex; align-items: center; gap: 6px; }
.sheet .hand-ico { width: 20px; height: 20px; flex: none; }
.sheet .hand-you { display: block; min-height: 44px; margin: 2px 0 0; padding: 0; border: 0; background: none; color: var(--accent-text, var(--accent, #c4470f)); font: inherit; font-size: 14px; font-weight: 700; text-align: left; cursor: pointer; }
/* Por quilo (decision 0126): the ticket's weight, big enough to read. The hand row wraps so
   "2 palms" is never off the edge. */
.sheet .eo-weight { font-size: 20px; font-weight: 700; text-align: center; }
.sheet .hand-chips { flex-wrap: wrap; overflow: visible; }
