:root {
  --ebay-red: #ff1f1f;
  --ebay-blue: #0057ff;
  --ebay-yellow: #ffb600;
  --ebay-green: #80c41c;
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-soft: #f7fafb;
  --panel-muted: #eef5f6;
  --panel-border: #d5e0e2;
  --ink: #191919;
  --muted: #707070;
  --line: #e5e5e5;
  --baydar-navy: #07164b;
  --baydar-teal: #119c95;
  --baydar-teal-dark: #087772;
  --baydar-teal-soft: #dff5f2;
  --accent: var(--baydar-teal);
  --accent-dark: var(--baydar-teal-dark);
  --green: #dfeee5;
  --green-ink: #185a34;
  --yellow: #fff4ce;
  --yellow-ink: #7a4d00;
  --red: #f8d7da;
  --red-ink: #8a1f2d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.public-marketing-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
  padding: 10px 28px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.public-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.public-logo-img {
  height: 40px;
  max-width: 220px;
  padding-left: 0;
}

.public-top-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}

.public-top-nav a,
.public-signin-link {
  color: var(--baydar-navy);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 6px 7px;
}

.public-preview-link,
.public-preview-nav-link {
  color: var(--baydar-teal-dark);
  font-weight: 600;
}

.public-top-nav a:not([data-public-section]).active {
  color: var(--baydar-teal-dark);
}

.public-top-nav a[data-public-section].active {
  color: var(--baydar-teal-dark);
  font-weight: 600;
}

.public-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: none;
}

.public-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--baydar-navy);
  background: var(--baydar-navy);
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 650;
  line-height: 1;
}

.shell-home .public-marketing-header {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(130%) blur(6px);
  -webkit-backdrop-filter: saturate(130%) blur(6px);
}

.shell-home .app-header,
.shell-home .sidebar {
  display: none;
}

.shell-home .app-shell {
  grid-template-columns: minmax(0, 1fr);
  min-height: calc(100vh - 70px);
}

.shell-home main {
  padding: 0;
}

.shell-home [id^="home-"] {
  scroll-margin-top: 90px;
}

.ebay-header {
  height: 74px;
  display: grid;
  grid-template-columns: 300px minmax(260px, 460px) 110px;
  gap: 14px;
  align-items: center;
  padding: 10px 48px 10px 0;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.header-logo-img {
  display: block;
  height: 38px;
  width: auto;
  max-width: 200px;
  padding-left: 40px;
}

.logo-trials {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 2px;
}

.plain-brand {
  display: grid;
  align-content: center;
  gap: 4px;
}

.plain-brand strong {
  color: var(--baydar-navy);
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: 0;
}

.plain-brand span {
  color: var(--muted);
  font-size: 12px;
}

.logo-option {
  display: grid;
  gap: 2px;
}

.active-logo {
  padding-right: 18px;
  border-right: 1px solid var(--line);
}

.logo-label {
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
}

.wordmark {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  width: max-content;
  font-size: 50px;
  line-height: 0.82;
  font-weight: 700;
  letter-spacing: 0;
  font-family: Arial, Helvetica, sans-serif;
}

.wordmark span {
  display: inline-block;
  margin-left: -6px;
}

.wordmark span:first-child {
  margin-left: 0;
}

.wordmark .b { color: var(--ebay-blue); }
.wordmark .a { color: var(--ebay-yellow); }
.wordmark .y { color: var(--ebay-green); }
.wordmark .d { color: var(--ebay-red); }
.wordmark .a2 { color: var(--ebay-yellow); }
.wordmark .r {
  color: var(--ebay-green);
  transform: scaleX(1.14);
  transform-origin: left bottom;
}

.flipped-b {
  transform: scaleX(-1);
  transform-origin: center bottom;
  margin-left: -10px;
  margin-right: -3px;
}

.wordmark .a2 {
  margin-left: -4px;
}

.wordmark .r {
  margin-left: -5px;
}

.signal-mark {
  width: 38px;
  height: 38px;
  margin-left: -1px;
  margin-bottom: -3px;
  overflow: visible;
}

.signal-mark path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.signal-thick path {
  stroke-width: 8.2;
}

.signal-fine path {
  stroke-width: 1.8;
}

.signal-dual {
  width: 48px;
}

.signal-dual path {
  stroke-width: 6.8;
  opacity: 0.46;
}

.stroke-red,
.dual-red { stroke: var(--ebay-red); }
.stroke-blue,
.dual-blue { stroke: var(--ebay-blue); }
.stroke-yellow,
.dual-yellow { stroke: var(--ebay-yellow); }
.stroke-green,
.dual-green { stroke: var(--ebay-green); }

.global-search {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  height: 42px;
  border: 1px solid #191919;
  border-radius: 22px;
  overflow: hidden;
}

.global-search span {
  color: var(--muted);
  text-align: center;
  font-size: 22px;
}

.global-search input {
  height: 100%;
  border: 0;
  background: #ffffff;
  font-size: 14px;
  outline: none;
}

.search-button {
  height: 42px;
  border-radius: 22px;
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  font-weight: 700;
  font-size: 17px;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 1px solid var(--line);
  background: #f8fafc;
  color: var(--ink);
  min-height: 36px;
  padding: 0 12px;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  border-color: var(--accent);
}

button.primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

button.primary:hover {
  background: var(--accent-dark);
}

button.secondary,
.button-link {
  background: #ffffff;
  color: var(--accent-dark);
  border-color: var(--accent);
}

button.danger {
  color: var(--red-ink);
  border-color: #e4a6ae;
  background: #ffffff;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #f0b429;
  outline-offset: 2px;
}

.app-shell {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
}

.sidebar {
  background: #ffffff;
  color: var(--ink);
  padding: 18px 0 22px 0;
  position: sticky;
  top: 0;
  height: calc(100vh - 74px);
  overflow-y: auto;
}

.sidebar h1,
.sidebar p,
.topbar h2,
.topbar p,
.panel h3 {
  margin: 0;
}

.sidebar-logo {
  display: block;
  width: 225px;
  max-width: 100%;
  height: auto;
  margin-bottom: 12px;
}

.logo-home {
  display: block;
  border: 0;
  background: transparent;
  padding: 0;
  min-height: 0;
}

.logo-home:hover {
  border: 0;
}

.sidebar-subtitle {
  max-width: 210px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 24px;
}

.topbar p {
  color: var(--muted);
  margin-top: 3px;
}

.nav {
  display: grid;
  gap: 6px;
  margin-bottom: 28px;
}

.nav a {
  color: #333333;
  text-decoration: none;
  padding: 11px 20px;
  margin-right: 18px;
  font-weight: 700;
  font-size: 17px;
}

.nav a:hover,
.nav a.active {
  background: var(--baydar-teal-soft);
  color: var(--baydar-navy);
  text-decoration: underline;
}

.nav-section-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 10px 20px 2px;
  pointer-events: none;
  user-select: none;
}

.nav-diagnostics {
  margin-right: 18px;
  margin-top: 14px;
  border-top: 1px solid #e8e8e8;
  padding-top: 6px;
}

.nav-diagnostics-summary {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #aaaaaa;
  padding: 6px 20px 4px;
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.nav-diagnostics-summary::-webkit-details-marker {
  display: none;
}

.nav-diagnostics-summary::after {
  content: " ▸";
  font-size: 9px;
}

.nav-diagnostics[open] .nav-diagnostics-summary::after {
  content: " ▾";
}

.nav-diagnostics a {
  display: block;
  color: #888888;
  text-decoration: none;
  padding: 7px 20px 7px 28px;
  font-weight: 500;
  font-size: 14px;
}

.nav-diagnostics a:hover,
.nav-diagnostics a.active {
  background: var(--baydar-teal-soft);
  color: var(--baydar-navy);
  text-decoration: underline;
}

.diag-page-label {
  font-size: 12px;
  color: #aaaaaa;
  font-style: italic;
}

.browse-smoke-status {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}

.developer-status {
  margin-right: 18px;
  color: var(--muted);
  font-size: 13px;
}

.developer-status summary {
  cursor: pointer;
  font-weight: 700;
  color: #555555;
  margin-bottom: 10px;
}

.developer-status button {
  width: 100%;
  margin-top: 8px;
  color: #555555;
  background: #f7f7f7;
}

.status-panel {
  display: grid;
  gap: 10px;
  font-size: 13px;
}

.status-line {
  border: 1px solid var(--panel-border);
  border-left: 3px solid #c5cbd3;
  border-radius: 8px;
  padding: 10px;
  background: var(--panel-soft);
}

.status-line span {
  display: block;
  color: var(--muted);
  margin-bottom: 3px;
}

main {
  min-width: 0;
  padding: 28px 44px 56px 28px;
}

.shell-app main {
  background:
    radial-gradient(760px 760px at -180px 120px, rgba(21, 159, 140, 0.045), rgba(21, 159, 140, 0) 70%),
    linear-gradient(180deg, rgba(7, 22, 75, 0.014), rgba(7, 22, 75, 0));
}

.app-view {
  display: none;
}

.app-view.active {
  display: block;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.topbar h2 {
  font-size: 23px;
  line-height: 1.16;
}

.topbar p {
  font-size: 14.5px;
  line-height: 1.46;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.summary-grid,
.workspace-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.workspace-grid {
  grid-template-columns: minmax(360px, 0.8fr) minmax(420px, 1.2fr);
}

.import-grid {
  align-items: start;
}

.import-intro {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 4px;
}

.import-intro h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.import-intro p {
  max-width: 920px;
  margin: 4px 0 0;
  color: var(--muted);
}

.import-paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.import-path {
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 14px 14px 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-shadow: 0 8px 20px -22px rgba(14, 23, 38, 0.24);
}

.import-path strong,
.import-path span {
  display: block;
}

.import-path span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.import-path.active {
  border-color: #3db8b0;
  background: #f5faf9;
}

.import-path-status {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #eef5f6;
  color: #39535b;
}

.import-path.state-connected {
  border-color: #2f9a8d;
  background: #f2faf8;
}

.import-path.state-connected .import-path-status {
  background: #dff5ef;
  color: #0f6f63;
}

.import-path.state-connecting .import-path-status {
  background: #eaf4ff;
  color: #285987;
}

.import-path.state-unavailable,
.import-path.state-error {
  border-color: #d7dce2;
  background: #f8f9fb;
}

.import-path.state-unavailable .import-path-status,
.import-path.state-error .import-path-status {
  background: #f0f2f5;
  color: #55606d;
}

.import-path button {
  align-self: flex-start;
  margin-top: auto;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.import-path.disabled {
  background: #f4f7f8;
  color: #888;
  border-color: var(--line);
}

.import-path.disabled strong {
  color: #666;
}

.import-flow-state {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.import-flow-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: #314856;
  font-weight: 600;
}

.import-flow-line {
  flex-basis: 100%;
  line-height: 1.4;
}

.faq-panel {
  margin: 24px 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.faq-grid details,
.settings-block {
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 16px;
  background: var(--panel-soft);
}

.faq-grid summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-grid p,
.settings-block p {
  margin: 8px 0 0;
  color: var(--muted);
}

.settings-block {
  margin-bottom: 12px;
  background: #fff;
  box-shadow: 0 10px 24px -22px rgba(14, 23, 38, 0.3);
}

.help-contact {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.settings-block h4 {
  margin: 0;
}

.disabled-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.metric,
.panel {
  background: var(--panel);
}

.metric {
  padding: 18px 20px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.metric strong {
  font-size: 24px;
}

.panel {
  padding: 0;
  margin-bottom: 14px;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  box-shadow: 0 12px 30px -24px rgba(14, 23, 38, 0.25);
  overflow: hidden;
}

.panel-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--panel-border);
  background: linear-gradient(180deg, #ffffff, #f9fbfc);
}

.panel-head h3 {
  font-size: 19px;
  line-height: 1.22;
  font-weight: 640;
}

.saved-search-toolbar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 8px 0 16px;
}

.search-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.search-filter-group {
  display: flex;
  gap: 3px;
}

.search-filter-btn {
  padding: 4px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--muted);
  white-space: nowrap;
}
.search-filter-btn:hover { background: var(--panel-muted); }
.search-filter-btn.active {
  background: var(--baydar-teal);
  color: #fff;
  border-color: var(--baydar-teal);
}

.search-filter-reset {
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  color: var(--muted);
}
.search-filter-reset:hover { background: var(--panel-muted); }

.sort-control {
  min-height: 34px;
  border-radius: 22px;
  background: #f7f7f7;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  color: var(--muted);
  font-size: 12px;
}

.sort-control select {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}

.saved-search-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.view-mode-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.view-mode-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  min-height: 32px;
  padding: 0 11px;
  font-size: 12px;
  border-radius: 0;
}

.view-mode-btn + .view-mode-btn {
  border-left: 1px solid var(--line);
}

.view-mode-btn.active {
  background: var(--baydar-teal-soft);
  color: var(--baydar-teal-dark);
  font-weight: 700;
}

.marketplace-coverage-select {
  opacity: 0.85;
}

.marketplace-coverage-select select:disabled {
  color: var(--muted);
  cursor: default;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.panel h3 {
  font-size: 16px;
}

.search-form,
.url-import-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.search-form label,
.url-import-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.form-wide {
  grid-column: 1 / -1;
}

.search-form input,
.search-form select,
.search-form textarea,
.url-import-form input,
.url-import-form select,
.url-import-form textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--ink);
  background: #ffffff;
}

.url-import-form {
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 14px 18px 16px;
}

.url-import-form textarea {
  resize: vertical;
  line-height: 1.4;
  min-height: 60px;
  max-height: 180px;
}

.search-form button,
.url-import-form button {
  grid-column: 1 / -1;
}

.import-form-panel {
  grid-column: 1 / -1;
}

.import-form-panel .panel-head {
  padding: 12px 18px;
}

.import-form-panel h3 {
  font-size: 17px;
}

.url-import-form label {
  gap: 5px;
  font-size: 13px;
}

.url-import-form input,
.url-import-form textarea {
  min-height: 36px;
  padding: 7px 10px;
}

.url-import-form button.primary {
  min-height: 34px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
}

.advanced-filters {
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel-soft);
}

.advanced-filters > summary {
  cursor: pointer;
  color: var(--baydar-navy);
  font-weight: 700;
}

.search-list {
  display: grid;
  gap: 4px;
  padding: 4px 0 2px;
}

.search-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 5px 6px;
  background: #fff;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 216px;
  gap: 6px;
  align-items: center;
}

.search-card:hover {
  border-color: var(--panel-border);
  box-shadow: 0 14px 28px -24px rgba(21, 34, 52, 0.32);
}

.search-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.search-card h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
}

.search-thumb {
  width: 56px;
  height: 56px;
  border-radius: 9px;
  background: #f7f7f7;
  display: grid;
  place-items: center;
  color: #8a8a8a;
  font-size: 34px;
  overflow: hidden;
  border: 0;
  padding: 0;
}

.search-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #9aa1aa;
  background: #f2f4f5;
}

.cat-tile {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  border-radius: 10px;
}
.cat-watch  { background: linear-gradient(135deg, #b8975a, #9a7c48); }
.cat-tech   { background: linear-gradient(135deg, #2d7dd2, #1f62b0); }
.cat-gaming { background: linear-gradient(135deg, #7c4fc4, #6340a8); }
.cat-camera { background: linear-gradient(135deg, #8b6952, #7a5c44); }
.cat-bike   { background: linear-gradient(135deg, #3d8c5e, #32784f); }
.cat-vehicle { background: linear-gradient(135deg, #2b4a7a, #1f3860); }
.cat-home   { background: linear-gradient(135deg, #c4647a, #ad5268); }
.cat-office { background: linear-gradient(135deg, #4a637c, #3b5268); }
.cat-audio  { background: linear-gradient(135deg, #5c5fc4, #4a4daa); }
.cat-default { background: linear-gradient(135deg, #6b7280, #555d6b); }

.search-open-target,
.title-link {
  cursor: pointer;
}

.title-link {
  border: 0;
  background: transparent;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-align: left;
}

.title-link:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.search-main {
  display: grid;
  gap: 1px;
}

.meta {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
}

.card-actions {
  display: grid;
  gap: 4px;
  align-content: center;
}

.action-open {
  min-height: 28px;
  font-size: 12px;
  padding: 0 9px;
}

.compact-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.compact-row-actions .compact {
  min-height: 26px;
  padding: 0 7px;
  font-size: 11px;
}

.compact-more {
  margin-left: auto;
}

.compact-more summary {
  min-height: 26px;
  padding: 0 8px;
  font-size: 11px;
}

.more-actions {
  position: relative;
}

.more-actions summary {
  cursor: pointer;
  min-height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  list-style: none;
  font-size: 12px;
  padding: 0 10px;
}

.more-actions[open] {
  z-index: 5;
}

.more-actions[open] summary {
  border-color: var(--accent);
}

.more-actions button {
  width: 100%;
  margin-top: 4px;
  background: #ffffff;
  min-height: 28px;
  font-size: 11.5px;
}

.edit-form {
  grid-column: 1 / -1;
  display: none;
  gap: 10px;
  margin-top: 10px;
  padding: 12px;
  background: var(--panel-soft);
  border: 1px solid var(--panel-border);
}

.search-card.editing .edit-form {
  display: grid;
}

.edit-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 0 14px 14px;
  margin: 12px 0;
  background: var(--panel-muted);
}

.edit-section h4 {
  grid-column: 1 / -1;
  color: var(--baydar-navy);
  font-weight: 700;
  font-size: 14px;
  margin: 0 -14px 4px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--panel-border);
  background: #f6fbfc;
  border-radius: 8px 8px 0 0;
}

.edit-form label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
}

.edit-form input,
.edit-form select,
.edit-form textarea {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 9px;
  background: #ffffff;
  color: var(--ink);
}

.edit-form .wide {
  grid-column: 1 / -1;
}

.field-help {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: flex-start;
  min-width: 160px;
}

.row-actions button,
.row-actions .button-link {
  min-height: 30px;
  padding: 0 8px;
  font-size: 12px;
  display: inline-grid;
  place-items: center;
  text-align: center;
  text-decoration: none;
}

.selected-action {
  background: var(--baydar-teal-soft);
  color: var(--baydar-teal-dark);
  border-color: var(--baydar-teal);
  font-weight: 700;
}

.row-actions .compact {
  flex-basis: 100%;
}

.inline-status {
  display: inline-flex;
  margin-top: 6px;
  flex-basis: 100%;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  padding: 2px 8px;
  background: #e6eef6;
  color: #23435f;
  font-size: 11px;
  white-space: nowrap;
}

.pill.live,
.pill.alert {
  background: var(--baydar-teal-soft);
  color: var(--baydar-teal-dark);
}

button.pill.pill-link {
  border: none;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
}
button.pill.pill-link:hover { opacity: 0.8; }

.pill.mock,
.pill.dev {
  background: #eeeeee;
  color: #555555;
}

.updates-panel {
  margin: 18px 0 22px;
  max-width: 980px;
}

.updates-panel .panel-head {
  padding: 12px 16px;
}

.updates-panel .panel-head h3 {
  font-size: 18px;
}

.new-results-intro {
  padding: 12px 16px 8px;
  border-bottom: 1px solid #eaf0f2;
  background: linear-gradient(180deg, #fbfdfe, #ffffff);
}

.new-results-intro .page-explainer {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #5f6f76;
}

.update-list {
  display: grid;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 0;
}

.update-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 140px;
  gap: 12px;
  align-items: start;
  padding: 10px;
  border: 1px solid #e6edf0;
  border-radius: 10px;
  background: #ffffff;
}

.update-row a,
.update-row span {
  display: block;
}

.update-row .result-thumb {
  display: grid;
  place-items: center;
}

.clickable {
  cursor: pointer;
}

.update-row a {
  color: var(--ink);
  text-decoration: none;
  margin: 3px 0;
}

.update-row a:hover {
  text-decoration: underline;
}

.pill.digest {
  background: var(--yellow);
  color: var(--yellow-ink);
}

.pill.suppress {
  background: var(--red);
  color: var(--red-ink);
}

.feed-table-wrap {
  overflow: auto;
}

.matches-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  align-items: center;
  padding: 11px 13px;
  margin-bottom: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfd;
  color: var(--muted);
  font-size: 13px;
}

.matches-summary-main {
  color: var(--ink);
  font-weight: 700;
}

.matches-title {
  width: 100%;
  color: var(--baydar-navy);
  font-size: 18px;
  font-weight: 800;
}

.matches-help {
  width: 100%;
  margin: 0;
  color: var(--muted);
}

.matches-summary-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.matches-summary-counts span,
.match-filters button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 9px;
  background: #f8fafb;
  color: var(--muted);
  min-height: 28px;
  font-size: 12px;
}

.match-filters button.active {
  border-color: var(--baydar-teal);
  background: var(--baydar-teal-soft);
  color: var(--baydar-teal-dark);
}

.feed-table {
  width: 100%;
  min-width: 1020px;
  border-collapse: collapse;
}

/* drill-down column widths: Item flex | Price fixed | Reasons min | Status fixed | eBay fixed | Actions min */
.feed-table td:nth-child(2),
.feed-table th:nth-child(2) { width: 72px; white-space: nowrap; }
.feed-table td:nth-child(4),
.feed-table th:nth-child(4) { width: 72px; }
.feed-table td:nth-child(6),
.feed-table th:nth-child(6) { min-width: 160px; }

.feed-table th,
.feed-table td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 9px;
  vertical-align: top;
}

.feed-table tbody tr:hover {
  background: #fbfcfd;
}

.feed-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.match-group-row strong {
  display: block;
  margin-bottom: 4px;
}

.match-group-row {
  cursor: pointer;
}

.match-group-row:hover {
  background: var(--panel-soft);
}

.match-group-title {
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  min-height: 0;
  padding: 0;
  font-weight: 800;
  text-align: left;
}

.match-group-title:hover {
  text-decoration: underline;
}

.match-group-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.match-group-inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.match-group-thumb {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--panel-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.match-group-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.match-group-initials {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-dark);
  opacity: 0.7;
}

.match-cat-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  border-radius: 6px;
}

.match-group-text {
  flex: 1;
  min-width: 0;
}

.lp-feature-trust-note {
  font-size: 13px;
  color: var(--lp-ink-4);
  text-align: center;
  margin-top: 20px;
}

.page-explainer {
  margin: 0 0 14px;
  color: var(--muted);
}

.listing-cell {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.result-thumb {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  overflow: hidden;
  background: #f2f4f5;
}

.result-thumb.small {
  width: 52px;
  height: 52px;
}

.result-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pill.subtle {
  display: inline-flex;
  margin-left: 6px;
  padding: 2px 6px;
  font-size: 11px;
}

.listing-link {
  color: var(--accent-dark);
  font-weight: 650;
  text-decoration: none;
}

.listing-link:hover {
  text-decoration: underline;
}

.event-list {
  display: grid;
  gap: 8px;
}

.learning-list {
  display: grid;
  gap: 10px;
}

.learning-item {
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 12px;
  background: var(--panel-soft);
}

.learning-item strong {
  display: block;
  margin-bottom: 4px;
}

.learning-item span {
  color: var(--muted);
}

.event {
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 10px;
  background: var(--panel-soft);
}

.event.warning {
  background: #fff8e6;
  border-color: #f0c36a;
}

.event.danger {
  background: #fff0f0;
  border-color: #e89595;
}

.event strong {
  display: block;
  margin-bottom: 4px;
}

.api-readiness-panel {
  margin: 24px 0 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #555555;
}

.search-detail-panel {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  margin: 16px 0 28px;
}

.detail-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.detail-head h3 {
  font-size: 28px;
  margin: 4px 0;
}

.detail-head p {
  margin: 0;
  color: var(--muted);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.back-link {
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  padding: 0;
  min-height: 0;
}

.button-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--ink);
  text-decoration: none;
  background: #f8fafc;
}

.button-link:hover {
  border-color: var(--accent);
}

.detail-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.metric.mini {
  padding: 10px 0;
}

.metric.mini strong {
  display: block;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(360px, 0.8fr);
  gap: 20px;
  margin-bottom: 20px;
}

.detail-grid h4,
.result-section h4 {
  margin: 0 0 10px;
}

.filter-table {
  display: grid;
  border-top: 1px solid var(--line);
}

.filter-table div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.filter-table strong,
.filter-table span,
.filter-table em {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.filter-table span,
.filter-table em {
  color: var(--muted);
  font-style: normal;
}

.filter-status {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  margin-right: 6px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.filter-status-preserved { background: var(--green); color: var(--green-ink); }
.filter-status-weak { background: var(--yellow); color: var(--yellow-ink); }
.filter-status-missing { background: var(--panel-muted); color: var(--muted); }
.filter-status-unmapped { background: var(--baydar-teal-soft); color: var(--baydar-teal-dark); }

.api-preview.compact {
  min-height: 180px;
}

.result-sections {
  display: grid;
  gap: 18px;
}

/* ── Dry-run search selector ─────────────────────────────────── */

.dry-run-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0 4px;
}

.dry-run-select-label {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.dry-run-select-label select {
  font-size: 12px;
  padding: 3px 6px;
  border: 1px solid var(--panel-border);
  border-radius: 5px;
  background: var(--panel-soft);
}

/* ── Browse readiness panel (Account page) ───────────────────── */

.browse-readiness-notice {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0 8px;
  font-style: italic;
}

.browse-readiness-rows {
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
}

.browse-readiness-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px;
  font-size: 13px;
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
}

.browse-readiness-row span:first-child {
  color: var(--muted);
  font-weight: 500;
}

.browse-status-ok { color: var(--green, #2a7a2a); font-weight: 600; }
.browse-status-off { color: var(--muted); }

.browse-readiness-blockers {
  margin: 6px 0;
  padding-left: 18px;
  font-size: 12px;
  color: var(--muted);
}

.browse-readiness-next-step {
  font-size: 12px;
  margin: 8px 0 0;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--panel-muted, #f5f5f5);
}

.browse-readiness-next-step.browse-readiness-ok { border-left: 3px solid var(--green, #2a7a2a); }
.browse-readiness-next-step.browse-readiness-blocked { border-left: 3px solid var(--panel-border); }

.browse-token-expired-notice {
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  padding: 6px 10px;
  border-radius: 6px;
  margin: 4px 0 8px;
  font-size: 12px;
  font-style: normal;
}

.browse-readiness-checklist {
  display: grid;
  gap: 2px;
  margin: 6px 0 10px;
}

.browse-readiness-check {
  font-size: 12px;
  padding: 1px 0;
}

.browse-readiness-check-done { color: var(--green, #2a7a2a); }
.browse-readiness-check-warn { color: #92400e; }
.browse-readiness-check-pending { color: var(--muted); }
.browse-readiness-check-blocked { color: #c0392b; }

/* ── Browse query mapping panel (search detail) ──────────────── */

.browse-query-breakdown {
  margin: 0 0 18px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.browse-query-breakdown summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  user-select: none;
}

.browse-conf-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 10px;
}

.browse-conf-high { background: var(--green, #d1fad1); color: #1a5c1a; }
.browse-conf-medium { background: var(--yellow, #fef3c7); color: #7c5700; }
.browse-conf-low { background: #fee2e2; color: #7c1f1f; }

.browse-query-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 10px;
}

.browse-query-col h5 {
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.browse-filter-item {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.browse-filter-item code {
  font-size: 11px;
  background: var(--panel-soft);
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--muted);
  word-break: break-all;
}

.browse-filter-item.local .browse-filter-name { color: var(--muted); }

.browse-filter-name {
  font-weight: 500;
  min-width: 120px;
  flex-shrink: 0;
}

.browse-query-warn {
  margin-top: 8px;
  font-style: italic;
}

.browse-query-footer {
  margin-top: 6px;
  font-style: italic;
  border-top: 1px solid var(--line);
  padding-top: 6px;
}

.result-section {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.result-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.result-row a {
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}

.result-row a:hover {
  text-decoration: underline;
}

.technical-details {
  margin-top: 18px;
  color: var(--muted);
}

.technical-details summary {
  cursor: pointer;
  font-weight: 700;
}

.api-preview {
  margin: 12px 0 0;
  padding: 12px;
  min-height: 96px;
  overflow: auto;
  background: #f7f7f7;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #252525;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.diagnostic-title {
  color: #111827;
  font-weight: 700;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #12202f;
  color: #ffffff;
  border-radius: 8px;
  padding: 12px 14px;
  max-width: 420px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .public-marketing-header {
    min-height: auto;
    padding: 12px 18px;
    align-items: flex-start;
    flex-direction: column;
  }

  .public-top-nav {
    gap: 8px;
  }

  .public-header-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .public-header-cta {
    font-size: 15px;
    padding: 8px 14px;
  }

  .ebay-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    height: auto;
    padding: 12px 18px;
  }

  .header-logo-img {
    height: 32px;
    padding-left: 0;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 14px 18px;
  }

  .summary-grid,
  .workspace-grid,
  .import-paths,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
  }

  .search-card {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .card-actions {
    grid-column: 2;
  }

  .saved-search-controls {
    width: 100%;
    justify-content: flex-start;
  }

  .search-list-grid {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-wrap: wrap;
  }

  .updates-panel {
    max-width: none;
  }

  .new-results-header {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 640px) {
  main {
    padding: 14px;
  }

  .global-search {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .search-form {
    grid-template-columns: 1fr;
  }

  .search-card {
    grid-template-columns: 1fr;
  }

  .search-thumb,
  .card-actions {
    grid-column: auto;
  }

  .compact-more {
    margin-left: 0;
  }
}

/* ── Import review view ─────────────────────────────────────── */

.review-safety-banner {
  background: var(--yellow);
  color: var(--yellow-ink);
  border: 1px solid #e8d08a;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 13px;
  margin-bottom: 16px;
  text-align: center;
}

.review-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.review-metric {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.review-metric span {
  font-size: 12px;
  color: var(--muted);
}

.review-metric strong {
  font-size: 26px;
  font-weight: 700;
}

.review-metric-ready strong { color: var(--green-ink); }
.review-metric-partial strong { color: var(--yellow-ink); }
.review-metric-blocked strong { color: var(--red-ink); }

.review-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.review-filter-group {
  display: flex;
  gap: 4px;
}

.review-filter-btn {
  border: 1px solid var(--panel-border);
  background: var(--panel);
  border-radius: 5px;
  padding: 5px 11px;
  font-size: 12px;
  cursor: pointer;
  color: var(--muted);
  line-height: 1.4;
  transition: background 0.1s, color 0.1s, border-color 0.1s;
}

.review-filter-btn.active,
.review-filter-btn:hover {
  background: var(--baydar-teal-soft);
  color: var(--baydar-teal-dark);
  border-color: var(--baydar-teal-dark);
}

.review-filter-search {
  flex: 1;
  min-width: 160px;
  border: 1px solid var(--panel-border);
  border-radius: 5px;
  padding: 5px 10px;
  font-size: 13px;
  background: var(--panel);
  color: var(--ink);
}

.review-filter-count {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-card-ready { border-left: 4px solid var(--green-ink); }
.review-card-partial { border-left: 4px solid var(--yellow-ink); }
.review-card-blocked { border-left: 4px solid var(--red-ink); }

.review-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.review-card-name {
  font-weight: 600;
  font-size: 14px;
}

.review-pill-ready { background: var(--green); color: var(--green-ink); }
.review-pill-partial { background: var(--yellow); color: var(--yellow-ink); }
.review-pill-blocked { background: var(--red); color: var(--red-ink); }

.review-card-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.review-field {
  background: var(--panel-soft);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 12px;
  display: inline-flex;
  gap: 5px;
  align-items: baseline;
}

.review-field-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.review-card-aspects,
.review-card-unknown,
.review-card-ignored,
.review-card-unmapped {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 13px;
}

.review-section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.aspect-tag {
  background: var(--baydar-teal-soft);
  color: var(--baydar-teal-dark);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 12px;
}

.mapped-aspect-tag {
  background: #d1fae5;
  color: #065f46;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 12px;
  border: 1px solid #6ee7b7;
}

.aspect-field-arrow {
  opacity: 0.6;
  font-size: 11px;
}

.unknown-tag {
  background: var(--yellow);
  color: var(--yellow-ink);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 12px;
}

.review-card-ignored,
.review-card-unmapped {
  font-size: 12px;
  color: var(--muted);
}

.review-card-reasons {
  margin: 0;
  padding: 0 0 0 16px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.review-card-suggestion {
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.review-card-triage {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.triage-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  color: var(--muted);
  transition: background 0.1s, color 0.1s, border-color 0.1s;
}

.triage-btn:hover {
  background: var(--hover);
  color: var(--ink);
}

.triage-approve-btn.active {
  background: #d1fae5;
  color: #065f46;
  border-color: #6ee7b7;
}

.triage-skip-btn.active {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #93c5fd;
}

.triage-flag-btn.active {
  background: #fef3c7;
  color: #92400e;
  border-color: #fcd34d;
}

.review-card.triage-approve {
  border-left-color: #10b981;
}

.review-card.triage-skip {
  border-left-color: #3b82f6;
}

.review-card.triage-flag {
  border-left-color: #f59e0b;
}

.triage-summary-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--surface-alt);
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 10px;
}

.triage-label {
  color: var(--muted);
  font-weight: 500;
}

.triage-stat {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.triage-stat.triage-approve {
  background: #d1fae5;
  color: #065f46;
}

.triage-stat.triage-skip {
  background: #eff6ff;
  color: #1d4ed8;
}

.triage-stat.triage-flag {
  background: #fef3c7;
  color: #92400e;
}

.triage-reset-btn {
  margin-left: auto;
  border: 1px solid var(--line);
  background: none;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 12px;
  cursor: pointer;
  color: var(--muted);
}

.triage-reset-btn:hover {
  background: var(--hover);
  color: var(--ink);
}

.drawer-triage-section .drawer-triage-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

@media (max-width: 700px) {
  .review-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Import staging ──────────────────────────────────────────── */

.review-selection-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--panel-soft);
  border: 1px solid var(--panel-border);
  border-radius: 7px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.selection-count {
  font-size: 13px;
  color: var(--muted);
  flex: 1;
}

.review-card.selected {
  outline: 2px solid var(--baydar-teal-dark);
  outline-offset: -1px;
}

.review-card-select {
  display: flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.review-card-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--baydar-teal-dark);
}

.import-queue-panel {
  background: var(--panel-muted);
  border: 2px solid var(--baydar-teal-dark);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.import-queue-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.import-queue-header h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.import-queue-badge {
  display: inline-block;
  background: var(--baydar-teal-dark);
  color: #fff;
  border-radius: 10px;
  padding: 1px 8px;
  font-size: 12px;
  font-weight: 700;
  margin-left: 4px;
}

.import-queue-note {
  font-size: 12px;
  color: var(--baydar-teal-dark);
  font-weight: 600;
  margin: 0;
}

.import-queue-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.disabled-action {
  opacity: 0.55;
  cursor: not-allowed;
}

.import-queue-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.queue-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--green-ink);
  margin: 8px 0 4px;
}

.queue-section-caution {
  color: var(--yellow-ink);
}

.queue-item {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-left: 3px solid var(--panel-border);
  border-radius: 6px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.queue-item-ready  { border-left-color: var(--green-ink); }
.queue-item-partial { border-left-color: var(--yellow-ink); }
.queue-item-blocked { border-left-color: var(--red-ink); }

.queue-item-name {
  font-size: 13px;
  font-weight: 600;
}

.queue-item-meta {
  font-size: 12px;
  color: var(--muted);
}

.queue-item-aspects {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 2px;
}

/* ── Audit log view ──────────────────────────────────────────── */

.audit-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.audit-quota-section {
  margin-bottom: 20px;
}

.audit-quota-block {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.audit-quota-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

.audit-quota-label strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.audit-quota-bar-track {
  height: 8px;
  background: var(--panel-soft);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  overflow: hidden;
}

.audit-quota-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s;
}

.audit-quota-ok { background: var(--green-ink); }
.audit-quota-warning { background: var(--yellow-ink); }
.audit-quota-danger { background: var(--red-ink); }

.audit-quota-meta {
  font-size: 12px;
  color: var(--muted);
}

.audit-event-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.audit-event {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-left: 4px solid var(--panel-border);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.audit-type-import { border-left-color: var(--baydar-teal-dark); }
.audit-type-bucket { border-left-color: var(--baydar-teal-dark); }
.audit-type-quota  { border-left-color: var(--green-ink); }
.audit-type-warning { border-left-color: var(--yellow-ink); }
.audit-type-error  { border-left-color: var(--red-ink); }
.audit-type-poll   { border-left-color: var(--muted); }

.audit-event-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.audit-event-type {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 8px;
}

.audit-event-action {
  font-size: 14px;
  font-weight: 600;
}

.audit-event-time {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.audit-event-flags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.audit-flag {
  font-size: 11px;
  border-radius: 4px;
  padding: 2px 7px;
}

.audit-flag-safe {
  background: var(--green);
  color: var(--green-ink);
}

.audit-flag-risk {
  background: var(--red);
  color: var(--red-ink);
}

.audit-event-notes {
  font-size: 13px;
  color: var(--muted);
}

.audit-event-issues {
  margin: 0;
  padding: 0 0 0 16px;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.audit-warning { color: var(--yellow-ink); }
.audit-error   { color: var(--red-ink); }

@media (max-width: 700px) {
  .audit-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Audit staging event type ────────────────────────────────── */

.audit-type-staging { border-left-color: var(--baydar-teal); }

/* ── Review summary grid: 8-metric two-row layout ───────────── */

.review-summary-grid {
  grid-template-columns: repeat(4, 1fr);
}

.review-metric-staged strong { color: var(--baydar-teal-dark); }

/* ── Import queue bucket pills ───────────────────────────────── */

.import-queue-bucket-summary {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 4px 0 6px;
}

.queue-bucket-pill {
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  padding: 2px 8px;
}

.queue-bucket-ready   { background: var(--green); color: var(--green-ink); }
.queue-bucket-partial { background: var(--yellow); color: var(--yellow-ink); }
.queue-bucket-blocked { background: var(--red); color: var(--red-ink); }

.queue-item-reason {
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
}

/* ── Approval gate panel ─────────────────────────────────────── */

.approval-gate {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
}

.approval-gate-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.approval-gate-progress {
  font-size: 11px;
  font-weight: 600;
  color: var(--yellow-ink);
  background: var(--yellow);
  border-radius: 4px;
  padding: 1px 6px;
  text-transform: none;
  letter-spacing: 0;
}

.approval-gate-checklist {
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.approval-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  padding: 5px 10px;
  border-radius: 5px;
}

.approval-item-icon {
  flex-shrink: 0;
  font-size: 14px;
}

.approval-item-note {
  font-size: 11px;
  opacity: 0.75;
}

.approval-item-ok {
  background: var(--green);
  color: var(--green-ink);
}

.approval-item-pending {
  background: var(--panel-soft);
  color: var(--muted);
}
.approval-item-done {
  background: var(--green);
  color: var(--green-ink);
}

.approval-gate-note {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  font-style: italic;
}
.approval-gate-write-section {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--surface-alt, #f8f9fa);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.approval-gate-write-note {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 8px;
}

/* ── Candidate detail drawer ─────────────────────────────────── */

.candidate-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 22, 75, 0.3);
  z-index: 40;
}

.candidate-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(460px, 92vw);
  background: var(--panel);
  border-left: 1px solid var(--panel-border);
  z-index: 50;
  overflow-y: auto;
  box-shadow: -4px 0 24px rgba(0,0,0,0.10);
}

.candidate-drawer-inner {
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.candidate-drawer-close {
  align-self: flex-end;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 14px;
  cursor: pointer;
  color: var(--muted);
  min-height: 0;
  margin-bottom: 14px;
}

.candidate-drawer-close:hover {
  background: var(--panel-soft);
  color: var(--ink);
}

.drawer-candidate-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.drawer-flags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.drawer-section {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.drawer-section-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
}

.drawer-section-note {
  font-size: 11px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
}

.drawer-field-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-field-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 8px;
  font-size: 13px;
}

.drawer-field-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.drawer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.drawer-muted {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* ── eBay item specifics panel ───────────────────────────────── */

.item-specifics-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.item-specifics-group {
  border-left: 2px solid var(--panel-border);
  padding-left: 10px;
}

.item-specifics-group-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 6px;
}

.item-specific-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 4px 8px;
  align-items: baseline;
  padding: 3px 0;
  border-bottom: 1px solid var(--line);
}

.item-specific-row:last-child {
  border-bottom: 0;
}

.item-specific-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.item-specific-value {
  font-size: 13px;
  color: var(--ink);
}

.aspect-raw-key {
  grid-column: 1 / -1;
  font-size: 11px;
  color: var(--muted);
  font-family: monospace;
}

.item-specif-mapped .item-specific-label::after {
  content: " ✓";
  color: var(--baydar-teal);
  font-weight: 400;
}

.item-specifics-note {
  margin-top: 6px;
}

/* ── Taxonomy enrichment ─────────────────────────────────────── */

.taxonomy-source-badge {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  background: var(--panel-muted);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: middle;
  white-space: nowrap;
}

.taxonomy-source-live {
  background: var(--green);
  color: var(--green-ink);
  border-color: var(--green);
}
.taxonomy-source-fixture {
  background: var(--panel-muted);
  color: var(--muted);
}
.taxonomy-source-unknown {
  background: transparent;
  color: var(--muted);
  font-style: italic;
}
.taxonomy-source-alias {
  background: var(--blue-subtle, #e8f4fd);
  color: var(--blue-ink, #0d5c8a);
  border-color: var(--blue-subtle, #b3d7f0);
}

.taxonomy-invalid-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--red-ink);
  background: var(--red);
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: middle;
  white-space: nowrap;
}

.taxonomy-validation-warning {
  font-size: 12px;
  color: var(--red-ink);
  background: var(--red);
  border-radius: 4px;
  padding: 6px 10px;
  margin-bottom: 8px;
}

.review-metric-taxonomy-live strong { color: var(--green-ink); }
.review-metric-invalid-values strong { color: var(--red-ink); }

.taxonomy-aspect-hint {
  grid-column: 1 / -1;
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}

.taxonomy-aspect-not-found {
  opacity: 0.6;
  font-style: italic;
}

.taxonomy-value-valid {
  color: var(--green-ink);
  font-weight: 600;
}

.taxonomy-value-unknown {
  color: var(--yellow-ink);
  font-weight: 600;
}

.taxonomy-mode-badge {
  margin-left: 4px;
  font-size: 10px;
  font-weight: 600;
  border-radius: 3px;
  padding: 0px 4px;
  vertical-align: middle;
}
.taxonomy-mode-selection {
  color: var(--baydar-navy);
  background: var(--panel-muted);
}
.taxonomy-mode-free {
  color: var(--muted);
  background: var(--panel-soft);
  border: 1px solid var(--panel-border);
}

.taxonomy-required-badge {
  margin-left: 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--red-ink);
  background: var(--red);
  border-radius: 3px;
  padding: 0px 4px;
  vertical-align: middle;
}

.taxonomy-multi-badge {
  margin-left: 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--baydar-teal-dark);
  background: var(--baydar-teal-soft);
  border-radius: 3px;
  padding: 0px 4px;
  vertical-align: middle;
}

.taxonomy-sample-values {
  grid-column: 1 / -1;
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
  font-style: italic;
}

.drawer-suggestion {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

body.drawer-open {
  overflow: hidden;
}

/* ── Review card name as button ──────────────────────────────── */

.review-card-name-btn {
  background: transparent;
  border: 0;
  padding: 0;
  min-height: 0;
  font-size: inherit;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  flex: 1;
}

.review-card-name-btn:hover {
  color: var(--baydar-teal-dark);
  text-decoration: underline;
}

/* ── Category profiles page ──────────────────────────────────── */

.category-profiles-view {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  max-width: 900px;
}

.category-profile-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 20px 24px;
}

.category-profile-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.category-profile-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.category-profile-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--baydar-navy);
}

.category-profile-counts {
  display: flex;
  gap: 6px;
  align-items: center;
}

.category-count-mapped {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 10px;
  background: var(--green);
  color: var(--green-ink);
}

.category-count-preserved {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 10px;
  background: var(--yellow);
  color: var(--yellow-ink);
}

.category-profile-ids {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.category-id-tag {
  font-size: 11px;
  font-family: monospace;
  background: var(--panel-muted);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--muted);
}

.category-no-taxonomy {
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
}

.category-profile-desc {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 14px;
}

.category-profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 14px;
}

@media (max-width: 600px) {
  .category-profile-grid { grid-template-columns: 1fr; }
}

.category-col-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 8px;
}

.category-field-list {
  margin: 0;
  padding: 0 0 0 16px;
  font-size: 13px;
  line-height: 1.7;
}

.category-field-mapped { color: var(--green-ink); }
.category-field-preserved { color: var(--yellow-ink); }
.category-all-mapped {
  font-size: 0.82rem;
  color: var(--green-ink);
  background: var(--green);
  border-radius: 4px;
  padding: 3px 8px;
  margin: 0;
  display: inline-block;
}

.category-profile-example {
  background: var(--panel-soft);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.category-example-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  font-size: 12px;
  gap: 8px;
}

.category-example-label {
  font-weight: 600;
  color: var(--muted);
}

.category-example-ready .category-example-val { color: var(--green-ink); }
.category-example-partial .category-example-val { color: var(--yellow-ink); }

/* ── Taxonomy status page ────────────────────────────────────── */

.taxonomy-status-view {
  padding: 24px;
  max-width: 900px;
}

.taxonomy-status-summary {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.review-metric-safe strong { color: var(--baydar-teal-dark); }

.taxonomy-status-notice {
  background: var(--panel-soft);
  border: 1px solid var(--panel-border);
  border-left: 3px solid var(--baydar-teal);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 13px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.taxonomy-status-notice code {
  background: var(--panel-muted);
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 12px;
}

.taxonomy-status-live {
  border-left-color: var(--green);
  background: color-mix(in srgb, var(--green) 8%, var(--panel-soft));
}

.taxonomy-status-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 24px;
}

.taxonomy-status-table th {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 2px solid var(--panel-border);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.taxonomy-status-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}

.taxonomy-row-hit { background: #f8fffc; }
.taxonomy-row-miss { background: #fff; }
.taxonomy-row-expired { background: var(--yellow); }

.taxonomy-status-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  padding: 2px 7px;
}

.taxonomy-status-hit { background: var(--green); color: var(--green-ink); }
.taxonomy-status-miss { background: var(--panel-muted); color: var(--muted); }
.taxonomy-status-expired { background: var(--yellow); color: var(--yellow-ink); }

.taxonomy-table-id { font-family: monospace; color: var(--muted); }

.taxonomy-approval-block {
  background: var(--panel-soft);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 16px 20px;
}

.taxonomy-approval-block h4 {
  margin: 0 0 12px;
  font-size: 14px;
}

.taxonomy-approval-block code {
  background: var(--panel-muted);
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 12px;
  font-family: monospace;
}

/* ── Search tips page ────────────────────────────────────────── */

.search-tips-view {
  padding: 24px;
  max-width: 900px;
}

.search-tips-intro {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

.search-tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
}

.search-tip-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 18px 20px;
}

.search-tip-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--baydar-navy);
}

.search-tip-body {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink);
}

.search-tip-body code {
  background: var(--panel-muted);
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 12px;
  font-family: monospace;
}

/* ── Review card improvements (Task 1) ────────────────────────── */

.review-card {
  border-left-width: 3px;
}

.review-card-category-badge {
  font-size: 11px;
  font-weight: 600;
  background: var(--panel-muted);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--muted);
  margin-left: auto;
}

.review-card-aspects-summary {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 4px 0;
}

.review-card-triage-pill {
  font-size: 11px;
  font-weight: 600;
  border-radius: 10px;
  padding: 2px 8px;
  margin-left: 6px;
}

.review-card-triage-pill-approve { background: var(--green); color: var(--green-ink); }
.review-card-triage-pill-skip { background: var(--panel-muted); color: var(--muted); }
.review-card-triage-pill-flag { background: var(--yellow); color: var(--yellow-ink); }

/* ── Improved drawer sections (Task 2) ────────────────────────── */

.drawer-section-group {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.drawer-field-group-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 14px 0 6px;
}

.drawer-field-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 4px 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.drawer-field-row:last-child { border-bottom: 0; }

.drawer-field-label { font-weight: 600; color: var(--ink); }

.drawer-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

/* ── Audit event improvements (Task 9) ───────────────────────── */

.audit-event-source-badge {
  font-size: 11px;
  background: var(--panel-muted);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--muted);
}

.audit-type-filter-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 10px 24px;
}

.audit-type-filter-btn {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
}

.audit-type-filter-btn.active {
  background: var(--baydar-navy);
  border-color: var(--baydar-navy);
  color: #fff;
}

/* ── Import readiness dashboard (Task 6) ─────────────────────── */

.review-metric-taxonomy strong { color: var(--baydar-teal-dark); }

.review-card-summary {
  font-size: 13px;
  color: var(--muted);
  margin: 2px 0 6px;
  padding: 0 8px;
}

.review-card-aspects-summary {
  padding: 0 8px 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

/* ── Health summary panel ─────────────────────────────────────── */

.import-health-summary {
  padding: 8px 12px;
  background: var(--panel-soft);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.health-summary-title {
  font-size: 0.78rem;
  color: var(--muted);
  flex-shrink: 0;
}
.health-summary-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.health-summary-pill {
  font-size: 0.73rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  transition: opacity 0.1s;
}
.health-summary-pill:hover { opacity: 0.8; }
.health-summary-pill.active { outline: 2px solid var(--baydar-teal-dark); outline-offset: 1px; }
.health-summary-healthy { background: var(--green); color: var(--green-ink); }
.health-summary-partial { background: var(--yellow); color: var(--yellow-ink); }
.health-summary-blocked { background: var(--red); color: var(--red-ink); }
.health-summary-issues {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--muted);
}
.health-summary-issue {
  background: var(--panel-muted);
  border-radius: 4px;
  padding: 1px 6px;
}
.health-summary-no-issues {
  font-size: 0.72rem;
  color: var(--green-ink);
  background: var(--green);
  border-radius: 4px;
  padding: 2px 8px;
}
.health-summary-issue-count {
  font-size: 0.72rem;
  color: var(--yellow-ink);
  background: var(--yellow);
  border-radius: 4px;
  padding: 1px 6px;
  font-weight: 600;
}

/* ── Health badge on review cards ─────────────────────────────── */

.review-card-health-badge {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
  white-space: nowrap;
}
.review-card-health-healthy { background: var(--green); color: var(--green-ink); }
.review-card-health-partial { background: var(--yellow); color: var(--yellow-ink); }
.review-card-health-blocked { background: var(--red); color: var(--red-ink); }

/* ── Queue item polish ────────────────────────────────────────── */

.queue-item-why-staged {
  font-size: 0.78rem;
  margin: 3px 0 5px;
  color: var(--muted);
  line-height: 1.4;
}
.queue-item-why-staged-ready { color: var(--green-ink); }
.queue-item-why-staged-partial { color: var(--yellow-ink); }
.queue-item-why-staged-blocked { color: var(--red-ink); font-weight: 600; }
.queue-item-unresolved {
  margin-top: 4px;
  font-size: 0.78rem;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.queue-item-unresolved-label {
  font-weight: 600;
  color: var(--yellow-ink);
  flex-shrink: 0;
}

/* ── Saved-search health view ─────────────────────────────────── */

.search-health-view {
  padding: 8px 0;
}

.health-summary-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  margin-bottom: 10px;
  background: #fbfcfd;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.health-summary-note {
  color: var(--muted);
  font-size: 13.5px;
}

.health-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
}
.health-pill-healthy { background: var(--green); color: var(--green-ink); }
.health-pill-warn    { background: var(--yellow); color: var(--yellow-ink); }
.health-pill-blocked { background: var(--red); color: var(--red-ink); }

.health-summary-flags {
  font-size: 0.78rem;
  color: var(--muted);
  flex: 1;
  min-width: 200px;
}

.health-report-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.health-report-row {
  padding: 12px 13px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 12px 28px -24px rgba(14, 23, 38, 0.28);
}
.health-report-healthy { border-left: 3px solid var(--green); }
.health-report-warn    { border-left: 3px solid var(--yellow); }
.health-report-blocked { border-left: 3px solid var(--red); }

.health-report-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.health-report-name {
  font-weight: 600;
  font-size: 1rem;
  flex: 1;
}

.health-report-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.health-issue-details summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.84rem;
  margin-bottom: 8px;
}

.health-flag {
  color: var(--yellow-ink);
  font-weight: 600;
}

.health-issue-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.health-issue {
  font-size: 0.83rem;
  padding: 5px 0 5px 8px;
  border-left: 2px solid transparent;
  margin-bottom: 4px;
}
.health-issue::before { margin-right: 5px; }
.health-issue-error  { border-left-color: var(--red-ink); }
.health-issue-warn   { border-left-color: var(--yellow-ink); }
.health-issue-info   { border-left-color: var(--panel-border); }
.health-issue-ok     { border-left-color: var(--green-ink); }
.health-issue-error::before  { content: "✕"; color: var(--red-ink); }
.health-issue-warn::before   { content: "⚠"; color: var(--yellow-ink); }
.health-issue-info::before   { content: "ℹ"; color: var(--muted); }
.health-issue-ok::before     { content: "✓"; color: var(--green-ink); }
.health-issue-acked { opacity: 0.5; text-decoration: line-through; }
.health-issue-tone-info { color: var(--muted); font-weight: 400; font-size: 0.75rem; }
.health-issue-why {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2px;
}
.health-issue-action {
  font-size: 0.74rem;
  color: #5f6f7a;
  margin-top: 3px;
  padding: 4px 7px;
  background: #f8fbfc;
  border-radius: 4px;
  display: inline-block;
}
.health-pill-acked { background: var(--panel-muted); color: var(--muted); }

/* Inline health badge on search cards */
.search-health-badge {
  display: inline-block;
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 10px;
  vertical-align: middle;
  margin-left: 4px;
  font-weight: 600;
}
.search-health-ok   { background: var(--green); color: var(--green-ink); }
.search-health-warn { background: var(--yellow); color: var(--yellow-ink); }

/* ── Search health row actions ────────────────────────────────── */

.health-report-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

/* ── Detail drawer health section ─────────────────────────────── */

.detail-health-section {
  padding: 10px 14px;
  margin: 10px 0 16px;
  background: var(--panel-soft);
  border-radius: 8px;
  border: 1px solid var(--line);
}

.detail-health-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.detail-health-label {
  font-weight: 600;
  font-size: 0.85rem;
  flex: 1;
}

.detail-health-issues {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-health-issue {
  font-size: 0.8rem;
  padding: 2px 0;
}
.detail-health-issue::before { margin-right: 5px; }
.detail-health-error::before  { content: "✕"; color: var(--red-ink); }
.detail-health-warn::before   { content: "⚠"; color: var(--yellow-ink); }
.detail-health-info::before   { content: "ℹ"; color: var(--muted); }

/* ── Edit form footer (cancel button) ────────────────────────── */

.edit-form-footer {
  display: flex;
  gap: 8px;
  align-items: center;
  grid-column: 1 / -1;
  padding-top: 4px;
}

/* ── Editing state highlight ──────────────────────────────────── */

.search-card.editing {
  border-left: 3px solid var(--baydar-teal);
  background: var(--baydar-teal-soft);
}

/* ── Matches empty state ──────────────────────────────────────── */

.matches-empty-cell {
  padding: 28px 16px;
  text-align: center;
}

.matches-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 420px;
  margin: 0 auto;
}

/* ── Scheduler status block ───────────────────────────────────── */

.scheduler-status-block {
  margin-top: 4px;
}

.scheduler-status-active {
  font-weight: 600;
  color: var(--green-ink);
  margin: 0 0 4px;
}

.scheduler-status-inactive {
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 4px;
}

.scheduler-requirements {
  list-style: none;
  padding-left: 0;
  margin: 6px 0 8px;
  font-size: 13px;
}
.scheduler-requirements li { padding: 2px 0; }
.scheduler-requirements li::before { content: "○ "; color: var(--muted); }
.scheduler-requirements code { font-size: 12px; background: var(--panel-muted); padding: 1px 4px; border-radius: 3px; }

.health-ack-global-note {
  font-size: 11px;
  color: var(--muted);
  margin: 10px 0 0;
  padding: 6px 10px;
  background: var(--panel-muted);
  border-radius: 4px;
}

/* ── Match reason chips ──────────────────────────────────────── */

.reason-chip {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  margin: 1px 2px 1px 0;
  white-space: nowrap;
  cursor: default;
}
.reason-chip-positive { background: var(--green); color: var(--green-ink); }
.reason-chip-negative { background: var(--red); color: var(--red-ink); }
.reason-chip-caution  { background: var(--yellow); color: var(--yellow-ink); }
.reason-chip-neutral  { background: var(--panel-muted); color: var(--muted); }
.reasons-cell { min-width: 120px; max-width: 240px; }

/* ── New search live preview ─────────────────────────────────── */

.new-search-preview { margin-top: 6px; }
.new-search-preview-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.preview-issue {
  padding: 5px 9px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.4;
}
.preview-issue-warn { background: var(--yellow); color: var(--yellow-ink); }
.preview-issue-info { background: var(--panel-muted); color: var(--muted); }
.preview-issue-ok   { background: var(--green); color: var(--green-ink); }

/* ── Safety boundaries block ─────────────────────────────────── */

.safety-boundary-list {
  padding-left: 16px;
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.7;
}
.safety-boundary-list li { margin-bottom: 2px; }

/* ── Health acknowledgement UI ───────────────────────────────── */

.detail-health-acked {
  opacity: 0.55;
}
.detail-health-acked .detail-health-msg { text-decoration: line-through; }
.health-ack-label {
  font-size: 10px;
  font-style: italic;
  margin-left: 4px;
  opacity: 0.75;
}
.health-ack-btn {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
  cursor: pointer;
  background: var(--panel-muted);
  color: var(--muted);
  border: 1px solid var(--border);
}
.health-ack-btn:hover { background: var(--border); }
.health-ack-clear-btn { font-style: italic; }
.detail-health-ack-note {
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0 0;
  padding: 4px 8px;
  background: var(--panel-muted);
  border-radius: 3px;
}
.detail-health-empty {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 0;
}

.detail-health-readiness {
  display: grid;
  gap: 3px;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  font-size: 0.8rem;
}

/* ── Detail drawer result reasons ────────────────────────────── */

.detail-result-reasons { margin-top: 3px; }

/* ── New search preview summary ──────────────────────────────── */

.new-search-preview-inner { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.new-search-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  font-size: 12px;
  background: var(--panel-muted);
  border-radius: 4px;
  padding: 8px 10px;
}
.new-search-summary div { display: contents; }
.new-search-summary dt { color: var(--muted); font-weight: 500; }
.new-search-summary dd { margin: 0; }

/* ── New Results header bar + update row ─────────────────────── */

.new-results-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px 10px;
  padding: 10px 12px;
  border: 1px solid #e6edf0;
  border-radius: 10px;
  background: #f9fcfd;
  margin: 0 0 8px;
}
.new-results-meta { font-size: 12px; color: #53656d; font-weight: 600; }
.new-results-goto-matches { font-size: 12px; color: var(--accent-dark); text-decoration: none; font-weight: 600; white-space: nowrap; }
.new-results-goto-matches:hover { text-decoration: underline; }

.update-content { flex: 1; min-width: 0; }
.update-header { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.update-search-link {
  background: none;
  border: none;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  text-align: left;
}
.update-search-link:hover { text-decoration: underline; }
.update-source-badge { font-size: 10px; padding: 1px 5px; }
.update-meta { font-size: 12px; color: var(--muted); margin: 2px 0; }
.update-reasons { margin-top: 3px; }
.update-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.update-ebay-link { font-size: 11px; white-space: nowrap; }

/* ── Workflow guide (New Results details/summary) ────────────── */

.workflow-guide {
  margin: 10px 0 0;
  border: 1px solid #e6edf0;
  border-radius: 10px;
  background: #f8fbfc;
  overflow: hidden;
}
.workflow-guide summary {
  cursor: pointer;
  color: #4c6169;
  font-size: 12.5px;
  font-weight: 600;
  user-select: none;
  list-style: none;
  padding: 8px 12px;
}
.workflow-guide summary::-webkit-details-marker { display: none; }
.workflow-guide summary::after {
  content: "▾";
  float: right;
  color: #7f9199;
}
.workflow-guide:not([open]) summary::after {
  content: "▸";
}
.workflow-guide summary:hover { color: var(--ink); }
.workflow-steps {
  margin: 0;
  padding: 2px 14px 10px 30px;
  line-height: 1.55;
  color: #465860;
}
.workflow-steps li { margin-bottom: 4px; }

/* ── Cross-links (New Search ↔ Search Tips) ──────────────────── */

.tips-cross-link { font-size: 12px; color: var(--muted); margin: 4px 0 8px; }
.tips-cross-link a { color: var(--accent); }
.search-tips-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.search-tips-intro p { margin: 0; color: var(--muted); font-size: 13px; flex: 1; min-width: 200px; }
.search-tips-new-search-link { font-size: 12px; white-space: nowrap; flex-shrink: 0; }

/* ── Matches group navigation (Prev / N of N / Next) ────────── */

.group-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  padding: 4px 0;
}
.group-nav button {
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
}
.group-nav-pos {
  min-width: 60px;
  text-align: center;
  color: var(--muted);
}

/* ── Matches show-more row ───────────────────────────────────── */

.show-more-row td {
  text-align: center;
  padding: 10px;
  background: var(--panel-soft);
  border-bottom: 1px solid var(--line);
}
.show-more-row button {
  min-height: 28px;
  font-size: 12px;
  padding: 0 12px;
}

/* ── Result section count badge ──────────────────────────────── */

.result-section-count {
  display: inline-block;
  background: var(--panel-muted);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 4px;
}

/* ── Result section show-more details block ──────────────────── */

.result-section-more {
  margin-top: 6px;
  border-top: 1px solid var(--line);
  padding-top: 4px;
}
.result-section-more summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--accent-dark);
  padding: 6px 0;
  user-select: none;
}
.result-section-more[open] summary {
  margin-bottom: 4px;
}

/* ── Result section empty state ──────────────────────────────── */

.result-section-empty {
  color: var(--muted);
  font-size: 13px;
  margin: 6px 0 0;
  padding: 8px 0;
}

/* ── Aspect chips in detail result rows ──────────────────────── */

.result-row-aspects {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.result-row-aspects .aspect-tag {
  font-size: 11px;
  background: var(--panel-muted);
  color: var(--muted);
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

/* ── Open on eBay link in detail result rows ─────────────────── */

.result-row-ebay-link {
  display: inline-block;
  font-size: 12px;
  color: var(--accent-dark);
  text-decoration: none;
  margin-top: 3px;
}
.result-row-ebay-link:hover { text-decoration: underline; }

/* ── Search Health cross-link in detail drawer ───────────────── */

.detail-health-link {
  font-size: 12px;
  color: var(--accent-dark);
  text-decoration: none;
  margin-left: auto;
}
.detail-health-link:hover { text-decoration: underline; }

/* ── Drawer triage buttons in detail result rows (SIM-81) ──────── */

.drawer-triage {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.drawer-triage button {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
}
.drawer-triage button.selected-action {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.drawer-triage button[disabled] {
  opacity: 0.7;
  cursor: default;
}

/* ── Matches overview sort controls (SIM-82) ────────────────── */

.matches-sort {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.matches-sort-label {
  font-size: 12px;
  color: var(--muted);
}
.matches-sort button {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
}
.matches-sort button.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ── Search Health history count row (SIM-83) ───────────────── */

.health-history-count {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 6px;
}
.health-history-count a {
  color: var(--accent-dark);
  text-decoration: none;
}
.health-history-count a:hover { text-decoration: underline; }

/* ── Open on eBay column in Matches drill-down (SIM-84) ─────── */

.ebay-col {
  width: 130px;
  text-align: left;
  white-space: nowrap;
  padding-left: 8px !important;
}
.feed-ebay-link {
  font-size: 16px;
  color: var(--accent-dark);
  text-decoration: none;
  display: inline-block;
  padding: 2px 4px;
}
.feed-ebay-link:hover { opacity: 0.75; }

/* ── New Results triage buttons (SIM-85) ────────────────────── */

.update-triage {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.update-triage button {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
}

/* ── New Results mark-all-seen button (SIM-86) ──────────────── */

.new-results-mark-all {
  font-size: 12px;
  padding: 3px 9px;
  min-height: 28px;
}

/* ── New Results search groups (SIM-90) ─────────────────────── */

.new-results-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 4px 4px;
  border-top: 1px solid #eef3f5;
  margin-top: 2px;
}
.new-results-group-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.new-results-group-count {
  font-size: 12px;
  color: var(--muted);
}
.new-results-group-matches-btn {
  font-size: 12px;
  padding: 2px 9px;
  min-height: 28px;
  white-space: nowrap;
}
.new-results-group-cleared {
  padding: 9px 11px;
  font-size: 12.5px;
  color: #5c6d74;
  background: #f5faf9;
  border: 1px solid #e1ecea;
  border-radius: 8px;
  margin-bottom: 8px;
}

.new-results-empty-state .event {
  margin: 0;
  border-radius: 10px;
  border-color: #dfe8ec;
  background: #f7fbfd;
  padding: 12px;
}

.new-results-empty-state .meta {
  color: #4f646c;
  line-height: 1.45;
}

/* ── Score breakdown (SIM-101) ───────────────────────────────── */

.score-breakdown {
  margin-top: 6px;
  font-size: 12px;
}
.score-breakdown summary {
  cursor: pointer;
  color: var(--muted);
  user-select: none;
  padding: 2px 0;
  list-style: none;
}
.score-breakdown summary::before {
  content: "▶ ";
  font-size: 10px;
}
.score-breakdown[open] summary::before {
  content: "▼ ";
}
.score-breakdown-rows {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  margin-top: 4px;
  padding: 4px 0;
}
.score-breakdown-row {
  display: contents;
}
.score-breakdown-label {
  color: var(--ink);
}
.score-breakdown-value {
  font-variant-numeric: tabular-nums;
  text-align: right;
  font-weight: 500;
}
.score-breakdown-value.positive {
  color: var(--green-ink);
}
.score-breakdown-value.negative {
  color: var(--red-ink);
}


/* ── Landing / front door (SIM-111) ─────────────────────── */

.landing-page {
  position: relative;
  display: grid;
  gap: 34px;
  max-width: 1180px;
  overflow: hidden;
}

.landing-radar {
  position: absolute;
  top: -150px;
  right: -140px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(17, 156, 149, 0.2);
  border-radius: 50%;
  pointer-events: none;
}

.landing-radar::before,
.landing-radar::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(7, 22, 75, 0.11);
  border-radius: 50%;
}

.landing-radar::before {
  inset: 86px;
}

.landing-radar::after {
  inset: 172px;
}

.landing-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(380px, 0.95fr) minmax(420px, 1.05fr);
  gap: 32px;
  align-items: center;
  min-height: 640px;
  border: 1px solid var(--panel-border);
  background:
    linear-gradient(135deg, rgba(223, 245, 242, 0.88), rgba(255, 255, 255, 0.96) 46%, rgba(238, 245, 246, 0.72)),
    #ffffff;
  border-radius: 18px;
  padding: 56px;
  overflow: hidden;
}

.landing-hero::after {
  content: "";
  position: absolute;
  right: 36px;
  top: 44px;
  width: 180px;
  height: 180px;
  border-top: 10px solid rgba(17, 156, 149, 0.14);
  border-right: 10px solid rgba(17, 156, 149, 0.14);
  border-radius: 0 170px 0 0;
  transform: rotate(24deg);
  pointer-events: none;
}

.landing-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
}

.landing-kicker {
  width: max-content;
  max-width: 100%;
  border: 1px solid rgba(17, 156, 149, 0.28);
  background: rgba(255, 255, 255, 0.82);
  color: var(--baydar-teal-dark);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.landing-copy h1 {
  margin: 0;
  color: var(--baydar-navy);
  line-height: 1;
}

.hero-main-tagline,
.hero-sub-tagline {
  display: block;
}

.hero-main-tagline {
  font-size: 64px;
  text-transform: uppercase;
}

.hero-sub-tagline {
  margin-top: 8px;
  font-size: 32px;
  text-transform: uppercase;
}

.landing-lede {
  margin: 0;
  max-width: 620px;
  color: #344044;
  font-size: 18px;
  line-height: 1.45;
}

.landing-summary {
  margin: -6px 0 0;
  max-width: 620px;
  color: #344044;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 700;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 24px;
  padding: 0 20px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid var(--panel-border);
}

.landing-btn.primary {
  background: var(--baydar-teal);
  border-color: var(--baydar-teal);
  color: #ffffff;
}

.landing-btn.secondary {
  background: #ffffff;
  color: var(--baydar-navy);
}

.landing-trust-cues {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 620px;
}

.landing-trust-cues span {
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.78);
  color: #344044;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 700;
}

.landing-visual {
  position: relative;
  z-index: 1;
}

.signal-sweep {
  position: absolute;
  top: -34px;
  right: -14px;
  width: 220px;
  height: 220px;
  border-top: 8px solid rgba(17, 156, 149, 0.28);
  border-right: 8px solid rgba(17, 156, 149, 0.28);
  border-radius: 0 220px 0 0;
  transform: rotate(13deg);
  pointer-events: none;
}

.landing-dashboard-card {
  position: relative;
  display: grid;
  gap: 18px;
  border: 1px solid rgba(7, 22, 75, 0.16);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 28px 70px rgba(7, 22, 75, 0.14);
}

.landing-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.landing-card-head img {
  width: 124px;
  height: auto;
}

.status-dot {
  border: 1px solid rgba(17, 156, 149, 0.28);
  background: var(--baydar-teal-soft);
  color: var(--baydar-teal-dark);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
}

.alert-flow {
  display: grid;
  gap: 9px;
}

.flow-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  border: 1px solid var(--panel-border);
  background: var(--panel-soft);
  border-radius: 12px;
  padding: 11px;
}

.flow-step.active {
  border-color: rgba(17, 156, 149, 0.36);
  background: #effbf9;
}

.flow-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--baydar-navy);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.flow-step strong {
  display: block;
  color: var(--baydar-navy);
  margin-bottom: 2px;
}

.flow-step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.phone-alert {
  justify-self: end;
  width: min(270px, 100%);
  border: 1px solid rgba(7, 22, 75, 0.18);
  background: var(--baydar-navy);
  color: #ffffff;
  border-radius: 22px;
  padding: 22px 16px 16px;
  box-shadow: 0 18px 40px rgba(7, 22, 75, 0.22);
}

.phone-notch {
  display: block;
  width: 52px;
  height: 5px;
  margin: -8px auto 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.phone-alert p {
  margin: 6px 0 14px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.phone-alert button {
  width: 100%;
  color: #ffffff;
  background: var(--baydar-teal);
  border-color: var(--baydar-teal);
}

.landing-section,
.landing-final-cta {
  position: relative;
  border: 1px solid var(--panel-border);
  background: var(--panel-soft);
  border-radius: 16px;
  padding: 28px;
}

.comparison-band {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(420px, 1.2fr);
  gap: 24px;
  align-items: start;
}

.landing-section h2,
.landing-final-cta h2 {
  margin: 10px 0 8px;
  color: var(--baydar-navy);
  font-size: 34px;
  line-height: 1.1;
}

.landing-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.comparison-cards,
.landing-card-grid {
  display: grid;
  gap: 14px;
}

.comparison-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.comparison-cards article,
.landing-card-grid article {
  border: 1px solid var(--panel-border);
  background: #ffffff;
  border-radius: 12px;
  padding: 17px;
}

.comparison-cards h3,
.landing-card-grid h3 {
  margin: 0 0 8px;
  color: var(--baydar-navy);
}

.comparison-cards ul {
  margin: 0;
  padding-left: 18px;
  color: #3f4b4f;
  line-height: 1.7;
}

.section-heading {
  margin-bottom: 18px;
}

.landing-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-card-grid.six {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-card-grid article span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--baydar-teal-dark);
  font-weight: 900;
}

.landing-final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--baydar-navy);
  color: #ffffff;
}

.landing-final-cta h2,
.landing-final-cta .landing-kicker {
  color: #ffffff;
}

.landing-final-cta .landing-kicker {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

/* ── Product positioning pages (SIM-110) ─────────────────────── */

.product-page {
  display: grid;
  gap: 16px;
  max-width: 1120px;
  overflow-x: auto;
}

.product-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.product-card,
.positioning-strip {
  border: 1px solid var(--panel-border);
  background: var(--panel-soft);
  border-radius: 10px;
  padding: 16px;
}

.product-card h3 {
  margin: 0 0 8px;
  color: var(--baydar-navy);
}

.product-card p,
.positioning-strip {
  color: var(--muted);
  line-height: 1.5;
}

.positioning-strip strong {
  color: var(--baydar-navy);
}

.comparison-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--panel-border);
}

.comparison-table th,
.comparison-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  color: var(--baydar-navy);
  background: var(--panel-soft);
}

@media (max-width: 980px) {
  .landing-hero,
  .comparison-band,
  .comparison-cards,
  .landing-card-grid,
  .landing-card-grid.six {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    min-height: 0;
    padding: 32px;
  }

  .landing-copy h1 {
    font-size: inherit;
  }

  .hero-main-tagline {
    font-size: 42px;
  }

  .hero-sub-tagline {
    font-size: 24px;
  }

  .landing-final-cta {
    display: grid;
  }

  .product-card-grid {
    grid-template-columns: 1fr;
  }
}


/* ═══════════════════════════════════════════════════════════════
   Baydar Claude Design System — lp-* prefix (SIM-landing-cd)
   All tokens are scoped to landing page elements only.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --lp-teal:       #159F8C;
  --lp-teal-2:     #0E867A;
  --lp-teal-3:     #6FC9BE;
  --lp-teal-soft:  #E3F4F1;
  --lp-navy:       #0B1F3F;
  --lp-navy-2:     #0A1A35;
  --lp-ink:        #111827;
  --lp-ink-2:      #374151;
  --lp-ink-3:      #6B7280;
  --lp-ink-4:      #9CA3AF;
  --lp-paper:      #FFFFFF;
  --lp-paper-2:    #F9FAFB;
  --lp-bg:         #F3F4F6;
  --lp-line:       #E5E7EB;
  --lp-line-2:     #D1D5DB;
  --lp-amber:      #C98A12;
  --lp-amber-soft: #FEF3C7;
  --lp-red:        #DC2626;
  --lp-red-soft:   #FEE2E2;
  --lp-green:      #059669;
  --lp-green-soft: #D1FAE5;
  --lp-shadow-1:   0 1px 3px rgba(11,31,63,0.06), 0 1px 2px rgba(11,31,63,0.04);
  --lp-shadow-2:   0 4px 14px rgba(11,31,63,0.09), 0 2px 6px rgba(11,31,63,0.05);
  --lp-shadow-3:   0 16px 36px rgba(11,31,63,0.13), 0 4px 12px rgba(11,31,63,0.08);
  --lp-mono:       'JetBrains Mono', 'Fira Code', 'SF Mono', ui-monospace, monospace;
}

/* ── Keyframes ── */
@keyframes lp-radar-sweep {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes lp-float-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes lp-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  60%      { opacity: 0; transform: scale(2.2); }
}

/* ── Root container ── */
.lp {
  display: flex;
  flex-direction: column;
  color: var(--lp-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

.lp-wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
}

/* ── Typography ── */
.lp h1.lp-h1 {
  font-size: 86px;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--lp-ink);
  margin: 0 0 14px;
}
.lp-h1-accent {
  color: var(--lp-teal);
  font-style: normal;
}
.lp-h1-sub {
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--lp-ink-3);
  line-height: 1.1;
  margin-bottom: 22px;
}
.lp-accent { color: var(--lp-teal-2); }

.lp-eyebrow {
  font-family: var(--lp-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lp-teal-2);
  margin-bottom: 10px;
  display: block;
}

.lp-display {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--lp-ink);
  margin: 0 0 14px;
}

.lp-label {
  font-family: var(--lp-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Badge (hero eyebrow pill) ── */
.lp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--lp-paper);
  border: 1px solid var(--lp-line);
  font-size: 12px;
  color: var(--lp-ink-3);
  box-shadow: var(--lp-shadow-1);
  margin-bottom: 26px;
}
.lp-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lp-teal);
  flex: none;
}
.lp-badge-label {
  font-family: var(--lp-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--lp-teal-2);
  letter-spacing: 0.05em;
}

/* ── Buttons ── */
.lp-btn-primary,
.lp-btn-ghost,
.lp-btn-primary-inv,
.lp-btn-outline-inv {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: opacity 0.15s;
  box-sizing: border-box;
}
.lp-btn-primary {
  background: var(--lp-teal);
  color: white;
  border-color: var(--lp-teal);
}
.lp-btn-ghost {
  background: transparent;
  color: var(--lp-ink-2);
  border-color: var(--lp-line-2);
}
.lp-btn-primary-inv {
  background: white;
  color: var(--lp-ink);
  border-color: white;
}
.lp-btn-outline-inv {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.22);
}
.lp-btn-primary:hover,
.lp-btn-ghost:hover,
.lp-btn-primary-inv:hover,
.lp-btn-outline-inv:hover { opacity: 0.82; }

.lp-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.lp-preview-bridge {
  margin: -8px 0 20px;
  font-size: 14px;
  color: var(--lp-ink-3);
}

.lp-preview-bridge a {
  color: var(--lp-teal-2);
  font-weight: 600;
  text-decoration: none;
}

.lp-preview-bridge a:hover {
  text-decoration: underline;
}

/* ── Trust items ── */
.lp-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: center;
  color: var(--lp-ink-3);
  font-size: 13px;
}
.lp-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.lp-trust-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--lp-teal-soft);
  color: var(--lp-teal-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex: none;
  line-height: 1;
}

/* ── Sections ── */
.lp-section {
  padding: 88px 0;
}

.shell-home #view-home .lp-section {
  padding: 72px 0;
}

.shell-home #view-home .lp-hero.lp-section {
  padding-top: 86px;
  padding-bottom: 76px;
}

/* ── Hero ── */
.lp-hero {
  position: relative;
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--lp-line);
  overflow: hidden;
}
.lp-hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(21,159,140,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21,159,140,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.lp-hero-grid {
  display: grid;
  grid-template-columns: minmax(380px, 1fr) 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
}
.lp-hero-copy { padding-top: 8px; }

.lp-hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Radar */
.lp-radar-wrap {
  position: absolute;
  width: 580px;
  height: 580px;
  pointer-events: none;
  z-index: 0;
}
/* Preserve previous right-side hero radar placement for easy rollback. */
.lp-radar-wrap--right {
  top: -100px;
  right: -180px;
}
/* Experiment: shift radar origin to the left to strengthen Baydar/radar cue. */
.lp-radar-wrap--left {
  top: -100px;
  left: -170px;
}
.lp-radar-sweep-arm {
  transform-origin: 290px 290px;
  animation: lp-radar-sweep 8s linear infinite;
}

/* Phone alert */
.lp-phone-alert {
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--lp-line);
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: var(--lp-shadow-3), 0 0 0 1px rgba(11,31,63,0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: lp-float-in 0.6s ease both;
  position: relative;
  z-index: 5;
}
.lp-pa-header {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 6px;
}
.lp-pa-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--lp-navy);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.lp-pa-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--lp-ink);
}
.lp-pa-time {
  margin-left: auto;
  font-family: var(--lp-mono);
  font-size: 10.5px;
  color: var(--lp-ink-4);
}
.lp-pa-body {
  font-size: 12.5px;
  color: var(--lp-ink-2);
  line-height: 1.4;
}
.lp-pa-body strong { color: var(--lp-ink); font-weight: 600; }
.lp-pa-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
.lp-pa-chip {
  font-family: var(--lp-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--lp-teal-2);
  background: var(--lp-teal-soft);
  padding: 2px 7px;
  border-radius: 999px;
}
.lp-pa-link {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--lp-teal-2);
  font-weight: 500;
  text-decoration: none;
}

/* 4-step timeline */
.lp-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 12px 12px 14px;
  background: var(--lp-paper);
  border: 1px solid var(--lp-line);
  border-radius: 14px;
  box-shadow: var(--lp-shadow-1);
  z-index: 5;
}
.lp-tl-line {
  position: absolute;
  left: 32px; right: 32px;
  top: 28px; height: 1px;
  background: linear-gradient(90deg, var(--lp-line-2), var(--lp-teal) 30%, var(--lp-teal) 70%, var(--lp-line-2));
  opacity: 0.65;
  pointer-events: none;
}
.lp-tl-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 0 8px;
  position: relative;
}
.lp-tl-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--lp-mono);
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 0 0 4px var(--lp-paper);
  z-index: 1;
}
.lp-tl-num.ink  { background: var(--lp-ink);  color: white; }
.lp-tl-num.teal { background: var(--lp-teal); color: white; }
.lp-tl-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
}
.lp-tl-tag {
  font-family: var(--lp-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--lp-ink-2);
}
.lp-tl-tag.teal { color: var(--lp-teal-2); }
.lp-tl-ts {
  font-family: var(--lp-mono);
  font-size: 9.5px;
  color: var(--lp-ink-4);
}
.lp-tl-text {
  font-size: 11.5px;
  color: var(--lp-ink-2);
  font-weight: 500;
  line-height: 1.3;
}

/* ── Command centre comparison ── */
.lp-compare-section {
  background: linear-gradient(180deg, #F2F4F7 0%, var(--lp-paper) 100%);
}
.lp-compare-grid {
  display: grid;
  grid-template-columns: 1fr 44px 1fr;
  align-items: stretch;
}

.lp-compare-section .lp-section-heading {
  margin-bottom: 26px;
}
.lp-compare-card {
  background: var(--lp-paper);
  border: 1px solid var(--lp-line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--lp-shadow-1);
}
.lp-compare-card.baydar {
  border-color: var(--lp-teal);
  box-shadow: 0 24px 48px -24px rgba(21,159,140,0.28), var(--lp-shadow-2);
}
.lp-compare-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-compare-arrow-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--lp-paper);
  border: 1px solid var(--lp-line);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--lp-shadow-1);
  color: var(--lp-teal-2);
  font-size: 16px;
}
.lp-cc-head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--lp-line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.lp-cc-head.baydar {
  background: linear-gradient(90deg, rgba(21,159,140,0.08), transparent 70%);
}
.lp-cc-row {
  padding: 11px 16px;
  border-top: 1px solid var(--lp-line);
  display: flex;
  align-items: center;
  gap: 12px;
}
.lp-cc-row:first-of-type { border-top: none; }
.lp-cc-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-size: 16px;
}
.lp-cc-icon.neutral { background: var(--lp-bg); color: var(--lp-ink-4); }
.lp-cc-icon.healthy { background: linear-gradient(135deg,#EEF1F4,#DBE2EB); color: var(--lp-ink-3); }
.lp-cc-icon.hot     { background: linear-gradient(135deg,#D6EEEA,#A4D8D0); color: var(--lp-teal-2); }
.lp-cc-icon.weak    { background: linear-gradient(135deg,#FBEED4,#E8C780); color: var(--lp-amber); }
.lp-cc-row-name { font-size: 13.5px; font-weight: 600; color: var(--lp-ink); }
.lp-cc-row-meta { font-size: 12px; color: var(--lp-ink-4); }
.lp-cc-chip {
  font-family: var(--lp-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.lp-cc-chip.plain { border: 1px solid var(--lp-line); color: var(--lp-ink-4); }
.lp-cc-chip.teal  { background: var(--lp-teal-soft); border: 1px solid rgba(21,159,140,0.3); color: var(--lp-teal-2); }
.lp-cc-chip.dark  { background: var(--lp-ink); color: white; border: none; }
.lp-cc-chip.amber { background: var(--lp-amber-soft); border: 1px solid rgba(201,138,18,0.3); color: var(--lp-amber); }
.lp-cc-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex: none;
}
.lp-cc-dot.hot-pulse {
  background: var(--lp-teal-3);
  animation: lp-pulse 1.6s infinite;
}
.lp-cc-footer {
  padding: 8px 16px;
  font-family: var(--lp-mono);
  font-size: 11px;
  border-top: 1px dashed var(--lp-line);
  text-align: center;
}
.lp-cc-footer.plain  { color: var(--lp-ink-4); }
.lp-cc-footer.baydar { color: var(--lp-teal-2); background: rgba(21,159,140,0.04); }

.lp-ebay-compare {
  margin-top: 34px;
  padding: 24px;
  border: 1px solid var(--lp-line);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, #f9fbfd 100%);
}

.lp-ebay-compare h3 {
  margin: 0 0 8px;
  font-size: 24px;
  color: var(--lp-navy);
}

.lp-ebay-compare > p {
  margin: 0 0 16px;
  color: var(--lp-ink-3);
  font-size: 15px;
  line-height: 1.5;
}

.lp-ebay-compare-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lp-ebay-compare-card {
  border: 1px solid var(--lp-line);
  border-radius: 12px;
  background: var(--lp-paper);
  padding: 16px 16px 14px;
}

.lp-ebay-compare-card h4 {
  margin: 0 0 10px;
  font-size: 16px;
  color: var(--lp-ink);
}

.lp-ebay-compare-card ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 7px;
  color: var(--lp-ink-2);
  font-size: 13.5px;
}

.lp-ebay-compare-card.baydar {
  border-color: rgba(21,159,140,0.35);
  background: linear-gradient(180deg, rgba(21,159,140,0.06), rgba(21,159,140,0.02));
}

/* ── Dark band ── */
.lp-band-dark {
  background: linear-gradient(180deg, var(--lp-navy) 0%, var(--lp-navy-2) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}
.lp-band-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 80% at 90% 0%, rgba(21,159,140,0.18), transparent 60%),
    radial-gradient(40% 60% at 0% 100%, rgba(21,159,140,0.10), transparent 60%);
}
.lp-band-glow-center {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 80% at 50% 0%, rgba(21,159,140,0.16), transparent 60%);
}

/* ── Hot Watches ── */
.lp-hw-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 72px;
  align-items: center;
  position: relative;
}
.lp-hw-eyebrow {
  font-family: var(--lp-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lp-teal-3);
  margin-bottom: 14px;
}
.lp-hw-h2 {
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: white;
  margin: 0 0 18px;
}
.lp-hw-body {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
  max-width: 500px;
  margin-bottom: 10px;
}
.lp-hw-sub {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255,255,255,0.5);
  max-width: 500px;
  margin-bottom: 24px;
}
.lp-hw-points {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lp-hw-point {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.lp-hw-point-num {
  flex: none;
  font-family: var(--lp-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--lp-teal-3);
  padding: 3px 8px;
  border: 1px solid rgba(21,159,140,0.35);
  border-radius: 999px;
  background: rgba(21,159,140,0.08);
}
.lp-hw-point-title { color: white; font-size: 14px; font-weight: 500; margin-bottom: 2px; }
.lp-hw-point-body  { color: rgba(255,255,255,0.6); font-size: 13px; line-height: 1.45; }

.lp-hw-visual {
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 22px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lp-hw-vis-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.lp-hw-vis-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lp-hw-vis-icon {
  width: 30px; height: 30px;
  border-radius: 7px;
  background: rgba(21,159,140,0.15);
  color: var(--lp-teal-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.lp-hw-vis-name {
  font-weight: 500;
  font-size: 13.5px;
  color: white;
}
.lp-hw-vis-sub {
  font-family: var(--lp-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}
.lp-hw-vis-badge {
  font-family: var(--lp-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--lp-teal-3);
  background: rgba(21,159,140,0.15);
  border: 1px solid rgba(21,159,140,0.35);
  padding: 3px 9px;
  border-radius: 999px;
}
.lp-hw-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px 0 18px;
  position: relative;
}
.lp-hw-timer-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.lp-hw-timer-label {
  font-family: var(--lp-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}
.lp-hw-timer-count {
  font-family: var(--lp-mono);
  font-size: 38px;
  font-weight: 600;
  color: white;
  letter-spacing: -0.03em;
  line-height: 1;
}
.lp-hw-timer-stat {
  font-family: var(--lp-mono);
  font-size: 10px;
  color: var(--lp-teal-3);
}
.lp-hw-events {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.lp-hw-event {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 12.5px;
}
.lp-hw-event.match {
  background: rgba(21,159,140,0.10);
  border: 1px solid rgba(21,159,140,0.25);
  color: white;
}
.lp-hw-event.noop {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.5);
}
.lp-hw-event-ts {
  font-family: var(--lp-mono);
  font-size: 10.5px;
  color: rgba(255,255,255,0.45);
  width: 48px;
  flex: none;
}
.lp-hw-event-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex: none;
}
.lp-hw-event.match .lp-hw-event-dot { background: var(--lp-teal-3); }
.lp-hw-event.noop  .lp-hw-event-dot { background: rgba(255,255,255,0.2); }

/* ── How it works ── */
.lp-how-section {
  background: var(--lp-paper);
  border-top: 1px solid var(--lp-line);
  border-bottom: 1px solid var(--lp-line);
}
.lp-how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.lp-how-card {
  background: var(--lp-paper);
  border: 1px solid var(--lp-line);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--lp-shadow-1);
}
.lp-how-num {
  font-family: var(--lp-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--lp-teal-2);
  background: var(--lp-teal-soft);
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  display: inline-block;
  width: fit-content;
}
.lp-how-card h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.2;
  color: var(--lp-ink);
}
.lp-how-card p {
  color: var(--lp-ink-3);
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0;
}
.lp-how-visual {
  margin-top: auto;
  border: 1px solid var(--lp-line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--lp-paper-2);
}
.lp-how-vis-head {
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--lp-mono);
  font-size: 11px;
  border-bottom: 1px solid var(--lp-line);
}
.lp-how-vis-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 12px;
  border-top: 1px dashed var(--lp-line);
  font-family: var(--lp-mono);
  font-size: 11px;
  color: var(--lp-ink-2);
}
.lp-how-vis-row:first-of-type { border-top: none; }
.lp-ok   { color: var(--lp-green); }
.lp-warn { color: var(--lp-amber); }
.lp-pend { color: var(--lp-ink-4); }

/* How vis — cadence */
.lp-cadence-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: 7px;
  border: 1px solid var(--lp-line);
  margin: 8px;
}
.lp-cadence-row + .lp-cadence-row { margin-top: 0; }
.lp-cadence-row.hot {
  border-color: rgba(21,159,140,0.3);
  background: linear-gradient(90deg, rgba(21,159,140,0.07), rgba(21,159,140,0.02));
}
.lp-cadence-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex: none;
}
.lp-cadence-icon.plain { background: var(--lp-bg); color: var(--lp-ink-4); }
.lp-cadence-icon.hot   { background: var(--lp-teal); color: white; }
.lp-cadence-title { font-size: 12px; font-weight: 500; color: var(--lp-ink); }
.lp-cadence-sub   { font-size: 10.5px; font-family: var(--lp-mono); color: var(--lp-ink-4); }
.lp-cadence-sub.hot { color: var(--lp-teal-2); }
.lp-cadence-timer {
  margin-left: auto;
  font-family: var(--lp-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--lp-teal-2);
  background: white;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(21,159,140,0.35);
}

/* How vis — review */
.lp-review-head {
  padding: 9px 12px;
  background: linear-gradient(180deg,#0B1F3F,#0A1A35);
  color: white;
  font-size: 11.5px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.lp-review-head-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lp-teal-3);
}
.lp-review-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-top: 1px solid var(--lp-line);
  font-size: 11.5px;
  color: var(--lp-ink-2);
}
.lp-review-thumb {
  width: 26px; height: 26px;
  border-radius: 5px;
  background: var(--lp-bg);
  flex: none;
}
.lp-review-badge {
  margin-left: auto;
  font-family: var(--lp-mono);
  font-size: 10px;
  border: 1px solid var(--lp-line);
  border-radius: 999px;
  padding: 1px 7px;
  color: var(--lp-ink-4);
}
.lp-review-link {
  font-family: var(--lp-mono);
  font-size: 10.5px;
  color: var(--lp-teal-2);
}

/* ── Feature grid ── */
.lp-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--lp-line);
  border: 1px solid var(--lp-line);
  border-radius: 18px;
  overflow: hidden;
}
.lp-feature-card {
  background: var(--lp-paper);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
}
.lp-feature-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.lp-feature-icon.ink   { background: rgba(11,31,63,0.06);  color: var(--lp-ink); }
.lp-feature-icon.teal  { background: var(--lp-teal-soft);  color: var(--lp-teal-2); }
.lp-feature-icon.amber { background: var(--lp-amber-soft); color: var(--lp-amber); }
.lp-feature-icon.green { background: var(--lp-green-soft); color: var(--lp-green); }
.lp-feature-card h4 {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--lp-ink);
}
.lp-feature-card p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--lp-ink-3);
  margin: 0;
}

/* ── Final CTA ── */
.lp-final-cta {
  text-align: center;
  padding: 96px 0;
}
.lp-final-h2 {
  font-size: 60px;
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.032em;
  color: white;
  margin: 14px auto 16px;
  max-width: 820px;
}
.lp-final-body {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255,255,255,0.7);
  max-width: 540px;
  margin: 0 auto 36px;
}
.lp-final-actions {
  display: inline-flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.lp-final-trust {
  margin-top: 26px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Section heading helper ── */
.lp-section-heading {
  text-align: center;
  margin-bottom: 44px;
}
.lp-section-heading .lp-display {
  max-width: 680px;
  margin: 10px auto 12px;
}
.lp-section-sub {
  color: var(--lp-ink-3);
  font-size: 15.5px;
  line-height: 1.55;
  max-width: 540px;
  margin: 0 auto;
}

.lp-compare-link {
  margin-top: 20px;
}

.lp-vs-ebay-page .lp-section {
  border-top: 1px solid var(--lp-line);
  padding: 60px 0;
}

.lp-vs-ebay-page .lp-vs-hero {
  border-top: none;
  padding-top: 16px;
  padding-bottom: 10px;
}

.lp-vs-problem-solution {
  border-top: none;
  padding-top: 10px;
}

.lp-vs-ebay-page .lp-section-heading {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.lp-vs-ebay-page .lp-section-heading .lp-section-sub {
  max-width: 720px;
}

.lp-vs-hero-shell {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(13, 23, 44, 0.02), rgba(21, 159, 140, 0.035));
  border: 1px solid rgba(21, 159, 140, 0.2);
  border-radius: 20px;
  box-shadow: var(--lp-shadow-1);
  padding: 18px 18px;
}

.lp-vs-radar-bg {
  position: absolute;
  top: -86px;
  left: -94px;
  width: 300px;
  height: 300px;
  opacity: 0.3;
  pointer-events: none;
}

.lp-vs-hero-note {
  margin: 9px auto 0;
  max-width: 640px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--lp-ink-2);
  font-weight: 600;
}

.lp-vs-kicker {
  margin: 4px 0 2px;
  font-size: 14px;
  color: var(--lp-ink-3);
  font-weight: 600;
}

.lp-vs-hero-shell .lp-actions {
  justify-content: center;
  margin-top: 10px;
}

.lp-vs-transition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.lp-vs-transition-card {
  background: var(--lp-paper);
  border: 1px solid var(--lp-line);
  border-radius: 16px;
  box-shadow: var(--lp-shadow-1);
  padding: 22px 20px;
}

.lp-vs-transition-card h3 {
  margin: 8px 0 12px;
  color: var(--lp-ink);
  font-size: 22px;
  line-height: 1.24;
}

.lp-vs-transition-card ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--lp-ink-2);
  font-size: 14px;
  line-height: 1.48;
}

.lp-vs-transition-card-baydar {
  border-color: rgba(21, 159, 140, 0.4);
  background: linear-gradient(180deg, rgba(21, 159, 140, 0.08), rgba(21, 159, 140, 0.02));
  box-shadow: 0 24px 48px -24px rgba(21, 159, 140, 0.28), var(--lp-shadow-2);
}

.lp-vs-table-section .lp-section-heading {
  margin-bottom: 10px;
}

.lp-vs-table-section {
  padding-top: 0;
}

.lp-benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.lp-benefit-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lp-benefit-card {
  background: var(--lp-paper);
  border: 1px solid var(--lp-line);
  border-radius: 16px;
  box-shadow: var(--lp-shadow-1);
  padding: 22px;
}

.lp-benefit-card h3 {
  margin: 0 0 12px;
  color: var(--lp-ink);
  font-size: 20px;
  letter-spacing: 0;
}

.lp-benefit-card p {
  margin: 0;
  color: var(--lp-ink-3);
  line-height: 1.55;
  font-size: 14px;
}

.lp-benefit-card ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--lp-ink-2);
  font-size: 14px;
  line-height: 1.5;
}

.lp-benefit-card-featured {
  border-color: rgba(21, 159, 140, 0.45);
  background: linear-gradient(180deg, rgba(21, 159, 140, 0.08), rgba(21, 159, 140, 0.03));
}

.lp-who-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.lp-who-card {
  background: var(--lp-paper);
  border: 1px solid var(--lp-line);
  border-radius: 14px;
  padding: 20px 18px;
}

.lp-who-icon {
  font-size: 22px;
  margin-bottom: 6px;
  color: var(--baydar-teal-dark);
}

.lp-who-card h4 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--lp-ink);
  letter-spacing: 0;
}

.lp-who-card p {
  margin: 0;
  color: var(--lp-ink-3);
  font-size: 13.5px;
  line-height: 1.52;
}

.lp-vs-proof-note {
  font-size: 12.5px;
  color: var(--lp-ink-4);
  margin: 0 0 14px;
  letter-spacing: 0.01em;
}

.lp-vs-table-wrap {
  border: 1px solid var(--lp-line);
  border-radius: 16px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--lp-paper);
  box-shadow: 0 24px 46px -34px rgba(11, 31, 63, 0.3);
}

.lp-vs-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.lp-vs-table th,
.lp-vs-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 13px;
  border-top: 1px solid var(--lp-line);
  font-size: 13.5px;
  line-height: 1.42;
}

.lp-vs-table thead th {
  border-top: none;
  background: var(--lp-bg);
  color: var(--lp-ink);
  font-size: 13px;
  font-weight: 700;
}

.lp-vs-table thead th + th,
.lp-vs-table tbody td + td {
  border-left: 1px solid rgba(11, 31, 63, 0.06);
}

.lp-vs-table tbody tr:nth-child(even) td {
  background: rgba(11, 31, 63, 0.01);
}

.lp-vs-table tbody tr:hover td {
  background: rgba(11, 31, 63, 0.018);
}

.timing-proof {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfc;
  padding: 6px 8px;
}

.timing-proof summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.timing-proof summary::-webkit-details-marker {
  display: none;
}

.timing-proof-status {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.timing-proof ul {
  margin: 8px 0 4px;
  padding-left: 16px;
  display: grid;
  gap: 4px;
}

.timing-proof li {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
}

.lp-vs-table tbody tr td {
  transition: background-color 120ms ease;
}

.lp-vs-table tbody td:first-child {
  width: 24%;
  color: var(--lp-ink);
  font-weight: 600;
}

.lp-vs-table tbody td:nth-child(2) {
  width: 38%;
  color: var(--lp-ink-3);
}

.lp-vs-table tbody td:nth-child(3) {
  width: 38%;
  color: var(--lp-ink-2);
  background: linear-gradient(180deg, rgba(21, 159, 140, 0.04), rgba(21, 159, 140, 0.015));
}

#view-searches .topbar h2,
#view-search-health .topbar h2 {
  font-size: 20px;
}

#view-searches .topbar p {
  font-size: 13.5px;
  max-width: 760px;
}

.search-list-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.search-list-grid .search-card {
  grid-template-columns: 58px minmax(0, 1fr);
  padding: 7px;
  align-items: start;
}

.search-list-grid .search-thumb {
  width: 52px;
  height: 52px;
}

.search-list-grid .card-actions {
  grid-column: 1 / -1;
}

.lp-faq-list {
  display: grid;
  gap: 12px;
}

.lp-faq-list details {
  background: var(--lp-paper);
  border: 1px solid var(--lp-line);
  border-radius: 12px;
  box-shadow: var(--lp-shadow-1);
  padding: 0 18px;
}

.lp-faq-list summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  color: var(--lp-ink);
  padding: 16px 0;
  list-style: none;
}

.lp-faq-list summary::-webkit-details-marker {
  display: none;
}

.lp-faq-list p {
  margin: 0 0 16px;
  color: var(--lp-ink-3);
  line-height: 1.55;
  font-size: 14px;
}

/* ── Problem/Solution ── */
.lp-ps-section { border-top: 1px solid var(--lp-line); }
.lp-ps-grid {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 72px;
  align-items: flex-start;
}
.lp-ps-sticky {
  position: sticky;
  top: 40px;
}
.lp-ps-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.lp-ps-card {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--lp-line);
  background: var(--lp-paper);
  box-shadow: var(--lp-shadow-1);
}
.lp-ps-card.solution {
  background: linear-gradient(180deg, var(--lp-navy) 0%, var(--lp-navy-2) 100%);
  color: white;
  border: none;
  box-shadow: var(--lp-shadow-3);
  position: relative;
  overflow: hidden;
}
.lp-ps-card.solution::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 100% 0%, rgba(21,159,140,0.18), transparent 60%);
  pointer-events: none;
}
.lp-ps-card-label {
  font-family: var(--lp-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.lp-ps-card-label.neg { color: var(--lp-red); }
.lp-ps-card-label.pos { color: var(--lp-teal-3); }
.lp-ps-card-title {
  font-size: 15.5px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.lp-ps-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.lp-ps-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.5;
}
.lp-ps-bullet {
  flex: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  margin-top: 1px;
}
.lp-ps-bullet.neg { background: var(--lp-red-soft); color: var(--lp-red); }
.lp-ps-bullet.pos { background: rgba(21,159,140,0.18); color: var(--lp-teal-3); }

/* ── Matches buyer-facing improvements ── */
.lp-matches-open-ebay {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--lp-teal);
  color: white;
  text-decoration: none;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}
.lp-matches-open-ebay:hover { opacity: 0.85; }

/* ── Health coaching card ── */
.health-coaching-card {
  background: var(--lp-paper);
  border: 1px solid var(--lp-line);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 12px;
  box-shadow: var(--lp-shadow-1);
}
.health-coaching-card.needs-review {
  border-color: rgba(201,138,18,0.4);
  background: linear-gradient(to right, rgba(254,243,199,0.4), var(--lp-paper));
}
.health-coaching-card.blocked {
  border-color: rgba(220,38,38,0.3);
  background: linear-gradient(to right, rgba(254,226,226,0.3), var(--lp-paper));
}
.health-coaching-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--lp-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.health-coaching-status.healthy {
  background: var(--lp-green-soft);
  color: var(--lp-green);
}
.health-coaching-status.needs-review {
  background: var(--lp-amber-soft);
  color: var(--lp-amber);
}
.health-coaching-status.blocked {
  background: var(--lp-red-soft);
  color: var(--lp-red);
}

.demo-preview-note {
  margin-top: 8px;
  color: #5f6f7a;
  font-size: 12.5px;
  line-height: 1.45;
}

.account-panel .panel-head {
  background: linear-gradient(180deg, #ffffff, #f7fbfd);
}

.account-panel .settings-grid {
  gap: 12px;
}

.account-panel .settings-block {
  padding: 14px 15px;
  border-radius: 12px;
  min-height: 124px;
}

.account-panel .settings-block h4 {
  font-size: 15px;
}

.account-panel .meta,
.account-panel .quiet-note {
  font-size: 13px;
  line-height: 1.44;
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .lp h1.lp-h1 { font-size: 52px; }
  .lp-h1-sub { font-size: 22px; }
  .lp-display { font-size: 30px; }
  .lp-final-h2 { font-size: 36px; }
  .lp-hw-h2 { font-size: 30px; }

  .lp-hero-grid,
  .lp-hw-grid,
  .lp-ps-grid { grid-template-columns: 1fr; }

  .lp-who-grid { grid-template-columns: 1fr; }

  .lp-compare-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .lp-compare-arrow { display: none; }

  .lp-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .lp-benefit-grid,
  .lp-benefit-grid-4 {
    grid-template-columns: 1fr;
  }
  .lp-who-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lp-vs-transition-grid {
    grid-template-columns: 1fr;
  }
  .lp-ebay-compare-grid {
    grid-template-columns: 1fr;
  }
  .lp-how-grid {
    grid-template-columns: 1fr;
  }
  .lp-ps-cards {
    grid-template-columns: 1fr;
  }
  .lp-radar-wrap { display: none; }
}

/* ── Beta status section ── */
.lp-beta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 44px;
}
.lp-beta-col {
  background: var(--lp-paper-2);
  border: 1px solid var(--lp-line);
  border-radius: 12px;
  padding: 28px;
}
.lp-beta-col--works { border-color: rgba(21, 159, 140, 0.3); }
.lp-beta-col-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--lp-ink);
  margin-bottom: 18px;
}
.lp-beta-col-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
.lp-beta-col-dot--ok    { background: var(--lp-teal-2); }
.lp-beta-col-dot--gated { background: var(--lp-ink-4); }
.lp-beta-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.lp-beta-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--lp-ink-2);
}
.lp-beta-check { color: var(--lp-teal-2); font-weight: 600; flex: none; }
.lp-beta-gate  { color: var(--lp-ink-4); flex: none; }

/* ── Beta CTA card ── */
.lp-beta-cta-card {
  background: var(--lp-paper-2);
  border: 1px solid var(--lp-line);
  border-radius: 16px;
  padding: 52px 48px;
  text-align: center;
}

@media (max-width: 720px) {
  .lp-beta-grid { grid-template-columns: 1fr; }
  .lp-beta-cta-card { padding: 32px 20px; }
}

/* ── OAuth error notice ── */
.oauth-error-notice {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 10px;
  border-left: 3px solid #dc2626;
  background: #fef2f2;
  border-radius: 3px;
  font-size: 12px;
  color: #7f1d1d;
  align-self: stretch;
}

/* ── Local-mode OAuth notice ── */
.oauth-local-mode-notice {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 10px;
  border-left: 3px solid #d97706;
  background: #fef9ec;
  border-radius: 3px;
  font-size: 12px;
  color: #7a4a0a;
  align-self: stretch;
}
.oauth-local-mode-notice strong {
  font-size: 12px;
  font-weight: 700;
}

/* ── Beta first-run onboarding panel ── */
.beta-first-run-panel {
  background: var(--panel-soft);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 24px 28px 20px;
  margin-bottom: 20px;
}
.beta-first-run-heading {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px;
}
.beta-steps {
  margin: 0 0 18px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}
.beta-start-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.beta-start-btn {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.12s;
}
.beta-start-btn:hover { opacity: 0.82; }
.beta-start-primary {
  background: var(--baydar-teal);
  color: #fff;
}
.beta-start-secondary {
  background: var(--panel-muted);
  color: var(--ink);
  border: 1px solid var(--panel-border);
}
