/* Daily Balance — approved light/dark theme (version 2). */
:root[data-db-theme="dark"] {
  color-scheme: dark;
  --bg: #151a19;
  --paper: #202725;
  --ink: #e9eeea;
  --muted: #aebbb2;
  --line: #405047;
  --green: #a9d6bb;
  --green-dark: #c4e7cd;
  --rose: #f5ae92;
  --cream: #2b3930;
  --gold: #d2ae77;
  --shadow: 0 18px 34px rgba(0,0,0,.28);
  accent-color: #7dbb96;
}
:root[data-db-theme="dark"] body {background:var(--bg);color:var(--ink)}
:root[data-db-theme="dark"] .site-header {background:rgba(23,29,27,.96);border-color:var(--line)}
:root[data-db-theme="dark"] .footer {background:#1b2220;border-color:var(--line)}
:root[data-db-theme="dark"] .footer-inner,
:root[data-db-theme="dark"] .card-meta,
:root[data-db-theme="dark"] .photo-caption,
:root[data-db-theme="dark"] .crumbs,
:root[data-db-theme="dark"] .original,
:root[data-db-theme="dark"] .recipe-meta span {color:var(--muted)}
:root[data-db-theme="dark"] .hero-copy p,
:root[data-db-theme="dark"] .book-cta p,
:root[data-db-theme="dark"] .about-grid p,
:root[data-db-theme="dark"] .about-points,
:root[data-db-theme="dark"] .method-list p {color:#c4d0c6}
:root[data-db-theme="dark"] .nav-items a:hover,
:root[data-db-theme="dark"] .text-link:hover,
:root[data-db-theme="dark"] .crumbs a:hover {color:#ffc4ac}
:root[data-db-theme="dark"] .button-dark,
:root[data-db-theme="dark"] .calc-tabs button.active {background:#497c62;color:#fff;border-color:#497c62}
:root[data-db-theme="dark"] .button-dark:hover {background:#578e72}
:root[data-db-theme="dark"] .button-light,
:root[data-db-theme="dark"] .recipe-scale-reset {background:#28352e;color:#bde4c9;border-color:#506e5b}
:root[data-db-theme="dark"] .filter-panel,
:root[data-db-theme="dark"] .book-cta,
:root[data-db-theme="dark"] .about-quote,
:root[data-db-theme="dark"] .complete-note,
:root[data-db-theme="dark"] .hero-art {background:#29342d;border-color:var(--line)}
:root[data-db-theme="dark"] .recipe-card,
:root[data-db-theme="dark"] .ingredient-panel,
:root[data-db-theme="dark"] .nutri-panel {background:var(--paper);border-color:var(--line)}
:root[data-db-theme="dark"] .photo-box {background:#293430}
:root[data-db-theme="dark"] .no-photo {background:linear-gradient(125deg,#2b3930,#273630 58%,#393329)}
:root[data-db-theme="dark"] .photo-caption {color:#c0cfc4}
:root[data-db-theme="dark"] .art-plate {background:#dde5cf;box-shadow:0 18px 40px #101a1b80,inset 0 0 0 15px #acbdac,inset 0 0 0 17px #8da999}
:root[data-db-theme="dark"] .art-label {background:#2d3a31;color:var(--ink)}
:root[data-db-theme="dark"] .art-label b {color:#ccecd5}
:root[data-db-theme="dark"] .plate-graphic {background:#c6d2c0;border-color:#849b88}
:root[data-db-theme="dark"] .book-cover.secondary {color:#24352b}
:root[data-db-theme="dark"] .hero-grid>.hero-logo-panel .hero-full-logo {background:transparent}
:root[data-db-theme="dark"] .recipe-scale-control {background:#26312b;border-color:var(--line)}
:root[data-db-theme="dark"] .recipe-scale-control label,
:root[data-db-theme="dark"] .recipe-scale-note {color:#c2d7c8}
:root[data-db-theme="dark"] .filter-fields label,
:root[data-db-theme="dark"] .nutri-fields label,
:root[data-db-theme="dark"] .nutri-searchrow label,
:root[data-db-theme="dark"] .contact-form>label,
:root[data-db-theme="dark"] .nutri-group-addrow label,
:root[data-db-theme="dark"] .nutri-group-controls label,
:root[data-db-theme="dark"] .nutri-quick-food-field>label,
:root[data-db-theme="dark"] .nutri-food-field>label {color:#c0cfc5}
:root[data-db-theme="dark"] input:not([type="checkbox"]):not([type="radio"]),
:root[data-db-theme="dark"] select,
:root[data-db-theme="dark"] textarea {background:#28322e;color:#e9f0e9;border:1px solid #526457}
:root[data-db-theme="dark"] option,
:root[data-db-theme="dark"] optgroup {background:#28322e;color:#e9f0e9}
:root[data-db-theme="dark"] input::placeholder,
:root[data-db-theme="dark"] textarea::placeholder,
:root[data-db-theme="dark"] .filter-fields input::placeholder {color:#b2beb4;opacity:1}
:root[data-db-theme="dark"] input:disabled,
:root[data-db-theme="dark"] select:disabled {opacity:.62}
:root[data-db-theme="dark"] input[type="checkbox"],
:root[data-db-theme="dark"] input[type="radio"] {accent-color:#74b994}
:root[data-db-theme="dark"] .nutri-panel h2,
:root[data-db-theme="dark"] .nutri-panel h3 {color:var(--ink)}
:root[data-db-theme="dark"] .nutri-stat,
:root[data-db-theme="dark"] .nutri-number,
:root[data-db-theme="dark"] .nutri-group-sharecard,
:root[data-db-theme="dark"] .nutri-group-target,
:root[data-db-theme="dark"] .nutri-multi-result,
:root[data-db-theme="dark"] .nutri-basic-risotto-result {background:#2b3931;border-color:var(--line)}
:root[data-db-theme="dark"] .nutri-number.highlighted {background:#365443}
:root[data-db-theme="dark"] .nutri-stat strong {color:#c4e8cc}
:root[data-db-theme="dark"] .nutri-progress,
:root[data-db-theme="dark"] .mineral-track,
:root[data-db-theme="dark"] .nutri-group-sharebar {background:#425249}
:root[data-db-theme="dark"] .nutri-table th,
:root[data-db-theme="dark"] .nutri-plan-edit-group th,
:root[data-db-theme="dark"] .nutri-plan-edit-meal th {background:#2d4036;color:#d7e9dc}
:root[data-db-theme="dark"] .nutri-table td,
:root[data-db-theme="dark"] .nutri-table th {border-bottom-color:#405047}
:root[data-db-theme="dark"] .nutri-table tr:hover td {background:#2d3832}
:root[data-db-theme="dark"] .nutri-micro,
:root[data-db-theme="dark"] .nutri-micro th,
:root[data-db-theme="dark"] .nutri-micro td {color:var(--ink)}
:root[data-db-theme="dark"] .mineral-card {background:#28332e;border-color:#405047}
:root[data-db-theme="dark"] .mineral-meta,
:root[data-db-theme="dark"] .mineral-card-top,
:root[data-db-theme="dark"] .mineral-status {color:#d2ded5}
:root[data-db-theme="dark"] .nutri-footer-note,
:root[data-db-theme="dark"] .nutri-plan-content,
:root[data-db-theme="dark"] .nutri-plan-edit,
:root[data-db-theme="dark"] .nutri-basic-risotto-form,
:root[data-db-theme="dark"] .nutri-more-favorites,
:root[data-db-theme="dark"] .nutri-recipe-bundle-child {background:#25302a;border-color:var(--line);color:var(--ink)}
:root[data-db-theme="dark"] .nutri-recipe-bundle-parent,
:root[data-db-theme="dark"] .nutri-recipe-bundle-section td {background:#2c4537;color:#d9ebdf}
:root[data-db-theme="dark"] .nutri-saved-plan-parent {background:#283c4f}
:root[data-db-theme="dark"] .nutri-saved-plan-parent .nutri-recipe-bundle-toggle {color:#d1e7ff}
:root[data-db-theme="dark"] .nutri-bundle-not-counted td {background:#352f29;color:#e8cfaa}
:root[data-db-theme="dark"] .nutri-import-invalid,
:root[data-db-theme="dark"] .nutri-plan-edit-invalid {background:#422b2c}
:root[data-db-theme="dark"] .nutri-import-invalid select[aria-invalid="true"],
:root[data-db-theme="dark"] .nutri-import-invalid input[aria-invalid="true"] {background:#472e2d}
:root[data-db-theme="dark"] .nutri-suggest-option,
:root[data-db-theme="dark"] .nutri-swap-option,
:root[data-db-theme="dark"] .nutri-excess-reductions .nutri-suggest-option {background:#293930}
:root[data-db-theme="dark"] .nutri-suggest-notice,
:root[data-db-theme="dark"] .nutri-portion-audit,
:root[data-db-theme="dark"] .nutri-recipe-fav-remove {background:#3f3527;border-color:#756044;color:#efd3a3}
:root[data-db-theme="dark"] .nutri-portion-audit>strong {color:#f2d3a3}
:root[data-db-theme="dark"] .nutri-suggestions,
:root[data-db-theme="dark"] .nutri-quick-suggestions,
:root[data-db-theme="dark"] .nutri-palette-grid {background:#27322d;border-color:#5b6a5f;box-shadow:0 10px 25px #0008}
:root[data-db-theme="dark"] .nutri-food-option,
:root[data-db-theme="dark"] .nutri-quick-option {background:#27322d;color:#e4eee6}
:root[data-db-theme="dark"] .nutri-food-option:hover,
:root[data-db-theme="dark"] .nutri-quick-option:hover,
:root[data-db-theme="dark"] .nutri-food-option.is-active,
:root[data-db-theme="dark"] .nutri-quick-option.is-active,
:root[data-db-theme="dark"] .nutri-quick-option:focus-visible {background:#3c5744;color:#fff}
:root[data-db-theme="dark"] .nutri-food-chip,
:root[data-db-theme="dark"] .nutri-quick-more,
:root[data-db-theme="dark"] .nutri-plan-undo,
:root[data-db-theme="dark"] .nutri-plan-details>summary,
:root[data-db-theme="dark"] .nutri-profile-toggle,
:root[data-db-theme="dark"] .nutri-days-picker button,
:root[data-db-theme="dark"] .nutri-days-actions button,
:root[data-db-theme="dark"] .nutri-plan-buttons button,
:root[data-db-theme="dark"] .nutri-plan-content>button,
:root[data-db-theme="dark"] .nutri-plan-import,
:root[data-db-theme="dark"] .nutri-plan-edit-actions button,
:root[data-db-theme="dark"] .nutri-suggest-action,
:root[data-db-theme="dark"] .nutri-swap-next,
:root[data-db-theme="dark"] .meal-completion-import,
:root[data-db-theme="dark"] .recipe-import-button,
:root[data-db-theme="dark"] .nutri-suggest-dismiss {background:#304237;color:#d7efdf;border-color:#597261}
:root[data-db-theme="dark"] .nutri-suggest-action:hover,
:root[data-db-theme="dark"] .nutri-food-chip:hover,
:root[data-db-theme="dark"] .nutri-profile-toggle:hover,
:root[data-db-theme="dark"] .nutri-swap-next:hover {background:#3e5949}
:root[data-db-theme="dark"] .nutri-days-picker button.is-current {background:#42694e;border-color:#83ba91}
:root[data-db-theme="dark"] .nutri-plan-buttons #plan-append,
:root[data-db-theme="dark"] .nutri-plan-edit-actions .nutri-plan-edit-save,
:root[data-db-theme="dark"] .nutri-report-actions button:first-child {background:#365f48;color:#e1f3e6}
:root[data-db-theme="dark"] .nutri-recipe-fav-remove.is-favorite,
:root[data-db-theme="dark"] .recipe-fav-star.is-favorite {background:#473c2a;color:#ffcf76}
:root[data-db-theme="dark"] .recipe-fav-star {background:#27352c;border-color:#526f5b;color:#cae6d1}
:root[data-db-theme="dark"] .nutri-quick-shortcuts .nutri-shortcut-recipe-link {background:#40392b;border-color:#665b45;color:#f3d6ab}
:root[data-db-theme="dark"] .nutri-suggest-group h3,
:root[data-db-theme="dark"] .nutri-swap-section>h3,
:root[data-db-theme="dark"] .nutri-swap-label,
:root[data-db-theme="dark"] .nutri-multi-first-label,
:root[data-db-theme="dark"] .nutri-multi-switch,
:root[data-db-theme="dark"] .nutri-multi-person-head h3,
:root[data-db-theme="dark"] .nutri-multi-result h3,
:root[data-db-theme="dark"] .nutri-group-sharehead h3,
:root[data-db-theme="dark"] .nutri-group-target strong,
:root[data-db-theme="dark"] .nutri-more-favorites>summary {color:#c3e6cc}
:root[data-db-theme="dark"] .nutri-suggest-group h3 small,
:root[data-db-theme="dark"] .nutri-suggest-change,
:root[data-db-theme="dark"] .nutri-multi-portions,
:root[data-db-theme="dark"] .nutri-suggest-recipe-note,
:root[data-db-theme="dark"] .nutri-supplement-total,
:root[data-db-theme="dark"] .nutri-recipe-bundle-toggle small,
:root[data-db-theme="dark"] .nutri-plan-edit-results span,
:root[data-db-theme="dark"] .nutri-shortcut-heading,
:root[data-db-theme="dark"] .nutri-shortcut-count,
:root[data-db-theme="dark"] .nutri-plan-edit-quantity span {color:#afc1b4}
:root[data-db-theme="dark"] .nutri-error,
:root[data-db-theme="dark"] .nutri-import-error,
:root[data-db-theme="dark"] .nutri-import-required,
:root[data-db-theme="dark"] .nutri-supplement-pending {color:#ffaea0}
:root[data-db-theme="dark"] .nutri-remove,
:root[data-db-theme="dark"] .nutri-textbtn,
:root[data-db-theme="dark"] .nutri-miniaction,
:root[data-db-theme="dark"] .nutri-import-remove {color:#efb19d}
:root[data-db-theme="dark"] .nutri-import-success,
:root[data-db-theme="dark"] #plan-status,
:root[data-db-theme="dark"] .nutri-recipe-fav-label {color:#aee0b9}
:root[data-db-theme="dark"] .nutri-bundle-edit,
:root[data-db-theme="dark"] .nutri-import-approx,
:root[data-db-theme="dark"] .nutri-excess-group-note {color:#dfc49c}
:root[data-db-theme="dark"] .nutri-plan-edit h3,
:root[data-db-theme="dark"] .nutri-plan-edit h4,
:root[data-db-theme="dark"] .nutri-plan-content label,
:root[data-db-theme="dark"] .nutri-plan-edit-add label {color:#d3e6d7}
:root[data-db-theme="dark"] .nutri-palette-swatch {box-shadow:inset 0 0 0 1px #ffffffa0}
:root[data-db-theme="dark"] .nutri-palette-swatch.selected {outline:2px solid #f0f6f0}
:root[data-db-theme="dark"] .nutri-person-palette summary {color:#d1e0d6;border-color:#526357;background:#2b3931}
/* Preserve vivid person identity colors; some are vivid enough for dark background. */
:root[data-db-theme="dark"] .nutri-person-name {color:color-mix(in srgb, var(--person-color) 35%, white 65%)}
:root[data-db-theme="dark"] .nutri-person-dot {background:var(--person-color);box-shadow:0 0 0 1px #aebeb2}
:root[data-db-theme="dark"] .nutri-swap-next:focus-visible,
:root[data-db-theme="dark"] .db-theme-toggle:focus-visible {outline:3px solid #e9c17b;outline-offset:2px}
/* Header toggle is present in both light and dark themes. */
.db-theme-toggle {display:inline-flex;align-items:center;justify-content:center;min-width:39px;min-height:39px;flex:none;padding:5px 8px;margin-left:3px;background:var(--paper);color:var(--green);border:1px solid var(--line);border-radius:10px;font-size:20px;line-height:1;cursor:pointer}
.db-theme-toggle:hover {background:var(--cream)}
.db-theme-toggle:focus-visible {outline:3px solid #6f987c;outline-offset:2px}
:root[data-db-theme="dark"] .db-theme-toggle {background:#2d3c33;color:#f3dab0;border-color:#5b705f}
:root[data-db-theme="dark"] .db-theme-toggle:hover {background:#425347}
@media(max-width:740px){.db-theme-toggle {order:2;margin-left:0}.nav-shell>.lang-label {order:1}}
/* LOCAL DARK THEME V2: three readability refinements.
 * Unselected favorite stars must remain visible without depending on hover.
 */
:root[data-db-theme="dark"] .nutri-food-star,
:root[data-db-theme="dark"] .recipe-fav-star,
:root[data-db-theme="dark"] .nutri-recipe-fav-remove {
  color:#eacb89;
  border-color:#657768;
}
:root[data-db-theme="dark"] .nutri-food-star:hover,
:root[data-db-theme="dark"] .nutri-food-star:focus-visible,
:root[data-db-theme="dark"] .recipe-fav-star:hover,
:root[data-db-theme="dark"] .recipe-fav-star:focus-visible {
  background:#3a4a3d;
  color:#ffdb82;
}
:root[data-db-theme="dark"] .nutri-food-star.is-favorite,
:root[data-db-theme="dark"] .recipe-fav-star.is-favorite,
:root[data-db-theme="dark"] .nutri-recipe-fav-remove.is-favorite {color:#ffda80}
/* Firefox paints native numeric steppers. Use a light control palette on a
 * subdued sage field to make their arrows visible in both Firefox and Chromium.
 * This is visual only: input types, precision, and listeners stay untouched.
 */
:root[data-db-theme="dark"] input[type="number"] {
  color-scheme:light;
  background:#dce6dd!important;
  color:#203127!important;
  caret-color:#203127;
  border-color:#96ab9d!important;
}
:root[data-db-theme="dark"] input[type="number"]:focus-visible {
  outline:2px solid #ebcd91;
  outline-offset:2px;
}
:root[data-db-theme="dark"] input[type="number"]::-webkit-inner-spin-button,
:root[data-db-theme="dark"] input[type="number"]::-webkit-outer-spin-button {
  opacity:1;
}
/* Keep the excluded/optional row noticeable but less visually dominant. */
:root[data-db-theme="dark"] .nutri-bundle-not-counted td {
  background:#2b3330;
  color:#d1dacd;
  border-bottom-color:#445249;
}
:root[data-db-theme="dark"] .nutri-bundle-not-counted td:last-child {
  color:#bdcbbf;
}
/* Printing a plan should always be legible and ink-efficient. */
@media print {
  :root[data-db-theme="dark"] {color-scheme:light;--bg:#fff;--paper:#fff;--ink:#242b24;--muted:#526054;--line:#ddd;--green:#315d43}
  :root[data-db-theme="dark"] body {background:#fff!important;color:#222!important}
  :root[data-db-theme="dark"] .nutri-panel,
  :root[data-db-theme="dark"] .nutri-table th,
  :root[data-db-theme="dark"] .nutri-table td,
  :root[data-db-theme="dark"] .nutri-stat,
  :root[data-db-theme="dark"] .mineral-card {background:#fff!important;color:#222!important;border-color:#bbb!important}
  .db-theme-toggle{display:none!important}
}

/* List/Grid toggle in the existing dark theme. */
:root[data-db-theme="dark"] .recipe-view-toggle{background:#25302a;border-color:#526457}
:root[data-db-theme="dark"] .recipe-view-toggle button{color:#cae6d1}
:root[data-db-theme="dark"] .recipe-view-toggle button[aria-pressed="true"]{background:#497c62;color:#fff}
:root[data-db-theme="dark"] .recipe-view-toggle button:hover:not([aria-pressed="true"]){background:#3b4b3e}

/* DAILY_BALANCE_NAMED_PLAN_DARK_CONTRAST_V6_20261112
   Override native dropdown option styling and white-on-white edit-result buttons. */
:root[data-db-theme="dark"] #plan-select,
:root[data-db-theme="dark"] #plan-select option {
  color-scheme:dark;
  background-color:#273a30!important;
  color:#f0f8f0!important;
}
:root[data-db-theme="dark"] #plan-select:focus-visible {outline:2px solid #e6c58b;outline-offset:2px}
:root[data-db-theme="dark"] .nutri-plan-edit-results button {
  background:#2b4035!important;
  color:#f0f7ef!important;
  border-color:#58725f!important;
}
:root[data-db-theme="dark"] .nutri-plan-edit-results button:hover,
:root[data-db-theme="dark"] .nutri-plan-edit-results button:focus-visible {
  background:#415d49!important;color:#ffffff!important;
}
:root[data-db-theme="dark"] .nutri-plan-edit-results span {color:#c8d9cb!important}

/* Local Stage 1: collapsed plan file transfer controls in dark mode */
:root[data-db-theme="dark"] .nutri-plan-transfer{background:#27382e;border-color:#526a58}
:root[data-db-theme="dark"] .nutri-plan-transfer>summary{color:#c3e6cc}
/* Stage 1 local advanced integration dark mode */
:root[data-db-theme="dark"] .nutri-advanced-mode{background:#25362a;border-color:#516b56}
:root[data-db-theme="dark"] .nutri-advanced-mode button{color:#c5e3cc}
:root[data-db-theme="dark"] .nutri-advanced-mode button.chosen{background:#365f48;color:#fff}
:root[data-db-theme="dark"] .nutri-advanced-card{background:#283a30;border-color:#536e5c}
:root[data-db-theme="dark"] .nutri-advanced-card.selected{border-color:#88bd97;box-shadow:0 0 0 2px #446b4d}
:root[data-db-theme="dark"] .nutri-advanced-controls select{background:#273b2f;border-color:#526b5a;color:#ebf5ec}
:root[data-db-theme="dark"] .nutri-advanced-controls>button,:root[data-db-theme="dark"] .nutri-advanced-topline button{background:#365f48;color:#e1f3e6;border-color:#597261}


/* DAILY_BALANCE_RECIPE_PRINT_A4_V2_20261115_BEGIN */
/* Paper-only recipe card. Explicit placement avoids mobile photo-first print regression. */
@page dbRecipe { size: A4 portrait; margin: 10mm; }
@media print {
  body[data-page="recipe"] { page: dbRecipe; background:#fff!important; color:#20352a!important; margin:0!important; padding:0!important; color-scheme:light!important; -webkit-print-color-adjust:exact; print-color-adjust:exact; }
  body[data-page="recipe"] .site-header,
  body[data-page="recipe"] .footer,
  body[data-page="recipe"] .book-cta,
  body[data-page="recipe"] .recipe-pagination,
  body[data-page="recipe"] .recipe-pagination-top,
  body[data-page="recipe"] .crumbs,
  body[data-page="recipe"] .recipe-utility-actions,
  body[data-page="recipe"] .recipe-scale-control,
  body[data-page="recipe"] .recipe-calculate-context,
  body[data-page="recipe"] .gallery-thumbs,
  body[data-page="recipe"] .mini-note,
  body[data-page="recipe"] .db-quick-scroll,
  body[data-page="recipe"] .recipe-top > .no-photo,
  body[data-page="recipe"] .recipe-hero-photo.no-photo {display:none!important;}
  body[data-page="recipe"] #content > :not(.recipe-page) {display:none!important;}
  body[data-page="recipe"] #content,
  body[data-page="recipe"] .recipe-page,
  body[data-page="recipe"] .recipe-top,
  body[data-page="recipe"] .recipe-heading,
  body[data-page="recipe"] .recipe-columns,
  body[data-page="recipe"] .instructions-panel { box-shadow:none!important; background:#fff!important; color:#20352a!important; }
  body[data-page="recipe"] #content {width:190mm!important;max-width:190mm!important;margin:0!important;padding:0!important;}
  body[data-page="recipe"] .recipe-page {box-sizing:border-box!important;max-width:190mm!important;width:190mm!important;margin:0!important;padding:0!important;font-family:Manrope,'DM Sans',Arial,sans-serif!important;}
  body[data-page="recipe"] .recipe-page * {box-shadow:none!important;text-shadow:none!important;color-scheme:light!important;}
  /* Header has two *explicitly named* columns; overrides responsive 'order:-1' on photo. */
  body[data-page="recipe"] .recipe-top {
    display:grid!important;grid-template-columns:minmax(0,1fr) 24mm!important;
    grid-template-areas:'heading photo'!important;align-items:start!important;
    column-gap:5mm!important;row-gap:0!important;
    padding:0 0 7mm!important;margin:0 0 4mm!important;
    border-bottom:1.5pt solid #427054!important;
    min-height:0!important;break-inside:avoid!important;
  }
  body[data-page="recipe"] .recipe-top:has(> .no-photo) {
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-areas:'heading'!important;
  }
  body[data-page="recipe"] .recipe-top > .recipe-heading {
    grid-area:heading!important;order:0!important;min-width:0!important;width:100%!important;
    margin:0!important;padding:0!important;display:block!important;
  }
  body[data-page="recipe"] .recipe-heading::before {
    content:'PARIS PASQUALIN  /  DAILY BALANCE';display:block;
    font-size:6.8pt!important;font-weight:800!important;letter-spacing:.08em!important;
    color:#577e64!important;margin:0 0 2.5mm!important;
  }
  body[data-page="recipe"] .recipe-heading .eyebrow {display:block!important;margin:0 0 1.5mm!important;color:#a35f48!important;font-weight:800!important;font-size:7.2pt!important;letter-spacing:.05em!important;line-height:1.25!important;}
  body[data-page="recipe"] .recipe-heading h1 {font-size:20pt!important;font-weight:800!important;line-height:1.13!important;letter-spacing:-.25pt!important;color:#203d2c!important;margin:0 0 2.2mm!important;padding:0!important;max-width:100%!important;overflow-wrap:normal!important;word-break:normal!important;}
  body[data-page="recipe"] .recipe-heading .original {font-size:8pt!important;line-height:1.25!important;margin:0 0 2.2mm!important;color:#5d6e60!important;}
  body[data-page="recipe"] .recipe-heading .original span {font-size:7.6pt!important;color:#3b674c!important;}
  body[data-page="recipe"] .recipe-meta {display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:2mm 3mm!important;margin:2mm 0 0!important;padding:0!important;}
  body[data-page="recipe"] .recipe-meta span {display:block!important;font-size:7.1pt!important;line-height:1.28!important;margin:0!important;padding:0!important;border:0!important;overflow-wrap:break-word!important;color:#58685c!important;}
  body[data-page="recipe"] .recipe-meta b {display:block!important;font-size:8pt!important;line-height:1.3!important;font-weight:700!important;color:#233d2f!important;margin:1mm 0 0!important;}
  body[data-page="recipe"] .recipe-top > .recipe-hero-photo,
  body[data-page="recipe"] .recipe-top > .recipe-gallery {
    grid-area:photo!important;order:0!important;
    width:24mm!important;height:24mm!important;max-width:24mm!important;min-width:0!important;
    margin:0!important;padding:0!important;align-self:start!important;justify-self:end!important;
    overflow:hidden!important;display:block!important;
    border:1px solid #d4e2d4!important;border-radius:3mm!important;
    background:#fff!important;
  }
  /* A missing-photo placeholder should never print, including with dark-mode backgrounds. */
  body[data-page="recipe"] .recipe-top > .recipe-hero-photo.no-photo {
    display:none!important;grid-area:auto!important;order:0!important;
    width:0!important;height:0!important;border:0!important;background:transparent!important;
  }
  body[data-page="recipe"] .recipe-top > .recipe-gallery .recipe-hero-photo {
    display:block!important;width:100%!important;height:100%!important;
    max-width:100%!important;min-height:0!important;margin:0!important;padding:0!important;
    border:0!important;border-radius:0!important;background:#fff!important;order:0!important;
  }
  body[data-page="recipe"] .recipe-top img {display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;}
  body[data-page="recipe"] .recipe-top .plate-graphic,
  body[data-page="recipe"] .recipe-top .photo-caption {display:none!important;}
  body[data-page="recipe"] .recipe-columns {display:grid!important;grid-template-columns:minmax(0,44fr) minmax(0,56fr)!important;gap:4mm!important;align-items:start!important;margin:0!important;padding:0!important;}
  body[data-page="recipe"] .recipe-columns h2 {font-size:11pt!important;line-height:1.2!important;color:#315c43!important;padding:0 0 2mm!important;margin:0 0 2mm!important;border-bottom:1px solid #cddccb!important;}
  body[data-page="recipe"] .ingredient-panel {min-width:0!important;margin:0!important;padding:3mm!important;border:1px solid #d6e1d4!important;border-radius:2.5mm!important;background:#f3f7f0!important;break-inside:auto!important;}
  body[data-page="recipe"] .ingredient-panel > .eyebrow {display:none!important;}
  body[data-page="recipe"] .ingredients {padding:0!important;margin:0!important;list-style:none!important;}
  body[data-page="recipe"] .ingredients li {font-size:8.7pt!important;line-height:1.28!important;margin:0!important;padding:1mm 0 1mm 4mm!important;color:#294033!important;border-bottom:.5px solid #dce6d9!important;break-inside:avoid!important;}
  body[data-page="recipe"] .ingredients li:not(.ingredient-subhead)::before {font-size:11px!important;left:0!important;top:.6mm!important;color:#b4795e!important;}
  body[data-page="recipe"] .ingredients li.ingredient-subhead {font-size:8.5pt!important;font-weight:800!important;color:#477555!important;border:0!important;padding:2mm 0 1mm!important;}
  body[data-page="recipe"] .instructions-panel {min-width:0!important;margin:0!important;padding:0!important;}
  body[data-page="recipe"] .method-list p {font-size:9.1pt!important;line-height:1.37!important;color:#253b2e!important;margin:0 0 2.4mm!important;orphans:2;widows:2;}
  body[data-page="recipe"] .method-list .method-section-title {font-size:9.1pt!important;font-weight:800!important;line-height:1.25!important;color:#39664b!important;margin:2.1mm 0 1.2mm!important;}
  body[data-page="recipe"] .method-list .method-alternatives {margin:0 0 2.1mm!important;padding-left:4mm!important;}
  body[data-page="recipe"] .method-list .method-alternatives li {font-size:8.3pt!important;line-height:1.3!important;margin:0 0 1.4mm!important;padding:0!important;color:#2c4033!important;}
  body[data-page="recipe"] .method-list>p,body[data-page="recipe"] .method-list>ul,body[data-page="recipe"] .method-list>details {break-inside:avoid-page;}
  body[data-page="recipe"] .recipe-expandable-example,body[data-page="recipe"] .method-list details {font-size:8pt!important;line-height:1.32!important;}
  body[data-page="recipe"] .recipe-expandable-example details>* {display:block!important;}
  body[data-page="recipe"] .complete-note {margin:2mm 0 0!important;padding:2mm 2.4mm!important;background:#faf5ed!important;color:#304232!important;border-left:1.5pt solid #b37856!important;border-radius:0 2mm 2mm 0!important;}
  body[data-page="recipe"] .complete-note strong,body[data-page="recipe"] .complete-note p {font-size:8.3pt!important;line-height:1.28!important;color:#314432!important;}
  body[data-page="recipe"] .complete-note p {margin:1.3mm 0!important;}
  body[data-page="recipe"] .recipe-columns :is(p,li,h2,aside){overflow-wrap:break-word!important;}
}
/* DAILY_BALANCE_RECIPE_PRINT_A4_V2_20261115_END */

/* DAILY_BALANCE_RECIPE_PRINT_BOUNDED_V5_20261115_BEGIN */
/* Comfortable, bounded A4 typography. JS uses the largest fitting size per column. */
@media print {
  body[data-page="recipe"] .recipe-heading h1 {
    font-size:var(--db-print-title-size,20pt)!important;
  }
  body[data-page="recipe"] .recipe-meta span {
    font-size:var(--db-print-meta-size,10pt)!important;
  }
  body[data-page="recipe"] .recipe-meta b {
    font-size:var(--db-print-meta-size,10pt)!important;
  }
  body[data-page="recipe"] .recipe-columns h2 {
    font-size:var(--db-print-heading-size,13.5pt)!important;
    line-height:1.2!important;
  }
  body[data-page="recipe"] .ingredients li {
    font-size:var(--db-print-ingredient-size,12pt)!important;
    line-height:1.27!important;
    padding:0.72mm 0 0.72mm 3.6mm!important;
  }
  body[data-page="recipe"] .ingredients li.ingredient-subhead {
    font-size:var(--db-print-ingredient-size,12pt)!important;
    line-height:1.28!important;
    padding-top:1.7mm!important;
    padding-bottom:0.9mm!important;
  }
  body[data-page="recipe"] .method-list p {
    font-size:var(--db-print-method-size,12pt)!important;
    line-height:1.34!important;
    margin-bottom:1.8mm!important;
  }
  body[data-page="recipe"] .method-list .method-section-title {
    font-size:var(--db-print-method-size,12pt)!important;
    line-height:1.3!important;
    margin-top:1.9mm!important;
    margin-bottom:1.0mm!important;
  }
  body[data-page="recipe"] .method-list .method-alternatives li,
  body[data-page="recipe"] .recipe-expandable-example,
  body[data-page="recipe"] .method-list details,
  body[data-page="recipe"] .complete-note strong,
  body[data-page="recipe"] .complete-note p {
    font-size:var(--db-print-method-size,12pt)!important;
    line-height:1.28!important;
  }
  body[data-page="recipe"] .method-list .method-alternatives li {
    margin-bottom:1.2mm!important;
  }
}
/* DAILY_BALANCE_RECIPE_PRINT_BOUNDED_V5_20261115_END */

/* DAILY_BALANCE_CHECKLIST_CONTROLS_BOTTOM_20261115_V1 */
/* DAILY_BALANCE_INGREDIENT_CHECKLIST_20261115_V1 */
/* Preserve the existing --rose dot in both themes, especially dark (#f5ae92). */
@media screen {
  body[data-page="recipe"] .ingredient-panel .ingredients li[data-ingredient-index]:not(.ingredient-subhead) {
    cursor:pointer;
  }
  body[data-page="recipe"] .ingredient-panel .ingredients li[data-ingredient-index]:not(.ingredient-subhead)::before {
    color:var(--rose);
    font-size:31px;
    top:2px;
    line-height:1.2;
    transition:font-size .12s ease,top .12s ease;
    pointer-events:none;
  }
  body[data-page="recipe"] .ingredient-panel .ingredients li.db-ingredient-used::before {
    color:var(--rose);
    font-size:21px;
    top:7px;
  }
  body[data-page="recipe"] .ingredient-panel .db-ingredient-toggle {
    width:100%;display:block;text-align:left;margin:0;padding:0;
    appearance:none;background:transparent;border:0;border-radius:2px;
    font:inherit;line-height:inherit;color:inherit;font-weight:700;
    white-space:normal;overflow-wrap:anywhere;cursor:pointer;
  }
  body[data-page="recipe"] .ingredient-panel li.db-ingredient-used .db-ingredient-toggle {
    font-weight:400;
    color:var(--muted);
    text-decoration:line-through;
    text-decoration-thickness:1px;
  }
  body[data-page="recipe"] .ingredient-panel .db-ingredient-toggle:focus-visible {
    outline:2px solid var(--rose);outline-offset:3px;
  }
  body[data-page="recipe"] .db-ingredient-checklist-meta {
    display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;
    margin:12px 0 0;padding:11px 0 0;border-top:1px solid var(--line);
    font-size:12px;line-height:1.4;color:var(--muted);
  }
  body[data-page="recipe"] .db-ingredient-reset {
    border:0;background:transparent;color:var(--green);padding:1px 3px;
    font:inherit;font-weight:700;text-decoration:underline;text-underline-offset:2px;cursor:pointer;
  }
  body[data-page="recipe"] .db-ingredient-reset:disabled {opacity:.4;cursor:default;text-decoration:none;}
  @media (prefers-reduced-motion:reduce) {
    body[data-page="recipe"] .ingredient-panel .ingredients li[data-ingredient-index]::before {transition:none;}
  }
}
@media print {
  body[data-page="recipe"] .db-ingredient-checklist-meta {display:none!important;}
  body[data-page="recipe"] .ingredient-panel .db-ingredient-toggle,
  body[data-page="recipe"] .ingredient-panel li.db-ingredient-used .db-ingredient-toggle {
    display:block!important;margin:0!important;padding:0!important;border:0!important;
    background:transparent!important;font:inherit!important;line-height:inherit!important;
    color:inherit!important;font-weight:400!important;text-decoration:none!important;
    outline:0!important;
  }
  body[data-page="recipe"] .ingredient-panel .ingredients li.db-ingredient-used::before {
    font-size:11px!important;top:.6mm!important;color:#b4795e!important;
  }
}
/* DAILY_BALANCE_INGREDIENT_CHECKLIST_20261115_V1_END */


/* DAILY_BALANCE_RECIPE_PRINT_INGREDIENT_ALIGNMENT_20261115 */
/* The interactive checklist uses buttons. A button defaults to centered text in
   print unless explicitly overridden; wrapped ingredient labels must align left. */
@media print {
  body[data-page="recipe"] .ingredient-panel .db-ingredient-toggle {
    text-align: left !important;
  }
}

/* DAILY_BALANCE_SCREEN_READABILITY_BOTH_THEMES_20261116_V1
   Shared readability adjustments, deliberately SCREEN-ONLY. Do not alter A4
   recipe printing or the distinct light/dark palettes. */
@media screen {
  :root { --db-access-focus:#356a4a; }
  :root[data-db-theme="dark"] { --db-access-focus:#e8c38b; }

  /* Small labels/helper text only; keep the main body and heading hierarchy. */
  .brand-label small {font-size:11px;}
  .lang-label {font-size:12px;}
  .footer .footer-inner {font-size:12.5px;line-height:1.55;}
  .hero-note, .mini-note {font-size:13px;}
  .filter-fields label {font-size:12.5px;}
  .recipe-meta span {font-size:12.5px;}
  .recipe-scale-control label, .recipe-scale-note {font-size:13px;}
  body[data-page="recipe"] .db-ingredient-checklist-meta {
    font-size:13px;line-height:1.5;color:var(--muted);
  }
  body[data-page="recipe"] .db-ingredient-reset {
    min-height:30px;padding:4px 5px;border-radius:5px;
    color:var(--green);background:transparent;border:0;font-weight:700;cursor:pointer;
  }
  .nutri-fields label, .nutri-searchrow label,
  .nutri-group-addrow label, .nutri-group-controls label,
  .nutri-food-field>label, .nutri-quick-food-field>label,
  .contact-form>label {font-size:13px;}
  .nutri-footer-note {font-size:13px;}
  .nutri-stat>small {font-size:12px;line-height:1.45;}
  .nutri-number>span, .nutri-stat>span {font-size:13px;}
  .nutri-shortcut-heading, .nutri-shortcut-count {font-size:13px;}
  .nutri-food-chip {font-size:13px;min-height:35px;}
  .nutri-recipe-bundle-toggle small {font-size:13px;line-height:1.4;}
  .nutri-recipe-bundle-section td {font-size:12.5px;}
  .nutri-quantity>span, .nutri-plan-edit-quantity span {font-size:13px;}
  .nutri-remove, .nutri-textbtn, .nutri-miniaction,
  .nutri-import-remove {font-size:13px;}
  .nutri-table {font-size:13px;}
  .nutri-plan-edit-actions button {font-size:13px;}
  /* Visible interactive affordances without converting all links to buttons. */
  .nutri-table a[href], .nutri-recipe-bundle-parent a[href] {
    text-decoration:underline;text-underline-offset:3px;
  }
  :where(a,button,input,select,textarea,summary,[tabindex]):focus-visible {
    outline:3px solid var(--db-access-focus)!important;
    outline-offset:3px;
  }
  /* The light theme's original placeholder and captions were too pale. */
  :root:not([data-db-theme="dark"]) .filter-fields input::placeholder,
  :root:not([data-db-theme="dark"]) .nutri-searchrow input::placeholder {
    color:#606b60;opacity:1;
  }
  :root:not([data-db-theme="dark"]) .photo-caption {color:#576657;}
  :root:not([data-db-theme="dark"]) .footer .footer-inner {color:#59665b;}
  :root:not([data-db-theme="dark"]) .recipe-meta span {color:#5b685c;}
  :root:not([data-db-theme="dark"]) :is(.eyebrow,.card-kicker) {color:#97543d;}
  /* Dark secondary text remains calm; improve only small metadata legibility. */
  :root[data-db-theme="dark"] .nutri-shortcut-count,
  :root[data-db-theme="dark"] .nutri-recipe-bundle-toggle small {
    color:#bdcfc1;
  }
}
@media screen and (max-width:560px) {
  /* Keep compact nutrient tables responsive; avoid wider mobile columns. */
  .nutri-table {font-size:12px;}
  .nutri-food-chip {font-size:12.5px;}
  .footer .footer-inner {font-size:12px;}
  .nutri-recipe-bundle-toggle small {font-size:12.5px;}
}
@media screen and (prefers-reduced-motion:reduce) {
  .recipe-card,.button {transition:none!important;}
  .recipe-card:hover,.button:hover {transform:none!important;}
}
/* DAILY_BALANCE_SCREEN_READABILITY_BOTH_THEMES_20261116_END */

/* DAILY_BALANCE_ACTION_CONTRAST_AND_REMOVE_20261116_V1
   Screen-only refinement. Secondary buttons share a style; Print remains primary.
   Navigation links have their own warm accent; nutrition data and printing untouched. */
@media screen {
  /* A consistent visual hierarchy in recipe header actions. */
  :root:not([data-db-theme="dark"]) body[data-page="recipe"] .recipe-utility-actions :is(.recipe-fav-star-large,.recipe-import-button) {
    background:#f1f5ef;
    border:1px solid #b4c9ba;
    color:#28533d;
    min-height:40px;
  }
  :root:not([data-db-theme="dark"]) body[data-page="recipe"] .recipe-utility-actions .recipe-fav-label {color:#28533d;}
  :root:not([data-db-theme="dark"]) body[data-page="recipe"] .recipe-utility-actions :is(.recipe-fav-star-large,.recipe-import-button):hover {background:#e4eee4;}
  :root[data-db-theme="dark"] body[data-page="recipe"] .recipe-utility-actions :is(.recipe-fav-star-large,.recipe-import-button) {
    background:#304237;
    border:1px solid #627f69;
    color:#e9eeea;
    min-height:40px;
  }
  :root[data-db-theme="dark"] body[data-page="recipe"] .recipe-utility-actions .recipe-fav-label {color:#e9eeea;}
  :root[data-db-theme="dark"] body[data-page="recipe"] .recipe-utility-actions :is(.recipe-fav-star-large,.recipe-import-button):hover {background:#405b49;}
  /* A saved favorite remains distinctly gold, including the readable label. */
  :root[data-db-theme="dark"] body[data-page="recipe"] .recipe-utility-actions .recipe-fav-star-large.is-favorite {
    background:#473c2a;border-color:#84704d;color:#ffda80;
  }
  :root[data-db-theme="dark"] body[data-page="recipe"] .recipe-utility-actions .recipe-fav-star-large.is-favorite .recipe-fav-label {color:#f5e8c8;}
  :root:not([data-db-theme="dark"]) body[data-page="recipe"] .recipe-utility-actions .recipe-fav-star-large.is-favorite {
    background:#fff9e7;border-color:#c8af75;color:#886420;
  }
  /* Colored links must remain clear within both pale and dark green rows. */
  :root:not([data-db-theme="dark"]) .calc-page a.nutri-recipe-source-link {color:#8b503b;text-decoration:underline;text-underline-offset:3px;}
  :root:not([data-db-theme="dark"]) .calc-page a.nutri-recipe-source-link:hover {color:#693822;}
  :root[data-db-theme="dark"] .calc-page a.nutri-recipe-source-link {color:#f5ae92;text-decoration:underline;text-underline-offset:3px;}
  :root[data-db-theme="dark"] .calc-page a.nutri-recipe-source-link:hover {color:#ffccb7;}
  /* Some browsers displayed the mobile x alongside the desktop Remove label. */
  .calc-page .nutri-remove .nutri-remove-mobile {display:none!important;}
  .calc-page .nutri-remove .nutri-remove-text {display:inline!important;}
}
@media screen and (max-width:740px) {
  /* On mobile the compact x replaces, rather than supplements, the word Remove. */
  .calc-page .nutri-daily-entries .nutri-remove .nutri-remove-text {display:none!important;}
  .calc-page .nutri-daily-entries .nutri-remove .nutri-remove-mobile {display:inline!important;}
}
/* DAILY_BALANCE_ACTION_CONTRAST_AND_REMOVE_20261116_END */

/* DAILY_BALANCE_ORIGINAL_NAME_GROUP_REFERENCE_20261116_V1
   Readability-only fixes. Screen only: A4 printing and layout unchanged.
   The hero 'The printed books' remains a deliberately unfilled secondary link. */
@media screen {
  /* Preserve the existing 15px italic recipe original name, but improve its contrast.
     Raise the previously 11px inline label to 14px on both themes. */
  :root:not([data-db-theme="dark"]) body[data-page="recipe"] .recipe-heading .original {
    font-size:15px;
    color:#435b49;
  }
  :root:not([data-db-theme="dark"]) body[data-page="recipe"] .recipe-heading .original span {
    font-size:14px;
    color:#315740;
  }
  :root[data-db-theme="dark"] body[data-page="recipe"] .recipe-heading .original {
    font-size:15px;
    color:#cbd9cf;
  }
  :root[data-db-theme="dark"] body[data-page="recipe"] .recipe-heading .original span {
    font-size:14px;
    color:#bfe2cb;
  }
  /* The group target's numeric value was already legible: change its label only.
     Keep the green panel and all numerical styles unchanged. */
  :root[data-db-theme="dark"] .calc-page .nutri-group-target {
    color:#d5e6da;
  }
}
/* DAILY_BALANCE_ORIGINAL_NAME_GROUP_REFERENCE_20261116_END */

/* DAILY_BALANCE_LIGHT_TERRACOTTA_TEXT_20261116_V1
   Darker, unified terracotta for SMALL ORANGE TEXT in the light theme.
   Screen only. The dark theme, print styles, orange ingredient dots, divider
   rules, decorative artwork, primary green buttons and backgrounds are unchanged. */
@media screen {
  :root:not([data-db-theme="dark"]) { --db-light-text-accent:#8B3621; }

  /* Homepage eyebrow (e.g. 109 RECIPES), recipe categories, card labels. */
  :root:not([data-db-theme="dark"]) :is(.eyebrow,.card-kicker) {
    color:var(--db-light-text-accent);
  }
  /* Previous/next recipe's small navigational caption. */
  :root:not([data-db-theme="dark"]) .recipe-pagination small {
    color:var(--db-light-text-accent);
  }
  /* Hover-only text accents: leave primary link colors and buttons untouched. */
  :root:not([data-db-theme="dark"]) :is(.nav-items a:hover,.text-link:hover,.crumbs a:hover) {
    color:var(--db-light-text-accent);
  }
  /* Orange/brown text actions in filters and Calcolo; do not modify errors,
     favorite stars, or the mobile x/desktop Remove display rules. */
  :root:not([data-db-theme="dark"]) :is(.clear-btn,.nutri-remove,.nutri-textbtn,.nutri-miniaction,.nutri-import-remove) {
    color:var(--db-light-text-accent);
  }
  /* Recipe navigation inside a Calcolo bundle, e.g. 'View recipe'. */
  :root:not([data-db-theme="dark"]) .calc-page a.nutri-recipe-source-link {
    color:var(--db-light-text-accent);
  }
  :root:not([data-db-theme="dark"]) .calc-page a.nutri-recipe-source-link:hover {
    color:#71311F;
  }
}
/* DAILY_BALANCE_LIGHT_TERRACOTTA_TEXT_20261116_END */

/* DAILY_BALANCE_LIGHT_ACCENT_CONSISTENCY_20261116_V2
   Make small uppercase labels and previous/next navigation share a visible,
   unified light-theme terracotta. Preserve all dark-theme colors and the
   original accent-colored ingredient dots. Screen only. */
@media screen {
  :root:not([data-db-theme="dark"]) .eyebrow {
    font-size:11px;
    font-weight:800;
    letter-spacing:.18em;
  }
  :root:not([data-db-theme="dark"]) .card-kicker {
    font-size:11px;
    font-weight:800;
    letter-spacing:.08em;
  }
  :root:not([data-db-theme="dark"]) .recipe-pagination small {
    font-size:11px;
    font-weight:800;
  }
}
/* DAILY_BALANCE_LIGHT_ACCENT_CONSISTENCY_20261116_END */

/* DAILY_BALANCE_REMINDER_ACCENT_SYSTEM_20261116_V1
   Screen-only: one accessible terracotta for editorial/navigation/action text
   in each theme; hover remains distinct. Warning/alert semantics, decorative
   accents, selected favorites, checklist dots, print and layout are unchanged.
   The produce reminder keeps its existing 3px rail and rounded panel. */
@media screen {
  :root:not([data-db-theme="dark"]) {
    --db-text-terracotta:#8B3621;
    --db-text-terracotta-hover:#71311F;
    --db-produce-rail:#93A995;
  }
  :root[data-db-theme="dark"] {
    --db-text-terracotta:#f5ae92;
    --db-text-terracotta-hover:#ffccb7;
    --db-produce-rail:#779887;
  }
  /* The original 3px 'currentColor' line otherwise looks almost black. */
  :root .calc-page .nutri-produce-reminder {
    border-left-color:var(--db-produce-rail);
  }
  /* Editorial accents: homepage eyebrow, categories, recipe count, pagination. */
  :root:not([data-db-theme="dark"]) :is(.eyebrow,.card-kicker,.recipe-pagination small),
  :root[data-db-theme="dark"] :is(.eyebrow,.card-kicker,.recipe-pagination small) {
    color:var(--db-text-terracotta);
  }
  /* Text actions only; leave primary green buttons and warning/favorite colors. */
  :root:not([data-db-theme="dark"]) :is(.clear-btn,.nutri-remove,.nutri-textbtn,.nutri-miniaction,.nutri-import-remove),
  :root[data-db-theme="dark"] :is(.clear-btn,.nutri-remove,.nutri-textbtn,.nutri-miniaction,.nutri-import-remove) {
    color:var(--db-text-terracotta);
  }
  :root:not([data-db-theme="dark"]) .calc-page a.nutri-recipe-source-link,
  :root[data-db-theme="dark"] .calc-page a.nutri-recipe-source-link {
    color:var(--db-text-terracotta);
  }
  :root:not([data-db-theme="dark"]) :is(.nav-items a:hover,.text-link:hover,.crumbs a:hover,
            .clear-btn:hover,.nutri-remove:hover,.nutri-textbtn:hover,
            .nutri-miniaction:hover,.nutri-import-remove:hover),
  :root[data-db-theme="dark"] :is(.nav-items a:hover,.text-link:hover,.crumbs a:hover,
            .clear-btn:hover,.nutri-remove:hover,.nutri-textbtn:hover,
            .nutri-miniaction:hover,.nutri-import-remove:hover) {
    color:var(--db-text-terracotta-hover);
  }
  :root:not([data-db-theme="dark"]) .calc-page a.nutri-recipe-source-link:hover,
  :root[data-db-theme="dark"] .calc-page a.nutri-recipe-source-link:hover {
    color:var(--db-text-terracotta-hover);
  }
}
/* DAILY_BALANCE_REMINDER_ACCENT_SYSTEM_20261116_END */


/* DAILY_BALANCE_CALCOLO_MEAL_WORKFLOW_20261116_V1
   Screen-only: reusable meal selection, stronger input affordance, calmer light background.
   Existing nutrition calculations, print and dark-theme palette stay unchanged. */
@media screen {
  :root:not([data-db-theme="dark"]) body[data-page="calculate"]{background:#f3f3ed}
  :root:not([data-db-theme="dark"]) .calc-page .nutri-panel{background:#faf9f5}
  .calc-page .nutri-meal-tools,.calc-page .nutri-food-add,.calc-page .nutri-food-list{min-width:0}
  .calc-page .nutri-meal-tools .nutri-muted:first-of-type{margin-top:0}
  .calc-page .nutri-meal-library{margin-top:16px;padding-top:15px;border-top:1px solid var(--line)}
  .calc-page .nutri-meal-library h3{margin:0 0 5px;font-size:17px}
  .calc-page .nutri-meal-library-controls{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap;margin-top:15px}
  .calc-page .nutri-meal-library-controls label{display:flex;gap:6px;flex-direction:column;flex:1 1 210px;font-size:13px;font-weight:650}
  .calc-page .nutri-meal-library-controls select{width:100%;min-height:44px;max-width:420px;padding:9px;border-radius:9px;border:1px solid var(--line);background:var(--paper);color:var(--ink)}
  .calc-page .nutri-meal-library-controls button,.calc-page .nutri-meal-start,.calc-page .nutri-meal-stickybar button,.calc-page .nutri-suggestion-header button{min-height:42px;padding:9px 12px;border:1px solid #9ebaab;border-radius:9px;background:#e9f0e8;color:#234d39;font-weight:700;cursor:pointer}
  .calc-page .nutri-meal-library-controls button:disabled,.calc-page .nutri-meal-stickybar button:disabled{opacity:.48;cursor:not-allowed}
  .calc-page .nutri-meal-tip{margin-top:8px}
  .calc-page .nutri-food-add .nutri-quick-combobox>input{border:2px solid #689278;background:#fcfdf9;min-height:51px;font-size:15px}
  .calc-page .nutri-food-add .nutri-quick-combobox>input:focus{outline:3px solid #91b59b;outline-offset:2px}
  .calc-page .nutri-meal-checkbox{width:20px;height:20px;min-width:20px;accent-color:#497c62;flex-shrink:0;cursor:pointer;margin:0 7px 0 0;vertical-align:middle}
  .calc-page .nutri-meal-select-parent{display:inline-flex;align-items:center;gap:7px}
  .calc-page .nutri-meal-stickybar{position:sticky;bottom:10px;z-index:25;display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0;padding:12px;background:#e7eee6;border:1px solid #a7bca9;border-radius:12px;box-shadow:0 8px 23px rgba(22,37,27,.12)}
  .calc-page .nutri-meal-stickybar>strong{font-size:13px;white-space:nowrap}
  .calc-page .nutri-meal-stickybar label{display:flex;gap:5px;align-items:center;flex:1 1 220px;font-size:12px;font-weight:700}
  .calc-page .nutri-meal-stickybar input[type=text]{width:100%;min-width:120px;min-height:41px;background:var(--paper);border:1px solid #9aae9c;border-radius:8px;padding:8px;color:var(--ink)}
  .calc-page .nutri-meal-stickybar button{white-space:normal}
  .calc-page .nutri-meal-stickybar .nutri-meal-cancel{background:transparent}
  .calc-page [data-ungroup-plan-bundle]{margin:4px 0 0 7px;background:transparent;border:0;color:var(--green);text-decoration:underline;font-size:12px;cursor:pointer}
  .calc-page .nutri-suggestion-choices{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
  .calc-page .nutri-suggestion-choice{display:flex;flex-direction:column;align-items:flex-start;gap:6px;text-align:left;min-height:75px;padding:15px 18px;border:1px solid #a6bba8;border-radius:12px;background:#eef3eb;color:#264b39;cursor:pointer}
  .calc-page .nutri-suggestion-choice strong{font-size:17px}
  .calc-page .nutri-suggestion-choice small{font-size:13px;font-weight:400;line-height:1.45}
  .calc-page .nutri-suggestion-choice:hover{border-color:#548269;background:#e5eee5}
  .calc-page .nutri-suggestion-header{display:flex;gap:12px;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;margin-bottom:10px}
  .calc-page .nutri-suggestion-header h2{margin-bottom:0}
  .calc-page .nutri-advanced-shell>h3{margin-top:8px}
  :root[data-db-theme="dark"] .calc-page .nutri-food-add .nutri-quick-combobox>input{border:2px solid #d0ae74;background:#26322d;color:var(--ink)}
  :root[data-db-theme="dark"] .calc-page .nutri-food-add .nutri-quick-combobox>input:focus{outline:3px solid #e1bf83}
  :root[data-db-theme="dark"] .calc-page .nutri-meal-library-controls button,
  :root[data-db-theme="dark"] .calc-page .nutri-meal-start,
  :root[data-db-theme="dark"] .calc-page .nutri-meal-stickybar button,
  :root[data-db-theme="dark"] .calc-page .nutri-suggestion-header button{background:#304638;color:#e4f3e7;border-color:#597363}
  :root[data-db-theme="dark"] .calc-page .nutri-meal-stickybar{background:#2b3930;color:#edf3ee;border-color:#597363}
  :root[data-db-theme="dark"] .calc-page .nutri-meal-stickybar .nutri-meal-cancel{background:transparent}
  :root[data-db-theme="dark"] .calc-page .nutri-suggestion-choice{background:#29382f;border-color:#597363;color:#edf3ee}
  :root[data-db-theme="dark"] .calc-page .nutri-suggestion-choice:hover{background:#345142;border-color:#81b194}
  .calc-page .nutri-meal-start:focus-visible,.calc-page .nutri-suggestion-choice:focus-visible,.calc-page [data-meal-select]:focus-visible{outline:3px solid #9a7950;outline-offset:3px}
}
@media(max-width:650px) and (screen){
 .calc-page .nutri-meal-stickybar{bottom:4px;gap:8px;padding:10px}
 .calc-page .nutri-meal-stickybar label{flex-basis:100%}
 .calc-page .nutri-meal-stickybar>button{flex:1 1 auto}
 .calc-page .nutri-meal-library-controls button{flex:1 1 125px}
}

/* DAILY_BALANCE_CALCOLO_FINAL_REFINEMENTS_20261116_V1 — grouping toolbar and nested search */
@media screen {
 .calc-page .nutri-food-list .nutri-food-add{padding:14px 16px 17px;margin-bottom:18px;border:1px solid var(--line);border-radius:12px;background:var(--surface,#f5f6f0)}
 .calc-page .nutri-food-list .nutri-food-add h3{font-size:17px;margin:0 0 10px}
 .calc-page .nutri-meal-stickybar{display:flex;gap:10px}
 .calc-page .nutri-meal-selection-heading{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px}
 .calc-page .nutri-meal-selection-heading strong{font-size:14px}
 .calc-page .nutri-meal-stickybar .nutri-meal-cancel{min-height:34px;padding:6px 9px;margin-left:auto;border:0;background:transparent;text-decoration:underline}
 .calc-page .nutri-meal-action-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
 .calc-page .nutri-meal-action-row button{flex:1 1 130px}
 :root[data-db-theme="dark"] .calc-page .nutri-food-list .nutri-food-add{background:#26352c}
}
@media(max-width:650px) and (screen) {
 .calc-page .nutri-food-list .nutri-food-add{padding:11px}
 .calc-page .nutri-meal-action-row{width:100%}
 .calc-page .nutri-meal-stickybar label{flex-basis:100%}
}

/* DAILY_BALANCE_EDITABLE_DATABASE_RECIPE_MEAL_NAME_20261116_V1 */
.calc-page .nutri-meal-stickybar input#meal-draft-name[aria-invalid="true"]{border:2px solid #b83232!important;background:#fff1ef!important;color:#4b1d1d!important;box-shadow:0 0 0 2px rgba(184,50,50,.14)}
.calc-page .nutri-meal-stickybar .nutri-meal-error{display:block;flex-basis:100%;color:#ae2a25;font-size:13px;font-weight:700;margin:0 0 2px}
.calc-page .nutri-meal-stickybar .nutri-meal-error[hidden]{display:none}
:root[data-db-theme="dark"] .calc-page .nutri-meal-stickybar input#meal-draft-name[aria-invalid="true"]{border-color:#ff9b91!important;background:#4a2829!important;color:#fff6f5!important}
:root[data-db-theme="dark"] .calc-page .nutri-meal-stickybar .nutri-meal-error{color:#ffb5ad}
.calc-page .nutri-db-recipe-details-toggle{margin-top:6px;border:0;background:transparent;color:var(--accent-text,var(--ink));text-align:left;text-decoration:underline;text-underline-offset:2px;cursor:pointer;font-size:13px;font-weight:650}
.calc-page .nutri-db-recipe-detail td{background:var(--paper);border-left:3px solid #93a995;padding:12px 14px}
.calc-page .nutri-db-recipe-detail p{font-size:13px;line-height:1.5;margin:0 0 10px}
.calc-page .nutri-db-recipe-detail button{background:var(--paper);border:1px solid #7f9886;color:var(--ink);padding:9px 11px;border-radius:7px;cursor:pointer;min-height:40px}
:root[data-db-theme="dark"] .calc-page .nutri-db-recipe-detail td{background:#25342b;border-left-color:#779887}
:root[data-db-theme="dark"] .calc-page .nutri-db-recipe-detail button{background:#2f4538;border-color:#9db6a1;color:#ebf4ec}
.calc-page .nutri-bundle-ratio-label{display:flex;align-items:flex-start;gap:6px;font-size:12px;line-height:1.3;margin-top:7px;color:var(--ink);cursor:pointer}
.calc-page .nutri-bundle-ratio-label input{margin:2px 0 0;flex:none;width:16px;height:16px}
.calc-page .nutri-recipe-bundle-child input[readonly]{background:rgba(130,146,134,.09);opacity:.8;cursor:not-allowed}
:root[data-db-theme="dark"] .calc-page .nutri-recipe-bundle-child input[readonly]{background:#243028;color:#c0cdc4}
@media print{.calc-page .nutri-db-recipe-details-toggle,.calc-page .nutri-bundle-ratio-label{display:none}}

/* DAILY_BALANCE_INLINE_RECIPE_AND_BARILLA_20261116_V1 — contextual recipe controls + number spinner removal */
@media screen {
 .calc-page input[type="number"]{-moz-appearance:textfield;appearance:textfield}
 .calc-page input[type="number"]::-webkit-inner-spin-button,
 .calc-page input[type="number"]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
 .calc-page .nutri-recipe-bundle-child button:disabled,
 .calc-page .nutri-recipe-bundle-parent button:disabled,
 .calc-page .nutri-bundle-add-row button:disabled{opacity:.48;cursor:not-allowed}
 .calc-page .nutri-bundle-add-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin:5px 0}
 .calc-page .nutri-bundle-add-actions small{font-size:12px;opacity:.85}
 .calc-page .nutri-bundle-add-form{display:flex;align-items:end;flex-wrap:wrap;gap:9px;margin:12px 0}
 .calc-page .nutri-bundle-add-form label{display:flex;flex-direction:column;gap:4px;font-size:13px;flex:1 1 160px;min-width:130px}
 .calc-page .nutri-bundle-add-form select{min-width:0;width:100%;max-width:100%}
 .calc-page .nutri-bundle-add-form input[type="number"]{max-width:110px;width:100%}
 .calc-page .nutri-bundle-add-form button{min-height:38px;padding:7px 10px}
 .calc-page .nutri-bundle-add-row>td{background:var(--paper);padding:10px 18px;border-top:1px dashed var(--line)}
 .calc-page .nutri-bundle-inline-review>td{padding:14px 8px;background:var(--paper)}
 .calc-page .nutri-bundle-inline-review .nutri-import-panel{margin:0;width:100%;max-width:none}
 .calc-page .nutri-food-list>.nutri-import-panel{margin:12px 0}
 :root[data-db-theme="dark"] .calc-page .nutri-bundle-add-row>td,
 :root[data-db-theme="dark"] .calc-page .nutri-bundle-inline-review>td{background:#26352d}
}
@media screen and (max-width:650px){
 .calc-page .nutri-bundle-add-form label{flex-basis:100%}
 .calc-page .nutri-bundle-add-form input[type="number"]{max-width:180px}
}

/* DAILY_BALANCE_DIRECT_RECIPE_SEARCH_20261116_V2 — search placement and searchable in-recipe picker. */
@media screen {
 .calc-page .nutri-bundle-add-form .nutri-bundle-search-label{flex:1 1 320px;min-width:200px;max-width:100%}
 .calc-page .nutri-bundle-food-picker{display:flex;flex-direction:column;position:relative;gap:6px;width:100%;min-width:0}
 .calc-page .nutri-bundle-food-picker>input[type="search"]{width:100%;min-width:0;min-height:49px;border:2px solid #689278!important;border-radius:11px;background:#fcfdf9;color:var(--ink);padding:10px 13px;font-size:15px}
 .calc-page .nutri-bundle-food-picker>input[type="search"]:focus{outline:3px solid #91b59b;outline-offset:1px}
 .calc-page .nutri-bundle-matches:not([hidden]){display:block;width:100%;max-height:215px;overflow-y:auto;border:1px solid var(--line);border-radius:9px;background:var(--paper);box-shadow:0 8px 22px #0002}
 .calc-page .nutri-bundle-match{display:block;text-align:left;width:100%;margin:0;border:0;border-bottom:1px solid var(--line);padding:10px 12px;background:transparent;color:var(--ink);font:inherit;cursor:pointer;line-height:1.4}
 .calc-page .nutri-bundle-match:last-child{border-bottom:0}
 .calc-page .nutri-bundle-match:hover,.calc-page .nutri-bundle-match.is-active{background:var(--cream);color:var(--ink)}
 .calc-page .nutri-bundle-picked:not(:empty){font-size:12px;line-height:1.4;color:var(--green-dark);font-weight:600}
 .calc-page .nutri-bundle-no-match{display:block;padding:12px;font-size:13px;color:var(--muted)}
 .calc-page .nutri-food-list .nutri-food-add{margin-top:12px;margin-bottom:9px}
 :root[data-db-theme="dark"] .calc-page .nutri-bundle-food-picker>input[type="search"]{background:#26322d;color:var(--ink);border-color:#d0ae74!important}
 :root[data-db-theme="dark"] .calc-page .nutri-bundle-food-picker>input[type="search"]:focus{outline-color:#e1bf83}
 :root[data-db-theme="dark"] .calc-page .nutri-bundle-matches:not([hidden]){background:#26322d;box-shadow:0 8px 22px #0006}
 :root[data-db-theme="dark"] .calc-page .nutri-bundle-match:hover,
 :root[data-db-theme="dark"] .calc-page .nutri-bundle-match.is-active{background:#375143}
}
@media screen and (max-width:650px){
 .calc-page .nutri-bundle-add-form .nutri-bundle-search-label{flex-basis:100%}
 .calc-page .nutri-bundle-food-picker>input[type="search"]{font-size:16px}
}

/* DAILY_BALANCE_LIGHT_CONTRAST_ACTIVITY_20261117_V1
   Warm, higher-contrast LIGHT palette; dark mode and print styles are unchanged. */
:root[data-db-theme="light"] {
 --bg:#f1f0e9;
 --paper:#fbfaf6;
 --ink:#202b23;
 --muted:#485a4d;
 --line:#bdcbbd;
 --green:#29543d;
 --green-dark:#1e4230;
 --cream:#e7eee5;
 --rose:#98513a;
 --shadow:0 13px 28px rgba(27,42,30,.085);
 accent-color:#286446;
}
:root[data-db-theme="light"] body{background:var(--bg);color:var(--ink)}
:root[data-db-theme="light"] .site-header{background:#f8f8f3;border-color:#bdcbbd}
:root[data-db-theme="light"] .footer{background:#e8ede6;border-color:#b2c5b5}
:root[data-db-theme="light"] .recipe-card,
:root[data-db-theme="light"] .ingredient-panel,
:root[data-db-theme="light"] .nutri-panel{background:var(--paper);border-color:#b7c6b8}
:root[data-db-theme="light"] .hero-copy p,
:root[data-db-theme="light"] .book-cta p,
:root[data-db-theme="light"] .about-grid p,
:root[data-db-theme="light"] .about-points,
:root[data-db-theme="light"] .card-meta,
:root[data-db-theme="light"] .original,
:root[data-db-theme="light"] .footer-inner{color:#465a4c}
:root[data-db-theme="light"] .button-dark,
:root[data-db-theme="light"] .calc-tabs button.active{background:#2b5a42;color:#fff;border-color:#2b5a42}
:root[data-db-theme="light"] .button-dark:hover,
:root[data-db-theme="light"] .calc-tabs button.active:hover{background:#204832}
:root[data-db-theme="light"] .button-light,
:root[data-db-theme="light"] .calc-tabs button:not(.active){background:#f7f9f3;border-color:#8fa995;color:#254e39}
:root[data-db-theme="light"] .calc-page .nutri-muted,
:root[data-db-theme="light"] .calc-page .nutri-footer-note,
:root[data-db-theme="light"] .calc-page .nutri-shortcut-count{color:#45584a}
:root[data-db-theme="light"] .calc-page .nutri-shortcut-heading,
:root[data-db-theme="light"] .calc-page .nutri-fields label,
:root[data-db-theme="light"] .calc-page .nutri-searchrow label,
:root[data-db-theme="light"] .calc-page .nutri-quick-food-field>label,
:root[data-db-theme="light"] .calc-page .nutri-group-addrow label{color:#294634}
:root[data-db-theme="light"] .calc-page .nutri-food-list .nutri-food-add{background:#edf1e9;border-color:#9bb19e}
:root[data-db-theme="light"] .calc-page .nutri-quick-shortcuts:not(:empty){margin:0 0 15px;padding:0 0 14px;border-bottom:1px solid #bdcdbd}
:root[data-db-theme="light"] .calc-page .nutri-shortcut-chips .nutri-food-chip,
:root[data-db-theme="light"] .calc-page .nutri-quick-more{background:#e9f0e8;color:#244e37;border-color:#8fae99}
:root[data-db-theme="light"] .calc-page .nutri-shortcut-chips .nutri-food-chip:hover,
:root[data-db-theme="light"] .calc-page .nutri-quick-more:hover{background:#dce9df;border-color:#577e62}
:root[data-db-theme="light"] .calc-page .nutri-more-favorites{background:#f3f7f1;border-color:#a9bdac}
:root[data-db-theme="light"] .calc-page .nutri-more-favorites>summary,
:root[data-db-theme="light"] .calc-page .nutri-quick-more,
:root[data-db-theme="light"] .calc-page .nutri-miniaction{color:#29533d}
:root[data-db-theme="light"] .calc-page .nutri-food-add .nutri-quick-combobox>input,
:root[data-db-theme="light"] .calc-page .nutri-bundle-food-picker>input[type="search"]{background:#fcfdf8;color:#1f3428;border:2px solid #527b5e!important}
:root[data-db-theme="light"] .calc-page .nutri-food-add .nutri-quick-combobox>input:focus,
:root[data-db-theme="light"] .calc-page .nutri-bundle-food-picker>input[type="search"]:focus{outline:3px solid #8cab96;outline-offset:1px}
:root[data-db-theme="light"] .calc-page .nutri-fields input,
:root[data-db-theme="light"] .calc-page .nutri-fields select,
:root[data-db-theme="light"] .calc-page .nutri-table input,
:root[data-db-theme="light"] .calc-page .nutri-table select{color:#20352a;border-color:#9bb19e;background:#fcfdf9}
:root[data-db-theme="light"] .calc-page .nutri-table th{background:#e4ebe1;color:#284d38}
:root[data-db-theme="light"] .calc-page .nutri-recipe-bundle-parent td,
:root[data-db-theme="light"] .calc-page .nutri-recipe-bundle-section td{background:#e8efe5;color:#223b2b}
:root[data-db-theme="light"] .calc-page .nutri-recipe-bundle-child td{background:#f5f8f2;color:#20352a}
:root[data-db-theme="light"] .calc-page .nutri-plan-content,
:root[data-db-theme="light"] .calc-page .nutri-more-favorites{box-shadow:none}
/* Space the reordered shortcuts from the search in both themes. */
.calc-page .nutri-quick-shortcuts:not(:empty){margin-top:0;margin-bottom:13px;padding-bottom:12px;border-bottom:1px solid var(--line)}
/* Activity guide is the same content in single- and multiple-person modes. */
.calc-page .nutri-activity-guide{margin:13px 0 3px;border:1px solid var(--line);border-radius:10px;background:var(--cream);overflow:hidden}
.calc-page .nutri-activity-guide>summary{cursor:pointer;list-style:revert;padding:11px 14px;font-weight:700;font-size:13px;color:var(--green-dark)}
.calc-page .nutri-activity-guide>summary:hover{background:rgba(89,132,97,.10)}
.calc-page .nutri-activity-guide>summary:focus-visible{outline:3px solid #76947a;outline-offset:-3px}
.calc-page .nutri-activity-guide-content{padding:0 14px 14px;font-size:13px;line-height:1.55;color:var(--ink)}
.calc-page .nutri-activity-guide-content>p{margin:5px 0 12px}
.calc-page .nutri-activity-guide-content>ul{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.calc-page .nutri-activity-guide-content li{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--paper)}
.calc-page .nutri-activity-guide-content li strong{font-size:12px;color:var(--green-dark)}
.calc-page .nutri-activity-guide-content li span{font-size:12px;color:var(--ink)}
.calc-page .nutri-activity-guide-content .nutri-activity-caveat{font-size:12px;color:var(--muted);margin:11px 0 0}
:root[data-db-theme="dark"] .calc-page .nutri-activity-guide{background:#27392f;border-color:#526e5c}
:root[data-db-theme="dark"] .calc-page .nutri-activity-guide>summary{color:#d4ebd9}
:root[data-db-theme="dark"] .calc-page .nutri-activity-guide-content li{background:#26342d;border-color:#526e5c}
:root[data-db-theme="dark"] .calc-page .nutri-activity-guide-content li strong{color:#c4e7ce}
:root[data-db-theme="dark"] .calc-page .nutri-activity-guide-content li span{color:#e5efe7}
:root[data-db-theme="dark"] .calc-page .nutri-activity-guide-content .nutri-activity-caveat{color:#c0cfbf}
@media screen and (max-width:640px){.calc-page .nutri-activity-guide-content>ul{grid-template-columns:1fr}}
@media print{.calc-page .nutri-activity-guide{display:none!important}}

/* DAILY_BALANCE_ACTIVITY_SEARCH_VISIBILITY_20261117_V2
   Make help immediately visible after Activity selector in profile grid. */
.calc-page .nutri-fields>.nutri-activity-guide{
 grid-column:1/-1;
 width:100%;
 margin:2px 0 10px;
 background:var(--cream);
 border:1.5px solid var(--line);
 border-radius:10px;
}
.calc-page .nutri-fields>.nutri-activity-guide>summary{
 display:list-item;
 font-size:14px;
 padding:12px 14px;
 text-decoration:underline;
 text-underline-offset:3px;
 color:var(--green-dark);
}
:root[data-db-theme="light"] .calc-page .nutri-fields>.nutri-activity-guide{
 background:#e4ece1;
 border-color:#72937a;
}
:root[data-db-theme="light"] .calc-page .nutri-fields>.nutri-activity-guide>summary{color:#214831}
:root[data-db-theme="dark"] .calc-page .nutri-fields>.nutri-activity-guide{
 background:#283d31;
 border-color:#708c74;
}
:root[data-db-theme="dark"] .calc-page .nutri-fields>.nutri-activity-guide>summary{color:#dfefe2}
/* Ensure shortcuts are visibly above the search in either theme. */
.calc-page .nutri-quick-food-field{display:flex;flex-direction:column}
.calc-page .nutri-quick-food-field>.nutri-quick-shortcuts{order:0}
.calc-page .nutri-quick-food-field>label{order:1}
.calc-page .nutri-quick-food-field>.nutri-quick-combobox{order:2}

/* DAILY_BALANCE_ACTIVITY_CARDS_20261117_V1
   Interactive activity choices; calculation factors and dark theme identity unchanged. */
.calc-page .nutri-activity-guide-content .nutri-activity-instruction{font-weight:650;margin:0 0 11px;color:var(--green-dark)}
.calc-page .nutri-activity-guide-content>ul>li{padding:0;overflow:hidden;display:block;background:transparent}
.calc-page .nutri-activity-guide-content .nutri-activity-choice{
 display:flex;flex-direction:column;gap:3px;text-align:left;cursor:pointer;width:100%;height:100%;
 padding:11px 12px;border:2px solid transparent;border-radius:7px;
 background:var(--paper);color:var(--ink);font:inherit;line-height:1.5;
 transition:background .15s ease,border-color .15s ease,box-shadow .15s ease;
}
.calc-page .nutri-activity-guide-content .nutri-activity-choice strong{font-size:12px;color:var(--green-dark)}
.calc-page .nutri-activity-guide-content .nutri-activity-choice span{font-size:12px;color:var(--ink)}
.calc-page .nutri-activity-guide-content .nutri-activity-choice:hover{background:var(--cream);border-color:#658d70}
.calc-page .nutri-activity-guide-content .nutri-activity-choice.is-selected{background:#dbeee0;border-color:#2b6d43;box-shadow:inset 0 0 0 1px #2b6d43}
.calc-page .nutri-activity-guide-content .nutri-activity-choice.is-selected strong::after{content:' ✓';font-weight:800}
.calc-page .nutri-activity-guide-content .nutri-activity-choice:focus-visible{outline:3px solid #649b74;outline-offset:-4px}
:root[data-db-theme="light"] .calc-page .nutri-activity-guide-content .nutri-activity-choice{background:#f8faf5;color:#263a2d}
:root[data-db-theme="light"] .calc-page .nutri-activity-guide-content .nutri-activity-choice.is-selected{background:#d5e9da;border-color:#276b43}
:root[data-db-theme="dark"] .calc-page .nutri-activity-guide-content .nutri-activity-instruction{color:#d5ebda}
:root[data-db-theme="dark"] .calc-page .nutri-activity-guide-content .nutri-activity-choice{background:#26342d;color:#e5efe7}
:root[data-db-theme="dark"] .calc-page .nutri-activity-guide-content .nutri-activity-choice strong{color:#c4e7ce}
:root[data-db-theme="dark"] .calc-page .nutri-activity-guide-content .nutri-activity-choice span{color:#e5efe7}
:root[data-db-theme="dark"] .calc-page .nutri-activity-guide-content .nutri-activity-choice:hover{background:#344b3b;border-color:#86ac8e}
:root[data-db-theme="dark"] .calc-page .nutri-activity-guide-content .nutri-activity-choice.is-selected{background:#284934;border-color:#a5d6ae;box-shadow:inset 0 0 0 1px #a5d6ae}
@media(prefers-reduced-motion:reduce){.calc-page .nutri-activity-guide-content .nutri-activity-choice{transition:none}}

/* DAILY_BALANCE_GROUPING_ADVANCED_FIBER_20261117_V2
 * Keep grouping action near Add another at the bottom of the daily food list. */
@media screen {
 .calc-page .nutri-food-list .nutri-quick-actions .nutri-meal-start{margin:0;flex:0 1 auto;white-space:normal}
 .calc-page .nutri-food-list .nutri-quick-actions .nutri-quick-clear{margin-left:auto}
 .calc-page .nutri-advanced-missing-fiber{margin:10px 0;padding:9px 12px;border-left:3px solid #8b9d73;background:var(--surface,#f4f6ef);font-size:13px;line-height:1.5}
 :root[data-db-theme="dark"] .calc-page .nutri-advanced-missing-fiber{background:#29382f;border-left-color:#a8c695;color:#dce8de}
}
@media(max-width:650px){
 .calc-page .nutri-food-list .nutri-quick-actions{gap:8px;flex-wrap:wrap}
 .calc-page .nutri-food-list .nutri-quick-actions .nutri-meal-start{min-width:0}
}

/* DAILY_BALANCE_DUPLICATE_DAY_FONT_20261117_V1
 * Match the two food-list action labels without changing button colors or behavior.
 * The '+' glyph remains slightly larger as in the existing design.
 */
.calc-page .nutri-food-list .nutri-quick-actions .nutri-quick-more span,
.calc-page .nutri-food-list .nutri-quick-actions .nutri-meal-start {
 font-size:14px;
 font-weight:700;
 line-height:1.3;
}
.calc-page .nutri-food-list .nutri-quick-actions .nutri-quick-more,
.calc-page .nutri-food-list .nutri-quick-actions .nutri-meal-start {
 min-height:43px;
 align-items:center;
}


/* DAILY_BALANCE_ADVANCED_PIN_HIDE_SIX_20261117_V1
 * Card browsing actions: keep them distinct from selecting/applying a card.
 */
.calc-page .nutri-advanced-browse-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.calc-page .nutri-advanced-pin-tip{font-size:12px;line-height:1.5;margin:-4px 0 12px}
.calc-page .nutri-advanced-card-head{display:flex;align-items:flex-start;gap:8px}
.calc-page .nutri-advanced-card-head .nutri-advanced-pick{min-width:0;flex:1}
.calc-page .nutri-advanced-card-actions{display:flex;gap:5px;flex:0 0 auto}
.calc-page .nutri-advanced-card-actions button{
 display:inline-flex;align-items:center;justify-content:center;min-width:40px;min-height:40px;
 padding:3px 8px;border-radius:9px;border:1px solid #b7cbb9;
 background:#eef5ee;color:#365841;font-size:21px;line-height:1;cursor:pointer
}
.calc-page .nutri-advanced-card-actions button:hover{background:#e0eee3;border-color:#55896d}
.calc-page .nutri-advanced-card-actions button:focus-visible{outline:2px solid #388459;outline-offset:2px}
.calc-page .nutri-advanced-card-actions .nutri-advanced-pin:not(.active){filter:grayscale(1);opacity:.78}
.calc-page .nutri-advanced-card-actions .nutri-advanced-pin.active{background:#d9eedf;border-color:#4a9565}
.calc-page .nutri-advanced-card-actions .nutri-advanced-hide{font-size:25px;font-weight:400}
.calc-page .nutri-advanced-card-actions button:disabled{opacity:.45;cursor:not-allowed}
.calc-page .nutri-advanced-card.nutri-advanced-is-pinned{border-left:4px solid #558e64}
:root[data-db-theme="dark"] .calc-page .nutri-advanced-card-actions button{
 background:#33493b;color:#e3f4e4;border-color:#617a66
}
:root[data-db-theme="dark"] .calc-page .nutri-advanced-card-actions button:hover{background:#466b51;border-color:#96c5a3}
:root[data-db-theme="dark"] .calc-page .nutri-advanced-card-actions .nutri-advanced-pin.active{background:#4c7057;border-color:#9ac8a1}
:root[data-db-theme="dark"] .calc-page .nutri-advanced-card.nutri-advanced-is-pinned{border-left-color:#9ac8a1}
@media(max-width:450px){.calc-page .nutri-advanced-card-head{gap:6px}.calc-page .nutri-advanced-card-actions{gap:3px}}


/* DAILY_BALANCE_ADVANCED_PIN_THEME_20261117_V1
 * Minimalist line-pin (no emoji), with icon-only ghost button.
 * Green for light mode, warm terracotta-orange for dark mode.
 * Only pin presentation changes; dismiss (X), persistence and ranking stay intact.
 */
.calc-page .nutri-advanced-card-actions button.nutri-advanced-pin {
 min-width:40px;min-height:40px;padding:0;
 background:transparent;border:1px solid transparent;border-radius:9px;
 box-shadow:none;filter:none;opacity:.64;
 transition:background-color .15s,border-color .15s,opacity .15s;
}
.calc-page .nutri-advanced-card-actions .nutri-advanced-pin svg {
 width:18px;height:18px;display:block;flex:none;
 fill:none;stroke:currentColor;stroke-width:1.65;
 stroke-linecap:round;stroke-linejoin:round;
}
.calc-page .nutri-advanced-card-actions .nutri-advanced-pin.active svg path:first-child {
 fill:currentColor;fill-opacity:.14;
}
:root:not([data-db-theme="dark"]) .calc-page .nutri-advanced-card-actions button.nutri-advanced-pin {
 color:#497c62;
}
:root:not([data-db-theme="dark"]) .calc-page .nutri-advanced-card-actions button.nutri-advanced-pin:hover {
 opacity:1;background:#edf4ee;border-color:#d0dfd2;
}
:root:not([data-db-theme="dark"]) .calc-page .nutri-advanced-card-actions button.nutri-advanced-pin.active {
 opacity:1;color:#2f704c;background:#edf4ee;border-color:#bcd2c1;
}
:root:not([data-db-theme="dark"]) .calc-page .nutri-advanced-card.nutri-advanced-is-pinned {
 border-left-color:#497c62;
}
:root[data-db-theme="dark"] .calc-page .nutri-advanced-card-actions button.nutri-advanced-pin {
 color:#f5ae92;
}
:root[data-db-theme="dark"] .calc-page .nutri-advanced-card-actions button.nutri-advanced-pin:hover {
 opacity:1;background:#3c342f;border-color:#665046;
}
:root[data-db-theme="dark"] .calc-page .nutri-advanced-card-actions button.nutri-advanced-pin.active {
 opacity:1;color:#f5ae92;background:#3c342f;border-color:#866354;
}
:root[data-db-theme="dark"] .calc-page .nutri-advanced-card.nutri-advanced-is-pinned {
 border-left-color:#f5ae92;
}
:root[data-db-theme="dark"] .calc-page .nutri-advanced-card-actions button.nutri-advanced-pin:focus-visible {
 outline:2px solid #f5ae92;outline-offset:2px;
}


/* DAILY_BALANCE_SAVED_PLAN_NESTED_MEALS_20261117_V1
   Clear distinction between complete-day plans and individual saved meals. */
.calc-page .nutri-saved-plan-intro{grid-column:1/-1;margin-bottom:2px}
.calc-page .nutri-saved-plan-intro h3{font-size:17px;margin:0 0 5px}
.calc-page .nutri-saved-plan-intro p{margin:0;font-size:13px;font-weight:400;color:var(--muted)}
.calc-page .nutri-saved-plan-outer{border-top:1px solid var(--line)}
.calc-page .nutri-embedded-group-parent td:first-child{padding-left:20px}
.calc-page .nutri-imported-day-parent td:first-child{font-weight:700}
@media(max-width:560px){.calc-page .nutri-embedded-group-parent td:first-child{padding-left:8px}}


/* DAILY_BALANCE_VISUAL_PLAN_FRAME_20261117_V1
 * One quiet perimeter around an expanded full-day plan, on mobile and desktop.
 * Neutral edge contrasts with colored plan (blue) and meal (green) headers.
 * Screen-only: no impact on printing.
 */
@media screen {
 :root:not([data-db-theme="dark"]) .calc-page .nutri-daily-entries {--db-plan-outline:#58695f;}
 :root[data-db-theme="dark"] .calc-page .nutri-daily-entries {--db-plan-outline:#b5c3ba;}
 /* Meals have a muted green header; only complete days retain the blue header. */
 :root:not([data-db-theme="dark"]) .calc-page .nutri-daily-entries tr.db-visual-meal-header {background:#e5f0e7;color:#2c5540;}
 :root[data-db-theme="dark"] .calc-page .nutri-daily-entries tr.db-visual-meal-header {background:#304538;color:#dcf0df;}
 :root:not([data-db-theme="dark"]) .calc-page .nutri-daily-entries tr.db-visual-meal-header .nutri-recipe-bundle-toggle {color:#2c5540;}
 :root[data-db-theme="dark"] .calc-page .nutri-daily-entries tr.db-visual-meal-header .nutri-recipe-bundle-toggle {color:#dcf0df;}
}
@media screen and (min-width:741px) {
 .calc-page .nutri-daily-entries {border-collapse:separate;border-spacing:0;}
 .calc-page .nutri-daily-entries tbody tr:is(.db-visual-plan-first,.db-visual-plan-member)>td:first-child {border-left:2px solid var(--db-plan-outline);}
 .calc-page .nutri-daily-entries tbody tr:is(.db-visual-plan-first,.db-visual-plan-member)>td:last-child {border-right:2px solid var(--db-plan-outline);}
 .calc-page .nutri-daily-entries tbody tr.db-visual-plan-first>td {border-top:2px solid var(--db-plan-outline);}
 .calc-page .nutri-daily-entries tbody tr.db-visual-plan-last>td {border-bottom:2px solid var(--db-plan-outline);}
 .calc-page .nutri-daily-entries tbody tr.db-visual-plan-first>td:first-child {border-top-left-radius:9px;}
 .calc-page .nutri-daily-entries tbody tr.db-visual-plan-first>td:last-child {border-top-right-radius:9px;}
 .calc-page .nutri-daily-entries tbody tr.db-visual-plan-last>td:first-child {border-bottom-left-radius:9px;}
 .calc-page .nutri-daily-entries tbody tr.db-visual-plan-last>td:last-child {border-bottom-right-radius:9px;}
}
@media screen and (max-width:740px) {
 /* Override the existing individual mobile-card spacing only for plan members. */
 .calc-page .nutri-daily-entries tbody {row-gap:0;}
 .calc-page .nutri-daily-entries tbody tr+tr {margin-top:9px;}
 .calc-page .nutri-daily-entries tbody tr.db-visual-plan-member {margin-top:0;}
 .calc-page .nutri-daily-entries tbody tr.db-visual-plan-first {
  border:2px solid var(--db-plan-outline);border-bottom-width:0;
  border-radius:12px 12px 0 0;
 }
 .calc-page .nutri-daily-entries tbody tr.db-visual-plan-member {
  border:0;border-left:2px solid var(--db-plan-outline);border-right:2px solid var(--db-plan-outline);
  border-bottom:1px solid var(--line);border-radius:0;
 }
 .calc-page .nutri-daily-entries tbody tr.db-visual-plan-last {
  border-bottom:2px solid var(--db-plan-outline);
  border-radius:0 0 12px 12px;
 }
 .calc-page .nutri-daily-entries tbody tr.db-visual-plan-first.db-visual-plan-last {
  border:2px solid var(--db-plan-outline);border-radius:12px;
 }
 .calc-page .nutri-daily-entries tbody tr.db-visual-plan-member>td:first-child {padding-left:4px;}
}


/* DAILY_BALANCE_PLAN_UNGROUP_LINK_20261117_V1
   Match the existing meal Ungroup/Separa control for complete-day plans.
   Theme colors follow the same --green variable used by meal group links. */
@media screen {
  .calc-page .nutri-daily-entries .nutri-imported-day-parent button[data-separate-imported-day] {
    -webkit-appearance:none;
    appearance:none;
    display:inline-block;
    box-sizing:border-box;
    margin:4px 0 0 7px;
    padding:1px 6px;
    border:0;
    border-radius:0;
    box-shadow:none;
    background:transparent;
    color:var(--green);
    font-family:inherit;
    font-size:12px;
    font-weight:400;
    line-height:normal;
    text-decoration:underline;
    cursor:pointer;
  }
  .calc-page .nutri-daily-entries .nutri-imported-day-parent button[data-separate-imported-day]:focus-visible {
    outline:2px solid currentColor;
    outline-offset:3px;
    border-radius:2px;
  }
}

/* DAILY_BALANCE_INLINE_DATABASE_RECIPE_EDITOR_20261117_V1
   Keep the existing validated ingredient editor in its own food-list row.
   The daily-food table's mobile grid rules must not affect the nested editor. */
.calc-page .nutri-daily-entries tr.nutri-db-inline-editor-row > td {
  padding: 10px;
  border-top: 0;
}
.calc-page .nutri-db-inline-editor-row .nutri-import-panel {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0;
}
@media (max-width:700px) {
  .calc-page .nutri-daily-entries tr.nutri-db-inline-editor-row {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .calc-page .nutri-daily-entries tr.nutri-db-inline-editor-row > td {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 0;
  }
  .calc-page .nutri-db-inline-editor-row .nutri-import-panel {
    padding: 14px 12px;
  }
  .calc-page .nutri-db-inline-editor-row .nutri-import-table,
  .calc-page .nutri-db-inline-editor-row .nutri-import-table tbody {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .calc-page .nutri-daily-entries .nutri-db-inline-editor-row .nutri-import-table tbody tr[data-import-row] {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .calc-page .nutri-daily-entries .nutri-db-inline-editor-row .nutri-import-table tbody tr[data-import-row] > td {
    grid-column: 1;
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    text-align: left;
    padding: 7px 0;
  }
  .calc-page .nutri-daily-entries .nutri-db-inline-editor-row .nutri-import-table tbody tr[data-import-row] > td:first-child {
    display: flex;
    padding-bottom: 8px;
  }
  .calc-page .nutri-db-inline-editor-row .nutri-import-table .nutri-import-food-picker {
    width: 100%;min-width: 0;
  }
}


/* DAILY_BALANCE_VISUAL_SUBGROUP_OUTLINE_20261117_V1
 * Neutral outlined meals and recipes, distinct from stronger day plan.
 */
@media screen {
 :root:not([data-db-theme="dark"]) .calc-page .nutri-daily-entries {--db-sub-outline:#6d8075;}
 :root[data-db-theme="dark"] .calc-page .nutri-daily-entries {--db-sub-outline:#a5b5ad;}
}
@media screen and (min-width:741px) {
 .calc-page .nutri-daily-entries tbody tr.db-subgroup>td:first-child {border-left:1px solid var(--db-sub-outline);}
 .calc-page .nutri-daily-entries tbody tr.db-subgroup>td:last-child {border-right:1px solid var(--db-sub-outline);}
 .calc-page .nutri-daily-entries tbody tr.db-subgroup-first>td {border-top:1px solid var(--db-sub-outline);}
 .calc-page .nutri-daily-entries tbody tr.db-subgroup-last>td {border-bottom:1px solid var(--db-sub-outline);}
 .calc-page .nutri-daily-entries tbody tr.db-subgroup-first>td:first-child {border-top-left-radius:7px;}
 .calc-page .nutri-daily-entries tbody tr.db-subgroup-first>td:last-child {border-top-right-radius:7px;}
 .calc-page .nutri-daily-entries tbody tr.db-subgroup-last>td:first-child {border-bottom-left-radius:7px;}
 .calc-page .nutri-daily-entries tbody tr.db-subgroup-last>td:last-child {border-bottom-right-radius:7px;}
 .calc-page .nutri-daily-entries tbody tr.db-visual-plan-member.db-subgroup>td:first-child {border-left:2px solid var(--db-plan-outline);}
 .calc-page .nutri-daily-entries tbody tr.db-visual-plan-member.db-subgroup>td:last-child {border-right:2px solid var(--db-plan-outline);}
}
@media screen and (max-width:740px) {
 .calc-page .nutri-daily-entries tbody tr.db-subgroup-first {border:1px solid var(--db-sub-outline);border-bottom:0;border-radius:10px 10px 0 0;}
 .calc-page .nutri-daily-entries tbody tr.db-subgroup-member {margin-top:0;border:0;border-left:1px solid var(--db-sub-outline);border-right:1px solid var(--db-sub-outline);border-bottom:1px solid var(--line);border-radius:0;}
 .calc-page .nutri-daily-entries tbody tr.db-subgroup-last {border-bottom:1px solid var(--db-sub-outline);border-radius:0 0 10px 10px;}
 .calc-page .nutri-daily-entries tbody tr.db-subgroup-first.db-subgroup-last {border:1px solid var(--db-sub-outline);border-radius:10px;}
 .calc-page .nutri-daily-entries tbody tr.db-visual-plan-member.db-subgroup {border-left:2px solid var(--db-plan-outline);border-right:2px solid var(--db-plan-outline);}
 .calc-page .nutri-daily-entries tbody tr.db-visual-plan-member.db-subgroup-first {border-top:1px solid var(--db-sub-outline);border-radius:0;}
 .calc-page .nutri-daily-entries tbody tr.db-visual-plan-member.db-subgroup-last {border-bottom:1px solid var(--db-sub-outline);border-radius:0;}
 .calc-page .nutri-daily-entries tbody tr.db-visual-plan-last.db-subgroup-last {border-bottom:2px solid var(--db-plan-outline);border-radius:0 0 12px 12px;}
}

/* DAILY_BALANCE_SEPARATE_REVIEW_NO_QUANTITY_SUBGROUP_OUTLINES_20261117_V2 */

/* DAILY_BALANCE_ADVANCED_EXISTING_PAGING_COLLAPSIBLE_DAYS_20261117_V1: discreet utilities, quick day selector, responsive result paging. */
.calc-page .nutri-tools-collapse>summary{cursor:pointer;font-weight:700;line-height:1.5;list-style:revert;}
.calc-page .nutri-tools-collapse[open]>summary{margin-bottom:14px;}
.calc-page .nutri-meal-tools .nutri-tools-collapse>summary{font-size:1.15rem;}
.calc-page .nutri-days-panel .nutri-tools-collapse{margin-top:10px;}
.calc-page .nutri-food-heading{display:flex;flex-wrap:wrap;gap:12px;align-items:baseline;justify-content:space-between;}
.calc-page .nutri-food-heading h2{margin:0;}
.calc-page .nutri-day-quick-nav{display:flex;align-items:center;flex-wrap:nowrap;gap:6px;max-width:100%;overflow-x:auto;padding-bottom:4px;}
.calc-page .nutri-day-quick-nav span{font-size:12px;white-space:nowrap;color:var(--text-muted,#9fb4a7);margin-right:5px;}
.calc-page .nutri-day-quick-nav button{border:1px solid currentColor;border-radius:7px;background:transparent;color:inherit;padding:7px 9px;white-space:nowrap;font-size:12px;cursor:pointer;opacity:.75;}
.calc-page .nutri-day-quick-nav button.is-current{opacity:1;font-weight:700;background:rgba(90,155,114,.16);border-color:#55896c;}
.calc-page .nutri-advanced-pages{display:flex;justify-content:center;align-items:center;gap:12px;flex-wrap:wrap;margin:15px 0;}
.calc-page .nutri-advanced-pages button{padding:7px 12px;border:1px solid #82978a;border-radius:8px;background:transparent;color:inherit;cursor:pointer;}
.calc-page .nutri-advanced-pages button:disabled{opacity:.35;cursor:default;}
.calc-page #advanced-toggle-all{white-space:normal;}
@media(max-width:700px){.calc-page .nutri-food-heading{display:block}.calc-page .nutri-day-quick-nav{margin-top:9px;}}

/* DAILY_BALANCE_FOOD_PREFERENCES_EXACT_20261117_V2 */
/* Recipe catalogue: two separate keyboard-accessible targets; no overlap with recipe link. */
.recipe-card .recipe-fav-star:not(.recipe-fav-star-large){right:49px!important;top:7px!important;width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;padding:3px!important;font-size:21px!important;border-radius:9px}
.recipe-card .recipe-avoid{position:absolute;right:7px;top:7px;z-index:4;display:flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border-radius:9px;cursor:pointer;border:1px solid #a6b5a7;background:#fffef0ea;color:#6f7e70;box-shadow:0 2px 7px #0002}
.recipe-card .recipe-avoid svg{display:block;flex-shrink:0}
.recipe-card .recipe-avoid.is-avoided{color:#b55252;border-color:#ba7774;background:#fff1ed}
.recipe-card .recipe-avoid:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.recipe-utility-actions .recipe-avoid-large{position:static;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;width:auto;padding:7px 10px;border-radius:10px;border:1px solid #b4c9ba;background:#f1f5ef;color:#b55252;font-size:12px;font-weight:700;box-shadow:none}
.recipe-utility-actions .recipe-avoid-large.is-avoided{background:#fff1ed;border-color:#b55252}
:root[data-db-theme="dark"] .recipe-card .recipe-avoid{background:#26342fd9;border-color:#617468;color:#d2d5cd}
:root[data-db-theme="dark"] .recipe-card .recipe-avoid.is-avoided{color:#e48c80;border-color:#ae6a60;background:#432e2d}
:root[data-db-theme="dark"] .recipe-utility-actions .recipe-avoid-large{color:#e48c80;background:#304237;border-color:#627f69}
:root[data-db-theme="dark"] .recipe-utility-actions .recipe-avoid-large.is-avoided{background:#432e2d;border-color:#ae6a60}
@media(max-width:740px){.recipe-card .recipe-fav-star:not(.recipe-fav-star-large){right:52px!important;width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important}.recipe-card .recipe-avoid{width:40px;height:40px}}
/* Shared calculator preferences and ingredient exclusion controls. */
.calc-page .nutri-food-preferences .nutri-quick-shortcuts{margin-top:12px;display:grid;gap:12px}
.calc-page .nutri-pref-category{padding:12px;border:1px solid var(--line,#bac5b8);border-radius:12px;display:grid;gap:8px;min-width:0}
.calc-page .nutri-pref-category h3{font-size:15px;margin:0}
.calc-page .nutri-pref-category .nutri-muted{margin:0}
.calc-page .nutri-food-avoid{vertical-align:middle;width:31px;height:32px;min-width:31px;display:inline-flex;align-items:center;justify-content:center;background:transparent;border:1px solid transparent;border-radius:8px;color:#8a8f88;cursor:pointer}
.calc-page .nutri-food-avoid.is-avoided{color:#b55252;background:#f8e9e6;border-color:#d3a39a}
:root[data-db-theme="dark"] .calc-page .nutri-food-avoid.is-avoided{color:#e48c80;background:#432e2d;border-color:#94645d}
.calc-page .nutri-food-avoid:focus-visible{outline:2px solid currentColor;outline-offset:1px}
.calc-page .nutri-excluded-chip{display:inline-flex;align-items:center;gap:7px;max-width:100%;padding:5px 8px;border:1px solid #ba958f;border-radius:9px;font-size:12px;overflow-wrap:anywhere}
.calc-page .nutri-excluded-chip>button{border:0;background:transparent;cursor:pointer;color:#b55252;min-width:28px;min-height:28px;font-size:20px}
:root[data-db-theme="dark"] .calc-page .nutri-excluded-chip>button{color:#e48c80}
.calc-page .nutri-quick-result .nutri-food-avoid{flex:none;width:36px;height:36px}
.calc-page .nutri-food-list-label .nutri-food-avoid{flex:none}
@media(max-width:740px){.calc-page .nutri-food-avoid{min-width:40px;min-height:40px;width:40px;height:40px}.calc-page .nutri-quick-result .nutri-food-avoid{width:40px;height:40px}.calc-page .nutri-food-list-label .nutri-food-avoid{width:36px}}

/* DAILY_BALANCE_PREF_LOOKUP_LAYOUT_DBLCLICK_20261117_V1 */

/* Smaller mobile recipe overlay buttons; icons remain distinct and separated. */
@media screen and (max-width:740px){
 .recipe-card .recipe-fav-star:not(.recipe-fav-star-large){right:45px!important;top:7px!important;width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;font-size:19px!important;padding:2px!important}
 .recipe-card .recipe-avoid{right:7px!important;top:7px!important;width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;padding:2px!important}
 .recipe-card .recipe-avoid svg{width:18px;height:18px}
}
/* Shared typography and compact padding for the three collapsible management panels. */
.calc-page .nutri-tools-collapse>summary,
.calc-page .nutri-meal-tools .nutri-tools-collapse>summary,
.calc-page .nutri-food-preferences .nutri-tools-collapse>summary,
.calc-page .nutri-days-panel .nutri-tools-collapse>summary{font-size:16px!important;font-weight:750!important;line-height:1.45}
.calc-page .nutri-days-panel .nutri-multi-switch{font-size:15px;font-weight:700}
.calc-page .nutri-days-panel,
.calc-page .nutri-meal-tools,
.calc-page .nutri-food-preferences{padding:13px 17px;gap:8px}
.calc-page .nutri-tools-collapse[open]>summary{margin-bottom:10px}
/* Search for ingredients and recipes inside Favorites / Do not suggest. */
.calc-page .nutri-pref-search-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:1px 0 10px}
.calc-page .nutri-pref-lookup{position:relative;display:grid;gap:5px;min-width:0;font-size:12.5px;font-weight:700}
.calc-page .nutri-pref-lookup input[type="search"]{width:100%;min-height:40px;border:1px solid var(--line);border-radius:9px;padding:9px 11px;background:var(--paper);color:var(--ink);font:inherit;font-weight:500}
.calc-page .nutri-pref-lookup input[type="search"]:focus{outline:2px solid var(--rose);outline-offset:1px;border-color:var(--rose)}
.calc-page .nutri-pref-results{position:relative;z-index:12;max-height:225px;overflow:auto;border:1px solid var(--line);border-radius:8px;background:var(--paper);box-shadow:0 8px 20px #0003;margin-top:1px}
.calc-page .nutri-pref-results[hidden]{display:none!important}
.calc-page .nutri-pref-results .nutri-pref-result{display:block;width:100%;min-height:34px;text-align:left;padding:7px 9px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;color:var(--ink);font-size:13px;font-weight:500;cursor:pointer;overflow-wrap:anywhere}
.calc-page .nutri-pref-results .nutri-pref-result:hover,
.calc-page .nutri-pref-results .nutri-pref-result.is-current{background:var(--cream);color:var(--ink)}
.calc-page .nutri-pref-results .nutri-muted{padding:8px;margin:0;font-size:13px}
@media screen and (max-width:560px){
 .calc-page .nutri-pref-search-grid{grid-template-columns:minmax(0,1fr)}
 .calc-page .nutri-days-panel,.calc-page .nutri-meal-tools,.calc-page .nutri-food-preferences{padding:12px 13px}
}

/* DAILY_BALANCE_PREF_LIST_MOBILE_DAY_PLUS_20261117_V1 */

/* Compact visible overlay, generous invisible touch halo, no card-click propagation. */
@media screen and (max-width:740px){
 .recipe-card .recipe-fav-star:not(.recipe-fav-star-large){position:absolute!important;right:45px!important;top:6px!important;width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;padding:1px!important;font-size:18px!important;line-height:1!important;border-radius:7px!important}
 .recipe-card .recipe-avoid:not(.recipe-avoid-large){position:absolute!important;right:7px!important;top:6px!important;width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;padding:1px!important;border-radius:7px!important}
 .recipe-card .recipe-avoid:not(.recipe-avoid-large) svg{width:16px!important;height:16px!important}
 .recipe-card :is(.recipe-fav-star:not(.recipe-fav-star-large),.recipe-avoid:not(.recipe-avoid-large))::after{content:'';position:absolute;inset:-4px;background:transparent;pointer-events:auto}
}
/* Keep all stored items visible in two vertically scrollable columns. The remove
   control is fixed at the right: the next item moves into the same position. */
.calc-page .nutri-pref-lists{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
.calc-page .nutri-pref-lists .nutri-shortcut-group{min-width:0;display:grid;gap:6px}
.calc-page .nutri-pref-lists .nutri-shortcut-headingline{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.calc-page .nutri-pref-lists .nutri-shortcut-count{display:inline-block;font-size:12px;font-variant-numeric:tabular-nums;color:var(--muted)}
.calc-page .nutri-pref-items{display:grid;gap:5px;align-content:start;max-height:235px;overflow-y:auto;scrollbar-width:thin;padding:2px 4px 2px 1px}
.calc-page .nutri-pref-list-item{min-width:0;display:block}
.calc-page .nutri-pref-entry,
.calc-page .nutri-pref-lists .nutri-recipe-favorite-pair{box-sizing:border-box;display:flex;width:100%;min-width:0;align-items:center;justify-content:space-between;gap:6px;padding:4px 5px 4px 9px;border:1px solid;border-radius:9px;background:transparent;min-height:39px}
.calc-page .nutri-pref-entry-favorite,
.calc-page .nutri-pref-lists .nutri-recipe-favorite-pair{border-color:#bda16b}
.calc-page .nutri-pref-entry-avoided{border-color:#ba958f}
.calc-page .nutri-pref-entry-label{flex:1;min-width:0;display:block;text-align:left;overflow-wrap:anywhere;color:var(--ink);font-size:12.5px;line-height:1.35}
.calc-page button.nutri-pref-entry-label{border:0;box-shadow:none;background:transparent;cursor:pointer;padding:5px 0;font-weight:500}
.calc-page .nutri-pref-lists .nutri-recipe-favorite-pair .nutri-food-chip{flex:1;min-width:0;box-shadow:none;border:0;background:transparent;padding:5px 0;text-align:left;border-radius:0;white-space:normal;overflow-wrap:anywhere;font-size:12.5px;min-height:0}
.calc-page .nutri-pref-removal,
.calc-page .nutri-pref-lists .nutri-recipe-fav-remove{display:flex;flex:none;align-items:center;justify-content:center;width:31px;height:31px;min-width:31px;min-height:31px;border:0;background:transparent;cursor:pointer;border-radius:7px;padding:0;font-size:21px}
.calc-page .nutri-pref-unstar,
.calc-page .nutri-pref-lists .nutri-recipe-fav-remove{color:#a7772a}
.calc-page .nutri-pref-unavoid{color:#b55252}
.calc-page .nutri-pref-unavoid svg{display:block}
:root[data-db-theme="dark"] .calc-page .nutri-pref-entry-favorite,
:root[data-db-theme="dark"] .calc-page .nutri-pref-lists .nutri-recipe-favorite-pair{border-color:#8a7147}
:root[data-db-theme="dark"] .calc-page .nutri-pref-entry-avoided{border-color:#916b68}
:root[data-db-theme="dark"] .calc-page .nutri-pref-unstar,
:root[data-db-theme="dark"] .calc-page .nutri-pref-lists .nutri-recipe-fav-remove{color:#f0c985}
:root[data-db-theme="dark"] .calc-page .nutri-pref-unavoid{color:#e48c80}
.calc-page .nutri-day-quick-nav .nutri-day-quick-plus{min-width:35px;display:inline-flex;justify-content:center;align-items:center;font-size:17px;font-weight:700;opacity:1}
@media screen and (max-width:650px){.calc-page .nutri-pref-lists{grid-template-columns:minmax(0,1fr)}}

/* DAILY_BALANCE_STAR_CORNERS_DAY_SCROLL_20261117_V1 */

/* Recipe cards: separate corner controls leave the photograph's centre visible. */
@media screen {
 .recipe-card .recipe-fav-star:not(.recipe-fav-star-large){left:7px!important;right:auto!important;color:#a57625!important}
 :root[data-db-theme="dark"] .recipe-card .recipe-fav-star:not(.recipe-fav-star-large){color:#f0c985!important}
 /* The dedicated recipe-page Favorite button uses the same gold cue as its star. */
 :root:not([data-db-theme="dark"]) body[data-page="recipe"] .recipe-utility-actions .recipe-fav-star-large,
 :root:not([data-db-theme="dark"]) body[data-page="recipe"] .recipe-utility-actions .recipe-fav-star-large .recipe-fav-label{color:#95671f!important}
 :root[data-db-theme="dark"] body[data-page="recipe"] .recipe-utility-actions .recipe-fav-star-large,
 :root[data-db-theme="dark"] body[data-page="recipe"] .recipe-utility-actions .recipe-fav-star-large .recipe-fav-label{color:#f0c985!important}
}
@media screen and (max-width:740px){
 .recipe-card .recipe-fav-star:not(.recipe-fav-star-large){left:6px!important;right:auto!important}
}

/* DAILY_BALANCE_INTAKE_DAY_NAV_AND_PDF_SUMMARY_20261117_V1 */
@media screen {
 .calc-page #nutri-intake-summary>.nutri-day-quick-nav{margin-top:12px;margin-bottom:11px;width:100%;scrollbar-width:thin;}
 .calc-page .nutri-day-quick-nav button:focus-visible{outline:2px solid var(--green);outline-offset:2px;}
 .calc-page .nutri-pdf-tools{border:1px solid var(--line);border-radius:10px;padding:13px 14px;margin-top:13px;background:rgba(120,158,126,.065)}
 .calc-page .nutri-pdf-heading{display:flex;gap:7px 18px;align-items:baseline;flex-wrap:wrap;margin-bottom:11px}
 .calc-page .nutri-pdf-heading strong{font-size:14px;color:var(--green-dark)}
 .calc-page .nutri-pdf-heading span{color:var(--muted);font-size:12px}
 .calc-page .nutri-pdf-controls{display:flex;align-items:end;flex-wrap:wrap;gap:9px 13px}
 .calc-page .nutri-pdf-controls label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:700;color:var(--ink);min-width:180px}
 .calc-page .nutri-pdf-controls select{width:100%;min-height:39px;border:1px solid var(--line);border-radius:8px;padding:7px 10px;background:var(--paper);color:var(--ink)}
 .calc-page .nutri-pdf-controls button{min-height:39px;padding:8px 14px;border-radius:8px;cursor:pointer;border:1px solid #5b8165;background:#355f47;color:#fff;font-weight:700}
 .calc-page .nutri-pdf-custom{display:flex;gap:7px 15px;flex-wrap:wrap;margin:12px 0 0;border:1px solid var(--line);border-radius:8px;padding:9px 11px}
 .calc-page .nutri-pdf-custom[hidden]{display:none!important}
 .calc-page .nutri-pdf-custom legend{font-size:12px;color:var(--muted);font-weight:700}
 .calc-page .nutri-pdf-custom label{display:inline-flex;align-items:center;gap:7px;font-size:13px;min-height:30px;cursor:pointer}
 .calc-page .nutri-pdf-custom input{width:16px;height:16px;accent-color:#497c62}
 .calc-page .nutri-pdf-tools>.nutri-muted{margin:9px 0 0}
 :root[data-db-theme="dark"] .calc-page .nutri-pdf-tools{background:#27382e}
 :root[data-db-theme="dark"] .calc-page .nutri-pdf-controls button{color:#eff8f0;background:#426b51;border-color:#7ba087}
}
@media screen and (max-width:540px){
 .calc-page .nutri-pdf-controls label,.calc-page .nutri-pdf-controls button{width:100%}
}
/* DAILY_BALANCE_INTAKE_DAY_NAV_AND_PDF_SUMMARY_20261117_V1_END */

/* DAILY_BALANCE_GOAL_ICON_ORDER_20261117_V1 — match icons, goal input and day tabs */
@media screen {
 /* Photos: exclude on left, save on right, consistent with detail and calculator rows. */
 .recipe-card .recipe-avoid:not(.recipe-avoid-large){left:7px!important;right:auto!important;color:#B55252!important}
 .recipe-card .recipe-fav-star:not(.recipe-fav-star-large){left:auto!important;right:7px!important;color:#9A611D!important}
 :root[data-db-theme="dark"] .recipe-card .recipe-avoid:not(.recipe-avoid-large){color:#E48C80!important}
 :root[data-db-theme="dark"] .recipe-card .recipe-fav-star:not(.recipe-fav-star-large){color:#E5AD65!important}
 :root:not([data-db-theme="dark"]) body[data-page="recipe"] .recipe-utility-actions .recipe-fav-star-large,
 :root:not([data-db-theme="dark"]) body[data-page="recipe"] .recipe-utility-actions .recipe-fav-star-large .recipe-fav-label{color:#9A611D!important;font-weight:700!important}
 :root[data-db-theme="dark"] body[data-page="recipe"] .recipe-utility-actions .recipe-fav-star-large,
 :root[data-db-theme="dark"] body[data-page="recipe"] .recipe-utility-actions .recipe-fav-star-large .recipe-fav-label{color:#E5AD65!important;font-weight:700!important}
 body[data-page="recipe"] .recipe-utility-actions .recipe-avoid-large span{font-weight:700!important}
 :root:not([data-db-theme="dark"]) .calc-page .nutri-food-avoid{color:#B55252}
 :root[data-db-theme="dark"] .calc-page .nutri-food-avoid{color:#E48C80}
 :root:not([data-db-theme="dark"]) .calc-page .nutri-food-star{color:#9A611D}
 :root[data-db-theme="dark"] .calc-page .nutri-food-star{color:#E5AD65}
 /* Same height for every day tab, including the + shortcut. */
 .calc-page .nutri-day-quick-nav button,
 .calc-page .nutri-day-quick-nav .nutri-day-quick-plus{
   box-sizing:border-box!important;min-height:41px!important;height:41px!important;
   min-width:41px!important;display:inline-flex!important;align-items:center!important;
   justify-content:center!important;line-height:1!important;vertical-align:middle!important;
   padding:0 10px!important;margin:0!important;
 }
 .calc-page .nutri-day-quick-nav .nutri-day-quick-plus{font-size:17px!important}
 /* The new goal controls use the same sage inputs as the profile fields. */
 .calc-page .nutri-weight-goal{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;padding:12px 0 0;border-top:1px solid var(--line);margin-top:2px}
 .calc-page .nutri-weight-goal>label{display:flex;flex-direction:column;gap:6px;font-weight:700;font-size:13px;min-width:0}
 .calc-page .nutri-weight-goal :is(select,input){width:100%;min-width:0;box-sizing:border-box;min-height:40px}
 .calc-page .nutri-weight-goal>.nutri-muted,.calc-page .nutri-goal-reference{grid-column:1/-1;margin:0}
 .calc-page .nutri-goal-reference{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:13px}
 .calc-page .nutri-goal-reference strong{font-variant-numeric:tabular-nums}
}
@media screen and (max-width:740px){
 .recipe-card .recipe-avoid:not(.recipe-avoid-large){left:6px!important;right:auto!important}
 .recipe-card .recipe-fav-star:not(.recipe-fav-star-large){left:auto!important;right:6px!important}
 .calc-page .nutri-weight-goal{grid-template-columns:minmax(0,1fr)}
}
@media print {.calc-page .nutri-weight-goal{display:none!important}}

/* DAILY_BALANCE_LIGHT_CALCULATOR_WARM_ROWS_20261117_V1
   Slightly warmer and less bright daily food rows and quantity controls.
   Scope: calculator page, light theme, screen only. Dark mode, recipe pages,
   special group headers, excluded ingredient notices and print stay intact. */
@media screen {
  :root:not([data-db-theme="dark"]) body[data-page="calculate"]
  .calc-page .nutri-daily-entries tbody
  tr:not(.nutri-recipe-bundle-parent):not(.nutri-recipe-bundle-section):not(.nutri-bundle-not-counted):not(.nutri-db-inline-editor-row):not(.nutri-bundle-add-row) {
    background-color: #eff1e9;
  }
  :root:not([data-db-theme="dark"]) body[data-page="calculate"]
  .calc-page .nutri-daily-entries tbody
  tr:not(.nutri-recipe-bundle-parent):not(.nutri-recipe-bundle-section):not(.nutri-bundle-not-counted):not(.nutri-db-inline-editor-row):not(.nutri-bundle-add-row) > td {
    background-color: #eff1e9;
  }
  :root:not([data-db-theme="dark"]) body[data-page="calculate"]
  .calc-page .nutri-daily-entries input[type="number"] {
    background-color: #e4e9df;
    border-color: #9eae9d;
    color: #20352a;
  }
}
/* END DAILY_BALANCE_LIGHT_CALCULATOR_WARM_ROWS_20261117_V1 */

/* DAILY_BALANCE_UNIFIED_REPORT_DEFAULT_ALL_20261118_V1: unified print/save report + optional shopping list. */
@media screen {
 .calc-page .nutri-pdf-option{display:inline-flex;align-items:center;gap:9px;max-width:100%;min-height:36px;margin:9px 0 0;color:var(--ink);font-size:13px;line-height:1.4;cursor:pointer}
 .calc-page .nutri-pdf-option input{width:18px;height:18px;flex:none;accent-color:#497c62}
 .calc-page .nutri-report-actions #mealprep-export{background:var(--paper);color:var(--ink);border:1px solid var(--line)}
}
/* DAILY_BALANCE_UNIFIED_REPORT_DEFAULT_ALL_20261118_V1_END */

/* DAILY_BALANCE_SUGGESTION_SWITCH_SHOPPING_20261118_V1: suggestion controls, theme-aware, keyboard accessible. */
@media screen {
 .calc-page .nutri-suggestion-header{align-items:center;gap:12px;margin-bottom:12px}
 .calc-page .db-suggestion-switch{display:inline-flex;align-items:center;gap:9px;flex-wrap:wrap;max-width:100%;--db-switch-accent:#315d43;--db-switch-bg:#e9f1e9;--db-switch-border:#9cbca6;}
 .calc-page .db-suggestion-switch button{font:inherit;cursor:pointer;min-height:40px}
 .calc-page .db-suggestion-power{width:39px;height:39px;min-height:39px!important;display:inline-flex;align-items:center;justify-content:center;padding:0!important;flex:none;border:2px solid var(--db-switch-accent)!important;background:transparent!important;border-radius:50%!important;color:var(--db-switch-accent)!important}
 .calc-page .db-suggestion-dot{display:block;width:19px;height:19px;border:2px solid currentColor;border-radius:50%;background:transparent;box-sizing:border-box;transition:background-color .16s ease}
 .calc-page .db-suggestion-power.is-on .db-suggestion-dot{background:currentColor}
 .calc-page .db-suggestion-track{display:inline-flex;align-items:stretch;border:1px solid var(--db-switch-border);padding:3px;border-radius:999px;background:var(--db-switch-bg);gap:2px;min-height:40px;box-sizing:border-box}
 .calc-page .db-suggestion-track button{flex:1;min-height:33px;border:0!important;border-radius:999px!important;background:transparent!important;color:var(--ink)!important;font-size:13px!important;font-weight:650!important;padding:6px 13px!important;box-shadow:none!important;white-space:nowrap;}
 .calc-page .db-suggestion-track button.is-current{background:var(--db-switch-accent)!important;color:white!important;box-shadow:0 1px 3px #0002!important}
 .calc-page .db-suggestion-track button:disabled{opacity:.4;cursor:default}
 .calc-page .db-suggestion-status{font-size:12px;color:var(--muted);white-space:nowrap}
 .calc-page .db-advanced-noresult,.calc-page .db-advanced-partial-note{border-left:3px solid var(--db-switch-accent,#315d43);padding:9px 12px;margin:12px 0;line-height:1.55}
 :root[data-db-theme="dark"] .calc-page .db-suggestion-switch{--db-switch-accent:#f5ae92;--db-switch-bg:#2a3631;--db-switch-border:#677267}
 :root[data-db-theme="dark"] .calc-page .db-suggestion-track button.is-current{color:#222b25!important}
 :root[data-db-theme="dark"] .calc-page :is(.db-advanced-noresult,.db-advanced-partial-note){border-left-color:#f5ae92}
 .calc-page :is(#suggestion-power,.db-suggestion-track button):focus-visible{outline:3px solid var(--db-switch-accent)!important;outline-offset:3px!important}
}
@media screen and (max-width:530px){
 .calc-page .db-suggestion-switch{width:100%;gap:7px}
 .calc-page .db-suggestion-track{flex:1;min-width:0}
 .calc-page .db-suggestion-track button{padding:6px 8px!important}
}
@media screen and (prefers-reduced-motion:reduce){.calc-page .db-suggestion-dot{transition:none}}
/* DAILY_BALANCE_SUGGESTION_SWITCH_SHOPPING_20261118_V1_END */

/* DAILY_BALANCE_SUGGESTIONS_DAY_ARROWS_20261118_V1
 * Compact duplicate navigation at the beginning and end of suggestions.
 * No overlay on food cards, on mobile or desktop.
 */
@media screen {
 .calc-page .db-suggestion-title-with-days {display:flex;align-items:center;gap:9px 16px;flex-wrap:wrap;min-width:0;}
 .calc-page .db-suggestion-title-with-days h2 {margin:0;}
 .calc-page .db-suggestion-daypager {display:inline-flex;gap:4px;align-items:center;justify-content:center;max-width:100%;width:max-content;white-space:nowrap;color:var(--ink);}
 .calc-page .db-suggestion-daypager button {appearance:none;display:inline-flex;justify-content:center;align-items:center;font:inherit;font-size:22px;line-height:1;font-weight:650;width:33px;height:33px;min-height:33px!important;min-width:33px;padding:0!important;border:1px solid #99b8a3!important;border-radius:9px!important;background:transparent!important;color:#315d43!important;cursor:pointer;}
 .calc-page .db-suggestion-daypager button:disabled {opacity:.3;cursor:default;}
 .calc-page .db-suggestion-daypager button:not(:disabled):hover {background:#e1eee4!important;}
 .calc-page .db-suggestion-day-count {min-width:60px;text-align:center;font-size:13px;font-weight:700;line-height:1.3;color:var(--ink);}
 .calc-page .db-suggestion-daypager-bottom {margin:16px 0 0 auto;padding-top:11px;border-top:1px solid var(--line);width:100%;justify-content:flex-end;}
 .calc-page .db-suggestion-daypager button:focus-visible {outline:3px solid #315d43!important;outline-offset:3px!important;}
 :root[data-db-theme="dark"] .calc-page .db-suggestion-daypager button {border-color:#c58d73!important;color:#f5ae92!important;}
 :root[data-db-theme="dark"] .calc-page .db-suggestion-daypager button:not(:disabled):hover {background:#47372f!important;}
 :root[data-db-theme="dark"] .calc-page .db-suggestion-daypager button:focus-visible {outline-color:#f5ae92!important;}
}
@media screen and (max-width:600px){
 .calc-page .db-suggestion-title-with-days {width:100%;gap:8px;}
 .calc-page .db-suggestion-title-with-days h2 {width:100%;}
 .calc-page .db-suggestion-daypager-top {margin-bottom:1px;}
}
/* DAILY_BALANCE_SUGGESTIONS_DAY_ARROWS_20261118_V1_END */

/* DAILY_BALANCE_INLINE_PDF_SHORTCUT_20261118_V1
   Keep the compact PDF action beside the collapsible manage-days heading.
   When expanded, show the full existing controls and hide this shortcut. */
@media screen {
 .calc-page .nutri-days-panel > .nutri-day-management-row {
  display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;
  min-width:0;gap:10px;margin-top:10px;
 }
 .calc-page .nutri-day-management-row > .nutri-tools-collapse {
  flex:1 1 auto;min-width:0;margin:0!important;
 }
 .calc-page .nutri-day-management-row > .nutri-pdf-quick {
  flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;
  width:auto;max-width:none;min-height:39px;margin:0;padding:8px 13px;
  font:inherit;font-size:13px;font-weight:700;line-height:1.3;
  white-space:nowrap;cursor:pointer;
  border:1px solid #5b8165;border-radius:8px;background:#355f47;color:#fff;
 }
 .calc-page .nutri-day-management-row > .nutri-pdf-quick:hover {background:#3c6b52;}
 .calc-page .nutri-day-management-row > details[open] + .nutri-pdf-quick {display:none!important;}
 :root[data-db-theme="dark"] .calc-page .nutri-day-management-row > .nutri-pdf-quick {
  color:#eff8f0;background:#426b51;border-color:#7ba087;
 }
 :root[data-db-theme="dark"] .calc-page .nutri-day-management-row > .nutri-pdf-quick:hover {background:#548267;}
 @media(max-width:430px) {
  .calc-page .nutri-days-panel > .nutri-day-management-row {gap:7px;}
  .calc-page .nutri-day-management-row > .nutri-pdf-quick {font-size:12px;padding:7px 9px;min-height:36px;}
 }
}
/* DAILY_BALANCE_INLINE_PDF_SHORTCUT_20261118_V1_END */

/* DAILY_BALANCE_USDA_LIGHT_IT_BRAND_20261118_V1
 * Display the website brand by the existing portrait in both themes.
 * The creator credit stays elsewhere on the site and in the PDF reports.
 */
@media screen {
  .site-header .brand-label.db-site-name {
    font-size:18px;line-height:1.2;letter-spacing:.015em;
    font-weight:800;color:var(--ink);
    white-space:nowrap;
  }
  @media (max-width:740px) {
    .site-header .brand-label.db-site-name {font-size:16px;letter-spacing:0;}
  }
  @media (max-width:380px) {
    .site-header .brand-label.db-site-name {font-size:14px;}
  }
}
/* DAILY_BALANCE_USDA_LIGHT_IT_BRAND_20261118_V1_END */

/* DAILY_BALANCE_MOBILE_HEADER_KEEP_CONTROLS_INLINE_20261122_V1
 * Keep the logo, language choice and theme control on the same header row.
 * Navigation stays on its own second row on narrow screens.
 */
@media screen and (max-width:740px) {
  .site-header .nav-shell {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto auto;
    grid-template-areas:"db-brand db-lang db-theme" "db-nav db-nav db-nav";
    align-items:center;
    column-gap:clamp(6px,1.9vw,12px);
    row-gap:10px;
  }
  .site-header .brand {
    grid-area:db-brand;
    min-width:0;
    gap:8px;
    white-space:nowrap;
  }
  .site-header .brand-mark {
    flex:0 0 auto;
    width:34px;
    height:34px;
  }
  .site-header .brand-label.db-site-name {
    display:block;
    min-width:0;
    font-size:clamp(13px,3.6vw,16px);
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .site-header .lang-label {
    grid-area:db-lang;
    order:initial;
    margin:0;
    width:clamp(86px,26vw,104px);
    min-width:0;
  }
  .site-header .lang-label select {
    display:block;
    width:100%;
    min-width:0;
    padding:8px 4px;
    font-size:clamp(11px,2.9vw,12px);
  }
  .site-header .db-theme-toggle {
    grid-area:db-theme;
    order:initial;
    flex:none;
    width:38px;
    min-width:38px;
    min-height:38px;
    margin:0;
    padding:0;
  }
  .site-header .nav-items {
    grid-area:db-nav;
    order:initial;
    width:100%;
    min-width:0;
    margin:0;
    display:flex;
    flex-wrap:nowrap;
    justify-content:center;
    gap:clamp(8px,2.6vw,17px);
    font-size:clamp(10.5px,2.9vw,13px);
  }
}
@media screen and (max-width:310px) {
  .site-header .brand {gap:6px;}
  .site-header .brand-mark {width:30px;height:30px;}
  .site-header .brand-label.db-site-name {font-size:12px;}
  .site-header .lang-label {width:80px;}
  .site-header .db-theme-toggle {width:34px;min-width:34px;min-height:34px;}
  .site-header .nav-items {gap:6px;font-size:10px;}
}
/* DAILY_BALANCE_MOBILE_HEADER_KEEP_CONTROLS_INLINE_20261122_V1_END */


/* DAILY_BALANCE_RECIPE_EXCLUSIVE_HEARTS_20261122_V1
 * Recipe favorites only: rose hearts in light/dark themes. Ingredient-food
 * favorites remain stars. Hide the opposite action without disturbing layout.
 */
@media screen {
  button[data-recipe-favorite][hidden],button[data-recipe-avoid][hidden]{display:none!important}
  .recipe-fav-star .db-recipe-heart-icon{display:block;flex:none;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.9}
  .recipe-fav-star.is-favorite .db-recipe-heart-icon{fill:currentColor}
  :root:not([data-db-theme="dark"]) .recipe-card .recipe-fav-star:not(.recipe-fav-star-large){color:#B84D74!important;background:#F7F8F5;border-color:#D4819D}
  :root[data-db-theme="dark"] .recipe-card .recipe-fav-star:not(.recipe-fav-star-large){color:#F2A7BD!important;background:#2D3832;border-color:#795263}
  :root:not([data-db-theme="dark"]) body[data-page="recipe"] .recipe-utility-actions .recipe-fav-star-large{background:#F7F8F5!important;border-color:#D4819D!important;color:#B84D74!important}
  :root:not([data-db-theme="dark"]) body[data-page="recipe"] .recipe-utility-actions .recipe-fav-star-large .recipe-fav-label{color:#B84D74!important}
  :root[data-db-theme="dark"] body[data-page="recipe"] .recipe-utility-actions .recipe-fav-star-large{background:#2D3832!important;border-color:#795263!important;color:#F2A7BD!important}
  :root[data-db-theme="dark"] body[data-page="recipe"] .recipe-utility-actions .recipe-fav-star-large .recipe-fav-label{color:#F2A7BD!important}
  :root:not([data-db-theme="dark"]) body[data-page="recipe"] .recipe-utility-actions .recipe-fav-star-large:hover{background:#ECF0EB!important}
  :root[data-db-theme="dark"] body[data-page="recipe"] .recipe-utility-actions .recipe-fav-star-large:hover{background:#39473F!important}
  :root:not([data-db-theme="dark"]) .calc-page .nutri-recipe-fav-remove,
  :root:not([data-db-theme="dark"]) .calc-page .db-basic-recipe-heart{color:#B84D74!important}
  :root[data-db-theme="dark"] .calc-page .nutri-recipe-fav-remove,
  :root[data-db-theme="dark"] .calc-page .db-basic-recipe-heart{color:#F2A7BD!important}
}
/* DAILY_BALANCE_RECIPE_EXCLUSIVE_HEARTS_20261122_V1_END */

/* DAILY_BALANCE_BOOK_PDF_LINK_STYLES_20261122_V1 */
@media screen {
  .book-cta .book-buttons { align-items:flex-start; }
  .book-cta .db-book-edition { display:flex; flex-direction:column; align-items:flex-start; gap:9px; min-width:0; }
  .book-cta .db-book-pdf-link { color:#1D5FA8; text-decoration:underline; text-underline-offset:3px; font-size:13px; line-height:1.5; font-weight:700; padding:0 2px; }
  .book-cta .db-book-pdf-link:hover { color:#15477f; }
  .book-cta .db-book-pdf-link:focus-visible { outline:2px solid currentColor; outline-offset:3px; }
  :root[data-db-theme="dark"] .book-cta .db-book-pdf-link { color:#8DBFFA; }
  :root[data-db-theme="dark"] .book-cta .db-book-pdf-link:hover { color:#b5d6ff; }
  .book-cta .db-book-pdf-link[hidden] { display:none!important; }
}
/* END DAILY_BALANCE_BOOK_PDF_LINK_STYLES_20261122_V1 */

/* DAILY_BALANCE_NAV_TABLET_LAYOUT_20261123_V1 */
@media (min-width:741px) and (max-width:880px) {
  .site-header .nav-shell {flex-wrap:wrap;gap:11px 16px;padding-top:11px;padding-bottom:11px}
  .site-header .nav-items {order:3;width:100%;justify-content:center;flex-wrap:wrap;gap:12px;margin:0 0 3px}
  .site-header .lang-label {margin-left:auto}
}

/* DAILY_BALANCE_SECTION_LABEL_READABILITY_20261123_V1
   Increase small uppercase section labels without changing cards or print. */
@media screen and (min-width: 741px) {
  :root:not([data-db-theme="dark"]) .eyebrow,
  :root[data-db-theme="dark"] .eyebrow,
  :root .db-calc-hero .db-calc-kicker,
  :root .db-calc-page .db-auth-eyebrow { font-size:13px; }
}
@media screen and (max-width: 740px) {
  :root:not([data-db-theme="dark"]) .eyebrow,
  :root[data-db-theme="dark"] .eyebrow,
  :root .db-calc-hero .db-calc-kicker,
  :root .db-calc-page .db-auth-eyebrow { font-size:12px; }
}
/* DAILY_BALANCE_SECTION_LABEL_READABILITY_20261123_V1_END */

/* DAILY_BALANCE_SECTION_LABEL_CONTRAST_14PX_20261123_V2
   Same section-label sizes in light and dark modes: desktop 14px, mobile 12px.
   Only light mode uses a darker burnt orange and slightly tighter tracking.
   Does not affect recipe-card category labels, buttons, large headings or print. */
@media screen and (min-width:741px) {
  :root .eyebrow,
  :root .db-calc-hero .db-calc-kicker,
  :root .db-calc-page .db-auth-eyebrow {
    font-size:14px;
  }
}
@media screen and (max-width:740px) {
  :root .eyebrow,
  :root .db-calc-hero .db-calc-kicker,
  :root .db-calc-page .db-auth-eyebrow {
    font-size:12px;
  }
}
@media screen {
  :root:not([data-db-theme="dark"]) .eyebrow,
  :root:not([data-db-theme="dark"]) .db-calc-hero .db-calc-kicker,
  :root:not([data-db-theme="dark"]) .db-calc-page .db-auth-eyebrow {
    color:#963D24;
    font-weight:700;
    letter-spacing:.12em;
  }
}
/* DAILY_BALANCE_SECTION_LABEL_CONTRAST_14PX_20261123_V2_END */

/* DAILY_BALANCE_THEME_TYPOGRAPHY_PARITY_20261123_V1
   Screen typography is identical in light and dark themes.
   Color alone differs. Earlier light-only font overrides are normalized here.
   Keep print formatting and compact recipe-card typography intact. */
@media screen {
  :root:not([data-db-theme="dark"]) .eyebrow,
  :root[data-db-theme="dark"] .eyebrow,
  :root:not([data-db-theme="dark"]) .db-calc-hero .db-calc-kicker,
  :root[data-db-theme="dark"] .db-calc-hero .db-calc-kicker,
  :root:not([data-db-theme="dark"]) .db-calc-page .db-auth-eyebrow,
  :root[data-db-theme="dark"] .db-calc-page .db-auth-eyebrow {
    font-family:Manrope,sans-serif;
    font-weight:800;
    letter-spacing:.14em;
    text-transform:uppercase;
    line-height:1.4;
  }
  :root:not([data-db-theme="dark"]) .card-kicker,
  :root[data-db-theme="dark"] .card-kicker {
    font-weight:800;
    letter-spacing:.08em;
  }
  :root:not([data-db-theme="dark"]) .recipe-pagination small,
  :root[data-db-theme="dark"] .recipe-pagination small {
    font-size:11px;
    font-weight:800;
  }
  /* Active Calcolo choice: remove historical 700-vs-750 weight difference. */
  :root:not([data-db-theme="dark"]) .nutri-sex-choice.is-current,
  :root[data-db-theme="dark"] .nutri-sex-choice.is-current {font-weight:700;}
  /* Theme-specific selectors below affect only color. */
  :root:not([data-db-theme="dark"]) :is(.eyebrow,.card-kicker,.recipe-pagination small),
  :root:not([data-db-theme="dark"]) .db-calc-hero .db-calc-kicker,
  :root:not([data-db-theme="dark"]) .db-calc-page .db-auth-eyebrow {color:#963D24;}
  :root[data-db-theme="dark"] .eyebrow,
  :root[data-db-theme="dark"] .db-calc-hero .db-calc-kicker,
  :root[data-db-theme="dark"] .db-calc-page .db-auth-eyebrow,
  :root[data-db-theme="dark"] .card-kicker,
  :root[data-db-theme="dark"] .recipe-pagination small {color:#f5ae92;}
}
@media screen and (min-width:741px) {
  :root:not([data-db-theme="dark"]) .eyebrow,
  :root[data-db-theme="dark"] .eyebrow,
  :root:not([data-db-theme="dark"]) .db-calc-hero .db-calc-kicker,
  :root[data-db-theme="dark"] .db-calc-hero .db-calc-kicker,
  :root:not([data-db-theme="dark"]) .db-calc-page .db-auth-eyebrow,
  :root[data-db-theme="dark"] .db-calc-page .db-auth-eyebrow {font-size:14px;}
  :root:not([data-db-theme="dark"]) .card-kicker,
  :root[data-db-theme="dark"] .card-kicker {font-size:11px;}
}
@media screen and (max-width:740px) {
  :root:not([data-db-theme="dark"]) .eyebrow,
  :root[data-db-theme="dark"] .eyebrow,
  :root:not([data-db-theme="dark"]) .db-calc-hero .db-calc-kicker,
  :root[data-db-theme="dark"] .db-calc-hero .db-calc-kicker,
  :root:not([data-db-theme="dark"]) .db-calc-page .db-auth-eyebrow,
  :root[data-db-theme="dark"] .db-calc-page .db-auth-eyebrow {font-size:12px;}
  :root:not([data-db-theme="dark"]) .card-kicker,
  :root[data-db-theme="dark"] .card-kicker {font-size:9px;}
}
/* DAILY_BALANCE_THEME_TYPOGRAPHY_PARITY_20261123_V1_END */
