@charset "UTF-8";
:root{--bg:#f4f5f0;--panel:#fff;--ink:#202c27;--muted:#6e7973;--line:#e1e6df;--dark:#172320;--accent:#b5e67d;--accent-ink:#234020;--purple:#7257ca;--carb:#8b73d5;--protein:#479e85;--fat:#c79751;--danger:#b64c45;--shadow:0 10px 36px #1b30200a;--radius:22px;--sidebar:244px;font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);color-scheme:light}
*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #8b73d590;outline-offset:3px}input,select,textarea{width:100%;padding:12px 13px;color:var(--ink);background:var(--panel);border:1px solid var(--line);border-radius:12px;min-height:46px}textarea{resize:vertical;line-height:1.65}input::placeholder,textarea::placeholder{color:#8a948e}input[type=checkbox]{width:20px;height:20px;min-height:20px;accent-color:var(--purple)}input[type=file]{padding:10px}h1,h2,h3,p{margin:0}h1{font-size:clamp(27px,3vw,37px);line-height:1.2;letter-spacing:-1.3px;font-weight:650}h2{font-size:21px;letter-spacing:-.55px;font-weight:650}h3{font-size:17px;font-weight:630}small{font-size:12px}strong{font-weight:650}.icon{width:20px;height:20px;flex:none;vertical-align:middle}.muted{color:var(--muted)}.intro{margin-top:10px;max-width:760px;font-size:14px}.eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:1.7px;font-weight:700;color:var(--muted);margin-bottom:10px}.skip{position:fixed;left:10px;top:-90px;background:var(--ink);color:var(--panel);padding:14px;z-index:1000}.skip:focus{top:10px}.boot{display:flex;min-height:100dvh;align-items:center;justify-content:center;gap:15px;flex-direction:column}.brand-mark{height:44px;width:44px;background:var(--accent);color:var(--dark);display:grid;place-items:center;border-radius:14px;font-size:19px;letter-spacing:-3px;font-weight:800;position:relative}.brand-mark span{position:absolute;bottom:3px;right:7px;font-size:12px}.sidebar{position:fixed;left:0;top:0;bottom:0;width:var(--sidebar);background:var(--dark);color:#c3cec7;padding:29px 20px;display:flex;flex-direction:column;z-index:30}.brand{display:flex;align-items:center;gap:12px;padding:0 4px;color:#fff}.brand strong{font-size:20px;letter-spacing:-.7px}.brand small{display:block;color:#8faaa0;font-size:10px;letter-spacing:1.8px;margin-top:1px}.nav-label{font-size:10px;letter-spacing:1.8px;color:#789087;margin:38px 15px 13px;text-transform:uppercase}.nav{display:flex;flex-direction:column;gap:6px}.nav a{display:flex;align-items:center;gap:12px;padding:13px 15px;border-radius:12px;font-size:13px;font-weight:550;transition:background .15s,color .15s}.nav a:hover{background:#25362f;color:#fff}.nav a.active{background:#b5e67d;color:#1d351b}.sidebar-foot{margin-top:auto;padding-top:30px}.sync-chip{display:flex;gap:10px;align-items:center;font-size:11px;background:#22352c;border:1px solid #35493e;border-radius:12px;padding:12px}.sync-chip .icon{width:16px;color:var(--accent)}.profile-chip{display:flex;align-items:center;gap:10px;margin-top:18px;font-size:12px}.avatar{width:34px;height:34px;background:#35463d;color:#dbe9e0;border-radius:50%;display:grid;place-items:center;font-weight:650}.profile-chip .account-name{max-width:145px;overflow:hidden;text-overflow:ellipsis}.main-wrap{margin-left:var(--sidebar);min-height:100dvh}.topbar{height:79px;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:0 42px;border-bottom:1px solid var(--line);font-size:12px}.topbar .breadcrumb{display:flex;align-items:center;gap:10px;color:var(--muted)}.topbar .breadcrumb .icon{width:15px}.topbar-right{display:flex;gap:14px;align-items:center}.status-dot{width:7px;height:7px;display:inline-block;background:var(--protein);border-radius:50%;margin-right:6px}.status-dot.offline{background:var(--fat)}.mobile-brand,.bottom-nav{display:none}main{max-width:1450px;margin:0 auto;padding:37px 42px 50px}.page-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:28px}.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.btn{display:inline-flex;justify-content:center;align-items:center;gap:9px;min-height:44px;padding:11px 17px;border:1px solid transparent;border-radius:12px;font-size:12px;font-weight:650;text-align:center;white-space:nowrap;transition:transform .1s,background .15s}.btn:active{transform:translateY(1px)}.btn.primary{background:var(--dark);color:#fff}.btn.primary:hover{background:#2a4237}.btn.accent{background:var(--accent);color:var(--accent-ink)}.btn.secondary{border-color:var(--line);background:var(--panel);color:var(--ink)}.btn.ghost{color:var(--ink);background:transparent}.btn.danger{background:var(--danger);color:#fff}.btn.small{font-size:11px;min-height:34px;padding:7px 12px}.icon-btn{display:inline-grid;place-items:center;width:40px;height:40px;border:1px solid var(--line);background:var(--panel);color:var(--muted);border-radius:11px;flex:none}.icon-btn:hover{color:var(--ink);border-color:var(--muted)}.panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:25px;margin-bottom:20px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:20px}.panel-heading p{font-size:12px;color:var(--muted);margin-top:5px}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:20px}.grid-main{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(270px,1fr);gap:22px}.stack{display:flex;flex-direction:column;gap:20px}.stack>.panel{margin:0}.hero{border-radius:var(--radius);background:var(--dark);color:#f2f7ee;padding:27px 29px;position:relative;overflow:hidden;margin-bottom:25px;display:flex;justify-content:space-between;align-items:center;gap:25px}.hero .eyebrow{color:#b5c8b3}.hero h2{font-size:26px;letter-spacing:-1px;max-width:440px;line-height:1.3}.hero p{color:#b6c8bc;font-size:13px;max-width:450px;margin:11px 0 18px}.hero-deco{width:124px;height:124px;border:1px solid #7ca26680;border-radius:50%;display:grid;place-items:center;flex:none;position:relative;background:#253e31}.hero-deco:before{content:"";position:absolute;inset:15px;border:1px solid #9cbf8460;border-radius:50%}.hero-deco .icon{width:50px;height:50px;color:var(--accent);stroke-width:1.2}.source-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:18px 0 24px}.source-card{padding:20px;background:var(--panel);border:1px solid var(--line);border-radius:20px;min-width:0}.source-top{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:600;flex-wrap:wrap}.macro-icon{display:grid;place-items:center;width:29px;height:29px;border-radius:9px;background:#8b73d518;color:var(--carb);font-size:12px}.P .macro-icon{color:var(--protein);background:#479e8518}.L .macro-icon{color:var(--fat);background:#c7975118}.source-top .badge{margin-left:auto;font-size:9px;padding:3px 6px}.source-value{font-size:38px;letter-spacing:-1.4px;font-weight:650;margin:14px 0 11px;line-height:1.1}.source-value>span{font-size:15px;letter-spacing:0;font-weight:450;color:var(--muted);margin-left:7px}.meter{height:5px;background:#8b73d513;border-radius:5px;overflow:hidden;margin-bottom:13px}.meter i{display:block;height:100%;background:var(--carb);border-radius:5px}.P .meter{background:#479e8513}.P .meter i{background:var(--protein)}.L .meter{background:#c7975113}.L .meter i{background:var(--fat)}.source-detail{display:flex;justify-content:space-between;gap:8px;color:var(--muted);font-size:10px}.source-detail b{color:var(--ink);margin-left:4px}.warning-text{color:var(--danger);display:block;margin-top:8px}.nutrient-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.nutrient{padding:13px 16px;background:var(--bg);border-radius:13px;position:relative}.nutrient .dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--carb);margin-right:6px}.nutrient.P .dot{background:var(--protein)}.nutrient.L .dot{background:var(--fat)}.nutrient.E .dot{background:var(--muted)}.nutrient-label{font-size:10px;color:var(--muted)}.nutrient strong{display:block;font-size:22px;letter-spacing:-.7px;margin-top:3px}.nutrient small{font-size:11px;margin-left:5px;color:var(--muted);font-weight:400;letter-spacing:0}.badge{display:inline-block;font-size:10px;font-weight:600;border-radius:6px;padding:4px 8px;background:var(--bg);color:var(--muted);line-height:1.35;white-space:normal}.badge.ok{background:#e9f4e4;color:#4d7540}.badge.near,.badge.planned{background:#fff2d6;color:#967221}.badge.over,.badge.error{background:#fbe9e4;color:#a04b3b}.badge.under,.badge.draft{background:#eee9f8;color:#8060ae}.badge.unknown{background:#f1e7de;color:#8b6242}.badge.consumed{background:#e8f3ed;color:#3d8060}.notice{display:flex;gap:12px;padding:15px 18px;border-radius:14px;border:1px solid #dcd6ed;background:#f3f0fa;color:#665482;font-size:12px;line-height:1.6;margin:0 0 20px}.notice .icon{margin-top:1px;width:18px}.notice.warn{background:#fdf5e8;border-color:#eadbc0;color:#8b6a33}.notice.success{background:#eef7e9;border-color:#cfdfc5;color:#527345}.notice a{text-decoration:underline;font-weight:600}.food-list,.meal-list{display:flex;flex-direction:column}.food-row,.meal-row{display:flex;align-items:center;gap:14px;padding:16px 0;border-bottom:1px solid var(--line);min-width:0}.food-row:last-child,.meal-row:last-child{border-bottom:0}.food-symbol,.meal-symbol{width:45px;height:45px;flex:none;background:var(--bg);border-radius:14px;display:grid;place-items:center;color:var(--protein)}.food-info,.meal-info{min-width:0;flex:1}.food-info strong,.meal-info strong{font-size:13px;display:block;overflow-wrap:anywhere}.food-info small,.meal-info small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.food-macros{display:flex;gap:12px;font-size:11px;color:var(--muted)}.food-macros b{color:var(--ink);font-weight:550}.row-arrow{color:#b4bcb6}.row-arrow .icon{width:16px}.empty{padding:40px 20px;text-align:center}.empty-icon{width:64px;height:64px;background:var(--bg);border-radius:20px;display:grid;place-items:center;margin:0 auto 18px;color:var(--protein)}.empty-icon .icon{width:30px;height:30px;stroke-width:1.4}.empty p{max-width:400px;margin:10px auto 20px;color:var(--muted);font-size:13px}.stat-line{display:flex;justify-content:space-between;gap:20px;padding:14px 0;border-bottom:1px solid var(--line);font-size:12px}.stat-line:last-child{border:0}.stat-line>span{color:var(--muted)}.stat-line>strong{text-align:right}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.form-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.field{display:flex;flex-direction:column;gap:7px;font-size:12px;min-width:0}.field>span{font-weight:600}.field small{font-size:10px;color:var(--muted);line-height:1.5}.field.full{grid-column:1/-1}.check{display:flex;gap:10px;align-items:flex-start;font-size:12px;margin:8px 0}.check input{margin-top:1px;flex:none}.check small{display:block;color:var(--muted);font-size:11px;margin-top:3px}.form-actions{display:flex;justify-content:flex-end;gap:10px;align-items:center;margin-top:25px}.form-error{background:#fbeae5;border:1px solid #eac5b9;color:#963c26;padding:13px 16px;border-radius:11px;margin:15px 0;font-size:12px}.form-error[hidden]{display:none}.section-title{margin-bottom:20px;display:flex;align-items:center;gap:12px}.section-number{width:28px;height:28px;display:grid;place-items:center;background:var(--bg);color:var(--muted);border-radius:9px;font-size:11px}.section-title p{font-size:12px;color:var(--muted);margin-top:3px}.divider{height:1px;background:var(--line);margin:23px 0}.toolbar{display:flex;gap:12px;align-items:center;margin-bottom:22px;flex-wrap:wrap}.search-box{display:flex;gap:10px;align-items:center;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:0 13px;flex:1;min-width:180px}.search-box input{border:0;background:transparent;padding:12px 0;outline:none;box-shadow:none}.search-box .icon{color:var(--muted);width:18px}.tabs{display:inline-flex;gap:4px;background:#e9ece6;padding:4px;border-radius:12px;flex-wrap:wrap}.tabs button,.tabs a{border:0;background:transparent;color:var(--muted);padding:9px 15px;border-radius:9px;font-size:12px;font-weight:550}.tabs .active{background:var(--panel);color:var(--ink);box-shadow:0 2px 5px #00000008}.quantity-controls{display:grid;grid-template-columns:1fr 1fr;gap:13px}.preview-block{background:var(--bg);padding:20px;border-radius:15px;margin-top:20px}.preview-block .source-card{padding:15px}.preview-block .source-value{font-size:28px}.preview-block .source-detail{font-size:9px}.summary-note{font-size:11px;color:var(--muted);line-height:1.7;margin-top:14px}.dialog{background:var(--panel);color:var(--ink);border:1px solid var(--line);padding:0;border-radius:24px;max-width:620px;width:calc(100% - 32px);max-height:88dvh;box-shadow:0 30px 100px #00120b40}.dialog.wide{max-width:900px}.dialog::backdrop{background:#0a191378;backdrop-filter:blur(4px)}.dialog-header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px 25px 15px;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--panel);z-index:1}.dialog-header h2{font-size:20px}.dialog-body{padding:24px}.dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:24px}.toasts{position:fixed;bottom:28px;right:28px;z-index:200;display:flex;flex-direction:column;gap:10px;max-width:420px}.toast{display:flex;gap:12px;align-items:center;background:var(--dark);color:#fff;padding:15px 20px;border:1px solid #465a49;border-radius:14px;font-size:13px;box-shadow:0 12px 40px #0002}.toast.error{background:#723c32;border-color:#a15e4f}.toast .icon{color:var(--accent)}.code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere;background:var(--bg);padding:20px;border-radius:13px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:12px}th{text-align:left;font-size:10px;text-transform:uppercase;letter-spacing:.6px;color:var(--muted);font-weight:650;padding:12px;border-bottom:1px solid var(--line)}td{padding:14px 12px;border-bottom:1px solid var(--line);vertical-align:middle}td.actions{display:table-cell}td .btn{margin:3px}tr:last-child td{border:0}.rule-block{padding:20px;border:1px solid var(--line);border-radius:17px;margin-bottom:17px}.rule-block .source-top{margin-bottom:20px}.rule-block .form-grid{gap:14px}.item-editor{border:1px solid var(--line);border-radius:17px;padding:18px;margin-bottom:13px}.item-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:15px}.item-head h3{font-size:14px}.item-head small{color:var(--muted);font-size:11px}.item-actions{display:flex;gap:5px}.item-quantities{display:grid;grid-template-columns:1fr 1fr;gap:20px}.item-quantities h4{font-size:10px;text-transform:uppercase;color:var(--muted);letter-spacing:.8px;margin:0 0 10px}.item-quantities .field>span{font-size:10px}.item-totals{margin-top:13px;font-size:11px;color:var(--muted);line-height:1.8}.sticky-summary{position:sticky;top:25px;align-self:start}.composer-layout{display:grid;grid-template-columns:minmax(0,1fr) 315px;gap:22px}.composer-layout .source-grid{grid-template-columns:1fr;gap:10px;margin:16px 0}.composer-layout .source-card{padding:13px 15px;border-radius:14px}.composer-layout .source-value{font-size:28px;margin:9px 0}.composer-layout .meter{margin-bottom:8px}.composer-layout .nutrient-grid{grid-template-columns:1fr 1fr}.composer-layout .nutrient strong{font-size:20px}.camera-view{position:relative;background:#101914;border-radius:20px;overflow:hidden;min-height:240px;margin:20px 0}.camera-view video{width:100%;display:block;max-height:450px;object-fit:cover}.camera-guide{position:absolute;left:15%;right:15%;top:30%;bottom:30%;border:2px solid var(--accent);border-radius:12px;pointer-events:none}.scan-actions{display:flex;gap:10px;flex-wrap:wrap}.file-label{cursor:pointer}.file-label input{position:absolute;width:1px;height:1px;opacity:0}.help-section h3{margin:20px 0 8px}.help-section p{font-size:13px;color:var(--muted);margin-bottom:13px;line-height:1.85}.help-section code{font-size:11px;background:var(--bg);padding:3px 6px;border-radius:5px}.auth-shell{min-height:100dvh;display:grid;grid-template-columns:minmax(350px,1fr) minmax(380px,1fr)}.auth-story{background:var(--dark);color:#e9f3e5;padding:50px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.auth-story:after{content:"";width:520px;height:520px;border:1px solid #acc98930;border-radius:50%;position:absolute;bottom:-270px;right:-260px}.auth-story .brand{padding:0}.auth-message{padding:60px 0;max-width:510px}.auth-message .eyebrow{color:var(--accent)}.auth-message h1{font-size:clamp(40px,4.4vw,64px);line-height:1.14;letter-spacing:-2.7px;font-weight:550}.auth-message h1 span{color:var(--accent)}.auth-message p{font-size:14px;color:#aabdb0;line-height:1.85;margin-top:25px;max-width:400px}.auth-pills{display:flex;gap:9px;flex-wrap:wrap;margin-top:25px}.auth-pills span{border:1px solid #4e6655;padding:6px 12px;font-size:10px;border-radius:20px;color:#c5d8ca}.auth-story footer{font-size:10px;letter-spacing:1px;color:#8ba392}.auth-content{padding:50px;display:flex;justify-content:center;align-items:center}.auth-box{width:100%;max-width:375px}.auth-box h2{font-size:28px;letter-spacing:-.9px;margin:6px 0 12px}.auth-box>p{font-size:13px;color:var(--muted);margin-bottom:30px}.auth-box .field{margin:18px 0}.auth-box .btn.primary{width:100%;margin-top:10px}.auth-links{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:22px;font-size:11px;color:var(--muted)}.auth-links button{border:0;background:none;color:var(--muted);padding:0;font-size:11px}.auth-note{margin-top:35px;font-size:10px;color:var(--muted);line-height:1.8}.restore-banner{margin-bottom:20px;display:flex;justify-content:space-between;gap:15px;align-items:center}.inline-heading{display:flex;gap:10px;align-items:center}.nowrap{white-space:nowrap}.spacer{height:16px}.color-bar{height:6px;display:flex;border-radius:6px;overflow:hidden}.color-bar span{height:100%}.link-text{font-size:12px;text-decoration:underline;color:var(--purple);background:none;border:0;padding:0}.list-card{background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:23px;display:flex;flex-direction:column;gap:14px;position:relative}.list-card p{color:var(--muted);font-size:12px}.list-card .actions{margin-top:auto}.cards-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.date-filter{max-width:180px}.install-banner{position:fixed;bottom:20px;left:calc(var(--sidebar) + 25px);z-index:45;background:var(--panel);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:17px;padding:15px 20px;display:flex;align-items:center;gap:16px;font-size:12px}.install-banner p{max-width:260px}.danger-zone{border-color:#e6c7c0}.sync-item{border:1px solid var(--line);border-radius:15px;padding:18px;margin-bottom:15px}.sync-item p{font-size:12px;color:var(--muted);margin:9px 0 14px}.mini{font-size:10px}.mobile-only{display:none}
:root[data-theme=dark]{--bg:#15201a;--panel:#1f2c23;--ink:#e3eadf;--muted:#9aaa9e;--line:#354639;--dark:#0e1913;--shadow:0 10px 36px #00000015;color-scheme:dark}.source-grid.compact .source-value{font-size:27px}.source-grid.compact .source-card{padding:15px}.nutrient-grid.compact .nutrient{padding:10px}.nutrient-grid.compact strong{font-size:19px}:root[data-theme=dark] .notice{background:#302c3e;border-color:#514864;color:#c4b5de}:root[data-theme=dark] .notice.warn{background:#3b3425;border-color:#665738;color:#dbca9b}:root[data-theme=dark] .tabs{background:#122017}:root[data-theme=dark] .badge{background:#344337;color:#becebe}
@media(max-width:1200px){:root{--sidebar:216px}main{padding:30px 26px}.topbar{padding:0 26px}.sidebar{padding:25px 15px}.brand strong{font-size:18px}.composer-layout{grid-template-columns:minmax(0,1fr) 280px}.source-top .badge{display:none}.source-detail{font-size:9px}.hero-deco{width:90px;height:90px}}
@media(max-width:1000px){.grid-main{grid-template-columns:1fr}.composer-layout{grid-template-columns:1fr}.sticky-summary{position:static}.composer-layout .source-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.composer-layout .nutrient-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.food-macros{gap:8px;font-size:10px}.form-grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}.page-heading{align-items:flex-start}.page-heading .actions{max-width:270px;justify-content:flex-end}}
@media(max-width:760px){:root{font-size:14px;--sidebar:0px;--radius:18px}.sidebar{display:none}.main-wrap{margin:0}.topbar{height:66px;padding:0 18px;background:var(--panel);position:sticky;top:0;z-index:25}.topbar .breadcrumb{display:none}.mobile-brand{display:flex;align-items:center;gap:9px;font-size:17px;font-weight:650;letter-spacing:-.5px}.mobile-brand .brand-mark{width:32px;height:32px;border-radius:10px;font-size:15px}.mobile-brand .brand-mark span{font-size:9px;bottom:2px;right:5px}.topbar-right{gap:10px}.topbar-right .date-label{display:none}.topbar-status{font-size:10px}.topbar .icon-btn{width:34px;height:34px}.bottom-nav{position:fixed;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(5,1fr);background:var(--panel);border-top:1px solid var(--line);padding:8px 6px calc(8px + env(safe-area-inset-bottom));z-index:40;box-shadow:0 -4px 18px #15291b05}.bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:var(--muted);font-size:9px;min-height:45px}.bottom-nav .icon{width:21px;height:21px}.bottom-nav a.active{color:var(--purple);font-weight:650}.bottom-nav a.active .icon{stroke-width:2.2}main{padding:26px 17px 112px}h1{font-size:28px;letter-spacing:-1px}.page-heading{flex-direction:column;align-items:stretch;gap:18px;margin-bottom:23px}.page-heading .actions{max-width:none;justify-content:flex-start}.page-heading .btn{padding:10px 14px}.eyebrow{font-size:9px;letter-spacing:1.5px;margin-bottom:8px}.intro{font-size:12px;line-height:1.7}.hero{padding:22px;margin-bottom:20px}.hero h2{font-size:22px;max-width:300px}.hero p{font-size:12px}.hero-deco{display:none}.source-grid{gap:8px;margin:16px 0 22px}.source-card{padding:12px 10px;border-radius:15px}.source-top{font-size:10px;gap:6px}.macro-icon{width:23px;height:23px;font-size:10px;border-radius:7px}.source-value{font-size:27px;margin:13px 0 12px}.source-value>span{font-size:11px;margin-left:3px}.source-detail{flex-direction:column;gap:4px;font-size:9px}.warning-text{font-size:9px;line-height:1.45}.panel{padding:20px;margin-bottom:17px}.panel-heading{margin-bottom:15px;gap:12px}.panel-heading h2{font-size:18px}.panel-heading .btn{padding:8px 10px;min-height:34px;font-size:10px}.nutrient-grid{gap:6px}.nutrient{padding:10px 8px;border-radius:10px}.nutrient-label{font-size:8px}.nutrient .dot{width:4px;height:4px;margin-right:3px}.nutrient strong{font-size:18px}.nutrient small{font-size:9px;margin-left:3px}.food-row,.meal-row{gap:10px;padding:15px 0}.food-symbol,.meal-symbol{height:38px;width:38px;border-radius:12px}.food-info strong,.meal-info strong{font-size:12px}.food-info small,.meal-info small{font-size:10px}.food-macros{display:none}.grid-2,.cards-grid{grid-template-columns:1fr}.grid-main{gap:16px}.form-grid{gap:15px}.form-grid.three{grid-template-columns:1fr 1fr}.form-grid.four{grid-template-columns:1fr 1fr}.form-actions{flex-wrap:wrap}.form-actions .btn{flex:1}.field{font-size:11px}.field small{font-size:10px}input,select,textarea{font-size:16px;padding:11px 12px}.check{font-size:12px}.dialog{max-height:90dvh;border-radius:20px;width:calc(100% - 20px)}.dialog-header{padding:18px}.dialog-body{padding:18px}.dialog-header h2{font-size:18px}.toasts{left:14px;right:14px;bottom:calc(88px + env(safe-area-inset-bottom));max-width:none}.toast{font-size:12px;padding:13px 16px}.toolbar{gap:10px}.search-box{min-width:100%}.toolbar .btn{flex:1}.tabs{width:100%;display:flex}.tabs>*{flex:1;text-align:center;padding:9px 10px}.item-quantities{grid-template-columns:1fr;gap:15px}.item-editor{padding:15px}.item-head h3{font-size:13px}.item-head .icon-btn{width:32px;height:32px}.item-quantities .quantity-controls{gap:10px}.item-quantities input,.item-quantities select{font-size:14px}.composer-layout .source-grid{gap:8px}.composer-layout .source-card{padding:11px 9px}.composer-layout .source-value{font-size:25px}.composer-layout .nutrient-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.composer-layout .nutrient strong{font-size:18px}.rule-block{padding:16px}.auth-shell{display:flex;flex-direction:column;min-height:100dvh}.auth-story{padding:27px 25px 30px}.auth-story .brand strong{font-size:21px}.auth-message{padding:32px 0 0;max-width:430px}.auth-message h1{font-size:35px;letter-spacing:-1.5px}.auth-message p{font-size:12px;margin-top:16px}.auth-pills{margin-top:18px}.auth-story footer{display:none}.auth-content{padding:33px 25px 45px;align-items:flex-start}.auth-box{max-width:450px}.auth-box h2{font-size:25px}.auth-box>p{margin-bottom:20px}.auth-note{margin-top:24px}.auth-story:after{display:none}.install-banner{left:14px;right:14px;bottom:92px;gap:10px;font-size:11px;padding:13px}.install-banner .btn{padding:8px;font-size:10px}.mobile-only{display:block}.source-grid.compact .source-value{font-size:24px}.source-grid.compact .source-card{padding:12px 10px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{.sidebar,.topbar,.bottom-nav,.actions,.btn,.toasts,.install-banner{display:none!important}.main-wrap{margin:0}main{padding:0;max-width:none}.panel,.source-card{box-shadow:none;break-inside:avoid}.page-heading{margin-top:0}.hero{background:#fff;color:#000}.source-grid{display:grid;grid-template-columns:repeat(3,1fr)}body{background:white;color:#000}.dialog{position:static;max-height:none;width:100%;border:0}.dialog-header button{display:none}}
