:root{color-scheme:light;--ink:#14382d;--muted:#71817a;--paper:#f8f7f1;--surface:#fff;--border:#e7eae3;--green:#164d3e;--mint:#e5f3eb;--highlight:#e6a576;--orange:#fff1e4;--red:#bb463d;--shadow:0 16px 36px rgba(30,65,50,.075)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:system-ui,-apple-system,"Hiragino Kaku Gothic ProN","Noto Sans JP","Microsoft YaHei",sans-serif;font-size:14px}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:default}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #84bfa0;outline-offset:2px}a{color:inherit}.layout{display:grid;grid-template-columns:240px minmax(0,1fr);min-height:100vh;max-width:1480px;margin:auto}.aside{background:#113d32;color:#f5f8f1;padding:31px 19px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;gap:18px}.brand{display:flex;gap:12px;align-items:center;font-size:19px;font-weight:800;line-height:1.2;letter-spacing:-.7px;padding:6px 9px 16px}.logo{width:42px;height:42px;border-radius:15px;background:#f0eadc;display:grid;place-items:center;font-size:24px}.brand small{display:block;font-size:10px;font-weight:500;opacity:.72;letter-spacing:1px;margin-top:5px}.nav{display:grid;gap:5px}.nav button{border:0;border-radius:12px;padding:13px 15px;display:flex;align-items:center;gap:13px;background:transparent;text-align:left;color:#c8dcd2;font-weight:650}.nav button.active,.nav button:hover{color:#143d32;background:#f1f4e9}.nav button .emoji{font-size:19px;min-width:26px}.sidebottom{margin-top:auto;display:grid;gap:10px}.side-note{font-size:12px;line-height:1.6;color:#a9bfb3;padding:11px}.chip-on-dark{color:#bcf4d4;font-size:11px;letter-spacing:1px}.main{padding:32px clamp(20px,4vw,60px) 100px;min-width:0}.topbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:26px}.crumb{font-size:12px;color:var(--muted);letter-spacing:1.5px;text-transform:uppercase;font-weight:750}.top-actions{display:flex;align-items:center;gap:8px}.lang{border:1px solid #e1e7db;background:white;border-radius:11px;padding:10px;color:var(--ink);font-weight:600}.userbubble{border-radius:50%;width:37px;height:37px;display:grid;place-items:center;background:#d4ecdc;color:var(--green);font-weight:800}.title{font-size:clamp(26px,3vw,38px);letter-spacing:-1.3px;line-height:1.2;margin:8px 0}.sub{color:var(--muted);line-height:1.8;font-size:14px;margin:8px 0}.hero{background:var(--green);color:white;min-height:235px;border-radius:24px;display:flex;overflow:hidden;position:relative;box-shadow:var(--shadow);margin:22px 0 22px}.hero-content{z-index:1;padding:32px 38px;max-width:74%}.hero h2{font-size:26px;margin:13px 0 10px;letter-spacing:-.5px}.hero p{color:#d1e7d8;line-height:1.7}.hero .eyebrow{font-size:11px;letter-spacing:2px;color:#b6d9c4;font-weight:750}.hero-art{position:absolute;right:-20px;bottom:-46px;width:260px;height:260px;border-radius:50%;background:#31725a;display:grid;place-items:center;font-size:92px;transform:rotate(-18deg);border:28px solid #417e64}.hero-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:19px}.btn{border:0;border-radius:11px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 17px;font-weight:720;white-space:nowrap}.primary{color:white;background:var(--green)}.light{color:var(--green);background:#f2f5ec}.line{color:var(--green);background:white;border:1px solid var(--border)}.soft{color:#2e5844;background:var(--mint)}.danger{color:var(--red);background:#fff0ed}.btn.small{font-size:12px;padding:8px 11px;border-radius:9px}.btn:active{transform:translateY(1px)}.grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:16px}.col3{grid-column:span 3}.col4{grid-column:span 4}.col6{grid-column:span 6}.col8{grid-column:span 8}.col12{grid-column:span 12}.card{background:white;border-radius:20px;border:1px solid var(--border);padding:22px;box-shadow:0 4px 20px rgba(20,60,45,.03);min-width:0}.card h3{font-size:17px;letter-spacing:-.35px;margin:0 0 13px}.card h4{font-size:14px;margin:0 0 8px}.card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}.card-head h3{margin:0}.stat{display:flex;align-items:center;gap:16px}.stat-icon{width:45px;height:45px;border-radius:13px;background:#edf5ee;display:grid;place-items:center;font-size:22px}.stat strong{display:block;font-size:25px;letter-spacing:-.7px}.stat small{color:var(--muted);font-size:12px}.pill{border-radius:100px;display:inline-flex;align-items:center;gap:5px;padding:5px 10px;background:var(--mint);color:#23674d;font-size:11px;font-weight:800}.pill.orange{background:#fff1e4;color:#b96e23}.pill.grey{background:#f0f1ec;color:#697b70}.pill.red{background:#ffeeec;color:#ba4c40}.divider{border:0;border-top:1px solid var(--border);margin:16px 0}.section-title{display:flex;justify-content:space-between;align-items:center;margin:26px 0 12px}.section-title h2{font-size:21px;margin:0}.list-row{display:flex;align-items:center;gap:12px;padding:13px 0;border-top:1px solid #eef0eb}.list-row:first-child{border:0}.list-row>div.middle{flex:1;min-width:0}.list-row strong{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.list-row small{display:block;color:var(--muted);margin-top:4px;line-height:1.55}.avatar{width:36px;height:36px;border-radius:12px;background:#eaf2e9;color:#2b6b52;display:grid;place-items:center;flex-shrink:0;font-weight:800}.avatar.alt{background:#f9ecde;color:#bd7b3b}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.field{display:flex;flex-direction:column;gap:7px;margin:0}.field.full{grid-column:1/-1}.field label{font-size:12px;color:#53685e;font-weight:750}.input{width:100%;min-width:0;background:#fbfcf9;border:1px solid #dfe6de;border-radius:10px;color:var(--ink);padding:11px 12px;outline:0}.input:focus{border-color:#78a58b;box-shadow:0 0 0 3px #eaf7ef}textarea.input{resize:vertical;min-height:90px}.help{color:var(--muted);font-size:11px;line-height:1.6}.form-actions{display:flex;gap:9px;justify-content:flex-end;flex-wrap:wrap;margin-top:18px}.tabs{display:flex;gap:7px;border-bottom:1px solid var(--border);overflow:auto;margin:16px 0 20px}.tabs button{border:0;background:transparent;color:var(--muted);padding:11px 15px;font-weight:750;white-space:nowrap}.tabs button.active{color:var(--green);box-shadow:inset 0 -3px var(--green)}.progress{height:8px;background:#edf1e8;border-radius:5px;overflow:hidden}.progress>span{display:block;height:100%;background:#76b392;border-radius:5px}.dish{display:flex;gap:14px;align-items:center;padding:14px 0;border-top:1px solid var(--border)}.dish:first-child{border:0}.dish-img{height:74px;width:83px;flex-shrink:0;border-radius:14px;background:linear-gradient(140deg,#fff0de,#cde6cf);display:grid;place-items:center;font-size:40px}.dishbody{flex:1;min-width:0}.dishbody strong{display:block;font-size:15px}.dishbody small{display:block;color:var(--muted);margin-top:4px;line-height:1.5}.dish-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}.mini-icon{font-size:17px}.table-wrap{overflow-x:auto}.tbl{width:100%;border-collapse:collapse;min-width:560px}.tbl th{font-size:11px;color:var(--muted);text-align:left;background:#f8faf6;padding:12px}.tbl td{border-bottom:1px solid #edf0eb;padding:11px 12px;font-size:13px}.tbl tr:last-child td{border-bottom:0}.tbl .input{min-width:85px;max-width:180px;padding:8px 9px;font-size:12px}.tag{display:inline-flex;align-items:center;border-radius:7px;background:#f1f5ed;color:#517264;font-size:11px;font-weight:700;padding:4px 8px}.banner{background:#fff6e8;border:1px solid #f3dfbb;color:#8e632c;border-radius:12px;padding:13px 15px;font-size:12px;line-height:1.65;margin:10px 0 16px}.danger-banner{background:#fff1ec;border-color:#f3c2b9;color:#a23f35}.success-banner{background:#e9f7ec;border-color:#c6e5cd;color:#246949}.empty{padding:32px;text-align:center;color:var(--muted);font-size:13px}.empty .emoji{font-size:38px;display:block;margin:0 0 10px}.flex{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.between{display:flex;align-items:center;justify-content:space-between;gap:10px}.right{text-align:right}.text-muted{color:var(--muted)}.muted-xs{color:var(--muted);font-size:11px}.modal-backdrop{position:fixed;inset:0;background:#112f29b8;z-index:30;display:grid;place-items:center;padding:16px;overflow:auto}.modal{background:white;border-radius:24px;padding:24px;width:min(100%,550px);max-height:min(90vh,900px);overflow:auto;box-shadow:0 30px 90px #0003}.modal h2{font-size:21px;margin:0 0 8px}.modal .close{float:right;border:0;background:#f0f4ed;width:32px;height:32px;border-radius:50%;font-size:20px}.modal header{margin:0 0 18px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%) translateY(80px);background:#173b2f;color:white;border-radius:12px;padding:12px 19px;transition:transform .25s;z-index:100;font-size:13px;max-width:min(90vw,560px);box-shadow:0 12px 30px #0002;text-align:center}.toast.show{transform:translateX(-50%) translateY(0)}.mobile-nav{display:none}.stack{display:grid;gap:10px}.numeric{font-variant-numeric:tabular-nums}.note{font-size:12px;line-height:1.7;color:#658075}.mini-card{background:#f7f9f5;border:1px solid var(--border);border-radius:13px;padding:14px}.quicksteps{display:flex;flex-wrap:wrap;gap:7px}.step{padding:9px 11px;border-radius:10px;background:#f2f6ef;font-size:11px;font-weight:700;color:#476451}.step.current{background:#d6ede0;color:#14523a}.bar-chart{display:grid;gap:11px}.bar-item>div:first-child{display:flex;justify-content:space-between;font-size:12px;margin-bottom:6px}.widebtn{width:100%}.landing{max-width:1030px;margin:0 auto}.landing-hero{padding:40px 0 15px}.landing-hero h1{font-size:clamp(30px,4vw,52px);line-height:1.22;letter-spacing:-1.5px;margin:15px 0}.landing-hero p{font-size:15px;line-height:1.85;color:#6f8076;max-width:650px}.facepile{display:flex;margin:10px 0}.facepile span{margin-left:-7px;border:3px solid white;border-radius:50%;background:#dbebd9;color:#2a5640;width:34px;height:34px;display:grid;place-items:center}.facepile span:first-child{margin-left:0}.landing-feature{padding:22px;min-height:160px}.landing-feature .icon{font-size:29px;display:block;margin:6px 0 12px}.landing-feature h3{font-size:16px;margin:0 0 7px}.landing-feature p{font-size:12px;color:var(--muted);line-height:1.7}.footer{color:#8c9b92;font-size:11px;margin-top:30px}.sticky-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.mobiletop{display:none}@media(max-width:930px){.layout{grid-template-columns:188px minmax(0,1fr)}.aside{padding:23px 11px}.brand{font-size:15px}.brand .logo{width:36px;height:36px}.hero-content{max-width:82%}.hero-art{opacity:.35}.col3{grid-column:span 6}.col4{grid-column:span 6}}@media(max-width:650px){.layout{display:block;padding-bottom:70px}.aside{display:none}.main{padding:17px 15px 60px}.mobiletop{display:flex;background:#143e31;color:white;padding:13px 18px;justify-content:space-between;align-items:center}.mobiletop strong{font-size:17px}.mobiletop select{background:#255b46;color:white;border:1px solid #467a62;padding:7px;border-radius:8px}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;background:white;box-shadow:0 -10px 30px #0d352014;z-index:20;border-top:1px solid #e9efe8;justify-content:space-around;padding-bottom:env(safe-area-inset-bottom)}.mobile-nav button{border:0;background:white;padding:10px 3px;color:#6e8074;font-size:10px;font-weight:700;display:grid;gap:4px;place-items:center;flex:1}.mobile-nav button.active{color:#14523a}.mobile-nav span{font-size:21px}.topbar{margin-bottom:12px}.top-actions{display:none}.crumb{font-size:10px}.title{font-size:27px}.hero{min-height:240px;border-radius:18px;margin:16px 0}.hero-content{padding:23px 21px;max-width:95%}.hero h2{font-size:23px}.hero-art{width:210px;height:210px;right:-90px;bottom:-70px}.col3,.col4,.col6,.col8{grid-column:span 12}.card{padding:17px;border-radius:16px}.grid{gap:10px}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.section-title h2{font-size:18px}.dish-img{height:68px;width:68px}.dish{align-items:flex-start}.dishbody strong{font-size:14px}.topbar .lang{display:none}.modal{padding:20px 16px}.landing-hero{padding-top:10px}.landing-hero h1{font-size:33px}.btn{padding:10px 12px;font-size:12px}.mobileintro{font-size:11px}.side-note{display:none}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

@media(max-width:650px){.mobile-nav button{min-width:0;white-space:normal;overflow-wrap:anywhere;font-size:9px}.mobile-nav span{font-size:19px}}

.activity-mode{color:var(--muted);font-size:12px;margin-bottom:14px}

/* Batch 3: reusable portraits and the first-join avatar picker. */
.member-avatar{display:inline-block;position:relative;width:38px;height:38px;min-width:38px;flex-shrink:0;vertical-align:middle;border-radius:50%;overflow:hidden;background:#fbefda;border:1px solid #e6d9c3;line-height:0}
.member-avatar.small{width:24px;height:24px;min-width:24px;margin-right:3px}
.member-avatar>svg{display:block;width:100%;height:100%}.member-avatar>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.avatar-picker{border:1px solid var(--border);border-radius:15px;padding:14px;margin:18px 0 0;min-width:0}.avatar-picker legend{font-weight:750;padding:0 7px;color:var(--green)}
.avatar-intro{display:flex;gap:12px;align-items:center}.avatar-intro .member-avatar{width:58px;height:58px}.avatar-intro .note{margin:0}
.avatar-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin:14px 0}.avatar-option{position:relative;cursor:pointer;min-width:0}
.avatar-option input{position:absolute;top:5px;left:5px;opacity:0;width:1px;height:1px}.avatar-choice{display:grid;gap:4px;justify-items:center;border:2px solid transparent;border-radius:13px;padding:5px 3px;background:#fcf7ed;font-size:11px;color:#806149}
.avatar-choice svg{width:100%;max-width:57px;height:auto}.avatar-option input:checked+.avatar-choice{border-color:var(--green);background:#eaf3e8}.avatar-option input:focus-visible+.avatar-choice{outline:3px solid #84bfa0;outline-offset:2px}
.avatar-upload-choice{display:flex;gap:7px;align-items:center;font-size:12px;margin:9px 0 13px}.member-line{line-height:1.8}.activity-mode{line-height:1.7}
@media(max-width:400px){.avatar-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.avatar-picker{padding:10px}.avatar-intro{align-items:flex-start}}

/* Batch 4 extends the existing menu cards and modal forms. */
.order-modal{width:min(100%,650px)}.order-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}.order-facts>div{min-width:0;background:#f8faf6;padding:11px;border-radius:10px}.order-facts dt{font-size:11px;color:var(--muted);margin-bottom:6px}.order-facts dd{margin:0;overflow-wrap:anywhere;white-space:pre-wrap}
.order-steps{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;font-size:13px}.order-avoid{color:#a35c37!important}.order-dish-fields{min-width:0;border:1px solid var(--border);border-radius:13px;padding:15px;margin:16px 0}.order-dish-fields legend{font-size:13px;font-weight:750;padding:0 6px}.order-extra{margin-top:12px}.order-extra summary{cursor:pointer;color:var(--green);font-weight:700;margin-bottom:12px}.order-extra>.field{margin:12px 0}.pending-content{background:#fff7e9;border:1px solid #efdfc0;border-radius:13px;padding:16px;margin-top:18px}
[data-order-dish][hidden],[data-order-direct][hidden]{display:none!important}.dishbody{overflow-wrap:anywhere}.dish-actions{row-gap:7px}.order-modal .dish-actions{margin-bottom:14px}
@media(max-width:650px){.order-facts{grid-template-columns:1fr}.order-dish-fields{padding:11px}.dish .dish-actions .btn{white-space:normal;text-align:center}}

[data-order-ability][hidden],[data-order-ability-help][hidden]{display:none!important}.order-entry{white-space:normal;text-align:center}
@media(max-width:650px){.order-menu-head{flex-direction:column;align-items:stretch}}

/* Batch 5 material rows and read-only AI suggestion area. */
.material-list{display:grid;gap:10px}.material-card{border:1px solid var(--border);border-radius:12px;padding:13px;background:#fbfcf8}.material-card p{margin:7px 0}.material-status{font-weight:700;color:var(--green);font-size:12px}.allocation-trace{font-size:12px;color:var(--muted)}.allocation-trace summary{cursor:pointer}.material-forecast{border-top:1px solid var(--border);padding-top:17px;margin-top:20px}.material-forecast>strong{font-size:23px}.ingredient-editor{margin:13px 0}.ingredient-row{border:1px solid var(--border);border-radius:12px;padding:12px;margin-bottom:12px;background:#fafbf7}.material-row-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px;color:var(--muted);font-size:11px}.material-input-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.material-input-grid .field>span{font-size:12px;font-weight:650;color:#53685e}.ai-panel{background:#f5f7f1;border:1px solid var(--border);border-radius:13px;padding:15px;margin-top:18px}.ai-suggestions{display:grid;gap:12px;margin:15px 0}.ai-suggestions>div{border-top:1px solid var(--border);padding-top:10px;font-size:12px}.ai-suggestions h4{margin:0}.ai-suggestions .order-steps{margin:10px 0}[data-order-location][hidden]{display:none!important}
@media(max-width:450px){.material-input-grid{grid-template-columns:1fr}.ingredient-row{padding:10px}.material-row-head{align-items:flex-start}}

[data-ai-kind][hidden]{display:none!important}

/* Public homepage only: event screens retain their existing styles and navigation. */
.discovery-home{background:#faf9f5;color:#263f32;min-height:100vh;padding-bottom:96px;font-family:inherit}.discovery-home *{box-sizing:border-box}.discovery-home svg{width:20px;height:20px;flex-shrink:0}.discovery-home .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px}.discovery-home .btn:focus-visible,.discovery-home a:focus-visible,.discovery-home input:focus-visible,.discovery-home select:focus-visible,.home-bottom-nav button:focus-visible{outline:3px solid #cf8e47;outline-offset:4px}.home-header{max-width:1140px;margin:auto;padding:26px 28px;display:flex;align-items:center;gap:28px}.home-brand{display:flex;gap:10px;align-items:center;text-decoration:none;color:inherit;font-size:20px;font-weight:800}.home-brand small{display:block;font-size:9px;letter-spacing:2px;color:#738371;margin-top:3px}.home-brand-mark{display:grid;place-items:center;background:#28513d;color:#fff;border-radius:14px;width:44px;height:44px}.home-brand-mark svg{width:25px;height:25px}.home-region{font-size:14px;margin-left:auto;font-weight:700}.home-region small{display:block;font-size:10px;font-weight:400;color:#718071;margin-top:4px}.home-main{max-width:1140px;padding:0 28px;margin:auto}.home-hero{background:#edf1e6;border-radius:26px;padding:48px;display:grid;grid-template-columns:1.25fr 1fr;overflow:hidden;align-items:center;gap:24px}.home-eyebrow{font-size:11px;font-weight:700;letter-spacing:1.7px;color:#6a7c58}.home-hero h1{font-size:clamp(28px,3.4vw,43px);line-height:1.6;letter-spacing:.02em;margin:16px 0}.home-hero p{color:#63715f;font-size:14px;line-height:2}.home-main-actions{display:flex;flex-wrap:wrap;gap:12px;margin:24px 0 18px}.home-hero-note{font-size:11px;color:#73816b}.home-art{position:relative;aspect-ratio:1.2;isolation:isolate;background:#e3e9d6;border-radius:50%;width:100%;max-width:380px;margin:auto;transform:rotate(-5deg)}.home-art-plate{position:absolute;display:block;inset:15% 13%;border:12px solid #fefdf6;border-radius:50%;background:#e9dac0;box-shadow:0 12px 10px #44502c16,inset 0 0 0 5px #d9cbb4}.home-art-plate i{position:absolute;background:#d78751;border-radius:46% 40% 50% 30%;inset:22% 20% 28% 26%;transform:rotate(24deg);box-shadow:inset 8px -10px #b96d3b}.home-art-plate b{position:absolute;width:35%;height:30%;background:#74925a;border-radius:50% 12% 50% 18%;left:6%;top:12%;transform:rotate(-20deg);box-shadow:13px 13px #96a86c}.home-art-plate em{position:absolute;width:27%;height:25%;background:#f5ebd5;border-radius:50%;bottom:12%;left:13%;box-shadow:4px 4px #c8b88f}.home-art-chopsticks{position:absolute;width:68%;height:5px;background:#9f7050;top:35%;left:43%;transform:rotate(-54deg);box-shadow:0 9px #b58967;border-radius:4px}.home-art-bowl{position:absolute;bottom:0;right:0;width:30%;height:31%;background:#efe5c6;border:8px solid #fcfbf3;border-radius:50%;box-shadow:0 5px 9px #44502c20,inset 0 0 0 8px #a0a46b}.home-art-leaf{position:absolute;left:0;bottom:5%;width:22%;height:30%;background:#91a37a;border-radius:90% 0 90% 10%;transform:rotate(20deg)}.home-art-dot{position:absolute;width:13%;height:14%;top:1%;right:4%;background:#dda77c;border-radius:50%}.home-search{margin:26px 0 42px;background:#fff;border:1px solid #e4e8dc;border-radius:20px;padding:25px;scroll-margin-top:20px;box-shadow:0 6px 24px #30442305}.home-search h2{font-size:17px;margin:0 0 18px}.home-search-fields{display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr auto;align-items:end;gap:14px}.home-search label{display:grid;gap:8px;font-size:12px;font-weight:700;min-width:0}.home-search .input{width:100%;min-width:0;background:#fafbf7;font-size:13px;height:44px}.home-search .btn{height:44px}.home-data-note{font-size:11px;line-height:1.8;color:#7b7664;margin:14px 0 0}.home-section-heading{display:flex;align-items:end;justify-content:space-between;gap:14px}.home-section-heading h2{font-size:24px;margin:8px 0 0}.home-section-note{font-size:11px;color:#7e8274}.home-result-count{font-size:11px;color:#75806e;margin:16px 0}.home-event-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.home-event{background:white;border:1px solid #e5e8df;border-radius:19px;overflow:hidden}.home-event-visual{height:180px;position:relative;overflow:hidden;background:#e8ecde}.home-event-visual .home-art{width:210px;margin-top:-10px}.home-event:nth-child(2) .home-event-visual{background:#f2e6d7}.home-event:nth-child(3) .home-event-visual{background:#ede6dc}.home-art-pasta{background:#edddc4}.home-art-pasta .home-art-plate i{background:#e3b75e;box-shadow:inset 5px -9px #ca993e;border-radius:50%}.home-art-dumpling{background:#e1d8c8}.home-art-dumpling .home-art-plate i{background:#e8c898;box-shadow:inset 5px -9px #c39355;border-radius:50% 50% 25% 25%;inset:30% 13% 25%}.home-example-tag,.home-seat-tag{position:absolute;z-index:2;font-size:10px;padding:6px 10px;border-radius:20px;top:12px}.home-example-tag{left:12px;background:#fffdf2e8;color:#796a50}.home-seat-tag{right:12px;background:#28513d;color:white}.home-event-body{padding:20px}.home-event-date{font-size:11px;color:#718064;margin:0 0 10px}.home-event h3{font-size:17px;line-height:1.7;margin:0 0 10px}.home-event-place{font-size:12px;color:#5d725c}.home-event-description{font-size:12px;line-height:1.9;color:#7b8173;min-height:46px}.home-language-tags{display:flex;gap:6px;flex-wrap:wrap;margin:14px 0}.home-language-tags span{background:#f0f3ea;border-radius:6px;font-size:10px;padding:5px 8px;color:#66755b}.home-host{border-top:1px solid #edf0e7;padding-top:14px;display:flex;align-items:center;gap:8px;font-size:11px;flex-wrap:wrap}.home-host-note{font-size:9px;color:#898c7e;margin-left:auto}.home-reassurance{display:flex;align-items:center;gap:22px;border-radius:20px;padding:28px;background:#f2eddf;margin:38px 0 24px}.home-reassurance-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:#e6dec6;flex-shrink:0}.home-reassurance h2{font-size:19px;margin:0 0 10px}.home-reassurance p{font-size:12px;line-height:1.9;color:#777660;margin:5px 0}.home-reassurance>.btn{flex-shrink:0}.home-footer{text-align:center;font-size:10px;line-height:2;color:#8b8e80;padding:12px 0 24px}.home-bottom-nav{position:fixed;z-index:20;bottom:0;left:0;right:0;display:flex;justify-content:center;gap:30px;border-top:1px solid #e6eadf;background:#fffffff5;padding:10px 18px calc(10px + env(safe-area-inset-bottom));backdrop-filter:blur(12px)}.home-bottom-nav button{font:inherit;background:transparent;border:0;color:#7f8976;display:flex;flex-direction:column;gap:4px;align-items:center;justify-content:center;min-width:90px;font-size:10px;cursor:pointer;position:relative}.home-bottom-nav button.active{color:#28513d;font-weight:800}.home-bottom-nav .home-nav-create svg{background:#28513d;color:white;padding:5px;width:30px;height:30px;border-radius:50%}.home-bottom-nav small{font-size:8px}.home-empty{border:1px dashed #c5cebb;border-radius:16px;text-align:center;padding:28px;color:#657259}#homeResults{scroll-margin-top:20px}.discovery-home~.modal-backdrop{z-index:30}
@media(max-width:900px){.home-hero{padding:32px}.home-hero h1{font-size:30px}.home-search-fields{grid-template-columns:1fr 1fr}.home-search-fields>.btn{grid-column:1/-1}.home-event-grid{gap:12px}.home-event-body{padding:15px}.home-reassurance{flex-wrap:wrap}.home-reassurance>div{flex:1;min-width:200px}}
@media(max-width:650px){.home-header{padding:18px 18px;gap:10px;flex-wrap:wrap}.home-brand{font-size:16px}.home-brand-mark{width:36px;height:36px}.home-header>.btn{font-size:10px;padding:7px 10px}.home-region{font-size:11px}.home-region small{font-size:8px;max-width:100px}.home-main{padding:0 16px}.home-hero{grid-template-columns:1fr;padding:27px 23px;gap:8px}.home-hero h1{font-size:28px;margin:10px 0}.home-hero p{font-size:12px}.home-hero>.home-art{max-width:220px;aspect-ratio:1.6}.home-main-actions{gap:8px;margin-top:18px}.home-main-actions .btn{font-size:11px;padding:11px 12px}.home-search{padding:18px;margin:18px 0 28px}.home-search-fields{gap:12px}.home-search .input{font-size:12px}.home-section-heading{align-items:start;flex-direction:column;gap:4px}.home-section-heading h2{font-size:22px}.home-event-grid{grid-template-columns:1fr}.home-event-visual{height:175px}.home-event-visual .home-art{width:240px;margin-top:-15px}.home-event-description{min-height:0}.home-reassurance{padding:22px 18px;gap:12px;margin-top:26px}.home-reassurance h2{font-size:17px}.home-bottom-nav{gap:0;padding-left:8px;padding-right:8px;justify-content:space-around}.home-bottom-nav button{min-width:0;flex:1;font-size:9px}.home-footer{padding-bottom:20px}.discovery-home{padding-bottom:110px}}
@media(prefers-reduced-motion:reduce){.discovery-home{scroll-behavior:auto}}

/* Reference-led home presentation; the independent search screen is unchanged. */
.discovery-home.is-home{background:#f5f8f4;color:#233c36}.is-home .home-header{padding-top:30px;padding-bottom:30px}.is-home .home-brand{font-size:23px;letter-spacing:.02em}.is-home .home-brand-mark{background:#2c7a68;border-radius:18px}.is-home .home-brand small{letter-spacing:.04em;font-size:10px;font-weight:400}.is-home .home-region{background:white;border:1px solid #dce5dd;border-radius:30px;padding:9px 18px;color:#284039}.is-home .home-header>.btn{border-radius:30px}.is-home .home-hero{background:#e5f1eb;grid-template-columns:1.6fr 1fr;border-radius:30px;padding:36px;min-height:250px}.is-home .home-hero h1{font-size:clamp(28px,3.4vw,39px);line-height:1.55;margin:0 0 10px}.is-home .home-hero-copy>p{font-size:14px;margin:0;color:#788a80}.is-home .home-hero .home-eyebrow,.is-home .home-hero-note{display:none}.is-home .home-art{max-width:240px;background:#d1e6db;transform:none;aspect-ratio:1.12}.is-home .home-art-plate{border:16px solid white;background:#f3e5c9;box-shadow:none;inset:12%}.is-home .home-art-plate i{background:#ee8954;box-shadow:none;inset:30%;border-radius:50%;transform:none}.is-home .home-art-plate b{width:24%;height:24%;left:9%;top:20%;border-radius:50%;background:#79a778;transform:none;box-shadow:none}.is-home .home-art-plate em{width:23%;height:23%;left:auto;right:5%;bottom:21%;background:#edc45f;border-radius:50%;box-shadow:none}.is-home .home-art-chopsticks{display:none}.is-home .home-art-bowl{width:19%;height:15%;border:0;background:#a8ccd1;bottom:24%;right:32%;box-shadow:none}.is-home .home-art-leaf{width:15%;height:16%;border-radius:50%;bottom:5%;left:5%;background:#e6a49d;transform:none}.is-home .home-art-dot{background:#f0bf96;left:-3%;top:12%;width:15%;height:16%}.is-home .home-main-actions{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:22px 0}.is-home .home-main-actions .btn{min-height:65px;font-size:20px;border-radius:20px}.is-home .home-main-actions svg{display:none}.is-home .home-main-actions .primary{background:#2c7a68}.is-home .home-main-actions .line{border-color:#a0c9b7;color:#2c7a68;background:white}.is-home .home-search-shortcut{width:100%;display:flex;align-items:center;gap:16px;background:white;border:1px solid #dce5dd;border-radius:20px;padding:20px 24px;text-align:left;font:inherit;color:#788b81;cursor:pointer}.is-home .home-search-shortcut svg{width:26px;height:26px}.is-home .home-filter-shortcuts{display:flex;gap:12px;margin:17px 0 32px}.is-home .home-filter-shortcuts button{border:0;border-radius:25px;background:#edf2ed;color:#3e574d;padding:12px 20px;font:inherit;font-size:12px;cursor:pointer}.is-home .home-section-heading .home-eyebrow{display:none}.is-home .home-section-heading h2{font-size:25px;margin:0}.is-home .home-event-grid{grid-template-columns:1fr;gap:23px}.is-home .home-event{display:grid;grid-template-columns:190px 1fr;padding:15px;gap:20px;border-radius:22px;box-shadow:0 7px 0 #e6ebe5}.is-home .home-event-visual{height:180px;border-radius:18px;background:#f4e9d3}.is-home .home-event-visual .home-art{width:170px;margin:14px auto;background:transparent;aspect-ratio:1}.is-home .home-event-visual .home-art-plate{inset:4%;border-width:14px}.is-home .home-event-visual .home-art-leaf,.is-home .home-event-visual .home-art-dot{display:none}.is-home .home-event-body{padding:0}.is-home .home-event-date{display:inline-block;background:#eef5ef;color:#2c7a68;padding:7px 12px;border-radius:25px;margin-bottom:9px;font-weight:700}.is-home .home-event h3{font-size:20px;margin:0 0 5px}.is-home .home-event-place{margin:5px 0}.is-home .home-event-description{min-height:0;margin:5px 0;font-size:12px}.is-home .home-language-tags{margin:9px 0}.is-home .home-language-tags span{background:#fff2e7;color:#b46b36}.is-home .home-host{border:0;padding-top:0;color:#2c7a68}.is-home .home-reassurance{background:#edf3ee;padding:20px;border-radius:20px;margin-top:30px}.is-home .home-reassurance-icon{background:#d4e9df;color:#2c7a68}.is-home .home-reassurance h2{font-size:18px}.is-home .home-reassurance p{font-size:11px}.is-home .home-bottom-nav{gap:0;justify-content:space-evenly;padding-top:15px;background:white}.is-home .home-bottom-nav button{flex:1;max-width:150px}.is-home .home-bottom-nav button.active{color:#2c7a68}.is-home .home-bottom-nav .home-nav-create svg{width:48px;height:48px;padding:11px;background:#2c7a68}.is-home .home-footer{padding-bottom:25px}
@media(max-width:650px){.is-home .home-header{padding:22px 17px;gap:8px}.is-home .home-brand{font-size:17px}.is-home .home-region{padding:7px 10px;font-size:10px}.is-home .home-region small{font-size:7px}.is-home .home-header>.btn{font-size:9px;padding:7px}.is-home .home-hero{padding:23px 19px;grid-template-columns:1.7fr 1fr;gap:8px;min-height:190px;border-radius:24px}.is-home .home-hero h1{font-size:24px;line-height:1.6}.is-home .home-hero-copy>p{font-size:11px;line-height:1.7}.is-home .home-hero>.home-art{width:100%;aspect-ratio:1}.is-home .home-art-plate{border-width:9px}.is-home .home-main-actions{gap:10px;margin:16px 0}.is-home .home-main-actions .btn{min-height:54px;font-size:16px;border-radius:17px}.is-home .home-search-shortcut{padding:16px;font-size:12px;border-radius:17px}.is-home .home-filter-shortcuts{gap:8px;margin:12px 0 28px}.is-home .home-filter-shortcuts button{padding:10px 14px;font-size:11px}.is-home .home-event{grid-template-columns:110px minmax(0,1fr);padding:10px;gap:12px;border-radius:19px}.is-home .home-event-visual{height:100%;min-height:150px;border-radius:14px}.is-home .home-event-visual .home-art{width:100%;margin:20px auto}.is-home .home-event-visual .home-art-plate{border-width:10px}.is-home .home-event h3{font-size:15px;line-height:1.6}.is-home .home-event-date{font-size:9px;padding:6px 8px}.is-home .home-event-place,.is-home .home-event-description{font-size:10px}.is-home .home-host{gap:5px;font-size:10px}.is-home .home-host-note{font-size:8px;margin-left:0}.is-home .home-language-tags span{font-size:9px}.is-home .home-reassurance{gap:10px;padding:17px}.is-home .home-reassurance>div{min-width:0}.is-home .home-reassurance h2{font-size:15px}.is-home .home-reassurance>.btn{display:none}.is-home .home-section-heading h2{font-size:22px}}

/* Shared room uses homepage colors and the existing button/card/form components. */
.room-shell{--ink:#233c36;--muted:#788a80;--paper:#f5f8f4;--border:#dce5dd;--green:#2c7a68;--mint:#e5f1eb;background:var(--paper);min-height:100vh}.room-shell .aside{background:#2c7a68}.room-shell .mobiletop{background:#2c7a68}.room-shell .main{min-width:0}.room-shell .card{border-radius:22px;box-shadow:0 5px 0 #e6ebe560;border-color:var(--border)}.room-shell .btn.primary{background:#2c7a68;border-color:#2c7a68}.room-shell .btn.line{border-color:#bad4c7;color:#2c7a68;background:white}.room-shell .input{background:#f8faf7;border-color:#dce5dd}.room-shell .pill{border-radius:18px}.room-shell .modal{border-radius:24px;border:1px solid #dce5dd}.room-shell .mobile-nav button.active{color:#2c7a68}.shared-room{display:grid;gap:22px;max-width:1120px;margin:auto}.room-heading{display:flex;gap:20px;justify-content:space-between;align-items:center}.room-heading .title{font-size:clamp(24px,3vw,35px);line-height:1.5;overflow-wrap:anywhere}.room-heading .flex{flex-shrink:0}.room-overview{background:#e5f1eb}.shared-room h2{font-size:19px;margin:0 0 10px;line-height:1.5}.room-overview .between{gap:12px;flex-wrap:wrap}.room-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:22px 0}.room-facts dt{font-size:11px;color:#6f8378;margin-bottom:8px}.room-facts dd{margin:0;font-size:17px;font-weight:700;line-height:1.7;overflow-wrap:anywhere}.room-address{font-weight:600;overflow-wrap:anywhere}.room-members{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:18px 0}.room-member{display:inline-flex;gap:7px;align-items:center;background:#ffffffb0;border-radius:22px;padding:6px 10px;font-size:12px;overflow-wrap:anywhere}.room-reminder-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}.room-reminder{display:flex;flex-direction:column;gap:10px;text-align:left;border:1px solid #dce5dd;background:#f5f8f4;border-radius:16px;padding:16px;color:#2c7a68;min-width:0}.room-reminder strong{font-size:26px}.room-reminder span{font-size:12px;line-height:1.6;overflow-wrap:anywhere}.room-reminders .card-head{align-items:start;gap:12px;flex-wrap:wrap}.room-reminders .pill{font-size:10px;white-space:normal}.room-material{border-bottom:1px solid #e1e9e1;padding:14px 0}.room-material summary{cursor:pointer;line-height:1.8;overflow-wrap:anywhere}.room-material summary>span{float:right;font-size:12px;color:#2c7a68}.room-material .mini-card{margin-top:10px}.room-task-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.room-task h3{font-size:16px;margin:0;overflow-wrap:anywhere}.room-task .between{flex-wrap:wrap;gap:8px}.room-task .order-steps{font-size:12px;max-height:240px;overflow:auto;margin:14px 0;white-space:pre-wrap;overflow-wrap:anywhere}.room-shell .dish{border-bottom-color:#e1e9e1}.room-shell .dishbody{min-width:0}.room-shell .dishbody strong,.room-shell .middle{overflow-wrap:anywhere}.room-shell .dish .dish-actions{flex-wrap:wrap}.room-shell .dish .dish-actions .btn{white-space:normal}.room-shopping>.between{padding:8px 0 15px;gap:15px;flex-wrap:wrap}.room-shopping .title{font-size:21px}.room-shopping .crumb{display:none}.room-shopping .list-row{flex-wrap:wrap;gap:10px}.room-shopping .list-row .middle{min-width:120px}.room-shopping .middle .btn{display:block;margin-top:8px}.room-shell .activity-mode{font-size:11px}.room-shell .modal .form-grid{min-width:0}.room-shell .modal .input{max-width:100%}
@media(max-width:950px){.room-heading{align-items:start;flex-direction:column}.room-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.room-reminder-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.room-task-grid{grid-template-columns:1fr}}
@media(max-width:650px){.shared-room{gap:16px}.room-shell .main{padding:18px 15px 80px}.room-shell .card{padding:18px;border-radius:20px}.room-heading{gap:12px}.room-heading .title{font-size:25px;margin-bottom:6px}.room-heading>.flex{flex-wrap:wrap}.room-heading .btn{font-size:11px}.room-facts{gap:16px 12px;margin:18px 0}.room-facts dd{font-size:14px}.shared-room h2{font-size:18px}.room-reminder-grid{gap:9px}.room-reminder{padding:12px}.room-reminder span{font-size:11px}.room-member{font-size:11px}.room-menu .card-head{align-items:start;flex-wrap:wrap;gap:8px}.room-menu .dish{display:block}.room-menu .dish-img{display:none}.room-menu .dishbody strong{line-height:1.9}.room-material summary>span{float:none;display:block;margin-left:15px}.room-shell .mobile-nav{padding-top:4px}.room-shell .mobile-nav button{font-size:9px;padding:9px 2px}.room-shopping .list-row .flex{width:100%}.room-shell .mobiletop{gap:10px}.room-shell .mobiletop strong{font-size:15px}.room-shell .mobiletop select{max-width:110px}.room-shell .card-head{min-width:0}.room-shell .pill{max-width:100%;overflow-wrap:anywhere}}

/* D1: keep long original ingredient names and dictionary notes inside room cards. */
.shared-room .material-card,.shared-room .room-material,.shared-room .list-row,.shared-room li{min-width:0;overflow-wrap:anywhere}
@media(max-width:400px){.shared-room .list-row .middle{min-width:0;flex-basis:100%}.shared-room .card>ul{padding-inline-start:20px}}

/* Audit stage 1: preserve the homepage palette and layout, contain dynamic text. */
.discovery-home .home-event-body,.discovery-home .home-host{min-width:0;overflow-wrap:anywhere}
.discovery-home .home-event-cost{font-size:13px;line-height:1.7;color:var(--ink)}
.discovery-home .home-event-cost small{display:block;color:var(--muted)}
.discovery-home .home-host{flex-wrap:wrap}.discovery-home .home-bottom-nav button:disabled{opacity:.45;cursor:not-allowed}
.discovery-home .home-header>.btn{max-width:100%;overflow-wrap:anywhere;white-space:normal}
@media(max-width:780px){.discovery-home .home-header{flex-wrap:wrap}.discovery-home .home-event h3{overflow-wrap:anywhere}.discovery-home .home-host>.btn{max-width:100%}}

/* E2 stays inside the existing room card system. */
.ai-collaboration .btn{max-width:100%;white-space:normal}.ai-collaboration .mini-card{margin-block:12px;overflow-wrap:anywhere}.ai-collaboration p,.ai-collaboration li{overflow-wrap:anywhere}
