@font-face{font-family:Inter;src:local('Inter'),local('Arial');font-display:swap}
:root{--ink:#14140f;--muted:#818177;--green:#14140f;--lime:#ebc017;--paper:#f4f3ef;--line:#e6e4dc;--orange:#b59b33;--white:#fff;--radius:8px}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;line-height:1.5}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #b09b40;outline-offset:3px}a{color:inherit;text-decoration:none}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1{font-size:clamp(34px,4vw,52px);font-weight:550;line-height:1.12;letter-spacing:-2px}h2{font-weight:550;font-size:25px;line-height:1.25;letter-spacing:-.7px}h3{font-size:18px;font-weight:550}.muted{color:var(--muted);font-size:14px;line-height:1.65}.eyebrow{font-size:10px;font-weight:650;letter-spacing:1.8px;line-height:1.6}.fine{font-size:12px;color:var(--muted);line-height:1.65}.error{font-size:13px;color:#8a6c15;line-height:1.5;min-height:0}.error:empty{display:none}
.topbar{height:90px;border-bottom:1px solid var(--line);padding:0 max(30px,calc((100vw - 1180px)/2));display:flex;justify-content:space-between;align-items:center;background:#fff}.brand{display:flex;align-items:center;gap:10px;font-size:30px;font-weight:600;letter-spacing:-1px}.brand-mark{width:38px;height:38px;background:var(--ink);color:var(--lime);font-family:Georgia,serif;font-size:43px;line-height:29px;text-align:center;border-radius:12px;padding-bottom:5px;font-weight:400}.private-label{margin-left:7px;color:#818177;font-size:10px;font-weight:450;letter-spacing:.7px;border-left:1px solid #e6e4dc;padding-left:14px}.header-actions{display:flex;gap:25px;align-items:center}.owner-label{font-size:12px;color:#818177;display:flex;align-items:center;gap:8px}.owner-label i{width:6px;height:6px;border-radius:50%;background:#ebc017}.text-button{border:0;background:none;color:var(--green);font-size:12px;padding:8px 0}.text-button:hover{text-decoration:underline}.light{color:#e6e4dc}.workspace{max-width:1180px;margin:auto;padding:43px 30px 0}.page-intro{display:flex;align-items:center;justify-content:space-between;gap:25px}.page-intro h1{margin-top:14px}.page-intro h1 span{color:#818177}.page-intro .muted{margin-top:15px}.date-picker{border:1px solid #e6e4dc;background:white;border-radius:15px;display:flex;align-items:center;padding:6px;gap:4px}.date-picker label{text-align:center;display:flex;flex-direction:column;gap:0;margin:0}.date-picker label span{font-size:10px;color:#818177}.date-picker input{border:0;background:none;width:145px;padding:4px 1px;font-size:13px;min-height:28px;color:var(--ink)}.icon-button{width:36px;height:36px;display:grid;place-items:center;border:0;background:none;border-radius:10px;color:var(--ink);font-size:25px;flex-shrink:0}.icon-button:hover{background:#f4f3ef}.tabs{display:flex;border-bottom:1px solid #e6e4dc;margin:34px 0 28px;gap:30px;overflow:auto}.tabs button{white-space:nowrap;color:#818177;font-size:13px;border:0;border-bottom:2px solid transparent;padding:0 0 14px;background:none}.tabs .active{border-bottom-color:var(--ink);color:var(--ink);font-weight:600}.dashboard-grid{display:grid;grid-template-columns:1.25fr 1fr;gap:22px}.daily-card{background:#14140f;color:#fff;border-radius:var(--radius);padding:27px 30px 25px;min-height:320px;position:relative;overflow:hidden}.daily-card:after{content:'';width:190px;height:190px;border:1px solid #ffffff08;border-radius:50%;position:absolute;top:-120px;right:120px;pointer-events:none}.card-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}.daily-card .eyebrow{color:#e6e4dc}.card-heading .text-button{font-size:10px}.energy-layout{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:23px}.energy-label{font-size:12px;color:#b8b8ad}.energy-value{display:flex;align-items:baseline;gap:9px;margin-top:0;line-height:1.1}.energy-value>span{font-size:66px;letter-spacing:-3px;font-weight:450}.energy-value small{font-size:14px;color:#b8b8ad}.energy-detail{font-size:12px;color:#818177;margin-top:12px}.energy-ring{position:relative;width:120px;height:120px;flex-shrink:0}.energy-ring svg{width:100%;height:100%;transform:rotate(-90deg)}.energy-ring circle{fill:none;stroke-width:6}.ring-track{stroke:#45453b}#ring-fill{stroke:var(--lime);stroke-dasharray:320.443;stroke-linecap:round;transition:stroke-dashoffset .5s}.energy-ring>div{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.energy-ring>div>span{font-size:21px;letter-spacing:-.7px}.energy-ring small{font-size:9px;color:#b8b8ad}.macro-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:27px;border-top:1px solid #ffffff1f;padding-top:20px}.macro-name{font-size:11px;color:#b8b8ad;display:flex;align-items:center;gap:6px}.dot{width:5px;height:5px;border-radius:50%;background:var(--lime);display:inline-block}.fat .dot{background:#b8b8ad}.carbs .dot{background:#fff}.macro-value{font-size:15px;margin-top:6px}.macro-value small{font-size:10px;color:#818177}.macro-remaining{font-size:10px;color:#818177;margin-top:3px}progress{width:100%;height:3px;display:block;border:0;border-radius:6px;margin-top:10px;background:#45453b;appearance:none}progress::-webkit-progress-bar{background:#45453b;border-radius:6px}progress::-webkit-progress-value{background:var(--lime);border-radius:6px}.fat progress::-webkit-progress-value{background:#b8b8ad}.carbs progress::-webkit-progress-value{background:#fff}progress::-moz-progress-bar{background:var(--lime)}.capture-card{background:#f4f3ef;border:1px solid #e6e4dc;border-radius:var(--radius);padding:27px 30px;display:flex;flex-direction:column;align-items:flex-start;position:relative;overflow:hidden}.capture-card .eyebrow{color:#818177;font-size:9px}.capture-card h2{font-size:30px;margin:10px 0;line-height:1.13;letter-spacing:-1px}.capture-card .muted{font-size:12px}.capture-card .primary{margin-top:23px;width:auto;min-width:190px}.capture-card>.fine{margin-top:9px;font-size:10px}.capture-icon{position:absolute;right:28px;top:45px;width:90px;height:90px;border-radius:50%;border:1px solid #e6e4dc;display:grid;place-items:center;font-size:75px;color:#45453b;transform:rotate(-30deg);font-family:Georgia,serif}.capture-icon:before{content:'';position:absolute;inset:-12px;border:1px dashed #e6e4dc;border-radius:50%}.primary,.secondary{border:0;min-height:46px;display:flex;align-items:center;justify-content:center;gap:20px;border-radius:12px;padding:12px 20px;font-size:13px;font-weight:500;width:100%}.primary{background:var(--green);color:white}.primary:hover{background:#33332a}.primary span{margin-left:auto}.secondary{background:#f4f3ef;color:var(--ink);border:1px solid #e6e4dc}.section-title{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:30px 0 18px}.section-title h2{font-size:22px}.section-title .muted{font-size:12px;margin-top:5px}.small-tag{font-size:10px;color:#818177;white-space:nowrap}.meal-list{display:flex;flex-direction:column;gap:12px}.meal-card{background:white;border:1px solid var(--line);border-radius:18px;display:flex;gap:18px;padding:18px;align-items:center}.meal-thumb{width:74px;height:74px;object-fit:cover;border-radius:12px;background:#f4f3ef;flex-shrink:0}.meal-placeholder{display:grid;place-items:center;font-family:Georgia,serif;color:#818177;font-size:32px}.meal-content{flex:1;min-width:0}.meal-meta{display:flex;gap:8px;font-size:10px;color:#818177;margin-bottom:4px}.meal-content h3{font-size:16px;overflow-wrap:anywhere}.meal-macros{font-size:11px;color:#818177;margin-top:5px}.meal-end{align-self:stretch;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end;gap:8px}.meal-energy{font-size:22px;font-weight:500;white-space:nowrap;letter-spacing:-.5px}.meal-energy small{font-size:10px;color:#818177;letter-spacing:0}.meal-controls{display:flex;gap:14px}.meal-controls button{font-size:10px}.delete-button{color:#818177}.empty-state{min-height:160px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px dashed #e6e4dc;border-radius:20px;color:#818177;text-align:center;padding:22px}.empty-state .empty-mark{font-family:Georgia,serif;font-size:35px;line-height:1.2;color:#818177}.empty-state p{font-size:14px;margin-top:7px}.empty-state small{font-size:11px;margin-top:5px}.gentle-note{display:flex;align-items:center;gap:12px;color:#818177;margin-top:23px;font-size:11px;padding:15px 0}.gentle-note>span{width:25px;height:25px;border:1px solid #e6e4dc;border-radius:50%;display:grid;place-items:center;font-size:14px}footer{border-top:1px solid var(--line);margin-top:30px;padding:22px 0 28px;font-size:18px;color:#818177;display:flex;align-items:center;gap:20px}footer span{font-size:10px;color:#818177}.two-columns{display:grid;grid-template-columns:1fr 1fr;gap:22px}.panel{border:1px solid var(--line);background:white;border-radius:var(--radius);padding:28px}.panel>.eyebrow{color:#818177;margin-bottom:13px}.panel>h2{margin-bottom:14px}.panel>.muted{margin-bottom:22px}.panel .section-title{margin-top:0}.panel>.fine{margin-top:18px}label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:500;margin-bottom:16px}input,select,textarea{background:#fff;border:1px solid #e6e4dc;border-radius:10px;padding:12px;color:var(--ink);width:100%;min-height:44px;font-size:14px}input::placeholder,textarea::placeholder{color:#818177}textarea{resize:vertical;min-height:80px;line-height:1.5}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.plan-notes>div{display:flex;gap:18px;padding:17px 0;border-bottom:1px solid var(--line)}.plan-notes>div>span{font-size:11px;color:#818177}.plan-notes p{font-size:13px;color:#818177}.export-link{margin-top:22px}.history-row,.workout-row{padding:15px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:12px}.history-row>span{font-size:12px;color:#818177}.history-row strong{font-size:13px;font-weight:500}.workout-row h3{font-size:15px}.workout-row p{font-size:12px;color:#818177;margin-top:4px;white-space:pre-wrap}.workout-row>div:last-child{text-align:right;font-size:13px;white-space:nowrap}.draft-card{border:1px solid #b8b8ad;background:#fff;border-radius:14px;padding:15px 18px;margin-bottom:12px;display:flex;align-items:center;justify-content:space-between;gap:15px}.draft-card p{font-size:12px}.draft-card small{color:#818177;font-size:10px}.draft-card button{min-width:90px;width:auto;font-size:11px;min-height:36px;padding:8px 12px}
dialog{border:1px solid #e6e4dc;border-radius:24px;padding:28px;width:min(660px,calc(100vw - 28px));max-height:92dvh;color:var(--ink);background:#fff;box-shadow:0 30px 100px #14140f22}dialog::backdrop{background:#14140f80;backdrop-filter:blur(3px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.dialog-heading .eyebrow{font-size:9px;color:#818177;margin-bottom:5px}.photo-actions{display:grid;grid-template-columns:1.3fr 1fr;gap:12px;margin-bottom:20px}.photo-button{border:1px dashed #b8b8ad;background:#f4f3ef;border-radius:13px;min-height:94px;margin:0;align-items:center;justify-content:center;cursor:pointer;font-size:13px;color:#45453b;gap:4px}.photo-button>span{font-size:25px;line-height:1.2}.secondary-photo{background:#f4f3ef;color:#818177;border-color:#e6e4dc}.photo-preview{position:relative;text-align:center;margin-bottom:14px}.photo-preview img{max-height:200px;max-width:100%;border-radius:12px}.photo-preview button{width:auto;font-size:10px;padding:7px 12px;min-height:30px;margin:6px auto 0}.manual-button{width:100%;margin-top:9px;padding:12px}.privacy-note{font-size:10px;color:#818177;line-height:1.5;text-align:center;margin-top:16px}#capture-form>.fine{margin-bottom:15px}#capture-form>.error,#edit-error{margin:12px 0}.estimate-summary{background:#f4f3ef;border-radius:14px;padding:16px;margin-bottom:20px;font-size:12px}.estimate-summary strong{display:block;font-size:25px;font-weight:500;margin-bottom:5px}.estimate-summary ul{padding-left:18px;margin:8px 0 0;color:#818177}.item-row{background:white;border:1px solid var(--line);border-radius:12px;padding:13px;margin:12px 0}.item-top{display:flex;align-items:center;gap:10px}.item-top input{flex:1}.item-top button{font-size:20px;min-height:38px}.item-nutrients{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:10px}.item-nutrients label{font-size:9px;margin:0;gap:4px}.item-nutrients input{font-size:12px;padding:8px;min-height:36px}.edit-totals{padding:15px;background:#f4f3ef;border-radius:12px;font-size:13px;margin:18px 0}.edit-totals strong{font-size:20px;margin-right:10px}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);padding:14px 22px;background:#14140f;color:white;border-radius:13px;z-index:100;width:max-content;max-width:calc(100vw - 30px);box-shadow:0 8px 35px #0002;font-size:13px}.mobile-add{display:none}@media(min-width:1400px){.workspace{padding-top:50px}.page-intro h1{font-size:52px}}
@media(max-width:850px){.capture-icon{right:20px;width:58px;height:58px;font-size:52px;top:55px}.capture-icon:before{inset:-8px}.daily-card,.capture-card{padding:24px}.energy-value>span{font-size:53px}.energy-ring{width:95px;height:95px}.macro-grid{gap:12px}.capture-card h2{font-size:26px}.two-columns{gap:16px}.panel{padding:22px}}
@media(max-width:650px){.topbar{height:70px;padding:0 20px}.brand{font-size:27px}.brand-mark{width:33px;height:33px;font-size:37px;line-height:25px}.private-label{font-size:9px;padding-left:10px}.header-actions{gap:15px}.owner-label{display:none}.workspace{padding:27px 18px 0}.page-intro{align-items:flex-start;gap:20px;flex-direction:column}.page-intro h1{font-size:36px;letter-spacing:-1.5px}.page-intro .eyebrow{font-size:9px}.page-intro .muted{font-size:12px;margin-top:10px}.date-picker{align-self:stretch;justify-content:space-between;padding:4px 9px}.date-picker label{flex-direction:row;align-items:center;gap:15px}.date-picker input{width:142px}.tabs{gap:25px;margin:25px 0 20px}.tabs button{font-size:12px;padding-bottom:12px}.dashboard-grid{grid-template-columns:1fr;gap:14px}.daily-card{min-height:300px;border-radius:20px;padding:22px 24px}.energy-layout{margin-top:18px}.energy-value>span{font-size:62px}.energy-ring{width:109px;height:109px}.macro-grid{margin-top:23px;padding-top:18px;gap:20px}.capture-card{padding:22px;min-height:220px;border-radius:20px}.capture-card h2{font-size:26px}.capture-card h2 br{display:none}.capture-card .eyebrow{font-size:8px}.capture-card .primary{width:100%;margin-top:20px}.capture-card>.fine{align-self:center}.capture-icon{right:27px;top:28px;width:40px;height:40px;font-size:36px}.capture-icon:before{inset:-6px}.capture-card .muted{font-size:11px}.capture-card .muted br{display:none}.section-title{margin-top:25px}.section-title h2{font-size:21px}.small-tag{font-size:9px}.meal-card{gap:12px;padding:13px;border-radius:15px;align-items:flex-start}.meal-thumb{width:57px;height:65px;border-radius:9px}.meal-content h3{font-size:14px}.meal-meta{font-size:9px;gap:5px;flex-wrap:wrap}.meal-macros{font-size:10px;line-height:1.7}.meal-energy{font-size:20px}.meal-end{gap:12px}.meal-controls{gap:10px}.meal-controls button{font-size:9px}.two-columns{grid-template-columns:1fr;gap:16px}.panel{border-radius:20px;padding:23px}.panel h2{font-size:23px}.gentle-note{align-items:flex-start;font-size:10px}.gentle-note>span{flex-shrink:0}footer{margin-top:20px;padding-bottom:85px;font-size:16px;gap:15px}footer span{font-size:9px}.mobile-add{display:grid;place-items:center;position:fixed;bottom:22px;right:21px;width:54px;height:54px;border-radius:18px;border:0;color:#e6e4dc;background:var(--green);font-size:28px;box-shadow:0 7px 22px #14140f30;z-index:5}.toast{bottom:90px;font-size:12px}dialog{padding:20px 16px;border-radius:20px;max-height:94dvh}.dialog-heading{margin-bottom:17px}.dialog-heading h2{font-size:23px}.form-grid{gap:11px}.item-nutrients{gap:5px}.item-nutrients input{padding:7px 4px;font-size:11px}.item-nutrients label{font-size:8px}.item-row{padding:10px}.estimate-summary{padding:13px;font-size:11px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

#live-camera video{width:100%;max-height:360px;border-radius:14px;background:#14140f;object-fit:contain;margin-bottom:12px}.photo-button{display:flex;flex-direction:column}

/* One palette for the journal, all forms, and the shared entry dialog. */
body{font-family:Manrope,Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
.topbar{height:74px;background:#fff}.brand-mark{background:#ebc017;color:#14140f;border-radius:10px}.private-label{border-color:#e6e4dc}.owner-label i{background:#ebc017}
.page-intro h1{font-size:34px;font-weight:550;letter-spacing:-1.2px}.page-intro h1 span{color:#818177}
.tabs,.entry-tabs{display:flex;gap:4px;padding:4px;border:1px solid #e6e4dc;background:#f4f3ef;border-radius:8px;overflow-x:auto}
.tabs{width:max-content;max-width:100%}.tabs button,.entry-tabs button{border:0;background:none;border-radius:5px;padding:10px 16px;font-size:12px;color:#818177;white-space:nowrap;min-height:40px}
.tabs button.active,.entry-tabs button[aria-selected="true"]{background:#ebc017;color:#14140f;font-weight:600}.entry-tabs{margin-bottom:22px}.entry-tabs button{flex:1}
.primary,.secondary,input,select,textarea{border-radius:7px}.primary:hover{background:#33332a}.secondary{background:#f4f3ef;border-color:#e6e4dc}
input,select,textarea{background:#fafaf7;border-color:#e6e4dc}.daily-card,.capture-card,.panel,.meal-card,.empty-state,.draft-card{border-radius:8px}
.capture-card{background:#fff;border:1px solid #e6e4dc;border-top:3px solid #ebc017}.capture-icon{background:#fcf6dc;color:#14140f;border-color:#e7dca4}.capture-icon:before{border-color:#e7dca4}
.macro-value small,.macro-remaining{color:#b8b8ad}.fat progress::-webkit-progress-value{background:#b8b8ad}.carbs progress::-webkit-progress-value{background:#fff}
.mobile-add{background:#14140f;color:#ebc017;border-radius:12px}.toast{background:#14140f;color:#fff;border-radius:8px}
#meal-dialog{--ink:#14140f;--muted:#818177;--green:#14140f;--lime:#ebc017;--line:#e6e4dc;border-color:#e6e4dc;border-radius:12px;background:#fff;box-shadow:0 30px 100px #14140f22;font-size:14px;line-height:1.5}
#meal-dialog .dialog-heading h2{font-size:24px;font-weight:550;color:#14140f;letter-spacing:-.7px}.dialog-heading .eyebrow{color:#818177}
.photo-button{background:#fcf6dc;border-color:#d9c77f;border-radius:8px;color:#514517}.secondary-photo{background:#f4f3ef;border-color:#e6e4dc;color:#818177}
.estimate-summary{background:#fcf6dc;border:1px solid #e7dca4;border-radius:8px}.estimate-summary ul{color:#818177}.edit-totals{background:#f4f3ef;border-radius:8px}.item-row,.photo-preview img,#live-camera video{border-radius:8px}
#meal-dialog input,#meal-dialog select,#meal-dialog textarea{font-family:inherit;line-height:1.5;min-width:0;box-sizing:border-box}
#meal-dialog .form-grid>label{min-width:0}.privacy-note{color:#818177}.add-button{border:0}
#entry-workout-error:empty{display:none}#entry-workout-error{margin:12px 0}
@media(max-width:650px){.topbar{height:70px}.page-intro h1{font-size:32px}.tabs{width:100%;gap:2px}.tabs button{flex:1;padding:9px 7px;font-size:11px}.panel,.daily-card,.capture-card,.meal-card{border-radius:8px}input,textarea,select{font-size:16px}#meal-dialog .dialog-heading h2{font-size:22px}.entry-tabs{margin-bottom:18px}.entry-tabs button{font-size:12px}.photo-button{font-size:12px}.item-nutrients input{font-size:11px}.form-grid label{min-width:0}}
