/* 부품찾기 — 디자인 토큰. 쌤맵(LECTURE/proto/public/style.css)의 문법을 따른다:
   Pretendard, 1200px 폭, 12px 라운드 카드, 진한 단색 브랜드 + 그라데이션 첫 화면, 본문 15px, 배너·팝업 없음.
   부품 사이트에 맞춘 것: 브랜드는 공구 주황, 첫 화면은 정비소 남색, 헤더 아래 부위 분류 줄, "내 차"가 1차 메뉴(쌤맵의 학년·과목 자리). */
:root {
  --brand: #f0590e;
  --brand-strong: #d24804;
  --brand-soft: #fff1e8;
  --navy: #0f1b2d;
  --navy-2: #1c3150;
  --ink: #191f28;
  --ink-2: #333d4b;
  --muted: #6b7684;
  --faint: #8b95a1;
  --line: #e5e8eb;
  --line-2: #f2f4f6;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --ok: #0f9d6b;
  --ok-soft: #e6f6ef;
  --blue: #3554e0;
  --blue-soft: #edf1ff;
  --shadow-sm: 0 1px 2px rgba(25, 31, 40, .06);
  --shadow: 0 2px 6px rgba(25, 31, 40, .05), 0 10px 24px rgba(25, 31, 40, .07);
  --r: 12px;
  --r-lg: 18px;
  --wrap: 1200px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #ff7a3d; --brand-strong: #ff9461; --brand-soft: #3a2216;
    --ink: #eef0f3; --ink-2: #d1d6db; --muted: #9aa4b1; --faint: #7d8794;
    --line: #2b313a; --line-2: #22272f; --bg: #121418; --surface: #1a1d23;
    --ok: #3ccf91; --ok-soft: #173528; --blue: #7d95ff; --blue-soft: #1d2442;
    --shadow-sm: none; --shadow: none; color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.6 "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  letter-spacing: -0.01em; word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
main { min-height: 70vh; outline: none; }

/* ── 헤더 ── */
.header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px; letter-spacing: -0.04em; white-space: nowrap; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.logo small { font-size: 11px; font-weight: 500; color: var(--faint); letter-spacing: 0; }
.car-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-weight: 700; font-size: 14px; white-space: nowrap; max-width: 260px; }
.car-btn span#car-label { overflow: hidden; text-overflow: ellipsis; }
.car-btn:hover { border-color: var(--brand); }
.car-btn.set { background: var(--brand-soft); border-color: transparent; color: var(--brand-strong); }
.car-btn .caret { font-size: 11px; color: var(--faint); }
.search { flex: 1; max-width: 480px; margin-left: auto; position: relative; }
.search input { width: 100%; height: 40px; padding: 0 16px 0 40px; border: 1px solid transparent; border-radius: 999px; background: var(--line-2); }
.search input:focus { outline: none; border-color: var(--brand); background: var(--surface); }
.search::before { content: ""; position: absolute; left: 15px; top: 50%; width: 13px; height: 13px; margin-top: -8px; border: 2px solid var(--faint); border-radius: 50%; }
.search::after { content: ""; position: absolute; left: 27px; top: 25px; width: 6px; height: 2px; background: var(--faint); transform: rotate(45deg); }
.header-tools { display: flex; align-items: center; gap: 8px; }

/* 부위 분류 줄 */
.catbar { border-top: 1px solid var(--line-2); }
.catbar-row { display: flex; gap: 4px; height: 46px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.catbar-row::-webkit-scrollbar { display: none; }
.catbar a { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.catbar a svg { color: var(--faint); }
.catbar a:hover { background: var(--line-2); }
.catbar a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-strong); }
.catbar a[aria-current="page"] svg { color: var(--brand); }

/* ── 버튼·조각 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; white-space: nowrap; }
.btn:hover { background: var(--line-2); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-strong); }
.btn.dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.small { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn:disabled { opacity: .5; cursor: default; }
.section { margin: 44px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head h2 { margin: 0; font-size: 22px; letter-spacing: -0.03em; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.more-link { font-size: 14px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.more-link:hover { color: var(--brand); }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge.dealer { background: var(--brand); color: #fff; }
.badge.online { background: rgba(15, 27, 45, .78); color: #fff; }
.badge.side { background: var(--blue-soft); color: var(--blue); }
.badge.gray { background: var(--line-2); color: var(--muted); font-weight: 600; }
.empty { padding: 56px 24px; text-align: center; color: var(--muted); background: var(--surface); border-radius: var(--r); border: 1px dashed var(--line); }
.hint { color: var(--muted); font-size: 14px; }
.n { color: var(--faint); font-weight: 500; font-variant-numeric: tabular-nums; }
.skeleton { background: linear-gradient(90deg, var(--line-2), var(--line), var(--line-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--r); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── 첫 화면 ── */
.hero { background: radial-gradient(1200px 400px at 85% -10%, rgba(240, 89, 14, .35), transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; }
.hero .wrap { padding-top: 52px; padding-bottom: 52px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; }
.hero h1 { margin: 0; font-size: 38px; line-height: 1.28; letter-spacing: -0.045em; font-weight: 800; }
.hero h1 em { font-style: normal; color: #ffb48a; }
.hero p.lead { margin: 14px 0 24px; font-size: 17px; opacity: .85; }
.hero-search { display: flex; gap: 6px; background: #fff; border-radius: 14px; padding: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); max-width: 600px; }
.hero-search input { flex: 1; border: 0; padding: 0 14px; font-size: 16px; color: #191f28; background: transparent; min-width: 0; }
.hero-search input:focus { outline: none; }
.hero-search .btn { height: 46px; padding: 0 22px; font-size: 15px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hero-chips a { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: 14px; font-weight: 600; }
.hero-chips a:hover { background: rgba(255, 255, 255, .22); }
.hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hero-stat { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r); padding: 18px; }
.hero-stat b { display: block; font-size: 28px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.hero-stat span { font-size: 13px; opacity: .8; }
.hero-stat.wide { grid-column: span 2; display: flex; align-items: center; gap: 12px; font-size: 14px; }
.hero-stat.wide b { font-size: 15px; display: inline; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3ccf91; box-shadow: 0 0 0 4px rgba(60, 207, 145, .2); flex: none; }

/* 내 차로 찾기 띠 */
.carfind { margin-top: -28px; position: relative; z-index: 2; }
.carfind-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 20px 22px; display: grid; grid-template-columns: auto 1fr 1fr 1fr auto; gap: 12px; align-items: center; }
.carfind-box h2 { margin: 0; font-size: 17px; letter-spacing: -0.03em; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.carfind-box h2 small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.carfind-box select { height: 46px; }
.carfind-box .btn { height: 46px; }
.carfind-set { display: flex; align-items: center; gap: 14px; grid-column: 2 / -1; }
.carfind-set b { font-size: 18px; letter-spacing: -0.03em; }

/* 부위 카드 */
.group-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.group-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 12px; transition: border-color .15s, transform .15s, box-shadow .15s; }
.group-card:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); }
.group-top { display: flex; align-items: center; gap: 12px; }
.group-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.group-top h3 { margin: 0; font-size: 17px; letter-spacing: -0.03em; }
.group-top .n { font-size: 13px; }
.group-parts { display: flex; flex-wrap: wrap; gap: 6px; }
.group-parts a { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--line-2); color: var(--ink-2); font-weight: 500; }
.group-parts a:hover { background: var(--brand-soft); color: var(--brand-strong); }

/* 자주 찾는 부품 */
.pop-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pop { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.pop:hover { border-color: var(--brand); }
.pop-head { display: flex; align-items: center; gap: 10px; }
.pop-head .rank { width: 24px; height: 24px; border-radius: 7px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; flex: none; }
.pop-head a { font-weight: 700; font-size: 15px; letter-spacing: -0.02em; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop-sides { display: flex; gap: 6px; }
.pop-sides a { flex: 1; text-align: center; font-size: 13px; padding: 5px 0; border-radius: 8px; border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; }
.pop-sides a:hover { border-color: var(--brand); color: var(--brand-strong); }

/* 차종 */
.maker-tabs { display: flex; gap: 4px; padding: 4px; background: var(--line-2); border-radius: 10px; width: max-content; max-width: 100%; overflow-x: auto; margin-bottom: 14px; }
.maker-tabs button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.maker-tabs button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.model-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.model-chip { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.model-chip:hover { border-color: var(--brand); }
.model-chip b { font-size: 15px; letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.model-chip span { font-size: 12px; color: var(--faint); }

/* 이용 방법·업자 띠 */
.how { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.how-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.how-card.dark { background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #fff; border: 0; }
.how-card h3 { margin: 0 0 14px; font-size: 18px; letter-spacing: -0.03em; }
.how-card ol { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: s; }
.how-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; counter-increment: s; }
.how-card li::before { content: counter(s); width: 22px; height: 22px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); font-weight: 800; font-size: 12px; display: grid; place-items: center; flex: none; margin-top: 1px; }
.how-card.dark li::before { background: rgba(255, 255, 255, .14); color: #fff; }
.how-card.dark p { opacity: .8; font-size: 14px; }

/* ── 목록(분류·검색) ── */
.page { padding-top: 20px; padding-bottom: 40px; }
.crumb { font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.crumb a:hover { color: var(--brand); }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 8px 0 18px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 26px; letter-spacing: -0.04em; display: flex; align-items: center; gap: 10px; }
.page-head h1 .group-icon { width: 40px; height: 40px; }
.page-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.understood { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.understood .chip { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; color: var(--ink-2); }
.understood .chip b { font-weight: 700; }

.listing { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 24px; align-items: start; }
.filters { position: sticky; top: 126px; max-height: calc(100vh - 140px); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 0; }
.fsec { padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.fsec:last-child { border-bottom: 0; }
.fsec h3 { margin: 0 0 8px; font-size: 13px; color: var(--muted); font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.fsec h3 button { border: 0; background: none; color: var(--faint); font-size: 12px; padding: 0; }
.flist { display: grid; gap: 1px; }
.flist a, .flist button { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 8px; margin: 0 -8px; border-radius: 7px; font-size: 14px; color: var(--ink-2); border: 0; background: none; text-align: left; width: calc(100% + 16px); }
.flist a:hover, .flist button:hover { background: var(--line-2); }
.flist a[aria-current="true"] { background: var(--brand-soft); color: var(--brand-strong); font-weight: 700; }
.flist a[aria-current="true"] .n { color: var(--brand); }
.flist .zero { opacity: .45; }
.flist .label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seg { display: flex; padding: 3px; background: var(--line-2); border-radius: 9px; gap: 2px; }
.seg a { flex: 1; text-align: center; padding: 5px 0; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg a[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.yr { display: flex; gap: 6px; align-items: center; }
.yr input { width: 0; flex: 1; height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.mycar-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; background: var(--brand-soft); color: var(--brand-strong); font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.mycar-row a { margin-left: auto; font-weight: 600; font-size: 12px; text-decoration: underline; }

.toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.toolbar .count { font-weight: 700; font-size: 15px; margin-right: 4px; }
.toolbar .count .n { font-weight: 500; }
.toolbar select { margin-left: auto; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 14px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 13px; font-weight: 600; border: 0; }
.fchip.soft { background: var(--brand-soft); color: var(--brand-strong); }
.fchip .x { opacity: .7; font-size: 14px; }
.filter-toggle { display: none; }

.lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.lcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.lcard:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.lthumb { position: relative; aspect-ratio: 4 / 3; background: var(--line-2); display: grid; place-items: center; color: var(--faint); }
.lthumb img { width: 100%; height: 100%; object-fit: cover; }
.lthumb .tags { position: absolute; left: 8px; top: 8px; display: flex; gap: 4px; }
.lbody { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.lpart { font-weight: 700; font-size: 15px; letter-spacing: -0.02em; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.lcar { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lmeta { font-size: 12px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lprice { font-size: 18px; font-weight: 800; letter-spacing: -0.03em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.lprice.ask { font-size: 15px; color: var(--muted); font-weight: 700; }
.lnote { font-size: 12px; color: var(--brand-strong); background: var(--brand-soft); border-radius: 6px; padding: 4px 8px; margin-top: 2px; }
.lact { margin-top: auto; padding-top: 10px; }
.lact .btn { width: 100%; height: 38px; }
.load-more { display: flex; justify-content: center; margin: 22px 0 8px; }
.elsewhere { margin-top: 26px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.elsewhere span { color: var(--muted); margin-right: auto; }

/* ── 내 차 고르기 창 ── */
.modal-backdrop { position: fixed; inset: 0; background: rgba(10, 14, 22, .45); z-index: 90; }
.modal { position: fixed; z-index: 91; left: 50%; top: 80px; transform: translateX(-50%); width: min(880px, calc(100vw - 32px)); max-height: calc(100vh - 120px); background: var(--surface); border-radius: var(--r-lg); box-shadow: 0 20px 60px rgba(0, 0, 0, .3); display: flex; flex-direction: column; overflow: hidden; }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 18px; letter-spacing: -0.03em; }
.modal-head .close { margin-left: auto; border: 0; background: none; font-size: 22px; color: var(--muted); line-height: 1; }
.picker-cols { display: grid; grid-template-columns: 1fr 1.2fr 1.4fr; min-height: 0; flex: 1; }
.picker-col { border-right: 1px solid var(--line-2); overflow-y: auto; max-height: 56vh; padding: 8px; }
.picker-col:last-child { border-right: 0; }
.picker-col h3 { font-size: 12px; color: var(--faint); margin: 6px 8px; font-weight: 700; }
.picker-col button { display: flex; justify-content: space-between; align-items: center; width: 100%; text-align: left; padding: 8px 10px; border: 0; background: none; border-radius: 8px; font-size: 14px; }
.picker-col button:hover { background: var(--line-2); }
.picker-col button[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand-strong); font-weight: 700; }
.picker-col .empty-col { padding: 20px 10px; color: var(--faint); font-size: 13px; }
.modal-foot { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--line); }
.modal-foot .sel { font-weight: 700; margin-right: auto; }

/* ── 업자 화면 ── */
.dealer-head { display: flex; align-items: center; gap: 10px; margin: 20px 0 14px; flex-wrap: wrap; }
.dealer-head h1 { margin: 0; font-size: 22px; letter-spacing: -0.03em; }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--line-2); border-radius: 10px; width: max-content; max-width: 100%; margin-bottom: 16px; }
.tabs button { border: 0; background: transparent; padding: 7px 14px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.tabs button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-bottom: 16px; }
.panel h2 { margin: 0 0 12px; font-size: 18px; letter-spacing: -0.03em; }
.form { display: grid; gap: 12px; max-width: 420px; }
.form label, .grid label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); font-weight: 600; }
.panel input:not([type=checkbox]), .panel select, .panel textarea, .carfind-box select, .modal input { padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 400; }
.panel input:focus, .panel select:focus, .panel textarea:focus { outline: none; border-color: var(--brand); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.err { color: #e03131; font-size: 14px; min-height: 1em; }
.ok { color: var(--ok); font-size: 14px; }
.dealer-intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; margin: 24px 0; align-items: start; }
.dealer-intro .how-card { height: 100%; }

.tree { display: grid; gap: 8px; }
.big { border: 1px solid var(--line); border-radius: var(--r); }
.big > .head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--line-2); border-radius: var(--r); }
.big.open > .head { border-radius: var(--r) var(--r) 0 0; }
.big > .head label { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; flex: 1; cursor: pointer; color: var(--ink); }
.big > .head .group-icon { width: 32px; height: 32px; border-radius: 8px; }
.big > .head .count { font-size: 13px; color: var(--muted); font-weight: 500; }
.big .items { display: none; padding: 8px 14px 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2px 16px; }
.big.open .items { display: grid; }
.item { display: flex; align-items: center; gap: 6px; font-size: 14px; padding: 4px 0; }
.item .sides { display: flex; gap: 8px; margin-left: auto; font-size: 13px; color: var(--muted); }
.item label { display: flex; align-items: center; gap: 5px; cursor: pointer; color: var(--ink); }
.item.off > label > span:first-of-type { color: var(--faint); text-decoration: line-through; }
input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--brand); margin: 0; }
.sticky-bar { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); padding: 12px 0; display: flex; gap: 10px; align-items: center; margin-top: 14px; }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list td, table.list th { border-bottom: 1px solid var(--line); padding: 10px 6px; text-align: left; vertical-align: top; }
table.list th { font-size: 13px; color: var(--muted); font-weight: 600; }
table.list img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; background: var(--line-2); }
.edit-row td { background: var(--line-2); }
.more { display: flex; gap: 10px; margin: 18px 0; flex-wrap: wrap; }

.footer { margin-top: 56px; padding: 32px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; background: var(--surface); }
.footer b { color: var(--ink); }
.footer p { margin: 8px 0 0; max-width: 760px; }

/* ── 반응형 ── */
@media (max-width: 1080px) {
  .model-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .carfind-box { grid-template-columns: 1fr 1fr 1fr; }
  .carfind-box h2 { grid-column: 1 / -1; }
  .carfind-box .btn { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .header-row { height: auto; flex-wrap: wrap; padding: 10px 0; gap: 10px; }
  .search { order: 3; max-width: none; flex-basis: 100%; }
  .header-tools { margin-left: auto; }
  .hero .wrap { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 52px; }
  .hero h1 { font-size: 30px; }
  .group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how, .dealer-intro { grid-template-columns: 1fr; }
  .listing { grid-template-columns: 1fr; }
  .filters { position: static; max-height: none; display: none; }
  .filters.open { display: block; }
  .filter-toggle { display: inline-flex; }
  .picker-cols { grid-template-columns: 1fr 1fr; }
  .picker-col:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line-2); }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .logo small, #dealer-link { display: none; }
  .car-btn { max-width: 180px; }
  .hero h1 { font-size: 26px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stat b { font-size: 22px; }
  .carfind-box { grid-template-columns: 1fr; }
  .group-grid, .pop-grid { grid-template-columns: 1fr; }
  .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lbody { padding: 10px; }
  .lprice { font-size: 16px; }
  .modal { top: 16px; max-height: calc(100vh - 32px); }
}
