/* DealMaru · type: Pretendard (SIL OFL 1.1) · icons: Lucide (ISC) · licenses in /licenses */
@font-face { font-family: "Pretendard"; font-weight: 400; font-display: swap; src: url("/static/fonts/Pretendard-Regular.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 500; font-display: swap; src: url("/static/fonts/Pretendard-Medium.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 600; font-display: swap; src: url("/static/fonts/Pretendard-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 700; font-display: swap; src: url("/static/fonts/Pretendard-Bold.woff2") format("woff2"); }

/* ---------- tokens ---------- */
:root {
  --bg: #F4F5F7; --surface: #FFFFFF; --sunk: #F8F9FA;
  --ink: #16191F; --ink-2: #3D4350; --muted: #6B7280; --faint: #A0A6B1;
  --line: #E7E9ED; --line-2: #D3D7DE;
  --brand: #1D3B6E; --brand-hover: #16305C; --brand-soft: #EEF2F9; --brand-ink: #FFFFFF;
  --price: #D92D20; --price-soft: #FDECEA; --good: #17804A; --good-soft: #E9F6EE; --focus: #2F6FEB;
  --warn-bg: #FFF8E6; --warn-ink: #6B4D00;
  --r-tag: 4px; --r: 6px; --r-card: 8px;
  --header-h: 60px; --cats-h: 44px;
  --shadow-bar: 0 -1px 0 var(--line), 0 -8px 24px rgba(16, 24, 40, .06);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1115; --surface: #171A1F; --sunk: #1C2026; --ink: #ECEEF2; --ink-2: #C2C7D0; --muted: #9298A3; --faint: #6B7280;
    --line: #262A31; --line-2: #343943; --brand: #8FB0F0; --brand-hover: #A9C2F4; --brand-soft: #1B2433; --brand-ink: #0F1115;
    --price: #FF6B5E; --price-soft: #3A1E1C; --good: #4CC285; --good-soft: #15281E; --warn-bg: #2B2414; --warn-ink: #F2D58A;
    --shadow-bar: 0 -1px 0 var(--line), 0 -8px 24px rgba(0, 0, 0, .4);
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.55 "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; letter-spacing: -0.01em; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }
.i { vertical-align: -2px; flex: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.inline { display: inline; }
input[type=hidden] { display: none; }
.link { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.small { font-size: 12.5px; color: var(--muted); }
.price, .off, .score b, .pop .n, .v-n, .count, .stat b, .rep b, s { font-variant-numeric: tabular-nums; }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details:not([open]) > :not(summary) { display: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: var(--r); border: 1px solid var(--brand); background: var(--brand); color: var(--brand-ink); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s; }
.btn:hover { text-decoration: none; background: var(--brand-hover); border-color: var(--brand-hover); }
.btn.small { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn.ghost, .btn-line { background: var(--surface); color: var(--brand); border-color: var(--line-2); }
.btn.ghost:hover, .btn-line:hover { background: var(--brand-soft); border-color: var(--brand); }
.btn.wide, .btn-line.wide { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- header ---------- */
.demo-bar { background: #23272F; color: #E6E9EE; font-size: 12px; text-align: center; padding: 5px 16px; line-height: 18px; }
.top { position: sticky; top: 0; z-index: 20; background: var(--surface); box-shadow: 0 1px 0 var(--line); }
.top-row { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { display: flex; align-items: baseline; gap: 7px; font-size: 22px; font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: var(--brand); white-space: nowrap; flex: none; }
.logo small { font-size: 10px; font-weight: 600; letter-spacing: 0.12em; color: var(--faint); text-transform: uppercase; }
.logo:hover { text-decoration: none; }
.search { flex: 1; max-width: 480px; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; background: var(--sunk); border: 1px solid var(--line-2); border-radius: var(--r); color: var(--muted); transition: border-color .15s, box-shadow .15s; }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); background: var(--surface); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14.5px; color: var(--ink); -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: var(--faint); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.acct { display: inline-flex; align-items: baseline; gap: 5px; font-weight: 600; }
.acct b { color: var(--brand); font-weight: 700; font-size: 12px; font-variant-numeric: tabular-nums; }
.hlink { color: var(--muted); }
.hlink:hover { color: var(--ink); }
.btn-post { height: 36px; padding: 0 14px; }
.m-actions { display: none; }

/* categories */
.cats { border-top: 1px solid var(--line); }
.cats-row { display: flex; align-items: stretch; gap: 4px; height: var(--cats-h); overflow-x: auto; scrollbar-width: none; }
.cats-row::-webkit-scrollbar { display: none; }
.cats-row a { position: relative; display: flex; align-items: center; padding: 0 10px; font-size: 15px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.cats-row a:hover { text-decoration: none; color: var(--ink); }
.cats-row a.on { color: var(--ink); font-weight: 700; }
.cats-row a.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; background: var(--brand); }
.cats-row .sep { width: 1px; background: var(--line); margin: 13px 6px; flex: none; }
.disclosure { font-size: 12px; color: var(--muted); margin: 10px auto 0; }

/* ---------- layout ---------- */
main { padding-top: 10px; padding-bottom: 56px; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.main-col { min-width: 0; }

/* ---------- deal board ---------- */
.board { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.board-head { display: flex; align-items: baseline; gap: 8px; padding: 16px 20px 12px; border-bottom: 2px solid var(--ink); }
.board-head h1 { font-size: 18px; line-height: 1.3; margin: 0; font-weight: 700; letter-spacing: -0.02em; }
.board-head .count { color: var(--muted); font-size: 12.5px; }
.sp-head { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); background: var(--sunk); padding: 8px 20px; border-bottom: 1px solid var(--line); }
.sp-head a { color: var(--brand); font-weight: 600; white-space: nowrap; }
.sp-end { height: 6px; background: var(--sunk); border-bottom: 1px solid var(--line); }

.row { position: relative; display: grid; grid-template-columns: 88px minmax(0, 1fr) 96px; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); align-items: center; transition: background-color .12s; }
.row:last-child { border-bottom: 0; }
.row:hover { background: var(--sunk); }
.row.is-sponsored { background: var(--sunk); }
.row h2 a::after { content: ""; position: absolute; inset: 0; }
.row .kicker a, .row .meta a, .row .go, .row .coupon { position: relative; z-index: 1; }

.thumb, .d-img { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #fff; border-radius: var(--r); }
.thumb { width: 88px; height: 88px; }
.thumb::after, .d-img::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); pointer-events: none; }
.thumb img, .d-img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--faint); background: var(--sunk); }

.kicker { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin-bottom: 3px; flex-wrap: wrap; line-height: 18px; }
.kicker .store { color: var(--ink-2); font-weight: 600; }
.sep { color: var(--faint); }
.tag { display: inline-flex; align-items: center; gap: 2px; height: 18px; padding: 0 5px; border-radius: var(--r-tag); font-size: 11px; font-weight: 700; line-height: 1; white-space: nowrap; color: var(--ink-2); background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line-2); }
.tag-hot { color: #fff; background: var(--price); box-shadow: none; }
.tag-biz { color: var(--good); background: var(--good-soft); box-shadow: none; }
.tag-pick { color: var(--brand); background: var(--brand-soft); box-shadow: none; }
.tag-end { color: #fff; background: var(--muted); box-shadow: none; }

.row h2 { font-size: 15px; font-weight: 600; line-height: 1.45; margin: 0; letter-spacing: -0.015em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-wrap: pretty; }
.row h2 a:hover { text-decoration: underline; }
.row h2 a:visited { color: #5C6370; }
.prices { display: flex; align-items: baseline; gap: 6px; margin-top: 5px; flex-wrap: wrap; line-height: 1.2; }
.price { font-size: 17px; font-weight: 700; color: var(--price); letter-spacing: -0.01em; }
.off { align-self: center; font-size: 12px; font-weight: 700; color: var(--price); background: var(--price-soft); padding: 2px 5px; border-radius: var(--r-tag); line-height: 1.2; }
.prices s { color: var(--muted); font-size: 12.5px; text-decoration-thickness: 1px; }
.stamp { color: var(--muted); font-size: 12.5px; }
.price-check { position: relative; z-index: 1; color: var(--brand); font-size: 13px; font-weight: 500; }
.extra { margin-top: 5px; font-size: 12.5px; min-width: 0; }
.why { display: block; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coupon { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; color: var(--good); background: var(--good-soft); border: 1px dashed var(--good); border-radius: var(--r-tag); }
.meta { display: flex; gap: 6px; align-items: center; font-size: 12.5px; line-height: 1.4; color: var(--muted); margin-top: 6px; flex-wrap: wrap; }
.meta .who { color: var(--ink-2); font-weight: 600; }
.meta .cmt { display: inline-flex; align-items: center; gap: 3px; }
.m-score { display: none; }
.m-score.hot { color: var(--price); font-weight: 700; }

.side-act { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.score { text-align: center; line-height: 1.1; }
.score b { display: block; font-size: 20px; font-weight: 700; color: var(--ink-2); }
.score span { font-size: 11px; color: var(--muted); }
.score.hot b { color: var(--price); }
.go { display: inline-flex; align-items: center; justify-content: center; gap: 3px; height: 32px; font-size: 13px; font-weight: 600; color: var(--brand); border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); transition: border-color .15s, background-color .15s; }
.go:hover { border-color: var(--brand); background: var(--brand-soft); text-decoration: none; }

.is-expired .thumb img, .is-expired .d-img img { filter: grayscale(1); opacity: .7; }
.is-expired .price { color: var(--muted); text-decoration: line-through; }
.is-expired h2 { color: var(--muted); }

.empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 48px 20px; text-align: center; color: var(--faint); }
.empty p { margin: 6px 0 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.empty span { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
p.empty { display: block; color: var(--muted); font-size: 14px; }

/* Short labels stay on one line (also keeps print-based screenshots honest). */
.board-head h1, .board-head .count, .kicker > *, .meta > *, .tag, .price, .off, .prices s, .stamp, .acct, .hlink, .crumbs a, .c-who > *, .foot-name,
.go, .box h3, .text-link, .price-check, .ad-label, .coupon, .copy, .btn, .vote button, .report summary { white-space: nowrap; }
.extra { display: flex; }
.top-right { justify-content: flex-end; flex: 0 0 auto; }
.top-right > * { flex: none; }
.sp-head span { flex: 1; min-width: 0; }
.board-search { margin: 14px 20px 6px; max-width: none; }

/* ---------- sidebar ---------- */
.side .box, .m-top { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px 18px; margin-bottom: 12px; }
.side-sticky { position: sticky; top: calc(var(--header-h) + var(--cats-h) + 16px); }
.box h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 15px; font-weight: 700; }
.box p { margin: 0 0 10px; font-size: 13px; color: var(--ink-2); }
.pop { list-style: none; margin: 0; padding: 0; }
.pop li { display: flex; gap: 10px; align-items: center; height: 36px; font-size: 13.5px; border-top: 1px solid var(--line); }
.pop li:first-child { border-top: 0; }
.pop a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop .n { width: 16px; text-align: center; font-weight: 700; color: var(--faint); flex: none; }
.pop .n.top3 { color: var(--brand); }
.box-biz { background: var(--brand-soft) !important; border-color: transparent !important; }
.box-lv p { margin-bottom: 6px; }
.text-link { display: inline-flex; align-items: center; gap: 2px; color: var(--brand); font-weight: 600; font-size: 13px; }
.m-top { display: none; }

/* ads: reserved height so the page doesn't jump when an ad loads */
.ad { position: relative; margin: 0 0 12px; }
.ad-label { position: absolute; top: 6px; left: 8px; font-size: 11px; color: var(--faint); }
.ad-feed { min-height: 100px; }
.ad-sidebar { min-height: 250px; }
.ad-detail { min-height: 100px; margin-top: 12px; }
.ad-demo { display: flex; align-items: center; justify-content: center; border: 1px dashed var(--line-2); border-radius: var(--r-card); color: var(--faint); font-size: 12px; background: var(--surface); }
.board .ad-demo { border-width: 0 0 1px; border-style: solid; border-color: var(--line); border-radius: 0; margin: 0; background: var(--sunk); }

/* ---------- deal page ---------- */
.crumbs { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); margin: 0 0 10px; }
.detail { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.d-body { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; padding: 24px; }
.d-img { width: 280px; height: 280px; }
.d-img img { padding: 16px; }
.d-info h1 { font-size: 22px; line-height: 1.35; margin: 2px 0 0; font-weight: 700; letter-spacing: -0.025em; text-wrap: pretty; }
.orig { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.d-info .meta { margin-top: 8px; }
.price-hero { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.prices.big { margin: 0; gap: 8px; }
.prices.big .price { font-size: 28px; letter-spacing: -0.02em; }
.prices.big .off { font-size: 13px; padding: 3px 6px; }
.prices.big s { font-size: 15px; }
.prices.big .stamp { flex-basis: 100%; font-size: 12.5px; margin-top: 2px; }
.price-none { color: var(--muted); font-size: 14px; }
.coupon-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.coupon.big { height: 32px; font-size: 14px; padding: 0 10px; }
.copy { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.btn-buy { width: 100%; height: 52px; margin-top: 16px; border-radius: var(--r-card); font-size: 16px; font-weight: 700; gap: 6px; }
.legal { margin: 8px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.bot-note { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: start; margin: 0 24px 16px; padding: 12px 14px; background: var(--sunk); border: 1px solid var(--line); border-radius: var(--r); font-size: 13px; color: var(--ink-2); }
.bn-ico { display: flex; margin-top: 1px; color: var(--muted); }
.bot-note b { font-size: 13px; font-weight: 600; color: var(--ink); }
.bot-note p { margin: 2px 0 0; }
.summary { margin: 0 24px; padding: 0 0 20px; font-size: 15px; line-height: 1.7; }
.d-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 24px; border-top: 1px solid var(--line); }
.vote { display: flex; align-items: center; gap: 8px; }
.vote button { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); color: var(--ink-2); font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .15s, background-color .15s, color .15s; }
.vote button:hover { border-color: var(--ink-2); }
.vote .v-n { font-size: 15px; font-weight: 700; color: var(--ink); }
.vote button.on.up { border-color: var(--price); color: var(--price); background: var(--price-soft); }
.vote button.on.up .v-n { color: var(--price); }
.vote button.on.down { border-color: var(--ink-2); color: var(--ink); background: var(--sunk); }
.report { position: relative; font-size: 13px; color: var(--muted); }
.d-act-r { display: flex; align-items: center; gap: 6px; }
.share { display: inline-flex; align-items: center; gap: 5px; height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.share:hover { border-color: var(--ink); }
.buybar .share { display: none; }
.report summary { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 6px; }
.report form { position: absolute; right: 0; bottom: 44px; z-index: 5; display: flex; flex-direction: column; min-width: 140px; padding: 4px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: 0 8px 24px rgba(16, 24, 40, .12); }
.report form button { text-align: left; height: 40px; padding: 0 10px; border: 0; background: none; border-radius: 4px; cursor: pointer; font-size: 13.5px; color: var(--ink-2); }
.report form button:hover { background: var(--sunk); }
.notice { display: flex; gap: 6px; align-items: center; margin: 16px 24px 0; padding: 9px 12px; border-radius: var(--r); background: var(--warn-bg); color: var(--warn-ink); font-size: 13px; }
.notice-ad { background: var(--sunk); color: var(--ink-2); }
.buybar { display: none; }

.comments { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); margin-top: 12px; padding: 4px 24px 20px; }
.comments h2 { font-size: 15px; font-weight: 700; padding: 14px 0 12px; margin: 0; border-bottom: 2px solid var(--ink); }
.comments h2 b { color: var(--brand); }
.comment { padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.65; }
.c-who { display: flex; gap: 6px; align-items: center; font-size: 12.5px; }
.c-who a { font-weight: 700; }
.c-time { color: var(--muted); }
.c-empty { color: var(--muted); padding: 20px 0 4px; margin: 0; font-size: 13.5px; }
.lv { font-size: 11px; color: var(--brand); background: var(--brand-soft); border-radius: var(--r-tag); padding: 1px 5px; font-weight: 600; }
.comment-form { margin-top: 14px; }
.comment-form textarea { width: 100%; min-height: 88px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r); font: inherit; font-size: 14.5px; background: var(--surface); color: var(--ink); }
.comment-form textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.right { display: flex; justify-content: flex-end; margin-top: 8px; }
.login-hint { color: var(--muted); padding-top: 14px; margin: 0; }
.login-hint a { color: var(--brand); font-weight: 600; }
.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50; background: #23272F; color: #fff; font-size: 13px; padding: 9px 14px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }

/* forms and other pages */
.form-page, .prose, .admin, .profile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px 28px; }
.form-page { max-width: 720px; margin: 0 auto; }
.form-page.narrow { max-width: 420px; }
.form-page h1, .prose h1, .admin h1 { font-size: 21px; margin: 0 0 16px; letter-spacing: -0.02em; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 13.5px; }
.stack input, .stack select, .stack textarea { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r); font: inherit; font-weight: 400; background: var(--surface); color: var(--ink); }
.stack textarea { height: auto; padding: 10px 12px; }
.stack label.check { flex-direction: row; font-weight: 400; align-items: flex-start; gap: 8px; }
.stack label.check input { width: auto; height: auto; margin-top: 4px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.plans { display: grid; gap: 8px; }
.stack label.plan { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; border: 1px solid var(--line-2); border-radius: var(--r); padding: 12px 14px; }
.stack label.plan input { width: auto; height: auto; margin-top: 4px; }
.stack label.plan b { font-weight: 700; }
.error { background: var(--price-soft); color: var(--price); border-radius: var(--r); padding: 9px 12px; }
.profile { margin-bottom: 12px; }
.profile h1 { margin: 0; font-size: 21px; }
.rep b { font-size: 26px; color: var(--brand); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.badge { background: var(--warn-bg); color: var(--warn-ink); border-radius: 3px; font-size: 12px; padding: 1px 8px; font-weight: 600; }
.events { font-size: 13px; color: var(--ink-2); }
.board-list { list-style: none; padding: 0; margin: 0; }
.board.lb li, ol.board { list-style: none; }
ol.board { padding: 0; }
ol.board li { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
ol.board .rank { width: 24px; font-weight: 700; color: var(--brand); }
ol.board b { margin-left: auto; }
.admin table { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-size: 13px; }
.admin th { text-align: left; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--ink); padding: 8px; }
.admin td { border-bottom: 1px solid var(--line); padding: 9px 8px; vertical-align: top; }
.admin td:nth-child(3) { white-space: nowrap; }
.admin td:last-child { width: 132px; white-space: nowrap; }
.admin td:last-child form { display: inline-block; }
.admin td:last-child .btn { width: auto; padding: 0 12px; }
.admin td:last-child form + form { margin-left: 4px; }
.admin h2 { font-size: 16px; margin: 20px 0 8px; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 16px; }
.stat { padding: 14px 16px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-size: 22px; font-weight: 700; }
.stat span { color: var(--muted); font-size: 12px; }
.prose { max-width: 760px; margin: 0 auto; font-size: 14.5px; line-height: 1.75; }
.prose h2 { font-size: 16px; margin-top: 24px; }

.stack input:focus, .stack select:focus, .stack textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
h2.h { font-size: 15px; margin: 20px 0 8px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 12px; line-height: 1.6; padding: 28px 0 40px; }
.foot p { margin: 4px 0; }
.foot-name { font-weight: 700; color: var(--ink-2); font-size: 14px; }
.foot-name span { font-size: 10px; font-weight: 600; letter-spacing: .12em; color: var(--faint); margin-left: 4px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px !important; }
.foot-links a, .foot-links .link { color: var(--ink-2); white-space: nowrap; }

/* ---------- "us" brand style (config/site.json brandStyle) ---------- */
.style-us { --brand: #13294B; --brand-hover: #0E1F3A; --accent: #C8102E; }
.style-us .logo-us { align-items: center; gap: 0; font-size: 22px; letter-spacing: -0.03em; }
.style-us .logo-us em { font-style: normal; color: var(--accent); }
.style-us .logo-us .star { display: inline-flex; flex: none; width: 28px; height: 28px; margin-right: 8px; border-radius: 50%; background: var(--accent); align-items: center; justify-content: center; }
.style-us .logo-us small { margin-left: 8px; padding: 2px 6px; border: 1px solid var(--line-2); border-radius: 3px; font-size: 11px; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
@media (prefers-color-scheme: dark) { .style-us { --brand: #9DB7FF; --accent: #FF5A6E; } }


/* ---------- "pop" brand style (brandStyle "pop"): black, white and one loud orange ----------
   Image-first tiles, a big discount sticker, black prices, savings in plain words, one orange buy button. */
.style-pop {
  --bg: #F2F2EE; --surface: #FFFFFF; --sunk: #F6F6F3; --ink: #111111; --ink-2: #33332F; --muted: #6A6A64; --faint: #A3A39C;
  --line: #E6E6E0; --line-2: #D4D4CC;
  --brand: #111111; --brand-hover: #000000; --brand-soft: #EDEDE7; --brand-ink: #FFFFFF;
  --hot: #FF5A1F; --hot-hover: #F04A0E; --hot-ink: #C2410C; --price: #111111; --price-soft: #FFEDE4; --img-bg: #F4F4F1;
  --r: 10px; --r-card: 16px; --r-tag: 6px; --header-h: 64px; --cats-h: 56px;
}
@media (prefers-color-scheme: dark) {
  .style-pop { --bg: #0C0C0B; --surface: #171715; --sunk: #1E1E1B; --ink: #F4F4EF; --ink-2: #D2D2CB; --muted: #9A9A92; --faint: #6A6A64;
    --line: #2A2A26; --line-2: #3A3A35; --brand: #F4F4EF; --brand-hover: #FFFFFF; --brand-soft: #262622; --brand-ink: #0C0C0B; --price: #F4F4EF; --price-soft: #3A2116; --hot-ink: #FF8A5C; --img-bg: #1E1E1B; }
}
.style-pop { font-size: 14.5px; }
.style-pop .price, .style-pop .sticker, .style-pop .rk, .style-pop .heat { font-variant-numeric: tabular-nums; }

/* header: solid black bar */
.style-pop .top { background: #111; box-shadow: none; }
.style-pop .top-row { color: #fff; }
.logo-pop { display: flex; align-items: center; gap: 3px; font-size: 24px; font-weight: 700; letter-spacing: -0.05em; color: #fff; }
.logo-pop i { width: 8px; height: 8px; border-radius: 50%; background: var(--hot); margin-top: 10px; }
.style-pop .top-row > .search { background: #fff; border-color: #fff; border-radius: 999px; height: 42px; padding: 0 16px; color: #6A6A64; }
.style-pop .top-row > .search:focus-within { box-shadow: 0 0 0 3px rgba(255, 90, 31, .45); }
.style-pop .search input { color: #111; }
.style-pop .top-right { color: #D2D2CB; }
.style-pop .acct b { color: var(--hot); }
.style-pop .hlink { color: #B8B8B0; }
.style-pop .hlink:hover { color: #fff; }
.style-pop .btn-post { background: var(--hot); border-color: var(--hot); color: #111; border-radius: 999px; height: 38px; font-weight: 700; }
.style-pop .btn-post:hover { background: var(--hot-hover); border-color: var(--hot-hover); }
.style-pop .icon-btn { color: #fff; }
.style-pop .icon-btn svg { stroke: #fff; }

/* category chips with icons */
.style-pop .cats { border-top: 0; background: var(--surface); box-shadow: 0 1px 0 var(--line); }
.style-pop .cats-row { gap: 8px; align-items: center; }
.style-pop .cats-row a { gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.style-pop .cats-row a:hover { border-color: var(--ink); }
.style-pop .cats-row a.on { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.style-pop .cats-row a.on::after { display: none; }
.style-pop .cats-row .sep { margin: 12px 2px; }
.style-pop .disclosure { margin-top: 12px; }

/* spotlight: one deal, big */
.spot { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: center; background: #111; color: #fff; border-radius: 20px; padding: 20px; margin-bottom: 16px; }
.spot-img { position: relative; display: flex; align-items: center; justify-content: center; width: 300px; height: 260px; border-radius: 14px; overflow: hidden; background: #fff; }
.spot-img img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.spot-k { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; background: #fff; color: #111; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.spot h2 { margin: 14px 0 0; font-size: 24px; line-height: 1.35; letter-spacing: -0.03em; font-weight: 700; text-wrap: pretty; }
.spot h2 a:hover { text-decoration: none; color: var(--hot); }
.spot-price { display: flex; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.spot-price .price { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: #fff; white-space: nowrap; }
.spot-price s { color: #8A8A84; font-size: 17px; white-space: nowrap; }
.spot-noimg { grid-template-columns: minmax(0, 1fr); }
.spot-info { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.spot-info > .btn-cta, .spot-info > h2, .spot-info > .spot-price { align-self: stretch; }
.spot .save { margin-top: 10px; }
.btn-cta { display: flex; align-items: center; justify-content: center; gap: 6px; height: 54px; margin-top: 18px; border-radius: 999px; background: var(--hot); color: #111; font-size: 16.5px; font-weight: 700; white-space: nowrap; transition: background-color .15s, transform .15s; }
.btn-cta:hover { background: var(--hot-hover); text-decoration: none; }
.btn-cta:active { transform: scale(.98); }

/* discount sticker and savings */
.sticker { display: inline-flex; align-items: center; height: 30px; padding: 0 9px; border-radius: 8px; background: var(--hot); color: #111; font-size: 17px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }
.spot .sticker { height: 40px; padding: 0 12px; font-size: 24px; border-radius: 10px; }
.save { display: inline-flex; width: max-content; align-items: center; height: 24px; padding: 0 8px; border-radius: 6px; background: var(--price-soft); color: var(--hot-ink); font-size: 12.5px; font-weight: 700; white-space: nowrap; }

/* top 5 strip: phones and tablets only, the sidebar has the same list on desktop */
.ranks { display: none; background: var(--surface); border-radius: var(--r-card); padding: 16px 18px 6px; margin-bottom: 20px; }
.ranks h2 { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 16px; font-weight: 700; white-space: nowrap; }
.ranks h2 .i { color: var(--hot); }
.ranks ol { list-style: none; margin: 0; padding: 0; }
.ranks li { display: grid; grid-template-columns: 28px 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; height: 64px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.ranks li:first-child { border-top: 0; }
.ranks .rk { font-size: 22px; font-weight: 700; font-style: italic; letter-spacing: -0.04em; color: var(--ink); text-align: center; }
.ranks li:nth-child(n+4) .rk { color: var(--faint); }
.rk-img { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 10px; overflow: hidden; background: var(--img-bg); }
.rk-img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.ranks a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranks li b { font-size: 15px; white-space: nowrap; }

/* feed */
.feed-head { display: flex; align-items: baseline; gap: 8px; margin: 4px 2px 12px; }
.feed-head h1 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.03em; white-space: nowrap; }
.feed-head .count { color: var(--muted); font-size: 13px; white-space: nowrap; }
.style-pop .sp-head { background: none; border: 0; padding: 0 2px 8px; }
.sp-gap { height: 12px; border-bottom: 1px dashed var(--line-2); margin-bottom: 16px; }
.tiles { display: flex; flex-wrap: wrap; gap: 14px; }
.tiles > .tile { width: calc((100% - 28px) / 3); }
.t-ad { width: 100%; }
.t-ad .ad { margin: 0; }

.tile { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-card); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(17, 17, 17, .10); }
.tile h2 a::after { content: ""; position: absolute; inset: 0; }
.tile .t-go, .tile .price-check, .tile .coupon { position: relative; z-index: 1; }
.t-img { position: relative; display: flex; align-items: center; justify-content: center; height: 196px; background: var(--img-bg); }
.t-img img { width: 100%; height: 100%; object-fit: contain; padding: 22px; mix-blend-mode: multiply; }
.t-img .noimg { background: none; }
.t-img .sticker { position: absolute; left: 10px; top: 10px; z-index: 2; }
.t-flags { position: absolute; right: 10px; top: 10px; z-index: 2; display: flex; gap: 4px; }
.t-flags .tag { height: 22px; padding: 0 7px; font-size: 11.5px; border-radius: 999px; box-shadow: none; background: #111; color: #fff; }
.t-flags .tag-hot { background: #fff; color: #111; }
.t-flags .tag-hot .i { color: var(--hot); }
.t-flags .tag-biz { background: #fff; color: #17804A; }
.t-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 4px; flex: 1; }
.t-store { font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile h2 { margin: 0; font-size: 15px; line-height: 1.42; font-weight: 600; letter-spacing: -0.02em; min-height: 2.84em; max-height: 2.84em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile h2 a:hover { text-decoration: none; }
.t-price { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.t-price .price { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; color: var(--price); white-space: nowrap; }
.t-price s { color: var(--faint); font-size: 13px; white-space: nowrap; }
.t-price .stamp { flex-basis: 100%; }
.t-sale { font-size: 16px; font-weight: 700; white-space: nowrap; }
.t-body > .save, .t-body > .coupon { align-self: flex-start; width: max-content; }
.t-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 8px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.heat { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; color: var(--ink-2); }
.heat.hot { color: var(--hot); }
.t-foot .cmt { display: inline-flex; align-items: center; gap: 3px; }
.t-ago { margin-left: auto; }
.t-go { display: flex; align-items: center; justify-content: center; gap: 4px; height: 42px; margin: 10px 14px 14px; border-radius: 999px; background: var(--ink); color: var(--surface); font-size: 14px; font-weight: 700; white-space: nowrap; transition: background-color .15s; }
.t-go:hover { background: var(--hot); color: #111; text-decoration: none; }
.tile.is-sponsored { box-shadow: inset 0 0 0 1px var(--line-2); }
.tile.is-expired .t-img { filter: grayscale(1); opacity: .6; }
.tile.is-expired .price { color: var(--muted); text-decoration: line-through; }


/* sidebar */
.style-pop .side .box { border: 0; border-radius: var(--r-card); }
.style-pop .pop .n.top3 { color: var(--hot); }
.style-pop .box-biz { background: var(--surface) !important; border: 1.5px solid var(--ink) !important; color: var(--ink); }
.style-pop .box-biz p { color: var(--ink-2); }
.style-pop .box-biz .text-link { color: var(--hot-ink); }
.style-pop .text-link { color: var(--ink); }
.style-pop .ad-demo { border-radius: var(--r-card); }

/* deal page */
.style-pop .detail, .style-pop .comments { border: 0; border-radius: 20px; }
.style-pop .d-body { grid-template-columns: 340px minmax(0, 1fr); gap: 32px; }
.style-pop .d-img { width: 340px; height: 340px; border-radius: 16px; background: var(--img-bg); }
.style-pop .d-img::after { box-shadow: none; }
.style-pop .d-img img { mix-blend-mode: multiply; padding: 28px; }
.style-pop .d-img .noimg { background: none; }
.style-pop .d-info h1 { font-size: 25px; letter-spacing: -0.035em; }
.style-pop .price-hero { border-top: 0; margin-top: 18px; padding: 20px; background: var(--sunk); border-radius: 16px; }
.style-pop .prices.big { align-items: center; }
.style-pop .prices.big .price { font-size: 40px; letter-spacing: -0.035em; color: var(--ink); }
.style-pop .prices.big .off { order: -1; height: 36px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 9px; background: var(--hot); color: #111; font-size: 21px; letter-spacing: -0.03em; }
.style-pop .prices.big s { color: var(--faint); font-size: 17px; }
.style-pop .price-hero { display: flex; flex-direction: column; align-items: flex-start; }
.style-pop .price-hero > .prices, .style-pop .price-hero > .coupon-row, .style-pop .price-hero > .btn-buy, .style-pop .price-hero > .legal { align-self: stretch; }
.style-pop .price-hero .save { margin-top: 10px; height: 28px; font-size: 14px; padding: 0 10px; }
.style-pop .btn-buy { height: 58px; border-radius: 999px; background: var(--hot); border-color: var(--hot); color: #111; font-size: 17px; }
.style-pop .btn-buy:hover { background: var(--hot-hover); border-color: var(--hot-hover); }
.style-pop .coupon { border-radius: 8px; color: var(--ink); background: var(--surface); border-color: var(--ink); }
.style-pop .vote button { border-radius: 999px; }
.style-pop .vote button.on.up { border-color: var(--hot); color: #111; background: var(--price-soft); }
.style-pop .vote button.on.up .v-n { color: #111; }
.style-pop .comments h2 { border-bottom: 0; }
.style-pop .comments h2 b, .style-pop .lv { color: var(--ink); }
.style-pop .bot-note { border: 0; border-radius: 12px; }
.style-pop .board, .style-pop .form-page, .style-pop .prose, .style-pop .admin, .style-pop .profile { border: 0; border-radius: 20px; }
.style-pop .board-head { border-bottom-color: var(--line); }
.style-pop .foot { background: #111; color: #9A9A92; border-top: 0; }
.style-pop .foot-name, .style-pop .foot-links a, .style-pop .foot-links .link { color: #E6E6E0; }

/* demo renders only: lifestyle photos fill the frame instead of sitting on the gray */
.style-pop img[src*="/static/demo-"] { object-fit: cover; padding: 0 !important; mix-blend-mode: normal; }

/* ---------- tablet ---------- */
@media (max-width: 960px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .m-top { display: block; margin-top: 12px; }
  .search { max-width: none; }
}

/* ---------- phone ---------- */
@media (max-width: 640px) {
  :root { --header-h: 52px; --cats-h: 48px; }
  body { font-size: 14.5px; }
  .wrap { padding: 0 16px; }
  .top { padding-top: env(safe-area-inset-top); }
  .top-row { gap: 8px; }
  .logo { font-size: 20px; }
  .logo small { display: none; }
  .top-row > .search, .top-right { display: none; }
  .top-row { justify-content: space-between; }
  .m-actions { display: flex; flex: none; width: 132px; align-items: center; gap: 0; margin-right: -8px; }
  .icon-btn { display: flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink); }
  .icon-btn:active { background: var(--sunk); }
  .board-search { margin: 12px 16px 4px; height: 44px; }
  .board-search input { font-size: 16px; }

  /* category chips */
  .cats { border-top: 0; box-shadow: 0 1px 0 var(--line); }
  .cats-row { gap: 6px; align-items: center; padding: 0 16px; scroll-snap-type: x proximity; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .cats-row a { height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--line-2); font-size: 14px; scroll-snap-align: start; background: var(--surface); }
  .cats-row a.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
  .cats-row a.on::after { display: none; }
  .cats-row a::before { content: ""; position: absolute; inset: -4px 0; }
  .cats-row .sep { display: none; }
  .cats-row::after { content: ""; flex: 0 0 24px; }

  .disclosure { margin-top: 10px; padding: 0 16px; font-size: 11.5px; }
  main.wrap { padding: 8px 0 32px; }
  .board, .detail, .comments { border-radius: 0; border-left: 0; border-right: 0; }
  .board-head { padding: 14px 16px 10px; }
  .board-head h1 { font-size: 17px; }
  .sp-head { padding: 8px 16px; }

  .row { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 14px 16px; min-height: 104px; align-items: start; }
  .row:hover { background: none; }
  .row:active { background: var(--sunk); }
  .row.is-sponsored { background: var(--sunk); }
  .thumb { width: 76px; height: 76px; }
  .side-act, .why { display: none; }
  .extra:has(.why):not(:has(.coupon)) { display: none; }
  .row h2 { font-size: 15px; }
  .meta { font-size: 12px; margin-top: 5px; }
  .m-score { display: inline-flex; gap: 6px; }
  .m-top { margin: 12px 0 0; border-radius: 0; border-left: 0; border-right: 0; padding: 14px 16px; }
  .crumbs { display: none; }

  /* deal page */
  .d-body { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; }
  .d-img { width: 100%; height: auto; aspect-ratio: 1 / 1; max-height: 56vh; border-radius: 0; border-bottom: 1px solid var(--line); }
  .d-img img { padding: 24px; }
  .d-info { padding: 16px; }
  .d-info h1 { font-size: 19px; line-height: 1.4; }
  .prices.big .price { font-size: 26px; }
  .coupon-row { justify-content: space-between; }
  .copy { height: 44px; padding: 0 14px; }
  .price-hero .btn-buy { display: none; }
  .notice { margin: 12px 16px 0; }
  .bot-note { margin: 0 16px 14px; }
  .summary { margin: 0 16px; }
  .d-actions { padding: 8px 16px; }
  .d-actions .vote { display: none; }
  .d-actions { justify-content: flex-end; }
  .comments { padding: 4px 16px 16px; }
  .comment-form textarea, .stack input, .stack select, .stack textarea { font-size: 16px; }

  .has-buybar { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .buybar { display: flex; align-items: stretch; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); background: var(--surface); box-shadow: var(--shadow-bar); }
  .buybar .btn-buy { height: 48px; margin: 0; }
  .buybar > .vote { flex: 0 0 56px; }
  .buybar .share { display: inline-flex; flex: 0 0 56px; width: 56px; justify-content: center; height: 48px; padding: 0; border-radius: 14px; }
  .buybar .btn-buy { flex: 1 1 auto; min-width: 0; }
  .vote-compact button { flex-direction: column; justify-content: center; gap: 0; width: 56px; height: 48px; padding: 0; font-size: 11px; }
  .vote-compact .v-lbl { display: none; }
  .vote-compact .v-n { font-size: 12px; line-height: 1.2; }
  .foot { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
  .has-buybar .foot { padding-bottom: 24px; }

  /* forms and other pages */
  .form-page, .prose, .admin, .profile { border-radius: 0; border-left: 0; border-right: 0; padding: 20px 16px; }
  .row3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .admin { overflow-x: auto; }
}



@media (max-width: 960px) {
  .style-pop .ranks { display: block; }
}
@media (max-width: 640px) {
  .style-pop { --header-h: 56px; --cats-h: 56px; }
  .logo-pop { font-size: 22px; }
  .style-pop .cats-row a { height: 36px; padding: 0 13px; border: 1px solid var(--line-2); }
  .style-pop .cats-row a.on { background: var(--ink); border-color: var(--ink); color: var(--surface); }
  .style-pop main.wrap { padding: 8px 12px 32px; }
  .style-pop .disclosure { padding: 0 16px; }

  .spot { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; border-radius: 18px; overflow: hidden; margin-bottom: 12px; }
  .spot .spot-img { width: 100%; height: 170px; border-radius: 0; }
  .spot-info { padding: 16px 16px 18px; }
  .spot h2 { font-size: 19px; margin-top: 10px; }
  .spot-price { margin-top: 12px; }
  .spot-price .price { font-size: 34px; }
  .spot .sticker { height: 34px; font-size: 20px; }
  .btn-cta { height: 52px; margin-top: 14px; }

  .ranks { padding: 14px 14px 4px; margin-bottom: 16px; }
  .ranks li { grid-template-columns: 22px 44px minmax(0, 1fr) auto; gap: 10px; height: 60px; }
  .rk-img { width: 44px; height: 44px; }
  .ranks .rk { font-size: 19px; }

  .feed-head { margin: 4px 4px 10px; }
  .feed-head h1 { font-size: 19px; }
  .style-pop .sp-head { padding: 0 4px 8px; }
  .tiles { gap: 8px; }
  .tiles > .tile { width: calc((100% - 8px) / 2); }
  .tile { border-radius: 14px; }
  .tile:hover { transform: none; box-shadow: none; }
  .t-img { height: 150px; }
  .t-img img { padding: 16px; }
  .t-img .sticker { left: 8px; top: 8px; height: 26px; font-size: 15px; padding: 0 7px; }
  .t-flags { right: 8px; top: 8px; }
  .t-flags .tag { height: 20px; font-size: 11px; padding: 0 6px; }
  .t-body { padding: 10px 11px 2px; gap: 3px; }
  .t-store { font-size: 12px; }
  .tile h2 { font-size: 14px; }
  .t-price .price { font-size: 19px; }
  .t-price s { font-size: 12px; }
  .save { height: 22px; font-size: 11.5px; padding: 0 6px; }
  .t-foot { font-size: 11.5px; gap: 8px; padding-top: 6px; }
  .t-go { height: 40px; margin: 8px 10px 10px; font-size: 13.5px; }

  /* deal page */
  .style-pop .detail, .style-pop .comments { border-radius: 18px; }
  .style-pop .d-body { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .style-pop .d-img { width: 100%; height: 300px; border-radius: 0; }
  .style-pop .d-info h1 { font-size: 20px; }
  .style-pop .price-hero { padding: 16px; }
  .style-pop .prices.big .price { font-size: 34px; }
  .style-pop .prices.big .off { height: 32px; font-size: 18px; }
  .style-pop .buybar { background: #111; box-shadow: none; }
  .style-pop .buybar .btn-buy { height: 50px; }
  .style-pop .buybar .vote button { background: #222; border-color: #333; color: #fff; border-radius: 14px; }
  .style-pop .buybar .share { background: #222; border-color: #333; color: #fff; }
  .style-pop .buybar .vote .v-n { color: #fff; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Ending soon, conditions in words, where you pay, who runs the site (from the usability round). */
.tag-ends { color: var(--surface, #fff); background: var(--ink); box-shadow: none; }
.cond { display: inline-block; max-width: 100%; font-size: 12.5px; line-height: 1.45; color: var(--ink); background: var(--img-bg, #F4F4F1); border-radius: var(--r-tag); padding: 4px 8px; }
.cond.big { display: block; font-size: 14px; padding: 8px 10px; margin: 8px 0 0; }
.cond.big svg { vertical-align: -2px; margin-right: 4px; }
.ends { display: block; margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink); }
.ends svg { vertical-align: -2px; margin-right: 4px; }
.price-hero .price-none { display: block; width: 100%; white-space: normal; }
.ends b { font-weight: 700; }
.t-body > .cond { align-self: flex-start; }
.style-pop .price-hero > .cond, .style-pop .price-hero > .ends { align-self: stretch; }
.foot-op a { color: inherit; text-decoration: underline; }
.levels { margin-top: 20px; padding: 16px; }
.levels h2 { margin: 0 0 8px; font-size: 16px; }
.levels ol { margin: 0 0 8px; padding-left: 20px; line-height: 1.8; }
.intro { max-width: var(--wrap, 1200px); margin: 0 auto 14px; padding: 12px 16px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); background: var(--surface); border-radius: 12px; }
.intro b { color: var(--ink); }

/* Filter chips on list pages (discount, ending soon, price, store). Black when on; orange stays for savings only. */
.filters { margin: -4px 0 14px; }
.fbar { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; }
.fbar::-webkit-scrollbar { display: none; }
.fbar + .fbar { margin-top: 4px; }
.fchip { flex: none; display: inline-flex; align-items: center; height: 32px; padding: 0 13px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.fchip:hover { text-decoration: none; border-color: var(--ink); color: var(--ink); }
.fchip.on { background: var(--ink); border-color: var(--ink); color: var(--surface); font-weight: 600; }
.fchip.fclear { border-style: dashed; color: var(--muted); }
.flabel { flex: none; white-space: nowrap; font-size: 12.5px; color: var(--muted); margin-right: 2px; }

/* Admin: revenue and promo pages */
.admin-links { display: flex; gap: 8px; flex-wrap: wrap; margin: -6px 0 16px; }
.admin-links a { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 600; }
.admin h2 { font-size: 15px; margin: 24px 0 10px; }
.admin .small { font-size: 12.5px; color: var(--muted); margin: 6px 0 16px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.bars span { flex: 1; min-width: 4px; background: var(--hot, var(--brand)); border-radius: 3px 3px 0 0; }
.earn-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 18px; }
.earn-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.earn-form input, .earn-form select { box-sizing: border-box; height: 38px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; }
.earn-form input[name=month] { width: 100px; } .earn-form input[name=amount] { width: 110px; }
form.inline { display: inline; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.promo-card { display: block; width: 100%; max-width: 540px; height: auto; border-radius: 14px; margin: 8px 0 14px; box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(0,0,0,.08); }
.post-text { width: 100%; white-space: pre-wrap; word-break: break-word; user-select: all; -webkit-user-select: all; margin: 0; font: inherit; font-size: 13px; line-height: 1.55; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--sunk); color: var(--ink); resize: vertical; }
.admin .notice { margin: 0 0 14px; }
.revenue .months td, .revenue .months th, .revenue .entries td, .revenue .entries th { white-space: nowrap; }
.phone-only { display: none; }
@media (max-width: 640px) { .two-col { grid-template-columns: 1fr; } .admin table { font-size: 12px; } .revenue .opt { display: none; } .revenue .phone-only { display: block; } .earn-form { display: block; } .earn-form label { display: block; margin-bottom: 10px; } .earn-form label input, .earn-form label select { display: block; width: 100% !important; margin-top: 4px; } .earn-form .btn { width: 100%; } }
.soc { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.soc > div { display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; min-width: 0; }
.soc b { white-space: nowrap; } .soc a.btn { color: var(--brand-ink); flex: none; }
.soc span { font-size: 13px; color: var(--muted); }
.admin code { font-size: 12px; word-break: break-all; }

/* Submit: link first, everything else fills itself */
.submit-form .hint{display:block;font-weight:400;font-size:12.5px;color:var(--muted,#6b6b66);margin:2px 0 6px}
.submit-form .url-row{display:block}
.submit-form .url-row input{display:block;width:100%;max-width:100%;box-sizing:border-box}
.submit-form .url-row .btn{margin-top:8px;white-space:nowrap}
.submit-form.loading{opacity:.6;pointer-events:none}
.link-preview{display:block}
.link-preview .link{margin-left:12px;vertical-align:middle}
.link-preview[hidden]{display:none}
.link-preview img{vertical-align:middle;width:96px;height:96px;object-fit:contain;background:#fff;border:1px solid var(--line,#e2e2dc);border-radius:10px}
.notice.ok{background:var(--sunk);color:var(--ink)}
.form-page .tip{margin-top:14px}

/* "마지막 업데이트 N분 전 · 오늘 새 딜 N개" on the home page, so visitors see the site is busy. */
.fresh { max-width: var(--wrap, 1200px); margin: 0 auto 12px; padding: 0 16px; font-size: 13.5px; color: var(--ink-2); }
.fresh b { color: var(--ink); }
.fresh .dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--ink); vertical-align: 1px; }
.share-stat { margin: 10px 0 0; font-size: 14px; color: var(--ink-2); }
.share-stat b { color: var(--ink); }

/* No photo: the store's name set like a shelf tag, instead of a category pictogram. */
.noimg-txt { padding: 8%; text-align: center; }
.noimg-txt b { display: block; max-width: 100%; font-size: var(--fs, 14px); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; color: #8A8A83; overflow-wrap: break-word; word-break: keep-all; }
.spot-img .noimg-txt b, .style-pop .d-img .noimg-txt b { font-size: 30px; color: #B5B5AD; }
.bot-note { grid-template-columns: minmax(0, 1fr); }
/* Less "template": smaller, mixed corner radii instead of pills everywhere. */
.style-pop .detail, .style-pop .comments { border-radius: 14px; }
.style-pop .price-hero, .style-pop .d-img { border-radius: 12px; }
.style-pop .btn-buy { border-radius: 12px; }
.style-pop .cats-row a { border-radius: 8px; }
.spot { border-radius: 14px; }
.btn-cta { border-radius: 12px !important; }
.spot-k { border-radius: 6px; }

/* Season strip on the home page (김장철, 블랙프라이데이 ...) */
.season-strip { display: flex; justify-content: space-between; align-items: center; gap: 12px; max-width: var(--wrap, 1200px); margin: 0 auto 14px; padding: 12px 16px; background: var(--ink); color: #fff; border-radius: 12px; font-size: 14.5px; font-weight: 600; text-decoration: none; }
.season-strip .go { flex: none; padding: 5px 12px; border-radius: 8px; background: #fff; color: var(--ink); font-size: 13px; }
@media (max-width: 720px) { .season-strip { margin: 0 12px 12px; } }

/* 딜 알림, price record line, similar deals (2026-11-10) */
.alert-link { display: inline-flex; align-items: center; gap: 4px; }
.alert-link .new-n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ink); color: var(--surface); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.icon-btn.has-dot { position: relative; }
.icon-btn .dot-new { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2px var(--surface); }
.p-hist { display: block; margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.p-hist svg { vertical-align: -2px; margin-right: 3px; }
.p-hist small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.notice-ended { display: flex; gap: 6px; align-items: flex-start; }
.alert-offer { display: block; margin: 10px 24px 14px; font-size: 14px; color: var(--ink-2); }
p.alert-offer { display: block; line-height: 1.5; }
.alert-offer a { font-weight: 600; text-decoration: underline; }
.alert-offer input[name=keyword] { display: inline-block; vertical-align: middle; width: calc(100% - 152px); height: 40px; margin-right: 6px; }
.alert-offer .btn { vertical-align: middle; width: 142px; }
.similar { margin: 20px 0; }
.similar h2, .alert-block h2 { font-size: 17px; margin: 0 0 10px; }
.alerts-page .alert-add { display: block; margin: 12px 0 20px; }
.alerts-page .alert-add input[name=keyword] { display: inline-block; vertical-align: middle; width: calc(100% - 92px); height: 44px; margin-right: 6px; }
.alert-block { margin: 0 0 24px; }
.alert-head { display: block; margin: 0 0 10px; }
.alert-head form { float: right; }

.alert-head .count { color: var(--muted); font-size: 13px; white-space: nowrap; }
.alert-head h2 { display: inline; margin: 0 6px 0 0; }
.alerts-page .alert-add .btn { vertical-align: middle; width: 82px; }
.alert-offer .ao-lead { display: block; margin: 0 0 8px; }
.buybar .bb-price { font-weight: 800; margin-right: 6px; font-variant-numeric: tabular-nums; }
.style-pop .alert-link .new-n { background: #fff; color: #111; }
.style-pop .icon-btn .dot-new { background: #fff; box-shadow: 0 0 0 2px #111; }
@media (max-width: 640px) { .alert-offer { margin: 10px 16px 14px; } }
