@charset "UTF-8";
:root{color-scheme:light;--bg:#fff8f3;--paper:#fffdfb;--pink:#edacb6;--rose:#df7f91;--text:#54413b;--muted:#a08a81;--line:#f1e5dc;--sand:#f2e8df;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-synthesis:none;-webkit-tap-highlight-color:transparent}*{box-sizing:border-box}html{background:#f0e7e2;scrollbar-gutter:stable}body{margin:0;color:var(--text);font-size:14px;line-height:1.5}body:has(dialog[open]){overflow:hidden}button,input,textarea,select{font:inherit}button{border:0;cursor:pointer;color:var(--text);background:var(--pink);border-radius:12px;min-height:38px;padding:8px 16px;line-height:1.5;touch-action:manipulation}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible{outline:3px solid #c48495;outline-offset:3px}input,textarea,select{width:100%;border:1px solid #eadbd0;border-radius:12px;background:var(--paper);color:var(--text);padding:12px 14px;font-size:16px;outline:none}input:focus,textarea:focus,select:focus{border-color:#dba1ae;box-shadow:0 0 0 3px #f9e5e9}textarea{resize:vertical;min-height:120px;line-height:1.8}img{display:block;max-width:100%}video{background:#efe4dd}p,h1,h2,h3{margin:0}a{color:#b76f7e;text-decoration:none}button img{pointer-events:none}button svg{width:18px;height:18px}dialog{color:var(--text)}.app-shell{position:relative;max-width:480px;min-height:100dvh;background:var(--bg);margin:0 auto;box-shadow:0 0 80px #674c4014}.topbar{height:58px;position:sticky;top:0;z-index:20;background:#fff8f3f5;backdrop-filter:blur(16px);display:grid;grid-template-columns:65px 1fr 65px;align-items:center;padding:0 16px;border-bottom:1px solid #f5ebe4;font-weight:600;text-align:center}.topbar>span{font-size:15px;white-space:nowrap}.topbar .back{font-size:26px;padding:0;background:transparent;justify-self:start;width:38px;min-height:36px}.topbar .identity{justify-self:end;background:#fffdfb;border:1px solid #f0ded4;padding:3px 12px;min-height:30px;font-size:16px;border-radius:20px}.page{padding:20px 16px 112px;min-height:calc(100dvh - 58px)}.tabbar{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,480px);display:flex;z-index:30;padding:8px 4px max(9px,env(safe-area-inset-bottom));min-height:72px;background:#fffdfbf5;backdrop-filter:blur(20px);border-top:1px solid #f0e4db}.tabbar button{flex:1;min-height:50px;padding:3px;background:transparent;font-size:11px;color:#a18b80;display:flex;flex-direction:column;align-items:center;gap:3px;border-radius:12px}.tabbar img{width:28px;height:28px;object-fit:contain}.tabbar button.active{color:var(--rose)}.hero{position:relative;overflow:hidden;padding:20px;border-radius:23px;background:#fbe3e5;min-height:105px;margin-bottom:20px}.eyebrow{font-size:10px;letter-spacing:2.8px;color:#b37d7e;margin-bottom:8px}.hero h1{font-size:25px;font-weight:700;letter-spacing:-.7px}.hero-art{position:absolute;right:18px;top:20px;width:65px;height:65px;object-fit:contain;transform:rotate(-8deg)}.hero-emoji{position:absolute;right:22px;top:24px;font-size:44px;transform:rotate(-9deg)}.tabs{display:flex;gap:4px;padding:5px;border-radius:16px;background:var(--sand);margin-bottom:20px}.tabs button{flex:1;background:transparent;color:var(--muted);border-radius:12px;font-size:15px;min-height:41px}.tabs .active{background:var(--paper);color:var(--rose);font-weight:600;box-shadow:0 2px 5px #93625808}.row{display:flex;align-items:center;gap:10px}.between{justify-content:space-between}.grow{flex:1;min-width:0}.section{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:17px 0 18px}.section h2{font-size:18px;font-weight:600}.tiny{padding:5px 11px;min-height:32px;font-size:12px;border-radius:12px;white-space:nowrap}.secondary{background:var(--sand);color:#8c7467}.danger{background:#fce9ec;color:#bb6477}.muted{font-size:13px;color:var(--muted);line-height:1.8}.card{padding:16px;background:var(--paper);border:1px solid var(--line);border-radius:18px;margin-bottom:14px}.empty{text-align:center;padding:42px 8px;color:#b09789;font-size:14px;line-height:2}.empty .empty-emoji{font-size:25px;margin-bottom:6px}.empty button{margin-top:14px}.dish-menu{display:flex;align-items:flex-start;gap:10px}.category-rail{position:sticky;top:74px;flex:0 0 78px;max-height:calc(100dvh - 410px);min-height:180px;overflow-y:scroll;overscroll-behavior:contain;border-radius:16px;background:#f4ebe3;scrollbar-width:thin;scrollbar-gutter:stable;scrollbar-color:#cbb0a2 #eee0d5}.category-rail button{position:relative;display:block;width:100%;border-radius:0;min-height:56px;padding:17px 9px 17px 5px;background:transparent;color:#aa9487;font-size:13px;border-left:3px solid transparent}.category-rail button.active{background:#fbe3e5;color:#bf7688;border-left-color:var(--rose);font-weight:600}.category-badge{position:absolute;right:14px;top:3px;min-width:16px;height:16px;line-height:16px;padding:0 4px;background:var(--rose);color:white;font-size:10px;border-radius:20px}.dishes{flex:1;min-width:0}.dish-card{padding:11px}.dish-main{display:flex;align-items:center;gap:12px;cursor:pointer}.dish-main:focus-visible{outline:2px solid var(--rose);outline-offset:4px;border-radius:12px}.dish-cover{width:76px;height:76px;object-fit:cover;border-radius:13px;background:#f6e7df;flex-shrink:0}.dish-title{font-size:16px;font-weight:600;overflow-wrap:anywhere;line-height:1.5;margin-bottom:4px}.dish-card .muted{font-size:11px}.dish-footer{margin-top:12px;display:flex;align-items:center;justify-content:space-between;gap:7px;flex-wrap:wrap}.order-people{font-size:11px;color:#b28d89}.counter{display:flex;align-items:center;gap:9px;font-size:13px}.counter button{padding:0;min-height:28px;width:29px;border-radius:10px;font-size:19px;line-height:28px}.pill{display:inline-block;padding:4px 10px;border-radius:20px;background:#fbecef;color:#bd7684;font-size:12px}.order-card .dish-cover{width:92px;height:92px}.order-card .dish-footer{padding-top:14px;border-top:1px solid var(--line)}.cover-full{width:100%;max-height:290px;aspect-ratio:1.6;object-fit:cover;border-radius:20px;background:#fbe3e5}.detail-heading{margin:18px 0 12px;display:flex;align-items:center;justify-content:space-between;gap:10px}.detail-heading h1{font-size:27px;font-weight:650;overflow-wrap:anywhere}.step{line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}.step-label{color:#bf8190;font-size:11px;letter-spacing:1.5px;margin-bottom:10px}.detail-title{font-size:18px;margin:25px 0 14px}.block-button{width:100%;display:block}.field{display:block;margin:18px 0 9px;font-size:14px;font-weight:600}.optional{font-size:12px;font-weight:400;color:#b39a8d;margin-left:5px}.required{color:var(--rose)}.cover-field{position:relative;display:block;width:100%;padding:0;background:transparent}.cover-field img{width:100%;aspect-ratio:1.8;object-fit:cover;border-radius:18px}.cover-field span{position:absolute;right:12px;bottom:12px;background:#fffdfbe8;border-radius:20px;padding:6px 13px;font-size:12px;color:#a16c76}.form-submit{width:100%;margin:24px 0 0;min-height:45px;font-weight:600}.note{color:#af9587;font-size:12px;line-height:1.8;margin:14px 0}.error-banner{border:1px solid #eac4ce;background:#fbe9ed;color:#a65f72;padding:12px 14px;border-radius:13px;font-size:13px;line-height:1.8;margin-bottom:16px}.error-banner button{margin-top:8px}.pantry-categories{display:flex;flex-direction:column;gap:7px;overflow:visible;white-space:normal;margin:0 0 20px;padding:0}.pantry-category-row{display:flex;gap:3px}.pantry-categories button{flex:1 0 auto;white-space:nowrap;min-height:33px;padding:6px 4px;background:#f3e9e1;color:#a18a7e;border-radius:24px;font-size:12px}.pantry-categories button.active{background:#f9dce2;color:#b76f7e;font-weight:600}.pantry-item{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:14px 12px}.pantry-name{font-size:16px;font-weight:600;margin-bottom:4px;overflow-wrap:anywhere}.pantry-meta{font-size:12px;color:#af837d;overflow-wrap:anywhere}.pantry-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}.icon-button{width:31px;min-height:34px;padding:7px;display:grid;place-items:center;border-radius:10px}.icon-button img{width:18px;height:18px}.pantry-transfer{font-size:12px;background:#fbe3e5;color:#b76f7e;min-height:34px;padding:6px 10px;border-radius:10px}.moment{display:flex;align-items:flex-start;gap:12px;padding:20px 0;border-bottom:1px solid var(--line)}.moment-avatar{width:42px;height:42px;border-radius:12px;flex-shrink:0;font-size:26px;display:grid;place-items:center}.avatar-pig{background:#fbe1e5}.avatar-star{background:#faeed4}.moment-content{flex:1;min-width:0}.moment-name{color:#b87584;font-weight:600;font-size:15px;margin-bottom:8px}.moment-text{font-size:15px;margin-bottom:10px}.moment-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.moment-media{width:100%;aspect-ratio:1;object-fit:cover;border:0;border-radius:6px;padding:0;overflow:hidden;background:#f1e5dd}.moment-media img{width:100%;height:100%;object-fit:cover}.moment-grid.single{grid-template-columns:1fr;max-width:280px}.moment-grid.single .moment-media{aspect-ratio:1.1}.moment-date{font-size:11px;color:#b49e92;margin-top:10px}.compose-text{border:0;background:transparent;padding:10px 0;min-height:150px;resize:none;box-shadow:none!important}.compose-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:14px}.attachment{position:relative;aspect-ratio:1}.attachment img,.attachment video{width:100%;height:100%;object-fit:cover;border-radius:9px}.attachment-remove{position:absolute;right:0;top:0;background:#54413b9c;color:white;border-radius:0 9px 0 9px;min-height:26px;width:27px;padding:0;font-size:20px}.add-attachment{padding:0;aspect-ratio:1;width:100%;border-radius:9px;background:#f2e8df;color:#aa9387;display:flex;flex-direction:column;justify-content:center;gap:7px;align-items:center;font-size:12px}.add-attachment strong{font-size:36px;font-weight:300;line-height:1}.profile-title{font-size:24px;margin:3px 0 26px}.profile-header{display:flex;align-items:center;gap:17px;padding:10px 2px 26px}.profile-avatar{width:78px;height:78px;border-radius:24px;display:grid;place-items:center;font-size:49px}.profile-name{font-size:25px;font-weight:650;margin-bottom:5px}.chevron{color:#bda99d;font-size:25px}.profile-stats{display:flex;padding:22px 0;background:var(--paper);border:1px solid var(--line);border-radius:19px;margin-bottom:24px}.profile-stats button{flex:1;background:transparent;padding:0;border-radius:0}.stat-number{font-size:25px;font-weight:600;color:#be7b8c;margin-bottom:3px}.stat-label{font-size:13px;color:#9c8479}.profile-menu{background:var(--paper);border:1px solid var(--line);border-radius:19px;padding:0 16px;margin-bottom:17px}.menu-row{display:flex;align-items:center;gap:14px;min-height:63px;border-radius:0;border-bottom:1px solid #f4eae2;background:transparent;width:100%;padding:12px 0;text-align:left;font-size:15px}.menu-row:last-child{border-bottom:0}.menu-row>img{width:29px;height:29px;object-fit:contain}.menu-symbol{width:29px;text-align:center;font-size:23px;color:#b78a8c}.settings-row{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:64px;border-bottom:1px solid var(--line);padding:13px 0}.settings-row:last-child{border:0}.settings-card{padding-top:0;padding-bottom:0}.subheading{font-size:12px;color:#ad9283;margin:24px 2px 10px}.settings-link{display:flex;align-items:center;justify-content:space-between;width:100%;padding:16px 0;background:transparent;text-align:left;border-radius:0;border-bottom:1px solid var(--line)}.settings-link:last-child{border:0}.connection-tag{font-size:11px;padding:4px 8px;background:#f4e9e1;color:#a18a7e;border-radius:20px}.connection-tag.shared{background:#e8eedf;color:#718d64}.login-art{width:100px;height:100px;margin:20px auto}.login-title{text-align:center;font-size:25px;margin:10px 0 8px}.login-intro{text-align:center;color:var(--muted);font-size:13px;margin-bottom:24px}.boot-message{text-align:center;padding:80px 10px;color:var(--muted)}.boot-message img{width:64px;height:64px;margin:0 auto 15px}.toast{position:fixed;left:50%;bottom:105px;transform:translate(-50%,15px);max-width:min(90vw,420px);width:max-content;background:#54413bed;color:white;padding:10px 17px;border-radius:14px;box-shadow:0 5px 20px #54413b20;z-index:100;pointer-events:none;font-size:13px;opacity:0;transition:opacity .18s,transform .18s}.toast.visible{opacity:1;transform:translate(-50%,0)}.modal{border:0;padding:0;border-radius:23px;background:var(--bg);width:calc(100% - 32px);max-width:440px;max-height:85dvh;box-shadow:0 20px 70px #54413b33;overflow-y:auto}.modal::backdrop{background:#54413b66;backdrop-filter:blur(3px)}.modal-inner{padding:22px}.modal-title{font-size:18px;font-weight:650}.modal-close{padding:0;width:30px;min-height:30px;font-size:22px;border-radius:10px}.modal-actions{display:flex;gap:10px;margin-top:24px}.modal-actions button{flex:1;min-height:42px}.modal-copy{line-height:1.9;white-space:pre-wrap;margin-top:18px;overflow-wrap:anywhere}.sheet{position:fixed;top:auto;bottom:10px;margin:0 auto;border:0;border-radius:22px;width:calc(100% - 22px);max-width:460px;padding:7px;background:var(--bg)}.sheet::backdrop{background:#54413b66}.sheet button{display:block;width:100%;padding:16px;background:transparent;border-radius:14px;border-bottom:1px solid var(--line);font-size:15px}.sheet button:last-child{border:0;color:#ae8c80}.image-viewer{padding:12px;background:#332a27;width:calc(100% - 20px);max-width:720px;border:0;border-radius:16px}.image-viewer::backdrop{background:#1c1717df}.image-viewer img{max-height:80dvh;object-fit:contain;margin:auto}.image-viewer button{position:absolute;right:16px;top:16px;background:#54413ba1;color:white;min-height:32px;border-radius:50%;width:32px;padding:0}.network-label{font-size:11px;text-align:center;color:#aa9588;margin:0 0 10px}.library-photo{width:75px;height:75px;border-radius:12px;object-fit:cover}.library-title{font-size:16px;font-weight:600;margin-bottom:4px}.hint-card{background:#f5eee5;border:1px solid #ebdfd3;border-radius:15px;padding:14px;line-height:1.9;color:#a18677;font-size:13px}.install-code{display:block;overflow-wrap:anywhere;color:#9a6f77;font-size:13px}button.busy{opacity:.6;pointer-events:none}.app-shell[data-busy=true] form button[type=submit]{opacity:.6;pointer-events:none}@media(min-width:650px){body{padding:24px 0}.app-shell{min-height:calc(100dvh - 48px);border-radius:28px;overflow:clip;box-shadow:0 18px 80px #674c401c}.topbar{border-radius:28px 28px 0 0}.tabbar{bottom:0;border-radius:20px 20px 0 0;box-shadow:0 -7px 30px #674c4006}.page{min-height:calc(100dvh - 106px);padding-bottom:112px}}@media(max-width:350px){.page{padding-left:12px;padding-right:12px}.category-rail{flex-basis:70px}.dish-cover{width:64px;height:64px}.dish-main{gap:8px}.dish-title{font-size:14px}.pantry-item{padding:12px 9px}.pantry-actions{gap:4px}.icon-button{width:28px}.pantry-transfer{padding:6px 8px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}

.recipe-modal{max-height:90dvh}.recipe-modal .cover-field img{aspect-ratio:auto;height:130px;object-fit:cover}.recipe-modal .field{margin:13px 0 7px}.recipe-modal textarea{min-height:78px;height:78px}.recipe-modal .form-submit{margin-top:18px}.recipe-modal .cover-field span{bottom:9px;right:9px}

.category-rail::-webkit-scrollbar{width:7px}.category-rail::-webkit-scrollbar-thumb{background:#cbb0a2;border-radius:7px}.category-rail::-webkit-scrollbar-track{background:#eee0d5}.hero-emoji{right:18px;top:20px;width:65px;height:65px;display:grid;place-items:center;line-height:1;transform:rotate(-8deg)}.recipe-detail-modal{max-height:90dvh}.recipe-detail-modal .modal-inner{padding:20px}.recipe-detail-modal .cover-full{margin-top:18px;height:180px;aspect-ratio:auto}.recipe-detail-modal .detail-heading h1{font-size:23px}.recipe-detail-modal .detail-title{font-size:17px}

@media(max-width:350px){.pantry-categories button{font-size:11px;padding-left:3px;padding-right:3px}}

.pantry-tools{display:flex;gap:8px;align-items:center;flex:1;justify-content:flex-end;min-width:0}.pantry-tools input{width:145px;min-width:0;max-width:100%;min-height:34px;padding:7px 10px;font-size:13px}.pantry-tools button{flex-shrink:0}.pantry-page .section{gap:10px}.pantry-page .section h2{flex-shrink:0}.recipe-attachments .compose-grid:empty{display:none}.recipe-attachments .compose-grid{margin:9px 0}.recipe-attachments .note{margin:7px 0 12px}.recipe-attachments .moment-grid{margin-top:10px}.recipe-modal textarea{resize:vertical;white-space:pre-wrap}.recipe-detail-modal .moment-grid{margin-top:12px}@media(max-width:350px){.pantry-tools input{width:105px}.pantry-page .section h2{font-size:16px}}

.kitchen-page .section{gap:10px}.kitchen-page .section h2{flex-shrink:0}.kitchen-page .pantry-tools input{width:125px}.unit-shortcuts{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}.unit-shortcuts button{min-height:30px;padding:4px 10px;font-size:12px}.recipe-delete{margin-top:18px}.purchase-row{border:1px solid var(--line);border-radius:14px;padding:12px;margin-top:12px;min-width:0}.purchase-row .field{margin:9px 0 5px}.purchase-check{display:flex;gap:8px;align-items:center;font-size:14px}.purchase-check input{width:18px;height:18px;min-height:18px;accent-color:var(--rose)}@media(max-width:350px){.kitchen-page .pantry-tools input{width:85px}.kitchen-page .section h2{font-size:16px}.kitchen-page .pantry-tools button{padding-left:7px;padding-right:7px}}

.edit-recipe-button{min-height:42px;padding:10px 19px;font-size:16px;font-weight:650;flex-shrink:0;border-radius:13px}.detail-heading h1{min-width:0}.draft-banner{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 13px;margin-bottom:14px;background:#fae9dc;border:1px solid #ecd4bf;border-radius:13px;font-size:13px}.draft-row{display:flex;align-items:center;gap:8px;padding:14px 0;border-bottom:1px solid var(--line)}.draft-row .note{margin:5px 0 0}.operation-progress{position:fixed;z-index:1000;bottom:110px;left:50%;transform:translateX(-50%);width:max-content;max-width:90vw;padding:14px 20px;background:#54413bf2;color:#fff;border-radius:15px;box-shadow:0 4px 24px #54413b33;font-size:14px;pointer-events:none}.operation-progress progress{display:block;width:100%;min-width:180px;height:6px;margin-top:10px;accent-color:#edabba}.progress-dots{margin-left:10px}.recipe-detail-modal .edit-recipe-button{min-width:76px}
