/* Shared editorial language for additions to the original Suxin website. */
.nutrition-review {
  --nr-text: var(--ink, #172017);
  --nr-muted: #65705f;
  --nr-line: rgba(44, 63, 40, .19);
  --nr-accent: #526943;
  color: var(--nr-text);
  margin: 30px 0 0;
}
.nr-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.nr-heading h3 { margin: 0; font: 400 13px/1.5 var(--sans, sans-serif); letter-spacing: .06em; }
.nr-heading > span { color: var(--nr-muted); font-size: 11px; }
.nr-note { color: var(--nr-muted, #65705f); font-size: 12px; line-height: 1.9; max-width: 64ch; }
.nr-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px 20px; padding: 24px 0 30px; border-bottom: 1px solid var(--nr-line); }
.nr-stats > div { min-width: 0; }
.nr-stats span { display: block; color: var(--nr-muted); font-size: 11px; margin-bottom: 10px; }
.nr-stats strong { font: 400 clamp(25px, 2.4vw, 35px)/1.05 var(--serif, Georgia, serif); white-space: nowrap; letter-spacing: -.025em; }
.nr-stats small { margin-left: 6px; color: var(--nr-muted); font: 10px var(--sans, sans-serif); letter-spacing: 0; }
.nr-stats .nr-energy { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 22px; padding: 6px 0 16px; }
.nr-energy strong { font-size: clamp(56px, 5vw, 78px); }
.nr-energy small { font-size: 13px; margin-left: 12px; }
.nr-calculation-note { margin: 15px 0 28px; font-size: 11px; }
.nr-groups { margin: 0 0 28px; }
.nr-section-label { font-size: 12px; margin: 0 0 16px; }
.nr-section-label small { color: var(--nr-muted); font-size: 10px; font-weight: 400; margin-left: 12px; }
.nr-groups > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px 10px; }
.nr-groups span { display: flex; align-items: center; gap: 7px; color: var(--nr-muted); font-size: 11px; }
.nr-groups i { width: 5px; height: 5px; border: 1px solid var(--nr-muted); border-radius: 50%; flex: 0 0 auto; }
.nr-groups .is-present { color: var(--nr-text); }
.nr-groups .is-present i { background: var(--nr-accent); border-color: var(--nr-accent); }
.nr-disclosure { border-top: 1px solid var(--nr-line); }
.nr-disclosure:last-child { border-bottom: 1px solid var(--nr-line); }
.nr-disclosure summary, .nr-picker summary, .nr-guide summary { display: flex; align-items: center; gap: 16px; list-style: none; cursor: pointer; min-height: 60px; font-size: 13px; }
.nr-disclosure summary::-webkit-details-marker, .nr-picker summary::-webkit-details-marker, .nr-guide summary::-webkit-details-marker, .nr-settings summary::-webkit-details-marker, .nr-library-options summary::-webkit-details-marker { display: none; }
.nr-disclosure summary b { font-weight: 400; }
.nr-disclosure summary > span { color: var(--nr-muted); font-size: 11px; margin-left: auto; }
.nr-disclosure summary::after { content: '+'; width: 16px; text-align: center; font-size: 19px; font-weight: 300; color: var(--nr-muted); transition: transform .2s ease; }
.nr-disclosure[open] summary::after { transform: rotate(45deg); }
.nr-disclosure[open] { padding-bottom: 22px; }
.nr-disclosure > .nr-note { margin-top: 0; }
.nr-table-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.nr-table { border-collapse: collapse; width: 100%; text-align: left; font-size: 12px; }
.nr-table th, .nr-table td { padding: 15px 10px 15px 0; border-bottom: 1px solid var(--nr-line, var(--line)); vertical-align: top; line-height: 1.7; }
.nr-table thead th { color: var(--nr-muted, #65705f); font-size: 10px; font-weight: 400; letter-spacing: .06em; }
.nr-table tbody th { font-weight: 400; width: 35%; }
.nr-table td { font-variant-numeric: tabular-nums; }
.nr-table td small { color: var(--nr-muted); font-size: 10px; }
.nr-table td:last-child { padding-right: 0; }
.nr-progress { display: block; height: 2px; background: var(--nr-line); margin: 9px 0 5px; }
.nr-progress i { display: block; height: 100%; background: var(--nr-accent); }
.nr-source { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--nr-line); font-size: 12px; }
.nr-source b { font-weight: 400; line-height: 1.8; }
.nr-source p { margin: 0; line-height: 1.9; color: var(--nr-muted); }
.nr-source a, .nr-link, .nr-nutrient-link { color: inherit; text-decoration-color: var(--nr-line); text-underline-offset: 4px; }
.nr-nutrient-link { text-decoration: none; }
.nr-nutrient-link:hover { text-decoration: underline; }
.nr-link { display: inline-flex; align-items: center; gap: 25px; padding: 10px 0; border-bottom: 1px solid currentColor; text-decoration: none; font-size: 12px; }
.nr-reference-link { display: flex; flex-wrap: wrap; gap: 8px 20px; color: inherit; font-size: 12px; padding: 0 0 18px; text-underline-offset: 4px; }
.nr-reference-link span { color: var(--nr-muted); font-size: 11px; }
.nr-pending { list-style: none; margin: 0; padding: 0; }
.nr-pending li { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--nr-line); font-size: 12px; line-height: 1.7; }
.nr-pending b { font-weight: 400; }
.nr-pending span { color: var(--nr-muted); text-align: right; }
.nr-empty { padding: 45px 0 30px; }
.nr-empty-mark { margin: 0 0 30px 7px; color: var(--nr-accent); transform: scale(1.4); transform-origin: left bottom; }
.nr-empty h3 { font: 400 clamp(30px, 3vw, 44px)/1.5 var(--serif, serif); margin: 16px 0 20px; letter-spacing: -.02em; }
.nr-empty .kicker { font-size: 10px; }
.nr-empty .nr-note { font-size: 13px; }
.nr-empty .nr-link { margin-top: 24px; }

/* Paper forms and calendar: rhythm is carried by type and fine rules. */
.nr-journal-tools { padding-top: 64px; }
.nr-week-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; }
.nr-week-heading .kicker { margin: 0 0 10px; }
.nr-week-heading h3 { font: 400 34px/1.2 var(--serif, serif); margin: 0; letter-spacing: -.04em; }
.nr-week-heading > p { font: 400 30px var(--serif, serif); margin: 0; }
.nr-week-heading > p span { font: 11px var(--sans, sans-serif); color: var(--ink-soft); }
.nr-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-block: 1px solid var(--line); margin-top: 28px; }
.nr-week button { appearance: none; position: relative; border: 0; background: transparent; color: var(--ink); padding: 25px 8px 22px; cursor: pointer; transition: background .18s ease, color .18s ease; }
.nr-week button:hover { background: rgba(109, 128, 78, .07); }
.nr-week button.is-active { background: var(--forest-2); color: var(--paper); }
.nr-week span, .nr-week b, .nr-week small, .nr-week em { display: block; text-align: center; font-weight: 400; font-style: normal; }
.nr-week span { font-size: 10px; opacity: .7; margin-bottom: 14px; }
.nr-week b { font: 400 34px/1 var(--serif, serif); }
.nr-week i { display: block; height: 4px; width: 4px; margin: 12px auto; border-radius: 50%; border: 1px solid currentColor; opacity: .3; }
.nr-week i.has-record { background: currentColor; opacity: 1; }
.nr-week small { font-size: 11px; opacity: .8; }
.nr-week em { font-size: 10px; opacity: .6; margin-top: 8px; }
.nr-week-note { font-size: 10px; margin: 13px 0 0; }
.nr-settings-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: start; margin-top: 52px; }
.nr-settings { border-top: 1px solid var(--line); padding: 0 0 24px; }
.nr-settings summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; list-style: none; padding: 24px 0 16px; cursor: pointer; }
.nr-settings summary small { display: block; color: var(--ink-soft); font: 10px var(--sans, sans-serif); letter-spacing: .08em; margin-bottom: 11px; }
.nr-settings summary b { font: 400 26px/1.4 var(--serif, serif); }
.nr-settings summary i, .nr-picker summary i, .nr-guide summary i, .nr-library-options summary i { font-style: normal; font-weight: 300; font-size: 23px; transition: transform .2s ease; }
.nr-settings[open] summary i, .nr-picker[open] summary i, .nr-guide[open] summary i, .nr-library-options[open] summary i { transform: rotate(45deg); }
.nr-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 25px; margin: 26px 0; }
.nr-fields label, .nr-picker label { display: flex; flex-direction: column; gap: 8px; min-width: 0; color: var(--ink-soft); font-size: 11px; }
.nr-fields input, .nr-fields select, .nr-picker input, .nr-picker select { width: 100%; min-width: 0; box-sizing: border-box; border: 0; border-bottom: 1px solid var(--line); background: transparent; border-radius: 0; min-height: 44px; padding: 10px 0; color: var(--ink); font: 13px var(--sans, sans-serif); outline-offset: 4px; }
.nr-fields input:focus, .nr-fields select:focus, .nr-picker input:focus { border-color: var(--ink); }
.nr-fields [hidden] { display: none !important; }
.nr-form-actions { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; }
.nr-button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; color: var(--ink); background: transparent; padding: 12px 0; min-height: 44px; cursor: pointer; font: 12px var(--sans, sans-serif); transition: color .18s ease, background .18s ease; }
.nr-button.nr-primary { background: var(--forest-2); border: 1px solid var(--forest-2); color: var(--paper); padding: 12px 20px; }
.nr-button.nr-primary:hover { background: #354a30; }
.nr-button.nr-quiet { border-color: transparent; color: var(--ink-soft); font-size: 11px; }
.nr-status { color: #526943; font-size: 11px; line-height: 1.8; margin: 14px 0 0; }
.nr-status:empty { display: none; }
.nr-picker { border-block: 1px solid var(--line); margin: 28px 0 0; }
.nr-picker summary { justify-content: space-between; min-height: 55px; font-size: 12px; }
.nr-picker[open] { padding-bottom: 20px; }
.nr-picker .nr-note { margin: 0 0 20px; }
.nr-picker-results { max-height: 240px; overflow-y: auto; margin-top: 12px; }
.nr-picker-results button { display: block; width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); padding: 15px 10px; text-align: left; font: 13px var(--sans, sans-serif); cursor: pointer; }
.nr-picker-results button[aria-pressed=true] { background: #e5e8d9; box-shadow: inset 2px 0 0 #647c49; }
.nr-picker-results small { display: block; color: var(--ink-soft); font-size: 10px; line-height: 1.8; margin-top: 5px; }
.nr-picker .nr-fields { grid-template-columns: 1fr 1fr; gap: 18px; }
.nr-picker .nr-fields label:last-child { grid-column: 1 / -1; }
.nr-manual-list { list-style: none; margin: 24px 0 0; padding: 0; }
.nr-manual-list li { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; border-top: 1px solid var(--line); padding: 15px 0; font-size: 12px; line-height: 1.8; }
.nr-manual-list button { color: var(--ink-soft); border: 0; background: transparent; text-decoration: underline; text-underline-offset: 4px; padding: 8px 0; cursor: pointer; white-space: nowrap; font-size: 11px; }
.nr-meal-total { display: block; margin-top: 10px; font-size: 11px; color: #586c48; }

/* Explorer controls: one optional toolbar, one quiet nutrition note. */
.nr-library-tools { display: flex; align-items: start; justify-content: space-between; gap: 25px; margin: 24px 0 0; padding: 10px 0 22px; border-bottom: 1px solid var(--line); }
.nr-library-tools > p { margin: 7px 0 0; white-space: nowrap; color: var(--ink-soft); font-size: 11px; }
.nr-library-tools > p b { font: 400 29px var(--serif, serif); color: var(--ink); letter-spacing: -.02em; margin-right: 6px; }
.nr-library-options { min-width: 120px; max-width: 76%; }
.nr-library-options summary { display: flex; justify-content: end; align-items: center; gap: 22px; min-height: 44px; font-size: 12px; cursor: pointer; list-style: none; }
.nr-library-options summary i { font-size: 18px; }
.nr-library-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; padding: 24px 0 6px; }
.nr-library-tools label { display: grid; gap: 8px; color: var(--ink-soft); font-size: 10px; }
.nr-library-tools select { width: 100%; min-width: 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 0; min-height: 44px; padding: 9px 18px 9px 0; font: 12px var(--sans, sans-serif); }
.nr-guide { padding: 0; margin: 0; border-bottom: 1px solid var(--line); font-size: 12px; line-height: 1.9; }
.nr-guide summary { justify-content: space-between; font-size: 11px; color: var(--ink-soft); min-height: 50px; }
.nr-guide summary b { font-weight: 400; font-size: 12px; color: var(--ink); margin-left: 18px; }
.nr-guide summary i { font-size: 18px; }
.nr-guide > p { max-width: 75ch; color: var(--ink-soft); }
.nr-guide[open] { padding-bottom: 20px; }
.nr-variants { margin: 0 0 26px; padding: 0 0 20px; border-bottom: 1px solid var(--line); }
.nr-variants p { font-size: 12px; line-height: 1.9; }
.nr-variants button { border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); padding: 10px 0; margin: 0 22px 8px 0; min-height: 44px; font: 12px var(--sans, sans-serif); cursor: pointer; }
.nr-variants button:disabled { color: var(--ink-soft); cursor: default; border-color: transparent; }
.nr-variants button[aria-pressed=true] { border-color: var(--ink); }
.nr-guide .nr-variants { border: 0; padding: 0; margin: 12px 0 0; }
.nr-state-note { font-size: 11px !important; color: var(--ink-soft); line-height: 1.9; }
.nr-compare { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 45; display: flex; align-items: center; gap: 28px; max-width: calc(100vw - 40px); padding: 12px 24px; background: var(--forest-2); color: var(--paper); box-shadow: 0 8px 35px #152a2526; font-size: 12px; }
.nr-compare[hidden] { display: none; }
.nr-compare button { border: 0; border-bottom: 1px solid #9dac88; color: inherit; background: transparent; min-height: 40px; cursor: pointer; font: inherit; white-space: nowrap; }
.nr-compare #clearCompare { opacity: .65; border-color: transparent; font-size: 11px; }
.nr-compare-dialog { width: min(940px, calc(100vw - 40px)); max-height: calc(100svh - 50px); padding: 42px; border: 0; background: var(--paper); color: var(--ink); }
.nr-compare-dialog::backdrop { background: #12281999; backdrop-filter: blur(5px); }
.nr-compare-dialog header { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.nr-compare-dialog h2 { margin: 10px 0 20px; font: 400 44px/1.2 var(--serif, serif); letter-spacing: -.04em; }
.nr-compare-dialog .nr-note { max-width: 70ch; }
.nr-compare-dialog .nr-table-scroll { margin-top: 25px; max-height: 55svh; }
.nr-compare-dialog .nr-table thead th { color: var(--ink); font: 400 18px var(--serif, serif); min-width: 155px; background: var(--paper); position: sticky; top: 0; z-index: 1; }
.nr-compare-dialog .nr-table th:first-child { min-width: 110px; }
.nr-compare-dialog .nr-table tbody th { font-size: 11px; width: auto; }
.nr-compare-dialog .nr-table th, .nr-compare-dialog .nr-table td { padding: 16px; border-right: 1px solid var(--line); }
.nr-compare-dialog .nr-table th:last-child, .nr-compare-dialog .nr-table td:last-child { border-right: 0; }
.nr-compare-dialog .nr-table tbody tr:hover { background: #e8ebdf; }
.nr-compare-dialog .nr-table .nr-note { font: 10px/1.8 var(--sans, sans-serif); margin: 12px 0 0; }
.nr-compare-dialog .nr-table button { padding: 7px 0; font-size: 10px; min-height: 36px; border-color: transparent; text-decoration: underline; color: var(--ink-soft); }

/* Integrate with the existing forest panel and paper record form. */
.diet-workspace { align-items: start; border: 0; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 44px; }
.diet-entry-form { padding: 0 0 30px; }
.diet-today { min-height: 0; padding: 38px; }
.diet-form-heading { padding: 0 0 24px; border-bottom: 1px solid var(--line); }
.diet-form-heading h2 { font-size: 35px; }
.diet-form-heading > span { max-width: 110px; font-size: 10px; }
.diet-today-heading h2 { font-size: 35px; }
.diet-today .nutrition-review { --nr-text: #eff0e8; --nr-muted: #bbc7b3; --nr-line: #44543e; --nr-accent: #d5e5ab; }
.diet-today .nr-source a { color: #e3edcd; }
.diet-today .nr-heading h3 { color: #bbc7b3; }
.diet-today .nr-empty .kicker { color: #c9dba7; }
.diet-save { display: inline-flex; justify-content: space-between; gap: 45px; align-items: center; background: var(--forest-2); color: var(--paper); padding: 15px 20px; font-size: 12px; }
.diet-intro { padding-bottom: 42px; }
.diet-intro h1 { font-size: clamp(54px, 6vw, 82px); }
.diet-profile { padding: 22px 0; }
.diet-profile label { min-width: 240px; }
.diet-profile input { font-size: 13px; }
.diet-profile p { font-size: 11px; }
.diet-workspace { margin-top: 46px; }
.diet-history { margin-top: 76px; }
.diet-footer { background: transparent; color: var(--ink-soft); }
.diet-footer .suxin-data-tools, .diet-footer .suxin-data-tools p, .diet-footer .suxin-data-actions button, .diet-footer .suxin-paste-backup summary { color: var(--ink-soft); }
.diet-footer .suxin-data-tools strong { color: var(--ink); }
.diet-footer .suxin-data-actions button { border-radius: 0; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); margin-right: 18px; }
.diet-footer .suxin-data-status { color: #526943; }
.diet-history-actions { flex-wrap: wrap; gap: 6px 16px; max-width: 180px; justify-content: end; }
.diet-history-actions button { min-height: 36px; }
.diet-history-actions [data-repeat-entry] { color: var(--ink); }
.diet-history-search { display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); padding: 15px 0; margin-top: 26px; }
.diet-history-search label { flex: 1; display: flex; align-items: center; gap: 15px; font-size: 11px; color: var(--ink-soft); }
.diet-history-search input { width: 100%; min-width: 0; background: transparent; color: var(--ink); border: 0; outline: 0; min-height: 44px; font: 14px var(--sans, sans-serif); }
.diet-history-search:focus-within { border-color: var(--ink); }
.diet-history-search button { background: transparent; border: 0; color: var(--ink-soft); font-size: 11px; padding: 12px 0; cursor: pointer; }
.diet-date-nav { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 0 0; }
.diet-date-nav button { color: #c1cdb7; font-size: 11px; min-height: 36px; padding: 4px 0; background: none; border: 0; cursor: pointer; }
.diet-date-nav button:hover { color: #eff0e8; }
.diet-date-nav button:disabled { opacity: .45; cursor: default; }
.diet-today, .nr-settings, .nr-guide, #recordMeal, #history { scroll-margin-top: 110px; }
.web-select-grid select { border: 0; border-bottom: 1px solid var(--line); background: transparent; padding-left: 0; font-size: 13px; }
.web-select-grid { gap: 24px; }
.web-filter-intro { max-width: 68ch; }
.web-preparation label { font-size: 11px; }
.nr-button:focus-visible, .nr-week button:focus-visible, .nr-variants button:focus-visible, .nr-picker-results button:focus-visible, .nr-library-options summary:focus-visible, .nr-disclosure summary:focus-visible, .diet-date-nav button:focus-visible, .nr-compare button:focus-visible { outline: 2px solid #91a66b; outline-offset: 4px; }
@keyframes nr-reveal { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.nr-disclosure[open] > :not(summary), .nr-settings[open] > :not(summary), .nr-guide[open] > :not(summary), .nr-library-options[open] > :not(summary) { animation: nr-reveal .2s ease-out; }
@media (max-width: 1050px) {
  .diet-workspace { gap: 28px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .diet-today { padding: 28px; }
  .diet-form-heading { display: block; }
  .diet-form-heading > span { display: block; margin-top: 12px; max-width: none; text-align: left; }
  .nr-stats strong { font-size: 27px; }
  .nr-energy strong { font-size: 64px; }
  .nr-settings-pair { gap: 35px; }
}
@media (max-width: 900px) {
  .diet-workspace { grid-template-columns: 1fr; gap: 18px; }
  .diet-today { padding: 38px; }
  .nr-library-options { max-width: 72%; }
  .nr-library-fields { grid-template-columns: 1fr; gap: 15px; }
  .nr-library-options[open] { min-width: 250px; }
}
@media (max-width: 620px) {
  .diet-main { padding-top: 111px; }
  .diet-intro { padding-bottom: 28px; gap: 22px; }
  .diet-intro h1 { font-size: 58px; }
  .diet-intro-side p { font-size: 13px; }
  .diet-profile { gap: 10px; padding: 20px 0; }
  .diet-profile label { min-width: 0; max-width: 240px; }
  .diet-profile p { margin: 5px 0 0; }
  .diet-workspace { margin-top: 34px; }
  .diet-entry-form { padding: 0 0 30px; }
  .diet-form-heading h2, .diet-today-heading h2 { font-size: 32px; }
  .diet-form-grid-three { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .diet-form-grid-three label:last-child { grid-column: 1 / -1; }
  .diet-today { padding: 28px 22px; }
  .diet-today-heading { display: flex; flex-wrap: wrap; gap: 24px; }
  .diet-today-heading label { min-width: 120px; }
  .diet-today-heading label > span { font-size: 10px; }
  .nr-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; padding-bottom: 25px; }
  .nr-stats strong { font-size: 30px; }
  .nr-stats .nr-energy { padding-bottom: 8px; }
  .nr-energy strong { font-size: 63px; }
  .nr-groups > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nr-empty { padding: 34px 0 24px; }
  .nr-empty h3 { font-size: 32px; }
  .nr-empty .nr-note { font-size: 12px; }
  .nr-disclosure summary { min-height: 58px; font-size: 12px; }
  .nr-table { font-size: 11px; }
  .nr-table th, .nr-table td { padding: 13px 5px 13px 0; }
  .nr-source { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; font-size: 11px; }
  .nr-source b { overflow-wrap: anywhere; }
  .nr-journal-tools { padding-top: 42px; }
  .nr-week-heading h3 { font-size: 30px; }
  .nr-week-heading > p { font-size: 26px; }
  .nr-week { margin-top: 22px; }
  .nr-week button { padding: 18px 2px 16px; }
  .nr-week span { font-size: 9px; margin-bottom: 12px; }
  .nr-week b { font-size: 25px; }
  .nr-week small { font-size: 9px; }
  .nr-week em { display: none; }
  .nr-week-note { font-size: 9px; }
  .nr-settings-pair { grid-template-columns: 1fr; gap: 0; margin-top: 34px; }
  .nr-settings { padding-bottom: 20px; }
  .nr-settings summary { padding-top: 22px; }
  .nr-settings summary b { font-size: 25px; }
  .nr-fields { gap: 22px 18px; }
  .nr-compare { width: calc(100vw - 32px); max-width: none; box-sizing: border-box; gap: 20px; padding: 10px 16px; bottom: 16px; }
  .nr-compare #compareCount { flex: 1; font-size: 11px; }
  .nr-compare-dialog { padding: 25px 20px; width: calc(100vw - 24px); }
  .nr-compare-dialog h2 { font-size: 33px; }
  .nr-compare-dialog .nr-table thead th { min-width: 145px; }
  .nr-compare-dialog .nr-table th:first-child { min-width: 85px; }
  .nr-library-tools { display: grid; grid-template-columns: 1fr; gap: 5px; padding-top: 0; padding-bottom: 12px; }
  .nr-library-tools > p { margin-top: 0; }
  .nr-library-options { max-width: none; min-width: 0 !important; }
  .nr-library-options summary { justify-content: space-between; }
  .nr-library-fields { grid-template-columns: 1fr; gap: 18px; padding: 5px 0 15px; }
  .nr-library-tools label { grid-template-columns: 70px minmax(0, 1fr); align-items: center; }
  .nr-library-tools select { padding: 8px 0; }
  .nr-guide summary b { margin-left: 12px; }
  .diet-history { margin-top: 54px; }
  .diet-history-actions { justify-content: start; max-width: none; gap: 24px; }
  .diet-history-search label > span { display: none; }
  .diet-history-search input { font-size: 13px; }
  .web-select-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .web-select-grid label:first-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .nr-disclosure[open] > :not(summary), .nr-settings[open] > :not(summary), .nr-guide[open] > :not(summary), .nr-library-options[open] > :not(summary) { animation: none; }
  .nr-disclosure summary::after, .nr-settings summary i, .nr-picker summary i, .nr-guide summary i, .nr-library-options summary i, .nr-week button, .nr-button { transition: none; }
}
.nr-button[hidden] { display: none; }
.diet-history-search label > span { white-space: nowrap; }
.diet-form-heading > span { max-width: 140px; }
@media (max-width: 620px) { .diet-form-heading > span { max-width: none; } }
.nr-empty-mark { width: 25px; }
/* Keep long reference lists within the review, rather than stretching the page. */
.diet-today .nr-table-scroll, .nr-source-list { max-height: 440px; overflow: auto; scrollbar-width: thin; scrollbar-color: #81936c transparent; }
.diet-today .nr-table thead th { position: sticky; top: 0; z-index: 1; background: var(--forest-2); }
.nr-source-list:focus-visible, .nr-table-scroll:focus-visible { outline: 1px solid #91a66b; outline-offset: 3px; }
.nr-compare-dialog .nr-table th:first-child { position: sticky; left: 0; background: var(--paper); white-space: nowrap; min-width: 100px; }
.nr-compare-dialog .nr-table thead th:first-child { z-index: 2; }
.nr-swipe-note { display: none; }
@media (max-width: 620px) {
  .nr-swipe-note { display: block; color: var(--ink-soft); font-size: 10px; margin: 22px 0 -10px; }
  .diet-today .nr-table-scroll, .nr-source-list { max-height: 390px; }
}
