/* The landing phone (TOF-745): the app, drawn in HTML from its own screens.
   Markup: scripts/landing-phone/build.mjs. Behaviour: phone-v4.js, played by
   the page's own script. Versioned filename: the host caches by URL, so a
   change ships as phone-v4.

   The frame is 276 x 576 CSS px. Inside it, .ph-ui is drawn at the app's own
   size, 393 x 846 points, and scaled into the screen, so every size below is
   the SwiftUI value in points (TofuTypography, TofuSpacing). Colours are the
   app's asset catalogue, light mode. */

.ph {
    --a-primary: #2C6E49;
    --a-accent: #2C6E46;
    --a-secondary: #D68C45;
    --a-bg: #F6F4EF;
    --a-surface: #FFFFFF;
    --a-surface-2: #EEEBE4;
    --a-text: #2D3436;
    --a-text-2: #636E72;
    --a-push: cubic-bezier(0.32, 0.72, 0, 1);   /* a push or a sheet: UIKit's, a soft start and a long settle */
    --a-safe: 59px;                              /* the status bar's safe area */
    --a-bouncy: linear(0, 0.06 3%, 0.25 7.5%, 0.86 21%, 1.06 29%, 1.12 35%, 1.1 41%, 1.02 52%, 0.99 62%, 1);
    position: relative;
    width: 276px;
    height: 576px;
    padding: 8px;
    border-radius: 48px;
    background: #111;
    box-shadow: 0 34px 60px -14px rgba(26, 45, 26, 0.45);
}
/* the Dynamic Island, on the bezel */
.ph::before { content: ""; position: absolute; z-index: 20; left: 50%; top: 17px; width: 76px; height: 22px; margin-left: -38px; border-radius: 12px; background: #111; }
.ph-screen { position: relative; height: 100%; overflow: hidden; border-radius: 40px; background: var(--a-bg); }
.ph-ui {
    position: relative;
    width: 393px;
    height: 846px;
    transform: scale(0.6616);
    transform-origin: 0 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.25;
    color: var(--a-text);
    -webkit-text-size-adjust: none;
}
.ph-ui :where(p) { margin: 0; }   /* zero specificity, so any rule's margin wins */
.ph-ui svg { flex: none; width: 1em; height: 1em; }
.ph-ui img { display: block; max-width: none; }
.ph-statusbar { position: absolute; z-index: 9; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; height: 54px; padding: 4px 34px 0 52px; transition: color 0.3s ease; }
.ph-statusbar span { display: flex; gap: 2px; align-items: flex-end; }
.ph-statusbar i { width: 4px; border-radius: 1px; background: currentColor; }
.ph-statusbar i:nth-child(1) { height: 5px; } .ph-statusbar i:nth-child(2) { height: 7.5px; } .ph-statusbar i:nth-child(3) { height: 10px; } .ph-statusbar i:nth-child(4) { height: 12px; }

/* ---- navigation: a tab's root, a pushed screen, the tab bar ----
   Switching tabs swaps the root at once in iOS; here it crossfades, so the
   change reads without a jump. A push slides in from the
   right over its root, which shifts left and dims (an overlay fading, not a
   filter, so the photos under it aren't re-rasterised every frame). */
.ph-root, .ph-push { position: absolute; inset: 0; overflow: hidden; background: var(--a-bg); }
.ph-root { visibility: hidden; opacity: 0; padding-top: var(--a-safe); transition: opacity 0.3s ease, visibility 0s linear 0.3s, transform 0.6s var(--a-push); }
.ph-root.is-on { visibility: visible; opacity: 1; transition: opacity 0.3s ease, transform 0.6s var(--a-push); }
.ph-root::after { content: ""; position: absolute; z-index: 4; inset: 0; background: #000; opacity: 0; pointer-events: none; transition: opacity 0.6s ease; }
.ph-root.is-back { transform: translateX(-30%); }
.ph-root.is-back::after { opacity: 0.1; }
.ph-push { z-index: 5; transform: translateX(100%); box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12); transition: transform 0.6s var(--a-push); }
.ph-push.is-on { transform: none; }
.ph-push.is-back { transform: translateX(-30%); }
.ph-push::after { content: ""; position: absolute; z-index: 9; inset: 0; background: #000; opacity: 0; pointer-events: none; transition: opacity 0.6s ease; }
.ph-push.is-back::after { opacity: 0.1; }

/* the system tab bar (iOS 26's floating glass, without the blur: under a
   moving phone a backdrop blur is recomputed every frame for little to see):
   the current tab on a grey pill, tinted charcoal */
.ph-tabs { position: absolute; z-index: 8; left: 19px; right: 19px; bottom: 19px; display: flex; padding: 4px; border-radius: 100px; background: rgba(255, 255, 255, 0.94); box-shadow: 0 8px 24px rgba(26, 45, 26, 0.12), 0 0 0 0.5px rgba(0, 0, 0, 0.06); }
.ph-tabs span { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0 6px; border-radius: 100px; color: #404548; font-size: 11px; font-weight: 500; transition: background-color 0.25s ease, transform 0.2s ease; }
.ph-tabs svg { font-size: 28px; }
.ph-tabs .is-fill, .ph-tabs .is-on .is-line { display: none; }
.ph-tabs .is-on .is-fill { display: block; }
.ph-tabs .is-on { background: rgba(118, 118, 128, 0.14); color: var(--a-text); font-weight: 600; }

/* the finger: a touch, in the screen's own coordinates */
.ph-finger { position: absolute; z-index: 30; left: 0; top: 0; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 8px 20px rgba(0, 0, 0, 0.25); opacity: 0; transform: scale(1.4); transition: opacity 0.2s ease, transform 0.25s var(--out, ease); pointer-events: none; }
.ph-finger.is-down { opacity: 1; transform: scale(1); }
/* what the finger taps swells and settles (the individual scale property, so
   it adds to whatever transform the element has and leaves its transitions be) */
.ph-ui .is-tap { animation: ph-tap 0.7s cubic-bezier(0.3, 0.7, 0.4, 1); }
@keyframes ph-tap { 0% { scale: 1; } 30% { scale: 1.08; } 100% { scale: 1; } }
/* and the finger leaves a ring as it presses */
.ph-finger::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8); opacity: 0; }
.ph-finger.is-down::after { animation: ph-ring 0.6s ease-out; }
@keyframes ph-ring { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(1.7); } }

/* shared pieces */
.ph-field { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 16px; background: var(--a-surface); color: var(--a-text-2); font-weight: 500; }
.ph-field svg { color: var(--a-primary); font-size: 17px; }
.ph-round { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--a-surface); color: var(--a-text); font-size: 21px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); }
.ph-round.is-green { color: var(--a-primary); }
.ph-round.is-dark { width: 36px; height: 36px; background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 17px; box-shadow: none; }
.ph-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px; }

/* RecipeCardView */
.ph-card { position: relative; border-radius: 16px; background: var(--a-surface); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06); }
.ph-card-photo { position: relative; height: 140px; overflow: hidden; border-radius: 16px 16px 0 0; background: var(--a-surface-2); }
.ph-card-photo > img { width: 100%; height: 100%; object-fit: cover; }
.ph-heart { position: absolute; top: 8px; left: 8px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.82); box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.6), 0 1px 4px rgba(0, 0, 0, 0.12); color: var(--a-text); font-size: 14px; }
.ph-heart svg { transform: scale(0.85); }
.ph-badges { position: absolute; top: 8px; right: 8px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ph-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 100px; background: var(--a-secondary); color: #fff; font-size: 11px; font-weight: 600; }
.ph-badge svg { font-size: 10px; }
.ph-protein { position: absolute; right: 8px; bottom: 8px; padding: 4px 8px; border-radius: 100px; background: rgba(44, 110, 73, 0.85); color: #fff; font-size: 11px; font-weight: 700; }
.ph-card-info { padding: 8px 12px 12px; }
.ph-card-title { min-height: 44px; font-weight: 600; font-size: 17px; line-height: 22px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ph-card-meta { display: flex; gap: 8px; margin-top: 8px; color: var(--a-text-2); font-size: 11px; font-weight: 500; white-space: nowrap; overflow: hidden; }
.ph-card-meta span { display: inline-flex; align-items: center; gap: 3px; }
.ph-card-meta svg { font-size: 11px; }
.ph-card-meta .is-star { font-size: 9px; color: var(--a-primary); }
.ph-card-meta .is-loved { font-size: 9px; opacity: 0.6; }
.ph-tagpills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.ph-tagpills span { padding: 2px 6px; border-radius: 24px; background: rgba(44, 110, 73, 0.1); color: var(--a-primary); font-size: 11px; font-weight: 500; }
.ph-card.is-compact { flex: none; width: 160px; }
.ph-card.is-compact .ph-card-photo { height: 140px; margin: 0; border-radius: 12px; }
.ph-card.is-compact .ph-tagpills { max-height: 18px; overflow: hidden; }

/* ---- Home: the hero, search, discovery tiles, Nika's pick, the newest recipes ---- */
/* the root already starts under the status bar (its padding), so the column adds only its own 12 */
.ph-home-in { position: relative; padding: 12px 16px 120px; transition: transform 0.9s cubic-bezier(0.45, 0, 0.2, 1); }
.ph-row + .ph-row { margin-top: 24px; }
/* scrolled, Home's content passes under a cream status bar, as the app's does */
.ph-home::before { content: ""; position: absolute; z-index: 3; top: 0; left: 0; right: 0; height: 54px; background: var(--a-bg); opacity: 0; transition: opacity 0.3s ease; }
.ph-home.is-scrolled::before { opacity: 1; }
.ph-hero { display: flex; justify-content: space-between; align-items: center; }
.ph-hero p { display: flex; flex-direction: column; gap: 4px; }
.ph-hero b { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1.1; letter-spacing: -0.2px; }
.ph-hero p span { color: var(--a-text-2); }
.ph-hero-icons { display: flex; align-items: center; gap: 8px; }
.ph-hero-icons i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--a-surface); font-size: 19px; }
.ph-hero-icons .is-profile { background: var(--a-primary); color: #fff; font-size: 18px; }
.ph-field.is-home { margin-top: 24px; }
.ph-tiles { display: flex; gap: 12px; margin-top: 24px; margin-right: -16px; overflow: hidden; }
.ph-tile { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 74px; }
.ph-tile-face { width: 74px; height: 74px; overflow: hidden; border-radius: 16px; background: var(--a-primary); }
.ph-tile-face > img { width: 100%; height: 100%; object-fit: cover; }
.ph-tile small { width: 82px; text-align: center; font-size: 11px; font-weight: 500; line-height: 1.2; }
.ph-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 100%; height: 100%; background: var(--a-bg); }
.ph-mosaic img { width: 100%; height: 100%; object-fit: cover; }
.ph-picks { margin-top: 24px; margin-right: -16px; overflow: hidden; }
.ph-picks-track { display: flex; gap: 12px; transition: transform 0.55s var(--a-push); }
.ph-pick { position: relative; flex: none; width: 329px; height: 200px; overflow: hidden; border-radius: 16px; background: var(--a-surface-2); color: #fff; }
.ph-pick > img { width: 100%; height: 100%; object-fit: cover; }
.ph-pick::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 130px; background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.7)); }
.ph-pick-badge { position: absolute; z-index: 1; top: 16px; left: 16px; display: flex; align-items: center; gap: 6px; padding: 3px 12px 3px 3px; border-radius: 100px; background: rgba(255, 255, 255, 0.94); color: var(--a-text); font-size: 12px; font-weight: 600; }
.ph-pick-badge img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.ph-pick-text { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 16px; }
.ph-pick-text b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.1; }
.ph-pick-text small { display: flex; align-items: center; gap: 4px; margin-top: 6px; color: rgba(255, 255, 255, 0.8); font-size: 11px; font-weight: 500; }
.ph-pick-text small svg:last-of-type { margin-left: 4px; }
.ph-dots-pick { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.ph-dots-pick i { width: 6px; height: 6px; border-radius: 50%; background: rgba(99, 110, 114, 0.3); transition: background-color 0.3s ease; }
.ph-dots-pick i.is-on { background: var(--a-primary); }
.ph-row { margin-top: 32px; }
.ph-row-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.ph-row-head small { display: flex; align-items: center; gap: 2px; color: var(--a-primary); font-family: var(--font-body); font-size: 15px; font-weight: 600; }
.ph-row-head small svg { font-size: 11px; }
.ph-row-cards { display: flex; gap: 12px; margin: 12px -16px 0 0; padding-bottom: 12px; overflow: hidden; }

/* ---- ShoppingListSheet (TOF-761): a large sheet over the recipe, which dims and
   sinks behind it; its bar, the add field, "N items", the aisles' cards ---- */
.ph-full { position: absolute; z-index: 12; left: 0; right: 0; bottom: 0; top: 50px; overflow: hidden; border-radius: 38px 38px 0 0; background: var(--a-bg); transform: translateY(105%); transition: transform 0.6s var(--a-push); box-shadow: 0 -2px 18px rgba(0, 0, 0, 0.12); }
.ph-full.is-on { transform: none; }
.ph-full-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 10px; }
.ph-full-bar b { font-weight: 600; font-size: 17px; }
.ph-round.is-small { width: 40px; height: 40px; font-size: 19px; }
.ph-done { padding: 9px 16px; border-radius: 100px; background: var(--a-surface); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); font-size: 17px; transition: transform 0.2s ease; }
.ph-shop { padding: 12px 16px 0; }
.ph-addfield { display: flex; align-items: center; gap: 8px; padding: 14px 12px; border-radius: 16px; background: var(--a-surface); color: rgba(99, 110, 114, 0.6); }
.ph-addfield svg { font-size: 22px; color: var(--a-primary); }
.ph-shop-ctl { display: flex; justify-content: space-between; align-items: center; min-height: 36px; margin-top: 16px; padding-left: 2px; color: var(--a-text-2); font-size: 15px; }
.ph-shop-ctl b { display: flex; align-items: center; gap: 5px; color: var(--a-primary); font-weight: 600; }
.ph-shop-ctl b svg { font-size: 15px; }
.ph-shop-ctl .is-chev { font-size: 11px; }
.ph-aisle-name { display: flex; align-items: center; gap: 8px; min-height: 32px; margin-top: 16px; padding: 0 2px; color: var(--a-text-2); font-size: 13px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; }
.ph-aisle-name > svg:first-child { font-size: 15px; color: var(--a-primary); }
.ph-aisle-name span { flex: 1; }
.ph-aisle-name .is-fold { font-size: 12px; margin-right: 8px; }
.ph-aisle { margin-top: 8px; padding: 4px 12px; border-radius: 16px; background: var(--a-surface); }
.ph-shop-item { display: flex; align-items: center; gap: 12px; padding: 8px 0; transition: transform 0.3s var(--a-bouncy); }
.ph-shop-item + .ph-shop-item { border-top: 1px solid rgba(45, 52, 54, 0.08); }
.ph-shop-item > i { position: relative; flex: none; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(99, 110, 114, 0.4); transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.3s var(--a-bouncy); }
/* ticked off: checkmark.circle.fill in primary at 1.08, the text secondary and struck through */
.ph-shop-item > i::after { content: ""; position: absolute; left: 7px; top: 4px; width: 4.5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform 0.25s var(--a-bouncy); }
.ph-shop-item.is-got > i { background: var(--a-primary); box-shadow: none; transform: scale(1.08); }
.ph-shop-item.is-got > i::after { transform: rotate(45deg) scale(1); }
.ph-shop-item b { display: block; font-weight: 500; font-size: 15px; font-feature-settings: "frac"; transition: color 0.25s ease; }
.ph-shop-item.is-got b { color: var(--a-text-2); text-decoration: line-through; }
.ph-shop-item > span { flex: 1; }
.ph-shop-item small { display: flex; align-items: center; gap: 4px; margin-top: 2px; color: var(--a-text-2); font-size: 12px; }
.ph-shop-item small .is-down { font-size: 9px; }
.ph-shop-item.is-grow { transform: scale(1.04); }
.ph-shop-item em { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--a-bg); color: var(--a-text-2); font-size: 11px; }

/* ---- Kitchen (kitchen redesign): "What I have at home", then the tray's results ---- */
.ph-build { position: absolute; inset: var(--a-safe) 0 0; padding: 8px 16px 0; }
.ph-kit-title { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1.1; letter-spacing: -0.2px; }
.ph-kit-link { display: flex; align-items: center; gap: 2px; margin-top: 4px; color: var(--a-primary); font-size: 15px; font-weight: 600; }
.ph-kit-link b { font-weight: 600; font-variant-numeric: tabular-nums; }
.ph-kit-link svg { font-size: 10px; }
.ph-field.is-kitchen { margin-top: 12px; min-height: 44px; }
.ph-label { margin: 24px 0 8px; color: var(--a-text-2); font-size: 13px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; }
.ph-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ph-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px; border-radius: 24px; background: var(--a-surface); font-size: 15px; font-weight: 500; white-space: nowrap; transition: background-color 0.2s ease, color 0.2s ease, transform 0.35s var(--a-bouncy); }
.ph-chip svg { font-size: 16px; color: var(--a-primary); transition: color 0.2s ease; }
.ph-chip.is-on { background: var(--a-primary); color: #fff; }
.ph-chip.is-on svg { color: #fff; }
.ph-aisles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ph-aisle-tile { display: flex; flex-direction: column; gap: 4px; min-height: 112px; padding: 12px; border-radius: 16px; background: var(--a-surface); }
.ph-aisle-tile svg { font-size: 24px; color: var(--a-primary); }
.ph-aisle-tile b { margin-top: auto; min-height: 38px; font-size: 15px; font-weight: 500; line-height: 1.25; }
.ph-aisle-tile small { color: var(--a-primary); font-size: 12px; }
/* KitchenTray: the green card over the list's end, above the tab bar, and the cream fading in behind it */
.ph-kitchen::after { content: ""; position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 330px; background: linear-gradient(to bottom, color-mix(in srgb, var(--a-bg) 0%, transparent), var(--a-bg) 25%); pointer-events: none; }
.ph-tray { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 94px; display: flex; flex-direction: column; gap: 12px; padding: 12px 0; border-radius: 22px; background: var(--a-accent); box-shadow: 0 6px 12px rgba(44, 110, 70, 0.3); color: #fff; transition: transform 0.2s ease; }
.ph-tray-head { display: flex; justify-content: space-between; align-items: center; padding: 0 16px; font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.ph-tray-head b { font-weight: 600; font-variant-numeric: tabular-nums; }
.ph-tray-head svg { font-size: 15px; }
.ph-tray-row { display: flex; gap: 8px; padding: 0 16px; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 24px), transparent); }
.ph-tcardmini { position: relative; flex: none; display: flex; flex-direction: column; gap: 4px; width: 132px; padding-bottom: 10px; overflow: hidden; border-radius: 16px; background: var(--a-surface); color: var(--a-text); }
.ph-tcardmini > img { width: 132px; height: 84px; object-fit: cover; background: var(--a-surface-2); }
.ph-tcardmini > b { min-height: 34px; margin-top: 16px; padding: 0 10px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 13px; font-weight: 600; line-height: 17px; }
.ph-tcardmini > small { display: flex; align-items: center; gap: 3px; padding: 0 10px; color: var(--a-primary); font-size: 12px; font-weight: 600; }
.ph-tcardmini > small svg { font-size: 10px; }
.ph-tcardmini .ph-miss { padding: 0 10px; }
/* the sticker across a photo's lower edge (FridgeMatchSticker); the mini card's hangs 10 below it */
.ph-sticker { position: absolute; z-index: 1; left: 8px; top: 134px; padding: 6px 12px; border-radius: 100px; background: var(--a-surface); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); font-size: 11px; font-weight: 600; white-space: nowrap; transform: rotate(-2deg); }
.ph-sticker.is-mini { left: 6px; top: 70px; }
.ph-sticker b { font-weight: 600; font-variant-numeric: tabular-nums; }
.ph-sticker.is-full { background: var(--a-primary); color: #fff; }   /* a perfect match */
/* KitchenMissingPills: the cart, then ochre pills, one line */
.ph-miss { display: flex; align-items: center; gap: 4px; min-width: 0; margin-top: 8px; white-space: nowrap; }
.ph-tcardmini .ph-miss { margin-top: 0; }
.ph-miss > svg { flex: none; margin-right: 1px; color: var(--a-secondary); font-size: 12px; }
.ph-miss span { flex: none; max-width: 100%; height: 20px; padding: 0 7px; overflow: hidden; text-overflow: ellipsis; border-radius: 100px; background: var(--a-secondary); color: #fff; font-size: 11px; font-weight: 600; line-height: 20px; }
.ph-miss span:not(.is-more) { flex: 0 1 auto; }
/* FridgeResultsView, pushed by the tray */
.ph-results { padding-top: var(--a-safe); }
.ph-navtitle { position: relative; display: flex; justify-content: center; align-items: center; height: 52px; padding: 0 16px; }
.ph-navtitle .ph-round { position: absolute; left: 16px; }
.ph-navtitle b { font-weight: 600; font-size: 17px; }
.ph-cookwith { display: flex; flex-direction: column; gap: 4px; padding: 8px 0 4px; }
.ph-cookwith > b { padding: 0 16px; font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.ph-cookwith > small { padding: 0 16px; color: var(--a-text-2); font-size: 13px; }
.ph-chips.is-row { flex-wrap: nowrap; margin-top: 4px; padding: 0 16px; overflow: hidden; }
.ph-chips.is-row .ph-chip { flex: none; }
.ph-results-in { padding: 12px 16px 0; }
.ph-results-in .ph-grid { padding: 0; column-gap: 12px; row-gap: 16px; }
.ph-section { display: flex; align-items: baseline; gap: 8px; margin: 0 0 12px; }
.ph-section ~ .ph-section { margin-top: 24px; }
.ph-section b { font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.ph-section small { color: var(--a-text-2); font-size: 15px; font-weight: 500; }
.ph-card.is-match .ph-card-info { padding-top: 26px; }

/* ---- the recipe: RecipeDetailView ---- */
.ph-detail-scroll { position: relative; transition: transform 0.9s cubic-bezier(0.45, 0, 0.2, 1); }
/* scrolled, the nav buttons float over a cream bar, as the app's do */
.ph-detail::before { content: ""; position: absolute; z-index: 2; top: 0; left: 0; right: 0; height: 104px; background: var(--a-bg); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06); opacity: 0; transition: opacity 0.3s ease; }
.ph-detail.is-scrolled::before { opacity: 1; }
.ph-detail-photo { position: relative; height: 232px; margin-top: 103px; background: var(--a-surface-2); }
.ph-detail-photo > img { width: 100%; height: 100%; object-fit: cover; }
.ph-detail-body { padding: 16px 16px 160px; }
.ph-detail-title { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1.08; letter-spacing: -0.2px; }
.ph-proof { display: flex; gap: 8px; margin-top: 12px; }
.ph-proof span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 100px; background: var(--a-surface-2); font-size: 15px; font-weight: 500; }
.ph-proof svg { font-size: 13px; }
.ph-proof .is-star { color: var(--a-secondary); }
.ph-proof small { color: var(--a-text-2); font-size: 12px; }
.ph-desc { margin-top: 12px; color: var(--a-text-2); line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.ph-tagpills.is-detail { margin-top: 12px; }
.ph-tagpills.is-detail span { padding: 4px 12px; font-size: 12px; }
.ph-meta { display: flex; margin-top: 16px; padding: 14px 0; border-radius: 16px; background: var(--a-primary); color: #fff; }
.ph-meta span { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 13px; }
.ph-meta svg { margin-bottom: 4px; font-size: 22px; }
.ph-meta b { font-weight: 500; }
.ph-meta small { font-size: 12px; opacity: 0.7; }
.ph-nutri { display: flex; margin-top: 12px; padding: 12px 0; border-radius: 16px; background: var(--a-surface); }
.ph-nutri span { flex: 1; text-align: center; color: var(--a-text-2); font-size: 12px; transition: transform 0.3s var(--a-bouncy); }
.ph-nutri span.is-grow { transform: scale(1.12); }
.ph-nutri b { display: block; color: var(--a-text); font-size: 17px; font-weight: 700; }
/* AllergenWarningBanner */
.ph-banner { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; padding: 12px; border-radius: 12px; background: rgba(214, 140, 69, 0.1); }
.ph-banner-top { display: flex; gap: 12px; align-items: flex-start; }
.ph-banner-top .is-warn { font-size: 18px; color: var(--a-secondary); }
.ph-banner-top b { display: block; font-weight: 500; font-size: 15px; }
.ph-apill { display: inline-block; margin-top: 4px; padding: 3px 8px; border-radius: 24px; background: var(--a-secondary); color: #fff; font-size: 11px; font-weight: 600; }
.ph-banner-swap, .ph-banner-note { padding-left: 30px; }
.ph-swapbtn { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 24px; background: var(--a-secondary); color: #fff; font-size: 15px; font-weight: 600; transition: background-color 0.25s ease, transform 0.2s ease; }
.ph-swapbtn svg { font-size: 11px; }
.ph-swapbtn .is-on, .ph-ui.is-swapped .ph-swapbtn .is-off { display: none; }
.ph-ui.is-swapped .ph-swapbtn { background: var(--a-primary); }
.ph-ui.is-swapped .ph-swapbtn .is-on { display: block; }
.ph-banner-note { color: var(--a-text-2); font-size: 11px; font-weight: 500; }
/* the nutrition card's source line, and its caption once a swap is on */
.ph-source { display: flex; align-items: center; gap: 4px; margin: 8px 4px 0; color: var(--a-text-2); font-size: 11px; font-weight: 500; }
.ph-source svg { font-size: 10px; }
.ph-adjusted { max-height: 0; overflow: hidden; padding: 0 16px; color: var(--a-text-2); font-size: 12px; opacity: 0; transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.4s ease; }
.ph-ui.is-swapped .ph-adjusted { max-height: 30px; padding-top: 4px; opacity: 1; }
/* ProteinBoostCard */
.ph-boost { margin-top: 12px; padding: 16px; border-radius: 16px; background: var(--a-surface); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06); color: var(--a-secondary); transition: background-color 0.45s ease, color 0.45s ease, box-shadow 0.45s ease; }
.ph-boost-head { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 17px; }
.ph-boost-head .is-bolt { font-size: 13px; }
.ph-boost-head b { flex: 1; font-weight: 600; }
.ph-switch { position: relative; flex: none; width: 48px; height: 28px; margin-left: 6px; border-radius: 100px; background: rgba(214, 140, 69, 0.15); transition: background-color 0.3s ease; }
.ph-switch i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); transition: transform 0.3s var(--a-bouncy); }
.ph-boost-more { max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.45s ease, opacity 0.35s ease, margin 0.45s ease; }
.ph-boost-more p { font-weight: 500; }
.ph-boost-more small { display: block; margin-top: 4px; font-size: 12px; color: rgba(255, 255, 255, 0.7); }
.ph-ui.is-boosted .ph-boost { background: var(--a-accent); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.6), 0 0 14px rgba(255, 255, 255, 0.35); color: #fff; }
.ph-ui.is-boosted .ph-switch { background: rgba(255, 255, 255, 0.2); }
.ph-ui.is-boosted .ph-switch i { transform: translateX(20px); }
.ph-ui.is-boosted .ph-boost-more { max-height: 120px; margin-top: 8px; opacity: 1; }
/* the ingredients card */
.ph-ings { display: flex; flex-direction: column; margin-top: 24px; padding: 24px; border-radius: 16px; background: var(--a-surface); }
.ph-ings-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ph-ings-head b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.ph-ings-head small { color: var(--a-text-2); font-size: 12px; }
.ph-stepper { display: flex; align-items: center; gap: 4px; color: var(--a-primary); font-size: 13px; }
.ph-stepper b { color: var(--a-text); font-weight: 500; font-size: 15px; }
.ph-stepper small { color: var(--a-text-2); font-size: 12px; }
.ph-stepper svg { width: 36px; font-size: 13px; }
.ph-group { margin-top: 16px; color: var(--a-text-2); font-size: 15px; font-weight: 500; }
.ph-ings ul { margin: 4px 0 0; padding: 0; list-style: none; }
.ph-ings li { display: flex; gap: 12px; padding: 4px 0; transition: transform 0.3s var(--a-bouncy); }
.ph-ings li .is-tick { margin-top: 1px; font-size: 20px; color: var(--a-text-2); }
.ph-iline { font-feature-settings: "frac"; }
.ph-ings li small { display: block; color: var(--a-text-2); font-size: 12px; }
.ph-ipill { display: inline-flex; align-items: center; gap: 3px; margin-left: 2px; padding: 4px 8px; border-radius: 24px; font-size: 11px; font-weight: 500; vertical-align: 2px; white-space: nowrap; }
.ph-ipill svg { font-size: 9px; }
.ph-ipill.is-missing { background: rgba(214, 140, 69, 0.18); }
.ph-ipill.is-swapped, .ph-ipill.is-boosted { padding: 3px 8px; background: var(--a-primary); color: #fff; font-weight: 600; }
.ph-ings .is-now, .ph-ui.is-swapped [data-ph-swaprow] .is-was, .ph-ui.is-boosted [data-ph-boostrow] .is-was { display: none; }
.ph-ings li > span { flex: 1; }
.ph-ui.is-swapped [data-ph-swaprow] .is-now, .ph-ui.is-boosted [data-ph-boostrow] .is-now { display: inline; }
.ph-ings li.is-grow { transform: scale(1.04); }
.ph-addbtn { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: var(--a-primary); color: #fff; font-weight: 600; transition: transform 0.2s ease; }
.ph-addbtn .is-done, .ph-ui.is-added .ph-addbtn .is-cart { display: none; }
.ph-ui.is-added .ph-addbtn .is-done { display: block; }
.ph-viewlist { display: flex; justify-content: center; align-items: center; gap: 6px; max-height: 0; overflow: hidden; color: var(--a-primary); font-size: 15px; font-weight: 500; opacity: 0; transform: translateY(-6px); transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease, margin 0.3s ease; }
.ph-ui.is-added .ph-viewlist { max-height: 30px; margin-top: 8px; opacity: 1; transform: none; }
.ph-weekbtn { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 8px; padding: 12px 16px; border-radius: 12px; background: rgba(44, 110, 73, 0.08); box-shadow: inset 0 0 0 1px rgba(44, 110, 73, 0.3); color: var(--a-primary); font-weight: 600; }
/* the Instructions card: numbered steps, their timer chips */
.ph-instr { margin-top: 16px; padding: 24px; border-radius: 16px; background: var(--a-surface); }
.ph-instr-head b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.ph-instr-head small { color: var(--a-text-2); font-size: 12px; }
.ph-instr-step { display: flex; gap: 12px; margin-top: 16px; }
.ph-instr-step > i { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--a-primary); color: #fff; font-style: normal; font-weight: 600; }
.ph-instr-step b { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; padding: 8px 12px; border-radius: 24px; background: rgba(44, 110, 73, 0.1); color: var(--a-primary); font-size: 15px; font-weight: 500; }
.ph-instr-step b svg { font-size: 12px; }
.ph-instr-step em { font-style: normal; opacity: 0.75; }
.ph-instr-step > span { display: flex; flex-direction: column; align-items: flex-start; }
/* sheets: BatchSwapSummarySheet and PlanShopSheet, over a dimmed screen */
.ph-dim { position: absolute; z-index: 11; inset: 0; background: rgba(0, 0, 0, 0.35); opacity: 0; pointer-events: none; transition: opacity 0.5s ease; }
.ph-ui.is-sheet .ph-dim { opacity: 1; }
.ph-sheet { position: absolute; z-index: 12; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; padding: 18px 24px 34px; border-radius: 38px 38px 0 0; background: var(--a-bg); transform: translateY(105%); transition: transform 0.6s var(--a-push); }
.ph-grabber { align-self: center; width: 36px; height: 5px; margin: -8px 0 14px; border-radius: 3px; background: rgba(60, 60, 67, 0.3); }
.ph-ui.is-sheet-swap .ph-swapsheet, .ph-ui.is-sheet-plan .ph-plansheet { transform: none; }
.ph-sheet-title { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 22px; }
.ph-sheet-title svg { font-size: 24px; color: var(--a-primary); }
.ph-sheet-sub { margin-top: 4px; color: var(--a-text-2); font-size: 15px; font-weight: 500; }
.ph-swapitem { display: flex; align-items: flex-start; gap: 12px; margin-top: 24px; padding: 16px; border-radius: 16px; background: var(--a-surface); }
.ph-swapitem > span { flex: 1; font-feature-settings: "frac"; }
.ph-swapitem s { display: block; color: var(--a-text-2); }
.ph-swapitem b { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-weight: 500; }
.ph-swapitem b svg { font-size: 11px; color: var(--a-primary); }
.ph-swapitem > svg { margin-top: 2px; font-size: 12px; color: var(--a-text-2); }
.ph-sheet-btn { margin-top: 28px; padding: 12px 16px; border-radius: 12px; background: var(--a-primary); color: #fff; font-weight: 600; text-align: center; transition: transform 0.2s ease; }
.ph-nav { position: absolute; z-index: 3; top: 58px; left: 14px; right: 12px; display: flex; justify-content: space-between; align-items: center; }
.ph-nav > .ph-round { width: 40px; height: 40px; font-size: 18px; }
/* RecipeTopBar's glass capsule: Add to week, notes, favourite, share */
.ph-capsule { display: flex; padding: 0 4px; border-radius: 100px; background: rgba(255, 255, 255, 0.86); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08), inset 0 0 0 0.5px rgba(255, 255, 255, 0.7); }
.ph-capsule i { display: grid; place-items: center; width: 44px; height: 44px; font-size: 18px; }
/* the pinned Start Cooking, over the app's fade to cream */
.ph-detail::after { content: ""; position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 190px; background: linear-gradient(to bottom, color-mix(in srgb, var(--a-bg) 0%, transparent), color-mix(in srgb, var(--a-bg) 80%, transparent) 30%, var(--a-bg) 50%); pointer-events: none; }
.ph-start { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 92px; display: flex; justify-content: center; align-items: center; gap: 8px; padding: 14px 0; border-radius: 14px; background: var(--a-secondary); color: #fff; font-size: 18px; font-weight: 600; transition: transform 0.2s ease; }

/* ---- Cook Mode: the green sheet, one step at a time (played from TOF-747) ---- */
.ph-cook { position: absolute; z-index: 10; inset: 0; display: flex; flex-direction: column; padding: 62px 16px 34px; background: var(--a-primary); color: #fff; transform: translateY(100%); transition: transform 0.7s var(--a-push); }
.ph-ui.is-cooking .ph-cook { transform: none; }
.ph-ui.is-cooking .ph-statusbar { color: #fff; }
/* the title wraps between the close button and a slot as wide on the left (CookModeView) */
.ph-cook-head { position: relative; display: flex; justify-content: center; align-items: center; min-height: 36px; padding: 0 44px; text-align: center; font-size: 16px; font-weight: 700; }
.ph-cook-head > span:first-child { opacity: 0.7; }
.ph-cook-head .ph-round { position: absolute; right: 0; }
.ph-steps { position: relative; flex: 1; margin-top: 22px; }
.ph-step { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; text-align: center; opacity: 0; transform: translateX(40px); transition: opacity 0.45s ease, transform 0.6s var(--a-push); }
.ph-step.is-on { opacity: 1; transform: none; }
.ph-step.is-gone { opacity: 0; transform: translateX(-40px); }
.ph-step-n { padding: 6px 14px; border-radius: 100px; background: var(--a-secondary); font-size: 15px; font-weight: 600; }
.ph-step-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; padding: 0 16px; font-feature-settings: "frac"; }
.ph-step-chips span { padding: 6px 12px; border-radius: 24px; background: rgba(255, 255, 255, 0.15); font-size: 12px; font-weight: 600; }
.ph-step-text { margin: auto 0; font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1.22; }
.ph-timer { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 11px 18px; border-radius: 100px; background: rgba(255, 255, 255, 0.14); font-size: 16px; font-weight: 500; transition: transform 0.2s ease; }
.ph-timer svg { font-size: 19px; }
.ph-timer i { font-style: normal; opacity: 0.7; }
/* a started timer: the capsule becomes a ring that counts down; on the next step it rides along as a bar */
.ph-tcard { display: none; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 18px; padding: 14px 32px 12px; border-radius: 20px; background: #fff; color: var(--a-text); }
.ph-cook.is-timing .ph-step.is-started .ph-timer { display: none; }   /* only the started one becomes the ring */
.ph-cook.is-timing .is-started .ph-tcard { display: flex; animation: ph-pop 0.5s var(--spring, ease) both; }
@keyframes ph-pop { from { opacity: 0; transform: scale(0.85); } }
.ph-ring { position: relative; width: 94px; height: 94px; }
.ph-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); fill: none; stroke-width: 6; }
.ph-ring circle { stroke: var(--a-surface-2); }
.ph-ring .ph-ring-on { stroke: var(--a-primary); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear; }
.ph-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 23px; font-variant-numeric: tabular-nums; }
.ph-tcard small { color: var(--a-text-2); font-size: 13px; }
.ph-tbar { display: flex; align-items: center; gap: 10px; margin: 0 4px 14px; padding: 10px 14px; border-radius: 14px; background: #fff; color: var(--a-text); font-size: 15px; opacity: 0; transform: translateY(14px); transition: opacity 0.3s ease, transform 0.5s var(--a-push); }
.ph-cook.is-timing.is-later .ph-tbar { opacity: 1; transform: none; }
.ph-tbar b { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--a-primary); color: #fff; font-size: 13px; }
.ph-tbar span { flex: 1; }
.ph-tbar i { font-style: normal; font-weight: 700; color: var(--a-primary); font-variant-numeric: tabular-nums; }
.ph-dots { display: flex; justify-content: center; gap: 7px; margin-bottom: 16px; }
.ph-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); transition: background-color 0.3s ease; }
.ph-dots i.is-on { background: #fff; }
/* past 12 screens the app draws a thin bar instead of dots */
.ph-progress { height: 4px; margin: 0 32px 16px; border-radius: 2px; background: rgba(255, 255, 255, 0.3); overflow: hidden; }
.ph-progress i { display: block; height: 100%; width: calc(var(--at) * 100%); border-radius: 2px; background: #fff; transition: width 0.4s ease; }
.ph-cook-nav { display: flex; gap: 12px; }
.ph-cook-nav span { flex: 1; display: flex; justify-content: center; align-items: center; gap: 6px; padding: 13px 0; border-radius: 12px; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); font-size: 17px; font-weight: 600; transition: transform 0.2s ease; }
.ph-cook-nav .is-next { background: #fff; color: var(--a-primary); box-shadow: none; }
/* the end of cooking: "Time to eat!", on the same green, sliding in from the right */
.ph-eat { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 150px 16px 34px; background: var(--a-accent); text-align: center; transform: translateX(100%); opacity: 0; transition: transform 0.6s var(--a-push), opacity 0.45s ease; }
.ph-cook.is-eat .ph-eat { transform: none; opacity: 1; }
.ph-eat-title { font-family: var(--font-display); font-weight: 700; font-size: 28px; }
.ph-eat-recipe { font-size: 16px; color: rgba(255, 255, 255, 0.7); }
.ph-eat-ask { margin-top: 32px; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, 0.7); }
.ph-eat-ask .is-on, .ph-cook.is-saved .ph-eat-ask .is-off { display: none; }
.ph-cook.is-saved .ph-eat-ask .is-on { display: inline; }
.ph-eat-heart { font-size: 52px; color: rgba(255, 255, 255, 0.4); transform: scale(0.9); transition: transform 0.3s var(--a-bouncy), color 0.2s ease; }
.ph-eat-heart .is-on, .ph-cook.is-saved .ph-eat-heart .is-off { display: none; }
.ph-cook.is-saved .ph-eat-heart { color: var(--a-secondary); transform: scale(1); }
.ph-cook.is-saved .ph-eat-heart .is-on { display: block; }
.ph-eat-stars { display: flex; gap: 12px; font-size: 28px; color: rgba(255, 255, 255, 0.3); }
.ph-eat-done { width: 100%; margin-top: auto; padding: 13px 0; border-radius: 12px; background: #fff; color: var(--a-primary); font-weight: 600; }
/* EmojiConfettiView: three bursts, then they fall */
.ph-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ph-confetti i { position: absolute; font-style: normal; opacity: 0; }
.ph-cook.is-eat .ph-confetti i { animation: ph-burst 2.4s cubic-bezier(0.2, 0.6, 0.4, 1) var(--d) both; }
@keyframes ph-burst { 0% { opacity: 0; transform: none; scale: 0.4; } 8% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)); scale: 1; } }

@media (prefers-reduced-motion: reduce) {
    .ph *, .ph *::before, .ph *::after { transition-duration: 0.01ms !important; animation: none !important; }
    .ph-finger { display: none; }
}

/* ---- a ticked ingredient (CheckableIngredientRow): the check fills, the line
   is struck through in grey, the note goes ---- */
.ph-ings li .is-ticked { display: none; margin-top: 1px; font-size: 20px; color: var(--a-primary); }
.ph-ings li.is-checked .is-tick { display: none; }
.ph-ings li.is-checked .is-ticked { display: block; }
.ph-ings li.is-checked .ph-iline { color: var(--a-text-2); text-decoration: line-through; }
.ph-ings li.is-checked small { display: none; }

/* ---- the Veganuary page's phone (TOF-753) ---- */
/* FeaturedCollectionCard, second in Nika's pick carousel: the tile's green, the
   collection's art off the bottom-right corner, its emoji and "Collection" */
.ph-pick.is-coll { background: var(--a-primary); }
.ph-pick.is-coll::after { display: none; }
.ph-pick > .ph-coll-art { position: absolute; right: 0; bottom: 0; width: 200px; height: 200px; object-fit: contain; }
.ph-coll-badge { position: absolute; z-index: 1; top: 16px; left: 16px; display: flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 100px; background: rgba(255, 255, 255, 0.94); box-shadow: inset 0 0 0 1px rgba(99, 110, 114, 0.3); color: var(--a-text); font-size: 12px; font-weight: 600; }
.ph-coll-badge i { font-style: normal; font-size: 15px; line-height: 1; }
.ph-pick.is-coll .ph-pick-text { right: 160px; }
/* a landing page may make the carousel bigger than the app's, to be seen at the phone's size */
.ph-picks.is-big .ph-pick { width: 345px; height: 250px; }
.ph-picks.is-big .ph-pick > .ph-coll-art { width: 220px; height: 220px; }
.ph-picks.is-big .ph-pick.is-coll .ph-pick-text { right: 176px; }   /* clear of the art, as the app's text is (0.8 of its side) */
.ph-picks.is-big .ph-pick-text b { font-size: 22px; }
.ph-pick.is-coll .ph-pick-text small { display: block; margin-top: 4px; color: rgba(255, 255, 255, 0.85); font-size: 12px; font-weight: 400; }
/* the collection's page (RecipeListPage): under the bar, the art band (the
   tile's green, the title, the art bigger than the band and clipped by it),
   then DailyCollectionList */
.ph-daily-scroll { position: relative; }
.ph-band { position: relative; height: 150px; margin-top: 103px; overflow: hidden; background: var(--a-primary); color: #fff; }
.ph-band img { position: absolute; right: 0; bottom: 0; width: 177px; height: 177px; object-fit: contain; }
.ph-band p { position: absolute; top: 0; bottom: 0; left: 16px; right: 135px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.ph-band b { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1.1; }
.ph-band small { color: rgba(255, 255, 255, 0.85); font-size: 12px; }
.ph-days { display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.ph-daycount { margin-bottom: 4px; }
.ph-daycount b { display: block; color: var(--a-primary); font-size: 12px; font-weight: 600; }
.ph-daycount span { display: flex; gap: 2px; margin-top: 4px; }
.ph-daycount i { flex: 1; height: 6px; border-radius: 3px; background: rgba(44, 110, 73, 0.15); }
.ph-daycount i.is-on { background: var(--a-primary); }
.ph-day { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 16px; background: var(--a-surface); }
.ph-day.is-today { box-shadow: inset 0 0 0 2px var(--a-primary); }
.ph-day-thumb { position: relative; flex: none; width: 64px; height: 64px; }
.ph-day-thumb > img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--a-surface-2); }
.ph-opened { position: absolute; right: -5px; bottom: -5px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--a-primary); color: #fff; font-size: 11px; box-shadow: 0 0 0 2px var(--a-surface); }
/* CoveredDish: a cloche on the day's number; today's lid lifts off its photo */
.ph-dish { position: absolute; inset: 0; border-radius: 12px; background: var(--a-surface-2); }
.ph-dish svg { position: absolute; left: 9px; bottom: 12px; width: 46px; height: 34px; fill: rgba(255, 255, 255, 0.92); }
.ph-dish b { position: absolute; left: 9px; bottom: 6px; width: 46px; height: 34px; display: flex; align-items: center; justify-content: center; color: var(--a-primary); font-size: 17px; font-weight: 600; }
.ph-day.is-today .ph-dish { transition: transform 0.6s var(--a-bouncy), opacity 0.5s ease; }
.ph-day.is-lifted .ph-dish { transform: translateY(-26px); opacity: 0; }
.ph-day-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ph-day-text small { color: var(--a-text-2); font-size: 11px; }
.ph-day.is-today .ph-day-text small { color: var(--a-primary); font-weight: 700; }
.ph-day-text b { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 17px; font-weight: 600; line-height: 22px; }
.ph-day-text b.is-lid { color: var(--a-primary); }
.ph-day-text b.is-open, .ph-day.is-lifted b.is-lid { display: none; }
.ph-day.is-lifted b.is-open { display: -webkit-box; }
.ph-day-text > span { color: var(--a-text-2); font-size: 15px; font-weight: 500; }
.ph-plus { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 100px; background: var(--a-secondary); color: #fff; font-size: 11px; font-weight: 500; }
.ph-plus svg { font-size: 10px; }

/* ---- a page that plays the phone as a loop: it blinks back to the start,
   and puts everything back without animating it ---- */
.ph-screen::after { content: ""; position: absolute; z-index: 40; inset: 0; background: var(--a-bg); opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.ph.is-blink .ph-screen::after { opacity: 1; }
.ph.is-resetting .ph-ui, .ph.is-resetting .ph-ui * { transition: none !important; }

/* ---- Plán (TOF-749/751), the picked week (TOF-796/800) ---- */
.ph-plan { padding-top: var(--a-safe); }
.ph-plan-offer, .ph-plan-week { position: absolute; inset: var(--a-safe) 0 0; padding: 8px 16px 0; transition: opacity 0.35s ease, transform 0.5s var(--a-push); }
.ph-plan-week, .ph-plan.is-planned .ph-plan-offer { visibility: hidden; opacity: 0; transition: opacity 0.35s ease, visibility 0s linear 0.35s, transform 0.5s var(--a-push); }
.ph-plan-week { display: flex; flex-direction: column; padding-top: 0; transform: translateY(16px); }
.ph-plan.is-planned .ph-plan-week { visibility: visible; opacity: 1; transform: none; transition: opacity 0.35s ease 0.1s, transform 0.5s var(--a-push) 0.1s; }
/* YourWeekCard */
.ph-weekcard { overflow: hidden; border-radius: 26px; background: var(--a-surface); box-shadow: 0 8px 12px rgba(0, 0, 0, 0.08); }
.ph-weekcard-head { padding: 18px 18px 16px; background: var(--a-accent); color: #fff; }
.ph-weekcard-head p { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ph-weekcard-head b { font-family: var(--font-display); font-weight: 600; font-size: 22px; }
.ph-weekcard-head p span { display: flex; align-items: center; gap: 4px; color: #FFC9B9; font-size: 13px; font-weight: 600; }
.ph-weekcard-head p span svg { font-size: 15px; }
.ph-weekcard-head small { display: block; margin-top: 4px; color: rgba(255, 255, 255, 0.9); font-size: 15px; }
.ph-weekcard-body { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.ph-weekdays { display: flex; gap: 8px; }
.ph-weekdays > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ph-weekdays small { color: var(--a-secondary); font-size: 13px; font-weight: 600; white-space: nowrap; }
.ph-weekdays i { position: relative; aspect-ratio: 1; border-radius: 12px; background: var(--a-surface-2); }
.ph-weekdays i img { width: 100%; height: 100%; border-radius: 12px; object-fit: cover; }
.ph-weekdays em { position: absolute; right: -4px; bottom: -4px; padding: 2px 6px; border-radius: 100px; background: var(--a-text); box-shadow: 0 0 0 2px #fff; color: #fff; font-style: normal; font-size: 11px; font-weight: 700; }
.ph-weekmeta { display: flex; align-items: center; gap: 10px; min-height: 32px; color: var(--a-text-2); font-size: 13px; }
.ph-weekmeta b { display: flex; align-items: center; gap: 2px; margin-left: auto; color: var(--a-primary); font-weight: 600; }
.ph-weekmeta b svg { font-size: 9px; }
.ph-btn { display: grid; place-items: center; height: 50px; border-radius: 12px; background: var(--a-primary); color: #fff; font-weight: 600; transition: transform 0.2s ease; }
/* PlanWeeksDoor, beside the words */
.ph-door { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 10px; border-radius: 18px; background: var(--a-surface); }
.ph-door-photos { flex: none; display: flex; gap: 3px; width: 126px; height: 52px; overflow: hidden; border-radius: 10px; }
.ph-door-photos img { flex: 1; min-width: 0; height: 100%; object-fit: cover; }
.ph-door > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.ph-door b { font-size: 15px; font-weight: 600; }
.ph-door small { color: var(--a-text-2); font-size: 12px; }
.ph-door > svg { font-size: 12px; color: var(--a-text-2); }
.ph-ownlink { display: grid; place-items: center; min-height: 44px; margin-top: 4px; color: var(--a-primary); font-size: 15px; font-weight: 600; }
/* the day strip, a dot per meal; today on green */
.ph-strip { flex: 1; display: flex; gap: 2px; margin-top: 4px; padding: 4px; border-radius: 16px; background: var(--a-surface); }
.ph-strip span { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 56px; padding-top: 6px; border-radius: 12px; }
.ph-strip small { color: var(--a-text-2); font-size: 11px; font-weight: 600; }
.ph-strip b { font-weight: 600; font-size: 17px; }
.ph-dots-plan { display: flex; gap: 2px; height: 5px; }
.ph-dots-plan em { width: 5px; height: 5px; border-radius: 50%; background: var(--a-primary); }
.ph-strip .is-on { background: var(--a-primary); color: #fff; }
.ph-strip .is-on small { color: #FFC9B9; }
.ph-strip .is-on em { background: #FFC9B9; }
/* an empty plan's dots are still to come */
.ph-plan-offer .ph-dots-plan em { display: none; }
.ph-emptyday { display: flex; align-items: baseline; gap: 6px; min-height: 52px; margin-top: 10px; padding: 16px; border-radius: 16px; box-shadow: inset 0 0 0 1.5px rgba(99, 110, 114, 0.35); }
.ph-emptyday b { font-weight: 600; }
.ph-emptyday small { color: var(--a-text-2); font-size: 13px; font-weight: 500; }
.ph-emptyday span { margin-left: auto; color: var(--a-primary); font-size: 13px; font-weight: 600; }
/* the planned week: the strip with its cart tile, then a card per day */
.ph-striprow { flex: none; display: flex; gap: 8px; padding: 10px 0; }
/* the days scroll in their own box under the pinned strip, on to the weekend;
   positioned so layoutY's offsetParent walk passes through it */
.ph-plandays-view { flex: 1; min-height: 0; overflow: hidden; }
.ph-plandays { position: relative; transition: transform 0.6s var(--a-push); }
.ph-striprow .ph-strip { margin-top: 0; }
.ph-carttile { position: relative; flex: none; display: grid; place-items: center; width: 60px; border-radius: 16px; background: var(--a-surface); color: var(--a-primary); font-size: 22px; transition: transform 0.2s ease; }
.ph-carttile i { position: absolute; top: -8px; right: -9px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--a-primary); box-shadow: 0 0 0 2px #fff; color: #fff; font-size: 9px; }
.ph-planday { margin-top: 18px; }
.ph-dayhead { display: flex; align-items: baseline; gap: 6px; padding: 0 2px; }
.ph-dayhead b { font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.ph-dayhead small { color: var(--a-text-2); font-size: 13px; font-weight: 500; }
.ph-dayhead span { display: flex; gap: 10px; margin-left: auto; color: var(--a-text-2); font-size: 13px; }
.ph-dayhead em { color: var(--a-primary); font-style: normal; font-weight: 600; }
.ph-plancard { margin-top: 8px; padding: 4px 12px; border-radius: 16px; background: var(--a-surface); }
.ph-meal, .ph-shoprow { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.ph-meal + .ph-meal, .ph-shoprow + .ph-shoprow, .ph-meal + .ph-addmeal { border-top: 1px solid rgba(45, 52, 54, 0.08); }
.ph-meal > img { flex: none; width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--a-surface-2); }
.ph-meal > span, .ph-shoprow > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ph-meal b, .ph-shoprow b { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 15px; font-weight: 600; line-height: 1.25; }
.ph-meal small { display: flex; align-items: center; gap: 6px; color: var(--a-text-2); font-size: 12px; }
.ph-meal small em { display: flex; align-items: center; gap: 3px; height: 22px; padding: 0 8px; border-radius: 100px; background: var(--a-bg); color: var(--a-text); font-style: normal; font-weight: 600; }
.ph-meal small em svg { font-size: 8px; }
.ph-meal > i { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--a-bg); color: var(--a-text-2); font-size: 11px; }
.ph-addmeal { display: flex; align-items: center; gap: 6px; min-height: 44px; color: var(--a-primary); font-size: 13px; font-weight: 600; }
.ph-addmeal svg { font-size: 12px; }
/* PlanShopSheet */
.ph-plansheet { top: 70px; padding-top: 18px; overflow: hidden; }
/* the week runs on under the button, as the sheet scrolls; nothing shrinks to fit */
.ph-plansheet > * { flex-shrink: 0; }
.ph-sheet-title.is-plain { font-size: 22px; }
.ph-plansheet .ph-sheet-sub { font-weight: 400; }
.ph-plansheet .ph-dayhead { margin-top: 18px; }
.ph-shoprow { padding: 6px 0; }
.ph-shoprow > img { flex: none; width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.ph-shoprow small { color: var(--a-text-2); font-size: 12px; }
.ph-shoprow > i { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(44, 110, 73, 0.14); color: var(--a-primary); font-size: 11px; }
.ph-plansheet .ph-sheet-btn { position: absolute; left: 16px; right: 16px; bottom: 34px; display: flex; justify-content: center; align-items: center; gap: 8px; margin: 0; }
.ph-plansheet .ph-sheet-btn svg { font-size: 17px; }
/* another tab: the Kitchen's pushed screens stay in its stack, out of sight (as iOS keeps them) */
.ph-ui.is-away .ph-push { visibility: hidden; opacity: 0; transition: opacity 0.3s ease, visibility 0s linear 0.3s, transform 0.6s var(--a-push); }
.ph-tray.is-grow { transform: scale(1.03); }
