/* Kitchen — one shared visual system. Components own their borders and controls. */
:root {
  color-scheme: light;
  --canvas: #f5f5f0;
  --surface: #fff;
  --surface-soft: #f5f7f3;
  --ink: #2d3a31;
  --ink-strong: #18271e;
  --muted: #626e64;
  --line: #e3e8e0;
  --line-strong: #cdd7cc;
  --accent: #356548;
  --accent-deep: #244e36;
  --accent-soft: #eaf1e7;
  --gold: #895d2a;
  --gold-soft: #faf1df;
  --danger: #a33c32;
  --danger-soft: #fff0ed;
  --focus: #356548;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-soft: 0 4px 20px rgb(30 48 39 / 3%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  font-size: 16px;
  line-height: 1.65;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); scroll-padding-top: 100px; }
body { min-height: 100dvh; margin: 0; background: var(--canvas); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-deep); text-underline-offset: 4px; }
button, input, select, textarea { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .35; }
button, .button, input, select, textarea { border-radius: var(--radius-sm); }
:where(a, button, input, select, textarea, [tabindex]):focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
:where(h1, h2, h3, p) { margin-top: 0; }
h1, h2, h3 { color: var(--ink-strong); text-wrap: pretty; }
h1 { margin-bottom: 0; font-size: clamp(28px, 4vw, 40px); line-height: 1.3; letter-spacing: -.035em; }
h2 { font-size: 22px; line-height: 1.4; }
h3 { font-size: 18px; line-height: 1.5; }
svg { display: block; flex: 0 0 auto; }
.ui-icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; top: 8px; left: 12px; z-index: 200; padding: 10px 14px; border-radius: 8px; color: white; background: var(--ink-strong); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Shared frame */
.app-shell { min-height: 100dvh; padding-bottom: 48px; }
.app-bar { width: min(100% - 64px, 1160px); height: 96px; display: flex; align-items: center; justify-content: space-between; margin: auto; border-bottom: 1px solid var(--line); }
.app-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink-strong); text-decoration: none; }
.app-brand__mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; color: white; background: var(--accent-deep); }
.app-brand strong { font-size: 21px; letter-spacing: -.03em; }
.app-bar__action { min-height: 42px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--ink); background: transparent; font-size: 14px; font-weight: 600; text-decoration: none; }
.app-bar__action .ui-icon { width: 17px; height: 17px; }
.content { width: min(100% - 64px, 820px); margin: auto; padding: 36px 0 48px; }
.content--wide, .content--today { width: min(100% - 64px, 1160px); }
.bottom-nav { position: absolute; top: 25px; left: 50%; display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: #e9ede5; transform: translateX(-50%); z-index: 20; }
.bottom-nav a { min-width: 100px; min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 16px; border-radius: 10px; color: #657263; font-size: 14px; font-weight: 650; line-height: 1.4; text-decoration: none; }
.bottom-nav .ui-icon { width: 18px; height: 18px; }
.bottom-nav a[aria-current="page"] { color: var(--accent-deep); background: white; box-shadow: 0 1px 4px rgb(30 48 39 / 6%); }
.page-head { margin-bottom: 28px; }
.page-intro { margin: 10px 0 0; color: var(--muted); font-size: 16px; }
.serial { margin: 0 0 8px; color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .1em; }
.flash-stack { display: grid; gap: 8px; margin-bottom: 20px; }
.flash-stack p { margin: 0; padding: 13px 18px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--accent-soft); color: var(--accent-deep); }
.back-link, .k-back-link { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 16px; font-size: 15px; font-weight: 600; text-decoration: none; }

/* Today: an open date header, a single boundary for each meal. */
.k-day-head { display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; align-items: end; margin-bottom: 30px; }
.k-day-eyebrow { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.k-day-row { grid-column: 1; grid-row: 2; }
.k-day-date { font-size: clamp(32px, 4vw, 42px); line-height: 1.25; font-weight: 750; letter-spacing: -.045em; }
.k-day-date small { margin-left: 12px; color: var(--muted); font-size: 18px; font-weight: 500; letter-spacing: 0; }
.k-day-meta { color: var(--muted); font-size: 14px; }
.k-day-head > .k-day-meta { grid-column: 1; grid-row: 3; }
.k-pager { grid-column: 2; grid-row: 2 / 4; display: flex; gap: 8px; align-self: center; }
.k-pager a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); color: var(--ink); font-size: 25px; text-decoration: none; }
.k-day-head .k-note { grid-column: 1 / -1; margin-top: 6px; }
.k-meals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 24px; }
.k-section { min-width: 0; margin: 0; }
.k-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-soft); }
.k-meal-top { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 24px 26px 0; }
.k-chip { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; color: var(--accent-deep); font-size: 15px; font-weight: 700; }
.k-chip .ui-icon { width: 20px; height: 20px; }
.k-section--dinner .k-chip { color: #68628a; }
.k-inline-form { display: inline-flex; margin: 0; }
.k-freeman { min-height: 32px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--surface-soft); font-size: 12px; font-weight: 600; }
.k-freeman[aria-pressed="true"] { color: var(--accent-deep); border-color: #d7e4d3; background: var(--accent-soft); }
.k-stepper { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; margin-left: auto; }
.k-stepper form { display: contents; }
.k-stepper button { display: grid; place-items: center; width: 36px; height: 36px; min-width: 36px; min-height: 36px; flex: 0 0 36px; aspect-ratio: 1; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--accent-deep); background: var(--surface); font-size: 22px; font-weight: 500; line-height: 1; }
.k-stepper button:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); }
.k-count { min-width: 22px; color: var(--ink-strong); font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: center; }
.k-count--static { margin-left: auto; }
.k-person-unit { color: var(--muted); font-size: 12px; margin-left: -5px; }
.k-dish-name { margin: 0; padding: 18px 26px 24px; color: var(--ink-strong); font-size: clamp(23px, 2vw, 27px); font-weight: 720; line-height: 1.45; letter-spacing: -.02em; overflow-wrap: anywhere; }
.k-dish-link { color: inherit; text-decoration: none; }
.k-dish-link:hover { color: var(--accent); }
.k-blocks { border-top: 1px solid var(--line); }
.k-block + .k-block { border-top: 1px solid var(--line); }
.k-block__head, .k-extra__head { width: 100%; min-height: 56px; display: flex; align-items: center; gap: 9px; border: 0; border-radius: 0; padding: 16px 26px; text-align: left; color: var(--ink-strong); background: transparent; font-size: 15px; font-weight: 650; line-height: 1.6; }
.k-block__head:hover, .k-extra__head:hover { background: var(--surface-soft); }
.k-chev { width: 16px; height: 16px; flex: 0 0 16px; display: inline-flex; align-items: center; justify-content: center; margin-left: auto; color: var(--muted); font-size: 22px; font-weight: 400; line-height: 1; }
.k-block.open > .k-block__head .k-chev, .k-extra.open > .k-extra__head .k-chev { transform: rotate(90deg); }
.k-block__body { display: none; padding: 0 26px 24px; }
.k-block.open > .k-block__body { display: block; }
.k-tag { flex: 0 1 auto; padding: 2px 8px; border-radius: 6px; color: var(--muted); background: #f0f3ed; font-size: 11px; font-weight: 500; }
.k-tag--accent { color: var(--gold); background: var(--gold-soft); }
.k-ing { list-style: none; margin: 0; padding: 0; }
.k-ing li { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid #edf0ea; font-size: 17px; line-height: 1.65; }
.k-ing li:last-child { border-bottom: 0; }
.k-ing li > span { min-width: 0; overflow-wrap: anywhere; }
.k-ingredient-label { flex: 1; }
.k-ingredient-hint { display: block; margin-top: 3px; color: var(--muted); font-size: 14px; font-weight: 400; line-height: 1.65; }
.k-ing li b { max-width: 52%; color: var(--ink-strong); font-size: 21px; line-height: 1.45; font-variant-numeric: tabular-nums; font-weight: 750; text-align: right; overflow-wrap: anywhere; }
.k-ing li.k-freeman-line { color: var(--accent); }
.k-steps { counter-reset: cooking-step; display: grid; gap: 12px; margin: 22px 0 0; padding: 20px 0 0; list-style: none; border-top: 1px solid var(--line); }
.k-steps li { counter-increment: cooking-step; position: relative; padding-left: 31px; color: #526055; font-size: 15px; line-height: 1.8; }
.k-steps li::before { content: counter(cooking-step, decimal-leading-zero); position: absolute; top: 3px; left: 0; color: var(--accent); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.k-extras { background: var(--surface-soft); border-top: 1px solid var(--line); }
.k-extra + .k-extra { border-top: 1px solid #e7ece3; }
.k-extra__head { min-height: 53px; color: #526451; font-size: 14px; font-weight: 550; }
.k-extra__body { display: none; padding: 0 26px 18px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.k-extra.open > .k-extra__body { display: block; }
.k-extra__body .k-ing li { font-size: 16px; }
.k-extra__body .k-ing b { font-size: 18px; }
.k-extra-note { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.k-extra-item-note { display: block; color: var(--muted); font-size: 12px; }
.k-note { margin: 0; border-radius: 10px; padding: 12px 16px; color: var(--gold); background: var(--gold-soft); font-size: 14px; }
.k-card .k-day-meta { margin: 0 26px 20px; }

/* Personal vegetables: one clear variable quantity, one fixed cooking block. */
.personal-prep { padding: 24px 26px; border-top: 1px solid var(--line); }
.prep-section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 16px; }
.prep-section-head h2, .prep-section-head h3 { margin: 0; font-size: 18px; font-weight: 750; line-height: 1.5; }
.prep-section-head > span { color: var(--muted); font-size: 12px; }
.prep-section-head .prep-scope, .prep-scope { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 6px; color: var(--accent-deep); background: var(--accent-soft); font-size: 13px; font-weight: 650; }
.prep-variable { padding: 18px 20px; border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0; background: #eef4e9; }
.prep-variable-label { margin: 0 0 10px; color: var(--accent-deep); font-size: 13px; font-weight: 650; }
.prep-variable-line { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.prep-variable-line + .prep-variable-line { margin-top: 14px; }
.prep-variable-line > strong { color: var(--ink-strong); font-size: 25px; font-weight: 750; }
.prep-quantity { display: inline-flex; align-items: baseline; flex: 0 0 auto; gap: 4px; color: var(--ink-strong); font-variant-numeric: tabular-nums; white-space: nowrap; }
.prep-quantity b { font-size: 36px; font-weight: 800; line-height: 1.15; letter-spacing: -.045em; }
.prep-quantity small { font-size: 15px; font-weight: 650; letter-spacing: 0; }
.prep-variable .prep-quantity b { font-size: 52px; }
.prep-variable .prep-quantity small { font-size: 19px; }
.prep-fixed { min-width: 0; margin-top: 18px; padding: 18px; border-radius: 12px; background: var(--surface-soft); }
.prep-fixed .prep-section-head { margin-bottom: 18px; }
.prep-fixed .prep-section-head h3 { font-size: 15px; }
.prep-fixed-vegetables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.prep-fixed-item { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.prep-fixed-item > span { color: var(--ink); font-size: 17px; font-weight: 650; }
.prep-seasonings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-strong); }
.prep-seasoning { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.prep-seasoning > span { color: var(--ink); font-size: 14px; font-weight: 600; }
.prep-seasoning .prep-quantity b { font-size: 23px; }
.prep-seasoning .prep-quantity small { font-size: 12px; }
.prep-timing { display: inline-block; padding: 2px 6px; border-radius: 4px; color: var(--accent-deep); background: #deead6; font-size: 12px; line-height: 1.5; }
.prep-cooking { display: grid; gap: 8px; margin: 18px 0 0; padding: 15px 0 0 20px; border-top: 1px solid var(--line-strong); color: var(--ink); font-size: 15px; line-height: 1.75; }
.prep-cooking li { padding-left: 2px; }
.prep-cooking li::marker { color: var(--accent); font-weight: 750; }
.prep-status { margin: 0; color: var(--ink-strong); font-size: 19px; font-weight: 650; }
.personal-prep--shared, .personal-prep--none { padding-block: 20px; background: var(--surface-soft); }
.personal-prep--shared .prep-section-head, .personal-prep--none .prep-section-head { margin-bottom: 6px; }
.personal-prep--shared .prep-section-head h2, .personal-prep--none .prep-section-head h2 { color: var(--muted); font-size: 14px; }
.personal-prep--shared .prep-scope, .personal-prep--none .prep-scope { display: none; }
.prep-other-notes { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink); font-size: 14px; line-height: 1.85; }
.prep-other-notes p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.prep-other-notes p + p { margin-top: 8px; }
.prep-other-notes--standalone { margin: 0; padding: 20px 26px; }
.prep-other-notes--standalone h2 { font-size: 17px; }
.recipe-serving-summary { display: flex; flex-wrap: wrap; gap: 5px 15px; margin: 0; padding: 0 26px 24px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.recipe-serving-summary strong { color: var(--ink-strong); font-weight: 750; }
.recipe-portion-note { margin: 0 0 14px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.ingredient-group { display: inline-block; margin-left: 7px; padding: 1px 6px; border-radius: 4px; color: var(--accent-deep); background: var(--accent-soft); font-size: 11px; font-weight: 550; vertical-align: middle; }

/* Prep and recipe library */
.k-page-title { margin: 0 0 10px; font-size: 34px; }
.k-page-description { margin: 0 0 28px; color: var(--muted); font-size: 15px; }
.prep-overview { margin-bottom: 36px; padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.prep-overview-head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.prep-overview-head h2 { margin: 0 0 7px; font-size: 24px; }
.prep-overview-head p { margin: 0; color: var(--muted); font-size: 14px; }
.prep-overview-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; gap: 28px; }
.prep-overview .prep-fixed { margin-top: 0; }
.prep-variable-schedule { min-width: 0; }
.prep-table-wrap { max-width: 100%; overflow-x: auto; }
.prep-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.prep-table th, .prep-table td { padding: 15px 7px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.prep-table thead th { padding-block: 10px; background: var(--surface-soft); color: var(--muted); font-size: 13px; font-weight: 650; }
.prep-table th:first-child { width: 28%; padding-left: 12px; text-align: left; }
.prep-table tbody th span, .prep-table tbody th strong { display: block; }
.prep-table tbody th span { margin-bottom: 3px; color: var(--muted); font-size: 12px; font-weight: 550; }
.prep-table tbody th strong { color: var(--ink-strong); font-size: 17px; font-weight: 750; }
.prep-table .prep-quantity { gap: 2px; }
.prep-table .prep-quantity b { font-size: 34px; }
.prep-table .prep-quantity small { font-size: 12px; }
.prep-table-status { color: var(--muted); font-size: 12px; }
.prep-table-cell-name { display: block; margin-bottom: 5px; color: var(--ink); font-size: 12px; }
.prep-overview-variation { margin: 0; padding: 18px; border-radius: 12px; color: var(--ink); background: var(--surface-soft); font-size: 15px; }
.prep-exceptions { display: grid; gap: 6px; margin-top: 16px; color: var(--muted); font-size: 14px; }
.prep-exceptions p { margin: 0; }
.k-plan-heading { margin-bottom: 22px; font-size: 22px; }
.k-weeks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 22px; }
.k-week { min-width: 0; }
.k-week-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line-strong); color: var(--ink-strong); font-size: 17px; font-weight: 650; }
.k-week-head small { color: var(--muted); font-size: 12px; font-weight: 500; }
.k-cycle-day { display: flex; gap: 18px; align-items: center; margin-bottom: 10px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink-strong); background: var(--surface); text-decoration: none; }
.k-cycle-day:hover { border-color: #a4b99c; }
.k-cycle-day--today { border-color: #75936b; background: #f0f5ed; }
.k-weeks .k-cycle-day { display: block; padding: 17px 18px; }
.k-cycle-date { flex: 0 0 100px; }
.k-cycle-date b { display: block; color: var(--ink-strong); font-size: 17px; font-weight: 650; }
.k-cycle-date small { color: var(--muted); font-size: 12px; }
.k-weeks .k-cycle-date { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.k-cycle-body { min-width: 0; flex: 1; font-size: 16px; }
.k-cycle-row { display: flex; gap: 10px; margin-top: 6px; font-size: 14px; }
.k-cycle-row > span { flex: 0 0 17px; color: var(--muted); }
.k-cycle-row b { font-weight: 550; overflow-wrap: anywhere; }
.k-cycle-snack { margin-top: 10px; color: var(--muted); font-size: 12px; }
.k-cycle-prep { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); color: var(--accent-deep); font-size: 14px; }
.k-cycle-prep > span { font-size: 12px; }
.k-cycle-prep strong { font-weight: 750; }
.k-cycle-prep--quiet { display: block; color: var(--muted); font-size: 12px; line-height: 1.75; white-space: pre-line; }
.k-cycle-arrow { flex: 0 0 20px; color: #83937e; font-size: 24px; line-height: 1; }
.k-library-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; }
.k-library-group { min-width: 0; }
.k-library-group .k-cycle-day { min-height: 80px; }
.k-library-group .k-cycle-body b { font-weight: 600; }
.k-empty, .empty-note { padding: 32px 18px; color: var(--muted); font-size: 15px; text-align: center; }
.k-prose { font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
.k-prose :where(h2, h3) { margin: 22px 0 10px; color: var(--accent-deep); font-size: 16px; }
.k-prose > :first-child { margin-top: 0; }
.k-prose > :last-child { margin-bottom: 0; }
.k-prose ul { list-style: none; margin: 0; padding: 0; }
.k-prose ul li { padding: 9px 0; border-bottom: 1px solid #edf0ea; }
.k-prose ul li:last-child { border-bottom: 0; }
.k-prose ol { margin: 8px 0; padding-left: 24px; }
.k-prose ol li { padding: 5px 0 5px 5px; }
.k-prose ol li::marker { color: var(--accent); font-weight: 650; }
.k-prose p { margin: 8px 0; }

/* Forms and management. No global section/article borders. */
form { margin: 0; }
label { display: grid; min-width: 0; gap: 7px; color: var(--ink); font-size: 14px; font-weight: 600; }
input:not([type="hidden"]), select, textarea { width: 100%; min-width: 0; min-height: 46px; border: 1px solid var(--line-strong); padding: 10px 12px; color: var(--ink-strong); background: var(--surface); font-size: 16px; line-height: 1.6; }
textarea { resize: vertical; min-height: 160px; }
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid transparent; padding: 10px 16px; color: white; background: var(--accent-deep); font-size: 14px; font-weight: 650; line-height: 1.4; text-decoration: none; }
.button--quiet { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.button--danger-quiet { border: 1px solid #e7c6bf; padding: 9px 14px; color: var(--danger); background: var(--danger-soft); font-size: 14px; }
[role="alert"] { border-left: 3px solid var(--danger); border-radius: 8px; padding: 12px 16px; color: var(--danger); background: var(--danger-soft); }
.manage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.manage-link { min-height: 134px; display: grid; grid-template-columns: 40px 1fr 18px; align-items: center; gap: 14px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: var(--surface); text-decoration: none; }
.manage-link:hover { border-color: var(--accent); }
.manage-link__code { color: #8d9d84; font-size: 14px; }
.manage-link strong, .manage-link small { display: block; }
.manage-link strong { color: var(--ink-strong); font-size: 20px; }
.manage-link small { margin-top: 5px; color: var(--muted); font-size: 13px; }
.chevron { font-size: 24px; color: var(--muted); }
.logout-panel, .existing-overrides, .cycle-tool-card, .activate-card, .supplement-plan-group { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.logout-panel { margin-top: 24px; }
.logout-panel h2 { margin-bottom: 6px; font-size: 18px; }
.logout-panel p { color: var(--muted); font-size: 14px; }
.manage-page-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.manage-list { display: grid; gap: 12px; }
.manage-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.manage-row__main { min-width: 0; }
.manage-row__main :where(h2, h3) { margin: 5px 0 0; font-size: 18px; overflow-wrap: anywhere; }
.manage-row__main p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.status-tag { color: var(--accent); font-size: 12px; }
.status-tag--muted { color: var(--muted); }
.manage-row__actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 8px; align-items: center; }
.app-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.app-form label small { color: var(--muted); font-size: 12px; font-weight: 400; }
.field--full { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: end; }
.form-actions button { min-width: 150px; }
.override-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
fieldset { display: grid; min-width: 0; align-content: start; gap: 14px; margin: 0; border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: var(--surface); }
legend { padding: 0 6px; color: var(--ink-strong); font-weight: 650; }
.override-date, .override-reason, .override-submit { grid-column: 1 / -1; }
.check-label { display: flex; align-items: center; min-height: 40px; gap: 10px; }
.check-label input { width: 19px; height: 19px; min-height: 0; margin: 0; accent-color: var(--accent); }
.existing-overrides { margin-top: 28px; }
.error-card { max-width: 620px; margin: 10vh auto; padding: 28px; border-radius: 18px; background: var(--surface); }
.error-card h1 { margin-bottom: 18px; }

/* Cycle editor */
.cycle-picker { display: flex; gap: 10px; margin-bottom: 24px; padding-bottom: 8px; overflow: auto; }
.cycle-picker a { display: grid; flex: 0 0 auto; min-width: 160px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--surface); font-size: 14px; text-decoration: none; }
.cycle-picker a small { color: var(--muted); font-size: 12px; }
.cycle-picker a[aria-current="page"] { border-color: #8fa786; background: var(--accent-soft); }
.cycle-weeks { display: grid; gap: 30px; }
.cycle-week__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 15px; }
.cycle-week__head span { color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.cycle-week__head h2 { margin: 0; }
.cycle-day-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cycle-day-card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.cycle-day-card__head { position: relative; padding: 18px; border-bottom: 1px solid var(--line); background: var(--surface-soft); }
.cycle-day-card__head span { color: var(--accent); font-size: 13px; }
.cycle-day-card__head h3 { margin: 2px 0 0; }
.cycle-day-card__head small { position: absolute; top: 20px; right: 18px; color: var(--muted); font-size: 11px; }
.cycle-day-form { display: grid; gap: 15px; padding: 18px; }
.cycle-day-form__meta, .cycle-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cycle-tools { gap: 20px; margin-top: 32px; }
.cycle-tool-card h2 { margin-bottom: 8px; }
.cycle-tool-card > p:not(.serial) { color: var(--muted); font-size: 14px; }
.cycle-tool-card form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cycle-tool-card form label:first-of-type, .cycle-tool-card form button { grid-column: 1 / -1; }
.activate-card { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 20px; background: var(--gold-soft); }
.activate-card p { margin-bottom: 0; }

/* Supplements */
.segment-nav { display: flex; gap: 6px; margin-bottom: 24px; padding: 4px; border-radius: 12px; background: #e9ede5; }
.segment-nav a { flex: 1; min-height: 42px; display: grid; place-items: center; border-radius: 9px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.segment-nav a[aria-current="page"] { color: var(--accent-deep); background: var(--surface); }
.supplement-periods, .supplement-period { display: grid; gap: 20px; }
.supplement-period + .supplement-period { margin-top: 16px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-heading h2 { margin: 0; }
.section-count { color: var(--muted); font-size: 13px; }
.supplement-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.supplement-card { border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: var(--surface); }
.supplement-card__brand { margin-bottom: 4px; color: var(--accent); font-size: 12px; font-weight: 600; }
.supplement-card h2 { margin: 0; font-size: 20px; }
.supplement-card dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0 0; }
.supplement-card dt { color: var(--muted); font-size: 12px; }
.supplement-card dd { margin: 2px 0 0; color: var(--ink-strong); font-size: 16px; font-weight: 650; }
.supplement-card__note { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.manage-entry { display: block; margin-top: 28px; padding: 18px; border: 1px dashed var(--line-strong); border-radius: 12px; text-decoration: none; }
.manage-entry strong, .manage-entry span { display: block; }
.manage-entry span { color: var(--muted); font-size: 13px; }
.supplement-plan-form { display: grid; gap: 24px; }
.supplement-plan-group__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.supplement-plan-group__head > div { display: flex; align-items: baseline; gap: 12px; }
.supplement-plan-group__head h2 { margin: 0; }
.supplement-plan-group__head span { color: var(--muted); font-size: 12px; }
.supplement-plan-rows { display: grid; gap: 16px; }
.supplement-plan-row { display: grid; grid-template-columns: minmax(100px, .8fr) minmax(160px, 1.5fr) 80px 74px; gap: 14px; padding: 18px; border-radius: 12px; background: var(--surface-soft); }
.supplement-plan-row textarea { min-height: 80px; }
.supplement-plan-row__note, .supplement-plan-row__remove { grid-column: 1 / -1; }
.supplement-plan-row__remove { justify-self: end; min-height: 36px; padding: 4px 8px; border: 0; color: var(--danger); background: transparent; font-size: 13px; }
.supplement-plan-actions { position: sticky; bottom: 16px; display: flex; justify-content: end; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgb(255 255 255 / 95%); }

/* Login */
.login-body { display: grid; min-height: 100dvh; place-items: center; padding: 24px; }
.login-screen { width: min(100%, 440px); }
.login-card { border: 1px solid var(--line); border-radius: 24px; padding: 40px; background: var(--surface); box-shadow: var(--shadow-soft); }
.login-card h1 { font-size: 34px; }
.login-copy { margin: 16px 0 24px; color: var(--muted); font-size: 15px; }
.login-card form { display: grid; gap: 12px; }
.login-note { margin: 24px 0 0; color: var(--muted); font-size: 10px; letter-spacing: .12em; text-align: center; }

@media (min-width: 1500px) { .content--today { padding-top: 48px; } }
@media (max-width: 1000px) {
  .k-meals { gap: 18px; }
  .k-meal-top { padding: 20px 20px 0; gap: 8px; }
  .k-dish-name { padding: 16px 20px 22px; }
  .k-block__head, .k-extra__head { padding-inline: 20px; }
  .k-block__body, .k-extra__body { padding-inline: 20px; }
  .personal-prep { padding-inline: 20px; }
  .prep-overview-grid { grid-template-columns: 1fr; gap: 26px; }
  .k-weeks { grid-template-columns: 1fr; gap: 26px; }
  .k-weeks .k-cycle-day { display: flex; gap: 20px; }
  .k-weeks .k-cycle-date { display: block; flex: 0 0 105px; margin: 0; }
  .cycle-day-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  html { scroll-padding-top: 20px; }
  .app-shell { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .app-bar { width: calc(100% - 36px); height: 78px; }
  .app-brand { gap: 9px; }
  .app-brand strong { font-size: 19px; }
  .app-brand__mark { width: 36px; height: 36px; border-radius: 12px; }
  .app-bar__action { min-height: 38px; padding: 6px 11px; font-size: 13px; }
  .content, .content--wide, .content--today { width: calc(100% - 36px); padding: 28px 0 20px; }
  .bottom-nav { position: fixed; top: auto; bottom: 0; width: 100%; padding: 9px max(18px, env(safe-area-inset-left)) calc(9px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-right)); border-top: 1px solid var(--line); border-radius: 0; background: rgb(255 255 255 / 97%); backdrop-filter: blur(16px); }
  .bottom-nav a { flex: 1; min-width: 0; min-height: 52px; flex-direction: column; gap: 2px; padding: 5px 10px; font-size: 11px; }
  .bottom-nav .ui-icon { width: 21px; height: 21px; }
  .bottom-nav a[aria-current="page"] { background: var(--accent-soft); box-shadow: none; }
  .k-day-head { margin-bottom: 24px; gap: 7px 14px; }
  .k-day-date { font-size: 32px; }
  .k-day-date small { font-size: 15px; margin-left: 8px; }
  .k-day-eyebrow { font-size: 12px; }
  .k-day-meta { font-size: 12px; }
  .k-pager { gap: 7px; }
  .k-pager a { width: 38px; height: 38px; }
  .k-meals { grid-template-columns: 1fr; gap: 24px; }
  .k-meal-top { padding: 20px 20px 0; gap: 10px; }
  .k-dish-name { font-size: 24px; }
  .k-stepper { gap: 6px; }
  .k-stepper button { width: 36px; height: 36px; min-width: 36px; min-height: 36px; }
  .k-person-unit { display: none; }
  .k-ing li { font-size: 16px; }
  .k-ing li b { font-size: 20px; }
  .k-steps li { font-size: 15px; }
  .k-card { border-radius: 18px; }
  .k-block__head:focus-visible, .k-extra__head:focus-visible { outline-offset: -4px; }
  .k-page-title { font-size: 30px; }
  .k-library-grid { grid-template-columns: 1fr; gap: 28px; }
  .k-weeks .k-cycle-day { padding: 16px; gap: 16px; }
  .k-weeks .k-cycle-date { flex-basis: 80px; }
  .k-cycle-date b { font-size: 16px; }
  .k-cycle-date small { font-size: 11px; }
  .k-cycle-row { font-size: 14px; }
  .prep-fixed { padding: 16px; }
  .prep-seasonings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prep-seasoning .prep-quantity b { font-size: 27px; }
  .prep-variable { padding: 16px; }
  .prep-variable-line > strong { font-size: 23px; }
  .prep-variable .prep-quantity b { font-size: 48px; }
  .prep-overview { padding: 20px 16px; }
  .prep-overview-head { margin-bottom: 22px; }
  .prep-overview-head h2 { font-size: 22px; }
  .prep-table th, .prep-table td { padding: 14px 3px; }
  .prep-table th:first-child { width: 28%; padding-left: 6px; }
  .prep-table tbody th strong { font-size: 16px; }
  .prep-table .prep-quantity b { font-size: 28px; }
  .prep-table .prep-quantity small { font-size: 11px; }
  .prep-section-head > span { font-size: 11px; }
  .recipe-serving-summary { padding-inline: 20px; }
  .manage-grid, .cycle-tools { grid-template-columns: 1fr; }
  .manage-link { min-height: 110px; padding: 20px; }
  .manage-page-head { align-items: start; flex-direction: column; }
  .manage-row { align-items: stretch; flex-direction: column; padding: 20px; gap: 16px; }
  .manage-row__actions { justify-content: start; }
  .app-form { grid-template-columns: 1fr; padding: 22px; }
  .override-form { grid-template-columns: 1fr; }
  .activate-card { align-items: start; flex-direction: column; }
  .supplement-plan-row { grid-template-columns: minmax(0, 1fr) 84px; padding: 14px; }
  .supplement-plan-row__product { grid-column: 1 / -1; }
  .supplement-plan-group { padding: 18px; }
  .supplement-plan-actions { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .supplement-list { grid-template-columns: 1fr; }
  .login-card { padding: 28px; }
}
@media (max-width: 520px) { .cycle-day-list { grid-template-columns: 1fr; } }
@media (max-width: 359px) {
  .app-bar, .content, .content--wide, .content--today { width: calc(100% - 24px); }
  .k-meal-top { padding: 18px 14px 0; gap: 7px; }
  .k-freeman { padding-inline: 7px; font-size: 11px; }
  .k-dish-name { padding-inline: 14px; font-size: 22px; }
  .k-block__head, .k-extra__head, .k-block__body, .k-extra__body { padding-inline: 14px; }
  .personal-prep, .recipe-serving-summary { padding-inline: 14px; }
  .prep-variable-line > strong { font-size: 21px; }
  .prep-variable .prep-quantity b { font-size: 42px; }
  .prep-overview { padding-inline: 12px; }
  .prep-table th:first-child { width: 30%; padding-inline: 4px; }
  .prep-table td { padding-inline: 1px; }
  .prep-table .prep-quantity { gap: 1px; }
  .prep-table .prep-quantity b { font-size: 23px; }
  .prep-table .prep-quantity small { font-size: 10px; }
  .k-day-date { font-size: 28px; }
  .k-pager a { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: no-preference) {
  a, button { transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
  .k-chev { transition: transform .18s ease; }
}
@media (forced-colors: active) {
  .k-card, .bottom-nav, .app-brand__mark, .k-stepper button { border: 1px solid CanvasText; }
}

/* Two focused entry points share the existing kitchen login. */
.kitchen-portal { padding: clamp(8px, 5vh, 56px) 0; }
.portal-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.portal-card { display: flex; flex-direction: column; align-items: flex-start; padding: 28px; color: var(--ink); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
.portal-card:hover { border-color: var(--accent); box-shadow: var(--shadow-soft); }
.portal-card h2 { margin: 18px 0 10px; font-size: 30px; }
.portal-card p { margin-bottom: 28px; color: var(--muted); }
.portal-card__action { margin-top: auto; color: var(--accent-deep); font-size: 15px; font-weight: 650; }
.surface-footer { width: min(100% - 40px, 1160px); margin: 0 auto 28px; text-align: center; font-size: 13px; }
.surface-footer a { display: inline-flex; align-items: center; min-height: 44px; margin: 0 12px; color: var(--muted); }
.k-meal-jump { display: flex; gap: 10px; margin: -4px 0 22px; }
.k-meal-jump a { display: grid; place-items: center; min-height: 44px; min-width: 90px; padding: 6px 22px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); font-size: 16px; font-weight: 650; text-decoration: none; }
.android-install { max-width: 540px; margin: 20px auto; }
.android-install h1 { margin: 20px 0 12px; }
.android-install .button { display: inline-flex; align-items: center; min-height: 52px; padding: 12px 24px; margin: 12px 0 24px; color: white; background: var(--accent-deep); font-weight: 650; text-decoration: none; }
.android-install ol { padding-left: 24px; line-height: 2; }
.android-install__note { margin-top: 24px; color: var(--muted); font-size: 14px; }
@media (max-width: 900px) {
  .k-stepper button { width: 44px; height: 44px; min-width: 44px; min-height: 44px; flex-basis: 44px; }
  .k-freeman { min-height: 44px; font-size: 13px; }
  .k-pager a { width: 44px; height: 44px; }
  .k-block__head { font-size: 17px; }
  .k-ing li { font-size: 18px; }
  .k-ing li b { font-size: 22px; max-width: 44%; }
  .k-steps li { font-size: 17px; line-height: 1.85; }
  .bottom-nav a { font-size: 13px; }
  .aunt-android .app-bar, .aunt-web-app .app-bar { height: 66px; }
  .aunt-android .content, .aunt-web-app .content { padding-top: 22px; }
}
@media (max-width: 420px) {
  .k-meal-top > .k-inline-form { order: 3; flex-basis: 100%; }
  .k-day-head { gap: 8px; }
  .k-day-date { font-size: 28px; }
}
@media (max-width: 600px) {
  .portal-choices { grid-template-columns: 1fr; gap: 14px; margin-top: 24px; }
  .portal-card { padding: 24px; }
  .portal-card h2 { margin: 12px 0 8px; font-size: 28px; }
  .portal-card p { margin-bottom: 20px; }
}

/* Aunt workbench: one readable row per meal, full instructions on detail. */
.aunt-kitchen {
  --canvas: #f6f1e8;
  --surface: #fffdf8;
  --surface-soft: #f8f5ee;
  --line: #e9e0d1;
  --line-strong: #d8cdb8;
  --accent: #435b3f;
  --accent-deep: #354b34;
  --accent-soft: #e9eee2;
  --gold: #a45741;
  background: var(--canvas);
}
.aunt-kitchen .k-meals--summary { grid-template-columns: minmax(0, 1fr); gap: 14px; max-width: 900px; margin-inline: auto; }
.aunt-kitchen .k-summary-card { min-height: 132px; }
.aunt-kitchen .k-summary-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.aunt-kitchen .k-summary-left { min-width: 0; padding: 22px 24px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.aunt-kitchen .k-summary-card .k-dish-name { padding: 0; font-size: clamp(20px, 2vw, 25px); }
.aunt-kitchen .k-summary-card .k-dish-link { display: block; min-height: 44px; }
.aunt-kitchen .k-summary-right { min-width: 0; padding: 18px 24px; border-left: 1px solid var(--line); background: var(--surface-soft); }
.aunt-kitchen .k-summary-count { display: block; margin-bottom: 8px; color: var(--accent-deep); font-size: 19px; font-variant-numeric: tabular-nums; }
.aunt-kitchen .k-summary-right p { display: flex; justify-content: space-between; gap: 8px; margin: 4px 0 0; color: var(--ink-strong); font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; text-align: right; }
.aunt-kitchen .k-summary-right p span { flex: 0 0 auto; color: var(--muted); font-size: 12px; text-align: left; }
.aunt-kitchen .k-summary-empty { padding: 22px 24px; }
.aunt-kitchen .k-summary-empty .k-dish-name { margin-top: 10px; }
.aunt-kitchen .k-today-marker, .aunt-kitchen .k-return-today { display: inline-flex; align-items: center; width: fit-content; min-height: 30px; margin-top: 8px; padding: 3px 10px; border-radius: 999px; color: var(--accent-deep); background: var(--accent-soft); font-size: 12px; font-weight: 700; text-decoration: none; }
.aunt-kitchen .k-download-link { grid-column: 1 / -1; width: fit-content; min-height: 42px; display: inline-flex; align-items: center; margin-top: 6px; color: var(--accent-deep); font-size: 14px; font-weight: 700; }
.aunt-kitchen .k-highlight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0 20px 20px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--line); }
.aunt-kitchen .k-highlight { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-content: start; column-gap: 8px; min-width: 0; padding: 15px; background: var(--surface-soft); }
.aunt-kitchen .k-highlight .ui-icon { width: 19px; height: 19px; color: var(--accent); }
.aunt-kitchen .k-highlight span { color: var(--muted); font-size: 12px; font-weight: 650; }
.aunt-kitchen .k-highlight strong { grid-column: 1 / -1; margin-top: 7px; color: var(--ink-strong); font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.aunt-kitchen .lunch-plates { padding: 0 20px 24px; }
.aunt-kitchen .lunch-plates__intro { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 2px 0 13px; }
.aunt-kitchen .lunch-plates__intro strong { font-size: 15px; color: var(--ink-strong); }
.aunt-kitchen .lunch-plates__intro span { color: var(--muted); font-size: 12px; }
.aunt-kitchen .lunch-plates__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.aunt-kitchen .lunch-plate { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-width: 0; min-height: 142px; padding: 18px; border: 1px solid transparent; border-radius: 18px; color: var(--ink-strong); background: #e9ecdf; text-align: left; }
.aunt-kitchen .lunch-plate--main { grid-column: 1 / -1; min-height: 190px; background: #e2e8d9; }
.aunt-kitchen .lunch-plate--egg { background: #f2ead6; }
.aunt-kitchen .lunch-plate--side { background: #e9eee2; }
.aunt-kitchen .lunch-plate--staple { background: #eee9dc; }
.aunt-kitchen .lunch-plate.is-selected { border-color: #5e785b; box-shadow: inset 0 0 0 1px #5e785b; }
.aunt-kitchen .lunch-plate:active { transform: scale(.99); }
.aunt-kitchen .lunch-plate__disc { position: absolute; z-index: -1; top: -34px; right: -32px; display: grid; place-items: center; width: 145px; height: 145px; border-radius: 50%; border: 13px solid #fdfcf7; color: #a2ae96; background: #f9f8f1; box-shadow: 0 8px 18px #2032211a, inset 0 1px 3px #bcc6b6; transform: rotate(-10deg); }
.aunt-kitchen .lunch-plate--main .lunch-plate__disc { width: 195px; height: 195px; top: -14px; right: -24px; border-width: 17px; }
.aunt-kitchen .lunch-plate--egg .lunch-plate__disc { color: #c39c4a; }
.aunt-kitchen .lunch-plate--side .lunch-plate__disc { color: #81a473; }
.aunt-kitchen .lunch-plate--staple .lunch-plate__disc { color: #ad936f; }
.aunt-kitchen .lunch-plate__disc .ui-icon { width: 54px; height: 54px; stroke-width: 1.1; }
.aunt-kitchen .lunch-plate--main .lunch-plate__disc .ui-icon { width: 76px; height: 76px; }
.aunt-kitchen .lunch-plate__copy { position: relative; z-index: 1; display: grid; align-content: end; min-width: 0; max-width: 86%; gap: 4px; }
.aunt-kitchen .lunch-plate__copy small { color: #577258; font-size: 11px; font-weight: 750; letter-spacing: .04em; }
.aunt-kitchen .lunch-plate--egg .lunch-plate__copy small { color: #927037; }
.aunt-kitchen .lunch-plate--staple .lunch-plate__copy small { color: #806c4f; }
.aunt-kitchen .lunch-plate__copy strong { font-size: 21px; line-height: 1.2; letter-spacing: -.035em; overflow-wrap: anywhere; }
.aunt-kitchen .lunch-plate--main .lunch-plate__copy strong { font-size: 27px; }
.aunt-kitchen .lunch-plate__facts { color: #60695f; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.aunt-kitchen .lunch-plate__arrow { position: absolute; right: 16px; bottom: 14px; color: #5d755b; font-size: 21px; }
.aunt-kitchen .lunch-plates__details { margin-top: 25px; }
.aunt-kitchen .lunch-plate-detail[hidden] { display: none; }
.aunt-kitchen .lunch-plate-detail { scroll-margin-top: 20px; }
.aunt-kitchen .lunch-plate-detail__head { display: flex; align-items: end; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #aaa99d; }
.aunt-kitchen .lunch-plate-detail__head small { color: #747a70; font-size: 11px; }
.aunt-kitchen .lunch-plate-detail__head h2 { margin: 3px 0 0; font-size: 25px; letter-spacing: -.04em; }
.aunt-kitchen .lunch-plate-detail__head > span { flex: 0 0 auto; color: #747a70; font-size: 11px; }
.aunt-kitchen .lunch-plate-detail__note { margin: 12px 0 0; padding: 9px 12px; border-radius: 9px; background: #f4f3ea; color: #65705f; font-size: 13px; }
.aunt-kitchen .lunch-ingredient-group { --group-accent: #687885; --group-wash: #eef1f2; margin-top: 10px; padding: 12px 14px; border-left: 4px solid var(--group-accent); border-radius: 0 12px 12px 0; background: var(--group-wash); }
.aunt-kitchen .lunch-ingredient-group--protein { --group-accent: #a65d49; --group-wash: #f7eee9; }
.aunt-kitchen .lunch-ingredient-group--vegetable { --group-accent: #5d8061; --group-wash: #eef3e9; }
.aunt-kitchen .lunch-ingredient-group--staple { --group-accent: #9a7950; --group-wash: #f4f0e7; }
.aunt-kitchen .lunch-ingredient-group--oil { --group-accent: #a48035; --group-wash: #f7f2e4; }
.aunt-kitchen .lunch-ingredient-group h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; color: var(--group-accent); font-size: 14px; }
.aunt-kitchen .lunch-ingredient-group h3 .ui-icon { width: 23px; height: 23px; }
.aunt-kitchen .lunch-ingredient-group .k-ing li { padding: 6px 0; border-color: #ffffffa8; font-size: 14px; }
.aunt-kitchen .lunch-ingredient-group .k-ing b { font-size: 15px; }
.aunt-kitchen .lunch-plate-method { margin-top: 22px; }
.aunt-kitchen .lunch-plate-method h3 { margin: 0; font-size: 14px; }
.aunt-kitchen .lunch-plate-method .k-steps { margin-top: 10px; }
.aunt-kitchen .k-step-group-title { margin: 18px 0 0; font-size: 14px; color: var(--accent-deep); }
.aunt-kitchen .k-step-group-title:first-child { margin-top: 0; }
.aunt-kitchen [data-meal-slot="partner_dinner"] .k-summary-card { border-color: #dec9b9; }
.aunt-kitchen [data-meal-slot="partner_dinner"] .k-chip { color: #9c513c; }
.aunt-kitchen .k-reminders { margin: 0 0 22px; padding: 16px 20px; border: 1px solid #e5cbb8; border-left: 5px solid #a45741; border-radius: 14px; background: #fff9f3; }
.aunt-kitchen .k-reminders h2 { margin: 0 0 5px; color: #87452f; font-size: 15px; }
.aunt-kitchen .k-reminders p { margin: 0; font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
.aunt-kitchen .k-reminders p + p { margin-top: 7px; }
.aunt-kitchen .k-stepper button { width: 44px; height: 44px; min-width: 44px; min-height: 44px; flex-basis: 44px; }
.aunt-kitchen .k-pager a { width: 44px; height: 44px; }
.aunt-kitchen .k-cycle-row { align-items: baseline; flex-wrap: wrap; gap: 3px 8px; margin-top: 11px; }
.aunt-kitchen .k-cycle-row > span { flex: 0 0 90px; color: var(--muted); font-size: 12px; }
.aunt-kitchen .k-cycle-row a, .aunt-kitchen .k-cycle-row b { flex: 1 1 130px; min-width: 0; font-weight: 650; overflow-wrap: anywhere; }
.aunt-kitchen .k-cycle-row small { margin-left: auto; color: var(--muted); white-space: nowrap; }
.aunt-kitchen .k-cycle-open { display: inline-flex; align-items: center; min-height: 44px; margin-top: 10px; font-size: 13px; font-weight: 700; text-decoration: none; }
.aunt-kitchen .k-library-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.aunt-kitchen .k-library-row .k-cycle-day { min-height: 80px; }
.aunt-kitchen .k-library-row .k-cycle-body small { display: block; margin-bottom: 5px; color: var(--muted); }
.aunt-kitchen .k-library-row .k-cycle-body b { display: block; overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .aunt-kitchen .k-library-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .aunt-kitchen .lunch-plates { padding-inline: 14px; }
  .aunt-kitchen .lunch-plates__intro { display: grid; gap: 1px; }
  .aunt-kitchen .lunch-plate { padding: 15px; min-height: 145px; }
  .aunt-kitchen .lunch-plate--main { min-height: 175px; }
  .aunt-kitchen .lunch-plate__disc { right: -55px; }
  .aunt-kitchen .lunch-plate__copy strong { font-size: 19px; }
  .aunt-kitchen .lunch-plate--main .lunch-plate__copy strong { font-size: 25px; }
  .aunt-kitchen .k-summary-layout { grid-template-columns: minmax(0, 42%) minmax(0, 58%); }
  .aunt-kitchen .k-summary-left, .aunt-kitchen .k-summary-empty { padding: 18px 14px; }
  .aunt-kitchen .k-summary-card .k-dish-name { font-size: 18px; }
  .aunt-kitchen .k-summary-right { padding: 15px 12px; }
  .aunt-kitchen .k-summary-right p { display: block; text-align: left; font-size: 13px; }
  .aunt-kitchen .k-summary-right p span { display: block; font-size: 11px; }
  .aunt-kitchen .k-highlight-grid { grid-template-columns: 1fr; margin-inline: 14px; }
  .aunt-kitchen .k-highlight { grid-template-columns: 20px 72px minmax(0, 1fr); align-items: center; padding: 10px 12px; }
  .aunt-kitchen .k-highlight strong { grid-column: 3; margin: 0; font-size: 14px; }
  .aunt-kitchen .k-cycle-row > span { flex-basis: 100%; }
}

/* Respect the iPhone status bar and landscape sensor area in a Home Screen app. */
@media (display-mode: standalone) {
  .app-body { padding-top: env(safe-area-inset-top); padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
  .login-screen { padding-top: max(24px, env(safe-area-inset-top)); padding-bottom: max(24px, env(safe-area-inset-bottom)); }
}

.k-cycle-advance{border-top:1px dashed #bdc9b4;margin-top:12px;padding-top:12px}.k-cycle-advance>strong{font-size:13px;color:#4f6b38}
