/* Complete lavender design system, based on the supplied mobile reference. */
.fast-calendar{background:#fff;border-radius:28px;padding:28px;margin-bottom:24px;max-width:760px;box-shadow:0 8px 30px #38235b08}.fast-calendar-intro{display:flex;justify-content:space-between;gap:12px}.fast-calendar-intro h3{font-size:1.35rem;margin:6px 0}.fast-calendar-intro p:not(.eyebrow){font-size:.88rem;color:#756c80;line-height:1.5;margin:8px 0 20px}.calendar-moon{display:grid;place-items:center;width:48px;height:48px;border-radius:18px;background:#eee6fa;color:#6834b5;flex-shrink:0}.fast-calendar-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.fast-calendar-toolbar h4{margin:0;font-size:1.05rem}.fast-calendar-toolbar button{width:42px;height:42px;border:0;border-radius:50%;background:#f3eff9;color:#6834b5;font-size:1.7rem}.fast-calendar-toolbar button:disabled{opacity:.3;cursor:default}.fast-calendar-weekdays,.fast-calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.fast-calendar-weekdays{color:#756c80;text-align:center;font-size:.75rem;margin-bottom:10px}.fast-calendar-day{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:68px;min-width:0;border:1px solid transparent;background:#faf9fc;border-radius:14px;padding:6px 0;cursor:pointer}.fast-calendar-day strong{font-size:1rem}.fast-calendar-day small{font-size:.64rem;color:#756c80}.fast-calendar-day.is-today{border-color:#8854d5}.fast-calendar-day.is-selected{background:#eee6fa;box-shadow:inset 0 0 0 2px #8854d5}.fast-calendar-day.is-forbidden{background:#fff0f2}.calendar-marks{display:flex;justify-content:center;gap:3px;height:7px}.weekly-dot,.white-dot,.blocked-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#8854d5}.white-dot{background:#d49625}.blocked-dot{background:#b43d56}.calendar-legend{display:flex;flex-wrap:wrap;gap:10px 16px;margin:18px 0;font-size:.73rem;color:#756c80}.calendar-legend span{display:flex;align-items:center;gap:6px}.calendar-detail{background:#f8f5fc;border-radius:18px;padding:18px;margin-bottom:16px}.calendar-detail strong,.calendar-detail>span{display:block}.calendar-detail>span{color:#6834b5;font-size:.84rem;margin-top:5px}.calendar-detail p{font-size:.87rem;line-height:1.6;margin:12px 0 0}.calendar-detail small{display:block;color:#756c80;font-size:.73rem;line-height:1.5;margin-top:10px}.calendar-footnote{font-size:.72rem;color:#756c80;line-height:1.6;margin:16px 0 0}.calendar-footnote a{color:#6834b5}#fastSetup{scroll-margin-top:25px}.fast-calendar button:focus-visible{outline:3px solid #6834b5;outline-offset:3px}@media(max-width:600px){.fast-calendar{padding:20px}.fast-calendar-days,.fast-calendar-weekdays{gap:4px}.fast-calendar-day{min-height:59px;border-radius:11px}.fast-calendar-intro h3{font-size:1.2rem}.calendar-legend{font-size:.67rem;gap:9px}}
:root{--ink:#24202b;--muted:#756c80;--purple:#8854d5;--purple-dark:#6834b5;--lavender:#eee6fa;--paper:#fff;--cream:#f3f2f5;--line:#ebe6f0;--danger:#b43d56;--lime:#a67ce4;--lime-2:#b391e8;--shadow:0 8px 30px #38235b08;font-family:"DM Sans",sans-serif;color:var(--ink);background:var(--cream)}
body{background:radial-gradient(ellipse 90% 300px at 60% 0,#b38bed70,transparent),var(--cream)}
h1,h2,h3,.brand,.primary-btn,.eyebrow,.timer-copy strong,.timer-copy small,.status-pill,.fast-stats small,.schedule-line small,.field span,fieldset legend,.type-option strong,.week-score,.meal-overlay h3,.macro-pill strong,.meal-card h3,.history-item h3,.profile-identity h3,.settings-card h3,.info-dialog h2,.health-card h3,.bmi-ring strong,.bmi-status,.metric-grid strong{font-family:"DM Sans",sans-serif}
button,input,select{font:inherit}button{color:inherit}button svg,.ui-icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #9c72dc;outline-offset:3px}button:disabled{opacity:.6;cursor:wait}
.eyebrow{font-size:.75rem;letter-spacing:.025em;color:var(--muted);font-weight:500}.brand{font-size:1.15rem;font-weight:700;letter-spacing:-.035em}.brand-mark{background:linear-gradient(140deg,#7942d3,#ba9bed);color:#fff;box-shadow:0 6px 18px #8355cf20;border-radius:15px}.brand-mark.small{border-radius:12px;width:35px;height:35px}.avatar{background:#eee5fb;color:var(--purple-dark);border:3px solid #ffffffa0;font-weight:650;width:44px;height:44px}.avatar.big{width:62px;height:62px}
.desktop-rail{width:220px;background:#ffffffdd;border-right:1px solid white;color:var(--ink);padding:32px 22px}.rail-nav{margin-top:48px;gap:9px}.nav-item{color:var(--muted);border-radius:25px;padding:13px 16px;font-weight:550;font-size:.9rem}.nav-item.active,.nav-item:hover{background:var(--lavender);color:var(--purple-dark)}.nav-item.active svg{color:var(--purple)}.rail-user{border-top-color:var(--line)}.rail-user small{color:var(--muted)}.main-stage{margin-left:220px;padding:36px clamp(24px,4vw,64px) 60px}.view{max-width:1080px}.view-head{gap:16px;margin-bottom:24px}.view-head h2{font-size:clamp(1.7rem,3vw,2.2rem);font-weight:650;letter-spacing:-.035em;line-height:1.2}
.week-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;margin:0 0 22px;max-width:620px}.calendar-day{display:grid;justify-items:center;gap:8px;background:#ffffffa8;border-radius:28px;padding:12px 5px 7px;box-shadow:0 4px 0 #ffffff40;font-size:.75rem;color:#645c72}.calendar-day strong{display:grid;place-items:center;position:relative;width:35px;height:35px;border-radius:50%;background:#fff;color:var(--ink);font-size:.94rem;font-weight:600}.calendar-day.today{background:#e3d6f5}.calendar-day.today strong{background:linear-gradient(145deg,#8553d6,#b292e9);color:#fff}.calendar-day.completed strong:after{content:'✓';position:absolute;right:-1px;top:-3px;width:13px;height:13px;display:grid;place-items:center;border-radius:50%;background:var(--purple);color:white;font-size:9px}
.dashboard-grid{grid-template-columns:1.1fr 1fr;gap:18px;align-items:stretch}.timer-card,.stage-card,.next-meal-card,.progress-section,.setup-card,.schedule-card,.profile-card,.settings-card,.meal-card,.nutrition-note,.health-card,.history-item,.home-metric{background:#fff;border:1px solid #ffffffd0;border-radius:25px;box-shadow:var(--shadow);padding:24px;color:var(--ink)}.timer-top p{font-size:.88rem;margin-top:6px}.timer-card .timer-top p{color:var(--muted)}.status-pill{background:var(--lavender);color:var(--purple-dark);font-size:.69rem;font-weight:650;letter-spacing:.015em;padding:6px 10px}.status-pill.light{background:#fff;color:var(--purple-dark)}
.timer-card .info-btn,.round-arrow{display:grid;place-items:center;width:39px;height:39px;border:2px solid #ac80e1;background:white;color:var(--purple-dark);font-weight:500;border-radius:50%;flex-shrink:0}.timer-orbit{width:230px;max-width:100%;margin:14px auto 8px}.timer-orbit svg{filter:none}.timer-orbit circle{stroke-width:11}.timer-card .orbit-track{stroke:#ede5f8}.orbit-progress{stroke:#a779e3}.timer-copy{gap:5px}.timer-copy strong{font-size:2.4rem;font-weight:650;letter-spacing:-.065em;font-variant-numeric:tabular-nums;margin:0}.timer-card .timer-copy small{font-size:.75rem;font-weight:500;letter-spacing:.025em;color:var(--muted)}.timer-card .timer-copy span{font-size:.76rem;color:var(--muted)}.orbit-spark{top:5%;left:calc(50% - 6px);width:12px;height:12px;border:3px solid white;background:var(--purple);box-shadow:none}.fast-stats{gap:27px;margin:4px 0 22px}.timer-card .fast-stats small{font-size:.7rem;color:var(--muted);letter-spacing:.03em;font-weight:500}.fast-stats strong{font-weight:600;font-size:.94rem}.timer-card .stat-divider{background:var(--line)}
.primary-btn{background:linear-gradient(110deg,#7135ca,#b18ce7);color:white;border-radius:999px;min-height:50px;padding:14px 24px;font-weight:600;font-size:.94rem;box-shadow:0 8px 20px #8250ca2b;justify-content:center}.primary-btn.full{justify-content:center}.primary-btn:hover{background:linear-gradient(110deg,#7e44d4,#bc9bea)}.timer-card .text-btn{color:var(--purple-dark);font-size:.83rem;text-underline-offset:3px}
.side-stack{gap:16px}.stage-icon,.health-icon{background:#f0e9fa;color:var(--purple);width:40px;height:40px;border-radius:14px}.section-title-row h3,.stage-card h3,.next-meal-card h3,.schedule-card h3,.health-card h3{font-size:1.08rem;font-weight:650;letter-spacing:-.025em}.stage-card>p:not(.medical-note){font-size:.9rem}.stage-track{background:#eeeaf2;height:8px;margin:16px 0 10px}.stage-track span{background:linear-gradient(90deg,#a378df,#8ccb77)}.medical-note,.fine-print{color:#79727f!important;font-size:.75rem!important;line-height:1.5}.next-meal-card{align-items:center;min-height:130px;gap:12px}.next-meal-card .eyebrow{color:var(--purple-dark)}.next-meal-card p:last-child{color:var(--muted);font-size:.8rem;margin-bottom:0}.progress-section{margin-top:18px}.week-score{padding:8px 14px;background:#eef7eb;color:#43773d;border-radius:30px;font-size:1rem;font-weight:650}.week-day{font-size:.75rem;color:var(--muted)}.bar-wrap{height:68px;background:#f5f2f8;border-radius:12px}.bar-fill{background:#d9cceb}.bar-fill.done{background:linear-gradient(#ac88e3,#8951d7)}
.home-metrics{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:18px}.home-metric{text-align:left;display:grid;gap:9px;cursor:pointer}.home-metric>span{display:flex;gap:8px;align-items:center;color:var(--muted);font-size:.86rem}.home-metric>strong{font-size:1.7rem;font-weight:650;letter-spacing:-.045em}.home-metric>small{color:var(--muted);font-size:.8rem}.home-metric .ui-icon{color:var(--purple)}
.setup-layout{grid-template-columns:1.3fr .8fr;gap:18px}.type-option{grid-template-columns:40px 1fr;align-items:center;padding:16px 12px;border-radius:20px}.type-option .type-symbol{width:40px;height:40px;border-radius:14px;background:#f1ecf8;color:var(--purple)}.type-option strong{font-size:.9rem;font-weight:600}.type-option small{font-size:.75rem;color:var(--muted)}.type-option.selected{background:#f6f1fc;border-color:#ab83dd;box-shadow:0 0 0 1px #ab83dd}.chip{border:0;background:#f2eff7;border-radius:24px;padding:12px 17px;color:#696073;font-size:.9rem;font-weight:600}.chip.selected{background:var(--purple);color:white}.field>span:first-child,fieldset legend{color:#655c72;font-size:.85rem;font-weight:500}.field input,.field select{border:1px solid transparent;border-radius:22px;padding:14px 17px;background:#f3f0f8;color:var(--ink);font-size:1rem;min-width:0;min-height:50px}.field input::placeholder{color:#94899f}.field input:focus,.field select:focus{border-color:#a479dc;box-shadow:0 0 0 3px #a479dc15}.reminder-box{background:#f2edf9;border-radius:18px;padding:16px}.reminder-box>span{color:var(--purple)}.schedule-card{background:#eee5fa;position:static}.schedule-card .eyebrow,.schedule-line small{color:#756583}.schedule-dot{background:var(--purple);box-shadow:0 0 0 5px #ffffffb0}.schedule-dot.end{background:#81be71}.schedule-path{border-left-color:#c5acdf;height:52px}.schedule-line strong{font-weight:600}.form-error:empty{display:none}
.macro-pill{background:white;border-radius:20px;padding:12px 18px}.macro-pill strong{color:var(--purple-dark);font-size:1.3rem}.macro-pill small{color:var(--muted)}.featured-meal{display:grid;grid-template-columns:1fr 1fr;background:white;color:var(--ink);min-height:0;border-radius:26px}.featured-meal:after{display:none}.featured-meal img{position:static;min-height:280px;height:100%;object-fit:cover}.meal-overlay{width:auto;min-height:0;padding:30px;align-items:flex-start;justify-content:center}.meal-overlay h3{font-size:2rem;line-height:1.15;letter-spacing:-.04em;margin:16px 0 0;font-weight:650}.meal-overlay p{color:var(--muted);font-size:.9rem}.macro-row{gap:12px;width:100%;margin-top:12px}.macro-row>span{flex:1;padding:12px 8px;border-radius:17px;background:#fcf0e2;color:#88643b;font-size:.75rem;text-align:center}.macro-row>span:nth-child(2){background:#eef7e9;color:#4f7840}.macro-row>span:nth-child(3){background:#eee5fa;color:#7854a5}.macro-row strong{color:inherit;font-size:1.2rem;font-weight:650}.meal-window-strip{border:0;border-radius:23px;padding:20px 24px;margin:16px 0;display:flex}.meal-window-strip div{display:grid;gap:5px}.meal-window-strip span{font-family:inherit;font-size:1.2rem;font-weight:650}.meal-window-strip small{font-size:.8rem}.meal-card{padding:20px}.meal-emoji{display:grid;place-items:center;width:42px;height:48px;border-radius:15px;background:#f3eef9;color:var(--purple);flex-shrink:0}.meal-card small{color:var(--purple-dark);font-size:.65rem;font-weight:600}.meal-card h3{font-size:.98rem}.meal-card p{font-size:.78rem}.nutrition-note{margin-top:16px}.nutrition-note p{font-size:.9rem}
.history-list{gap:12px}.history-icon{width:46px;height:46px;border-radius:16px;background:#eee5fa;color:var(--purple)}.history-item h3{font-size:1rem}.history-item p{font-size:.83rem}.history-status small{color:#59834e}.empty-state{border:0;border-radius:26px;padding:54px 24px}.empty-state strong{font-size:1.15rem;color:var(--ink)}.empty-state p{font-size:.9rem}.empty-state .primary-btn{margin-top:12px}
.profile-grid{grid-template-columns:1.1fr 1fr;gap:18px}.profile-identity p{font-size:.85rem;overflow-wrap:anywhere}.profile-side-stack{gap:18px}.unit-input input{padding-right:48px}.unit-input b{color:var(--muted);font-weight:500}.counter-input{background:#f3f0f8;border-radius:23px;overflow:hidden}.counter-input button{border:0;background:transparent;color:var(--purple-dark)}.health-card .eyebrow{color:var(--muted)}.bmi-ring{background:conic-gradient(#b18be4 var(--bmi-progress),#ede4fa 0)}.bmi-ring:before{background:white}.bmi-ring small{color:var(--muted)}.bmi-ring strong{color:var(--ink);font-size:1.9rem}.bmi-status{background:#eee7f9;color:var(--purple-dark);font-weight:600}.bmi-summary p{color:var(--muted)}.metric-grid{border-color:var(--line)}.metric-grid>div{border-color:var(--line)}.metric-grid small{color:var(--muted)}.metric-grid strong{font-weight:600}.goal-track{background:#eeeaf2}.goal-track span{background:linear-gradient(90deg,#a378df,#8ccb77)}.goal-progress>small{color:var(--muted)}.health-card .medical-note{border-color:var(--line)}.setting-row{padding:18px 0}.setting-row strong{font-size:.9rem;font-weight:600}.setting-row b{color:var(--purple-dark);font-weight:600}.setting-row.danger strong,.setting-row.danger b{color:var(--danger)}
.auth-screen{background:var(--cream)}.auth-art{color:var(--ink);background:radial-gradient(ellipse at 60% 40%,#bd9ef4,transparent 65%),linear-gradient(145deg,#844dd8,#e8ddf7)}.auth-art:before{border-color:#ffffff90;box-shadow:0 0 0 26px #ffffff10,0 0 0 52px #ffffff08;background:conic-gradient(from 20deg,#ffffffa0 0 74%,#ffffff15 74%)}.auth-art:after{-webkit-text-stroke-color:#ffffff60}.auth-art small{color:#514061}.auth-card{background:transparent;max-width:580px;align-self:center;justify-self:center;padding:55px}.auth-card h1{font-size:2.8rem;line-height:1.1;font-weight:650;letter-spacing:-.045em}.auth-card h1 em{color:var(--purple-dark)}.auth-tabs{background:white;border:4px solid white;border-radius:30px;gap:0;margin:24px 0 16px}.auth-tab{flex:1;border:0;border-radius:24px;padding:12px;font-weight:500}.auth-tab.active{background:var(--lavender);color:var(--purple-dark)}#authForm{background:white;padding:24px;border-radius:26px}.fine-print{text-align:center}.info-dialog{background:white;color:var(--ink);border-radius:28px}.info-dialog::backdrop{background:#2c1d4459}.dialog-close{background:#f0eaf9}.phase-list span{color:var(--purple-dark)}.toast{bottom:105px;background:#27212f;border:0;border-radius:24px;font-size:.88rem;max-width:calc(100% - 32px);width:max-content}
@media(max-width:1100px){.meal-grid{grid-template-columns:1fr}.profile-grid{grid-template-columns:1fr}.profile-side-stack{grid-template-columns:1fr 1fr}.setup-layout{grid-template-columns:1fr}}
@media(max-width:900px){body{background:radial-gradient(ellipse 130% 310px at 50% -40px,#a57ae9b8,transparent 100%),var(--cream)}.main-stage{margin:0;padding:22px 20px 118px}.view,.mobile-header{max-width:650px;margin-inline:auto}.mobile-header{margin-bottom:27px}.mobile-header .brand{font-size:1.05rem}.view-head h2{font-size:1.75rem}.week-strip{max-width:none;gap:7px}.bottom-nav{left:50%;right:auto;transform:translateX(-50%);bottom:max(15px,env(safe-area-inset-bottom));width:calc(100% - 32px);max-width:470px;gap:3px;padding:8px;background:#ffffffed;border:1px solid white;border-radius:36px;box-shadow:0 9px 35px #44305e20}.bottom-nav .nav-item{flex:1;min-width:0;gap:4px;padding:9px 4px;font-size:.68rem;border-radius:24px;color:var(--muted)}.bottom-nav .nav-item.active{background:#eee6fa;color:var(--purple-dark)}.bottom-nav .nav-item svg{width:21px;height:21px}.icon-btn{background:#fff;color:var(--purple-dark);border-radius:50%}.auth-screen{display:block;background:radial-gradient(ellipse 130% 350px at 50% -60px,#9c6ae9,transparent),var(--cream)}.auth-art{display:flex;background:none;padding:34px 24px 0;max-width:490px;margin:auto}.auth-art:after,.auth-art:before{display:none}.auth-card{padding:35px 24px;max-width:490px;margin:auto}.auth-card h1{font-size:2.1rem}.auth-card>.eyebrow{display:none}.profile-side-stack{grid-row:auto}}
@media(max-width:620px){.dashboard-grid{display:grid;grid-template-columns:1fr;gap:14px}.timer-card,.stage-card,.next-meal-card,.progress-section,.setup-card,.schedule-card,.profile-card,.settings-card,.meal-card,.nutrition-note,.health-card,.home-metric{padding:20px;border-radius:24px}.timer-orbit{width:205px;margin-block:12px 5px}.timer-copy strong{font-size:2.1rem}.timer-copy span{font-size:.72rem}.fast-stats{margin-bottom:17px}.side-stack{gap:14px;margin-top:0}.profile-side-stack{grid-template-columns:1fr}.profile-form-grid{grid-template-columns:1fr 1fr;gap:0 10px}.profile-form-grid .field-wide{grid-column:1/-1}.featured-meal{grid-template-columns:1fr;min-height:0}.featured-meal img{height:210px;min-height:0}.meal-overlay{min-height:0;width:100%;padding:22px}.meal-overlay h3{font-size:1.65rem}.meal-window-strip i{display:block}.macro-pill{display:block;padding:10px 12px}.macro-pill strong{font-size:1.05rem}.macro-pill small{font-size:.62rem}.history-item{padding:18px;gap:12px}.history-status{display:flex;gap:12px;align-items:center}.history-status strong{font-size:.9rem}.home-metrics{gap:12px}.home-metric>strong{font-size:1.45rem}.calendar-day{font-size:.69rem;padding-top:10px}.calendar-day strong{width:31px;height:31px}.view-head .eyebrow{font-size:.72rem}.stage-card .medical-note{margin-bottom:0}}
@media(max-width:370px){.main-stage{padding-inline:14px}.calendar-day strong{width:27px;height:27px}.week-strip{gap:4px}.profile-form-grid{grid-template-columns:1fr}.profile-form-grid .field-wide{grid-column:auto}.home-metric{padding:16px}.bmi-summary{grid-template-columns:95px 1fr;gap:12px}.bmi-ring{width:95px}}
.primary-btn,.primary-btn:hover{background:linear-gradient(110deg,#7135ca,#8a5ec3)}
.history-icon .ui-icon{width:22px;height:22px}
.avatar{overflow:hidden}.avatar img{width:100%;height:100%;object-fit:cover;display:block}
.profile-details{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:24px 0}.profile-details div{min-width:0}.profile-details dt{color:var(--muted);font-size:.78rem;margin-bottom:5px}.profile-details dd{margin:0;font-weight:600;font-size:.95rem}
.edit-profile-card{max-width:660px;margin:0 auto}.avatar-editor{display:flex;align-items:center;gap:22px;margin-bottom:12px}.avatar-editor .avatar{width:90px;height:90px;font-size:2rem}.upload-avatar{display:inline-block;padding:12px 18px;border-radius:24px;background:var(--lavender);color:var(--purple-dark);cursor:pointer;font-size:.9rem;font-weight:600}.avatar-file{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}.avatar-editor:focus-within .upload-avatar{outline:2px solid var(--purple)}.avatar-editor .text-btn{margin:10px 0 0;color:var(--muted);font-size:.8rem}.avatar-hint{font-size:.8rem;color:var(--muted);margin-bottom:26px}#profileEditView #profileForm>.primary-btn{width:100%}
.timer-orbit::after{content:"";position:absolute;inset:6.36%;border:2px solid #a779e3;border-radius:50%;opacity:0;pointer-events:none}
.timer-orbit.is-active::after{animation:fasting-ring-pulse 3.2s ease-in-out infinite}
.timer-orbit.is-active .orbit-spark{box-shadow:0 0 0 4px #a779e322,0 0 13px #a779e377}
@keyframes fasting-ring-pulse{0%,100%{opacity:.15;transform:scale(1);box-shadow:0 0 0 0 #a779e300}50%{opacity:.65;transform:scale(1.045);box-shadow:0 0 18px 3px #a779e329}}
@media(prefers-reduced-motion:reduce){.timer-orbit.is-active::after{animation:none;opacity:.3;transform:none}}
