/* site-redesign.css — premium B/W design system, scoped to body.v2.
   Loaded after styles.css to override page-level styles. Consumes tokens
   from tokens.css. Replaces tips-redesign.css. */

body.v2 {
    background: var(--bg-canvas);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-feature-settings: "cv11", "ss01", "ss02";
    letter-spacing: -0.005em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ───────────────  A11y: skip-to-content link  ─────────────── */
/* Visually hidden until focused, then lands top-left for keyboard users. */
.skip-link {
    position: absolute;
    top: -100px;
    left: 8px;
    z-index: 1000;
    background: var(--text-primary, #111);
    color: var(--bg-canvas, #fff);
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: top 120ms ease;
}
.skip-link:focus,
.skip-link:focus-visible {
    top: 12px;
    outline: 2px solid var(--text-primary, #111);
    outline-offset: 2px;
}

/* Marker class on subpage H1s. Visual size comes from the existing
   .card h1 / .card.is-hero > h1 / .schedule-header h1 rules below. */

/* ───────────────  Top bar  ─────────────── */
body.v2 .topbar {
    background: var(--bg-canvas);
    border-bottom: 1px solid var(--border-subtle);
    padding: var(--s-4) var(--s-5);
    padding-top: max(var(--s-4), env(safe-area-inset-top));
    gap: var(--s-4);
}
body.v2 .topbar-nav { display: none; }

/* ───────────────  Hamburger button + slide-in drawer  ─────────────── */
body.v2 .nav-burger {
    width: 40px;
    height: 40px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: 0;
    cursor: pointer;
    border-radius: var(--r-full);
    flex-shrink: 0;
    transition: background-color .15s ease;
}
body.v2 .nav-burger:hover { background: var(--action-secondary); }
body.v2 .nav-burger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
}

body.v2 .nav-drawer {
    position: fixed;
    inset: 0;
    z-index: 90;
}
body.v2 .nav-drawer[hidden] { display: none; }
body.v2 .nav-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity .25s ease;
}
body.v2 .nav-drawer.is-open .nav-drawer-backdrop { opacity: 1; }
body.v2 .nav-drawer-panel {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: min(320px, 84vw);
    background: var(--bg-canvas);
    box-shadow: var(--shadow-xl);
    padding: max(var(--s-9), env(safe-area-inset-top)) var(--s-5) var(--s-7);
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
    transform: translateX(-100%);
    transition: transform .25s ease;
}
body.v2 .nav-drawer.is-open .nav-drawer-panel { transform: translateX(0); }
body.v2 .nav-drawer-close {
    position: absolute;
    top: max(var(--s-4), env(safe-area-inset-top));
    right: var(--s-4);
    width: 36px; height: 36px;
    background: transparent;
    border: 0;
    border-radius: var(--r-full);
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 22px;
    line-height: 1;
}
body.v2 .nav-drawer-close:hover { background: var(--action-secondary); color: var(--text-primary); }
body.v2 .nav-drawer-heading {
    font: var(--t-overline);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 var(--s-5) var(--s-3);
}
body.v2 .nav-drawer-panel a {
    color: var(--text-primary);
    text-decoration: none;
    padding: var(--s-4) var(--s-5);
    border-radius: var(--r-full);
    font: var(--t-body-lg);
    font-weight: 500;
    transition: background-color .15s ease;
    display: block;
}
body.v2 .nav-drawer-panel a:hover { background: var(--action-secondary); }
body.v2 .nav-drawer-panel a.is-active {
    background: var(--c-gray-900);
    color: var(--text-inverse);
}
body.v2 .brand {
    gap: var(--s-3);
    color: var(--text-primary);
}
body.v2 .brand-mark { color: var(--text-primary); }
body.v2 .brand-name {
    font: var(--t-label);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}
body.v2 .topbar-link {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--r-full);
    padding: var(--s-3) var(--s-4);
    min-height: 36px;
    transition: background-color .15s ease, color .15s ease;
}
body.v2 .topbar-link:hover {
    background: var(--action-secondary);
    color: var(--text-primary);
}
body.v2 .topbar-link.is-active {
    background: var(--action-secondary);
    color: var(--text-primary);
}
body.v2 .lang-switch {
    background: var(--bg-muted);
    padding: 3px;
    border-radius: var(--r-full);
}
body.v2 .lang-btn {
    color: var(--text-tertiary);
    font-weight: 500;
    font-size: 13px;
    border-radius: var(--r-full);
}
body.v2 .lang-btn.is-active {
    background: var(--bg-canvas);
    color: var(--text-primary);
    box-shadow: var(--shadow-xs);
}

/* ───────────────  Container  ─────────────── */
body.v2 .container {
    max-width: 760px;
    padding: var(--s-9) var(--s-5) var(--s-13);
    padding-bottom: calc(var(--s-13) + env(safe-area-inset-bottom));
    gap: var(--s-7);
}

/* ───────────────  Card (visual rounded box, used on index)  ─────────────── */
body.v2 .card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-3xl);
    box-shadow: var(--shadow-xs);
    padding: var(--s-7);
}

body.v2 .card h1,
body.v2 .card h2 {
    font: var(--t-h2);
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin: 0 0 var(--s-4);
}
body.v2 .card > p {
    font: var(--t-body);
    color: var(--text-secondary);
    margin: 0 0 var(--s-4);
}
body.v2 .card > p:last-child { margin-bottom: 0; }
body.v2 .muted {
    color: var(--text-secondary);
    font-size: inherit;
}

/* Disclaimer = card with a soft tint */
body.v2 .card.disclaimer {
    background: var(--bg-muted);
}

/* ───────────────  Hero (tips & recepten)  ───────────────
   The wrapping <section class="card"> on tips/recepten acts as a hero,
   not a visual card. Pages opt in via .is-hero. */
body.v2 .container > .card.is-hero {
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
}
body.v2 .container > .card.is-hero > h1,
body.v2 .container > .card.is-hero > h2 {
    font: var(--t-h1);
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0 0 var(--s-4);
}
body.v2 .container > .card.is-hero > .muted {
    font: var(--t-body-lg);
    color: var(--text-secondary);
    max-width: 60ch;
    margin: 0 0 var(--s-9);
}

/* ───────────────  Phase tabs (chips)  ─────────────── */
body.v2 .phase-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--s-3);
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 0 var(--s-9);
    padding: 0 0 var(--s-2);
    -webkit-overflow-scrolling: touch;
}
body.v2 .phase-tabs::-webkit-scrollbar { display: none; }

body.v2 .phase-tab {
    flex-shrink: 0;
    padding: 10px var(--s-5);
    border: 1px solid var(--border-subtle);
    background: var(--bg-canvas);
    border-radius: var(--r-full);
    color: var(--text-secondary);
    font: var(--t-label);
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
    white-space: nowrap;
    min-height: 40px;
}
body.v2 .phase-tab:hover {
    border-color: var(--border-default);
    color: var(--text-primary);
}
body.v2 .phase-tab.is-active {
    background: var(--c-gray-900);
    color: var(--text-inverse);
    border-color: var(--c-gray-900);
}

/* ───────────────  Phase panel  ─────────────── */
body.v2 .phase-panel {
    display: flex;
    flex-direction: column;
    gap: var(--s-5);
}
body.v2 .phase-panel.hidden { display: none; }

body.v2 .phase-panel h3 {
    font: var(--t-h3);
    color: var(--text-primary);
    margin: 0 0 var(--s-4);
    letter-spacing: -0.01em;
}

body.v2 .phase-intro {
    font: var(--t-label);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 var(--s-3) var(--s-2);
}

body.v2 .phase-panel p {
    font: var(--t-body);
    color: var(--text-secondary);
    margin: 0 0 var(--s-4);
}
body.v2 .phase-panel p strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Lists with dot bullets and subtle dividers */
body.v2 .phase-panel ul,
body.v2 .phase-panel ol {
    margin: 0 0 var(--s-5);
    padding: 0;
    list-style: none;
}
body.v2 .phase-panel ul > li,
body.v2 .phase-panel ol > li {
    font: var(--t-body);
    color: var(--text-secondary);
    padding: var(--s-3) 0 var(--s-3) var(--s-7);
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
}
body.v2 .phase-panel ul > li:last-child,
body.v2 .phase-panel ol > li:last-child {
    border-bottom: 0;
}
body.v2 .phase-panel ul > li::before {
    content: "";
    position: absolute;
    left: var(--s-3);
    top: 18px;
    width: 4px;
    height: 4px;
    background: var(--text-tertiary);
    border-radius: 50%;
}
body.v2 .phase-panel ol { counter-reset: tip-list; }
body.v2 .phase-panel ol > li { counter-increment: tip-list; }
body.v2 .phase-panel ol > li::before {
    content: counter(tip-list);
    position: absolute;
    left: 0;
    top: var(--s-3);
    width: var(--s-7);
    font: var(--t-label);
    color: var(--text-tertiary);
    font-variant-numeric: tabular-nums;
    text-align: left;
}
body.v2 .phase-panel ul ul,
body.v2 .phase-panel ul ol,
body.v2 .phase-panel ol ul,
body.v2 .phase-panel ol ol {
    margin: var(--s-3) 0 0;
}
body.v2 .phase-panel ul ul > li,
body.v2 .phase-panel ul ol > li,
body.v2 .phase-panel ol ul > li,
body.v2 .phase-panel ol ol > li {
    border-bottom: 0;
    padding: var(--s-1) 0 var(--s-1) var(--s-7);
    font: var(--t-body-sm);
    color: var(--text-tertiary);
}
body.v2 .phase-panel ul ul > li::before {
    top: 12px;
    width: 3px;
    height: 3px;
    background: var(--text-disabled);
}

/* ───────────────  Tip card (also reused for recipes)  ─────────────── */
body.v2 .tip-card {
    display: grid;
    /* minmax(0, ...) lets the body cell shrink so long titles / ingredient
       lines wrap instead of pushing the media off the card's right edge. */
    grid-template-columns: minmax(0, 1fr) 140px;
    gap: var(--s-7);
    padding: var(--s-7);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-3xl);
    background: var(--bg-canvas);
    box-shadow: var(--shadow-xs);
    align-items: start;
    overflow: hidden;
}
body.v2 .tip-body {
    min-width: 0;
    overflow-wrap: anywhere;
}
body.v2 .tip-body > :last-child { margin-bottom: 0; }

body.v2 .tip-media {
    aspect-ratio: 1 / 1;
    border-radius: var(--r-2xl);
    background: var(--bg-raised);
    color: var(--c-gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    align-self: start;
}
body.v2 .tip-media svg {
    width: 56%;
    height: 56%;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
body.v2 .tip-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

/* ───────────────  Recipe filters + search  ───────────────
   Tabs adopt the dagschema palette: phase tabs map to phase-progression
   colors (blue→purple→green→red), meal tabs to the same accents used
   by the timeline's meal cards. */
body.v2 .recipes-phase-tabs { margin-bottom: var(--s-3); }
body.v2 .recipes-meal-tabs { margin-bottom: var(--s-7); }

body.v2 .recipes-phase-tabs .phase-tab[data-phase="1"].is-active {
    background: #2563eb; border-color: #2563eb; color: #fff;
}
body.v2 .recipes-phase-tabs .phase-tab[data-phase="2"].is-active {
    background: #7c3aed; border-color: #7c3aed; color: #fff;
}
body.v2 .recipes-phase-tabs .phase-tab[data-phase="3"].is-active {
    background: #22a06b; border-color: #22a06b; color: #fff;
}
body.v2 .recipes-phase-tabs .phase-tab[data-phase="4"].is-active {
    background: #c0392b; border-color: #c0392b; color: #fff;
}

body.v2 .recipes-meal-tabs .phase-tab[data-meal="ontbijt"].is-active {
    background: #b86b2a; border-color: #b86b2a; color: #fff;
}
body.v2 .recipes-meal-tabs .phase-tab[data-meal="lunch"].is-active {
    background: #22a06b; border-color: #22a06b; color: #fff;
}
body.v2 .recipes-meal-tabs .phase-tab[data-meal="avondeten"].is-active {
    background: #c0392b; border-color: #c0392b; color: #fff;
}
body.v2 .recipes-meal-tabs .phase-tab[data-meal="tussendoor"].is-active {
    background: #d4a017; border-color: #d4a017; color: #fff;
}

body.v2 .recipe-search {
    position: relative;
    margin: 0 0 var(--s-7);
}
body.v2 .recipe-search input {
    width: 100%;
    padding: var(--s-4) var(--s-5) var(--s-4) calc(var(--s-7) + var(--s-7));
    border: 1px solid var(--border-default);
    border-radius: var(--r-full);
    font: var(--t-body);
    background: var(--bg-canvas);
    color: var(--text-primary);
    transition: border-color .15s ease, box-shadow .15s ease;
    min-height: 48px;
}
body.v2 .recipe-search input::-webkit-search-cancel-button {
    appearance: none;
    width: 16px;
    height: 16px;
    margin-left: 6px;
    background: transparent;
    border-radius: 50%;
    color: var(--text-tertiary);
    cursor: pointer;
}
body.v2 .recipe-search input:focus {
    outline: none;
    border-color: var(--c-gray-900);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}
body.v2 .recipe-search-icon {
    position: absolute;
    left: var(--s-5);
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-tertiary);
    pointer-events: none;
    display: inline-flex;
}
body.v2 .recipe-search-icon svg { width: 100%; height: 100%; }

body.v2 .recipes-empty {
    text-align: center;
    padding: var(--s-9) var(--s-5);
}
body.v2 .recipes-back {
    margin-top: var(--s-9);
    text-align: center;
}
body.v2 .recipes-back a {
    color: var(--text-secondary);
    text-decoration: none;
    font: var(--t-label);
    border: 1px solid var(--border-default);
    border-radius: var(--r-full);
    padding: var(--s-3) var(--s-5);
    display: inline-flex;
}
body.v2 .recipes-back a:hover { color: var(--text-primary); background: var(--action-secondary); }

/* ───────────────  Shopping-list button on each recipe card  ─────────────── */
body.v2 .recipe-card-actions {
    margin-top: var(--s-5);
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-3);
    justify-content: flex-start;
}
body.v2 .btn-shopping {
    display: inline-flex;
    align-items: center;
    gap: var(--s-3);
    padding: var(--s-3) var(--s-5);
    border: 1px solid var(--border-default);
    border-radius: var(--r-full);
    background: var(--bg-canvas);
    color: var(--text-primary);
    font: var(--t-label);
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
body.v2 .btn-shopping:hover {
    background: var(--action-secondary);
    border-color: var(--text-primary);
}
body.v2 .btn-shopping-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bg-raised);
    font-weight: 600;
    line-height: 1;
    color: var(--text-primary);
    flex-shrink: 0;
}
body.v2 .btn-shopping-icon svg {
    width: 14px;
    height: 14px;
    display: block;
}
body.v2 .btn-shopping.is-added {
    background: var(--c-gray-900);
    color: var(--text-inverse);
    border-color: var(--c-gray-900);
}
body.v2 .btn-shopping.is-added:hover {
    background: var(--c-gray-700);
    border-color: var(--c-gray-700);
}
body.v2 .btn-shopping.is-added .btn-shopping-icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-inverse);
}

/* ───────────────  Boodschappenlijst page  ─────────────── */
body.v2 .shopping-section-title {
    font: var(--t-h4);
    color: var(--text-primary);
    margin: var(--s-9) 0 var(--s-4);
    letter-spacing: -0.01em;
}
body.v2 .shopping-empty {
    background: var(--bg-muted);
    border-radius: var(--r-2xl);
    padding: var(--s-7);
    text-align: center;
    margin: var(--s-7) 0;
}
body.v2 .shopping-empty a { color: var(--text-primary); }

body.v2 .shopping-recipes,
body.v2 .shopping-totals {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-2xl);
    background: var(--bg-canvas);
    overflow: hidden;
}
body.v2 .shopping-recipe {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-5);
    padding: var(--s-5) var(--s-7);
    border-bottom: 1px solid var(--border-subtle);
}
body.v2 .shopping-recipe:last-child { border-bottom: 0; }
body.v2 .shopping-recipe-info { min-width: 0; }
body.v2 .shopping-recipe-title {
    margin: 0;
    font: var(--t-body);
    font-weight: 600;
    color: var(--text-primary);
}
body.v2 .shopping-recipe-meta {
    margin: 2px 0 0;
    font: var(--t-caption);
}
body.v2 .shopping-recipe-qty {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    flex-shrink: 0;
}
body.v2 .qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-default);
    border-radius: var(--r-full);
    background: var(--bg-canvas);
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
}
body.v2 .qty-btn:hover { background: var(--action-secondary); }
body.v2 .qty-value {
    min-width: 36px;
    text-align: center;
    font: var(--t-label);
    font-weight: 600;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}
body.v2 .qty-remove {
    width: 32px;
    height: 32px;
    background: transparent;
    border: 0;
    color: var(--text-tertiary);
    cursor: pointer;
    font-size: 18px;
    border-radius: var(--r-full);
    margin-left: var(--s-2);
}
body.v2 .qty-remove:hover { background: var(--action-secondary); color: var(--text-primary); }

body.v2 .shopping-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--s-5);
    padding: var(--s-4) var(--s-7);
    border-bottom: 1px solid var(--border-subtle);
}
body.v2 .shopping-total:last-child { border-bottom: 0; }
body.v2 .shopping-total-amount {
    font: var(--t-body);
    color: var(--text-primary);
    font-weight: 600;
}
body.v2 .shopping-total-from {
    font: var(--t-caption);
    text-align: right;
}

body.v2 .shopping-actions {
    display: flex;
    gap: var(--s-3);
    margin-top: var(--s-7);
    flex-wrap: wrap;
}

/* ───────────────  Recipe card — dagschema color coding  ───────────────
   Each recipe is tinted per meal slot (ontbijt / lunch / avondeten /
   tussendoor) using the same accent palette as the timeline events. The
   phase tag carries a complementary accent. */
body.v2 .recipe-card {
    --rcp-meal:       var(--c-gray-700);
    --rcp-meal-soft:  var(--bg-raised);
    --rcp-phase:      var(--c-gray-700);
    --rcp-phase-soft: var(--bg-raised);
    border: 2px solid var(--border-default);
    position: relative;
}

/* ───────────── Favorite heart (top-right of every recipe card) ───────────── */
body.v2 .btn-favorite {
    position: absolute;
    top: var(--s-4);
    right: var(--s-4);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    background: var(--bg-canvas);
    color: var(--text-tertiary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: color .15s ease, background-color .15s ease, border-color .15s ease, transform .15s ease;
    z-index: 2;
    box-shadow: var(--shadow-xs);
}
body.v2 .btn-favorite:hover {
    color: #c0392b;
    border-color: #c0392b;
    transform: scale(1.05);
}
body.v2 .btn-favorite-icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
}
body.v2 .btn-favorite.is-active {
    color: #fff;
    background: #c0392b;
    border-color: #c0392b;
}
body.v2 .btn-favorite.is-active .btn-favorite-icon { fill: currentColor; }
body.v2 .btn-favorite:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
}

/* Detail-page favorite heart: same circular pill, just a bit larger so it
   reads at hero-image scale. .recipe-hero-media is already position:relative
   so absolute positioning anchors to the photo. */
body.v2 .btn-favorite-detail {
    top: var(--s-4);
    right: var(--s-4);
    width: 44px;
    height: 44px;
    box-shadow: var(--shadow-sm);
}
body.v2 .btn-favorite-detail .btn-favorite-icon {
    width: 22px;
    height: 22px;
}
body.v2 .recipe-card[data-meal="ontbijt"]    { --rcp-meal: #b86b2a; --rcp-meal-soft: #fbeede; }
body.v2 .recipe-card[data-meal="lunch"]      { --rcp-meal: #22a06b; --rcp-meal-soft: #e6f7ef; }
body.v2 .recipe-card[data-meal="avondeten"]  { --rcp-meal: #c0392b; --rcp-meal-soft: #fbe9e6; }
body.v2 .recipe-card[data-meal="tussendoor"] { --rcp-meal: #d4a017; --rcp-meal-soft: #fdf5e1; }
body.v2 .recipe-card[data-phase="1"] { --rcp-phase: #2563eb; --rcp-phase-soft: #e4ecfd; }
body.v2 .recipe-card[data-phase="2"] { --rcp-phase: #7c3aed; --rcp-phase-soft: #efe7fd; }
body.v2 .recipe-card[data-phase="3"] { --rcp-phase: #22a06b; --rcp-phase-soft: #e6f7ef; }
body.v2 .recipe-card[data-phase="4"] { --rcp-phase: #c0392b; --rcp-phase-soft: #fbe9e6; }

body.v2 .recipe-card .tip-media {
    background: var(--rcp-meal-soft);
    color: var(--rcp-meal);
}

body.v2 .tip-body h4 {
    font: var(--t-overline);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    margin: var(--s-5) 0 var(--s-2);
    font-weight: 500;
}
body.v2 .recipe-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
    margin: 0 0 var(--s-5);
}
body.v2 .recipe-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px var(--s-4);
    border-radius: var(--r-full);
    background: var(--bg-muted);
    border: 1px solid var(--border-subtle);
    font: var(--t-caption);
    color: var(--text-tertiary);
}
body.v2 .recipe-tag.is-meal {
    background: var(--rcp-meal-soft);
    border-color: var(--rcp-meal);
    color: var(--rcp-meal);
    font-weight: 600;
}
body.v2 .recipe-tag.is-phase {
    background: var(--rcp-phase-soft);
    border-color: var(--rcp-phase);
    color: var(--rcp-phase);
    font-weight: 600;
}
body.v2 .recipe-tag.is-protein {
    background: var(--c-gray-900);
    color: var(--text-inverse);
    border-color: var(--c-gray-900);
}

/* ───────────────  Tips table  ─────────────── */
body.v2 .tips-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: var(--s-5) 0 0;
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-3xl);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}
body.v2 .tips-table th,
body.v2 .tips-table td {
    padding: var(--s-5) var(--s-7);
    font: var(--t-body);
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}
body.v2 .tips-table th {
    font: var(--t-overline);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    background: var(--bg-muted);
    font-weight: 500;
}
body.v2 .tips-table tr:last-child td { border-bottom: 0; }
body.v2 .tips-table td { color: var(--text-secondary); }
body.v2 .tips-table td:first-child {
    font-weight: 500;
    color: var(--text-primary);
    width: 38%;
}
body.v2 .tip-card .tips-table {
    margin-top: var(--s-2);
    border-radius: var(--r-lg);
    box-shadow: none;
}

/* ───────────────  Form fields (index)  ───────────────
   .field sits inside a grid (.profile-fields / .deviation-form), so its
   spacing comes from the parent's `gap`, not a margin here. */
body.v2 .field label,
body.v2 .field legend {
    display: block;
    font: var(--t-label);
    color: var(--text-primary);
    margin-bottom: var(--s-3);
    padding: 0;
}
body.v2 .field-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--s-3);
    margin-bottom: var(--s-3);
}
body.v2 .field-label-row label { margin-bottom: 0; }

body.v2 input[type="date"],
body.v2 input[type="time"],
body.v2 input[type="number"],
body.v2 input[type="text"],
body.v2 input[type="email"],
body.v2 select,
body.v2 textarea {
    width: 100%;
    background: var(--bg-canvas);
    border: 1px solid var(--border-default);
    border-radius: var(--r-2xl);
    padding: var(--s-4) var(--s-5);
    font: var(--t-body);
    color: var(--text-primary);
    transition: border-color .15s ease, box-shadow .15s ease;
    min-height: 44px;
    box-shadow: none;
}
body.v2 textarea {
    resize: vertical;
    min-height: 96px;
    line-height: 1.5;
}
body.v2 input:focus,
body.v2 select:focus,
body.v2 textarea:focus {
    outline: none;
    border-color: var(--c-gray-900);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

/* Toggle-group (radio pills) */
body.v2 .toggle-group {
    display: inline-flex;
    border: 1px solid var(--border-subtle);
    background: var(--bg-muted);
    border-radius: var(--r-full);
    padding: 3px;
    gap: 0;
}
body.v2 .toggle-group legend {
    float: none;
    margin-bottom: var(--s-3);
}
body.v2 .toggle-option {
    display: inline-flex;
    align-items: center;
    padding: var(--s-3) var(--s-5);
    border-radius: var(--r-full);
    font: var(--t-label);
    color: var(--text-tertiary);
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
    min-height: 36px;
}
body.v2 .toggle-option input { position: absolute; opacity: 0; pointer-events: none; }
body.v2 .toggle-option:has(input:checked) {
    background: var(--bg-canvas);
    color: var(--text-primary);
    box-shadow: var(--shadow-xs);
}

body.v2 .reveal-link {
    background: transparent;
    border: 0;
    color: var(--text-tertiary);
    font: var(--t-caption);
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}
body.v2 .reveal-link:hover { color: var(--text-primary); }

/* Profile collapse summary */
body.v2 .profile-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
}
body.v2 .profile-summary::-webkit-details-marker { display: none; }
body.v2 .profile-summary-title {
    font: var(--t-h3);
    margin: 0;
    color: var(--text-primary);
}
body.v2 .profile-summary .chevron {
    color: var(--text-tertiary);
    transition: transform .15s ease;
    font-size: 14px;
}
body.v2 details[open] .profile-summary .chevron {
    transform: rotate(180deg);
}
body.v2 .profile-fields {
    margin-top: var(--s-7);
    padding-top: var(--s-5);
    border-top: 1px solid var(--border-subtle);
}

/* ───────────────  Buttons  ─────────────── */
body.v2 .btn,
body.v2 .form-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-3);
    border-radius: var(--r-full);
    padding: var(--s-4) var(--s-7);
    font: var(--t-label);
    font-weight: 500;
    min-height: 44px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
    text-decoration: none;
}
body.v2 .btn-primary {
    background: var(--action-primary);
    color: var(--text-inverse);
    border-color: var(--action-primary);
}
body.v2 .btn-primary:hover {
    background: var(--action-primary-hover);
    border-color: var(--action-primary-hover);
}
body.v2 .btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-default);
}
body.v2 .btn-ghost:hover {
    background: var(--action-secondary);
}
body.v2 .btn-with-icon { padding-right: var(--s-7); }
body.v2 .btn-icon { width: 16px; height: 16px; }

body.v2 .form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-3);
    margin-top: var(--s-7);
}

/* ───────────────  Schedule header (index)  ─────────────── */
body.v2 .schedule-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--s-5);
    flex-wrap: wrap;
    margin-bottom: var(--s-5);
}
body.v2 .schedule-header h1,
body.v2 .schedule-header h2 { margin: 0; }
body.v2 .schedule-actions {
    display: flex;
    gap: var(--s-3);
    flex-wrap: wrap;
}

/* ───────────────  Footer & cookie banner  ─────────────── */
body.v2 .footnote {
    color: var(--text-tertiary);
    font: var(--t-caption);
    text-align: center;
    margin-top: var(--s-7);
}

body.v2 .cookie-banner {
    position: fixed;
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
    width: calc(100% - 32px);
    max-width: 540px;
    background: var(--c-gray-1000);
    border: 0;
    border-radius: var(--r-3xl);
    box-shadow: var(--shadow-xl);
    padding: var(--s-7);
    color: var(--text-inverse);
    z-index: 95;
    animation: cookie-pop 0.22s cubic-bezier(.34, 1.2, .64, 1);
}
body.v2 .cookie-banner::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
    pointer-events: none;
    animation: cookie-backdrop-in 0.22s ease;
}
@keyframes cookie-pop {
    from { transform: translate(-50%, -50%) scale(0.94); opacity: 0; }
    to   { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
@keyframes cookie-backdrop-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
body.v2 .cookie-text {
    font: var(--t-body);
    color: var(--text-inverse);
    opacity: 0.92;
    margin: 0 0 var(--s-5);
    line-height: 1.55;
}
body.v2 .cookie-actions {
    display: flex;
    gap: var(--s-3);
    justify-content: flex-end;
}
body.v2 .cookie-banner .btn-ghost {
    background: transparent;
    color: var(--text-inverse);
    border-color: rgba(255, 255, 255, 0.3);
}
body.v2 .cookie-banner .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-inverse);
}
body.v2 .cookie-banner .btn-primary {
    background: var(--bg-canvas);
    color: var(--text-primary);
    border-color: var(--bg-canvas);
}
body.v2 .cookie-banner .btn-primary:hover {
    background: var(--bg-muted);
    border-color: var(--bg-muted);
}

/* ───────────────  Home: warm pastel layer  ───────────────
   Adds a soft, optimistic color layer scoped to body.v2. Existing B/W
   tokens stay primary; these only show up on the home hero, how-it-works
   section and a subtle disclaimer accent. */
body.v2 {
    --c-peach:        #ffe6d4;
    --c-peach-deep:   #f7c39a;
    --c-rose:         #fbd5dc;
    --c-rose-deep:    #f1aeba;
    --c-beige:        #f6efe3;
    --c-lavender:     #e8e0f4;
    --c-lavender-deep:#c9b9e5;
    --c-mint:         #d6ebe0;
    --c-mint-deep:    #a7d4bd;
    --c-cream:        #fbf5ec;
    --c-warm-white:   #fffaf2;
}

html { scroll-behavior: smooth; }

/* Hero shell */
body.v2 .home-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: var(--r-4xl);
    padding: clamp(var(--s-10), 8vw, var(--s-13)) clamp(var(--s-7), 6vw, var(--s-11));
    background:
        radial-gradient(120% 90% at 12% 8%, var(--c-warm-white) 0%, transparent 55%),
        radial-gradient(110% 90% at 90% 100%, var(--c-cream) 0%, transparent 60%),
        var(--c-warm-white);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: var(--text-primary);
    animation: heroFadeIn .8s ease both;
}

/* Animated pastel blobs — drift gently behind the content */
body.v2 .home-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
body.v2 .hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.7;
    will-change: transform;
}
body.v2 .hero-blob-1 {
    width: 360px; height: 360px;
    top: -90px; left: -80px;
    background: radial-gradient(circle at 35% 35%, var(--c-peach) 0%, transparent 70%);
    animation: blobFloatA 22s ease-in-out infinite;
}
body.v2 .hero-blob-2 {
    width: 320px; height: 320px;
    top: 40%; right: -60px;
    background: radial-gradient(circle at 50% 50%, var(--c-rose) 0%, transparent 72%);
    animation: blobFloatB 26s ease-in-out infinite;
}
body.v2 .hero-blob-3 {
    width: 280px; height: 280px;
    bottom: -80px; left: 30%;
    background: radial-gradient(circle at 50% 50%, var(--c-lavender) 0%, transparent 70%);
    animation: blobFloatC 30s ease-in-out infinite;
}
body.v2 .hero-blob-4 {
    width: 220px; height: 220px;
    top: 8%; right: 22%;
    background: radial-gradient(circle at 50% 50%, var(--c-mint) 0%, transparent 70%);
    animation: blobFloatD 24s ease-in-out infinite;
}

@keyframes blobFloatA {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(60px, 40px) scale(1.12); }
}
@keyframes blobFloatB {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-50px, -30px) scale(1.08); }
}
@keyframes blobFloatC {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(40px, -50px) scale(0.92); }
}
@keyframes blobFloatD {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-30px, 40px) scale(1.15); }
}
@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

body.v2 .home-hero-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
}
body.v2 .home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    font: var(--t-overline);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: var(--r-full);
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-xs);
    margin-bottom: var(--s-6);
}
body.v2 .home-eyebrow-dark {
    background: var(--bg-muted);
    border-color: var(--border-subtle);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
body.v2 .home-hero h1 {
    font: var(--t-display-xl);
    font-weight: 700;
    letter-spacing: -0.028em;
    margin: 0 0 var(--s-5);
    color: var(--text-primary);
    max-width: 16ch;
    line-height: 1.08;
}
body.v2 .home-hero p {
    font: var(--t-body-lg);
    color: var(--text-secondary);
    margin: 0;
    max-width: 56ch;
    line-height: 1.6;
}
body.v2 .home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-4);
    margin-top: var(--s-8);
}
body.v2 .btn-hero-primary {
    padding: 14px var(--s-8);
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
body.v2 .btn-hero-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}
body.v2 .btn-hero-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
body.v2 .btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    color: var(--text-primary);
    text-decoration: none;
    font: var(--t-label);
    font-weight: 500;
    padding: 12px var(--s-5);
    border-radius: var(--r-full);
    transition: background-color .15s ease, gap .15s ease;
}
body.v2 .btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.55);
    gap: 10px;
}
body.v2 .btn-hero-secondary-arrow {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
}

/* Trust indicators row */
body.v2 .home-trust {
    list-style: none;
    margin: var(--s-9) 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-3);
}
body.v2 .home-trust-item {
    display: inline-flex;
    align-items: center;
    gap: var(--s-3);
    padding: 10px 14px 10px 10px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: var(--r-full);
    color: var(--text-primary);
    font: var(--t-body-sm);
    font-weight: 500;
    box-shadow: var(--shadow-xs);
}
body.v2 .home-trust-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
body.v2 .home-trust-icon svg { width: 16px; height: 16px; }
body.v2 .home-trust-icon-mint   { background: var(--c-mint);     color: #2f6f55; }
body.v2 .home-trust-icon-rose   { background: var(--c-rose);     color: #a8425b; }
body.v2 .home-trust-icon-peach  { background: var(--c-peach);    color: #a8552a; }

/* Tour button (small tertiary link inside hero) */
body.v2 .btn-tour {
    display: inline-flex;
    align-items: center;
    gap: var(--s-3);
    margin-top: var(--s-7);
    background: transparent;
    color: var(--text-secondary);
    border: 0;
    border-radius: var(--r-full);
    padding: 8px 14px 8px 8px;
    font: var(--t-body-sm);
    font-weight: 500;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, transform .12s ease;
}
body.v2 .btn-tour:hover {
    background: rgba(255, 255, 255, 0.55);
    color: var(--text-primary);
}
body.v2 .btn-tour:active { transform: translateY(1px); }
body.v2 .btn-tour-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--text-primary);
    color: var(--bg-canvas);
    border-radius: 50%;
    font-size: 9px;
    padding-left: 2px;
}

/* ───────────────  Sub-page hero  ───────────────
   Same visual language as .home-hero (drifting blobs, soft cream gradient,
   glassy eyebrow), scaled down for sub-pages where there's content to follow.
*/
body.v2 .page-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: var(--r-4xl);
    padding: clamp(var(--s-8), 5vw, var(--s-10)) clamp(var(--s-6), 5vw, var(--s-9));
    background:
        radial-gradient(120% 90% at 12% 8%, var(--c-warm-white) 0%, transparent 55%),
        radial-gradient(110% 90% at 90% 100%, var(--c-cream) 0%, transparent 60%),
        var(--c-warm-white);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: var(--text-primary);
    animation: heroFadeIn .8s ease both;
}
body.v2 .page-hero .home-hero-content {
    max-width: 720px;
}
body.v2 .page-hero h1 {
    font: var(--t-display-md, var(--t-h1));
    font-size: clamp(2rem, 4.6vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.024em;
    margin: 0 0 var(--s-4);
    color: var(--text-primary);
    max-width: 22ch;
    line-height: 1.1;
}
body.v2 .page-hero p {
    font: var(--t-body-lg);
    color: var(--text-secondary);
    margin: 0;
    max-width: 60ch;
    line-height: 1.6;
}

/* ───────────────  Home: How it works  ─────────────── */
body.v2 .home-how {
    position: relative;
    padding: var(--s-9) 0 0;
}
body.v2 .home-how-intro {
    text-align: center;
    max-width: 56ch;
    margin: 0 auto var(--s-9);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s-4);
}
body.v2 .home-how-intro h2 {
    font: var(--t-h1);
    font-weight: 600;
    letter-spacing: -0.022em;
    color: var(--text-primary);
    margin: 0;
}
body.v2 .home-how-subtitle {
    font: var(--t-body-lg);
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.55;
}
body.v2 .home-how-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: var(--s-11);
    align-items: center;
}

/* Phone mockup — three slides rotate inside a horizontal slider. */
body.v2 .home-phone-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: var(--s-5) 0 var(--s-7);
}
body.v2 .home-phone-track {
    display: flex;
    width: 100%;
    transition: transform 520ms cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
}
body.v2 .home-phone-slide {
    flex: 0 0 100%;
    min-width: 0;
}
body.v2 .home-phone-dots {
    position: absolute;
    bottom: var(--s-2);
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 2;
}
body.v2 .home-phone-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: var(--c-gray-300);
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}
body.v2 .home-phone-dot.is-active {
    background: var(--c-gray-900);
    transform: scale(1.25);
}
body.v2 .home-phone-dot:hover { background: var(--c-gray-500); }
body.v2 .home-phone-dot.is-active:hover { background: var(--c-gray-900); }

body.v2 .home-phone-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    padding: var(--s-5) 0;
}
body.v2 .home-phone-glow {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(60% 60% at 35% 30%, var(--c-peach) 0%, transparent 60%),
        radial-gradient(55% 55% at 70% 75%, var(--c-lavender) 0%, transparent 60%);
    filter: blur(40px);
    opacity: 0.7;
    pointer-events: none;
}
body.v2 .phone-frame {
    position: relative;
    z-index: 1;
    width: 280px;
    height: 560px;
    background: linear-gradient(160deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 44px;
    padding: 10px;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.22),
        0 6px 14px rgba(0, 0, 0, 0.10),
        inset 0 0 0 2px rgba(255, 255, 255, 0.04);
    transition: transform .35s ease;
}
body.v2 .phone-frame:hover { transform: translateY(-4px); }
body.v2 .phone-notch {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 96px;
    height: 24px;
    background: #0a0a0a;
    border-radius: 14px;
    z-index: 3;
}
body.v2 .phone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--c-warm-white);
    border-radius: 36px;
    padding: 52px 18px 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: var(--s-5);
}
body.v2 .phone-screen::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(80% 50% at 100% 0%, var(--c-peach) 0%, transparent 60%),
        radial-gradient(60% 40% at 0% 100%, var(--c-mint) 0%, transparent 60%);
    opacity: 0.45;
    pointer-events: none;
}
body.v2 .phone-status {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font: var(--t-caption);
    font-weight: 600;
    color: var(--text-primary);
    padding: 0 6px;
}
body.v2 .phone-status-dots {
    display: inline-flex;
    gap: 3px;
}
body.v2 .phone-status-dots i {
    width: 4px; height: 4px;
    background: var(--text-primary);
    border-radius: 50%;
    display: block;
}
body.v2 .phone-screen-head {
    position: relative;
    z-index: 1;
    padding: 0 4px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
body.v2 .phone-screen-eyebrow {
    font: var(--t-overline);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-tertiary);
}
body.v2 .phone-screen-head h4 {
    font: var(--t-h4);
    font-weight: 600;
    letter-spacing: -0.012em;
    margin: 0;
    color: var(--text-primary);
}
body.v2 .phone-rings {
    display: flex;
    gap: var(--s-3);
    margin-top: 6px;
}
body.v2 .phone-ring {
    --p: 60%;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background:
        conic-gradient(currentColor var(--p), rgba(0,0,0,0.06) 0);
    position: relative;
}
body.v2 .phone-ring::after {
    content: "";
    position: absolute;
    inset: 4px;
    background: var(--c-warm-white);
    border-radius: 50%;
}
body.v2 .phone-ring-mint     { color: var(--c-mint-deep); }
body.v2 .phone-ring-lavender { color: var(--c-lavender-deep); }
body.v2 .phone-ring-peach    { color: var(--c-peach-deep); }

body.v2 .phone-events {
    position: relative;
    z-index: 1;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
body.v2 .phone-event {
    display: grid;
    grid-template-columns: 40px 10px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 14px;
    font: var(--t-caption);
    color: var(--text-primary);
    transition: opacity .2s ease;
}
body.v2 .phone-event.is-done { opacity: 0.55; }
body.v2 .phone-event.is-active {
    background: var(--c-gray-900);
    color: var(--text-inverse);
    border-color: var(--c-gray-900);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}
body.v2 .phone-event-time {
    font-weight: 600;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
}
body.v2 .phone-event-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
}
body.v2 .phone-event-dot-mint     { background: var(--c-mint-deep); }
body.v2 .phone-event-dot-lavender { background: var(--c-lavender-deep); }
body.v2 .phone-event-dot-peach    { background: var(--c-peach-deep); }
body.v2 .phone-event-dot-rose     { background: var(--c-rose-deep); }
body.v2 .phone-event-text {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.v2 .phone-event-check {
    width: 18px; height: 18px;
    color: var(--c-mint-deep);
}
body.v2 .phone-event-check svg { width: 100%; height: 100%; }
body.v2 .phone-event.is-active .phone-event-text { color: var(--text-inverse); }

/* Recepten slide preview — list of recipe cards with thumbnail tile + tags. */
body.v2 .phone-recipes {
    position: relative;
    z-index: 1;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
body.v2 .phone-recipe {
    display: grid;
    grid-template-columns: 38px 1fr;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    font: var(--t-caption);
    color: var(--text-primary);
}
body.v2 .phone-recipe-thumb {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    display: block;
}
body.v2 .phone-recipe-thumb-1 { background: linear-gradient(135deg, var(--c-mint-deep), var(--c-mint)); }
body.v2 .phone-recipe-thumb-2 { background: linear-gradient(135deg, var(--c-lavender-deep), var(--c-lavender)); }
body.v2 .phone-recipe-thumb-3 { background: linear-gradient(135deg, var(--c-peach-deep), var(--c-peach)); }
body.v2 .phone-recipe-thumb-4 { background: linear-gradient(135deg, var(--c-rose-deep), var(--c-rose)); }
body.v2 .phone-recipe-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
body.v2 .phone-recipe-title {
    font-weight: 600;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.v2 .phone-recipe-tags {
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
}
body.v2 .phone-recipe-tag {
    display: inline-block;
    font-style: normal;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-secondary);
}
body.v2 .phone-recipe-tag.is-meal {
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
}

/* Boodschappenlijst slide preview — checklist with done / open rows. */
body.v2 .phone-shop {
    position: relative;
    z-index: 1;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
body.v2 .phone-shop-item {
    display: grid;
    grid-template-columns: 18px 1fr;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    font: var(--t-caption);
    color: var(--text-primary);
}
body.v2 .phone-shop-check {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1.5px solid var(--c-gray-400);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: transparent;
}
body.v2 .phone-shop-item.is-done .phone-shop-check {
    background: var(--c-gray-900);
    border-color: var(--c-gray-900);
    color: #fff;
}
body.v2 .phone-shop-check svg { width: 11px; height: 11px; }
body.v2 .phone-shop-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.v2 .phone-shop-item.is-done .phone-shop-name {
    text-decoration: line-through;
    color: var(--text-tertiary);
}

/* Step list */
body.v2 .how-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--s-5);
}
body.v2 .how-step {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: var(--s-5);
    align-items: flex-start;
    padding: var(--s-6) var(--s-7);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-3xl);
    box-shadow: var(--shadow-xs);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
body.v2 .how-step:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-default);
}
body.v2 .how-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--c-gray-900);
    color: var(--text-inverse);
    font: var(--t-h4);
    font-weight: 600;
    letter-spacing: -0.01em;
}
body.v2 .how-step-body { min-width: 0; }
body.v2 .how-step-head {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    margin-bottom: var(--s-2);
}
body.v2 .how-step-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--r-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
body.v2 .how-step-icon svg { width: 18px; height: 18px; }
body.v2 .how-step-icon-peach    { background: var(--c-peach);    color: #a8552a; }
body.v2 .how-step-icon-lavender { background: var(--c-lavender); color: #5e489d; }
body.v2 .how-step-icon-mint     { background: var(--c-mint);     color: #2f6f55; }
body.v2 .how-step-head h3 {
    font: var(--t-h4);
    font-weight: 600;
    letter-spacing: -0.012em;
    color: var(--text-primary);
    margin: 0;
}
body.v2 .how-step-body p {
    font: var(--t-body);
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.55;
}

/* ───────────────  Softer disclaimer  ─────────────── */
body.v2 .card.disclaimer {
    background: linear-gradient(135deg, var(--c-cream) 0%, var(--c-warm-white) 100%);
    border-color: rgba(247, 195, 154, 0.35);
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: var(--s-5);
    align-items: flex-start;
}
body.v2 .card.disclaimer .disclaimer-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--c-peach);
    color: #a8552a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
body.v2 .card.disclaimer .disclaimer-icon svg { width: 22px; height: 22px; }
body.v2 .card.disclaimer .disclaimer-body { min-width: 0; }
body.v2 .card.disclaimer h2 {
    font: var(--t-h4);
    font-weight: 600;
    letter-spacing: -0.012em;
    margin: 0 0 6px;
}
body.v2 .card.disclaimer p {
    font: var(--t-body-sm);
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* ───────────────  Reduced motion  ─────────────── */
@media (prefers-reduced-motion: reduce) {
    body.v2 .home-hero,
    body.v2 .page-hero { animation: none; }
    body.v2 .hero-blob,
    body.v2 .home-phone-glow,
    body.v2 .phone-frame {
        animation: none !important;
        transition: none !important;
    }
    body.v2 .how-step { transition: none; }
    html { scroll-behavior: auto; }
}

/* ───────────────  Tour card + previews  ─────────────── */
body.v2 .tour { background: rgba(0, 0, 0, 0.55); }
body.v2 .tour-card {
    max-width: 520px;
    background: var(--bg-canvas);
    border-radius: var(--r-3xl);
    padding: var(--s-7);
    box-shadow: var(--shadow-modal);
}
body.v2 .tour-step {
    font: var(--t-overline);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin: 0 0 var(--s-2);
}
body.v2 .tour-title {
    font: var(--t-h3);
    color: var(--text-primary);
    letter-spacing: -0.01em;
    margin: 0 0 var(--s-3);
}
body.v2 .tour-text {
    font: var(--t-body);
    color: var(--text-secondary);
    margin: 0 0 var(--s-7);
    line-height: 1.55;
}
body.v2 .tour-actions {
    display: flex;
    gap: var(--s-3);
    justify-content: flex-end;
    align-items: center;
}
body.v2 .tour-actions #tour-skip { margin-right: auto; }
body.v2 .tour-actions .btn:disabled { opacity: 0.4; cursor: not-allowed; }
body.v2 .tour-highlight {
    outline: 3px solid var(--c-gray-900);
    outline-offset: 4px;
    border-radius: var(--r-md);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.18);
}

body.v2 .tour-preview {
    background: var(--bg-muted);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-2xl);
    padding: var(--s-5);
    margin: 0 0 var(--s-5);
    overflow: hidden;
}
body.v2 .tour-preview[hidden] { display: none; }

/* Welcome preview: brand mark on a soft surface */
body.v2 .tp-welcome {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--s-5) 0;
}
body.v2 .tp-welcome .tp-mark { width: 72px; height: 72px; }

/* Schedule preview: mini calendar */
body.v2 .tp-schedule { display: flex; flex-direction: column; gap: var(--s-3); }
body.v2 .tp-cal-hd {
    font: var(--t-overline);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--s-2);
}
body.v2 .tp-cal-row {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    gap: var(--s-3);
    align-items: stretch;
}
body.v2 .tp-cal-time {
    font: var(--t-caption);
    color: var(--text-tertiary);
    font-variant-numeric: tabular-nums;
    align-self: center;
}
body.v2 .tp-cal-event {
    background: var(--bg-canvas);
    border: 2px solid var(--border-default);
    border-radius: var(--r-md);
    padding: var(--s-3) var(--s-4);
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
body.v2 .tp-cal-event.tp-evt-meal  { border-color: #fbbf24; background: rgba(251,191,36,.06); }
body.v2 .tp-cal-event.tp-evt-drink { border-color: #38bdf8; background: rgba(56,189,248,.06); }
body.v2 .tp-evt-row {
    display: flex;
    gap: var(--s-3);
    align-items: baseline;
}
body.v2 .tp-evt-row > span:first-child {
    font: var(--t-caption);
    color: var(--text-tertiary);
    font-variant-numeric: tabular-nums;
}
body.v2 .tp-evt-title {
    font: var(--t-label);
    color: var(--text-primary);
    font-weight: 600;
}
body.v2 .tp-evt-portion {
    font: var(--t-caption);
    color: var(--text-secondary);
}
body.v2 .tp-cal-supp {
    background: rgba(167,139,250,.08);
    border: 2px solid #a78bfa;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
}
body.v2 .tp-supp-chip {
    background: #a78bfa;
    color: #fff;
    border-radius: var(--r-xs);
    padding: 2px 6px;
    font: var(--t-overline);
    font-weight: 700;
    letter-spacing: 0.04em;
}
body.v2 .tp-supp-chip.tp-chip-ca { background: #7c3aed; }

/* Stats preview: 3 small rings in a row */
body.v2 .tp-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-4);
}
body.v2 .tp-ring {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    position: relative;
}
body.v2 .tp-ring svg { width: 64px; height: 64px; }
body.v2 .tp-ring-val {
    position: absolute;
    top: 22px;
    left: 0; right: 0;
    text-align: center;
    font: var(--t-label);
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}
body.v2 .tp-ring-lbl {
    margin-top: var(--s-2);
    font: var(--t-caption);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Recipe preview: small recipe card with shopping CTA */
body.v2 .tp-recipe {
    display: grid;
    grid-template-columns: 1fr 56px;
    gap: var(--s-4);
    background: var(--bg-canvas);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-lg);
    padding: var(--s-4) var(--s-5);
    align-items: start;
}
body.v2 .tp-recipe-title {
    font: var(--t-label);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}
body.v2 .tp-recipe-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: var(--s-3);
}
body.v2 .tp-tag {
    font: var(--t-caption);
    background: var(--bg-muted);
    color: var(--text-tertiary);
    padding: 1px var(--s-3);
    border-radius: var(--r-full);
    border: 1px solid var(--border-subtle);
}
body.v2 .tp-tag.tp-tag-protein {
    background: var(--c-gray-900);
    color: var(--text-inverse);
    border-color: var(--c-gray-900);
}
body.v2 .tp-recipe-ing {
    font: var(--t-caption);
    color: var(--text-secondary);
    margin-bottom: var(--s-3);
}
body.v2 .tp-recipe-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    background: var(--c-gray-900);
    color: var(--text-inverse);
    padding: var(--s-2) var(--s-4);
    border-radius: var(--r-full);
    font: var(--t-caption);
    font-weight: 500;
    width: fit-content;
}
body.v2 .tp-cta-icon {
    width: 14px; height: 14px;
    background: rgba(255,255,255,.2);
    color: var(--text-inverse);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 1;
}
body.v2 .tp-recipe-icon {
    aspect-ratio: 1 / 1;
    border-radius: var(--r-md);
    background: var(--bg-raised);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 24px;
}

/* Shopping preview: recipe row + ingredient totals */
body.v2 .tp-shop-recipe {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-canvas);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-lg);
    padding: var(--s-3) var(--s-5);
    margin-bottom: var(--s-3);
}
body.v2 .tp-shop-name {
    font: var(--t-label);
    color: var(--text-primary);
    font-weight: 600;
}
body.v2 .tp-shop-qty {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
}
body.v2 .tp-qty-btn {
    width: 22px; height: 22px;
    border: 1px solid var(--border-default);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 12px;
    line-height: 1;
}
body.v2 .tp-qty-val {
    font: var(--t-label);
    font-weight: 600;
    color: var(--text-primary);
    min-width: 28px;
    text-align: center;
}
body.v2 .tp-shop-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--bg-canvas);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-lg);
    overflow: hidden;
}
body.v2 .tp-shop-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--s-3);
    padding: var(--s-3) var(--s-5);
    border-bottom: 1px solid var(--border-subtle);
    font: var(--t-caption);
}
body.v2 .tp-shop-list li:last-child { border-bottom: 0; }
body.v2 .tp-shop-list li > span:first-child {
    color: var(--text-primary);
    font-weight: 600;
}
body.v2 .tp-shop-from { color: var(--text-tertiary); }

/* Tips preview: tip card */
body.v2 .tp-tip-card {
    display: grid;
    grid-template-columns: 1fr 56px;
    gap: var(--s-4);
    background: var(--bg-canvas);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-lg);
    padding: var(--s-4) var(--s-5);
    align-items: start;
}
body.v2 .tp-tip-title {
    font: var(--t-label);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--s-3);
}
body.v2 .tp-tip-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
body.v2 .tp-tip-list li {
    font: var(--t-caption);
    color: var(--text-secondary);
    padding: 4px 0 4px var(--s-5);
    position: relative;
    border-bottom: 1px solid var(--border-subtle);
}
body.v2 .tp-tip-list li:last-child { border-bottom: 0; }
body.v2 .tp-tip-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 12px;
    width: 4px; height: 4px;
    background: var(--text-tertiary);
    border-radius: 50%;
}
body.v2 .tp-tip-icon {
    aspect-ratio: 1 / 1;
    border-radius: var(--r-md);
    background: var(--bg-raised);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 20px;
}

/* Finish preview: large checkmark */
body.v2 .tp-finish {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--s-5) 0;
}
body.v2 .tp-finish-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--c-gray-900);
    color: var(--text-inverse);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    line-height: 1;
}

/* ───────────────  Modals (light pass)  ─────────────── */
body.v2 .modal-card {
    border-radius: var(--r-3xl);
    box-shadow: var(--shadow-modal);
    background: var(--bg-canvas);
}
body.v2 .modal-title {
    font: var(--t-h3);
    color: var(--text-primary);
    margin: 0 0 var(--s-3);
}
body.v2 .modal-subtitle {
    font: var(--t-body-sm);
    color: var(--text-tertiary);
    margin: 0 0 var(--s-5);
}
body.v2 .modal-actions {
    display: flex;
    gap: var(--s-3);
    justify-content: flex-end;
    margin-top: var(--s-5);
}

/* ───────────────  Details modal (event detail)  ───────────────
   Premium B/W treatment that matches the rest of the redesigned UI.
   Header uses a category accent strip rather than a full-bleed color,
   keeping the surface clean and consistent with cards elsewhere. */
body.v2 .details-modal-card {
    border-radius: var(--r-3xl);
    background: var(--bg-canvas);
    box-shadow: var(--shadow-modal);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    padding: 0;
    gap: 0;
}
/* Category accent colors used by the header tint + donut chart. */
body.v2 .details-modal-card {
    --cat-accent: var(--c-gray-900);
    --cat-accent-soft: var(--bg-raised);
}
body.v2 .details-modal-card:has(.details-header.cat-vegfruit) { --cat-accent: #22a06b; --cat-accent-soft: #e6f7ef; }
body.v2 .details-modal-card:has(.details-header.cat-fats)     { --cat-accent: #d4a017; --cat-accent-soft: #fdf5e1; }
body.v2 .details-modal-card:has(.details-header.cat-protein)  { --cat-accent: #c0392b; --cat-accent-soft: #fbe9e6; }
body.v2 .details-modal-card:has(.details-header.cat-grains)   { --cat-accent: #b86b2a; --cat-accent-soft: #fbeede; }
body.v2 .details-modal-card:has(.details-header.cat-drinks)   { --cat-accent: #2563eb; --cat-accent-soft: #e4ecfd; }
body.v2 .details-modal-card:has(.details-header.cat-vitamin)  { --cat-accent: #7c3aed; --cat-accent-soft: #efe7fd; }

body.v2 .details-header {
    background: var(--cat-accent-soft);
    color: var(--text-primary);
    padding: var(--s-5) var(--s-5) var(--s-5);
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
    align-items: flex-start;
}
body.v2 .details-header::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--cat-accent);
}
body.v2 .details-header-time {
    font: var(--t-overline);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cat-accent);
    opacity: 0.85;
}
body.v2 .details-header-title {
    font: var(--t-h3);
    color: var(--text-primary);
    letter-spacing: -0.01em;
    white-space: normal;
}
body.v2 .details-header-close {
    width: 36px; height: 36px;
    background: transparent;
    color: var(--text-secondary);
    border-radius: var(--r-full);
}
body.v2 .details-header-close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-primary);
}

body.v2 .details-body { padding: var(--s-5); background: var(--bg-canvas); }
body.v2 .cal-details-card { padding: 0; background: transparent; border: 0; }
body.v2 .cal-details-card .t-section-head {
    font: var(--t-overline);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    margin: var(--s-6) 0 var(--s-3);
}
body.v2 .cal-details-card .t-section-head:first-child { margin-top: 0; }
body.v2 .cal-details-card .t-tags {
    display: flex; flex-wrap: wrap; gap: var(--s-2);
    margin-bottom: var(--s-3);
}
body.v2 .cal-details-card .t-tag {
    font: var(--t-overline);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px var(--s-3);
    border-radius: var(--r-full);
    background: var(--bg-raised);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}
body.v2 .cal-details-card .t-portion {
    font: var(--t-h4);
    color: var(--text-primary);
    margin: var(--s-2) 0 var(--s-3);
}
body.v2 .cal-details-card .t-suggest {
    font: var(--t-body-sm);
    color: var(--text-secondary);
    padding: var(--s-3) 0;
    border-bottom: 1px solid var(--border-subtle);
}
body.v2 .cal-details-card .t-suggest:last-of-type { border-bottom: 0; }
body.v2 .cal-details-card .t-suggest strong { color: var(--text-primary); font-weight: 600; }
body.v2 .cal-details-card .t-notes {
    list-style: none;
    padding: 0;
    margin: var(--s-4) 0 0;
    display: flex; flex-direction: column;
    gap: var(--s-2);
}
body.v2 .cal-details-card .t-notes li {
    position: relative;
    padding-left: var(--s-5);
    font: var(--t-body-sm);
    color: var(--text-secondary);
}
body.v2 .cal-details-card .t-notes li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cat-accent);
}

/* Macros donut chart — colored per macro category for quick scanning. */
body.v2 .macros-donut {
    --macro-protein: #c0392b;
    --macro-carbs:   #f59e0b;
    --macro-fats:    #2563eb;
    display: flex;
    align-items: center;
    gap: var(--s-5);
    padding: var(--s-5);
    background: var(--bg-canvas);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-2xl);
    box-shadow: var(--shadow-xs);
}
body.v2 .macros-donut-chart {
    flex: 0 0 auto;
    width: 104px;
    height: 104px;
    position: relative;
}
body.v2 .macros-donut-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    overflow: visible;
}
body.v2 .macros-donut-track {
    fill: none;
    stroke: var(--bg-raised);
    stroke-width: 7;
}
body.v2 .macros-donut-seg {
    fill: none;
    stroke-width: 7;
    stroke-linecap: butt;
    transition: stroke-dasharray .3s ease;
}
body.v2 .macros-donut-seg.is-protein { stroke: var(--macro-protein); }
body.v2 .macros-donut-seg.is-carbs   { stroke: var(--macro-carbs); }
body.v2 .macros-donut-seg.is-fats    { stroke: var(--macro-fats); }
body.v2 .macros-donut-legend {
    list-style: none;
    padding: 0; margin: 0;
    display: flex; flex-direction: column;
    gap: var(--s-3);
    flex: 1 1 auto;
    min-width: 0;
}
body.v2 .macros-donut-legend li {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--s-3);
    font: var(--t-body-sm);
    color: var(--text-secondary);
}
body.v2 .macros-donut-legend .macros-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    display: inline-block;
}
body.v2 .macros-donut-legend .macros-dot.is-protein { background: var(--macro-protein); }
body.v2 .macros-donut-legend .macros-dot.is-carbs   { background: var(--macro-carbs); }
body.v2 .macros-donut-legend .macros-dot.is-fats    { background: var(--macro-fats); }
body.v2 .macros-donut-legend .macros-donut-name { color: var(--text-primary); }
body.v2 .macros-donut-legend strong {
    color: var(--text-primary);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* Recommended-recipes call-to-action. Primary-style pill button that picks
   up the event's category accent (--tl-accent) so it visually ties back to
   the moment the user just opened. */
body.v2 .details-recipes-link {
    display: grid;
    grid-template-columns: 36px 1fr 16px;
    align-items: center;
    gap: var(--s-4);
    margin-top: var(--s-6);
    padding: var(--s-4) var(--s-5);
    border: 0;
    border-radius: 999px;
    background: var(--tl-accent, var(--c-gray-900));
    color: #fff;
    font: var(--t-label);
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
body.v2 .details-recipes-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    filter: brightness(1.05);
}
body.v2 .details-recipes-link:active {
    transform: scale(0.99);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}
body.v2 .details-recipes-link-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
body.v2 .details-recipes-link-icon svg { width: 18px; height: 18px; }
body.v2 .details-recipes-link-label {
    color: inherit;
    font-weight: 600;
}
body.v2 .details-recipes-link-arrow {
    font-size: 1.25rem;
    line-height: 1;
    color: inherit;
    opacity: 0.85;
    transition: transform .15s ease;
}
body.v2 .details-recipes-link:hover .details-recipes-link-arrow {
    transform: translateX(3px);
}

/* Footers — flatter, matching the rest of the surface system */
body.v2 .details-footer {
    border-top: 1px solid var(--border-subtle);
    padding: var(--s-4) var(--s-5);
    background: var(--bg-canvas);
}
body.v2 .details-footer-actions {
    background: var(--bg-canvas);
}
body.v2 .details-complete-wrap {
    font: var(--t-label);
    color: var(--text-primary);
    gap: var(--s-3);
}
body.v2 .details-complete-wrap .cal-checkbox-box {
    border-color: var(--border-default);
    border-radius: var(--r-xs);
}
body.v2 .details-complete-wrap input[type="checkbox"]:checked + .cal-checkbox-box {
    background: var(--c-gray-900);
    border-color: var(--c-gray-900);
}
body.v2 .details-footer-swipe {
    gap: var(--s-3);
    padding: var(--s-3) var(--s-5) var(--s-5);
    border-top: 0;
}
body.v2 .details-swipe {
    border: 1px solid var(--border-default);
    border-radius: var(--r-full);
    background: var(--bg-canvas);
    color: var(--text-primary);
    font: var(--t-label);
    padding: var(--s-3) var(--s-4);
}
body.v2 .details-swipe.is-left:hover {
    background: var(--bg-raised);
    border-color: var(--text-primary);
    color: var(--text-primary);
}
body.v2 .details-swipe.is-right:hover {
    background: var(--bg-raised);
    border-color: var(--text-primary);
    color: var(--text-primary);
}
body.v2 .details-footer-meds {
    background: var(--bg-muted);
    border-top: 1px solid var(--border-subtle);
}
body.v2 .details-meds-row {
    background: var(--bg-canvas);
    border: 1px solid var(--border-subtle);
    border-left-width: 3px;
    border-radius: var(--r-md);
    font: var(--t-body-sm);
}

body.v2 .recipes-back {
    margin-top: var(--s-7);
    text-align: center;
}
body.v2 .recipes-back a {
    color: var(--text-secondary);
    text-decoration: none;
    font: var(--t-label);
    border: 1px solid var(--border-default);
    border-radius: var(--r-full);
    padding: var(--s-3) var(--s-5);
    display: inline-flex;
    align-items: center;
}
body.v2 .recipes-back a:hover {
    color: var(--text-primary);
    background: var(--action-secondary);
}

/* ───────────────  Phase summary card  ─────────────── */
body.v2 .phase-summary .phase-row {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    margin-bottom: var(--s-5);
    flex-wrap: wrap;
}
body.v2 .phase-summary .phase-pill {
    display: inline-flex;
    align-items: center;
    background: var(--c-gray-900);
    color: var(--text-inverse);
    border-radius: var(--r-full);
    padding: 4px var(--s-4);
    font: var(--t-label);
    letter-spacing: 0;
}
body.v2 .phase-summary .muted {
    color: var(--text-tertiary);
    font: var(--t-body-sm);
}
body.v2 .phase-summary dl {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--s-3) var(--s-5);
    margin: 0;
}
body.v2 .phase-summary dt {
    font: var(--t-body);
    color: var(--text-secondary);
}
body.v2 .phase-summary dd {
    font: var(--t-body);
    color: var(--text-primary);
    font-weight: 600;
    margin: 0;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* ───────────────  Stats ring section (dagschema)  ─────────────── */
body.v2 .stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-4);
    padding: var(--s-7);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-3xl);
    background: var(--bg-canvas);
    box-shadow: var(--shadow-xs);
}
body.v2 .stat-ring {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--s-3);
}
body.v2 .ring-wrap {
    position: relative;
    width: 100%;
    max-width: 112px;
    margin: 0 auto;
}
body.v2 .ring-svg {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    transform: rotate(-90deg);
}
body.v2 .ring-track {
    fill: none;
    stroke: var(--bg-raised);
    stroke-width: 8;
}
body.v2 .ring-progress {
    fill: none;
    stroke: var(--c-gray-900);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset .4s ease;
    stroke-dasharray: 263.89;
    stroke-dashoffset: 263.89;
}
body.v2 .stat-ring[data-stat="water"]      .ring-progress { stroke: #38bdf8; }
body.v2 .stat-ring[data-stat="medication"] .ring-progress { stroke: #a78bfa; }
body.v2 .stat-ring[data-stat="protein"]    .ring-progress { stroke: #fbbf24; }
body.v2 .ring-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font: var(--t-h4);
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}
body.v2 .ring-label {
    font: var(--t-label);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
body.v2 .stats-note {
    text-align: center;
    margin: var(--s-4) 0 0;
    font: var(--t-body-sm);
    color: var(--text-tertiary);
    font-style: italic;
}

/* ───────────────  Vertical timeline (Apple Health-inspired)  ───────────────
   Events flow top-to-bottom in chronological order. A spine carries a
   colored dot per event; the card on the right holds the title, portion,
   checkbox and detail affordance. Categories are conveyed by dot color +
   subtle left-border accent on the card. */
body.v2 .cal-date-header {
    margin: 0 0 var(--s-5);
    font: var(--t-h4);
    color: var(--text-primary);
    letter-spacing: -0.01em;
}
body.v2 .schedule-actions .btn { width: auto; }

body.v2 .calendar {
    background: transparent;
    border: 0;
    overflow: visible;
}

body.v2 .cal-help {
    color: var(--text-tertiary);
    font: var(--t-caption);
    margin: var(--s-4) 0 0;
    text-align: center;
}

body.v2 .timeline-list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

/* Category accents — one source of truth, applied to dot + left border. */
body.v2 .timeline-item {
    --tl-accent: var(--c-gray-700);
}
body.v2 .timeline-item.cat-vegfruit { --tl-accent: #22a06b; }
body.v2 .timeline-item.cat-fats     { --tl-accent: #d4a017; }
body.v2 .timeline-item.cat-protein  { --tl-accent: #c0392b; }
body.v2 .timeline-item.cat-grains   { --tl-accent: #b86b2a; }
body.v2 .timeline-item.cat-drinks   { --tl-accent: #2563eb; }
body.v2 .timeline-item.cat-vitamin  { --tl-accent: #7c3aed; }

/* Row layout: [time gutter] [spine] [card] — overrides the legacy
   absolute-positioned .cal-event rule that the JS still tags for swipes. */
body.v2 .timeline-item.cal-event {
    position: relative;
    display: grid;
    grid-template-columns: 56px 28px 1fr;
    align-items: stretch;
    gap: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
    top: auto; left: auto; right: auto; bottom: auto;
    width: auto; height: auto;
}

/* Time gutter */
body.v2 .timeline-time {
    grid-column: 1;
    padding: var(--s-4) var(--s-3) 0 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 2px;
    font-variant-numeric: tabular-nums;
}
body.v2 .timeline-time-start {
    font: var(--t-label);
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.01em;
}
body.v2 .timeline-time-end {
    font: var(--t-caption);
    color: var(--text-tertiary);
}

/* Spine + dot */
body.v2 .timeline-spine {
    grid-column: 2;
    position: relative;
    display: flex;
    justify-content: center;
}
body.v2 .timeline-spine::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--border-subtle);
    transform: translateX(-50%);
}
body.v2 .timeline-item:first-child .timeline-spine::before { top: 22px; }
body.v2 .timeline-item:last-child  .timeline-spine::before { bottom: calc(100% - 22px); }
body.v2 .timeline-dot {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--tl-accent);
    border: 3px solid var(--bg-canvas);
    box-shadow: 0 0 0 1.5px var(--tl-accent);
    z-index: 1;
}
body.v2 .timeline-item.is-supplement .timeline-dot {
    width: 10px;
    height: 10px;
    border-width: 2px;
}

/* Card wrap: holds the swipeable card on top of the swipe action surfaces.
   The wrap itself clips overflow so the action backgrounds reveal cleanly. */
body.v2 .timeline-card-wrap {
    grid-column: 3;
    position: relative;
    margin: var(--s-2) 0 var(--s-3) var(--s-3);
    border-radius: var(--r-lg);
    overflow: hidden;
}

/* Event card — sits on top of the swipe-action surfaces. */
body.v2 .timeline-card.cal-event-card {
    position: relative;
    width: auto;
    height: auto;
    margin: 0;
    background: var(--bg-canvas);
    border: 2px solid var(--tl-accent);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
    transition: transform 0.2s ease-out, box-shadow .15s ease;
    cursor: pointer;
    padding: 0;
    display: block;
    z-index: 1;
    touch-action: pan-y;
    will-change: transform;
}
body.v2 .timeline-card.cal-event-card.is-swiping { transition: none; }
body.v2 .timeline-card:hover { box-shadow: var(--shadow-sm); }
body.v2 .timeline-card-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--s-3);
    padding: var(--s-3) var(--s-4);
    min-height: 56px;
}
body.v2 .timeline-item.is-supplement .timeline-card-inner {
    min-height: 48px;
    padding: var(--s-3);
}
body.v2 .timeline-item.is-drink .timeline-card-inner {
    min-height: 48px;
}

body.v2 .timeline-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
body.v2 .timeline-headline {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    min-width: 0;
}
body.v2 .timeline-title.cal-title {
    color: var(--text-primary);
    font: var(--t-label);
    font-weight: 600;
    letter-spacing: -0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
body.v2 .timeline-meta {
    display: flex;
    align-items: center;
    gap: var(--s-2);
}
body.v2 .cal-portion, body.v2 .timeline-portion {
    font: var(--t-caption);
    color: var(--text-secondary);
}

/* Supplement chip */
body.v2 .timeline-chip,
body.v2 .cal-supp-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tl-accent);
    color: #fff;
    border-radius: var(--r-xs);
    padding: 2px 8px;
    font: var(--t-overline);
    font-weight: 700;
    letter-spacing: 0.04em;
    width: auto;
    height: auto;
    flex-shrink: 0;
}

/* Info button */
body.v2 .timeline-info {
    color: var(--text-tertiary);
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
body.v2 .timeline-info svg { width: 18px; height: 18px; }

/* Checkbox */
body.v2 .cal-checkbox-box {
    border: 1.5px solid var(--border-default);
    border-radius: var(--r-xs);
    background: var(--bg-canvas);
}
body.v2 .cal-checkbox:checked + .cal-checkbox-box {
    background: var(--tl-accent);
    border-color: var(--tl-accent);
}
body.v2 .cal-checkbox:focus-visible + .cal-checkbox-box {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12);
}

/* States */
body.v2 .timeline-item.is-completed .timeline-card {
    opacity: 0.55;
    background: var(--bg-muted);
}
body.v2 .timeline-item.is-completed .cal-title,
body.v2 .timeline-item.is-completed .timeline-time-start {
    text-decoration: line-through;
}
body.v2 .timeline-item.is-warn .timeline-card {
    border-color: var(--tl-accent);
}
body.v2 .timeline-item.is-selected .timeline-card {
    box-shadow: 0 0 0 2px var(--tl-accent), var(--shadow-sm);
}

/* Swipe action backgrounds (under the card while dragging) */
body.v2 .timeline-card-wrap .cal-action {
    position: absolute;
    top: 0; bottom: 0;
    width: 50%;
    display: flex;
    align-items: center;
    color: var(--text-inverse);
    font: var(--t-label);
    font-weight: 600;
    padding: 0 var(--s-4);
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease;
    z-index: 0;
}
body.v2 .timeline-card-wrap .cal-action-left {
    left: 0;
    background: #b91c1c;
    justify-content: flex-start;
}
body.v2 .timeline-card-wrap .cal-action-right {
    right: 0;
    background: #1d4ed8;
    justify-content: flex-end;
}
body.v2 .timeline-item.show-left  .cal-action-left  { opacity: 1; }
body.v2 .timeline-item.show-right .cal-action-right { opacity: 1; }

/* Now indicator: red dot + line spanning the spine + card area */
body.v2 .timeline-now {
    display: grid;
    grid-template-columns: 56px 28px 1fr;
    align-items: center;
    margin: var(--s-3) 0;
    list-style: none;
}
body.v2 .timeline-now-time {
    grid-column: 1;
    padding-right: var(--s-3);
    text-align: right;
    font: var(--t-overline);
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #dc2626;
}
body.v2 .timeline-now-spine {
    grid-column: 2;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #dc2626;
    justify-self: center;
    box-shadow: 0 0 0 3px var(--bg-canvas), 0 0 0 4.5px #dc2626;
}
body.v2 .timeline-now-line {
    grid-column: 3;
    height: 2px;
    background: linear-gradient(to right, #dc2626, rgba(220, 38, 38, 0));
    margin-left: var(--s-3);
}

/* ── Listing card: link the title + add "view full recipe" CTA ── */
body.v2 .recipe-card-link {
    color: inherit;
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0 1.5px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size 240ms ease;
}
body.v2 .recipe-card-link:hover,
body.v2 .recipe-card-link:focus-visible {
    background-size: 100% 1.5px;
}
body.v2 .btn-recipe-view {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

/* ═══════════════════════════════════════════════════════════════════════
   Recipe detail page (/recepten/[slug].html)
   Generated by scripts/build-recipes.js. Visual language matches the
   existing wellness B/W system — no new tokens, just compositions of
   existing scales (--s-*, --r-*, --c-gray-*, --t-*).
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Breadcrumb ── */
body.v2 .breadcrumb {
    font: var(--t-body-sm);
    color: var(--text-tertiary);
    margin-bottom: var(--s-5);
}
body.v2 .breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
    align-items: center;
}
body.v2 .breadcrumb li {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
}
body.v2 .breadcrumb li + li::before {
    content: "/";
    color: var(--text-disabled);
    margin-right: var(--s-2);
}
body.v2 .breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 140ms ease;
}
body.v2 .breadcrumb a:hover { color: var(--text-primary); }
body.v2 .breadcrumb [aria-current="page"] {
    color: var(--text-primary);
    font-weight: 500;
}

/* ── Article container ── */
body.v2 .recipe-article {
    display: flex;
    flex-direction: column;
    gap: var(--s-9);
}

/* ── Hero ── */
body.v2 .recipe-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: var(--s-10);
    row-gap: var(--s-7);
    align-items: center;
}
body.v2 .recipe-hero-media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    width: 100%;
    max-width: 560px;
    border-radius: var(--r-3xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    align-self: center;
    justify-self: start;
}
body.v2 .recipe-hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 240ms ease, transform 600ms ease;
}
body.v2 .recipe-hero-media img:hover { transform: scale(1.02); }
body.v2 .recipe-hero-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--s-5);
    padding: var(--s-3) 0;
    min-width: 0;
}
body.v2 .recipe-hero-title {
    font: var(--t-h1);
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0;
    overflow-wrap: anywhere;
}
body.v2 .recipe-hero-desc {
    font: var(--t-body-lg);
    color: var(--text-secondary);
    margin: 0;
    max-width: 56ch;
    overflow-wrap: anywhere;
}
body.v2 .recipe-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
    margin-top: var(--s-2);
}

/* ── Meta strip ── */
body.v2 .recipe-meta-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: var(--s-6) 0;
}
body.v2 .recipe-meta-cell {
    padding: 0 var(--s-5);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: var(--s-1);
    min-width: 0;
}
body.v2 .recipe-meta-cell:last-child { border-right: 0; }
body.v2 .recipe-meta-label {
    font: var(--t-overline);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}
body.v2 .recipe-meta-value {
    font: var(--t-numeric-stat);
    color: var(--text-primary);
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Recipe sections (Ingredients, Bereiding, Related) ── */
body.v2 .recipe-section {
    display: flex;
    flex-direction: column;
    gap: var(--s-5);
}
body.v2 .recipe-section-title {
    font: var(--t-h2);
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0;
}
body.v2 .recipe-section-sub {
    font: var(--t-body-sm);
    color: var(--text-tertiary);
    margin: calc(var(--s-2) * -1) 0 0;
}

/* ── Ingredient checklist ── */
body.v2 .ingredient-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--s-2);
}
body.v2 .ingredient-item {
    background: var(--bg-muted);
    border-radius: var(--r-md);
    transition: background 140ms ease;
}
body.v2 .ingredient-item:hover { background: var(--bg-raised); }
body.v2 .ingredient-check {
    display: flex;
    align-items: center;
    gap: var(--s-4);
    padding: var(--s-4) var(--s-5);
    cursor: pointer;
    width: 100%;
    min-height: 48px;          /* thumb-friendly */
}
body.v2 .ingredient-check input[type=checkbox] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
body.v2 .ingredient-check-box {
    width: 22px;
    height: 22px;
    border-radius: var(--r-xs);
    border: 1.5px solid var(--border-default);
    background: var(--bg-canvas);
    flex-shrink: 0;
    position: relative;
    transition: background 140ms ease, border-color 140ms ease;
}
body.v2 .ingredient-check input:checked + .ingredient-check-box {
    background: var(--action-primary);
    border-color: var(--action-primary);
}
body.v2 .ingredient-check input:checked + .ingredient-check-box::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid var(--text-inverse);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
body.v2 .ingredient-check input:focus-visible + .ingredient-check-box {
    outline: 2px solid var(--action-primary);
    outline-offset: 2px;
}
body.v2 .ingredient-text {
    font: var(--t-body);
    color: var(--text-primary);
    transition: color 140ms ease;
}
body.v2 .ingredient-check input:checked ~ .ingredient-text {
    color: var(--text-tertiary);
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}
body.v2 .btn-shopping-detail {
    align-self: flex-start;
    margin-top: var(--s-3);
}

/* ── Step list (numbered) ── */
body.v2 .step-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
    counter-reset: recipe-step;
}
body.v2 .step-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: var(--s-5);
    align-items: flex-start;
    padding: var(--s-5);
    background: var(--bg-muted);
    border-radius: var(--r-lg);
}
body.v2 .step-number {
    width: 36px;
    height: 36px;
    border-radius: var(--r-full);
    background: var(--action-primary);
    color: var(--text-inverse);
    font: var(--t-label);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
body.v2 .step-text {
    font: var(--t-body);
    color: var(--text-primary);
    margin: 0;
    padding-top: 6px;          /* visual baseline-align with circle */
}

/* ── Disclaimer ── */
body.v2 .recipe-disclaimer {
    background: var(--bg-muted);
    border-left: 3px solid var(--border-strong);
    border-radius: var(--r-md);
    padding: var(--s-5) var(--s-6);
}
body.v2 .recipe-disclaimer p {
    margin: 0;
    font: var(--t-body-sm);
    color: var(--text-secondary);
}

/* ── Related grid ── */
body.v2 .related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--s-5);
}
body.v2 .related-card {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
    text-decoration: none;
    color: inherit;
    border-radius: var(--r-lg);
    padding: var(--s-3);
    transition: background 160ms ease, transform 160ms ease;
}
body.v2 .related-card:hover {
    background: var(--bg-muted);
    transform: translateY(-2px);
}
body.v2 .related-cover {
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: var(--r-md);
    overflow: hidden;
    position: relative;
}
body.v2 .related-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
body.v2 .related-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: var(--s-2) var(--s-2) var(--s-3);
}
body.v2 .related-title {
    font: var(--t-label);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
}
body.v2 .related-meta {
    font: var(--t-caption);
    color: var(--text-tertiary);
}

/* ── Gradient placeholder palette ──
   Six deterministic wellness-tone gradients. Slug-hashed in the build script
   so the same recipe always gets the same cover. Each gradient is muted
   enough to live alongside the B/W brand without competing with it.
   When a real photo lands at /images/recipes/[slug].jpg, the <img> sits on
   top and the gradient becomes a fallback (also visible during decode). */
body.v2 .hero-cover-1 { background: linear-gradient(135deg, #f7f3ee 0%, #e6ddd0 100%); }
body.v2 .hero-cover-2 { background: linear-gradient(135deg, #eef1f3 0%, #d8e0e6 100%); }
body.v2 .hero-cover-3 { background: linear-gradient(135deg, #f4ece8 0%, #e3d3ca 100%); }
body.v2 .hero-cover-4 { background: linear-gradient(135deg, #2a2a2a 0%, #161616 100%); }
body.v2 .hero-cover-5 { background: linear-gradient(135deg, #e8ebe4 0%, #ced6c1 100%); }
body.v2 .hero-cover-6 { background: linear-gradient(135deg, #f0e8e8 0%, #ddcfcf 100%); }
/* Subtle radial inner-light on every cover. Sits above the linear gradient
   without affecting an overlaid <img>. */
body.v2 .recipe-hero-media[class*="hero-cover-"]::before,
body.v2 .related-cover[class*="hero-cover-"]::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 80% at 30% 20%, rgba(255,255,255,.35), transparent 60%);
    pointer-events: none;
}
body.v2 .recipe-hero-media[class*="hero-cover-"],
body.v2 .related-cover[class*="hero-cover-"] { position: relative; }

/* ── Recipe-detail responsive: tablet ── */
@media (max-width: 900px) {
    body.v2 .recipe-hero {
        grid-template-columns: 1fr;
        gap: var(--s-7);
    }
    body.v2 .recipe-meta-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: var(--s-6);
    }
    body.v2 .recipe-meta-cell:nth-child(3n) { border-right: 0; }
    body.v2 .ingredient-list {
        grid-template-columns: 1fr;
    }
}

/* ───────────────  Tablet: how-it-works stacks  ─────────────── */
@media (max-width: 760px) {
    body.v2 .home-how-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--s-8);
        justify-items: center;
    }
    body.v2 .how-steps { width: 100%; }
}

/* ───────────────  Mobile refinements  ─────────────── */
@media (max-width: 519px) {
    body.v2 .container {
        padding: var(--s-7) var(--s-5) var(--s-12);
        gap: var(--s-5);
    }
    body.v2 .container > .card.is-hero > h2 { font: var(--t-h2); }
    body.v2 .container > .card.is-hero > .muted { margin-bottom: var(--s-7); }
    body.v2 .card { padding: var(--s-5); border-radius: var(--r-2xl); }
    body.v2 .phase-panel { gap: var(--s-4); }
    body.v2 .phase-panel h3 { font: var(--t-h4); }
    body.v2 .tip-card {
        grid-template-columns: minmax(0, 1fr) 96px;
        gap: var(--s-4);
        padding: var(--s-4);
        border-radius: var(--r-2xl);
    }
    body.v2 .tip-media {
        border-radius: var(--r-lg);
        width: 96px;
        max-width: 100%;
    }
    body.v2 .tips-table th,
    body.v2 .tips-table td { padding: var(--s-4) var(--s-5); }
    body.v2 .schedule-header { flex-direction: column; }
    body.v2 .stats-grid {
        padding: var(--s-5);
        gap: var(--s-3);
        border-radius: var(--r-2xl);
    }
    body.v2 .ring-wrap { max-width: 88px; }
    body.v2 .ring-value { font: var(--t-label); font-weight: 600; }
    body.v2 .home-hero { padding: var(--s-9) var(--s-5); border-radius: var(--r-3xl); }
    body.v2 .home-hero h1 { font: var(--t-h1); letter-spacing: -0.022em; max-width: 100%; }
    body.v2 .home-hero p { font: var(--t-body); }
    body.v2 .page-hero { padding: var(--s-8) var(--s-5); border-radius: var(--r-3xl); }
    body.v2 .page-hero h1 { font: var(--t-h1); letter-spacing: -0.022em; max-width: 100%; }
    body.v2 .page-hero p { font: var(--t-body); }
    body.v2 .home-hero-actions { gap: var(--s-3); margin-top: var(--s-7); }
    body.v2 .btn-hero-primary { width: 100%; justify-content: center; padding: 14px var(--s-6); }
    body.v2 .btn-hero-secondary { width: 100%; justify-content: center; }
    body.v2 .home-trust { margin-top: var(--s-7); gap: var(--s-2); }
    body.v2 .home-trust-item { font-size: 13px; padding: 8px 12px 8px 8px; }
    body.v2 .home-trust-icon { width: 24px; height: 24px; }
    body.v2 .home-trust-icon svg { width: 13px; height: 13px; }
    body.v2 .hero-blob-1 { width: 240px; height: 240px; }
    body.v2 .hero-blob-2 { width: 220px; height: 220px; }
    body.v2 .hero-blob-3 { width: 200px; height: 200px; }
    body.v2 .hero-blob-4 { width: 160px; height: 160px; }
    body.v2 .home-how { padding-top: var(--s-7); }
    body.v2 .home-how-intro { margin-bottom: var(--s-7); }
    body.v2 .home-how-intro h2 { font: var(--t-h2); }
    body.v2 .home-how-subtitle { font: var(--t-body); }
    body.v2 .home-how-grid { gap: var(--s-7); }
    body.v2 .phone-frame { width: 240px; height: 480px; border-radius: 38px; padding: 8px; }
    body.v2 .phone-notch { width: 80px; height: 20px; top: 14px; }
    body.v2 .phone-screen { border-radius: 30px; padding: 44px 14px 14px; }
    body.v2 .phone-rings { gap: var(--s-2); }
    body.v2 .phone-ring { width: 24px; height: 24px; }
    body.v2 .phone-event { padding: 8px 10px; grid-template-columns: 36px 8px 1fr auto; gap: 8px; }
    body.v2 .how-step {
        padding: var(--s-5);
        border-radius: var(--r-2xl);
        grid-template-columns: 40px 1fr;
        gap: var(--s-4);
    }
    body.v2 .how-step-num { width: 36px; height: 36px; font-size: 16px; }
    body.v2 .how-step-icon { width: 30px; height: 30px; }
    body.v2 .how-step-icon svg { width: 15px; height: 15px; }
    body.v2 .how-step-head h3 { font: var(--t-h4); font-size: 16px; }
    body.v2 .how-step-body p { font: var(--t-body-sm); }
    body.v2 .card.disclaimer {
        grid-template-columns: 36px 1fr;
        gap: var(--s-4);
    }
    body.v2 .card.disclaimer .disclaimer-icon { width: 36px; height: 36px; }
    body.v2 .card.disclaimer .disclaimer-icon svg { width: 18px; height: 18px; }
    body.v2 .cookie-banner { padding: var(--s-5); border-radius: var(--r-2xl); }
    body.v2 .nav-drawer-panel a { font: var(--t-body); padding: var(--s-3) var(--s-4); }
    body.v2 .shopping-recipe {
        flex-direction: column;
        align-items: stretch;
        gap: var(--s-3);
    }
    body.v2 .shopping-recipe-qty { justify-content: flex-end; }
    body.v2 .shopping-total {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    body.v2 .shopping-total-from { text-align: left; }
    body.v2 .tour-card { padding: var(--s-5); border-radius: var(--r-2xl); }
    body.v2 .tour-preview { padding: var(--s-4); }
    body.v2 .tp-stats { gap: var(--s-3); }
    body.v2 .tp-ring svg { width: 56px; height: 56px; }
    body.v2 .tp-ring-val { top: 18px; }
    body.v2 .tp-cal-row { grid-template-columns: 36px 1fr 36px; }

    /* Recipe detail */
    body.v2 .recipe-article { gap: var(--s-7); }
    body.v2 .recipe-hero-title { font: var(--t-h2); }
    body.v2 .recipe-hero-desc { font: var(--t-body); }
    body.v2 .recipe-meta-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: var(--s-5) 0;
    }
    body.v2 .recipe-meta-cell {
        padding: var(--s-2) var(--s-4);
        border-right: 0;
    }
    body.v2 .recipe-meta-cell:nth-child(2n - 1) {
        border-right: 1px solid var(--border-subtle);
    }
    body.v2 .recipe-meta-value { font: var(--t-h3); }
    body.v2 .step-item {
        grid-template-columns: 32px 1fr;
        gap: var(--s-4);
        padding: var(--s-4);
    }
    body.v2 .step-number { width: 28px; height: 28px; font-size: 13px; }
    body.v2 .step-text { padding-top: 4px; }
    body.v2 .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--s-4);
    }
    body.v2 .related-card { padding: var(--s-2); }

    /* Diary page — narrower layout */
    body.v2 .diary-tabs { flex-wrap: wrap; }
    body.v2 .diary-actions { grid-template-columns: 1fr; }
    body.v2 .favorites-table thead { display: none; }
    body.v2 .favorites-table,
    body.v2 .favorites-table tbody,
    body.v2 .favorites-table tr {
        display: block;
        width: 100%;
    }
    body.v2 .favorites-table tr {
        display: grid;
        grid-template-columns: 72px 1fr 36px;
        gap: var(--s-4);
        padding: var(--s-4);
        border: 1px solid var(--border-subtle);
        border-radius: var(--r-2xl);
        margin-bottom: var(--s-3);
        align-items: center;
    }
    body.v2 .favorites-table td {
        display: block;
        padding: 0;
        border: 0;
    }
    body.v2 .favorites-table .fav-photo {
        width: 72px;
        height: 72px;
        border-radius: var(--r-lg);
    }
    body.v2 .favorites-table .fav-col-meta { grid-column: 2 / 3; }
    body.v2 .favorites-table .fav-col-act { grid-column: 3 / 4; justify-self: end; }
    body.v2 .timeline-entry {
        grid-template-columns: 56px 1fr 28px;
        gap: var(--s-3);
    }
    body.v2 .diary-modal-card { max-width: 92vw; }
}

/* ─────────────────────  Diary page (dagboek.html)  ─────────────────────
   Two-tab layout: timeline of dumpings + notities on one side, favourites
   table on the other. Reuses the site's neutral palette + existing card
   tokens. */
body.v2 .diary-tabs {
    display: flex;
    gap: var(--s-2);
    flex-wrap: wrap;
    margin: 0 0 var(--s-7);
    padding: var(--s-2);
    background: var(--bg-raised);
    border-radius: var(--r-full);
    border: 1px solid var(--border-subtle);
}
body.v2 .diary-tab {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-3);
    padding: var(--s-3) var(--s-5);
    border: 0;
    background: transparent;
    color: var(--text-secondary);
    font: var(--t-label);
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--r-full);
    transition: background-color .15s ease, color .15s ease;
    min-height: 40px;
}
body.v2 .diary-tab:hover { color: var(--text-primary); }
body.v2 .diary-tab.is-active {
    background: var(--c-gray-900);
    color: var(--text-inverse);
}
body.v2 .diary-tab-icon { width: 18px; height: 18px; flex-shrink: 0; }

body.v2 .diary-panel { margin: 0; padding: 0; }
body.v2 .diary-panel[hidden] { display: none; }

body.v2 .diary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-4);
    margin-bottom: var(--s-9);
}
body.v2 .btn-diary-add {
    display: inline-flex;
    align-items: center;
    gap: var(--s-4);
    padding: var(--s-5);
    border-radius: var(--r-2xl);
    border: 1px solid var(--border-subtle);
    background: var(--bg-canvas);
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
    transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
    box-shadow: var(--shadow-xs);
}
body.v2 .btn-diary-add:hover {
    border-color: var(--text-primary);
    transform: translateY(-1px);
}
body.v2 .btn-diary-add-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--bg-raised);
    color: var(--text-primary);
}
body.v2 .btn-diary-add-icon svg { width: 20px; height: 20px; display: block; }
body.v2 .btn-diary-add.is-dumping .btn-diary-add-icon { background: #fbe9e6; color: #c0392b; }
body.v2 .btn-diary-add.is-note    .btn-diary-add-icon { background: #e4ecfd; color: #2563eb; }
body.v2 .btn-diary-add-text { display: flex; flex-direction: column; min-width: 0; }
body.v2 .btn-diary-add-title { font: var(--t-body); font-weight: 600; }
body.v2 .btn-diary-add-sub { font: var(--t-caption); color: var(--text-tertiary); margin-top: 2px; }

body.v2 .diary-section-title {
    font: var(--t-h4);
    color: var(--text-primary);
    margin: var(--s-5) 0 var(--s-5);
    letter-spacing: -0.01em;
}

body.v2 .diary-empty {
    padding: var(--s-7);
    text-align: center;
    background: var(--bg-muted);
    border-radius: var(--r-2xl);
    margin: var(--s-5) 0 0;
}
body.v2 .diary-empty a { color: var(--text-primary); }

/* Timeline (#timeline) — date headings with day-grouped entries. */
body.v2 .diary-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 2px solid var(--border-subtle);
    margin-left: var(--s-3);
}
body.v2 .timeline-day { padding: 0 0 var(--s-7) var(--s-7); position: relative; }
body.v2 .timeline-day-head {
    display: inline-flex;
    align-items: center;
    gap: var(--s-3);
    margin: 0 0 var(--s-4);
    padding-left: 0;
}
body.v2 .timeline-date-dot {
    width: 14px;
    height: 14px;
    background: var(--c-gray-900);
    border-radius: 50%;
    margin-left: calc(-1 * var(--s-7) - 7px);
    box-shadow: 0 0 0 4px var(--bg-canvas);
}
body.v2 .timeline-date-label {
    font: var(--t-label);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
}
body.v2 .timeline-entries {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
}
body.v2 .timeline-entry {
    display: grid;
    grid-template-columns: 70px 1fr 32px;
    gap: var(--s-4);
    padding: var(--s-4) var(--s-5);
    background: var(--bg-canvas);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-xl);
    align-items: start;
}
body.v2 .timeline-entry.is-dumping {
    background: #fef2f2;
    border-color: #fecaca;
}
body.v2 .timeline-time {
    font: var(--t-body);
    font-weight: 600;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}
body.v2 .timeline-body { min-width: 0; }
body.v2 .timeline-tag {
    display: inline-block;
    font-size: 0.6875rem;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--bg-raised);
    color: var(--text-secondary);
    margin-bottom: 6px;
}
body.v2 .timeline-tag.is-dumping { background: #c0392b; color: #fff; }
body.v2 .timeline-text {
    margin: 0;
    font: var(--t-body);
    color: var(--text-primary);
    word-wrap: break-word;
    overflow-wrap: anywhere;
}
body.v2 .timeline-remove {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 0;
    background: transparent;
    color: var(--text-tertiary);
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    align-self: start;
}
body.v2 .timeline-remove:hover { background: var(--action-secondary); color: var(--text-primary); }

/* Favourites table */
body.v2 .favorites-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
body.v2 .favorites-table thead th {
    text-align: left;
    font: var(--t-overline);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
    padding: var(--s-3) var(--s-4);
    border-bottom: 1px solid var(--border-subtle);
    font-weight: 600;
}
body.v2 .favorites-table tbody tr {
    transition: background-color .15s ease;
}
body.v2 .favorites-table tbody tr:hover { background: var(--bg-raised); }
body.v2 .favorites-table td {
    padding: var(--s-4);
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: middle;
}
body.v2 .favorites-table tbody tr:last-child td { border-bottom: 0; }
body.v2 .fav-col-photo { width: 88px; }
body.v2 .fav-photo {
    display: block;
    width: 72px;
    height: 72px;
    border-radius: var(--r-xl);
    overflow: hidden;
    background: var(--bg-raised);
    color: var(--c-gray-700);
}
body.v2 .fav-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.v2 .fav-photo svg { width: 60%; height: 60%; margin: 20% auto; display: block; }
body.v2 .fav-title-link {
    display: block;
    font: var(--t-body);
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.01em;
}
body.v2 .fav-title-link:hover { color: var(--text-secondary); text-decoration: underline; }
body.v2 .fav-link-cta {
    display: block;
    margin-top: 2px;
    font: var(--t-caption);
    color: var(--text-tertiary);
}
body.v2 .fav-col-meta { display: flex; flex-wrap: wrap; gap: var(--s-2); }
body.v2 .fav-remove {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    background: var(--bg-canvas);
    color: #c0392b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background-color .15s ease, border-color .15s ease;
}
body.v2 .fav-remove svg { width: 16px; height: 16px; display: block; }
body.v2 .fav-remove:hover {
    background: #fbe9e6;
    border-color: #c0392b;
}

/* Diary modal */
body.v2 .diary-modal-card {
    width: min(440px, 100%);
    padding: 0;
}
body.v2 .diary-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--s-5) var(--s-7);
    border-bottom: 1px solid var(--border-subtle);
}
body.v2 .diary-modal-head h3 {
    margin: 0;
    font: var(--t-h4);
    color: var(--text-primary);
    letter-spacing: -0.01em;
}
body.v2 .diary-modal-close {
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: var(--text-tertiary);
    font-size: 24px;
    line-height: 1;
    border-radius: 50%;
}
body.v2 .diary-modal-close:hover { background: var(--action-secondary); color: var(--text-primary); }
body.v2 .diary-modal-body {
    padding: var(--s-7);
    display: flex;
    flex-direction: column;
    gap: var(--s-5);
}
body.v2 .diary-modal-body .field { display: flex; flex-direction: column; gap: var(--s-2); }
body.v2 .diary-modal-body label { font: var(--t-label); font-weight: 600; color: var(--text-secondary); }
body.v2 .diary-modal-body input[type="time"],
body.v2 .diary-modal-body textarea {
    width: 100%;
    padding: var(--s-3) var(--s-4);
    border: 1px solid var(--border-default);
    border-radius: var(--r-lg);
    font: var(--t-body);
    background: var(--bg-canvas);
    color: var(--text-primary);
}
body.v2 .diary-modal-body textarea { resize: vertical; min-height: 96px; }
body.v2 .diary-modal-body .modal-actions {
    display: flex;
    gap: var(--s-3);
    justify-content: flex-end;
    margin-top: var(--s-3);
}

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

/* ───────────── Legal documents (privacy, voorwaarden) ───────────── */
body.v2 .legal-doc { line-height: 1.6; }
body.v2 .legal-doc h2 {
    font: var(--t-h3);
    color: var(--text-primary);
    margin: var(--s-9) 0 var(--s-3);
    letter-spacing: -0.01em;
}
body.v2 .legal-doc h2:first-of-type { margin-top: var(--s-5); }
body.v2 .legal-doc p { margin: 0 0 var(--s-4); color: var(--text-primary); }
body.v2 .legal-doc ul {
    margin: 0 0 var(--s-5) var(--s-4);
    padding-left: var(--s-5);
}
body.v2 .legal-doc li { margin-bottom: var(--s-2); }
body.v2 .legal-doc a {
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}
body.v2 .legal-doc a:hover { color: var(--text-secondary); }
body.v2 .legal-doc table.tips-table {
    width: 100%;
    margin: var(--s-3) 0 var(--s-5);
}
body.v2 .legal-meta { margin-top: var(--s-9); }

/* ───────────── Cookie banner (GDPR-compliant layered design) ─────────────
   Intentionally NOT scoped to body.v2 so it also works on legacy pages
   (tips.html). */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner.is-aligned {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-5);
    padding: var(--s-7);
    border-radius: var(--r-2xl);
    background: var(--bg-canvas);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    max-width: 640px;
    margin: 0 auto;
}
.cookie-banner.is-aligned .cookie-head {
    display: flex;
    align-items: center;
    gap: var(--s-3);
}
.cookie-banner.is-aligned .cookie-head svg {
    width: 22px;
    height: 22px;
    color: var(--text-primary);
    flex-shrink: 0;
}
.cookie-banner.is-aligned .cookie-title {
    margin: 0;
    font: var(--t-h4);
    color: var(--text-primary);
    letter-spacing: -0.01em;
}
.cookie-banner.is-aligned .cookie-text {
    margin: 0;
    font: var(--t-body);
    color: var(--text-secondary);
}
.cookie-banner.is-aligned .cookie-details {
    margin: 0;
    border-top: 1px dashed var(--border-subtle);
    padding-top: var(--s-4);
}
.cookie-banner.is-aligned .cookie-details summary {
    cursor: pointer;
    font: var(--t-label);
    font-weight: 600;
    color: var(--text-primary);
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
}
.cookie-banner.is-aligned .cookie-details summary::-webkit-details-marker { display: none; }
.cookie-banner.is-aligned .cookie-details summary::after {
    content: "▾";
    font-size: 0.75rem;
    transition: transform .15s ease;
}
.cookie-banner.is-aligned .cookie-details[open] summary::after {
    transform: rotate(180deg);
}
.cookie-banner.is-aligned .cookie-details ul {
    margin: var(--s-3) 0 0;
    padding-left: var(--s-5);
    font: var(--t-caption);
    color: var(--text-secondary);
    line-height: 1.55;
}
.cookie-banner.is-aligned .cookie-details li { margin-bottom: var(--s-2); }
.cookie-banner.is-aligned .cookie-links {
    font: var(--t-caption);
    color: var(--text-tertiary);
    margin: 0;
}
.cookie-banner.is-aligned .cookie-links a {
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}
body.v2 .cookie-banner.is-aligned .cookie-links,
body.v2 .cookie-banner.is-aligned .cookie-links a {
    color: var(--text-inverse);
}
body.v2 .cookie-banner.is-aligned .cookie-title,
body.v2 .cookie-banner.is-aligned .cookie-head svg,
body.v2 .cookie-banner.is-aligned .cookie-details summary {
    color: var(--text-inverse);
}
.cookie-banner.is-aligned .cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-3);
    margin: 0;
}
.cookie-banner.is-aligned .cookie-actions .btn {
    width: 100%;
    justify-content: center;
    padding: var(--s-4) var(--s-5);
}
@media (max-width: 519px) {
    .cookie-banner.is-aligned { padding: var(--s-5); }
    .cookie-banner.is-aligned .cookie-actions {
        grid-template-columns: 1fr;
    }
}

/* ───────────── Profile gate (incomplete profile → blocking modal) ───────────── */
.profile-gate { z-index: 110; }
.profile-gate .profile-gate-card {
    max-width: 440px;
    padding: var(--s-7);
    border-radius: var(--r-2xl);
    background: var(--bg-canvas);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-xl);
    text-align: left;
    gap: var(--s-4);
}
.profile-gate .profile-gate-icon {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: var(--bg-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}
.profile-gate .profile-gate-icon svg { width: 22px; height: 22px; }
.profile-gate .modal-title {
    font: var(--t-h4);
    color: var(--text-primary);
    letter-spacing: -0.01em;
}
.profile-gate .modal-subtitle {
    font: var(--t-body);
    color: var(--text-secondary);
    line-height: 1.55;
}
.profile-gate .modal-actions {
    margin-top: var(--s-3);
    justify-content: stretch;
}
.profile-gate .profile-gate-cta {
    width: 100%;
    justify-content: center;
    padding: var(--s-4) var(--s-5);
}
