:root {
  --fresh: #86bc25;
  --fresh-dark: #477b18;
  --fresh-pale: #edf6df;
  --forest: #174b32;
  --ink: #202b24;
  --muted: #68736b;
  --line: #e2e8df;
  --canvas: #f5f8f3;
  --paper: #fff;
  --rose: #a44842;
  --shadow: 0 8px 28px rgba(28, 65, 42, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
.topbar { height: 68px; background: var(--paper); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 max(26px, calc((100% - 1160px)/2)); }
.brand { color: var(--forest); text-decoration: none; display: flex; align-items: center; gap: 9px; }
.brand-mark { color: var(--fresh-dark); font-size: 24px; font-weight: 800; letter-spacing: -2px; }
.brand-mark span { color: var(--fresh); }
.brand-name { font-size: 13px; font-weight: 750; letter-spacing: -.02em; }
.prototype-badge { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.prototype-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--fresh); box-shadow: 0 0 0 3px var(--fresh-pale); }
.shell { max-width: 1160px; margin: auto; padding: 38px 28px 58px; }
.hero { min-height: 270px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 34px; align-items: center; margin-bottom: 30px; }
.hero-copy { padding: 10px 0; }
.eyebrow { font-size: 10px; font-weight: 800; letter-spacing: .15em; color: var(--fresh-dark); margin: 0 0 12px; }
.hero h1 { font-size: clamp(40px, 5vw, 60px); line-height: 1.02; letter-spacing: -.055em; font-weight: 800; color: var(--forest); margin: 0 0 15px; }
.hero h1 em { color: var(--fresh-dark); font-style: normal; }
.intro { font-size: 15px; color: var(--muted); margin: 0 0 22px; }
.week-selector { display: inline-flex; align-items: center; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 10px 13px; box-shadow: 0 3px 10px rgba(28,65,42,.04); }
.week-icon { font-size: 21px; color: var(--fresh-dark); }
.week-selector strong, .week-selector small { display: block; }
.week-selector strong { font-size: 12px; color: var(--forest); }
.week-selector small { font-size: 11px; color: var(--muted); margin-top: 3px; }
.current-week { margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--line); font-size: 9px; font-weight: 800; letter-spacing: .1em; color: var(--fresh-dark); }
.hero-art { height: 260px; position: relative; border-radius: 12px; overflow: hidden; background: #dce9d7; }
.hero-art > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art-circle { display: none; }
.hero-caption { position: absolute; bottom: 13px; right: 13px; background: rgba(255,255,255,.96); border-radius: 6px; padding: 9px 12px; font-size: 10px; font-weight: 700; color: var(--forest); box-shadow: var(--shadow); }
.hero-caption span { color: var(--fresh-dark); margin-right: 5px; }
.progress-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 17px 21px 14px; color: var(--ink); display: grid; grid-template-columns: 1fr auto; gap: 11px 24px; align-items: center; box-shadow: 0 4px 15px rgba(28,65,42,.035); }
.progress-title { display: flex; align-items: center; gap: 11px; }
.sparkle { width: 32px; height: 32px; border-radius: 50%; background: var(--fresh-pale); display: grid; place-items: center; color: var(--fresh-dark); font-size: 17px; }
.progress-title strong, .progress-title small { display: block; }
.progress-title strong { font-size: 13px; color: var(--forest); }
.progress-title small { font-size: 10px; color: var(--muted); margin-top: 4px; }
.stats { display: flex; gap: 23px; }
.stats > div { text-align: center; min-width: 48px; }
.stat-number { color: var(--forest); font-size: 22px; line-height: 1; font-weight: 750; }
.stat-label { display: block; font-size: 9px; color: var(--muted); margin-top: 5px; }
.stat-total { font: 500 12px Arial, sans-serif; color: var(--muted); }
.progress-track { height: 4px; background: #edf0eb; border-radius: 6px; grid-column: 1/-1; overflow: hidden; }
.progress-track span { display: block; width: 0; height: 100%; background: var(--fresh); border-radius: 6px; transition: width .35s ease; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin: 39px 0 16px; }
.section-heading .eyebrow { margin-bottom: 6px; }
.section-heading h2 { font-size: 27px; letter-spacing: -.035em; font-weight: 800; color: var(--forest); margin: 0; }
.section-note { font-size: 11px; color: var(--muted); margin: 0 1px 4px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--fresh); margin: 0 7px 1px 0; }
.menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; }
.day-card { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: 0 3px 12px rgba(28,65,42,.035); }
.day-card.cheat { background: #fffefb; border-style: dashed; }
.day-header { padding: 12px 16px; background: var(--fresh-pale); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e1ebd5; }
.day-name { font-size: 15px; font-weight: 800; color: var(--forest); }
.day-date { font-size: 10px; color: var(--muted); margin-left: 8px; }
.day-tag { font-size: 8px; letter-spacing: .11em; font-weight: 800; color: var(--fresh-dark); }
.day-card.cheat .day-header { background: #f1f3ed; }
.cheat-body { padding: 23px 18px; text-align: center; }
.cheat-body strong { display: block; font-size: 18px; color: var(--forest); margin-bottom: 5px; }
.cheat-body span { font-size: 11px; color: var(--muted); }
.meal { padding: 14px 16px 15px; }
.meal + .meal { border-top: 1px solid var(--line); }
.meal-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; }
.meal-type { font-size: 9px; font-weight: 800; letter-spacing: .13em; color: var(--fresh-dark); }
.meal-time { font-size: 10px; color: var(--muted); }
.meal-content { display: grid; grid-template-columns: 116px minmax(0,1fr); gap: 13px; align-items: center; }
.meal-image { width: 116px; height: 92px; border-radius: 7px; object-fit: cover; background: var(--fresh-pale); }
.meal-info { min-width: 0; }
.meal-title { font-size: 15px; line-height: 1.22; font-weight: 750; letter-spacing: -.02em; color: var(--forest); margin: 0 0 5px; }
.meal-subtitle { font-size: 10px; line-height: 1.4; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meal-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 9px; color: var(--muted); margin-top: 7px; }
.dish-cost { color: var(--fresh-dark); font-weight: 700; }
.meal-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 11px; }
.rate-button, .swap-button, .detail-button { border: 1px solid #d8dfd7; border-radius: 5px; background: var(--paper); font: 700 10px Arial, sans-serif; color: #526157; padding: 7px 9px; cursor: pointer; transition: all .16s ease; }
.rate-button:hover, .detail-button:hover { border-color: var(--fresh); color: var(--forest); }
.rate-button.like.active { background: var(--fresh-pale); border-color: var(--fresh); color: var(--fresh-dark); }
.rate-button.dislike.active { background: #f9eae8; border-color: #debab5; color: var(--rose); }
.swap-button { margin-left: auto; color: var(--forest); border-color: #c9dbb3; background: #f7faF1; }
.swap-button:hover { background: var(--fresh-pale); }
.rating-hint { font-size: 9px; color: var(--rose); display: inline-block; margin-top: 8px; }
.swap-panel { margin-top: 11px; padding: 11px; background: #f6f9f2; border: 1px solid #dfe9d5; border-radius: 7px; }
.swap-panel strong { display: block; font-size: 10px; line-height: 1.4; color: var(--forest); margin-bottom: 8px; }
.swap-options { display: flex; flex-wrap: wrap; gap: 6px; }
.swap-option { max-width: 100%; border: 1px solid #d5e0ce; background: #fff; border-radius: 5px; padding: 7px 9px; text-align: left; color: var(--forest); font: 700 10px Arial, sans-serif; cursor: pointer; }
.swap-option:hover { border-color: var(--fresh); background: var(--fresh-pale); }
.swap-option small { display: block; color: var(--muted); font-size: 9px; font-weight: 400; margin-top: 3px; }
.empty-alternatives { font-size: 10px; line-height: 1.4; color: var(--muted); }
.feedback-tip { display: flex; align-items: center; gap: 12px; background: var(--fresh-pale); border-radius: 8px; padding: 13px 16px; margin-top: 20px; }
.shopping-section { margin-top: 39px; padding: 24px; background: #f7f9f4; border: 1px solid #e2e9db; border-radius: 12px; }
.shopping-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 16px; }
.shopping-heading .eyebrow { margin-bottom: 6px; }
.shopping-heading h2 { margin: 0; color: var(--forest); font-size: 27px; letter-spacing: -.035em; font-weight: 800; }
.print-button { border: 1px solid #bbd19e; border-radius: 5px; background: #fff; padding: 10px 13px; color: var(--forest); font: 700 11px Arial,sans-serif; cursor: pointer; }
.print-button:hover { background: var(--fresh-pale); }
.shopping-summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 17px 20px; margin-bottom: 15px; border-radius: 8px; background: var(--forest); color: #fff; }
.shopping-summary > div { display: grid; gap: 3px; flex: 0 0 220px; }
.summary-label { font-size: 10px; color: #d7e8cc; }
.shopping-summary strong { font-size: 31px; line-height: 1.1; letter-spacing: -.04em; }
.shopping-summary small { font-size: 9px; color: #d7e8cc; }
.shopping-summary p { max-width: 510px; margin: 0; color: #e1ebd9; font-size: 10px; line-height: 1.55; }
.shopping-columns { display: grid; grid-template-columns: 1.25fr .75fr; gap: 15px; align-items: start; }
.shopping-card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.shopping-card h3 { margin: 0; color: var(--forest); font-size: 15px; font-weight: 800; }
.shopping-card h3 span { color: var(--muted); font-size: 10px; font-weight: 400; }
.shopping-hint { margin: 5px 0 12px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.shopping-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 16px; }
.shopping-line { display: flex; align-items: flex-start; gap: 8px; min-width: 0; padding: 8px 2px; border-bottom: 1px solid #edf0ea; cursor: pointer; }
.shopping-line input { accent-color: var(--fresh-dark); margin: 2px 0 0; }
.shopping-line span { color: var(--ink); font-size: 11px; line-height: 1.35; }
.shopping-line small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.shopping-line.checked span { text-decoration: line-through; color: #929c91; }
.cost-list { list-style: none; padding: 0; margin: 0; }
.cost-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #edf0ea; }
.cost-list li span { color: #4c5d50; font-size: 10px; line-height: 1.35; }
.cost-list li strong { flex: 0 0 auto; color: var(--forest); font-size: 10px; }
.empty-list { font-size: 11px; color: var(--muted); }
.tip-icon { font-size: 18px; color: var(--fresh-dark); }
.feedback-tip p { font-size: 10px; line-height: 1.5; color: #50634c; margin: 0; }
.feedback-tip strong { color: var(--forest); }
.privacy-note { text-align: center; font-size: 10px; color: #89928b; margin: 14px 0 0; }
.recipe-dialog { max-width: 610px; width: calc(100% - 30px); border: 0; border-radius: 11px; padding: 0; background: var(--paper); color: var(--ink); box-shadow: 0 28px 90px rgba(20,40,33,.3); max-height: 90vh; overflow: auto; }
.recipe-dialog::backdrop { background: rgba(18,37,31,.56); backdrop-filter: blur(3px); }
.dialog-close { position: sticky; top: 10px; float: right; z-index: 3; margin: 10px 10px -45px 0; border: 0; background: rgba(255,255,255,.95); width: 32px; height: 32px; border-radius: 50%; font-size: 23px; color: var(--forest); cursor: pointer; }
.dialog-photo { width: 100%; height: 245px; object-fit: cover; display: block; }
.dialog-body { padding: 22px 27px 27px; }
.dialog-label { font-size: 9px; text-transform: uppercase; letter-spacing: .13em; font-weight: 800; color: var(--fresh-dark); }
.dialog-body h2 { font-size: 24px; line-height: 1.18; font-weight: 800; letter-spacing: -.03em; color: var(--forest); margin: 8px 0; }
.dialog-body p { font-size: 12px; color: var(--muted); line-height: 1.6; }
.dialog-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 18px; }
.dialog-columns h3 { font-size: 13px; font-weight: 800; color: var(--forest); margin: 0 0 8px; }
.dialog-columns ul, .dialog-columns ol { padding-left: 17px; margin: 0; }
.dialog-columns li { font-size: 11px; line-height: 1.5; margin-bottom: 5px; }
.dialog-note { background: var(--fresh-pale); padding: 11px 13px; border-radius: 7px; font-size: 10px !important; margin-top: 18px; }
.toast { position: fixed; left: 50%; bottom: 25px; transform: translate(-50%,20px); opacity: 0; pointer-events: none; background: var(--forest); color: #fff; padding: 11px 16px; border-radius: 7px; font-size: 11px; box-shadow: var(--shadow); transition: all .2s; z-index: 5; }
.toast.show { opacity: 1; transform: translate(-50%,0); }
@media (max-width:760px) {
  .topbar { height: 62px; padding: 0 18px; }
  .shell { padding: 27px 16px 40px; }
  .hero { grid-template-columns: 1fr; gap: 17px; margin-bottom: 24px; }
  .hero h1 { font-size: 46px; }
  .hero-art { height: 220px; }
  .progress-panel { grid-template-columns: 1fr; padding: 16px; }
  .stats { justify-content: space-around; }
  .progress-track { grid-column: 1; }
  .section-heading { margin-top: 32px; align-items: start; gap: 10px; flex-direction: column; }
  .section-heading h2 { font-size: 25px; }
  .menu-grid { grid-template-columns: 1fr; }
  .meal-content { grid-template-columns: 105px minmax(0,1fr); }
  .meal-image { width: 105px; height: 84px; }
  .dialog-photo { height: 200px; }
  .dialog-body { padding: 19px; }
  .dialog-columns { grid-template-columns: 1fr; gap: 15px; }
  .shopping-section { padding: 17px; margin-top: 30px; }
  .shopping-heading { align-items: start; flex-direction: column; }
  .shopping-heading h2 { font-size: 24px; }
  .shopping-summary { align-items: start; flex-direction: column; gap: 11px; padding: 15px; }
  .shopping-summary > div { flex-basis: auto; }
  .shopping-columns { grid-template-columns: 1fr; }
  .shopping-list { grid-template-columns: 1fr; }
}
@media (max-width:380px) {
  .brand-name { font-size: 11px; }
  .current-week { margin-left: 7px; padding-left: 8px; font-size: 8px; }
  .hero h1 { font-size: 41px; }
  .meal-content { grid-template-columns: 82px minmax(0,1fr); }
  .meal-image { width: 82px; height: 76px; }
  .meal-title { font-size: 14px; }
  .rate-button, .swap-button, .detail-button { font-size: 9px; padding: 7px; }
  .stats { gap: 10px; }
}
@media print {
  body { background: #fff; }
  .topbar, .hero, .progress-panel, .section-heading, #menu, .feedback-tip, .privacy-note, .print-button, .toast { display: none !important; }
  .shell { max-width: none; padding: 0; }
  .shopping-section { display: block; margin: 0; padding: 0; border: 0; background: #fff; }
  .shopping-summary { background: #f1f4ed; color: #173e29; border: 1px solid #cfd9c5; }
  .shopping-summary p, .shopping-summary small, .summary-label { color: #526157; }
  .shopping-columns { grid-template-columns: 1.15fr .85fr; }
  .shopping-card { break-inside: avoid; }
  .shopping-line { padding: 5px 2px; }
}
