*{box-sizing:border-box}body{margin:0;background:#000;color:#fff;font:20px/1.3 system-ui,sans-serif;-webkit-tap-highlight-color:transparent}
header{display:flex;justify-content:space-between;align-items:center;padding:10px 16px;border-bottom:2px solid #333;max-width:760px;margin:auto}
h1{margin:0;font-size:28px;color:#ffd400}
button{font:inherit;font-weight:700;background:#222;color:#fff;border:2px solid #fff;border-radius:12px;padding:10px 14px;min-height:52px;cursor:pointer}
#tabs{display:flex;gap:6px;padding:10px 12px 0;max-width:760px;margin:auto;position:sticky;top:0;background:#000;z-index:5}
#tabs button{flex:1;font-size:17px;padding:10px 4px}#tabs button.on{background:#ffd400;color:#000;border-color:#ffd400}
main{padding:12px;max-width:760px;margin:auto}
#q{width:100%;font:inherit;padding:12px;border-radius:12px;border:2px solid #fff;background:#111;color:#fff;margin-bottom:10px}
.big{width:100%;background:#ffd400;color:#000;border-color:#ffd400;font-size:22px;min-height:60px;margin-bottom:10px}
.card{background:#151515;border:2px solid #444;border-radius:14px;margin:8px 0;padding:10px}
.card.have{border-color:#ffd400}.card.low{border-color:#ff5050;background:#2a0d0d}
.row{display:flex;align-items:center;gap:10px}
.chk{min-width:64px;height:64px;font-size:34px;padding:0;border-radius:14px;background:#111;color:#555}
.have .chk{background:#ffd400;color:#000;border-color:#ffd400}
.nm{flex:1;min-width:0}.nm b{display:block;font-size:21px}.dim{color:#ffd400;font-size:18px;font-weight:700}
.sub{color:#aaa;font-size:15px}.lowtag{display:inline-block;background:#ff5050;color:#fff;font-size:13px;font-weight:800;border-radius:6px;padding:1px 6px;margin-left:4px}
.ex{display:inline-block;background:#444;color:#ffd400;font-size:12px;font-weight:800;border-radius:6px;padding:1px 6px}
.step{display:flex;align-items:center;gap:6px;margin-top:8px;flex-wrap:wrap}
.step button{min-width:56px;font-size:26px;padding:4px 10px}.qty{min-width:64px;text-align:center;font-size:28px;font-weight:800}
.step .est{font-size:18px}.step .est.on{background:#ffd400;color:#000}
.fitl{margin-top:8px;font-size:16px;color:#ccc}.chip{display:inline-block;background:#222;border:1px solid #666;border-radius:20px;padding:3px 10px;margin:3px 3px 0 0;font-size:15px;color:#fff}
.chip.h{background:#ffd400;color:#000;border-color:#ffd400;font-weight:700}
.ph{width:64px;height:64px;object-fit:cover;border-radius:10px;border:2px solid #444}.ph.none{display:flex;align-items:center;justify-content:center;font-size:34px;background:#111}
.mini{min-height:44px;font-size:16px;padding:6px 10px}.del{border-color:#f66;color:#f88}
#empty{text-align:center;color:#888}
dialog{background:#111;color:#fff;border:3px solid #ffd400;border-radius:16px;width:min(94vw,520px);max-height:85vh;padding:16px}
dialog::backdrop{background:#000c}dialog h2{margin:0 0 10px;color:#ffd400}
dialog label{display:block;margin:8px 0 2px;font-size:17px;color:#ccc}
dialog input{font:inherit;width:100%;padding:10px;border-radius:10px;border:2px solid #fff;background:#000;color:#fff}
.dims{display:flex;gap:6px;align-items:center}.dims input{text-align:center}
.btns{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.btns button{flex:1}.yes{background:#ffd400;color:#000;border-color:#ffd400}
body{padding-bottom:calc(76px + env(safe-area-inset-bottom))}
.house-ad{position:fixed;left:0;right:0;bottom:0;z-index:10;height:calc(60px + env(safe-area-inset-bottom));padding:0 12px env(safe-area-inset-bottom);background:#111;border-top:3px solid #ffd400;display:flex;align-items:center}
.house-ad a{display:flex;align-items:center;gap:10px;width:100%;max-width:640px;margin:0 auto;color:#fff;text-decoration:none;font-size:17px;line-height:1.2;transition:opacity .3s}
.house-ad a.fade{opacity:0}.house-ad .e{font-size:28px}.house-ad .tx{flex:1;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.house-ad b{color:#ffd400}.house-ad .tag{font-size:11px;font-weight:800;color:#000;background:#ffd400;border-radius:5px;padding:1px 5px}
@media (prefers-reduced-motion:reduce){.house-ad a{transition:none}}

#src{width:100%;font-size:1.05rem;padding:.5em;margin:.3em 0;border-radius:10px}
