@font-face{font-family:Barlow;src:url('/assets/fonts/barlow-condensed-bold.ttf') format('truetype');font-weight:700;font-display:swap}
:root{--primary:#b92d1d;--primary-dark:#922315;--gray-50:#fff7f6;--gray-100:#f8e8e9;--gray-200:#eddbdf;--gray-300:#d6bfc8;--gray-500:#79616e;--gray-600:#654c5a;--gray-700:#513643;--gray-800:#321e2b;--gray-900:#251820;--shadow:none;--shadow-lg:0 18px 50px #321e2b18}
body{font-family:'Segoe UI',Arial,sans-serif;background:#fff7f6;color:var(--gray-800)}h1,h2{font-family:Barlow,'Arial Narrow',sans-serif;letter-spacing:-.02em}h2{font-size:2rem;line-height:1.1;margin-bottom:22px}button,a,input,select,textarea{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[role=button]:focus-visible{outline:3px solid #b92d1d;outline-offset:4px}.container{width:min(1380px,100%);padding:0 4%}.auth-screen{background:#de351f;min-height:100svh;padding:50px 5%;overflow:auto;position:relative}.auth-content{width:min(1150px,100%);max-width:1150px;padding:0;background:none;border:0;box-shadow:none;border-radius:0;text-align:left}.auth-layout{grid-template-columns:1.05fr 1fr;gap:70px;align-items:center}.auth-content h1{color:#fff;font-size:clamp(85px,10vw,150px);line-height:.9;margin:24px 0;letter-spacing:-.035em}.auth-content .auth-lede{color:#fff;font-size:18px;max-width:480px}.auth-kicker{background:none;padding:0;color:#fff;font-size:14px;font-weight:600}.auth-proof-grid{display:block;margin:28px 0;max-width:440px}.auth-proof{padding:13px 0;background:none;border:0;border-top:1px solid #ffffff55;display:grid;grid-template-columns:70px 1fr;gap:15px;border-radius:0;text-align:left}.auth-proof strong{color:#fff;font-size:14px}.auth-proof span{color:#fff;font-size:14px;line-height:1.5}.google-sign-in-btn{background:#fff;color:#321e2b;border:0;border-radius:40px;min-height:52px;font-size:14px;justify-content:center;width:100%;max-width:440px;box-shadow:none}.google-sign-in-btn:hover{background:#f7dadd}.local-mode-btn{border:1px solid #fff;color:#fff;background:transparent;border-radius:40px;min-height:50px;width:100%;max-width:440px}.local-mode-btn:hover{background:#b92d1d}.auth-content .auth-privacy-note{color:#fff;font-size:14px;line-height:1.6;max-width:440px;margin-top:18px}.auth-meal{position:relative;align-self:center}.auth-meal img{aspect-ratio:1;border-radius:50%;object-fit:cover;border:8px solid #f7dadd;transform:rotate(-8deg)}.auth-meal figcaption{background:#f7dadd;color:#321e2b;padding:25px;position:relative;margin:-50px 10px 0 45px;transform:rotate(4deg);font-size:16px}.auth-meal figcaption strong{font-family:Barlow,sans-serif;font-size:37px;line-height:1;display:block;margin-bottom:10px}.auth-meal figcaption small{display:block;font-size:14px;margin-top:15px}.auth-home{color:#fff;display:inline-block;font-size:14px;margin-top:25px;text-underline-offset:4px}header{background:#321e2b;color:#fff;padding:25px 0;box-shadow:none;margin-bottom:25px}.header-left h1{color:#fff;font-size:44px;line-height:1}.tagline{color:#f7dadd;font-size:14px;margin-top:8px}.header-right{flex-wrap:wrap;justify-content:flex-end}.settings-btn,.logout-btn{border:1px solid #ffffff55;border-radius:30px;background:transparent;color:#fff;min-height:42px;font-size:14px}.settings-btn:hover,.logout-btn:hover{background:#56354a}.user-info{background:#f7dadd;border-radius:30px;padding:7px 12px}.user-info:hover{background:white}.user-name{color:#321e2b}.stats{display:flex;border-bottom:1px solid #d6bfc8;gap:0;margin-bottom:30px}.stat-card{background:none;border:0;border-radius:0;box-shadow:none;flex:1;padding:15px 20px 25px;text-align:left}.stat-card+.stat-card{border-left:1px solid #d6bfc8}.stat-value{font-family:Barlow,sans-serif;font-size:55px;line-height:1.1}.stat-label{text-transform:none;letter-spacing:0;font-size:14px;margin-top:7px}.main-content{grid-template-columns:minmax(0,.9fr) minmax(0,1.25fr);gap:38px}.main-content>*{min-width:0}.form-section{border:1px solid #eddbdf;border-radius:20px;padding:28px;box-shadow:none}.form-section h2{font-size:38px}.form-group>label{font-size:14px;font-weight:650}.form-row>*{min-width:0}.image-upload{border-radius:14px;background:#fff7f6;border:2px dashed #c79eab;min-height:170px}.image-upload:hover{border-color:#b92d1d;background:#f7dadd}input[type=text],input[type=number],input[type=email],select,textarea{border:1px solid #cbb7c0;background:#fff;border-radius:9px;min-height:46px;font-size:16px;max-width:100%;color:#321e2b}input:focus,select:focus,textarea:focus{border-color:#b92d1d;box-shadow:none}.btn{border-radius:30px;font-size:14px;min-height:44px}.btn-primary{background:#b92d1d}.btn-primary:hover{background:#922315}.btn-secondary{background:#eddbdf;color:#321e2b}.filter-tabs{padding:0;background:none;box-shadow:none;border-radius:0;display:flex;flex-wrap:wrap;gap:8px}.filter-tab{border:1px solid #cbb7c0;border-radius:30px;font-size:14px;padding:10px 15px;min-height:44px;background:#fff}.filter-tab.active{background:#321e2b;border-color:#321e2b;color:white}.meals-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:20px}.meal-card{border:1px solid #eddbdf;border-radius:16px;box-shadow:none;min-width:0}.meal-card:hover{box-shadow:0 8px 25px #321e2b12;transform:translateY(-2px)}.meal-image{aspect-ratio:4/3;height:auto;object-fit:cover}.meal-name{font-size:17px}.meal-score{background:#321e2b;color:white;border-radius:50%;min-width:40px;min-height:40px;display:grid;place-items:center}.meal-meta,.meal-factors{flex-wrap:wrap}.meal-info{padding:19px}.score-display{background:#fff7f6;border:1px solid #eddbdf;border-radius:12px;padding:18px}.final-score{font-family:Barlow,sans-serif;font-size:62px}.score-breakdown,.modal-breakdown{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.breakdown-item{min-width:0;font-size:14px;border-radius:7px}.score-progress-section{border:1px solid #eddbdf;border-radius:16px;padding:24px;box-shadow:none}.empty-state{border:1px dashed #c79eab;border-radius:18px;padding:50px 25px;background:white;max-width:100%;font-size:15px}.settings-content,.modal-content{border-radius:18px;width:calc(100% - 32px);max-width:650px;max-height:90svh;overflow:auto}.settings-header,.modal-header{padding:22px 25px;border-bottom:1px solid #eddbdf}.settings-header h2,.modal-header h2{margin:0}.close-btn{min-width:44px;min-height:44px;border-radius:50%;color:#321e2b}.settings-row{grid-template-columns:repeat(3,minmax(0,1fr))}.settings-input-group{min-width:0}.settings-input-group input{width:100%}.settings-body,.modal-body{padding:25px}.settings-footer{border-top:1px solid #eddbdf}.score-progress-header{flex-wrap:wrap}.score-chart{max-width:100%;overflow-x:auto}
@media(max-width:850px){.auth-layout{grid-template-columns:1fr;gap:45px}.auth-content{max-width:560px}.auth-content h1{font-size:100px}.auth-screen{padding:40px 7%}.auth-meal{max-width:400px;margin:0 auto 35px}.header-content{align-items:flex-start;gap:20px;flex-direction:column}.header-right{justify-content:flex-start;gap:7px}.main-content{grid-template-columns:minmax(0,1fr)}.container{padding:0 5%}.stat-card{padding:12px 15px 22px}.stat-value{font-size:45px}.form-section{padding:23px}.auth-content .auth-lede{font-size:16px}.settings-btn,.logout-btn{min-height:44px}.score-progress-section h2{font-size:30px}}
@media(max-width:420px){.auth-content h1{font-size:87px}.auth-meal figcaption{margin-left:15px;font-size:14px}.stat-card{padding:10px 10px 20px}.stat-value{font-size:38px}.stat-label{font-size:14px}.form-section{padding:20px 16px}.settings-row{grid-template-columns:1fr}.form-row{gap:10px}.settings-body,.modal-body{padding:20px}.form-section h2{font-size:34px}.meals-section h2{font-size:34px}.header-right{width:100%}.user-info{max-width:100%}.user-name{overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}.meal-card:hover{transform:none}}

.auth-layout>*{min-width:0}.auth-meal{min-width:0;margin:0}.auth-meal img{display:block;width:100%;max-width:100%;height:auto}.auth-meal figcaption{overflow-wrap:anywhere}

:is(button,a,input,select,textarea,[role=button]):focus-visible{outline:3px solid #321e2b;outline-offset:4px;box-shadow:0 0 0 4px #fff}

.draft-recovery{padding:14px;background:#fff7f6;border-radius:12px;margin-bottom:18px}.draft-recovery p{font-size:14px;line-height:1.5}.draft-recovery select{width:100%;margin:8px 0}.draft-recovery button{margin:4px}.meal-image{aspect-ratio:1/1}.meal-factors{font-size:14px}.meal-notes{line-height:1.5}.meal-actions{margin-top:12px}@media(max-width:600px){.meals-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.meal-info{padding:12px}.meal-header{flex-wrap:wrap}.meal-factors{display:none}.meal-score{min-width:36px;min-height:36px}.meal-actions{flex-wrap:wrap}.meal-name{overflow-wrap:anywhere}}
.stats .stat-card{min-width:0;overflow-wrap:anywhere}.stats .stat-value{font-size:clamp(20px,4vw,40px)}.stats{max-width:100%}.user-info img[hidden]{display:none}.meal-card{cursor:pointer}.meal-image{background:#eddbdf}.meals-section{min-width:0}@media(max-width:850px){.meals-section{grid-row:1}.form-section{grid-row:2}.score-progress-section{margin-top:16px}.main-content{display:grid!important}}
.score-history{margin:24px 0;border:1px solid #eddbdf;border-radius:14px;padding:14px;background:#fff}.score-history summary{cursor:pointer;font-size:16px;min-height:44px;display:list-item;padding:10px}.score-history .score-progress-section{border:0;padding:12px;margin:0}

/* Static first-entry guide stays inside the existing signed-out screen. */
.first-meal{margin-top:72px;padding:40px;background:#fff7f6;color:#321e2b;border-radius:20px;display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr);gap:36px;align-items:start;scroll-margin-top:20px}
.auth-content .first-meal h2{color:#321e2b;font-size:clamp(32px,4vw,46px);margin:0 0 20px;line-height:1.1}
.auth-content .first-meal p,.first-meal li{color:#321e2b;font-size:16px;line-height:1.65;text-align:left}
.first-meal ol{padding-left:24px;margin:22px 0}.first-meal li{padding-left:4px;margin-bottom:16px}.first-meal a{color:#922315;text-decoration:underline;text-underline-offset:3px}.first-meal figure{margin:0;min-width:0}.first-meal img{display:block;width:100%;height:auto;border-radius:16px}.first-meal figcaption{font-size:14px;line-height:1.6;margin-top:14px}.first-meal-return{display:inline-block;padding:12px 0;font-weight:600}
@media(max-width:850px){.first-meal{grid-template-columns:1fr;padding:24px;margin-top:36px;gap:28px}.first-meal figure{max-width:460px}}
