:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#163a2e;background:#f5f7f2;font-synthesis:none;--green:#176343;--muted:#728178;--line:#e3e9df;--yellow:#e9eeaa}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}a{color:var(--green)}h1,h2,h3,p{margin-top:0}h1{font-size:34px;letter-spacing:-1.3px;margin-bottom:10px;line-height:1.2}h2{font-size:23px;letter-spacing:-.5px;margin:8px 0 18px}h3{font-size:16px;margin-bottom:8px}p{line-height:1.65}small{font-size:12px;line-height:1.6}.muted{color:var(--muted);font-size:13px}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:800;color:#627c67;margin-bottom:10px}.wordmark{text-decoration:none;font-size:46px;letter-spacing:-4px;font-weight:900;color:#155b3e;display:flex;align-items:center;gap:14px;line-height:1}.wordmark span{font-size:10px;font-weight:600;letter-spacing:.5px;max-width:50px;line-height:1.3}.topbar{height:82px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 32px;position:sticky;top:0;z-index:10}.top-meta{display:flex;align-items:center;gap:20px;font-size:13px}.pill{display:inline-block;border-radius:24px;background:#edf3e5;color:#38694c;font-size:11px;font-weight:700;padding:7px 12px}.app-shell{display:grid;grid-template-columns:225px 1fr;min-height:calc(100vh - 82px)}.sidebar{padding:36px 20px;background:#fcfdf9;border-right:1px solid var(--line)}.sidebar .eyebrow{margin-left:12px}nav{display:grid;gap:7px}.nav{text-align:left;border:0;background:transparent;padding:13px 12px;color:#62766b;border-radius:9px;font-size:13px;font-weight:600}.nav.active{background:#e7efdf;color:#164b35}.sidebar-note{font-size:12px;background:#f1f2df;padding:18px;border-radius:12px;margin-top:80px;line-height:1.7}.sidebar-note p{margin:8px 0 0;color:#71806e}.main{padding:36px;max-width:1500px;min-width:0}.page-title{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:22px}.page-title p{margin-bottom:0}.primary{display:inline-flex;justify-content:center;align-items:center;background:var(--green);color:white;border:0;padding:12px 19px;font-size:13px;font-weight:650;border-radius:8px;text-decoration:none;line-height:1.4}.primary:hover{background:#11482f}.quiet{background:white;border:1px solid var(--line);color:#365a46;padding:9px 13px;border-radius:7px;font-size:12px}.quiet:hover{background:#edf3e7}.danger{color:#9d4641}.wide{width:100%}.workflow{display:grid;grid-template-columns:repeat(3,1fr);background:#edf2e6;border:1px solid #dfe8d6;border-radius:10px;margin-bottom:26px;overflow:hidden}.workflow span{padding:15px 18px;font-size:12px;font-weight:600;border-right:1px solid #dce6d4}.workflow span:last-child{border:0}.client-layout{display:grid;grid-template-columns:235px minmax(0,1fr);gap:24px}.card{background:white;border:1px solid var(--line);border-radius:14px;padding:24px;margin-bottom:24px;box-shadow:0 5px 18px #26352603}.client-list{padding:14px;height:max-content;position:sticky;top:106px}.client-list>input{font-size:12px;background:#f8faf5;margin-bottom:12px}.client-item{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:transparent;border:0;border-radius:8px;padding:12px 7px;min-width:0;color:#244636}.client-item.selected,.client-item:hover{background:#edf3e6}.client-item span:last-child{min-width:0}.client-item b{font-size:12px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.client-item small{display:block;color:#7e8c82;overflow:hidden;text-overflow:ellipsis}.avatar{width:31px;height:31px;border-radius:50%;background:#dce9cd;display:grid;place-items:center;flex-shrink:0;font-weight:800;font-size:13px}.section-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.section-title h2{margin-bottom:0}.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.form-grid>button{align-self:end}label{display:block;font-size:12px;font-weight:650;margin-bottom:15px;line-height:1.6}input,select,textarea{width:100%;border:1px solid #dce4d7;border-radius:7px;padding:10px 11px;background:#fff;color:#244636;margin-top:5px;min-width:0}textarea{resize:vertical}input:focus,select:focus,textarea:focus{outline:2px solid #9fb88a;outline-offset:2px}fieldset{padding:18px;border:1px solid var(--line);border-radius:9px;margin:14px 0 22px}legend{font-size:13px;font-weight:750;padding:0 7px}fieldset>.muted{margin-bottom:14px}.check-grid{display:grid;grid-template-columns:1fr 1fr;gap:5px 15px}.check{display:flex;gap:9px;align-items:flex-start;font-weight:450;margin-bottom:12px;font-size:12px}.check input{width:16px;height:16px;margin:2px 0 0;accent-color:var(--green);flex-shrink:0}.actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:16px}.notice{padding:14px 16px;border-radius:9px;background:#fbf6df;border:1px solid #eee4b7;font-size:12px;color:#776330;line-height:1.7;margin:18px 0}.notice small{display:block}.send-panel{background:#eef4e7;border:1px solid #dbe8ce;border-radius:10px;padding:20px;margin:20px 0}.send-panel b{font-size:13px}.send-panel p{margin:6px 0 15px}.history{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:18px}.history .quiet{font-size:10px}.error{color:#ad433a;font-size:12px;display:block;line-height:1.6;margin:9px 0}.toast{position:fixed;right:24px;bottom:24px;max-width:440px;padding:17px 22px;border:1px solid #c5dabc;background:#edf8e9;border-radius:12px;z-index:100;box-shadow:0 12px 45px #163a2e20;font-size:13px;line-height:1.7}.toast.is-error{background:#fff0e9;border-color:#f1d0c0;color:#8b4131}.empty{padding:30px 10px;color:var(--muted);text-align:center;font-size:13px;line-height:1.7}.empty p{font-size:12px;margin:8px 0}table{width:100%;border-collapse:collapse;font-size:12px}th{text-align:left;background:#f4f7ef;color:#728373;font-size:11px;font-weight:650;padding:12px}td{padding:15px 12px;border-bottom:1px solid var(--line);vertical-align:top}.table-scroll{overflow:auto}hr{border:0;border-top:1px solid var(--line);margin:30px 0}pre{font:13px/1.8 inherit;white-space:pre-wrap;overflow-wrap:anywhere}details{margin:20px 0}summary{cursor:pointer;color:#386349;font-size:13px;font-weight:650;margin-bottom:16px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}[hidden]{display:none!important}
.auth-wrap{display:grid;grid-template-columns:1fr 1fr;min-height:100vh}.auth-brand{padding:60px;background:#e6eddb;position:relative;overflow:hidden}.auth-brand h1{font-size:49px;line-height:1.17;margin:80px 0 25px;letter-spacing:-1.8px}.auth-brand>p{font-size:16px;color:#5a755f}.brand-circle{width:250px;height:250px;border-radius:50%;background:#d3e1bc;display:flex;align-items:center;justify-content:center;text-align:center;font-size:22px;line-height:1.7;transform:rotate(-9deg);margin:45px 0 0 auto;color:#365d42;font-weight:600}.auth-panel{display:grid;place-items:center;background:#fbfcf8;padding:40px}.auth-panel form{width:100%;max-width:375px}.auth-panel h2{font-size:30px;margin:16px 0}.auth-panel button{margin-top:10px}.auth-panel form>label{margin:22px 0}.auth-panel input{padding:13px}
.plan-document{margin-top:35px;border-top:1px solid var(--line);padding-top:30px}.plan-head{margin-bottom:25px}.plan-head h1{font-size:31px}.plan-head p{margin-bottom:4px}.target-bar{display:flex;flex-wrap:wrap;gap:12px;background:#edf2e8;padding:16px;border-radius:9px;font-size:12px}.plan-day{margin:28px 0 36px}.day-title{display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:2px solid #dce6d4;padding-bottom:12px}.day-title h2{margin:0;font-size:22px}.day-title>span{font-size:11px;color:#65816a}.meal-row{display:grid;grid-template-columns:78px minmax(0,1fr) 75px;gap:14px;padding:18px 0;border-bottom:1px solid var(--line)}.meal-time{font-size:14px;font-weight:750;color:#759263}.meal-time small,.meal-nutrients small{display:block;font-size:10px;font-weight:400;color:#7e8b80;margin-top:5px}.meal-row h3{font-size:14px;margin-bottom:7px;line-height:1.5}.meal-row p{font-size:11px;margin-bottom:4px;line-height:1.65}.meal-nutrients{text-align:right;font-size:12px;font-weight:700}.movement{background:#eff4ec;border:1px solid #dce6d5;border-radius:10px;margin-top:18px;padding:18px}.movement h3{font-size:14px}.movement p{font-size:12px;margin-bottom:8px}.movement p:last-child{margin-bottom:0}footer{font-size:11px;color:#788976;border-top:1px solid var(--line);padding-top:20px;line-height:1.7}.document{background:#fff}.document>main{max-width:860px;margin:40px auto;padding:0 30px}.portal-actions{display:flex;align-items:center;justify-content:space-between;max-width:860px;margin:25px auto;padding:0 30px}
@media(max-width:1200px){.sidebar{padding:30px 12px}.app-shell{grid-template-columns:185px 1fr}.main{padding:28px}.client-layout{grid-template-columns:190px minmax(0,1fr);gap:18px}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.card{padding:20px}.client-list{padding:10px}}
@media(max-width:940px){.app-shell{display:block}.sidebar{padding:12px 20px;border-right:0;border-bottom:1px solid var(--line)}.sidebar>.eyebrow,.sidebar-note{display:none}nav{display:flex;gap:8px;overflow:auto}.nav{white-space:nowrap}.main{padding:24px}.client-layout{grid-template-columns:1fr}.client-list{position:static}.client-list #clientList{display:flex;overflow:auto}.client-item{min-width:185px;width:220px}.top-meta #userName{display:none}.workflow span{padding:12px 10px;font-size:10px}.auth-brand{padding:40px}.auth-brand h1{font-size:38px}}
@media(max-width:620px){.topbar{padding:0 18px;height:70px}.top-meta{gap:9px}.top-meta .pill{max-width:120px;line-height:1.5;font-size:9px;padding:6px 9px}.wordmark{font-size:38px}.wordmark span{font-size:8px}.main{padding:22px 14px}.sidebar{padding:9px}.nav{font-size:11px;padding:10px}.page-title{align-items:flex-start;flex-direction:column}h1{font-size:28px}.page-title .primary{align-self:flex-end}.workflow{margin-top:15px}.workflow span{line-height:1.7}.card{padding:18px}.form-grid{gap:8px 12px}.check-grid{grid-template-columns:1fr}.section-title .quiet{font-size:10px;padding:7px}label{font-size:11px}.auth-wrap{display:block}.auth-brand{padding:25px 30px}.auth-brand h1{font-size:31px;margin:35px 0 15px}.auth-brand>p,.brand-circle{display:none}.auth-panel{padding:40px 25px}.auth-panel h2{font-size:25px}.day-title{align-items:flex-start;flex-direction:column;gap:8px}.meal-row{grid-template-columns:57px minmax(0,1fr);gap:8px}.meal-nutrients{grid-column:2;text-align:left}.meal-nutrients small{display:inline;margin-left:12px}.toast{left:15px;right:15px;bottom:15px}.document>main{margin:25px auto;padding:0 18px}.portal-actions{padding:0 18px}.send-panel{padding:15px}.send-panel b{overflow-wrap:anywhere}}
@media print{@page{size:A4;margin:15mm}.no-print{display:none!important}.document>main{max-width:none;margin:0;padding:0}.plan-day{break-before:page}.meal-row,.movement{break-inside:avoid}.plan-head h1{font-size:25px}.plan-day h2{font-size:21px}body{font-size:11px;-webkit-print-color-adjust:exact;print-color-adjust:exact}a{color:inherit;text-decoration:none}}
/* Allow the plan's scrollable worksheets to shrink inside the coach grid. */
.client-layout>*{min-width:0}.card{min-width:0}
/* Direct plan reader, available without scrolling through profile forms. */
.client-entry{padding-bottom:12px;border-bottom:1px solid var(--line);margin-bottom:8px}.client-view-plan{width:100%;font-weight:700;color:var(--green);background:#f1f6e9;text-align:left}.preview-controls{display:grid;grid-template-columns:1fr 1fr auto;align-items:end;gap:18px}.preview-controls label{margin:0;min-width:0}.preview-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.preview-document{background:#fff;border-radius:18px;padding:28px;border:1px solid var(--line)}.preview-document:empty{display:none}.preview-document .plan-layout{grid-template-columns:minmax(0,1fr)}#previewTitle:focus{outline:none}.topbar .primary{white-space:nowrap}.preview-document [id]{scroll-margin-top:100px}
@media(max-width:1200px){.preview-controls{grid-template-columns:1fr 1fr}.preview-actions{grid-column:1/-1}}
@media(max-width:940px){.client-entry{flex:0 0 220px;margin-right:10px}.top-meta{gap:12px}}
@media(max-width:620px){.topbar{height:auto;min-height:78px;gap:12px;padding:12px 14px}.top-meta{justify-content:flex-end;flex-wrap:wrap;gap:7px;max-width:240px}.top-meta .pill{display:none}.topbar .primary{font-size:12px;padding:10px 12px}.topbar .quiet{font-size:11px;padding:8px}.wordmark{flex-shrink:0}.wordmark span{display:none}.preview-controls{grid-template-columns:1fr}.preview-document{padding:16px 12px}.preview-actions{grid-column:auto}.preview-document .plan-head h1{font-size:26px}}
/* Searchable meal collection */
.library-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0 24px}.library-stats>div{padding:22px;border:1px solid #dce5d6;border-radius:16px;background:#f0f3e9}.library-stats strong{font-size:34px;display:block;color:#244d3b}.library-stats span{font-size:14px;color:#61735c}.library-controls{display:grid;grid-template-columns:2fr 1fr 1fr;gap:16px;align-items:end}.library-source-note{font-size:13px;color:#66705f;line-height:1.65;max-width:850px}.food-library{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:24px 0}.food-library-card{background:#fff;border:1px solid #dfe5d9;border-radius:18px;overflow:hidden;min-width:0;align-self:start}.food-library-card figure{position:relative;margin:0;aspect-ratio:16/10;overflow:hidden}.food-library-card figure img{width:100%;height:100%;object-fit:cover;display:block}.food-library-card figcaption{position:absolute;bottom:8px;right:10px;padding:4px 8px;background:#fffdf0eb;border-radius:5px;font-size:10px;color:#52644b}.food-library-label{padding:20px;background:#e9efdf;color:#244d3b;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}.food-library-label span{display:block;font-size:11px;font-weight:400;margin-top:6px;letter-spacing:0;text-transform:none}.food-library-copy{padding:20px}.food-library-copy h2{font-size:19px;line-height:1.4;margin:8px 0 12px}.food-library-copy>small{color:#6b7d62;font-size:12px}.food-library-copy p{font-size:13px;line-height:1.7;overflow-wrap:anywhere}.food-library-copy details{margin-top:16px;border-top:1px solid #e4e9de;padding-top:12px}.food-library-copy summary{font-size:13px;font-weight:700;cursor:pointer}.food-library-copy a{font-size:12px;color:#286346}.library-macros{color:#49613f}.library-summary{padding:13px 16px;background:#eaf0df;border-radius:10px;color:#345c32;font-size:14px}.food-library .empty{grid-column:1/-1}
@media(max-width:1150px){.food-library{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.library-controls,.food-library{grid-template-columns:1fr}.library-stats{gap:8px}.library-stats>div{padding:14px}.library-stats strong{font-size:27px}.library-stats span{font-size:12px}}
.food-library .food-library-card figure{aspect-ratio:1}.food-library .food-library-card figure img{object-fit:contain;background:#f5f0e6}
.coach-food-form-card{margin:22px 0 26px;border-color:#d2dfca;background:linear-gradient(135deg,#fbfcf7,#fff)}.coach-food-form-card h2{margin:.35rem 0}.coach-food-form-card form>label{margin-top:16px}.coach-food-form-card fieldset{margin:18px 0}.coach-food-form-card button[type=submit]{margin-top:18px}.coach-food-photo-preview{margin:12px 0;padding:12px;border:1px dashed #becdb6;border-radius:14px;background:#f6f8f0;max-width:360px}.coach-food-photo-preview img{width:100%;max-height:280px;object-fit:cover;border-radius:9px;display:block}.coach-food-photo-preview p{margin:7px 0 0;font-size:12px}
.eligibility-notice{margin:0 0 20px;border-color:#e4b86b;background:#fff6df;color:#624a18;font-size:14px;font-weight:650;box-shadow:0 3px 12px #664c1810}
.team-layout{display:grid;grid-template-columns:minmax(260px,.75fr) minmax(0,1.25fr);gap:20px;align-items:start}.team-layout>.card{min-width:0}.team-layout h2,.credential-panel h2{margin-top:0}.team-account{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:17px 0;border-top:1px solid var(--line)}.team-account>div:first-child{display:grid;gap:6px;min-width:0}.team-account small{font-size:12px;color:var(--muted);overflow-wrap:anywhere}.team-account .pill{justify-self:start}.team-account-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.team-account-actions button{white-space:nowrap}.credential-panel{margin-top:20px;border:1px solid #bfceb3;background:#f5f9ef}.credential-panel input{font-family:ui-monospace,monospace}.credential-panel .actions{margin-top:14px}
@media(max-width:780px){.team-layout{grid-template-columns:1fr}.team-account{align-items:flex-start;flex-direction:column}.team-account-actions{justify-content:flex-start}}
.health-plan-fields{padding:14px 16px;border:1px solid #dce8d9;background:#f7faf4;border-radius:9px;margin:14px 0}.health-plan-fields>p{margin-bottom:10px}.health-plan-fields textarea{min-height:54px}.health-review-panel{border-left:4px solid #b88332}.health-review-panel p{margin:6px 0 0;overflow-wrap:anywhere}.health-notice{border-color:#e9d9ae;background:#fff8e9;color:#624b21}
.plan-section-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.plan-section-actions .primary{font-size:12px;padding:9px 13px;white-space:nowrap}#mealEditor,#movementEditor{border:1px solid #dce6d4;border-radius:10px;padding:15px 17px;background:#fbfcf8}#mealEditor[open],#movementEditor[open]{background:#f5f8ef;border-color:#b7c9a8}#mealEditor summary,#movementEditor summary{margin-bottom:0}#mealEditor[open] summary,#movementEditor[open] summary{margin-bottom:16px}
@media(max-width:620px){.plan-section-actions{align-items:flex-end;flex-direction:column;gap:7px}.plan-section-actions .primary{font-size:10px;padding:8px 9px}}
.nutrition-note{padding:8px 10px;border-radius:7px;background:#fbf5e7;color:#765b2c;line-height:1.6}
.progress-intro{margin:-8px 0 20px}.progress-chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0 8px}.progress-chart-card{min-width:0;border:1px solid #e2e9dc;border-radius:13px;background:#fbfcf8;padding:17px 18px}.progress-chart-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.progress-chart-heading h3{margin:0;font-size:14px}.progress-chart-heading>strong{font-size:22px;color:#234a36;white-space:nowrap}.progress-chart-heading small{font-size:12px;font-weight:500;color:#778474}.progress-change{display:inline-block;margin-top:6px;padding:5px 8px;border-radius:20px;background:#edf3e6;color:#526f49;font-size:10px}.progress-chart-card figure{margin:9px 0 0}.progress-chart-card svg{display:block;width:100%;height:auto;overflow:visible}.progress-chart-card figure figcaption{font-size:10px;color:#778474;margin:0 0 2px}.progress-grid-line{stroke:#e2e9dd;stroke-width:1}.progress-axis-label{fill:#718070;font-size:10px}.progress-line{fill:none;stroke:#4f8050;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.waist-chart .progress-line{stroke:#6d789b}.progress-point{fill:#fff;stroke:#4f8050;stroke-width:2.5}.waist-chart .progress-point{stroke:#6d789b}.progress-chart-note{margin:10px 0 20px;font-size:10px;color:#788275;line-height:1.6}.progress-empty{padding:18px;border-radius:10px;background:#f4f7ef;border:1px dashed #cedbc6;color:#4d6348;font-size:12px;line-height:1.7;margin:16px 0}.progress-empty p{margin:5px 0 0;color:#788275}.progress-form-hint{grid-column:1/-1;margin-top:-8px}.progress-history{margin-top:22px;border-top:1px solid var(--line);padding-top:15px}.progress-history summary{margin:0;font-size:12px}.progress-history[open] summary{margin-bottom:12px}
@media(max-width:700px){.progress-chart-grid{grid-template-columns:1fr;gap:10px}.progress-chart-card{padding:14px}.progress-chart-heading>strong{font-size:19px}.progress-form-hint{grid-column:auto}}
.email-template-preview{margin:14px 0;border:1px solid var(--line);border-radius:10px;background:#fafcf8;padding:12px 15px}.email-template-preview summary{margin:0}.email-template-content{padding-top:14px}.email-template-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px 14px;margin-bottom:14px}.email-template-meta>div{display:grid;gap:4px;font-size:12px;min-width:0}.email-template-meta span{color:var(--muted);font-size:11px}.email-template-meta b{overflow-wrap:anywhere}.email-template-subject{grid-column:1/-1}.email-template-message{max-width:640px;margin:0 auto;background:#fff;border:1px solid var(--line);border-radius:10px;padding:22px;color:#193b2d;line-height:1.65}.email-template-message .eyebrow{margin-bottom:8px}.email-template-message h3{font-size:18px}.email-template-message p{font-size:13px;margin-bottom:12px}.email-template-message>small{display:block;margin-top:10px;color:var(--muted)}.email-template-button{display:inline-block;background:var(--green);color:white;padding:10px 15px;border-radius:7px;font-size:12px;font-weight:700;margin:0 0 12px}
@media(max-width:620px){.email-template-meta{grid-template-columns:1fr}.email-template-subject{grid-column:auto}.email-template-message{padding:16px}}
