/* Creation journeys: numbered groups and contextual actions only. */
.creation-form{min-width:0}
.creation-form [hidden]{display:none!important}
.creation-options{margin:14px 0;border:1px solid #cdd8c1;border-radius:14px;padding:0 12px;background:#fffdf8}
.creation-options>summary{min-height:44px;padding:13px 0;cursor:pointer;font-size:12px;font-weight:700;color:var(--green)}
.creation-step{min-width:0;padding:16px;margin:0 0 14px;border:1px solid var(--line);border-radius:20px;background:#fffdf8}
.creation-step-title{display:flex;align-items:center;gap:10px;line-height:1.45;color:var(--ink)}
.step-badge{display:inline-grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:10px;background:#f4dfce;color:#874221;font-size:14px;font-weight:800}
.creation-finish{background:#f0f4e8;border-color:#d7e1cb}
.creation-finish>.creation-step-title .step-badge{background:#dce8ce;color:var(--green)}
.creation-form .field{margin:15px 0}
.creation-form .field:last-child{margin-bottom:0}
.creation-form .row,.creation-form .form-grid{min-width:0;grid-template-columns:repeat(2,minmax(0,1fr))}
.creation-form .field input,.creation-form .field select{padding-inline:10px}
.creation-form .preview{margin:16px 0}
.creation-form #package-options{border-top:1px solid var(--line);margin-top:16px;padding-top:16px}
.creation-form .creation-save{background:var(--green);color:white;margin-top:15px}
.creation-form #add-ingredient,.creation-form #create-ingredient,.creation-form #confirm-ingredient{background:#b14c21;color:white;border:1px solid #b14c21;min-height:52px;border-radius:14px;padding:13px 14px;font-weight:800}
.creation-form #add-ingredient:hover,.creation-form #create-ingredient:hover,.creation-form #confirm-ingredient:hover{background:#933d19;border-color:#933d19}
.creation-form #add-ingredient{margin-top:12px}
.creation-form .ingredient-picker,.creation-form .ingredient-editor{padding:12px;margin:14px 0;background:#faf6ee;border-color:#e4d7c6;border-radius:16px}
.creation-form .ingredient-step+.ingredient-step{border-top:1px solid #e4d7c6;margin-top:18px;padding-top:18px}
.creation-form .ingredient-picker>h3{color:#874221}
.creation-form #ingredient-results .library-item{padding:12px 10px;margin:8px 0;border:1px solid #e1c9b7;border-radius:14px;background:#fffdf8;gap:9px}
.creation-form #ingredient-results .library-item:hover{background:#fbefdf;border-color:#b14c21}
.creation-form #ingredient-results .library-item>.info{overflow-wrap:anywhere}
.creation-form #ingredient-results .library-item>span:last-child{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:10px;background:#b14c21;color:white;font-size:22px}
.creation-form .ingredient-actions{gap:8px;margin-top:12px;flex-wrap:wrap}
.creation-form #ingredient-back,.creation-form #ingredient-cancel,.creation-form #ingredient-more,.creation-form [data-edit-i]{padding:11px 13px;border:1px solid #dce0d5;border-radius:12px;background:#edf0e7;color:#536254;min-height:44px;text-align:center}
.creation-form #ingredient-picker #ingredient-cancel{margin-top:8px}
.creation-form #ingredient-more{margin:8px 0}
.creation-form .ingredient-picker>#ingredient-cancel{margin-top:10px}
.creation-form [data-remove-i]{padding:11px 13px;border:1px solid #ead7ce;border-radius:12px;background:#fbf1eb;color:#8a4b3a;min-height:44px}
.creation-form .ingredient-save-product{min-height:44px;cursor:pointer;overflow-wrap:anywhere}
.creation-form.creation-form :is(button,input,select,textarea,summary):focus-visible{outline:3px solid #9b5a30;outline-offset:3px}
@media(max-width:350px){.creation-step{padding:12px}.creation-form .ingredient-picker,.creation-form .ingredient-editor{padding:10px}.creation-form #ingredient-results .library-item{padding:10px 8px}.creation-form #ingredient-results .food-icon{display:none}}

/* тарелочка · fresh pantry · locally hosted, offline-ready type */
.ingredient-editor,.ingredient-picker{min-width:0;padding:16px;margin:16px 0;border:1px solid var(--line);border-radius:18px;background:var(--soft)}
.ingredient-actions{display:flex;justify-content:space-between;gap:16px}.ingredient-row>small{display:block;margin-top:6px;overflow-wrap:anywhere}.ingredient-save-product{display:flex;align-items:center;gap:10px;font-size:12px;line-height:1.6;margin:16px 0}.ingredient-save-product input{width:22px;height:22px;flex:0 0 22px;accent-color:var(--green)}.ingredient-empty{padding:18px 0;font-size:13px;color:var(--muted)}#save-dish:disabled{opacity:.45;cursor:default}.ingredient-editor .preview{padding:15px;font-size:13px}.ingredient-picker .search{margin-top:12px}#ingredient-results{max-height:45dvh;overflow-y:auto;overscroll-behavior:contain}#ingredient-results .library-item{padding:12px 0}#ingredient-workspace input,#ingredient-workspace select{min-width:0;max-width:100%}
@font-face{font-family:Manrope;font-style:normal;font-weight:400 800;font-display:swap;src:url('./fonts/manrope-cyrillic.woff2') format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Manrope;font-style:normal;font-weight:400 800;font-display:swap;src:url('./fonts/manrope-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root{--paper:#f5f6f0;--white:#fff;--ink:#203b32;--muted:#647268;--line:#e4e8de;--soft:#edf0e7;--green:#254d3d;--orange:#254d3d;--lime:#dcebb5;--radius:22px;font-family:Manrope,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none;color-scheme:light}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0;background:none;color:inherit;min-height:44px;touch-action:manipulation;transition:background .16s,transform .16s,box-shadow .16s}button:active{transform:scale(.98)}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #859d50;outline-offset:3px}h1,h2,h3,p{margin:0}h1{font-size:31px;line-height:1.2;font-weight:800;letter-spacing:-1.25px}h2{font-size:18px;font-weight:800;letter-spacing:-.5px}h3{font-size:15px;font-weight:700;line-height:1.45;overflow-wrap:anywhere}p{line-height:1.6}small{font-size:12px;line-height:1.55;color:var(--muted)}
.shell{max-width:520px;min-height:100dvh;margin:auto;padding:calc(22px + env(safe-area-inset-top)) 22px calc(122px + env(safe-area-inset-bottom));background:var(--paper)}
header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:30px;min-width:0}.brand{display:flex;align-items:center;gap:9px;font-size:17px;font-weight:800;letter-spacing:-.65px;white-space:nowrap}.brand-mark{display:grid;place-items:center;width:32px;height:32px;flex:0 0 32px;border:1.7px solid var(--green);border-radius:50%;background:var(--lime)}.brand-mark:after{content:'';display:block;width:19px;height:19px;border:1px solid var(--green);border-radius:50%}.date{border:1px solid var(--line);background:var(--white);border-radius:40px;font-size:12px;padding:10px 11px;color:var(--ink);font-weight:600;min-height:40px}
.heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px;min-height:44px}.heading p{display:none}.settings-shortcut{width:44px;height:44px;flex:0 0 44px;display:grid;place-items:center;background:var(--white);border:1px solid var(--line);color:var(--green);border-radius:50%;padding:11px}.settings-shortcut svg{width:21px;height:21px}.settings-shortcut:hover{background:var(--soft)}
/* Diary: one summary, then one primary action. No decorative chart. */
.hero{padding:23px 20px 18px;background:var(--lime);border:1px solid #d5e4ad;border-radius:26px;position:relative;overflow:hidden}.hero-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.eyebrow{font-size:12px;font-weight:600;color:var(--muted)}.hero .eyebrow{color:#4e6244!important}.hero-kcal{font-size:51px;line-height:1.1;letter-spacing:-2.5px;font-weight:800;font-variant-numeric:tabular-nums;margin-top:8px}.hero-kcal span{font-size:15px;font-weight:600;color:#526647;letter-spacing:-.35px}.hero-foot{font-size:12px;font-weight:600;color:#465e3b;margin-top:9px}.summary-symbol{display:grid;place-items:center;width:40px;height:40px;flex:0 0 40px;border:1px solid #b5c78d;border-radius:50%;color:#3c5530}.summary-symbol svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.calorie-track{height:6px;background:#c5d5a3;border-radius:6px;overflow:hidden;margin-top:20px}.calorie-track i{display:block;height:100%;background:var(--green);border-radius:6px}.macro-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:18px}.macro-grid>div{background:#f9fced;padding:12px 10px;border-radius:15px;min-width:0}.macro-grid small{display:block;font-size:10px;color:#5b6c50;font-weight:600}.macro-grid b{display:inline-block;margin-top:7px;font-size:20px;line-height:1.1;font-weight:800;letter-spacing:-.5px;font-variant-numeric:tabular-nums}.macro-grid .macro-target{font-size:10px;font-weight:500;white-space:nowrap}.bar{height:4px;background:#e2e8d7;border-radius:4px;overflow:hidden;margin-top:11px}.bar i{display:block;height:100%;background:#779159;border-radius:4px}.macro-grid>div:nth-child(2) .bar i{background:#b68a64}.macro-grid>div:nth-child(3) .bar i{background:#b6837a}
.primary,.secondary,.danger{min-height:50px;padding:13px 17px;border-radius:16px;font-size:13px;font-weight:750;line-height:1.4;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-align:center}.primary,.primary.orange{background:var(--green);color:#fff}.primary:hover{background:#183b2d}.secondary{background:var(--white);border:1px solid #dfe5d8;color:var(--green)}.secondary:hover{background:#edf2e4}.danger{background:#f9e6df;color:#973f30}.wide{width:100%}.actions{display:grid;grid-template-columns:1.35fr 1fr;gap:10px;margin:14px 0 30px}.actions .primary,.actions .secondary{min-height:54px}.action-plus{font-size:22px;font-weight:400;line-height:1}.action-arrow{font-size:18px;font-weight:500}.section-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:28px 0 14px}.section-head .tag{border:1px solid var(--line);border-radius:20px;padding:4px 9px;background:#fff;font-size:10px;white-space:nowrap}.tag{font-size:11px;color:var(--muted)}.text-button{font-size:13px;font-weight:650;min-height:44px;padding:10px 0;color:var(--green);text-decoration:none}.text-button:hover{color:#102c20}
.empty{padding:32px 20px;text-align:center;border:1px dashed #ccd6c1;background:#f0f3e8;border-radius:var(--radius)}.empty h3{font-size:14px;color:#5f7054;font-weight:600}.empty p{font-size:13px;color:var(--muted);margin-top:8px}.empty-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:#e3eacb;margin:0 auto 12px}.empty-icon svg{width:24px;height:24px;fill:none;stroke:#6a8052;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.entry{display:flex;align-items:center;gap:10px;padding:15px 12px;background:#fff;border:1px solid var(--line);border-radius:18px;margin-bottom:9px}.entry-info{flex:1;min-width:0}.entry-info h3{font-size:13px}.entry-info small{display:block;margin-top:3px;font-size:10px}.entry>b{font-size:15px;font-weight:800;white-space:nowrap}.icon-button{width:44px;min-height:44px;flex-shrink:0;font-size:20px;color:var(--muted);border-radius:50%;display:inline-grid;place-items:center}.icon-button:hover{background:var(--soft)}.entry>.icon-button{width:32px;min-width:32px;flex-basis:32px}.food-icon{width:46px;height:46px;display:grid;place-items:center;flex:0 0 46px;border-radius:15px;background:#eef1e2}.food-icon img{display:block;width:31px;height:31px;object-fit:contain}.entry .food-icon{width:38px;height:42px;flex-basis:38px;border-radius:12px}.entry .food-icon img{width:28px;height:28px}
/* Browse: consistent recipe cards, compact food rows, quiet filters. */
.callout{background:var(--lime);color:#405837;border:1px solid #d5e4ad;border-radius:20px;padding:18px 20px;font-size:12px;line-height:1.8;margin-bottom:22px}.callout b{font-size:21px;font-weight:800;letter-spacing:-.6px}.callout.orange{color:#8b4739;background:#fbe9df;border-color:#efd5c7}.recipe-card{padding:17px;margin:12px 0;background:var(--white);border:1px solid var(--line);border-radius:22px;box-shadow:0 3px 0 #213b3203}.recipe-card .top{display:flex;align-items:flex-start;gap:13px}.recipe-card .top>div:last-child{min-width:0;flex:1}.recipe-card .food-icon{width:58px;height:64px;flex-basis:58px;border-radius:18px;background:#f5eddd}.recipe-card:nth-of-type(3n+2) .food-icon{background:#ecf1dc}.recipe-card:nth-of-type(3n) .food-icon{background:#f7e8e3}.recipe-card .food-icon img{width:39px;height:39px}.recipe-card h3{font-size:15px;line-height:1.45;font-weight:800;letter-spacing:-.3px}.meta{font-size:12px;font-weight:600;color:var(--muted);margin-top:5px;line-height:1.7}.fit{display:inline-block;font-size:11px;color:#527044;margin-top:7px;border-radius:7px;background:#eff4e7;padding:3px 7px;line-height:1.5}.fit.compromise{color:#85542e;background:#fbefdf}.recipe-card footer{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:16px;padding-top:13px;border-top:1px solid #edf0e8}.recipe-card footer small{font-size:11px;font-weight:650;line-height:1.6}.recipe-card footer .secondary{font-size:11px;min-height:44px;padding:10px 14px;border-radius:12px;color:var(--green);background:#eff3e8;border-color:transparent;white-space:nowrap}
.segmented{display:flex;gap:3px;background:#e9ede2;padding:4px;border:1px solid #e1e6d8;border-radius:16px;margin:18px 0}.segmented button{flex:1;border-radius:12px;font-size:12px;min-height:44px;color:#58664f;font-weight:650;padding:9px 6px}.segmented button.active{background:var(--white);color:var(--green);box-shadow:0 2px 5px #273a2510;font-weight:800}.library-item{display:flex;align-items:center;gap:10px;padding:14px 0;border-bottom:1px solid var(--line);margin:0;background:none;border-radius:0;text-align:left}.library-item .info{flex:1;min-width:0}.library-item h3{font-size:14px;font-weight:750}.library-item small{display:block;font-size:11px;margin-top:4px}.library-item .food-icon{width:44px;height:48px;flex-basis:44px}.library-item .secondary{padding:0;width:44px;min-height:44px;flex:0 0 44px;border:0;border-radius:50%;background:#e5edcf;font-size:23px;font-weight:400}.library-item .icon-button{color:#8a9682;font-size:18px}.search{margin:20px 0 8px}.field{display:block;min-width:0;min-inline-size:0;font-size:11px;font-weight:650;margin:17px 0;color:#586950}.field input,.field select,.field textarea,input.search{display:block;width:100%;max-width:100%;min-width:0;min-height:50px;border:1px solid #dfe5d6;background:var(--white);color:var(--ink);border-radius:14px;padding:13px 14px;font-size:16px;line-height:1.4;font-weight:500;margin-top:8px;outline-color:#78944a;transition:border-color .16s,box-shadow .16s}.field input:focus,.field select:focus,.field textarea:focus,input.search:focus{outline:0;border-color:#829e52;box-shadow:0 0 0 3px #cbdca544}.field textarea{min-height:110px;resize:vertical}.field small{display:block;font-weight:400;margin-top:6px}input.search{padding-left:42px;border-radius:16px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23738669' stroke-width='1.7'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 4 4'/%3E%3C/svg%3E") no-repeat 14px center;background-size:19px}input::placeholder,textarea::placeholder{color:#64725a;opacity:1}.row{display:flex;gap:12px;min-width:0}.row>*{flex:1;min-width:0}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px;min-width:0}.recipe-filter-row{gap:10px;margin-top:10px;margin-bottom:20px}.recipe-filter-row .field{margin:0;font-size:10px}.recipe-filter-row select{min-height:44px;border-radius:12px;font-size:12px;padding:10px 8px;margin-top:6px}.recipe-card+.secondary,[data-action='more-foods']{margin-top:16px}
/* Configure: grouped surfaces; exclusions stay reversible. */
.settings-card{min-width:0;padding:20px;margin:15px 0;border:1px solid var(--line);border-radius:22px;background:var(--white)}.settings-card h2{font-size:16px}.settings-card p{font-size:12px;color:var(--muted);margin:10px 0}.settings-card .field input,.settings-card .field select{background:#f7f8f3}.settings-card button{margin-top:8px}.settings-card input[type=file]{font-size:11px;padding:9px;overflow:hidden}.settings-card input[type=file]::file-selector-button{border:0;border-radius:8px;background:#e5edcf;padding:8px;margin-right:8px;color:var(--ink);font:inherit}.exclusion-item{cursor:pointer;min-height:72px}.exclusion-item .info{font-size:13px;font-weight:650;overflow-wrap:anywhere}.exclusion-item input[type=checkbox]{width:24px;height:24px;flex:0 0 24px;accent-color:var(--green);cursor:pointer}.exclusion-item:has(input:checked) .info{color:var(--muted)}
/* Floating navigation is a control surface, never an extra tab. */
nav{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(13px + env(safe-area-inset-bottom));width:calc(100% - 32px);max-width:476px;z-index:5;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:7px;background:#fff;border:1px solid #e0e5d7;border-radius:25px;box-shadow:0 8px 30px #223a2912,0 2px 6px #223a2907}nav button{display:grid;place-items:center;align-content:center;gap:5px;min-height:59px;font-size:10px;color:#66745e;padding:8px 3px;border-radius:18px;font-weight:650}nav button.active{background:#e6efcf;color:var(--green);font-weight:800}nav svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.nav-icon{height:22px}
/* Dialogs: true bottom sheets on phones, focused panels on desktop. */
dialog{position:fixed;inset:auto 0 0;width:100%;max-width:520px;max-height:calc(100dvh - 30px - env(safe-area-inset-top));margin:0 auto;border:1px solid var(--line);border-bottom:0;border-radius:28px 28px 0 0;background:var(--paper);color:var(--ink);padding:0 20px calc(28px + env(safe-area-inset-bottom));overscroll-behavior:contain;box-shadow:0 -15px 60px #152a201a}dialog::backdrop{background:#152b2466}.dialog-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 -2px 18px;padding:23px 2px 14px;background:var(--paper);border-bottom:1px solid var(--line)}.dialog-head:before{content:'';position:absolute;top:8px;left:50%;transform:translateX(-50%);width:34px;height:4px;background:#cbd3c0;border-radius:4px}.dialog-head h2{font-size:20px;letter-spacing:-.65px;line-height:1.4;overflow-wrap:anywhere}.dialog-head .icon-button{background:#e9ede1;font-size:23px}.dialog-body{font-size:14px;padding-bottom:4px}.dialog-body>.segmented{margin-top:0}.dialog-body h3{font-size:14px}.dialog-body button.primary{min-height:52px}.dialog-body form>.primary:last-child{margin-top:10px}.preview{padding:20px;background:#e4edcf;border:1px solid #dce5c8;border-radius:20px;margin:21px 0}.preview strong{font-size:29px;font-weight:800;letter-spacing:-1px}.preview p{font-size:12px;color:#586c46;margin-top:7px}.ingredient-row{padding:14px;margin:12px 0;border:1px solid var(--line);border-radius:18px;background:var(--white)}.ingredient-row .field{margin:7px 0}.ingredients{list-style:none;padding:0;margin:15px 0}.ingredients li{display:flex;justify-content:space-between;gap:14px;padding:14px 0;border-bottom:1px solid var(--line);font-size:12px;line-height:1.6}.ingredients li>span{min-width:0;overflow-wrap:anywhere}.ingredients li b{font-weight:650;text-align:right;max-width:60%}.ingredients li small{font-size:10px}.instructions{white-space:pre-line;font-size:13px;line-height:1.85;margin:12px 0 22px}.salt{font-size:12px;color:var(--muted);line-height:1.6}.error{font-size:12px;color:#a3412f;min-height:0;margin:10px 0}.error:empty{display:none}.measure-tags{display:flex;flex-wrap:wrap;gap:7px;margin:14px 0}.measure-tags span{padding:7px 10px;background:var(--soft);border-radius:8px;font-size:12px;color:var(--green)}details>summary{cursor:pointer;color:var(--muted);font-size:12px;font-weight:600;padding:14px 0;min-height:44px}.measure-row{display:grid;grid-template-columns:1.3fr .7fr .65fr 32px;gap:6px;align-items:end}.measure-row .field{margin:8px 0}.measure-row .field input,.measure-row .field select{padding:10px 6px}.measure-row button{width:32px;margin-bottom:8px}.divider{border:0;border-top:1px solid var(--line);margin:24px 0}.note,.help{font-size:12px;color:var(--muted)}
#toast{position:fixed;bottom:calc(104px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:20;max-width:90%;width:max-content;background:var(--green);color:white;padding:13px 19px;border-radius:16px;font-size:12px;box-shadow:0 5px 20px #203b3222;opacity:0;pointer-events:none;transition:opacity .2s}#toast.visible{opacity:1}
input[type="date"]{display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-inline-size:0;inline-size:100%;max-inline-size:100%;-webkit-appearance:none;appearance:none;text-align:left;overflow:hidden}input[type="date"]::-webkit-date-and-time-value{min-width:0;text-align:left}input[type="date"].date{width:137px;max-width:137px;flex:0 1 137px}input[type="date"]::-webkit-calendar-picker-indicator{opacity:.55}
@media(min-width:700px){body{background:#e7ebdf}.shell{border-inline:1px solid #dce2d2;box-shadow:0 0 50px #273a2407}dialog{inset:0;margin:auto;max-width:490px;width:calc(100% - 48px);border:1px solid var(--line);border-radius:26px;max-height:90dvh}.dialog-head:before{display:none}.dialog-head{padding-top:20px}}
@media(max-width:350px){.shell{padding-left:16px;padding-right:16px}header{gap:8px}.brand{font-size:15px;gap:6px}.brand-mark{width:27px;height:27px;flex-basis:27px}.brand-mark:after{width:16px;height:16px}input[type="date"].date{width:126px;max-width:126px;flex-basis:126px;font-size:11px;padding:10px 8px}.hero{padding:20px 15px 15px}.hero-kcal{font-size:46px}.macro-grid{gap:6px}.macro-grid>div{padding:11px 8px}.macro-grid b{font-size:18px}.macro-grid .macro-target{font-size:9px}.primary,.secondary{font-size:12px;padding:12px}.actions{grid-template-columns:1.25fr 1fr;gap:8px}.recipe-card{padding:15px}.recipe-card .food-icon{width:48px;flex-basis:48px;height:57px}.recipe-card h3{font-size:14px}.recipe-card footer small{font-size:9px}.recipe-card footer .secondary{padding:9px 10px;font-size:10px}.library-item{gap:6px}.library-item .food-icon{width:37px;flex-basis:37px}.library-item .icon-button{width:36px}.settings-card{padding:17px}dialog{padding-inline:16px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

.recipe-types{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none;margin:0 -2px 15px;padding:3px 2px 4px;overscroll-behavior-x:contain}.recipe-types::-webkit-scrollbar{display:none}.recipe-types button{flex:0 0 auto;min-height:44px;padding:10px 15px;border:1px solid var(--line);border-radius:24px;background:var(--white);font-size:12px;font-weight:650;color:var(--muted)}.recipe-types button.active{background:var(--green);color:white;border-color:var(--green)}.recipe-source{display:block;width:fit-content;min-height:44px;padding:12px 0;font-size:12px;color:var(--green);text-underline-offset:4px;margin-bottom:12px}

.water-card{padding:17px;background:#edf2ed;border:1px solid #dce5da;border-radius:20px;margin:0 0 24px}.water-info{display:flex;gap:12px;align-items:center}.water-icon{display:grid;place-items:center;width:39px;height:42px;flex:0 0 39px;border-radius:12px;background:#dae6df;color:#527464}.water-icon svg{width:22px;height:25px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.water-card h2{font-size:15px;letter-spacing:-.3px}.water-card h2 span{font-size:14px;font-weight:650;margin-left:9px;font-variant-numeric:tabular-nums}.water-card small{font-size:11px;display:block;margin-top:5px}.water-actions{display:flex;gap:8px;margin-top:14px}.water-minus{width:44px;flex:0 0 44px;min-height:44px;border:1px solid #cbd9cd;border-radius:12px;background:#f8faf5;color:var(--green);font-size:22px}.water-minus:disabled{opacity:.35;cursor:default}.water-add{display:flex;align-items:center;justify-content:space-between;flex:1;min-height:44px;padding:11px 15px;border-radius:12px;background:#dce8d3;color:var(--green);font-size:12px;font-weight:750}.water-add span{font-size:19px;font-weight:400}.water-add:hover{background:#d1dfc5}

.workout-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px;border:1px solid var(--line);border-radius:20px;background:#fff7eb;margin:-10px 0 16px}.workout-card h2{font-size:15px}.workout-card small{display:block;margin-top:5px;font-size:11px}.workout-card button{min-height:44px;padding:10px 13px;border-radius:12px;background:#eee6d5;color:#655735;font-size:11px;font-weight:750}.workout-card button.done{background:#dce8d3;color:var(--green)}.activity-calendar{padding:14px;background:var(--white);border:1px solid var(--line);border-radius:20px;margin-bottom:24px}.calendar-head{display:flex;align-items:center;justify-content:space-between;gap:6px}.calendar-head h2{font-size:14px;text-align:center;font-weight:750}.calendar-head button{width:44px;min-height:44px;border-radius:12px;font-size:25px;color:var(--green)}.calendar-order{text-align:center;font-size:10px;color:var(--muted);margin:4px 0 14px}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px 2px}.weekday{text-align:center;font-size:10px;color:var(--muted);padding-bottom:7px}.calendar-day{min-width:0;min-height:44px;padding:5px 0;border-radius:11px;font-size:12px;font-weight:600;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px}.calendar-day.selected{background:#e5edcf;outline:1px solid #c4d4a1}.calendar-day.is-today>span:first-child{font-weight:850;text-decoration:underline;text-underline-offset:3px}.day-signals{display:flex;gap:3px}.day-signals i,.calendar-key i{width:5px;height:5px;border-radius:50%;display:inline-block;flex:0 0 5px}.activity-calendar .met{background:#4f7957}.activity-calendar .off{background:#c58150}.activity-calendar .none{background:#dce1d7}.calendar-key{display:flex;flex-wrap:wrap;justify-content:center;gap:7px 12px;border-top:1px solid var(--line);padding-top:12px;margin-top:14px}.calendar-key span{display:flex;align-items:center;gap:4px;font-size:9px;color:var(--muted)}
