/* v10: v9's type, status and shade on v5's fixed button cards. (v9: v8 with the app's phase-label shade between the status and the grid and a scrim only on the selected / pressed cell. All measurements use the 600 × 1024 canvas. */
.stage { grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); }
/* The grid gave back 72 when the keys lost their number row; it goes above the status, so
   the whole block sits lower and everything below the grid stays where it was. The status
   then grew 12 for air under the recipe name, and the inset gave that back so the grid
   still starts on y320. */
.grid-workspace { position: absolute; inset: 184px 28px auto; }
/* No divider under the status either: the grid's own hairlines are the only rules on the
   screen. The status sits 24 lower than in v6 and gives the 24 back out of the air below
   it, so the block ends on the same line and the grid does not move. */
.grid-status { position: relative; height: 108px; padding: 4px 0 16px; border-bottom: 1px solid transparent; }
.grid-status-line { display: flex; align-items: center; justify-content: center; gap: 16px; }
.grid-phase { display: flex; align-items: center; gap: 10px; margin-left: -18px; font-size: 24px; line-height: 32px; }
.grid-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #9e9e9e; }
[data-phase="ready"] .grid-status-dot { background: #56faa8; }
[data-phase="preheat"] .grid-status-dot { background: #ff8484; }
.grid-hint { font-size: 20px; color: rgb(255 255 255 / 60%); white-space: nowrap; }
/* The English phase labels are set in caps (PREPARING / READY TO COOK), which need the
   tracking caps want; the Korean ones do not. */
html[lang="en"] #grid-phase { letter-spacing: 0.08em; }
.grid-hint:empty { display: none; }
.grid-current { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 12px 0 0; font-size: 34px; line-height: 44px; text-align: center; }
.grid-current-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Cook option as a pill, the same form the app's hero badge uses. */
.grid-current-option { flex-shrink: 0; padding: 2px 14px; border: 1px solid rgb(255 255 255 / 12%); border-radius: 999px; background: rgb(0 0 0 / 20%); font-size: 20px; line-height: 28px; color: rgb(255 255 255 / 80%); }
/* With no recipe the phase line and the name said the same thing; only the sentence is
   left, at the phase line's size, centred in the block. */
[data-phase="standby"] .grid-status-line { display: none; }
[data-phase="standby"] .grid-status { display: flex; align-items: center; justify-content: center; }
[data-phase="standby"] .grid-current { margin: 0; color: rgb(255 255 255 / 50%); font-size: 24px; }
.grid-heading { display: flex; align-items: center; gap: 12px; height: 64px; padding-inline: 21px; font-size: 22px; }
/* The heading keeps its 64 even on the recipe screen, so the grid sits on the same line in
   both levels and the back button drops into the band between the status and the grid. */
.grid-heading.is-blank { visibility: hidden; }   /* keeps its 64 so the grid never shifts */
#grid-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grid-back { display: flex; align-items: center; gap: 4px; height: 56px; padding-right: 12px; flex-shrink: 0; color: rgb(255 255 255 / 65%); }
.grid-back svg { width: 24px; height: 24px; }
.grid-back[hidden] { display: none; }
/* No cards and no lines: the names sit on the background and the selected fill is the one
   thing that marks a cell, so the cells carry a gap to keep the fills apart. 100 × 3 plus
   two 12 gaps is the 324 the cards had, so nothing below the grid moves. */
.recipe-grid { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, 100px); gap: 12px; }
/* Unselected keys carry no outline — the fill alone separates them. The border stays in
   the box as transparent so the selected state does not shift the text by a pixel. */
.recipe-key { position: relative; display: flex; flex-direction: column; align-items: stretch; justify-content: center; text-align: left; min-width: 0; padding: 0 22px; border: 0; border-radius: 20px; background: none; color: white; }
/* v5's button surfaces: every cell is a card, the selected one brighter with a white edge.
   The border is always in the box (transparent) so selection never shifts the text. */
.recipe-key { border: 1px solid transparent; background: rgb(255 255 255 / 7%); transition: background 120ms, border-color 120ms; }
.recipe-key.is-selected { background: rgb(255 255 255 / 19%); border-color: rgb(255 255 255 / 70%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 20%); }
.recipe-key:active { background: rgb(255 255 255 / 22%); }
/* The check follows the name instead of sitting in a card corner. */
.recipe-key-check { flex-shrink: 0; margin-left: 10px; font-size: 21px; color: rgb(255 255 255 / 80%); }
/* One line only: the name truncates and the check stays put beside it. */
.recipe-key-name { display: flex; align-items: center; min-width: 0; font-size: 27px; line-height: 30px; letter-spacing: -.4px; }
.recipe-key-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* The chevron belongs to the count, so it sits right after it instead of being pushed to
   the far edge. */
.recipe-key-meta { display: flex; align-items: center; justify-content: flex-start; gap: 0; min-height: 30px; margin-top: 4px; font-size: 24px; line-height: 30px; color: rgb(255 255 255 / 55%); }
.recipe-key-meta svg { width: 26px; height: 26px; flex-shrink: 0; margin-left: 4px; }  /* plus the ~9 the glyph sits inside its box: ~13 visible */
/* Reserved slot on a short page: a fill this faint, like the keys, instead of the only
   outline left in the grid. */
.recipe-key-empty { border-radius: 20px; background: rgb(255 255 255 / 2%); }
.grid-pager { display: flex; align-items: center; justify-content: center; height: 64px; margin-top: 12px; gap: 12px; }
.grid-pager button { display: flex; align-items: center; justify-content: center; height: 64px; width: 160px; border-radius: 12px; }
.grid-pager button svg { width: 32px; height: 32px; }
.grid-pager button:disabled { opacity: .2; }
.grid-pager button:active:not(:disabled), .grid-back:active { background: rgb(255 255 255 / 10%); }
.grid-page { display: flex; gap: 10px; justify-content: center; width: 100px; font-size: 22px; font-variant-numeric: tabular-nums; }
#quick-page-total { color: rgb(255 255 255 / 40%); }
.grid-actions { position: absolute; inset: auto 28px 52px; display: flex; flex-direction: column; gap: 16px; }
.grid-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; height: 64px; }
.grid-secondary button { display: flex; justify-content: center; align-items: center; gap: 12px; font-size: 24px; border-radius: 999px; color: rgb(255 255 255 / 75%); background: rgb(255 255 255 / 7%); }
.grid-secondary button:active { background: rgb(255 255 255 / 18%); }
.grid-secondary svg { height: 30px; width: 30px; }
#quick-unload:disabled { opacity: .35; }
#quick-unload-state { color: white; width: 45px; text-align: left; }
#quick-unload[aria-checked="false"] #quick-unload-state { color: rgb(255 255 255 / 45%); }
/* The recipe area has no surfaces at all, so the actions are fully round: the shape is
   what says "this is a button". */
.grid-start { display: flex; align-items: center; justify-content: center; gap: 16px; height: 80px; border-radius: 999px; background: white; color: #111; font-size: 28px; }
.grid-start svg { height: 30px; width: 30px; }
.grid-start:active:not(:disabled) { background: #bbb; }
.grid-start:disabled { background: #555; color: rgb(0 0 0 / 45%); }
.grid-workspace button:focus-visible, .grid-actions button:focus-visible { outline: 3px solid white; outline-offset: 3px; }

/* The app's PhaseLabelShade (features/cook/components/phase-label-shade.tsx), which splits
   the recipe info from the timer on the cooking screen: black across the middle 25-75 %,
   masked from 20 % at the top to nothing 37 below, so it is darkest top-centre. Full
   screen width, it sits on the top edge of the selection area:
   - recipe level: on the grid itself (y356);
   - cook-option level: on the heading band instead (y293), so the back button and the
     recipe title read as part of the option list below them, not as part of the status. */
.grid-heading { position: relative; }
.recipe-grid::before, .grid-heading::before {
  content: "";
  position: absolute;
  inset: -18px -28px auto;   /* raised by half its height: only the lower half overlaps the cells */
  height: 37px;
  pointer-events: none;
  background: linear-gradient(90deg, rgb(0 0 0 / 0) 0%, #000 25%, #000 75%, rgb(0 0 0 / 0) 100%);
  -webkit-mask-image: linear-gradient(180deg, rgb(0 0 0 / .2) 0%, rgb(0 0 0 / 0) 100%);
  mask-image: linear-gradient(180deg, rgb(0 0 0 / .2) 0%, rgb(0 0 0 / 0) 100%);
}
.grid-heading.is-blank::before, .grid-heading:not(.is-blank) + .recipe-grid::before { display: none; }

/* Level geometry. The status ends on y292 and the pager starts on y692 at both levels.
   - recipe level: the blank heading band is 48, so the grid starts on y340 (16 higher
     than v8) and the pager takes the 16 back in its top margin; the shade sits on y322.
   - cook-option level: the shade stays on y322, and the heading band grows to 100 with
     the back button at its foot (y332–388), below the shade's darkest edge. The grid then
     starts on y392 with 88-tall rows (options carry no count line), ending on y680. */
.grid-heading.is-blank { height: 48px; }
.grid-heading.is-blank ~ .grid-pager { margin-top: 28px; }
.grid-heading:not(.is-blank) { height: 100px; align-items: flex-end; padding-bottom: 4px; }
.grid-heading:not(.is-blank)::before { top: 30px; }
.grid-heading:not(.is-blank) + .recipe-grid { grid-template-rows: repeat(3, 88px); }
.grid-heading:not(.is-blank) #grid-title { line-height: 56px; }   /* same line box as the back button, so both sit on one baseline */

/* Recipe name first, phase line (● 준비 완료 / 준비 중 · 남은 온도) under it. */
.grid-status { display: flex; flex-direction: column; }
.grid-current { order: 0; margin: 0; }
.grid-status-line { order: 1; margin-top: 12px; }
/* The back label ("레시피") starts on the cells' text line (x50); the chevron hangs out to its left. */
.grid-heading:not(.is-blank) .grid-back { margin-left: -27px; }
.grid-heading:not(.is-blank) { gap: 14px; }
.grid-heading:not(.is-blank) .grid-back { padding-right: 0; }   /* 레시피 → title gap: 14 */
/* Pressed scrim: rounded, with 8 of air on both sides. Negative margins give that air
   back so the label stays on x50 and the title stays 14 after it. */
.grid-heading:not(.is-blank) .grid-back { border-radius: 12px; padding-inline: 8px; margin-left: -35px; margin-right: -8px; }
.grid-hint { font-variant-numeric: tabular-nums; }   /* "163°C 남음" ticks down without the line jittering */
/* Back target = ‹ 레시피 + the recipe title. The 14 gap moves into the title's own padding
   so there is no dead strip between them, and the title is 56 tall like the button. Only
   the back button shows the pressed scrim, whichever half is pressed. */
.grid-heading:not(.is-blank) { gap: 0; }
.grid-heading:not(.is-blank) #grid-title { height: 56px; padding: 0 12px 0 14px; cursor: pointer; }
.grid-heading:not(.is-blank):has(#grid-title:active) .grid-back { background: rgb(255 255 255 / 10%); }
/* Bottom buttons take v5's radius (20), matching the cards, instead of v9's pills. */
.grid-secondary button, .grid-start { border-radius: 20px; }
/* Cook-option cards carry no count, but the empty count line still held its 34 and pushed
   the name up to 18 from the card's top. Drop it there, so the name centres (29 above). */
/* Option level only: on the recipe level the empty line keeps names on one line across a row. */
.grid-heading:not(.is-blank) + .recipe-grid .recipe-key-meta:empty { display: none; }
/* The phase word (준비 중 / 준비 완료) reads at the temperature's weight (white/60), and an
   interpunct joins the two: "● 준비 중 · 163°C 남음". */
#grid-phase { color: rgb(255 255 255 / 60%); }
.grid-status-line { gap: 10px; }
.grid-hint::before { content: "·"; margin-right: 10px; }
/* No coloured dot; the -18 that re-centred the line around it goes too. */
.grid-status-dot { display: none; }
.grid-phase { margin-left: 0; }
/* Pager 12 higher (y692 → y680) at both levels: 16 under the recipe grid, and the option
   rows give up 4 each (88 → 84) so the option grid ends on y668, 12 above it. */
.grid-heading.is-blank ~ .grid-pager { margin-top: 16px; }
.grid-heading:not(.is-blank) + .recipe-grid { grid-template-rows: repeat(3, 84px); }
/* One size for all three bottom buttons: the secondary row's 24px text and 64 height.
   The block is pinned to the bottom (52), so 조리 시작 keeps its bottom edge (y972) and
   the row above it moves down 16. */
.grid-start { height: 64px; font-size: 24px; }
.grid-start svg { width: 26px; height: 26px; }
/* 조리 시작's tap target runs out to both screen edges and down to the bottom of the screen
   (the 28 side gutters and the 52 below), without changing what is drawn. */
.grid-start { position: relative; }
.grid-start::after { content: ""; position: absolute; inset: 0 -28px -52px; }
/* 배출 / 간이 청소 targets: out to their screen edge (28), 6 into the 12 between them, all
   of the 16 down to 조리 시작's target, and 20 up into the space under the pager. */
.grid-secondary button { position: relative; }
.grid-secondary button::after { content: ""; position: absolute; }
#quick-unload::after { inset: -20px -6px -16px -28px; }
#quick-scrape::after { inset: -20px -28px -16px -6px; }

/* ── v11: 배출 / 간이 청소 on one surface tucked behind 조리 시작 ──────────────────────
   One white/7 surface, rounded on top only, split by a short centre divider. It runs 20
   down behind 조리 시작 so that button's rounded corners sit over it with no gap; the
   block keeps 조리 시작 on y908–972 and the surface's buttons on y844–908. */
.grid-actions { gap: 0; }
.grid-secondary {
  position: relative;
  gap: 0;
  height: auto;
  margin-bottom: -20px;
  padding-bottom: 20px;
  border-radius: 20px 20px 0 0;
  background: rgb(255 255 255 / 7%);
}
.grid-secondary button { height: 64px; border-radius: 0; background: none; }
.grid-secondary button:first-child { border-top-left-radius: 20px; }
.grid-secondary button:last-child { border-top-right-radius: 20px; }
.grid-secondary button:active { background: rgb(255 255 255 / 11%); }
.grid-secondary::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  width: 1px;
  height: 28px;
  background: rgb(255 255 255 / 15%);
  pointer-events: none;
}
.grid-start { z-index: 1; }
/* Targets: each half runs to its screen edge and 20 up; they meet at the divider and stop
   at 조리 시작, whose own target (edges + bottom) is unchanged. */
#quick-unload::after { inset: -20px 0 0 -28px; }
#quick-scrape::after { inset: -20px -28px 0 0; }
/* The surface sits 12 in from 조리 시작 on each side, so it reads as resting behind it.
   Targets still reach the screen edges (28 + 12). */
.grid-secondary { margin-inline: 12px; }
#quick-unload::after { left: -40px; }
#quick-scrape::after { right: -40px; }
/* 조리 시작 a touch taller (64 → 72); its bottom stays on y972, so it and the surface above rise 8. */
.grid-start { height: 72px; }
/* 배출 / 간이 청소 8 taller as well (64 → 72); the divider stays centred (top 18 → 22). */
.grid-secondary button { height: 72px; }
.grid-secondary::before { top: 22px; }
/* Surface a little more present at rest (white/7 → white/10); pressed follows (11 → 14). */
.grid-secondary { background: rgb(255 255 255 / 10%); }
.grid-secondary button:active { background: rgb(255 255 255 / 14%); }
/* Divider a little shorter (28 → 22), still centred on the 72 row. */
.grid-secondary::before { top: 25px; height: 22px; }
/* The divider hides while either half is pressed, so the pressed fill reads as one clean shape. */
.grid-secondary:has(button:active)::before { opacity: 0; }

/* ── v12: scrims follow the background ─────────────────────────────────────────────
   On the coloured backgrounds the recipe / cook-option cards and the back button's
   pressed fill turn dark, the way the header's 그릴 / 마감 청소 switch does (its track is
   black/50 on red, black/20 on green). On the black no-recipe background they stay the
   light white scrims. Order within a background: empty < card < selected < pressed. */
#cook-container.bg-cook-preparing .recipe-key { background: rgb(0 0 0 / 25%); }
#cook-container.bg-cook-preparing .recipe-key.is-selected { background: rgb(0 0 0 / 50%); }
#cook-container.bg-cook-preparing .recipe-key:active { background: rgb(0 0 0 / 60%); }
#cook-container.bg-cook-preparing .recipe-key-empty { background: rgb(0 0 0 / 8%); }
#cook-container.bg-cook-preparing .grid-back:active { background: rgb(0 0 0 / 30%); }

#cook-container.bg-cook-ready-to-cook .recipe-key { background: rgb(0 0 0 / 12%); }
#cook-container.bg-cook-ready-to-cook .recipe-key.is-selected { background: rgb(0 0 0 / 30%); }
#cook-container.bg-cook-ready-to-cook .recipe-key:active { background: rgb(0 0 0 / 40%); }
#cook-container.bg-cook-ready-to-cook .recipe-key-empty { background: rgb(0 0 0 / 5%); }
#cook-container.bg-cook-ready-to-cook .grid-back:active { background: rgb(0 0 0 / 20%); }

/* Selected card = the header switch's slide, solid and without an outline (the check
   stays): red rgb(245 96 96)/50 on preheat, #46CB89/40 with its soft shadow on ready,
   white/20 on the black no-recipe background. */
.recipe-key.is-selected { border-color: transparent; box-shadow: none; background: rgb(255 255 255 / 20%); }
#cook-container.bg-cook-preparing .recipe-key.is-selected { background: rgb(245 96 96 / 50%); }
#cook-container.bg-cook-ready-to-cook .recipe-key.is-selected { background: rgb(70 203 137 / 40%); box-shadow: 0 0 12px 0 rgb(0 0 0 / 25%); }
/* Red selected a step darker than the switch slide (50% → 35%): at card size it read too bright. */
#cook-container.bg-cook-preparing .recipe-key.is-selected { background: rgb(245 96 96 / 35%); }
/* Phase word and remaining temperature at one size (24; the temperature was 20). */
.grid-hint { font-size: 24px; line-height: 32px; }
/* No check mark: the solid fill alone marks the selected card. */
.recipe-key-check { display: none; }
/* No chevron after the option count: the count alone ("2") says the card opens options. */
.recipe-key-meta svg { display: none; }
/* No recipe yet ("레시피를 선택하세요"): the bottom buttons are hidden altogether. */
#cook-container:has(#grid-status[data-phase="standby"]) #action-panel { display: none; }
/* …and the grid takes their room: 2 × 5 (ten recipes a page), y340–888, pager on y904. */
#cook-container:has(#grid-status[data-phase="standby"]) .recipe-grid { grid-template-rows: repeat(5, 100px); }

/* 배출 / 간이 청소 surface: a 1px diagonal gradient border, brightest at the top-left
   corner and fading towards the bottom-right, like a lit edge. Drawn with the mask
   trick on ::after (::before is the divider), so the rounded top follows the surface;
   the bottom run is tucked behind 조리 시작 anyway. */
.grid-secondary::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgb(255 255 255 / 16%) 0%, rgb(255 255 255 / 10%) 40%, rgb(255 255 255 / 4%) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
/* All three buttons 8 taller (72 → 80). 조리 시작 keeps its bottom on y972 (y892–972);
   the surface row above is y812–892. Divider re-centred. */
.grid-start, .grid-secondary button { height: 80px; }
.grid-secondary::before { top: 29px; }
/* Recipe name + status line 12 higher (y184 → y172); the status block grows by the same
   12 below the text, so the shade and the grid stay where they are. */
.grid-workspace { top: 172px; }
.grid-status { height: 120px; padding-bottom: 28px; }

/* One page (no pager): cards 12 taller, taken from the pager's empty band.
   Recipe level 100 → 112 (y340–700), cook-option level 84 → 96 (y392–704), and the no-recipe
   2 × 5 grid 100 → 112 (y340–948). Multi-page layouts are unchanged. */
.grid-workspace.is-single-page .recipe-grid { grid-template-rows: repeat(3, 112px); }
.grid-workspace.is-single-page .grid-heading:not(.is-blank) + .recipe-grid { grid-template-rows: repeat(3, 96px); }
#cook-container:has(#grid-status[data-phase="standby"]) .grid-workspace.is-single-page .recipe-grid { grid-template-rows: repeat(5, 112px); }
/* 조리 시작 as a pill. The surface above still runs 20 behind it: 12 in from the pill's
   end, its curve is only ~11 down, so the surface's square bottom corners stay hidden. */
.grid-start { border-radius: 999px; }
/* Surface top corners rounder (20 → 40), with the pressed halves following. */
.grid-secondary { border-radius: 40px 40px 0 0; }
.grid-secondary button:first-child { border-top-left-radius: 40px; }
.grid-secondary button:last-child { border-top-right-radius: 40px; }
/* Preheat: the temperature alone ("163°C 남음") — no "준비 중", no interpunct.
   준비 완료 is unchanged (it has no temperature to stand in for it). */
[data-phase="preheat"] .grid-phase { display: none; }
[data-phase="preheat"] .grid-hint::before { content: none; }

/* Recipe area 16 higher, pager with it: the blank heading band 48 → 32 (grid y324, shade
   y306); on the cook-option level the band 100 → 84 keeps the shade on the same y306, the
   back button at its foot (y316–372) and the options from y376. Status unchanged. */
.grid-heading.is-blank { height: 32px; }
.grid-heading:not(.is-blank) { height: 84px; }
.grid-heading:not(.is-blank)::before { top: 14px; }

/* Recipe / cook-option grid as wide as the 배출 / 간이 청소 surface (x40–560): 12 in on each
   side. The heading band moves in with it, so "레시피" stays on the cells' text line
   (now x62); the shade still spans the screen (inset -40). */
.recipe-grid, .grid-heading { margin-inline: 12px; }
.recipe-grid::before, .grid-heading::before { left: -40px; right: -40px; }

/* Cook option on the status line, not a pill: "웰던 · 준비 완료", "웰던 · 163°C 남음".
   Same size and white/60 as the rest of the line; an interpunct follows it. */
.grid-option { font-size: 24px; line-height: 32px; color: rgb(255 255 255 / 60%); white-space: nowrap; }
.grid-option:empty { display: none; }
.grid-option:not(:empty)::after { content: "·"; margin-left: 10px; }
/* Shade a little lighter: 20 % → 14 % at its darkest (top-centre). */
.recipe-grid::before, .grid-heading::before {
  -webkit-mask-image: linear-gradient(180deg, rgb(0 0 0 / .14) 0%, rgb(0 0 0 / 0) 100%);
  mask-image: linear-gradient(180deg, rgb(0 0 0 / .14) 0%, rgb(0 0 0 / 0) 100%);
}


/* ── v13: first-selection transition (View Transitions) ─────────────────────────────
   Whole thing ≤ ~260ms. Cards present before and after morph (position + size: 112 → 100,
   or row 4 → row 1 of the next page). Cards that only exist before shrink and fade out;
   cards that only exist after fade in a beat later. The pager and bottom buttons rise
   16 as they appear. Everything else (background colour, status text) cross-fades. */
#quick-pager { view-transition-name: vt-pager; }
#action-panel { view-transition-name: vt-actions; }

::view-transition-group(*) { animation-duration: 240ms; animation-timing-function: cubic-bezier(.2, 0, 0, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 200ms; }

::view-transition-old(*):only-child { animation: vt-card-out 70ms ease-in both; }   /* exit 120 → 70ms: the leaving cards clear out quicker */
::view-transition-new(*):only-child { animation: vt-card-in 180ms 60ms ease-out both; }
::view-transition-new(vt-actions):only-child,
::view-transition-new(vt-pager):only-child { animation: vt-rise-in 200ms 60ms cubic-bezier(.2, 0, 0, 1) both; }

/* Drill in / out of the cook-option level: leaving cards slide away and fade, arriving
   ones slide in after them — a short sideways shift (80), quick but on a soft curve rather than a sharp snap, not a full page, so nothing
   travels outside the canvas. */
.vt-drill-in::view-transition-old(*):only-child { animation: vt-slide-out-left 120ms cubic-bezier(.4, 0, .6, 1) both; }
.vt-drill-in::view-transition-new(*):only-child { animation: vt-slide-in-right 190ms 40ms cubic-bezier(.3, 0, .25, 1) both; }
.vt-drill-out::view-transition-old(*):only-child { animation: vt-slide-out-right 120ms cubic-bezier(.4, 0, .6, 1) both; }
.vt-drill-out::view-transition-new(*):only-child { animation: vt-slide-in-left 190ms 40ms cubic-bezier(.3, 0, .25, 1) both; }
@keyframes vt-slide-out-left { to { opacity: 0; transform: translateX(-80px); } }
@keyframes vt-slide-in-right { from { opacity: 0; transform: translateX(80px); } }
@keyframes vt-slide-out-right { to { opacity: 0; transform: translateX(80px); } }
@keyframes vt-slide-in-left { from { opacity: 0; transform: translateX(-80px); } }
@keyframes vt-card-out { to { opacity: 0; transform: scale(.96); } }
@keyframes vt-card-in { from { opacity: 0; transform: scale(.96); } }
@keyframes vt-rise-in { from { opacity: 0; transform: translateY(16px); } }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* 배출's ON / OFF as a small badge: 18px (from 24), pill, fixed width so 배출 does not
   shift between the two. ON reads white on white/18, OFF dims to white/45 on white/8. */
#quick-unload-state {
  display: inline-flex; align-items: center; justify-content: center;
  width: auto; min-width: 52px; height: 30px; padding: 0 10px;
  border-radius: 999px; background: rgb(255 255 255 / 18%);
  font-size: 18px; line-height: 1; letter-spacing: .02em; text-align: center;
}
#quick-unload[aria-checked="false"] #quick-unload-state { background: rgb(255 255 255 / 8%); }
/* Pill is one fixed size (56 × 30) for ON and OFF; the text keeps its natural width and
   sits dead centre (no letter-spacing, which would add trailing space and push it left). */
#quick-unload-state { width: 56px; min-width: 0; padding: 0; letter-spacing: 0; justify-content: center; }
/* Optical centring: "ON" reads right-heavy (round O, straight-sided N), so nudge it 1px left. */
#quick-unload[aria-checked="true"] #quick-unload-state { padding-right: 2px; }
/* Badge text one step up (18 → 20); the 56 × 30 pill still fits OFF with ~9 each side. */
#quick-unload-state { font-size: 20px; }
/* Badge fill: a gentle top-to-bottom gradient around the same average (ON 21 → 15 %,
   OFF 10 → 6 %), lighter on top, only a few percent apart. */
#quick-unload-state { background: linear-gradient(to bottom, rgb(255 255 255 / 21%), rgb(255 255 255 / 15%)); }
#quick-unload[aria-checked="false"] #quick-unload-state { background: linear-gradient(to bottom, rgb(255 255 255 / 10%), rgb(255 255 255 / 6%)); }

/* Badge colours swapped: OFF takes the old neutral ON look (white text on white 21 → 15 %);
   ON is coloured by the background it sits on — the header switch's green on ready,
   its red on preheat — with the same gentle top-light gradient. */
#quick-unload[aria-checked="false"] #quick-unload-state {
  color: white;
  background: linear-gradient(to bottom, rgb(255 255 255 / 21%), rgb(255 255 255 / 15%));
}
#cook-container.bg-cook-ready-to-cook #quick-unload[aria-checked="true"] #quick-unload-state {
  background: linear-gradient(to bottom, rgb(70 203 137 / 70%), rgb(70 203 137 / 58%));
}
#cook-container.bg-cook-preparing #quick-unload[aria-checked="true"] #quick-unload-state {
  background: linear-gradient(to bottom, rgb(245 96 96 / 62%), rgb(245 96 96 / 50%));
}
/* The surface now runs all the way down behind 조리 시작 (80, not 20) and is rounded 40 at
   the bottom too, so its lower corners sit inside the pill's ends. The pressed highlight
   is painted on the surface itself — a half-width overlay — so it follows the same shape
   right down to the bottom of 조리 시작 instead of stopping at the buttons' 80. */
.grid-secondary { margin-bottom: -80px; padding-bottom: 80px; border-radius: 40px; }
.grid-secondary button:active { background: none; }
.grid-secondary:has(#quick-unload:active) { background-image: linear-gradient(to right, rgb(255 255 255 / 5%) 50%, transparent 50%); }
.grid-secondary:has(#quick-scrape:active) { background-image: linear-gradient(to right, transparent 50%, rgb(255 255 255 / 5%) 50%); }

/* ── Current-recipe block, left-aligned (test) ─────────────────────────────────────────
   Text starts on the cards' text line: grid x40 + 1 border + 22 padding = x63, i.e. 35 in
   from the workspace. Name one step up (34 → 40), status line under it. */
.grid-status { align-items: flex-start; padding: 0 35px 24px; text-align: left; }
.grid-current { justify-content: flex-start; text-align: left; font-size: 40px; line-height: 48px; max-width: 100%; }
.grid-status-line { justify-content: flex-start; margin-top: 8px; }
[data-phase="standby"] .grid-status { align-items: center; justify-content: flex-start; }
[data-phase="standby"] .grid-current { font-size: 24px; line-height: 32px; }


/* "레시피를 선택하세요" sits where the status line would (y228–260, 24/32), so its baseline
   matches "준비 완료" / "163°C 남음" on the other screens. */
#grid-status[data-phase="standby"] { justify-content: flex-start; }
#grid-status[data-phase="standby"] .grid-current { margin: 56px 0 0; font-size: 24px; line-height: 32px; }
/* English phase labels are sentence case now ("Ready to cook"), so the caps tracking goes. */
html[lang="en"] #grid-phase { letter-spacing: 0; }

/* ON badge: a dark scrim of the background's hue instead of the light switch colour, with
   the label in the bright state colour (the app's ready green #56FAA8 / preheat red #FF8484). */
#cook-container.bg-cook-ready-to-cook #quick-unload[aria-checked="true"] #quick-unload-state {
  background: linear-gradient(to bottom, hsl(150 40% 24% / 80%), hsl(150 40% 20% / 80%));
  color: hsl(150 42% 87%);
}
#cook-container.bg-cook-preparing #quick-unload[aria-checked="true"] #quick-unload-state {
  background: linear-gradient(to bottom, hsl(0 38% 27% / 80%), hsl(0 38% 22% / 80%));
  color: hsl(0 55% 89%);
}

/* Header icon buttons 12 further in from the screen edges, with the tap area reaching the
   viewport edge: the 12 outer margin becomes padding (8 + 12 + 12 = 32 on the outer side). */
#menu-btn { margin-left: 0; padding-left: 32px; }
#temp-btn { margin-right: 0; padding-right: 32px; }
/* "On" in sentence case no longer reads right-heavy the way "ON" did; drop the nudge. */
#quick-unload[aria-checked="true"] #quick-unload-state { padding-right: 0; }

/* Background colour changes fade (black → red → green and back). The container stays black;
   the red and green gradients sit on two layers behind everything and cross by opacity.
   Red stays on under green, so red → green is green fading in over it, never a dip through
   black. 600ms ease. Instant under prefers-reduced-motion. */
#cook-container.bg-cook-preparing, #cook-container.bg-cook-ready-to-cook { background: #000; }
.bg-layer { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 600ms ease; }
#cook-container:is(.bg-cook-preparing, .bg-cook-ready-to-cook) > .bg-layer-red { opacity: 1; }
#cook-container.bg-cook-ready-to-cook > .bg-layer-green { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .bg-layer { transition: none; } }
/* The selected card's fill changes with the background (white → red → green) on the same
   600ms ease. Pressing it stays quick. Instant under prefers-reduced-motion. */
.recipe-key.is-selected { transition: background 600ms ease, box-shadow 600ms ease, border-color 600ms ease; }
.recipe-key.is-selected:active { transition-duration: 120ms; }
@media (prefers-reduced-motion: reduce) { .recipe-key.is-selected { transition: none; } }
/* The header switch's knob (and its track) change colour with the background on the same
   600ms ease; the knob's slide keeps its own 200ms. */
#switch-slide { transition: transform 200ms ease-out, background-color 600ms ease, box-shadow 600ms ease; }
#clean-switch { transition: background-color 600ms ease, box-shadow 600ms ease; }
@media (prefers-reduced-motion: reduce) { #switch-slide { transition: transform 200ms ease-out; } #clean-switch { transition: none; } }

/* The selected card shows a pressed state too (it had none on red / green): a step stronger
   fill of its own colour. */
#cook-container .recipe-key.is-selected:active { background: rgb(255 255 255 / 28%); }
#cook-container.bg-cook-preparing .recipe-key.is-selected:active { background: rgb(245 96 96 / 52%); }
#cook-container.bg-cook-ready-to-cook .recipe-key.is-selected:active { background: rgb(70 203 137 / 58%); }

/* ── v14: recipe bottom sheet motion ─────────────────────────────────────────────────
   Open: the sheet slides up from below the screen, 360ms on a soft, decelerating curve;
   the scrim fades in alongside. Close: slides back down faster, 220ms, the same curve
   family so it starts quick and settles. Under prefers-reduced-motion only the scrim and
   sheet fade (150ms). */
#recipe-sheet {
  --sheet-open-dur: 360ms;
  --sheet-close-dur: 220ms;
  --sheet-ease: cubic-bezier(0.32, 0.72, 0, 1);
}
#grid-status { cursor: pointer; }
#recipe-sheet > [data-action="sheet-close"] {
  opacity: 0;
  transition: opacity var(--sheet-close-dur) var(--sheet-ease);
}
#recipe-sheet > [data-testid="recipe-bottom-sheet"] {
  transform: translateY(100%);
  transition: transform var(--sheet-close-dur) var(--sheet-ease);
  will-change: transform;
}
#recipe-sheet.is-open > [data-action="sheet-close"] {
  opacity: 1;
  transition-duration: var(--sheet-open-dur);
}
#recipe-sheet.is-open > [data-testid="recipe-bottom-sheet"] {
  transform: translateY(0);
  transition-duration: var(--sheet-open-dur);
}
@media (prefers-reduced-motion: reduce) {
  #recipe-sheet > [data-testid="recipe-bottom-sheet"] { transform: none; opacity: 0; transition: opacity 150ms ease; }
  #recipe-sheet.is-open > [data-testid="recipe-bottom-sheet"] { opacity: 1; }
  #recipe-sheet > [data-action="sheet-close"] { transition-duration: 150ms !important; }
}

/* ── v14: recipe sheet layout and scrims, from v0-4 ──────────────────────────────────
   Rows run edge to edge (the list's 28 side padding taken back and returned as padding),
   so the selected band reaches both screen edges while numbers and names stay put. */
#sheet-list > button { margin-inline: -28px; width: calc(100% + 56px); padding-left: 34px; padding-right: 56px; }
/* Selected: a dark band (black/35) fading out at both ends on 0 / 15 / 85 / 100 stops, no
   corners, with a check after the name. Pressed: the same band at 45 %. */
.sheet-row-on {
  border-radius: 0;
  background: linear-gradient(to right, rgb(0 0 0 / 0) 0%, rgb(0 0 0 / 35%) 15%, rgb(0 0 0 / 35%) 85%, rgb(0 0 0 / 0) 100%);
}
#sheet-list > button:active {
  border-radius: 0;
  background: linear-gradient(to right, rgb(0 0 0 / 0) 0%, rgb(0 0 0 / 45%) 15%, rgb(0 0 0 / 45%) 85%, rgb(0 0 0 / 0) 100%);
}
.sheet-check { width: 28px; height: 28px; flex-shrink: 0; color: rgb(255 255 255 / 85%); }
/* Recipes with cook options show "N ›" instead of "조리 설정 N". */
.sheet-count { display: inline-flex; align-items: center; }
.sheet-count svg { width: 32px; height: 32px; margin-left: 2px; }
/* Edge light: a hairline along the top plus a faint all-round inner edge. */
[data-testid="recipe-bottom-sheet"] {
  box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .1), inset 0 0 .5px rgba(255, 255, 255, .3);
}
/* Header: title and ✕ 8 lower; title in tracked caps, 400 / 24px. */
#sheet-title, [data-action="sheet-header-close"], [data-action="sheet-back"] { transform: translateY(8px); }
#sheet-title { text-transform: uppercase; font-weight: 400; font-size: 24px; line-height: 32px; }
/* Tracking (0.16em, centred against its trailing space) on the English title only. */
html[lang="en"] #sheet-title { letter-spacing: 0.16em; padding-left: 0.16em; }

/* ── v14: menu opens like X (Twitter)'s side menu ───────────────────────────────────
   Tapping ☰ pushes the cook screen's content 480 to the right (80 % of the width) as a card
   with rounded corners and a soft shadow (the background stays); its content fades to 40 % as it goes, and the ☰ button fades out.
   The menu underneath fades in and grows from 98 % on the left edge. The background
   colour stays the same: the black/70 backdrop is now see-through, which looks the same
   over the black device, so it no longer darkens the card. Tapping the card closes the
   menu. Open 360ms on the sheet's decelerating curve; close 260ms. Under
   prefers-reduced-motion the menu only fades and the screen stays put. */
html #app-menu { --menu-close-ms: 260; }
html #app-menu .menu-backdrop { background: transparent; }
html #app-menu .menu-popup { right: auto; width: 80%; backdrop-filter: none; transform-origin: 0 50%;
  transition: opacity 360ms cubic-bezier(0.32, 0.72, 0, 1), transform 360ms cubic-bezier(0.32, 0.72, 0, 1); }
html #app-menu.is-closed .menu-popup { opacity: 0; transform: scale(0.98); transition-duration: 260ms; }
/* Only the content moves: the column (and the tick ring in v0) slides as a rounded card,
   while the red / green background behind it stays where it is. */
html :is(#cook-container > .z-10, #tick-ring-slot) { transition: transform 360ms cubic-bezier(0.32, 0.72, 0, 1); }
html #cook-container > .z-10 { border-radius: 40px; box-shadow: -12px 0 40px rgb(0 0 0 / 0), inset 0 0 0 1px rgb(255 255 255 / 0); transition: transform 360ms cubic-bezier(0.32, 0.72, 0, 1), box-shadow 360ms cubic-bezier(0.32, 0.72, 0, 1); }
html :is(#cook-container > .z-10 > *, #tick-ring-slot) { transition: opacity 360ms cubic-bezier(0.32, 0.72, 0, 1); }
html #tick-ring-slot { transition: transform 360ms cubic-bezier(0.32, 0.72, 0, 1), opacity 360ms cubic-bezier(0.32, 0.72, 0, 1); }
html #menu-btn { transition: opacity 360ms cubic-bezier(0.32, 0.72, 0, 1); }
/* The card also shrinks to 98 % (from its left edge), so its rounded top and bottom corners
   come into view. */
html :is(#cook-container > .z-10, #tick-ring-slot) { transform-origin: 0 50%; }
html .device:has(#app-menu:not([hidden]):not(.is-closed)) :is(#cook-container > .z-10, #tick-ring-slot) { transform: translateX(480px) scale(0.98); }
/* No surface on the card: its content just drops to 40 % opacity. Its rounded edge shows
   by a soft shadow cast to the left, as in the X reference. */
/* A 1px white/12 rim along the card's edge, so it still reads as a layer on the black
   background, where the shadow cannot show. */
html .device:has(#app-menu:not([hidden]):not(.is-closed)) #cook-container > .z-10 { box-shadow: -12px 0 40px rgb(0 0 0 / 45%), inset 0 0 0 1px rgb(255 255 255 / 12%); }
html .device:has(#app-menu:not([hidden]):not(.is-closed)) :is(#cook-container > .z-10 > *, #tick-ring-slot) { opacity: 0.4; }
html .device:has(#app-menu:not([hidden]):not(.is-closed)) #menu-btn { opacity: 0; }
html .device:has(#app-menu.is-closed) :is(#cook-container > .z-10, #cook-container > .z-10 > *, #tick-ring-slot, #menu-btn) { transition-duration: 260ms; }
@media (prefers-reduced-motion: reduce) {
  html .device:has(#app-menu:not([hidden]):not(.is-closed)) :is(#cook-container > .z-10, #tick-ring-slot) { transform: none; }
  html #app-menu .menu-popup { transform: none !important; transition: opacity 150ms ease !important; }
}

/* 배출 / 간이 청소 labels at full white (from white/75). */
#quick-unload-label, #quick-scrape-label { color: #fff; }

/* Menu header (the row with ←|) without the app's grey #7070704D band. */
html #app-menu .menu-popup > header { background: transparent; }

/* v14: the 레시피 / 설정 rows' pressed scrim is dark (black/30, from white/18) on the red and
   green backgrounds. On black (no recipe) it stays white/18, where a dark one would not show. */
html .device:has(#cook-container:is(.bg-cook-preparing, .bg-cook-ready-to-cook)) #app-menu section button[data-menu]:active { background-color: rgb(0 0 0 / 30%); }

/* Menu footer (versions + 장비 관리) 21 higher, so 장비 관리's bottom lines up with
   조리 시작's bottom on the pushed-aside card (y963 with the card at 98 %): pb 40 → 61. */
html #app-menu .menu-popup footer { padding-bottom: 61px; }

/* On the black background (no recipe) the shadow cannot show, so the pushed-aside card gets
   a white/8 surface as well; it fades in and out with the slide. Red / green keep no surface. */
html #cook-container > .z-10 { background-color: rgb(255 255 255 / 0); }
html .device:has(#app-menu:not([hidden]):not(.is-closed)) #cook-container.bg-black > .z-10 { background-color: rgb(255 255 255 / 8%); }
html #cook-container > .z-10 { transition-property: transform, box-shadow, background-color; }

/* v14: the ←| close button's tap area is the whole top band of the menu (the panel's width ×
   100), not just the icon's corner; the icon stays where it was (header padding moved into
   the button). */
html #app-menu .menu-popup > header { padding: 0; }
html #app-menu .menu-popup > header > [data-menu="close"] { flex: 1; align-self: stretch; padding: 30px 20px 30px 8px; }

/* v14: menu's 레시피 / 설정 rows a little shorter, 120 → 104 (py 20 → 12). */
html #app-menu section button[data-menu] { height: 104px; padding-top: 12px; padding-bottom: 12px; }

/* Cook-option level of the sheet: the title is the recipe's name, so it stays as written —
   no caps, no tracking (those are for the "RECIPE" title only). */
html #sheet-title.is-recipe-name { text-transform: none; letter-spacing: 0; padding-left: 0; }

/* v14: the sheet's ‹ back button (cook-option level) hides with [hidden] despite its flex class. */
#recipe-sheet [data-action="sheet-back"][hidden] { display: none; }

/* v14: the sheet's ‹ and ✕ keep their 120 × 100 tap area, but the pressed fill sits on a
   64 × 64 rounded box around the icon (white/10), like the other icon buttons (menu ←|). */
.sheet-icon-box { display: flex; width: 64px; height: 64px; align-items: center; justify-content: center; border-radius: 8px; }
html #recipe-sheet :is([data-action="sheet-back"], [data-action="sheet-header-close"]):active { background-color: transparent; }
html #recipe-sheet :is([data-action="sheet-back"], [data-action="sheet-header-close"]):active .sheet-icon-box { background-color: rgb(255 255 255 / 10%); }

/* Cook-option level heading (‹ 레시피 + recipe name): the tap target is the whole heading
   band, edge to edge of the viewport (::after reaches past the grid's side margins and the
   cook container clips it); pressing anywhere on it fills ‹ 레시피 and the recipe name as
   one rounded scrim. The back button's -8 right margin moves into the title's padding, so
   the two fills meet without overlapping (text stays where it was). */
.grid-heading:not(.is-blank) { cursor: pointer; }
.grid-heading:not(.is-blank)::after { content: ""; position: absolute; top: 0; bottom: 0; left: -100px; right: -100px; z-index: 1; }
.grid-heading:not(.is-blank) .grid-back { margin-right: 0; border-radius: 12px 0 0 12px; }
.grid-heading:not(.is-blank) #grid-title { padding-left: 6px; border-radius: 0 12px 12px 0; }
.grid-heading:not(.is-blank) .grid-back:active { background: none; }
.grid-heading:not(.is-blank):active :is(.grid-back, #grid-title) { background: rgb(255 255 255 / 10%); }
#cook-container.bg-cook-preparing .grid-heading:not(.is-blank):active :is(.grid-back, #grid-title) { background: rgb(0 0 0 / 30%); }
#cook-container.bg-cook-ready-to-cook .grid-heading:not(.is-blank):active :is(.grid-back, #grid-title) { background: rgb(0 0 0 / 20%); }

/* ‹ 레시피 indented 21 further: the chevron's drawn left edge (x63) lines up with the option
   names in the cards below (it hung 21 to the left of them). Label and title move with it. */
.grid-heading:not(.is-blank) .grid-back { margin-left: -14px; }

/* The ‹ 레시피 + name scrim 7 wider on each side, so its left edge starts where the recipe
   cards do (x40); the chevron and text stay put (padding grows as the margin shrinks). */
.grid-heading:not(.is-blank) .grid-back { margin-left: -21px; padding-left: 15px; }
.grid-heading:not(.is-blank) #grid-title { padding-right: 19px; }

/* v14: header icon buttons' pressed scrim (☰, the temperature button, the menu's ←|) stays
   white/20 (←| white/10) on the black background, and turns dark on the lit red / green
   ones — black/30 on red, black/20 on green, as the quick grid's back heading. */
html #cook-container.bg-cook-preparing :is(#menu-btn, #temp-btn):active > div { background-color: rgb(0 0 0 / 30%); }
html #cook-container.bg-cook-ready-to-cook :is(#menu-btn, #temp-btn):active > div { background-color: rgb(0 0 0 / 20%); }
html .device:has(#cook-container.bg-cook-preparing) #app-menu header [data-menu="close"]:active > div { background-color: rgb(0 0 0 / 30%); }
html .device:has(#cook-container.bg-cook-ready-to-cook) #app-menu header [data-menu="close"]:active > div { background-color: rgb(0 0 0 / 20%); }

/* v14: the temperature modal's ✕ presses like the recipe sheet's — a 64 × 64 rounded
   white/10 box around the icon; the 120 × 100 tap area stays. */
html #temp-modal [data-action="temp-close"]:active .sheet-icon-box { background-color: rgb(255 255 255 / 10%); }

/* Pressing the pushed-aside card (the tap lands on the menu's see-through backdrop) dims its
   content further, 40 → 25 %, at once; letting go closes the menu and it comes back to 100 %.
   The rim and shadow stay, so the card still reads while pressed. */
html .device:has(#app-menu:not([hidden]):not(.is-closed) .menu-backdrop:active) :is(#cook-container > .z-10 > *, #tick-ring-slot) { opacity: 0.25; transition-duration: 0s; }

/* The see-through backdrop (the card's tap target, D5) covers only the strip right of the
   80 % menu panel, top to bottom of the screen — the same area it could be tapped in before. */
html #app-menu .menu-backdrop { left: 80%; }

/* ── Cooking screen (조리 시작 이후) ─────────────────────────────────────────────
   Ported from fw-app-tauri-AlphaGrill main @ 96c89ba: features/cook/components/
   cook-active-view.tsx, cook-phase-timeline.tsx, phase-label(-shade).tsx, upcoming-label.tsx,
   cook-timer.tsx, cook-action-bar.tsx, recipe-info.tsx; type-numeric1/2 · mask-fade-left
   from app/global.css. Sizes are the app's Tailwind values in px (1 unit = 4px). */
html.is-cooking #quick-panel,
html.is-cooking #action-panel { display: none; }
html.is-cooking #menu-btn { pointer-events: none; }
html.is-cooking #menu-btn > div { opacity: 0.3; }
html.is-cooking #clean-switch { pointer-events: none; }
#cooking-view[hidden] { display: none; }

.cv { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding-top: 140px; }
.cv.is-multi { padding-top: 120px; }
.cv-top { display: flex; flex-direction: column; width: 100%; }
.cv-info { display: flex; justify-content: center; width: 100%; padding: 0 64px; margin-bottom: 80px; }
.cv.is-multi .cv-info { margin-bottom: 40px; }
.cv-name-block { display: flex; flex-direction: column; align-items: center; gap: 16px; min-width: 0; }
.cv-name { max-width: 500px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; font-size: 54px; line-height: 120%; font-weight: 500; color: #fff; margin: 0; }
.cv-option { display: flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid rgb(255 255 255 / .1); background: rgb(0 0 0 / .2); padding: 8px 24px; }
.cv-option span { padding: 0 4px; color: rgb(255 255 255 / .8); }

/* CookPhaseTimeline: 1fr · auto · 1fr, the phase always in the middle, upcoming waiting on the right */
.cv-timeline { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr auto 1fr; height: 102px; width: 100%; padding-top: 35px; }
.cv-shade { pointer-events: none; position: absolute; left: 0; right: 0; top: 5px; height: 37px; z-index: -10;
  background: linear-gradient(90deg, rgba(0,0,0,0) 0%, #000 25%, #000 75%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,0) 100%); mask-image: linear-gradient(180deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,0) 100%); }
.cv-phase-slot { position: relative; display: flex; justify-content: center; }
.cv-label { margin: 0; flex-shrink: 0; white-space: nowrap; text-align: center; font-size: 32px; line-height: 150%; font-weight: 500; }
.cv-phase { color: #fff; letter-spacing: .64px; }
.cv-upcoming-wrap { min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(to right, black 0%, transparent 100%); mask-image: linear-gradient(to right, black 0%, transparent 100%); }
.cv-upcoming { display: flex; flex-direction: row; align-items: center; gap: 16px; padding-left: 100px; }
.cv-upcoming .cv-label { color: rgb(255 255 255 / .6); }
/* TODO(미정): the app morphs the promoted step from the right into the middle (motion layoutId,
   spring 320/34/0.9). Here: FLIP with a CSS ease approximating it — see cook.js renderCooking. */
.cv-step { will-change: transform; }

/* CookTimer */
.cv-timer { position: relative; z-index: 0; display: flex; height: 280px; align-items: center; justify-content: center; color: #fff; font-variant-numeric: lining-nums tabular-nums; transition: color 300ms ease; }
.cv-timer.is-dimmed { color: rgb(255 255 255 / .1); }
.cv-num { font-family: "Barlow Semi Condensed", system-ui, sans-serif; font-size: 280px; font-weight: 400; line-height: 100%; }
.cv-num.is-wide { font-size: 220px; font-weight: 500; }
.cv-sep { font-family: Arial, system-ui, sans-serif; font-size: 280px; font-weight: 400; line-height: 100%; letter-spacing: 2.8px; }

/* GuidanceText pill (WAIT_MELT) */
.cv-guide { position: absolute; left: 50%; bottom: 315px; transform: translateX(-50%); z-index: 10; display: inline-flex; align-items: center; justify-content: center; width: 424px; padding: 20px 32px; border-radius: 20px; border: 1px solid rgb(255 255 255 / .18); background: rgba(102,102,102,.2); -webkit-backdrop-filter: blur(25px); backdrop-filter: blur(25px); }
.cv-guide span { width: 360px; text-align: center; white-space: pre-line; color: rgb(255 255 255 / .85); }
.cv-guide[hidden] { display: none; }

/* CookActionBar */
.cv-bar { display: flex; width: 100%; align-items: stretch; gap: 20px; }
.cv-btn-wrap { display: flex; align-items: center; padding-bottom: 52px; outline: none; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }
.cv-btn-wrap[aria-disabled="true"] { pointer-events: none; opacity: .5; }
.cv-btn-wrap.is-stop-only { flex: 1; flex-direction: column; padding-left: 28px; padding-right: 28px; }
.cv-btn-wrap.is-stop-pair { flex-shrink: 0; padding-left: 30px; }
.cv-btn-wrap.is-cheese { flex: 1; min-width: 0; padding-right: 30px; }
.cv-btn { pointer-events: none; display: flex; height: 80px; width: 100%; align-items: center; justify-content: center; gap: 12px; border-radius: 999px; padding: 0 24px; transition: opacity 150ms, background 150ms; }
.cv-btn.is-stop { background: #690404; color: #ff6565; }
.cv-btn-wrap.is-stop-pair .cv-btn { width: 188px; }
.cv-btn.is-primary { background: #fff; color: #000; gap: 20px; }
.cv-btn-wrap:active .cv-btn.is-stop { opacity: .7; }
.cv-btn-wrap:active .cv-btn.is-primary { background: #aaa; }
.cv-btn svg { width: 32px; height: 32px; flex-shrink: 0; }
.cv-btn span { white-space: nowrap; }

/* ── v15: recipe page header — same black as the page, with a black fade under it ────────
   The header (list, detail, 순서 변경, create/edit) loses its white/20 band and takes the
   page's black; a black → transparent gradient hangs below it, over the scrolling content,
   so rows read as sliding down under the header. pointer-events: none keeps rows tappable. */
html[data-variant="v15"] #app-recipe header { background-color: #000; z-index: 2; }
html[data-variant="v15"] #app-recipe header::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 40px;
  pointer-events: none;
  background: linear-gradient(to bottom, #000 0%, rgb(0 0 0 / 0) 100%);
}

/* v15: recipe page header buttons 12 further in from each side and 8 lower, now that the header
   is the page's black and their edges read. The tap areas still reach the screen edge (padding
   grows instead); the pressed fill moves with the icon. ⋯'s popover follows (right 20 → 32, top 108 → 116). */
html[data-variant="v15"] #app-recipe header > button[data-recipe-back] { padding-left: 20px; }   /* by role, not position: list ↔ detail appends ghost copies to the header */
html[data-variant="v15"] #app-recipe header > button:not([data-recipe-back]) { padding-right: 32px; }
html[data-variant="v15"] #app-recipe header > button > span { translate: 0 8px; }   /* translate, not transform: a scale animation on the box (list ↔ detail) then keeps its centre */
html[data-variant="v15"] #app-recipe [data-recipe-popover-close] + div { right: 32px; top: 116px; }

/* v15: settings page header as the recipe page's — the page's black, a black fade below it, the
   header held at the top while the page scrolls (so content slides under the fade), and ‹ 설정
   12 further in and 8 lower, landing where the recipe page's ‹ does. */
html[data-variant="v15"] #app-setting header { background-color: #000; position: sticky; top: 0; z-index: 2; }
html[data-variant="v15"] #app-setting header::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 40px;
  pointer-events: none;
  background: linear-gradient(to bottom, #000 0%, rgb(0 0 0 / 0) 100%);
}
html[data-variant="v15"] #app-setting [data-setting-back] { margin-left: 12px; transform: translateY(8px); }

/* v15: 메뉴 → 설정 / 레시피 — the whole page (its black and the content together) slides in
   from the right (8 → 0) while fading in, 280ms on the menu's ease. Close (‹, Esc) is the
   reverse: it drifts 4 to the right and fades, 160ms ease-in. The menu stays under the page
   while it opens (--page-over-menu), so the menu — not the cook screen sliding back — shows
   through; once the page is in, the menu is gone, so ‹ lands on the cook screen.
   menu.js showPage / hidePage hold .is-opening / .is-closing for --page-open-ms / --page-close-ms.
   Settled (handoff v15): 280 / 160ms, 8 / 4. */
html[data-variant="v15"] :is(#app-setting, #app-recipe) { --page-open-ms: 280; --page-close-ms: 160; --page-over-menu: 1; }
@keyframes v15-page-in  { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }
@keyframes v15-page-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(4px); } }
html[data-variant="v15"] :is(#app-setting, #app-recipe).is-opening { animation: v15-page-in 280ms cubic-bezier(0.32, 0.72, 0, 1) both; }
html[data-variant="v15"] :is(#app-setting, #app-recipe).is-closing { animation: v15-page-out 160ms cubic-bezier(0.4, 0, 1, 1) both; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  html[data-variant="v15"] :is(#app-setting, #app-recipe):is(.is-opening, .is-closing) { transform: none !important; }
}

/* v15: picking the other 대기 화면 card keeps settings open — only the cook screen behind it changes.
   In the prototype that swap (v15 ↔ v0) is a page load, so the old page is held on screen for
   200ms (a cross-document view transition, stepped: no crossfade) while the new page shows
   settings again at the same scroll, then it cuts between two identical frames. Both pages opt
   in (v0/css/proto.css has the same block); v14 doesn't, so its own swap stays a plain load.
   proto-only mechanics — the app keeps its settings page mounted and just swaps the screen under it. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 200ms; animation-timing-function: steps(1, end); }

/* v15: cook screen header 8 lower (☰, 그릴 / 마감 청소, the temperature button), as the recipe /
   settings headers are. Moved, not re-laid-out: the 100 header band and everything under it stay
   put; tap areas move with the buttons. The menu's ←| sits where ☰ is, so it moves too. */
html[data-variant="v15"] #cook-container header > * { transform: translateY(8px); }
html[data-variant="v15"] #app-menu .menu-popup > header > [data-menu="close"] { transform: translateY(8px); }

/* v15: the centred page titles (레시피 추가하기, 순서 변경) 8 lower too, level with ‹ beside them. */
html[data-variant="v15"] #app-recipe header > h3 { margin-top: 8px; }

/* v15: header pressed fills were black/20, which vanish on the now-black header. They take
   white/10 — the fill the recipe sheet's ‹ / ✕ and ⋯ already use on dark. */
html[data-variant="v15"] #app-recipe header > button:active > span:first-child { background-color: rgb(255 255 255 / 10%); }
html[data-variant="v15"] #app-setting [data-setting-back]:active { background-color: rgb(255 255 255 / 10%); }

/* v15: settings sections as grouped cards (each item its own box, the group's outer corners
   rounded large, inner ones small, 4 apart). Cards sit 20 in from the sides with 20 padding, so
   labels still start at 40 under the section title; controls end 40 from the edge (was 28). */
html[data-variant="v15"] #app-setting main > section { display: flex; flex-direction: column; gap: 4px; }
html[data-variant="v15"] #app-setting main > section > h2 { margin-bottom: 12px; padding-left: 80px; }   /* level with the row labels (40 box + 40 inside) */
html[data-variant="v15"] #app-setting main > section > :not(h2) {
  margin: 0 40px; width: auto; padding: 16px 28px 16px 40px;   /* 40 from the sides (as the recipe detail); padding top / bottom 16, right 28, left 40 */   /* left 20 → 32: labels at 52, level with the title */
  background-color: rgb(255 255 255 / 8%); border-radius: 6px;
}
html[data-variant="v15"] #app-setting main > section > h2 + * { border-top-left-radius: 24px; border-top-right-radius: 24px; }
html[data-variant="v15"] #app-setting main > section > :last-child { border-bottom-left-radius: 24px; border-bottom-right-radius: 24px; }
html[data-variant="v15"] #app-setting main > section > button:active { background-color: rgb(255 255 255 / 14%); }

/* v15: 단위 및 언어 segmented switches — the track is black (was white/18 grey) inside the card,
   the selected slide stays white/20 on top. */
html[data-variant="v15"] #app-setting [data-setting] > button[role="switch"] { background-color: #000; width: 240px; height: 56px; }   /* 276 → 240; 56, near the toggles' 54 */
/* the whole row toggles it (menu.js), so the row presses like the toggle rows */
html[data-variant="v15"] #app-setting main > section > div { cursor: pointer; }
html[data-variant="v15"] #app-setting main > section > div:active { background-color: rgb(255 255 255 / 14%); }

/* v15: chevrons, ☰, the menu's ←| and 순서 변경's ↑↓ a touch lighter — stroke 2 → 1.75.
   CSS wins over the stroke-width attribute; the cook screen's symbols are thinned the same way. */
html[data-variant="v15"] :is(#i-menu, #i-chevron-left, #i-chevron-right,
  [data-icon="chevronLeft"], [data-icon="chevronRight"], [data-icon="arrowLeftToLine"], [data-icon="arrowUpDown"], [data-icon="menuLines"],
  [data-icon="x"], [data-icon="pencil"], [data-icon="trash2"], [data-icon="ellipsis"]) { stroke-width: 1.75; }

/* v15: ⋯ popover without its top / bottom padding (py 6 → 0); the rows' pressed fill is clipped
   to the rounded corners. */
html[data-variant="v15"] #app-recipe [data-recipe-popover-close] + div { padding-top: 0; padding-bottom: 0; overflow: hidden; }

/* v15: 레시피 삭제 (icon + label) a less saturated red — #ff2222 → #ff5c5c, the red the app
   already uses for the 배출 icon while preheating. */
html[data-variant="v15"] #app-recipe [data-recipe-action="delete"] > span { color: #ff5c5c; }

/* v15: ⋯ popover rows' left padding 40 → 32, and the panel 8 narrower to match (300 → 292). */
html[data-variant="v15"] #app-recipe [data-recipe-popover-close] + div { width: 292px; }
html[data-variant="v15"] #app-recipe [data-recipe-popover-close] + div > button { padding-left: 32px; }
/* v15: items sit inside the panel (iOS context menu) instead of running edge to edge as bands:
   the panel gets 12 padding all round and a larger radius (16 → 28), each row is a rounded
   item (radius 18) whose pressed fill (black/30) stays inside it. Text stays 32 from the panel
   edge (12 + 20). */
html[data-variant="v15"] #app-recipe [data-recipe-popover-close] + div { padding: 6px; gap: 0; border-radius: 28px; border: 0; box-shadow: var(--v15-lit-edge); }   /* tight around the items; no gap between them; lit edge, no 1px border */
html[data-variant="v15"] #app-recipe [data-recipe-popover-close] + div > button { padding: 20px 26px; border-radius: 22px; }   /* text still 32 from the panel edge (6 + 26); radius 28 − 6 */
html[data-variant="v15"] #app-recipe [data-recipe-popover-close] + div > button:active { background-color: rgb(0 0 0 / 30%); }   /* black scrim (was white/10) */

/* v15: the ⋯ popover opens over ⋯ itself (its top-right corner covers the button, as an iOS
   context menu grows from where it was tapped) instead of under the header. Was top 116 · right 32. */
html[data-variant="v15"] #app-recipe [data-recipe-popover-close] + div { top: 20px; right: 20px; }

/* v15: ⋯ popover opens with motion — it grows from its top-right corner (over ⋯) 0.9 → 1 while
   fading in, 240ms on the menu's ease; the dim behind it fades in over 200ms. The popover is
   created on open, so this plays each time it opens. Closing stays instant.
   Settled (handoff v15): 0.9 → 1 in 240ms, close 120ms fade. */
@keyframes v15-pop-in { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes v15-dim-in { from { opacity: 0; } to { opacity: 1; } }
html[data-variant="v15"] #app-recipe [data-recipe-popover-close] + div { transform-origin: top right; animation: v15-pop-in 240ms cubic-bezier(0.32, 0.72, 0, 1) both; }
html[data-variant="v15"] #app-recipe [data-recipe-popover-close] { animation: v15-dim-in 200ms ease-out both; }
@media (prefers-reduced-motion: reduce) {
  html[data-variant="v15"] #app-recipe [data-recipe-popover-close] + div { animation-name: v15-dim-in; }
}

/* v15: ⋯ popover close — just a quick fade (panel and dim), 120ms; no scale. menu.js closePopover
   waits for it before removing the popover. */
@keyframes v15-fade-out { from { opacity: 1; } to { opacity: 0; } }
html[data-variant="v15"] #app-recipe :is([data-recipe-popover-close], [data-recipe-popover-close] + div).is-closing { animation: v15-fade-out 120ms ease-out both; pointer-events: none; }

/* v15: engineer PIN's ‹ 8 lower, as the cook header (☰, whose place it takes) and the page headers. */
/* the button keeps its place and its tap area grows 8 downward (margin-bottom -8 → -16, from the
   header's top to 8 past its old bottom); the icon box lands 8 lower (4 from the taller centring + 4) */
html[data-variant="v15"] #app-pin [data-pin-close] { margin-bottom: -16px; }
html[data-variant="v15"] #app-pin [data-pin-close] > span { translate: 0 4px; }

/* ── v15: temperature panel ─────────────────────────────────────────────────────────
   Look (matching the settings / ⋯ popover): corners 12 → 28, border white/20 → white/10;
   the column labels lose their dark band and read as small grey captions; 상판 · 하판 become
   one grouped pair of cards (darker than the panel, 4 apart, outer corners 20, inner 6) instead
   of rows split by bands; ✕ presses with a black scrim like the ⋯ items.
   Motion: opens growing 0.95 → 1 with a fade (240ms, the menu's ease) over a fading dim;
   closes with a 120ms fade (cook.js renderTempModal holds .is-closing). */
html[data-variant="v15"] #temp-modal > div { border-radius: 28px; box-shadow: var(--v15-lit-edge); padding-bottom: 16px; }   /* lit edge, no 1px ring */
html[data-variant="v15"] #temp-modal > div > div:nth-child(2) { background: transparent; }
html[data-variant="v15"] #temp-modal > div > div:nth-child(2) > div { color: rgb(255 255 255 / 70%); padding-top: 4px; padding-bottom: 12px; }
html[data-variant="v15"] #temp-modal > div > div:nth-child(3),
html[data-variant="v15"] #temp-modal > div > div:nth-child(5) { margin: 0 16px; border: 0; background: rgb(0 0 0 / 25%); border-radius: 6px; }
html[data-variant="v15"] #temp-modal > div > div:nth-child(3) { border-top-left-radius: 20px; border-top-right-radius: 20px; }
html[data-variant="v15"] #temp-modal > div > div:nth-child(5) { border-bottom-left-radius: 20px; border-bottom-right-radius: 20px; }
html[data-variant="v15"] #temp-modal > div > div:nth-child(4) { height: 4px; background: transparent; }
/* the grid's 40 side padding sat on the panel edge; inside the 16-in cards it is 24 */
html[data-variant="v15"] #temp-modal > div > div:is(:nth-child(3), :nth-child(5)) > div:first-child { padding-left: 24px; }
html[data-variant="v15"] #temp-modal > div > div:is(:nth-child(3), :nth-child(5)) > div:last-child { padding-right: 24px; }
html[data-variant="v15"] #temp-modal [data-action="temp-close"]:active .sheet-icon-box { background-color: rgb(0 0 0 / 30%); }
@keyframes v15-tm-in { from { opacity: 0; scale: 0.95; } to { opacity: 1; scale: 1; } }
@keyframes v15-tm-dim { from { opacity: 0; } to { opacity: 1; } }
@keyframes v15-tm-out { from { opacity: 1; } to { opacity: 0; } }
html[data-variant="v15"] #temp-modal:not(.hidden) > div { animation: v15-tm-in 240ms cubic-bezier(0.32, 0.72, 0, 1) both; }
html[data-variant="v15"] #temp-modal:not(.hidden) > button { animation: v15-tm-dim 200ms ease-out both; }
html[data-variant="v15"] #temp-modal.is-closing > :is(div, button) { animation: v15-tm-out 120ms ease-out both; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  html[data-variant="v15"] #temp-modal:not(.hidden) > div { animation-name: v15-tm-dim; }
}

/* v15: the column-label row (그리들 / recipe / 현재) is the first card of the group too: same dark
   card, 4 above 상판, it takes the top corners (20) and 상판 the inner ones (6). */
html[data-variant="v15"] #temp-modal > div > div:nth-child(2) { margin: 0 16px 4px; background: rgb(0 0 0 / 25%); border-radius: 20px 20px 6px 6px; }
html[data-variant="v15"] #temp-modal > div > div:nth-child(2) > div { padding-top: 14px; padding-bottom: 14px; }
html[data-variant="v15"] #temp-modal > div > div:nth-child(2) > div:first-child { padding-left: 24px; }
html[data-variant="v15"] #temp-modal > div > div:nth-child(2) > div:last-child { padding-right: 24px; }
html[data-variant="v15"] #temp-modal > div > div:nth-child(3) { border-top-left-radius: 6px; border-top-right-radius: 6px; }

/* v15: temperature panel, the rest —
   current readings one step below the targets (28 → 24, so 250 / 230 read as the reference);
   the heating red softened (#FF5454 → #ff5c5c, the 레시피 삭제 red) on the number and the zone icon;
   ✕ 12 further in, its right edge on the cards' content edge (40 from the panel's). */
html[data-variant="v15"] #temp-modal :is(#tm-top-z1, #tm-top-z2, #tm-bot-z1, #tm-bot-z2) { font-size: 24px; line-height: 130%; }
html[data-variant="v15"] #temp-modal .text-\[\#FF5454\] { color: #ff5c5c; }
html[data-variant="v15"] #temp-modal path[fill="#FF5454"] { fill: #ff5c5c; }
html[data-variant="v15"] #temp-modal > div > div:first-child > [data-action="temp-close"] { right: 12px; }

/* v15: temperature panel's dim — no blur, black 70 → 80 %. */
html[data-variant="v15"] #temp-modal > button[data-action="temp-close"] { backdrop-filter: none; -webkit-backdrop-filter: none; background-color: rgb(0 0 0 / 80%); }

/* v15: engineer PIN backdrop like the temperature panel's — no blur, black 70 → 80 %. */
html[data-variant="v15"] #app-pin .pin-backdrop { backdrop-filter: none; -webkit-backdrop-filter: none; background-color: rgb(0 0 0 / 80%); }

/* v15: every dim behind a sheet / dialog / popover in one tone — no blur, black 80 %
   (recipe form sheet, delete confirm, ⋯ popover, the cook screen's recipe sheet), as the
   temperature panel and the engineer PIN. */
html[data-variant="v15"] #app-recipe :is([data-sheet-cancel], [data-confirm-cancel], [data-recipe-popover-close]),
html[data-variant="v15"] #recipe-sheet > [data-action="sheet-close"] { backdrop-filter: none; -webkit-backdrop-filter: none; background-color: rgb(0 0 0 / 80%); }



/* v15: toggle rows grow with the cards' padding instead of their fixed 120 */
html[data-variant="v15"] #app-setting main > section > button { height: auto; }

/* v15: the recipe list's header is just ‹ (no "레시피" beside it); the detail keeps the recipe name. */
html[data-variant="v15"] #app-recipe header:has([data-recipe-action="reorder"]) [data-recipe-back] .type-body1 { display: none; }

/* v15: settings — "설정" centred in the header instead of beside ‹ (as the recipe detail's name).
   Positioned against the ‹ button (its transform makes it the containing block), which starts
   20 in: 280 + 20 = the header's centre. Not a tap target; the button no longer clips it. */
html[data-variant="v15"] #app-setting [data-setting-back] { overflow: visible; }
html[data-variant="v15"] #app-setting [data-setting-back] .type-body1 {
  position: absolute; left: 280px; top: 50%; translate: -50% -50%;
  width: max-content; padding: 0; pointer-events: none;
}

/* v15: recipe detail — the recipe name sits centred in the header (as 레시피 추가하기 / 순서 변경),
   not beside ‹; a long name ends in … within 280 so it clears ‹ and ⋯. Not a tap target (‹ is). */
html[data-variant="v15"] #app-recipe header:has([data-recipe-kebab]) [data-recipe-back] .type-body1 {
  /* positioned against the ‹ box (its translate makes it the containing block), which starts 20 in:
     280 + 20 = the header's centre 300; the box already carries the 8 offset */
  position: absolute; left: 280px; top: 50%; translate: -50% -50%;
  width: max-content; max-width: 280px; padding: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;   /* max-content: no … from sub-pixel rounding */
  pointer-events: none;
}
html[data-variant="v15"] #app-recipe header:has([data-recipe-kebab]) [data-recipe-back] > span { overflow: visible; }   /* the ‹ box would clip the centred title */

/* v15: the first / last card of a group gets 4 more on its rounded side (18 → 22), so the
   24 corners don't crowd the content. */
html[data-variant="v15"] #app-setting main > section > h2 + * { padding-top: 20px; }
html[data-variant="v15"] #app-setting main > section > :last-child { padding-bottom: 20px; }

/* v15: the | between a recipe row's details is lighter than the text (white/70 → white/25). */
html[data-variant="v15"] #app-recipe :is([data-recipe-open], [data-drag-row]) .border-l { border-color: rgb(255 255 255 / 25%); }   /* list and 순서 편집 rows alike */

/* v15: temperature panel, option A — no cards inside the panel: the table sits on the panel itself,
   rows split by a single white/8 hairline (inset 40 like the text). Overrides the grouped-card rules above. */
html[data-variant="v15"] #temp-modal > div > div:is(:nth-child(2), :nth-child(3), :nth-child(5)) { margin: 0; background: transparent; border-radius: 0; }
html[data-variant="v15"] #temp-modal > div > div:nth-child(2) > div { padding-top: 4px; padding-bottom: 12px; }
html[data-variant="v15"] #temp-modal > div > div:is(:nth-child(2), :nth-child(3), :nth-child(5)) > div:first-child { padding-left: 40px; }
html[data-variant="v15"] #temp-modal > div > div:is(:nth-child(2), :nth-child(3), :nth-child(5)) > div:last-child { padding-right: 40px; }
html[data-variant="v15"] #temp-modal > div > div:nth-child(2),
html[data-variant="v15"] #temp-modal > div > div:nth-child(4) { margin: 0 40px; height: auto; border-bottom: 1px solid rgb(255 255 255 / 8%); }
html[data-variant="v15"] #temp-modal > div > div:nth-child(2) { margin: 0; box-shadow: inset 0 -1px 0 0 transparent; border-bottom: 0; background-image: linear-gradient(rgb(255 255 255 / 8%), rgb(255 255 255 / 8%)); background-size: calc(100% - 80px) 1px; background-position: 40px 100%; background-repeat: no-repeat; }
html[data-variant="v15"] #temp-modal > div { padding-bottom: 8px; }
/* ✕ back on the text edge (40 from the panel's right) */
html[data-variant="v15"] #temp-modal > div > div:first-child > [data-action="temp-close"] { right: 12px; }

/* v15: the temperature panel's ✕ as a small, quiet round button — a 48 circle (white/8) with a
   24 ✕ in white/55; pressing brightens the circle (white/16). The 120 × 100 tap area is unchanged. */
html[data-variant="v15"] #temp-modal [data-action="temp-close"] .sheet-icon-box { width: 48px; height: 48px; border-radius: 999px; background-color: rgb(255 255 255 / 8%); }
html[data-variant="v15"] #temp-modal [data-action="temp-close"] .sheet-icon-box svg { width: 24px; height: 24px; color: #a3a3a3; }   /* a solid grey (≈ white/55 over the circle), not a transparent white */
html[data-variant="v15"] #temp-modal [data-action="temp-close"]:active .sheet-icon-box { background-color: rgb(255 255 255 / 16%); }
html[data-variant="v15"] #temp-modal > div > div:first-child > [data-action="temp-close"] { right: -8px; }   /* 48 circle: right edge 28 from the panel edge, a little past the text edge (40) */

/* v15: the recipe sheet's ✕ like the temperature panel's — 48 circle (white/8), 24 ✕ at white/55
   with the original weight (i-x-small), pressed white/16; right edge 28 from the sheet's. */
html[data-variant="v15"] #recipe-sheet [data-action="sheet-header-close"] { right: -8px; }
html[data-variant="v15"] #recipe-sheet [data-action="sheet-header-close"] .sheet-icon-box { width: 48px; height: 48px; border-radius: 999px; background-color: rgb(255 255 255 / 8%); }
html[data-variant="v15"] #recipe-sheet [data-action="sheet-header-close"] .sheet-icon-box svg { width: 24px; height: 24px; color: #a3a3a3; }   /* a solid grey (≈ white/55 over the circle), not a transparent white */
html[data-variant="v15"] #recipe-sheet [data-action="sheet-header-close"]:active .sheet-icon-box { background-color: rgb(255 255 255 / 16%); }

/* v15: a little more room between the 온도 title and the table (column labels 8 lower). */
html[data-variant="v15"] #temp-modal > div > div:nth-child(2) { margin-top: 8px; }

/* v15: recipe list rows keep their full-width band as the tap target, but the pressed fill is a
   rounded box inside it (inset 4 top / bottom, 16 sides, radius 20, white/10) instead of the band. */
html[data-variant="v15"] #app-recipe button[data-recipe-open] { position: relative; isolation: isolate; }
html[data-variant="v15"] #app-recipe button[data-recipe-open]:active { background-color: transparent; }
html[data-variant="v15"] #app-recipe button[data-recipe-open]::before {
  content: ""; position: absolute; inset: 4px 16px; z-index: -1; border-radius: 20px;
  background-color: transparent; pointer-events: none;
}
html[data-variant="v15"] #app-recipe button[data-recipe-open]:active::before { background-color: rgb(255 255 255 / 10%); }

/* v15: on the green (ready) screen the menu rows' pressed band is lighter, black/30 → black/20. */
html[data-variant="v15"] .device:has(#cook-container.bg-cook-ready-to-cook) #app-menu section button[data-menu]:active { background-color: rgb(0 0 0 / 20%); }

/* v15: each settings section is one rounded box of bands split by hairlines, instead of separate
   cards with gaps — no gap, square inner corners (outer 24 stays), a white/8 line between rows
   inset to the text (40 from the box's left edge). */
html[data-variant="v15"] #app-setting main > section { gap: 0; }
html[data-variant="v15"] #app-setting main > section > :not(h2) { position: relative; border-radius: 0; }
html[data-variant="v15"] #app-setting main > section > h2 + * { border-top-left-radius: 24px; border-top-right-radius: 24px; }
html[data-variant="v15"] #app-setting main > section > :last-child { border-bottom-left-radius: 24px; border-bottom-right-radius: 24px; }
html[data-variant="v15"] #app-setting main > section > :not(h2):not(h2 + *)::before {
  content: ""; position: absolute; top: 0; left: 40px; right: 0; height: 1px;
  background-color: rgb(255 255 255 / 8%); pointer-events: none;
}

/* v15: settings rhythm — header → first title 40 (was 48), title → its box 16 (was ≈ 13),
   box → next section's title 56 (was 48): a title sits clearly with its own box, sections read apart. */
html[data-variant="v15"] #app-setting main { padding-top: 40px; row-gap: 48px; }   /* sections 48 apart (was 56) */
html[data-variant="v15"] #app-setting main > section > h2 { margin-bottom: 15px; }

/* v15: settings segmented switches — the selected slide is a solid grey (#3a3a3a, was white/20)
   with no shadow (it only muddied the edge on the black track); the unselected label drops to
   45 % (was 70 %) so the choice reads at a glance. */
html[data-variant="v15"] #app-setting [data-setting] > button[role="switch"] > span:first-child { background-color: #3a3a3a; box-shadow: none; }
html[data-variant="v15"] #app-setting [data-setting] > button[role="switch"] > span.opacity-70 { opacity: 0.45; }

/* v15: settings segmented switches keep their rounded-rectangle shape, with concentric corners:
   track 12, slide 6 (12 − the 6 inset; was 8). */
html[data-variant="v15"] #app-setting [data-setting] > button[role="switch"] { border-radius: 12px; }
html[data-variant="v15"] #app-setting [data-setting] > button[role="switch"] > span:first-child { border-radius: 6px; }

/* v15: engineer PIN backdrop gets a light blur back (4px, was none; the app's backdrop-blur-sm is 8),
   still black 80 %. */
html[data-variant="v15"] #app-pin .pin-backdrop { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

/* v15: ‹ back 8 further in on the recipe and settings pages (box 20 → 28 from the edge); the
   centred titles are positioned against the ‹ box, so they move 8 back to stay on the centre. */
html[data-variant="v15"] #app-recipe header > button[data-recipe-back] { padding-left: 28px; }
html[data-variant="v15"] #app-recipe header:has([data-recipe-kebab]) [data-recipe-back] .type-body1 { left: 272px; }
html[data-variant="v15"] #app-setting [data-setting-back] { margin-left: 20px; }
html[data-variant="v15"] #app-setting [data-setting-back] .type-body1 { left: 272px; }

/* v15: in-place 순서 편집 — the ‹ box carries no label (the title is centred) */
html[data-variant="v15"] #app-recipe header:has([data-reorder-title]) [data-recipe-back] .type-body1 { display: none; }

/* v15: while a 순서 편집 row is dragged, its highlight is the same rounded box as the list's pressed
   fill (inset 4 / 16, radius 20, white/10) instead of a full-width #333 band with lines. */
html[data-variant="v15"] #app-recipe [data-drag-list="recipes"] [data-drag-row] { position: relative; isolation: isolate; }
html[data-variant="v15"] #app-recipe [data-drag-list="recipes"] [data-drag-row].is-dragging { background: transparent; box-shadow: none; }
html[data-variant="v15"] #app-recipe [data-drag-list="recipes"] [data-drag-row]::before {
  content: ""; position: absolute; inset: 4px 16px; z-index: -1; border-radius: 20px;
  background-color: transparent; pointer-events: none;
}
html[data-variant="v15"] #app-recipe [data-drag-list="recipes"] [data-drag-row].is-dragging::before { background-color: #1a1a1a; }   /* = white/10 on black, but opaque so the rows it passes over don't show through */

/* v15: 순서 편집 rows — no full-width band while the long press builds up; the rounded box shows
   from the press and simply stays once the drag starts. */
html[data-variant="v15"] #app-recipe [data-drag-list="recipes"] [data-drag-row]:active { background-color: transparent; }
html[data-variant="v15"] #app-recipe [data-drag-list="recipes"] [data-drag-row]:active::before { background-color: #1a1a1a; }

/* v15: the lit edge — 1px white/10 along the top and a 1px white/30 soft rim all round (the
   designer's 0.5px values, doubled). On the dragged 순서 편집 row (only while dragging, not on
   press), the temperature panel and the ⋯ popover, which drop their 1px white/10 boundary for it. */
html[data-variant="v15"] { --v15-lit-edge: inset 0 1px 0 rgb(255 255 255 / 10%), inset 0 0 1px rgb(255 255 255 / 30%); }
html[data-variant="v15"] #app-recipe [data-drag-list="recipes"] [data-drag-row].is-dragging::before { box-shadow: var(--v15-lit-edge); }

/* v15: a pressed settings row hides the hairlines above and below it, so its band reads clean. */
html[data-variant="v15"] #app-setting main > section > :active::before,
html[data-variant="v15"] #app-setting main > section > :active + *::before { opacity: 0; }

/* v15: engineer PIN as OTP boxes — each digit a visible rounded box (white/8, 16 apart), the dot
   inside it once entered; the slot being typed into is outlined (white/70) on a slightly brighter
   fill; after a wrong PIN all four boxes take a faint red outline (the dots are red). */
html[data-variant="v15"] #app-pin .mt-12 { gap: 16px; }
html[data-variant="v15"] #app-pin [data-slot] { width: 88px; height: 104px; background-color: rgb(255 255 255 / 8%); box-shadow: inset 0 0 0 2px transparent;
  transition: background-color 150ms ease, box-shadow 150ms ease; }
html[data-variant="v15"] #app-pin [data-slot="empty"] > div { opacity: 0; }
html[data-variant="v15"] #app-pin [data-slot="focus"] { background-color: rgb(255 255 255 / 12%); box-shadow: inset 0 0 0 2px rgb(255 255 255 / 70%); }
html[data-variant="v15"] #app-pin [data-slot="focus"] > div { opacity: 0; }
html[data-variant="v15"] #app-pin [data-slot="error"] { box-shadow: inset 0 0 0 2px rgb(255 92 92 / 20%); background-color: rgb(255 92 92 / 10%); }   /* faint red tint + a weak outline (20 %; 50 % stood out) */

/* v15: a wrong PIN gives the four boxes a short shake (360ms, dying out) as the message appears. */
@keyframes v15-pin-shake {
  0%, 100% { transform: none; }
  15% { transform: translateX(-8px); }
  30% { transform: translateX(7px); }
  45% { transform: translateX(-5px); }
  60% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}
html[data-variant="v15"] #app-pin [data-shake] { animation: v15-pin-shake 360ms ease-out; }
@media (prefers-reduced-motion: reduce) { html[data-variant="v15"] #app-pin [data-shake] { animation: none; } }

/* v15: the recipe sheet's selected row is a rounded box inside the row (inset 4 / 16, radius 20,
   black/25) instead of a dark band fading out at both ends — the same box as the recipe list's
   pressed fill and the 순서 편집 drag. Pressed rows show the box at black/35. Tap area unchanged. */
html[data-variant="v15"] #sheet-list > button { position: relative; isolation: isolate; }
html[data-variant="v15"] :is(.sheet-row-on, #sheet-list > button:active) { background: none; }
html[data-variant="v15"] #sheet-list > button::before {
  content: ""; position: absolute; inset: 4px 16px; z-index: -1; border-radius: 20px;
  background-color: transparent; pointer-events: none;
}
html[data-variant="v15"] #sheet-list > button.sheet-row-on::before { background-color: rgb(0 0 0 / 25%); }
html[data-variant="v15"] #sheet-list > button:active::before { background-color: rgb(0 0 0 / 35%); }

/* v15: the temperature panel opens over the temperature button (as ⋯'s popover over ⋯): its
   top-right corner on the button, 20 from the top / right, growing from that corner 0.9 → 1
   while fading in (240ms, the menu's ease). Closing stays the 120ms fade. */
@keyframes v15-tm-pop { from { opacity: 0; scale: 0.9; } to { opacity: 1; scale: 1; } }
html[data-variant="v15"] #temp-modal > div { top: 20px; left: auto; right: 20px; translate: none; transform-origin: top right; }
html[data-variant="v15"] #temp-modal:not(.hidden) > div { animation: v15-tm-pop 240ms cubic-bezier(0.32, 0.72, 0, 1) both; }
html[data-variant="v15"] #temp-modal.is-closing > :is(div, button) { animation: v15-tm-out 120ms ease-out both; }

/* v15: as a popover over its button the panel needs no "온도" title or ✕ — it closes by tapping
   outside (or Esc). The table starts at the top with 20 of room. */
html[data-variant="v15"] #temp-modal > div > div:first-child { display: none; }
html[data-variant="v15"] #temp-modal > div { padding-top: 20px; }
html[data-variant="v15"] #temp-modal > div > div:nth-child(2) { margin-top: 0; }

/* v15: less empty room beside the 그리들 column — the first column fits its text (+ 24 before the
   next), and the panel is 40 narrower (540 → 500) so the room doesn't just move into the name column. */
html[data-variant="v15"] #temp-modal > div { width: 500px; }
html[data-variant="v15"] #temp-modal > div > div:is(:nth-child(2), :nth-child(3), :nth-child(5)) { grid-template-columns: 126px 1fr 156px; }   /* 40 + "그리들" 62 + 24, the same in every row so the columns line up */
html[data-variant="v15"] #temp-modal > div > div:is(:nth-child(2), :nth-child(3), :nth-child(5)) > div:first-child { padding-right: 0; }

/* v15: recipe sheet rows without the 8 gap between them; each row is 8 taller instead (100 → 108),
   so the rhythm is the same but the tap area and the selected / pressed box grow into it. */
html[data-variant="v15"] #sheet-list { gap: 0; }
html[data-variant="v15"] #sheet-list > button { height: 108px; }

/* v15: the cook screen's quick actions (레시피 변경 · 배출 · 간이 청소) press in the screen's own
   hue instead of plain white — a red tint on the red (preheating) screen, a green tint on the
   green (ready) one; white/15 stays on black. */
html[data-variant="v15"] #cook-container.bg-cook-preparing :is(#qa-recipe, #qa-unload, #qa-scrape, .grid-secondary button):active { background-color: rgb(255 120 120 / 16%); }
html[data-variant="v15"] #cook-container.bg-cook-ready-to-cook :is(#qa-recipe, #qa-unload, #qa-scrape, .grid-secondary button):active { background-color: rgb(110 230 160 / 14%); }

/* v15: the cooking countdown takes the screen's hue instead of plain white — a light red on the
   red (조리 중) screen, a light green on the green (치즈 올리기 대기) one; dimmed, it keeps that hue. */
html[data-variant="v15"] #cook-container.bg-cook-preparing .cv-timer { color: #ffd2cd; }
html[data-variant="v15"] #cook-container.bg-cook-ready-to-cook .cv-timer { color: #c8f5dc; }
html[data-variant="v15"] #cook-container.bg-cook-preparing .cv-timer.is-dimmed { color: rgb(255 210 205 / 12%); }
html[data-variant="v15"] #cook-container.bg-cook-ready-to-cook .cv-timer.is-dimmed { color: rgb(200 245 220 / 12%); }

/* v15: 빠른 레시피 선택 — two radio cards with a faux standby screen each (as iOS's 라이트 / 다크).
   The card around them doesn't press; each option does. */
html[data-variant="v15"] #app-setting main > section > [data-quick-select-row] { cursor: default; }
html[data-variant="v15"] #app-setting main > section > [data-quick-select-row]:active { background-color: rgb(255 255 255 / 8%); }
html[data-variant="v15"] #app-setting main > section > [data-quick-select-row]:active::before,
html[data-variant="v15"] #app-setting main > section > [data-quick-select-row]:active + *::before { opacity: 1; }
html[data-variant="v15"] #app-setting main > section > .qs-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 16px 14px; }   /* the box holds the cards alone: 16 above and beside the scrims */
html[data-variant="v15"] #app-setting .qs-option { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px 0 18px; border-radius: 8px; color: #fff; cursor: pointer; }
html[data-variant="v15"] #app-setting .qs-option > .qs-thumb { margin-bottom: 4px; }   /* thumbnail · 16 · name */
/* the picked card: a #3a3a3a scrim (.qs-bg, the settings switch's selected slide) behind thumbnail and
   name, which slides across when the other card is picked (menu.js, 260ms); the other card's name at
   60 %. No radio. Pressed: the other card's name lights up to white (no scrim); the picked card's scrim
   lifts to #464646. */
html[data-variant="v15"] #app-setting .qs-bg { position: absolute; inset: 0; z-index: -1; border-radius: 8px; background-color: #3a3a3a; }   /* concentric with the box: 24 − the 16 inset */
html[data-variant="v15"] #app-setting .qs-option.is-on:active .qs-bg { background-color: #464646; }
html[data-variant="v15"] #app-setting .qs-label { opacity: 0.6; }
html[data-variant="v15"] #app-setting .qs-option:not(.is-on) .qs-thumb { filter: grayscale(1); }   /* the other card's miniature in black and white; colour arrives with the scrim (menu.js) */
html[data-variant="v15"] #app-setting .qs-option.is-on .qs-label,
html[data-variant="v15"] #app-setting .qs-option:active .qs-label { opacity: 1; }
/* the miniature: 600 × 1024 at ~0.17 on the standby glow (red here; green / none by tone, below) */
html[data-variant="v15"] #app-setting .qs-thumb {
  position: relative; display: block; width: 104px; height: 178px; overflow: hidden; border-radius: 14px;
  background: radial-gradient(140% 75% at 50% 0%, rgb(222 65 65 / 42%), rgb(222 65 65 / 0) 72%), #0c0c0c;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 10%);
}
html[data-variant="v15"] #app-setting .qs-thumb > * { position: absolute; display: block; }
/* drawn from the real screens' coordinates (menu.js quickSelectRow): only the colours live here */
html[data-variant="v15"] #app-setting .qs-thumb > .qs-svg { inset: 0; width: 100%; height: 100%; }
html[data-variant="v15"] #app-setting .qs-thumb > .qs-faint { background: rgb(255 255 255 / 12%); }
html[data-variant="v15"] #app-setting .qs-thumb > .qs-dim { background: rgb(255 255 255 / 35%); }
html[data-variant="v15"] #app-setting .qs-thumb > .qs-bright { background: rgb(255 255 255 / 35%); }   /* the recipe name's bar: the same as every other text skeleton */
html[data-variant="v15"] #app-setting .qs-thumb > .qs-icon { background: rgb(255 255 255 / 35%); }   /* the three action icons under the gauge, as the text skeletons */
html[data-variant="v15"] #app-setting .qs-thumb > :is(.qs-bright, .qs-dim, .qs-icon) { background: rgb(255 255 255 / 12%); }   /* every text / icon skeleton at the CTA's 12 %: the ring and the six keys read first */
html[data-variant="v15"] #app-setting .qs-thumb > .qs-key { background: rgb(255 255 255 / 18%); }
html[data-variant="v15"] #app-setting .qs-thumb > .qs-key.is-sel { background: rgb(245 96 96 / 65%); }

/* the miniature takes the cook screen's tone, as the real screen behind it does (the header
   switch's data-color, cook.js renderHeader) — and changes with it while settings is open:
   red (preheat, cooking): the red glow, red preheat ticks, the picked key red
   green (ready, wait-melt): the green glow, the whole ring lit white, the picked key #46CB89
   black (no recipe): no glow, the ring dim, no key picked */
html[data-variant="v15"] #app-setting .qs-svg > rect { fill: #fff; opacity: 0.4; }
html[data-variant="v15"] #app-setting .qs-svg > .qs-t-on { fill: #e74646; opacity: 1; }
html[data-variant="v15"]:has(#clean-switch[data-color="green"]) #app-setting .qs-thumb { background: radial-gradient(140% 75% at 50% 0%, rgb(65 222 143 / 36%), rgb(65 222 143 / 0) 72%), #0c0c0c; }
html[data-variant="v15"]:has(#clean-switch[data-color="green"]) #app-setting .qs-svg > rect { fill: #fff; opacity: 0.55; }
html[data-variant="v15"]:has(#clean-switch[data-color="green"]) #app-setting .qs-thumb > .qs-key.is-sel { background: rgb(70 203 137 / 55%); }
html[data-variant="v15"]:has(#clean-switch[data-color="black"]) #app-setting .qs-thumb { background: #0c0c0c; }
html[data-variant="v15"]:has(#clean-switch[data-color="black"]) #app-setting .qs-svg > rect { fill: #fff; opacity: 0.4; }
html[data-variant="v15"]:has(#clean-switch[data-color="black"]) #app-setting .qs-thumb > .qs-key.is-sel { background: rgb(255 255 255 / 18%); }
/* the cards make the page a little taller than the screen: room after the last box when scrolled */
html[data-variant="v15"] #app-setting main { padding-bottom: 24px; }

/* v15: temperature panel rows — 상판 / 하판, the target and the first zone's reading sit on one text
   baseline (they were each placed by their own box, a few px apart). The zone icons stay centred on
   their reading; only the reading takes part in the baseline. */
html[data-variant="v15"] #temp-modal > div > div:is(:nth-child(3), :nth-child(5)) { align-items: baseline; }
html[data-variant="v15"] #temp-modal > div > div:is(:nth-child(3), :nth-child(5)) > div:last-child > div > span { align-self: baseline; }

/* v15: temperature panel spacing, one rhythm (measured from the glyphs, not the boxes):
   panel edge → text 28 top and bottom, 40 at the sides · header text → its line 16 · line / divider → row text 24 ·
   row text → divider 24 · last reading → panel edge 28 · the two zone readings 36 apart (baselines).
   Columns size to their content and line up across the header and both rows (subgrid), so 목표 sits
   40 from 현재 and 64 clear of 상판 / 하판 in either language — the panel is as wide as that needs
   (was a fixed 500 with 126 / 1fr / 156, which left 목표 floating and clipped "Current °C"). */
html[data-variant="v15"] #temp-modal > div { display: grid; grid-template-columns: auto auto auto; width: max-content; padding: 23px 40px 4px; }   /* sides 40 (28 read too tight), top / bottom 28 to the text */
html[data-variant="v15"] #temp-modal > div > div:is(:nth-child(2), :nth-child(3), :nth-child(5)) { grid-column: 1 / -1; grid-template-columns: subgrid; }
html[data-variant="v15"] #temp-modal > div > div:nth-child(4) { grid-column: 1 / -1; margin: 0; }
html[data-variant="v15"] #temp-modal > div > div:nth-child(2) { background-size: 100% 1px; background-position: 0 100%; }
html[data-variant="v15"] #temp-modal > div > div:is(:nth-child(2), :nth-child(3), :nth-child(5)) > div:nth-child(n) { padding-left: 0; padding-right: 0; }   /* :nth-child(n) outranks the old :first-child / :last-child 40s */
html[data-variant="v15"] #temp-modal > div > div:is(:nth-child(2), :nth-child(3), :nth-child(5)) > div:nth-child(2) { padding-left: 64px; }
html[data-variant="v15"] #temp-modal > div > div:is(:nth-child(2), :nth-child(3), :nth-child(5)) > div:nth-child(3) { padding-left: 40px; }
html[data-variant="v15"] #temp-modal > div > div:nth-child(2) > div { padding-top: 0; padding-bottom: 11px; }
html[data-variant="v15"] #temp-modal > div > div:is(:nth-child(3), :nth-child(5)) > div { padding-top: 16px; padding-bottom: 16px; }
html[data-variant="v15"] #temp-modal > div > div:is(:nth-child(3), :nth-child(5)) > div:nth-child(3) { gap: 4px; }

/* v15: recipe detail in the settings page's grammar — section title at 68, a white/8 box 28 in from
   the sides (outer radius 24), label | value rows 18 / 28 / 18 / 40 (22 on the box's first / last row),
   inset white/8 hairlines from 40. Rhythm as settings: header → first title 40, title → box 15,
   box → next title 56. Option chips (several cook options) sit sticky above, 28 in, 12 apart. */
html[data-variant="v15"] #app-recipe .rd-main { padding-bottom: 40px; }
html[data-variant="v15"] #app-recipe .rd-sections { display: flex; flex-direction: column; row-gap: 56px; padding-top: 40px; }
html[data-variant="v15"] #app-recipe .rd-chips-wrap + .rd-sections { padding-top: 16px; }   /* chips' own 24 below + 16 = 40 to the first title */
html[data-variant="v15"] #app-recipe .rd-sections h2 { padding-left: 80px; margin-bottom: 15px; }
html[data-variant="v15"] #app-recipe .rd-box { margin: 0 40px; overflow: hidden; border-radius: 24px; background-color: rgb(255 255 255 / 8%); }
html[data-variant="v15"] #app-recipe .rd-row { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 18px 40px; }
html[data-variant="v15"] #app-recipe .rd-row:first-child { padding-top: 22px; }
html[data-variant="v15"] #app-recipe .rd-row:last-child { padding-bottom: 22px; }
html[data-variant="v15"] #app-recipe .rd-row + .rd-row::before { content: ""; position: absolute; top: 0; right: 0; left: 40px; height: 1px; background-color: rgb(255 255 255 / 8%); }
html[data-variant="v15"] #app-recipe .rd-chips {
  position: relative; display: flex; gap: 0; overflow-x: auto; scrollbar-width: none;   /* relative: the chips' offsetLeft counts from the row */
  padding: 40px 43px 24px;   /* top 40: the chips start below the header's 40 gradient, not under it; sides 40 + the background's 3 */
}
html[data-variant="v15"] #app-recipe .rd-chips::-webkit-scrollbar { display: none; }
/* chips, the usual build: each chip 21 to the sides with no gap (labels 42 apart), and the picked one's
   background a layer of its own (.rd-chip-bg) reaching 3 past the chip each side (6 over its neighbours
   in all, was 8) — 24 inside, without the chips overlapping. Picking another slides that layer across (menu.js, 260ms).
   Picked: secondary (#3a3a3a, the settings switch's slide), white text. Others: ghost, text at 60%,
   full white while pressed (no fill). 72 tall, radius 18. */
html[data-variant="v15"] #app-recipe .rd-chip { position: relative; isolation: isolate; flex: none; height: 72px; padding: 0 21px; color: #fff; white-space: nowrap; }
html[data-variant="v15"] #app-recipe .rd-chip-label { position: relative; opacity: 0.6; }
html[data-variant="v15"] #app-recipe .rd-chip.is-on .rd-chip-label { opacity: 1; }
html[data-variant="v15"] #app-recipe .rd-chip-bg { position: absolute; top: 0; bottom: 0; left: -3px; right: -3px; z-index: -1; border-radius: 18px; }
html[data-variant="v15"] #app-recipe .rd-chip-bg { background-color: #3a3a3a; }
html[data-variant="v15"] #app-recipe .rd-chip.is-on:active .rd-chip-bg { background-color: #464646; }
/* a ghost chip pressed: only its text lights up (60 → 100 %), no fill — a fill would show where it
   meets the picked chip's wider background */
html[data-variant="v15"] #app-recipe .rd-chip:not(.is-on):active .rd-chip-label { opacity: 1; }

/* v15: the chip row scrolls sideways — a black gradient lies over each end while chips are hidden past
   it (right: more follow; left: some scrolled past), so the row reads as draggable. The wrapper is the
   sticky black band; the gradients sit on it, over the scrolling row, and fade (160ms) as the row moves. */
html[data-variant="v15"] #app-recipe .rd-chips-wrap { position: sticky; top: 0; z-index: 1; background-color: #000; }
html[data-variant="v15"] #app-recipe .rd-fade { position: absolute; top: 0; bottom: 0; width: 96px; pointer-events: none; opacity: 0; transition: opacity 160ms ease; }
html[data-variant="v15"] #app-recipe .rd-fade.is-left { left: 0; background: linear-gradient(to left, rgb(0 0 0 / 0%), #000); }
html[data-variant="v15"] #app-recipe .rd-fade.is-right { right: 0; background: linear-gradient(to right, rgb(0 0 0 / 0%), #000); }
html[data-variant="v15"] #app-recipe .rd-chips-wrap.fade-left .rd-fade.is-left,
html[data-variant="v15"] #app-recipe .rd-chips-wrap.fade-right .rd-fade.is-right { opacity: 1; }
html[data-variant="v15"] #app-recipe .rd-chips-wrap.no-fade-anim .rd-fade { transition: none; }
html[data-variant="v15"] #app-recipe .rd-chips { cursor: grab; user-select: none; }   /* prototype: the row drags with a mouse (menu.js) */

/* v15: recipe detail — more room at the sides than the settings page: boxes 40 in (was 28), rows 40 / 40
   inside (was 40 / 28), titles at 80; the chips / dropdown line up with the boxes. */

/* v15: recipe detail cook-option dropdown (dev bar "옵션: 드롭다운") — a field box like the info boxes,
   40 below the header (clear of its gradient) and 40 in: 조리 설정 | 레어 ⌄. Its list opens over it as
   the ⋯ popover does — #222 panel, padding 6, radius 28, items 20 / 34 (text level with the field's
   80), radius 22, black/30 pressed, ✓ on the current one — popping 0.9 → 1 from the top (240ms) over the
   page's black/80 dim; it fades out (120ms) when closed or picked. */
html[data-variant="v15"] #app-recipe .rd-pick { position: relative; padding: 40px 40px 0; }
html[data-variant="v15"] #app-recipe .rd-select { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 40px; border-radius: 24px; background-color: rgb(255 255 255 / 8%); }
html[data-variant="v15"] #app-recipe .rd-select:active { background-color: rgb(255 255 255 / 14%); }
html[data-variant="v15"] #app-recipe .rd-select-value { display: inline-flex; min-width: 0; align-items: center; gap: 12px; }
html[data-variant="v15"] #app-recipe .rd-select-value svg { width: 32px; height: 32px; flex: none; color: rgb(255 255 255 / 70%); stroke-width: 1.75; }
html[data-variant="v15"] #app-recipe .rd-opt-dim { position: absolute; inset: 0; z-index: 40; background-color: rgb(0 0 0 / 80%); animation: v15-dim-in 200ms ease-out both; }
html[data-variant="v15"] #app-recipe .rd-opt-menu {
  position: absolute; top: 40px; right: 40px; left: 40px; z-index: 50; display: flex; flex-direction: column;
  padding: 6px; border-radius: 28px; background-color: #222; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 10%);
  transform-origin: top center; animation: v15-pop-in 240ms cubic-bezier(0.32, 0.72, 0, 1) both;
}
html[data-variant="v15"] #app-recipe .rd-opt-item { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; padding: 20px 34px; border-radius: 22px; color: #fff; text-align: left; }
html[data-variant="v15"] #app-recipe .rd-opt-item:active { background-color: rgb(0 0 0 / 30%); }
html[data-variant="v15"] #app-recipe .rd-opt-item svg { width: 32px; height: 32px; flex: none; stroke-width: 2; }
html[data-variant="v15"] #app-recipe :is(.rd-opt-dim, .rd-opt-menu).is-closing { animation: v15-fade-out 120ms ease-out both; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  html[data-variant="v15"] #app-recipe .rd-opt-menu { animation-name: v15-dim-in; }
}

/* v15: recipe detail as setup blocks (dev bar "옵션: 카드", the default) — text only: no box, no lines.
   Each setup: its name (28), then one line per stage in cooking order (예열 → 압착 조리 → 마무리), all
   24: stage white/45 on the left, values white, each after a white/45 word. Lines 16 apart, setups 48
   apart, 40 below the header. Each setup is anchored by its number (1, 2, 3 …, 24 white/70) centred in
   the list's 80 gutter (from 12), on the name's baseline; the text starts at 92 as the list's names do. Stage · first value · second value are columns shared
   by every line of every setup (subgrid), 20 apart, so the stack reads as one table. */
html[data-variant="v15"] #app-recipe .rd-cards { display: grid; grid-template-columns: 60px auto auto 1fr; column-gap: 20px; row-gap: 48px; padding: 40px 40px 0 12px; }   /* 12 + 60 + the 20 gap = 92: text where the list's names start */
html[data-variant="v15"] #app-recipe .rd-card { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: baseline; color: #fff; }
html[data-variant="v15"] #app-recipe .rd-num { grid-column: 1; width: 80px; text-align: center; color: rgb(255 255 255 / 70%); }   /* as the list's row number: centred in 12 … 92 (spans past its 60 track into the gap) */
html[data-variant="v15"] #app-recipe .rd-card-name { grid-column: 2 / -1; margin-bottom: 14px; }
html[data-variant="v15"] #app-recipe .rd-lines { grid-column: 2 / -1; display: grid; grid-template-columns: subgrid; row-gap: 16px; }
html[data-variant="v15"] #app-recipe .rd-line { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: baseline; }
html[data-variant="v15"] #app-recipe .rd-line .rd-stage { color: rgb(255 255 255 / 45%); white-space: nowrap; }
html[data-variant="v15"] #app-recipe .rd-line .rd-v { white-space: nowrap; font-variant-numeric: tabular-nums; }
html[data-variant="v15"] #app-recipe .rd-line .rd-k { margin-right: 8px; color: rgb(255 255 255 / 45%); }

/* v15: one text size in the settings body — the row labels, segmented-switch labels and 대기 화면 card
   names (type-body2, 28) come down to the section titles' and descriptions' 24 (type-body3). */
html[data-variant="v15"] #app-setting main .type-body2 { font-size: 24px; line-height: 130%; }

/* portfolio: Start cooking without the play icon, the label alone, as on the GRILL and CLEAN cards
   (v0-4). */
#primary-btn svg { display: none; }


/* ── portfolio: the settings page on the recipe sheet's grey (#222), as the card had it before v15,
   rather than v15's black. Every colour v15 set against black moves with it, keeping the same steps
   apart: the header and the fade under it take the grey; the boxes lift a little off it (white/7,
   ≈ #313131); the segmented tracks and the toggle's off track sink below the box (black/35, as the
   grey page had them darker than itself), their selected slide lighter to read on that (#4a4a4a);
   a pressed row shows white/12 in place of the box; the Standby screen's chosen-card scrim steps
   up from the box the way #3a3a3a did from v15's (#474747, pressed #525252). */
html[data-variant="v15"] #app-setting > .h-full { background-color: #222; }
html[data-variant="v15"] #app-setting header { background-color: #222; }
html[data-variant="v15"] #app-setting header::after { background: linear-gradient(to bottom, #222 0%, rgb(34 34 34 / 0) 100%); }
html[data-variant="v15"] #app-setting main > section > :not(h2) { background-color: rgb(255 255 255 / 7%); }
html[data-variant="v15"] #app-setting main > section > :is(button, div):active { background-color: rgb(255 255 255 / 12%); }
html[data-variant="v15"] #app-setting main > section > [data-quick-select-row]:active { background-color: rgb(255 255 255 / 7%); }
html[data-variant="v15"] #app-setting [data-setting] > button[role="switch"] { background-color: rgb(0 0 0 / 35%); }
html[data-variant="v15"] #app-setting [data-setting] > button[role="switch"] > span:first-child { background-color: #4a4a4a; }
html[data-variant="v15"] #app-setting [data-setting-toggle] > .bg-white\/20 { background-color: rgb(0 0 0 / 35%); }
html[data-variant="v15"] #app-setting .qs-bg { background-color: #474747; }
html[data-variant="v15"] #app-setting .qs-option.is-on:active .qs-bg { background-color: #525252; }

/* ── portfolio: the cook screen's header as recipe-proto v20 has it (from v18 · v19; Prototypes repo, quick button,
   recipe-proto/v20/css/proto.css). The headers 100 → 108 tall, so what's in them sits 4 lower; nothing under the cook
   screen's header moves (margin-bottom −8). The 그릴 / 마감 청소 switch 296 × 64 (276 × 60), its track radius 20 and knob 14
   (12 / 8), lighter on black (track white 10 %, knob white 15 %: cook.js) and on red (track black 30 %, its inner shadow
   25 %); the knob eases across (250ms, strong ease-out) with the labels. ☰ and 온도 give up 12 each on their inner side so
   the switch stays centred; their pressed scrim 72 square, radius 20 (64, 10), white 10 % on black and black 12 % on green;
   one touch band 0 → 112 across the header (☰ 0–152, the switch 152–448, 온도 448–600). Icon line ends cut square. */
html[data-variant="v15"] #cook-container header { height: 108px; margin-bottom: -8px; }
html[data-variant="v15"] #cook-container header > * { z-index: 1; }
html[data-variant="v15"] #clean-switch { width: 296px; height: 64px; border-radius: 20px; overflow: visible; transition: background-color 600ms ease, box-shadow 600ms ease, opacity 200ms ease; }
html[data-variant="v15"] #switch-slide { border-radius: 14px; transition: translate 250ms cubic-bezier(0.23, 1, 0.32, 1), transform 250ms cubic-bezier(0.23, 1, 0.32, 1), background-color 600ms ease, box-shadow 600ms ease; }
html[data-variant="v15"] :is(#switch-left, #switch-right) { transition: opacity 250ms cubic-bezier(0.23, 1, 0.32, 1); }
@media (prefers-reduced-motion: reduce) {
  html[data-variant="v15"] #switch-slide { transition: translate 250ms cubic-bezier(0.23, 1, 0.32, 1); }
  html[data-variant="v15"] #clean-switch { transition: none; }
}
/* portfolio, from recipe-proto v21 (v20): on red the switch track's black lighter — 20 % (30 %), its inset shadow 15 % (25 %) */
html[data-variant="v15"] #clean-switch[data-color="red"] { background-color: rgb(0 0 0 / 20%); box-shadow: inset 0 0 12px 0 rgb(0 0 0 / 15%); }
html[data-variant="v15"] #clean-switch::after { top: -30px; bottom: -18px; left: 0; right: 0; }
html[data-variant="v15"] #menu-btn { padding-right: 52px; }
html[data-variant="v15"] #temp-btn { padding-left: 52px; }
html[data-variant="v15"] :is(#menu-btn, #temp-btn) { position: relative; }
html[data-variant="v15"] :is(#menu-btn, #temp-btn)::before { content: ""; position: absolute; inset: -12px 0 0; }
html[data-variant="v15"] :is(#menu-btn, #temp-btn) > div { padding: 16px; margin: -4px; border-radius: 20px; }
html[data-variant="v15"] #menu-btn > div { margin-left: 0; }
html[data-variant="v15"] #temp-btn > div { margin-right: 0; }
html[data-variant="v15"] :is(#menu-btn, #temp-btn):active > div { background-color: rgb(255 255 255 / 10%); }
html[data-variant="v15"] #cook-container.bg-cook-ready-to-cook :is(#menu-btn, #temp-btn):active > div { background-color: rgb(0 0 0 / 12%); }
html[data-variant="v15"] #cook-container header [stroke-linecap="round"] { stroke-linecap: square; }
html[data-variant="v15"] #cook-container header [stroke-linejoin="round"] { stroke-linejoin: miter; }

/* ── portfolio: the settings page as recipe-proto v20 has it (from v16 · v18 · v19), still on the recipe sheet's grey above
   (v20 is on black). The header 108 like the cook screen's; its ‹ a 72 box, radius 20, 32 in from the side (the
   title stays centred, the tap area unchanged). 온도 / 길이 / 언어 switches rounder (track 18, knob 12); pressing one of
   their rows lights the label it will switch to (45 → 100 %, at once) over a faint band (white 8 → 11 %) with the
   hairlines hidden; 조리물 감지 presses as faintly. The Standby screen's chosen card: its scrim 8 from the box's edges,
   radius 16. 80 under the last box. Closing it (‹) clears out in 110ms on a strong ease-out. The menu's and the recipe
   pages' headers take the same 108 and 72 / 20 pressed boxes. */
html[data-variant="v15"] :is(#app-menu .menu-popup, #app-recipe, #app-setting, #app-pin) header { height: 108px; }
html[data-variant="v15"] #app-setting header [data-setting-back] { height: 72px; min-width: 72px; margin: -4px; margin-left: 24px; padding-inline: 16px; border-radius: 20px; }
html[data-variant="v15"] #app-setting header [data-setting-back] .type-body1 { left: 268px; }
html[data-variant="v15"] #app-setting header [data-setting-back]::after { left: -32px; top: -22px; right: -96px; bottom: -6px; }
html[data-variant="v15"] #app-recipe header [data-recipe-back] > span,
html[data-variant="v15"] #app-recipe [data-recipe-action="reorder"] > span,
html[data-variant="v15"] #app-recipe [data-recipe-kebab] > span,
html[data-variant="v15"] #app-menu header [data-menu="close"] > div { height: 72px; min-width: 72px; margin: -4px; padding-inline: 16px; border-radius: 20px; }
html[data-variant="v15"] #app-recipe header [data-recipe-back] > span { margin-left: 4px; }
html[data-variant="v15"] #app-recipe :is([data-recipe-action="reorder"], [data-recipe-kebab]) > span { margin-right: 0; }
html[data-variant="v15"] #app-recipe header:has([data-recipe-kebab]) [data-recipe-back] .type-body1 { left: 268px; }
html[data-variant="v15"] #app-setting header [stroke-linecap="round"] { stroke-linecap: square; }
html[data-variant="v15"] #app-setting header [stroke-linejoin="round"] { stroke-linejoin: miter; }
html[data-variant="v15"] #app-setting [data-setting] > button[role="switch"] { border-radius: 18px; }
html[data-variant="v15"] #app-setting [data-setting] > button[role="switch"] > span:first-child { border-radius: 12px; }
html[data-variant="v15"] #app-setting main > section > div:has(> [data-setting]):active { background-color: rgb(255 255 255 / 11%); }
html[data-variant="v15"] #app-setting main > section > div:has(> [data-setting]):active::before,
html[data-variant="v15"] #app-setting main > section > div:has(> [data-setting]):active + *::before { opacity: 0; }
html[data-variant="v15"] #app-setting main > section > div:active > [data-setting] > button[role="switch"] > span.opacity-70 { opacity: 1; transition-duration: 0s; }
html[data-variant="v15"] #app-setting main > section > button[data-setting-toggle]:active { background-color: rgb(255 255 255 / 11%); }
html[data-variant="v15"] #app-setting main > section > .qs-options { padding: 8px 8px 6px; }
html[data-variant="v15"] #app-setting .qs-option { padding: 24px 0 26px; border-radius: 16px; }
html[data-variant="v15"] #app-setting .qs-bg { border-radius: 16px; }
html[data-variant="v15"] #app-setting main { padding-bottom: 80px; }
html[data-variant="v15"] :is(#app-setting, #app-recipe) { --page-close-ms: 110; }
html[data-variant="v15"] :is(#app-setting, #app-recipe).is-closing { animation-duration: 110ms; animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1); }

/* ── portfolio: pressing as recipe-proto v20 has it — less scrim, a small shrink (in 100ms, back in 200ms, ease-out).
   · 레시피 변경 · 배출 · 간이 청소: no box — the button shrinks to 0.96 and dims to 60 % at once, back in 150ms; their taps
     reach 24 above, and 40 below while 조리 시작 can't be tapped.
   · 조리 시작 (and the gauge's 레시피 선택) 0.98; header and sheet icons (☰, 온도, ‹, ✕) only the icon, 0.92.
   · 그릴 ↔ 마감 청소: the label the tap will switch to lights up at once and shrinks to 0.94, the track under a black 10 % wash;
     the knob takes the lit edge.
   · The recipe sheet's rows 0.97 (the selected fill with them), its ‹ › icons 0.92. */
html[data-variant="v15"] { --v20-lit-edge: inset 0 1px 0 rgb(255 255 255 / 10%), inset 0 0 1px rgb(255 255 255 / 30%); }
html[data-variant="v15"] :is(#qa-recipe, #qa-unload, #qa-scrape) { position: relative; z-index: 11; border-radius: 24px; transition: scale 150ms ease-out, opacity 150ms ease-out; }
html[data-variant="v15"] #cook-container :is(#qa-recipe, #qa-unload, #qa-scrape):is(:active, .is-pressed) { background-color: transparent !important; scale: 0.96; opacity: 0.6; transition-duration: 0s; }
html[data-variant="v15"] :is(#qa-recipe, #qa-unload, #qa-scrape)::after { content: ""; position: absolute; left: 0; right: 0; top: -24px; bottom: 0; }
html[data-variant="v15"] #action-panel:has(#primary-btn[aria-disabled="true"]) :is(#qa-recipe, #qa-unload, #qa-scrape)::after { bottom: -40px; }
html[data-variant="v15"] #primary-btn > div > span { transition: scale 200ms ease-out, background-color 150ms, color 150ms; }
html[data-variant="v15"] #primary-btn:is(:active, .is-pressed):not([aria-disabled="true"]) > div > span { scale: .98; transition-duration: 100ms, 0s, 0s; }
html[data-variant="v15"] #primary-btn.grid-start { transition: scale 200ms ease-out, background-color 150ms; }
html[data-variant="v15"] #primary-btn.grid-start:is(:active, .is-pressed):not(:disabled) { scale: .98; transition-duration: 100ms, 0s; }
html[data-variant="v15"] #select-trigger { transition: scale 200ms ease-out, background-color 150ms; }
html[data-variant="v15"] #select-trigger:is(:active, .is-pressed) { scale: .98; transition-duration: 100ms, 0s; }
html[data-variant="v15"] :is(header button, [data-action="sheet-back"], [data-action="sheet-header-close"], [data-action="temp-close"]) svg { transition: scale 200ms ease-out; }
html[data-variant="v15"] :is(header button, [data-action="sheet-back"], [data-action="sheet-header-close"], [data-action="temp-close"]):is(:active, .is-pressed) svg { scale: .92; transition-duration: 100ms; }
html[data-variant="v15"] #switch-slide { box-shadow: var(--v20-lit-edge); }
html[data-variant="v15"] #clean-switch:active:not([data-disabled]):not(:disabled) { background-image: linear-gradient(rgb(0 0 0 / 10%), rgb(0 0 0 / 10%)); transition-duration: 0s; }
html[data-variant="v15"] #clean-switch:active:not([data-disabled]):not(:disabled)[data-unchecked] #switch-right,
html[data-variant="v15"] #clean-switch:active:not([data-disabled]):not(:disabled)[data-checked] #switch-left { opacity: 1; scale: .94; transition: opacity 0s, scale 100ms ease-out; }
html[data-variant="v15"] :is(button[data-select-recipe], button[data-select-option]) { transition: scale 200ms ease-out, background-color 150ms, opacity 150ms; }
html[data-variant="v15"] :is(button[data-select-recipe], button[data-select-option]):is(:active, .is-pressed) { scale: .97; transition-duration: 100ms, 0s, 0s; }
html[data-variant="v15"] :is(#sheet-prev, #sheet-next) svg { transition: scale 200ms ease-out; }
html[data-variant="v15"] :is(#sheet-prev, #sheet-next):is(:active, .is-pressed):not(:disabled) svg { scale: .92; transition-duration: 100ms; }

/* ── portfolio: v20's presses on the recipe-button screen, the menu and settings —
   · the recipe keys 0.97 (the picked one takes the lit edge in place of its drop shadow); the pager's ‹ › icons 0.92;
   · 배출 · 간이 청소: the words (and the On / Off pill) 0.96, the half's tint about half as strong (red 8 %, green 7 %, white 3 %);
   · the menu's rows: their content 0.97 toward the row's centre (the pressed fill stays full width); 장비 관리 0.97;
   · settings: the label a unit / language row will switch to 0.94; the Standby screen's cards 0.97;
   · the recipe pages' rows, 순서 변경 and + 0.97. */
html[data-variant="v15"] #cook-container .recipe-key { transition: background 120ms, border-color 120ms, scale 200ms ease-out; }
html[data-variant="v15"] #cook-container .recipe-key.is-selected { box-shadow: var(--v20-lit-edge); transition: background 600ms ease, box-shadow 600ms ease, border-color 600ms ease, scale 200ms ease-out; }
html[data-variant="v15"] #cook-container .recipe-key:is(:active, .is-pressed) { scale: .97; }
html[data-variant="v15"] #cook-container .recipe-key:not(.is-selected):is(:active, .is-pressed) { transition-duration: 120ms, 120ms, 100ms; }
html[data-variant="v15"] #cook-container .recipe-key.is-selected:is(:active, .is-pressed) { transition-duration: 120ms, 120ms, 120ms, 100ms; }
html[data-variant="v15"] .grid-pager button svg { transition: scale 200ms ease-out; }
html[data-variant="v15"] .grid-pager button:is(:active, .is-pressed):not(:disabled) svg { scale: .92; transition-duration: 100ms; }
html[data-variant="v15"] .grid-secondary button > * { transition: scale 200ms ease-out; }
html[data-variant="v15"] .grid-secondary button:is(:active, .is-pressed):not(:disabled) > * { scale: .96; transition-duration: 100ms; }
html[data-variant="v15"] #cook-container .grid-secondary:has(#quick-unload:is(:active, .is-pressed)) { background-image: linear-gradient(to right, rgb(255 255 255 / 3%) 50%, transparent 50%); }
html[data-variant="v15"] #cook-container .grid-secondary:has(#quick-scrape:is(:active, .is-pressed)) { background-image: linear-gradient(to right, transparent 50%, rgb(255 255 255 / 3%) 50%); }
html[data-variant="v15"] #cook-container.bg-cook-preparing .grid-secondary:has(#quick-unload:is(:active, .is-pressed)) { background-image: linear-gradient(to right, rgb(255 120 120 / 8%) 50%, transparent 50%); }
html[data-variant="v15"] #cook-container.bg-cook-preparing .grid-secondary:has(#quick-scrape:is(:active, .is-pressed)) { background-image: linear-gradient(to right, transparent 50%, rgb(255 120 120 / 8%) 50%); }
html[data-variant="v15"] #cook-container.bg-cook-ready-to-cook .grid-secondary:has(#quick-unload:is(:active, .is-pressed)) { background-image: linear-gradient(to right, rgb(110 230 160 / 7%) 50%, transparent 50%); }
html[data-variant="v15"] #cook-container.bg-cook-ready-to-cook .grid-secondary:has(#quick-scrape:is(:active, .is-pressed)) { background-image: linear-gradient(to right, transparent 50%, rgb(110 230 160 / 7%) 50%); }
html[data-variant="v15"] button[data-menu].h-30 { container-type: inline-size; }
html[data-variant="v15"] button[data-menu].h-30 > * { transition: scale 200ms ease-out; }
html[data-variant="v15"] button[data-menu].h-30:is(:active, .is-pressed) > * { scale: .97; transition-duration: 100ms; }
html[data-variant="v15"] button[data-menu].h-30 > :nth-child(1) { transform-origin: calc(50cqw - 12px) center; }
html[data-variant="v15"] button[data-menu].h-30 > :nth-child(2) { transform-origin: calc(50cqw - 92px) center; }
html[data-variant="v15"] button[data-menu].h-30 > :nth-child(3) { transform-origin: calc(100% + 32px - 50cqw) center; }
html[data-variant="v15"] button[data-menu="manage-device"] { transition: scale 200ms ease-out, background-color 150ms, color 150ms; }
html[data-variant="v15"] button[data-menu="manage-device"]:is(:active, .is-pressed) { scale: .97; transition-duration: 100ms, 0s, 0s; }
html[data-variant="v15"] #app-setting main > section > div > [data-setting] > button[role="switch"] > span.opacity-70 { transition: opacity 200ms ease-out, scale 200ms ease-out; }
html[data-variant="v15"] #app-setting main > section > div:is(:active, .is-pressed) > [data-setting] > button[role="switch"] > span.opacity-70 { scale: .94; transition: opacity 0s, scale 100ms ease-out; }
html[data-variant="v15"] #app-setting .qs-option { transition: scale 200ms ease-out; }
html[data-variant="v15"] #app-setting .qs-option:is(:active, .is-pressed) { scale: .97; transition-duration: 100ms; }
html[data-variant="v15"] button[data-recipe-open] { transition: scale 200ms ease-out, background-color 150ms; }
html[data-variant="v15"] button[data-recipe-open]:active { scale: .97; transition-duration: 100ms, 0s; }
html[data-variant="v15"] button[data-recipe-action="reorder"] { transition: scale 200ms ease-out; }
html[data-variant="v15"] button[data-recipe-action="reorder"]:active { scale: .97; transition-duration: 100ms; }
html[data-variant="v15"] button[data-recipe-action="reorder"]:active svg { scale: none; }
html[data-variant="v15"] #app-recipe button[data-recipe-action="create"].absolute { transition: scale 200ms ease-out, background-color 150ms; }
html[data-variant="v15"] #app-recipe button[data-recipe-action="create"].absolute:active { scale: .97; transition-duration: 100ms, 0s; }

/* portfolio: on red the recipe keys' black lighter too, by the switch's step (v21's 30 → 20 %, two thirds): 25 → 17 %, pressed
   60 → 40 %, the empty cells 8 → 5 % — the selected key keeps its red */
html[data-variant="v15"] #cook-container.bg-cook-preparing .recipe-key:not(.is-selected) { background: rgb(0 0 0 / 17%); }
html[data-variant="v15"] #cook-container.bg-cook-preparing .recipe-key:not(.is-selected):is(:active, .is-pressed) { background: rgb(0 0 0 / 40%); }
html[data-variant="v15"] #cook-container.bg-cook-preparing .recipe-key-empty { background: rgb(0 0 0 / 5%); }
