/* Tirgus — premium classifieds UI.
   Ivory canvas, deep emerald brand, gold reserved for paid placement.
   Display: Playfair Display (Latin Ext + Cyrillic). Text: Manrope. */

:root {
  --bg: #f6f4ee;
  --bg-2: #efebe1;
  --panel: #ffffff;
  --panel-2: #faf8f3;
  --ink: #13211b;
  --ink-2: #3a4942;
  --muted: #6d7972;
  --line: #e7e2d7;
  --line-2: #d7d0c1;
  --brand: #0e5a43;
  --brand-2: #0a4433;
  --brand-3: #06281e;
  --brand-ink: #ffffff;
  --brand-soft: #e3eee8;
  --brand-tint: #f0f6f2;
  --gold: #b0843a;
  --gold-2: #8f6a2b;
  --gold-soft: #f8f0dc;
  --gold-line: #e7d3a5;
  --danger: #b42318;
  --danger-soft: #fdeceb;
  --ok-soft: #e6f2eb;
  --blue: #2c55a4;
  --blue-soft: #e8eefb;
  --violet: #6b3fa8;
  --violet-soft: #f2eafc;
  --radius: 16px;
  --radius-md: 12px;
  --radius-sm: 9px;
  --shadow-xs: 0 1px 2px rgba(19, 33, 27, .06);
  --shadow: 0 1px 2px rgba(19, 33, 27, .04), 0 10px 28px -12px rgba(19, 33, 27, .16);
  --shadow-lg: 0 2px 6px rgba(19, 33, 27, .05), 0 28px 60px -24px rgba(19, 33, 27, .35);
  --ring: 0 0 0 4px rgba(14, 90, 67, .14);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c110f; --bg-2: #111815; --panel: #141c18; --panel-2: #18211d; --ink: #edf1ec; --ink-2: #c4cec8;
    --muted: #8e9a93; --line: #222c27; --line-2: #2e3a34; --brand: #3fb489; --brand-2: #2f9a73; --brand-3: #0a1a14;
    --brand-ink: #04140d; --brand-soft: #16302a; --brand-tint: #12201b; --gold: #d7ad62; --gold-2: #e6c27f;
    --gold-soft: #2a2314; --gold-line: #4c3e1f; --danger: #ff7a6b; --danger-soft: #3a1714; --ok-soft: #14291f;
    --blue: #9db8ff; --blue-soft: #1a2541; --violet: #cfa8ff; --violet-soft: #281d3b;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -12px rgba(0, 0, 0, .55);
    --shadow-lg: 0 28px 60px -24px rgba(0, 0, 0, .7);
    --ring: 0 0 0 4px rgba(63, 180, 137, .2);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; font-feature-settings: 'tnum' 0; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.015em; }
h1 { font-family: var(--display); font-size: 34px; font-weight: 700; }
h2 { font-family: var(--display); font-size: 24px; font-weight: 700; }
.h-sm { font-family: var(--font); font-size: 16px; font-weight: 800; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; letter-spacing: -.01em; }
.h-xs { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 10px; font-weight: 800; }
p { margin: 0 0 12px; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .92em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.strong { font-weight: 800; }
.lead { font-size: 16px; max-width: 70ch; }
.nowrap { white-space: nowrap; }
.grow { flex: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { flex: none; vertical-align: -3px; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--brand-soft); }
.num, .tnum { font-variant-numeric: tabular-nums; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.page { flex: 1; padding-top: 26px; padding-bottom: 64px; }

/* ---------- Header ---------- */
.topbar { background: var(--brand-3); color: rgba(255, 255, 255, .78); font-size: 12.5px; }
.topbar-in { display: flex; align-items: center; gap: 18px; min-height: 36px; }
.topbar a { color: rgba(255, 255, 255, .78); font-weight: 600; }
.topbar a:hover { color: #fff; }
.topbar-note { display: flex; align-items: center; gap: 7px; }
.topbar-note .ico { color: var(--gold); }
.topbar-links { display: flex; gap: 18px; margin-left: auto; align-items: center; }
.langs { display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.langs a { font-size: 11.5px; font-weight: 800; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; color: rgba(255, 255, 255, .7); }
.langs a.on { background: #fff; color: var(--brand-3); }
.top { background: color-mix(in srgb, var(--panel) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.top-in { display: flex; align-items: center; gap: 22px; min-height: 74px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo-mark { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(145deg, var(--brand) 0%, var(--brand-2) 100%); color: #fff; display: grid; place-items: center; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 6px 14px -6px rgba(14, 90, 67, .6); position: relative; }
.logo-mark::after { content: ''; position: absolute; right: -3px; top: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); border: 2px solid var(--panel); }
.logo-word { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -.02em; line-height: 1; }
.logo-sm .logo-mark { width: 30px; height: 30px; border-radius: 9px; }
.logo-sm .logo-word { font-size: 21px; }
.hsearch { flex: 1; max-width: 560px; display: flex; align-items: center; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 4px 4px 16px; transition: border-color .2s, box-shadow .2s; }
.hsearch:focus-within { border-color: var(--brand); box-shadow: var(--ring); background: var(--panel); }
.hsearch .ico { color: var(--muted); }
.hsearch input { border: 0; background: transparent; padding: 8px 10px; flex: 1; font: inherit; color: var(--ink); outline: none; min-width: 0; box-shadow: none !important; }
.hsearch button { border: 0; background: var(--ink); color: var(--panel); border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 700; font-size: 13.5px; cursor: pointer; }
.hsearch button:hover { background: var(--brand); }
.util { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.util-link { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 10px; border-radius: var(--radius-sm); color: var(--ink-2); font-weight: 700; font-size: 11.5px; position: relative; white-space: nowrap; transition: color .15s, background .15s; }
.util-link .ico { width: 21px; height: 21px; }
.util-link:hover { background: var(--bg); color: var(--ink); }
.util-link.on { color: var(--brand); }
.util-submit { margin-left: 10px; }
.badge { position: absolute; top: 1px; right: 6px; background: #c8372d; color: #fff; font-size: 10px; line-height: 1; padding: 3px 5px; border-radius: 999px; font-weight: 800; min-width: 17px; text-align: center; box-shadow: 0 0 0 2px var(--panel); }
.avatar { --h: 160; width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 800; font-size: 14px; color: hsl(var(--h) 55% 19%); background: hsl(var(--h) 45% 90%); flex: none; letter-spacing: .02em; }
.avatar-sm { width: 26px; height: 26px; font-size: 10.5px; }
.avatar-lg { width: 72px; height: 72px; font-size: 24px; }
@media (prefers-color-scheme: dark) { .avatar { color: hsl(var(--h) 60% 82%); background: hsl(var(--h) 30% 22%); } }

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: 14px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); cursor: pointer; white-space: nowrap; transition: background .2s var(--ease), border-color .2s, box-shadow .2s, transform .1s, color .2s; line-height: 1.2; }
.btn:hover { border-color: var(--ink-2); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn-accent { background: linear-gradient(180deg, var(--brand) 0%, var(--brand-2) 100%); border-color: var(--brand-2); color: var(--brand-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 6px 16px -8px rgba(14, 90, 67, .7); }
.btn-accent:hover { color: var(--brand-ink); border-color: var(--brand-2); filter: brightness(1.08); }
.btn-gold { background: linear-gradient(180deg, #c99a4b, var(--gold-2)); border-color: var(--gold-2); color: #fff; box-shadow: 0 6px 16px -8px rgba(143, 106, 43, .8); }
.btn-gold:hover { color: #fff; filter: brightness(1.06); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: var(--panel); }
.btn-dark:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--panel); border-color: var(--line-2); }
.btn-danger { color: var(--danger); }
.btn-danger:hover { border-color: var(--danger); background: var(--danger-soft); color: var(--danger); }
.btn-sm { padding: 7px 13px; font-size: 13px; }
.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn-block { display: flex; width: 100%; }
.icon-btn { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 7px; border-radius: 999px; display: inline-grid; place-items: center; }
.icon-btn:hover { background: var(--bg); color: var(--danger); }
.round-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink-2); display: inline-grid; place-items: center; cursor: pointer; transition: all .2s; }
.round-btn:hover { border-color: var(--ink-2); color: var(--ink); }

input, select, textarea { font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 10px 12px; width: 100%; min-width: 0; transition: border-color .15s, box-shadow .15s; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236d7972' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
input:disabled { background: var(--bg); color: var(--muted); }
input[type=checkbox], input[type=radio] { width: 17px; height: 17px; accent-color: var(--brand); padding: 0; }
input[type=range] { padding: 0; border: 0; accent-color: var(--brand); background: transparent; box-shadow: none !important; }
textarea { resize: vertical; line-height: 1.55; }
.form { display: flex; flex-direction: column; gap: 16px; }
.fld { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.fld > span:first-child, .fld > legend { font-size: 12.5px; font-weight: 800; color: var(--ink-2); padding: 0; letter-spacing: .01em; }
.fld em { font-style: normal; font-weight: 500; }
.fld small { font-size: 12px; }
.fld-err { color: var(--danger); font-size: 13px; font-weight: 700; }
.has-err input, .has-err select, .has-err textarea { border-color: var(--danger); }
.fld-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; }
.fld-check input { margin-top: 2px; }
.fld-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.with-unit { display: flex; align-items: stretch; }
.with-unit input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.with-unit em { display: grid; place-items: center; padding: 0 12px; background: var(--panel-2); border: 1px solid var(--line-2); border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--muted); font-style: normal; font-size: 13px; font-weight: 700; white-space: nowrap; }
.range { display: flex; align-items: center; gap: 6px; }
.range span { color: var(--muted); }
.form-error { background: var(--danger-soft); color: var(--danger); padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 700; margin: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 9px 16px; border: 1px solid var(--line-2); border-radius: 999px; font-weight: 700; font-size: 14px; background: var(--panel); transition: all .15s; }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--panel); }
.seg input:focus-visible + span { box-shadow: var(--ring); }
.count-chars { font-size: 12px; color: var(--muted); align-self: flex-end; margin-top: -2px; font-variant-numeric: tabular-nums; }

/* ---------- Generic blocks ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 2px 0 22px; }
.page-head h1 { display: flex; align-items: center; gap: 14px; }
.page-head-sm { margin-top: 34px; }
.page-head-sm h2 { font-size: 22px; }
.eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); font-weight: 600; }
.crumbs a:hover { color: var(--ink); }
.crumbs .ico { opacity: .5; }
.block { margin-top: 56px; }
.block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 20px; }
.block-head h2 { display: flex; align-items: center; gap: 10px; }
.block-head p { margin: 6px 0 0; color: var(--muted); }
.link-more { font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.flash { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 13px 18px; border-radius: var(--radius-md); font-weight: 700; box-shadow: var(--shadow-xs); }
.flash-ok { background: var(--ok-soft); color: var(--brand); border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent); }
.flash-err { background: var(--danger-soft); color: var(--danger); }
.notice { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--gold-soft); border: 1px solid var(--gold-line); padding: 13px 18px; border-radius: var(--radius-md); margin: 0 0 18px; font-size: 14px; }
.notice > span { flex: 1 1 200px; min-width: 0; }
.notice-owner { background: var(--brand-tint); border-color: var(--brand-soft); }
.notice-soft { background: var(--panel-2); border-color: var(--line); color: var(--ink-2); }
.notice-ok { background: var(--ok-soft); border-color: transparent; color: var(--brand); font-weight: 700; }
.empty { text-align: center; padding: 70px 20px; color: var(--ink-2); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty > .ico { color: var(--gold); width: 46px; height: 46px; padding: 12px; background: var(--gold-soft); border-radius: 50%; box-sizing: content-box; }
.empty h1, .empty h2 { font-size: 24px; }
.empty-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.err-code { font-family: var(--display); font-size: 96px; font-weight: 700; color: var(--line-2); line-height: 1; }
.count { color: var(--muted); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.count-alert { background: #c8372d; color: #fff; padding: 1px 7px; border-radius: 999px; }
.plain { list-style: none; margin: 0; padding: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 16px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow-xs); }
.divider { height: 1px; background: var(--line); margin: 18px 0; border: 0; }

/* Tags */
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: var(--bg); color: var(--ink-2); line-height: 1.2; white-space: nowrap; }
.tag-top { background: linear-gradient(135deg, #d4a85a, var(--gold-2)); color: #fff; box-shadow: 0 2px 8px -2px rgba(143, 106, 43, .6); }
.tag-hl { background: var(--gold-soft); color: var(--gold-2); border: 1px solid var(--gold-line); }
.tag-new { background: var(--brand); color: var(--brand-ink); }
.tag-drop { background: var(--danger-soft); color: var(--danger); }
.tag-free { background: var(--ok-soft); color: var(--brand); text-transform: none; letter-spacing: 0; }
.tag-cover { position: absolute; left: 8px; top: 8px; background: var(--brand); color: var(--brand-ink); }
.tag-deal { background: var(--panel); color: var(--ink-2); border: 1px solid var(--line); }
.deal-buy, .deal-rent_want, .deal-seek, .deal-lost { background: var(--blue-soft); color: var(--blue); border-color: transparent; }
.deal-giveaway, .deal-found { background: var(--ok-soft); color: var(--brand); border-color: transparent; }
.deal-exchange { background: var(--violet-soft); color: var(--violet); border-color: transparent; }
.deal-rent_out { background: var(--gold-soft); color: var(--gold-2); border-color: transparent; }

/* Section icon tiles */
.sec-ico { width: 44px; height: 44px; border-radius: 13px; display: inline-grid; place-items: center; flex: none; background: var(--brand-soft); color: var(--brand); }
.sec-ico-sm { width: 30px; height: 30px; border-radius: 9px; }
.sec-work { background: #e9eefb; color: #3150a5; }
.sec-transport { background: #fbebe2; color: #b4501e; }
.sec-real-estate { background: #e3efe8; color: #0e5a43; }
.sec-construction { background: #f8eed8; color: #94620a; }
.sec-electronics { background: #ece8fb; color: #5440bd; }
.sec-clothes { background: #fae6ef; color: #a82d66; }
.sec-home { background: #f1e9df; color: #855630; }
.sec-production { background: #e5edf0; color: #3f5d69; }
.sec-children { background: #fdf1d5; color: #a37300; }
.sec-animals { background: #f5e9de; color: #925422; }
.sec-agriculture { background: #eaf3dd; color: #4a7a12; }
.sec-leisure { background: #e0f2f5; color: #127386; }
@media (prefers-color-scheme: dark) { .sec-ico { background: var(--panel-2) !important; filter: saturate(1.2) brightness(1.5); } }

/* ---------- Home: hero ---------- */
.hero { position: relative; border-radius: 28px; color: #fff; padding: 56px 56px 46px; margin-bottom: 0;
  background:
    radial-gradient(900px 420px at 90% -10%, rgba(215, 173, 98, .28), transparent 60%),
    radial-gradient(700px 500px at -10% 120%, rgba(63, 180, 137, .35), transparent 60%),
    linear-gradient(140deg, #0f5c45 0%, #0a3d2e 55%, #072a20 100%);
  box-shadow: var(--shadow-lg); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; }
.hero::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, #000 0%, transparent 70%); pointer-events: none; }
.hero > * { position: relative; }
.hero-text { z-index: 5; }
.hero .eyebrow { color: #e3c58b; }
.hero h1 { font-size: 52px; line-height: 1.05; letter-spacing: -.025em; max-width: 14ch; }
.hero h1 em { font-style: italic; color: #e9cd94; font-weight: 600; }
.hero-sub { color: rgba(255, 255, 255, .78); margin: 16px 0 28px; max-width: 52ch; font-size: 16.5px; }
.hero-search { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 6px; background: rgba(255, 255, 255, .98); padding: 7px; border-radius: 18px; box-shadow: 0 20px 50px -16px rgba(0, 0, 0, .5); }
@media (prefers-color-scheme: dark) { .hero-search { background: var(--panel); } }
.hero-q { display: flex; align-items: center; gap: 10px; padding: 4px 4px 8px 12px; color: var(--muted); grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
.hero-q input { border: 0; box-shadow: none !important; padding-left: 0; font-size: 16px; background: transparent; }
.hero-search select + select { border-left: 1px solid var(--line); }
.hero-search select { border: 0; border-radius: 0; background-color: transparent; box-shadow: none !important; font-weight: 600; }
.hero-search .btn { border-radius: 13px; }
.hero-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: 13px; color: rgba(255, 255, 255, .7); }
.hero-popular a { color: #fff; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); font-weight: 600; transition: background .2s; }
.hero-popular a:hover { background: rgba(255, 255, 255, .2); }
.hero-stats { display: flex; gap: 34px; margin-top: 34px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-family: var(--display); font-size: 30px; font-weight: 700; line-height: 1.1; font-variant-numeric: lining-nums; }
.hero-stats span { font-size: 12.5px; color: rgba(255, 255, 255, .65); font-weight: 600; }
.hero-art { position: relative; height: 420px; }
.hero-art .card { color: var(--ink); position: absolute; width: 238px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); border: 0; transition: transform .5s var(--ease); }
.hero-art .card:nth-child(1) { left: 6%; top: 20px; transform: rotate(-5deg); z-index: 1; }
.hero-art .card:nth-child(2) { right: 2%; top: 0; transform: rotate(4deg); z-index: 2; }
.hero-art .card:nth-child(3) { left: 26%; bottom: -10px; transform: rotate(-1deg); z-index: 3; }
.hero-art:hover .card:nth-child(1) { transform: rotate(-7deg) translateY(-6px); }
.hero-art:hover .card:nth-child(2) { transform: rotate(6deg) translateY(-6px); }
.hero-art .memo-form { display: none; }

.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin: 22px 0 0; box-shadow: var(--shadow-xs); }
.trust > div { display: flex; align-items: center; gap: 14px; padding: 18px 22px; }
.trust > div + div { border-left: 1px solid var(--line); }
.trust .ico { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); box-sizing: border-box; }
.trust p { margin: 0; }
.trust b { display: block; font-size: 14px; }
.trust span { font-size: 12.5px; color: var(--muted); }

/* Category directory */
.sections { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.sec-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 16px; box-shadow: var(--shadow-xs); transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s; display: flex; flex-direction: column; }
.sec-card:hover { box-shadow: var(--shadow); border-color: var(--line-2); transform: translateY(-2px); }
.sec-head { display: flex; align-items: center; gap: 14px; color: var(--ink); margin-bottom: 14px; }
.sec-head:hover { color: var(--ink); }
.sec-head:hover .sec-name { color: var(--brand); }
.sec-name { font-weight: 800; font-size: 16.5px; display: block; letter-spacing: -.01em; line-height: 1.25; }
.sec-total { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.sub-list { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px dashed var(--line); }
.sub-list li { display: flex; justify-content: space-between; gap: 8px; padding: 3.5px 0; font-size: 13.5px; }
.sub-list li[hidden] { display: none; }
.sub-list a { color: var(--ink-2); font-weight: 500; }
.sub-list a:hover { color: var(--brand); }

.regions { display: flex; flex-wrap: wrap; gap: 10px; }
.region-chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--ink); font-weight: 700; font-size: 14px; transition: all .2s; }
.region-chip:hover { border-color: var(--brand); color: var(--brand); box-shadow: var(--shadow-xs); }
.region-chip .count { font-size: 12px; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s3; }
.step3 { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.step3::before { counter-increment: s3; content: counter(s3, decimal-leading-zero); font-family: var(--display); font-size: 40px; font-weight: 700; color: var(--gold); line-height: 1; display: block; margin-bottom: 14px; }
.step3 h3 { font-size: 17px; margin-bottom: 6px; }
.step3 p { color: var(--muted); margin: 0; font-size: 14px; }
.cta { margin-top: 56px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 40px 44px; border-radius: 24px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(600px 300px at 100% 0%, rgba(215, 173, 98, .3), transparent 60%), linear-gradient(135deg, #12241d, #0a1712); box-shadow: var(--shadow-lg); }
.cta h2 { font-size: 32px; max-width: 20ch; }
.cta p { margin: 10px 0 0; color: rgba(255, 255, 255, .72); max-width: 56ch; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cta .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .25); }
.cta .btn-ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 20px; }
.cards-1 { grid-template-columns: minmax(0, 320px); }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 18px; scrollbar-width: thin; }
.scroller > * { scroll-snap-align: start; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: relative; display: flex; flex-direction: column; transition: box-shadow .35s var(--ease), transform .35s var(--ease), border-color .3s; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: transparent; }
.card.is-hl { border-color: var(--gold-line); box-shadow: 0 0 0 1px var(--gold-line), var(--shadow-xs); }
.card.is-hl .card-body { background: linear-gradient(180deg, var(--gold-soft), var(--panel) 80%); }
.card-img { aspect-ratio: 4 / 3; background: var(--panel-2); display: block; position: relative; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-img img { transform: scale(1.05); }
.card-img:has(img)::after { content: ''; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(transparent, rgba(0, 0, 0, .28)); pointer-events: none; }
.card-badges { position: absolute; left: 12px; top: 12px; right: 56px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 1; }
.card-photos { position: absolute; right: 10px; bottom: 10px; z-index: 1; color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; background: rgba(0, 0, 0, .6); backdrop-filter: blur(6px); padding: 3px 8px; border-radius: 999px; }
/* No-photo placeholder: a soft brand-tinted plate with the category icon, clearly a
   picture slot (never an empty hole in dark mode). */
.ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--brand); background: radial-gradient(130% 100% at 30% 10%, var(--brand-soft), var(--brand-tint) 55%, var(--panel-2)); box-shadow: inset 0 0 0 1px var(--line); border-radius: inherit; }
.ph .ico { opacity: .55; }
/* Image wells show a quiet tint while photos load. */
.card-img, .row-img { background: linear-gradient(135deg, var(--panel-2), var(--brand-tint)); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-price { font-weight: 800; font-size: 19px; letter-spacing: -.015em; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.card-price s, .old-price { color: var(--muted); font-weight: 600; font-size: 13px; }
.card-title { color: var(--ink); font-weight: 700; font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; }
.card-title:hover { color: var(--brand); }
.card-chips { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.card-chips span + span::before { content: '·'; margin-right: 10px; color: var(--line-2); }
.card-meta { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); }
.card-meta .sep { margin: 0 4px; }
.card .memo-form { position: absolute; right: 10px; top: 10px; z-index: 2; }
.card .memo-btn { background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); box-shadow: 0 2px 8px rgba(0, 0, 0, .15); color: var(--ink-2); }
@media (prefers-color-scheme: dark) { .card .memo-btn { background: rgba(20, 28, 24, .85); } }

/* Memo star */
.memo-form { margin: 0; }
.memo-btn { border: 0; background: transparent; color: var(--muted); width: 36px; height: 36px; border-radius: 999px; display: inline-grid; place-items: center; cursor: pointer; transition: color .2s, background .2s, transform .2s var(--ease); }
.memo-btn:hover { color: var(--gold); transform: scale(1.08); }
.memo-btn.on { color: var(--gold); }
.memo-btn.on svg { fill: currentColor; }
.memo-big { width: 100%; height: auto; display: flex; gap: 8px; padding: 11px; border: 1px solid var(--line-2); border-radius: 999px; font: inherit; font-weight: 700; color: var(--ink-2); background: var(--panel); }
.memo-big:hover { transform: none; border-color: var(--gold); }
.memo-big.on { background: var(--gold-soft); border-color: var(--gold-line); color: var(--gold-2); }

/* ---------- Category pages ---------- */
.cat-hero { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; flex-wrap: wrap; }
.cat-hero .sec-ico { width: 60px; height: 60px; border-radius: 18px; }
.cat-hero h1 { font-size: 38px; }
.cat-hero p { margin: 4px 0 0; color: var(--muted); font-weight: 600; }
.chips { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--ink-2); font-weight: 700; font-size: 13.5px; transition: all .2s; }
.chip:hover { border-color: var(--ink-2); color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--panel); }
.chip.on .count { color: inherit; opacity: .7; }
.chips-sm .chip { padding: 6px 12px; font-size: 13px; }
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 92%, transparent); }
.chips-scroll li { flex: none; }
.sub-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-bottom: 26px; }
.sub-tile { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-md); color: var(--ink); font-weight: 700; transition: all .25s var(--ease); }
.sub-tile:hover { border-color: var(--brand); color: var(--ink); box-shadow: var(--shadow); transform: translateY(-1px); }
/* Icon | name (up to two lines) | count badge pinned to the right edge, so the
   numbers line up down each column and names only wrap when they must. */
.sub-tile { min-height: 64px; }
.sub-tile .ico { color: var(--brand); width: 22px; height: 22px; flex: none; }
.sub-tile > span:not(.count) { flex: 1 1 auto; min-width: 0; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sub-tile > .count { flex: none; margin-left: auto; min-width: 30px; padding: 2px 8px; border-radius: 999px; background: var(--bg); text-align: center; line-height: 1.5; }
.sub-tile:hover > .count { background: var(--brand-tint); color: var(--brand); }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .grow { min-width: 10px; }
.filterbar { margin-bottom: 14px; }
.filter-toggle { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs); }
.filter-toggle > summary { cursor: pointer; padding: 14px 20px; font-weight: 800; list-style: none; display: flex; align-items: center; gap: 10px; }
.filter-toggle > summary::-webkit-details-marker { display: none; }
.filter-toggle > summary .count { margin-left: auto; }
.filter-toggle > summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: -4px 4px 0 10px; transition: transform .2s; }
.filter-toggle[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.filter-toggle[open] > summary { border-bottom: 1px solid var(--line); }
.filter-inner { padding: 20px; }
.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px 16px; margin: 14px 0 18px; }
.fld-check.fld { flex-direction: row; align-items: center; align-self: end; padding-bottom: 11px; }
.filter-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.af-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 13px; border-radius: 999px; background: var(--brand-tint); border: 1px solid var(--brand-soft); color: var(--brand); font-size: 13px; font-weight: 700; }
.af-chip:hover { background: var(--brand-soft); }
.af-chip .ico { opacity: .7; }
.af-clear { font-size: 13px; font-weight: 700; color: var(--muted); }
.sort { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.sort select { width: auto; padding: 8px 34px 8px 12px; border-radius: 999px; font-weight: 700; color: var(--ink); }
.viewtoggle { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--panel); }
.viewtoggle a { width: 34px; height: 30px; display: grid; place-items: center; border-radius: 999px; color: var(--muted); }
.viewtoggle a.on { background: var(--ink); color: var(--panel); }
.result-count { font-weight: 700; color: var(--ink-2); font-size: 14px; }

/* List rows */
.rows { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-xs); }
.row { display: grid; grid-template-columns: 176px minmax(0, 1fr) 170px 40px; gap: 20px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); position: relative; transition: background .2s; }
.rows.has-cols.cols-1 .row { grid-template-columns: 176px minmax(0, 1fr) 96px 170px 40px; }
.rows.has-cols.cols-2 .row { grid-template-columns: 176px minmax(0, 1fr) repeat(2, 96px) 170px 40px; }
.rows.has-cols.cols-3 .row { grid-template-columns: 176px minmax(0, 1fr) repeat(3, 96px) 170px 40px; }
.row:last-child { border-bottom: 0; }
.row:hover { background: var(--panel-2); }
.row.is-hl { background: linear-gradient(90deg, var(--gold-soft), color-mix(in srgb, var(--gold-soft) 35%, var(--panel))); }
.row.is-top::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(var(--gold), var(--gold-2)); }
.row-img { width: 176px; aspect-ratio: 4 / 3; border-radius: var(--radius-md); overflow: hidden; position: relative; display: block; flex: none; }
.row-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.row:hover .row-img img { transform: scale(1.05); }
.row-imgcount { position: absolute; right: 6px; bottom: 6px; background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; display: flex; align-items: center; gap: 3px; }
.row-main { min-width: 0; }
.row-tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.row-title { font-weight: 800; color: var(--ink); font-size: 16px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -.01em; }
.row-title:hover { color: var(--brand); }
.row-snippet { font-size: 13.5px; color: var(--muted); margin: 5px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-chips { display: none; }
.row-col { display: flex; flex-direction: column; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.row-col-label { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 800; margin-bottom: 2px; }
.row-side { text-align: right; display: flex; flex-direction: column; gap: 3px; }
.row-price { font-weight: 800; font-size: 18px; white-space: nowrap; letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.row-meta { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.pager { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 30px 0 0; }
.pager a, .pager span { min-width: 42px; height: 42px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-weight: 800; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pager a:hover { border-color: var(--ink-2); color: var(--ink); }
.pager span.on { background: var(--ink); color: var(--panel); border-color: var(--ink); }
.pager span:not(.on) { border-color: transparent; background: transparent; }

/* ---------- Listing page ---------- */
.ad-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.ad-head-main { flex: 1; min-width: 280px; }
.ad-tags { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.ad-title { font-size: 38px; line-height: 1.1; max-width: 26ch; }
.ad-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; color: var(--muted); font-size: 14px; font-weight: 600; }
.ad-meta span { display: inline-flex; align-items: center; gap: 6px; }
.ad-actions { display: flex; gap: 8px; }
.ad-actions .memo-btn { width: 40px; height: 40px; border: 1px solid var(--line-2); background: var(--panel); }
.ad { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 30px; align-items: start; }
.ad-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.gallery { position: relative; }
.gallery-stage { position: relative; }
.gallery-main { aspect-ratio: 4 / 3; max-height: 72vh; background: var(--panel-2); border-radius: 22px; overflow: hidden; position: relative; box-shadow: var(--shadow); cursor: zoom-in; isolation: isolate; }
/* The whole photo is always visible (portrait shots and panoramas included); a blurred
   copy of it fills the rest of the frame instead of empty bars. */
.gallery-main img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.gallery-main .gallery-fill { position: absolute; inset: -24px; width: calc(100% + 48px); height: calc(100% + 48px); object-fit: cover; filter: blur(26px) saturate(1.15) brightness(.82); z-index: -1; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: #13211b; display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); opacity: 0; transition: opacity .25s; z-index: 2; }
.gallery-stage:hover .gallery-nav, .gallery-nav:focus-visible { opacity: 1; }
.gallery-prev { left: 16px; }
.gallery-next { right: 16px; }
.gallery-count { position: absolute; left: 16px; bottom: 16px; background: rgba(0, 0, 0, .6); backdrop-filter: blur(6px); color: #fff; font-size: 12.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; z-index: 2; font-variant-numeric: tabular-nums; }
.gallery-expand { position: absolute; right: 16px; bottom: 16px; z-index: 2; background: rgba(255, 255, 255, .92); color: #13211b; border: 0; border-radius: 999px; padding: 7px 13px; font: inherit; font-size: 12.5px; font-weight: 800; display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.gallery-thumbs button { width: 96px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; flex: none; background: none; opacity: .6; transition: opacity .2s, border-color .2s; }
.gallery-thumbs button.on, .gallery-thumbs button:hover { border-color: var(--brand); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-empty { aspect-ratio: 16 / 7; border-radius: 22px; overflow: hidden; display: grid; place-items: center; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.fact { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow-xs); }
.fact .ico { color: var(--gold); margin-bottom: 6px; width: 20px; height: 20px; }
.fact span { font-size: 11.5px; color: var(--muted); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.fact b { font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.ad-section { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow-xs); }
.ad-section h2 { font-size: 22px; margin-bottom: 16px; }
.ad-text { white-space: pre-line; font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; color: var(--ink-2); }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); column-gap: 32px; margin: 0; }
.specs > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.specs dt { color: var(--muted); font-size: 14px; }
.specs dd { margin: 0; font-weight: 800; text-align: right; }
.specs-1 { grid-template-columns: 1fr; margin-bottom: 12px; }
.ad-foot { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.ad-foot span { display: inline-flex; align-items: center; gap: 6px; }
.ad-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 96px; }
.price-card { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 24px; box-shadow: var(--shadow-lg); }
.ad-price { font-family: var(--display); font-size: 40px; font-weight: 700; letter-spacing: -.02em; line-height: 1.05; font-variant-numeric: lining-nums tabular-nums; }
.ad-price-sub { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.ad-loc { color: var(--ink-2); display: flex; align-items: center; gap: 6px; margin: 14px 0 0; font-weight: 600; }
.contact { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.contact-out { display: flex; flex-direction: column; gap: 10px; }
.contact-tip { margin: 4px 0 0; display: flex; gap: 8px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.contact-tip .ico { color: var(--gold); margin-top: 1px; }
.seller-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-xs); }
.seller-row { display: flex; align-items: center; gap: 14px; }
.seller-row b { display: block; font-size: 16px; }
.seller-row span { color: var(--muted); font-size: 13px; font-weight: 600; }
.seller-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.seller-stats div { background: var(--panel-2); border-radius: var(--radius-sm); padding: 10px 12px; }
.seller-stats b { display: block; font-size: 17px; font-variant-numeric: tabular-nums; }
.seller-stats span { font-size: 12px; color: var(--muted); font-weight: 600; }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.calc-inputs { display: flex; flex-direction: column; gap: 16px; }
.calc-row { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.calc-row output { color: var(--ink); font-variant-numeric: tabular-nums; }
.calc-result { background: linear-gradient(145deg, var(--brand-tint), var(--panel-2)); border: 1px solid var(--brand-soft); border-radius: var(--radius-md); padding: 22px; text-align: center; }
.calc-result span { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.calc-result b { display: block; font-family: var(--display); font-size: 36px; color: var(--brand); margin: 6px 0; font-variant-numeric: lining-nums; }
.calc-result small { color: var(--muted); font-size: 12px; }
.safety { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.safety li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-2); }
.safety .ico { color: var(--brand); margin-top: 2px; }
.report { font-size: 13px; padding: 0 4px; }
.report summary { cursor: pointer; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.report form { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; background: var(--panel); border: 1px solid var(--line); padding: 16px; border-radius: var(--radius); }
.radio { display: flex; gap: 8px; align-items: center; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(6, 12, 9, .94); display: flex; align-items: center; justify-content: center; padding: 60px 70px; animation: fade .2s; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .1); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .2); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .8); font-weight: 700; font-size: 14px; }
@keyframes fade { from { opacity: 0; } }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: var(--panel); padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: all .3s var(--ease); z-index: 90; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .ico { color: var(--gold); }

/* ---------- Seller profile ---------- */
.profile-card { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); margin-bottom: 28px; position: relative; overflow: hidden; }
.profile-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--brand), var(--gold)); }
.profile-card h1 { font-size: 32px; }
.profile-meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-weight: 600; font-size: 14px; margin-top: 6px; }
.profile-meta span { display: inline-flex; gap: 6px; align-items: center; }
.profile-stats { display: flex; gap: 28px; margin-left: auto; }
.profile-stats div { text-align: right; }
.profile-stats b { display: block; font-family: var(--display); font-size: 28px; line-height: 1.1; font-variant-numeric: lining-nums; }
.profile-stats span { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Search & memo ---------- */
.search-form { margin-bottom: 8px; }
.search-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
.search-form .filter-actions { margin-top: 8px; }
.memo-list { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-xs); }
.memo-tools { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.memo-item { display: grid; grid-template-columns: 28px 112px minmax(0, 1fr) auto 36px; gap: 16px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.memo-item:last-child { border-bottom: 0; }
.memo-item .row-img { width: 112px; }
.memo-item.is-off { opacity: .55; }
.memo-clear { margin-top: 14px; text-align: right; }
.compare { border-collapse: collapse; width: 100%; min-width: 600px; }
.compare th, .compare td { padding: 12px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 14px; }
.compare tbody th { color: var(--muted); font-weight: 700; width: 170px; }
.compare tbody tr:nth-child(even) td, .compare tbody tr:nth-child(even) th { background: var(--panel-2); }
.compare-head { display: flex; flex-direction: column; gap: 8px; color: var(--ink); font-weight: 800; }
.compare-head img, .compare-head .ph { width: 160px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); background: var(--panel-2); }

/* ---------- Wizard ---------- */
.steps { list-style: none; display: flex; gap: 8px; margin: 0 0 24px; padding: 0; overflow-x: auto; }
.step { flex: 1; min-width: 120px; display: flex; }
.step-in, .steps-edit .step { display: flex; flex: 1; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-weight: 700; font-size: 14px; transition: all .2s; }
a.step-in:hover { border-color: var(--brand); color: var(--ink); }
.step-n { width: 26px; height: 26px; border-radius: 999px; background: var(--bg); display: inline-grid; place-items: center; font-size: 12px; flex: none; font-weight: 800; }
.step.on .step-in, .steps-edit .step.on { border-color: var(--brand); color: var(--ink); box-shadow: var(--ring); }
.step.on .step-n { background: var(--brand); color: var(--brand-ink); }
.step.done .step-n { background: var(--brand-soft); color: var(--brand); }
.step.done .step-in { color: var(--ink-2); }
.steps-edit { display: flex; gap: 8px; margin-bottom: 24px; }
.steps-edit .step { flex: 0 1 auto; }
.wizard-form { max-width: 880px; }
.wizard-cat { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--ink-2); font-weight: 600; }
.wizard-cat .sec-ico { width: 34px; height: 34px; border-radius: 10px; }
.wizard-actions { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 6px; }
.wizard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 26px; align-items: start; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-bottom: 22px; }
.pick { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 14px; row-gap: 3px; align-items: center; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: all .25s var(--ease); box-shadow: var(--shadow-xs); }
.pick:hover { border-color: var(--brand); box-shadow: var(--shadow); color: var(--ink); transform: translateY(-2px); }
/* Icon | title over subtitle | arrow. The icon is centred on the whole text block,
   and the subtitle lines up under the title at any width. */
.pick > .sec-ico, .pick > .ico { grid-column: 1; grid-row: 1 / span 2; }
.pick-name { grid-column: 2; grid-row: 1; align-self: end; font-weight: 800; line-height: 1.3; min-width: 0; }
.pick-fee { grid-column: 2; grid-row: 2; align-self: start; line-height: 1.4; min-width: 0; }
.pick:not(:has(.pick-fee)) .pick-name { grid-row: 1 / span 2; align-self: center; }
.pick::after { content: ''; grid-column: 3; grid-row: 1 / span 2; width: 8px; height: 8px; margin: 0 4px 0 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); color: var(--muted); opacity: .55; transition: transform .2s var(--ease), color .2s, opacity .2s; }
.pick:hover::after, .pick:focus-visible::after { color: var(--brand); opacity: 1; transform: translateX(3px) rotate(-45deg); }
.pick-subs .pick .ico { color: var(--brand); }
.free { color: var(--brand); font-weight: 800; }
.pick-back { margin-bottom: 14px; font-weight: 700; }
.drafts { margin-bottom: 24px; }
.drafts li { padding: 5px 0; }
.photo-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.photo { position: relative; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--panel-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.is-cover { box-shadow: 0 0 0 2px var(--brand); }
.photo-actions { position: absolute; inset: auto 8px 8px 8px; display: flex; gap: 6px; justify-content: flex-end; }
.photo-actions form { margin: 0; }
.photo-actions .btn { background: rgba(255, 255, 255, .95); color: #222; }
.dropzone { border: 2px dashed var(--line-2); border-radius: var(--radius); padding: 38px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink-2); background: var(--panel-2); transition: all .2s; }
.dropzone > .ico { color: var(--brand); width: 44px; height: 44px; padding: 10px; background: var(--brand-soft); border-radius: 50%; box-sizing: content-box; margin-bottom: 6px; }
.dropzone.drag { border-color: var(--brand); background: var(--brand-tint); }
.dropzone p { margin: 0; }
.dropzone input[type=file] { max-width: 320px; margin-top: 8px; }
.opt-group { border: 0; padding: 0; margin: 0 0 10px; }
.opt-group legend { font-weight: 800; font-size: 15px; display: flex; align-items: center; gap: 8px; padding: 0; margin-bottom: 8px; }
.opt-group legend .ico { color: var(--gold); }
.opt-group p { margin: 0 0 10px; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.opt { cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt-body { display: flex; flex-direction: column; gap: 3px; padding: 13px 15px; border: 1px solid var(--line-2); border-radius: var(--radius-md); transition: all .2s; height: 100%; background: var(--panel); }
.opt:hover .opt-body { border-color: var(--ink-2); }
.opt-price { font-size: 13px; color: var(--muted); font-weight: 700; }
.opt input:checked + .opt-body { border-color: var(--brand); background: var(--brand-tint); box-shadow: inset 0 0 0 1px var(--brand); }
.opt input:checked + .opt-body .opt-price { color: var(--brand); }
.opt input:focus-visible + .opt-body { box-shadow: var(--ring); }
.order-total { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 20px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-md); font-weight: 800; }
.order-total b { font-family: var(--display); font-size: 30px; font-variant-numeric: lining-nums; }
.done-page { text-align: center; padding: 60px 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.done-ico { width: 96px; height: 96px; border-radius: 999px; background: radial-gradient(circle at 30% 30%, var(--brand-soft), var(--ok-soft)); color: var(--brand); display: grid; place-items: center; margin-bottom: 8px; box-shadow: 0 0 0 10px var(--brand-tint); }

/* ---------- My ads ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs a { padding: 12px 16px; color: var(--muted); font-weight: 800; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; font-size: 14.5px; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); border-color: var(--gold); }
.my-list { display: flex; flex-direction: column; gap: 12px; }
.my-item { display: grid; grid-template-columns: 128px minmax(0, 1fr) auto auto; gap: 18px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow-xs); }
.my-item.is-hl { background: linear-gradient(90deg, var(--gold-soft), var(--panel) 60%); border-color: var(--gold-line); }
.my-item .row-img { width: 128px; }
.my-main { min-width: 0; }
.my-stats { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.my-stats span { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.my-price { font-weight: 800; white-space: nowrap; font-size: 17px; }
.my-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.my-actions form { margin: 0; }
.status-active { background: var(--ok-soft); color: var(--brand); }
.status-drafts { background: var(--bg); }
.status-expired { background: var(--danger-soft); color: var(--danger); }
.status-inactive { background: var(--bg); color: var(--muted); }

/* ---------- Auth, checkout, pricing ---------- */
.auth { display: grid; grid-template-columns: 1fr 1fr; max-width: 980px; margin: 10px auto; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: var(--panel); }
.auth-aside { padding: 46px; color: #fff; background: radial-gradient(500px 300px at 100% 0%, rgba(215, 173, 98, .3), transparent 60%), linear-gradient(150deg, #0f5c45, #072a20); display: flex; flex-direction: column; gap: 18px; }
.auth-aside h2 { font-size: 30px; }
.auth-aside ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 14px; }
.auth-aside li { display: flex; gap: 12px; color: rgba(255, 255, 255, .85); }
.auth-aside li .ico { color: #e3c58b; margin-top: 2px; }
.auth-panel { padding: 46px; border: 0; box-shadow: none; border-radius: 0; }
.auth-panel h1 { margin-bottom: 8px; font-size: 30px; }
.auth-alt { text-align: center; margin: 20px 0 0; color: var(--muted); }
.checkout { display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 10px 0; }
.checkout-panel { width: 100%; max-width: 540px; display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow-lg); border-radius: 22px; }
.checkout-head h1 { margin: 12px 0 4px; }
.checkout-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--gold-2); font-size: 11px; font-weight: 800; padding: 5px 11px; border-radius: 999px; text-transform: uppercase; letter-spacing: .08em; }
.order { width: 100%; border-collapse: collapse; }
.order td, .order th { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; }
.order tfoot th { font-size: 20px; border-bottom: 0; font-family: var(--display); }
.num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.checkout-actions { display: flex; justify-content: space-between; gap: 10px; }
.price-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 34px; }
.price-card-p { position: relative; }
.price-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.fees { width: 100%; border-collapse: collapse; min-width: 600px; }
.fees th, .fees td { padding: 10px 18px; border-bottom: 1px solid var(--line); font-size: 14px; text-align: left; }
.fees thead th { background: var(--panel-2); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.fees-sec th { background: var(--panel-2); font-size: 15px; padding-top: 16px; }
.fees-sec .sec-ico { width: 28px; height: 28px; border-radius: 8px; vertical-align: middle; margin-right: 6px; }
.prose { max-width: 840px; }
.prose h2 { margin-top: 10px; }
.prose p { color: var(--ink-2); line-height: 1.75; margin-bottom: 22px; }

/* ---------- Admin ---------- */
.admin-search { display: flex; gap: 8px; max-width: 480px; margin-bottom: 18px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 30px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow-xs); }
.stat span { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.stat b { font-family: var(--display); font-size: 30px; font-variant-numeric: lining-nums tabular-nums; line-height: 1.1; }
.bars { display: flex; flex-direction: column; gap: 10px; max-width: 800px; }
.bar { display: grid; grid-template-columns: 210px 1fr 50px; gap: 14px; align-items: center; font-size: 14px; font-weight: 600; }
.bar-track { height: 10px; background: var(--panel-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.bar-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #3fb489); border-radius: 999px; }
.bar-val { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-table thead th { background: var(--panel-2); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.admin-table tr.is-off { opacity: .55; }
.admin-table .actions { display: flex; gap: 6px; justify-content: flex-end; }
.admin-table .actions form { margin: 0; }
.pay-paid { background: var(--ok-soft); color: var(--brand); }
.pay-pending { background: var(--gold-soft); color: var(--gold-2); }

/* ---------- Footer ---------- */
.foot { background: #0b1511; color: rgba(255, 255, 255, .7); padding: 60px 0 0; margin-top: 20px; }
.foot a { color: rgba(255, 255, 255, .78); }
.foot a:hover { color: #fff; }
.foot-in { display: grid; grid-template-columns: 1.3fr 1.6fr 1fr 1fr 1fr; gap: 36px; }
.foot .logo, .foot .logo:hover { color: #fff; }
.foot .logo-mark::after { border-color: #0b1511; }
.foot p { font-size: 14px; line-height: 1.65; margin: 16px 0 0; max-width: 34ch; }
.foot h4 { color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; margin: 6px 0 16px; }
.foot-links { display: flex; flex-direction: column; gap: 9px; font-size: 14px; font-weight: 600; }
.foot-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 20px; font-size: 14px; font-weight: 600; }
.foot-bottom { margin-top: 48px; border-top: 1px solid rgba(255, 255, 255, .08); padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.foot .langs { background: rgba(255, 255, 255, .06); }

/* ---------- Print ---------- */
@media print {
  .topbar, .top, .foot, .ad-side .contact, .report, .gallery-nav, .gallery-expand, .gallery-thumbs, .memo-form, .ad-actions, .block, .calc-section { display: none !important; }
  body { background: #fff; }
  .ad { grid-template-columns: 1fr 280px; }
  .ad-side { position: static; }
  .panel, .ad-section, .price-card, .fact { box-shadow: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .sections { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr; padding: 46px 40px 40px; }
  .hero-art { display: none; }
  .util-link > span:not(.avatar) { display: none; }
  .util-link { padding: 9px; }
  .rows.has-cols .row { grid-template-columns: 150px minmax(0, 1fr) 160px 40px !important; }
  .rows.has-cols .row-col { display: none; }
  .rows.has-cols .row-chips { display: flex; }
  .row-img { width: 150px; }
  .row-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .row-chips { flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; color: var(--ink-2); font-weight: 700; margin-top: 6px; }
  .row-chips span + span::before { content: '·'; margin-right: 10px; color: var(--line-2); }
}
@media (max-width: 960px) {
  .ad, .wizard-grid { grid-template-columns: minmax(0, 1fr); }
  .ad-side { position: static; }
  .sections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust { grid-template-columns: 1fr 1fr; }
  .trust > div:nth-child(3) { border-left: 0; }
  .trust > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps3 { grid-template-columns: 1fr; }
  .price-cards, .two-col { grid-template-columns: 1fr; }
  .search-top { grid-template-columns: 1fr 1fr; }
  .search-top .fld-wide { grid-column: 1 / -1; }
  .my-item { grid-template-columns: 96px minmax(0, 1fr); }
  .my-item .row-img { width: 96px; grid-row: 1 / span 2; align-self: center; }
  .my-price { grid-column: 2; grid-row: 2; }
  .my-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .calc { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .profile-stats { margin-left: 0; width: 100%; }
  .profile-stats div { text-align: left; }
  .topbar-note { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 14.5px; }
  .hero-search { grid-template-columns: 1fr 1fr; }
  .hero-search .btn { grid-column: 1 / -1; }
  .wrap { padding: 0 16px; }
  .page { padding-top: 18px; }
  .topbar-links > a { display: none; }
  .topbar-links { margin-left: 0; width: 100%; justify-content: flex-end; }
  /* Phone header: logo + categories, then a full-width search. The icon nav becomes a bottom tab bar. */
  .top { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--panel); }
  .top-in { flex-wrap: wrap; gap: 10px; padding-top: 10px; padding-bottom: 10px; min-height: 0; }
  .logo { margin-right: auto; }
  .logo-word { font-size: 23px; }
  .logo-mark { width: 34px; height: 34px; }
  .hsearch { order: 3; max-width: none; flex-basis: 100%; }
  .util { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; margin: 0; gap: 0; display: flex; align-items: center; justify-content: space-around;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: var(--panel); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(19, 33, 27, .45); }
  .util > * { order: 2; }
  .util > :nth-child(-n+3) { order: 0; }
  .util-link { flex: 1 1 0; max-width: 64px; padding: 9px 0; }
  .util-link > span:not(.avatar) { display: none; }
  .util-link .badge { right: calc(50% - 20px); top: 2px; }
  .util-submit { order: 1; flex: 0 0 auto; width: 50px; height: 50px; padding: 0; margin: -22px 6px 0; border-radius: 50%; justify-content: center;
    box-shadow: 0 10px 22px -8px rgba(14, 90, 67, .7), 0 0 0 4px var(--panel); }
  .util-submit span { display: none; }
  .util-submit .ico { width: 22px; height: 22px; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(86px + env(safe-area-inset-bottom)); }
  h1 { font-size: 27px; }
  .hero { padding: 30px 20px 24px; border-radius: 20px; }
  .hero h1 { font-size: 34px; }
  .hero-sub { font-size: 15px; margin-bottom: 20px; }
  .hero-stats { gap: 18px; margin-top: 24px; }
  .hero-stats b { font-size: 22px; }
  .trust { grid-template-columns: 1fr; }
  .trust > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .sections { grid-template-columns: 1fr; }
  .block { margin-top: 40px; }
  .ad-title, .cat-hero h1 { font-size: 27px; }
  .ad-price { font-size: 32px; }
  .gallery-main { border-radius: 16px; }
  .gallery-nav { opacity: 1; width: 36px; height: 36px; }
  .specs { grid-template-columns: 1fr; }
  .ad-section { padding: 20px; }
  .row, .rows.has-cols .row { grid-template-columns: 104px minmax(0, 1fr) 34px !important; gap: 12px; align-items: start; padding: 14px; }
  .row-img { width: 104px; }
  .row-side { grid-column: 2; grid-row: 2; text-align: left; margin-top: -6px; flex-direction: row; gap: 10px; align-items: baseline; flex-wrap: wrap; }
  .row-meta { justify-content: flex-start; }
  .row .memo-form { grid-column: 3; grid-row: 1; }
  .row-snippet { display: none; }
  .row-chips { display: flex !important; }
  .row-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 15px; }
  .row-price { font-size: 16px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-body { padding: 10px 12px 12px; }
  .card-price { font-size: 16px; }
  .card-chips { display: none; }
  .memo-item { grid-template-columns: 24px 76px minmax(0, 1fr) 32px; }
  .memo-item .row-img { width: 76px; }
  .memo-item .row-price { grid-column: 3; grid-row: 2; margin-top: -10px; }
  .memo-item .icon-btn { grid-column: 4; grid-row: 1; }
  .bar { grid-template-columns: 120px 1fr 40px; }
  .panel { padding: 18px; }
  .step { min-width: 0; flex: 0 0 auto; }
  .step:not(.on) .step-in { padding: 9px; }
  .step.on { flex: 1 1 auto; min-width: 0; }
  .step.on .step-in { min-width: 0; }
  .step-in { padding: 10px 11px; }
  .step-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .step:not(.on) .step-label { display: none; }
  .foot-in { grid-template-columns: 1fr; }
  .cta { padding: 28px 22px; }
  .cta h2 { font-size: 26px; }
  .lightbox { padding: 60px 10px; }
  .auth-panel { padding: 26px 20px; }
}
@media (max-width: 400px) {
  .search-top, .filters { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Navigation: skip link, mega menu, suggestions ---------- */
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--panel); padding: 10px 16px; border-radius: 10px; font-weight: 800; transition: top .2s; }
.skip:focus { top: 12px; color: var(--panel); }
.mega { position: static; }
.mega-btn { list-style: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); font-weight: 800; font-size: 14px; cursor: pointer; color: var(--ink); white-space: nowrap; transition: all .2s; user-select: none; }
.mega-btn::-webkit-details-marker { display: none; }
.mega-btn:hover, .mega[open] .mega-btn { border-color: var(--ink); }
.mega[open] .mega-btn { background: var(--ink); color: var(--panel); }
.mega-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--panel); border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(19, 33, 27, .35); max-height: calc(100vh - 120px); overflow: auto; animation: drop .2s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.mega-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 28px; padding-top: 28px; padding-bottom: 30px; }
.mega-sec { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); margin-bottom: 10px; font-size: 15px; }
.mega-sec:hover { color: var(--brand); }
.mega-col ul { list-style: none; margin: 0; padding: 0 0 0 40px; display: grid; gap: 6px; }
.mega-col li a { color: var(--ink-2); font-size: 13.5px; font-weight: 500; }
.mega-col li a:hover { color: var(--brand); }
.mega-more { font-weight: 700 !important; color: var(--brand) !important; }
.hsearch, .hero-q { position: relative; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 8px; z-index: 50; text-align: left; color: var(--ink); max-height: 70vh; overflow: auto; }
.suggest-h { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 10px 12px 4px; }
.suggest a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; color: var(--ink); font-size: 14px; }
.suggest a .ico { color: var(--muted); }
.suggest a b { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest a small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.suggest a.on, .suggest a:hover { background: var(--brand-tint); color: var(--ink); }
.suggest mark { background: none; color: var(--brand); font-weight: 800; }
.suggest-all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.suggest-all a { color: var(--brand); font-weight: 700; }

/* ---------- Browse layout with filter sidebar ---------- */
.browse { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; align-items: start; }
.browse-side { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow: auto; display: flex; flex-direction: column; gap: 14px; scrollbar-width: thin; padding-bottom: 6px; }
.browse-side .filter-toggle > summary { cursor: default; }
.browse-side .filter-toggle > summary::after { display: none; }
.browse-side .filter-inner { padding: 16px 18px 18px; }
.browse-side .filters { grid-template-columns: 1fr; gap: 14px; margin: 14px 0 18px; }
.browse-side .filter-actions { flex-direction: column; }
.browse-main { min-width: 0; container-type: inline-size; }
.browse-main .toolbar { margin-bottom: 12px; }
.browse-main .active-filters { margin-bottom: 16px; }
.side-note { display: flex; gap: 12px; padding: 16px 18px; border-radius: var(--radius); background: linear-gradient(145deg, var(--gold-soft), var(--panel)); border: 1px solid var(--gold-line); font-size: 13px; }
.side-note .ico { color: var(--gold); margin-top: 2px; }
.side-note b { display: block; font-size: 14px; }
.side-note span { display: block; color: var(--muted); margin: 2px 0 6px; }
.side-note a { font-weight: 800; }
@container (max-width: 1000px) {
  .rows.has-cols .row { grid-template-columns: 150px minmax(0, 1fr) 150px 40px !important; }
  .rows.has-cols .row-col { display: none; }
  .rows.has-cols .row-chips { display: flex; }
  .row-img { width: 150px; }
  .row-chips { flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; color: var(--ink-2); font-weight: 700; margin-top: 6px; }
  .row-chips span + span::before { content: '·'; margin-right: 10px; color: var(--line-2); }
}
@container (max-width: 560px) {
  .row, .rows.has-cols .row { grid-template-columns: 104px minmax(0, 1fr) 34px !important; gap: 12px; align-items: start; padding: 14px; }
  .row-img { width: 104px; }
  .row-chips { display: flex !important; }
  .row-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 15px; }
  .row-side { grid-column: 2; grid-row: 2; text-align: left; margin-top: -6px; flex-direction: row; gap: 10px; align-items: baseline; flex-wrap: wrap; }
  .row-meta { justify-content: flex-start; }
  .row .memo-form { grid-column: 3; grid-row: 1; }
  .row-snippet { display: none; }
}

/* ---------- Saved searches ---------- */
.saved-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 12px; }
.saved-item { display: flex; align-items: center; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 6px 8px 6px 6px; box-shadow: var(--shadow-xs); transition: border-color .2s; }
.saved-item:hover { border-color: var(--brand); }
.saved-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; padding: 8px; color: var(--ink); }
.saved-main:hover { color: var(--ink); }
.saved-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.saved-text b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1180px) {
  .mega-in { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mega-btn span { display: none; }
  .mega-btn { padding: 10px 12px; }
}
@media (max-width: 960px) {
  .browse { grid-template-columns: 1fr; }
  .browse-side { position: static; max-height: none; overflow: visible; }
  .browse-side .filter-toggle > summary { cursor: pointer; }
  .browse-side .filter-toggle > summary::after { display: block; }
  .browse-side .filters { grid-template-columns: 1fr 1fr; }
  .browse-side .filter-actions { flex-direction: row; }
  .side-note { display: none; }
  .mega-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .mega-in { grid-template-columns: 1fr; gap: 18px; padding-top: 18px; }
  .mega-btn { padding: 9px 11px; }
  .saved-grid { grid-template-columns: minmax(0, 1fr); }
  .toolbar .btn-sm { padding: 7px 10px; }
}
@media (max-width: 400px) { .browse-side .filters { grid-template-columns: 1fr; } }
/* Header items keep their size; the search box absorbs the squeeze. */
.util, .util > *, .logo, .mega { flex-shrink: 0; }
.hsearch { min-width: 150px; }
@media (max-width: 1080px) and (min-width: 721px) { .util-submit span { display: none; } .util-submit { padding: 10px 13px; } }
/* Attribute chips as small pills: they wrap cleanly at any width. */
.card-chips, .row-chips { gap: 5px !important; }
.card-chips span, .row-chips span { background: var(--bg); border: 1px solid var(--line); padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.card-chips span + span::before, .row-chips span + span::before { content: none !important; }

/* ---------- Advanced filters ---------- */
.fgroup-base { display: flex; flex-direction: column; gap: 14px; }
.fgroup-tail { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.fgroup { border-top: 1px solid var(--line); margin-top: 16px; }
.fgroup > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 14px 0 4px; font-weight: 800; font-size: 14px; color: var(--ink); user-select: none; }
.fgroup > summary::-webkit-details-marker { display: none; }
.fgroup > summary::after { content: ''; margin-left: auto; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.fgroup[open] > summary::after { transform: rotate(-135deg); }
.fgroup-body { display: flex; flex-direction: column; gap: 14px; padding: 10px 0 4px; }
.count-dot { background: var(--brand); color: var(--brand-ink); border-radius: 999px; min-width: 19px; height: 19px; display: inline-grid; place-items: center; font-size: 11px; padding: 0 5px; }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { cursor: pointer; position: relative; }
.fchip input { position: absolute; opacity: 0; pointer-events: none; }
.fchip span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); font-size: 13px; font-weight: 700; color: var(--ink-2); transition: all .15s; line-height: 1.3; }
.fchip small { font-size: 11px; color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.fchip:hover span { border-color: var(--ink-2); color: var(--ink); }
.fchip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--panel); }
.fchip input:checked + span small { color: inherit; opacity: .7; }
.fchip input:focus-visible + span { box-shadow: var(--ring); }
.fchips-multi .fchip input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.fchips-multi .fchip input:checked + span::before { content: '✓'; font-weight: 900; }
.fchip.is-zero span { opacity: .45; }
.fchips.is-collapsed .fchip:nth-child(n+9):not(:has(input:checked)) { display: none; }
.fchips-more { border: 0; background: none; padding: 4px 2px; color: var(--brand); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.fcheck { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.fcheck small { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 700; }
.fcheck.is-zero { opacity: .5; }
.fcheck-form { align-self: end; padding: 10px 0; }
.range select { padding-right: 28px; background-position: right 8px center; }
.browse-side .filter-actions { position: sticky; bottom: -6px; background: var(--panel); padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--line); z-index: 2; }
.form-group { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 16px 18px 18px; margin: 0; background: var(--panel-2); }
.form-group legend { font-weight: 800; font-size: 14px; padding: 0 8px; margin-left: -8px; color: var(--ink); }
.fld-span { grid-column: 1 / -1; }
.seg-sm span { padding: 7px 12px; font-size: 13px; }
.spec-h { font-family: var(--font); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin: 22px 0 4px; }
.spec-h:first-of-type { margin-top: 4px; }
.checklist { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 8px 16px; }
.checklist li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.checklist .ico, .yes .ico { color: var(--brand); }
.yes { display: inline-flex; align-items: center; gap: 4px; color: var(--brand); }

/* ---------- Browse-by tiles (third level) ---------- */
.type-tiles { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 2px 2px 14px; margin: -8px 0 14px; scrollbar-width: thin; }
.type-label { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-2); white-space: nowrap; margin-right: 4px; }
.type-tile { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--ink); font-weight: 700; font-size: 13.5px; box-shadow: var(--shadow-xs); transition: all .2s; white-space: nowrap; }
.type-tile small { color: var(--muted); font-size: 11.5px; font-weight: 700; }
.type-tile:hover { border-color: var(--brand); color: var(--ink); }
.type-tile.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.type-tile.on small { color: inherit; opacity: .75; }

/* ---------- Reservation, urgency, verification ---------- */
.tag-urgent { background: #c2410c; color: #fff; }
.tag-reserved { background: var(--blue-soft); color: var(--blue); }
.tag-verified { background: var(--ok-soft); color: var(--brand); text-transform: none; letter-spacing: 0; }
.tag-plan { background: linear-gradient(135deg, var(--ink), #2a3a33); color: #e9cd94; }
.day-head { padding: 12px 18px 8px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--panel-2); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.day-head::after { content: ''; flex: 1; height: 1px; background: var(--line); }
time { font-variant-numeric: tabular-nums; }

/* ---------- Sponsored & local ads ---------- */
.sponsored { position: relative; }
.sponsored-link { display: flex; gap: 16px; align-items: stretch; color: var(--ink); background: linear-gradient(135deg, var(--gold-soft), var(--panel) 70%); border: 1px solid var(--gold-line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s, transform .25s var(--ease); height: 100%; }
.sponsored-link:hover { color: var(--ink); box-shadow: var(--shadow); transform: translateY(-1px); }
.sponsored.is-local .sponsored-link { background: linear-gradient(135deg, var(--brand-tint), var(--panel) 70%); border-color: var(--brand-soft); }
.sponsored-media { flex: none; width: 140px; display: grid; place-items: center; background: var(--panel-2); color: var(--gold); }
.sponsored.is-local .sponsored-media { color: var(--brand); }
.sponsored-media img { width: 100%; height: 100%; object-fit: cover; }
.sponsored-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 14px 0; min-width: 0; flex: 1; }
.sponsored-label { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-2); display: inline-flex; align-items: center; gap: 5px; }
.sponsored.is-local .sponsored-label { color: var(--brand); }
.sponsored-body b { font-size: 16px; line-height: 1.3; }
.sponsored-text { font-size: 13.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sponsored-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; font-size: 13px; }
.sponsored-cta { font-weight: 800; color: var(--brand); }
.sponsored-domain { color: var(--muted); }
.sponsored-banner { margin: -4px 0 18px; }
.sponsored-banner .sponsored-media { width: 200px; }
.sponsored-row { border-bottom: 1px solid var(--line); padding: 10px 14px; background: var(--panel-2); }
.sponsored-row .sponsored-link { border-radius: var(--radius-md); }
.sponsored-card .sponsored-link { flex-direction: column; gap: 0; }
.sponsored-card .sponsored-media { width: 100%; aspect-ratio: 16 / 7; }
.sponsored-card .sponsored-body { padding: 14px 16px; }
.cards > .sponsored-card .sponsored-media { aspect-ratio: 4 / 3; }
.sponsored-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.ad-placeholder { display: flex; align-items: center; gap: 14px; padding: 22px; border: 2px dashed var(--gold-line); border-radius: var(--radius); color: var(--ink-2); background: var(--gold-soft); }
.ad-placeholder:hover { color: var(--ink); border-color: var(--gold); }
.ad-placeholder .ico { color: var(--gold); }
.ad-placeholder b { display: block; color: var(--ink); }
.jobs-strip { margin-top: 30px; }
.jobs-card { display: flex; align-items: center; gap: 16px; padding: 20px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); box-shadow: var(--shadow-xs); }
.jobs-card:hover { color: var(--ink); border-color: var(--brand); }
.jobs-card > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.jobs-card b { font-size: 17px; }
.adv-st-active, .req-st-accepted, .req-st-completed { background: var(--ok-soft); color: var(--brand); }
.adv-st-review, .adv-st-approved, .req-st-pending { background: var(--gold-soft); color: var(--gold-2); }
.adv-st-rejected, .req-st-declined { background: var(--danger-soft); color: var(--danger); }
.adv-st-paused, .adv-st-ended, .req-st-cancelled { background: var(--bg); color: var(--muted); }

/* ---------- Requests, reservations, reviews ---------- */
.reserve-note { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--blue-soft); color: var(--blue); font-size: 13.5px; font-weight: 700; }
.reserve-note.is-mine { background: var(--ok-soft); color: var(--brand); }
.req-actions { display: flex; flex-direction: column; gap: 8px; }
.req-box > summary { list-style: none; cursor: pointer; }
.req-box > summary::-webkit-details-marker { display: none; }
.req-box[open] > summary { border-color: var(--brand); color: var(--brand); }
.req-form { display: flex; flex-direction: column; gap: 10px; padding: 12px; margin-top: 8px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--panel-2); }
.req-form small { font-size: 12px; }
.req-status { display: flex; align-items: center; gap: 6px; font-size: 13px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--panel-2); color: var(--ink-2); border: 1px solid var(--line); }
.req-status:hover { color: var(--ink); }
.owner-tools { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; margin-top: 4px; border-top: 1px dashed var(--line); }
.owner-tools form { margin: 0; }
.seller-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; }
.rating { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--ink); }
.stars { color: var(--gold); letter-spacing: 1px; }
.req-list { display: flex; flex-direction: column; gap: 12px; }
.req-item { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 18px; align-items: start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow-xs); }
.req-item.status-pending { border-left: 3px solid var(--gold); }
.req-item .row-img { width: 112px; }
.req-main { min-width: 0; }
.req-detail { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.req-detail span { display: inline-flex; align-items: center; gap: 5px; }
.req-msg { margin: 8px 0 0; padding: 8px 12px; background: var(--panel-2); border-radius: var(--radius-sm); font-size: 14px; color: var(--ink-2); }
.req-reply { background: var(--brand-tint); }
.req-contact { margin: 8px 0 0; color: var(--brand); font-weight: 700; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.req-item { grid-template-columns: 112px minmax(0, 1fr) 256px; }
.req-actions-col { display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: 0; }
.req-actions-col > a, .req-actions-col > .btn, .req-actions-col > form > .btn { align-self: flex-start; }
.req-actions-col form { margin: 0; }
.req-decide { display: flex; flex-direction: column; gap: 8px; }
.req-buttons { display: flex; gap: 6px; flex-wrap: wrap; }
.review-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.review { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.review-head time { margin-left: auto; }
.review p { margin: 0 0 6px; color: var(--ink-2); }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { position: absolute; opacity: 0; }
.star-input label { font-size: 34px; color: var(--line-2); cursor: pointer; transition: color .15s; line-height: 1; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--gold); }
.star-input input:focus-visible + label { outline: 2px solid var(--brand); border-radius: 4px; }
.notif-list { list-style: none; padding: 0; margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.notif + .notif { border-top: 1px solid var(--line); }
.notif a { display: flex; align-items: center; gap: 14px; padding: 14px 18px; color: var(--ink); }
.notif a:hover { background: var(--panel-2); color: var(--ink); }
.notif.is-unread a { background: var(--brand-tint); }
.notif-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.notif-body b { font-weight: 700; }
.notif-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--panel-2); color: var(--brand); flex: none; }
.notif-price_drop, .notif-deal_completed, .notif-review_new { color: var(--gold); }
.notif-request_declined, .notif-verify_rejected, .notif-ad_rejected { color: var(--danger); }

/* ---------- Plans, dashboard, shop, jobs ---------- */
.plans-hero { text-align: center; max-width: 760px; margin: 10px auto 30px; }
.plans-hero .lead { margin: 12px auto 0; }
.plans-hero .eyebrow { justify-content: center; }
.plans-hero .notice { margin-top: 18px; text-align: left; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.plan { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow-xs); }
.plan h2 { font-size: 26px; }
.plan.is-featured { border-color: var(--gold-line); box-shadow: 0 0 0 1px var(--gold-line), var(--shadow-lg); }
.plan.is-current { outline: 2px solid var(--brand); }
.plan-flag { position: absolute; top: -12px; right: 22px; background: linear-gradient(135deg, #d4a85a, var(--gold-2)); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; }
.plan-price b { font-family: var(--display); font-size: 40px; line-height: 1; font-variant-numeric: lining-nums; }
.plan-price span { color: var(--muted); font-weight: 600; }
.plan-features { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 8px; font-size: 14px; }
.plan-features li { display: flex; gap: 8px; align-items: flex-start; }
.plan-features .ico { color: var(--brand); margin-top: 2px; }
.plan-buy { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.plan-strip { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; }
.plan-strip > span:nth-child(2) { flex: 1; font-weight: 600; }
.chart-panel { margin-bottom: 8px; }
.chart { width: 100%; height: 200px; display: block; }
.chart .bar-v { fill: var(--brand-soft); }
.chart .bar-v:hover { fill: var(--brand); }
.chart .bar-c { fill: var(--gold); pointer-events: none; }
.chart .axis { stroke: var(--line-2); }
.chart-x { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }
.chart-legend { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.chart-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.lg-views { background: var(--brand-soft); }
.lg-contacts { background: var(--gold); margin-left: 8px; }
.shop-about { margin: -12px 0 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.hero-jobs { grid-template-columns: 1fr; }
.hero-jobs h1 { max-width: 22ch; }
.jobs-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 22px; }
.sec-services { background: #f3e8fb; color: #7a3ea8; }
.sec-food { background: #fdebe4; color: #b4421e; }
@media (max-width: 720px) {
  .req-item { grid-template-columns: 80px minmax(0, 1fr); }
  .req-item .row-img { width: 80px; }
  .req-actions-col { grid-column: 1 / -1; min-width: 0; }
  .sponsored-media { width: 96px; }
  .sponsored-banner .sponsored-media { width: 110px; }
  .jobs-card { flex-wrap: wrap; }
}

/* ---------- Messaging ---------- */
.btn-msg { background: var(--ink); border-color: var(--ink); color: var(--panel); }
.btn-msg:hover { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.msg-box[open] > summary.btn-msg { background: var(--panel); color: var(--brand); border-color: var(--brand); }
.quick-replies { display: flex; flex-wrap: wrap; gap: 6px; }
.quick-replies .chip { padding: 6px 11px; font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: inherit; text-align: left; }
.quick-replies .chip:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-tint); }
.avatar-xs { width: 22px; height: 22px; font-size: 9px; }
.tag-sell { background: var(--brand-soft); color: var(--brand); }
.tag-buy { background: var(--blue-soft); color: var(--blue); }
.tag-muted { background: var(--bg-2); color: var(--muted); }

.inbox { list-style: none; margin: 0; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs); overflow: hidden; }
.inbox-item + .inbox-item { border-top: 1px solid var(--line); }
.inbox-link { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 18px; color: inherit; text-decoration: none; transition: background .15s var(--ease); }
.inbox-link:hover { background: var(--panel-2); }
.inbox-item.is-unread .inbox-link { background: var(--brand-tint); }
.inbox-img { width: 64px; height: 64px; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-2); display: grid; place-items: center; color: var(--muted); }
.inbox-img img { width: 100%; height: 100%; object-fit: cover; }
.inbox-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.inbox-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inbox-name { display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; }
.inbox-time { margin-left: auto; white-space: nowrap; }
.inbox-title { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-last { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.is-unread .inbox-last { color: var(--ink); font-weight: 700; }
.inbox-badge { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-size: 12px; font-weight: 800; display: grid; place-items: center; }

.chat-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.chat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; min-height: 560px; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chat-who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.chat-who b { font-size: 16px; }
.chat-who .tag { vertical-align: middle; }
.chat-tools { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.chat-safety { display: flex; gap: 8px; align-items: flex-start; padding: 9px 18px; font-size: 12.5px; color: var(--gold-2); background: var(--gold-soft); border-bottom: 1px solid var(--gold-line); }
.chat-safety .ico { flex: none; margin-top: 2px; }
.chat-log { list-style: none; margin: 0; padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; overflow-y: auto; max-height: 62vh; min-height: 320px; background: var(--panel-2); scroll-behavior: smooth; }
.chat-empty { margin: auto; }
.chat-day { align-self: center; margin: 10px 0 4px; }
.chat-day span { font-size: 11.5px; font-weight: 700; color: var(--muted); background: var(--panel); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; }
.bubble { max-width: min(78%, 560px); padding: 9px 13px 6px; border-radius: 16px; position: relative; box-shadow: var(--shadow-xs); }
.bubble p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; line-height: 1.45; }
.bubble time { display: block; text-align: right; font-size: 11px; opacity: .65; margin-top: 2px; }
.bubble.is-mine { align-self: flex-end; background: var(--brand); color: var(--brand-ink); border-bottom-right-radius: 5px; }
.bubble.is-theirs { align-self: flex-start; background: var(--panel); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.bubble.is-new { animation: bubble-in .25s var(--ease); }
@keyframes bubble-in { from { opacity: 0; transform: translateY(6px); } }
.bubble-warn { display: flex; gap: 6px; align-items: flex-start; margin-top: 6px; padding: 6px 8px; border-radius: 8px; background: var(--danger-soft); color: var(--danger); font-size: 12px; font-weight: 600; }
.chat-form { padding: 12px 18px 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.chat-input { display: flex; gap: 10px; align-items: flex-end; }
.chat-input textarea { flex: 1; resize: vertical; min-height: 46px; max-height: 220px; }
.chat-input .btn { flex: none; }
.chat > .notice { margin: 12px 18px; }
.chat-side { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 90px; }
.chat-listing { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit; text-decoration: none; box-shadow: var(--shadow-xs); transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.chat-listing:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.chat-listing-img { aspect-ratio: 4 / 3; background: var(--bg-2); display: grid; place-items: center; color: var(--muted); }
.chat-listing-img img { width: 100%; height: 100%; object-fit: cover; }
.chat-listing-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.chat-listing-price { font-weight: 800; font-size: 18px; }

/* ---------- Following & response stats ---------- */
.seller-card .seller-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.seller-card .seller-stats div { padding: 9px 10px; }
.seller-card .seller-stats b { font-size: 15.5px; }
.seller-card .seller-stats span { font-size: 11.5px; }
.seller-resp { display: flex; gap: 7px; align-items: flex-start; margin: -4px 0 14px; font-size: 13px; color: var(--brand); font-weight: 600; }
.seller-resp .ico { flex: none; margin-top: 2px; }
.seller-actions { display: flex; flex-direction: column; gap: 8px; }
.btn-follow.is-on { background: var(--brand-soft); border-color: transparent; color: var(--brand); }
.profile-follow { margin-top: 14px; max-width: 220px; }
.icon-btn.is-on { color: var(--brand); }
.icon-btn.is-on:hover { color: var(--brand-2); background: var(--brand-tint); }
.verified-dot { color: var(--brand); display: inline-flex; vertical-align: -2px; }
.followed { margin-top: 34px; }

@media (max-width: 980px) {
  .chat-layout { grid-template-columns: 1fr; }
  .chat-side { position: static; order: -1; }
  .chat-listing { flex-direction: row; }
  .chat-listing-img { width: 96px; aspect-ratio: auto; flex: none; }
}
@media (max-width: 640px) {
  .inbox-link { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; padding: 12px 14px; }
  .inbox-img { width: 48px; height: 48px; }
  .chat { min-height: 0; border-radius: var(--radius-md); }
  .chat-head { padding: 12px; flex-wrap: wrap; }
  .chat-tools { width: 100%; justify-content: flex-start; }
  .chat-tools .btn span { display: none; }
  .chat-log { padding: 12px; max-height: 58vh; }
  .chat-form { padding: 10px 12px 12px; }
  .chat-input .btn span { display: none; }
  .bubble { max-width: 88%; }
}

/* ---------- Account navigation ---------- */
.acct-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 4px 0 22px; padding: 5px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-xs); }
.acct-nav::-webkit-scrollbar { display: none; }
.acct-nav a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 10px; color: var(--ink-2); font-weight: 700; font-size: 13.5px; text-decoration: none; white-space: nowrap; transition: background .15s var(--ease), color .15s var(--ease); }
.acct-nav a:hover { background: var(--panel-2); color: var(--ink); }
.acct-nav a.on { background: var(--ink); color: var(--panel); }
.acct-nav .count { font-size: 11px; }
.acct-bal { font-size: 11.5px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-2); }

/* ---------- Wallet & invoices ---------- */
.wallet-top { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 20px; margin-bottom: 26px; }
.wallet-balance { border-radius: var(--radius); padding: 28px; color: #fff; display: flex; flex-direction: column; gap: 6px; justify-content: flex-end; min-height: 220px;
  background: radial-gradient(120% 140% at 100% 0%, #1d7a5b 0%, var(--brand) 45%, var(--brand-3) 100%); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.wallet-balance::after { content: ''; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; border: 28px solid rgba(255, 255, 255, .06); }
.wallet-balance .eyebrow { color: rgba(255, 255, 255, .7); }
.wallet-amount { font-family: var(--display); font-size: 46px; line-height: 1.05; font-variant-numeric: lining-nums tabular-nums; }
.wallet-sub { font-size: 13px; color: rgba(255, 255, 255, .75); }
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.pack { cursor: pointer; }
.pack input { position: absolute; opacity: 0; pointer-events: none; }
.pack-card { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-md); background: var(--panel); transition: border-color .15s, box-shadow .15s; height: 100%; }
.pack-card b { font-size: 17px; }
.pack input:checked + .pack-card { border-color: var(--brand); box-shadow: var(--ring); background: var(--brand-tint); }
.pack input:focus-visible + .pack-card { box-shadow: var(--ring); }
.wallet-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; }
.admin-table td.pos { color: var(--brand); font-weight: 700; }
.admin-table td.neg { color: var(--ink-2); }
.doc-list { list-style: none; margin: 0; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.doc-list li + li { border-top: 1px solid var(--line); }
.doc-list a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 16px; color: inherit; text-decoration: none; }
.doc-list a:hover { background: var(--panel-2); }
.doc-list a > span { display: flex; flex-direction: column; min-width: 0; }
.doc-list .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wallet-inline { font-size: 22px; font-family: var(--display); }
.plan-strip-bal { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--gold-2); text-decoration: none; background: var(--gold-soft); padding: 5px 11px; border-radius: 999px; }
.invoice-actions { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.invoice { max-width: 820px; margin: 0 auto 30px; padding: 40px; }
.invoice-head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 20px; margin-bottom: 22px; }
.invoice-head .logo { margin-bottom: 10px; }
.invoice-meta { text-align: right; }
.invoice-meta h1 { font-size: 30px; margin: 0 0 4px; }
.invoice-to { margin-bottom: 20px; }
.invoice-lines { width: 100%; margin-bottom: 16px; }
.invoice-lines thead th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.invoice-lines thead th.num { text-align: right; }
@media print {
  .acct-nav, .invoice-actions, .no-print, .flash { display: none !important; }
  .invoice { box-shadow: none; border: 0; padding: 0; }
}

/* ---------- Trust ---------- */
.tscore { --tc: var(--muted); display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.trust-ring { width: 34px; height: 34px; flex: none; }
.trust-track { fill: none; stroke: var(--line); stroke-width: 3.5; }
.trust-val { fill: none; stroke: var(--tc); stroke-width: 3.5; stroke-linecap: round; }
.tscore > b { margin-left: -38px; width: 34px; text-align: center; font-size: 12px; color: var(--ink); font-variant-numeric: tabular-nums; }
.tscore-top { --tc: #0e8a5f; }
.tscore-high { --tc: var(--brand); }
.tscore-good { --tc: var(--gold); }
.tscore-new { --tc: #9aa29d; }
.tscore-sm { font-size: 12px; gap: 5px; }
.tscore-sm .trust-ring { width: 26px; height: 26px; }
.tscore-sm > b { margin-left: -30px; width: 26px; font-size: 10px; }
.tscore-sm > span { display: none; }
.seller-trust, .profile-trust { display: inline-flex; text-decoration: none; margin: 10px 0 6px; }
.trust-panel-head { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.trust-panel-head .trust-ring { width: 56px; height: 56px; }
.trust-panel-head .tscore > b { margin-left: -62px; width: 56px; font-size: 17px; }
.trust-panel-head .tscore > span { display: none; }
.trust-panel-head h2 { margin: 0; }
.trust-factors { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.trust-factors li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 54px; gap: 12px; align-items: center; font-size: 13.5px; color: var(--muted); }
.trust-factors li.is-on { color: var(--ink); }
.trust-bar { height: 8px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.trust-bar i { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.trust-factors li.is-neg .trust-bar i { background: var(--danger); }
.trust-pts { text-align: right; font-variant-numeric: tabular-nums; font-size: 12.5px; }
.is-neg .trust-pts { color: var(--danger); }

/* ---------- Applications & hiring ---------- */
.skill-chips { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.skill-chips li { font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--brand-tint); color: var(--brand); border: 1px solid var(--brand-soft); }
.apply-profile { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: var(--radius-md); background: var(--brand-tint); border: 1px solid var(--brand-soft); }
.apply-job .apply-salary { font-size: 22px; font-weight: 800; margin: 4px 0; }
.apply-steps { margin: 16px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 14px; display: grid; gap: 6px; }
.check-row { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.app-st { background: var(--bg-2); color: var(--ink-2); }
.app-st-new { background: var(--blue-soft); color: var(--blue); }
.app-st-screening { background: var(--violet-soft); color: var(--violet); }
.app-st-interview { background: var(--gold-soft); color: var(--gold-2); }
.app-st-offer { background: #fff1e6; color: #b45309; }
.app-st-hired { background: #0e5a43; color: #fff; }
.app-st-rejected, .app-st-withdrawn { background: var(--bg-2); color: var(--muted); }
.req-status.app-st-hired { color: #fff; }
.pipeline { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.pipeline li { position: relative; padding-top: 10px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.pipeline li::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; border-radius: 999px; background: var(--bg-2); }
.pipeline li.done::before { background: var(--brand-soft); }
.pipeline li.now::before { background: var(--brand); }
.pipeline li.now { color: var(--brand); }
.pipeline span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-item.stage-hired { border-color: var(--brand); }
.seg-new { --sc: #2c55a4; } .seg-screening { --sc: #6b3fa8; } .seg-interview { --sc: #8f6a2b; }
.seg-offer { --sc: #c2410c; } .seg-hired { --sc: #0e5a43; } .seg-rejected { --sc: #6b7280; } .seg-empty { --sc: var(--bg-2); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--sc); margin-right: 6px; vertical-align: 0; }
.job-pipes { display: grid; gap: 12px; }
.job-pipe { display: grid; gap: 10px; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: inherit; text-decoration: none; box-shadow: var(--shadow-xs); transition: box-shadow .2s var(--ease), border-color .2s; }
.job-pipe:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.job-pipe-head { display: flex; flex-direction: column; gap: 2px; }
.job-pipe-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; gap: 2px; background: var(--bg-2); }
.job-pipe-bar i { background: var(--sc); }
.job-pipe-counts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; }
.cand-list { list-style: none; margin: 0; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cand-list li + li { border-top: 1px solid var(--line); }
.cand-list a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 16px; color: inherit; text-decoration: none; }
.cand-list a:hover { background: var(--panel-2); }
.cand-main { display: flex; flex-direction: column; min-width: 0; }
.cand-main .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.talent-cta, .b2b { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 26px 0; }
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 18px; position: relative; }
.kan-col { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 160px; }
.kan-col > header { display: flex; align-items: center; gap: 4px; padding: 4px 4px 8px; border-bottom: 3px solid var(--sc, var(--line)); font-size: 14px; }
.kan-col > header .count { margin-left: auto; }
.kan-new > header { --sc: var(--blue); } .kan-screening > header { --sc: var(--violet); } .kan-interview > header { --sc: var(--gold); }
.kan-offer > header { --sc: #e07a1f; } .kan-hired > header { --sc: var(--brand); } .kan-rejected > header { --sc: #a7aea9; }
.kan-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-xs); }
.kan-link { display: flex; flex-direction: column; gap: 5px; padding: 11px 12px 8px; color: inherit; text-decoration: none; }
.kan-link:hover b { color: var(--brand); }
.kan-top { display: flex; align-items: center; gap: 8px; }
.kan-head { font-size: 13px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kan-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kan-foot .stars { color: var(--gold); }
.kan-move { display: flex; gap: 6px; padding: 0 12px 11px; }
.kan-move select { flex: 1; min-width: 0; padding: 5px 8px; font-size: 12.5px; }
.cand-nav { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-bottom: 10px; }
.cand-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.cand-layout > div > .panel + .panel { margin-top: 18px; }
.cand-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.cand-head > div { flex: 1; min-width: 0; }
.cand-head h1 { margin: 0; font-size: 26px; }
.cand-headline { margin: 4px 0; font-weight: 700; color: var(--ink-2); }
.cand-contacts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.cand-spec { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 8px 0 12px; font-size: 14px; }
.cand-spec dt { color: var(--muted); }
.cand-spec dd { margin: 0; font-weight: 700; }
.cand-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 90px; }
.stage-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.stage-pick label { cursor: pointer; }
.stage-pick input { position: absolute; opacity: 0; pointer-events: none; }
.stage-pick span { display: block; padding: 8px 10px; border-radius: 10px; border: 1.5px solid var(--line); font-weight: 700; font-size: 13px; text-align: center; transition: all .15s; }
.stage-pick input:checked + span { border-color: var(--sc); background: var(--sc); color: #fff; }
.stage-pick input:focus-visible + span { box-shadow: var(--ring); }
.rate-form .star-input label { font-size: 28px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--line); display: grid; gap: 12px; }
.timeline li { position: relative; display: flex; flex-direction: column; font-size: 14px; }
.timeline li::before { content: ''; position: absolute; left: -22px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); border: 2px solid var(--panel); }
.timeline time { font-size: 12px; color: var(--muted); }
.talent-filters { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto auto; gap: 12px; align-items: end; margin-bottom: 12px; padding: 18px; }
.talent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.talent-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-xs); }
.talent-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.talent-top > div { display: flex; flex-direction: column; min-width: 0; }
.talent-headline { margin: 0; font-weight: 700; }
.talent-rate { margin: 0; }
.talent-lock { text-align: center; padding: 44px 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.talent-lock > .ico { color: var(--gold); }

/* ---------- Seller dashboard ---------- */
.period-pick { display: inline-flex; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.period-pick a { padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; color: var(--ink-2); text-decoration: none; }
.period-pick a.on { background: var(--ink); color: var(--panel); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow-xs); position: relative; }
.kpi > span { color: var(--muted); font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.kpi > b { font-family: var(--display); font-size: 28px; line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; }
.kpi small { font-size: 12.5px; }
.kpi-hero { background: linear-gradient(150deg, var(--brand), var(--brand-3)); color: #fff; border-color: transparent; }
.kpi-hero > span, .kpi-hero small.muted { color: rgba(255, 255, 255, .75); }
.kpi-delta { position: absolute; right: 14px; top: 14px; font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.kpi-delta.up { background: var(--ok-soft); color: var(--brand); }
.kpi-delta.down { background: var(--danger-soft); color: var(--danger); }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; margin-bottom: 8px; }
.funnel { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.funnel li { display: grid; grid-template-columns: 120px minmax(0, 1fr) 60px 44px; gap: 10px; align-items: center; font-size: 13.5px; }
.funnel-bar { height: 22px; background: var(--bg-2); border-radius: 6px; overflow: hidden; }
.funnel-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #2a8f6a); border-radius: 6px; }
.funnel b { text-align: right; font-variant-numeric: tabular-nums; }
.dash-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.dash-mini div { display: flex; flex-direction: column; }
.dash-mini b { font-size: 18px; }
.tips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 10px; }
.tips a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-md); color: inherit; text-decoration: none; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-xs); }
.tips a:hover { border-color: var(--brand); }
.tip-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-2); }

/* ---------- Earn hub ---------- */
.hero-earn { background: radial-gradient(120% 120% at 100% 0%, #2a6b52 0%, var(--brand-2) 40%, var(--brand-3) 100%); }
.earn-me { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin: 20px 0; }
.earn-me-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.earn-me-stats div { display: flex; flex-direction: column; }
.earn-me-stats b { font-family: var(--display); font-size: 26px; }
.earn-me-cta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.earn-ways { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.earn-way { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: inherit; text-decoration: none; box-shadow: var(--shadow-xs); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.earn-way:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--brand-soft); }
.earn-way-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); margin-bottom: 4px; }
.earn-tips ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.b2b { align-items: flex-start; }
.b2b > div:first-child { flex: 1 1 320px; }
.b2b-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; flex: 2 1 420px; }
.b2b-list li { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; font-size: 14px; }
.b2b-list .ico { color: var(--brand); flex: none; margin-top: 2px; }
.b2b-cta { display: flex; gap: 10px; flex-wrap: wrap; width: 100%; }
.employer-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.employer { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 18px 12px; background: var(--panel); border: 1px solid var(--gold-line); border-radius: var(--radius); color: inherit; text-decoration: none; box-shadow: var(--shadow-xs); }
.employer:hover { box-shadow: var(--shadow); }

@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid, .wallet-grid, .cand-layout { grid-template-columns: minmax(0, 1fr); }
  .cand-side { position: static; }
  .earn-ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .talent-filters { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .wallet-top { grid-template-columns: 1fr; }
  .wallet-balance { min-height: 0; }
  .packs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-3 { grid-template-columns: 1fr 1fr 1fr; }
  .stats-3 .stat { padding: 12px; }
  .stats-3 .stat b { font-size: 22px; }
  .funnel li { grid-template-columns: 92px minmax(0, 1fr) 48px 40px; font-size: 12.5px; }
  .cand-list a { grid-template-columns: auto minmax(0, 1fr) auto; }
  .cand-list .tscore { display: none; }
  .b2b-list { grid-template-columns: 1fr; }
  .invoice { padding: 22px; }
  .invoice-meta { text-align: left; }
}
@media (max-width: 520px) {
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 12px 14px; }
  .kpi > b { font-size: 22px; }
  .kpi-delta { position: static; align-self: flex-start; }
  .earn-ways { grid-template-columns: 1fr 1fr; gap: 10px; }
  .earn-way { padding: 14px; }
  .talent-filters { grid-template-columns: 1fr; }
  .pipeline span { font-size: 10px; }
  .trust-factors li { grid-template-columns: minmax(0, 1fr) 70px 48px; }
}
.page-head .ad-actions { flex-wrap: wrap; }
.stats-6 { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }

/* ---------- Security, referrals, outbox ---------- */
.auth-narrow { grid-template-columns: minmax(0, 460px); justify-content: center; }
.fld-link { float: right; font-weight: 600; font-size: 12.5px; text-transform: none; letter-spacing: 0; }
.sec-rows { display: grid; gap: 4px; margin-bottom: 10px; }
.sec-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sec-row:last-child { border-bottom: 0; }
.sec-row > div { display: flex; flex-direction: column; min-width: 0; }
.secu-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--bg-2); color: var(--muted); }
.secu-ico.is-ok { background: var(--ok-soft); color: var(--brand); }
.sec-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.code-form { display: flex; gap: 6px; }
.code-form input { width: 96px; letter-spacing: .2em; font-variant-numeric: tabular-nums; text-align: center; }
.verify-nag { margin: -10px 0 18px; }
.verify-nag form { margin-left: auto; }
.invite-hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 26px; align-items: center; padding: 32px; border-radius: var(--radius); margin-bottom: 22px;
  background: radial-gradient(120% 140% at 0% 0%, var(--gold-soft) 0%, var(--panel) 60%); border: 1px solid var(--gold-line); }
.invite-hero h1 { margin: 6px 0 8px; font-size: clamp(26px, 3.2vw, 38px); }
.invite-link { display: flex; gap: 8px; margin-top: 16px; }
.invite-link input { flex: 1; min-width: 0; font-weight: 700; }
.invite-code { margin: 8px 0 0; color: var(--muted); }
.invite-stats { display: grid; gap: 10px; }
.invite-stats div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 12px 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.invite-stats b { font-family: var(--display); font-size: 24px; }
.invite-stats span { color: var(--muted); font-size: 13px; font-weight: 700; }
.invite-friend { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 16px; }
.outbox { display: grid; gap: 12px; }
.outbox-item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px 16px; }
.outbox-item header { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.outbox-item time { margin-left: auto; }
.outbox-subject { font-weight: 800; margin-top: 8px; }
.outbox-body { white-space: pre-wrap; overflow-wrap: anywhere; font: 13.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--panel-2); border-radius: 8px; padding: 10px 12px; margin: 8px 0 0; }

/* ---------- Auctions ---------- */
.tag-auction { background: #3b2a6b; color: #f1e7ff; }
.tag-good { background: var(--ok-soft); color: var(--brand); }
.card-price-label { display: block; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #6b4fbf; }
.auction-box { border: 1.5px solid #cbb8f2; background: linear-gradient(180deg, #f6f1ff, var(--panel) 70%); border-radius: var(--radius-md); padding: 14px; margin: 14px 0; display: flex; flex-direction: column; gap: 12px; }
.auction-box.is-ended { border-color: var(--line); background: var(--panel-2); }
.auction-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.auction-title { display: inline-flex; gap: 6px; align-items: center; font-weight: 800; color: #4b2f9a; }
.auction-left { font-weight: 800; font-variant-numeric: tabular-nums; padding: 4px 10px; border-radius: 999px; background: #3b2a6b; color: #fff; font-size: 13px; }
.auction-left.is-soon { background: #b42318; color: #fff; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .75; } }
.is-ended .auction-left { background: var(--bg-2); color: var(--muted); }
.auction-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.auction-stats div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.auction-stats span { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.auction-stats b { font-size: 15px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.auction-stats div:first-child b { font-size: 22px; font-family: var(--display); }
.bid-form { display: flex; flex-direction: column; gap: 8px; }
.bid-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.bid-quick .chip { cursor: pointer; font-family: inherit; padding: 6px 12px; }
.bid-quick .chip:hover { border-color: #6b4fbf; color: #4b2f9a; }
.bid-row { display: flex; gap: 8px; }
.bid-row .with-unit { flex: 1; min-width: 0; }
.bid-history summary { cursor: pointer; font-weight: 700; font-size: 13.5px; }
.bid-history ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.bid-history li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; font-size: 13.5px; padding: 5px 8px; border-radius: 8px; }
.bid-history li.is-top { background: #efe7ff; font-weight: 700; }
.bid-history li.is-mine span { color: var(--brand); font-weight: 800; }
.auction-opt .seg { margin: 8px 0 4px; }
.hero-auction { background: radial-gradient(120% 120% at 100% 0%, #5b3fae 0%, #2c1f5a 55%, #17112f 100%); }
.auction-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 14px; align-items: center; margin: 22px 0; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.auction-how > div { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); }
.auction-how > div .ico { flex: none; color: #6b4fbf; margin-top: 1px; }

/* ---------- Price intelligence ---------- */
.price-hint { display: block; margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: var(--brand-tint); color: var(--brand); font-size: 13px; font-weight: 600; }
.pe-verdict { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.pe-verdict p { margin: 0; font-weight: 600; }
.pe-pill { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: 13.5px; background: var(--bg-2); }
.pe-good .pe-pill { background: var(--ok-soft); color: var(--brand); }
.pe-fair .pe-pill { background: var(--blue-soft); color: var(--blue); }
.pe-high .pe-pill { background: var(--gold-soft); color: var(--gold-2); }
.pe-low .pe-pill { background: var(--danger-soft); color: var(--danger); }
.pe-warn { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--danger-soft); color: var(--danger); font-weight: 600; font-size: 13.5px; margin: -4px 0 16px; }
.pe-scale { position: relative; height: 14px; border-radius: 999px; background: linear-gradient(90deg, #d8efe3, #eef3f0 50%, #f6e7c9); margin: 34px 4px 12px; }
.pe-band { position: absolute; top: 0; bottom: 0; background: rgba(14, 90, 67, .28); border-radius: 999px; }
.pe-median { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); transform: translateX(-1px); }
.pe-marker { position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: var(--brand); border: 3px solid var(--panel); box-shadow: var(--shadow); transform: translate(-50%, -50%); }
.pe-low .pe-marker { background: var(--danger); }
.pe-high .pe-marker { background: var(--gold); }
.pe-marker b { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 12.5px; background: var(--ink); color: var(--panel); padding: 2px 8px; border-radius: 6px; }
.pe-legend { display: flex; gap: 8px 20px; flex-wrap: wrap; font-size: 13.5px; margin-bottom: 6px; }
.pe-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.pe-key-band { background: rgba(14, 90, 67, .28); }
.pe-key-median { background: var(--ink); width: 3px !important; }
.price-history { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.price-history li { display: grid; grid-template-columns: 110px 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.price-history time { color: var(--muted); }

/* ---------- Market insights ---------- */
.hero-insights { background: radial-gradient(120% 120% at 100% 0%, #24607f 0%, #12384d 55%, #0b2230 100%); }
.ins-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px; margin: 22px 0; }
.ins-rank { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.ins-rank a { display: flex; justify-content: space-between; gap: 10px; color: inherit; text-decoration: none; font-weight: 600; }
.ins-rank a:hover span { color: var(--brand); }
.ins-sig-sellers { background: var(--ok-soft); color: var(--brand); }
.ins-sig-buyers { background: var(--blue-soft); color: var(--blue); }
.ins-sig-balanced { background: var(--bg-2); color: var(--muted); }
.hbars { display: grid; gap: 8px; }
.hbar { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(0, 1.4fr) auto; gap: 10px; align-items: center; font-size: 13.5px; color: inherit; text-decoration: none; }
a.hbar:hover .hbar-label { color: var(--brand); }
.hbar-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.hbar-track { height: 10px; background: var(--bg-2); border-radius: 999px; overflow: hidden; }
.hbar-track i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #2a8f6a); border-radius: inherit; }
.hbar b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.chart .line { fill: none; stroke: var(--brand); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.chart .dot-pt { fill: var(--panel); stroke: var(--brand); stroke-width: 2; vector-effect: non-scaling-stroke; }
.ins-rent { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ins-rent div { background: var(--panel-2); border-radius: var(--radius-sm); padding: 10px 12px; display: flex; flex-direction: column; }
.ins-rent b { font-size: 17px; }

/* ---------- Business tools & API docs ---------- */
.biz-import .fld-grid { margin-bottom: 12px; }
.biz-template { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.biz-template .fld { flex: 1 1 260px; margin: 0; }
.biz-results { margin-top: 20px; }
.new-key code { display: block; margin-top: 6px; font-size: 13px; word-break: break-all; background: var(--panel); padding: 6px 8px; border-radius: 6px; }
.biz-newkey { display: flex; gap: 8px; margin: 12px 0 16px; flex-wrap: wrap; }
.biz-newkey input { flex: 1 1 220px; }
.dev-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; align-items: start; }
.dev-toc { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 4px; padding: 14px; }
.dev-toc a { padding: 6px 10px; border-radius: 8px; font-weight: 700; color: var(--ink-2); text-decoration: none; }
.dev-toc a:hover { background: var(--panel-2); color: var(--brand); }
.dev-body { display: grid; gap: 16px; }
.code { background: #0f1915; color: #d6efe3; border-radius: 10px; padding: 14px 16px; overflow-x: auto; font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; margin: 10px 0; }
.dev-table td { vertical-align: top; }
.dev-table td:first-child { width: 70px; }

@media (max-width: 980px) {
  .invite-hero, .ins-grid { grid-template-columns: minmax(0, 1fr); }
  .auction-how { grid-template-columns: 1fr; }
  .dev-grid { grid-template-columns: minmax(0, 1fr); }
  .dev-toc { position: static; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .invite-hero { padding: 20px; }
  .invite-link { flex-direction: column; }
  .sec-row { grid-template-columns: auto minmax(0, 1fr); }
  .sec-row > form, .sec-row > a, .sec-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .ins-rent { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hbar { grid-template-columns: minmax(90px, 1fr) minmax(0, 1fr) auto; font-size: 12.5px; }
  .price-history li { grid-template-columns: 90px 1fr auto; }
  .verify-nag { flex-wrap: wrap; }
}
@media (prefers-color-scheme: dark) {
  .auction-box { background: linear-gradient(180deg, #221a3a, var(--panel) 70%); border-color: #4d3a86; }
  .auction-title { color: #c9b6ff; }
  .bid-history li.is-top { background: #2c2250; }
  .card-price-label { color: #b9a3ff; }
  .pe-scale { background: linear-gradient(90deg, #17392b, #1f2723 50%, #3a2f17); }
  .invite-hero { background: radial-gradient(120% 140% at 0% 0%, #3a2f17 0%, var(--panel) 60%); }
}
.topbar-links > a { white-space: nowrap; }
.topbar-note { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 1240px) { .topbar-note { display: none; } }
@media (prefers-color-scheme: dark) { .pe-band, .pe-key-band { background: rgba(79, 182, 143, .55); } }
.dev-body { grid-template-columns: minmax(0, 1fr); }
.dev-body .panel { min-width: 0; }
.dev-table td code { overflow-wrap: anywhere; }
.saved-text { min-width: 0; }
.saved-text b { overflow-wrap: anywhere; }
/* Tablets: the search gets its own full-width row instead of being squeezed. */
@media (max-width: 960px) and (min-width: 721px) {
  .top-in { flex-wrap: wrap; gap: 10px 16px; padding-top: 10px; padding-bottom: 12px; min-height: 0; }
  .hsearch { order: 3; max-width: none; flex-basis: 100%; }
  .util { margin-left: auto; }
}
.row-tags .tag { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.checkout-actions { flex-wrap: wrap; }
.checkout-actions .btn { flex: 1 1 auto; justify-content: center; }
.checkout-actions .btn-ghost { flex: 0 0 auto; }
.acct-nav a.on .acct-bal { background: var(--gold-soft); color: var(--gold-2); }
/* The body is a flex column: let the page shrink to the viewport instead of its widest content. */
.page { min-width: 0; width: 100%; }
@media (prefers-color-scheme: dark) { .type-label { color: var(--gold); } }
.inbox-top { flex-wrap: nowrap; min-width: 0; }
.inbox-name { min-width: 0; overflow: hidden; }
.inbox-name > :not(.avatar) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-top .tag, .inbox-time { flex: none; }
.inbox-title .tag { font-size: 9.5px; padding: 2px 6px; margin-right: 4px; vertical-align: 1px; }
/* Horizontally scrolling strips show a fade where content continues. */
.is-scrollable { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
.is-scrollable.at-end { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 36px), transparent); }
.is-scrollable.at-start.at-end { -webkit-mask-image: none; mask-image: none; }
.is-scrollable.mid { -webkit-mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent); }
.type-tiles { scrollbar-width: none; }
.type-tiles::-webkit-scrollbar { display: none; }
.ad-quick { display: none; }
@media (max-width: 960px) {
  .ad-quick { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-xs); }
  .ad-quick-price b { font-family: var(--display); font-size: 24px; line-height: 1.1; }
  .ad-quick-price .old-price { font-size: 13px; }
  .ad-quick .btn { flex: none; }
  #contacts, #auction { scroll-margin-top: 140px; }
}
/* My Ads: icon-only actions are clear, uniform square buttons. */
.my-actions .btn-ghost { width: 36px; height: 36px; padding: 0; justify-content: center; border-color: var(--line-2); background: var(--panel); color: var(--ink-2); }
.my-actions .btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); }
.my-actions .btn-ghost.btn-danger { color: var(--danger); }
.my-actions .btn-ghost.btn-danger:hover { border-color: var(--danger); }
@media (max-width: 720px) {
  .my-item { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .my-item .row-img { width: 84px; }
  .my-actions { gap: 6px; padding-top: 4px; border-top: 1px dashed var(--line); }
  .my-actions > .btn:not(.btn-ghost) { flex: 1 1 40%; justify-content: center; }
}
.checkout-head h1 { overflow-wrap: anywhere; }
@media (max-width: 420px) {
  .stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .stats-3 .stat { padding: 10px; }
  .stats-3 .stat span { font-size: 9.5px; letter-spacing: .03em; overflow-wrap: anywhere; hyphens: auto; }
  .checkout-panel { padding: 20px 16px; }
}
/* Smallest phones: give list rows' text column room. */
@media (max-width: 400px) {
  .row, .rows.has-cols .row { grid-template-columns: 76px minmax(0, 1fr) 36px !important; gap: 10px; padding: 12px; }
  .row-img { width: 76px; }
}
@container (max-width: 380px) {
  .row, .rows.has-cols .row { grid-template-columns: 76px minmax(0, 1fr) 36px !important; gap: 10px; padding: 12px; }
  .row-img { width: 76px; }
}
.inbox-title { display: flex; align-items: center; gap: 6px; min-width: 0; }
.inbox-title-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-title > b, .inbox-title > .tag { flex: none; }
.inbox-title .tag { margin-right: 0; }
@media (max-width: 480px) {
  .checkout-actions .btn { flex: 1 1 100%; white-space: normal; text-align: center; }
  .checkout-actions .btn-ghost { order: 3; }
  .req-actions-col { min-width: 0; grid-column: 1 / -1; }
  .req-item { gap: 12px; padding: 12px; }
}
.req-detail > span { flex-wrap: wrap; min-width: 0; }
.btn-note { font-size: 12px; font-weight: 700; opacity: .8; padding: 2px 7px; border-radius: 999px; background: rgba(0, 0, 0, .08); }
.req-contact { overflow-wrap: anywhere; }
@media (max-width: 400px) { .price-card { padding: 18px 16px; } }

/* ---------- Help centre ---------- */
.help-hero { text-align: center; padding: 40px 24px 30px; border-radius: var(--radius); margin-bottom: 26px;
  background: radial-gradient(120% 140% at 50% 0%, var(--brand-tint) 0%, var(--panel) 70%); border: 1px solid var(--line); }
.help-hero h1 { margin: 6px 0 18px; font-size: clamp(28px, 4vw, 42px); }
.help-hero .lead { max-width: 640px; margin: 0 auto; }
.help-search { display: flex; align-items: center; gap: 10px; max-width: 620px; margin: 0 auto 16px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 8px 6px 18px; box-shadow: var(--shadow); }
.help-search:focus-within { border-color: var(--brand); box-shadow: var(--ring); }
.help-search .ico { color: var(--muted); flex: none; }
.help-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 6px; font: inherit; font-size: 16px; box-shadow: none !important; }
.help-topics { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.help-topics .chip { cursor: pointer; font-family: inherit; }
.help-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.faq { display: grid; gap: 10px; }
.faq-item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-xs); transition: border-color .2s; }
.faq-item[open] { border-color: var(--brand-soft); }
.faq-item > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; font-weight: 700; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary .ico { flex: none; color: var(--muted); transform: rotate(90deg); transition: transform .2s var(--ease); }
.faq-item[open] > summary .ico { transform: rotate(-90deg); color: var(--brand); }
.faq-item > p { margin: 0; padding: 0 18px 18px; color: var(--ink-2); line-height: 1.6; }
.faq-none { text-align: center; padding: 20px; }
.help-side { display: grid; gap: 12px; position: sticky; top: 96px; }
.help-card { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-md); color: inherit; text-decoration: none; box-shadow: var(--shadow-xs); transition: border-color .2s, transform .2s var(--ease); }
.help-card:hover { border-color: var(--brand); transform: translateY(-1px); }
.help-card .help-card-ico { grid-row: span 2; }
.help-card-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); flex: none; }
.help-hero-safety { background: radial-gradient(120% 140% at 50% 0%, var(--gold-soft) 0%, var(--panel) 70%); }
.safety-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; margin-bottom: 22px; }
.safety-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-xs); }
.safety-card h2 { margin: 14px 0 6px; }
.safety-card p { margin: 0; color: var(--ink-2); line-height: 1.6; }
.safety-report { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.safety-report h2, .safety-report p { margin: 0 0 4px; }
.privacy-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.privacy-grid .prose h2 { margin-top: 22px; }
.privacy-grid .prose h2:first-child { margin-top: 0; }
.privacy-tools { position: sticky; top: 96px; display: grid; gap: 10px; }
.contact-done { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 24px; }
.contact-hints { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.contact-hints a { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; }
.privacy-actions { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 8px; }
.privacy-actions > div { flex: 1 1 280px; }
.privacy-actions p { margin: 4px 0 10px; }
.privacy-delete { flex: 0 1 380px; }
.privacy-delete > summary { list-style: none; }
.privacy-delete > summary::-webkit-details-marker { display: none; }
.privacy-delete[open] > summary { margin-bottom: 10px; }
.privacy-delete form { padding: 14px; border: 1px solid var(--danger-soft); border-radius: var(--radius-md); background: var(--panel-2); }

/* ---------- Support tickets (admin) ---------- */
.tickets { display: grid; gap: 12px; }
.ticket { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius-md); padding: 14px 16px; }
.ticket-answered { border-left-color: var(--brand); }
.ticket-closed { border-left-color: var(--line-2); opacity: .75; }
.ticket header { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ticket header time { margin-left: auto; }
.ticket-open .ticket-st { background: var(--gold-soft); color: var(--gold-2); }
.ticket-answered .ticket-st { background: var(--ok-soft); color: var(--brand); }
.ticket-body { white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0; }
.ticket-answer { white-space: pre-wrap; padding: 10px 12px; border-radius: 8px; background: var(--brand-tint); margin: 8px 0; }
.ticket-reply { display: grid; gap: 8px; }
.ticket-buttons { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Personalised home ---------- */
.search-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 10px; }
.search-chip { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-md); color: inherit; text-decoration: none; box-shadow: var(--shadow-xs); transition: border-color .2s; }
.search-chip:hover { border-color: var(--brand); }
.search-chip-label { flex: 1; min-width: 0; font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-chip .tag, .search-chip .muted { flex: none; }

@media (max-width: 960px) {
  .help-grid, .privacy-grid { grid-template-columns: minmax(0, 1fr); }
  .help-side, .privacy-tools { position: static; }
  .help-side { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
}
@media (max-width: 720px) {
  .help-hero { padding: 28px 16px 22px; }
  .help-search input { font-size: 15px; }
}

/* ---------- Premium polish ---------- */
/* Result rows adapt to the width they actually get (next to the filter sidebar the
   list can be narrow even on a wide screen): price and place move under the title
   instead of squeezing it into a sliver. */
.rows { container-type: inline-size; }
@container (max-width: 700px) {
  .row, .rows.has-cols .row { grid-template-columns: 148px minmax(0, 1fr) 36px !important; gap: 4px 16px; align-items: start; }
  .row-img { width: 148px; grid-row: 1 / span 2; }
  .row-col { display: none; }
  .row-chips { display: flex !important; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; color: var(--ink-2); font-weight: 700; margin-top: 6px; }
  .row-chips span + span::before { content: '·'; margin-right: 10px; color: var(--line-2); }
  .row-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .row-snippet { -webkit-line-clamp: 1; }
  .row-side { grid-column: 2; grid-row: 2; text-align: left; flex-direction: row; gap: 4px 12px; align-items: baseline; flex-wrap: wrap; }
  .row-meta { justify-content: flex-start; }
  .row .memo-form { grid-column: 3; grid-row: 1; }
}
@container (max-width: 520px) {
  .row, .rows.has-cols .row { grid-template-columns: 104px minmax(0, 1fr) 34px !important; gap: 4px 12px; padding: 14px; }
  .row-img { width: 104px; grid-row: 1; }
  .row-snippet { display: none; }
  .row-title { font-size: 15px; }
  .row-price { font-size: 16px; }
}
@container (max-width: 300px) {
  .row, .rows.has-cols .row { grid-template-columns: 76px minmax(0, 1fr) 36px !important; gap: 4px 10px; padding: 12px; }
  .row-img { width: 76px; }
}

/* Quiet scrollbars in side panels: visible only while the pointer is over them. */
.browse-side { scrollbar-color: transparent transparent; transition: scrollbar-color .2s; }
.browse-side:hover, .browse-side:focus-within { scrollbar-color: var(--line-2) transparent; }

/* Phones: the photo comes first on a listing page, straight under the breadcrumbs,
   then title, price and the rest (desktop keeps the photo beside the price card). */
@media screen and (max-width: 720px) {
  .ad-layout { display: flex; flex-direction: column; gap: 18px; }
  .ad-layout .ad, .ad-layout .ad-main { display: contents; }
  .ad-layout .ad-head { margin-bottom: 0; }
  .ad-layout .gallery, .ad-layout .gallery-empty { order: -1; }
  .ad-layout .gallery-main { margin-inline: -16px; width: calc(100% + 32px); border-radius: 0; box-shadow: none; max-height: 62vh; }
  .ad-layout .gallery-thumbs { margin-top: 10px; gap: 8px; scrollbar-width: none; }
  .ad-layout .gallery-thumbs::-webkit-scrollbar { display: none; }
  .ad-layout .gallery-thumbs button { width: 76px; border-radius: 10px; }
}

/* Phones: two-column card grid down to small phones (one column only below 360px). */
@media (max-width: 400px) and (min-width: 360px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cards .card-badges { left: 8px; top: 8px; right: 46px; gap: 4px; }
  .cards .card-badges .tag { font-size: 10px; padding: 2px 6px; }
  .cards .card .memo-form { top: 6px; right: 6px; }
  .cards .card-body { padding: 9px 10px 11px; gap: 4px; }
  .cards .card-title { font-size: 13.5px; }
  .cards .card-meta { font-size: 11.5px; }
}
/* My listings on phones: picture top-aligned beside title and price, tidy single action row. */
@media (max-width: 720px) {
  .my-item { align-items: start; }
  .my-item .row-img { grid-row: 1 / span 2; align-self: center; }
  .my-item .my-price { grid-column: 2; font-size: 16px; }
  .my-item .row-tags .muted.small { flex-basis: 100%; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .my-actions > .btn:not(.btn-ghost) { flex: 1 1 auto; }
}
/* One-line card footer: a long place name shortens, the age never wraps. */
.card-meta { white-space: nowrap; min-width: 0; }
.card-place { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.card-meta .ico, .card-meta .sep, .card-meta time { flex: none; }
@media (max-width: 720px) {
  /* Spec chips stay on one line in result rows; extra ones fade out at the edge. */
  .row-chips { flex-wrap: nowrap !important; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  /* My listings: Edit + Promote share the first action row, icon tools sit together below. */
  .my-actions > .btn:not(.btn-ghost) { flex: 1 1 calc(50% - 3px); }
}
@media (max-width: 720px) {
  /* Four hero figures sit in a tidy 2 × 2 grid instead of an uneven row. */
  .hero-stats:has(> div:nth-child(4)) { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
  /* Wizard steps: compact numbered dots, so the current step's name fits in full. */
  .steps { gap: 6px; }
  .step:not(.on) .step-in { padding: 7px; }
  .step-n { width: 24px; height: 24px; }
  .step.on .step-in { gap: 8px; }
  /* Category picker: two-column tiles rather than a long column of wide cards. */
  .pick-grid:not(.pick-subs) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  /* Two-column category tiles: icon on top, then name and fee, no arrow. */
  .pick-grid:not(.pick-subs) .pick { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; row-gap: 4px; padding: 14px; align-content: start; }
  .pick-grid:not(.pick-subs) .pick > .sec-ico { grid-column: 1; grid-row: auto; margin-bottom: 6px; }
  .pick-grid:not(.pick-subs) .pick-name, .pick-grid:not(.pick-subs) .pick-fee { grid-column: 1; grid-row: auto; align-self: start; line-height: 1.25; }
  .pick-grid:not(.pick-subs) .pick::after { display: none; }
  .pick-subs .pick { padding: 14px 16px; }
}
/* A single long badge never runs under the Memo heart: it shortens instead. */
.card-badges .tag { max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Requests: the picture is a full-height media column (no dead space under a small
   thumbnail), and the action column lines up on its left edge. */
.req-item .row-img { align-self: stretch; aspect-ratio: auto; min-height: 96px; max-height: 150px; }
@media (min-width: 721px) {
  .req-item { grid-template-columns: 136px minmax(0, 1fr) 256px; }
  .req-item .row-img { width: 136px; min-height: 102px; }
}
@media (max-width: 720px) {
  .req-item .row-img { min-height: 72px; max-height: 120px; }
}
.req-actions-col > form:first-child .btn-ghost { border: 1px solid var(--line-2); align-self: flex-start; }
.req-buttons { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.req-buttons .btn { min-width: 0; justify-content: center; white-space: nowrap; padding-inline: 12px; }
/* The narrowest phones: category tiles go back to one-column cards (icon | text | arrow). */
@media (max-width: 359px) {
  .pick-grid:not(.pick-subs) { grid-template-columns: minmax(0, 1fr); }
  .pick-grid:not(.pick-subs) .pick { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; row-gap: 3px; align-content: normal; }
  .pick-grid:not(.pick-subs) .pick > .sec-ico { grid-row: 1 / span 2; margin-bottom: 0; }
  .pick-grid:not(.pick-subs) .pick-name { grid-column: 2; grid-row: 1; align-self: end; }
  .pick-grid:not(.pick-subs) .pick-fee { grid-column: 2; grid-row: 2; }
  .pick-grid:not(.pick-subs) .pick::after { display: block; }
}

/* Narrow result rows (title and details over price): the photo spans both lines
   and stays vertically centred on the text; the Memo star keeps the top right. */
@container (max-width: 700px) {
  .row .row-img { grid-row: 1 / span 2; align-self: center; }
  .row .memo-form { align-self: start; }
}

/* ---------- Header and dropdown polish ---------- */
/* Desktop header: navigation as icon buttons (names in tooltips and aria-labels),
   so search, the main action of a marketplace, gets the room. */
@media (min-width: 721px) {
  .util-link > span:not(.avatar) { display: none; }
  .util-link { padding: 9px; }
  .hsearch { flex: 1 1 420px; max-width: 640px; }
}
/* Search suggestions are at least as wide as a readable listing title. */
@media (min-width: 721px) {
  .hsearch .suggest { min-width: min(460px, calc(100vw - 32px)); right: auto; }
}
/* Categories menu: never taller than the screen below the header (JS sets the
   exact space; phones also keep clear of the bottom tab bar). */
.mega-panel { max-height: var(--mega-max, calc(100vh - 120px)); overscroll-behavior: contain; }

/* Selects: the arrow follows the theme; disabled controls look disabled. */
@media (prefers-color-scheme: dark) {
  select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a7b3ac' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
  select option { background: var(--panel); color: var(--ink); }
}
input:disabled, select:disabled, textarea:disabled { opacity: .55; cursor: not-allowed; background-color: var(--panel-2); }
select:hover:not(:disabled) { cursor: pointer; }
/* Hero search selects sit inside one pill, so they show focus with a tint instead of a ring. */
.hero-search select:focus-visible { background-color: var(--brand-tint); border-radius: 12px; }
.kan-move select { padding: 5px 26px 5px 8px; background-position: right 8px center; }

/* ---------- Admin back office ---------- */
.adm { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 28px; align-items: start; }
.adm-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 14px; max-height: calc(100vh - 110px); overflow: auto; scrollbar-width: thin; padding-bottom: 8px; }
.adm-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.adm-brand-ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--ink); color: var(--panel); }
.adm-brand b { display: block; font-size: 15px; line-height: 1.1; }
.adm-brand small { color: var(--muted); font-size: 12px; font-weight: 700; }
.adm-search { display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 999px; padding: 0 12px; }
.adm-search:focus-within { border-color: var(--brand); box-shadow: var(--ring); }
.adm-search .ico { color: var(--muted); flex: none; }
.adm-search input { border: 0; background: transparent; padding: 9px 0; box-shadow: none !important; font-size: 14px; }
.adm-nav { display: flex; flex-direction: column; gap: 16px; }
.adm-nav-group { display: flex; flex-direction: column; gap: 2px; }
.adm-nav-h { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 0 12px 6px; }
.adm-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 700; font-size: 14px; text-decoration: none; }
.adm-nav a:hover { background: var(--panel); color: var(--ink); }
.adm-nav a.on { background: var(--panel); color: var(--ink); box-shadow: var(--shadow-xs), inset 3px 0 0 var(--brand); }
.adm-nav a .ico { color: var(--muted); flex: none; }
.adm-nav a.on .ico { color: var(--brand); }
.adm-nav a span { flex: 1; min-width: 0; }
.adm-badge { min-width: 22px; height: 20px; padding: 0 7px; border-radius: 999px; background: #c8372d; color: #fff; font-size: 11px; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.adm-main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.adm-main > .panel { margin: 0; }
.adm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.adm-head h1 { margin: 0; }
.adm-head p { margin: 4px 0 0; }
.adm-head-item { display: flex; align-items: center; gap: 16px; min-width: 0; }
.adm-head-item > div { min-width: 0; }
.adm-h1-sm { font-size: 26px; overflow-wrap: anywhere; }
.adm-crumbs { margin: 0 0 -6px; }
.adm-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.adm-kpi { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow-xs); min-width: 0; }
.adm-kpi > span { color: var(--muted); font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; padding-right: 64px; }
.adm-kpi > b { font-family: var(--display); font-size: 28px; line-height: 1.15; font-variant-numeric: lining-nums tabular-nums; overflow-wrap: anywhere; }
.adm-kpi > small { color: var(--muted); font-size: 12.5px; }
.adm-kpi > span { padding-right: 0; }
.adm-kpi .kpi-delta { position: static; align-self: flex-start; margin-top: 2px; }
.adm-kpi-hero .kpi-delta.up { background: rgba(255, 255, 255, .16); color: #b8f0d6; }
.adm-kpi-hero .kpi-delta.down { background: rgba(255, 255, 255, .16); color: #ffd1cb; }
.adm-kpi-hero { background: linear-gradient(135deg, var(--brand-2), var(--brand-3)); border-color: transparent; color: #fff; }
.adm-kpi-hero > span, .adm-kpi-hero > small { color: rgba(255, 255, 255, .75); }
.adm-kpis-sm { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.adm-kpis-sm .adm-kpi { padding: 14px 16px; }
.adm-kpis-sm .adm-kpi > b { font-size: 22px; }
.adm-money { margin: 0; }
.adm-money .stat small { font-size: 12px; }
.adm-queues { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.adm-queue { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-md); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s var(--ease); }
.adm-queue:hover { border-color: var(--brand); transform: translateY(-1px); }
.adm-queue > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.adm-queue b { font-size: 20px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.adm-queue small { color: var(--muted); font-size: 12.5px; }
.adm-queue > .ico { color: var(--muted); }
.adm-queue-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--panel-2); color: var(--muted); flex: none; }
.adm-queue.is-due { border-color: var(--gold-line); background: linear-gradient(90deg, var(--gold-soft), var(--panel) 70%); }
.adm-queue.is-due .adm-queue-ico { background: var(--gold); color: #fff; }
.adm-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.adm-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.adm-grid-2 > .panel, .adm-grid-3 > .panel { margin: 0; min-width: 0; }
.adm-chart { margin: 0; }
.adm-chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.adm-chart-head b { font-family: var(--display); font-size: 22px; font-variant-numeric: lining-nums tabular-nums; }
.adm-chart .chart { height: 150px; }
.chart-gold .bar-v { fill: color-mix(in srgb, var(--gold) 45%, transparent); }
.chart-gold .bar-v:hover { fill: var(--gold); }
.adm-main .bars { max-width: none; }
a.bar { color: inherit; text-decoration: none; border-radius: 8px; }
a.bar:hover .bar-label { color: var(--brand); }
.adm-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.adm-feed li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; min-width: 0; }
.adm-feed li:last-child { border-bottom: 0; }
.adm-feed li > span:not(.avatar):not(.adm-feed-ico):not(.adm-thumb) { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.adm-feed li form { margin: 0; }
.adm-feed-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--panel-2); color: var(--muted); flex: none; }
.adm-feed .pos { color: var(--brand); }
.adm-feed .neg { color: var(--danger); }
.adm-thumb { width: 52px; aspect-ratio: 4 / 3; border-radius: 9px; overflow: hidden; flex: none; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); }
.adm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.adm-thumb-lg { width: 96px; border-radius: 12px; }
.adm-item { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; min-width: 0; }
.adm-item:hover b { color: var(--brand); }
.adm-item > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.adm-item .tag { margin-left: 4px; vertical-align: 1px; }
.adm-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 12px; }
.adm-filters > label:not(.adm-check) { flex: 0 1 190px; min-width: 150px; }
.adm-filters .adm-f-q { flex: 1 1 240px; }
.adm-filters select, .adm-filters input[type=search] { padding-top: 8px; padding-bottom: 8px; }
.adm-f-actions { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.adm-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.adm-check input { width: 17px; height: 17px; accent-color: var(--brand); padding: 0; flex: none; }
.adm-bulk { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.adm-bulk select { width: auto; padding-top: 7px; padding-bottom: 7px; }
.adm-bulk input[name=reason] { flex: 1 1 200px; width: auto; padding-top: 7px; padding-bottom: 7px; }
.adm-table td { vertical-align: middle; }
.adm-table .adm-cb { width: 36px; padding-right: 0; }
.adm-table .adm-cb input { width: 17px; height: 17px; accent-color: var(--brand); padding: 0; }
.adm-st { font-size: 11px; }
.adm-st-active { background: var(--ok-soft); color: var(--brand); }
.adm-st-blocked { background: var(--danger-soft); color: var(--danger); }
.adm-st-expired, .adm-st-inactive, .adm-st-draft { background: var(--panel-2); color: var(--muted); }
.adm-st-sold { background: var(--blue-soft); color: var(--blue); }
.pay-refunded { background: var(--blue-soft); color: var(--blue); }
.pay-pending { background: var(--gold-soft); color: var(--gold-2); }
.adm-totals { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--ink-2); }
.adm-totals b { font-variant-numeric: tabular-nums; }
.adm-pop { position: relative; }
.adm-pop > summary { list-style: none; cursor: pointer; }
.adm-pop > summary::-webkit-details-marker { display: none; }
.adm-pop[open] > form { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: 260px; padding: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
.adm-stack { display: flex; flex-direction: column; gap: 10px; }
.adm-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.adm-row > select, .adm-row > input { flex: 1 1 110px; width: auto; }
.adm-row > .fld { flex: 1 1 180px; }
.adm-detail { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.adm-detail-main, .adm-detail-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.adm-detail-main > .panel, .adm-detail-side > .panel, .adm-detail-main > .adm-grid-2 { margin: 0; }
.adm-detail-side { position: sticky; top: 92px; }
.adm-actions h2 { margin-bottom: 12px; }
.adm-actions form + form { margin-top: 10px; }
.adm-dl { display: grid; grid-template-columns: minmax(120px, max-content) minmax(0, 1fr); gap: 8px 18px; margin: 0 0 14px; font-size: 14px; }
.adm-dl dt { color: var(--muted); font-weight: 700; }
.adm-dl dd { margin: 0; overflow-wrap: anywhere; }
.adm-body { white-space: pre-wrap; color: var(--ink-2); font-size: 14px; line-height: 1.55; max-height: 220px; overflow: auto; padding: 12px 14px; background: var(--panel-2); border-radius: var(--radius-sm); margin: 0; }
.adm-photos { display: flex; gap: 8px; overflow-x: auto; margin-top: 12px; }
.adm-photos img { width: 96px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 9px; flex: none; }
.adm-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.adm-log li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.adm-log li:last-child { border-bottom: 0; }
.adm-log-main { min-width: 0; overflow-wrap: anywhere; }
.adm-log-act { font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--panel-2); color: var(--ink-2); white-space: nowrap; }
.adm-log-act.act-user { background: var(--blue-soft); color: var(--blue); }
.adm-log-act.act-listing, .adm-log-act.act-report { background: var(--danger-soft); color: var(--danger); }
.adm-log-act.act-payment { background: var(--gold-soft); color: var(--gold-2); }
.adm-log-act.act-verification, .adm-log-act.act-ad, .adm-log-act.act-ticket { background: var(--ok-soft); color: var(--brand); }
.adm-log.is-compact li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
.adm-log.is-compact .adm-log-act { justify-self: start; }
.adm-settings textarea { min-height: 70px; }
/* Site-wide announcement strip (Admin, Settings). */
.site-banner { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 16px; font-size: 14px; font-weight: 700; text-align: center; background: var(--blue-soft); color: var(--blue); border-bottom: 1px solid color-mix(in srgb, var(--blue) 25%, transparent); }
.site-banner .ico { flex: none; }
.site-banner-warning { background: var(--gold-soft); color: var(--gold-2); border-bottom-color: var(--gold-line); }
.site-banner-success { background: var(--ok-soft); color: var(--brand); border-bottom-color: color-mix(in srgb, var(--brand) 25%, transparent); }
.site-banner.is-preview { border: 1px solid currentColor; border-radius: var(--radius-sm); }
@media (max-width: 1180px) {
  .adm-grid-3 { grid-template-columns: minmax(0, 1fr); }
  .adm-detail { grid-template-columns: minmax(0, 1fr); }
  .adm-detail-side { position: static; }
}
@media (max-width: 960px) {
  .adm { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .adm-side { position: static; max-height: none; overflow: visible; }
  .adm-nav { flex-direction: row; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; }
  .adm-nav::-webkit-scrollbar { display: none; }
  .adm-nav-group { flex-direction: row; gap: 4px; }
  .adm-nav-h { display: none; }
  .adm-nav a { white-space: nowrap; padding: 8px 12px; background: var(--panel); border: 1px solid var(--line); }
  .adm-nav a.on { box-shadow: none; border-color: var(--brand); }
  .adm-grid-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .adm-kpis, .adm-queues { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .adm-kpi { padding: 14px; }
  .adm-kpi-hero { grid-column: 1 / -1; }
  .adm-kpi > span { font-size: 10.5px; letter-spacing: .05em; }
  .adm-queue { padding: 12px; gap: 10px; }
  .adm-queue > .ico { display: none; }
  .adm-kpi > b { font-size: 22px; }
  .adm-filters > label:not(.adm-check) { flex: 1 1 140px; }
  .adm-log li { grid-template-columns: minmax(0, 1fr); }
  .adm-log-act { justify-self: start; }
  .adm-dl { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .adm-dl dd { margin-bottom: 8px; }
  .adm-head-item { align-items: flex-start; }
  .adm-thumb-lg { width: 72px; }
  .adm-pop[open] > form { position: static; width: auto; margin-top: 8px; box-shadow: none; }
}

/* ---------- Admin: roles, reviews, communications, pricing, system ---------- */
.adm-wrap { overflow-wrap: anywhere; max-width: 520px; }
.adm-body-sm { max-height: 160px; font-size: 13px; margin-top: 8px; }
.adm-search-inline { flex: 0 1 280px; }
.adm-err { color: var(--danger); }
.adm-danger { border-color: var(--danger-soft); }
.adm-danger h2 { color: var(--danger); }
.adm-radio { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.adm-radio .adm-check { white-space: normal; align-items: flex-start; }
.adm-radio .adm-check input { margin-top: 3px; }
.adm-edit > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; margin: 0; }
.adm-edit > summary::-webkit-details-marker { display: none; }
.adm-edit[open] > summary { margin-bottom: 12px; }
.adm-edit textarea { min-height: 120px; }
.adm-roles { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.adm-roles li { display: flex; flex-direction: column; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.adm-roles li:last-child { border-bottom: 0; padding-bottom: 0; }
.adm-role { font-size: 11px; }
.adm-role-admin { background: var(--ink); color: var(--panel); }
.adm-role-moderator { background: var(--danger-soft); color: var(--danger); }
.adm-role-support { background: var(--ok-soft); color: var(--brand); }
.adm-role-finance { background: var(--gold-soft); color: var(--gold-2); }
.adm-dl-num dd { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.adm-price-table th[scope=row] { font-weight: 700; white-space: nowrap; }
.adm-price { width: 78px; text-align: right; padding: 6px 8px; font-variant-numeric: tabular-nums; }
.adm-pricing .adm-grid-2 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.adm-price-table th, .adm-price-table td { padding: 8px 10px; }
.adm-side { scrollbar-color: transparent transparent; }
.adm-side:hover, .adm-side:focus-within { scrollbar-color: var(--line-2) transparent; }
.adm-price.is-changed { border-color: var(--gold); background: var(--gold-soft); }
.adm-fee-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 10px; align-items: start; }
.adm-fee-sec { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--panel-2); }
.adm-fee-sec > summary { cursor: pointer; padding: 10px 14px; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.adm-fee-rows { display: flex; flex-direction: column; gap: 6px; padding: 0 14px 12px; }
.adm-fee-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; font-size: 14px; }
.adm-fee-row > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.adm-sticky-save { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
@media (max-width: 1180px) {
  .adm-pricing .adm-grid-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .adm-sticky-save { bottom: 84px; }
  .adm-search-inline { flex-basis: 100%; }
  .adm-price { width: 80px; }
}

/* Home category cards: the "+ N more" toggle with an arrow that turns when open. */
.sub-toggle .mega-more { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.sub-toggle .mega-more .ico { transform: rotate(90deg); transition: transform .2s var(--ease); }
.sub-toggle .mega-more[aria-expanded="true"] .ico { transform: rotate(-90deg); }

/* ---------- Maps ---------- */
.map-head { margin: 4px 0 14px; }
.map-head h1 { margin: 4px 0 6px; }
.map-head p { margin: 0; }
.map-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px; margin-bottom: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-xs); }
.map-filters > label { flex: 1 1 180px; min-width: 150px; }
.map-filters .map-f-q { flex: 2 1 240px; }
.map-filters select, .map-filters input { padding-top: 9px; padding-bottom: 9px; }
.map-range { flex: 1 1 220px; }
.map-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; height: min(72vh, 760px); min-height: 460px; }
.map-canvas { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--panel-2); z-index: 0; }
.map-canvas.is-loading::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 900; background: linear-gradient(90deg, transparent, var(--brand), transparent); animation: map-load 1s linear infinite; }
@keyframes map-load { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.map-side { display: flex; flex-direction: column; min-height: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.map-side-head { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.map-list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; flex: 1; scrollbar-width: thin; }
.map-item { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; padding: 8px; border-radius: 12px; color: inherit; text-decoration: none; }
.map-item:hover { background: var(--brand-tint); }
.map-item-img { aspect-ratio: 4 / 3; border-radius: 9px; overflow: hidden; background: linear-gradient(135deg, var(--panel-2), var(--brand-tint)); display: grid; place-items: center; color: var(--brand); }
.map-item-img img { width: 100%; height: 100%; object-fit: cover; }
.map-item-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13.5px; }
.map-item-body b { font-size: 15px; }
.map-item-title { font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
.map-item-meta { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-list-hint { padding: 12px; color: var(--muted); font-size: 13px; text-align: center; }

/* Markers: price pills, clusters, pins and areas. */
.map-price { display: inline-block; transform: translate(-50%, -100%); white-space: nowrap; padding: 4px 9px; border-radius: 999px; background: var(--panel); color: var(--ink); font: 800 12.5px/1.2 var(--font); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); border: 1px solid var(--line-2); position: relative; transition: transform .15s; }
.map-price::after { content: ''; position: absolute; left: 50%; bottom: -5px; width: 8px; height: 8px; background: inherit; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); transform: translateX(-50%) rotate(45deg); }
.map-price.is-top { background: var(--gold); color: #fff; border-color: var(--gold); }
.map-price.is-top::after { border-color: var(--gold); }
.map-price.is-approx { border-style: dashed; }
.leaflet-marker-icon:hover .map-price, .is-hot .map-price { background: var(--ink); color: var(--panel); transform: translate(-50%, -100%) scale(1.1); z-index: 2; }
.map-cluster { display: grid; place-content: center; transform: translate(-50%, -50%); border-radius: 50%; background: var(--brand); color: #fff; border: 2px solid #fff; box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 28%, transparent), 0 4px 12px rgba(0, 0, 0, .25); text-align: center; line-height: 1.1; cursor: pointer; }
.map-cluster b { font-size: 14px; }
.map-cluster { position: relative; }
.map-cluster small { position: absolute; top: calc(100% + 5px); left: 50%; transform: translateX(-50%); padding: 2px 7px; border-radius: 999px; background: var(--panel); color: var(--ink); border: 1px solid var(--line-2); box-shadow: 0 2px 6px rgba(0, 0, 0, .2); font-size: 11px; font-weight: 700; white-space: nowrap; }
.map-cluster-s { width: 42px; height: 42px; }
.map-cluster-m { width: 50px; height: 50px; }
.map-cluster-l { width: 58px; height: 58px; }
.map-pin { display: block; width: 26px; height: 26px; transform: translate(-50%, -100%) rotate(-45deg); transform-origin: center; border-radius: 50% 50% 50% 0; background: var(--brand); border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .35); margin-top: -4px; }
path.map-area-approx { fill: var(--brand); fill-opacity: .12; stroke: var(--brand); stroke-width: 2; stroke-dasharray: 6 6; }
path.map-plot { fill: var(--gold); fill-opacity: .22; stroke: var(--gold-2); stroke-width: 3; }
path.map-vertex { fill: #fff; fill-opacity: 1; stroke: var(--gold-2); stroke-width: 2; }
.map-locate { width: 34px; height: 34px; display: grid; place-items: center; background: var(--panel); color: var(--ink); border: 2px solid rgba(0, 0, 0, .2); border-radius: 4px; cursor: pointer; }
.map-locate:hover { color: var(--brand); }

/* Popups and controls follow the theme. */
.leaflet-container { font-family: var(--font); background: var(--panel-2); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--panel); color: var(--ink); box-shadow: var(--shadow-lg); }
.leaflet-popup-content-wrapper { border-radius: 14px; padding: 0; overflow: hidden; }
.leaflet-popup-content { margin: 0; width: 260px !important; }
.leaflet-container a.leaflet-popup-close-button { color: #fff; background: rgba(0, 0, 0, .45); border-radius: 50%; width: 24px; height: 24px; top: 6px; right: 6px; line-height: 22px; text-align: center; font-size: 18px; }
.map-pop { display: flex; flex-direction: column; color: inherit !important; text-decoration: none; }
.map-pop img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.map-pop > span { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; font-size: 13px; }
.map-pop b { font-size: 16px; }
.map-pop-title { font-weight: 700; line-height: 1.3; }
.map-pop-meta { color: var(--muted); font-size: 12px; }
.map-pop-approx { color: var(--brand); font-size: 11.5px; font-weight: 700; }
.leaflet-bar a, .leaflet-bar a:hover { background: var(--panel); color: var(--ink); border-bottom-color: var(--line); }
.leaflet-control-attribution { background: color-mix(in srgb, var(--panel) 85%, transparent) !important; color: var(--muted); }
.leaflet-control-attribution a { color: var(--brand); }
@media (prefers-color-scheme: dark) {
  .leaflet-tile-pane { filter: brightness(.75) contrast(1.1) saturate(.8); }
}

/* Listing page. */
.ad-location-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ad-location-place { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0 12px; }
.ad-map { height: 300px; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); z-index: 0; }
.ad-location-note { margin: 10px 0 0; }

/* Wizard picker. */
.geo-box { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px; margin: 0; display: flex; flex-direction: column; gap: 10px; background: var(--panel-2); }
.geo-box legend { display: flex; align-items: center; gap: 6px; font-weight: 800; padding: 0 6px; }
.geo-box p { margin: 0; }
.geo-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.geo-tools [aria-pressed="true"] { background: var(--ink); color: var(--panel); border-color: var(--ink); }
.geo-map { height: 320px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); z-index: 0; }
.geo-map.is-drawing { cursor: crosshair; }
.geo-map.is-drawing .leaflet-container, .geo-map.is-drawing.leaflet-container { cursor: crosshair; }
.geo-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.geo-area { font-size: 14px; }
.geo-box:not(.has-area) .geo-area { display: none; }

.hero-map { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 12px; font-weight: 700; color: var(--gold); text-decoration: none; }
.hero-map:hover { color: #fff; }

@media (max-width: 960px) {
  .map-wrap { grid-template-columns: minmax(0, 1fr); height: auto; }
  .map-canvas { height: 62vh; min-height: 380px; }
  .map-side { max-height: none; }
  .map-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 4px; }
}
@media (max-width: 720px) {
  .map-canvas { height: 58vh; min-height: 340px; }
  .ad-map, .geo-map { height: 260px; }
}

@media (max-width: 720px) {
  .map-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; }
  .map-filters > label, .map-range { min-width: 0; }
  .map-filters .map-f-q { grid-column: 1 / -1; }
  .map-range { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; }
  .map-filters > .btn { display: none; }
  .map-head h1 { font-size: 28px; }
  .map-head p { display: none; }
}
/* ---------- Phone UX: tab bar, menu, sticky listing actions, compact home ---------- */
.tabbar { display: none; }
.code-form { align-items: center; }
.code-form .btn { white-space: nowrap; }

/* Menu page (the phone "Menu" tab; also works on desktop). */
.menu-page { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.menu-me { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs); color: var(--ink); }
.menu-me:hover { color: var(--ink); border-color: var(--line-2); }
.menu-me .avatar-lg { width: 58px; height: 58px; font-size: 20px; flex: none; }
.menu-me-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.menu-me-text b { font-size: 17px; }
.menu-me-text .muted { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-me-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.menu-me > .ico { color: var(--muted); flex: none; }
.menu-guest { padding: 22px 20px; background: linear-gradient(135deg, var(--brand), var(--brand-3)); color: #fff; border-radius: var(--radius); }
.menu-guest h1 { font-size: 24px; margin: 0 0 6px; color: #fff; }
.menu-guest .muted { color: rgba(255, 255, 255, .78); margin: 0 0 16px; }
.menu-guest-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.menu-guest-actions .btn:not(.btn-accent) { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .25); color: #fff; }
.menu-admin { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius-md); background: var(--ink); color: var(--panel); font-weight: 800; }
.menu-admin:hover { color: var(--panel); background: var(--brand-3); }
.menu-admin span { flex: 1; }
.menu-group .h-xs { margin: 0 4px 8px; font-family: var(--font); font-size: 11px; line-height: 1.4; }
.menu-list { list-style: none; margin: 0; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.menu-list li + li { border-top: 1px solid var(--line); }
.menu-list a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 52px; color: var(--ink); font-weight: 600; font-size: 15px; }
.menu-list a:hover, .menu-list a:active { background: var(--panel-2); color: var(--ink); }
.menu-list a > .ico:last-child { color: var(--muted); flex: none; }
.menu-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand-tint); color: var(--brand); flex: none; }
.menu-label { flex: 1; min-width: 0; }
.menu-langs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.menu-langs a { text-align: center; padding: 10px 6px; border-radius: 10px; font-weight: 700; color: var(--ink-2); }
.menu-langs a.on { background: var(--ink); color: var(--panel); }
.menu-logout { margin-top: 4px; }

@media (max-width: 720px) {
  /* Bigger text in fields: iOS zooms into inputs smaller than 16px. */
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea { font-size: 16px; }

  /* Header: the info strip goes (language is in Menu and the footer); the bar slides
     away while scrolling down and returns on the way up. */
  .topbar { display: none; }
  .top { transition: transform .28s var(--ease); }
  .top.top-hide { transform: translateY(-100%); }

  /* Bottom tab bar replaces the header icon row. */
  .util { display: none !important; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end;
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--panel) 92%, transparent);
    backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
    border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -20px rgba(19, 33, 27, .5); }
  .tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; min-height: 52px; padding: 6px 0 4px;
    color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .01em; -webkit-tap-highlight-color: transparent; transition: color .15s, transform .12s; }
  .tab:hover { color: var(--ink); }
  .tab:active { transform: scale(.94); }
  .tab .ico { width: 23px; height: 23px; }
  .tab > span:not(.avatar):not(.tab-post-btn) { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tab.on { color: var(--brand); }
  .tab.on::before { content: ''; position: absolute; top: -4px; left: 50%; width: 24px; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); transform: translateX(-50%); }
  .tab .avatar-sm { width: 25px; height: 25px; font-size: 10px; }
  .tab.on .avatar-sm { box-shadow: 0 0 0 2px var(--panel), 0 0 0 3.5px var(--brand); }
  .tab .badge { top: 3px; right: auto; left: calc(50% + 5px); }
  .tab-post { color: var(--ink-2); }
  .tab-post-btn { display: grid; place-items: center; width: 50px; height: 50px; margin-top: -24px; border-radius: 50%; background: linear-gradient(160deg, var(--brand), var(--brand-3)); color: #fff;
    box-shadow: 0 10px 22px -8px rgba(14, 90, 67, .75), 0 0 0 4px var(--panel); }
  .tab-post .tab-post-btn .ico { width: 24px; height: 24px; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(90px + env(safe-area-inset-bottom)); }

  /* Listing: price and actions pinned to the bottom instead of the tab bar. */
  .is-listing .tabbar { display: none; }
  .is-listing .ad-quick { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; margin: 0; gap: 10px; border: 0; border-top: 1px solid var(--line); border-radius: 18px 18px 0 0;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--panel); box-shadow: 0 -12px 30px -16px rgba(19, 33, 27, .45); }
  .ad-quick-price { min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
  .ad-quick-price b { font-size: 21px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ad-quick-actions { display: flex; gap: 8px; flex: none; }
  .ad-quick-actions .btn { min-height: 46px; padding: 0 16px; border-radius: 14px; font-size: 14.5px; }
  .ad-quick-actions .btn.is-revealed { font-variant-numeric: tabular-nums; }
  .btn-msg-quick { width: 46px; padding: 0 !important; justify-content: center; }
  .btn-msg-quick span { display: none; }
  .is-listing { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  .is-listing .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }

  /* Notices: icon beside the first line, buttons under the text. */
  .notice { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 8px 12px; padding: 13px 14px; }
  .notice > .ico { margin-top: 1px; }
  .notice > :not(.ico):not(span) { grid-column: 2; justify-self: start; }

  /* Home: a shorter hero, trust points as a 2×2 grid, categories as tiles. */
  .hero { padding: 26px 18px 20px; grid-template-columns: minmax(0, 1fr); }
  .hero-text { min-width: 0; }
  .hero h1 { font-size: 31px; line-height: 1.08; }
  .hero-sub { font-size: 14.5px; margin-bottom: 18px; }
  .hero-popular { flex-wrap: nowrap; overflow-x: auto; margin: 16px -18px 0; padding: 0 18px 2px; scrollbar-width: none; }
  .hero-popular::-webkit-scrollbar { display: none; }
  .hero-popular > * { flex: none; }
  .hero-stats { margin-top: 20px; padding-top: 18px; }
  .trust { grid-template-columns: 1fr 1fr; }
  .trust > div, .trust > div + div { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; border: 0; }
  .trust > div:nth-child(even) { border-left: 1px solid var(--line); }
  .trust > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .trust .ico { width: 34px; height: 34px; padding: 8px; }
  .trust b { font-size: 13.5px; }
  .trust span { font-size: 12px; line-height: 1.35; display: block; }
  .sections { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sec-card { padding: 14px; border-radius: 18px; }
  .sec-card:hover { transform: none; }
  .sec-card .sub-list { display: none; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 10px; margin: 0; height: 100%; }
  .sec-name { font-size: 14.5px; }
  .sec-total { font-size: 12px; }
}

@media (max-width: 720px) {
  /* Sponsored banner above results: one compact line-up instead of a big card. */
  .sponsored-banner .sponsored-media { width: 76px; }
  .sponsored-banner .sponsored-media .ico { width: 24px; height: 24px; }
  .sponsored-banner .sponsored-body { padding: 10px 12px; gap: 3px; }
  .sponsored-banner .sponsored-body b { font-size: 14.5px; line-height: 1.25; }
  .sponsored-banner .sponsored-text { display: none; }
  .sponsored-banner .sponsored-foot { font-size: 12.5px; }
}
@media (max-width: 720px) {
  /* Open filters: "Show results (N)" stays pinned above the tab bar while scrolling the panel. */
  .filter-toggle[open] .filter-actions { position: sticky; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 5; margin: 18px -20px -20px; padding: 12px 20px;
    background: color-mix(in srgb, var(--panel) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }
  .filter-toggle[open] .filter-actions .btn { min-height: 48px; }
}