:root{--green:#183d2e;--green2:#2f6a50;--yellow:#e6af2e;--ink:#18251f;--muted:#718078;--line:#dce5df;--bg:#f5f8f5}*{box-sizing:border-box}html{font-family:"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;color:var(--ink);background:var(--bg)}body{margin:0;font-size:16px}button,input,select{font:inherit}button{cursor:pointer}.topbar{position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:space-between;padding:12px max(16px,calc((100vw - 1120px)/2));border-bottom:1px solid var(--line);background:#fffffff2;backdrop-filter:blur(14px)}.brand,.header-actions{display:flex;align-items:center;gap:10px}.brand span:last-child{display:flex;flex-direction:column}.brand strong{font-size:18px}.brand small{font-size:12px;color:var(--muted)}.brand-mark{display:grid;width:52px;height:52px;place-items:center;border-radius:18px;background:var(--green);color:#fff;font-size:25px}.brand-mark.small{width:40px;height:40px;border-radius:14px;font-size:20px}.header-actions{gap:8px}.logout{font-size:13px;color:var(--muted);text-decoration:none}.shell{width:min(1120px,calc(100% - 32px));margin:0 auto;padding:28px 0 90px}.hero{position:relative;min-height:220px;overflow:hidden;border-radius:28px;background:var(--green);box-shadow:0 18px 50px #183d2e29}.hero img,.hero-shade{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.hero-shade{background:linear-gradient(90deg,#12382eed 0%,#12382ebd 43%,transparent 78%)}.hero-copy{position:relative;display:flex;min-height:220px;max-width:500px;flex-direction:column;justify-content:center;padding:34px;color:#fff}.hero-copy>span{font-size:14px;font-weight:700;color:#d8eadf}.hero h1{margin:8px 0 16px;font-size:32px;line-height:1.3}.hero p{margin:0}.hero p b{font-size:22px}.tabs{display:grid;width:min(620px,100%);grid-template-columns:repeat(3,1fr);gap:4px;margin:22px 0 16px;padding:4px;border-radius:16px;background:#e7eee9}.tab{min-height:44px;border:0;border-radius:12px;background:transparent;color:#65766d;font-weight:700}.tab.active{background:#fff;color:var(--green);box-shadow:0 2px 8px #183d2e12}.tab i,.mobile-nav i{display:inline-grid;min-width:20px;height:20px;place-items:center;border-radius:99px;background:#fff;padding:0 5px;font-size:11px;font-style:normal}.panel{display:none;position:relative;border:1px solid var(--line);border-radius:24px;background:#fff;box-shadow:0 10px 34px #22443412}.panel.active{display:block}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px;border-bottom:1px solid #e3e9e5}.panel h2{margin:0;font-size:21px}.panel-head p{margin:4px 0 0;color:var(--muted);font-size:14px}.panel-body{padding:20px}.primary,.accent,.ghost{min-height:42px;border-radius:12px;padding:0 16px;font-weight:700}.primary{border:0;background:var(--green);color:#fff}.primary:hover{background:#25543f}.accent{border:0;background:var(--yellow);color:#28210f}.ghost{border:1px solid #ccd9d1;background:#fff;color:#355447}.full{width:100%;margin-top:18px}.search{position:relative;display:block}.search span{position:absolute;left:14px;top:8px;color:#718078;font-size:25px}.search input{width:100%;height:48px;border:1px solid #d4dfd7;border-radius:13px;background:#f8faf8;padding:0 14px 0 44px;font-size:16px}.filter-head{display:flex;justify-content:space-between;margin:18px 0 9px;font-size:14px}.filter-head button,.danger-link{border:0;background:none;color:#367157;font-weight:700}.danger-link{color:#a0453e}.chips{display:flex;gap:8px;overflow:auto;padding-bottom:4px;scrollbar-width:none}.chips::-webkit-scrollbar{display:none}.chip{flex:none;border:1px solid #d4dfd7;border-radius:99px;background:#fff;padding:8px 12px;color:#4c5f55;font-size:14px;font-weight:700}.chip.active{border-color:var(--green);background:var(--green);color:#fff}.hint{margin:7px 0 0;color:var(--muted);font-size:12px}.recipe-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:17px}.recipe-card{display:flex;min-height:94px;align-items:center;gap:12px;border:1px solid var(--line);border-radius:17px;background:#fff;padding:14px;text-align:left;transition:.15s}.recipe-card:hover{transform:translateY(-1px);border-color:#98b1a3}.recipe-card.selected{border-color:var(--yellow);background:#fffbef;box-shadow:inset 0 0 0 1px var(--yellow)}.emoji{font-size:28px}.recipe-info{min-width:0;flex:1}.recipe-info>span{display:flex;align-items:center;gap:7px}.recipe-info b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recipe-info i{border-radius:99px;background:#eaf3ee;padding:3px 7px;color:#2f6a50;font-size:11px;font-style:normal}.recipe-info small{display:block;overflow:hidden;margin-top:6px;color:var(--muted);text-overflow:ellipsis;white-space:nowrap}.select-dot{display:grid;width:25px;height:25px;place-items:center;border:2px solid #c8d6cd;border-radius:50%;color:#fff}.selected .select-dot{border-color:var(--yellow);background:var(--yellow)}.selection-bar{position:sticky;bottom:14px;z-index:20;display:flex;width:min(560px,calc(100% - 24px));align-items:center;justify-content:space-between;margin:14px auto;padding:11px;border:1px solid var(--line);border-radius:17px;background:#fffffff2;box-shadow:0 12px 40px #183d2e2b}.selection-bar[hidden]{display:none}.current-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.current-card{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:16px;background:#fafcfa;padding:14px}.current-card .number{display:grid;width:38px;height:38px;place-items:center;border-radius:50%;background:#eaf1ed;color:#315c48;font-weight:800}.current-card>span:nth-child(3){min-width:0;flex:1}.current-card small{display:block;margin-top:4px;color:var(--muted)}.current-card button{width:36px;height:36px;border:0;border-radius:50%;background:#edf2ee;font-size:20px}.shopping-head{position:relative;padding-bottom:34px}.shopping-head>b{color:var(--green2)}.progress{position:absolute;right:20px;bottom:18px;left:20px;height:7px;overflow:hidden;border-radius:99px;background:#e8eee9}.progress span{display:block;height:100%;border-radius:99px;background:var(--yellow);transition:.2s}.shop-group{margin-bottom:21px}.shop-group h3{margin:0 0 8px;color:#52645a;font-size:14px}.shop-group h3:before{display:inline-block;width:8px;height:8px;margin-right:8px;border-radius:50%;background:var(--yellow);content:""}.shop-group>div{overflow:hidden;border:1px solid var(--line);border-radius:16px}.shop-item{display:flex;width:100%;min-height:62px;align-items:center;gap:12px;border:0;border-bottom:1px solid #e7ece8;background:#fff;padding:11px 14px;text-align:left}.shop-item:last-child{border-bottom:0}.shop-item:hover{background:#f7faf8}.shop-item .check{display:grid;width:25px;height:25px;place-items:center;border:2px solid #aec2b6;border-radius:50%;color:#fff}.shop-item b{flex:1}.shop-item em{border-radius:99px;background:#eef3ef;padding:6px 11px;color:#315c48;font-size:14px;font-style:normal;font-weight:700}.shop-item.checked{background:#f4f6f4;color:#9aa49f}.shop-item.checked .check{border-color:var(--green2);background:var(--green2)}.shop-item.checked b,.shop-item.checked em{text-decoration:line-through;text-decoration-thickness:2px}.empty{display:flex;min-height:190px;grid-column:1/-1;flex-direction:column;align-items:center;justify-content:center;border:1px dashed #cad9cf;border-radius:16px;background:#fafcfa;color:var(--muted);text-align:center}.empty b{margin-bottom:5px;color:var(--ink)}.mobile-nav{display:none}dialog{width:min(670px,calc(100% - 24px));max-height:90vh;overflow:auto;border:0;border-radius:24px;padding:0;box-shadow:0 28px 80px #10271d4a}dialog::backdrop{background:#10271d8c;backdrop-filter:blur(3px)}.modal-form{display:block;padding:22px}.modal-form header{display:flex;justify-content:space-between;margin-bottom:18px}.modal-form h2{margin:0}.modal-form header p{margin:4px 0 0;color:var(--muted);font-size:14px}.close{width:38px;height:38px;border:0;border-radius:50%;background:#edf2ee;font-size:24px}.modal-form>label{display:block;margin:13px 0;color:#405148;font-size:14px;font-weight:700}.modal-form input,.modal-form select{width:100%;height:43px;border:1px solid #d4dfd7;border-radius:10px;background:#fff;padding:0 10px}.ingredient-title{display:flex;align-items:center;justify-content:space-between;margin:18px 0 8px}.ingredient-row{display:grid;grid-template-columns:1fr 120px 80px 80px 34px;gap:7px;margin-bottom:8px;padding:8px;border-radius:12px;background:#f2f6f3}.ingredient-row button{border:0;background:none;color:#a0453e;font-size:20px}.modal-form footer{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.master-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:14px}.master-grid article{border:1px solid var(--line);border-radius:12px;background:#fafcfa;padding:11px}.master-grid small{display:block;margin-top:4px;color:var(--muted)}.inline-form{display:grid;grid-template-columns:1fr 120px 80px auto;gap:8px;margin-top:14px;padding:12px;border-radius:15px;background:#edf3ef}#toast{position:fixed;top:75px;left:50%;z-index:100;transform:translate(-50%,-20px);border-radius:12px;background:var(--green);padding:12px 18px;color:#fff;font-weight:700;opacity:0;pointer-events:none;transition:.2s}#toast.show{transform:translate(-50%,0);opacity:1}#toast.error-toast{background:#a0453e}.login-page{display:grid;min-height:100vh;place-items:center;padding:20px;background:linear-gradient(145deg,#e6f0e9,#f9f8f2)}.login-card{width:min(400px,100%);border:1px solid var(--line);border-radius:26px;background:#fff;padding:32px;box-shadow:0 20px 60px #183d2e18;text-align:center}.login-card .brand-mark{margin:0 auto}.login-card h1{margin:16px 0 4px}.login-card p{color:var(--muted)}.login-card label{display:block;margin-top:22px;text-align:left;font-weight:700}.login-card input{width:100%;height:48px;margin-top:7px;border:1px solid #d4dfd7;border-radius:11px;padding:0 12px}.login-card .error{color:#a0453e;font-size:14px;text-align:left}
@media(max-width:760px){.topbar{padding:10px 14px}.brand small,.logout{display:none}.header-actions .ghost{min-height:38px;padding:0 12px;font-size:13px}.shell{width:calc(100% - 24px);padding-top:14px}.hero{min-height:180px;border-radius:22px}.hero-copy{min-height:180px;padding:22px}.hero h1{font-size:24px}.hero-shade{background:linear-gradient(90deg,#12382ef2,#12382eb3 60%,transparent)}.tabs{display:none}.panel{margin-top:14px;border-radius:19px}.panel-head{align-items:flex-start;padding:16px}.panel-head .primary{font-size:13px}.panel-body{padding:14px}.recipe-grid,.current-grid{grid-template-columns:1fr}.recipe-card{min-height:86px}.selection-bar{bottom:72px}.mobile-nav{position:fixed;right:0;bottom:0;left:0;z-index:40;display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line);background:#fffffff4;padding:7px 8px max(7px,env(safe-area-inset-bottom));backdrop-filter:blur(14px)}.mobile-nav button{min-height:45px;border:0;border-radius:11px;background:transparent;color:#76867d;font-size:13px;font-weight:700}.mobile-nav button.active{background:#eaf2ed;color:var(--green)}.ingredient-row{grid-template-columns:1fr 64px 62px 28px}.ingredient-row select{display:none}.master-grid{grid-template-columns:1fr 1fr}.inline-form{grid-template-columns:1fr 86px}.inline-form input[name=unit],.inline-form button{width:100%}.modal-form{padding:17px}.shop-item{min-height:66px}}
