:root{--cream:#fff8ec;--bg:#fff9f4;--card:#fff;--text:#392c25;--brown:#633f29;--muted:#8b796d;--orange:#f88948;--cta:#b6532c;--line:#ebdccf;--soft:#fff0e2;--sage:#8fab83;--shadow:0 5px 20px #704e3110;color-scheme:light;font-family:-apple-system,BlinkMacSystemFont,'Noto Sans SC','PingFang SC','Microsoft YaHei',sans-serif;color:var(--text);background:var(--bg);font-synthesis:none;line-height:1.55;-webkit-tap-highlight-color:transparent}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,textarea,select{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button{border:0;background:none;color:inherit}a{color:var(--cta)}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #8fab83;outline-offset:3px}h1,h2,h3,h4,p{margin:0}img{max-width:100%;vertical-align:middle}input,textarea,select{font-size:16px;color:var(--text);width:100%;border:1px solid var(--line);border-radius:14px;background:white;padding:13px 14px;min-height:48px;outline:none}input:focus,textarea:focus,select:focus{border-color:var(--orange);box-shadow:0 0 0 3px #f8894817}input[type=checkbox]{width:20px;height:20px;min-height:0;accent-color:var(--cta);flex:none}textarea{resize:vertical;min-height:108px}select{appearance:auto}label{display:block;font-size:13px;color:var(--brown);font-weight:600;margin:14px 0 6px}small{font-size:12px;color:var(--muted)}.app{max-width:520px;min-height:100dvh;margin:auto;background:var(--bg);position:relative;padding-bottom:calc(95px + env(safe-area-inset-bottom));box-shadow:0 0 80px #57331a08}.top{height:76px;padding:13px 20px 9px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--bg);position:sticky;top:0;z-index:15}.brand{width:155px;max-height:46px;object-fit:contain;object-position:left center}.top-actions{display:flex;gap:9px;align-items:center}.icon-button{height:44px;min-width:44px;border-radius:50%;border:1px solid #eddfd2;background:white;display:inline-flex;justify-content:center;align-items:center;position:relative;flex:none}.icon{width:23px;height:23px;display:inline-block;flex:none;object-fit:contain}.icon.small{width:18px;height:18px}.icon-button .icon{width:21px;height:21px}.active-icon{filter:invert(58%) sepia(73%) saturate(843%) hue-rotate(331deg) brightness(102%) contrast(94%)}.badge{position:absolute;right:2px;top:0;background:var(--orange);color:white;font-size:10px;padding:0 5px;min-width:16px;border:2px solid var(--bg);border-radius:99px;line-height:16px}.avatar{height:42px;width:42px;flex:none;border-radius:50%;background:#f6d3b8;color:#92572f;border:2px solid white;display:inline-flex;align-items:center;justify-content:center;font-size:15px;font-weight:700;overflow:hidden}.avatar img{width:100%;height:100%;object-fit:cover}.avatar.large{width:65px;height:65px;font-size:23px}.avatar.sage{background:#e2ebdb;color:#607b52}.page{padding:0 20px}.title{font-size:25px;line-height:1.45;font-weight:750;letter-spacing:-.6px}.subtitle{font-size:13px;color:var(--muted);line-height:1.8;margin-top:5px}.eyebrow{font-size:10px;letter-spacing:1.6px;color:#b17b50;font-weight:700}.hero{background:linear-gradient(125deg,#f8e5cc,#fff3e3 70%,#edf0df);padding:22px;border-radius:23px;position:relative;overflow:hidden;min-height:161px;margin:8px 0 18px}.hero h1{font-size:24px;line-height:1.45;letter-spacing:-.5px;margin:7px 0;color:#64432f;position:relative;z-index:1;max-width:270px}.hero p{font-size:12px;color:#9b7963;position:relative;z-index:1}.hero img{width:142px;height:175px;object-fit:cover;position:absolute;right:0;bottom:-8px;opacity:.72;mask-image:linear-gradient(90deg,transparent,#000 55%)}.kitchen-switch{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border:1px solid var(--line);background:#fff;border-radius:99px;font-size:12px;color:var(--brown);max-width:100%;margin:0 0 10px}.kitchen-switch span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.search{height:46px;border:1px solid var(--line);border-radius:25px;background:#fff;display:flex;align-items:center;gap:10px;padding:0 15px;margin:14px 0;color:#aa9484;font-size:13px;width:100%;text-align:left}.search input{border:0;box-shadow:none;padding:0;min-height:42px;background:none}.quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin:18px 0}.quick{background:#fff;border:1px solid #f0e1d3;border-radius:17px;padding:12px 1px;display:flex;align-items:center;flex-direction:column;gap:7px;font-size:11px;color:#735747;min-width:0}.quick>span{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:13px;background:#fff1e5}.quick .icon{width:23px;height:23px}.section{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:25px 0 13px}.section h2{font-size:17px;letter-spacing:-.2px}.section button{font-size:12px;color:#a96742;min-height:36px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.recipe-card{border:1px solid #f0e2d6;border-radius:20px;background:#fff;box-shadow:var(--shadow);overflow:hidden;text-align:left;padding:0;width:100%}.recipe-photo{width:100%;height:142px;object-fit:cover;background:#f8e5d2;display:block}.photo-placeholder{height:142px;background:linear-gradient(135deg,#f8e6d1,#fff3e5);display:flex;align-items:center;justify-content:center;position:relative}.photo-placeholder .icon{height:50px;width:50px;opacity:.45}.photo-placeholder.green{background:linear-gradient(125deg,#e6eddf,#f5f6ea)}.photo-placeholder:before{content:'';width:90px;height:90px;border:1px solid #a67b5022;border-radius:50%;position:absolute}.recipe-info{padding:11px 12px 13px}.recipe-info h3{font-size:14px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.card-meta{font-size:11px;color:#a18b7b;display:flex;align-items:center;gap:6px;margin-top:7px}.card-meta .icon{width:13px;height:13px}.duration{position:absolute;right:9px;bottom:9px;border-radius:99px;background:#fff9;padding:3px 8px;font-size:10px;color:#795b48}.photo-wrap{position:relative}.panel{background:white;border:1px solid #f0e2d6;border-radius:20px;padding:16px;box-shadow:var(--shadow)}.panel+.panel{margin-top:12px}.row{display:flex;align-items:center;gap:11px}.row.start{align-items:flex-start}.row.between{justify-content:space-between}.row.wrap{flex-wrap:wrap}.grow{flex:1;min-width:0}.truncate{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pill{display:inline-flex;gap:5px;align-items:center;border-radius:99px;padding:5px 10px;background:var(--soft);color:#9b633c;font-size:11px;font-weight:600;white-space:nowrap}.pill.green{background:#eaf1e5;color:#66805a}.pill.gray{background:#f1efec;color:#8d8075}.pill.red{background:#fae8e3;color:#b9614a}.button{background:var(--cta);color:white;border:0;border-radius:15px;min-height:48px;padding:12px 18px;font-weight:650;font-size:14px;display:inline-flex;align-items:center;justify-content:center;gap:8px;line-height:1.4}.button.full{width:100%}.button.soft{background:var(--soft);color:#925c3b}.button.outline{background:white;border:1px solid #dda077;color:#a15c37}.button.danger{background:#fae9e3;color:#b1533a}.button.small{min-height:40px;font-size:12px;padding:9px 14px;border-radius:12px}.button .icon{filter:brightness(0) invert(1);width:19px;height:19px}.button.soft .icon,.button.outline .icon{filter:none}.link-button{color:#b3663e;font-size:12px;min-height:40px;padding:6px}.nav{position:fixed;bottom:0;width:100%;max-width:520px;display:grid;grid-template-columns:repeat(5,1fr);z-index:20;background:#fffffff5;backdrop-filter:blur(14px);border-top:1px solid #ede0d5;padding:6px 10px calc(9px + env(safe-area-inset-bottom));box-shadow:0 -4px 20px #633f2904}.nav button{font-size:11px;color:#a28e80;min-height:58px;display:flex;align-items:center;justify-content:center;gap:4px;flex-direction:column;border-radius:13px;position:relative}.nav .icon{width:25px;height:25px}.nav button.on{color:#b2653a;font-weight:700;background:#fff7ef}.nav button.on:before{content:'';position:absolute;top:0;height:2px;width:22px;border-radius:3px;background:var(--orange)}.nav .on .icon{filter:invert(58%) sepia(73%) saturate(843%) hue-rotate(331deg) brightness(102%) contrast(94%)}.tabs{display:flex;gap:21px;overflow-x:auto;border-bottom:1px solid var(--line);margin:15px 0 18px;scrollbar-width:none}.tabs button{flex:none;padding:12px 2px;font-size:13px;color:#9d8778;border-bottom:2px solid transparent}.tabs button.on{color:#b2653a;font-weight:700;border-color:var(--orange)}.chips{display:flex;gap:8px;flex-wrap:wrap}.chip{border:1px solid #eddfd2;border-radius:99px;background:#fff;padding:9px 12px;font-size:12px;color:#8b6c54;min-height:40px}.chip.on{background:#fff0e2;border-color:#eead80;color:#a95d32}.empty{text-align:center;padding:31px 18px;border:1px dashed #e7d7c8;background:#fffdf9;border-radius:20px}.empty img{width:125px;height:105px;object-fit:contain;margin-bottom:12px}.empty h3{font-size:16px;color:var(--brown)}.empty p{font-size:12px;color:var(--muted);max-width:300px;margin:9px auto 17px;line-height:1.8}.empty .button{min-height:43px;font-size:12px}.stats{display:grid;grid-template-columns:repeat(3,1fr);background:white;border:1px solid #f0e2d6;border-radius:18px;padding:17px 3px;text-align:center;margin:15px 0}.stats button+button{border-left:1px solid #f0e4da}.stats strong{display:block;font-size:22px;color:#6d4830;font-weight:700}.stats span{font-size:11px;color:#a68f7b}.list-item{display:flex;align-items:center;gap:12px;width:100%;padding:15px 0;border-bottom:1px solid #f1e7de;text-align:left;min-height:62px}.list-item:last-child{border-bottom:0}.list-item h3{font-size:14px}.list-item p{font-size:12px;color:var(--muted);margin-top:4px}.list-item .arrow{font-size:22px;color:#bc9e87}.dot{height:7px;width:7px;background:var(--orange);border-radius:50%;flex:none}.notice-icon{width:44px;height:44px;background:var(--soft);border-radius:15px;display:flex;align-items:center;justify-content:center;flex:none}.notice-icon .icon{width:23px;height:23px}.notice-date{font-size:10px;color:#ad9a8c}.notice-item.unread{background:#fffbf6}.notice-item{padding:14px;border:1px solid #f0e2d6;border-radius:17px;margin-bottom:10px;width:100%;text-align:left}.footnote{text-align:center;color:#a58b79;font-size:11px;line-height:1.8;margin:25px 0 5px}.muted{color:var(--muted);font-size:12px;line-height:1.75}.hint{background:#fff1e4;border-radius:14px;padding:13px 15px;color:#a16d47;font-size:12px;line-height:1.8}.error-box{background:#fae9e3;color:#a74d34;border:1px solid #ecc9bb;padding:13px;border-radius:13px;font-size:13px;margin:12px 0}.auth{max-width:440px;min-height:100dvh;margin:auto;padding:55px 25px 35px;background:radial-gradient(ellipse at 50% 0,#fff0da,transparent 60%),var(--bg)}.auth-brand{text-align:center;margin-bottom:38px}.auth-brand .app-icon{width:102px;height:102px;border-radius:25px;box-shadow:0 11px 25px #ad7c4f20}.auth-brand .wordmark{width:204px;display:block;margin:22px auto 12px}.auth-brand p{font-size:12px;color:#a18a77}.auth h1{font-size:24px;color:#633f29}.auth .subtitle{margin-bottom:21px}.auth .button{margin-top:15px}.password-wrap{position:relative}.password-wrap input{padding-right:56px}.password-wrap button{position:absolute;right:5px;top:3px;font-size:11px;min-width:45px;height:42px;color:#92745e}.consent{display:flex;align-items:flex-start;gap:8px;margin-top:18px;font-size:11px;color:#9e8876;font-weight:400;line-height:1.9}.consent button{font-size:11px;color:#a45f38;padding:0;text-decoration:underline}.welcome{padding-top:35px}.welcome .hero{min-height:185px}.choose-card{width:100%;padding:23px;text-align:left;display:flex;gap:15px;align-items:center;margin:15px 0;background:white;border:1px solid var(--line);border-radius:21px}.choose-card h2{font-size:17px}.choose-card p{font-size:12px;color:var(--muted);margin-top:5px}.choose-card .icon{width:35px;height:35px;opacity:.8}.modal-layer{position:fixed;inset:0;z-index:100;background:#392c2565;display:flex;align-items:flex-end;justify-content:center;padding-top:32px;backdrop-filter:blur(3px)}.sheet{background:var(--bg);width:100%;max-width:520px;max-height:calc(100dvh - 32px);overflow-y:auto;border-radius:26px 26px 0 0;padding:0 22px calc(25px + env(safe-area-inset-bottom));box-shadow:0 -12px 60px #43281625;animation:slide-up .2s ease-out;overscroll-behavior:contain}.sheet-head{display:flex;justify-content:space-between;align-items:center;gap:10px;position:sticky;top:0;background:var(--bg);padding:21px 0 14px;z-index:3}.sheet-head h2{font-size:20px;color:var(--brown)}.sheet-head button{height:36px;width:36px;background:#f2e7dc;border-radius:50%;font-size:23px;color:#8e7460}.sheet .button.full{margin-top:20px}.sheet .form-actions{display:flex;gap:10px;margin-top:22px}.sheet .form-actions .button{flex:1}.sheet label:first-of-type{margin-top:5px}.check-row{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:15px 0}.check-row label{margin:0}.check-row input{width:42px}.toggle{height:26px;width:44px;border-radius:99px;background:#f2d4bc;padding:3px;position:relative;flex:none}.toggle:after{content:'';display:block;background:white;border-radius:50%;height:20px;width:20px;transition:transform .15s}.toggle.on{background:var(--orange)}.toggle.on:after{transform:translateX(18px)}.cover-upload{height:150px;background:#faeddf;border:1px dashed #dfc4ac;border-radius:17px;display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative;margin:5px 0 16px;cursor:pointer}.cover-upload img{width:100%;height:100%;object-fit:cover}.cover-upload .upload-hint{display:flex;align-items:center;gap:8px;font-size:13px;color:#a28065}.cover-upload input{position:absolute;inset:0;opacity:0;cursor:pointer;height:100%}.cover-upload.has-photo .upload-hint{position:absolute;bottom:10px;right:10px;background:#fffD;padding:5px 10px;border-radius:99px;font-size:11px}.cols{display:grid;grid-template-columns:1fr 1fr;gap:13px}.modal-busy{position:absolute;inset:0;background:#fff9;display:flex;align-items:center;justify-content:center;color:var(--brown)}.detail-cover{width:100%;height:280px;object-fit:cover;border-radius:0 0 25px 25px}.detail-placeholder{height:240px;border-radius:0 0 25px 25px}.detail-placeholder .icon{width:80px;height:80px}.detail-head{padding:23px 20px 0}.detail-title{font-size:27px;letter-spacing:-.6px;line-height:1.4}.back-floating{position:absolute;left:18px;top:17px;background:#ffffffe8;z-index:2}.cover-container{position:relative}.detail-content{padding:0 20px}.ingredients-list{background:#fff;border:1px solid var(--line);border-radius:17px;overflow:hidden}.ingredients-list div{padding:11px 15px;font-size:13px;border-bottom:1px solid #f3e7dd}.ingredients-list div:last-child{border:0}.step{display:flex;gap:12px;margin:17px 0}.step>b{width:27px;height:27px;border-radius:50%;background:#f9e5d0;color:#a76f42;text-align:center;line-height:27px;font-size:12px;flex:none}.step p{font-size:14px;color:#735b49;line-height:1.9;white-space:pre-wrap}.comment{border:1px solid #f0e3d8;border-radius:15px;padding:13px;background:white;margin:10px 0}.comment h4{font-size:12px}.comment p{font-size:13px;line-height:1.8;white-space:pre-wrap;margin-top:9px}.comment .avatar{width:30px;height:30px;font-size:11px}.comment-actions{display:flex;gap:12px}.comment-actions button{font-size:11px;color:#a67d5e;min-height:35px}.action-footer{position:fixed;bottom:0;left:0;right:0;max-width:520px;margin:auto;background:#fffF;border-top:1px solid var(--line);padding:12px 20px calc(14px + env(safe-area-inset-bottom));z-index:21;display:flex;gap:12px}.action-footer .button{flex:1}.action-footer .icon-button{border-radius:14px;height:48px;min-width:48px}.counter{display:flex;align-items:center;gap:10px;font-size:14px}.counter button{width:32px;height:32px;border-radius:9px;background:var(--soft);color:#9e6740;font-size:20px}.basket-line{padding:15px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:12px}.basket-bar{position:fixed;bottom:94px;left:20px;right:20px;margin:auto;max-width:480px;padding:12px 16px;border-radius:18px;background:#633f29;color:#fff;display:flex;align-items:center;justify-content:space-between;z-index:19;box-shadow:0 8px 30px #633f2940;font-size:13px}.basket-bar button{background:#fff1e4;border-radius:12px;padding:8px 12px;color:#925b35;font-size:12px}.pantry-line{display:flex;gap:10px;align-items:center;padding:14px 0;border-bottom:1px solid #efdfd0}.pantry-line.off{opacity:.55}.pantry-check{width:34px;height:34px;border:1px solid #dcc4af;border-radius:50%;flex:none;display:flex;align-items:center;justify-content:center}.pantry-check.on{background:#eaf1e5;border-color:#adc69c}.pantry-line h3{font-size:14px}.pantry-line p{font-size:11px;color:var(--muted);margin-top:4px}.pantry-line .icon-button{border:0;background:none;min-width:36px;width:36px}.friend-cover{height:80px;width:80px;object-fit:cover;border-radius:16px}.friend-cover.placeholder{background:#f9eadb;display:flex;justify-content:center;align-items:center}.friend-cover .icon{width:36px;height:36px;opacity:.5}.friend-person{padding:15px 0;border-bottom:1px solid var(--line)}.profile-hero{background:linear-gradient(120deg,#f9e5cd,#fff2e4);padding:22px;border-radius:22px;margin-top:8px}.profile-hero h1{font-size:20px}.order-card{padding:16px;background:white;border:1px solid #f0e1d4;border-radius:20px;margin:12px 0}.order-card .order-dish{margin-top:16px}.order-thumb{width:58px;height:58px;object-fit:cover;border-radius:12px;background:#faeddf}.order-thumb.placeholder{display:flex;align-items:center;justify-content:center}.order-thumb .icon{width:26px;opacity:.4}.order-actions{display:flex;gap:10px;margin-top:15px;border-top:1px solid #eee1d5;padding-top:13px}.order-actions .button{flex:1;min-height:40px;font-size:12px}.order-note{font-size:12px;color:#9d8069;background:#fff8ef;border-radius:10px;padding:9px 11px;margin-top:12px}.score{color:#d48a41;letter-spacing:2px}.invite-code{font-size:29px;letter-spacing:4px;font-weight:700;color:#9e5b2b;text-align:center;background:#fff0df;padding:18px 5px;border-radius:16px;margin:13px 0}.settings-group{background:white;border:1px solid #efdfd1;border-radius:18px;padding:0 15px;margin:14px 0}.progress-state{display:flex;justify-content:space-between;gap:2px;margin:18px 0;padding:17px 8px;background:#fff;border-radius:16px}.progress-state span{font-size:11px;color:#b7a494;text-align:center}.progress-state span.done{color:#b46636;font-weight:700}.progress-state i{display:block;margin:0 auto 6px;height:9px;width:9px;border-radius:50%;background:#e7d9cd}.progress-state .done i{background:#f88948}.loading-start{height:90dvh;display:flex;justify-content:center;align-items:center;flex-direction:column;gap:20px;color:#9b7e65;font-size:13px}.loading-start img{width:100px}.loader{padding:80px 20px;text-align:center;color:#a48973;font-size:13px}.spinner{display:inline-block;width:24px;height:24px;border:2px solid #f0d9c4;border-top-color:#b66f3d;border-radius:50%;animation:spin .7s linear infinite;margin-bottom:12px}.skeleton{height:155px;background:linear-gradient(90deg,#f5e8db,#fff7ef,#f5e8db);background-size:200% 100%;animation:shimmer 1.4s linear infinite;border-radius:18px;margin:12px 0}#toast{position:fixed;bottom:120px;left:50%;transform:translateX(-50%) translateY(12px);z-index:150;padding:12px 19px;border-radius:13px;background:#49362aee;color:white;font-size:13px;opacity:0;pointer-events:none;max-width:85vw;text-align:center;transition:.15s;box-shadow:0 8px 25px #49362a22}#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}#connection{position:fixed;top:0;left:0;right:0;text-align:center;background:#b6532c;color:white;padding:5px 10px;font-size:11px;z-index:200}.spacer{height:15px}.floating-add{position:fixed;right:max(22px,calc((100vw - 480px)/2));bottom:105px;z-index:18;width:54px;height:54px;background:var(--cta);box-shadow:0 7px 24px #b6532c40;border-radius:18px;display:flex;align-items:center;justify-content:center}.floating-add .icon{filter:brightness(0) invert(1);width:26px;height:26px}.legal{font-size:13px;line-height:1.9;color:#7d6553}.legal h3{font-size:15px;color:var(--brown);margin:20px 0 8px}.legal p{margin:10px 0}.profile-menu button{width:100%;text-align:left}.destructive{color:#b15b45}.server-info{font-size:11px;color:#b49c89;overflow-wrap:anywhere;text-align:center;margin:20px 0}.stars-input{display:flex;gap:10px;margin:15px 0}.stars-input button{font-size:34px;color:#dbc8b8;padding:4px}.stars-input button.on{color:#df9d48}.inspiration{background:linear-gradient(135deg,#e8efdf,#fff4e7)}.inspiration h1{max-width:245px}.inspiration .icon{position:absolute;right:26px;top:45px;width:75px;height:75px;opacity:.35;transform:rotate(-15deg)}.tip-card{padding:15px 17px;border-left:3px solid #d8b18d;background:#fff2e6;border-radius:0 13px 13px 0;font-size:12px;color:#a57d5f;line-height:1.9;margin:18px 0}.inline-error{color:#ad5034;font-size:12px;margin-top:10px;line-height:1.7}.hidden{display:none!important}@keyframes slide-up{from{transform:translateY(25px);opacity:.5}to{transform:translateY(0);opacity:1}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes shimmer{to{background-position:-200% 0}}@media(min-width:700px){body{background:#f0e8de}.app{box-shadow:0 0 90px #79523618}.auth{max-width:520px;box-shadow:0 0 90px #79523618}.modal-layer{align-items:center;padding:30px}.sheet{border-radius:25px;max-height:90dvh}}@media(max-width:370px){.page{padding:0 16px}.top{padding-left:16px;padding-right:16px}.quick{font-size:10px}.recipe-photo,.photo-placeholder{height:125px}.hero h1{font-size:22px}.brand{width:140px}.grid{gap:10px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Mealoom 2.2: recipe galleries, pantry library, community and guest menus. */
.kitchen-tools{margin-top:18px}.recipe-edit-entry{justify-content:flex-end;margin:12px 0}.recipe-gallery{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:8px;border-radius:22px}.recipe-gallery>img{width:100%;flex:none;height:300px;object-fit:cover;scroll-snap-align:start}.gallery-count{text-align:center;color:var(--muted);font-size:12px;margin:8px 0 18px}.gallery-editor-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.photo-editor{margin:14px 0}.gallery-editor-item,.gallery-add{position:relative;aspect-ratio:1;border-radius:14px;overflow:hidden;background:var(--soft)}.gallery-editor-item img{width:100%;height:100%;object-fit:cover}.gallery-remove{position:absolute;right:3px;top:3px;width:28px;height:28px;border-radius:50%;color:white;background:#392c25b0;font-size:21px}.gallery-cover{position:absolute;bottom:0;left:0;right:0;background:#392c25a8;color:white;font-size:11px;padding:4px}.gallery-add{display:flex;flex-direction:column;justify-content:center;align-items:center;margin:0;cursor:pointer;font-size:12px;gap:5px}.gallery-add input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.gallery-status{font-size:12px;margin-top:8px}.catalog-categories{margin:14px 0}.ingredient-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-height:330px;overflow:auto;padding:4px 2px}.ingredient-option{border:1px solid var(--line);border-radius:12px;padding:12px 5px;background:white;font-size:13px}.ingredient-option.selected{background:var(--soft);border-color:var(--orange);color:var(--cta)}#catalog-count{margin:12px 0}.social-tabs{margin:15px 0}.feed-scopes{margin-bottom:18px}.post-card{margin:14px 0}.post-card h3{font-size:14px}.post-card .muted{font-size:11px}.post-text{white-space:pre-wrap;overflow-wrap:anywhere;margin:15px 0;font-size:15px}.post-photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:14px 0}.post-photos button{padding:0;border-radius:10px;overflow:hidden;aspect-ratio:1}.post-photos img{width:100%;height:100%;object-fit:cover}.post-photos.count-1{grid-template-columns:1fr}.post-photos.count-1 button{max-height:330px;aspect-ratio:4/3}.post-actions{display:flex;justify-content:flex-end;gap:22px;margin-top:15px}.post-actions>button{display:flex;align-items:center;gap:6px;font-size:13px;padding:6px}.post-actions .icon{width:20px;height:20px}.text-button{border:0;background:none;padding:4px;color:var(--muted)}.photo-view{display:block;width:100%;height:auto;max-height:70dvh;object-fit:contain}.line-clamp{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:250px}.conversation{width:100%;text-align:left;border-bottom:1px solid var(--line);padding:17px 2px}.unread-count,.nav-dot{border-radius:20px;background:var(--cta);color:white;font-size:10px;padding:1px 6px}.nav-dot{margin-left:3px}.chat-page{display:flex;flex-direction:column;height:calc(100dvh - 175px);min-height:330px;padding-bottom:0}.chat-messages{flex:1;overflow:auto;padding:10px 0;overscroll-behavior:contain}.chat-line{display:flex;flex-direction:column;align-items:flex-start;margin:13px 0}.chat-line.mine{align-items:flex-end}.chat-bubble{padding:12px 15px;border-radius:17px 17px 17px 4px;background:white;border:1px solid var(--line);max-width:85%;white-space:pre-wrap;overflow-wrap:anywhere}.chat-line.mine .chat-bubble{background:var(--soft);border-color:#f0d3b7;border-radius:17px 17px 4px 17px}.chat-line small{font-size:10px;margin:4px 2px}.chat-compose{display:flex;gap:9px;align-items:flex-end;padding:10px 0;background:var(--bg)}.chat-compose textarea{min-height:48px;height:54px;max-height:120px;resize:none}.chat-compose .button{min-width:65px;margin:0}.inbox-link{width:100%;text-align:left;margin-bottom:18px}.share-url{margin:18px 0;font-size:13px}.share-recipe-options{max-height:320px;overflow:auto;padding:10px 0}.share-history{margin:20px 0}.share-history .row{padding:10px 0}.cooking-guide{background:#fff5e9;padding:14px;border-radius:14px;margin:5px 0 16px}.cooking-guide summary{font-weight:600;color:var(--brown);font-size:13px}.cooking-guide p{font-size:12px;margin:10px 0}.cooking-guide ol{margin:10px 0 0;padding-left:23px;font-size:13px}.cooking-guide li{margin:8px 0;white-space:pre-wrap;overflow-wrap:anywhere}.guest-app{padding-bottom:35px}.guest-menu{margin:20px 0}.guest-dish{display:flex;align-items:center;gap:12px;margin:12px 0;padding:12px}.guest-dish>img,.guest-placeholder{width:68px;height:68px;object-fit:cover;border-radius:13px;flex:none}.guest-placeholder{background:var(--soft);display:grid;place-items:center;font-size:30px}.guest-dish h2{font-size:15px}.guest-dish .counter{gap:5px}.guest-dish .counter button{min-width:30px;width:30px;height:33px}.guest-dish .grow{min-width:0}.guest-dish .muted{font-size:12px}#guest-order{margin-top:24px}.order-dish h3{font-size:14px}.photo-editor .gallery-add:focus-within{outline:3px solid var(--sage)}
.search input{flex:1;min-width:0;width:auto}.search>button{flex:none;white-space:nowrap;font-size:13px;padding:6px 0}.ingredient-options button{overflow-wrap:anywhere}.comment-list .comment-row{display:flex;gap:10px;padding:15px 0;border-bottom:1px solid var(--line)}.comment-list .comment-row p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;margin:6px 0}

/* Keep the primary publish action legible inside section headings. */
.section .button[data-action="new-post"]{background:var(--cta);color:#fff}

/* A conversation has its own keyboard-aware layout, without the global tabs. */
html.chat-mode,html.chat-mode body{overflow:hidden;overscroll-behavior-y:none}
.app.chat-app{height:var(--chat-height,100dvh);min-height:0;padding-bottom:0;display:flex;flex-direction:column;overflow:hidden}
.chat-app>.top{flex:0 0 76px;position:relative}
.chat-app .chat-page{flex:1;min-height:0;height:auto;width:100%;overflow:hidden}
.chat-app .chat-messages{min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch}
.chat-app .chat-compose{flex:none;margin:0;padding-bottom:max(10px,env(safe-area-inset-bottom))}
.chat-app #chat-more{flex:none}
