:root{font-family:-apple-system,BlinkMacSystemFont,SF Pro Text,PingFang SC,Helvetica Neue,sans-serif;color:#1d1d1f;background:#f5f5f7;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button{cursor:pointer}input,textarea{width:100%;padding:13px 14px;border:1px solid #d2d2d7;border-radius:12px;background:#fff;color:#1d1d1f;outline:none}input:focus,textarea:focus{border-color:#0071e3;box-shadow:0 0 0 3px #0071e31a}label{display:grid;gap:7px;margin:16px 0;color:#424245;font-size:14px;font-weight:600}fieldset{min-width:0;margin:18px 0;padding:0;border:0}legend,.field-name{display:block;margin-bottom:9px;color:#424245;font-size:14px;font-weight:650}.login-shell{min-height:100dvh;display:grid;place-items:center;padding:24px;background:#f5f5f7}.login-card{width:min(100%,390px);padding:36px 28px;border:1px solid #e5e5e7;border-radius:24px;background:#fff;box-shadow:0 16px 48px #0000000d}.brand-mark{width:58px;height:58px;display:grid;place-items:center;border-radius:16px;background:#1d1d1f;color:#fff;font-size:24px;font-weight:700}.eyebrow{margin:18px 0 5px;color:#6e6e73;font-size:11px;font-weight:700;letter-spacing:.12em}.login-card h1,header h1{margin:0;letter-spacing:-.03em}.subtle{color:#6e6e73;line-height:1.55}.primary,.small-primary{border:0;background:#0071e3;color:#fff;font-weight:650}.primary{width:100%;padding:14px;border-radius:13px}.primary:disabled{opacity:.55}.small-primary{padding:9px 14px;border-radius:999px}.secondary-button{padding:9px 14px;border:1px solid #d2d2d7;border-radius:999px;background:#fff;color:#424245}.error{color:#d70015;font-size:14px}.app-shell{width:min(100%,620px);min-height:100dvh;margin:auto;padding-bottom:88px;background:#f5f5f7}header{display:flex;justify-content:space-between;align-items:center;padding:24px 20px 12px}.avatar,.large-avatar{display:grid;place-items:center;border:0;border-radius:50%;background:#1d1d1f;color:#fff;font-weight:700}.avatar{width:42px;height:42px}.content{padding:10px 16px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.section-title h3{margin:16px 0}.choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.choice-grid.two-choice{grid-template-columns:repeat(2,minmax(0,1fr))}.choice-grid button{min-height:42px;padding:8px;border:1px solid #d2d2d7;border-radius:11px;background:#fff;color:#424245}.choice-grid button.selected,.chips button.selected{border-color:#0071e3;background:#0071e3;color:#fff}.choice-grid.compact{grid-template-columns:repeat(auto-fit,minmax(62px,1fr));margin:7px 0}.empty{min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#86868b}.empty strong{color:#424245;font-size:16px}.empty span{font-size:13px}.empty.compact{min-height:130px}.segment{display:flex;gap:4px;padding:4px;border-radius:12px;background:#e8e8ed}.segment button{flex:1;padding:9px;border:0;border-radius:9px;background:transparent;color:#6e6e73}.segment .active{background:#fff;color:#1d1d1f;box-shadow:0 1px 4px #00000012}.notice{margin:12px 0;padding:13px 15px;border-radius:13px;background:#fff4ce;color:#6c4d00;font-size:14px}.profile-card{display:flex;gap:16px;align-items:center;padding:22px;margin-bottom:16px;border-radius:20px;background:#fff}.large-avatar{width:60px;height:60px}.profile-card h2,.profile-card p{margin:3px}.menu-row{width:100%;display:flex;justify-content:space-between;padding:17px;margin:8px 0;border:0;border-radius:14px;background:#fff;color:#1d1d1f;text-align:left}nav{position:fixed;left:50%;bottom:0;z-index:10;width:min(100%,620px);transform:translate(-50%);display:grid;grid-template-columns:repeat(4,1fr);padding:7px 10px calc(7px + env(safe-area-inset-bottom));border-top:1px solid #dcdce0;background:#fffffff2;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}nav button{position:relative;display:grid;gap:2px;justify-items:center;border:0;background:transparent;color:#86868b;font-size:11px}nav button span{width:25px;height:25px;display:grid;place-items:center;border:1.5px solid currentColor;border-radius:8px;font-size:12px;font-weight:700}nav button.active{color:#0071e3;font-weight:650}nav i{position:absolute;top:-2px;right:22%;min-width:18px;padding:2px;border-radius:20px;background:#ff3b30;color:#fff;font-size:10px;font-style:normal}.modal{position:fixed;inset:0;z-index:20;display:flex;align-items:flex-end;justify-content:center;background:#0007;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.sheet{width:min(100%,620px);max-height:93dvh;overflow:auto;padding:22px 20px calc(22px + env(safe-area-inset-bottom));border-radius:24px 24px 0 0;background:#f5f5f7}.sheet-head{display:flex;align-items:center;justify-content:space-between}.sheet-head h2{margin:0}.sheet-head button{width:34px;height:34px;border:0;border-radius:50%;background:#e8e8ed;color:#6e6e73;font-size:22px}.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.purchase-row{display:flex;justify-content:space-between;align-items:center;margin:9px 0;padding:15px;border-radius:15px;background:#fff}.purchase-row p{margin:4px 0;color:#6e6e73;font-size:13px}.purchase-row b{color:#1d1d1f}.inventory-summary{display:grid;grid-template-columns:repeat(3,1fr);margin-bottom:12px;padding:18px 8px;border-radius:18px;background:#fff}.inventory-summary div{display:grid;gap:4px;text-align:center;border-right:1px solid #e5e5e7}.inventory-summary div:last-child{border:0}.inventory-summary strong{font-size:26px}.inventory-summary span{color:#86868b;font-size:11px}.inventory-summary .warning strong{color:#ff9500}.fridge-segment{margin-bottom:14px}.fridge-layout{display:grid;grid-template-columns:94px 1fr;gap:12px}.category-rail{display:flex;flex-direction:column;gap:6px}.category-rail button{display:flex;justify-content:space-between;gap:4px;padding:12px 9px;border:0;border-radius:12px;background:transparent;color:#6e6e73;text-align:left}.category-rail button.selected{background:#fff;color:#0071e3;font-weight:650;box-shadow:0 1px 5px #0000000a}.category-rail small{font-size:11px}.stock-list,.recipe-list{min-width:0}.stock-card{position:relative;display:flex;align-items:center;gap:11px;margin:9px 0;padding:13px;border:1px solid transparent;border-radius:15px;background:#fff}.stock-initial{width:43px;height:43px;display:grid;place-items:center;border-radius:12px;background:#f0f0f3;color:#6e6e73;font-weight:700}.stock-card p,.stock-card small{margin:4px 0;color:#6e6e73}.stock-card.stale{border-color:#ffd60a}.stale-label{margin-left:auto;padding:5px 7px;border-radius:999px;background:#fff4ce;color:#765600;font-size:10px}.image-placeholder{display:grid;place-items:center;background:#e8e8ed!important;color:#86868b!important;font-size:12px!important}.invite-url{padding:10px 14px;border-radius:12px;background:#e4f3e8;color:#217a36;font-size:13px}@media(min-width:700px){.app-shell{margin:18px auto;border-radius:28px;box-shadow:0 20px 60px #00000012;overflow:hidden}nav{bottom:18px;border-radius:0 0 28px 28px}.sheet{margin-bottom:18px;border-radius:24px}}.search-row{display:flex;gap:8px;margin:4px 0 14px}.search-row button{padding:0 16px;border:0;border-radius:12px;background:#e8e8ed;color:#424245}.chips{display:flex;gap:7px;overflow:auto;padding-bottom:12px}.chips button{padding:9px 14px;border:1px solid transparent;border-radius:999px;background:#e8e8ed;color:#424245;white-space:nowrap}.recipe-layout{display:grid;grid-template-columns:94px 1fr;gap:12px}.category-rail .manage-categories{margin-top:10px;border:1px solid #d2d2d7;background:#fff;color:#424245;font-size:12px}.recipe-row{display:flex;align-items:center;gap:10px;margin:9px 0;padding:11px;border-radius:15px;background:#fff}.dish-image{width:54px;height:54px;flex:0 0 54px;display:grid;place-items:center;padding:0;border:0;border-radius:12px;overflow:hidden;background:#e8e8ed}.dish-image img,.dish-image span{width:100%;height:100%;object-fit:cover}.grow{flex:1;min-width:0}.counter{display:flex;align-items:center;gap:6px}.counter button{width:29px;height:29px;border:1px solid #0071e3;border-radius:50%;background:#fff;color:#0071e3}.cart-fab{position:fixed;left:50%;bottom:78px;z-index:9;transform:translate(-50%);padding:13px 24px;border:0;border-radius:999px;background:#0071e3;color:#fff;font-weight:650;box-shadow:0 8px 24px #0071e344}.category-form{display:flex;align-items:end;gap:10px}.category-form label{flex:1}.category-form>div{display:flex;gap:6px;margin-bottom:16px}.category-manage-row{display:flex;justify-content:space-between;align-items:center;padding:14px;margin:8px 0;border-radius:14px;background:#fff}.category-manage-row>div{display:grid;gap:4px}.category-manage-row small{color:#86868b}.category-manage-row button{border:0;background:transparent;color:#0071e3}.order-card{margin:14px 0;padding:17px;border-radius:18px;background:#fff}.order-head{display:flex;justify-content:space-between;margin-bottom:14px}.order-head div{display:grid;gap:4px}.order-head small{color:#86868b}.status{padding:6px 10px;border-radius:999px;background:#fff4ce;color:#765600;font-size:12px}.status.completed,.status.reviewed{background:#e4f3e8;color:#217a36}.status.cancelled{background:#eee;color:#777}.order-dish{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid #ededf0}.order-note{padding:10px;border-radius:12px;background:#f5f5f7;color:#424245}.order-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.order-actions button,.review button{padding:9px 17px;border:0;border-radius:999px;background:#0071e3;color:#fff}.order-actions .secondary{background:#e8e8ed;color:#424245}.review{display:flex;gap:8px;margin-top:12px}.review input{flex:1}.review button{white-space:nowrap}@media(max-width:390px){.recipe-layout,.fridge-layout{grid-template-columns:82px 1fr}.category-rail button{padding:10px 7px}.recipe-row{gap:7px}.counter{gap:3px}}.text-button{width:100%;margin-top:12px;padding:10px;border:0;background:transparent;color:#0071e3}.detail-line{display:flex;justify-content:space-between;padding:11px 2px;border-bottom:1px solid #e5e5e7}.step{display:flex;gap:12px;padding:10px 0}.step i{flex:0 0 26px;height:26px;display:grid;place-items:center;border-radius:50%;background:#0071e3;color:#fff;font-style:normal;font-size:12px}.sheet a{display:block;margin-top:18px;color:#0071e3;word-break:break-all}.enough{padding:12px;border-radius:12px;background:#e4f3e8;color:#217a36}.detail-cover{width:100%;max-height:300px;object-fit:cover;margin:16px 0;border-radius:16px}.detail-actions{display:flex;gap:10px}.detail-actions>button:not(.small-primary){padding:9px 14px;border:1px solid #0071e3;border-radius:999px;background:transparent;color:#0071e3}.stats-row{display:flex;justify-content:space-between;gap:12px;margin:9px 0;padding:15px;border-radius:15px;background:#fff}.stats-row p,.stats-row small{display:block;margin:4px 0;color:#6e6e73}.stats-row>div:last-child{text-align:right}.stats-row b{color:#1d1d1f}.editor-block{margin:10px 0;padding:13px;border-radius:16px;background:#fff}.quantity-line{display:grid;grid-template-columns:110px 1fr;gap:9px;align-items:center;margin-top:9px}.editor-actions{display:flex;justify-content:space-between;align-items:center}.editor-actions label{display:flex;align-items:center;gap:6px;margin:8px 0}.editor-actions input{width:auto}.editor-actions button,.step-editor>button{border:0;background:transparent;color:#d70015}.step-editor{display:grid;grid-template-columns:28px 1fr 28px;gap:8px;align-items:start;margin:10px 0}.step-editor b{width:26px;height:26px;display:grid;place-items:center;border-radius:50%;background:#0071e3;color:#fff}.cover-editor{display:grid;grid-template-columns:110px 1fr;gap:14px;align-items:center;margin:18px 0}.cover-editor>img,.cover-editor>span{width:110px;height:90px;object-fit:cover;border-radius:14px}.cover-editor>div{display:grid;gap:8px}.upload-button{display:inline-flex;width:max-content;margin:0;padding:9px 14px;border-radius:999px;background:#0071e3;color:#fff}.upload-button input{display:none}.remove-image{width:max-content;border:0;background:transparent;color:#d70015}.cover-editor small{color:#86868b}.stock-card>img{width:48px;height:48px;object-fit:cover;border-radius:12px}.cooking-modal{z-index:30}.recipe-reference{margin:16px 0;padding:14px;border-radius:14px;background:#fff}.recipe-reference p{margin:6px 0 0;color:#6e6e73;font-size:13px;line-height:1.6}.usage-row{display:grid;grid-template-columns:1fr 28px;gap:8px;margin:10px 0;padding:12px;border-radius:16px;background:#fff}.usage-row>.field-name,.usage-row>.inventory-choices{grid-column:1/-1}.inventory-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.inventory-choices button{display:grid;gap:3px;padding:10px;border:1px solid #d2d2d7;border-radius:11px;background:#fff;text-align:left}.inventory-choices button.selected{border-color:#0071e3;background:#eaf4ff;color:#0059b3}.inventory-choices small{color:#86868b}.usage-row>div:not(.inventory-choices){display:flex;align-items:center;gap:8px}.usage-row>div input{flex:1}.usage-row>div span{min-width:34px;color:#6e6e73}.usage-row>button{border:0;background:transparent;color:#d70015;font-size:22px}.manual-confirm{display:flex;grid-template-columns:20px 1fr;align-items:start;gap:9px;line-height:1.5}.manual-confirm input{width:auto;margin-top:3px}.cooking-history{margin-top:22px;padding-top:6px;border-top:1px solid #dcdce0}.cooking-entry{margin:10px 0;padding:14px;border-radius:14px;background:#fff}.cooking-entry p{margin:6px 0;color:#6e6e73}.cooking-entry.reversed{opacity:.6}.record-photo{width:82px;height:70px;object-fit:cover;border-radius:12px}.danger-link{border:0;background:transparent;color:#d70015;padding:6px}.ingredient-card{width:100%;display:flex;align-items:center;gap:11px;margin:9px 0;padding:12px;border:1px solid transparent;border-radius:16px;background:#fff;color:#1d1d1f;text-align:left}.ingredient-card.stale{border-color:#ffd60a}.ingredient-card>img,.ingredient-detail-head>img{width:52px;height:52px;flex:0 0 52px;border-radius:13px;object-fit:cover}.ingredient-main{min-width:0;display:grid;gap:4px}.ingredient-main small{color:#6e6e73;line-height:1.35}.card-arrow{margin-left:auto;color:#86868b;font-size:24px}.soft-card-grid{display:grid;gap:10px}.soft-card{display:flex;align-items:center;gap:12px;padding:14px;border-radius:17px;background:#fff}.soft-card>div{min-width:0;flex:1}.soft-card p,.soft-card small{display:block;margin:4px 0;color:#6e6e73}.soft-card>b{white-space:nowrap}.ingredient-detail-head{display:flex;align-items:center;gap:13px;margin:18px 0;padding:15px;border-radius:16px;background:#fff}.ingredient-detail-head p{margin:5px 0;color:#6e6e73}.batch-timeline{position:relative;margin-left:7px}.batch-timeline:before{content:"";position:absolute;left:5px;top:13px;bottom:13px;width:1px;background:#d2d2d7}.batch-timeline article{position:relative;display:flex;gap:14px;padding:8px 0}.batch-timeline i{position:relative;z-index:1;width:11px;height:11px;flex:0 0 11px;margin-top:5px;border:2px solid #f5f5f7;border-radius:50%;background:#0071e3}.batch-timeline article>div{display:grid;gap:4px}.batch-timeline p,.batch-timeline small{margin:0;color:#6e6e73}.batch-timeline small{display:block}.batch-content{min-width:0;flex:1}.batch-actions{display:flex;gap:8px;margin-top:7px}.batch-actions button{padding:6px 10px;border:0;border-radius:999px;background:#e8e8ed;color:#0071e3}.batch-actions .danger-link{color:#d70015}.soft-card>div>strong{display:block}.soft-card>div>p{line-height:1.45}.restock-button{margin-left:auto;padding:7px 11px;border:0;border-radius:999px;background:#e8f2ff;color:#0071e3;font-weight:600}.ingredient-card .restock-button+.card-arrow{margin-left:0}.last-purchase,.purchase-summary{display:grid;gap:4px;margin:0 0 15px;padding:13px;border-radius:14px;background:#f5f5f7}.last-purchase span,.last-purchase small{color:#6e6e73}.purchase-summary{background:#f2f8ff;color:#0057a8}.purchase-summary span{line-height:1.45}.store-price-grid{display:grid;gap:10px;margin-bottom:22px}.store-price-card{padding:15px;border:1px solid #e5e5e7;border-radius:16px;background:#fff}.store-price-card.best{border-color:#79d68b;background:#f4fbf5}.store-price-card>div{display:flex;align-items:center;justify-content:space-between;gap:10px}.store-price-card>div>small{padding:4px 8px;border-radius:999px;background:#dff6e4;color:#248a3d;font-size:11px}.store-price-card>b{display:block;margin:10px 0 5px;color:#0071e3;font-size:24px}.store-price-card>b small{font-size:13px;color:#6e6e73}.store-price-card p{margin:0 0 3px;color:#3a3a3c;font-size:13px}.store-price-card>small{color:#8e8e93;font-size:12px}
