/* Scout — Neon/Magenta Liquid Glass Hero, Terminal Catalog & iOS Liquid Glass Dock */
@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --font-display: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", "Cascadia Code", Consolas, monospace;
  --scout-black: #000000;
  --scout-charcoal: #0a0a0a;
  --scout-neon-pink: #ff00d4;
  --scout-hot-pink: #ff2ddb;
  --scout-light-pink: #ff6bef;
  --scout-pastel-pink: #f8b4ff;
  --scout-white: #ffffff;
  --scout-deep-magenta: #7a005f;
  --scout-purple-pink: #c400a6;
  --scout-soft-pink: #e58bff;
  --scout-gray: #bebebe;
  --brand-gradient: linear-gradient(135deg, #7a005f 0%, #c400a6 28%, #ff00d4 55%, #ff6bef 80%, #f8b4ff 100%);
  --bg: #fdf9ff;
  --bg-soft: #f8f0fc;
  --surface: #f3e6fa;
  --surface-2: #ffffff;
  --field: #ffffff;
  --ink: #0a0a0a;
  --muted: #6b5873;
  --muted-2: #9b88a3;
  --muted-strong: #43324a;
  --line: rgba(122, 0, 95, .10);
  --line-strong: rgba(196, 0, 166, .18);
  --brand: #c400a6;
  --brand-fg: #ffffff;
  --brand-deep: #7a005f;
  --brand-bright: #ff00d4;
  --brand-text: #7a005f;
  --brand-soft: rgba(248, 180, 255, .34);
  --night: #000000;
  --night-2: #0a0a0a;
  --night-muted: #bebebe;
  --ok-soft: #ecfdf5;
  --ok-ink: #15803d;
  --warn-soft: #fffbeb;
  --warn-ink: #b45309;
  --danger-soft: #fef2f2;
  --danger-ink: #b91c1c;
  --neutral-soft: #f3e6fa;
  --neutral-ink: #43324a;
  --visual-bg: #f5ebfa;
  --radius-control: 10px;
  --radius-card: 16px;
  --radius-panel: 18px;
  --radius-dialog: 20px;
  --radius-hero: 28px;
  --shadow: 0 24px 60px rgba(122, 0, 95, .14);
  --shadow-soft: 0 2px 10px rgba(122, 0, 95, .05);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur-1: 120ms;
  --dur-2: 180ms;
  --dur-3: 240ms;
  --tg-safe: 0px;
  --tg-vh: 100dvh;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #000000;
  --bg-soft: #0a0a0a;
  --surface: #120915;
  --surface-2: #170c1b;
  --field: #120915;
  --ink: #ffffff;
  --muted: #bebebe;
  --muted-2: #8e7b93;
  --muted-strong: #f8b4ff;
  --line: rgba(248, 180, 255, .11);
  --line-strong: rgba(255, 107, 239, .22);
  --brand: #ff2ddb;
  --brand-fg: #ffffff;
  --brand-deep: #ff00d4;
  --brand-bright: #ff6bef;
  --brand-text: #e58bff;
  --brand-soft: rgba(255, 0, 212, .16);
  --ok-soft: rgba(76, 195, 138, .14);
  --ok-ink: #4cc38a;
  --warn-soft: rgba(245, 158, 11, .14);
  --warn-ink: #fbbf24;
  --danger-soft: rgba(239, 68, 68, .14);
  --danger-ink: #f87171;
  --neutral-soft: #1b0e21;
  --neutral-ink: #bebebe;
  --visual-bg: #120915;
  --shadow: 0 24px 70px rgba(0, 0, 0, .72);
  --shadow-soft: 0 1px 0 rgba(248, 180, 255, .06);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}
body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
  overflow-y: visible;
}
::selection { background: rgba(255, 0, 212, .22); color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 500; letter-spacing: -.03em; }
svg { display: block; }
.icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--surface-2); padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line); }
.skip-link:focus { top: 12px; }
.noscript { padding: 24px; }
:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 2px; border-radius: 8px; }
:focus:not(:focus-visible) { outline: none; }
#main-title:focus, h2[tabindex="-1"]:focus, dialog:focus { outline: none; }

/* shell & topbar */
.shell { display: flex; flex-direction: column; min-height: 100dvh; width: 100%; max-width: 100%; overflow-x: clip; }
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 60px;
  padding-left: max(clamp(16px, 3vw, 40px), calc((100% - 1480px) / 2 + 32px));
  padding-right: max(clamp(16px, 3vw, 40px), calc((100% - 1480px) / 2 + 32px));
  background: rgba(253, 249, 255, .84);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
}
:root[data-theme="dark"] .topbar {
  background: rgba(0, 0, 0, .78);
  border-bottom-color: rgba(255, 255, 255, .04);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  text-decoration: none; color: var(--ink); font-size: 18px;
  font-weight: 800; letter-spacing: .02em;
}
.brand-mark {
  width: 44px; height: 24px; border-radius: 8px; display: inline-grid; place-items: center;
  background: transparent; color: var(--brand-bright); font-size: 13px; font-weight: 700; line-height: 1;
}
.brand-logo-svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 3px 10px rgba(255, 0, 212, .34)); }
.brand-wordmark { display: inline-flex; align-items: center; height: 14px; color: var(--ink); }
.brand-wordmark-svg { height: 100%; width: auto; display: block; }
.top-status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 12px; color: var(--muted-strong); font-weight: 500;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok-ink); flex: none; }
.status-dot.amber { background: var(--warn-ink); }
.top-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; flex: none; }
.top-create { min-height: 36px; padding: 6px 14px; font-size: 13px; border-radius: 10px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-2); display: inline-block; flex: none; }
.icon-btn {
  width: 44px; height: 44px; min-width: 44px; min-height: 44px; border-radius: 10px; border: 1px solid transparent;
  background: transparent; display: grid; place-items: center; color: var(--ink);
}
.icon-btn.danger { color: var(--danger-ink); }
.icon-btn.active { background: var(--brand-soft); color: var(--brand-text); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink); font-size: 12px; font-weight: 600;
  letter-spacing: .01em;
}
.content {
  --content-px: clamp(16px, 3vw, 40px);
  width: 100%; max-width: 1480px; margin: 0 auto; flex: 1;
  padding: clamp(16px, 2.5vw, 32px) var(--content-px) calc(116px + env(safe-area-inset-bottom, 0px) + var(--tg-safe));
}

/* headings */
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 20px; flex-wrap: nowrap; }
.page-heading h1 { font-size: clamp(1.3rem, 4.2vw, 2.2rem); line-height: 1.15; letter-spacing: -.03em; min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.heading-actions { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; flex: none; margin-left: auto; }
.page-heading .btn { min-height: 34px; padding: 6px 11px; font-size: 12px; gap: 5px; white-space: nowrap; flex: none; }
.page-heading .btn .icon { width: 14px; height: 14px; }
.section { margin-top: 40px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); font-weight: 500; letter-spacing: -.02em; }
.link-btn {
  display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent;
  color: var(--muted-strong); font-weight: 500; font-size: 13px; padding: 4px 0;
  font-variant-numeric: tabular-nums;
}
.link-btn:disabled { opacity: .45; cursor: default; }

/* Scout Borderless Ambient Hero */
.hero {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: calc(100vh - 60px);
  min-height: calc(100dvh - 60px);
  margin-top: calc(-1 * clamp(16px, 2.5vw, 32px));
  margin-inline: calc(-1 * var(--content-px));
  padding: clamp(32px, 6vh, 64px) var(--content-px) calc(84px + env(safe-area-inset-bottom, 0px) + var(--tg-safe));
  border-radius: 0;
  overflow-x: hidden;
  overflow-x: clip;
  overflow-y: visible;
  text-align: center;
  color: #0a0a0a;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  top: -8%;
  bottom: -8%;
  left: 50%;
  width: 100%;
  max-width: 100%;
  height: 116%;
  pointer-events: none;
  z-index: 0;
  will-change: transform, opacity;
}
.hero::before {
  transform: translate3d(-50%, 0, 0);
  background:
    radial-gradient(ellipse 56% 48% at 46% 45%, rgba(255, 46, 229, .20) 0%, rgba(196, 0, 166, .10) 46%, transparent 74%),
    radial-gradient(ellipse 44% 40% at 62% 54%, rgba(248, 180, 255, .16) 0%, rgba(255, 0, 212, .07) 50%, transparent 76%);
  filter: blur(42px);
  animation: hero-aurora-drift 13s ease-in-out infinite alternate;
}
.hero::after {
  transform: translate3d(-50%, 0, 0);
  background:
    radial-gradient(circle 34vw at 30% 36%, rgba(255, 0, 212, .16) 0%, transparent 70%),
    radial-gradient(circle 38vw at 72% 60%, rgba(196, 0, 166, .15) 0%, transparent 72%),
    radial-gradient(ellipse 40% 32% at 54% 28%, rgba(255, 107, 239, .14) 0%, transparent 70%);
  filter: blur(50px);
  animation: hero-orbs-pulse 17s ease-in-out infinite alternate;
}
:root[data-theme="dark"] .hero {
  color: #ffffff;
  background: transparent;
  border: 0;
  box-shadow: none;
}
:root[data-theme="dark"] .hero::before {
  background:
    radial-gradient(ellipse 58% 50% at 46% 45%, rgba(255, 46, 229, .30) 0%, rgba(122, 0, 95, .22) 48%, transparent 76%),
    radial-gradient(ellipse 46% 42% at 62% 54%, rgba(255, 0, 212, .22) 0%, rgba(196, 0, 166, .12) 52%, transparent 78%);
}
:root[data-theme="dark"] .hero::after {
  background:
    radial-gradient(circle 34vw at 28% 36%, rgba(255, 0, 212, .24) 0%, rgba(122, 0, 95, .10) 48%, transparent 72%),
    radial-gradient(circle 38vw at 74% 62%, rgba(248, 180, 255, .18) 0%, rgba(196, 0, 166, .12) 46%, transparent 74%),
    radial-gradient(ellipse 42% 34% at 54% 28%, rgba(255, 107, 239, .20) 0%, transparent 70%);
}
.hero-copy {
  position: relative; z-index: 1;
  width: min(560px, 100%); margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
}
.hero-copy::before {
  content: "";
  position: absolute;
  top: 48%;
  left: 50%;
  width: min(680px, 100%);
  height: 340px;
  transform: translate3d(-50%, -50%, 0);
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(ellipse 62% 58% at 50% 50%, rgba(255, 45, 219, .18) 0%, rgba(196, 0, 166, .08) 52%, transparent 78%);
  filter: blur(34px);
  will-change: transform, opacity;
  animation: hero-core-breathe 8.5s ease-in-out infinite alternate;
}
:root[data-theme="dark"] .hero-copy::before {
  background: radial-gradient(ellipse 62% 58% at 50% 50%, rgba(255, 45, 219, .28) 0%, rgba(248, 180, 255, .12) 44%, transparent 78%);
}
@keyframes hero-aurora-drift {
  0% {
    transform: translate3d(-56%, -4%, 0) scale(1.06, 0.94);
    opacity: .82;
  }
  50% {
    transform: translate3d(-44%, 4%, 0) scale(0.95, 1.08);
    opacity: 1;
  }
  100% {
    transform: translate3d(-53%, -2%, 0) scale(1.08, 1.02);
    opacity: .88;
  }
}
@keyframes hero-orbs-pulse {
  0% {
    transform: translate3d(-43%, 5%, 0) scale(0.92);
    opacity: .32;
  }
  38% {
    transform: translate3d(-55%, -4%, 0) scale(1.08);
    opacity: .92;
  }
  72% {
    transform: translate3d(-46%, -6%, 0) scale(0.96);
    opacity: .48;
  }
  100% {
    transform: translate3d(-57%, 4%, 0) scale(1.12);
    opacity: .98;
  }
}
@keyframes hero-core-breathe {
  0% {
    transform: translate3d(-58%, -53%, 0) scale(0.88);
    opacity: .45;
  }
  50% {
    transform: translate3d(-43%, -47%, 0) scale(1.14);
    opacity: .95;
  }
  100% {
    transform: translate3d(-52%, -51%, 0) scale(0.96);
    opacity: .62;
  }
}
.hero h1 {
  width: fit-content;
  max-width: 100%;
  font-size: clamp(2.65rem, 6.8vw, 4.35rem);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 700;
  margin: 0 auto clamp(22px, 3.5vw, 30px);
  color: inherit;
  text-align: center;
}
.hero-line-a {
  display: block;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.035em;
}
:root[data-theme="dark"] .hero-line-a {
  color: #ffffff;
}
.hero h1 em {
  font-style: normal;
  display: block;
  width: fit-content;
  margin: 0 auto;
  font-weight: 700;
  color: #FF2DDB;
  background: linear-gradient(90deg, #FF2DDB 0%, #FF5CE6 45%, #F8A8FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
:root[data-theme="dark"] .hero h1 em {
  color: #FF4FE3;
  background: linear-gradient(90deg, #FF3FE0 0%, #FF6BEF 45%, #F8B4FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-dot {
  color: inherit;
  -webkit-text-fill-color: inherit;
  text-shadow: none;
}
:root[data-theme="dark"] .hero-dot {
  color: inherit;
  -webkit-text-fill-color: inherit;
  text-shadow: none;
}

/* Unified Capsule Search Bar */
.quick-find {
  display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 8px;
  width: min(560px, 100%);
  height: 54px;
  padding: 0 0 0 18px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  color: #0a0a0a;
  border: 1px solid rgba(196, 0, 166, .16);
  box-shadow: 0 12px 32px rgba(122, 0, 95, .08);
}
:root[data-theme="dark"] .quick-find {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}
.quick-find-row {
  display: flex; align-items: center; gap: 10px;
  flex: 1; min-width: 0; height: 100%;
  padding: 0;
}
.quick-find-row > .icon { width: 18px; height: 18px; color: #8E8E93; }
.quick-find input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  color: inherit; padding: 0; font-size: 15px; height: 100%;
}
.quick-find input::placeholder { color: #8E8E93; }
.quick-find-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  flex-wrap: nowrap;
}
.quick-builder-btn, .quick-submit-btn {
  flex: none; min-width: 0;
  white-space: nowrap;
}
.quick-find .quick-submit-btn {
  margin: 4px;
  height: 46px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 9999px;
  background: #FFFFFF;
  border: 1px solid #FFFFFF;
  color: #000000;
  font-weight: 600;
  font-size: 14px;
  gap: 5px;
  box-shadow: 0 4px 16px rgba(122, 0, 95, .10);
}
:root[data-theme="dark"] .quick-find .quick-submit-btn {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: #000000;
  box-shadow: 0 4px 16px rgba(255, 255, 255, .12);
}
.cta-ne-arrow {
  font-size: 14px;
  line-height: 1;
}
.hero-products {
  position: relative; z-index: 1;
  margin-top: 18px;
  width: min(920px, 100%);
  flex: none;
  display: flex; justify-content: center;
}
.hero-products .product-bar {
  justify-content: flex-start;
  flex-wrap: nowrap;
  overflow-x: auto;
  max-width: 100%;
  padding: 4px 4px 6px;
}
@media (min-width: 721px) {
  .hero-products .product-bar {
    justify-content: center;
  }
}
/* Liquid glass category pills */
.hero-products .product-pill {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .62) 0%, rgba(255, 255, 255, .34) 100%);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .7);
  color: #43324a;
  border-radius: 9999px;
  padding: 8px 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    inset 0 -1px 0 rgba(196, 0, 166, .06),
    0 6px 18px rgba(122, 0, 95, .08);
}
.hero-products .product-pill::before {
  content: "";
  position: absolute;
  inset: 0 0 50% 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, .45) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: -1;
}
.hero-products .product-pill small {
  color: #6b5873;
}
:root[data-theme="dark"] .hero-products .product-pill {
  background: linear-gradient(180deg, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, .035) 100%);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #C7C7CC;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    inset 0 -1px 0 rgba(255, 255, 255, .04),
    0 8px 24px rgba(0, 0, 0, .28);
}
:root[data-theme="dark"] .hero-products .product-pill::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, 0) 100%);
}
:root[data-theme="dark"] .hero-products .product-pill small {
  color: #8E8E93;
}
.hero-products .product-pill.active {
  background: linear-gradient(180deg, rgba(255, 45, 219, .22) 0%, rgba(196, 0, 166, .12) 100%);
  border: 1px solid rgba(245, 53, 226, .5);
  color: #0a0a0a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .7),
    0 0 0 1px rgba(255, 45, 219, .08),
    0 6px 20px rgba(255, 0, 212, .18);
}
.hero-products .product-pill.active small {
  color: #6b5873;
  opacity: .9;
}
:root[data-theme="dark"] .hero-products .product-pill.active {
  background: linear-gradient(180deg, rgba(255, 45, 219, .26) 0%, rgba(122, 0, 95, .22) 100%);
  border: 1px solid rgba(245, 53, 226, .55);
  color: #FFFFFF;
  box-shadow:
    inset 0 1px 0 rgba(255, 180, 250, .28),
    0 0 18px rgba(255, 0, 212, .22);
}
:root[data-theme="dark"] .hero-products .product-pill.active small {
  color: #C7C7CC;
  opacity: 1;
}

/* product bar */
.product-section { margin-top: 20px; }
.product-bar { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0; scrollbar-width: none; }
.product-bar::-webkit-scrollbar { display: none; }
.product-pill {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--muted-strong);
  padding: 8px 16px; border-radius: 9999px; font-size: 13px; font-weight: 500;
  white-space: nowrap;
}
.product-pill small {
  color: var(--muted); font-size: 12px; font-family: var(--font-mono);
  font-weight: 500; margin-left: 2px; font-variant-numeric: tabular-nums;
}
:root[data-theme="dark"] .product-pill {
  background: #141416;
  border-color: rgba(255, 255, 255, 0.08);
  color: #9CA3AF;
}
:root[data-theme="dark"] .product-pill small {
  color: #6E6E73;
}
.product-pill.active {
  background: rgba(245, 53, 226, 0.14);
  border-color: rgba(245, 53, 226, 0.4);
  color: var(--ink);
}
.product-pill.active small { color: var(--muted); opacity: .9; }
:root[data-theme="dark"] .product-pill.active {
  background: rgba(245, 53, 226, 0.14);
  border-color: rgba(245, 53, 226, 0.4);
  color: #FFFFFF;
}
:root[data-theme="dark"] .product-pill.active small {
  color: #9CA3AF;
  opacity: 1;
}

/* Terminal / Catalog Two-Column Workspace (Borderless Canvas) */
.terminal-workspace {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 36px);
  margin-top: clamp(20px, 3vw, 32px);
  align-items: start;
}
.terminal-sidebar {
  position: sticky; top: 76px;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.terminal-sidebar .section-head {
  margin-bottom: 12px;
}
.terminal-sidebar .section-head h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.02em;
}
.overview-new-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: #6b5873;
  padding: 4px 2px;
}
:root[data-theme="dark"] .overview-new-btn {
  color: #A892AD;
}
.overview-new-btn .icon {
  width: 14px;
  height: 14px;
}
.terminal-sidebar .search-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}
.terminal-sidebar .add-card {
  min-height: 52px;
  flex-direction: row;
  padding: 12px 16px;
  border-radius: 22px;
}
.terminal-main {
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.terminal-stats {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
  margin-left: auto; margin-right: 12px;
  font-variant-numeric: tabular-nums;
}
.terminal-stats strong {
  color: var(--ink); font-weight: 600; font-family: var(--font-mono);
}

/* demo */
.demo-strip { display: flex; align-items: center; gap: 12px; margin-top: 16px; min-height: 28px; }

/* search cards */
.search-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.search-card {
  display: flex; flex-direction: column; gap: 6px; padding: 18px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-card);
}
.search-card.search-pill-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 16px 10px 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 22px;
  cursor: pointer;
  transition: border-color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
:root[data-theme="dark"] .search-card.search-pill-card {
  background: #141416;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.search-thumb {
  width: 44px;
  height: 44px;
  padding: 3px;
  border-radius: 12px;
  background: #EFEFF4;
  overflow: hidden;
  flex: none;
  display: grid;
  place-items: center;
}
.search-thumb img.product-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9px;
  display: block;
}
.search-pill-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  text-align: left;
}
.search-card.search-pill-card .search-pill-info h3 {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
:root[data-theme="dark"] .search-card.search-pill-card .search-pill-info h3 {
  color: #FFFFFF;
}
.search-pill-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  color: #8E8E93;
}
.search-pill-status.is-live {
  color: #4CC366;
}
:root:not([data-theme="dark"]) .search-pill-status.is-live {
  color: #15803d;
}
.status-bullet {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6E6E73;
  flex: none;
}
.search-pill-status.is-live .status-bullet {
  background: #34C759;
}
.search-pill-chevron {
  margin-left: auto;
  color: #6E6E73;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.search-pill-chevron .icon {
  width: 16px;
  height: 16px;
}
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.type-icon {
  width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; flex: none;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
}
.search-card h3 { font-size: 15px; font-weight: 500; letter-spacing: -.01em; margin-top: 2px; }
.search-query { color: var(--muted); font-size: 13px; line-height: 1.4; }
.search-budget { color: var(--ink); font-size: 13px; font-weight: 500; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.search-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.search-meta .location { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; margin-left: auto; }
.card-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line);
}
.match-count {
  display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent;
  color: var(--brand-text); font-weight: 500; font-size: 13px; padding: 4px 0;
  font-variant-numeric: tabular-nums;
}
.card-actions { display: flex; gap: 2px; }
.card-actions .icon-btn { width: 44px; height: 44px; min-width: 44px; min-height: 44px; border-color: transparent; }
.add-card {
  min-height: 140px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  border: 1px dashed var(--line-strong); background: transparent; border-radius: var(--radius-card);
  color: var(--muted-strong); padding: 16px; text-align: center;
}
.add-card strong { font-size: 13px; font-weight: 500; }

/* tags + badges */
.tag {
  display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 2px 8px;
  font-size: 12px; font-weight: 500; border: 1px solid transparent;
  white-space: nowrap;
}
.tag .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.tag.green { color: var(--ok-ink); background: var(--ok-soft); }
.tag.amber { color: var(--warn-ink); background: var(--warn-soft); }
.tag.red { color: var(--danger-ink); background: var(--danger-soft); }
.tag.grey { color: var(--neutral-ink); background: var(--neutral-soft); }
.market-badge {
  width: 22px; height: 22px; border-radius: 6px; display: inline-grid; place-items: center;
  font-weight: 600; font-size: 11px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); flex: none;
}
.market-badge.has-logo {
  background: transparent; border: 0; border-radius: 0; padding: 0;
}
.market-badge[data-market="skelbiu"] .market-logo { color: #16a34a; }
:root[data-theme="dark"] .market-badge[data-market="skelbiu"] .market-logo { color: #ffffff; }
.market-logo { width: 20px; height: 20px; display: block; flex: none; overflow: visible; }
.market-logo path, .market-logo circle { stroke: none; }
.listing-badges .market-badge.has-logo {
  width: 26px; height: 26px; border-radius: 7px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(15, 23, 42, .12);
}
:root[data-theme="dark"] .listing-badges .market-badge.has-logo {
  background: rgba(15, 20, 32, .86);
}

/* listing cards & catalog filters */
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.page-sub { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 0 0 16px; max-width: 760px; }
.filter-bar { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 16px; flex-wrap: wrap; }
.filter-bar .input-wrap { min-height: 42px; }
.filter-toggle { flex: none; min-height: 42px; }
.filter-count { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.btn.secondary.filter-toggle[aria-expanded="true"] { background: var(--brand-soft); border-color: transparent; color: var(--brand-text); }
.btn.secondary.filter-toggle[aria-expanded="true"] .filter-count { color: var(--brand-text); opacity: .8; }
.filter-panel {
  width: 100%; margin: 0 0 20px; padding: 20px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}
.filter-panel[hidden] { display: none; }
.filter-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.filter-panel-head h2 { font-size: 16px; letter-spacing: -.01em; }
.filter-group { margin-top: 16px; }
.filter-label { display: block; color: var(--muted); font-size: 12px; font-weight: 500; margin-bottom: 8px; }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 16px; }
.filter-panel .product-bar { flex-wrap: wrap; overflow: visible; }
.filter-panel .cars-pill { display: none; }
.filter-panel .car-filters { margin: 0; }
.filter-panel .tabs { background: var(--surface); }
.filter-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.section-switch {
  display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
}
.section-switch button {
  display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent;
  color: var(--muted-strong); border-radius: 8px; padding: 7px 14px; font-size: 13px; font-weight: 500;
}
.section-switch button.active { background: var(--surface-2); color: var(--ink); box-shadow: var(--shadow-soft); }
.car-filters {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px; margin: 0 0 16px;
}
.car-filters .field { margin: 0; }
.input-wrap {
  display: flex; align-items: center; gap: 8px; flex: 1; min-width: min(100%, 240px);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-control); padding: 0 14px;
}
.input-wrap .icon { color: var(--muted); }
.input-wrap input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 10px 0; color: var(--ink); font-size: 14px; }
.input-wrap input::placeholder { color: var(--muted); }
.toolbar select {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-control);
  padding: 9px 12px; color: var(--ink); font-size: 13px;
}
.toolbar select option { background: var(--surface-2); color: var(--ink); }
.tabs { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.tabs button { border: 0; background: transparent; color: var(--muted-strong); border-radius: 8px; padding: 6px 12px; font-size: 13px; font-weight: 500; }
.tabs button.selected { background: var(--ink); color: var(--bg); }
.quiet-tag { color: var(--muted); font-size: 12px; }
.quiet-tag.warn { color: var(--warn-ink); }
.pager {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 20px; color: var(--muted); font-size: 12px; flex-wrap: wrap;
  font-variant-numeric: tabular-nums;
}
.pager-actions { display: flex; gap: 6px; margin-left: auto; }
.pager-btn { padding: 6px 12px; font-size: 12px; min-height: 34px; }
.pager-btn:disabled { opacity: .4; cursor: default; }
.grid-switch {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px; flex: none;
  min-height: 42px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-control);
}
.grid-switch button {
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  border: 0; background: transparent; color: var(--muted-strong); border-radius: 7px; padding: 0;
  cursor: pointer;
}
.grid-switch button.active {
  background: var(--brand-soft); color: var(--brand-text);
}
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.listing-grid.cols-1 { grid-template-columns: minmax(0, 1fr); }
.listing-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.listing-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.listing-card {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-card);
}
.listing-visual {
  position: relative; aspect-ratio: 16/10; display: grid; place-items: center;
  overflow: hidden; background: var(--visual-bg);
}
.product-art { width: 100%; max-height: 176px; object-fit: contain; }
.product-photo {
  display: block; width: 100%; height: 100%; object-fit: cover;
  border-radius: inherit;
}
.listing-visual .product-photo { position: absolute; inset: 0; border-radius: 0; max-height: none; }
.listing-badges { position: absolute; top: 10px; left: 10px; display: flex; align-items: center; gap: 6px; z-index: 2; }
.heart-btn {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 44px; height: 44px; min-width: 44px; min-height: 44px; border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, .08); background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #475569;
  display: grid; place-items: center;
}
.heart-btn.saved { background: var(--ink); border-color: transparent; color: var(--bg); }
.heart-btn.saved .icon { fill: currentColor; }
.listing-body { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 6px; padding: 14px 16px 16px; }
.listing-title { border: 0; background: transparent; padding: 0; text-align: left; }
.listing-title h3 {
  font-size: 15px; line-height: 1.35; font-family: var(--font-body); font-weight: 500;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; letter-spacing: 0;
}
.listing-sub {
  display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.spec-row { display: flex; gap: 4px; flex-wrap: wrap; }
.spec-row span { background: var(--surface); border-radius: 6px; padding: 2px 7px; font-size: 12px; color: var(--muted-strong); }
.listing-bottom { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; }
.listing-price {
  font-family: var(--font-mono); font-size: 18px; font-weight: 600;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.deal-tag { color: var(--ok-ink); font-size: 12px; font-weight: 500; text-align: right; }

/* empty */
.empty {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 56px 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius-card);
  text-align: center; color: var(--muted);
}
.empty > .icon {
  width: 40px; height: 40px; padding: 12px; box-sizing: border-box;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; color: var(--ink);
}
.empty h2 { font-size: 20px; color: var(--ink); letter-spacing: -.02em; }
.empty p { max-width: 44ch; font-size: 14px; line-height: 1.55; }
.empty .btn { margin-top: 4px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--radius-control); padding: 9px 16px;
  min-height: 40px; font-weight: 500; font-size: 13px; text-decoration: none;
}
.btn.primary { background: var(--brand); color: var(--brand-fg); }
.btn.secondary { background: var(--surface-2); border-color: var(--line); color: var(--ink); }
.btn.danger { background: var(--danger-soft); border-color: transparent; color: var(--danger-ink); }
.btn.danger-outline { background: transparent; border-color: var(--danger-ink); color: var(--danger-ink); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* marketplaces */
.market-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 248px), 1fr)); gap: 16px; }
.market-card {
  min-height: 160px; padding: 20px; display: flex; flex-direction: column; gap: 8px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-card);
}
.market-card-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.market-card-top h2 { font-family: var(--font-body); font-size: 15px; font-weight: 500; letter-spacing: 0; }
.market-card-top .tag { margin-left: auto; }
.market-meta { color: var(--muted); font-size: 13px; line-height: 1.5; }
.market-note { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.5; }

/* activity */
.activity-list { display: flex; flex-direction: column; gap: 8px; }
.activity-item {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-card);
}
.activity-main { flex: 1; min-width: 0; }
.activity-main h3 { font-family: var(--font-body); font-size: 15px; font-weight: 500; }
.activity-main p { color: var(--muted); font-size: 12px; margin: 2px 0 8px; }
.activity-price {
  font-family: var(--font-mono); font-size: 18px; font-weight: 600;
  text-align: right; font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.old-price { display: block; color: var(--muted); font-size: 12px; text-decoration: line-through; font-variant-numeric: tabular-nums; }
.feedback { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.feedback button {
  border: 1px solid var(--line); background: var(--surface); color: var(--muted-strong);
  border-radius: 8px; padding: 4px 10px; font-size: 12px; font-weight: 400;
}
.feedback button.selected { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* settings */
.settings-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.settings-section {
  min-width: 0;
  padding: 24px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-panel);
}
.settings-section:nth-child(1), .settings-section:nth-child(2), .settings-section:nth-child(5), .settings-section.billing-section { grid-column: 1 / -1; }
.plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 12px 0; }
.plan-card {
  display: flex; flex-direction: column; gap: 8px; padding: 16px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
}
.plan-card.pro { border-color: rgba(255, 45, 219, 0.35); }
.plan-card.active { border-color: var(--brand-bright); }
.plan-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-price-stars { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.plan-price-stars small { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.consent-box { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.check-line { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--muted); cursor: pointer; }
.check-line input { accent-color: var(--brand); margin-top: 2px; }
.settings-section h2 { font-size: 18px; font-weight: 500; letter-spacing: -.02em; margin-bottom: 8px; }
.settings-label { color: var(--muted); font-size: 12px; font-weight: 500; margin: 20px 0 8px; }
.settings-label:first-of-type { margin-top: 12px; }
.settings-row {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.settings-row:last-of-type { border-bottom: 0; }
.settings-row h3 { font-family: var(--font-body); font-size: 14px; font-weight: 400; }
.settings-row select {
  min-width: 180px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--field); color: var(--ink); font-size: 13px;
}
.settings-row select option { background: var(--surface-2); color: var(--ink); }
.settings-section .product-bar { margin-bottom: 4px; }
#settings-form .product-bar, #wizard .product-bar {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; overflow: visible;
}
#settings-form .product-pill, #wizard .product-pill {
  flex-direction: column; justify-content: center; gap: 4px; padding: 10px 4px;
  min-width: 0; overflow: hidden; white-space: normal; line-height: 1.2; overflow-wrap: anywhere;
  font-size: 12px; text-align: center;
}
@media (min-width: 720px) {
  #settings-form .product-bar, #wizard .product-bar { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}
.source-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 8px; margin-bottom: 8px; }
.source-choice {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); cursor: pointer;
}
.source-choice input { accent-color: var(--brand); width: 16px; height: 16px; }
.source-choice .source-text { flex: 1; min-width: 0; }
.source-choice strong { display: block; font-size: 13px; font-weight: 500; }
.source-choice .tag { margin-left: auto; }
.source-choice.muted { opacity: .55; cursor: default; }
.source-choice input:disabled { cursor: not-allowed; }
.source-choice:has(input:checked), .check-line:has(input:checked) {
  border-color: var(--brand-bright); background: var(--surface-2);
}
.health-list { display: flex; flex-direction: column; gap: 0; margin-top: 8px; }
.health-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.health-row:last-child { border-bottom: 0; }
.health-row > div { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.health-row small { color: var(--muted); font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.settings-section > .btn { margin-top: 16px; }

/* forms & simplified 1-screen wizard dropdowns */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; margin-top: 10px; }
.field input, .field select {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--field); color: var(--ink); font-weight: 400; outline: 0; font-size: 14px;
}
.field input::placeholder { color: var(--muted); }
.field select option { background: var(--surface-2); color: var(--ink); }
.field input:focus, .field select:focus { border-color: var(--brand-bright); box-shadow: 0 0 0 3px rgba(255, 0, 212, .16); }
.field .hint { color: var(--muted); font-size: 12px; font-weight: 400; }
.field-label { display: block; font-size: 13px; font-weight: 500; margin: 14px 0 8px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.check-group { display: flex; gap: 6px; flex-wrap: wrap; }
.check-line {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px;
  font-size: 13px; font-weight: 400; cursor: pointer;
}
.check-line input { accent-color: var(--brand); }
.toggle-line {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.toggle-line strong { display: block; font-size: 14px; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
#wizard .chips { max-height: 152px; overflow-y: auto; overscroll-behavior: contain; padding: 2px 4px 2px 2px; scrollbar-width: thin; }
.chip {
  border: 1px solid var(--line); background: var(--surface-2); color: var(--muted-strong);
  border-radius: 8px; padding: 6px 10px; font-size: 13px; font-weight: 400;
}
.chip.selected { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.review {
  display: block; margin-top: 16px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  font-size: 13px;
}
.review strong { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 500; color: var(--muted); }
.review p { color: var(--ink); line-height: 1.5; }
.advanced, .wizard-drop {
  margin-top: 12px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface);
}
.advanced { padding: 12px 14px; background: var(--surface-2); overflow: hidden; }
.wizard-drop { overflow: visible; }
.advanced summary, .wizard-drop-head {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: 13px; font-weight: 500; list-style: none;
}
.advanced summary::-webkit-details-marker, .wizard-drop-head::-webkit-details-marker { display: none; }
.wizard-drop-head { padding: 13px 16px; background: var(--surface-2); border-radius: 11px; }
.wizard-drop-head small {
  margin-left: auto; color: var(--muted); font-family: var(--font-mono);
  font-size: 12px; font-weight: 400; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wizard-drop[open] .wizard-drop-head { border-bottom: 1px solid var(--line); border-radius: 11px 11px 0 0; }
.wizard-drop[open] .wizard-drop-head > .icon { transform: rotate(90deg); }
.wizard-drop-body { padding: 14px 16px 16px; background: var(--bg); border-radius: 0 0 11px 11px; }
.wizard-primary { padding-bottom: 4px; }

/* dialogs */
dialog {
  border: 1px solid var(--line); padding: 0; background: var(--bg); color: var(--ink);
  border-radius: var(--radius-dialog); box-shadow: var(--shadow);
  width: min(920px, calc(100% - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  max-height: 92dvh; overflow: hidden;
}
dialog:not([open]) { display: none; }
dialog::backdrop { background: rgba(11, 13, 20, .52); backdrop-filter: blur(4px); }
#wizard {
  width: min(740px, calc(100% - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  max-height: min(92dvh, calc(var(--tg-vh, 100dvh) * 0.92));
}
#wizard[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: min(740px, 92dvh, calc(var(--tg-vh, 100dvh) * 0.92));
  max-height: min(92dvh, calc(var(--tg-vh, 100dvh) * 0.92));
}
#detail {
  width: min(760px, calc(100% - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  max-height: min(92dvh, calc(var(--tg-vh, 100dvh) * 0.92));
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
#confirm {
  width: min(420px, calc(100% - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  max-height: min(92dvh, calc(var(--tg-vh, 100dvh) * 0.92));
}
html:has(dialog[open]), body:has(dialog[open]), body.modal-open { overflow: hidden; overscroll-behavior: none; }
body:has(dialog[open]) .mobile-nav,
body:has(.filter-panel:not([hidden])) .mobile-nav,
body.modal-open .mobile-nav,
body.filters-open .mobile-nav { display: none; }
dialog { overscroll-behavior: contain; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 20px 24px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.modal-head h2 { font-size: 20px; letter-spacing: -.02em; }
.modal-body { padding: 16px 24px 20px; overflow-y: auto; overscroll-behavior: contain; max-height: calc(92dvh - 150px); }
#wizard .modal-body { min-height: 0; max-height: none; overflow-y: auto; -webkit-overflow-scrolling: touch; }
#wizard .modal-head, #wizard .modal-footer { flex: none; }
.form-error { color: var(--danger-ink); font-size: 13px; min-height: 1em; margin-bottom: 6px; }
.modal-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: nowrap;
  padding: 12px 16px calc(14px + var(--tg-safe)); border-top: 1px solid var(--line); background: var(--surface-2);
}
.modal-footer-actions {
  display: flex; align-items: center; gap: 6px; margin-left: auto; flex-wrap: nowrap; flex: none;
}
.modal-footer .btn {
  min-height: 34px; padding: 6px 10px; font-size: 12px; gap: 5px; white-space: nowrap; flex: none;
}
.modal-footer .btn .icon {
  width: 14px; height: 14px;
}
.confirmation { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.confirmation h2 { font-size: 22px; letter-spacing: -.02em; }
.confirmation p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.confirmation .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }

/* detail */
.detail-top {
  position: relative; min-height: 260px; display: grid; place-items: center; padding: 32px;
  background: var(--night); border-bottom: 1px solid var(--line);
}
.detail-top.detail-top-compact {
  min-height: 0; height: 56px; padding: 8px 16px;
  background: var(--surface-2);
}
.detail-top .icon-btn {
  position: absolute; top: 16px; right: 16px; z-index: 2; color: #fff;
  background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .2);
}
.detail-top.detail-top-compact .icon-btn {
  top: 6px; right: 12px; color: var(--ink);
  background: transparent; border-color: transparent;
}
.detail-art { width: min(440px, 92%); }
.detail-art .product-art { max-height: 260px; }
.detail-art .product-photo {
  height: auto; aspect-ratio: 4 / 3; max-height: none; border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 24px 48px rgba(0, 0, 0, .38);
}
.detail-info { padding: 24px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); }
.detail-info > .tag { align-self: flex-start; }
.detail-info h2 { font-size: clamp(1.35rem, 2.2vw, 1.65rem); letter-spacing: -.02em; }
.detail-price {
  display: flex; align-items: baseline; gap: 10px; width: fit-content;
  font-family: var(--font-mono); font-size: 1.85rem; font-weight: 600;
  letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.detail-price .old-price { font-size: 13px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 12px; }
.detail-meta span { display: inline-flex; align-items: center; gap: 4px; }
.detail-section { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 4px; }
.detail-section h3 { font-family: var(--font-body); font-size: 13px; font-weight: 500; color: var(--muted-strong); }
.detail-section p { color: var(--muted); font-size: 13px; margin-top: 4px; line-height: 1.5; }
.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; margin: 8px 0 0; }
.spec-list > div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 6px; font-size: 13px; }
.spec-list dt { color: var(--muted); }
.spec-list dd { margin: 0; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.detail-times { grid-template-columns: 1fr; }
.detail-times > div { gap: 16px; }
.history-line {
  display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 10px 12px;
  background: var(--ok-soft); border-radius: 8px; font-weight: 500; font-size: 13px; color: var(--ok-ink);
  font-variant-numeric: tabular-nums;
}
.detail-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* boot + error + toast */
.boot, .error-view { min-height: 70dvh; display: grid; place-items: center; text-align: center; padding: 32px; }
.boot h1, .error-view h1 { font-size: 32px; margin: 14px 0 8px; letter-spacing: -.03em; }
.boot h1 .brand-wordmark-svg { height: 22px; width: auto; margin: 0 auto; }
.boot p, .error-view p { color: var(--muted); font-size: 14px; }
.boot .brand-mark { width: 84px; height: 44px; border-radius: 10px; font-size: 1rem; margin: 0 auto; }
.loader { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--brand); margin: 18px auto; animation: spin 1s linear infinite; }
.action-loader-overlay {
  position: fixed; inset: 0; z-index: 120;
  display: grid; place-items: center;
  background: rgba(8, 8, 12, .42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 150ms var(--ease), visibility 0s linear 150ms;
}
.action-loader-overlay[hidden] { display: grid; opacity: 0; visibility: hidden; pointer-events: none; }
.action-loader-overlay.visible {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity 150ms var(--ease), visibility 0s linear 0s;
}
.action-loader-overlay .loader { width: 36px; height: 36px; border-width: 2.5px; margin: 0; }
.action-loader-card {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 22px 28px; border-radius: 18px;
}
.action-loader-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; letter-spacing: -.01em;
  color: #ffffff; text-shadow: 0 2px 10px rgba(0, 0, 0, .45);
}
.action-loader-label[hidden], .action-loader-label:empty { display: none; }
.loader-dots { display: inline-flex; align-items: center; gap: 4px; margin-left: 2px; }
.loader-dots span {
  width: 5px; height: 5px; border-radius: 50%; background: var(--brand-bright);
  animation: dot-pulse 1s ease-in-out infinite;
}
.loader-dots span:nth-child(2) { animation-delay: .18s; }
.loader-dots span:nth-child(3) { animation-delay: .36s; }
@keyframes dot-pulse {
  0%, 80%, 100% { opacity: .28; transform: scale(.75); }
  40% { opacity: 1; transform: scale(1.15); }
}
.error-card { max-width: 440px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 32px; }
.error-card .brand-mark { margin: 0 auto 14px; }
.error-card .btn { margin-top: 16px; }
#toast {
  position: fixed; left: 0; right: 0; margin-inline: auto; width: fit-content;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px) + var(--tg-safe)); transform: translateY(12px);
  z-index: 100; max-width: min(520px, calc(100% - 32px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px))); padding: 11px 18px;
  border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 500;
  opacity: 0; pointer-events: none; transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease); text-align: center;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .22);
}
#toast.visible { opacity: 1; transform: translateY(0); }

/* 3-Panel WebGL Liquid Glass Bottom Dock (clayharmon/webgl-liquid-glass) */
.mobile-nav.wlg-nav {
  position: fixed;
  left: 0;
  right: 0;
  margin-inline: auto;
  bottom: max(18px, calc(12px + env(safe-area-inset-bottom, 0px) + var(--tg-safe)));
  transform: none;
  height: 56px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  width: min(420px, calc(100% - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  border-radius: 28px;
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  background: rgba(255, 255, 255, .36);
  box-shadow:
    0 8px 32px rgba(122, 0, 95, .14),
    inset 0 0 0 .5px rgba(248, 180, 255, .58);
  overflow: visible;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
  cursor: pointer;
}
:root[data-theme="dark"] .mobile-nav.wlg-nav {
  background: rgba(24, 12, 28, .44);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, .48),
    inset 0 0 0 .5px rgba(248, 180, 255, .26);
}
.wlg-pill {
  position: absolute;
  top: 6px;
  left: 0;
  height: 44px;
  border-radius: 22px;
  background: rgba(248, 180, 255, .30);
  box-shadow:
    inset 0 1px 1px rgba(248, 180, 255, .55),
    inset 0 -.5px 1px rgba(255, 107, 239, .24),
    0 4px 16px rgba(122, 0, 95, .12);
  pointer-events: none;
  will-change: transform, width;
  transform-origin: center center;
}
:root[data-theme="dark"] .wlg-pill {
  background: rgba(255, 0, 212, .20);
  box-shadow:
    inset 0 1px 1px rgba(248, 180, 255, .42),
    inset 0 -.5px 1px rgba(255, 45, 219, .22),
    0 4px 16px rgba(0, 0, 0, .28);
}
.wlg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  pointer-events: none;
}
.wlg-clip-svg {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}
.mobile-nav .dock-btn {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 22px;
  background: none;
  color: rgba(10, 10, 10, .54);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
:root[data-theme="dark"] .mobile-nav .dock-btn {
  color: rgba(248, 180, 255, .6);
}
.wlg-active-layer {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
}
.mobile-nav.wlg-nav.wlg-ready .wlg-active-layer {
  opacity: 1;
  clip-path: url(#wlg-pill-clip);
  -webkit-clip-path: url(#wlg-pill-clip);
}
.mobile-nav.wlg-nav:not(.wlg-ready) .dock-btn.active {
  color: #7a005f;
  font-weight: 600;
}
:root[data-theme="dark"] .mobile-nav.wlg-nav:not(.wlg-ready) .dock-btn.active {
  color: #ffffff;
}
.wlg-active-layer .wlg-active-item {
  color: #7a005f;
  font-weight: 600;
}
:root[data-theme="dark"] .wlg-active-layer .wlg-active-item {
  color: #ffffff;
}
.webgl-liquid-glass-tab:focus-visible {
  outline: none;
  border-radius: 22px;
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 0, 212, .88),
    0 0 12px rgba(255, 0, 212, .28);
}
:root[data-theme="dark"] .webgl-liquid-glass-tab:focus-visible {
  box-shadow:
    inset 0 0 0 1.5px rgba(248, 180, 255, .92),
    0 0 12px rgba(255, 107, 239, .34);
}
.dock-count {
  font-family: var(--font-mono);
  font-size: 12px;
  opacity: .72;
  font-variant-numeric: tabular-nums;
}

/* Fluid Responsive Breakpoints for All Devices */
@media (max-width: 980px) {
  .terminal-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .terminal-sidebar {
    position: static;
  }
  .terminal-sidebar .search-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .topbar { height: 56px; padding: 0 16px; }
  .top-status { display: none; }
  .hero {
    min-height: calc(100vh - 56px);
    min-height: calc(100dvh - 56px);
    padding: 24px var(--content-px) calc(84px + env(safe-area-inset-bottom, 0px) + var(--tg-safe));
    border-radius: 0;
  }
  .hero::before { filter: blur(24px); will-change: auto; }
  .hero::after { filter: blur(28px); will-change: auto; }
  .hero-copy::before { filter: blur(20px); will-change: auto; }
  .listing-badges .market-badge.has-logo, .heart-btn { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .quick-find { height: 54px; padding: 0 0 0 16px; border-radius: 9999px; }
  .quick-find input,
  .input-wrap input,
  .field input,
  .field select,
  .field textarea,
  .toolbar select,
  .settings-row select { font-size: 16px; }
  .hero-products .product-bar {
    justify-content: flex-start;
    flex-wrap: nowrap;
    width: 100%;
    padding-bottom: 4px;
  }
  .settings-panel { grid-template-columns: minmax(0, 1fr); }
  .settings-panel > .settings-section { grid-column: 1 / -1; }
  .settings-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .settings-row select { width: 100%; min-width: 0; }
  .two-col, .spec-list { grid-template-columns: 1fr; }
  dialog, #wizard, #detail { width: calc(100% - 16px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)); }
  dialog { border-radius: 18px; }
  .modal-head { padding: 16px 18px 12px; }
  .modal-body { padding: 14px 18px 16px; }
  .modal-footer { padding: 10px 14px calc(12px + var(--tg-safe)); }
}
@media (max-width: 540px) {
  .top-create span { display: none; }
  .top-create { padding: 8px 10px; min-height: 36px; }
}
@media (max-width: 480px) {
  body { font-size: 14px; }
  .quick-find .quick-submit-btn { padding: 0 16px; height: 46px; min-height: 46px; font-size: 14px; gap: 4px; }
  .terminal-sidebar, .terminal-main { padding: 0; }
  .terminal-stats { width: 100%; margin: 4px 0 0; }
  .modal-footer { flex-wrap: wrap; row-gap: 8px; }
  .modal-footer-actions { flex-wrap: wrap; justify-content: flex-end; max-width: 100%; }
  .modal-footer .btn { white-space: normal; text-align: center; }
  .mobile-nav.wlg-nav {
    width: min(420px, calc(100% - 20px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
    padding: 0 6px;
  }
  .wlg-active-layer { padding: 0 6px; }
  .mobile-nav .dock-btn { padding: 0 10px; font-size: 12px; gap: 5px; }
}
@media (max-width: 420px) {
  .topbar { padding: 0 12px; gap: 8px; }
  .brand { gap: 7px; }
  .brand-mark { width: 36px; height: 20px; }
  .brand-wordmark { height: 12px; }
  .top-actions { gap: 10px; }
  .topbar .icon-btn { width: 38px; height: 38px; min-width: 38px; min-height: 38px; }
  .topbar .avatar { width: 34px; height: 34px; }
}

/* interaction motion & selection guards */
:is(.btn, .icon-btn, .product-pill, .tabs button, .chip, .link-btn, .match-count,
  .heart-btn, .feedback button, .add-card, .avatar, .mobile-nav button,
  .source-choice, .check-line, .listing-title, .brand, .advanced summary, .wizard-drop-head,
  .search-pill-card, .listing-visual, .deal-pill, .section-switch button, .grid-switch button, .toggle-line, .switch input) {
  -webkit-tap-highlight-color: transparent;
}
:is(.btn, .icon-btn, .product-pill, .tabs button, .chip, .link-btn, .add-card, .feedback button,
  .match-count, .avatar, .search-card.search-pill-card, .listing-visual, .listing-title,
  .wizard-drop-head, .advanced summary, .source-choice, .check-line, .toggle-line, .deal-pill,
  .section-switch button, .grid-switch button, .brand, .market-badge, .heart-btn, .mobile-nav.wlg-nav) {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
:is(.btn, .icon-btn, .product-pill, .tabs button, .chip, .link-btn, .add-card, .feedback button,
  .match-count, .avatar, .search-card.search-pill-card, .listing-visual, .listing-title,
  .wizard-drop-head, .advanced summary, .source-choice, .check-line, .toggle-line, .deal-pill,
  .section-switch button, .grid-switch button, .brand, .market-badge, .heart-btn) {
  touch-action: manipulation;
}
.product-bar { touch-action: pan-x; }
.listing-visual img, .search-thumb img { -webkit-user-drag: none; pointer-events: none; }
input, textarea, select,
#detail .detail-info, #detail .detail-info h2, #detail .detail-price, #detail .detail-section {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}
.btn, .icon-btn, .product-pill, .tabs button, .grid-switch button, .chip, .link-btn, .match-count,
.heart-btn, .feedback button, .add-card, .avatar, .mobile-nav button,
.source-choice, .check-line, .listing-title, .brand-mark, .advanced summary, .wizard-drop-head {
  transition:
    background-color var(--dur-2) var(--ease),
    border-color var(--dur-2) var(--ease),
    color var(--dur-1) var(--ease),
    box-shadow var(--dur-2) var(--ease),
    transform var(--dur-1) var(--ease);
}
.search-card, .listing-card { transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease); }
.advanced summary .icon, .wizard-drop-head .icon { transition: transform var(--dur-2) var(--ease); }
.advanced[open] summary .icon { transform: rotate(90deg); }
.toggle-line { cursor: pointer; }
.switch { position: relative; display: inline-flex; width: 42px; height: 24px; flex: none; }
.switch input {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: pointer;
}
.switch-track {
  position: absolute; inset: 0; border-radius: 999px; pointer-events: none;
  background: var(--line-strong); transition: background-color var(--dur-2) var(--ease);
}
.switch-track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform var(--dur-2) var(--ease);
}
.switch input:checked + .switch-track { background: var(--brand-bright); }
.switch input:checked + .switch-track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--brand-bright); outline-offset: 3px; }

@media (hover: hover) {
  .btn.primary:hover:not(:disabled) { background: var(--brand-deep); }
  .quick-find .quick-submit-btn:hover:not(:disabled) { background: #f8b4ff; border-color: #f8b4ff; color: #000000; }
  .btn.secondary:hover:not(:disabled) { background: var(--surface); border-color: var(--line-strong); }
  .btn.danger:hover:not(:disabled) { background: var(--danger-ink); color: #fff; }
  .btn.danger-outline:hover:not(:disabled) { background: var(--danger-soft); }
  .icon-btn:hover { background: var(--surface); color: var(--ink); }
  .icon-btn.danger:hover { background: var(--danger-soft); color: var(--danger-ink); }
  .detail-top .icon-btn:hover { background: rgba(255, 255, 255, .18); color: #fff; border-color: rgba(255, 255, 255, .26); }
  .product-pill:hover { border-color: var(--line-strong); color: var(--ink); }
  .product-pill.active:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: var(--brand-fg); }
  :root[data-theme="dark"] .hero-products .product-pill.active:hover {
    background: rgba(255, 0, 212, .38);
    border-color: rgba(255, 107, 239, .68);
    color: #ffffff;
  }
  .tabs button:hover:not(.selected) { background: var(--surface-2); color: var(--ink); }
  .grid-switch button:hover:not(.active) { background: var(--surface-2); color: var(--ink); }
  .chip:hover { border-color: var(--line-strong); color: var(--ink); background: var(--surface-2); }
  .chip.selected:hover { background: var(--brand); border-color: var(--brand); color: var(--brand-fg); }
  .link-btn:hover:not(:disabled) { color: var(--brand-text); }
  .match-count:hover { opacity: .8; }
  .listing-title:hover h3 { color: var(--brand-text); }
  .heart-btn:hover { color: var(--ink); border-color: var(--line-strong); }
  .heart-btn.saved:hover { opacity: .9; }
  .feedback button:hover:not(.selected) { border-color: var(--line-strong); color: var(--ink); background: var(--surface-2); }
  .add-card:hover { border-style: solid; border-color: var(--brand-bright); color: var(--brand-text); }
  .quick-find:focus-within { box-shadow: 0 24px 56px rgba(196, 0, 166, .14), 0 0 0 3px rgba(255, 0, 212, .22); }
  .avatar:hover { border-color: var(--line-strong); }
  .mobile-nav .dock-btn:hover:not(.active) { color: var(--ink); }
  .source-choice:not(.muted):hover { border-color: var(--line-strong); }
  .check-line:hover { border-color: var(--line-strong); background: var(--surface); }
  .advanced summary:hover, .wizard-drop-head:hover { color: var(--brand-text); }
  .search-card:hover, .listing-card:hover { border-color: var(--line-strong); }
  .search-card.search-pill-card:hover { border-color: rgba(245, 53, 226, 0.35); }
}
.btn:active:not(:disabled), .icon-btn:active, .product-pill:active,
.tabs button:active, .grid-switch button:active, .chip:active, .link-btn:active, .match-count:active, .heart-btn:active,
.feedback button:active, .add-card:active, .avatar:active,
.listing-title:active {
  transform: scale(.98);
}

dialog[open] { animation: dialog-in var(--dur-3) var(--ease); }
@keyframes dialog-in { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero::before, .hero::after, .hero-copy::before, .loader, .tour-card, dialog[open] { animation: none !important; }
  .btn:active, .icon-btn:active, .product-pill:active, .tabs button:active, .grid-switch button:active,
  .chip:active, .link-btn:active, .match-count:active, .heart-btn:active, .feedback button:active,
  .add-card:active, .avatar:active, .mobile-nav button:active,
  .listing-title:active {
    transform: none !important;
  }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- market deal pill & price distribution chart ---------- */
.listing-visual { cursor: pointer; }
.listing-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
}
.listing-head .listing-title { flex: 1; min-width: 0; }
.deal-pill {
  flex-shrink: 0; margin-left: auto;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 6px;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 700;
  font-variant-numeric: tabular-nums; line-height: 1.25; white-space: nowrap;
  background: var(--ok-soft); color: var(--ok-ink);
  border: 1px solid rgba(5, 150, 105, .28);
  cursor: pointer;
}
.deal-pill-pct { font-weight: 700; }
.deal-pill-sub {
  font-size: .68rem; font-weight: 500; opacity: .88;
  padding-left: 4px; border-left: 1px solid currentColor;
}
.deal-pill.neutral {
  background: var(--surface); color: var(--muted-strong);
  border-color: var(--line-strong);
}
.deal-pill.above {
  background: var(--warn-soft); color: var(--warn-ink);
  border-color: rgba(217, 119, 6, .28);
}
.market-chart {
  display: grid; gap: 12px;
  padding: 14px; border-radius: var(--radius-control);
  background: var(--surface); border: 1px solid var(--line);
}
.market-verdict {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  padding: 9px 12px; border-radius: 8px;
  font-size: .82rem; line-height: 1.35;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink);
}
.market-verdict.below {
  background: var(--ok-soft); border-color: rgba(5, 150, 105, .28); color: var(--ok-ink);
}
.market-verdict.above {
  background: var(--warn-soft); border-color: rgba(217, 119, 6, .28); color: var(--warn-ink);
}
.market-verdict strong { font-weight: 600; }
.market-verdict span {
  font-family: var(--font-mono); font-size: .72rem; font-variant-numeric: tabular-nums; opacity: .88;
}
.market-metrics {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
}
.market-metric {
  display: grid; gap: 2px;
  padding: 8px 10px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--line);
}
.market-metric.is-saving {
  background: var(--ok-soft); border-color: rgba(5, 150, 105, .24);
}
.market-metric.is-above {
  background: var(--warn-soft); border-color: rgba(217, 119, 6, .24);
}
.market-metric-label {
  font-size: .72rem; font-weight: 500; color: var(--muted);
}
.market-metric strong {
  font-family: var(--font-mono); font-size: .84rem; font-weight: 700;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.market-metric.is-saving strong { color: var(--ok-ink); }
.market-metric.is-above strong { color: var(--warn-ink); }
.market-line-box {
  display: grid; gap: 6px;
  padding: 10px 12px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--line);
}
.market-callouts {
  position: relative; height: 20px;
}
.market-callout {
  position: absolute; top: 0; transform: translateX(-50%);
  padding: 1px 6px; border-radius: 4px;
  font-family: var(--font-mono); font-size: .68rem; font-weight: 600;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.market-callout.median {
  background: var(--surface); color: var(--muted-strong); border: 1px solid var(--line-strong);
  z-index: 1;
}
.market-callout.current {
  background: var(--ok-soft); color: var(--ok-ink); border: 1px solid rgba(5, 150, 105, .3);
  z-index: 2;
}
.market-callout.current.above {
  background: var(--warn-soft); color: var(--warn-ink); border-color: rgba(217, 119, 6, .3);
}
.market-track {
  position: relative; height: 28px;
  display: flex; align-items: center;
  margin: 2px 0;
}
.market-track-rail {
  position: absolute; left: 4%; right: 4%; height: 6px;
  border-radius: 999px; background: var(--line-strong);
}
.market-zone-below {
  position: absolute; height: 6px;
  border-radius: 999px 0 0 999px;
  background: var(--ok-ink); opacity: .28;
}
.market-dot {
  position: absolute; top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}
.market-dot.peer {
  width: 8px; height: 8px;
  background: var(--muted-strong); opacity: .55;
  border: 1px solid var(--surface-2);
}
.market-median-line {
  position: absolute; top: 2px; bottom: 2px; width: 2px;
  transform: translateX(-50%);
  background: var(--ink); border-radius: 2px; opacity: .85; z-index: 2;
}
.market-dot.current {
  width: 14px; height: 14px; z-index: 3;
  background: var(--ok-ink);
  border: 2px solid var(--surface-2);
  box-shadow: 0 0 0 2px var(--ok-ink);
}
.market-dot.current.above {
  background: var(--warn-ink);
  box-shadow: 0 0 0 2px var(--warn-ink);
}
.market-scale {
  display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: .72rem; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.market-legend {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: .74rem; color: var(--muted);
}
.market-legend-item {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
}
.legend-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
}
.legend-dot.current { background: var(--ok-ink); }
.legend-dot.current.above { background: var(--warn-ink); }
.legend-dot.peer { background: var(--muted-strong); opacity: .65; }
.legend-line {
  display: inline-block; width: 2px; height: 10px; border-radius: 1px; background: var(--ink);
}
@media (max-width: 460px) {
  .market-metrics { grid-template-columns: 1fr; }
}

/* ---------- interactive 3-step spotlight onboarding tour ---------- */
#tour:empty { display: none; }
.tour-overlay {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  padding:
    max(16px, env(safe-area-inset-top, 0px))
    max(16px, env(safe-area-inset-right, 0px))
    max(16px, calc(16px + env(safe-area-inset-bottom, 0px) + var(--tg-safe)))
    max(16px, env(safe-area-inset-left, 0px));
  pointer-events: auto;
}
.tour-spotlight {
  position: fixed; inset: 0; pointer-events: none;
  background: rgba(10, 0, 12, .56);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition:
    top var(--dur-3) var(--ease),
    left var(--dur-3) var(--ease),
    width var(--dur-3) var(--ease),
    height var(--dur-3) var(--ease);
}
.tour-spotlight.has-target {
  inset: auto;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 14px;
  border: 2px solid var(--brand-bright);
  box-shadow:
    0 0 0 9999px rgba(10, 0, 12, .62),
    0 0 24px rgba(255, 0, 212, .45);
}
.tour-card {
  position: relative; z-index: 2;
  width: min(380px, 100%);
  max-width: 100%;
  margin: 0 auto;
  max-height: calc(var(--tg-vh, 100dvh) - 32px);
  overflow-y: auto;
  padding: 20px 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  color: var(--ink);
  border: 1px solid rgba(196, 0, 166, .24);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35), inset 0 1px 0 #ffffff;
  display: flex; flex-direction: column; gap: 10px;
  animation: dialog-in var(--dur-3) var(--ease);
}
:root[data-theme="dark"] .tour-card {
  background: rgba(23, 12, 27, .94);
  border-color: rgba(248, 180, 255, .26);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(248, 180, 255, .18);
}
.tour-card.tour-below { margin-top: 96px; }
.tour-card.tour-above { margin-bottom: 96px; }
.tour-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.tour-step-badge {
  display: inline-flex; align-items: center; padding: 3px 10px;
  border-radius: 999px; font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  background: var(--brand-soft); color: var(--brand-text);
}
.tour-card h3 { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.tour-card p { color: var(--muted-strong); font-size: 14px; line-height: 1.5; }
.tour-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line);
}
.tour-dots { display: inline-flex; align-items: center; gap: 6px; }
.tour-dot {
  width: 7px; height: 7px; border-radius: 999px; background: var(--line-strong);
  transition: width var(--dur-2) var(--ease), background-color var(--dur-2) var(--ease);
}
.tour-dot.active { width: 20px; background: var(--brand-bright); }

/* ---------- Pro (Flipper) mode, Deals & Price timeline ---------- */
.pro-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 36px; min-width: 82px; padding: 0 15px; border-radius: 10px; flex: none;
  border: 1px solid rgba(255, 255, 255, .18);
  background: linear-gradient(180deg, #171720 0%, #0b0b10 100%);
  color: #ffffff; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .10);
  transition: background var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease), color var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease), transform var(--dur-1) var(--ease);
}
.pro-wordmark-svg { height: 12px; width: auto; display: block; transition: filter var(--dur-2) var(--ease), color var(--dur-2) var(--ease); }
.pro-toggle.active {
  background: linear-gradient(180deg, #1f0a26 0%, #0d0512 100%);
  border-color: #FF2DDB;
  color: #FF6BEF;
  box-shadow: 0 0 0 1px rgba(255, 45, 219, .45), 0 0 18px rgba(255, 0, 212, .50), inset 0 0 14px rgba(255, 0, 212, .26);
}
.pro-toggle.active .pro-wordmark-svg {
  filter: drop-shadow(0 0 6px rgba(255, 45, 219, .85));
}
.pro-toggle:active { transform: scale(.97); }
.signal-badge {
  width: 24px; height: 24px; border-radius: 7px; flex: none;
  display: inline-grid; place-items: center;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(15, 23, 42, .12);
}
:root[data-theme="dark"] .signal-badge { background: rgba(15, 20, 32, .86); }
.signal-badge::after {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
}
.signal-badge.green::after { background: #10b981; box-shadow: 0 0 8px rgba(16, 185, 129, .55); }
.signal-badge.amber::after { background: #f59e0b; box-shadow: 0 0 6px rgba(245, 158, 11, .45); }
.signal-badge.red::after { background: #ef4444; box-shadow: 0 0 6px rgba(239, 68, 68, .45); }
.sold-badge {
  display: inline-flex; align-items: center; padding: 3px 7px; border-radius: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
  background: rgba(220, 38, 38, .92); color: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .18);
}
.listing-card.is-sold { opacity: .72; }
.listing-card.is-sold .product-photo { filter: grayscale(.65); }
.listing-card.is-sold .listing-title h3 { text-decoration: line-through; color: var(--muted); }
.pro-strip, .deals-scope {
  display: flex; align-items: center; gap: 6px;
  flex-wrap: nowrap; overflow-x: auto; max-width: 100%;
  margin: -6px 0 14px; padding: 2px 0;
  scrollbar-width: none; touch-action: pan-x;
}
.pro-strip::-webkit-scrollbar, .deals-scope::-webkit-scrollbar { display: none; }
.pro-strip .chip, .deals-scope .chip { flex: none; white-space: nowrap; }
.deals-scope { margin: 0 0 12px; }
.section-switch { max-width: 100%; }
.price-timeline {
  display: flex; flex-direction: column; gap: 6px;
  padding: 10px 12px; border-radius: var(--radius-control);
  background: var(--surface); border: 1px solid var(--line);
}
.price-timeline-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 13px; padding: 4px 0;
  border-bottom: 1px solid var(--line);
}
.price-timeline-row:last-child { border-bottom: 0; padding-bottom: 0; }
.price-timeline-date { color: var(--muted); font-size: 12px; }
.price-timeline-row strong {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  margin-left: auto;
}
.price-delta {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  font-variant-numeric: tabular-nums; min-width: 58px; text-align: right;
}
.price-delta.down { color: var(--ok-ink); }
.price-delta.up { color: var(--warn-ink); }
.price-delta.initial { color: var(--muted); font-weight: 400; font-family: inherit; font-size: 11px; }
.pro-price-chart {
  display: flex; flex-direction: column; gap: 4px;
  width: 100%; padding: 7px 9px 6px; margin-top: 2px;
  border-radius: var(--radius-control);
  background: var(--surface); border: 1px solid var(--line);
  color: var(--brand); text-align: left; cursor: pointer;
  transition: border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.pro-price-chart:hover { border-color: var(--line-strong); }
.pro-price-chart.down { color: var(--ok-ink); }
.pro-price-chart.up { color: var(--warn-ink); }
.pro-price-chart.flat { color: var(--brand); }
.pro-price-chart-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.pro-price-range { color: var(--muted-strong); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pro-price-delta { font-family: var(--font-mono); font-size: 11px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pro-price-delta.down { color: var(--ok-ink); }
.pro-price-delta.up { color: var(--warn-ink); }
.pro-price-delta.flat { color: var(--muted); }
.pro-price-chart-plot { width: 100%; height: 34px; display: block; }
.price-chart-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.price-chart-line { stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.price-chart-guide { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.price-chart-dot { fill: var(--surface-2); stroke: currentColor; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.price-chart-dot.down { stroke: var(--ok-ink); }
.price-chart-dot.up { stroke: var(--warn-ink); }
.price-chart-dot.current { fill: currentColor; stroke: var(--surface-2); stroke-width: 1.5; }
.price-chart-detail {
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px; margin-bottom: 10px;
  border-radius: var(--radius-control);
  background: var(--surface); border: 1px solid var(--line);
  color: var(--brand);
}
.price-chart-detail.down { color: var(--ok-ink); }
.price-chart-detail.up { color: var(--warn-ink); }
.price-chart-detail-head {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.price-chart-detail-range {
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.price-chart-detail-meta { display: inline-flex; align-items: baseline; gap: 8px; }
.price-chart-changes { font-size: 11px; color: var(--muted); }
.price-chart-detail-body { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: stretch; }
.price-chart-yaxis {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 4px 0 20px; text-align: right;
  font-family: var(--font-mono); font-size: 10.5px; color: var(--muted);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.price-chart-detail-plot { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.price-chart-detail-plot .price-chart-svg { height: 112px; }
.price-chart-xaxis {
  display: flex; justify-content: space-between; gap: 8px;
  font-size: 11px; color: var(--muted);
}
.detail-section h3 .muted { color: var(--muted); font-weight: 400; }
@media (max-width: 420px) {
  .pro-toggle { min-height: 36px; min-width: 72px; padding: 0 12px; }
  .pro-wordmark-svg { height: 11px; }
  .section-switch button { padding: 6px 10px; font-size: 12px; gap: 4px; }
}

/* ---------- selectable 1/2/3-column listing grid ---------- */
@media (min-width: 640px) {
  .listing-grid.cols-1 .listing-card { flex-direction: row; }
  .listing-grid.cols-1 .listing-visual {
    width: clamp(220px, 30%, 320px); flex: none; aspect-ratio: 16/10;
  }
}
@media (max-width: 900px) {
  .listing-grid.cols-3 .listing-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .listing-grid.cols-3 .deal-pill { margin-left: 0; max-width: 100%; overflow: hidden; }
}
@media (max-width: 640px) {
  .listing-grid.cols-2 { gap: 10px; }
  .listing-grid.cols-2 .listing-body { padding: 10px 10px 12px; gap: 4px; }
  .listing-grid.cols-2 .listing-badges { top: 8px; left: 8px; gap: 4px; }
  .listing-grid.cols-2 .listing-badges .market-badge.has-logo { width: 22px; height: 22px; }
  .listing-grid.cols-2 .heart-btn {
    top: 8px; right: 8px; width: 34px; height: 34px; min-width: 34px; min-height: 34px;
  }
  .listing-grid.cols-2 .listing-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .listing-grid.cols-2 .deal-pill { margin-left: 0; font-size: .66rem; padding: 2px 6px; max-width: 100%; overflow: hidden; }
  .listing-grid.cols-2 .listing-title h3 { font-size: 13px; line-height: 1.3; }
  .listing-grid.cols-2 .listing-sub { font-size: 11px; }
  .listing-grid.cols-2 .spec-row span { font-size: 10.5px; padding: 1px 5px; }
  .listing-grid.cols-2 .listing-bottom { flex-wrap: wrap; gap: 4px; }
  .listing-grid.cols-2 .listing-price { font-size: 15px; }
  .listing-grid.cols-2 .deal-tag, .listing-grid.cols-2 .quiet-tag { font-size: 11px; text-align: left; }
  .listing-grid.cols-2 .pro-price-chart { padding: 5px 7px 4px; gap: 3px; }
  .listing-grid.cols-2 .pro-price-chart-head { font-size: 10px; }
  .listing-grid.cols-2 .pro-price-delta { font-size: 10px; }
  .listing-grid.cols-2 .pro-price-chart-plot { height: 28px; }

  .listing-grid.cols-3 { gap: 8px; }
  .listing-grid.cols-3 .listing-visual { aspect-ratio: 4/3; }
  .listing-grid.cols-3 .listing-badges { top: 5px; left: 5px; gap: 3px; }
  .listing-grid.cols-3 .listing-badges .market-badge.has-logo { width: 20px; height: 20px; border-radius: 5px; }
  .listing-grid.cols-3 .signal-badge { width: 18px; height: 18px; border-radius: 5px; }
  .listing-grid.cols-3 .sold-badge { font-size: 9px; padding: 2px 4px; border-radius: 4px; }
  .listing-grid.cols-3 .heart-btn {
    top: 5px; right: 5px; width: 28px; height: 28px; min-width: 28px; min-height: 28px; border-radius: 6px;
  }
  .listing-grid.cols-3 .heart-btn .icon { width: 14px; height: 14px; }
  .listing-grid.cols-3 .listing-body { padding: 7px 7px 8px; gap: 3px; }
  .listing-grid.cols-3 .listing-head { flex-direction: column; align-items: flex-start; gap: 3px; }
  .listing-grid.cols-3 .listing-title h3 { font-size: 11.5px; line-height: 1.25; }
  .listing-grid.cols-3 .deal-pill { margin-left: 0; font-size: .62rem; padding: 1px 4px; max-width: 100%; overflow: hidden; }
  .listing-grid.cols-3 .deal-pill-sub { display: none; }
  .listing-grid.cols-3 .listing-sub { font-size: 10px; }
  .listing-grid.cols-3 .listing-sub .icon { width: 11px; height: 11px; }
  .listing-grid.cols-3 .spec-row { display: none; }
  .listing-grid.cols-3 .listing-bottom { flex-direction: column; align-items: flex-start; gap: 2px; padding-top: 3px; }
  .listing-grid.cols-3 .listing-price { font-size: 13px; }
  .listing-grid.cols-3 .deal-tag, .listing-grid.cols-3 .quiet-tag {
    font-size: 10px; text-align: left; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .listing-grid.cols-3 .pro-price-chart { padding: 4px 5px; gap: 0; }
  .listing-grid.cols-3 .pro-price-chart-head { display: none; }
  .listing-grid.cols-3 .pro-price-chart-plot { height: 22px; }
}
@media (max-width: 420px) {
  .listing-grid.cols-3 { gap: 6px; }
}
