/* Tafel vol kleur — violet, sunshine, coral and sky. No green UI palette.
   --green/--green-soft remain compatibility aliases for shared legacy components. */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src:
    url('/fonts/nunito-variable.woff2') format('woff2'),
    url('/fonts/nunito-variable.ttf') format('truetype');
}
.bottom-nav {
  display: none;
}
.ui-icon {
  width: 22px;
  height: 22px;
  flex: none;
  vertical-align: middle;
}
@media screen {
  :root {
    --accent: #6337cf;
    --accent-soft: #eee6ff;
    --sun: #ffda58;
    --sky: #cdeaff;
    --pink: #ffdbe9;
    --bg: #faf7ff;
    --paper: #fff;
    --text: #29203e;
    --muted: #665c78;
    --green: var(--accent);
    --green-soft: var(--accent-soft);
    --line: #e3dbee;
    --peach: #fff0de;
    --orange: #a34421;
    --red: #ae294e;
    --primary-bg: #6337cf;
    --on-primary: #fff;
    --field: #fff;
    --surface-soft: #f2ecfc;
    --today: #6337cf;
    --ink-soft: #665c78;
    --card-shadow: 0 5px 0 #30204b0b;
    --coral-soft: #ffe5de;
    --blue-soft: #e2f1ff;
    --gold-soft: #fff1ba;
    --choice-yes: #eee6ff;
    --choice-yes-ink: #29203e;
    --choice-no-ink: #29203e;
    --choice-maybe-ink: #29203e;
    --choice-unknown-ink: #29203e;
    --field-line: #9b8caf;
    font-size: 17px;
    line-height: 1.6;
  }
  :root[data-theme='dark'] {
    --accent: #c5acff;
    --accent-soft: #3c2c60;
    --sun: #ffda58;
    --sky: #254465;
    --pink: #59314e;
    --bg: #1d172c;
    --paper: #2a223c;
    --text: #faf5ff;
    --muted: #c6b9d6;
    --green: var(--accent);
    --green-soft: var(--accent-soft);
    --line: #514362;
    --peach: #4e3426;
    --orange: #ffc08e;
    --red: #ffb3c3;
    --primary-bg: #cab3ff;
    --on-primary: #291449;
    --field: #302740;
    --surface-soft: #352a49;
    --today: #cab3ff;
    --ink-soft: #c6b9d6;
    --coral-soft: #583447;
    --blue-soft: #283d57;
    --gold-soft: #4a3d21;
    --choice-yes: var(--accent-soft);
    --choice-yes-ink: var(--text);
    --choice-no-ink: var(--text);
    --choice-maybe-ink: var(--text);
    --choice-unknown-ink: var(--text);
    --field-line: #aa99bf;
    --card-shadow: 0 5px 0 #100b1a55;
  }
  body {
    background: var(--bg);
    background-image: none;
    font-family: 'Nunito', sans-serif;
    letter-spacing: 0;
  }
  h1,
  h2,
  h3,
  .brand {
    font-family: 'Nunito', sans-serif;
    color: var(--text);
  }
  h1 {
    font-size: clamp(32px, 3.6vw, 46px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.2px;
    margin-bottom: 12px;
  }
  h2 {
    font-size: 25px;
    font-weight: 850;
    line-height: 1.25;
    letter-spacing: -0.6px;
  }
  h3 {
    font-size: 19px;
    line-height: 1.35;
    letter-spacing: -0.25px;
  }
  .lead {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
    color: var(--muted);
  }
  .help,
  .meta,
  .person-line p,
  .meal-person p,
  .plan-row p,
  .over-content p,
  .over-content li {
    font-size: 14px;
    line-height: 1.6;
  }
  small,
  .footer-info,
  .saved-indicator {
    font-size: 13px;
    line-height: 1.5;
  }
  .eyebrow {
    font-size: 11px;
    line-height: 1.5;
    font-weight: 600;
    letter-spacing: 0.09em;
    color: var(--muted);
    background: none;
    padding: 0;
    margin-bottom: 10px;
    border-radius: 0;
  }
  .top {
    height: 88px;
    max-width: 1320px;
    border: 0;
    padding: 0 40px;
  }
  .brand {
    color: var(--text);
    font-size: 29px;
    font-weight: 900;
    letter-spacing: -1px;
    gap: 10px;
    white-space: nowrap;
  }
  .brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 0;
    background: none;
    box-shadow: none;
    transform: none;
    flex-shrink: 0;
  }
  .brand-icon img {
    display: block;
    width: 42px;
    height: 42px;
  }
  :root[data-theme='dark'] .brand-icon {
    background: #f8f6f1;
    border-radius: 50%;
  }
  .top-actions {
    gap: 14px;
  }
  .top .text-button {
    font-size: 14px;
  }
  .theme-toggle {
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 10px 12px;
    min-height: 44px;
    box-shadow: none;
    font-size: 14px;
  }
  .app-shell {
    max-width: 1320px;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 48px;
    padding: 0 40px;
  }
  aside {
    padding: 24px 0 0;
    border: 0;
  }
  .nav-title {
    font-size: 10px;
    letter-spacing: 0.07em;
    line-height: 1.7;
    margin-bottom: 26px;
    color: var(--muted);
  }
  #nav {
    gap: 24px;
  }
  .nav-group {
    border: 0;
  }
  .nav-group h2 {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 0.07em;
    color: var(--muted);
    margin: 0 0 8px;
  }
  nav button {
    border-radius: 12px;
    min-height: 48px;
    padding: 11px 12px;
    font-size: 14px;
    font-weight: 500;
    gap: 12px;
    color: var(--muted);
    line-height: 1.4;
  }
  nav button.active {
    background: var(--green-soft);
    color: var(--green);
    box-shadow: none;
    font-weight: 700;
  }
  .nav-symbol,
  .nav-group:nth-child(2) .nav-symbol {
    width: 22px;
    color: inherit;
  }
  .local-note {
    font-size: 12px;
    margin-top: 30px;
  }
  .local-note small {
    font-size: 12px;
  }
  main {
    padding: 26px 0 40px;
    min-width: 0;
  }
  button:focus-visible,
  a:focus-visible,
  input:focus-visible,
  select:focus-visible,
  textarea:focus-visible,
  summary:focus-visible {
    outline: 3px solid var(--green);
    outline-offset: 4px;
  }
  .primary,
  .secondary,
  .danger,
  .chip {
    font-size: 15px;
    line-height: 1.4;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 16px;
    font-weight: 800;
    box-shadow: none;
  }
  .primary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    background: var(--primary-bg);
    color: var(--on-primary);
    border-color: var(--primary-bg);
  }
  .primary:active:not(:disabled) {
    transform: none;
    box-shadow: none;
  }
  .primary .ui-icon {
    width: 18px;
    height: 18px;
  }
  .secondary {
    background: var(--paper);
    color: var(--green);
    border-color: var(--field-line);
  }
  .chip {
    border-radius: 100px;
    min-height: 44px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    background: var(--paper);
    color: var(--text);
  }
  .chip[aria-pressed='true'] {
    background: var(--primary-bg);
    color: var(--on-primary);
    border-color: var(--primary-bg);
  }
  .text-button {
    font-size: 14px;
    line-height: 1.45;
    min-height: 44px;
    padding: 10px 0;
    color: var(--green);
  }
  label {
    font-size: 15px;
    font-weight: 500;
    margin: 18px 0 7px;
  }
  input[type='text'],
  input:not([type]),
  input[type='search'],
  input[type='date'],
  input[type='number'],
  select,
  textarea {
    font-size: 16px;
    border-radius: 12px;
    border-color: var(--field-line);
    background: var(--field);
    color: var(--text);
    min-height: 48px;
    padding: 12px;
    line-height: 1.4;
    max-width: 100%;
  }
  .card,
  .week-day {
    border: 1px solid var(--line);
    border-radius: 25px;
    padding: 24px;
    background: var(--paper);
    box-shadow: var(--card-shadow);
  }
  .note {
    border: 0;
    border-radius: 16px;
    background: var(--green-soft);
    padding: 18px 20px;
    font-size: 15px;
  }
  .note.warm,
  .storage-alert {
    background: var(--peach);
    border: 1px solid var(--line);
  }
  .empty {
    border: 1px dashed var(--field-line);
    padding: 26px;
    border-radius: 18px;
  }
  .empty p {
    font-size: 15px;
  }
  .section-head {
    margin: 28px 0 16px;
  }
  .section-head h2 {
    font-size: 22px;
  }
  .identity-scope {
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: var(--green-soft);
    border: 0;
  }
  .identity-compact > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 14px;
    min-height: 28px;
    padding: 0;
    list-style: none;
    font-weight: 600;
    color: var(--green);
  }
  .identity-compact > summary::-webkit-details-marker {
    display: none;
  }
  .identity-change {
    font-size: 13px;
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .identity-compact[open] .identity-mode {
    margin-top: 18px;
  }
  .identity-compact .help {
    font-size: 13px;
  }
  .identity-personal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
  }
  .selection {
    gap: 8px;
    margin-bottom: 18px;
  }
  .identity-mode .chip {
    min-height: 44px;
    font-size: 14px;
  }
  .demo-bar {
    background: transparent;
    border: 1px solid var(--line);
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 12px;
    margin-bottom: 20px;
    color: var(--muted);
  }
  .demo-options > summary {
    min-height: 32px;
    font-size: 12px;
  }
  .demo-start {
    background: var(--green-soft);
    border: 0;
    border-radius: 16px;
  }
  .demo-start > summary {
    font-size: 15px;
    line-height: 1.5;
  }
  .demo-steps > button {
    background: var(--paper);
    border-color: var(--line);
  }
  .storage-notice {
    background: var(--surface-soft);
    border-radius: 14px;
    font-size: 14px;
  }
  .footer-info {
    margin-top: 28px;
    padding-top: 18px;
    color: var(--muted);
  }
  .app-legal {
    font-size: 13px;
    padding-top: 4px;
    gap: 4px 24px;
  }
  .app-legal a {
    color: var(--muted);
  }
  .week-intro {
    padding: 0;
    margin: 0 0 24px;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
  }
  .week-intro::after {
    display: none;
  }
  .week-intro h1 {
    color: var(--text);
    font-size: clamp(32px, 3.6vw, 46px);
    margin-bottom: 12px;
  }
  .week-intro .eyebrow {
    color: var(--muted);
    background: none;
    padding: 0;
    font-size: 11px;
  }
  .week-intro .lead {
    color: var(--muted);
    font-size: 16px;
  }
  .week-navigation {
    gap: 16px;
    align-items: end;
    margin: 20px 0 24px;
  }
  .week-navigation > .actions {
    gap: 8px;
    margin: 0;
  }
  .week-navigation .secondary {
    min-width: 48px;
    padding: 12px;
  }
  .week-navigation label {
    font-size: 13px;
    margin-top: 0;
  }
  .week-navigation input {
    padding: 12px;
    font-size: 16px;
  }
  .week-heading {
    gap: 16px;
    align-items: start;
    flex-wrap: wrap;
  }
  .week-heading h2 {
    font-size: 22px;
    line-height: 1.35;
    color: var(--text);
    margin: 8px 0;
  }
  .week-heading > .actions {
    margin: 0;
    gap: 10px;
  }
  .week-tools > summary {
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 13px;
    background: var(--paper);
    border-color: var(--field-line);
    font-size: 14px;
  }
  .quiet-help {
    font-size: 14px;
    color: var(--muted);
  }
  .quiet-help > summary {
    min-height: 44px;
    padding: 10px 0;
  }
  .week-days {
    display: grid;
    gap: 12px;
    margin: 16px 0 22px;
  }
  .week-day {
    padding: 20px;
    grid-template-columns: 92px minmax(0, 1fr);
    column-gap: 18px;
    row-gap: 8px;
    align-items: start;
  }
  .day-date {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 2px;
  }
  .day-date strong {
    font-size: 14px;
    background: none;
    color: var(--text);
    padding: 0;
    font-weight: 600;
  }
  .day-date span {
    font-size: 13px;
    color: var(--muted);
  }
  .day-date small {
    font-size: 12px;
    color: var(--green);
  }
  .week-day.is-today {
    border-color: var(--green);
    box-shadow: none;
    background: var(--surface-soft);
  }
  .week-day.is-today .day-date strong {
    background: none;
    color: var(--green);
  }
  .day-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
  }
  .day-title h3 {
    font-size: 18px;
    margin: 0;
  }
  .day-title .meal-visual {
    width: 58px;
    height: 58px;
    flex: none;
  }
  .day-meal h3 {
    font-size: 18px;
    margin-bottom: 6px;
  }
  .day-meal > small {
    font-size: 13px;
  }
  .day-meal > .help {
    font-size: 14px;
  }
  .day-theme {
    font-size: 12px;
    background: var(--peach);
    color: var(--orange);
    margin-bottom: 8px;
  }
  .attendance-summary {
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
    margin-bottom: 8px;
  }
  .week-day .day-actions {
    grid-column: 2;
    display: flex;
    flex-direction: row;
    align-items: start;
    gap: 18px;
    max-width: none;
    min-width: 0;
  }
  .day-actions > .secondary {
    font-size: 14px;
    min-height: 44px;
    padding: 10px 16px;
  }
  .day-more {
    font-size: 13px;
  }
  .day-more > summary {
    min-height: 44px;
    padding: 10px 0;
  }
  .day-more button {
    font-size: 14px;
  }
  .plan-agreements,
  .plan-passports {
    font-size: 14px;
  }
  .plan-agreements summary,
  .plan-passports summary {
    min-height: 44px;
  }
  .plan-agreements li,
  .plan-passports p {
    font-size: 14px;
  }
  .warning {
    color: var(--red);
    font-size: 14px;
    line-height: 1.55;
  }
  .meal-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    background: var(--surface-soft);
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    font-size: 0;
  }
  .meal-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .meal-visual img:not(:first-child) {
    display: none;
  }
  .meal-visual > .ui-icon {
    width: 32px;
    height: 32px;
    color: var(--green);
  }
  .meal-visual-hero {
    width: 100%;
    height: 220px;
    border-radius: 18px 18px 0 0;
    background: var(--green-soft);
    gap: 0;
    justify-content: center;
    padding: 18px 22px;
  }
  .meal-visual-hero img {
    display: block !important;
    width: 36%;
    height: auto;
    max-height: 190px;
    object-fit: contain;
    border-radius: 50%;
    margin: 0 -3%;
  }
  .meal-visual-hero img:first-child {
    width: 44%;
    position: relative;
    z-index: 1;
  }
  .recipe-options {
    display: grid;
    gap: 10px;
    margin-top: 16px;
  }
  .recipe-option {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 16px;
    text-align: left;
    min-height: 102px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
    color: var(--text);
  }
  .recipe-option strong {
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
  }
  .recipe-option small {
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
    display: block;
    margin-top: 5px;
  }
  .recipe-option > span:first-child {
    font-size: 16px;
  }
  .recipe-option > span:last-child {
    font-size: 19px;
    color: var(--green);
  }
  .detail-hero .meal-art {
    padding: 0;
    background: none;
    width: 88px;
    min-height: 88px;
    margin: 0;
  }
  .detail-hero .meal-visual {
    width: 88px;
    height: 88px;
  }
  .detail-hero h2 {
    font-size: 26px;
  }
  .detail-hero .eyebrow {
    color: var(--muted);
  }
  .catalogue-grid {
    gap: 16px;
  }
  .product-card {
    position: relative;
    gap: 8px;
    align-items: start;
  }
  .product-card h2 {
    font-size: 21px;
    letter-spacing: -0.5px;
    overflow-wrap: anywhere;
  }
  .product-card p {
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 6px;
  }
  .product-card .help {
    font-size: 13px;
  }
  .product-card .secondary {
    background: var(--paper);
    border-color: var(--field-line);
    font-size: 14px;
    width: 100%;
    margin-top: auto;
  }
  .product-card > .eyebrow {
    font-size: 10px;
    color: var(--muted);
  }
  .product-thumbnail {
    display: block;
    object-fit: contain;
    width: 88px;
    height: 88px;
    border-radius: 16px;
    margin-bottom: 8px;
    background: var(--surface-soft);
  }
  .catalogue-toolbar label {
    font-size: 14px;
  }
  .catalogue-toolbar button {
    min-height: 48px;
  }
  .catalogue-pages span {
    font-size: 14px;
  }
  .catalogue-pages {
    align-items: center;
  }
  .prefs-picker {
    padding: 0 16px;
    border-radius: 16px;
    background: var(--surface-soft);
    border-color: var(--line);
  }
  .prefs-picker > summary {
    font-size: 14px;
    min-height: 48px;
    padding: 12px 0;
    color: var(--green);
  }
  .food-item {
    font-size: 14px;
    min-height: 52px;
    padding: 10px;
  }
  .food-item small {
    font-size: 12px;
  }
  .food-item.selected {
    border-color: var(--field-line);
  }
  .preference-form > .eyebrow {
    font-size: 10px;
    color: var(--muted);
  }
  .preference-form h1,
  .preference-form h2 {
    font-size: 28px;
    line-height: 1.2;
    margin: 0 0 8px;
    letter-spacing: -0.7px;
  }
  .preference-form > .help {
    font-size: 14px;
  }
  .preference-form .fruit-picture {
    margin: 14px 0;
  }
  .fruit-picture {
    border-radius: 14px;
  }
  .fruit-picture > summary {
    padding: 10px 12px;
    min-height: 48px;
  }
  .picture-trigger-icon {
    background: var(--green-soft);
    color: var(--green);
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  .picture-trigger-label {
    font-size: 14px;
  }
  .picture-trigger-label small {
    font-size: 12px;
  }
  .picture-trigger-action {
    background: none;
    color: var(--green);
    font-size: 13px;
  }
  .fruit-picture figure {
    padding: 16px;
  }
  .fruit-picture img {
    max-width: 220px;
  }
  .fruit-picture figcaption {
    font-size: 14px;
  }
  .picture-caption-label {
    color: var(--muted);
  }
  .taste-choices {
    margin: 22px 0 14px;
  }
  .taste-choices legend {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 12px;
  }
  .taste-choices > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .taste-choice {
    margin: 0;
  }
  .taste-choice input[value] + span {
    background: var(--paper);
    color: var(--text);
    border: 1px solid var(--field-line);
    border-radius: 13px;
    min-height: 56px;
    font-size: 16px;
    font-weight: 500;
    padding: 14px 12px;
    justify-content: center;
  }
  .taste-choice input:checked + span {
    background: var(--primary-bg);
    color: var(--on-primary);
    border-color: var(--primary-bg);
    box-shadow: none;
    padding-right: 30px;
    font-weight: 600;
  }
  .taste-choice input:checked + span::after {
    right: 9px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    line-height: 1;
  }
  .taste-choice input:focus-visible + span {
    outline: 3px solid var(--green);
    outline-offset: 4px;
  }
  .preference-actions {
    position: static;
    border-top: 0;
    padding: 10px 0 0;
    margin-top: 14px;
    background: none;
  }
  .preference-actions > .primary {
    min-height: 50px;
    font-size: 16px;
  }
  .passport-extra,
  .passport-original {
    font-size: 14px;
  }
  .preference-tools {
    margin: 18px 0;
    font-size: 14px;
  }
  .preference-tools > summary {
    min-height: 48px;
    color: var(--green);
  }
  .round-launch {
    background: var(--surface-soft);
    margin: 12px 0;
    box-shadow: none;
  }
  .round-launch .primary {
    font-size: 14px;
  }
  .round-launch p {
    font-size: 14px;
  }
  .kompas h1,
  .kompas-question h1 {
    font-size: 30px;
    line-height: 1.25;
  }
  .kompas-option {
    font-size: 16px;
    min-height: 56px;
    padding: 14px;
    border-radius: 13px;
    border-color: var(--field-line);
  }
  .kompas-question {
    padding: 24px;
  }
  .kompas-question .kompas-answer-actions {
    position: static;
    background: none;
  }
  .kompas-progress {
    font-size: 14px;
  }
  .kompas-badge {
    font-size: 12px;
    background: var(--green-soft);
    color: var(--green);
  }
  .person-line p,
  .person-line .profile-options {
    font-size: 14px;
  }
  .person-actions .secondary {
    font-size: 14px;
    min-height: 44px;
  }
  .avatar {
    background: var(--green-soft);
    color: var(--green);
    font-size: 16px;
  }
  .person-line:nth-child(n) .avatar {
    background: var(--green-soft);
    color: var(--green);
  }
  .shopping-row {
    min-height: 62px;
    padding: 10px 0;
    gap: 14px;
  }
  .shopping-row label {
    font-size: 16px;
    line-height: 1.5;
    min-height: 44px;
  }
  .shopping-row input {
    width: 22px;
    height: 22px;
  }
  .shopping-row:has(input:checked) {
    background: var(--surface-soft);
  }
  .today-heading {
    margin-bottom: 24px;
  }
  .today-date {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 8px;
    text-transform: capitalize;
  }
  .today-heading h1 {
    margin-bottom: 8px;
  }
  .today-heading .lead {
    margin: 0;
  }
  .today-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
  }
  .today-meal {
    padding: 0;
    overflow: hidden;
  }
  .today-meal-body {
    padding: 24px;
  }
  .today-meal h2 {
    font-size: 26px;
    line-height: 1.25;
    margin-bottom: 16px;
  }
  .today-meal .primary {
    width: 100%;
    justify-content: space-between;
    margin-top: 8px;
  }
  .today-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 14px;
  }
  .today-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .today-meta .ui-icon {
    width: 20px;
    height: 20px;
  }
  .visual-caption {
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 12px;
  }
  .today-empty-art {
    background: var(--green-soft);
    min-height: 170px;
    display: grid;
    place-items: center;
  }
  .today-empty-art img {
    width: 96px;
    height: 96px;
  }
  :root[data-theme='dark'] .today-empty-art img {
    background: #f8f6f1;
    border-radius: 50%;
  }
  .today-agreements {
    background: var(--green-soft);
    border: 0;
    margin-top: 20px;
    padding: 22px;
  }
  .today-agreements h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    margin-bottom: 10px;
  }
  .today-agreements .plan-agreements {
    font-size: 15px;
  }
  .today-agreements ol {
    padding-left: 22px;
  }
  .today-agreements li {
    font-size: 15px;
    margin-bottom: 10px;
  }
  .today-agreements .help:last-child {
    margin: 14px 0 0;
    font-size: 13px;
  }
  .today-side {
    display: grid;
    gap: 12px;
  }
  .home-link {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 20px 18px;
    min-height: 88px;
    text-align: left;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--paper);
    color: var(--text);
  }
  .home-link > .ui-icon:first-child {
    width: 27px;
    height: 27px;
    color: var(--green);
  }
  .home-link > span {
    flex: 1;
    min-width: 0;
  }
  .home-link strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
  }
  .home-link small {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-top: 3px;
  }
  .home-link > .ui-icon:last-child {
    width: 18px;
    height: 18px;
    color: var(--green);
  }
  .today-presence {
    padding: 16px 4px;
  }
  .today-presence h2 {
    font-size: 18px;
  }
  .today-presence .attendance-summary {
    font-size: 14px;
  }
  dialog {
    background: var(--bg);
    padding: 26px;
    border-radius: 22px;
    border-color: var(--field-line);
  }
  dialog::backdrop {
    background: #25164080;
    backdrop-filter: none;
  }
  .toast {
    font-size: 15px;
    border-radius: 14px;
    background: var(--text);
    color: var(--bg);
  }
}
@media screen and (max-width: 1100px) {
  .app-shell {
    padding: 0 24px;
    gap: 28px;
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .top {
    padding: 0 24px;
  }
  .today-layout {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 18px;
  }
  .today-meal-body {
    padding: 20px;
  }
  .today-meal h2 {
    font-size: 24px;
  }
  .home-link {
    padding: 18px 14px;
    gap: 10px;
  }
  .home-link strong {
    font-size: 15px;
  }
  .home-link small {
    font-size: 12px;
  }
  .catalogue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .editor-layout {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 16px;
  }
}
@media screen and (max-width: 740px) {
  body {
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
  }
  .top {
    height: 76px;
    padding: 0 20px;
  }
  .brand {
    font-size: 25px;
    gap: 9px;
    letter-spacing: -0.8px;
  }
  .brand-icon,
  .brand-icon img {
    width: 38px;
    height: 38px;
  }
  .theme-toggle {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 13px;
  }
  .app-shell {
    display: block;
    padding: 0 20px;
  }
  .top-actions {
    gap: 8px;
  }
  main {
    padding: 12px 0 24px;
  }
  .app-shell > aside {
    padding: 0;
    border: 0;
  }
  .mobile-menu-toggle {
    display: none;
  }
  .app-shell > aside:not([data-nav-open='true']) #nav {
    display: none;
  }
  .app-shell > aside[data-nav-open='true'] {
    position: fixed;
    top: 76px;
    left: 12px;
    right: 12px;
    bottom: calc(84px + env(safe-area-inset-bottom));
    z-index: 40;
    padding: 14px 20px 22px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--paper);
    box-shadow: 0 12px 44px #27113d26;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .app-shell > aside[data-nav-open='true'] .mobile-menu-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;
    position: static;
    min-height: 44px;
    margin-bottom: 12px;
    padding: 8px 0;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    color: var(--green);
    box-shadow: none;
  }
  .mobile-menu-toggle strong {
    margin-left: auto;
    font-size: 13px;
  }
  .mobile-menu-toggle span {
    font-size: 14px;
  }
  #nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0;
  }
  .nav-group {
    display: block;
    border: 0;
    padding: 0;
  }
  .nav-group h2 {
    font-size: 11px;
    margin-bottom: 8px;
  }
  .nav-group button {
    display: flex;
    flex-direction: row;
    text-align: left;
    width: 100%;
    gap: 14px;
    min-height: 50px;
    padding: 12px;
    font-size: 15px;
  }
  .nav-symbol {
    font-size: 16px;
  }
  .bottom-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    gap: 10px;
    padding: 9px max(16px, env(safe-area-inset-right)) calc(9px + env(safe-area-inset-bottom))
      max(16px, env(safe-area-inset-left));
    background: var(--paper);
    border-top: 1px solid var(--line);
  }
  .bottom-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    min-height: 56px;
    border: 0;
    border-radius: 15px;
    padding: 7px 2px;
    background: none;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.3;
    font-weight: 500;
  }
  .bottom-nav .ui-icon {
    width: 23px;
    height: 23px;
  }
  .bottom-nav button[aria-current='page'],
  .bottom-nav button.is-current,
  .bottom-nav button[aria-expanded='true'] {
    color: var(--green);
    background: var(--green-soft);
    font-weight: 600;
  }
  h1 {
    font-size: 30px;
    letter-spacing: -1px;
  }
  h2 {
    font-size: 23px;
  }
  .lead {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .eyebrow {
    font-size: 10px;
    margin-bottom: 8px;
  }
  .card {
    padding: 20px;
  }
  .help {
    font-size: 14px;
  }
  .primary,
  .secondary {
    font-size: 15px;
    min-height: 48px;
  }
  .section-head h2 {
    font-size: 21px;
  }
  .demo-bar {
    margin-bottom: 16px;
    padding: 6px 10px;
    font-size: 11px;
    gap: 4px 8px;
  }
  .demo-options > summary {
    font-size: 11px;
    min-height: 32px;
  }
  .demo-options .text-button {
    font-size: 12px;
  }
  .storage-notice {
    font-size: 13px;
    padding: 12px;
  }
  .demo-start {
    margin-bottom: 20px;
  }
  .footer-info {
    font-size: 12px;
  }
  .app-legal {
    padding-bottom: 6px;
    gap: 4px 18px;
    font-size: 12px;
  }
  .app-legal a {
    min-height: 44px;
  }
  .identity-scope {
    padding: 12px 15px;
    margin-bottom: 16px;
  }
  .identity-compact > summary {
    min-height: 24px;
    font-size: 14px;
  }
  .selection {
    gap: 7px;
    margin-bottom: 16px;
  }
  .selection .chip {
    padding: 10px 14px;
    min-height: 44px;
    font-size: 14px;
  }
  .today-heading {
    margin-bottom: 20px;
  }
  .today-heading .lead {
    font-size: 15px;
  }
  .today-date {
    font-size: 13px;
  }
  .today-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .today-layout > div {
    width: 100%;
  }
  .today-meal {
    padding: 0;
    border-radius: 20px;
  }
  .meal-visual-hero {
    height: 180px;
    padding: 12px 24px;
  }
  .meal-visual-hero img {
    max-height: 166px;
  }
  .today-meal-body {
    padding: 20px;
  }
  .today-meal h2 {
    font-size: 24px;
    margin-bottom: 14px;
  }
  .today-meta {
    gap: 8px 22px;
    font-size: 14px;
    margin-bottom: 10px;
  }
  .today-agreements {
    padding: 19px;
    margin-top: 16px;
  }
  .today-agreements h2 {
    font-size: 19px;
  }
  .today-side {
    gap: 10px;
  }
  .home-link {
    padding: 18px;
    min-height: 82px;
    gap: 16px;
  }
  .home-link strong {
    font-size: 16px;
  }
  .home-link small {
    font-size: 13px;
  }
  .today-presence {
    padding: 14px 2px;
  }
  .week-intro {
    padding: 0;
    margin-bottom: 20px;
  }
  .week-intro h1 {
    font-size: 30px;
  }
  .week-intro .lead {
    font-size: 15px;
  }
  .week-intro .eyebrow {
    padding: 0;
    font-size: 10px;
  }
  .week-navigation {
    gap: 12px;
    margin: 18px 0;
  }
  .week-navigation > .actions {
    gap: 6px;
  }
  .week-navigation > .actions button {
    min-width: 44px;
    min-height: 48px;
    padding: 10px;
  }
  .week-navigation label {
    font-size: 12px;
  }
  .week-navigation input {
    padding: 11px 8px;
    min-height: 48px;
  }
  .week-heading {
    margin: 18px 0 12px;
  }
  .week-heading h2 {
    font-size: 21px;
    margin: 0;
  }
  .week-heading > .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
  }
  .week-heading > .actions button {
    font-size: 14px;
    min-height: 48px;
    padding: 10px;
  }
  .week-tools > summary {
    font-size: 14px;
    min-height: 48px;
    padding: 12px;
  }
  .week-days {
    gap: 12px;
    margin-top: 14px;
  }
  .week-day {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding: 17px;
    gap: 8px;
    border-radius: 17px;
  }
  .day-date {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }
  .day-date strong {
    font-size: 14px;
    padding: 0;
  }
  .day-date span {
    font-size: 13px;
  }
  .day-date small {
    margin-left: auto;
    font-size: 12px;
  }
  .day-title {
    gap: 12px;
    margin-bottom: 10px;
  }
  .day-title h3 {
    font-size: 18px;
  }
  .day-title .meal-visual {
    width: 56px;
    height: 56px;
  }
  .week-day .day-actions {
    grid-column: 1;
    gap: 18px;
    align-items: start;
    display: flex;
  }
  .day-actions > .secondary {
    flex: 1;
    min-height: 44px;
    font-size: 14px;
    padding: 10px 16px;
  }
  .day-actions > .day-more {
    flex: 1;
  }
  .day-more > summary {
    font-size: 13px;
  }
  .day-meal > .help {
    font-size: 14px;
  }
  .day-meal > small {
    font-size: 13px;
  }
  .editor-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .prefs-picker {
    padding: 0 15px;
    margin-bottom: 0;
  }
  .prefs-picker > summary {
    font-size: 14px;
    min-height: 48px;
  }
  .preference-form {
    padding: 18px;
  }
  .preference-form h1,
  .preference-form h2 {
    font-size: 27px;
  }
  .preference-form > .eyebrow {
    font-size: 10px;
  }
  .preference-form .fruit-picture {
    margin: 14px 0;
  }
  .fruit-picture summary {
    min-height: 48px;
    padding: 8px 10px;
  }
  .taste-choices legend {
    font-size: 18px;
  }
  .taste-choice input[value] + span {
    font-size: 15px;
    min-height: 56px;
    padding: 14px 8px;
  }
  .taste-choice input:checked + span {
    padding-right: 27px;
  }
  .taste-choice input:checked + span::after {
    right: 7px;
  }
  .preference-actions {
    padding-top: 8px;
  }
  .preference-actions > .primary {
    font-size: 16px;
    min-height: 50px;
  }
  .round-panel .preference-form {
    padding: 18px;
  }
  .round-panel .preference-actions {
    margin-top: 12px;
  }
  .round-navigation {
    font-size: 14px;
  }
  .round-navigation .help {
    font-size: 13px;
  }
  .round-context span {
    font-size: 13px;
  }
  .round-save-help {
    font-size: 13px !important;
  }
  .round-launch {
    padding: 16px;
  }
  .round-launch .primary {
    font-size: 14px;
  }
  .food-list {
    background: transparent;
  }
  .food-item {
    font-size: 14px;
  }
  .catalogue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .product-card {
    padding: 15px;
    gap: 8px;
  }
  .product-card h2 {
    font-size: 19px;
    letter-spacing: -0.4px;
  }
  .product-card p {
    font-size: 14px;
  }
  .product-card .help {
    font-size: 12px;
  }
  .product-card > .eyebrow {
    font-size: 9px;
    letter-spacing: 0.04em;
  }
  .product-card .secondary {
    font-size: 13px;
    min-height: 44px;
    padding: 10px 8px;
  }
  .product-thumbnail {
    width: 80px;
    height: 80px;
    margin-bottom: 4px;
  }
  .catalogue-toolbar {
    gap: 12px;
  }
  .catalogue-toolbar label {
    font-size: 14px;
  }
  .catalogue-toolbar > .secondary {
    min-height: 48px;
  }
  .recipe-option {
    grid-template-columns: 64px minmax(0, 1fr) 14px;
    gap: 12px;
    padding: 11px;
    min-height: 90px;
  }
  .recipe-option .meal-visual {
    width: 64px;
    height: 64px;
  }
  .recipe-option strong {
    font-size: 15px;
  }
  .recipe-option small {
    font-size: 12px;
  }
  .detail-hero {
    gap: 14px;
  }
  .detail-hero h2 {
    font-size: 24px;
  }
  .detail-hero .meal-art,
  .detail-hero .meal-visual {
    width: 72px;
    min-height: 72px;
    height: 72px;
  }
  .kompas h1,
  .kompas-question h1 {
    font-size: 27px;
  }
  .kompas-question {
    padding: 20px;
  }
  .kompas-option {
    font-size: 15px;
    min-height: 56px;
    padding: 12px;
  }
  .kompas-answer-actions {
    background: none;
    position: static;
  }
  .kompas-progress {
    font-size: 14px;
  }
  .kompas-question-person {
    font-size: 12px;
  }
  .shopping-row label {
    font-size: 15px;
  }
  .shopping-row {
    min-height: 62px;
  }
  .person-line {
    padding: 16px 0;
  }
  .person-line p {
    font-size: 14px;
  }
  .person-actions .secondary {
    font-size: 14px;
  }
  .toast {
    bottom: calc(92px + env(safe-area-inset-bottom));
    max-width: calc(100% - 32px);
    font-size: 14px;
  }
  .round-panel,
  .round-setup,
  .round-finished,
  .kompas-question {
    scroll-margin-top: 16px;
  }
  #edit-dialog {
    padding: 20px;
    width: calc(100% - 28px);
    max-height: calc(100dvh - 28px);
  }
  #person-form > .actions {
    bottom: -20px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }
}
@media screen and (max-width: 360px) {
  .top {
    padding: 0 14px;
  }
  .brand {
    font-size: 23px;
    gap: 7px;
  }
  .brand-icon,
  .brand-icon img {
    width: 34px;
    height: 34px;
  }
  .theme-toggle {
    padding: 10px;
    font-size: 12px;
  }
  .app-shell {
    padding: 0 14px;
  }
  .bottom-nav {
    gap: 6px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .bottom-nav button {
    font-size: 10px;
  }
  .card {
    padding: 17px;
  }
  .today-meal {
    padding: 0;
  }
  .today-meal-body {
    padding: 18px;
  }
  .week-day {
    padding: 15px;
  }
  .catalogue-grid {
    grid-template-columns: 1fr;
  }
  .product-card {
    padding: 20px;
  }
  .product-card h2 {
    font-size: 21px;
  }
  .product-card .help {
    font-size: 13px;
  }
  .product-thumbnail {
    width: 92px;
    height: 92px;
  }
  .week-navigation {
    gap: 7px;
  }
  .week-navigation > .actions {
    gap: 3px;
  }
  .week-navigation > .actions button {
    min-width: 42px;
    padding: 8px;
  }
  .week-navigation input {
    padding: 10px 6px;
  }
  .week-tools > summary {
    font-size: 13px;
  }
  .taste-choice input[value] + span {
    font-size: 14px;
  }
  .today-meal h2 {
    font-size: 23px;
  }
}
@media print {
  .bottom-nav {
    display: none !important;
  }
}

@media screen {
  .meal-visual-photo {
    padding: 0;
  }
  .meal-visual-photo img:first-child {
    width: 100%;
    height: 100%;
    max-height: none;
    margin: 0;
    object-fit: cover;
    border-radius: 0;
  }
  .meal-visual-hero.meal-visual-photo {
    padding: 0;
  }
}

@media screen {
  .preferences-heading h1 {
    font-size: 28px;
    margin: 0 0 18px;
  }
  .choice-reassurance {
    margin: 4px 0 10px;
    text-align: center;
  }
  .preference-form > .help.choice-reassurance {
    font-size: 14px;
  }
  main[data-view='voorkeuren'] .preference-form > .help:first-of-type {
    font-size: 13px;
  }
}

@media screen {
  .brand-icon .brand-on-dark {
    display: none;
  }
  :root[data-theme='dark'] .brand-icon {
    background: none;
  }
  :root[data-theme='dark'] .brand-icon .brand-on-light {
    display: none;
  }
  :root[data-theme='dark'] .brand-icon .brand-on-dark {
    display: block;
  }
}

@media screen {
  .shopping-extra,
  .shopping-export {
    margin-top: 24px;
  }
  .shopping-extra-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .shopping-extra-item .help {
    margin: 4px 0 8px 36px;
    overflow-wrap: anywhere;
  }
  .shopping-extra-item details {
    margin-left: 36px;
  }
  .shopping-extra summary,
  .shopping-export summary {
    cursor: pointer;
    color: var(--green);
    font-weight: 600;
    padding: 12px 0;
    overflow-wrap: anywhere;
  }
  .shopping-add {
    margin-top: 16px;
  }
  .shopping-extra form {
    max-width: 540px;
    padding: 8px 0 16px;
  }
  .shopping-extra .shopping-row label {
    min-width: 0;
    overflow-wrap: anywhere;
    gap: 12px;
  }
  .shopping-export textarea {
    min-height: 220px;
    font-family: inherit;
    line-height: 1.6;
  }
}
@media print {
  .shopping-paper {
    font-family: 'Nunito', sans-serif;
  }
  .shopping-paper h1 {
    color: #6337cf;
    border-bottom: 2px solid #ffda58;
    padding-bottom: 12px;
  }
  .shopping-paper pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font:
      12pt/1.8 'Nunito',
      sans-serif;
  }
}
@media screen {
  #print-card {
    display: none !important;
  }
}

/* Independent flavour and shape choices share the existing form style. */
.variant-choice-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.variant-choice-fields select {
  width: 100%;
}
.variant-flavor {
  margin-block: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.variant-flavor > summary {
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
  display: list-item;
}
@media (max-width: 520px) {
  .variant-choice-fields {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.product-form-options {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.product-form-options legend {
  font-weight: 700;
}
.product-form-options .checks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.product-form-options .checks label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.product-form-options small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  margin-top: 4px;
}
.prior-product-answer {
  border-top: 1px solid var(--line);
  padding-block: 8px;
}

/* Optional question-round speed; stays in normal flow on phones. */
.round-auto {
  margin: 4px 0 18px;
  padding: 10px 12px;
  border-radius: 13px;
  background: var(--surface-soft);
}
.round-auto .check-label {
  min-height: 44px;
  margin: 0;
  align-items: center;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}
.round-auto .help {
  font-size: 13px;
  line-height: 1.5;
  margin: 4px 0 0;
}
.round-auto input {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

.round-resume h2 {
  margin: 10px 0 16px;
}
.round-resume .actions {
  flex-wrap: wrap;
}
.round-resume .actions button {
  min-height: 48px;
}
.round-resume-link {
  border-color: var(--green);
  background: var(--green-soft);
}

/* Review a week before committing; personal choices remain close to their day. */
.proposal-intro {
  max-width: 740px;
  margin-bottom: 24px;
}
.proposal-days {
  display: grid;
  gap: 16px;
}
.proposal-day {
  padding: 24px;
}
.proposal-day > summary {
  display: flex;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 16px;
}
.proposal-date {
  display: block;
  font-size: 1.15rem;
}
.proposal-meal-name {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.95rem;
}
.proposal-day-body {
  margin-top: 18px;
}
.proposal-status {
  font-size: 0.8rem;
  background: var(--surface-soft);
  padding: 6px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.proposal-status.is-ready {
  color: var(--text);
  background: var(--green-soft);
}
.proposal-kept {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--line, #ccd7d2);
  font-size: 0.95rem;
}
.proposal-kept span {
  color: var(--muted);
  text-align: right;
}
.proposal-main-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}
.proposal-main-summary .meal-visual {
  width: 64px;
  height: 64px;
  min-width: 64px;
}
.proposal-main-summary .meal-visual img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
}
.proposal-attendance,
.proposal-people {
  margin: 12px 0;
}
.proposal-person {
  border-top: 1px solid var(--line, #ccd7d2);
  padding: 12px 0;
}
.proposal-person > label {
  font-weight: 700;
}
.proposal-person details {
  font-size: 0.9rem;
}
.proposal-confirm {
  margin-top: 24px;
  border: 2px solid var(--green);
}
.proposal-confirm .actions {
  margin-top: 20px;
}
.personal-meals {
  padding: 10px 14px;
  border-left: 3px solid var(--green);
  background: var(--surface-soft);
  border-radius: 8px;
  margin: 12px 0;
}
.personal-meals p {
  margin: 4px 0;
  font-size: 0.9rem;
}
.personal-meals span {
  font-weight: 600;
}
@media (max-width: 740px) {
  .proposal-day {
    padding: 16px;
  }
  .proposal-day > summary {
    display: block;
  }
  .proposal-status {
    display: inline-block;
    margin: 4px 0;
  }
  .proposal-confirm {
    padding: 16px;
  }
  .proposal-kept {
    display: block;
  }
  .proposal-kept span {
    display: block;
    text-align: left;
    margin-top: 4px;
  }
  .proposal-day select {
    font-size: 16px;
    min-height: 48px;
  }
  .proposal-intro .lead {
    font-size: 1.05rem;
  }
}

.sync-conflicts {
  margin: 20px 0;
  border-color: var(--orange);
}
.sync-choice {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.sync-choice h3 {
  font-size: 1.05rem;
}
.sync-choice-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.sync-choice-options > div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 0;
  background: var(--surface-soft);
}
.sync-choice-options p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.95rem;
}
.sync-update {
  margin-bottom: 18px;
}
.sync-update p {
  margin: 0;
}
@media (max-width: 740px) {
  .sync-choice-options {
    grid-template-columns: 1fr;
  }
  .sync-conflicts {
    padding: 16px;
  }
  .sync-choice-options button {
    width: 100%;
  }
}

/* Named access and child-device pairing follow the existing family card layout. */
.access-section {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line, #b5c9cb);
}
.access-entry {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line, #b5c9cb);
  overflow-wrap: anywhere;
}
.access-entry form,
.access-section form {
  display: grid;
  gap: 0.75rem;
  max-width: 42rem;
}
.access-entry label,
.access-section label {
  display: grid;
  gap: 0.4rem;
}
.pairing-card {
  padding: 1.2rem;
  margin: 1rem 0;
  border: 2px solid var(--accent, #267b77);
  border-radius: 1rem;
}
.pairing-code {
  font-variant-numeric: tabular-nums;
  font-size: clamp(1rem, 4.3vw, 1.5rem);
  letter-spacing: 0.07em;
  width: 100%;
  min-width: 0;
}
.access-entry .actions {
  flex-wrap: wrap;
  gap: 0.75rem;
}
.device-entry {
  margin: 1.25rem 0;
}
@media (max-width: 600px) {
  .access-entry .actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .access-entry button,
  .access-section form > button,
  .device-entry button {
    min-height: 48px;
    width: 100%;
  }
  .access-section {
    margin-top: 1.2rem;
  }
}
@media (max-width: 760px) {
  #bottom-nav[data-child='true'] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Pointer feedback is equal for every answer; selected answers keep their own fill. */
.taste-choice:has(input:enabled) {
  cursor: pointer;
}
.taste-choice span {
  transition:
    background-color 0.14s,
    border-color 0.14s,
    box-shadow 0.14s;
}
@media (hover: hover) and (pointer: fine) {
  .taste-choice:has(input:enabled):hover input:not(:checked) + span {
    background: var(--surface-soft);
    border-color: var(--green);
    box-shadow: 0 0 0 2px var(--line);
  }
  .taste-choice:has(input:enabled):hover input:checked + span {
    box-shadow: 0 0 0 3px var(--line);
  }
  .kompas-option:has(input:enabled):hover {
    background: var(--surface-soft);
    border-color: var(--green);
  }
  button.primary:enabled:hover {
    filter: brightness(0.94);
  }
  button.secondary:enabled:hover {
    background: var(--surface-soft);
    border-color: var(--green);
  }
  button.text-button:enabled:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .taste-choice span {
    transition: none;
  }
}

/* Preparation choices: readable labels and explanations, without the browser fieldset box. */
.product-form-options {
  border: 0;
  padding: 0;
  margin: 18px 0 22px;
  min-width: 0;
}
.product-form-options > legend {
  padding: 0;
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}
.product-form-options > .help {
  margin: 0 0 16px;
  max-width: 60ch;
  line-height: 1.6;
}
.product-form-options .checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}
.product-form-options .checks > label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  cursor: pointer;
  line-height: 1.5;
}
.product-form-options .checks > label > input {
  flex: none;
  margin: 3px 0 0;
  width: 22px;
  height: 22px;
}
.product-form-options .checks > label > span {
  display: block;
  min-width: 0;
  font-size: 16px;
  font-weight: 500;
  overflow-wrap: break-word;
}
.product-form-options .product-form-explanation {
  display: block;
  margin-top: 5px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--muted);
}
.product-form-options label:has(input:checked) {
  border-color: var(--green);
  background: var(--green-soft);
}
.product-form-options label:has(input:focus-visible) {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}
.passport-note-editor {
  margin: 18px 0;
}
.passport-note-editor > summary,
.general-preferences > summary {
  min-height: 44px;
  padding: 10px 6px;
  line-height: 1.5;
  cursor: pointer;
  border-radius: 8px;
}
.passport-note-editor > label {
  margin-top: 12px;
}
@media (hover: hover) and (pointer: fine) {
  #main summary:hover {
    background-color: var(--surface-soft);
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
  }
  .product-form-options .checks > label:has(input:enabled):hover {
    border-color: var(--green);
    box-shadow: 0 0 0 2px var(--line);
  }
}
@media (max-width: 540px) {
  .product-form-options .checks {
    grid-template-columns: minmax(0, 1fr);
  }
  .product-form-options .checks > label {
    padding: 14px;
  }
  .product-form-options > legend {
    font-size: 19px;
  }
}

.editor-layout .product-form-options .checks {
  grid-template-columns: minmax(0, 1fr);
}

/* The quick parent preview sits beside appearance, with a visible on/off state. */
.child-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  cursor: pointer;
}
.child-mode-toggle[hidden] {
  display: none;
}
.child-mode-toggle[aria-pressed='true'] {
  background: var(--green-soft);
  border-color: var(--green);
  box-shadow: inset 0 0 0 1px var(--green);
}
@media (hover: hover) and (pointer: fine) {
  .child-mode-toggle:hover:not(:disabled) {
    background: var(--surface-soft);
    border-color: var(--green);
  }
}
@media (max-width: 540px) {
  .top {
    height: auto;
    min-height: 76px;
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
    row-gap: 8px;
  }
  .top-actions {
    margin-left: auto;
  }
}

/* Shared visual language: ink-edged controls, expressive headers and colour-coded sections. */
@media screen {
  .top {
    border-bottom: 1px solid var(--line);
    margin-bottom: 14px;
  }
  .brand-icon {
    transform: rotate(-9deg);
  }
  .brand {
    letter-spacing: -1.2px;
  }
  .top-actions {
    gap: 10px;
  }
  .theme-toggle {
    background: var(--paper);
    font-weight: 800;
    border-radius: 100px;
    border-color: var(--line);
    padding: 10px 14px;
  }
  .child-mode-toggle {
    background: var(--gold-soft);
    color: var(--text);
    border-color: var(--field-line);
  }
  .child-mode-toggle[aria-pressed='true'] {
    background: var(--primary-bg);
    color: var(--on-primary);
    box-shadow: none;
  }
  #account-nav {
    font-weight: 800;
  }
  .nav-title {
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--gold-soft);
    color: var(--text);
    font-weight: 800;
    letter-spacing: 0.05em;
    margin: 0 0 22px;
  }
  nav button {
    font-weight: 700;
    border-radius: 16px;
  }
  nav button.active {
    background: var(--primary-bg);
    color: var(--on-primary);
    box-shadow: 0 4px 0 #36205e22;
  }
  .nav-group h2 {
    font-size: 11px;
    letter-spacing: 0.08em;
    font-weight: 800;
  }
  .primary {
    font-weight: 850;
    box-shadow: 0 4px 0 #2e12652b;
    border-width: 2px;
  }
  .secondary {
    font-weight: 800;
    border-color: var(--line);
    border-width: 2px;
  }
  .primary,
  .secondary,
  .home-link,
  .recipe-option,
  .theme-toggle,
  .chip {
    transition:
      transform 0.15s ease,
      box-shadow 0.15s ease,
      background-color 0.15s ease;
  }
  .primary:active:not(:disabled),
  .secondary:active:not(:disabled) {
    transform: translateY(2px);
    box-shadow: none;
  }
  .eyebrow {
    color: var(--accent);
    font-weight: 900;
    font-size: 11px;
    letter-spacing: 0.1em;
  }
  .today-heading,
  .week-intro {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 28px;
    padding: 28px 30px;
    background: #6337cf;
    color: #fff;
    margin-bottom: 26px;
    min-height: 160px;
    box-shadow: 0 6px 0 #39216b12;
  }
  .today-heading h1,
  .week-intro h1 {
    color: #fff;
    max-width: 75%;
    font-weight: 900;
  }
  .today-heading .lead,
  .today-date,
  .week-intro .lead,
  .week-intro .eyebrow {
    color: #f3eaff;
  }
  .today-heading .lead,
  .week-intro .lead {
    margin-bottom: 0;
    max-width: 75%;
  }
  .today-heading::after,
  .week-intro::after {
    content: '✦';
    display: block;
    position: absolute;
    right: 28px;
    top: 14px;
    font-size: 115px;
    line-height: 1;
    color: #ffda58;
    transform: rotate(12deg);
    z-index: -1;
  }
  .today-heading::before,
  .week-intro::before {
    content: '';
    position: absolute;
    right: -36px;
    bottom: -65px;
    width: 165px;
    height: 165px;
    border: 28px solid #9170ec;
    border-radius: 50%;
    z-index: -1;
  }
  .today-empty-art {
    min-height: 200px;
    background: #ffda58;
    position: relative;
    overflow: hidden;
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
  }
  .today-empty-art .table-sticker {
    display: grid;
    place-items: center;
    background: #fff6d3;
    width: 90px;
    height: 90px;
    border-radius: 28px;
    font-size: 48px;
    box-shadow: 0 7px 0 #7d4b1720;
    transform: rotate(-12deg);
  }
  .today-empty-art .table-sticker:nth-child(2) {
    background: #fff;
    width: 115px;
    height: 115px;
    border-radius: 50%;
    font-size: 65px;
    transform: rotate(8deg);
  }
  .today-empty-art .table-sticker:nth-child(3) {
    background: #ffc6bd;
    transform: rotate(14deg);
  }
  .today-meal {
    border-radius: 28px;
  }
  .today-meal h2 {
    font-weight: 900;
  }
  .today-meal-body {
    padding: 26px;
  }
  .home-link {
    border: 1px solid var(--line);
    border-radius: 22px;
    min-height: 100px;
    box-shadow: var(--card-shadow);
  }
  .home-link:nth-of-type(3n + 1) {
    background: var(--gold-soft);
  }
  .home-link:nth-of-type(3n + 2) {
    background: var(--pink);
  }
  .home-link:nth-of-type(3n) {
    background: var(--blue-soft);
  }
  .home-link > .ui-icon:first-child {
    width: 32px;
    height: 32px;
    color: var(--text);
  }
  .home-link strong {
    font-size: 18px;
    font-weight: 900;
  }
  .today-presence {
    padding: 20px;
    border-radius: 22px;
    background: var(--surface-soft);
  }
  .week-day {
    border-radius: 23px;
    border-left: 6px solid #b29afa;
  }
  .week-day:nth-child(3n + 2) {
    border-left-color: #ef9aba;
  }
  .week-day:nth-child(3n) {
    border-left-color: #68b7ed;
  }
  .week-day.is-today {
    border-left-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: 0 4px 0 #34205a14;
  }
  .day-date strong {
    font-size: 18px;
    font-weight: 900;
  }
  .day-date small {
    font-weight: 900;
  }
  .day-theme {
    border-radius: 8px;
    padding: 3px 9px;
    font-weight: 800;
  }
  .product-card {
    border-radius: 26px;
  }
  .product-card h2 {
    font-size: 24px;
    font-weight: 900;
  }
  .product-card .eyebrow {
    background: var(--gold-soft);
    color: var(--text);
    border-radius: 7px;
    padding: 3px 8px;
    letter-spacing: 0.04em;
  }
  .product-card .secondary {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: transparent;
  }
  .preference-form {
    border-radius: 26px;
    border-top: 5px solid var(--accent);
  }
  .preference-form h1,
  .preference-form h2,
  .preferences-heading h1 {
    font-weight: 900;
    font-size: 32px;
    letter-spacing: -0.7px;
  }
  .taste-choice input[value] + span {
    background: var(--surface-soft);
    border: 2px solid var(--line);
    font-weight: 800;
    min-height: 60px;
    border-radius: 17px;
  }
  .taste-choice input:checked + span {
    background: var(--primary-bg);
    color: var(--on-primary);
    border-color: var(--primary-bg);
    box-shadow: 0 3px 0 #30164726;
  }
  .picture-trigger-icon {
    background: var(--gold-soft);
    color: var(--text);
    border-radius: 12px;
  }
  .fruit-picture {
    border-radius: 18px;
    background: var(--surface-soft);
  }
  .avatar,
  .person-line:nth-child(3n + 1) .avatar {
    background: var(--accent-soft);
    color: var(--accent);
  }
  .person-line:nth-child(3n + 2) .avatar {
    background: var(--pink);
    color: var(--text);
  }
  .person-line:nth-child(3n) .avatar {
    background: var(--gold-soft);
    color: var(--text);
  }
  .kompas-question {
    border-top: 5px solid var(--accent);
  }
  .kompas-option:has(input:checked) {
    background: var(--accent-soft);
  }
  .bottom-nav {
    box-shadow: 0 -3px 20px #29183b0b;
  }
  .bottom-nav button[aria-current='page'] {
    background: var(--primary-bg);
    color: var(--on-primary);
  }
  input[type='checkbox'],
  input[type='radio'] {
    accent-color: var(--accent);
  }
  .note.warm,
  .storage-alert {
    border-left: 4px solid var(--orange);
  }
  .toast {
    background: var(--primary-bg);
    color: var(--on-primary);
    font-weight: 800;
    border: 2px solid var(--paper);
    box-shadow: 0 6px 24px #29183b30;
  }
}
@media screen and (hover: hover) and (pointer: fine) {
  .primary:hover:not(:disabled),
  .secondary:hover:not(:disabled),
  .home-link:hover:not(:disabled),
  .recipe-option:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #37215c1c;
  }
  nav button:hover:not(.active) {
    background: var(--accent-soft);
    color: var(--accent);
  }
  .theme-toggle:hover:not(:disabled) {
    border-color: var(--accent);
  }
}
@media screen and (max-width: 740px) {
  .top {
    margin-bottom: 6px;
  }
  .today-heading,
  .week-intro {
    padding: 23px 20px;
    border-radius: 24px;
    min-height: 160px;
    margin-bottom: 20px;
  }
  .today-heading h1,
  .week-intro h1 {
    font-size: 32px;
    max-width: 82%;
  }
  .today-heading .lead,
  .week-intro .lead {
    max-width: 80%;
  }
  .today-heading::after,
  .week-intro::after {
    right: 12px;
    top: 16px;
    font-size: 65px;
  }
  .today-empty-art {
    min-height: 155px;
    gap: 12px;
  }
  .today-empty-art .table-sticker {
    width: 68px;
    height: 68px;
    font-size: 36px;
    border-radius: 20px;
  }
  .today-empty-art .table-sticker:nth-child(2) {
    width: 90px;
    height: 90px;
    font-size: 50px;
  }
  .today-meal-body {
    padding: 21px;
  }
  .home-link {
    min-height: 86px;
  }
  .week-day {
    padding: 17px;
  }
  .product-card h2 {
    font-size: 23px;
  }
  .preference-form h1,
  .preference-form h2 {
    font-size: 30px;
  }
  .bottom-nav {
    border-radius: 22px 22px 0 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .primary,
  .secondary,
  .home-link,
  .recipe-option,
  .theme-toggle,
  .chip {
    transition: none;
  }
  .primary:hover,
  .secondary:hover,
  .home-link:hover,
  .recipe-option:hover {
    transform: none !important;
  }
}
@media screen and (hover: hover) and (pointer: fine) {
  .child-mode-toggle[aria-pressed='true']:hover:not(:disabled) {
    background: var(--primary-bg);
    color: var(--on-primary);
    filter: brightness(0.94);
  }
}
@media screen {
  .today-heading::after,
  .week-intro::after {
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
  }
}
@media screen and (max-width: 540px) {
  .top {
    padding-inline: 16px;
    min-height: 72px;
    gap: 8px;
  }
  .brand {
    font-size: 23px;
    gap: 7px;
  }
  .brand-icon,
  .brand-icon img {
    width: 32px;
    height: 32px;
  }
  .top-actions {
    gap: 6px;
  }
  .theme-toggle {
    padding: 9px 11px;
    min-height: 44px;
  }
  .theme-toggle[data-theme-toggle] {
    min-width: 44px;
    padding: 9px;
  }
  .theme-toggle[data-theme-toggle] > span:last-child {
    display: none;
  }
  .theme-toggle[data-theme-toggle] > span:first-child {
    font-size: 18px;
  }
  .child-mode-toggle {
    font-size: 12px;
  }
}

/* Keep the food and primary answers together; optional detail can grow naturally. */
.round-auto {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 8px 0;
  margin-bottom: 8px;
}
.round-auto .check-label {
  margin: 0;
  font-size: 14px;
}
.round-auto-explanation {
  margin: 0;
  font-size: 13px;
}
.round-auto-explanation summary {
  cursor: pointer;
  color: var(--muted);
}
.round-auto-explanation[open] {
  flex-basis: 100%;
}
.round-auto-explanation .help {
  max-width: 65ch;
  margin: 6px 0 0;
}
.compact-round .round-navigation {
  margin: 0;
}
.compact-round .preference-form {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 8px 24px;
  padding: 20px;
  margin-top: 0;
}
.compact-round .preference-form > * {
  grid-column: 1 / -1;
  min-width: 0;
}
.compact-round .preference-form > .eyebrow {
  display: none;
}
.compact-round .preference-form > h1 {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
}
.compact-round .preference-form > h1 + .help {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}
.compact-round .preference-form > .fruit-picture {
  grid-column: 1;
  grid-row: 1 / 4;
  align-self: start;
  margin: 0;
  border: 0;
  background: transparent;
}
.compact-round .preference-form .fruit-picture summary {
  min-height: 32px;
  padding: 0 0 6px;
  gap: 4px;
  border: 0;
  font-size: 12px;
  background: transparent;
}
.compact-round .picture-trigger-icon,
.compact-round .picture-trigger-label small {
  display: none;
}
.compact-round .picture-trigger-label {
  font-size: 12px;
}
.compact-round .picture-chevron {
  margin-left: auto;
  font-size: 16px;
}
.compact-round .preference-form .fruit-picture figure {
  padding: 0;
  margin: 0;
}
.compact-round .product-detail-photo {
  width: 100%;
  max-width: 180px;
}
.compact-round .preference-form > .taste-choices {
  grid-column: 2;
  grid-row: 3;
  margin: 4px 0 0;
}
.compact-round .taste-choices legend {
  font-size: 17px;
  margin-bottom: 8px;
}
.compact-round .taste-choices > div {
  gap: 8px;
}
.compact-round .taste-choice span {
  min-height: 48px;
  padding: 8px;
  font-size: 16px;
}
.compact-round .preference-form > .help {
  margin: 0;
  font-size: 13px;
}
.compact-round .preference-form > details:not(.fruit-picture) {
  margin: 0;
  font-size: 13px;
}
.compact-round .preference-actions {
  margin-top: 2px;
  padding: 8px 0 0;
}
.compact-round .round-skip {
  margin-top: 4px;
  min-height: 40px;
}
.compact-round .round-save-help {
  margin: 8px 0;
  font-size: 12px;
}
@media (max-width: 600px) {
  .compact-round .preference-form {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 8px 12px;
    padding: 14px;
  }
  .compact-round .preference-form > .fruit-picture {
    grid-row: 1 / 3;
  }
  .compact-round .preference-form > .taste-choices {
    grid-column: 1 / -1;
    grid-row: auto;
    margin-top: 4px;
  }
  .compact-round .preference-form > h1 {
    font-size: 24px;
    align-self: end;
  }
  .compact-round .preference-form > h1 + .help {
    font-size: 13px;
  }
  .compact-round .taste-choice span {
    font-size: 14px;
  }
  .compact-round .preference-form .fruit-picture summary {
    font-size: 11px;
    line-height: 1.2;
  }
  .compact-round .picture-trigger-label {
    font-size: 11px;
  }
}

.compact-round {
  scroll-margin-top: 8px;
}
.round-auto {
  align-items: center;
  background: transparent;
  padding: 0;
  gap: 0 12px;
}
.round-auto-explanation {
  padding: 0;
  border: 0;
  background: transparent;
}
.round-auto-explanation > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0;
}
.compact-round .preference-form > .dietary-tags {
  margin: 0;
}
.compact-round .taste-choice span {
  box-sizing: border-box;
}

.compact-round .taste-choice span {
  line-height: 1.3;
}

/* The round has no fixed header. Do not reserve the old header's scroll gap. */
html:has(.compact-round) {
  scroll-padding-top: 0;
}
.compact-round .preference-form > .round-skip {
  margin: 0;
  min-height: 44px;
  padding: 8px 12px;
  font-size: 13px;
}
.compact-round .preference-form > p:empty {
  display: none;
}

@media (max-width: 600px) {
  .compact-round .preference-form {
    grid-template-columns: 88px minmax(0, 1fr);
    row-gap: 6px;
  }
  .compact-round .preference-form .fruit-picture summary {
    min-height: 28px;
  }
}

/* Keep long questions and Skip above the mobile navigation on short screens. */
@media (max-width: 600px) and (max-height: 700px) {
  .compact-round {
    display: flex;
    flex-direction: column;
  }
  .compact-round > .round-navigation {
    order: 0;
  }
  .compact-round > .preference-form {
    order: 1;
  }
  .compact-round > .round-auto,
  .compact-round > .round-save-help {
    order: 2;
  }
  .compact-round .round-auto {
    margin: 0;
  }
  .compact-round .preference-form {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 6px 10px;
    padding: 12px;
  }
  .compact-round .preference-form > h1 {
    font-size: 22px;
  }
  .compact-round .preference-form > .fruit-picture {
    grid-row: 1;
  }
  .compact-round .preference-form > h1 + .help {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .compact-round .preference-form > .dietary-tags {
    padding: 6px 8px;
  }
  .compact-round .preference-form .taste-choices legend {
    line-height: 1.2;
    margin-bottom: 6px;
  }
  .compact-round .preference-form .taste-choice span {
    min-height: 44px;
    padding: 8px 6px;
  }
}

/* A quiet photo-and-name header, with no wrapped disclosure label above the image. */
@media (max-width: 600px) {
  .compact-round .preference-form > .round-product-photo {
    grid-row: 1;
    align-self: center;
  }
  .compact-round .preference-form > h1 {
    align-self: center;
  }
  .compact-round .preference-form > h1 + .help {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

.compact-round .round-photo-zoom {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  cursor: zoom-in;
}
.round-photo-zoom:focus-visible {
  outline: 3px solid var(--accent, #6334d6);
  outline-offset: 3px;
}
.product-photo-dialog {
  width: min(540px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 16px;
  border: 0;
  border-radius: 24px;
}
.product-photo-dialog::backdrop {
  background: rgb(25 16 45 / 65%);
}
.photo-viewer-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.photo-viewer-heading h2 {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 20px;
}
.photo-viewer-heading button {
  min-height: 44px;
  flex-shrink: 0;
}
.product-photo-dialog .photo-viewer-image {
  display: block;
  width: min(100%, 60dvh);
  margin: 0 auto;
}
