/* The steps on a wide screen (templates/components/step_list.html, static/js/steps.js): every step on a line at
   the left along a thin time line, and the step you are on as a page beside them, with a large Done button. The
   list is fitted to the height (static/js/overview_fit.js: large, roomy, normal, snug or tight). Narrower screens
   keep the list. Chosen 25.10.2026: a quiet list, the card as a page, one clear action, the rail as a time line,
   serif titles and calm motion. */

[data-fit-steps] { --row-pad: 10px; --h3: 17px; --tick: 34px; --meta: 12px; }
[data-fit-steps][data-density="large"] { --row-pad: 15px; --h3: 21px; --tick: 42px; --meta: 14px; }
[data-fit-steps][data-density="roomy"] { --row-pad: 12px; --h3: 19px; --tick: 38px; --meta: 13px; }
[data-fit-steps][data-density="snug"] { --row-pad: 6px; --h3: 16px; --tick: 30px; --meta: 11.5px; }
[data-fit-steps][data-density="tight"] { --row-pad: 3px; --h3: 15px; --tick: 28px; --meta: 11px; }

/* The parts of the card that only the wide screen shows */
.sc-count, .sc-left, .sc-needs, .sc-act, .sc-then { display: none; }

@media (max-width: 999px) {
  .rail .side-card { display: none; }
}

@media (min-width: 1000px) {
  .rail-reset { display: none; }
  html:has(.vpanel.rail:not([hidden])) .fab-tools .details-btn { display: none; }  /* every step is one line */

  /* The layout: the height between the controls at the top and the bottom, without the page scrolling */
  .cookmode:has(> .vpanel.rail:not([hidden])) { padding-bottom: 64px; }
  .cookmode .vpanel.rail:not([hidden]) { display: grid; grid-template-columns: minmax(360px, 5fr) minmax(0, 7fr); gap: var(--space-8);
    max-width: 1560px; margin: 0 auto; padding-inline: var(--space-6); }

  /* ---- The list: quiet, one line a step, along a thin line with a dot for each ---- */
  .rail-main { height: calc(100vh - 116px); height: calc(100dvh - 116px); overflow: auto; overscroll-behavior: contain; padding-right: var(--space-2); }
  .cookmode .rail-main .slist { position: relative; max-width: none; margin: 0; }
  .rail-main .slist::before { content: ""; position: absolute; top: 12px; bottom: 12px; left: calc(var(--space-2) + (var(--tick) + 6px) / 2 - 1px);
    width: 2px; background: var(--color-line); border-radius: 1px; }
  .rail-main .seg-h { display: none; }
  .rail-main .st { grid-template-columns: calc(var(--tick) + 6px) minmax(0, 1fr); cursor: pointer; }
  .rail-main .slist .st, .rail-main .slist .st:not(.is-next):not(.is-open) { padding-block: var(--row-pad); }
  .rail-main .st + .st { border-top: 0; }
  .rail-main .slist .st .st-more { display: none; }
  .rail-main .st-body h3 { font-size: var(--h3); font-weight: 400; letter-spacing: -.005em; }
  .rail-main .st.is-next .st-body h3 { font-weight: 700; }
  .rail-main .st-meta { font-size: var(--meta); opacity: .75; }
  .rail-main .st-tag { background: none; padding: 0; font-weight: 400; font-size: var(--meta); color: var(--color-muted); }
  .rail-main .slist .st .st-timer-mini { display: none; }
  .rail-main .slist .st .st-timer-mini.running { display: inline-flex; }  /* only while it runs */
  [data-fit-steps][data-density="tight"] .st-timer-mini { min-height: 24px; }
  .rail-main .st.is-next { background: none; }
  .rail-main .st.is-done { opacity: .45; }
  .rail-main .st.is-done .st-body { opacity: 1; }
  .rail-main .slist .st:hover, .rail-main .slist .st.sel { background: color-mix(in srgb, var(--color-soft) 60%, transparent); }
  .rail-main .slist .st.sel { background: var(--color-soft); }
  /* The dots: hollow ahead, filled when done, larger in the step's colour where you are */
  .rail-main .st-tick { position: relative; z-index: 1; justify-self: center; width: 12px; height: 12px; margin: calc((var(--h3) * 1.3 - 12px) / 2) auto 0;
    border: 2px solid var(--color-line); background: var(--color-paper); font-size: 0; }
  .rail-main .st.is-done .st-tick { background: var(--color-line); border-color: var(--color-line); }
  .rail-main .st.is-next .st-tick { width: 18px; height: 18px; margin-top: calc((var(--h3) * 1.3 - 18px) / 2); border: 0; background: var(--ph);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--ph) 22%, transparent); }
  /* Where the heat goes on: a mark on the line */
  .rail-main .heat-line { position: relative; display: block; margin: var(--space-2) 0; padding-left: calc(var(--space-2) + var(--tick) + 6px + var(--space-3));
    font: 500 12px var(--font-sans); color: var(--color-cook-ink); }
  [data-fit-steps][data-density="tight"] .heat-line { margin: var(--space-1) 0; }
  .rail-main .heat-line::before { content: ""; position: absolute; z-index: 1; left: calc(var(--space-2) + (var(--tick) + 6px) / 2 - 7px); top: 50%;
    width: 14px; height: 4px; margin-top: -2px; border: 0; border-radius: 2px; background: var(--color-cook); }
  .rail-main .heat-line::after { display: none; }

  /* ---- The card beside the steps and the timeline: a page in the middle of the height, without a box ---- */
  .side-card.pagecard { position: sticky; top: 0; height: calc(100vh - 116px); height: calc(100dvh - 116px); overflow: auto;
    display: flex; flex-direction: column; justify-content: center; padding: 0 var(--space-8); background: none; border: 0; border-radius: 0; box-shadow: none; }
  .pagecard .side-fold, .pagecard [data-side-card-label] { display: none; }
  .pagecard .side-card-h { justify-content: flex-start; gap: var(--space-3); padding: 0 0 var(--space-2); font: 500 13px var(--font-sans); letter-spacing: .02em; text-transform: none; }
  .pagecard .sc-count, .pagecard .sc-left { display: inline; }
  .pagecard .sc-left:not(:empty)::before { content: "· "; }
  .side-card.pagecard [data-step-card] { max-width: 62ch; }
  .side-card.pagecard .st { grid-template-columns: minmax(0, 1fr); padding: var(--space-3) 0; background: none; }
  .side-card.pagecard .st-tick { display: none; }  /* the Done button instead */
  .side-card.pagecard .st-line { gap: 4px 14px; }
  .side-card.pagecard .st-body h3 { font-family: var(--font-serif); font-weight: 700; font-size: clamp(28px, 2.4vw, 40px); line-height: 1.15; letter-spacing: -.01em; }
  .side-card.pagecard .st-meta { font-size: 14px; }
  .side-card.pagecard .st-part { margin-bottom: var(--space-2); }
  .side-card.pagecard .st-body .txt { margin-top: var(--space-4); font-size: clamp(18px, 1.45vw, 24px); line-height: 1.6; }
  .side-card.pagecard .txt .pill { background: none; border: 0; padding: 0; font-weight: 600; }
  .side-card.pagecard .txt .pill .sym { display: none; }  /* the pictures are in the list under the text */
  .side-card.pagecard :is(.st-eq, .st-donewhen, .st-part) { font-size: clamp(15px, 1.1vw, 18px); }
  .side-card.pagecard .st-donewhen b { font-family: var(--font-sans); letter-spacing: .04em; }
  .side-card.pagecard .st-timer { min-height: 48px; padding: 0 18px; font-size: 16px; }
  .pagecard .sc-new { animation: sc-in .2s ease-out; }
  /* What the step needs, the Done button, and the step after it */
  .pagecard .sc-needs:not([hidden]) { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); list-style: none; max-width: 62ch;
    margin: var(--space-2) 0 0; padding: var(--space-4) 0 0; border-top: 1px solid var(--color-line); }
  .pagecard .sc-needs li { display: inline-flex; align-items: center; gap: var(--space-2); font-size: clamp(15px, 1.1vw, 18px); }
  .pagecard .sc-needs .sym { --s: 32px !important; }
  /* A ready bowl stands for what is in it; a tap opens the bowls */
  .pagecard .sc-needs .sc-bowl button { display: inline-flex; align-items: center; gap: var(--space-2); padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
  .pagecard .sc-needs .sc-bowl .bno { width: 32px; height: 32px; background: var(--color-prep); color: var(--color-paper); }
  .pagecard .sc-needs .sc-bowl small { color: var(--color-muted); font-size: .8em; }
  .pagecard .sc-act { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-6); }
  .pagecard .sc-act:has(> .sc-done[hidden]) { display: none; }
  .pagecard .sc-done { min-height: 56px; padding: 0 28px; border: 0; border-radius: var(--radius-pill); background: var(--color-ink); color: var(--color-paper);
    font: 600 18px var(--font-sans); cursor: pointer; }
  .pagecard .sc-done:hover { background: color-mix(in srgb, var(--color-ink) 85%, var(--color-paper)); }
  .pagecard .sc-done:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
  .pagecard .sc-then { display: block; margin: var(--space-6) 0 0; color: var(--color-muted); font-size: 15px; }
  .side-card.pagecard .st-reset { margin: var(--space-4) 0 0; text-align: left; }

  /* A look at another step than the one you are on: said at the top, a little quieter, with the way back */
  .pagecard .sc-back { margin-left: var(--space-2); padding: 0; border: 0; background: none; color: var(--color-ink); font: 600 13px var(--font-sans);
    text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
  .pagecard .sc-back[hidden] { display: none; }
  .side-card.pagecard.peek .sc-count { color: var(--color-ink); }
  .side-card.pagecard.peek [data-step-card] .st-body { opacity: .78; }
  .side-card.pagecard.peek .sc-needs { opacity: .78; }
  .pagecard .sc-alt { padding: 0; border: 0; background: none; color: var(--color-muted); font: 500 15px var(--font-sans); text-decoration: underline;
    text-underline-offset: 3px; cursor: pointer; }
  .pagecard .sc-alt[hidden] { display: none; }
  .pagecard .sc-back:focus-visible, .pagecard .sc-alt:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: 4px; }

  /* Quieter corner controls beside the steps */
  html:has(.vpanel.rail:not([hidden])) :is(.fab, .fab-tools .vmenu-btn, .fab-tools .bowls-open) { box-shadow: none; opacity: .7; }
  html:has(.vpanel.rail:not([hidden])) :is(.fab, .fab-tools .vmenu-btn, .fab-tools .bowls-open):hover { opacity: 1; }
}
/* ---- The step you are on, lifted (chosen 25.10.2026): the rest of the list fades back, and the card has larger
        type a little above the middle with the step's number large and faint beside it ---- */
@media (min-width: 1000px) {
  /* The steps ahead fade back, but not the next one, nor one with a timer running; all back on a hover */
  .rail-main .st { transition: opacity .2s; }
  /* :where keeps this at the weight of one class, so done steps and the hover below win over it */
  .rail-main :where(.st:not(.is-next):not(.is-then):not(.sel):not(:has(.st-timer-mini.running))) { opacity: .5; }
  .rail-main .st.is-done { opacity: .28; }
  .rail-main:hover .st:not(.is-done) { opacity: 1; }
  .rail-main .heat-line { opacity: .6; }

  .side-card.pagecard { padding-bottom: 10vh; }
  .side-card.pagecard .st-body h3 { font-size: clamp(32px, 3vw, 48px); }
  .side-card.pagecard .st-body .txt { font-size: clamp(19px, 1.7vw, 26px); }
  .side-card.pagecard .st { grid-template-columns: clamp(64px, 6vw, 104px) minmax(0, 1fr); }
  .side-card.pagecard .st-tick { display: block; width: auto; height: auto; margin: 0; padding: 0; border: 0; background: none; pointer-events: none;
    justify-self: start; font: 400 clamp(64px, 6vw, 104px)/.9 var(--font-serif); color: color-mix(in srgb, var(--color-ink) 12%, transparent); }
  .side-card.pagecard [data-step-card] { max-width: calc(62ch + clamp(64px, 6vw, 104px)); }
  .side-card.pagecard :is(.side-card-h, .sc-needs, .sc-act, .sc-then, .sc-tip, .st-reset) { margin-left: clamp(64px, 6vw, 104px); }
}
/* ---- The timeline on a wide screen (templates/components/whole_dish.html timeline): beside the same page card,
        over the whole height, in the rail's quiet colours. The rows share the height between them (--rows, from
        the template), between 20 and 46 px each. ---- */
@media (min-width: 1000px) {
  .cookmode:has(> .vpanel.tl-panel:not([hidden])) { padding-bottom: 64px; }
  .cookmode .vpanel.tl-panel:not([hidden]) { grid-template-columns: minmax(0, 7fr) minmax(360px, 5fr); gap: var(--space-8); align-items: stretch;
    max-width: 1560px; margin: 0 auto; padding-inline: var(--space-6); }
  .tl-panel .split-main { display: flex; flex-direction: column; min-height: 0; height: calc(100vh - 116px); height: calc(100dvh - 116px); }
  .tl-panel .legend { order: -1; margin: 0 0 var(--space-2); font-size: 12px; }
  .tl-panel .tl-status { display: none; }  /* the card says where you are */
  .tl-panel .tl-scroll { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
  .tl-panel .tl { --lw: 210px; --rowh: clamp(20px, calc((100vh - 220px) / var(--rows)), 46px); --rowh: clamp(20px, calc((100dvh - 220px) / var(--rows)), 46px);
    min-width: 0; padding-top: 20px; }
  .tl-panel .tl-row { min-height: var(--rowh); border-bottom: 0; border-radius: 6px; transition: opacity .2s; }
  .tl-panel .tl-l { font: 400 clamp(12px, calc(var(--rowh) * .4), 16px)/1.25 var(--font-sans); }
  .tl-panel .tl-l span { white-space: nowrap; }
  .tl-panel .tl-no { font: 400 .85em var(--font-sans); color: var(--color-muted); margin-right: 2px; }
  .tl-panel .tl-t, .tl-panel .tb { height: calc(var(--rowh) * .42); }
  .tl-panel .tb { border-radius: 4px; }
  /* Your work solid, the standing a light wash, the wait before it is used a thin line */
  .tl-panel .tb.p { background: color-mix(in srgb, var(--ph) 26%, transparent); border: 0; }
  .tl-panel .tb.h { top: calc(50% - 1px); height: 2px; border: 0; border-radius: 1px; opacity: 1; background: color-mix(in srgb, var(--ph) 50%, transparent); }
  .tl-panel .tb.h.over { background: var(--color-danger); }
  .tl-panel .tl-me .tl-l span { font-weight: 600; }
  .tl-panel .tb.free { background: none; border: 1px dashed var(--color-line); }
  .tl-panel .tb.free b { font: 500 11px var(--font-sans); padding: 0 6px; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  /* Done steps fade, the step you are on and the one you look at stand out quietly */
  .tl-panel .tl-row.is-done { opacity: .35; }
  .tl-panel .tl-row.cur { background: color-mix(in srgb, var(--ph) 9%, transparent); box-shadow: none; }
  .tl-panel .tl-row.sel { background: var(--color-soft); box-shadow: none; }
  .tl-panel .tl-row.cur .tl-l span, .tl-panel .tl-row.sel .tl-l span { font-weight: 700; }
  .tl-panel .tl-row[data-step]:hover { background: color-mix(in srgb, var(--color-soft) 60%, transparent); }
  .tl-panel .phline span, .tl-panel .tl-axis div { font-family: var(--font-sans); letter-spacing: .02em; }
  .tl-panel .phline span { text-transform: none; font-size: 11px; }
  .tl-panel .nowline { background: var(--color-ink); }
  .tl-panel .nowline::before { content: "Now"; position: absolute; top: 2px; left: 5px; font: 600 11px var(--font-sans); color: var(--color-ink); }
  .tl-panel .lg.p { background: color-mix(in srgb, var(--ph) 26%, transparent); border: 0; }
  .tl-panel .lg.h { height: 2px; border: 0; background: color-mix(in srgb, var(--ph) 50%, transparent); }
}

/* ---- The metro map (templates/components/whole_dish.html metro_map) in the rail's language: calmer line
        colours, stations like the rail's dots (hollow ahead, filled when done, larger in the step's colour where
        you are), no phase badges, clock times down the side, a Now line, and a long wait that says what you could
        do. On a wide screen beside the page card, scaled to the height (static/js/steps.js metroFit). ---- */
.mt .lane-0, .mt-key .lane-0, .mt-part.lane-0 { --lane: #4f7f8c; }
.mt .lane-1, .mt-key .lane-1, .mt-part.lane-1 { --lane: #8b6fab; }
.mt .lane-2, .mt-key .lane-2, .mt-part.lane-2 { --lane: #b8775a; }
.mt .lane-3, .mt-key .lane-3, .mt-part.lane-3 { --lane: #6b7280; }
.mt-key .k-ph, .mt-names .mt-ph { display: none; }
.mt-key { font-size: 12px; }
.mt-line { stroke-width: 6; }
.mt-st circle { stroke-width: 3; transition: fill .2s; }
.mt-st.is-done circle { fill: var(--lane); }
.mt-st.merge.is-done rect, .mt-st.final.is-done circle:not(.dot) { fill: var(--color-line); }
.mt-st.cur circle, .mt-st.cur rect { stroke: var(--color-ink); stroke-width: 4; }
.mt-st.cur:not(.merge):not(.final) circle { fill: var(--color-paper); r: 9.5; filter: drop-shadow(0 0 4px color-mix(in srgb, var(--lane) 55%, transparent)); }
.mt-names li { font-family: var(--font-sans); transition: opacity .2s; }
.mt-names li.is-done { opacity: .35; }
.mt-names li.cur { background: color-mix(in srgb, var(--color-soft) 70%, transparent); box-shadow: none; }
.mt-no { font: 400 .8em var(--font-sans); }
.mt-ticks { width: 44px; }
.mt-ticks li { font: 500 11px var(--font-sans); }
.mt-svg { left: 52px; }
.mt-names { left: calc(var(--w) + 62px); }
.mt-break-l { width: 44px; font: 600 10px var(--font-sans); }
.mt-now { left: 48px; border-top-color: var(--color-ink); }
.mt-now::before { content: "Now"; position: absolute; right: 0; top: -16px; font: 600 11px var(--font-sans); color: var(--color-ink); }
.mt-names .mt-wait { display: block; padding: 0 6px; font: italic 400 12px var(--font-sans); color: var(--color-muted); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; pointer-events: none; background: none; }
/* The stretch travelled in full colour, the rest faint (static/js/steps.js sets the clip) */
.mt-line.mt-ahead { opacity: .28; }
/* Where parts meet: which, each with a tick when it is ready */
.mt-meets { flex: 0 1 auto; min-width: 0; font: 500 12px var(--font-sans); color: var(--color-muted); }
.mt-meets::before { content: "· "; }
.mt-meets [data-meet] { color: var(--lane); font-weight: 600; }
.mt-meets [data-meet].ok::after { content: " ✓"; color: var(--color-prep-ink); }
/* The parts (a trial): hidden until switched on in the admin chip, in a row above the map or above their lines */
.mt-parts, .mt-heads { display: none; }
html.mtx-row .mt-parts { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0 0 var(--space-3); }
html:is(.mtx-row, .mtx-lines, .mtx-ends) .mt-key { display: none; }
/* At the start: the part's picture, large, as the line's first station (static/js/steps.js placeTermini) */
.mt-terms { display: none; }
html.mtx-ends .mt-terms { display: block; position: absolute; left: 52px; top: 0; z-index: 3; }
.mt-term { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer; }
.mt-term::after { content: ""; width: 6px; height: var(--stem, 12px); margin-top: -6px; border-radius: 3px; background: var(--lane); }
.mt-term img, .mt-term i { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: color-mix(in srgb, var(--lane) 22%, var(--color-paper));
  box-shadow: 0 0 0 4px var(--lane), 0 0 0 7px var(--color-paper); display: grid; place-items: center; font: 700 26px var(--font-sans); font-style: normal; color: var(--lane); }
.mt-term small { padding: 0 6px; border-radius: 6px; background: var(--color-paper); font: 700 13px var(--font-sans); color: var(--lane); white-space: nowrap; }
.mt-term small span { font-weight: 500; color: var(--color-muted); }
.mt-term.ready small span { color: var(--color-prep-ink); }
.mt-term[aria-pressed="true"] img, .mt-term[aria-pressed="true"] i { box-shadow: 0 0 0 4px var(--lane), 0 0 0 10px color-mix(in srgb, var(--lane) 25%, var(--color-paper)); }
.mt-term:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; border-radius: 8px; }
html.mtx-lines .mt-heads { display: block; position: absolute; left: 52px; top: 0; z-index: 3; }
.mt-head { position: absolute; transform: translate(-50%, calc(-100% - 14px)); display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 6px 4px; border: 0; border-radius: 14px; background: var(--color-paper); color: var(--lane); cursor: pointer; }
.mt-head img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--lane); }
.mt-head span { writing-mode: vertical-rl; transform: rotate(180deg); font: 700 14px var(--font-sans); white-space: nowrap; }
.mt-head small { font: 500 11px var(--font-sans); color: var(--color-muted); white-space: nowrap; }
.mt-head.ready small { color: var(--color-prep-ink); }
.mt-head[aria-pressed="true"] { background: color-mix(in srgb, var(--lane) 14%, var(--color-paper)); }
.mt-head:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.mt-part { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: 4px 14px 4px 4px; border: 1px solid var(--color-line);
  border-left: 4px solid var(--lane); border-radius: 12px; background: var(--color-paper); color: var(--color-ink); font: 600 14px var(--font-sans); cursor: pointer; }
.mt-part img, .mt-part i { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; background: var(--color-soft); flex: none; }
.mt-part i { background: color-mix(in srgb, var(--lane) 25%, var(--color-paper)); }
.mt-part small { font: 500 12px var(--font-sans); color: var(--color-muted); }
.mt-part.ready small { color: var(--color-prep-ink); }
.mt-part[aria-pressed="true"] { background: color-mix(in srgb, var(--lane) 12%, var(--color-paper)); border-color: var(--lane); }
.mt-part:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.mt .dim { opacity: .15; }
.mt-names li.dim { opacity: .25; }
@media (min-width: 1000px) {
  .cookmode:has(> .vpanel.mt-panel:not([hidden])) { padding-bottom: 64px; }
  /* The map as wide as it needs, the card beside it, the two together in the middle (static/js/steps.js metroFit) */
  .cookmode .vpanel.mt-panel:not([hidden]) { grid-template-columns: auto minmax(380px, 640px); justify-content: center; gap: 64px; align-items: stretch;
    max-width: none; margin: 0 auto; padding-inline: 32px; }
  .mt-panel .split-main { display: flex; flex-direction: column; min-height: 0; height: calc(100vh - 116px); height: calc(100dvh - 116px); }
  .mt-panel .mt-key { margin: 0 0 var(--space-2); }
  .mt-panel .mt-fit { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding-top: 16px; }
  .mt-panel .mt { margin: 0; width: calc(var(--w) + 62px + 460px); }
  /* Whole names, and which parts meet on a line of its own */
  .mt-panel .mt-names li { flex-wrap: wrap; row-gap: 2px; white-space: normal; line-height: 1.25; }
  .mt-panel .mt-name { overflow: visible; }
  .mt-panel .mt-meets { flex-basis: 100%; padding-left: 1.6em; }
  .mt-panel .mt-meets::before { content: none; }
  .mt-panel .hint { display: none; }
}

/* ---- The river delta on the cooking screen (templates/components/delta.html; .dv-rivers) in the app's language:
        the verbs in the app's font, the hand kept for the small notes; light boxes without a ring; quiet step
        numbers, the one you are on filled in its colour and underlined; clean lines, the main river in the accent.
        The printed and Overview deltas keep the pencil and the hand. ---- */
.dv-rivers .g2-node.ph-prep { --ph: var(--color-prep); background: color-mix(in srgb, var(--color-prep-soft) 55%, transparent); }
.dv-rivers .g2-node.ph-cook { --ph: var(--color-cook); background: color-mix(in srgb, var(--color-cook-soft) 55%, transparent); }
.dv-rivers .g2-node.ph-serve { --ph: var(--color-serve); background: color-mix(in srgb, var(--color-soft) 70%, transparent); }
.dv-rivers .g2-node.main { box-shadow: none; }
.dv-rivers .mn-v { font: 600 17px/1.2 var(--font-sans); letter-spacing: -.005em; }
.dv-rivers .g2-node.main .mn-v { font-size: 18px; font-weight: 700; }
.dv-rivers .fx-arrow { font: 400 15px var(--font-sans); }
.dv-rivers .fx-no { min-width: 20px; height: 20px; border: 1.5px solid var(--color-line-strong); background: var(--color-paper); color: var(--color-muted);
  font: 500 11px var(--font-sans); }
.dv-rivers .fx-no.ok, .dv-rivers .fx-seg.done .fx-no { background: var(--color-line); border-color: var(--color-line); color: var(--color-muted); }
.dv-rivers .fx-seg.cur .fx-no { background: var(--ph); border-color: var(--ph); color: var(--color-paper); }
.dv-rivers .fx-seg.cur .mn-v { text-decoration: underline; text-decoration-color: var(--ph); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.dv-rivers .fx-seg.sel .mn-v { background: var(--color-soft); border-radius: 4px; }
.dv-rivers .mn-ing small { font: 500 11px var(--font-sans); }
.dv-rivers .fx-bowl { background: color-mix(in srgb, var(--color-ink) 4%, transparent); }
.dv-rivers .sk-arrows .pa { stroke: var(--color-line-strong); stroke-width: 1.6; }
.dv-rivers .ed.main .pa { stroke: var(--color-cook); stroke-width: 3; }
.dv-progress .ed.flowed .pa { stroke: var(--color-prep); stroke-width: 2.6; }
.dv-progress .g2-node.nextup { background: var(--color-paper); box-shadow: 0 6px 20px rgb(0 0 0 / .08); }
.dv-progress .g2-node.nextup::before { content: none; }
/* How an ingredient is cut: a larger, clearer sign, and the word ("finely chopped") on a hover or a tap on it */
.dv-rivers .ing-img .mark { right: -6px; bottom: -6px; width: 22px; height: 22px; border: 1.5px solid var(--color-line-strong); box-shadow: 0 1px 3px rgb(0 0 0 / .1); cursor: help; }
.dv-rivers .ing-img .mark svg { width: 14px; height: 14px; }
.dv-rivers .ing-img[data-state]::after { content: attr(data-state); position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); z-index: 7;
  padding: 3px 8px; border-radius: 8px; background: var(--color-ink); color: var(--color-paper); font: 500 12px var(--font-sans); white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .15s; }
.dv-rivers .ing-img[data-state]:hover::after, .dv-rivers .ing-img.say::after { opacity: 1; }

/* Above the drawing: the hint, and the key to its signs */
.dl-top { display: flex; align-items: center; gap: var(--space-4); }
.dl-top .hint { margin: 0; font-size: 13px; }
.dl-key { position: relative; z-index: 6; }
.dl-key summary { list-style: none; cursor: pointer; padding: 2px 10px; border: 1px solid var(--color-line); border-radius: var(--radius-pill);
  font: 500 12px var(--font-sans); color: var(--color-muted); background: var(--color-paper); }
.dl-key summary::-webkit-details-marker { display: none; }
.dl-key[open] summary { color: var(--color-ink); border-color: var(--color-line-strong); }
.dl-key-panel { position: absolute; left: 0; top: calc(100% + 8px); width: 340px; padding: 12px 16px; background: var(--color-paper); border: 1px solid var(--color-line);
  border-radius: 14px; box-shadow: 0 12px 32px rgb(0 0 0 / .12); font: 400 13px/1.35 var(--font-sans); color: var(--color-ink); }
.dl-key-panel .eyebrow { margin: 8px 0 4px; }
.dl-key-panel .eyebrow:first-child { margin-top: 0; }
.dl-key-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.dl-key-panel li { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 8px; }
.dl-key-panel li > :first-child { justify-self: center; }
.dl-key-panel .mark { position: static; width: 22px; height: 22px; border-radius: 50%; background: var(--color-paper); border: 1.5px solid var(--color-line-strong);
  display: grid; place-items: center; color: var(--color-ink); }
.dl-key-panel .mark svg { width: 14px; height: 14px; }
.dl-key-panel .k-tray { width: 30px; height: 16px; border-radius: 6px; background: color-mix(in srgb, var(--color-ink) 6%, transparent); }
.dl-key-panel .ic-heat { width: 22px; height: 17px; fill: none; stroke-linecap: round; stroke-width: 2; }
.dl-key-panel .ic-heat .on { stroke: var(--color-cook); }
.dl-key-panel .ic-heat .off { stroke: var(--color-line-strong); opacity: .6; }
.dl-key-panel .ic-heat .pl-ring { stroke: var(--color-pencil); }
.dl-key-panel .ic-glass { width: 11px; height: 14px; fill: none; stroke: var(--color-pencil); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.dl-key-panel .mn-wait { display: inline-flex; align-items: center; gap: 3px; font: 500 12px var(--font-sans); }
.dl-key-panel .k-no { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--color-line-strong);
  font: 500 11px var(--font-sans); color: var(--color-muted); }
.dl-key-panel .k-arrow { width: 30px; height: 3px; border-radius: 2px; background: var(--color-cook); }
.dl-key-panel .k-from { font: 500 11px var(--font-sans); color: var(--color-muted); white-space: nowrap; }
/* The trial "Done in card": a step's number only shows where it stands, a tap on it opens the step */
html.dltap-2 .dv-rivers .fx-no { cursor: pointer; }
html.dltap-2 .dv-rivers .fx-no:hover { border-color: var(--color-line-strong); color: var(--color-muted); }

/* The trial "All steps": the steps the drawing folds away, on their box with their numbers */
.fx-folds { display: none; }
html.dlx-steps .dv-rivers .fx-folds { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 10px; margin-bottom: 2px; }
html.dlx-steps .dv-rivers .fx-fold .mn-v { font: 500 13px var(--font-sans); color: var(--color-muted); }
html.dlx-steps .dv-rivers .fx-fold.cur .mn-v { color: var(--color-ink); font-weight: 600; }
html.dlx-steps .dv-rivers .g2-note:not(.fx-also) { display: none; }  /* the setting up is now a step of its own */

/* The step you are on beside the delta, on a wide screen: a strip along the bottom with where you are, the step in
   a line or two, its timer and Done; the drawing makes room for it (static/js/delta.js, steps.js placeDeltaCard).
   Chosen 26.10.2026 over a small card in the drawing's free space. Narrower screens open the step in a sheet. */
.dl-panel > .side-card { display: none; }
@media (min-width: 1000px) {
  .cookmode:has(> .vpanel.dl-panel:not([hidden])) { padding-bottom: 64px; }
  .cookmode .vpanel.dl-panel { position: relative; margin-top: 0; }
  .dl-panel > .split-main { height: calc(100vh - 116px); height: calc(100dvh - 116px); overflow: hidden; }
  .dl-panel > .side-card.pagecard.dl-strip { position: absolute; z-index: 5; left: 16px; right: 16px; top: auto; bottom: 0; height: auto; max-height: 40%;
    overflow: auto; display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; align-items: center; gap: 0 24px; padding: 12px 18px;
    background: var(--color-paper); border: 1px solid var(--color-line); border-radius: 16px; box-shadow: 0 12px 32px rgb(0 0 0 / .12); }
  .dl-panel .side-card.pagecard :is(.sc-needs, .sc-then, .sc-tip, .st-reset, .st-eq, .st-part, .st-tick, .st-donewhen) { display: none; }
  .dl-panel .side-card.pagecard :is(.side-card-h, .sc-act) { margin: 0; }
  .dl-panel .side-card.pagecard .side-card-h { flex-direction: column; align-items: flex-start; gap: 0; padding: 0; font-size: 12px; }
  .dl-panel .side-card.pagecard .sc-left::before { content: none; }
  .dl-panel .side-card.pagecard .st { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .dl-panel .side-card.pagecard .st-body h3 { font-size: 19px; }
  .dl-panel .side-card.pagecard .st-meta { font-size: 12px; }
  .dl-panel .side-card.pagecard .st-body .txt { margin-top: 2px; font-size: 15px; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
  .dl-panel .side-card.pagecard .st-timer { min-height: 32px; margin-top: 6px; font-size: 13px; }
  .dl-panel .side-card.pagecard .sc-done { min-height: 42px; padding: 0 20px; font-size: 15px; }
}

/* While you wait: what you could do while the step stands, on the card (static/js/steps.js) */
.sc-tip:not([hidden]) { margin: var(--space-4) 0 0; font-size: 15px; color: var(--color-muted); max-width: 62ch; }
.sc-tip b { color: var(--color-ink); font-weight: 600; }
.sc-tip button { padding: 0; border: 0; background: none; color: var(--color-ink); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

@keyframes sc-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .pagecard .sc-new { animation: none !important; } }
