:root{--bg:#fff;--fg:#0a0a0a;--muted:#8a8a8a;--line:#ececec;--soft:#f5f5f5;--r:14px;
  --font:"Pretendard Variable",Pretendard,-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans KR",sans-serif}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;background:var(--bg);color:var(--fg);font-family:var(--font);font-size:15px;line-height:1.45}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer}
[hidden]{display:none!important}
.muted{color:var(--muted)}.small{font-size:13px}

/* header */
.top{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.94);backdrop-filter:saturate(1.4) blur(12px);-webkit-backdrop-filter:saturate(1.4) blur(12px);border-bottom:1px solid var(--line)}
.bar{display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:1280px;margin:0 auto;padding:12px 16px 10px;padding-top:max(12px,env(safe-area-inset-top))}
.logo img{height:30px;width:auto;display:block}
.tabs{display:flex;gap:4px;background:var(--soft);padding:4px;border-radius:999px}
.tab{border:0;background:none;padding:7px 14px;border-radius:999px;font-weight:600;font-size:14px;color:#666;display:flex;align-items:center;gap:6px}
.tab.active{background:var(--fg);color:#fff}
.badge{min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#fff;color:var(--fg);font-size:12px;font-weight:700;display:inline-grid;place-items:center}
.tab:not(.active) .badge{background:var(--fg);color:#fff}
.tools{max-width:1280px;margin:0 auto;padding:0 16px 10px}
.search{display:flex;align-items:center;gap:8px;background:var(--soft);border-radius:12px;padding:0 12px;height:42px}
.search svg{width:18px;height:18px;fill:none;stroke:#999;stroke-width:2;stroke-linecap:round;flex:none}
.search input{flex:1;border:0;background:none;outline:none;height:100%;font-size:16px;min-width:0}
.chips{display:flex;gap:6px;overflow-x:auto;padding-top:10px;scrollbar-width:none;margin:0 -16px;padding-left:16px;padding-right:16px}
.chips::-webkit-scrollbar{display:none}
.chip{flex:none;border:1px solid var(--line);background:#fff;border-radius:999px;padding:6px 13px;font-size:13px;font-weight:500;white-space:nowrap}
.chip.on{background:var(--fg);border-color:var(--fg);color:#fff}
.picks-head,.liked-head{max-width:1280px;margin:0 auto;padding:0 16px 10px;display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:14px}
.picks-head strong{font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.link{color:var(--fg);font-weight:600;white-space:nowrap;text-decoration:none}
.check-all{display:flex;align-items:center;gap:8px;font-weight:600}
.check-all input{width:20px;height:20px;accent-color:#000}

/* grid */
main{max-width:1280px;margin:0 auto;padding:10px 12px 40px}
body.has-bar main{padding-bottom:110px}
.status{margin:4px 4px 10px;font-size:13px;color:var(--muted);text-align:left}
.grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,1fr);gap:14px 10px}
@media(min-width:600px){.grid{grid-template-columns:repeat(3,1fr);gap:20px 14px}}
@media(min-width:900px){.grid{grid-template-columns:repeat(4,1fr)}.logo img{height:34px}}
@media(min-width:1200px){.grid{grid-template-columns:repeat(5,1fr)}}
.card{min-width:0;content-visibility:auto;contain-intrinsic-size:auto 260px}
.ph{position:relative;aspect-ratio:1;border-radius:var(--r);overflow:hidden;background:var(--soft)}
.ph img{width:100%;height:100%;object-fit:cover;display:block;transition:opacity .2s}
.meta{display:flex;align-items:center;justify-content:space-between;padding:6px 2px 0 4px}
.model{font-weight:700;font-size:14px;letter-spacing:.02em;font-variant-numeric:tabular-nums}
.heart{border:0;background:none;width:40px;height:40px;margin:-4px -6px -4px 0;display:grid;place-items:center;border-radius:50%}
.heart svg{width:23px;height:23px;fill:none;stroke:var(--fg);stroke-width:1.8;transition:transform .15s}
.heart.on svg{fill:#ff3b4a;stroke:#ff3b4a}
.heart.pop svg{animation:pop .3s ease}
@keyframes pop{40%{transform:scale(1.3)}}
.chk{position:absolute;top:8px;left:8px;width:26px;height:26px;border-radius:50%;border:2px solid #fff;background:rgba(0,0,0,.25);box-shadow:0 1px 4px rgba(0,0,0,.2)}
.card.is-checked .ph{outline:3px solid var(--fg);outline-offset:-3px}
.card.is-checked .chk{background:var(--fg);border-color:#fff}
.card.is-checked .chk::after{content:"";position:absolute;left:7px;top:3px;width:6px;height:11px;border:solid #fff;border-width:0 2.5px 2.5px 0;transform:rotate(45deg)}
.liked-view .card{cursor:pointer}

/* inquiry bar */
.inquiry-bar{position:fixed;left:0;right:0;bottom:0;z-index:30;padding:12px 16px;padding-bottom:max(12px,env(safe-area-inset-bottom));background:linear-gradient(rgba(255,255,255,0),#fff 30%)}
.inquiry-bar .btn{max-width:520px;margin:0 auto}
.btn{border:0;border-radius:14px;height:52px;padding:0 18px;font-weight:700;font-size:16px;display:flex;align-items:center;justify-content:center;gap:8px}
.btn.block{width:100%}
.btn.primary{background:var(--fg);color:#fff}
.btn.primary:disabled{background:#d6d6d6;color:#fff;cursor:default}
.btn.kakao{background:#FEE500;color:#191919;margin-top:10px}
.btn.naver{background:#03C75A;color:#fff;margin-top:10px}
.btn.ghost{background:none;color:var(--muted);margin-top:6px;font-weight:500}
.ico.n{display:inline-grid;place-items:center;width:20px;height:20px;background:#fff;color:#03C75A;border-radius:4px;font-size:13px;font-weight:900}

/* sheet */
.sheet-backdrop{position:fixed;inset:0;z-index:50;background:rgba(0,0,0,0);display:flex;align-items:flex-end;justify-content:center;transition:background .2s}
.sheet-backdrop.open{background:rgba(0,0,0,.45)}
.sheet{width:100%;max-width:480px;background:#fff;border-radius:22px 22px 0 0;padding:10px 20px 20px;padding-bottom:max(20px,env(safe-area-inset-bottom));transform:translateY(100%);transition:transform .22s ease}
.open .sheet{transform:none}
@media(min-width:600px){.sheet-backdrop{align-items:center}.sheet{border-radius:22px}}
.sheet-grip{width:40px;height:4px;border-radius:4px;background:#ddd;margin:0 auto 12px}
.sheet h2{margin:0 0 6px;font-size:20px}
.msg{white-space:pre-wrap;word-break:break-all;background:var(--soft);border-radius:12px;padding:12px;font-family:var(--font);font-size:13px;margin:12px 0 4px;max-height:160px;overflow:auto;user-select:all;-webkit-user-select:all}

.toast{position:fixed;left:50%;bottom:90px;transform:translate(-50%,20px);z-index:60;background:var(--fg);color:#fff;padding:12px 16px;border-radius:12px;font-size:14px;max-width:calc(100% - 32px);width:max-content;opacity:0;pointer-events:none;transition:.2s;text-align:center}
.toast.show{opacity:1;transform:translate(-50%,0)}
