@import url('assets/icons.css');
:root{--bg:#f8f8fc;--surface:#fff;--ink:#1d213c;--muted:#676c81;--line:#e4e5ee;--soft:#f0f1f7;--yellow:#ffe14d;--blue:#3356e6;--radius:24px;--sidebar:250px;color-scheme:light}
*{box-sizing:border-box}html{min-width:320px;scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;border:0;background:none}button,a{touch-action:manipulation}button:disabled{cursor:default;opacity:.48}a{color:inherit;text-decoration:none}a:hover{color:var(--blue)}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid var(--blue);outline-offset:4px}h1,h2,h3,p{margin:0}img{display:block;max-width:100%;object-fit:contain}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;top:12px;inset-inline-start:12px;padding:12px 20px;z-index:100;background:var(--ink);color:white;border-radius:12px;transform:translateY(-160%)}.skip-link:focus{transform:translateY(0)}.icon{display:inline-block;flex-shrink:0;width:23px;height:23px;background:currentColor;mask:var(--icon) center/contain no-repeat;-webkit-mask:var(--icon) center/contain no-repeat;vertical-align:middle}.blue-text{color:var(--blue)}.muted{color:var(--muted);}.lead{color:var(--muted);margin-top:12px}.wordmark{display:inline-flex;gap:8px;align-items:center;color:var(--ink)}.wordmark span{display:inline-grid;place-items:center;width:27px;height:27px;border-radius:50%;background:var(--yellow);transform:rotate(-18deg);margin-top:-13px}.eyebrow{color:var(--muted)}.btn{min-height:50px;padding:13px 20px;display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid transparent;border-radius:13px;transition:transform .16s,background .16s,box-shadow .16s}.btn:hover:not(:disabled){transform:translateY(-2px)}.btn:active:not(:disabled){transform:translateY(0)}.btn-yellow{background:var(--yellow);color:var(--ink)}.btn-ink{background:var(--ink);color:white}.btn-white{background:white;color:var(--ink)}.btn-outline{border-color:currentColor;background:transparent}.btn-soft{background:var(--soft);color:var(--ink)}.btn-danger{background:#ffe7e5;color:#9c302e}.text-button{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:7px 0;}.text-button:hover{color:var(--blue)}.icon-button{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:50%}.icon-button:hover{background:var(--soft)}.avatar{width:43px;height:43px;flex-shrink:0;border-radius:50%;background:#dde5ff;color:#384e89;display:grid;place-items:center}.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:28px;min-width:0}.panel-top,.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.panel-top>span:first-child{display:flex;align-items:center;gap:8px}.section-heading{margin-bottom:19px}.tag{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:9px;background:#ffffffb3;}.tag .icon{height:16px;width:16px}.track{height:6px;border-radius:8px;overflow:hidden;background:var(--line)}.track>span{display:block;height:100%;border-radius:inherit;background:var(--ink);transition:width .3s}.spinner{display:inline-block;width:28px;height:28px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--blue);animation:spin .8s linear infinite}.initial-loading,.page-loading{min-height:75dvh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:24px;color:var(--muted)}.initial-loading .wordmark{margin-bottom:10px}.error-panel{margin-top:50px}.error-panel .btn{margin-top:28px}.form-stack{display:flex;flex-direction:column;gap:12px}input,textarea,select{width:100%;min-width:0;padding:14px 16px;border:1px solid #ced0df;border-radius:12px;background:var(--surface);color:var(--ink);min-height:52px;}input::placeholder,textarea::placeholder{color:#818598;opacity:1}textarea{resize:vertical}input:focus,textarea:focus,select:focus{border-color:var(--blue)}.form-error{color:#a53438;background:#fff0ee;padding:11px 14px;border-radius:10px;}.form-hint{color:var(--muted);}.form-two{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-two>div{display:grid;gap:10px}.form-stack>.btn{margin-top:12px}.back-link{display:inline-flex;gap:7px;align-items:center;color:var(--muted)}
/* Email sign-in has the same warm, spacious Sunroom language as the diary. */
.auth-layout{min-height:100dvh;display:grid;grid-template-columns:1.04fr 1fr;background:white}.auth-story{background:#ffe76c;padding:52px 56px;display:flex;flex-direction:column;min-height:100dvh;overflow:hidden;position:relative}.auth-story-copy{position:relative;z-index:1;margin-top:100px}.auth-story h1{margin-top:22px}.auth-story-copy>p{margin-top:26px;}.auth-story .eyebrow{color:#4f4932}.auth-art{position:relative;flex:1;min-height:285px;max-height:390px;margin-top:24px}.auth-salad{width:350px;height:290px;position:absolute;inset-inline-start:35px;top:10px;transform:rotate(-9deg);filter:drop-shadow(0 16px 8px #a3872830)}.auth-mascot{position:absolute;width:195px;height:195px;inset-inline-end:0;bottom:-3px;transform:rotate(6deg)}.auth-sticker{position:absolute;inset-inline-start:0;bottom:20px;padding:13px 22px;border:1px solid var(--ink);border-radius:16px;transform:rotate(-6deg);background:white;box-shadow:3px 3px 0 var(--ink)}.story-footer{position:relative;z-index:1;margin-top:30px}.auth-main{padding:52px 60px;display:flex;flex-direction:column;min-height:100dvh;position:relative}.auth-main>.back-link{align-self:flex-end}.auth-form-wrap{max-width:435px;width:100%;margin:auto;padding-block:65px}.auth-welcome{display:flex;align-items:center;gap:8px;color:var(--blue);margin-bottom:25px}.auth-form-wrap .lead{margin-top:18px}.auth-form-wrap .form-stack{margin-top:32px}.auth-submit{width:100%;margin-top:9px!important;min-height:58px;justify-content:space-between;padding-inline:22px}.auth-form-wrap .form-hint{margin-top:18px}.auth-privacy{color:var(--muted);margin-top:42px;max-width:360px}.auth-privacy a{text-decoration:underline;text-underline-offset:3px}.code-input{max-width:100%}.code-input::placeholder{color:#b6b9c8}.auth-secondary{display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;margin-top:17px}
/* Desktop shell; navigation becomes a safe-area-aware bar on phones. */
.sidebar{width:var(--sidebar);position:fixed;inset-block:0;inset-inline:0 auto;background:white;border-inline-end:1px solid var(--line);display:flex;flex-direction:column;padding:37px 21px 22px;z-index:15}.sidebar>.wordmark{padding:0 16px 43px}.workspace-label{color:var(--muted);padding:0 15px 17px}.app-nav{display:grid;gap:8px}.nav-item{display:flex;align-items:center;gap:13px;min-height:54px;padding:13px 15px;border-radius:13px;color:var(--muted);white-space:nowrap}.nav-item:hover{background:var(--soft);color:var(--ink)}.nav-item.active{background:var(--yellow);color:var(--ink);}.sidebar-bottom{margin-top:auto;padding-top:28px}.sidebar-mascot{text-align:center;margin-bottom:24px}.sidebar-mascot img{width:148px;height:148px;margin:auto}.sidebar-mascot p{color:var(--muted);margin-top:8px}.sidebar-mascot b{color:var(--ink);}.profile-link{border-top:1px solid var(--line);padding-top:20px;display:flex;align-items:center;gap:11px}.profile-link>span:nth-child(2){flex:1;min-width:0;display:grid;gap:2px}.profile-link b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-link small{color:var(--muted);}.profile-link>.icon{width:21px;height:21px;color:var(--muted)}.app-shell{margin-inline-start:var(--sidebar)}.app-header{height:86px;border-bottom:1px solid var(--line);background:white;padding:0 40px;display:flex;align-items:center;justify-content:space-between;gap:20px}.header-title{color:var(--muted)}.header-actions{display:flex;align-items:center;gap:22px}.sync-status{min-height:44px;display:flex;align-items:center;gap:8px;color:var(--muted);padding:7px 3px}.sync-status .icon{width:17px;height:17px}.app-shell main{max-width:1540px;padding:37px 40px 45px;margin:auto;outline:none}.app-footer{max-width:1540px;margin:auto;padding:0 40px 28px;display:flex;justify-content:space-between;gap:20px;color:var(--muted);}.app-footer a{display:flex;align-items:center;gap:5px}.app-footer .icon{height:15px;width:15px}.mobile-nav{display:none}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:30px}.date-caption{color:var(--muted);margin-bottom:7px;text-transform:capitalize}.page-heading .lead{margin-top:12px}.day-picker{display:flex;align-items:center;gap:5px;flex-shrink:0}.date-field{display:flex;align-items:center;gap:6px;background:white;border:1px solid var(--line);border-radius:12px;padding-inline:12px}.date-field>.icon{height:19px;width:19px}.date-field input{padding:10px 0;border:0;min-height:44px;width:133px;background:transparent}.welcome-panel{position:relative;overflow:hidden;margin-top:30px;padding:55px;min-height:530px}.welcome-panel h1{margin-top:24px}.welcome-panel .lead{max-width:680px;margin-top:23px;position:relative;z-index:1}.welcome-panel>.muted{margin-top:24px;max-width:520px}.welcome-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:27px;position:relative;z-index:1}.welcome-panel>img{width:220px;height:220px;margin-inline-start:auto;margin-top:-80px;transform:rotate(6deg)}
/* Sunroom: yellow balance, blue AI, water and interval cards. */
.sun-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:22px}.nutrition-panel{grid-column:span 8;background:#ffe76c;border:1.5px solid var(--ink);box-shadow:3px 3px 0 var(--ink);padding:28px 30px;position:relative;overflow:hidden}.nutrition-center{display:grid;grid-template-columns:1.15fr 1fr;align-items:center;min-height:215px}.balance-label{margin-top:15px}.balance-number{display:block;white-space:nowrap}.balance-note{margin-top:5px;max-width:290px}.plate-stage{position:relative;display:grid;place-items:center;height:215px}.hero-plate{position:relative;width:280px;height:224px;transform:rotate(-9deg);filter:drop-shadow(0 13px 8px #ad872c33)}.plate-spark{position:absolute;top:3px;inset-inline-end:-2px;color:var(--blue)}.calorie-math{display:flex;gap:22px;flex-wrap:wrap;margin:12px 0 26px}.calorie-math .icon{width:16px;height:16px}.macros{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.macro>div:first-child{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:5px;margin-bottom:9px}.nutrition-panel .track{background:#1d213c26}.nutrition-footer{display:flex;gap:12px;margin-top:28px}.ai-nudge{grid-column:span 4;background:var(--blue);border-color:var(--blue);color:white;position:relative;overflow:hidden;padding:28px}.ai-nudge .tag{background:#ffffff26}.ai-nudge h2{margin:37px 0 17px;position:relative;z-index:1}.ai-nudge p{color:#edf0ff;max-width:240px;position:relative;z-index:1;}.ai-nudge .btn{position:relative;z-index:2;margin-top:30px;padding-inline:16px}.nudge-apple{position:absolute;width:150px;height:150px;inset-inline-end:-38px;bottom:-14px;transform:rotate(12deg)}.water-panel{grid-column:1/5;background:#d9f2fa;border-color:#badbe4}.water-main{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:20px}.water-main strong{white-space:nowrap}.water-main p{color:#536d7a;margin-top:5px}.water-glasses{display:grid;grid-template-columns:repeat(4,13px);gap:6px}.glass{width:13px;height:24px;border:1.5px solid #5195b3;border-top:0;border-radius:0 0 4px 4px;background:#fff5}.glass.filled{background:#5aabd2;border-color:#5aabd2}.water-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:20px;align-items:center}.btn-water{border-color:#9bbecb;background:#ffffff70;min-height:44px;padding:9px 14px;}.fasting-panel{grid-column:5/9;background:#e8e0fb;border-color:#d7ccea}.fasting-panel .panel-top .text-button{min-height:25px;padding:0}.fasting-panel .panel-top .text-button .icon{height:16px;width:16px}.fasting-display{display:flex;align-items:center;gap:15px;margin-top:22px}.timer-orbit{width:48px;height:48px;border:1.5px solid #8b74b8;border-radius:50%;display:grid;place-items:center;color:#6c579f;flex-shrink:0}.fasting-display strong{white-space:nowrap;}.fasting-display p{color:#655877;margin-top:4px}.fasting-track{margin-top:20px;background:#cfc4e2;height:5px}.fasting-track>span{background:#8a73b8}.fasting-control{margin-top:12px;}.fasting-control .icon{width:18px;height:18px}.support-panel{grid-column:9/13}.support-panel p{color:var(--muted);margin:19px 0 17px}.support-panel .btn{width:100%;padding-inline:12px}.food-list{grid-column:1/-1}.food-row{display:flex;align-items:center;gap:16px;padding:17px 0;width:100%;text-align:start}.food-row+.food-row{border-top:1px solid var(--line)}.food-art{width:64px;height:64px;flex-shrink:0;border-radius:14px;background:var(--soft);display:grid;place-items:center;overflow:hidden;color:#85899c}.food-art img{width:64px;height:64px;object-fit:cover}.food-art>.icon{width:29px;height:29px}.food-description{flex:1;min-width:0;display:grid;gap:5px;overflow-wrap:anywhere}.food-description small{color:var(--muted);}.food-calories{display:grid;gap:3px;text-align:end;flex-shrink:0}.food-calories small{color:var(--muted)}.remove-entry{color:var(--muted)}.remove-entry .icon{width:18px;height:18px}.add-meal-line{width:100%;border:1px dashed #c7cad8;border-radius:13px;padding:15px;min-height:50px;display:flex;align-items:center;justify-content:center;gap:8px;color:var(--muted);margin-top:15px}.add-meal-line:hover{border-color:var(--blue);color:var(--blue)}.habits-panel{grid-column:1/-1}.habit-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.habit-card{display:flex;align-items:center;gap:12px;padding:12px;background:var(--soft);border-radius:16px;text-align:start}.habit-card:hover{background:#e8eaf4}.habit-card>img{width:54px;height:54px;flex-shrink:0}.habit-card>span:not(.icon){display:grid;gap:4px;flex:1;}.habit-card>.icon{width:18px;height:18px}.empty-state{padding:35px 12px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:12px}.empty-state>.icon{color:#a7aeaa;width:35px;height:35px}.empty-state p{max-width:490px;color:var(--muted);}.empty-state .btn{margin-top:8px}.food-page-summary{display:grid;grid-template-columns:1fr 1fr 1.5fr;gap:20px;padding:10px 0 32px}.food-page-summary>div:not(.food-page-actions){display:grid;gap:8px;color:var(--muted)}.food-page-summary strong{color:var(--ink);}.food-page-summary strong small{color:var(--muted)}.food-page-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px}.diary-panel{min-height:350px}
/* Real messages and social records share the native app's data formats. */
.chat-panel{padding:0 28px 20px;display:flex;flex-direction:column;min-height:560px}.chat-messages{padding:27px 0;display:flex;flex-direction:column;gap:22px;max-height:60dvh;min-height:360px;overflow-y:auto;overscroll-behavior:contain;scroll-padding:24px}.chat-message{max-width:84%;border-radius:20px;padding:18px 21px;overflow-wrap:anywhere}.user-message{align-self:flex-end;background:#fff0a4;border-end-end-radius:5px}.assistant-message{align-self:flex-start;background:var(--soft);border-end-start-radius:5px}.message-author{margin-bottom:7px;display:flex;align-items:center;gap:6px}.message-author .icon{width:17px;height:17px}.message-text{white-space:pre-wrap}.chat-message>small{display:block;color:var(--muted);margin-top:8px}.chat-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}.chat-empty{margin:auto;padding:10px 0 20px;text-align:center;display:flex;flex-direction:column;align-items:center}.chat-empty img{width:140px;height:140px;margin-bottom:17px}.chat-empty p{color:var(--muted);max-width:480px;margin-top:12px}.chat-prompts{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:25px}.chat-prompts .btn{min-height:44px}.chat-compose{display:flex;gap:12px;align-items:flex-end;margin-top:auto;border-top:1px solid var(--line);padding-top:20px}.chat-compose textarea{min-height:54px;max-height:160px;resize:none;background:var(--bg);border-color:var(--line)}.chat-compose .btn{min-height:54px;width:54px;flex-shrink:0;padding:0}.chat-note{color:var(--muted);text-align:center;margin-top:14px;}.chat-pending{color:var(--muted);padding:12px 0 20px;display:flex;align-items:center;gap:9px}.chat-panel>.form-error{margin:10px 0 15px}.connect-social{padding:25px 20px;display:flex;align-items:center;flex-direction:column;text-align:center;gap:17px}.connect-social p{max-width:550px;color:var(--muted);}.connect-social img{width:165px;height:165px}.friend-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.friend-card{padding:23px;background:var(--soft);border-radius:18px}.friend-card h3{margin-top:16px}.friend-card p{color:var(--muted);margin-top:9px}.friend-card .btn{margin-top:17px;background:white}.clubs-heading{margin-top:38px}.clubs-grid{display:grid;gap:15px}.club-card{display:grid;grid-template-columns:50px minmax(0,1fr) auto;gap:17px;align-items:center;padding:22px;border:1px solid var(--line);border-radius:18px}.club-icon{height:50px;width:50px;border-radius:14px;background:#fff2ba;display:grid;place-items:center}.club-card p{color:var(--muted);margin:7px 0}.progress-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin-bottom:24px}.progress-stats .panel{display:flex;flex-direction:column;align-items:flex-start;gap:15px;}.stat-yellow{background:#ffed8b;border-color:#eadc95}.stat-blue{background:#d9f2fa;border-color:#badbe4}.stat-lilac{background:#e8e0fb;border-color:#d7ccea}.chart-panel{margin-bottom:24px}.weekly-chart{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:22px;align-items:end;padding:10px 12px 0}.chart-column{display:flex;align-items:center;flex-direction:column;gap:12px;color:var(--muted)}.bar-number{color:var(--ink)}.bar-space{height:190px;width:100%;display:flex;align-items:flex-end;justify-content:center}.chart-bar{width:100%;max-width:70px;background:#d9def5;border-radius:10px 10px 3px 3px;min-height:3px}.chart-bar.is-today{background:var(--yellow)}.chart-caption{border-top:1px solid var(--line);margin-top:26px;padding-top:19px;display:flex;gap:8px;align-items:center;color:var(--muted);}.chart-caption .icon{width:19px;height:19px}.profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}.profile-stack{display:grid;gap:24px;min-width:0}.profile-stack>.feature-panel{margin:0}.account-panel h2{overflow-wrap:anywhere;margin:19px 0}.account-panel>p{color:var(--muted);}.connected-state{display:flex;align-items:center;gap:8px;background:#edf5ec;color:#396444;border-radius:12px;padding:13px;margin:24px 0 14px}.account-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:25px}.goals-panel>p{margin-top:12px}.goals-panel .form-stack{margin-top:25px}.goals-panel .form-stack>label:not(:first-child){margin-top:7px}.profile-grid .form-two{margin-block:8px}
/* Dialogs keep every important action reachable on a narrow screen. */
dialog{width:min(570px,calc(100% - 32px));max-height:calc(100dvh - 40px);padding:0;border:1px solid var(--line);border-radius:24px;color:var(--ink);background:white;box-shadow:0 30px 100px #1d213c25;overscroll-behavior:contain}dialog::backdrop{background:#1d213c70;backdrop-filter:blur(4px)}.modal-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px 26px 12px}.modal-header .icon-button{margin-inline-end:-8px}.modal-body{padding:8px 26px 28px}.modal-body>.lead{margin:0 0 21px;}.modal-body .form-stack{gap:11px}.modal-body .form-stack>label:not(:first-child){margin-top:6px}.modal-body .form-two{margin-top:7px}.modal-body .form-hint{margin-top:4px}.modal-footer{display:flex;gap:12px;margin-top:24px;justify-content:flex-end}.modal-body .btn{min-width:110px}.modal-tabs{display:flex;gap:7px;padding:5px;background:var(--soft);border-radius:13px;margin-bottom:24px}.modal-tabs button{flex:1;padding:10px;border-radius:9px;min-height:44px}.modal-tabs .active{background:white;box-shadow:0 2px 4px #1d213c0d}.file-label{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;border:1px dashed #bcc2d3;border-radius:15px;padding:23px 15px;background:var(--bg);cursor:pointer;color:var(--muted);min-height:130px;text-align:center}.file-label img{max-height:170px;width:auto;border-radius:10px}.file-label .icon{width:30px;height:30px}.file-label input{position:absolute;width:1px;height:1px;opacity:0;min-height:0;pointer-events:none}.file-label:focus-within{outline:3px solid var(--blue);outline-offset:3px}.analysis-items{margin:18px 0;padding:17px;background:var(--soft);border-radius:13px;}.analysis-item{display:flex;justify-content:space-between;gap:16px;padding:7px 0}.analysis-notes{color:var(--muted);margin-block:12px;}.consent-list{display:grid;gap:14px;}.consent-list>div{display:flex;align-items:flex-start;gap:12px;background:var(--soft);padding:15px;border-radius:13px}.consent-list .icon{margin-top:3px}.consent-list b{display:block;margin-bottom:3px}.consent-note{color:var(--muted);margin-top:18px}.consent-note a{text-decoration:underline}.danger-note{background:#fff1ed;border-radius:12px;padding:15px;margin-top:15px;color:#8c4841;}.plan-options{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-block:20px}.plan-options label{cursor:pointer;padding:15px;border:1px solid var(--line);border-radius:13px;text-align:center}.plan-options input{width:auto;min-height:0;margin-inline-end:7px;accent-color:var(--blue)}.plan-options label:has(input:checked){background:#fff2aa;border-color:#d4b73e}#toast{position:fixed;inset:auto;z-index:100;bottom:28px;inset-inline-start:calc(50% + var(--sidebar)/2);transform:translate(-50%,20px);padding:14px 22px;border-radius:15px;background:var(--ink);color:white;box-shadow:0 8px 30px #1d213c23;max-width:calc(100% - 32px);pointer-events:none;opacity:0;transition:opacity .2s,transform .2s}#toast.visible{opacity:1;transform:translate(-50%,0)}
@media(min-width:1500px){.nutrition-center{min-height:230px}.nutrition-panel{padding:31px 34px}.hero-plate{width:310px;height:240px}}
@media(max-width:1250px){:root{--sidebar:220px}.sidebar{padding-inline:15px}.sidebar>.wordmark{padding-inline:14px}.app-header{padding-inline:28px}.app-shell main{padding-inline:28px}.app-footer{padding-inline:28px}.page-heading{align-items:flex-start}.day-picker{gap:0}.date-field{padding-inline:9px}.date-field input{width:119px;}.nutrition-panel{padding:24px}.nutrition-center{grid-template-columns:1.1fr 1fr}.hero-plate{width:220px;height:195px}.ai-nudge{padding:24px}.panel{padding:24px}.sun-grid{gap:18px}.water-panel{grid-column:1/7}.fasting-panel{grid-column:7/13}.support-panel{grid-column:1/-1;display:flex;align-items:center;gap:25px}.support-panel p{flex:1;margin:0}.support-panel .btn{width:auto;flex-shrink:0}.habit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.food-page-summary{grid-template-columns:1fr 1fr}.food-page-actions{grid-column:1/-1;justify-content:flex-start}.friend-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.auth-story{padding:42px 38px}.auth-main{padding:42px}.auth-story-copy{margin-top:85px}.auth-art{min-height:250px}.auth-salad{width:280px;inset-inline-start:0}.auth-mascot{width:150px;height:150px;inset-inline-end:-20px}.auth-sticker{bottom:9px}.profile-grid{grid-template-columns:1fr}.progress-stats{gap:17px}.progress-stats .panel{padding:22px}}
@media(max-width:1024px){:root{--sidebar:90px}.sidebar{padding:30px 15px 20px}.sidebar>.wordmark{padding:0 0 39px;justify-content:center;gap:0}.sidebar>.wordmark:before{content:'m';}.sidebar>.wordmark span{display:none}.workspace-label,.sidebar-mascot,.profile-link>span:nth-child(2),.profile-link>.icon{display:none}.nav-item{justify-content:center;padding:14px}.app-nav .nav-item>span:not(.icon){display:none}.profile-link{justify-content:center;padding-top:20px}.sidebar-bottom{padding-top:25px}.app-header{height:77px}.sun-grid{gap:20px}.nutrition-panel{grid-column:1/-1}.ai-nudge{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;column-gap:25px;padding:25px}.ai-nudge .panel-top{grid-column:1/-1}.ai-nudge h2{margin:21px 0 10px}.ai-nudge h2 br{display:none}.ai-nudge p{grid-column:1;max-width:100%;margin-bottom:7px}.ai-nudge .btn{grid-column:2;grid-row:2/4;justify-self:start;align-self:center;margin:0}.nudge-apple{width:125px;height:125px;inset-inline-end:-15px;bottom:-35px}.support-panel{display:block}.support-panel p{margin:16px 0}.support-panel .btn{width:auto}.hero-plate{width:260px;height:215px}.nutrition-center{min-height:220px}.sun-grid .support-panel{display:flex}.sun-grid .support-panel .panel-top{flex-shrink:0}.sun-grid .support-panel .btn{white-space:nowrap}.auth-layout{grid-template-columns:.92fr 1fr}.auth-story{padding:35px 28px}.auth-main{padding:35px}.auth-art{min-height:260px}.auth-mascot{inset-inline-end:-20px;bottom:15px}.auth-sticker{bottom:0;padding:10px 15px}}
@media(max-width:767px){:root{--sidebar:0px}.sidebar{display:none}.app-shell{margin-inline-start:0}.app-header{height:73px;padding:0 22px}.header-title{color:var(--ink);}.header-actions{gap:15px}.sync-status .icon{width:17px;height:17px}.avatar{width:39px;height:39px;}.app-shell main{padding:26px 20px 30px}.app-footer{padding:0 20px 110px;}.mobile-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;bottom:0;inset-inline-start:0;inset-inline-end:0;z-index:20;background:#ffffffed;backdrop-filter:blur(15px);border-top:1px solid var(--line);padding:8px 8px max(10px,env(safe-area-inset-bottom));box-shadow:0 -7px 20px #1d213c05}.mobile-nav .nav-item{display:flex;flex-direction:column;gap:5px;padding:8px 2px;min-height:61px;border-radius:12px;white-space:normal;text-align:center;}.mobile-nav .nav-item .icon{width:23px;height:23px}.mobile-nav .nav-item.active{background:#fff1a0}.page-heading{flex-direction:column;align-items:flex-start;gap:20px;margin-bottom:25px}.page-heading .lead{margin-top:9px}.day-picker{align-self:flex-start;gap:8px}.date-field input{width:139px;}.day-picker>.icon-button{background:white;border:1px solid var(--line);border-radius:11px}.sun-grid{gap:18px}.panel{padding:23px;border-radius:21px}.nutrition-panel{padding:22px}.nutrition-center{min-height:210px;grid-template-columns:1.1fr .9fr}.balance-note{max-width:220px}.hero-plate{width:210px;height:190px;max-width:135%}.plate-stage{height:190px}.plate-spark{inset-inline-end:-7px;top:5px}.calorie-math{gap:13px;margin:8px 0 23px}.macros{gap:13px}.macro>div:first-child{gap:3px}.nutrition-footer{margin-top:25px;gap:10px}.nutrition-footer .btn{padding-inline:17px}.nutrition-footer .icon{width:21px;height:21px}.ai-nudge{display:block;padding:24px 25px}.ai-nudge h2{margin:22px 0 13px;max-width:270px}.ai-nudge p{max-width:260px;margin:0}.ai-nudge .btn{margin-top:23px;}.nudge-apple{inset-inline-end:-10px;bottom:-25px;width:140px;height:140px}.water-panel{grid-column:1/-1}.fasting-panel{grid-column:1/-1}.water-glasses{grid-template-columns:repeat(8,14px);gap:7px}.glass{width:14px;height:29px}.water-main{margin-top:18px}.water-actions{margin-top:18px;gap:19px}.sun-grid .support-panel{display:block}.sun-grid .support-panel p{margin:17px 0;}.sun-grid .support-panel .btn{width:100%}.food-list .section-heading{align-items:flex-start;gap:12px}.food-list .section-heading>.text-button{min-height:0;padding:2px 0;white-space:nowrap}.food-row{gap:12px;padding:17px 0}.food-art{width:52px;height:52px;border-radius:11px}.food-art img{width:52px;height:52px}.habit-grid{gap:11px}.habit-card{padding:10px;gap:8px}.habit-card>img{width:44px;height:44px}.habit-card>span:not(.icon){gap:6px}.habit-card>.icon{width:16px;height:16px}.habits-panel .section-heading{flex-wrap:wrap}.empty-state{padding:30px 5px}.food-page-summary{gap:15px;padding-bottom:26px}.food-page-actions{gap:10px}.food-page-actions .btn{padding-inline:17px}.diary-panel .remove-entry{width:30px;height:44px;margin-inline-start:-7px}.diary-panel .food-art{width:43px;height:43px}.diary-panel .food-art img{width:43px;height:43px}.diary-panel .food-row{gap:10px}.chat-panel{padding:0 20px 18px;min-height:570px}.chat-messages{max-height:55dvh;min-height:330px;padding-block:22px;gap:18px}.chat-message{max-width:95%;padding:16px 17px}.chat-empty img{width:120px;height:120px}.chat-prompts{margin-top:20px;gap:9px}.chat-prompts .btn{width:100%;text-align:start;justify-content:space-between;}.chat-compose{gap:9px}.chat-compose textarea{padding:13px}.chat-note{text-align:start}.friend-grid{grid-template-columns:1fr}.club-card{grid-template-columns:44px minmax(0,1fr);padding:18px;gap:14px}.club-icon{width:44px;height:44px}.club-card>.btn{grid-column:1/-1;width:100%}.connect-social{padding:14px 0}.connect-social .btn{width:100%}.progress-stats{grid-template-columns:1fr;gap:14px}.progress-stats .panel{display:grid;grid-template-columns:1fr auto;gap:12px 15px;align-items:center;padding:22px}.progress-stats strong{grid-column:2;grid-row:1/3;}.progress-stats p,.progress-stats .text-button{grid-column:1;text-align:start;justify-content:flex-start;margin:0}.progress-stats .text-button{min-height:24px;padding:0;}.weekly-chart{gap:11px;padding-inline:0}.bar-space{height:155px}.chart-column{gap:10px}.chart-caption{align-items:flex-start}.profile-grid{gap:18px}.profile-stack{gap:18px}.account-actions .btn{flex:1;padding-inline:13px}.welcome-panel{padding:28px;margin-top:0;min-height:650px}.welcome-panel .welcome-actions{gap:12px}.welcome-actions .btn{width:100%}.welcome-panel>.muted{margin-top:21px}.welcome-panel>img{width:165px;height:165px;margin-top:8px}.error-panel{margin-top:15px}.auth-layout{display:block}.auth-story{min-height:0;padding:30px 25px 33px;background:#ffe76c}.auth-story-copy{margin-top:35px}.auth-story h1{max-width:350px;margin-top:13px}.auth-story h1 br{display:none}.auth-story-copy>p,.auth-art,.story-footer{display:none}.auth-main{min-height:0;padding:25px 25px 40px}.auth-main>.back-link{align-self:flex-start;}.auth-form-wrap{padding:33px 0 0;max-width:480px;margin:0 auto}.auth-welcome{margin-bottom:16px;}.auth-form-wrap .lead{margin-top:14px}.auth-form-wrap .form-stack{margin-top:27px}.auth-privacy{margin-top:31px;}.auth-secondary{gap:8px}dialog{width:calc(100% - 20px);max-height:calc(100dvh - 28px);border-radius:22px}.modal-header{padding:20px 21px 10px}.modal-body{padding:8px 21px 25px}.modal-body .form-two{gap:12px}.modal-footer{justify-content:stretch}.modal-footer>.btn{flex:1}.plan-options{gap:9px}.plan-options label{padding:13px 8px;}#toast{bottom:105px;left:50%;width:max-content;max-width:calc(100% - 30px)}.auth-layout~#toast{bottom:25px}}
@media(max-width:390px){.app-shell main{padding-inline:15px}.panel{padding:20px}.nutrition-panel{padding:20px}.hero-plate{width:175px;height:165px}.nutrition-center{min-height:190px}.macros{gap:10px}.nutrition-footer .btn{padding-inline:12px}.water-glasses{grid-template-columns:repeat(4,13px)}.habit-card>img{width:36px;height:36px}.habit-card{gap:6px}.habit-card>.icon{display:none}.food-list .section-heading{flex-wrap:wrap}.sync-status span{display:none}.food-page-actions .btn{padding-inline:13px}.auth-main{padding-inline:22px}.modal-body{padding-inline:19px}.modal-header{padding-inline:19px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition:none!important}.btn:hover{transform:none}}
.chat-action-card{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px;border:1px solid #d6daea;border-radius:12px;background:#ffffff80;width:100%}.chat-action-card>.btn{min-height:40px;padding:9px 12px;flex-shrink:0}.chat-action-card>.btn .icon{width:17px;height:17px}.action-saved{display:flex;align-items:center;gap:5px;color:#396444;white-space:nowrap}.action-saved .icon{width:18px;height:18px}.privacy-settings{border-top:1px solid var(--line);padding-top:24px;margin-top:28px}.privacy-settings>p{margin-top:12px}.privacy-settings .text-button{margin-top:8px;}@media(max-width:767px){.chat-action-card{flex-direction:column;align-items:flex-start;}.chat-action-card>.btn{width:100%;}}
.club-controls{display:flex;flex-direction:column;align-items:center;gap:7px}.club-controls .text-button{min-height:35px}@media(max-width:767px){.club-controls{grid-column:1/-1;align-items:stretch}.club-controls .btn{width:100%;}}
.sharing-controls{border:0;border-top:1px solid var(--line);margin:20px 0 0;padding:20px 0 0;display:grid;gap:15px;min-width:0}.sharing-controls legend{padding:0 10px 0 0}.sharing-controls label{display:flex;align-items:flex-start;gap:12px;cursor:pointer;min-height:32px}.sharing-controls input[type=checkbox]{width:20px;height:20px;min-height:20px;margin:3px 0 0;flex-shrink:0;accent-color:var(--blue);padding:0}.sharing-controls .muted{margin-bottom:5px;}@media(max-width:767px){}
/* Narrow Sunroom cards retain the reading size while giving metrics their own space. */
@media(max-width:767px){
  html{min-width:0}
  .app-shell,.app-shell main,.sun-grid{min-width:0;width:100%;max-width:100%}
  .sun-grid{grid-template-columns:minmax(0,1fr)}
  .sun-grid>.panel{grid-column:1/-1;width:100%;min-width:0}
  .nutrition-panel>.panel-top>span:first-child{min-width:0}
  .nutrition-panel>.panel-top>.tag{flex-shrink:0;white-space:nowrap}
  .nutrition-center{grid-template-columns:minmax(0,1fr) clamp(64px,calc(100vw - 280px),110px);column-gap:10px;row-gap:0;min-height:0;margin-block:25px 20px;align-items:center}
  .nutrition-center>div:first-child{display:contents}
  .nutrition-center .balance-label{grid-column:1/-1;grid-row:1;margin:0 0 10px}
  .nutrition-center .balance-number{grid-column:1;grid-row:2;display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-width:0;white-space:normal;}
  .nutrition-center .balance-number small{display:block;}
  .nutrition-center .balance-note{grid-column:1/-1;grid-row:3;max-width:none;margin:16px 0 0;}
  .nutrition-center .plate-stage{grid-column:2;grid-row:2;width:100%;min-width:0;height:auto;align-self:center}
  .nutrition-center .hero-plate{width:100%;height:auto;max-width:100%;max-height:150px;transform:rotate(-5deg)}
  .nutrition-center .plate-spark{top:-22px;inset-inline-end:0;}
  .nutrition-panel .macros{grid-template-columns:minmax(0,1fr);gap:15px}
  .nutrition-panel .macro>div:first-child{flex-wrap:nowrap;gap:16px;margin-bottom:7px}
  .nutrition-panel .macro>div:first-child>span{white-space:nowrap}
  .nutrition-footer{flex-wrap:wrap}
  .nutrition-footer .btn{min-width:0;flex:1 1 auto}
  .mobile-nav{grid-template-columns:repeat(5,minmax(0,1fr));padding-inline:4px}
  .mobile-nav .nav-item{min-width:0;width:100%;padding-inline:0;}
  .mobile-nav .nav-item>span:not(.icon){min-width:0;max-width:100%;overflow-wrap:anywhere;text-align:center;text-wrap:balance}
}
@media(max-width:350px){
  .mobile-nav .nav-item{min-height:72px;justify-content:flex-start;gap:6px;}
  .mobile-nav .nav-item:last-child>span:not(.icon){max-width:none;white-space:nowrap;overflow-wrap:normal}
  .nutrition-panel>.panel-top{flex-wrap:wrap;gap:10px}
  .nutrition-panel>.panel-top>span:first-child{flex-basis:100%}
}
@keyframes spin{to{transform:rotate(360deg)}}

/* Shared diary, library and social details follow the workspace's existing panels. */
/* These cards use the two-column feature grid, not the legacy twelve-column Sunroom grid. */
.feature-grid>.fasting-panel{grid-column:1/-1;min-width:0}.feature-grid>.water-panel{grid-column:auto}
.feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin-bottom:24px}.feature-panel,.feature-tile{min-width:0;padding:28px}.feature-tile .panel-top{margin-bottom:22px}.feature-number{display:block;margin:18px 0}.feature-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:18px}.feature-actions:empty{display:none}.feature-row{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--border,#ebe8e1);padding:16px 0;min-width:0}.feature-row:last-child{border-bottom:0}.feature-row .feature-actions{margin:0}.feature-description{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0;text-align:start;overflow-wrap:anywhere}.feature-description small{color:var(--muted,#73716c)}.settings-grid{margin-top:24px}.check-row{display:flex;align-items:center;gap:12px;cursor:pointer}.check-row input[type=checkbox]{width:20px;height:20px;min-width:20px;padding:0;margin:0;accent-color:#252525}.tile-options{display:grid;gap:12px}.tile-option{display:flex;align-items:center;justify-content:space-between;gap:20px}.tile-option>input{width:78px}.social-tabs{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:28px}.social-tabs .btn{min-height:44px}.friend-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:20px 0}.friend-facts div{display:flex;flex-direction:column;gap:5px;}.social-self,.social-day{border-bottom:1px solid #e7e5df;padding:16px 0}.social-self{margin-bottom:20px}.social-day summary,.social-self summary{cursor:pointer;min-height:32px;}.social-rules{white-space:pre-line;}.invite-code{overflow-wrap:anywhere}.library-photo{object-fit:cover;border-radius:12px;flex-shrink:0}.feature-panel .section-heading{flex-wrap:wrap}.is-me{background:#fff7d1;border-radius:8px;padding-inline:10px}.modal-body a{overflow-wrap:anywhere}.feature-tile .macros{margin-top:22px}.feature-tile .track{margin-top:16px}.feature-tile .macro .track{margin-top:0}.food-row>.icon-button{flex-shrink:0}.feature-tile.nutrition-panel{grid-column:1/-1}.feature-tile .nutrition-footer{margin-top:20px}.feature-panel .form-stack{margin-top:18px}
.planned-row>.library-photo,.planned-row>.feature-description{opacity:.6}
@media(max-width:800px){.feature-grid{grid-template-columns:1fr;gap:16px}.feature-panel,.feature-tile{padding:22px}.feature-actions .btn{max-width:100%;white-space:normal}.feature-row{flex-wrap:wrap}.feature-row>.feature-actions{width:100%}.social-tabs{gap:8px}.social-tabs .btn{padding:10px 14px}.tile-option .check-row{flex:1}.friend-facts{gap:12px}.food-row{gap:8px}.food-row .food-art{width:42px;height:42px}.food-row .food-art img{width:42px;height:42px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
.avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit}.feature-tile button[disabled]{cursor:default}
.chat-photos{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}.chat-photos img{max-width:100%;object-fit:cover;border-radius:14px}.chat-links{display:flex;flex-direction:column;gap:8px;margin-top:12px}.chat-links a{overflow-wrap:anywhere;text-decoration:underline}
.chat-photo-button{position:relative;flex-shrink:0;cursor:pointer}.chat-photo-button input{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0}.chat-photo-button:focus-within{outline:3px solid #3159f5;outline-offset:3px}.chat-attachments{display:flex;gap:10px;flex-wrap:wrap;padding:0 24px}.chat-attachments:empty{display:none}.chat-attachment{position:relative;margin-top:16px}.chat-attachment img{width:76px;height:76px;object-fit:cover;border-radius:12px}.chat-attachment .icon-button{position:absolute;top:-8px;inset-inline-end:-8px;width:28px;height:28px;min-height:28px;background:#fff;border:1px solid #ddd;border-radius:50%}.chat-toolbar{display:flex;justify-content:space-between;gap:16px;padding:8px 24px;}.chat-compose textarea{min-width:0}.chat-photos a{display:inline-flex}
.vitamin-dose{display:flex;align-items:center;gap:10px;width:100%;padding:8px 0;text-align:start}.vitamin-dose>span:nth-child(3){flex:1;min-width:0;overflow-wrap:anywhere}.vitamin-dose small{display:block;color:var(--muted)}.vitamin-dose time{color:var(--muted);font-variant-numeric:tabular-nums}.vitamin-check{display:grid;place-items:center;width:24px;height:24px;flex-shrink:0;border:2px solid var(--line);border-radius:50%;color:transparent}.vitamin-check .icon{width:14px;height:14px}.vitamin-dose[aria-pressed="true"] .vitamin-check{border-color:var(--blue);background:var(--blue);color:white}.vitamin-dose[aria-pressed="true"] .vitamin-art{opacity:.6}.vitamin-art{display:grid;place-items:center;width:36px;height:36px;flex-shrink:0;border-radius:50%;color:var(--muted);background:var(--soft)}.vitamin-art:has(img){background:none}.vitamin-art img{width:100%;height:100%}.vitamin-art .icon{width:18px;height:18px}.vitamin-section{margin-top:22px}.vitamin-section>h3{display:flex;justify-content:space-between;gap:12px;margin-bottom:8px}.vitamin-section>h3 small{color:var(--muted)}.vitamin-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;text-align:center}.vitamin-week small{display:block;margin-top:5px;color:var(--muted)}.vitamin-week .today small{color:var(--ink);font-weight:700}.vitamin-ring{display:block;width:30px;height:30px;margin:auto;border-radius:50%;background:radial-gradient(closest-side,white 72%,transparent 74%),conic-gradient(var(--blue) calc(var(--done)*1%),var(--line) 0)}.vitamin-row{display:flex;align-items:center;gap:10px;width:100%;padding:8px 0;text-align:start}.vitamin-row small{display:block;color:var(--muted)}.vitamin-time{display:flex;align-items:center;gap:10px}.vitamin-time input{flex:1;min-width:0}.vitamin-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.vitamin-choice{position:relative;cursor:pointer}.vitamin-choice input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}.vitamin-choice>span{display:grid;place-items:center;min-height:40px;border:2px solid var(--line);border-radius:12px;text-align:center}.vitamin-choice input:checked+span{border-color:var(--blue);background:var(--soft)}.vitamin-choice input:focus-visible+span{outline:3px solid var(--blue);outline-offset:2px}.vitamin-pictures{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.vitamin-pictures img{width:40px;height:40px;margin:4px}.vitamin-pictures small{padding:4px;font-size:12px;line-height:1.15}
.measurements-panel{margin-top:24px}.measurements-panel .feature-row{flex-wrap:nowrap}.measurements-panel .feature-description{min-width:0;flex:1}.measurements-panel .icon-button{flex:none}.measure-heading{margin:26px 0 14px}.measure-empty{min-height:60px;display:flex;align-items:center;justify-content:center;text-align:center}.measure-chart{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;padding:6px 8px 0;margin-bottom:6px}.measure-plot{position:relative;height:190px}.measure-plot svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}.measure-grid line{stroke:var(--line);stroke-width:1}.measure-line{fill:none;stroke:var(--blue);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.measure-point{position:absolute;width:28px;height:28px;min-height:0;padding:0;background:none;border:0;transform:translate(-50%,-50%);cursor:pointer}.measure-point:before{content:'';position:absolute;left:50%;top:50%;width:9px;height:9px;border-radius:50%;background:var(--blue);box-shadow:0 0 0 2px var(--surface);transform:translate(-50%,-50%)}.measure-point:hover:before,.measure-point:focus-visible:before{width:13px;height:13px}.measure-point:hover:after,.measure-point:focus-visible:after{content:attr(data-tip);position:absolute;bottom:100%;left:50%;z-index:2;padding:6px 10px;border-radius:9px;background:var(--ink);color:white;font-size:var(--text-meta);line-height:var(--leading-label);white-space:nowrap;transform:translateX(-50%);pointer-events:none}.measure-point.tip-start:hover:after,.measure-point.tip-start:focus-visible:after{inset-inline-start:0;transform:none}.measure-point.tip-end:hover:after,.measure-point.tip-end:focus-visible:after{inset-inline-start:auto;inset-inline-end:0;transform:none}.measure-y{position:relative;min-width:30px;height:190px}.measure-y span{position:absolute;inset-inline-start:0;transform:translateY(-50%);color:var(--muted);font-size:var(--text-meta);line-height:1}.measure-x{position:relative;height:20px;grid-column:1}.measure-x span{position:absolute;top:0;transform:translateX(-50%);color:var(--muted);font-size:var(--text-meta);line-height:var(--leading-label);white-space:nowrap}.measure-x .tick-start{transform:none}.measure-x .tick-end{transform:translateX(-100%)}
.diet-warning{width:100%;padding:12px;border-radius:14px;background:#fff0ee;color:#a53438;font-weight:600;margin-bottom:12px}.diet-warning p{margin:0 0 4px}.diet-warning small{color:var(--muted);font-weight:500}.chat-actions .diet-warning{margin-bottom:0}
.sugar-line{display:flex;justify-content:space-between;gap:8px;margin-top:15px}.sugar-line .sugar-over{color:#8f4a00}.sugar-line .sugar-high{color:#a53438}
.report-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}.report-pager>div{min-width:0;text-align:center}.report-pager b,.report-pager small{display:block}.report-pager small{color:var(--muted)}.report-pager .icon-button{margin:0;background:white;border:1px solid var(--line)}.report-pager .icon-button:disabled{opacity:.35;cursor:default}
.report-stack{display:grid;gap:18px;margin-bottom:24px}.report-card{display:grid;gap:16px}.report-card-title{display:flex;align-items:center;gap:9px}.report-card-title h2{margin:0}.report-card .muted{margin:0}
.report-hero{display:flex;gap:18px;align-items:flex-start}.report-hero h2{margin:0 0 6px}.report-hero p{margin:0}.report-emoji{font-size:40px;line-height:1}.report-hero.is-great{background:#edf5ec}.report-hero.is-good{background:#d9f2fa}.report-hero.is-over{background:#ffed8b}.report-chip{display:inline-block;margin-top:12px;padding:5px 12px;border-radius:999px;background:#ffffffb8;font-weight:600}
.report-stats{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px 20px}.report-stat{min-width:0}.report-stat.is-right{text-align:end}.report-stat span{display:block;color:var(--muted)}.report-stat strong{font-size:26px;line-height:1.2}.report-stat small{font-size:14px;font-weight:500;color:var(--muted)}
.report-note{margin:0;color:var(--muted)}.report-note.is-danger{color:#9c302e}.report-note.is-warning{color:#8a6500}
.report-chart{display:grid;gap:6px}.report-plot{position:relative;display:grid;gap:4px;height:130px;border-bottom:1px solid var(--line)}.report-chart.is-month .report-plot{gap:2px}.report-column{position:relative;display:flex;align-items:flex-end;min-width:0}.report-bar{display:block;width:100%;min-height:2px;border-radius:5px 5px 0 0;background:#b6b9c8}.report-bar.is-met{background:#396444}.report-bar.is-missed{background:#a53438}.report-water .report-bar.is-met{background:#5aabd2}.report-steps .report-bar.is-missed,.report-water .report-bar.is-missed{background:#b6b9c8}.report-bar.is-live{background:#d5d7e2}.report-tick{position:absolute;inset-inline-start:0;inset-inline-end:0;height:2px;background:var(--ink)}.report-goal{position:absolute;inset-inline-start:0;inset-inline-end:0;border-top:2px dashed #1d213c80;pointer-events:none}.report-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;margin:0;color:var(--muted);text-align:center}
.report-axis{display:grid;gap:4px;color:var(--muted);font-size:12px;text-align:center}.report-chart.is-month .report-axis{gap:2px;text-align:start}.report-axis span{white-space:nowrap;min-width:0}
.report-legend{display:flex;flex-wrap:wrap;gap:6px 16px;color:var(--muted);font-size:13px}.report-legend span{display:inline-flex;align-items:center;gap:6px}.report-legend i{width:10px;height:10px;border-radius:3px;background:#b6b9c8}.report-legend i.is-met{background:#396444}.report-legend i.is-missed{background:#a53438}.report-legend i.is-goal{height:0;width:14px;border-radius:0;background:none;border-top:2px dashed #1d213c80}
.report-budget-bar{position:relative;height:14px;border-radius:7px;background:var(--soft);overflow:hidden}.report-budget-bar span{display:block;height:100%;border-radius:7px}.report-budget-bar.is-within span{background:#396444}.report-budget-bar.is-over span{background:#a53438}.report-budget-bar i{position:absolute;top:0;bottom:0;width:2px;background:var(--ink)}
.report-result{display:flex;gap:12px;align-items:center}.report-result>span{font-size:28px;line-height:1}.report-result b,.report-result small{display:block}.report-result small{color:var(--muted)}
.report-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.report-tile{display:grid;gap:6px;padding:22px}.report-tile .muted{margin:0}
.report-empty-card{display:grid;gap:10px;justify-items:center;text-align:center;margin-bottom:24px}.report-empty-card>span{font-size:40px;line-height:1}.report-empty-card h2,.report-empty-card p{margin:0}
.report-entry{display:flex;align-items:center;gap:14px;margin-bottom:24px;padding:20px 24px;color:inherit;text-decoration:none}.report-entry:hover{border-color:#c9cbdb}.report-entry-text{flex:1;min-width:0}.report-entry-text b,.report-entry-text small{display:block}.report-entry-text small{color:var(--muted)}
.report-choices{flex-direction:column;align-items:stretch}.report-choices .btn{width:100%}
@media(max-width:767px){.report-card,.report-hero{padding:20px}.report-tiles{grid-template-columns:1fr;gap:16px}.report-stat strong{font-size:22px}.report-plot{height:110px}.report-axis{font-size:11px}.report-chart.is-month .report-axis span{overflow:visible}}
#print-report{display:none}
@media print{@page{size:A4;margin:14mm}body{background:#fff}body>*:not(#print-report){display:none!important}#print-report{display:block;color:#000;font-size:11pt;line-height:1.35}#print-report h1{margin:0 0 4pt;font-size:20pt}#print-report h2{margin:14pt 0 6pt;font-size:13pt;break-after:avoid}.print-muted{margin:2pt 0;color:#555;font-size:9.5pt}.print-stats{display:flex;flex-wrap:wrap;gap:6pt 22pt;margin-bottom:8pt}.print-stats span{display:block;color:#555;font-size:9pt}.print-stats b{font-size:12pt}#print-report table{width:100%;border-collapse:collapse;font-size:9.5pt}#print-report thead{display:table-header-group}#print-report tr{break-inside:avoid}#print-report th,#print-report td{padding:3pt 5pt;border-bottom:.5pt solid #ccc;text-align:start}#print-report th{color:#555;font-weight:600}#print-report tr.is-total td{font-weight:700}.print-chart{display:block;width:100%;height:auto;break-inside:avoid}.print-chart polyline{fill:none;stroke:#000;stroke-width:1.5}.print-chart circle{fill:#000}.print-chart text{font-size:8px;fill:#555}.print-chart .print-grid{stroke:#ddd;stroke-width:.5}.print-footer{margin-top:16pt;color:#555;font-size:9pt}}
.food-estimate{margin-bottom:22px}.food-estimate-row{display:flex;gap:10px;margin-top:8px}.food-estimate-row input{flex:1;min-width:0}.food-estimate-row .btn{flex-shrink:0}.food-estimate .form-hint{margin-block:8px 0}.photo-previews{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}.photo-previews[hidden]{display:none}.photo-previews img{width:76px;height:76px;object-fit:cover;border-radius:10px}.scan-list{display:flex;flex-direction:column;gap:12px}.scan-row{display:flex;align-items:center;gap:12px;min-height:56px}.scan-row>img{width:56px;height:56px;flex-shrink:0;object-fit:cover;border-radius:10px}.scan-text{display:flex;flex-direction:column;flex:1;min-width:0;overflow-wrap:anywhere}.scan-text small{color:var(--muted)}.scan-row .btn{min-width:0;flex-shrink:0}.meal-variants{display:flex;flex-direction:column;gap:6px;margin-block:8px 16px}.meal-variant{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:8px 12px;border-radius:13px;background:var(--soft);text-align:start;min-height:44px}.meal-variant-numbers{display:flex;flex-direction:column;align-items:flex-end;flex-shrink:0}.meal-variant-numbers small{color:var(--muted)}
@media(max-width:400px){.modal-tabs{gap:3px}.modal-tabs button{padding-inline:4px}.modal-tabs .icon{display:none}.food-estimate-row{flex-direction:column}.scan-row{flex-wrap:wrap}}
.food-page-actions{flex-wrap:wrap}.food-page-actions .btn,.account-actions .btn{white-space:nowrap}.food-page-actions .btn{flex:1 1 auto}
.plan-cancel{margin-top:18px}.plan-cancel p{margin:4px 0 0}
.paid-app{display:grid;gap:8px;margin-top:28px;padding:18px;border:1px solid var(--line);border-radius:16px}.paid-app p{margin:0}.paid-app .btn{justify-self:start;margin-top:6px}
