:root {
  --bg: #f2f8ff;
  --text: #0a2450;
  --muted: #4b5f7d;
  --primary: #001f5a;
  --secondary: #1f7ed0;
  --accent: #f5a100;
  --success-accent: #67b637;
  --card: #ffffff;
  --line: #d4e4f4;
  --ok: #2f9c45;
  --error: #a63131;
}

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 96px;
  overflow-x: clip;
}
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
}
img {
  max-width: 100%;
  height: auto;
}
[type="button"],
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: rgba(31, 126, 208, .18);
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid #2b79c6;
  outline-offset: 2px;
}
[data-lang-content] { display: none; }
html[lang="nl"] [data-lang-content="nl"] { display: block; }
html[lang="en"] [data-lang-content="en"] { display: block; }
html[lang="fr"] [data-lang-content="fr"] { display: block; }
html[lang="es"] [data-lang-content="es"] { display: block; }

.container { width: min(1120px, 92%); margin: 0 auto; }

.topbar {
  background: #ffffff;
  color: var(--text);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid #d7e7f7;
  box-shadow: 0 8px 24px rgba(9, 35, 76, .08);
}
.topbar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 58%, var(--accent) 100%);
}

.nav-wrap {
  min-height: 94px;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
/* Logo ca. 4:1 na trim; transparante randen, hoogte primair */
.brand img {
  display: block;
  height: clamp(54px, 7.8vw, 80px);
  width: auto;
  max-width: min(560px, 82vw);
  object-fit: contain;
  object-position: left center;
}
.nav {
  display: flex;
  gap: 4px;
  padding: 3px;
  background: #f8fbff;
  border: 1px solid #d8e6f6;
  border-radius: 999px;
}
.mobile-menu {
  display: none;
}
.mobile-menu summary {
  list-style: none;
}
.mobile-menu summary::-webkit-details-marker {
  display: none;
}
.mobile-menu-panel {
  display: grid;
  gap: 10px;
}
.mobile-menu-nav {
  display: grid;
  gap: 6px;
}
.mobile-menu-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #d8e6f6;
  background: #f8fbff;
  color: #2e507d;
  text-decoration: none;
  font-size: .84rem;
  font-weight: 600;
}
.mobile-menu-nav a.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #265b9f, #1f7ed0);
}
.mobile-menu-nav a .header-icon {
  width: 13px;
  height: 13px;
}
.mobile-menu-nav a .header-icon svg {
  width: 13px;
  height: 13px;
}
.mobile-lang-switch {
  justify-content: flex-start;
}
.nav a {
  color: #2e507d;
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  padding: 0 10px;
  height: 34px;
  line-height: 1;
  border-radius: 999px;
  transition: background .16s ease, color .16s ease;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
}
.nav a.active {
  color: #fff;
  background: linear-gradient(135deg, #265b9f, #1f7ed0);
}
.nav a:hover {
  color: var(--primary);
  background: #ffffff;
}
.user-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  padding-left: 10px;
  margin-left: 2px;
  border-left: 1px solid rgba(17, 72, 140, .12);
  min-width: 250px;
  margin-left: auto;
}
.user-actions-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.user-identity {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}
.user-pill {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  background: #eef5ff;
  border: 1px solid #d1e2f5;
  color: #204b7f;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ai-active-indicator {
  display: none;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid #b7e4bf;
  background: #effcf1;
  color: #1f8a3a;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.ai-active-indicator::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #65b874;
}
.ai-active-indicator.is-busy {
  display: inline-flex;
  animation: aiActiveBlink 1.9s ease-in-out infinite;
}
.ai-active-indicator.is-busy::before {
  background: #2cb04a;
}
@keyframes aiActiveBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}
.user-nav {
  display: flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid #d8e6f6;
  border-radius: 999px;
  background: #f8fbff;
}
.user-nav a {
  color: #2e507d;
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  padding: 0 10px;
  height: 34px;
  line-height: 1;
  border-radius: 999px;
  transition: background .16s ease, color .16s ease;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  position: relative;
}
.messages-badge {
  position: absolute;
  top: -6px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #d83434;
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
}
.messages-badge.is-hidden {
  display: none;
}
.nav .nav-label { display: inline; }
.user-nav .user-label { display: none; }
.user-nav a.active {
  color: #fff;
  background: linear-gradient(135deg, #265b9f, #1f7ed0);
}
.user-nav a:hover {
  color: var(--primary);
  background: #ffffff;
}
.lang-switch { display: flex; gap: 6px; }
.lang {
  border: 1px solid #c9dbef; border-radius: 999px; background: #fff;
  color: #355983; padding: 0 10px; height: 34px; cursor: pointer; font-weight: 600; font-size: .82rem;
}
.lang.active { background: #eaf4ff; color: var(--primary); border-color: #b7d4f3; }
.header-icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
}
.header-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

@media (max-width: 1280px) {
  .nav-wrap {
    flex-wrap: wrap;
    align-items: center;
    min-height: auto;
  }
  .user-pill { display: none; }
  .user-nav .user-label { display: none; }
  .user-nav a { padding: 0 9px; height: 34px; }
  .nav a { padding: 0 9px; height: 34px; }
}

@media (max-width: 1200px) {
  .nav .nav-label { display: none; }
  .nav a { padding: 0 9px; height: 34px; }
}

.hero { padding: 44px 0 14px; }
.launch-hero {
  padding: 62px 0 56px;
}
.launch-hero.minimal {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px 0;
}
/* Geen .hero::before-glow op coming soon: die viel visueel samen met de EN-tagline */
.launch-hero.minimal::before {
  content: none;
  display: none;
}
.launch-minimal-wrap {
  text-align: center;
  max-width: 760px;
}
.launch-minimal-wrap .contact-form {
  text-align: left;
}
.launch-logo {
  display: block;
  width: min(640px, 94vw);
  height: auto;
  margin: 0 auto 20px;
  object-fit: contain;
}
.launch-line {
  margin: 0;
  font-size: clamp(1.2rem, 2.3vw, 1.9rem);
  line-height: 1.25;
  font-weight: 700;
  color: var(--primary);
}
.launch-line.en {
  margin-top: 8px;
  color: #1f5b98;
}
.launch-date {
  margin-top: 14px;
  font-size: .9rem;
  color: #5d7390;
}
.launch-feedback {
  margin-top: 8px;
  margin-bottom: 0;
  font-size: .92rem;
}
.launch-form {
  margin: 14px auto 0;
  max-width: 500px;
  background: rgba(255,255,255,.9);
}
.launch-form h3 {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 1rem;
}
.dev-admin-link {
  margin-top: 10px;
  display: inline-block;
  font-size: .76rem;
  color: #8a9db8;
  text-decoration: none;
  border-bottom: 1px dotted #c4cfdd;
}
.dev-admin-link:hover {
  color: #355983;
}
.is-hidden {
  display: none !important;
}
.countdown {
  margin: 12px auto 2px;
  display: grid;
  grid-template-columns: repeat(4, minmax(58px, 82px));
  gap: 8px;
  justify-content: center;
}
.countdown div {
  background: rgba(255, 255, 255, .86);
  border: 1px solid #d7e7f7;
  border-radius: 10px;
  padding: 8px 6px;
}
.countdown strong {
  display: block;
  font-size: 1.08rem;
  line-height: 1.1;
  color: var(--primary);
}
.countdown span {
  font-size: .72rem;
  color: #5e7392;
}
.hero {
  position: relative;
}
.hero::before {
  content: none;
  display: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 26px; align-items: center; }
.hero-grid.single { grid-template-columns: 1fr; gap: 20px; }
.pill {
  background: #eaf4ff; color: #0c3f86; border: 1px solid #bcdcff;
  border-radius: 999px; padding: 8px 12px; display: inline-block; font-weight: 600; font-size: .85rem;
}
h1 { font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.05; margin: 12px 0; letter-spacing: -0.02em; }
p { color: var(--muted); line-height: 1.6; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.hero-trust span {
  font-size: .78rem;
  font-weight: 700;
  color: #1d4f88;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #cce0f5;
  background: #f3f9ff;
}

.hero-actions { margin: 18px 0 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  border: 0; border-radius: 999px; padding: 0 12px; font-weight: 600;
  height: 32px; line-height: 1; font-size: .78rem;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(14, 40, 84, .15); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; }
.btn-secondary { background: #fff; color: var(--primary); border: 1px solid var(--line); }
.btn.is-disabled {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none !important;
}

.search-box { display: flex; gap: 8px; background: #fff; border: 1px solid var(--line); padding: 8px; border-radius: 12px; max-width: 760px; }
.search-box:focus-within {
  border-color: #9ec7ec;
  box-shadow: 0 0 0 4px rgba(31, 126, 208, .1);
}
.search-box input {
  flex: 1; border: 0; outline: none; padding: 10px 12px; font-size: 1rem;
}
.search-box button { border: 0; border-radius: 10px; padding: 10px 14px; background: var(--accent); color: #0a2450; font-weight: 700; cursor: pointer; }

.hero-card, .status-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px;
  box-shadow: 0 12px 26px rgba(23, 41, 74, .08);
}
.hero-card img { width: 100%; border-radius: 12px; display: block; }
.stats-card { padding: 18px; }
.stats-card h3 { margin: 0 0 12px; font-size: 1.05rem; }
.launch-hero .stats strong { font-size: 1.05rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stats div {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f9ff 100%);
}
.stats strong { display: block; font-size: 1.25rem; color: #0b2a5a; }
.stats div:nth-child(2) strong { color: #0f5ca8; }
.stats div:nth-child(3) strong { color: #4a9a2a; }
.stats span { display: block; margin-top: 4px; color: #56637a; font-size: .88rem; }
.section-link { margin-top: 16px; }
.btn.inline { margin-top: 10px; }
.inline-translate-form { display: inline-flex; }
.listing-mobile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.listing-detail-layout {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
}
.listing-detail-main {
  flex: 0 0 66.666%;
  max-width: 66.666%;
}
.ai-assist-panel {
  margin: 0;
  border: 1px solid #d7e4f3;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(16, 47, 88, .06);
  padding: 12px;
  display: flex;
  flex-direction: column;
}
.ai-assist-side {
  flex: 0 0 33.333% !important;
  max-width: 33.333% !important;
  position: sticky;
  top: 104px;
  height: calc(100vh - 116px);
  min-height: 520px;
}
.ai-assist-side.is-collapsed {
  display: none !important;
}
.ai-launch-wrap {
  margin: 8px 0 10px;
}
.ai-launch-btn {
  gap: 6px;
  padding: 0 14px;
  border-color: #ccdcf0 !important;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%) !important;
}
.ai-launch-btn::before {
  content: "AI";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #eaf3ff;
  border: 1px solid #cfe0f4;
  color: #1f4f88;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.ai-chat-head {
  margin-bottom: 8px;
}
.ai-assist-side h3 {
  margin: 0 0 6px;
  font-size: .96rem;
  color: #143e74;
}
.ai-assist-side .small {
  margin: 0;
  font-size: .77rem;
  line-height: 1.45;
  color: #5b7190;
}
.ai-chat-status {
  margin: 0 0 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #dce9f7;
  background: #f7fbff;
  color: #537195;
  font-size: .68rem;
  font-weight: 700;
}
.ai-chat-status::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  margin-right: 7px;
  background: #4fb26f;
  vertical-align: middle;
}
.ai-chat-status.is-connecting::before {
  background: #f0b85f;
  animation: aiPulse 1.2s ease-in-out infinite;
}
@keyframes aiPulse {
  0% { opacity: .45; transform: scale(.92); }
  50% { opacity: 1; transform: scale(1); }
  100% { opacity: .45; transform: scale(.92); }
}
.ai-summary-trigger {
  margin-top: 8px;
  width: 100%;
  justify-content: center;
  font-size: .73rem;
}
.ai-summary-box {
  margin-top: 0;
  border: 1px solid #d8e4f2;
  border-radius: 11px;
  background: #f8fbff;
  padding: 10px 11px;
  white-space: pre-wrap;
  color: #2d4a6f;
  font-size: .78rem;
  line-height: 1.45;
}
.ai-chat-thread {
  margin-top: 10px;
  max-height: none;
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  padding: 2px 2px 2px 0;
}
.ai-chat-message {
  font-size: .78rem;
  max-width: 92%;
  display: grid;
  gap: 3px;
}
.ai-chat-message.ai {
  align-self: flex-start;
}
.ai-chat-message.user {
  align-self: flex-end;
}
.ai-chat-message.seller {
  align-self: flex-start;
}
.ai-chat-message.system {
  align-self: flex-start;
  max-width: 92%;
}
.ai-chat-bubble {
  border-radius: 12px;
  padding: 9px 11px;
  line-height: 1.42;
  white-space: pre-wrap;
  position: relative;
}
.ai-chat-quote {
  margin: 0 0 6px;
  padding: 5px 7px;
  border-radius: 7px;
  border-left: 3px solid #b3c8df;
  background: rgba(255, 255, 255, .55);
  font-size: .68rem;
  color: #486583;
}
.ai-chat-message.ai .ai-chat-bubble {
  background: #f7faff;
  border: 1px solid #d9e5f4;
  color: #2f4c71;
}
.ai-chat-message.user .ai-chat-bubble {
  background: #e8f1ff;
  border: 1px solid #c9dbf5;
  color: #1f4f82;
}
.ai-chat-message.user.user-to-assistant .ai-chat-bubble {
  background: #e8f1ff;
  border: 1px solid #c9dbf5;
  color: #1f4f82;
}
.ai-chat-message.user.user-to-seller .ai-chat-bubble {
  background: #fff3de;
  border: 1px solid #f0d29d;
  color: #6f531e;
}
.ai-chat-message.seller .ai-chat-bubble {
  background: #fff5df;
  border: 1px solid #f0ddb2;
  color: #6f531e;
}
.ai-chat-message.system .ai-chat-bubble,
.ai-chat-bubble.is-system {
  background: #f4f7fb;
  border: 1px solid #d9e3ef;
  color: #456180;
}
.ai-chat-message.ai .ai-chat-bubble::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 12px;
  width: 9px;
  height: 9px;
  background: #f7faff;
  border-left: 1px solid #d9e5f4;
  border-bottom: 1px solid #d9e5f4;
  transform: rotate(45deg);
  z-index: 0;
}
.ai-chat-message.user .ai-chat-bubble::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 12px;
  width: 10px;
  height: 10px;
  background: #e8f1ff;
  border-right: 1px solid #c9dbf5;
  border-top: 1px solid #c9dbf5;
  transform: rotate(45deg);
}
.ai-chat-message.user.user-to-seller .ai-chat-bubble::after {
  background: #fff3de;
  border-right: 1px solid #f0d29d;
  border-top: 1px solid #f0d29d;
  transform: rotate(45deg);
}
.ai-chat-message.seller .ai-chat-bubble::before,
.ai-chat-message.system .ai-chat-bubble::before,
.ai-chat-message.system .ai-chat-bubble::after {
  display: none;
}
.ai-chat-meta {
  font-size: .59rem;
  color: #7c8fa6;
  letter-spacing: .01em;
}
.ai-chat-message.ai .ai-chat-meta {
  text-align: left;
}
.ai-chat-message.user .ai-chat-meta {
  text-align: right;
}
.ai-chat-message.seller .ai-chat-meta,
.ai-chat-message.system .ai-chat-meta {
  text-align: left;
}
.ai-retry-btn {
  margin-top: 8px;
  height: 28px;
  min-height: 28px;
  padding: 0 10px;
  font-size: .7rem;
}
.ai-quick-title {
  margin: 8px 0 5px;
  font-size: .73rem;
  font-weight: 600;
  color: #4f6888;
}
.ai-chat-typing .ai-chat-bubble {
  padding: 8px 10px;
}
.ai-chat-typing {
  display: grid;
}
.ai-typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ai-typing-dots i {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #8ea4be;
  display: inline-block;
  animation: aiTypingBounce 1.1s ease-in-out infinite;
}
.ai-typing-dots i:nth-child(2) { animation-delay: .15s; }
.ai-typing-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes aiTypingBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: .45; }
  40% { transform: translateY(-2px); opacity: 1; }
}
.ai-quick-questions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: flex-start;
}
.ai-quick-btn {
  justify-content: center;
  text-align: center;
  min-height: 32px;
  font-size: .76rem;
  color: var(--primary);
  padding: 0 12px !important;
  max-width: 100%;
  white-space: nowrap;
  line-height: 1.2;
}
.ai-quick-btn:hover {
  background: #fff;
}
.ai-quick-btn:disabled {
  opacity: .55;
}
@media (min-width: 641px) {
  .ai-quick-btn {
    flex: 1 1 calc(50% - 3px);
  }
}
@media (max-width: 640px) {
  .ai-quick-btn {
    flex: 1 1 100%;
  }
}
.ai-question-form {
  margin-top: 10px;
  border-top: 1px solid #dbe7f2;
  background: #f0f2f5;
  border-radius: 18px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.ai-question-form input {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: .84rem;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #d8e2ec;
  background: #fff;
  padding: 0 14px;
}
.ai-question-form .btn {
  margin-top: 0;
  height: 34px;
  min-height: 34px;
  padding: 0 10px;
  font-size: .72rem;
  border-radius: 999px;
  font-weight: 600;
}
.ai-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}
.ai-actions .btn {
  width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}
.ai-actions .btn-ask-assistant {
  background: linear-gradient(135deg, #6fbc73, #58a964);
  color: #fff;
  border: 0;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .1);
}
.ai-actions .btn-ask-seller {
  background: linear-gradient(135deg, #5e8fd8, #4c7bc6);
  color: #fff;
  border: 0;
}
.ai-actions #clearBuyerChatBtn {
  background: linear-gradient(135deg, #e4ad5a, #d9973d);
  color: #fff;
  border: 0;
}
.chat-state-icon {
  border: 0;
  background: transparent;
  color: #4e6480;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1;
  padding: 0 1px;
  cursor: pointer;
}
.chat-state-icon:hover {
  color: #1f5fa5;
}
.chat-state-checks {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.chat-state-checks i {
  font-style: normal;
  line-height: 1;
  text-shadow: 0 0 0 currentColor;
}
.chat-state-checks.is-sent i:first-child,
.chat-state-checks.is-read i:first-child,
.chat-state-checks.is-read i:last-child {
  color: #119e4f;
}
.chat-state-checks.is-sent i:last-child {
  color: #7f8fa5;
}
.chat-state-blocked {
  display: inline-block;
  font-size: .62rem;
  font-weight: 700;
  color: #9a4b4b;
  background: #fff3f3;
  border: 1px solid #f0c9c9;
  border-radius: 999px;
  padding: 1px 7px;
}
.chat-state-neutral {
  display: inline-block;
  font-size: .62rem;
  font-weight: 700;
  color: #4f6177;
  background: #f1f5fa;
  border: 1px solid #d8e1ec;
  border-radius: 999px;
  padding: 1px 7px;
}
.ai-subtle-seller-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #d4dce8;
  background: #f7f9fc;
  color: #4b607a;
  font-size: .62rem;
  font-weight: 600;
  cursor: pointer;
}
.ai-subtle-seller-cta:hover {
  background: #eef3f9;
}
.ai-subtle-seller-cta:disabled {
  opacity: .6;
  cursor: not-allowed;
}
.seller-reply-context {
  margin-bottom: 8px;
}
.ai-question-form .btn:disabled,
.ai-question-form input:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.section { padding: 32px 0; }
.sell-flow-section {
  padding-top: 14px;
}
.section.alt { background: #edf5ff; border-top: 1px solid #d5e5f7; border-bottom: 1px solid #d5e5f7; }
.section-head h2 { margin: 0; font-size: 1.7rem; }
.section-head p { margin: 8px 0 20px; }
.section-head { max-width: 760px; }
.section-head.compact {
  max-width: 620px;
}
.section-head.compact h1 {
  margin: 0 0 6px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.1;
}
.section-head.compact p {
  margin: 0 0 10px;
  font-size: .88rem;
  line-height: 1.45;
  color: #5a7291;
}

.category-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.category-grid .category-card {
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  min-height: 172px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #d5e4f4;
  border-radius: 14px;
  padding: 16px 16px 14px;
  overflow: hidden;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
.category-grid .category-card:hover {
  transform: translateY(-3px);
  border-color: #aacbea;
  background: linear-gradient(180deg, #ffffff 0%, #f2f8ff 100%);
  box-shadow: 0 14px 28px rgba(14, 52, 96, .12);
}
.category-grid .category-card:nth-child(2) { border-top: 3px solid var(--secondary); }
.category-grid .category-card:nth-child(3) { border-top: 3px solid var(--accent); }
.category-grid .category-card:nth-child(4) { border-top: 3px solid var(--success-accent); }
.category-grid .category-card::after {
  content: ">>";
  position: absolute;
  right: 14px;
  bottom: 12px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: #4c6f96;
  opacity: .82;
}
.category-grid .category-card:hover::after {
  color: #1a4f89;
  opacity: 1;
}
.category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(180deg, #f4f9ff 0%, #e8f2ff 100%);
  border: 1px solid #c5ddf5;
  color: #0c4a8f;
  margin-bottom: 10px;
}
.category-icon svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}
.category-grid h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  line-height: 1.25;
  color: #0c2d5a;
}
.category-grid p {
  margin: 0;
  font-size: .9rem;
  line-height: 1.45;
  color: #5a7090;
  max-width: 30ch;
}

.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; gap: 10px; padding: 0; margin: 0;
}
.steps li {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 15px; display: flex; align-items: center; gap: 10px;
  transition: transform .16s ease, box-shadow .16s ease;
}
.steps li:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(15, 57, 108, .08);
}
.steps span {
  width: 28px; height: 28px; display: grid; place-items: center;
  border-radius: 50%; background: linear-gradient(140deg, var(--primary), var(--secondary)); color: #fff; font-weight: 700;
}

.split { display: grid; grid-template-columns: 1fr .7fr; gap: 16px; align-items: start; }
.checks { margin: 10px 0 0; padding: 0 0 0 18px; }
.checks li { margin-bottom: 8px; }
.panel {
  margin-top: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}
.panel h3 { margin: 0 0 8px; }

.status { font-weight: 700; margin-bottom: 8px; }
.status.ok { color: var(--ok); }
.status.error { color: var(--error); }
.small { margin: 0; font-size: .9rem; }

.contact-form {
  max-width: 640px; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 16px; display: grid; gap: 12px;
}
.contact-form label { display: grid; gap: 5px; font-weight: 600; }
.contact-form label span { font-size: .78rem; letter-spacing: .01em; color: #3f5c80; }
.sell-ai-title-apply {
  justify-self: start;
  margin-top: 2px;
  height: 28px;
  min-height: 28px;
  padding: 0 10px;
  font-size: .7rem;
}
.sell-ai-title-apply:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.sell-title-input-wrap {
  position: relative;
  width: 100%;
}
.sell-title-input-wrap input {
  width: 100%;
  padding-right: 36px;
}
.sell-ai-title-inline {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid #c9dcf1;
  background: #eef6ff;
  color: #1f5fa5;
  font-size: .86rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.sell-ai-title-inline::before {
  content: "\21B3";
}
.sell-ai-title-inline:hover {
  background: #e0efff;
}
.sell-ai-title-inline:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.contact-form input, .contact-form textarea {
  border: 1px solid #d7e3f0; border-radius: 999px; padding: 0 10px; font: inherit;
  height: 32px; line-height: 1; font-size: .78rem;
}
.contact-form select {
  border: 1px solid #d7e3f0;
  border-radius: 999px;
  padding: 0 10px;
  font-size: .78rem;
  font-family: inherit;
  background: #fff;
  height: 32px;
}
.contact-form textarea {
  border-radius: 12px;
  min-height: 96px;
  height: auto;
  padding: 8px 10px;
  line-height: 1.35;
  font-size: .78rem;
}
.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--secondary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 126, 208, .16);
}
.contact-form select:focus {
  border-color: var(--secondary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 126, 208, .16);
}

/* Listing coach: wins over .contact-form (declared above) — column layout, no 640px cap */
.ai-assist-panel .contact-form.ai-question-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  max-width: none;
  width: 100%;
  margin-top: 10px;
  margin-bottom: 0;
  padding: 12px;
  gap: 10px;
  border: 1px solid #d0dff0;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfdff 0%, #f0f4fa 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}
.ai-assist-panel .contact-form.ai-question-form #aiQuestionInput {
  width: 100%;
  flex: none;
  min-width: 0;
  min-height: 44px;
  height: auto;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: .88rem;
  line-height: 1.35;
  border: 1px solid #c9d6e8;
  background: #fff;
}
.ai-assist-panel .contact-form.ai-question-form #aiQuestionInput:focus {
  border-color: var(--secondary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 126, 208, .14);
}
.ai-chat-send-target {
  margin: 0;
  padding: 4px 2px 0;
  font-size: .72rem;
  line-height: 1.35;
  color: #5a6f8a;
  font-weight: 600;
}
.listing-form {
  max-width: 100%;
  margin-top: 0;
}
.refined-form {
  border-radius: 14px;
  border-color: #cfdef0;
  box-shadow: 0 10px 28px rgba(10, 41, 90, .06);
}
.refined-form h3 {
  margin: 2px 0 4px;
  font-size: 1.08rem;
}
.sell-reset-all-btn {
  height: 28px;
  min-height: 28px;
  padding: 0 10px;
  font-size: .7rem;
  margin-left: 0;
}
.listing-form {
  position: relative;
}
.sell-reset-corner-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid #d5e2f1;
  background: #f5f9ff;
  color: #4a6282;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
}
.sell-reset-corner-btn:hover {
  background: #ecf4ff;
  color: #224d83;
}
.form-grid.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}
.sell-layout {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 14px;
  align-items: start;
  margin-top: 12px;
}
.sell-tips {
  margin-top: 0;
  border-radius: 14px;
  border-color: #cfdef0;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}
.sell-process-layout {
  margin-top: 0;
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px;
}
.sell-process-layout .listing-detail-main,
.sell-process-layout .sell-ai-side {
  align-self: stretch;
}
.sell-process-layout .listing-detail-main {
  flex: 0 0 66.666%;
  max-width: 66.666%;
}
.sell-process-layout .sell-ai-side {
  flex: 0 0 33.333% !important;
  max-width: 33.333% !important;
  position: sticky !important;
  top: 104px !important;
  display: flex !important;
  flex-direction: column;
  min-height: 0;
}
.sell-process-layout .ai-assist-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}
.sell-process-layout .ai-chat-thread {
  flex: 1 1 auto;
  max-height: none;
  min-height: 0;
  padding: 2px 2px 2px 0;
  gap: 8px;
  overflow-y: auto;
  justify-content: flex-start;
}
.sell-process-layout .ai-assist-panel.is-chat-compact .ai-chat-thread {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
}
.sell-process-layout .ai-chat-bubble p {
  margin: 0;
}
.sell-process-layout .ai-chat-bubble button {
  margin-top: 6px;
}
.sell-process-layout .ai-chat-status.is-working {
  position: relative;
  overflow: hidden;
}
.sell-process-layout .ai-chat-status.is-working::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255,255,255,0) 12%, rgba(255,255,255,.35) 50%, rgba(255,255,255,0) 88%);
  transform: translateX(-110%);
  animation: sellStatusPulse 1.3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sellStatusPulse {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(110%); }
}

.sell-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 12px;
}
.sell-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #dce8f5;
  background: #f7fbff;
  color: #5e7796;
  font-size: .68rem;
  font-weight: 700;
}
.sell-step.is-active {
  border-color: #cfe0f4;
  background: #eaf3ff;
  color: #1f4f88;
}
.sell-photo-step {
  margin: 8px 0 12px;
  border-radius: 12px;
  border: 1px solid #d8e4f2;
  background: #f8fbff;
}
.sell-photo-step h4 {
  margin: 0 0 5px;
  font-size: .9rem;
  color: #163f73;
}
.sell-photo-order {
  margin-top: 9px;
  border-radius: 11px;
  border: 1px solid #d7e4f2;
  background: #ffffff;
}
.sell-photo-order h4 {
  margin: 0 0 4px;
  font-size: .84rem;
  color: #1d446f;
}
.sell-photo-preview-wrap {
  margin-top: 12px;
  border-radius: 11px;
  border: 1px solid #d7e4f2;
  background: #ffffff;
  padding: 10px 12px 12px;
}
.sell-photo-preview-wrap h4 {
  margin: 0 0 4px;
  font-size: .84rem;
  color: #1d446f;
}
.sell-photo-preview-list .sell-photo-order-item {
  cursor: default;
}
.sell-photo-order-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}
.sell-upload-zone {
  position: relative;
  border: 2px dashed #a8c4e6;
  border-radius: 12px;
  padding: 16px 14px;
  margin: 8px 0 10px;
  background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.sell-upload-zone.is-dragover {
  border-color: #3b7bc8;
  background: #eef6ff;
}
.sell-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.sell-upload-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  text-align: center;
}
.sell-upload-title {
  font-weight: 600;
  color: #1f4f88;
  font-size: 0.88rem;
}
.sell-upload-hint {
  font-size: 0.74rem;
  color: #5a7394;
}
.sell-upload-status {
  margin: 4px 0 0;
  min-height: 1em;
  display: none;
}
.sell-photo-order-item {
  position: relative;
  border: 2px solid #d7e4f2;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  cursor: move;
  aspect-ratio: 1 / 1;
  touch-action: none;
  box-sizing: border-box;
}
.sell-photo-order-item.is-quality-low {
  border: 6px solid #dc2626;
  box-shadow: 0 0 0 1px rgba(185, 28, 28, 0.35) inset;
}
.sell-photo-order-item.is-quality-medium {
  border: 6px solid #ea580c;
  box-shadow: 0 0 0 1px rgba(194, 65, 12, 0.35) inset;
}
.sell-photo-order-item.is-quality-good {
  border: 6px solid #16a34a;
  box-shadow: 0 0 0 1px rgba(21, 128, 61, 0.35) inset;
}
.sell-photo-order-item.is-dragging {
  opacity: .55;
  transform: scale(0.98);
}
.sell-photo-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  border: 0;
  background: #fff;
}
.sell-photo-identity-summary {
  grid-column: 1 / -1;
  list-style: none;
  border: 1px solid #d4e3f4;
  border-radius: 10px;
  padding: 8px 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
  color: #1e4774;
  font-size: .74rem;
  line-height: 1.35;
}
.sell-photo-order-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  padding: 0 6px;
  font-size: .68rem;
  font-weight: 700;
  color: #2a4d76;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #d7e4f2;
}
.sell-photo-move-controls {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  gap: 4px;
}
.sell-photo-move-btn {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid #d0dded;
  background: rgba(255, 255, 255, 0.95);
  color: #2a4d76;
  font-size: .85rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}
.sell-photo-move-btn:disabled {
  opacity: .42;
  cursor: not-allowed;
}
.sell-photo-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid #f1c7cb;
  background: rgba(255, 255, 255, 0.95);
  color: #af2f3b;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}
.sell-photo-remove:hover {
  background: #fff;
  border-color: #e79ea5;
}
.sell-step-actions {
  display: flex;
  gap: 8px;
  margin: 10px 0 2px;
}
.sell-photo-step .sell-step-actions {
  align-items: center;
}
.sell-step1-footer-actions {
  justify-content: flex-end;
  width: 100%;
}
.sell-photo-step .sell-step-actions > .btn {
  height: 32px;
  min-height: 32px;
  flex: 0 0 220px;
  white-space: nowrap;
}
.sell-photo-step .sell-step1-footer-actions > .btn {
  flex: 0 0 auto;
  min-width: 220px;
}
.sell-step-actions .sell-reset-all-btn {
  margin-left: auto;
}
.is-hidden-step {
  display: none !important;
}
.sell-ai-side {
  display: block !important;
}
.auth-wrap { max-width: 760px; }
.auth-form {
  max-width: 560px;
  margin-top: 12px;
}
.browse-filter-panel {
  margin: 0 0 14px;
  border-radius: 14px;
  border-color: #cfdef0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 8px 24px rgba(10, 41, 90, .05);
}
.browse-filter-panel .panel,
.browse-filter-panel {
  overflow: visible;
}
.browse-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin: 0;
}
.filter-block {
  display: grid;
  gap: 0;
  min-width: 170px;
  flex: 1 1 170px;
}
.filter-block-price {
  min-width: 230px;
  flex: 1.2 1 230px;
}
.price-range {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 6px;
  align-items: center;
}
.price-range span {
  color: #7a8ea7;
  font-size: .72rem;
  font-weight: 700;
}
.browse-filter label {
  display: none;
}
.browse-filter select {
  border: 1px solid #d7e3f0;
  border-radius: 999px;
  padding: 0 10px;
  font-size: .78rem;
  font-family: inherit;
  background: #fff;
  min-width: 0;
  height: 32px;
}
.browse-filter input {
  border: 1px solid #d7e3f0;
  border-radius: 999px;
  padding: 0 10px;
  font-size: .78rem;
  font-family: inherit;
  background: #fff;
  min-width: 0;
  height: 32px;
}
.filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}
.filter-actions .btn {
  min-width: 94px;
  text-align: center;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.listing-grid.two { grid-template-columns: repeat(2, 1fr); }
.listing-card {
  position: relative;
  background: #fff;
  border: 1px solid #d0dfef;
  border-radius: 14px;
  padding: 13px;
  box-shadow: 0 8px 20px rgba(10, 41, 90, .05);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.listing-card:hover {
  transform: translateY(-2px);
  border-color: #bbd7f2;
  box-shadow: 0 14px 26px rgba(11, 44, 87, .1);
}
.listing-card h3 { margin: 0 0 6px; font-size: 1rem; line-height: 1.3; }
.listing-card p { margin: 0; }
.listing-card h3,
.listing-card p,
.listing-location {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.listing-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 14px;
}
.listing-card .btn {
  position: relative;
  z-index: 2;
}
.listing-card .btn.inline { margin-top: 0; }
.listing-thumb-wrap {
  position: relative;
}
.listing-thumb {
  width: 100%;
  height: 155px;
  object-fit: cover;
  border-radius: 10px;
  margin: 0 0 9px;
  background: #eef4fb;
}
.chip-on-image {
  position: absolute;
  left: 8px;
  top: 8px;
  margin: 0;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(2px);
  border-color: rgba(186, 210, 236, .95);
}
.listing-detail-image {
  width: 100%;
  max-height: 430px;
  object-fit: cover;
  border-radius: 10px;
  margin: 0 0 14px;
  background: #eef4fb;
}
.listing-heading {
  margin-bottom: 10px;
}
.listing-title {
  margin: 0 0 6px;
  font-size: 1.18rem;
  line-height: 1.3;
  color: #0d315f;
  font-weight: 700;
}
.listing-heading-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.listing-heading-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.listing-back-overview-btn {
  margin-top: 0 !important;
  white-space: nowrap;
  padding: 0 10px;
  height: 30px;
  min-height: 30px;
  font-size: .7rem;
}
.listing-main-image-wrap {
  position: relative;
}
.listing-image-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(183, 205, 229, .95);
  background: rgba(255, 255, 255, .92);
  color: #234d7f;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  cursor: pointer;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1;
}
.listing-image-nav.prev { left: 10px; }
.listing-image-nav.next { right: 10px; }
.listing-gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: -4px 0 14px;
}
.listing-gallery-thumb {
  padding: 0;
  border: 1px solid #d6e3f1;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}
.listing-gallery-thumb.is-active {
  border-color: #7fa6d2;
  box-shadow: 0 0 0 2px rgba(127, 166, 210, .22);
}
.listing-gallery-thumb img {
  width: 100%;
  height: 74px;
  object-fit: cover;
  display: block;
}
.price {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 4px !important;
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: .86rem;
}
.price strong {
  font-size: 1rem;
}
.price-inline-min {
  font-size: .72rem;
  font-weight: 600;
  color: #5a6f89;
}
.chip {
  display: inline-block;
  margin: 0 6px 8px 0;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eaf4ff;
  border: 1px solid #c8def5;
  color: #114a8f;
  font-size: .76rem;
  font-weight: 700;
}
.listing-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}
.listing-location {
  margin: 0;
  font-size: .78rem;
  color: #5d7390;
  text-align: right;
}
.listing-detail {
  max-width: 760px;
}
.listing-detail-main {
  max-width: none;
}
.sale-listing {
  border-color: #c7dbf2;
  box-shadow: 0 14px 30px rgba(10, 41, 90, .08);
}
.bid-summary {
  margin: 8px 0 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.bid-summary div {
  border: 1px solid #d7e3f0;
  border-radius: 8px;
  padding: 8px;
  background: #fbfdff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 34px;
}
.bid-summary span {
  color: #5f7897;
  font-size: .7rem;
  margin-bottom: 0;
  white-space: nowrap;
}
.bid-summary strong {
  color: #0b2a5a;
  font-size: .84rem;
  white-space: nowrap;
}
.bid-inline-feedback {
  margin: 6px 0 8px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid #dce7f4;
  background: #f8fbff;
  color: #355779;
  font-size: .74rem;
  font-weight: 600;
  line-height: 1.35;
}
.bid-inline-feedback.is-ok {
  border-color: #d3e6d9;
  background: #f7fcf8;
  color: #2d5f3a;
}
.bid-inline-feedback.is-error {
  border-color: #ead7d7;
  background: #fffafa;
  color: #7a3f3f;
}
.bid-inline-feedback.js-auto-dismiss {
  transition: opacity .35s ease, transform .35s ease, margin .35s ease, max-height .35s ease, padding .35s ease;
  max-height: 48px;
  opacity: 1;
}
.bid-inline-feedback.js-auto-dismiss.is-hidden {
  opacity: 0;
  transform: translateY(-3px);
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  max-height: 0;
  overflow: hidden;
  border-width: 0;
}
.bid-form {
  margin-top: 6px;
  margin-bottom: 12px;
  max-width: 100%;
  padding: 10px;
  border: 1px solid #dbe6f2;
  border-radius: 10px;
  background: #fbfdff;
}
.bid-form h3 {
  margin: 0 0 6px;
  font-size: .84rem;
  color: #1a426f;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.bid-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 30px;
  margin-bottom: 6px;
}
.bid-form-feedback {
  margin: 0;
  padding: 4px 8px;
  font-size: .66rem;
  max-width: 62%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bid-form-feedback.is-empty {
  visibility: hidden;
  border-color: transparent;
  background: transparent;
}
.bid-login-panel {
  margin-top: 8px;
  margin-bottom: 12px;
  border-radius: 12px;
}
.bid-history {
  margin-top: 8px;
  margin-bottom: 10px;
  border-radius: 10px;
  border: 1px solid #dfe8f3;
  background: #ffffff;
}
.bid-history h3 {
  margin: 0 0 6px;
  font-size: .83rem;
  color: #1a426f;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.bid-history ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.bid-history li {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto auto auto;
  align-items: center;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid #edf2f8;
  border-radius: 0;
  padding: 6px 2px;
  background: transparent;
  white-space: nowrap;
}
.bid-history li:last-child {
  border-bottom: 0;
}
.bid-history li span {
  color: #1f456f;
  font-size: .75rem;
  font-weight: 700;
}
.bid-history li strong {
  color: #0d3766;
  font-size: .8rem;
}
.bid-history li em {
  color: #7c8ea3;
  font-size: .64rem;
  font-style: normal;
  white-space: nowrap;
}
.bid-history-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid #deebf8;
  background: #f6faff;
  font-size: .61rem;
  font-weight: 700;
  color: #4d6887;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.bid-amount-stack {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.bid-amount-stack small {
  font-size: .6rem;
  color: #8294a8;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.bid-prev-label {
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.bid-remove-form {
  margin: 0;
}
.bid-remove-btn {
  margin-top: 0 !important;
  height: 20px !important;
  min-height: 20px;
  padding: 0 8px !important;
  font-size: .61rem !important;
  border-radius: 999px;
}
.listing-detail-text {
  font-size: .76rem;
  line-height: 1.45;
  color: #3f5877;
  margin: 0 0 6px;
}
.listing-contact-policy {
  margin: 10px 0 6px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #dce7f3;
  background: #f9fbfe;
}
.listing-contact-policy strong {
  display: block;
  font-size: .72rem;
  color: #1a426f;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.listing-contact-policy p {
  margin: 0;
  font-size: .72rem;
  color: #4f6683;
}
.seller-task-list {
  display: grid;
  gap: 8px;
}
.seller-task-btn {
  justify-content: flex-start;
  text-align: left;
  height: auto;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  white-space: normal;
}
.messages-overview-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.messages-listing-card {
  background: #fff;
  border: 1px solid #d6e4f3;
  border-radius: 12px;
}
.messages-listing-link {
  display: grid;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  padding: 14px;
}
.messages-open-pill {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: .72rem;
  font-weight: 700;
  background: #ffe8e8;
  color: #9d2424;
}
.messages-open-pill.is-muted {
  background: #eef3f9;
  color: #567090;
}
.seller-inbox-layout {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 10px;
}
.dashboard-shell {
  display: grid;
  gap: 12px;
}
.dashboard-hero {
  margin-bottom: 0;
}
.dashboard-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dashboard-filter {
  min-height: 32px;
  padding: 0 11px;
  font-size: .72rem;
}
.dashboard-filter.is-active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-color: transparent;
}
.dashboard-priority {
  margin-top: 0;
  border: 1px solid #d8e6f7;
  background: linear-gradient(180deg, #f9fcff 0%, #f3f8ff 100%);
}
.dashboard-priority h3 {
  margin: 0 0 8px;
  font-size: .96rem;
}
.dashboard-priority ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 5px;
  font-size: .82rem;
}
.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.dashboard-stat-card {
  margin-top: 0;
  display: grid;
  gap: 6px;
}
.dashboard-stat-card h4 {
  margin: 0;
  font-size: .8rem;
  color: #4a6487;
}
.dashboard-stat-value {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 800;
  color: #173f70;
}
.dashboard-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.dashboard-block {
  margin-top: 0;
}
.dashboard-block h3 {
  margin: 0 0 9px;
}
.dashboard-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.dashboard-action-grid .btn {
  width: 100%;
  justify-content: center;
}
.dashboard-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 7px;
}
.dashboard-chip {
  border-radius: 999px;
  border: 1px solid #d2e2f3;
  padding: 3px 9px;
  font-size: .67rem;
  font-weight: 700;
  color: #4f6988;
  background: #fff;
}
.dashboard-chip.is-warning {
  border-color: #ecd3ab;
  color: #7a5a21;
  background: #fff8ea;
}
.dashboard-chip.is-muted {
  border-color: #cfd8e4;
  color: #5a6b82;
  background: #f4f7fb;
  margin-left: 6px;
  font-weight: 600;
}
.dashboard-list {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}
.dashboard-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px dashed #d9e3ef;
  padding-bottom: 5px;
}
.dashboard-list small {
  text-transform: uppercase;
  letter-spacing: .02em;
  color: #7d90a8;
  font-size: .61rem;
}
.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.dashboard-kpi-grid article {
  border: 1px solid #d9e6f5;
  border-radius: 9px;
  background: #fff;
  padding: 8px;
  display: grid;
  gap: 4px;
}
.dashboard-kpi-grid strong {
  color: #173f70;
  font-size: 1.05rem;
}
.dashboard-kpi-grid span {
  color: #607a99;
  font-size: .71rem;
}
.dashboard-checklist {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: grid;
  gap: 7px;
}
.dashboard-checklist li {
  border: 1px solid #d8e4f2;
  border-radius: 8px;
  padding: 7px 9px;
  font-size: .76rem;
  color: #4a6487;
  background: #fbfdff;
}
.dashboard-checklist li.is-done {
  border-color: #c5e6cf;
  color: #2f7b42;
  background: #f1fbf4;
}
.admin-tools-status {
  margin: 10px 0;
}
.admin-tools-status code {
  display: inline-block;
  margin-top: 6px;
}
.seller-threads-panel,
.seller-qa-panel {
  margin-top: 0;
}
.seller-question-list {
  display: grid;
  gap: 8px;
  margin: 8px 0;
  max-height: 44vh;
  overflow: auto;
}
.seller-chat-thread {
  margin: 8px 0;
  max-height: 46vh;
  min-height: 260px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}
.seller-chat-row {
  max-width: 86%;
  display: grid;
  gap: 3px;
}
.seller-chat-row.buyer {
  align-self: flex-start;
}
.seller-chat-row.seller {
  align-self: flex-end;
}
.seller-chat-row.system {
  align-self: center;
  max-width: 94%;
}
.seller-chat-bubble {
  border-radius: 12px;
  padding: 9px 11px;
  line-height: 1.42;
  position: relative;
  border: 1px solid #dbe6f3;
  background: #f9fbff;
  color: #2e4a71;
}
.seller-chat-row.buyer .seller-chat-bubble {
  background: #fff4df;
  border-color: #efd7aa;
  color: #6b521f;
}
.seller-chat-row.seller .seller-chat-bubble {
  background: #e8f2ff;
  border-color: #c9dcf6;
  color: #214f82;
}
.seller-chat-row.system .seller-chat-bubble {
  background: #f3f6fb;
  border-color: #d8e2ef;
  color: #4c6686;
}
.ai-chat-bubble.is-blocked,
.seller-chat-bubble.is-blocked {
  text-decoration: line-through;
  text-decoration-thickness: 1.15px;
  opacity: .78;
}
.seller-chat-bubble p {
  margin: 0;
  font-size: .82rem;
  white-space: pre-wrap;
}
.seller-chat-meta {
  font-size: .59rem;
  color: #7c8fa6;
}
.seller-chat-row.seller .seller-chat-meta {
  text-align: right;
}
.seller-chat-quote {
  margin: 0 0 6px;
  padding: 5px 7px;
  border-radius: 7px;
  border-left: 3px solid #b3c8df;
  background: rgba(255, 255, 255, .6);
  font-size: .68rem;
  color: #486583;
}
.seller-inline-reply-btn {
  margin-top: 7px;
  border: 1px solid #d4deec;
  background: #fff;
  color: #355a86;
  border-radius: 999px;
  height: 24px;
  padding: 0 9px;
  font-size: .66rem;
  font-weight: 700;
  cursor: pointer;
}
.seller-inline-reply-btn:hover {
  background: #f4f8fe;
}
.seller-msg-checks {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  font-size: .67rem;
  font-weight: 800;
}
.seller-msg-checks i {
  font-style: normal;
  line-height: 1;
}
.seller-msg-checks.is-sent i:first-child,
.seller-msg-checks.is-read i:first-child,
.seller-msg-checks.is-read i:last-child {
  color: #119e4f;
}
.seller-msg-checks.is-sent i:last-child {
  color: #8a9cb4;
}
.seller-question-card {
  border: 1px solid #d8e4f2;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}
.seller-question-card p {
  margin: 6px 0;
  font-size: .82rem;
  line-height: 1.35;
}
.seller-question-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.seller-question-state {
  border-radius: 999px;
  padding: 3px 8px;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  background: #edf3fa;
  color: #4f6887;
}
.seller-question-card.is-open .seller-question-state {
  background: #ffe8e8;
  color: #9f2b2b;
}
.seller-question-card.is-answered .seller-question-state {
  background: #e8f8ec;
  color: #2f7b42;
}
.seller-answer-preview {
  margin: 8px 0;
  border-left: 3px solid #c6d8ec;
  background: #f8fbff;
  border-radius: 6px;
  padding: 6px 8px;
}
.seller-answer-preview p {
  margin: 4px 0 0;
}
.seller-answer-form {
  max-width: 100%;
  gap: 8px;
  padding: 12px;
}
.buyer-info-card {
  border: 1px solid #d5e3f2;
  border-radius: 10px;
  background: #f8fbff;
  padding: 10px;
}
.buyer-info-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.buyer-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid #ccdbed;
}
.buyer-info-metrics {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.buyer-info-metrics span {
  border-radius: 999px;
  border: 1px solid #d2e1f1;
  padding: 3px 8px;
  font-size: .67rem;
  font-weight: 700;
  color: #4f6988;
  background: #fff;
}
.seller-threads-panel .seller-task-btn {
  min-height: 38px;
  padding: 6px 10px;
  font-size: .75rem;
}
.seller-threads-panel .seller-task-btn.is-active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-color: transparent;
}
.buyer-activity i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  margin-right: 5px;
}
.buyer-activity.is-high i { background: #36aa4f; }
.buyer-activity.is-medium i { background: #e0ae4f; }
.buyer-activity.is-low i { background: #879bb4; }

.footer { padding: 26px 0; }
.footer-wrap { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.footer-brand { margin: 0; color: var(--muted); font-size: .92rem; }
.footer-tagline {
  display: inline-block;
  margin-left: 8px;
  font-size: .78rem;
  font-weight: 600;
  color: #6a7f9a;
  letter-spacing: 0.02em;
}
.footer nav { display: flex; gap: 14px; }
.footer a { color: #294d80; text-decoration: none; }
.footer a:hover { color: var(--secondary); }
.footer-admin-tools {
  font-size: .82rem;
  color: #7c90ac !important;
  border-bottom: 1px dotted #bdc9d9;
}
.footer-admin-tools:hover {
  color: #4a6488 !important;
}

@media (max-width: 950px) {
  .hero-grid, .hero-grid.single, .split { grid-template-columns: 1fr; }
  .messages-overview-grid { grid-template-columns: 1fr; }
  .seller-inbox-layout { grid-template-columns: 1fr; }
  .dashboard-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-columns {
    grid-template-columns: 1fr;
  }
  .dashboard-action-grid {
    grid-template-columns: 1fr;
  }
  .category-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .user-nav { display: none; }
  .user-pill { display: none; }
  .user-actions { display: none; }
  .nav-wrap { min-height: 82px; }
  .mobile-menu {
    display: block;
    margin-left: auto;
    position: relative;
  }
  .mobile-menu > summary {
    display: inline-grid;
    gap: 4px;
    justify-items: center;
    align-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid #d8e6f6;
    background: #f8fbff;
    cursor: pointer;
  }
  .mobile-menu > summary span {
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: #2a4f80;
    display: block;
  }
  .mobile-menu[open]::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(8, 25, 48, .22);
    z-index: 20;
  }
  .mobile-menu[open] > summary {
    background: #ffffff;
    border-color: #bdd7f1;
    position: relative;
    z-index: 31;
  }
  .mobile-menu .mobile-menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 31;
    width: min(320px, 92vw);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #d5e5f7;
    background: #ffffff;
    box-shadow: 0 14px 28px rgba(9, 35, 76, .14);
  }
  .brand img {
    height: clamp(48px, 13vw, 64px);
    width: auto;
    max-width: min(480px, 94vw);
  }
  .browse-filter select, .browse-filter input { min-width: 0; width: 100%; }
  .browse-filter { display: grid; grid-template-columns: 1fr; }
  .filter-block, .filter-block-price { min-width: 0; }
  .filter-actions { margin-left: 0; }
  .filter-actions .btn {
    min-width: 0;
    flex: 1 1 0;
  }
  .listing-card-meta {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .listing-card-meta .btn {
    width: 100%;
  }
  .listing-location {
    text-align: left;
    font-size: .74rem;
  }
  .bid-summary { grid-template-columns: 1fr; }
  .bid-history li { grid-template-columns: 1fr; }
  .form-grid.two { grid-template-columns: 1fr; }
  .sell-layout { grid-template-columns: 1fr; }
  .sell-stepper { grid-template-columns: 1fr 1fr; }
  .sell-step-actions { flex-wrap: wrap; }
  .stats { grid-template-columns: 1fr; }
  .listing-grid, .listing-grid.two { grid-template-columns: 1fr; }
  .search-box {
    flex-wrap: wrap;
    padding: 8px;
  }
  .search-box button {
    width: 100%;
  }
  .btn {
    min-height: 40px;
    height: 40px;
    font-size: .82rem;
    padding: 0 14px;
  }
  .contact-form input,
  .contact-form select {
    height: 40px;
    font-size: .84rem;
  }
  .contact-form textarea {
    min-height: 116px;
    font-size: .84rem;
    line-height: 1.45;
  }
  #sellerAnswerInput,
  .seller-answer-form textarea,
  .seller-answer-form input {
    font-size: 16px;
  }
  .browse-filter select,
  .browse-filter input {
    height: 40px;
    font-size: .84rem;
  }
  .price-range {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .price-range span {
    display: none;
  }
  .ai-question-form .btn,
  .ai-question-form input {
    height: 40px;
    min-height: 40px;
  }
  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer nav {
    flex-wrap: wrap;
    gap: 8px 12px;
  }
}

@media (max-width: 420px) {
  .listing-detail-layout { display: block; }
  .ai-assist-side { position: static; }
}

@media (max-width: 640px) {
  .category-grid, .steps { grid-template-columns: 1fr; }
  .countdown { grid-template-columns: repeat(2, minmax(74px, 96px)); }
  .bid-history li {
    grid-template-columns: 1fr;
    gap: 3px;
    white-space: normal;
    padding: 8px 0;
  }
  .bid-history li span,
  .bid-history li strong,
  .bid-history li em {
    white-space: normal;
  }
  .bid-amount-stack {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .bid-history-tag {
    justify-self: flex-start;
  }
  .ai-launch-btn {
    width: 100%;
  }
  .container {
    width: min(1120px, calc(100% - 24px));
  }
  .contact-form,
  .hero-card,
  .status-card,
  .panel,
  .listing-card,
  .sell-photo-step,
  .sell-photo-order,
  .ai-assist-panel {
    border-radius: 12px;
    padding: 12px;
  }
  .listing-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
  .listing-detail-image {
    max-height: 280px;
  }
  .sell-step-actions .btn {
    width: 100%;
    min-height: 44px;
    height: 44px;
  }
  .sell-reset-corner-btn {
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
  }
  .sell-step-actions .btn-primary {
    order: -1;
  }
  .sell-stepper {
    grid-template-columns: 1fr;
  }
  .sell-photo-order-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mobile-menu .mobile-menu-panel {
    width: min(300px, calc(100vw - 20px));
    right: -4px;
  }
  .ai-chat-thread {
    max-height: 288px;
  }
  .section-head h2 {
    font-size: 1.4rem;
    line-height: 1.2;
  }
  body {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
  }
  .sell-step-actions {
    position: sticky;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 6px);
    z-index: 8;
    background: rgba(242, 248, 255, .92);
    backdrop-filter: blur(6px);
    border: 1px solid #d7e5f5;
    border-radius: 12px;
    padding: 8px;
  }
  .sell-step-actions > .btn {
    min-width: 0;
    white-space: normal;
    text-align: center;
  }
  .listing-mobile-actions {
    display: block;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 56px);
  }
  .listing-mobile-secondary {
    width: 100%;
  }
  .listing-mobile-primary-wrap {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
    z-index: 22;
    margin: 0;
    display: block;
  }
  .listing-mobile-primary {
    width: 100%;
    min-height: 44px;
    height: 44px;
    box-shadow: 0 10px 24px rgba(8, 36, 77, .18);
  }
  .dashboard-stats-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-kpi-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .listing-detail {
    max-width: 100%;
  }
  .bid-summary {
    grid-template-columns: 1fr;
  }
  .bid-history li {
    grid-template-columns: 1fr;
    gap: 4px;
    white-space: normal;
  }
  .bid-amount-stack {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .ai-question-form {
    gap: 8px;
  }
  .ai-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ai-actions .btn {
    width: 100%;
    padding: 0 6px;
    font-size: .68rem;
  }
}

@media (pointer: coarse) {
  .btn,
  .lang,
  .mobile-menu > summary,
  .mobile-menu-nav a,
  .nav a,
  .user-nav a,
  .sell-ai-title-inline,
  .sell-photo-remove {
    min-height: 44px;
  }
  .sell-ai-title-inline,
  .sell-photo-remove {
    min-width: 44px;
    width: 44px;
    height: 44px;
  }
  .contact-form input,
  .contact-form select,
  .browse-filter select,
  .browse-filter input,
  .ai-question-form input,
  .ai-question-form .btn {
    min-height: 44px;
  }
}

@media (max-width: 375px) {
  body {
    font-size: 15px;
  }
  .container {
    width: calc(100% - 18px);
  }
  .hero {
    padding-top: 26px;
  }
  h1 {
    line-height: 1.12;
    margin: 10px 0;
  }
  .section {
    padding: 24px 0;
  }
  .section-head p {
    margin-bottom: 14px;
  }
  .brand img {
    height: clamp(42px, 14vw, 56px);
    max-width: min(420px, 90vw);
  }
  .mobile-menu > summary {
    width: 42px;
    height: 42px;
  }
  .mobile-menu .mobile-menu-panel {
    width: calc(100vw - 14px);
    right: -2px;
    padding: 10px;
  }
  .mobile-menu-nav a {
    min-height: 34px;
    font-size: .8rem;
    padding: 0 10px;
  }
  .btn {
    min-height: 44px;
    height: 44px;
    font-size: .78rem;
    padding: 0 10px;
  }
  .hero-actions {
    gap: 8px;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .search-box input {
    font-size: .92rem;
    padding: 8px 10px;
  }
  .search-box button {
    min-height: 34px;
    padding: 0 10px;
  }
  .pill,
  .chip {
    font-size: .7rem;
  }
  .contact-form label span {
    font-size: .74rem;
  }
  .contact-form input,
  .contact-form select,
  .contact-form textarea,
  .browse-filter select,
  .browse-filter input {
    font-size: .82rem;
  }
  .listing-card h3 {
    font-size: .93rem;
  }
  .listing-thumb {
    height: 138px;
  }
  .listing-detail-image {
    max-height: 235px;
    margin-bottom: 10px;
  }
  .listing-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .sell-photo-order-list {
    grid-template-columns: 1fr;
  }
  .countdown {
    grid-template-columns: repeat(2, minmax(64px, 1fr));
    gap: 6px;
  }
  .countdown div {
    padding: 6px 5px;
  }
  .footer {
    padding: 20px 0;
  }
  .footer nav {
    gap: 6px 10px;
  }
  .footer-brand {
    font-size: .84rem;
  }
  .footer-tagline {
    margin-left: 0;
    display: block;
    margin-top: 4px;
  }
  .listing-mobile-primary-wrap {
    left: 8px;
    right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover,
  .listing-card:hover,
  .category-grid .category-card:hover,
  .steps li:hover {
    transform: none !important;
    box-shadow: none !important;
  }
}

@media (max-width: 1100px) {
  .listing-detail-layout {
    display: block !important;
  }
  .ai-assist-side {
    position: static;
    top: auto;
    max-width: none !important;
    width: 100%;
    margin-top: 12px;
  }
  .ai-chat-thread {
    max-height: 336px;
  }
  .sell-process-layout .sell-ai-side {
    margin-top: 12px;
  }
  .sell-process-layout .ai-assist-panel {
    max-height: none;
    height: auto;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .container {
    width: min(1120px, calc(100% - 40px));
  }
  .hero {
    padding: 30px 0 12px;
  }
  .hero-actions {
    gap: 8px;
  }
  .hero-actions .btn {
    min-width: 0;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .browse-filter {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .filter-actions {
    grid-column: 1 / -1;
    margin-left: 0;
    justify-content: stretch;
  }
  .filter-actions .btn,
  .filter-actions .is-disabled {
    flex: 1 1 0;
  }
  .listing-detail-layout {
    display: flex !important;
    gap: 10px;
  }
  .listing-detail-main {
    flex: 0 0 58%;
    max-width: 58%;
  }
  .ai-assist-side {
    flex: 0 0 42% !important;
    max-width: 42% !important;
    position: sticky;
    top: 100px;
    height: calc(100vh - 128px);
    min-height: 460px;
  }
  .sell-process-layout .listing-detail-main {
    flex: 0 0 58%;
    max-width: 58%;
  }
  .sell-process-layout .sell-ai-side {
    flex: 0 0 42% !important;
    max-width: 42% !important;
  }
  .sell-stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sell-step-actions {
    position: sticky;
    bottom: 10px;
    z-index: 9;
    background: rgba(242, 248, 255, .94);
    border: 1px solid #d7e5f5;
    border-radius: 12px;
    padding: 8px;
    flex-wrap: wrap;
  }
  .sell-step-actions > .btn {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
  }
  .sell-photo-order-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .sell-photo-order-item {
    aspect-ratio: 1 / 1;
  }
  .messages-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 431px) and (max-width: 767px) {
  .container {
    width: min(1120px, calc(100% - 28px));
  }
  h1 {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
    line-height: 1.12;
  }
  .hero-trust {
    gap: 6px;
  }
  .hero-trust span {
    font-size: .73rem;
    padding: 5px 8px;
  }
  .hero-grid,
  .split,
  .listing-detail-layout,
  .sell-process-layout {
    grid-template-columns: 1fr !important;
    display: block !important;
  }
  .listing-detail-main,
  .sell-process-layout .listing-detail-main {
    max-width: 100%;
    flex: 1 1 auto;
  }
  .ai-assist-side,
  .sell-process-layout .sell-ai-side {
    position: static !important;
    max-width: 100% !important;
    width: 100%;
    height: auto;
    min-height: 0;
    margin-top: 10px;
  }
  .browse-filter {
    display: grid;
    grid-template-columns: 1fr;
  }
  .price-range {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .price-range span {
    display: none;
  }
  .messages-overview-grid,
  .listing-grid {
    grid-template-columns: 1fr;
  }
  .listing-card {
    padding: 12px;
  }
  .listing-card h3 {
    font-size: .95rem;
  }
  .listing-location {
    text-align: left;
  }
  .listing-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .sell-stepper {
    grid-template-columns: 1fr 1fr;
  }
  .sell-step-actions {
    flex-wrap: wrap;
    position: sticky;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
    z-index: 9;
    background: rgba(242, 248, 255, .94);
    border: 1px solid #d7e5f5;
    border-radius: 12px;
    padding: 8px;
  }
  .sell-step-actions > .btn {
    flex: 1 1 100%;
  }
  .sell-photo-order-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sell-upload-zone {
    padding: 14px 12px;
  }
}

@media (min-width: 376px) and (max-width: 430px) {
  .container {
    width: min(1120px, calc(100% - 22px));
  }
  .hero {
    padding-top: 28px;
  }
  h1 {
    font-size: clamp(1.55rem, 8.8vw, 2rem);
    line-height: 1.14;
  }
  .section {
    padding: 24px 0;
  }
  .section-head p {
    margin-bottom: 14px;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .search-box {
    flex-wrap: wrap;
  }
  .search-box button {
    width: 100%;
  }
  .listing-detail-image {
    max-height: 250px;
  }
  .listing-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .browse-filter {
    display: grid;
    grid-template-columns: 1fr;
  }
  .filter-actions {
    margin-left: 0;
    width: 100%;
  }
  .filter-actions .btn,
  .filter-actions .is-disabled {
    width: 100%;
  }
  .browse-filter-panel {
    border-radius: 12px;
    padding: 10px;
  }
  .sell-step-actions {
    position: sticky;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 6px);
    background: rgba(242, 248, 255, .94);
    border: 1px solid #d7e5f5;
    border-radius: 12px;
    padding: 8px;
  }
  .sell-photo-order-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --- WhatsApp-style chat UI tokens (e.g. app_chat shell; listing-create page retired) --- */
html.is-wachat-app-root {
  height: 100%;
  overflow: hidden;
}
html.is-wachat-app-root body.is-wachat-app {
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}
@supports (height: 100dvh) {
  html.is-wachat-app-root,
  html.is-wachat-app-root body.is-wachat-app {
    height: 100dvh;
    max-height: 100dvh;
  }
}
.wachat-app-topbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 12px calc(6px + env(safe-area-inset-top, 0px));
  background: #075e54;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  z-index: 30;
}
.wachat-app-back {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 6px;
  border-radius: 8px;
}
.wachat-app-back:hover {
  background: rgba(255, 255, 255, 0.12);
}
.wachat-app-title {
  flex: 1;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.wachat-app-spacer {
  width: 52px;
  flex-shrink: 0;
}
body.is-wachat-app .ai-debug-panel {
  display: none;
}
.panel.listing-detail-main.wachat-page {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: visible;
}
.wachat-page {
  display: flex;
  flex-direction: column;
}
body.is-wachat-app .wachat-page:not(.panel) {
  flex: 1;
  min-height: 0;
  max-height: 100%;
  background: #e5ddd5;
}
.panel.listing-detail-main .wachat-shell {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: min(70vh, 640px);
  margin: 0;
  width: 100%;
}
.wachat-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 0 auto;
  width: 100%;
  background: #fff;
}
.wachat-chat-toolbar {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: #fafbfc;
}
.wachat-delete-chat-btn {
  border: 0;
  background: transparent;
  color: #9a3412;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  padding: 4px 2px;
  border-radius: 4px;
}
.wachat-delete-chat-btn:hover {
  color: #7f1d1d;
}
.wachat-delete-chat-btn:focus-visible {
  outline: 2px solid var(--secondary, #1f7ed0);
  outline-offset: 2px;
}
.wachat-thread {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 10px 16px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}
.wachat-row {
  display: flex;
  margin-bottom: 6px;
  align-items: flex-end;
  gap: 6px;
}
.wachat-row.bot {
  justify-content: flex-start;
}
.wachat-row.me {
  justify-content: flex-end;
}
.wachat-bubble-wrap {
  max-width: min(82%, 420px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.wachat-row.me .wachat-bubble-wrap {
  align-items: flex-end;
}
.wachat-bubble {
  border-radius: 10px;
  padding: 8px 11px 9px;
  font-size: 0.92rem;
  line-height: 1.45;
  word-break: break-word;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}
.wachat-bubble.bot {
  background: #fff;
  border: 1px solid rgba(212, 228, 244, 0.95);
  border-top-left-radius: 2px;
  color: #111;
}
.wachat-bubble.me {
  background: linear-gradient(
    180deg,
    rgba(31, 126, 208, 0.12) 0%,
    rgba(31, 126, 208, 0.08) 100%
  );
  border: 1px solid rgba(31, 126, 208, 0.22);
  border-top-right-radius: 2px;
  color: #111;
}
.wachat-open-copy-en {
  margin-top: 0.75em;
  padding-top: 0.75em;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
}
.wachat-input-bar-placeholder {
  pointer-events: none;
}
.wachat-input-bar-placeholder .wachat-attach-fake,
.wachat-input-bar-placeholder .wachat-send-fake {
  opacity: 0.45;
}
.wachat-input-bar-placeholder .wachat-input-placeholder-text {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-radius: 22px;
  border: 1px solid #e0e0e0;
  padding: 0 16px;
  font-size: 16px;
  line-height: 1.35;
  color: #8696a0;
  background: #fafafa;
}

.wachat-meta {
  font-size: 0.68rem;
  color: #667781;
  margin-top: 2px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  align-self: flex-end;
}
.wachat-row.bot .wachat-meta {
  align-self: flex-start;
}
.wachat-check {
  color: var(--secondary);
  letter-spacing: -2px;
  font-size: 0.75rem;
}
.wachat-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin-top: 6px;
  max-width: 220px;
}
.wachat-photo-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.wachat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.wachat-chip {
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--primary);
  font-weight: 500;
}
.wachat-chip:hover {
  background: #f3f9ff;
}
.wachat-chip.is-primary {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}
.wachat-chip.is-muted {
  opacity: 0.65;
}
.wachat-typing {
  display: inline-flex;
  gap: 4px;
  padding: 10px 14px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
}
.wachat-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8696a0;
  animation: wachatDot 1.2s infinite ease-in-out both;
}
.wachat-typing span:nth-child(2) {
  animation-delay: 0.15s;
}
.wachat-typing span:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes wachatDot {
  0%, 80%, 100% {
    opacity: 0.35;
    transform: scale(0.85);
  }
  40% {
    opacity: 1;
    transform: scale(1);
  }
}
.wachat-input-bar {
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, #f6f6f6 0%, #ececec 100%);
  border-top: 1px solid #c8c4bc;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.06);
  z-index: 20;
}
body.is-wachat-app {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
body.is-wachat-app .wachat-input-bar {
  position: relative;
}
.wachat-attach {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.wachat-input-bar textarea {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  max-height: 120px;
  resize: none;
  border-radius: 22px;
  border: 1px solid #d8d8d8;
  padding: 11px 16px;
  font: inherit;
  font-size: 16px;
  line-height: 1.35;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
  background: #fff;
}
.wachat-input-bar textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.04),
    0 0 0 2px rgba(31, 126, 208, 0.22);
}
.wachat-send {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: var(--secondary);
  color: #fff;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}
.wachat-send:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.wachat-preview-card {
  margin-top: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  font-size: 0.85rem;
  border: 1px solid #d1ccc4;
}
.wachat-preview-card h5 {
  margin: 0 0 6px;
  font-size: 0.95rem;
}
@media (max-width: 600px) {
  .wachat-photo-grid {
    max-width: 180px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* --- Listing create wizard (listing-create.php) --- */
.header-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.35);
  margin-right: 6px;
  flex-shrink: 0;
}
.header-add-btn:hover {
  filter: brightness(1.06);
  color: #fff;
}
.header-add-btn .header-icon svg {
  fill: currentColor;
}
.mobile-menu-nav--add {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.mobile-menu-add {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #0284c7;
}
.mobile-menu-add .header-icon svg {
  fill: currentColor;
}

/* Zelfde max-breedte als header (.container); smal = één kolom; ≥960px: formulier + sticky samenvatting. */
main.page-listing-create .listing-create-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
@media (min-width: 960px) {
  main.page-listing-create .listing-create-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(248px, 32%);
    gap: 0.5rem 0.85rem;
    align-items: start;
  }
  main.page-listing-create .listing-create-head {
    grid-column: 1 / -1;
  }
  main.page-listing-create .listing-create-panel {
    grid-column: 1;
    min-width: 0;
  }
  main.page-listing-create .listing-create-aside {
    grid-column: 2;
    position: sticky;
    top: 1rem;
    align-self: start;
  }
}
main.page-listing-create .listing-create-panel,
main.page-listing-create .listing-create-aside {
  width: 100%;
  box-sizing: border-box;
  margin-top: 0;
  margin-bottom: 0;
  padding: 10px 12px;
}
.listing-create-head {
  margin-bottom: 0.08rem;
}
main.page-listing-create .listing-create-head.section-head.compact p.small {
  margin-bottom: 0.28rem;
  line-height: 1.35;
  color: #64748b;
}
.listing-create-form-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.listing-create-block {
  padding: 0.28rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.listing-create-block:last-of-type {
  border-bottom: none;
}
.listing-create-block-title {
  margin: 0 0 0.1rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  color: #0f172a;
}
.listing-create-block-hint {
  margin: 0 0 0.18rem;
  font-size: 0.78rem;
  line-height: 1.32;
  color: #64748b;
}

main.page-listing-create .listing-create-auto-stack {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}
main.page-listing-create .listing-create-block--card {
  padding-bottom: 0;
  border-bottom: none;
}
main.page-listing-create .listing-create-card {
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 4px 14px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}
main.page-listing-create .listing-create-card-head {
  padding: 9px 12px 8px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
main.page-listing-create .listing-create-card-head .listing-create-block-title {
  margin: 0;
  font-size: 0.875rem;
}
main.page-listing-create .listing-create-card-body {
  padding: 10px 12px 12px;
  background: #f8fafc;
}
main.page-listing-create .listing-create-card-body > .listing-create-lock-msg {
  margin-top: 0;
  margin-bottom: 0.35rem;
}
main.page-listing-create .listing-create-card-body .listing-create-field-cell {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
main.page-listing-create .listing-create-card-body .listing-create-trim-col > .listing-create-field,
main.page-listing-create .listing-create-card-body .listing-create-trim-col > fieldset.listing-create-options-fieldset,
main.page-listing-create .listing-create-card-body .listing-create-trim-options > fieldset.listing-create-options-fieldset {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

main.page-listing-create .listing-create-aside.panel {
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 4px 14px rgba(15, 23, 42, 0.04);
  background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
}

/* Merk / bouwjaar / type op één rij (tablet+); op mobiel onder elkaar. */
main.page-listing-create .listing-create-fields-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem 0.5rem;
  margin-top: 0.1rem;
}
@media (min-width: 640px) {
  main.page-listing-create .listing-create-fields-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
}
main.page-listing-create .listing-create-field-cell {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}
main.page-listing-create .listing-create-field-step {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: #64748b;
}
main.page-listing-create .listing-create-field--inline {
  margin-top: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
main.page-listing-create .listing-create-field--inline .listing-create-select {
  margin-top: auto;
}
main.page-listing-create .listing-create-field span.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
main.page-listing-create .listing-create-trim-options {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
main.page-listing-create .listing-create-trim-col {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
main.page-listing-create .listing-create-trim-col > .listing-create-field,
main.page-listing-create .listing-create-trim-col > fieldset.listing-create-options-fieldset {
  margin: 0;
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  box-sizing: border-box;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}
main.page-listing-create .listing-create-trim-col .listing-create-options-fieldset {
  margin-top: 0;
}
main.page-listing-create .listing-create-trim-col [data-color-hint] {
  margin: 0.35rem 0 0;
  line-height: 1.35;
  color: #64748b;
}
@media (min-width: 880px) {
  main.page-listing-create .listing-create-trim-options {
    display: grid;
    grid-template-columns: minmax(168px, 28%) 1fr;
    gap: 0.5rem 0.85rem;
    align-items: start;
  }
  main.page-listing-create .listing-create-trim-options > fieldset[data-sub-tier='motor'],
  main.page-listing-create .listing-create-trim-options > fieldset[data-sub-tier='transmission'] {
    grid-column: 1 / -1;
  }
  main.page-listing-create .listing-create-options-fieldset {
    margin-top: 0;
  }
  main.page-listing-create .listing-create-field--trim {
    margin-top: 0;
  }
}
@media (min-width: 560px) {
  main.page-listing-create .listing-create-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0.75rem;
    row-gap: 0.45rem;
    align-content: start;
  }
  main.page-listing-create .listing-create-options > p.small,
  main.page-listing-create .listing-create-options > ul.listing-create-option-list {
    grid-column: 1 / -1;
  }
}
.listing-create-legend-as-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
  padding: 0;
  margin: 0 0 6px;
}
.listing-create-tier.is-locked {
  opacity: 0.48;
  pointer-events: none;
}
.listing-create-tier .listing-create-lock-msg {
  display: none;
}
.listing-create-tier.is-locked .listing-create-lock-msg {
  display: block;
}
.listing-create-subtier.is-locked {
  opacity: 0.48;
  pointer-events: none;
}
.listing-create-subtier .listing-create-lock-msg {
  display: none;
}
.listing-create-subtier.is-locked .listing-create-lock-msg {
  display: block;
}
.listing-create-lock-msg {
  margin: 0 0 0.18rem;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.3;
}
.listing-create-progress {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin-bottom: 0.12rem;
  flex-wrap: wrap;
}
.listing-create-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 0.15s, transform 0.15s;
}
.listing-create-dot.is-filled {
  background: #22c55e;
}
.listing-create-dot.is-active {
  background: #0284c7;
  transform: scale(1.2);
}
.listing-create-dot.is-filled.is-active {
  background: #0284c7;
}
.listing-create-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.listing-create-cat-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 5px;
  margin-top: 2px;
}
.listing-create-cat-card {
  text-align: left;
  padding: 7px 9px;
  border-radius: 7px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
a.listing-create-cat-card {
  display: block;
  color: inherit;
  text-decoration: none;
}
a.listing-create-cat-card:visited {
  color: inherit;
}
.listing-create-cat-card:hover {
  border-color: #0284c7;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.12);
}
.listing-create-cat-card.is-selected {
  border-color: #0284c7;
  background: rgba(14, 165, 233, 0.08);
}
.listing-create-cat-name {
  display: block;
  font-weight: 700;
  margin-bottom: 1px;
  font-size: 0.84rem;
}
.listing-create-cat-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.26;
}
.listing-new-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.75rem;
}
.listing-new-extras {
  border: 0;
  padding: 0;
  margin: 0.5rem 0 0;
}
.listing-create-field {
  display: block;
  margin-top: 8px;
}
.listing-create-field--compact {
  margin-top: 4px;
}
main.page-listing-create .listing-create-field > span:not(.visually-hidden) {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: #475569;
  letter-spacing: 0.01em;
}
main.page-listing-create .listing-create-select {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  min-height: 36px;
  padding: 6px 28px 6px 10px;
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.3;
  color: #0f172a;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px 6px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
main.page-listing-create .listing-create-select:hover:not(:disabled) {
  border-color: #94a3b8;
}
main.page-listing-create .listing-create-select:focus {
  outline: none;
}
main.page-listing-create .listing-create-select:focus-visible {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.22);
}
main.page-listing-create .listing-create-select:disabled {
  opacity: 0.78;
  cursor: not-allowed;
  background-color: #f1f5f9;
  color: #64748b;
  box-shadow: none;
}
.listing-create-toolbar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0.35rem;
  padding-top: 0.42rem;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
}
.listing-create-options-fieldset {
  margin-top: 0.55rem;
  border: none;
  padding: 0;
  min-width: 0;
}
.listing-create-options-fieldset legend {
  padding: 0;
  margin-bottom: 4px;
}
.listing-create-options {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: min(40vh, 248px);
  overflow: auto;
  padding: 1px 0;
}
@media (min-width: 960px) {
  main.page-listing-create .listing-create-options {
    max-height: min(46vh, 288px);
  }
}
.listing-create-option {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 0.8125rem;
  line-height: 1.35;
  cursor: pointer;
  color: #334155;
}
.listing-create-option input {
  margin-top: 2px;
  accent-color: #0284c7;
}
.listing-create-option-list {
  margin: 0 0 0.2rem;
  padding-left: 1.15rem;
  font-size: 0.8125rem;
  color: #475569;
  line-height: 1.38;
}
.listing-create-aside h3 {
  margin-top: 0;
  margin-bottom: 0.28rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0f172a;
}
.listing-create-summary {
  font-size: 0.8125rem;
  color: #475569;
  line-height: 1.45;
}
.listing-create-summary-line {
  margin: 0 0 0.28rem;
}
