/* 닮은꼴 — stylesheet.
   One idea carries the whole UI: a photo of the original next to photos of cheaper look-alikes.
   Everything else stays quiet: white page, warm-grey photo ground, hairlines instead of boxes,
   one family everywhere (Pretendard Variable: Korean, Latin brand names, prices with tabular figures);
   hierarchy comes from weight, size and tracking only, and brand names are set in tracked uppercase.
   Monospace only for prompts/code. One accent (interactive), green for savings,
   red for price drops. Desktop: top nav + filter column + 4-up grid; phone: bottom tab bar,
   2-up grid, bottom sheets. */

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --ground: #f3f2ef;     /* photo ground, soft fills */
  --ground-2: #e9e7e2;   /* hover / pressed fill */
  --ink: #161614;
  --ink-2: #4b4a46;
  --muted: #8a8882;
  --line: #e7e5e0;
  --line-2: #cdcac3;
  --accent: #2f4fd6;
  --on-accent: #ffffff;
  --accent-soft: #eef1fc;
  --save: #167a49;
  --save-soft: #e4f3ea;
  --drop: #c2402f;
  --drop-soft: #fbe7e3;
  --warn: #9a5b0c;
  --warn-soft: #f8ecd6;
  --bad: #c2402f;
  --on-bad: #ffffff;
  --bad-soft: #fbe7e3;
  --scrim: rgba(22, 22, 20, 0.55);
  --shadow: 0 1px 2px rgba(22, 22, 20, 0.06), 0 12px 40px rgba(22, 22, 20, 0.12);
  --shadow-lg: 0 -8px 40px rgba(0, 0, 0, 0.18);
  --f-body: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --f-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --r-xs: 4px;
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --head: 56px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111110; --surface: #171716; --ground: #1f1f1d; --ground-2: #2a2a27; --ink: #f1efea; --ink-2: #c9c6bf; --muted: #8e8b84;
    --line: #2a2a27; --line-2: #3b3b37; --accent: #93a6ff; --on-accent: #111110; --accent-soft: #22263a;
    --save: #5fcd97; --save-soft: #173024; --drop: #ff8d80; --drop-soft: #3b2220; --warn: #f0b36a; --warn-soft: #382a16;
    --bad: #ff8d80; --on-bad: #111110; --bad-soft: #3b2220;
    --scrim: rgba(0, 0, 0, 0.66); --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 40px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111110; --surface: #171716; --ground: #1f1f1d; --ground-2: #2a2a27; --ink: #f1efea; --ink-2: #c9c6bf; --muted: #8e8b84;
  --line: #2a2a27; --line-2: #3b3b37; --accent: #93a6ff; --on-accent: #111110; --accent-soft: #22263a;
  --save: #5fcd97; --save-soft: #173024; --drop: #ff8d80; --drop-soft: #3b2220; --warn: #f0b36a; --warn-soft: #382a16;
  --bad: #ff8d80; --on-bad: #111110; --bad-soft: #3b2220;
  --scrim: rgba(0, 0, 0, 0.66); --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 40px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100dvh; letter-spacing: -0.005em;
}
body.lock { overflow: hidden; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-xs); }
h1, h2, h3, h4 { text-wrap: balance; margin: 0; line-height: 1.25; letter-spacing: -0.015em; font-weight: 600; }
p { margin: 0; }
s { text-decoration-thickness: 1px; color: var(--muted); font-weight: 400; }
.skip { position: absolute; left: 8px; top: -48px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { top: 8px; }
.wrap { max-width: 1280px; margin: 0 auto; padding-inline: 16px; }
@media (min-width: 900px) { .wrap { padding-inline: 32px; } }
.num, .oprice, .rprice, .hprice, .s-lo, .st-p, .big, .kpi .v, figcaption .num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.hint { font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.eyebrow { font-size: 12.5px; color: var(--muted); font-weight: 500; }
svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* brand voice: every brand name (original or look-alike) is tracked uppercase in the one family */
.brand { font-size: 12.5px; line-height: 1.3; letter-spacing: 0.07em; font-weight: 700; text-transform: uppercase; color: var(--ink); overflow-wrap: anywhere; }
.save { color: var(--save); font-weight: 600; font-size: 0.92em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.drop { color: var(--drop); font-weight: 600; font-size: 0.85em; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- header ---------- */
.bar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: saturate(1.3) blur(14px); -webkit-backdrop-filter: saturate(1.3) blur(14px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.bar-in { display: flex; align-items: stretch; gap: 28px; min-height: var(--head); }
.logo { display: flex; align-items: center; text-decoration: none; color: var(--ink); flex: none; }
.logo b { font-size: 22px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.topnav { display: flex; gap: 20px; }
.topnav a { position: relative; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 14px; transition: color .15s; }
.topnav a:hover { color: var(--ink); }
.topnav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.topnav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); }
.cnt { font-size: 10.5px; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 999px; background: var(--ink); color: var(--bg); display: inline-grid; place-items: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.cnt:empty { display: none; }
.bchip { margin-left: auto; align-self: center; display: inline-flex; align-items: center; gap: 8px; background: var(--ground); border-radius: var(--r); padding: 0 12px; min-height: 36px; font-weight: 600; font-size: 13px; white-space: nowrap; text-decoration: none; color: var(--ink); transition: background .15s; }
.bchip:hover { background: var(--ground-2); }
.bchip .muted { font-weight: 500; }
@media (max-width: 899px) { .topnav { display: none; } .bar-in { gap: 12px; } .bchip { min-height: 40px; } }
@media (max-width: 420px) { .bchip .muted { display: none; } }

/* bottom tab bar (phone) */
.bnav { display: none; }
@media (max-width: 899px) {
  .bnav { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .bnav a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 56px; font-size: 10.5px; font-weight: 500; color: var(--muted); text-decoration: none; }
  .bnav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
  .bnav svg.i { width: 22px; height: 22px; stroke-width: 1.6; }
  .bnav a[aria-current="page"] svg.i { stroke-width: 2.1; }
  .bnav .cnt { position: absolute; top: 6px; left: calc(50% + 4px); }
  main { padding-bottom: 96px !important; }
  .foot { padding-bottom: 96px; }
}

main { padding-block: 16px 64px; min-height: 60vh; }
.foot { display: flex; justify-content: space-between; gap: 12px; padding-block: 14px 28px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }

/* ---------- shared controls ---------- */
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--ground); border-radius: var(--r-sm); padding: 0 12px; min-height: 36px; font-size: 13px; font-weight: 500; white-space: nowrap; color: var(--ink-2); transition: background .15s, color .15s; }
.chip:hover { background: var(--ground-2); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.chip.sm { min-height: 32px; padding: 0 10px; font-size: 12.5px; }
.chip .c { font-size: 11.5px; opacity: 0.65; font-variant-numeric: tabular-nums; }
.chip svg.i { width: 15px; height: 15px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: var(--r); border: 0; background: var(--ground); font-weight: 600; font-size: 14px; text-decoration: none; color: var(--ink); transition: background .15s, transform .1s; }
.btn:hover { background: var(--ground-2); }
.btn:active { transform: scale(0.98); }
.btn.pri { background: var(--ink); color: var(--bg); }
.btn.pri:hover { background: var(--ink-2); }
.btn.danger { color: var(--bad); background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.btn.danger[data-armed] { background: var(--bad); color: var(--on-bad); box-shadow: none; }
.btn[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
.btn.dis, .btn:disabled { color: var(--muted); cursor: default; opacity: 0.6; transform: none; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.sel { border: 0; background: var(--ground); border-radius: var(--r-sm); padding: 0 32px 0 12px; min-height: 36px; font-size: 13px; font-weight: 500; max-width: 100%; appearance: none; -webkit-appearance: none; color: var(--ink-2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8882' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; }
.sel:hover { background-color: var(--ground-2); color: var(--ink); }
.seg { display: inline-flex; width: fit-content; justify-self: start; border-radius: var(--r-sm); background: var(--ground); flex: none; max-width: 100%; padding: 2px; gap: 2px; }
.seg button, .seg label span { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; min-width: 32px; padding: 0 12px; font-size: 13px; font-weight: 500; color: var(--muted); border: 0; background: transparent; white-space: nowrap; border-radius: 4px; transition: background .15s, color .15s; }
.seg button[aria-label] { padding: 0 8px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg button[aria-pressed="true"], .seg input:checked + span { background: var(--bg); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -2px; }
.pill { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: var(--r-xs); white-space: nowrap; line-height: 1.5; font-variant-numeric: tabular-nums; }
.pill.save { background: var(--save-soft); color: var(--save); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.acc { background: var(--accent-soft); color: var(--accent); }
.pill.mut { background: var(--ground); color: var(--muted); }
.region { font-size: 10.5px; font-weight: 600; border: 1px solid var(--line-2); border-radius: 3px; padding: 0 4px; letter-spacing: 0.03em; color: var(--muted); line-height: 1.5; }
.linkbtn { border: 0; background: none; color: var(--muted); font-size: 12.5px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; padding: 6px 4px; }
.linkbtn:hover { color: var(--ink); }
.check { display: flex; align-items: center; gap: 10px; min-height: 34px; font-size: 13.5px; cursor: pointer; border-radius: var(--r-sm); color: var(--ink-2); }
.check:hover { color: var(--ink); }
.check input { width: 17px; height: 17px; accent-color: var(--ink); margin: 0; flex: none; }
.check .c { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.range { display: grid; gap: 4px; }
.range-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--ink-2); }
.range-top output { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.range input { width: 100%; accent-color: var(--ink); margin: 0; height: 28px; }
.quick { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 2px 16px 4px; align-items: center; }
@media (min-width: 900px) { .quick { margin-inline: 0; padding-inline: 0; } }
.quick::-webkit-scrollbar { display: none; }
.empty { padding: 36px 0; color: var(--muted); display: grid; gap: 8px; justify-items: start; border-top: 1px solid var(--line); }
.empty b { color: var(--ink); font-size: 16px; font-weight: 600; }
.empty .acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.empty.err b { color: var(--bad); }

/* skeletons */
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.sk { background: linear-gradient(100deg, var(--ground) 40%, color-mix(in srgb, var(--ground) 55%, var(--bg)) 50%, var(--ground) 60%); background-size: 200% 100%; border-radius: var(--r-sm); }
@media (prefers-reduced-motion: no-preference) { .sk { animation: shimmer 1.6s linear infinite; } }
.sk-card { min-width: 0; }
.sk-card .sk-pic { aspect-ratio: 3 / 4; }
.sk-card .sk-lines { padding: 12px 0 0; display: grid; gap: 8px; }
.sk-l { height: 12px; }
.sk-l.w40 { width: 40%; } .sk-l.w70 { width: 70%; } .sk-l.w55 { width: 55%; } .sk-l.tall { height: 20px; width: 50%; }
.sk-strip { display: flex; gap: 6px; margin-top: 6px; }
.sk-strip i { width: 52px; aspect-ratio: 3 / 4; display: block; border-radius: var(--r-xs); }
.sk-row { height: 112px; border-radius: 0; background-image: none; background: transparent; border-top: 1px solid var(--line); position: relative; }
.sk-row::before { content: ""; position: absolute; left: 0; top: 12px; width: 66px; aspect-ratio: 3 / 4; border-radius: var(--r-xs); background: var(--ground); }

/* photo containers: shimmer until the picture lands; quiet outline when there is none */
.pic, .th, .hpic, .cpic, .tpic, .gal, .gthumbs button, .slide { background: var(--ground); position: relative; overflow: hidden; }
.pic img, .th img, .hpic img, .cpic img, .tpic img, .gal img, .gthumbs img, .slide img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease; }
.pic img.ok, .th img.ok, .hpic img.ok, .cpic img.ok, .tpic img.ok, .gal img.ok, .gthumbs img.ok, .slide img.ok { opacity: 1; }
.pic:not(.done)::before, .th:not(.done)::before, .hpic:not(.done)::before, .cpic:not(.done)::before, .tpic:not(.done)::before, .slide:not(.done)::before {
  content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, var(--ground) 40%, color-mix(in srgb, var(--ground) 55%, var(--bg)) 50%, var(--ground) 60%); background-size: 200% 100%;
}
@media (prefers-reduced-motion: no-preference) { .pic:not(.done)::before, .th:not(.done)::before, .hpic:not(.done)::before, .cpic:not(.done)::before, .tpic:not(.done)::before, .slide:not(.done)::before { animation: shimmer 1.6s linear infinite; } }
.nophoto::before, .pic:has(> svg.garment)::before, .th:has(> svg.garment)::before, .slide:has(> svg.garment)::before, .cpic:has(> svg.garment)::before, .tpic:has(> svg.garment)::before, .hpic:has(> svg.garment)::before { display: none; }
svg.garment { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 46%; height: auto; color: var(--line-2); }
.th svg.garment { width: 60%; }

/* ---------- browse ---------- */
.notice { display: flex; gap: 8px; align-items: center; padding: 0 0 0 12px; border-radius: var(--r-sm); color: var(--ink-2); font-size: 12.5px; background: var(--warn-soft); margin-bottom: 8px; min-height: 36px; }
.notice p { flex: 1; min-width: 0; line-height: 1.4; }
.notice a { color: var(--warn); font-weight: 600; text-underline-offset: 2px; }
.notice button { border: 0; background: none; color: var(--muted); width: 36px; height: 36px; border-radius: var(--r-sm); display: grid; place-items: center; flex: none; }
.notice button:hover { color: var(--ink); }
.btool { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-block: 8px 6px; }
.search { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; background: var(--ground); border-radius: var(--r); padding: 0 14px; min-height: 44px; color: var(--muted); min-width: 0; transition: box-shadow .15s; }
.search:focus-within { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.search input { border: 0; background: transparent; flex: 1; min-width: 0; outline: none; font-size: 15px; color: var(--ink); }
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.btool .sel { min-height: 44px; border-radius: var(--r); }
.fbtn { display: none; min-height: 44px; border-radius: var(--r); padding: 0 14px; }
@media (max-width: 899px) { .fbtn { display: inline-flex; } }
.active { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.active:empty { display: none; }
.achip { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-soft); color: var(--accent); border: 0; border-radius: var(--r-sm); padding: 0 8px 0 10px; min-height: 30px; font-size: 12.5px; font-weight: 600; }
.achip span { font-size: 16px; line-height: 1; }
.tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--line); flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; flex: none; border: 0; background: none; padding: 0 2px; min-height: 44px; font-size: 14.5px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: color .15s; }
.tab:hover { color: var(--ink); }
.tab[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.tab[aria-pressed="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); }
.qchips { display: flex; gap: 6px; flex: none; margin-left: auto; padding-left: 12px; }
@media (max-width: 899px) {
  #quick { flex-wrap: wrap; row-gap: 10px; }
  .tabs { flex-basis: 100%; }
  .qchips { margin-left: 0; padding-left: 0; }
}
.browse { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 20px; }
@media (max-width: 899px) { .browse { grid-template-columns: minmax(0, 1fr); margin-top: 14px; } .bside { display: none; } }
.bmain { min-width: 0; }
.bside { position: sticky; top: calc(var(--head) + 16px); max-height: calc(100dvh - var(--head) - 32px); overflow: auto; padding-right: 6px; scrollbar-width: thin; }
.fgroup { border-top: 1px solid var(--line); padding-block: 14px 16px; display: grid; gap: 0; }
.fgroup:first-child { border-top: 0; padding-top: 4px; }
.fgroup h4 { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
/* filters: long facet lists fold under "더 보기"; a value with no matches under the other filters is dimmed */
.fgroup .hint { margin-top: 4px; }
.fgroup .range + .range { margin-top: 10px; }
.fmore > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 34px; font-size: 12.5px; font-weight: 500; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.fmore > summary::-webkit-details-marker { display: none; }
.fmore > summary:hover { color: var(--ink); }
.fmore[open] > summary { display: none; }
.check.zero { opacity: 0.55; }
.rhead { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; min-height: 20px; }
.rcount { font-size: 13px; color: var(--muted); }
.rcount b { color: var(--ink); font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 32px 20px; }
@media (max-width: 599px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; } }
.card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); min-width: 0; position: relative; border-radius: var(--r-sm); }
.card .pic { aspect-ratio: 3 / 4; border-radius: var(--r-sm); }
@media (hover: hover) { .card:hover .pic img { filter: brightness(0.97); } }
.badges { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; gap: 4px; flex-wrap: wrap; z-index: 1; }
/* 원본 찜: the heart is the card link's sibling, laid over the photo's top-right corner (44px target) */
.cardw { position: relative; min-width: 0; display: flex; flex-direction: column; }
.cardw > .card { flex: 1; }
.cardw .badges { right: 48px; }
.fav.on-pic { position: absolute; top: 2px; right: 2px; z-index: 2; color: var(--ink); background: color-mix(in srgb, var(--bg) 80%, transparent); }
.fav.on-pic:hover { background: var(--bg); }
.fav.on-pic[aria-pressed="true"] { color: var(--drop); }
.vmore { margin-top: 4px; padding: 4px 2px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.vmore:hover, .vmore:focus-visible { color: var(--ink); text-decoration: underline; }
.bdg { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: var(--r-xs); background: color-mix(in srgb, var(--bg) 92%, transparent); color: var(--ink); white-space: nowrap; backdrop-filter: blur(6px); font-variant-numeric: tabular-nums; }
.bdg.drop { color: var(--drop); }
.bdg.demo { color: var(--muted); font-weight: 500; }
.cbody { padding: 10px 0 0; display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.pname { font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink-2); }
.oprice { color: var(--ink-2); font-size: 13px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.strip { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.s-line { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.s-lo { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.s-lo small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 2px; letter-spacing: 0; }
.s-meta { font-size: 11.5px; color: var(--muted); }
.s-thumbs { display: flex; gap: 6px; }
.st { display: grid; gap: 3px; width: 52px; flex: none; }
.th.sm { width: 52px; aspect-ratio: 3 / 4; border-radius: var(--r-xs); display: grid; place-items: center; }
.st.more .th.sm { background: var(--ground); font-size: 12px; color: var(--muted); font-weight: 600; }
.st.more .th.sm::before { display: none; }
.st-p { font-size: 10.5px; color: var(--ink-2); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.02em; }
.strip.none .s-lo { font-size: 13px; color: var(--warn); font-weight: 600; }
@media (max-width: 599px) {
  .brand { font-size: 15px; }
  .s-lo { font-size: 15px; }
  .st, .th.sm { width: 48px; }
  .st.more { display: none; }
  .st-p { font-size: 10px; }
}

/* ---------- detail ---------- */
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; font-weight: 500; min-height: 40px; margin: -4px 0 6px -6px; padding: 0 8px 0 2px; border-radius: var(--r-sm); font-size: 13.5px; }
.back:hover { color: var(--ink); }
.detail { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 48px; align-items: start; }
.orig { position: sticky; top: calc(var(--head) + 16px); display: grid; gap: 12px; min-width: 0; }
.gal-wrap { position: relative; }
.gal { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--r-sm); scrollbar-width: none; aspect-ratio: 3 / 4; }
.gal::-webkit-scrollbar { display: none; }
.gal .slide { flex: 0 0 100%; scroll-snap-align: center; height: 100%; background: var(--ground); }
.gtag, .ctag, .hsim, .tsim { position: absolute; left: 8px; z-index: 1; font-size: 11px; font-weight: 600; padding: 3px 7px; border-radius: var(--r-xs); background: color-mix(in srgb, var(--bg) 92%, transparent); color: var(--ink); backdrop-filter: blur(6px); white-space: nowrap; font-variant-numeric: tabular-nums; }
.gtag, .ctag { top: 8px; }
.hsim, .tsim { bottom: 8px; }
.gdots { display: none; position: absolute; left: 0; right: 0; bottom: 8px; justify-content: center; gap: 5px; pointer-events: none; }
.gdots i { width: 5px; height: 5px; border-radius: 50%; background: color-mix(in srgb, var(--bg) 70%, transparent); transition: width .2s; }
.gdots i.on { background: var(--ink); width: 14px; border-radius: 3px; }
.gthumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.gthumbs button { border: 0; border-radius: var(--r-xs); aspect-ratio: 3 / 4; padding: 0; display: block; opacity: 0.55; transition: opacity .15s; }
.gthumbs button[aria-current="true"] { opacity: 1; box-shadow: inset 0 0 0 1.5px var(--ink); }
.gthumbs button:hover { opacity: 1; }
.oinfo { display: grid; gap: 6px; padding-top: 4px; }
.oinfo .badges-inline { display: flex; gap: 4px; flex-wrap: wrap; }
.oinfo .badges-inline:empty { display: none; }
.oinfo .badges-inline .bdg { background: var(--ground); }
.oinfo h2 { font-weight: 800; font-size: 22px; line-height: 1.15; letter-spacing: 0.05em; text-transform: uppercase; overflow-wrap: anywhere; }
.otitle { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 8px; align-items: start; }
.otxt { display: grid; gap: 6px; min-width: 0; }
.otitle .ofav { margin: -6px -8px 0 0; }
.oinfo .pn { font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.oprice-lg { font-size: 20px; font-weight: 600; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; letter-spacing: -0.02em; margin-top: 2px; }
.oprice-lg s { font-size: 15px; }
.oprice-lg small { font-size: 12px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.ometa { display: flex; gap: 6px 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); align-items: center; }
.ometa a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 3px; }
.ometa a:hover { color: var(--ink); }
.ometa svg.i { width: 14px; height: 14px; }
.obudget { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 0; margin-top: 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13.5px; }
.obudget b { font-weight: 600; }
.obudget .muted { margin-left: 4px; font-size: 12.5px; }
.obudget a { font-weight: 600; color: var(--accent); text-decoration: none; padding: 4px; }
.ofold { display: grid; gap: 12px; }
.ofold summary { cursor: pointer; font-weight: 600; font-size: 13.5px; min-height: 36px; display: flex; align-items: center; list-style: none; color: var(--ink-2); }
.ofold summary::-webkit-details-marker { display: none; }
.ofold summary::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform .15s; }
.ofold[open] summary::after { transform: rotate(-135deg); }
.attrs { display: grid; grid-template-columns: auto 1fr; gap: 7px 18px; margin: 0; font-size: 13px; }
.attrs dt { color: var(--muted); }
.attrs dd { margin: 0; color: var(--ink-2); }
.hist { display: grid; gap: 4px; margin-top: 6px; }
.hist svg { width: 100%; height: auto; display: block; }
.hk { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.dupes { min-width: 0; display: grid; gap: 0; align-content: start; }

/* opening pair: the original (gallery, left column) and the best look-alike */
.hero { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; margin-bottom: 28px; }
.hpic { border: 0; padding: 0; width: 100%; aspect-ratio: 3 / 4; border-radius: var(--r-sm); display: block; cursor: pointer; text-align: left; }
.hpic.sk { cursor: default; }
.hinfo { display: grid; gap: 4px; align-content: start; min-width: 0; padding-top: 2px; }
.hnm { font-size: 18px; font-weight: 600; line-height: 1.35; letter-spacing: -0.015em; -webkit-line-clamp: 3; }
.hsrc { font-size: 13px; color: var(--muted); }
.hprice { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 8px; font-size: 26px; font-weight: 700; letter-spacing: -0.03em; }
.hprice .save { font-size: 15px; }
.hacts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.hero-none { position: absolute; inset: 0; display: grid; place-content: center; gap: 4px; text-align: center; padding: 16px; font-size: 12.5px; color: var(--muted); }
.hero-none b { color: var(--ink); font-size: 13.5px; }
.dhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line); }
.dhead h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.dhead h3 .num { font-weight: 700; font-size: 20px; margin-left: 2px; letter-spacing: -0.02em; color: var(--muted); }
.dtool { position: sticky; top: var(--head); z-index: 4; background: var(--bg); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding-block: 12px 8px; }
.dtool .sel { flex: 0 1 auto; }
.dtool .chip { padding: 0 12px; }
.dtool .seg { margin-left: auto; }
#srcchips { margin-bottom: 8px; }
#srcchips:empty { display: none; }
.list { display: grid; }
.row { display: grid; grid-template-columns: 72px minmax(0, 1fr) 128px 44px; gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.list .row:first-child { border-top: 0; }
.over .list .row:first-child { border-top: 1px solid var(--line); }
.row .th { aspect-ratio: 3 / 4; border-radius: var(--r-xs); }
.rmain { min-width: 0; }
.nm { font: inherit; border: 0; background: none; padding: 0; text-align: left; cursor: pointer; font-weight: 500; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; letter-spacing: inherit; }
.row:hover .nm, .nm:hover { color: var(--accent); }
.sub { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 12px; color: var(--muted); margin-top: 3px; }
.sub .src { font-weight: 600; color: var(--ink-2); }
.sub .rr { color: var(--accent); font-weight: 600; }
.sub .gx { font-size: 10.5px; font-weight: 600; border: 1px solid var(--line-2); border-radius: 3px; padding: 0 4px; color: var(--muted); line-height: 1.5; }
.rprice { font-size: 15px; font-weight: 600; margin-top: 6px; display: flex; gap: 6px 8px; align-items: baseline; flex-wrap: wrap; letter-spacing: -0.01em; }
.ship { font-size: 11px; color: var(--muted); font-weight: 400; }
.simbox { text-align: right; }
.big { font-size: 22px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.big small { font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-left: 1px; }
.bars { display: flex; height: 3px; border-radius: 2px; overflow: hidden; background: var(--ground-2); margin-top: 8px; }
.bars i { display: block; height: 100%; }
.bars .b1 { background: var(--ink); }
.bars .b2 { background: color-mix(in srgb, var(--ink) 55%, var(--bg)); }
.bars .b3 { background: color-mix(in srgb, var(--ink) 28%, var(--bg)); }
.fav { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; color: var(--muted); padding: 0; transition: color .15s, background .15s, transform .15s var(--ease); }
.fav:hover { color: var(--drop); background: var(--ground); }
.fav[aria-pressed="true"] { color: var(--drop); }
.fav[aria-pressed="true"] svg { fill: currentColor; }
@media (prefers-reduced-motion: no-preference) { .fav.pop { animation: pop .3s var(--ease); } }
@keyframes pop { 40% { transform: scale(1.25); } }
@media (max-width: 599px) {
  .row { grid-template-columns: 64px minmax(0, 1fr) 44px; gap: 4px 12px; align-items: start; padding: 12px 0; }
  .row .th { grid-row: 1 / span 2; }
  .row .rmain { grid-column: 2; grid-row: 1; }
  .row .fav { grid-column: 3; grid-row: 1; margin: -8px -8px 0 0; }
  .row .simbox { grid-column: 2 / 4; grid-row: 2; display: flex; align-items: center; gap: 10px; text-align: left; }
  .row .simbox .big { font-size: 14px; }
  .row .simbox .bars { flex: 1; margin: 0; }
}
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 24px 16px; padding-top: 4px; }
@media (max-width: 599px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; } }
.tile { position: relative; display: flex; flex-direction: column; min-width: 0; }
.tile .tpic { border: 0; padding: 0; aspect-ratio: 3 / 4; display: block; width: 100%; border-radius: var(--r-sm); cursor: pointer; }
.tile .fav { position: absolute; top: 2px; right: 2px; width: 40px; height: 40px; color: var(--ink); background: color-mix(in srgb, var(--bg) 80%, transparent); }
.tile .fav[aria-pressed="true"] { color: var(--drop); }
.tinfo { padding: 8px 0 0; display: grid; gap: 2px; font-size: 12.5px; }
.tinfo .tn { font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; color: var(--ink); font-size: 13px; }
.tinfo .tp { display: flex; gap: 6px; align-items: baseline; }
.tinfo .num { font-size: 14.5px; font-weight: 600; }
.over { margin-top: 20px; }
.over summary { cursor: pointer; color: var(--muted); font-weight: 500; font-size: 13.5px; min-height: 44px; display: flex; align-items: center; gap: 6px; list-style: none; border-top: 1px solid var(--line); }
.over summary::-webkit-details-marker { display: none; }
.over summary::before { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); margin-right: 4px; transition: transform .15s; }
.over[open] summary::before { transform: rotate(45deg); }
.over .list, .over .tiles { opacity: 0.7; }

/* phone: the pair sits at the top, two 3:4 photos side by side */
@media (max-width: 899px) {
  .detail { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 12px 10px; }
  .orig, .dupes { display: contents; }
  .gal-wrap { grid-column: 1; grid-row: 1; }
  .hero { grid-column: 2; grid-row: 1; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 0; }
  .gthumbs { display: none; }
  .oinfo, .dhead, .dtool, #srcchips, #dlist { grid-column: 1 / -1; }
  .oinfo { padding-top: 6px; }
  .gdots { display: flex; }
  .hinfo { gap: 2px; }
  .hk { font-size: 11.5px; }
  .hnm { font-size: 13px; font-weight: 500; -webkit-line-clamp: 2; }
  .hsrc { display: none; }
  .hprice { font-size: 15px; margin-top: 2px; gap: 6px; }
  .hprice .save { font-size: 12px; }
  .hacts { display: none; }
  .hero-none { padding: 12px; font-size: 11.5px; }
  .hero-none b { font-size: 12.5px; }
  .oinfo h2 { font-size: 20px; }
  .dhead { padding-top: 16px; margin-top: 8px; }
}

/* ---------- saved ---------- */
.vhead { display: grid; gap: 4px; margin: 4px 0 20px; }
.vhead .back { justify-self: start; margin-bottom: 0; }
.vh { font-size: 26px; letter-spacing: -0.025em; font-weight: 700; }
.vh .num { font-weight: 700; font-size: inherit; letter-spacing: -0.02em; margin-left: 2px; color: var(--muted); }
.vhead .meta { display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--muted); margin-top: 4px; }
.ssec { margin-bottom: 40px; }
.ssh { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px; }
.ssh .num { color: var(--muted); margin-left: 2px; }
.sempty { padding: 4px 0 8px; }
.sgroup { display: grid; gap: 4px; margin-bottom: 32px; }
.sorig { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; text-decoration: none; color: var(--ink); padding: 4px 0 10px; }
.sorig .sthumb { width: 56px; aspect-ratio: 3 / 4; border-radius: var(--r-xs); }
.sinfo { display: grid; gap: 1px; min-width: 0; }
.sinfo .pname { -webkit-line-clamp: 1; }
.sinfo .num { font-size: 13px; }
.sgo { color: var(--muted); font-size: 20px; }

/* ---------- sheet (bottom sheet on phone, dialog on desktop) ---------- */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 30; }
.sheet { position: fixed; z-index: 31; left: 0; right: 0; bottom: 0; max-height: 92dvh; display: flex; flex-direction: column; background: var(--bg); border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: var(--shadow-lg); }
@media (min-width: 900px) {
  .sheet { left: 50%; top: 50%; bottom: auto; right: auto; transform: translate(-50%, -50%); width: min(860px, calc(100vw - 48px)); max-height: 88vh; border-radius: var(--r-lg); box-shadow: var(--shadow); }
  .sheet.narrow { width: min(440px, calc(100vw - 48px)); }
}
.grab { width: 36px; height: 4px; border-radius: 2px; background: var(--line-2); margin: 8px auto 0; flex: none; }
@media (min-width: 900px) { .grab { display: none; } }
.sh-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 10px 20px; flex: none; }
.sh-head h3 { font-size: 16px; font-weight: 600; }
.xbtn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ground); display: grid; place-items: center; flex: none; }
.xbtn:hover { background: var(--ground-2); }
.sh-body { overflow: auto; padding: 4px 20px 20px; flex: 1; overscroll-behavior: contain; }
.sh-foot { display: flex; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); flex-wrap: wrap; flex: none; }
.sh-foot .btn { flex: 1 1 auto; }
@media (prefers-reduced-motion: no-preference) and (max-width: 899px) { .sheet:not([hidden]) { animation: sh-up .28s var(--ease); } .scrim:not([hidden]) { animation: sh-fade .2s ease-out; } }
@media (prefers-reduced-motion: no-preference) and (min-width: 900px) { .sheet:not([hidden]) { animation: sh-pop .18s var(--ease); } .scrim:not([hidden]) { animation: sh-fade .15s ease-out; } }
@keyframes sh-up { from { transform: translateY(48px); opacity: 0.4; } }
@keyframes sh-fade { from { opacity: 0; } }
@keyframes sh-pop { from { opacity: 0; transform: translate(-50%, -50%) scale(0.98); } }

/* compare: two photos first, numbers second */
.cmp-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cmp-pics figure { margin: 0; display: grid; gap: 8px; align-content: start; min-width: 0; }
.cpic { border-radius: var(--r-sm); aspect-ratio: 3 / 4; }
figcaption { font-size: 13px; display: grid; gap: 2px; overflow-wrap: anywhere; }
figcaption b { font-weight: 500; color: var(--ink); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
figcaption b.brand { font-weight: 700; font-size: 12.5px; display: block; }
figcaption .cn { color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
figcaption .num { font-size: 16px; font-weight: 600; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-top: 2px; }
.cmp-save { margin-top: 18px; font-size: 15px; color: var(--ink-2); }
.cmp-save span { font-size: 28px; font-weight: 800; color: var(--save); line-height: 1; letter-spacing: -0.035em; margin-right: 6px; font-variant-numeric: tabular-nums; }
.cmp-save span i { font-style: normal; font-size: 0.68em; font-weight: 700; margin-right: 1px; vertical-align: 0.08em; }
.cmp-score { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; margin-top: 16px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cs-total { display: grid; gap: 2px; }
.cs-total .big { font-size: 34px; }
.cs-bars { display: grid; gap: 8px; }
.sbar { display: grid; grid-template-columns: 44px minmax(0, 1fr) 34px; gap: 10px; align-items: center; font-size: 12.5px; color: var(--ink-2); }
.sbar .tr { height: 4px; background: var(--ground-2); border-radius: 2px; overflow: hidden; }
.sbar .tr i { display: block; height: 100%; background: var(--ink); border-radius: 2px; }
.sbar .num { text-align: right; font-weight: 600; color: var(--ink); }
.vd { font-weight: 500; }
.vd.ok { color: var(--save); }
.vd.mid { color: var(--warn); }
.vd.no { color: var(--bad); }
.vd.unknown { color: var(--muted); font-weight: 400; }
.llm-reason { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 10px 12px; background: var(--accent-soft); border-radius: var(--r-sm); font-size: 13px; color: var(--ink-2); }
.llm-reason b { color: var(--accent); white-space: nowrap; font-size: 12px; }
.cmp-tbl { margin-top: 12px; }
.cmp-note { margin-top: 12px; }
@media (max-width: 599px) { .cmp-save span { font-size: 24px; } .cs-total .big { font-size: 28px; } .cmp-score { gap: 16px; } }

/* ---------- settings ---------- */
.set-layout { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 48px; align-items: start; margin-top: 8px; }
.set-nav { position: sticky; top: calc(var(--head) + 16px); display: flex; flex-direction: column; gap: 2px; }
.set-nav button { border: 0; background: none; text-align: left; padding: 0 10px; min-height: 36px; border-radius: var(--r-sm); font-weight: 500; color: var(--muted); white-space: nowrap; font-size: 14px; }
.set-nav button:hover { background: var(--ground); color: var(--ink); }
.set-nav button[aria-current="true"] { color: var(--ink); font-weight: 600; background: var(--ground); }
@media (max-width: 899px) {
  .set-layout { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .set-nav { top: var(--head); z-index: 4; background: var(--bg); flex-direction: row; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 8px 16px; gap: 6px; }
  .set-nav::-webkit-scrollbar { display: none; }
  .set-nav button { background: var(--ground); font-size: 13px; min-height: 36px; padding: 0 12px; }
  .set-nav button[aria-current="true"] { background: var(--ink); color: var(--bg); }
}
.set-body { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; max-width: 760px; }
.set-card { padding: 28px 0 32px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; scroll-margin-top: calc(var(--head) + 64px); min-width: 0; border-top: 1px solid var(--line); }
.set-card:first-child { border-top: 0; padding-top: 12px; }
.set-card > h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.set-card > h3 + .hint { margin-top: -12px; max-width: 60ch; }
.field { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 20px; align-items: center; }
.field.col { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 599px) { .field { grid-template-columns: minmax(0, 1fr); gap: 6px; } }
.flabel { font-weight: 500; font-size: 13.5px; color: var(--ink-2); }
.stack { display: grid; gap: 8px; justify-items: start; min-width: 0; }
.stack.fill { justify-items: stretch; }
.stepper { display: inline-flex; align-items: center; border-radius: var(--r); overflow: hidden; background: var(--ground); }
.stepper button { width: 44px; height: 44px; border: 0; background: transparent; font-size: 20px; line-height: 1; color: var(--ink-2); }
.stepper button:hover { background: var(--ground-2); color: var(--ink); }
.stepper input { width: 128px; border: 0; text-align: center; font-size: 16px; font-weight: 600; background: transparent; height: 44px; min-width: 0; font-variant-numeric: tabular-nums; }
.presets { display: flex; gap: 6px; flex-wrap: wrap; }
.cat-tbl { display: grid; }
.cat-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 150px); gap: 12px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); min-height: 52px; }
.cat-row:first-child { border-top: 0; }
.cat-row .cname { font-weight: 500; }
.num-in { border: 0; border-radius: var(--r-sm); height: 40px; padding: 0 10px; text-align: right; background: var(--ground); width: 100%; min-width: 0; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.num-in:disabled { background: transparent; color: var(--muted); font-weight: 400; }
.num-in:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.switch { position: relative; display: inline-block; width: 44px; height: 26px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; width: 100%; height: 100%; }
.switch i { position: absolute; inset: 0; background: var(--line-2); border-radius: 999px; transition: background .15s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); transition: transform .18s var(--ease); }
.switch input:checked + i { background: var(--ink); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch input:disabled + i { opacity: 0.4; }
.srow { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; border-top: 1px solid var(--line); padding-top: 10px; }
.srow:first-of-type { border-top: 0; padding-top: 0; }
.srow .t { font-weight: 500; font-size: 13.5px; }
.srow .d { font-size: 12.5px; color: var(--muted); }
#s-ops .srow { margin: 4px 0 14px; }
.srcgrid { display: flex; flex-wrap: wrap; gap: 6px; }
.tchip { position: relative; cursor: pointer; }
.tchip input { position: absolute; opacity: 0; pointer-events: none; }
.tchip > span { display: inline-flex; align-items: center; gap: 6px; border-radius: var(--r-sm); padding: 0 12px; min-height: 36px; font-size: 13px; color: var(--muted); background: var(--ground); transition: color .15s, background .15s, box-shadow .15s; }
.tchip input:checked + span { color: var(--ink); background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--ink); font-weight: 500; }
.tchip input:checked + span::before { content: "✓"; font-size: 12px; }
.tchip.off > span { opacity: 0.75; }
.tchip.off input:checked + span { box-shadow: inset 0 0 0 1px var(--line-2); color: var(--muted); font-weight: 500; }
.srcstate { font-size: 11px; font-weight: 600; letter-spacing: -.01em; padding: 1px 6px; border-radius: var(--r-xs); background: var(--ground-2); color: var(--muted); }
.srcstate.disabled { background: var(--bad-soft); color: var(--bad); }
.srcstate.key { background: var(--warn-soft); color: var(--warn); }
.srcnote { margin-top: 8px; font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.tchip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 2px; background: var(--ground); border-radius: var(--r-sm); padding: 0 4px 0 12px; min-height: 36px; font-size: 13px; }
.tag button { border: 0; background: none; width: 30px; height: 30px; border-radius: 50%; color: var(--muted); font-size: 16px; }
.tag button:hover { color: var(--bad); background: var(--bad-soft); }
.addrow { display: flex; gap: 8px; }
.addrow input { flex: 1; min-width: 0; border: 0; border-radius: var(--r); padding: 0 14px; height: 44px; background: var(--ground); }
.addrow input:focus { outline: 2px solid var(--ink); outline-offset: -1.5px; }
.ex { display: grid; gap: 4px; font-size: 12.5px; background: var(--ground); border-radius: var(--r-sm); padding: 10px 12px; }
.ex div { display: flex; justify-content: space-between; gap: 8px; }
.ex .num { font-weight: 600; }
.sizes { display: flex; gap: 10px; flex-wrap: wrap; }
.sizes label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 500; }
.set-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 20px; }
.set-body > .set-foot { border-top: 1px solid var(--line); }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--r); font-size: 13px; font-weight: 500; z-index: 40; box-shadow: var(--shadow); white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 899px) { .toast { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); } }
@media (prefers-reduced-motion: no-preference) { .toast:not([hidden]) { animation: toast-in .22s var(--ease); } }
@keyframes toast-in { from { transform: translate(-50%, 10px); opacity: 0; } }

.plist { display: grid; }
.pcard { border-top: 1px solid var(--line); min-width: 0; }
.pcard:first-child { border-top: 0; }
.pcard > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 14px 0; min-height: 56px; }
.pcard > summary::-webkit-details-marker { display: none; }
.pcard > summary .pt { font-weight: 600; font-size: 14.5px; }
.pcard > summary::after { content: ""; grid-row: 1 / span 2; grid-column: 2; width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform .15s; margin-right: 6px; }
.pcard[open] > summary::after { transform: rotate(-135deg); }
.pcard > summary .pm { grid-column: 1; display: flex; gap: 6px 10px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--muted); }
.pbody { padding: 4px 0 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.ptext { width: 100%; min-height: 280px; resize: vertical; border: 0; border-radius: var(--r-sm); padding: 12px 14px; font-family: var(--f-mono); font-size: 12.5px; line-height: 1.65; background: var(--ground); color: var(--ink); tab-size: 2; letter-spacing: 0; }
.ptext:focus { outline: 2px solid var(--ink); outline-offset: 0; }
.vars { display: flex; flex-wrap: wrap; gap: 6px; }
.vars button { font-family: var(--f-mono); font-size: 11.5px; border: 0; background: var(--accent-soft); border-radius: var(--r-xs); padding: 0 8px; min-height: 30px; color: var(--accent); letter-spacing: 0; }
.vars button:hover { background: color-mix(in srgb, var(--accent) 20%, var(--bg)); }
.pschema, .ppreview { font-family: var(--f-mono); font-size: 12px; line-height: 1.6; background: var(--ground); border-radius: var(--r-sm); padding: 12px 14px; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; letter-spacing: 0; }
.ppreview { box-shadow: inset 0 0 0 1px var(--line-2); background: var(--bg); }
.pacts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pacts .dirty { font-size: 12px; color: var(--warn); font-weight: 600; }
.seg.seg-wrap { flex-wrap: wrap; }
.llm-stat { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.llm-why { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.agrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.agrid label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 500; }
.mini-in { border: 0; border-radius: var(--r-sm); height: 40px; padding: 0 10px; font-size: 14px; font-weight: 600; background: var(--ground); width: 100%; min-width: 0; font-variant-numeric: tabular-nums; }
.mini-in:focus { outline: 2px solid var(--ink); outline-offset: -1px; }

/* ---------- 수집 현황 (pipeline) ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-block: 4px 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kpi { padding: 18px 20px 18px 0; border-left: 1px solid var(--line); padding-left: 20px; min-width: 0; }
.kpi:first-child { border-left: 0; padding-left: 0; }
.kpi .l { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.kpi .v { font-size: 30px; font-weight: 700; margin-top: 4px; letter-spacing: -0.035em; line-height: 1.1; }
.kpi .d { font-size: 12px; color: var(--muted); margin-top: 4px; overflow-wrap: anywhere; }
@media (max-width: 899px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { padding: 14px 0 14px 16px; }
  .kpi:nth-child(odd) { border-left: 0; padding-left: 0; }
  .kpi:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .kpi .v { font-size: 26px; }
}
.cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 900px) { .cols { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.panel { min-width: 0; }
.panel h3 { font-size: 15.5px; font-weight: 600; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.panel ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.panel > .hint { margin-top: 10px; }
.stages { list-style: none; margin: 0; padding: 0; counter-reset: st; }
.stages li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; padding-block: 12px; border-top: 1px solid var(--line); align-items: start; }
.stages li:first-child { border-top: 0; }
.stages li::before { counter-increment: st; content: counter(st); font-size: 11.5px; font-weight: 600; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ground); color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 1px; }
.stages li.failed::before { background: var(--bad-soft); color: var(--bad); }
.stages li.partial::before { background: var(--warn-soft); color: var(--warn); }
.stages li.ok::before { background: var(--save-soft); color: var(--save); }
.stages .t { font-weight: 500; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.stages .c { font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); margin-top: 3px; overflow-wrap: anywhere; letter-spacing: 0; }
.stages .x { text-align: right; font-size: 12.5px; }
.stages .x .num { display: block; color: var(--muted); margin-top: 3px; }
.tbl-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { text-align: left; padding: 9px 8px; border-top: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 500; border-top: 0; }
td:first-child, th:first-child { padding-left: 0; }
td:last-child, th:last-child { padding-right: 0; }
td.n, th.n { font-variant-numeric: tabular-nums; text-align: right; }
.spark { width: 100%; height: auto; display: block; margin-top: 8px; }
.panel code, .vhead code, .set-card code { font-family: var(--f-mono); font-size: 12.5px; background: var(--ground); padding: 1px 5px; border-radius: 3px; letter-spacing: 0; }

/* phone: every frequently tapped control gets a >= 44px target */
@media (max-width: 899px) {
  .chip { min-height: 44px; padding: 0 14px; }
  .chip.sm { min-height: 40px; }
  .sel { min-height: 44px; }
  .seg button, .seg label span { min-height: 40px; }
  .switch input { inset: -9px -6px; width: auto; height: auto; }
  .range input { height: 44px; }
  .notice button { width: 44px; height: 44px; }
  .obudget a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; margin: -10px -8px; }
  .ometa a { padding-block: 12px; margin-block: -12px; }
  .nm { padding-block: 4px; margin-block: -4px; }
  .check { min-height: 44px; }
  .linkbtn { min-height: 44px; display: inline-flex; align-items: center; }
  .tab { min-height: 46px; }
}

/* token gate (shown when the server answers 401) */
.tokengate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: var(--bg); }
.tokengate-card { width: min(360px, 100%); display: grid; gap: 12px; }
.tokengate-title { font-weight: 800; font-size: 32px; letter-spacing: -0.04em; line-height: 1; margin: 0 0 4px; color: var(--ink); }
.tokengate-text { margin: 0; color: var(--ink-2); font-size: 15px; }
.tokengate-label { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-top: 8px; }
.tokengate-input { height: 48px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; }
.tokengate-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.tokengate-error { margin: 0; color: var(--bad); font-size: 13px; }
.tokengate-btn { height: 48px; border: 0; border-radius: var(--r-sm); background: var(--ink); color: var(--bg); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; }

/* look-alike brand (shown above the product name everywhere a dupe appears) */
.dbrand { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-2); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dbrand-cmp { color: var(--ink-2); }

/* ---------- photo viewer (zoom.js) ---------- */
[data-zoom] { cursor: zoom-in; }
.cpic[data-zoom]:focus-visible { outline-offset: 3px; }
.tinfo .tn.nm { font-size: 13px; }
.zoom { position: fixed; inset: 0; z-index: 60; background: #0c0c0b; color: #f1efea; display: block; overscroll-behavior: contain; }
.z-stage { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; cursor: zoom-in; }
.zoom.zoomed .z-stage { cursor: grab; }
.zoom.zoomed .z-stage:active { cursor: grabbing; }
.z-img { max-width: 100%; max-height: 100%; transform-origin: center center; will-change: transform; -webkit-user-drag: none; background: #1f1f1d; border-radius: 2px; }
.z-img.anim { transition: transform .22s var(--ease); }
.zoom.loading .z-img { opacity: 0.35; }
.zoom.broken .z-img { visibility: hidden; }
.zoom.broken .z-stage::after { content: "사진을 불러오지 못했습니다"; position: absolute; color: #a9a69f; font-size: 13px; }
.z-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px 18px; background: linear-gradient(rgba(12, 12, 11, 0.6), transparent); pointer-events: none; }
.z-top > * { pointer-events: auto; }
.z-count { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; color: #c9c6bf; }
.z-tools { display: flex; gap: 6px; margin-left: auto; }
.z-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, 0.12); color: #f1efea; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .15s; }
.z-btn:hover { background: rgba(255, 255, 255, 0.22); }
.z-btn:focus-visible { outline: 2px solid #f1efea; outline-offset: 2px; }
.z-btn svg.i { width: 20px; height: 20px; }
.z-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.z-prev { left: 14px; }
.z-next { right: 14px; }
.zoom.single .z-nav, .zoom.zoomed .z-nav { display: none; }
.z-bot { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 2px; justify-items: center; text-align: center; padding: 28px 16px calc(14px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(transparent, rgba(12, 12, 11, 0.65)); pointer-events: none; }
.z-cap { font-size: 13.5px; font-weight: 500; max-width: 60ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.z-hint { font-size: 11.5px; color: #a9a69f; }
.zoom.zoomed .z-bot { opacity: 0; transition: opacity .2s; }
@media (max-width: 599px) { .z-nav { display: none; } .z-tools #z-in, .z-tools #z-out { display: none; } }
@media (prefers-reduced-motion: no-preference) { .zoom:not([hidden]) { animation: sh-fade .16s ease-out; } }
@media (prefers-reduced-motion: reduce) { .z-img.anim { transition: none; } }

/* ---------- keyboard (keys.js) ---------- */
.kfocus, .kfocus:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--r-sm); }
.kfocus :focus-visible { outline: none; }
.row.kfocus { outline-offset: 2px; background: color-mix(in srgb, var(--accent-soft) 60%, transparent); }
kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--r-xs); background: var(--ground); box-shadow: inset 0 -1px 0 var(--line-2); font: 600 11.5px/1 var(--f-body); color: var(--ink); letter-spacing: 0; }
.khint { display: none; }
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .khint { display: inline-flex; align-items: center; align-self: center; gap: 6px; margin-left: auto; border: 0; background: none; border-radius: var(--r-sm); padding: 6px 8px; font-size: 12.5px; font-weight: 500; color: var(--muted); transition: color .15s; }
  .khint:hover { color: var(--ink); }
  .khint + .bchip { margin-left: 4px; }
}
.khelp { display: grid; gap: 18px; padding-bottom: 4px; }
.kgroup h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 6px; }
.klist { display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 7px 16px; margin: 0; align-items: center; font-size: 13px; }
.klist dt { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.klist dd { margin: 0; color: var(--ink-2); }
.ksep { color: var(--muted); font-size: 12px; padding: 0 1px; }

/* ---------- 검색 (search.js) ---------- */
@media (max-width: 899px) { .bnav { grid-template-columns: repeat(4, 1fr); } }
.sform { display: flex; gap: 8px; align-items: stretch; }
.sform .sbox { flex: 1 1 auto; min-height: 52px; border-radius: var(--r); }
.sform .sbox input { font-size: 16px; }
.sform .btn { min-height: 52px; flex: none; }
.scam svg.i { width: 20px; height: 20px; }
@media (max-width: 599px) { .scam span { display: none; } .scam { padding: 0 14px; } .sbtn-go { padding: 0 16px; } }
.sdhint { margin: 8px 0 14px; }
.sfilt { display: flex; gap: 10px 14px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.scats { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.scats::-webkit-scrollbar { display: none; }
.sbud { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.sbud input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; }
.sstat { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 22px; font-size: 13px; color: var(--ink-2); margin-bottom: 16px; }
.sstat:empty { display: none; }
.sdot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--muted); }
.sdot.ok { background: var(--save); }
.sdot.off { background: var(--bad); }
.sdot.busy { background: var(--warn); }
@media (prefers-reduced-motion: no-preference) { .sdot.busy { animation: sdot 1s ease-in-out infinite alternate; } }
@keyframes sdot { from { opacity: 1; } to { opacity: .25; } }
.sqh { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 10px; }
.sqt { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.sqt small { font-size: 12px; font-weight: 400; letter-spacing: 0; overflow-wrap: anywhere; }
.sgl { font-size: 13px; }
.sqimg { width: 64px; height: 80px; object-fit: cover; border-radius: var(--r-sm); background: var(--ground); flex: none; }
.sqh .btn { margin-left: auto; }
.stabs { margin-bottom: 14px; }
.stabs .tab .num { color: var(--muted); font-weight: 500; margin-left: 2px; }
.snotice { padding: 6px 12px; margin-bottom: 14px; }
.ssim { font-variant-numeric: tabular-nums; }
.scand .smeta { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); margin-top: 2px; min-width: 0; }
.scand .smeta svg.i { width: 13px; height: 13px; flex: none; }
.scand .sprice { font-weight: 600; color: var(--ink); }
.sq-empty { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; align-items: start; margin-top: 8px; }
@media (max-width: 699px) { .sq-empty { grid-template-columns: minmax(0, 1fr); } }
.spick { display: grid; justify-items: center; gap: 6px; padding: 36px 16px; border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); background: var(--ground); color: var(--ink-2); font-size: 13px; transition: border-color .15s, background .15s; }
.spick:hover { border-color: var(--ink); background: var(--ground-2); }
.spick svg.i { width: 32px; height: 32px; stroke-width: 1.4; }
.spick b { font-size: 15px; color: var(--ink); }
.sexl { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.sdrop { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: var(--scrim); pointer-events: none; }
.sdrop > div { display: grid; justify-items: center; gap: 6px; padding: 40px 48px; border-radius: var(--r-lg); background: var(--bg); border: 2px dashed var(--accent); color: var(--ink-2); font-size: 13px; box-shadow: var(--shadow); }
.sdrop svg.i { width: 36px; height: 36px; color: var(--accent); }
.sdrop b { font-size: 17px; color: var(--ink); }
@media (hover: none) { .sdhint { display: none; } }

/* ---------- 룩 추천 (상세 "이 룩", 추천 tab, 찜 "어울리는 코디") ---------- */
.looks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 8px 40px; }
.look { display: grid; gap: 12px; padding: 18px 0 22px; border-top: 1px solid var(--line); min-width: 0; align-content: start; }
.look:focus { outline: none; }
.look.kfocus { outline-offset: 2px; }
.lk-head { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; }
.lk-h { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lk-h .num { font-size: 20px; font-weight: 700; letter-spacing: -0.025em; }
.lk-kind { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: var(--r-xs); background: var(--ground); color: var(--ink-2); }
.lk-kind.styled { background: var(--accent-soft); color: var(--accent); }
.lk-kind svg.i { width: 14px; height: 14px; }
.lk-meta { font-size: 12.5px; color: var(--muted); }
.lk-body { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 18px; align-items: start; }
.lk-photo { position: relative; display: grid; gap: 8px; min-width: 0; }
.lk-pic { display: block; text-decoration: none; position: relative; border-radius: var(--r-sm); }
.lk-pic .pic { display: block; aspect-ratio: 3 / 4; border-radius: var(--r-sm); }
@media (hover: hover) { .lk-pic:hover .pic img { filter: brightness(0.97); } }
.lk-cap { position: absolute; left: 6px; bottom: 6px; font-size: 10.5px; font-weight: 600; padding: 2px 6px; border-radius: var(--r-xs); background: color-mix(in srgb, var(--bg) 88%, transparent); color: var(--ink-2); backdrop-filter: blur(6px); }
.lk-orig { display: grid; gap: 1px; text-decoration: none; color: var(--ink); min-width: 0; }
.lk-orig .brand { font-size: 11.5px; }
.lk-orig .pname { font-size: 12.5px; }
.lk-orig .num { font-size: 12px; }
.lk-orig:hover .pname { color: var(--ink); text-decoration: underline; }
.lk-pieces { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; min-width: 0; }
.lk-piece { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; min-width: 0; }
.lk-th { width: 56px; aspect-ratio: 3 / 4; border-radius: var(--r-xs); display: grid; place-items: center; grid-row: span 2; cursor: zoom-in; }
.lk-piece.none .lk-th { cursor: default; }
.lk-pm { display: grid; gap: 1px; min-width: 0; }
.lk-slot { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.lk-slot em { font-style: normal; color: var(--accent); font-weight: 500; margin-left: 2px; }
.lk-nm { font-size: 13px; color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk-nm:hover { text-decoration: underline; }
.lk-src { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk-pr { display: grid; justify-items: end; font-size: 13.5px; line-height: 1.3; }
.lk-pr small { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lk-altbtn { grid-column: 2 / -1; justify-self: start; border: 0; background: none; color: var(--accent); font-size: 12px; font-weight: 500; padding: 2px 0; min-height: 24px; }
.lk-altbtn:hover { text-decoration: underline; }
.lk-alts { grid-column: 1 / -1; display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 2px; scrollbar-width: thin; }
.lk-alt { flex: none; width: 60px; border: 0; background: none; padding: 0; display: grid; gap: 3px; font-size: 11px; color: var(--ink-2); text-align: center; }
.lk-alt .th { width: 60px; aspect-ratio: 3 / 4; border-radius: var(--r-xs); }
.lk-alt:hover .th, .lk-alt:focus-visible .th { box-shadow: 0 0 0 2px var(--accent); }
.lk-note { margin-top: -2px; }
.lk-anchor { font-size: 12px; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--line); margin-bottom: -14px; }
.lk-anchor + .look { border-top: 0; }
.lk-more { display: flex; justify-content: center; padding: 20px 0 8px; }
.look-sk { height: 280px; border-radius: var(--r); margin-top: 18px; }
.qsep { flex: none; width: 1px; height: 20px; background: var(--line); }
.dlook { margin: -6px 0 28px; }
.dlook .look { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.dlook .lk-h { font-size: 16px; }
@media (max-width: 599px) {
  .lk-body { grid-template-columns: 116px minmax(0, 1fr); gap: 12px; }
  .lk-piece { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 2px 10px; }
  .lk-th { width: 48px; }
  .lk-h .num { font-size: 18px; }
  .dlook .look { padding: 14px 12px; }
}
