:root {
  color-scheme: light;
  --green: #137c48;
  --deep: #153a2c;
  --ink: #192520;
  --muted: #53625a;
  --paper: #fff;
  --surface: #fff;
  --sage: #eaf5ed;
  --line: #e2e9e4;
  --warm: #f5a64a;
  --shadow: 0 2px 8px rgba(20, 59, 39, .035);
  --radius: 16px;
  --ease: cubic-bezier(.22,.68,.26,1);
  font-family: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: #126940; text-decoration: none; }
a:hover { color: var(--deep); }
img { display: block; max-width: 100%; object-fit: cover; }
button, input, select, textarea { font: inherit; }
button, select, summary, label:has(input[type=checkbox], input[type=radio]) { cursor: pointer; }
input, select, textarea { min-width: 0; accent-color: var(--green); }
button[disabled], input[disabled] + span { cursor: default; opacity: .54; }
:focus-visible { outline: 2px solid #278955; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
p { line-height: 1.65; }
h1 { font-size: 36px; line-height: 1.22; font-weight: 820; }
h2 { font-size: 20px; line-height: 1.35; font-weight: 780; }
h3 { font-size: 17px; font-weight: 760; }
strong { font-weight: 760; }
small { font-size: 12px; font-weight: 550; }
.icon { display: inline-block; width: 21px; height: 21px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.muted, .hint { color: var(--muted); }
.hint { font-size: 13px; line-height: 1.65; }
.mono { font-family: "Cascadia Mono", Consolas, monospace; }
.skip-link { position: fixed; z-index: 20; inset: 12px auto auto 12px; padding: 12px; background: #fff; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

.button { display: inline-flex; gap: 8px; align-items: center; justify-content: center; min-height: 43px; padding: 9px 16px; font-weight: 750; line-height: 1.2; white-space: nowrap; border: 1px solid transparent; border-radius: 10px; transition: background .17s var(--ease), color .17s var(--ease), transform .17s var(--ease), box-shadow .17s var(--ease); }
@media (hover: hover) and (pointer: fine) { .button:hover { transform: translateY(-1px); } }
.button:active { transform: scale(.98); }
.button .icon { width: 17px; height: 17px; }
.button.primary { background: var(--green); color: white; box-shadow: 0 4px 10px #16834a22; }
.button.primary:hover { background: #126d3e; color: white; }
.button.quiet { border-color: #d7e5d9; background: #fff; color: var(--deep); }
.button.quiet:hover { background: var(--sage); }
.button.text-button { background: transparent; color: #166444; }
.button.text-button:hover { background: var(--sage); }
.button.danger { color: #a0292e; }
.button.danger:hover { background: #fff1ed; }
.button.small { min-height: 34px; padding: 6px 11px; font-size: 13px; }
.button.wide { width: 100%; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.panel.compact, .panel.form-card, .panel.ops-panel { padding: 24px; }
.panel > p + p { margin-top: 4px; }
.panel > h2 + p, .panel > h2 + form, .panel > h2 + .key-values { margin-top: 16px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 13px; min-width: 0; }
.section-head.wrap { flex-wrap: wrap; }
.section-head a { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; white-space: nowrap; font-weight: 720; }
.section-head a .icon, .hint .icon { width: 15px; height: 15px; }
.badge { display: inline-flex; align-items: center; min-height: 25px; padding: 4px 8px; border-radius: 7px; font-size: 12px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.badge.green { background: #e4f4e9; color: #12653a; }
.badge.neutral { background: #edf1ed; color: #45564b; }
.badge.amber { background: #fff0d8; color: #8a510e; }
.badge.red { background: #feecea; color: #9e292d; }
.badge.blue { background: #e7f2fc; color: #225983; }
.feature-icon, .avatar { display: grid; place-items: center; flex: none; width: 43px; height: 43px; border-radius: 12px; background: #e7f5eb; color: #167d49; }
.feature-icon.warm { background: #fff2dc; color: #9d580c; }
.feature-icon.blue { background: #e8f2fb; color: #256589; }
.feature-icon .icon { width: 22px; height: 22px; }
.empty { display: grid; justify-items: center; align-content: center; gap: 13px; min-height: 182px; padding: 24px; text-align: center; }
.empty > .icon { width: 29px; height: 29px; color: #337451; }
.back-link { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.back-link .icon { width: 17px; height: 17px; }
.reveal { animation: reveal .25s var(--ease) both; }
.reveal + .reveal { animation-delay: 24ms; }
@keyframes reveal { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.site-header { position: sticky; top: 0; z-index: 4; background: #fffffff2; backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.site-header-inner { width: min(1160px, calc(100% - 48px)); min-height: 70px; margin: auto; display: flex; align-items: center; gap: 17px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--deep); font-size: 21px; font-weight: 850; white-space: nowrap; }
.brand-icon { display: grid; place-items: center; flex: none; width: 39px; height: 39px; background: var(--deep); color: #fff; border-radius: 11px; }
.brand-icon .icon { width: 24px; height: 24px; }
.site-links { display: flex; align-items: center; gap: 10px; margin-inline: auto; }
.site-links a { padding: 10px 14px; border-radius: 9px; color: var(--muted); font-weight: 710; transition: background .17s, color .17s; }
.site-links a:hover, .site-links a[aria-current] { color: var(--deep); background: #e7f1e8; }
.header-action { margin-left: auto; }
.site-links + .header-action { margin-left: 0; }
.customer-content { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 35px 0 58px; }
.customer-content.narrow { max-width: 600px; }
.customer-content.plan-width { max-width: 800px; }
.customer-content > .panel, .customer-content > .balance-link { margin-bottom: 15px; }
.bottom-nav { display: none; }
.page-heading { margin-bottom: 23px; }
.page-heading p { color: var(--muted); margin-top: 7px; }
.page-heading .dateline { color: #28744a; font-size: 13px; font-weight: 750; margin: 0 0 7px; }
.heading-with-action { display: flex; align-items: center; gap: 15px; justify-content: space-between; }
.heading-with-action h1 { overflow-wrap: anywhere; }

.landing-content { padding-top: 24px; }
.landing-hero { display: grid; grid-template-columns: .92fr 1.08fr; min-height: 492px; border: 1px solid var(--line); border-radius: 26px; overflow: hidden; background: #fff; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 46px 38px 46px 52px; }
.location { color: #245b3e; font-size: 13px; font-weight: 730; display: flex; align-items: center; gap: 7px; }
.location .icon { width: 17px; height: 17px; }
.hero-copy h1 { font-size: 52px; line-height: 1.2; color: var(--deep); margin: 18px 0 15px; }
.hero-copy p { max-width: 315px; color: #3b5847; font-size: 16px; }
.hero-copy .button-row { margin-top: 26px; }
.hero-copy .button { min-height: 49px; }
.hero-visual { height: 100%; min-width: 0; position: relative; overflow: hidden; background: #edeee0; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; transition: transform .55s var(--ease); }
.hero-visual:hover img { transform: scale(1.025); }
.landing-benefits { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.landing-benefits > div { padding: 21px 22px 23px; display: grid; align-items: center; column-gap: 12px; row-gap: 4px; grid-template-columns: 43px 1fr; }
.landing-benefits > div + div { border-left: 1px solid var(--line); }
.landing-benefits .feature-icon { grid-row: span 2; }
.landing-benefits > div > span:last-child { grid-column: 2; color: var(--muted); font-size: 13px; }
.section-space { margin-top: 29px; }
.section-space > h2 { margin-bottom: 13px; }
.section-space > p { margin-top: 12px; }
.two-columns { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }

.home-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 18px; }
.nutrition-banner { min-width: 0; padding: 26px; border-radius: var(--radius); background: #123c2a; color: #f5fbf4; box-shadow: var(--shadow); }
.nutrition-banner .section-label { color: #ceead1; display: flex; align-items: center; gap: 7px; font-weight: 700; }
.nutrition-banner .section-label .icon { color: #ffbd68; }
.big-value { display: block; font-size: 44px; font-variant-numeric: tabular-nums; margin-top: 14px; }
.big-value small { color: #d2e8d3; font-size: 17px; }
.nutrition-macros { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 15px 0; }
.nutrition-macros > div { display: grid; grid-template-columns: auto 1fr; gap: 5px; align-items: center; padding: 11px 9px; border-radius: 9px; background: #f5f8f4; }
.nutrition-macros > div > span:last-child { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.nutrition-macros strong { font-size: 19px; font-variant-numeric: tabular-nums; }
.nutrition-macros small { font-size: 12px; color: var(--muted); }
.nutrition-banner .nutrition-macros > div { background: #204e38; }
.nutrition-banner .nutrition-macros span:last-child, .nutrition-banner .nutrition-macros small { color: #d2e8d3; }
.nutrition-banner > .button { margin-top: 7px; background: #eaf5ed; }
.macro-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.macro-dot.protein { background: #169256; }
.macro-dot.carbs { background: #ef9d3e; }
.macro-dot.fat { background: #397d9d; }
.today-meal, .onboarding { padding: 24px; }
.onboarding { display: grid; align-content: center; justify-items: start; gap: 15px; }
.mini-feature { display: grid; grid-template-columns: 110px 1fr; gap: 15px; align-items: center; }
.mini-feature img { width: 110px; height: 110px; border-radius: 13px; }
.mini-feature p { margin: 5px 0 8px; color: var(--muted); font-size: 14px; }
.quick-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; margin-top: 17px; }
.quick-links a { display: flex; align-items: center; gap: 10px; padding: 13px; color: var(--deep); font-weight: 730; transition: background .2s, transform .2s var(--ease); }
.quick-links a:hover { background: var(--sage); transform: translateY(-2px); }
.quick-links a > .icon { margin-left: auto; width: 17px; }
.meal-rows { display: grid; }
.meal-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; min-width: 0; color: var(--ink); transition: background .2s var(--ease); }
.meal-row + .meal-row { border-top: 1px solid var(--line); }
.meal-row:hover { background: #f6faf6; }
.meal-row img { width: 60px; height: 58px; border-radius: 9px; flex: none; }
.meal-row-content { flex: 1; min-width: 0; display: grid; gap: 3px; }
.meal-row-content > span { font-size: 13px; overflow-wrap: anywhere; color: var(--muted); }
.meal-row-content > small { color: #276f48; }
.meal-row > .icon { width: 16px; color: #426f57; }

.form-stack { display: grid; gap: 15px; }
.field { min-width: 0; display: grid; gap: 6px; align-content: start; }
.field label, form > label { color: #32483a; font-weight: 720; font-size: 14px; }
input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea { border: 1px solid #d1ddd3; border-radius: 9px; min-height: 43px; padding: 9px 12px; background: #fff; color: var(--ink); transition: border-color .17s, background .17s; }
.field input, .field select, .field textarea { width: 100%; }
textarea { resize: vertical; max-width: 100%; }
input::placeholder { color: #687a6e; opacity: 1; }
form > label { display: grid; gap: 6px; }
.field .hint ul { margin: 0; padding-left: 20px; }
.errorlist { margin: 0; padding-left: 18px; font-size: 14px; color: #9f262b; }
.inline-error { padding: 12px 15px; border-radius: 10px; margin-bottom: 13px; background: #ffefeb; color: #952326; }
.form-footer { margin-top: 15px; text-align: center; color: var(--muted); }
.form-footer a { font-weight: 730; }
.sample-login { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; padding-top: 15px; margin-top: 15px; border-top: 1px solid var(--line); }
.sample-login > span { color: var(--muted); font-size: 13px; margin-right: auto; }
.target-card { padding: 24px; }
.energy-ring { margin: 0 auto 20px; display: grid; place-items: center; width: min(232px,100%); aspect-ratio: 1; background: conic-gradient(from 190deg, #e6f2e8 0% 12%, #52b37b 12% 52%, #ecae5b 52% 78%, #eaf4eb 78%); border-radius: 50%; }
.energy-ring > div { border-radius: 50%; width: 90%; height: 90%; margin: auto; background: #fff; display: grid; place-content: center; justify-items: center; gap: 5px; }
.energy-ring strong { font-size: 38px; color: var(--deep); font-variant-numeric: tabular-nums; }
.energy-ring small { color: var(--muted); font-size: 14px; }
.energy-ring div > span:last-child { font-size: 13px; color: var(--muted); }
.ring-icon { display: grid; place-items: center; width: 36px; height: 36px; background: #fff1dc; color: #ad630b; border-radius: 50%; }
.key-values { margin: 0; }
.key-values > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.key-values > div:last-child { border-bottom: 0; }
.key-values dt { color: #3e5446; overflow-wrap: anywhere; }
.key-values dt small { display: block; color: var(--muted); }
.key-values dd { margin: 0; font-weight: 760; text-align: right; overflow-wrap: anywhere; }
.profile-card { display: flex; align-items: center; gap: 10px; padding: 15px; }
.profile-card > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.profile-card > div > span { color: var(--muted); font-size: 13px; }
.balance-link { border-radius: 12px; padding: 14px 16px; background: #e8f4e9; color: var(--deep); display: flex; gap: 11px; align-items: center; font-weight: 730; }
.balance-link > strong { margin-left: auto; white-space: nowrap; font-size: 26px; }
.balance-link small { font-size: 12px; color: #436551; }
.balance-link > div > small { display: block; }
.balance-link .feature-icon { background: #fff; }
.link-list { display: grid; }
.link-list > a { padding: 15px 17px; color: var(--deep); display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); transition: background .18s; }
.link-list > a:hover { background: #f5faf5; }
.link-list > a:last-child { border: 0; }
.link-list > a .icon:last-child { margin-left: auto; width: 16px; }
.tabs, .date-tabs { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; overflow-x: auto; scrollbar-width: thin; padding: 2px 0 4px; }
.tabs a { border-radius: 8px; color: #3f5648; white-space: nowrap; font-weight: 720; padding: 8px 13px; background: #eef3ee; transition: background .18s, color .18s; }
.tabs a[aria-current], .tabs a:hover { color: var(--deep); background: #d9edde; }
.date-tabs { gap: 6px; }
.date-tabs a { min-width: 46px; flex: 1; color: #54695a; display: grid; justify-items: center; row-gap: 4px; padding: 9px 5px 7px; background: #fff; border: 1px solid var(--line); border-radius: 10px; transition: background .18s, color .18s, transform .18s; }
.date-tabs a:hover { background: var(--sage); transform: translateY(-1px); }
.date-tabs a[aria-current] { background: var(--green); color: #fff; border-color: var(--green); }
.date-tabs a span { font-size: 12px; }
.date-tabs strong { font-size: 18px; }
.date-tabs i { width: 5px; height: 5px; border-radius: 50%; background: transparent; }
.date-tabs i.booked { background: #50a76b; }
.date-tabs a[aria-current] i.booked { background: #eee; }
.reserve-days { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 6px; margin-top: 13px; }
.date-choice, .food-choice { position: relative; min-width: 0; }
.date-choice input, .food-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.date-choice span { display: grid; gap: 3px; justify-items: center; padding: 9px 1px; border: 1px solid var(--line); border-radius: 9px; color: #345242; transition: border-color .18s, background .18s, transform .18s; }
.date-choice strong { font-size: 20px; }
.date-choice small { font-size: 11px; white-space: nowrap; }
.date-choice input:checked + span { color: var(--deep); background: var(--sage); border-color: var(--green); }
.date-choice input:disabled + span { background: #f0f3ee; color: #3d4e41; }
.date-choice input:focus-visible + span, .food-choice input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.sticky-action { position: sticky; bottom: 12px; z-index: 3; display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 11px; margin-top: 12px; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 5px 20px #123c2a1a; background: #fff; }
.sticky-action small { color: #435f4a; font-size: 13px; }
.order-meal-statuses { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-bottom: 13px; }
.order-meal-statuses > span { background: #f5f8f4; border-radius: 8px; padding: 9px; font-weight: 690; }
.order-meal-statuses small { display: block; margin-top: 3px; color: var(--muted); }
.meal-picker { display: grid; gap: 14px; }
.meal-picker section > .button-row { margin-top: 11px; }
.food-group { margin: 14px 0 0; padding: 9px 0 0; border: 0; min-width: 0; }
.food-group legend { font-size: 15px; font-weight: 760; color: var(--deep); padding: 0; }
.food-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(101px,1fr)); gap: 8px; }
.food-choice > span { display: grid; grid-template-rows: 83px auto; gap: 6px; align-content: start; height: 100%; position: relative; border: 1px solid var(--line); padding: 4px; color: var(--ink); border-radius: 10px; background: #fff; transition: background .18s, border-color .18s, transform .18s var(--ease); }
.food-choice img { border-radius: 7px; width: 100%; height: 100%; }
.food-choice strong { font-size: 13px; text-align: center; padding: 0 1px 4px; overflow-wrap: anywhere; }
.food-choice:hover > span { transform: translateY(-2px); }
.food-choice input:checked + span { border-color: var(--green); background: #eaf5ed; }
.food-choice input:checked + span::after { content: ""; position: absolute; top: 8px; right: 8px; width: 17px; height: 17px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-9' fill='none' stroke='white' stroke-width='2.5'/%3E%3C/svg%3E") center/13px no-repeat; }
.food-choice span.omit-food { background: #f3f6f1; }
.omit-food .icon { place-self: center; color: #5b6e61; }
.food-group-note { margin-left: 8px; font-weight: 650; color: var(--muted); white-space: nowrap; }
.meal-nutrition-note { padding-bottom: 8px; }
.meal-energy-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 92px), 1fr)); gap: 7px; margin: 12px 0 0; }
.meal-energy-summary > div { padding: 8px 9px; border-radius: 7px; background: #f4f7f5; }
.meal-energy-summary dt { color: var(--muted); font-size: 12px; }
.meal-energy-summary dd { margin: 4px 0 0; color: var(--deep); font-weight: 760; font-variant-numeric: tabular-nums; }
.meal-energy-summary dd small { color: var(--muted); font-size: 11px; }
.meal-energy-summary .meal-energy-macro { color: var(--muted); font-size: 12px; font-weight: 650; }
.meal-energy-note { margin-top: 7px; }
.meal-splits { margin-top: 0; }
.customer-row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 11px; }
.customer-row-actions a { white-space: nowrap; font-weight: 720; }
.live-nutrition > div { grid-template-columns: 1fr; }
.weight-chart { width: 100%; background: #f7faf6; border-radius: 10px; }
.weight-number { font-size: 31px; font-weight: 800; color: var(--deep); font-variant-numeric: tabular-nums; }
.weight-number small { color: var(--muted); font-size: 13px; font-weight: 690; }
.chart-dates { display: flex; justify-content: space-between; margin-top: 5px; font-size: 12px; color: var(--muted); }

.ops-shell { display: grid; grid-template-columns: 208px minmax(0, 1fr); min-height: 100vh; background: var(--paper); }
.ops-sidebar { position: sticky; top: 0; align-self: start; display: flex; flex-direction: column; height: 100vh; height: 100dvh; padding: 17px 12px; color: var(--ink); background: #fff; border-right: 1px solid var(--line); overflow-y: auto; }
.ops-brand { display: flex; align-items: center; gap: 10px; padding: 2px 7px 16px; color: var(--deep); }
.ops-brand .brand-icon { background: var(--sage); color: var(--deep); }
.ops-brand strong { display: block; font-size: 18px; white-space: nowrap; }
.ops-brand small { color: var(--muted); font-size: 11px; }
.ops-nav { margin-top: 9px; display: grid; gap: 4px; }
.ops-nav > a, .ops-signout .button { display: flex; align-items: center; gap: 9px; padding: 10px 9px; border-radius: 8px; min-height: 43px; color: var(--muted); font-weight: 680; white-space: nowrap; transition: background .18s var(--ease), color .18s, transform .14s var(--ease); }
.ops-nav .icon { width: 18px; height: 18px; }
.ops-nav > a:hover, .ops-signout .button:hover { background: #f3f7f4; color: var(--deep); }
.ops-nav > a:active { transform: scale(.98); }
.ops-nav > a[aria-current] { background: var(--sage); color: #105a36; font-weight: 760; }
.ops-signout { margin-top: auto; padding-top: 15px; }
.ops-signout .button { justify-content: flex-start; width: 100%; border: 0; }
.ops-body { min-width: 0; }
.ops-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 65px; padding: 10px 25px; background: #fff; border-bottom: 1px solid var(--line); }
.ops-top > strong { font-size: 15px; }
.ops-top > div { display: flex; align-items: center; gap: 12px; min-width: 0; }
.admin-chip { display: inline-flex; gap: 6px; align-items: center; color: #43584a; font-size: 13px; overflow-wrap: anywhere; }
.admin-chip .icon { width: 15px; height: 15px; }
.ops-content { margin: 0 auto; max-width: 1520px; padding: 32px 34px 52px; }
.ops-content h1 { font-size: 36px; }
.ops-content .panel, .ops-content .button { --radius: 10px; }
.ops-content > .panel, .ops-content > .ops-grid, .ops-content > .stats-grid { margin-bottom: 16px; }
.stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; }
.stat-card { display: flex; align-items: center; gap: 10px; padding: 15px; color: var(--ink); min-height: 91px; transition: transform .18s, box-shadow .18s; }
a.stat-card:hover { transform: translateY(-2px); box-shadow: 0 9px 26px #123c2a10; }
.stat-card strong { display: block; font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-card div > span { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.ops-grid { display: grid; grid-template-columns: minmax(0,1.38fr) minmax(0,1fr); gap: 14px; }
.ops-panel { margin: 0; }
.ops-panel > p { margin: 7px 0; }
.bar-chart { display: grid; grid-template-columns: repeat(7,1fr); gap: 10px; padding: 10px 0 4px; }
.bar-column { text-align: center; display: grid; gap: 6px; color: var(--muted); }
.bar-track { height: 138px; width: 100%; background: repeating-linear-gradient(to top, #eaf2ea 0 1px, transparent 1px 34px); display: flex; align-items: end; justify-content: center; }
.bar { position: relative; height: max(2px,var(--height)); max-width: 38px; width: 60%; border-radius: 5px 5px 0 0; background: #72b48a; }
.bar span { position: absolute; inset: -16px 0 auto; font-size: 11px; color: #2b603f; }
.slot-summary { display: grid; gap: 14px; padding-top: 9px; }
.slot-summary span { display: flex; justify-content: space-between; color: #394f42; margin-bottom: 4px; }
progress { width: 100%; height: 10px; accent-color: var(--green); }
.progress-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; padding-top: 2px; }
.progress-stats > div { display: grid; gap: 5px; padding: 11px; background: #f5f8f5; border-radius: 8px; color: var(--muted); font-size: 13px; }
.progress-stats strong { font-size: 22px; color: var(--deep); }
.filter { display: flex; align-items: center; gap: 9px; min-width: 0; }
.filter.wrap { flex-wrap: wrap; }
.filter label { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: #3c5645; }
.filter input[type=search] { max-width: 240px; }
.filter-panel { display: flex; flex-wrap: wrap; gap: 11px; align-items: center; }
.filter + .table-scroll, .filter + form { margin-top: 13px; }
.table-scroll { overflow-x: auto; border: 1px solid #e4ebe3; border-radius: 8px; margin-top: 8px; }
table { width: 100%; min-width: 520px; border-collapse: collapse; text-align: left; font-size: 13px; }
thead { background: #f3f7f3; }
td, th { padding: 11px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid #e6ede5; overflow-wrap: anywhere; }
th { white-space: nowrap; color: #385044; font-weight: 770; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #f9fbf8; }
td .icon { width: 15px; height: 15px; }
td a { font-weight: 700; }
td .subline { display: block; color: #5a6c60; margin-top: 3px; }
td .badge { margin-top: 2px; max-width: 190px; white-space: normal; }
td .table-input { width: 100%; max-width: 125px; min-height: 32px !important; margin-bottom: 3px; }
.table-empty { text-align: center; padding: 25px; color: var(--muted); }
.table-actions { margin-top: 13px; }
.table-actions input { max-width: 240px; }
.recipe-line { margin-top: 8px; font-size: 12px; min-width: 130px; }
.recipe-line span { display: block; color: #506657; }

.production-filters { padding: 0 0 17px; margin-bottom: 17px; border-bottom: 1px solid var(--line); }
.production-stats .stat-card { min-height: 80px; }
.production-estimate { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.production-sheet { margin: 24px 0; }
.production-sheet table { min-width: 0; }
.production-tabs { border-bottom: 1px solid var(--line); gap: 18px; padding: 0 2px; margin-bottom: 15px; }
.production-tabs a { position: relative; padding: 10px 5px 12px; border-radius: 0; background: transparent; }
.production-tabs a:hover, .production-tabs a[aria-current] { color: #105a36; background: transparent; }
.production-tabs a::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: var(--green); border-radius: 2px; transform: scaleX(.35); opacity: 0; transition: transform .19s var(--ease), opacity .19s; }
.production-tabs a[aria-current]::after, .production-tabs a:hover::after { transform: scaleX(1); opacity: 1; }
.production-tabs a:focus-visible { outline-offset: -2px; }
.production-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 248px), 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.production-card { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; transition: border-color .18s, box-shadow .18s; }
.production-card img { width: 56px; height: 56px; border-radius: 7px; background: #f2f5f2; }
.production-card h2 { font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.production-card p, .production-card dt { color: var(--muted); font-size: 12px; }
.production-card p { margin-top: 5px; line-height: 1.45; }
.production-card dl, .production-card dd { margin: 0; }
.production-weight { display: grid; gap: 3px; text-align: right; }
.production-weight dd { color: var(--deep); font-size: 17px; font-weight: 780; font-variant-numeric: tabular-nums; white-space: nowrap; }
.production-weight small { font-size: 11px; color: var(--muted); }
.production-breakdown { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 7px 12px; padding-top: 9px; border-top: 1px solid var(--line); }
.production-breakdown > div { display: flex; align-items: baseline; gap: 6px; }
.production-breakdown dd { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.production-empty { border: 1px dashed #cfddd3; border-radius: 10px; min-height: 150px; color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .production-card:hover { border-color: #bdcebf; box-shadow: var(--shadow); }
}

.portion-filter { padding: 0 0 20px; }
.portion-form { border-block-start: 1px solid var(--line); }
.portion-toolbar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 9px 14px; flex-wrap: wrap; padding: 11px 0; background: #fff; }
.portion-toolbar-count { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.portion-toolbar .button-row { gap: 7px; }
.portion-toolbar input[name=note] { width: 142px; min-height: 34px; padding: 6px 9px; font-size: 13px; }
.portion-selection { margin-left: 8px; font-size: 12px; color: #105a36; font-weight: 720; }
.portion-check { width: 36px; height: 42px; display: grid; place-items: center; }
.portion-check input { width: 16px; height: 16px; margin: 0; }
.portion-groups { display: grid; gap: 8px; }
.portion-group { display: grid; grid-template-columns: 36px minmax(0, 1fr); min-width: 0; border: 1px solid var(--line); border-radius: 10px; transition: border-color .18s, background .18s; }
.portion-group:has(.portion-details[open]) { border-color: #bdcebf; }
.portion-group:has(> .portion-check > input:checked) { background: #f5faf6; }
.portion-group > .portion-check { height: 63px; }
.portion-details, .portion-recipe { min-width: 0; }
.portion-details > summary, .portion-recipe > summary { display: grid; list-style: none; }
.portion-details > summary::-webkit-details-marker, .portion-recipe > summary::-webkit-details-marker { display: none; }
.portion-details > summary { grid-template-columns: minmax(0, 1fr) minmax(0, .75fr) auto; align-items: center; gap: 7px 14px; min-height: 63px; padding: 10px 14px 10px 4px; border-radius: 6px 9px 9px 6px; transition: background .16s; }
.portion-details > summary:hover { background: #f4f8f5; }
.portion-details > summary:active .portion-toggle { transform: scale(.97); }
.portion-details > summary:focus-visible { outline-offset: -3px; }
.portion-person { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; min-width: 0; overflow-wrap: anywhere; }
.portion-person .badge { white-space: normal; }
.portion-person strong { font-size: 16px; }
.portion-states { display: flex; flex-wrap: wrap; gap: 5px 9px; }
.portion-state { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.portion-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #84988b; }
.portion-state.state-cooking::before { background: #a7671b; }
.portion-state.state-packed::before, .portion-state.state-delivered::before { background: #22814d; }
.portion-state.state-out::before { background: #3679a6; }
.portion-state.state-issue { color: #9e292d; }
.portion-state.state-issue::before { background: #a02f32; }
.portion-toggle { display: flex; align-items: center; gap: 6px; color: var(--deep); white-space: nowrap; font-size: 13px; font-weight: 720; transition: transform .16s var(--ease); }
.portion-toggle .icon, .portion-recipe > summary .icon { width: 15px; height: 15px; transition: transform .18s var(--ease); }
.portion-details[open] > summary .portion-toggle .icon, .portion-recipe[open] > summary .icon { transform: rotate(90deg); }
.portion-when-open, .portion-details[open] > summary .portion-when-closed { display: none; }
.portion-details[open] > summary .portion-when-open { display: inline; }
.portion-meals { display: grid; align-items: start; grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr)); gap: 14px; padding: 0 14px 14px 4px; }
.portion-meal { min-width: 0; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.portion-meal-title, .portion-meal-foot { display: flex; align-items: center; gap: 6px; }
.portion-meal-title .portion-check { width: 26px; height: 30px; margin-left: -5px; }
.portion-meal-title h2 { margin-right: auto; font-size: 15px; }
.portion-meal-title .badge { min-height: 22px; }
.portion-dishes { display: grid; gap: 5px; list-style: none; padding: 8px 0; margin: 0; font-size: 13px; }
.portion-dishes li { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; overflow-wrap: anywhere; }
.portion-dishes strong { flex: none; font-variant-numeric: tabular-nums; }
.portion-meal-foot { justify-content: space-between; padding-bottom: 8px; }
.portion-note { color: #9e292d; font-size: 12px; margin-bottom: 7px; overflow-wrap: anywhere; }
.portion-recipe { border-top: 1px solid var(--line); }
.portion-recipe > summary { grid-template-columns: 1fr auto; align-items: center; padding: 8px 0 2px; font-size: 13px; color: var(--deep); font-weight: 680; }
@supports (interpolate-size: allow-keywords) and selector(details::details-content) {
  .portion-details::details-content, .portion-recipe::details-content { interpolate-size: allow-keywords; block-size: 0; opacity: 0; overflow: clip; transition: block-size .21s var(--ease), opacity .17s, content-visibility .21s allow-discrete; }
  .portion-details[open]::details-content, .portion-recipe[open]::details-content { block-size: auto; opacity: 1; }
}
.trip-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin: 13px 0; }
.issued-code input { width: 100%; margin: 10px 0; font-family: "Cascadia Mono", Consolas, monospace; color: var(--deep); font-weight: 750; }
.issued-code h2 { margin-top: 10px; }
.issued-code .hint { margin: 5px 0; }
.issued-code, #recharge-records { scroll-margin-top: 80px; }
.recharge-row-actions { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.label-wrap { display: grid; gap: 13px; max-width: 430px; margin: 18px auto; padding: 0 12px; }
.meal-label { border: 1px solid #18231d; background: #fff; color: #111; padding: 12px; }
.meal-label h1 { font-size: 22px; }
.meal-label p { margin: 5px 0; font-size: 13px; line-height: 1.35; }
.meal-label .key-values > div { padding: 3px 0; font-size: 12px; }
.allergy-label { background: #fff0ea; color: #8c251f; padding: 5px; border-radius: 5px; }

.toasts { position: fixed; right: 16px; bottom: 17px; z-index: 6; display: grid; gap: 7px; max-width: min(410px,calc(100vw - 32px)); }
.toast { display: flex; gap: 12px; align-items: center; justify-content: space-between; background: #133e2c; color: #fff; padding: 11px 13px; border-radius: 9px; box-shadow: 0 5px 17px #123c2a33; animation: reveal .23s var(--ease) both; }
.toast.error { background: #862b2b; }
.toast.warning { background: #68470f; }
.toast button { padding: 3px; background: none; color: #fff; border: 0; border-radius: 5px; }
.toast button:hover { background: #ffffff28; }
.toast .icon { width: 17px; height: 17px; }
.toast[data-closing] { animation: toast-out .17s var(--ease) both; }
@keyframes toast-out { to { opacity: 0; transform: translateY(5px); } }
.confirm-dialog { width: min(376px,calc(100vw - 32px)); border: 1px solid #cadbce; border-radius: 16px; padding: 22px; color: var(--ink); background: #fff; box-shadow: 0 14px 44px #08291755; opacity: 0; transform: translateY(6px); transition: opacity .18s var(--ease), transform .18s var(--ease), display .18s allow-discrete, overlay .18s allow-discrete; }
.confirm-dialog[open] { opacity: 1; transform: none; }
@starting-style { .confirm-dialog[open] { opacity: 0; transform: translateY(6px); } }
.confirm-dialog::backdrop { background: #122c2366; backdrop-filter: blur(2px); }
.confirm-dialog .button-row { justify-content: flex-end; margin-top: 17px; }

@media (max-width: 1000px) {
  .ops-shell { grid-template-columns: 178px minmax(0,1fr); }
  .ops-content { padding-inline: 16px; }
  .stat-card { gap: 7px; padding: 11px; }
  .stat-card .feature-icon { width: 34px; height: 34px; }
  .stat-card .feature-icon .icon { width: 18px; }
  .hero-copy { padding-inline: 32px 20px; }
  .hero-copy h1 { font-size: 42px; }
  .landing-hero { min-height: 394px; }
}
@media (max-width: 720px) {
  .site-header-inner { min-height: 58px; width: calc(100% - 28px); gap: 8px; }
  .brand { font-size: 19px; gap: 7px; }
  .brand-icon { width: 34px; height: 34px; }
  .site-links { display: none; }
  .site-links + .header-action { margin-left: auto; }
  .header-action { min-height: 35px; padding: 5px 9px; }
  .customer-content { width: calc(100% - 28px); padding: 20px 0 88px; }
  .bottom-nav { min-height: 59px; position: fixed; bottom: 0; inset-inline: 0; display: grid; grid-template-columns: repeat(5,1fr); z-index: 4; padding: 5px max(8px, env(safe-area-inset-right)) max(5px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); background: #fefefefa; backdrop-filter: blur(15px); border-top: 1px solid var(--line); }
  .bottom-nav.guest-nav { grid-template-columns: repeat(4,1fr); }
  .bottom-nav a { color: #55665b; display: grid; place-content: center; justify-items: center; gap: 3px; font-size: 11px; font-weight: 700; border-radius: 8px; min-height: 44px; transition: color .18s, background .18s; }
  .bottom-nav a[aria-current] { color: #116b3c; background: #e9f4e9; }
  .bottom-nav a:active { background: var(--sage); }
  .page-heading { margin-bottom: 14px; }
  h1, .ops-content h1 { font-size: 27px; }
  h2 { font-size: 17px; }
  .heading-with-action { gap: 7px; }
  .heading-with-action .button { font-size: 13px; padding-inline: 9px; }
  .panel.compact, .panel.form-card, .panel.ops-panel { padding: 15px; }
  .landing-content { padding-top: 11px; padding-bottom: 22px; }
  .landing-hero { grid-template-columns: 1fr; border-radius: 17px; }
  .hero-copy { padding: 22px 18px 19px; }
  .hero-copy h1 { margin: 11px 0 9px; font-size: 35px; }
  .hero-copy p { font-size: 14px; }
  .hero-copy .button-row { margin-top: 14px; }
  .hero-copy .button { min-height: 42px; }
  .hero-visual { height: 210px; }
  .landing-benefits { grid-template-columns: 1fr; }
  .landing-benefits > div { padding: 10px 3px; }
  .landing-benefits > div + div { border-left: none; border-top: 1px solid var(--line); }
  .landing-benefits .feature-icon { width: 35px; height: 35px; }
  .two-columns { gap: 7px; }
  .home-grid { grid-template-columns: 1fr; gap: 11px; }
  .nutrition-banner, .today-meal, .onboarding { padding: 15px; }
  .big-value { font-size: 37px; }
  .nutrition-macros { gap: 5px; margin: 10px 0; }
  .nutrition-macros strong { font-size: 17px; }
  .mini-feature { grid-template-columns: 83px 1fr; gap: 10px; }
  .mini-feature img { width: 83px; height: 88px; }
  .quick-links { gap: 6px; margin-top: 11px; }
  .quick-links a { min-height: 58px; padding: 7px; gap: 4px; font-size: 12px; flex-wrap: wrap; justify-content: center; }
  .quick-links a .feature-icon { width: 27px; height: 27px; border-radius: 7px; }
  .quick-links a .feature-icon .icon { width: 16px; height: 16px; }
  .quick-links a > .icon { display: none; }
  .date-tabs { gap: 4px; }
  .date-tabs a { min-width: 35px; padding-inline: 3px; }
  .date-tabs a span { font-size: 11px; }
  .date-tabs strong { font-size: 15px; }
  .reserve-days { gap: 3px; }
  .date-choice small { font-size: 10px; }
  .date-choice strong { font-size: 17px; }
  .sticky-action { bottom: calc(67px + env(safe-area-inset-bottom)); }
  .food-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; }
  .food-choice > span { grid-template-rows: 66px auto; }
  .food-choice strong { font-size: 11px; }
  .toasts { bottom: calc(69px + env(safe-area-inset-bottom)); }
  .ops-shell { grid-template-columns: 53px minmax(0,1fr); }
  .ops-sidebar { padding: 9px 5px; }
  .ops-brand { justify-content: center; gap: 0; padding: 0 0 7px; }
  .ops-brand > span:last-child, .ops-nav a > span, .ops-signout .button > span { position: absolute; clip-path: inset(50%); }
  .ops-nav a, .ops-signout .button { justify-content: center; min-height: 41px; padding: 5px; }
  .ops-top { min-height: 53px; padding: 6px 11px; }
  .ops-top > div { gap: 4px; }
  .admin-chip { font-size: 11px; }
  .ops-content { padding: 15px 9px; }
  .ops-grid { grid-template-columns: 1fr; gap: 9px; }
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; }
  .stat-card { padding: 7px; gap: 5px; min-height: 65px; }
  .stat-card strong { font-size: 20px; }
  .stat-card .feature-icon { width: 28px; height: 28px; }
  .stat-card div > span { font-size: 11px; }
  .ops-content .heading-with-action { align-items: flex-start; flex-wrap: wrap; }
  .production-sheet { margin-top: 18px; }
  .production-filters { padding-bottom: 12px; margin-bottom: 11px; }
  .production-stats .stat-card { min-height: 65px; }
  .production-tabs { gap: 10px; }
  .production-tabs a { padding-inline: 4px; font-size: 14px; }
  .production-card { gap: 8px; padding: 10px; }
  .portion-toolbar { position: static; }
  .portion-toolbar input[name=note] { width: 114px; }
  .portion-details > summary { grid-template-columns: minmax(0, 1fr) auto; padding-right: 8px; gap: 4px 6px; }
  .portion-states { grid-row: 2; grid-column: 1 / -1; }
  .portion-toggle { grid-column: 2; grid-row: 1; font-size: 12px; }
  .portion-meals { padding-right: 8px; gap: 7px; }
  .filter input[type=search] { width: min(174px,100%); }
  .filter .button { padding-inline: 8px; }
  .trip-fields { grid-template-columns: 1fr; }
}
@media print {
  .label-page { min-height: 0; background: white; }
  .label-wrap { max-width: none; margin: 0; padding: 0; }
  .no-print, .skip-link, .toasts { display: none !important; }
  .meal-label { break-inside: avoid; width: var(--label-width, 78mm); max-width: 100%; }
}
.wallet-hero { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 14px; padding: clamp(18px, 5vw, 30px); border: 1px solid #cbe0d1; border-radius: 16px; background: #edf5ef; color: var(--deep); }
.wallet-hero h2 { margin: 0 0 8px; font-size: 15px; }
.wallet-amount { display: flex; align-items: baseline; gap: 4px; line-height: 1; font-size: clamp(35px, 9vw, 50px); font-variant-numeric: tabular-nums; letter-spacing: -.035em; }
.wallet-amount small { font-size: .52em; font-weight: 650; }
.wallet-hold { display: grid; gap: 2px; color: var(--muted); font-size: 13px; }
.wallet-hold strong { color: var(--deep); }
.wallet-refund summary { display: flex; align-items: center; justify-content: space-between; list-style: none; min-height: 40px; }
.wallet-refund summary::-webkit-details-marker { display: none; }
.wallet-refund summary h2 { margin: 0; }
.wallet-refund summary .icon { transition: rotate .18s var(--ease); }
.wallet-refund[open] summary .icon { rotate: 90deg; }
.wallet-refund[open] .form-stack { animation: reveal .2s var(--ease) both; }
.checkout-meal { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.checkout-day > .checkout-meal:first-child { border-top: 0; padding-top: 0; }
.checkout-meal:last-child { padding-bottom: 0; }
.checkout-delivery { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 10px; color: var(--deep); font-size: 13px; }
.checkout-meal img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.checkout-meal h3 { font-size: 14px; margin: 0 0 4px; }
.checkout-meal p { font-size: 12px; line-height: 1.45; margin: 0; color: var(--muted); }
.checkout-totals dd, .checkout-meal > strong, .meal-payment strong { color: var(--deep); font-variant-numeric: tabular-nums; }
.meal-payment { display: grid; gap: 1px; }
.meal-payment strong { font-size: 18px; }
