:root{--ink:#14201d;--muted:#667085;--line:#e7ebe9;--surface:#fff;--soft:#f4f7f5;--brand:#1d6f5f;--brand-dark:#155447;--accent:#dff3eb;--shadow:0 18px 55px rgba(28,52,45,.10)}
*{box-sizing:border-box}html{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:#f6f8f7}body{margin:0}button,input{font:inherit}button{cursor:pointer}.muted{color:var(--muted)}.eyebrow{font-size:.72rem;letter-spacing:.11em;font-weight:700;color:var(--brand)}
.customer-brand{display:inline-flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;font-weight:700;letter-spacing:.02em}.customer-brand>span:last-child>span{color:var(--brand)}.customer-brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:var(--brand);color:#fff;font-size:1.05rem}
.customer-primary{border:0;border-radius:12px;background:var(--brand);color:#fff;font-weight:700;padding:13px 18px;box-shadow:0 8px 20px rgba(29,111,95,.18)}.customer-primary:hover{background:var(--brand-dark)}
.customer-login-page{min-height:100vh;background:radial-gradient(circle at 80% 0,#e0f3ec 0,transparent 32%),#f5f8f6}.login-shell{min-height:100vh;display:grid;place-items:center;padding:24px}.login-card{width:min(440px,100%);background:#fff;border:1px solid var(--line);border-radius:24px;padding:28px;box-shadow:var(--shadow)}.login-copy{margin:34px 0 22px}.login-copy h1{font-size:2rem;margin:7px 0 8px}.login-copy p{color:var(--muted);line-height:1.55;margin:0}.login-form{display:grid;gap:16px}.login-form label{display:grid;gap:8px;font-weight:750;font-size:.92rem}.login-form input{width:100%;border:1px solid #cfd7d3;border-radius:12px;padding:13px 14px;outline:none;background:#fff}.login-form input:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(29,111,95,.10)}.login-error{margin-bottom:16px;border-radius:12px;padding:12px 14px;background:#fff0f0;color:#a12a2a;font-weight:700}.login-help{font-size:.86rem;color:var(--muted);margin:18px 0 0;text-align:center}
.customer-header{height:72px;position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;padding:0 max(18px,calc((100vw - 1180px)/2));background:rgba(255,255,255,.94);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}.logout-button{border:1px solid #d6ddda;background:#fff;border-radius:10px;padding:9px 12px;font-weight:750;color:#34413d}.customer-main{width:min(1180px,calc(100% - 32px));margin:0 auto;padding:30px 0 60px}.customer-welcome{display:flex;gap:22px;align-items:flex-end;justify-content:space-between;margin-bottom:22px}.customer-welcome h1{font-size:clamp(1.8rem,5vw,2.8rem);margin:5px 0 5px}.customer-welcome p{margin:0;color:var(--muted)}
.target-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:30px}.target-card{background:#fff;border:1px solid var(--line);border-radius:17px;padding:17px}.target-card span{display:block;color:var(--muted);font-size:.82rem}.target-card strong{display:inline-block;font-size:1.45rem;margin-top:7px}.target-card small{margin-left:5px;color:#7a8682}.target-empty{grid-column:1/-1;background:#fff;border:1px solid var(--line);border-radius:17px;padding:18px;color:var(--muted)}
.week-section{background:#fff;border:1px solid var(--line);border-radius:22px;padding:22px;box-shadow:0 12px 35px rgba(22,44,37,.05)}.section-heading{display:flex;justify-content:space-between;gap:20px;align-items:flex-end;margin-bottom:18px}.section-heading h2{margin:5px 0 0;font-size:1.45rem}.plan-date{color:var(--muted);font-size:.85rem}.day-tabs{display:grid;grid-template-columns:repeat(7,1fr);gap:8px;margin:0 0 22px}.day-tab{border:1px solid var(--line);border-radius:13px;background:#fafcfb;padding:9px 6px;color:#52605b}.day-tab span,.day-tab small{display:block;font-size:.72rem}.day-tab strong{display:block;font-size:1.15rem;margin:2px 0}.day-tab.active{background:var(--brand);border-color:var(--brand);color:#fff;box-shadow:0 8px 16px rgba(29,111,95,.18)}.plan-state:empty{display:none}.empty-plan{padding:44px 18px;text-align:center;background:var(--soft);border-radius:15px}.empty-plan strong{font-size:1.1rem}.empty-plan p{color:var(--muted);margin:8px 0 0}
.selected-day-head{display:flex;justify-content:space-between;gap:18px;align-items:center;border-top:1px solid var(--line);padding-top:19px}.selected-day-head h3{margin:4px 0 0;text-transform:capitalize}.day-total{display:flex;align-items:baseline;gap:5px;padding:10px 13px;border-radius:13px;background:var(--accent);color:var(--brand-dark)}.day-total strong{font-size:1.35rem}.day-total span{font-size:.78rem;font-weight:700}.day-macro-row{display:flex;gap:18px;flex-wrap:wrap;color:var(--muted);font-size:.84rem;margin:13px 0 17px}.day-macro-row b{color:var(--ink);margin-left:4px}
.meal-list{display:grid;gap:10px}.customer-meal{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#fff}.customer-meal summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 16px;cursor:pointer}.customer-meal summary::-webkit-details-marker{display:none}.customer-meal summary span{display:grid;gap:3px}.customer-meal summary small{color:var(--brand);font-weight:700;text-transform:uppercase;letter-spacing:.07em;font-size:.69rem}.customer-meal summary strong{font-size:.98rem}.customer-meal summary>b{white-space:nowrap;font-size:.85rem;color:#4c5955}.customer-meal[open] summary{background:#f8faf9;border-bottom:1px solid var(--line)}.meal-content{display:grid;grid-template-columns:minmax(180px,280px) 1fr}.meal-image{min-height:220px;background:#eef2f0}.meal-image img{width:100%;height:100%;object-fit:cover;display:block}.meal-body{padding:18px}.meal-macros{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:20px}.meal-macros span{padding:10px;border-radius:11px;background:var(--soft)}.meal-macros small{display:block;color:var(--muted);font-size:.69rem}.meal-macros b{display:block;font-size:.88rem;margin-top:3px}.meal-section{margin-top:16px}.meal-section h4{font-size:.9rem;margin:0 0 9px}.ingredient-list,.instruction-list{margin:0;padding:0}.ingredient-list{list-style:none}.ingredient-list li{display:flex;justify-content:space-between;gap:14px;padding:7px 0;border-bottom:1px dashed #e7ebe9;font-size:.86rem}.ingredient-list li:last-child{border-bottom:0}.ingredient-list strong{white-space:nowrap}.instruction-list{padding-left:20px;color:#45524e;line-height:1.55;font-size:.86rem}.instruction-list li+li{margin-top:6px}.source-link{display:inline-block;margin-top:18px;color:var(--brand);font-size:.84rem;font-weight:700;text-decoration:none}
.customer-modal[hidden]{display:none}.customer-modal{position:fixed;inset:0;z-index:100}.modal-backdrop{position:absolute;inset:0;background:rgba(12,24,20,.52)}.shopping-panel{position:absolute;right:0;top:0;height:100%;width:min(560px,94vw);overflow:auto;background:#fff;padding:24px;box-shadow:-20px 0 60px rgba(0,0,0,.14)}.shopping-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.shopping-panel-head h2{margin:4px 0 0}.modal-close{border:1px solid var(--line);background:#fff;border-radius:10px;width:38px;height:38px;font-size:1.5rem}.shopping-intro{color:var(--muted);font-size:.9rem}.customer-shop-cat{margin-top:20px}.customer-shop-cat h3{font-size:.9rem;margin:0 0 8px;padding-bottom:7px;border-bottom:1px solid var(--line)}.customer-shop-row{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:9px 0;font-size:.88rem}.customer-shop-row input{width:18px;height:18px;accent-color:var(--brand)}.customer-shop-row:has(input:checked) span,.customer-shop-row:has(input:checked) b{text-decoration:line-through;color:#98a2b3}.modal-open{overflow:hidden}
@media(max-width:800px){.customer-main{width:min(100% - 22px,1180px);padding-top:20px}.customer-welcome{align-items:flex-start;display:block}.customer-shopping{width:100%;margin-top:17px}.target-cards{grid-template-columns:1fr 1fr}.week-section{padding:14px;border-radius:18px}.section-heading{align-items:flex-start}.plan-date{display:none}.day-tabs{display:flex;overflow-x:auto;gap:7px;padding-bottom:4px;scrollbar-width:none}.day-tabs::-webkit-scrollbar{display:none}.day-tab{flex:0 0 62px}.meal-content{grid-template-columns:1fr}.meal-image{height:190px;min-height:0}.meal-body{padding:14px}}
@media(max-width:480px){.customer-header{height:64px;padding:0 12px}.customer-header .customer-brand{font-size:.86rem}.customer-brand-mark{width:30px;height:30px}.logout-button{padding:8px 9px;font-size:.8rem}.customer-main{width:calc(100% - 16px)}.target-cards{gap:8px}.target-card{padding:13px}.target-card strong{font-size:1.25rem}.target-card small{display:block;margin:2px 0 0}.selected-day-head{align-items:flex-start}.day-macro-row{gap:9px 14px}.customer-meal summary{padding:13px 12px}.customer-meal summary strong{font-size:.91rem}.customer-meal summary>b{font-size:.78rem}.meal-macros{gap:5px}.meal-macros span{padding:8px 6px}.shopping-panel{width:100vw;padding:18px}.login-card{padding:22px;border-radius:20px}.login-copy{margin-top:28px}}
.customer-header{gap:10px}.customer-header form{margin-left:0}.customer-today-link{margin-left:auto;white-space:nowrap;display:inline-flex;align-items:center;min-height:40px;padding:0 16px;border-radius:999px;background:linear-gradient(135deg,#0F6B3A,#19864f 68%,#8CC63F);color:#fff;font-weight:850;text-decoration:none;font-size:.9rem;box-shadow:0 9px 22px rgba(15,107,58,.16)}.customer-today-link:hover{background:linear-gradient(135deg,#0b5c31,#0F6B3A 70%,#75b82e)}
