@font-face{font-family:Manrope;src:url('/assets/fonts/Manrope-Variable.ttf') format('truetype');font-weight:200 800;font-style:normal;font-display:swap}
.coach-mode{--coach-ground:#f4f5ee;--coach-forest:#123e32;--coach-soft:#edf3e5;--coach-line:#dce5d8;font-family:Manrope,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#173d31;background:var(--coach-ground);font-size:14px;line-height:1.65;-webkit-font-smoothing:antialiased}
.coach-mode .workspace{background:radial-gradient(ellipse at 100% 0,#e7eedb66,transparent 50%),var(--coach-ground)}
.coach-mode aside{background:#fffef8;border-color:#e1e8dc}
.coach-mode header{background:#fffefaad;backdrop-filter:blur(16px);border-color:#e1e8dc;color:#466252;height:78px}
.coach-mode main{max-width:1540px;margin:auto;padding:28px 36px 40px}
.coach-mode button,.coach-mode input,.coach-mode select,.coach-mode textarea{font:inherit}
.coach-mode button{font-size:12px;font-weight:700;border-radius:12px;border-color:#dce5d8;box-shadow:inset 0 1px 0 #fff8;transition:background-color .15s,box-shadow .15s,transform .15s}
.coach-mode button:hover{box-shadow:0 4px 14px #183e3212;transform:translateY(-1px)}
.coach-mode button:disabled{transform:none;box-shadow:none}
.coach-mode button.primary,.coach-mode .coach-tabs button[aria-current=page],.coach-mode .wide{background:linear-gradient(145deg,#267551,#144732);color:#fff;border:1px solid #225b42;box-shadow:inset 0 1px 0 #a9e9bb55,0 5px 12px #153e3214}
.coach-mode :focus-visible{outline:3px solid #288568;outline-offset:3px}
.coach-mode h1,.coach-mode h2,.coach-mode h3,.coach-mode h4{font-family:Manrope,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#183e31;letter-spacing:-.045em;line-height:1.2}
.coach-mode h2{font-size:24px;font-weight:800}.coach-mode h3{font-size:18px;font-weight:750}.coach-mode h4{font-size:15px;letter-spacing:-.02em;margin:14px 0 8px}.coach-mode .muted,.coach-mode small{color:#526858}
.coach-hero{position:relative;isolation:isolate;min-height:238px;border-radius:26px;background:linear-gradient(125deg,#123e30,#2c6745);overflow:hidden;color:#fff;box-shadow:inset 0 1px 0 #e2ffd538,0 12px 26px #1b3c2820;display:flex;align-items:center}
.coach-hero::after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(100deg,#113e30 0%,#194d36ee 43%,#194d3610 86%),linear-gradient(180deg,#fff1,transparent 60%);border-radius:inherit;border:1px solid #dbffbb33;pointer-events:none}
.coach-hero-copy{padding:30px 36px;max-width:75%;z-index:1}
.coach-mode .coach-hero h1{font-size:clamp(30px,3.3vw,44px);font-weight:800;color:#fff;margin:7px 0 10px;letter-spacing:-.055em;line-height:1.1}
.coach-hero p{font-size:15px;color:#e1ecdc;margin:0 0 22px}
.coach-eyebrow{font-size:12px;letter-spacing:.12em;font-weight:800;text-transform:uppercase;display:block;color:#60765c}
.coach-hero .coach-eyebrow{color:#d4ecb7}
.coach-hero-photo{position:absolute;right:0;inset-block:0;width:57%;height:100%;object-fit:cover;object-position:70% 65%;z-index:-2}
.coach-hero-stats{display:flex;flex-wrap:wrap;gap:8px}
.coach-hero-stats button{font-size:12px;padding:7px 12px;border-radius:9px;border:1px solid #e6ffd32e;background:linear-gradient(145deg,#fff2,#fff1);box-shadow:inset 0 1px 0 #f3ffdc26;backdrop-filter:blur(9px);color:#eaf4e3;white-space:nowrap}
.coach-hero-stats strong{font-size:15px;font-weight:800;color:#fff;margin-right:4px}
.coach-hero-badge{position:absolute;right:22px;bottom:22px;font-size:12px;color:#fff;padding:8px 12px;background:#143c27a8;backdrop-filter:blur(10px);border:1px solid #f4ffd640;border-radius:20px}
.coach-workspace-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:22px 0 16px}
.coach-workspace-bar .toolbar{margin:0;gap:7px}.coach-workspace-bar .toolbar button{padding:9px 12px;min-height:40px;background:#fffdf5}
.coach-primary-tabs{padding:5px;background:#e9edde;border:1px solid #dce4d5;border-radius:15px;margin:0;gap:3px;flex-wrap:nowrap}
.coach-primary-tabs button{background:transparent;border-color:transparent;box-shadow:none;min-width:78px;padding:9px 16px;min-height:40px}
.coach-mode .heading{margin:16px 0 22px;gap:12px}.coach-mode .heading .toolbar{margin-top:0}
.coach-client-heading{padding:10px 0}.coach-mode .coach-client-heading h2{font-size:30px;margin:7px 0}.coach-client-heading p{font-size:12px;margin:0;color:#60725f}
.coach-mode .panel,.coach-mode .card,.coach-mode .coach-record{background:linear-gradient(150deg,#fffefb,#fcfdf7);border:1px solid #dde6d6;border-radius:22px;box-shadow:inset 0 1px 0 #fff,0 5px 15px #24432205;padding:24px}
.coach-mode .coach-tabs:not(.coach-primary-tabs){gap:5px;border-bottom:1px solid #dce5d5;padding:0 0 14px;margin:0 0 22px}
.coach-mode .coach-tabs:not(.coach-primary-tabs) button{background:transparent;box-shadow:none;border-color:transparent;color:#4c6554;font-size:12px;padding:9px 13px;min-height:40px}
.coach-mode .coach-tabs:not(.coach-primary-tabs) button[aria-current=page]{background:#e2edd6;color:#234c33;border-color:#c7d9b9}
.coach-metrics{gap:12px}.coach-mode .coach-nutrient{position:relative;overflow:hidden;isolation:isolate;min-height:163px;display:flex;flex-direction:column;justify-content:flex-end;padding:17px;background:linear-gradient(145deg,#eff4e7,#e6edda);border:1px solid #d9e4ce;border-radius:18px;box-shadow:inset 0 1px 0 #fff,0 3px 6px #263c1510}
.coach-nutrient::after{position:absolute;content:'';inset:0;background:linear-gradient(155deg,#fff8 0%,#fff0 45%);z-index:-1;pointer-events:none}
.coach-mode .coach-nutrient img{position:absolute;width:50px;height:50px;object-fit:contain;top:9px;right:8px;filter:drop-shadow(0 4px 3px #2e401c20);z-index:0}
.coach-mode .coach-nutrient>small:first-of-type{font-size:12px;font-weight:700;max-width:calc(100% - 45px);margin:0 0 12px;min-height:32px;color:#3b593f}
.coach-mode .coach-nutrient strong{font-size:29px;letter-spacing:-.06em;font-weight:800;line-height:1.2;margin:0 0 6px;position:relative}
.coach-mode .coach-nutrient>small:last-child{font-size:12px;line-height:1.5;color:#4c6044}
.coach-mode .coach-nutrient[data-nutrient=energyKcal]{background:linear-gradient(145deg,#fbf1d9,#f2e7c7);border-color:#e7dcb7}.coach-mode .coach-nutrient[data-nutrient=proteinG]{background:linear-gradient(145deg,#eaf6e5,#dcedd3)}.coach-mode .coach-nutrient[data-nutrient=fibreG]{background:linear-gradient(145deg,#f3edf8,#e9e1f1);border-color:#dfd3e8}
.coach-client-initials{width:52px;height:52px;border:1px solid #d0dfc0;background:linear-gradient(135deg,#f4fbe8,#d9eabf);border-radius:18px;display:grid;place-items:center;font-size:18px;font-weight:800;color:#345b32;box-shadow:inset 0 1px 0 #fff;margin-bottom:20px}
.coach-mode .coach-client-card h3{margin-bottom:9px}.coach-client-card p{font-size:12px}.coach-client-card button{margin-top:8px;min-width:120px;background:#eaf1df}
.coach-mode .coach-record h3{font-size:17px}.coach-mode .coach-record>p{font-size:12px;color:#566e5e}.coach-mode .coach-record dl{margin:20px 0}.coach-mode .coach-record dt{font-size:12px}.coach-mode .coach-record dd{font-size:17px;font-weight:750;color:#204833}
.coach-mode .coach-chart{background:linear-gradient(180deg,#f2f6e955,#fff0);border-radius:14px;color:#3a7b47}
.coach-mode .coach-bubble{border-radius:20px 20px 20px 5px;box-shadow:inset 0 1px 0 #fff8;background:#edf1e8;font-size:13px}.coach-mode .coach-bubble.from-coach{border-radius:20px 20px 5px 20px;background:linear-gradient(145deg,#e4f2d5,#d4e8bf);border:1px solid #c7dcaf}
.coach-mode .coach-dialog{background:#fafbf5;border-color:#d4dfca;box-shadow:0 25px 80px #08221440}.coach-mode .coach-dialog input,.coach-mode .coach-dialog textarea,.coach-mode .coach-dialog select{border-color:#ccdac4;background:#fffffb}.coach-mode .coach-dialog label{font-size:12px;font-weight:650}.coach-mode .coach-dialog p{font-size:12px}
.coach-empty{text-align:center;padding:38px!important}.coach-empty-art{font-size:40px;color:#759f52;margin-bottom:10px}.coach-mode .coach-empty p{max-width:400px;margin:12px auto;color:#60725b}
@media(min-width:1500px){.coach-mode .coach-metrics{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:1100px){.coach-mode main{padding:24px}.coach-workspace-bar{align-items:flex-start;flex-direction:column}.coach-hero-copy{max-width:85%;padding:28px}.coach-hero-badge{display:none}.coach-mode .coach-nutrient strong{font-size:25px}}
@media(max-width:760px){.coach-mode main{padding:16px}.coach-mode aside{height:auto;background:#fffef8}.coach-mode aside .logo{margin-bottom:6px;width:155px}.coach-mode header{height:auto;min-height:60px;padding:12px 16px}.coach-mode .account{gap:6px}.coach-mode header button{padding:8px 10px;font-size:12px;min-height:36px}.coach-hero{min-height:225px;border-radius:22px}.coach-hero-copy{padding:23px;max-width:100%}.coach-mode .coach-hero h1{font-size:30px}.coach-hero p{font-size:12px;max-width:210px;margin-bottom:22px}.coach-hero-photo{width:100%;opacity:.48;object-position:70% 60%}.coach-hero::after{background:linear-gradient(90deg,#113e30f0,#194d3670)}.coach-hero-stats{gap:6px}.coach-hero-stats button{padding:6px 8px;font-size:12px}.coach-hero-stats strong{font-size:13px}.coach-workspace-bar{margin:16px 0;gap:12px}.coach-primary-tabs{width:100%;display:grid;grid-template-columns:repeat(3,1fr);overflow:visible}.coach-primary-tabs button{min-width:0;padding:9px 13px}.coach-workspace-bar .toolbar{width:100%;justify-content:flex-end}.coach-workspace-bar .toolbar button{font-size:12px;min-height:36px;padding:7px 10px}.coach-mode .coach-client-heading h2{font-size:26px}.coach-mode .coach-client-heading{flex-direction:row;align-items:center}.coach-mode .coach-client-heading button{font-size:12px;padding:8px;min-height:36px}.coach-mode .coach-tabs:not(.coach-primary-tabs){overflow-x:auto;flex-wrap:nowrap;scrollbar-width:thin;padding-bottom:12px;mask-image:linear-gradient(90deg,#000 93%,transparent)}.coach-mode .coach-tabs:not(.coach-primary-tabs) button{flex:0 0 auto;font-size:12px;padding:8px 10px}.coach-mode .panel,.coach-mode .card,.coach-mode .coach-record{padding:18px;border-radius:20px}.coach-mode .coach-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.coach-mode .coach-nutrient{padding:13px;min-height:155px}.coach-mode .coach-nutrient img{width:44px;height:44px}.coach-mode .coach-nutrient strong{font-size:24px}.coach-mode .coach-nutrient>small:first-of-type{font-size:12px;max-width:70%}.coach-mode .coach-nutrient>small:last-child{font-size:12px}.coach-mode .heading{align-items:center}.coach-mode .toolbar{flex-wrap:wrap}.coach-mode .coach-record dd{font-size:15px}}
@media(prefers-reduced-motion:reduce){.coach-mode button{transition:none}.coach-mode button:hover{transform:none}}
.coach-side-nav{display:grid;gap:8px;margin-top:10px}.coach-side-nav>.coach-eyebrow{padding:0 12px;margin-bottom:14px}.coach-mode .coach-side-nav button{display:flex;align-items:center;gap:14px;text-align:left;background:transparent;border-color:transparent;font-size:13px;min-height:50px;box-shadow:none}.coach-side-nav svg{width:22px;height:22px}.coach-mode .coach-side-nav button[aria-current=page]{background:linear-gradient(135deg,#245f43,#153f30);color:#fff;border-color:#32684b;box-shadow:inset 0 1px 0 #dbffd344,0 5px 12px #143a2415}.coach-mode .coach-primary-tabs{display:none}.coach-workspace-bar{justify-content:flex-end}@media(max-width:760px){.coach-side-nav{display:none}.coach-mode .coach-primary-tabs{display:grid}.coach-workspace-bar{justify-content:initial}}

.coach-mode .coach-ai-text { white-space: pre-wrap; }

.coach-source-picker button{min-height:90px;text-align:left;font-size:1rem;font-weight:700;background:linear-gradient(145deg,#edf6ed,#fff);border-color:#c3d9c8}.coach-provider-photo{width:100%;max-width:360px;height:180px;object-fit:cover;border-radius:18px}
.coach-dialog .coach-source-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.coach-dialog .coach-source-picker button{width:100%;max-width:none}@media(max-width:600px){.coach-dialog .coach-source-picker{grid-template-columns:1fr}}
/* Approved meal-builder reference: compact editing and an honest image preview. */
.coach-dialog.meal-editor{width:min(1180px,96vw);max-width:1180px;padding:0;overflow:auto;background:#fafaf5}.meal-editor-head{padding:26px 34px;background:linear-gradient(90deg,#0b2f23ee,#163b26a8),url('/assets/food.jpg') right center/cover;color:white}.meal-editor-head img{width:165px;margin-bottom:14px}.meal-editor-head h2{color:white;margin:0;font-size:32px}.meal-editor>.close{position:absolute;right:16px;top:16px;background:#ffffff20;color:white;z-index:2}.meal-editor-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr);gap:30px;padding:28px 34px}.meal-editor-fields{min-width:0}.meal-detail-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}.meal-detail-fields h3,.meal-detail-fields label:first-of-type{grid-column:1/-1}.meal-editor h3{margin:0 0 14px}.meal-editor label{margin:8px 0 16px;font-size:13px}.meal-editor input,.meal-editor select{padding:9px 12px;min-height:42px}.meal-editor textarea{min-height:90px}.meal-editor-preview{align-self:start;background:white;border:1px solid #dce5d8;border-radius:20px;overflow:hidden}.meal-editor-preview figure{margin:0;position:relative}.meal-editor-preview figure img{width:100%;height:235px;object-fit:cover}.meal-editor-preview figcaption{position:absolute;bottom:12px;left:12px;background:#fffef0eb;color:#234536;padding:5px 10px;border-radius:20px;font-size:11px}.meal-preview-copy{padding:22px}.meal-preview-copy h3{overflow-wrap:anywhere}.meal-preview-copy p{text-transform:capitalize;color:#57725e;font-size:13px;margin:0}.meal-ingredient-row{display:flex;align-items:center;gap:10px}.meal-ingredient-row label{flex:1;min-width:0;margin:0 0 10px}.meal-ingredient-row button{margin-top:10px;font-size:22px;min-width:42px;padding:4px}.meal-ingredients{margin:16px 0 22px}.meal-ingredients details{margin-top:14px}.meal-editor summary{cursor:pointer;font-size:13px;font-weight:700;padding:12px 0}.meal-nutrition{border:1px solid #dce5d8;border-radius:12px;padding:0 16px}.meal-nutrition p{font-size:12px}.meal-nutrient-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}.meal-editor .meal-image-option{margin:0;padding:20px;border:0;border-radius:0;background:linear-gradient(135deg,#e1eed7,#f4f7eb)}.meal-image-option p{font-size:12px;margin-bottom:0}.meal-editor-footer{position:sticky;bottom:0;display:flex;align-items:center;gap:12px;padding:18px 34px;background:#fffef8f5;border-top:1px solid #dce5d8;z-index:1}.meal-editor-footer label.row{margin:0 auto 0 0;border:0;padding:0;display:flex;justify-content:flex-start;max-width:60%;font-size:12px}.meal-editor-footer input{flex-shrink:0;min-height:0}.meal-editor [data-coach-error]:not(:empty){padding:15px 34px;background:#fff0e9;margin:0}.meal-editor [data-coach-error]:empty{display:none}.coach-conversation{padding-bottom:0!important}.coach-bubbles{display:flex;flex-direction:column;gap:14px;padding:18px 0;max-height:58vh;overflow:auto}.coach-bubble{max-width:78%;align-self:flex-start;border-radius:18px 18px 18px 5px!important;background:#eaf0e4!important;padding:14px 18px!important}.coach-bubble.from-coach{align-self:flex-end;border-radius:18px 18px 5px 18px!important;background:#d7ebce!important}.coach-bubble p{white-space:pre-wrap;overflow-wrap:anywhere;margin-bottom:5px}.coach-bubble small{font-size:11px}.coach-bubble button{font-size:10px;padding:4px 8px;min-height:28px}.coach-conversation form{position:sticky;bottom:0;background:#fffef8;padding:15px 0;display:flex;gap:12px;align-items:end}.coach-conversation form label{flex:1;margin:0}.coach-conversation textarea{min-height:65px}.coach-conversation form>.primary{margin:0 0 3px}
@media(max-width:760px){.meal-editor-layout{grid-template-columns:1fr;padding:20px;gap:20px}.meal-editor-head{padding:22px 20px}.meal-editor-head h2{font-size:27px}.meal-editor-preview figure img{height:170px}.meal-editor-footer{flex-wrap:wrap;padding:14px 20px}.meal-editor-footer label.row{max-width:100%;width:100%}.meal-editor-footer .primary{margin-left:auto}.meal-editor-preview{display:grid;grid-template-columns:1fr}.coach-bubble{max-width:92%}}
.coach-dialog.meal-editor[open]{display:flex;flex-direction:column;max-height:92dvh;overflow:hidden}.meal-editor-head{flex-shrink:0}.meal-editor>form{display:flex;flex-direction:column;min-height:0;overflow:hidden;margin:0}.meal-editor-layout{overflow:auto;min-height:0}.meal-editor-footer{position:static;flex-shrink:0;background:#fffef8}.meal-image-option label.row{justify-content:flex-start;gap:12px;align-items:center;border:0;padding:10px 0}.meal-image-option input{flex-shrink:0;min-height:0}.meal-editor>p[role=alert]{flex-shrink:0}.coach-mode:has(dialog[open]){overflow:hidden}@media(max-width:760px){.meal-editor-head{padding:18px 20px}.meal-editor-head img{width:140px;margin-bottom:10px}.meal-editor-head h2{font-size:24px}.meal-editor-footer{gap:8px;padding:12px 20px}.meal-editor-footer label.row{font-size:11px}.meal-editor-footer button{min-height:40px}}
.meal-row-label{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.meal-ingredient-row label{margin:0 0 9px}.meal-ingredient-row button{margin:0 0 9px}.meal-editor-fields>label{display:grid}.meal-editor-head{padding-top:20px;padding-bottom:20px}.meal-editor-head img{margin-bottom:10px}.meal-detail-fields label{margin:6px 0 10px}.meal-editor-layout{padding-top:22px;padding-bottom:22px}

.coach-kitchen-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:1.4rem}
.coach-kitchen-card{padding:0;overflow:hidden;margin:0;background:#fffdf7}
.coach-kitchen-card>img{display:block;width:100%;height:190px;object-fit:cover}
.coach-kitchen-card>div{padding:1.1rem}.coach-kitchen-card h3{margin:.5rem 0}.coach-kitchen-card small{color:#52725d}.coach-kitchen-card button{margin-top:.6rem}
.coach-kitchen-ingredients{display:none}.coach-kitchen-card[hidden]{display:none}
@media(max-width:600px){.coach-kitchen-grid{grid-template-columns:1fr}.coach-kitchen-card>img{height:180px}}

.coach-mode .coach-kitchen-card{padding:0}

.coach-mode .coach-invitation-panel{display:flex;flex-direction:column;align-items:center;width:100%;white-space:normal;font:inherit;color:inherit;cursor:pointer;transition:border-color .15s,box-shadow .15s}
.coach-invitation-panel strong{font-size:20px;line-height:1.4}.coach-invitation-description{display:block;max-width:400px;margin:12px auto;color:#60725b;line-height:1.6}.coach-invitation-action{display:block;margin-top:8px;font-weight:700;color:#26573a}
.coach-mode .coach-invitation-panel:hover{border-color:#759f52;box-shadow:0 8px 24px #24432215}.coach-mode .coach-invitation-panel:focus-visible{outline:3px solid #458553;outline-offset:4px}
@media(prefers-reduced-motion:reduce){.coach-mode .coach-invitation-panel{transition:none}}
/* Weekly planning extends the established cream cards and forest-green controls. */
.coach-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;margin:22px 0}
.coach-calendar-day{min-width:0;border:1px solid #dce5d4;border-radius:16px;padding:12px;background:linear-gradient(150deg,#f4f7ef,#fffef9);min-height:200px}
.coach-calendar-day h3{font-size:15px;margin:0 0 15px}.coach-calendar-day>p{font-size:12px}
.coach-calendar-entry{background:#fff;border:1px solid #dce5d4;border-radius:12px;overflow:hidden;margin:0 0 12px;padding:10px;box-shadow:0 4px 10px #1f432909}
.coach-calendar-entry img{width:100%;aspect-ratio:1.5;object-fit:cover;border-radius:8px}.coach-calendar-entry strong,.coach-calendar-entry small{display:block;overflow-wrap:anywhere;margin:5px 0}
.coach-calendar-entry strong{font-size:14px}.coach-calendar-entry small{font-size:11px;text-transform:capitalize}.coach-calendar-entry button{font-size:12px;padding:6px;min-height:32px;margin:3px}
.coach-plan-submit{display:flex;justify-content:space-between;align-items:center;gap:16px;border-top:1px solid #dce5d4;padding-top:18px}.coach-weekdays{display:flex;flex-wrap:wrap;gap:10px}.coach-weekdays label{display:flex;align-items:center;gap:5px}.coach-weekdays input{width:auto}.coach-repeat{padding:14px;border:1px solid #dce5d4;border-radius:12px;margin:12px 0}.coach-repeat summary{cursor:pointer;font-weight:600}
@media(max-width:1100px){.coach-calendar{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:600px){.coach-calendar{grid-template-columns:1fr}.coach-calendar-day{min-height:80px}.coach-plan-submit{align-items:stretch;flex-direction:column}.coach-calendar-entry img{max-height:130px}}

.coach-calendar.coach-calendar-single{grid-template-columns:1fr}.coach-calendar-single .coach-calendar-entry{display:inline-block;vertical-align:top;width:220px;margin-right:12px}
