/* PUPMKT 1.1 semantic visual system. Loaded after every route-specific stylesheet. */
:root,
:root[data-theme="light"] {
  color-scheme: light;
  --surface-canvas: #f6f7f9;
  --surface-default: #ffffff;
  --surface-subtle: #eef1f5;
  --surface-raised: #ffffff;
  --surface-inverse: #111827;
  --surface-overlay: rgba(15, 23, 42, 0.72);
  --surface-header: rgba(255, 255, 255, 0.9);
  --surface-field: #ffffff;
  --surface-media: #e7ebf0;
  --surface-hover: #f3f6fa;
  --surface-selected: #eaf1ff;
  --surface-brand: #fdecef;
  --surface-trust: #e8f7f0;
  --surface-hub: #e5f6f4;
  --surface-warning: #fff2d5;
  --surface-danger: #fcebed;
  --surface-digital: #f1edff;
  --surface-gradient: linear-gradient(180deg, #ffffff, #f8fafc);

  --text-primary: #111827;
  --text-secondary: #566273;
  --text-tertiary: #5f6b7a;
  --text-inverse: #ffffff;
  --text-on-media: #ffffff;

  --border-default: #d8dee7;
  --border-strong: #b9c3d0;
  --border-subtle: #e7ebf0;
  --border-control: #7c8796;

  --brand-text: #b51533;
  --brand-solid: #c8173a;
  --brand-hover: #aa1230;
  --brand-soft: #fdecef;
  --on-brand: #ffffff;

  --action-text: #1d4ed8;
  --action-solid: #1d4ed8;
  --action-hover: #1e40af;
  --action-soft: #eaf1ff;
  --on-action: #ffffff;

  --success-text: #11623f;
  --success-solid: #14845a;
  --success-soft: #e8f7f0;
  --hub-text: #0f6b66;
  --hub-solid: #0f766e;
  --hub-soft: #e5f6f4;
  --warning-text: #8a4b00;
  --warning-solid: #b96800;
  --warning-soft: #fff2d5;
  --danger-text: #b42336;
  --danger-solid: #c93649;
  --danger-soft: #fcebed;
  --digital-text: #6941c6;
  --digital-solid: #7047c8;
  --digital-soft: #f1edff;
  --security-text: #174ea6;
  --security-soft: #e8f1ff;

  --focus: #005fcc;
  --focus-outer: rgba(255, 255, 255, 0.95);
  --badge-overlay: rgba(17, 24, 39, 0.88);
  --scrim: rgba(15, 23, 42, 0.72);
  --disabled-bg: #e8ebef;
  --disabled-text: #5f6b7a;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.09);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.13);

  --journey-shopping: #2563eb;
  --journey-selling: #4f46e5;
  --journey-hub: #0f766e;
  --journey-digital: #7c3aed;
  --journey-support: #b45309;
  --journey-technical: #64748b;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --surface-canvas: #0f141b;
  --surface-default: #171e28;
  --surface-subtle: #1e2834;
  --surface-raised: #222e3c;
  --surface-inverse: #f8fafc;
  --surface-overlay: rgba(3, 7, 18, 0.78);
  --surface-header: rgba(15, 20, 27, 0.9);
  --surface-field: #111821;
  --surface-media: #111821;
  --surface-hover: #202a36;
  --surface-selected: rgba(82, 132, 255, 0.16);
  --surface-brand: rgba(232, 49, 81, 0.15);
  --surface-trust: rgba(63, 185, 128, 0.15);
  --surface-hub: rgba(45, 174, 165, 0.15);
  --surface-warning: rgba(222, 156, 45, 0.16);
  --surface-danger: rgba(226, 62, 79, 0.16);
  --surface-digital: rgba(139, 92, 246, 0.17);
  --surface-gradient: linear-gradient(180deg, #1b2430, #151c25);

  --text-primary: #f7f9fc;
  --text-secondary: #bac4d1;
  --text-tertiary: #909dac;
  --text-inverse: #111827;
  --text-on-media: #ffffff;

  --border-default: #344152;
  --border-strong: #4a5a6e;
  --border-subtle: #293544;
  --border-control: #627389;

  --brand-text: #ff7b8e;
  --brand-solid: #c8173a;
  --brand-hover: #df2048;
  --brand-soft: rgba(232, 49, 81, 0.15);
  --on-brand: #ffffff;

  --action-text: #8ab4ff;
  --action-solid: #2f65d9;
  --action-hover: #3767cf;
  --action-soft: rgba(82, 132, 255, 0.16);
  --on-action: #ffffff;

  --success-text: #69d5a4;
  --success-solid: #38a778;
  --success-soft: rgba(63, 185, 128, 0.15);
  --hub-text: #66d4cb;
  --hub-solid: #2daea5;
  --hub-soft: rgba(45, 174, 165, 0.15);
  --warning-text: #f6c66d;
  --warning-solid: #c68128;
  --warning-soft: rgba(222, 156, 45, 0.16);
  --danger-text: #ff8793;
  --danger-solid: #d94a5a;
  --danger-soft: rgba(226, 62, 79, 0.16);
  --digital-text: #c0a8ff;
  --digital-solid: #8b5cf6;
  --digital-soft: rgba(139, 92, 246, 0.17);
  --security-text: #91b9ff;
  --security-soft: rgba(72, 126, 221, 0.16);

  --focus: #8ab4ff;
  --focus-outer: rgba(15, 20, 27, 0.95);
  --badge-overlay: rgba(7, 11, 17, 0.88);
  --scrim: rgba(3, 7, 18, 0.82);
  --disabled-bg: #252e3a;
  --disabled-text: #a0acbb;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.36);

  --journey-shopping: #70a0ff;
  --journey-selling: #918cff;
  --journey-hub: #66d4cb;
  --journey-digital: #c0a8ff;
  --journey-support: #f6c66d;
  --journey-technical: #aeb8c6;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --surface-canvas: #0f141b;
    --surface-default: #171e28;
    --surface-subtle: #1e2834;
    --surface-raised: #222e3c;
    --surface-inverse: #f8fafc;
    --surface-overlay: rgba(3, 7, 18, 0.78);
    --surface-header: rgba(15, 20, 27, 0.9);
    --surface-field: #111821;
    --surface-media: #111821;
    --surface-hover: #202a36;
    --surface-selected: rgba(82, 132, 255, 0.16);
    --surface-brand: rgba(232, 49, 81, 0.15);
    --surface-trust: rgba(63, 185, 128, 0.15);
    --surface-hub: rgba(45, 174, 165, 0.15);
    --surface-warning: rgba(222, 156, 45, 0.16);
    --surface-danger: rgba(226, 62, 79, 0.16);
    --surface-digital: rgba(139, 92, 246, 0.17);
    --surface-gradient: linear-gradient(180deg, #1b2430, #151c25);
    --text-primary: #f7f9fc;
    --text-secondary: #bac4d1;
    --text-tertiary: #909dac;
    --text-inverse: #111827;
    --text-on-media: #ffffff;
    --border-default: #344152;
    --border-strong: #4a5a6e;
    --border-subtle: #293544;
    --border-control: #627389;
    --brand-text: #ff7b8e;
    --brand-solid: #c8173a;
    --brand-hover: #df2048;
    --brand-soft: rgba(232, 49, 81, 0.15);
    --on-brand: #ffffff;
    --action-text: #8ab4ff;
    --action-solid: #2f65d9;
    --action-hover: #3767cf;
    --action-soft: rgba(82, 132, 255, 0.16);
    --on-action: #ffffff;
    --success-text: #69d5a4;
    --success-solid: #38a778;
    --success-soft: rgba(63, 185, 128, 0.15);
    --hub-text: #66d4cb;
    --hub-solid: #2daea5;
    --hub-soft: rgba(45, 174, 165, 0.15);
    --warning-text: #f6c66d;
    --warning-solid: #c68128;
    --warning-soft: rgba(222, 156, 45, 0.16);
    --danger-text: #ff8793;
    --danger-solid: #d94a5a;
    --danger-soft: rgba(226, 62, 79, 0.16);
    --digital-text: #c0a8ff;
    --digital-solid: #8b5cf6;
    --digital-soft: rgba(139, 92, 246, 0.17);
    --security-text: #91b9ff;
    --security-soft: rgba(72, 126, 221, 0.16);
    --focus: #8ab4ff;
    --focus-outer: rgba(15, 20, 27, 0.95);
    --badge-overlay: rgba(7, 11, 17, 0.88);
    --scrim: rgba(3, 7, 18, 0.82);
    --disabled-bg: #252e3a;
    --disabled-text: #a0acbb;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.22);
    --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.28);
    --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.36);
    --journey-shopping: #70a0ff;
    --journey-selling: #918cff;
    --journey-hub: #66d4cb;
    --journey-digital: #c0a8ff;
    --journey-support: #f6c66d;
    --journey-technical: #aeb8c6;
  }
}

:root {
  --bg: var(--surface-canvas);
  --panel: var(--surface-default);
  --panel-2: var(--surface-subtle);
  --line: var(--border-default);
  --text: var(--text-primary);
  --muted: var(--text-secondary);
  --accent: var(--brand-solid);
  --accent-hot: var(--brand-hover);
  --accent-deep: var(--brand-text);
  --white-soft: var(--text-primary);
  --green: var(--success-text);
  --cyan: var(--action-text);
  --coral: var(--danger-text);
  --gold: var(--warning-text);
  --shadow: var(--shadow-lg);
  --radius-control: 10px;
  --radius-card: 14px;
  --radius-panel: 18px;
}

html {
  background: var(--surface-canvas);
}

body {
  background: var(--surface-canvas);
  color: var(--text-primary);
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  text-rendering: optimizeLegibility;
}

body::before {
  background:
    radial-gradient(circle at 8% -5%, var(--brand-soft), transparent 30rem),
    radial-gradient(circle at 92% 6%, var(--action-soft), transparent 34rem),
    linear-gradient(180deg, var(--surface-canvas), var(--surface-canvas));
}

::selection {
  background: var(--action-solid);
  color: var(--on-action);
}

a {
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.topbar,
.operator-topbar {
  border-color: var(--border-default);
  background: var(--surface-header);
  box-shadow: var(--shadow-sm);
}

.brand strong,
.operator-brand strong {
  color: var(--text-primary);
  text-shadow: none;
}

.brand small,
.operator-brand small,
.desktop-nav,
.operator-topbar nav {
  color: var(--text-secondary);
}

.brand-logo,
.operator-brand img {
  filter: none;
}

.launch-disclosure {
  border-color: var(--border-default);
  background: var(--action-soft);
  color: var(--text-secondary);
  box-shadow: inset 3px 0 0 var(--action-solid);
}

.launch-disclosure strong {
  color: var(--security-text);
}

.theme-control {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.45rem;
  min-height: 2.55rem;
  padding: 0.28rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  background: var(--surface-default);
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  font-size: 0.78rem;
  font-weight: 650;
}

.theme-control-indicator {
  margin-left: 0.35rem;
  width: 0.7rem;
  height: 0.7rem;
  flex: 0 0 auto;
  border: 2px solid var(--action-text);
  border-radius: 50%;
  background: linear-gradient(90deg, var(--action-solid) 50%, var(--surface-default) 50%);
}

.theme-control-label {
  color: var(--text-primary);
  font-weight: 750;
}

.theme-control-options {
  display: inline-grid;
  grid-template-columns: repeat(3, auto);
  gap: 0.15rem;
  padding: 0.14rem;
  border-radius: calc(var(--radius-control) - 3px);
  background: var(--surface-subtle);
}

.theme-control-choice {
  min-height: 2rem;
  padding: 0 0.52rem;
  border: 0;
  border-radius: calc(var(--radius-control) - 5px);
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 750;
  cursor: pointer;
}

.theme-control-choice:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.theme-control-choice:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

.theme-control-choice[aria-pressed="true"] {
  background: var(--action-solid);
  color: var(--on-action);
  box-shadow: var(--shadow-sm);
}

.has-theme-control .theme-control {
  margin-left: auto;
}

.has-theme-control .demo-map-entry,
.has-theme-control .demo-link {
  margin-left: 0;
}

.skip-link {
  background: var(--action-solid);
  color: var(--on-action);
  border-radius: var(--radius-control);
  box-shadow: var(--shadow-md);
}

.hero-copy h1,
.section-heading h1,
.detail-hero h1,
.category-hero h1,
.policy-hero h1,
.strategy-hero-copy h1,
.operator-hero h1 {
  color: var(--text-primary);
  font-weight: 750;
  letter-spacing: -0.035em;
  text-shadow: none;
}

.hero-copy p:not(.eyebrow),
.section-heading p,
.detail-hero p,
.category-hero p,
.policy-hero p,
.strategy-section-heading p,
.market-modal-head p,
.market-dialog p,
.market-dialog small {
  color: var(--text-secondary);
}

.eyebrow,
.section-label,
.operator-eyebrow {
  color: var(--text-tertiary);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.auction-rail .eyebrow,
.theme-scope-marketplace .detail-price {
  color: var(--brand-text);
}

.theme-scope-hub .eyebrow,
.theme-scope-hub .section-label {
  color: var(--hub-text);
}

.theme-scope-security .eyebrow,
.theme-scope-security .section-label {
  color: var(--security-text);
}

.theme-scope-digital .eyebrow,
.theme-scope-digital .section-label {
  color: var(--digital-text);
}

.theme-scope-seller .eyebrow,
.theme-scope-seller .section-label {
  color: var(--action-text);
}

.theme-scope-support .eyebrow,
.theme-scope-support .section-label {
  color: var(--warning-text);
}

.policy-hero,
.category-hero {
  border-color: var(--border-default);
  border-radius: var(--radius-panel);
  background: var(--surface-gradient);
  box-shadow: var(--shadow-md);
}

.policy-section {
  border-top-color: var(--border-subtle);
}

.theme-scope-security .policy-hero,
.theme-scope-security .category-hero {
  border-color: color-mix(in srgb, var(--security-text) 32%, var(--border-default));
  background: linear-gradient(135deg, var(--security-soft), var(--surface-default) 72%);
}

.theme-scope-hub .policy-hero,
.theme-scope-hub .category-hero {
  border-color: color-mix(in srgb, var(--hub-text) 32%, var(--border-default));
  background: linear-gradient(135deg, var(--hub-soft), var(--surface-default) 72%);
}

.theme-scope-digital .policy-hero,
.theme-scope-digital .category-hero {
  border-color: color-mix(in srgb, var(--digital-text) 32%, var(--border-default));
  background: linear-gradient(135deg, var(--digital-soft), var(--surface-default) 72%);
}

.theme-scope-seller .policy-hero,
.theme-scope-seller .category-hero {
  border-color: color-mix(in srgb, var(--action-solid) 30%, var(--border-default));
  background: linear-gradient(135deg, var(--action-soft), var(--surface-default) 72%);
}

.theme-scope-support .policy-hero,
.theme-scope-support .category-hero {
  border-color: color-mix(in srgb, var(--warning-text) 30%, var(--border-default));
  background: linear-gradient(135deg, var(--warning-soft), var(--surface-default) 72%);
}

.theme-scope-security .policy-hero .status-pill,
.theme-scope-security .category-hero .status-pill {
  border-color: var(--security-text);
  background: var(--security-soft);
  color: var(--security-text);
}

.theme-scope-hub .policy-hero .status-pill,
.theme-scope-hub .category-hero .status-pill {
  border-color: var(--hub-text);
  background: var(--hub-soft);
  color: var(--hub-text);
}

.theme-scope-digital .policy-hero .status-pill,
.theme-scope-digital .category-hero .status-pill {
  border-color: var(--digital-text);
  background: var(--digital-soft);
  color: var(--digital-text);
}

.theme-scope-support .policy-hero .status-pill,
.theme-scope-support .category-hero .status-pill {
  border-color: var(--warning-text);
  background: var(--warning-soft);
  color: var(--warning-text);
}

.strategy-visual-hero {
  border-color: var(--border-default);
  border-radius: var(--radius-panel);
  background: var(--surface-gradient);
  box-shadow: var(--shadow-md);
}

.theme-scope-hub .strategy-visual-hero {
  border-color: color-mix(in srgb, var(--hub-text) 34%, var(--border-default));
  background: linear-gradient(135deg, var(--hub-soft), var(--surface-default) 66%);
}

.theme-scope-digital .strategy-visual-hero {
  border-color: color-mix(in srgb, var(--digital-text) 34%, var(--border-default));
  background: linear-gradient(135deg, var(--digital-soft), var(--surface-default) 66%);
}

.theme-scope-security .strategy-visual-hero {
  border-color: color-mix(in srgb, var(--security-text) 34%, var(--border-default));
  background: linear-gradient(135deg, var(--security-soft), var(--surface-default) 66%);
}

.search-panel,
.spotlight-card,
.assistant-panel,
.draft-panel,
.feature-grid article,
.status-grid article,
.listing-card,
.auction-card,
.route-card-grid a,
.detail-panel,
.detail-card,
.policy-card,
.category-card,
.hub-hours article,
.state-section article,
.strategy-card,
.strategy-step,
.security-label-card,
.operator-card,
.metric-card,
.seller-first-run,
.seller-command-center,
.seller-action-card,
.checkout-trust-sequence,
.checkout-total-card,
.checkout-boundary-card,
.offer-lifecycle,
.offer-decision-panel,
.exception-workbench,
.market-dialog,
.category-popover-panel,
.video-overlay-panel {
  border-color: var(--border-default);
  border-radius: var(--radius-card);
  background: var(--surface-gradient);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.search-panel,
.seller-command-center,
.checkout-trust-sequence,
.offer-lifecycle,
.exception-workbench,
.market-dialog,
.category-popover-panel,
.video-overlay-panel {
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-lg);
}

.listing-card:hover,
.auction-card:hover,
.auction-card:focus-within,
.route-card-grid a:hover,
.route-card-grid a:focus-visible,
.detail-card:hover,
.policy-card:hover,
.strategy-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.listing-card h3,
.listing-card strong,
.route-card-grid strong,
.detail-card h2,
.detail-card h3,
.policy-card h2,
.policy-card h3,
.strategy-card h3,
.strategy-step h3,
.security-label-card strong,
.stat-list dd,
.detail-price,
.price,
.modal-price,
.metric-card strong,
.seller-first-run-head h2,
.seller-command-head h2,
.checkout-trust-head h2,
.checkout-review-panel h2,
.offer-lifecycle-head h2,
.offer-decision-panel h2,
.exception-head h2 {
  color: var(--text-primary);
  text-shadow: none;
}

.listing-card p,
.route-card-grid span,
.detail-card p,
.policy-card p,
.strategy-card p,
.strategy-step p,
.security-label-card p,
.hub-hours span,
.seller-row,
.state-section p,
.state-section li,
.policy-section p {
  color: var(--text-secondary);
}

.listing-media img,
.route-card-grid img,
.detail-media img,
.modal-hero-image {
  background: var(--surface-media);
}

.breadcrumb,
.breadcrumb a,
.breadcrumb span {
  color: var(--text-secondary);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--action-text);
}

.detail-hero {
  align-items: start;
}

.detail-media img[data-main-image] {
  display: block;
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.search-row input,
.assistant-panel textarea,
.bid-input-row input,
.report-layout select,
.report-layout textarea,
.product-control-row input,
input,
select,
textarea {
  border-color: var(--border-control);
  background: var(--surface-field);
  color: var(--text-primary);
  caret-color: var(--action-solid);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-tertiary);
  opacity: 1;
}

input:disabled,
select:disabled,
textarea:disabled,
button:disabled,
.primary-action:disabled,
[aria-disabled="true"] {
  background: var(--disabled-bg);
  color: var(--disabled-text);
  box-shadow: none;
}

.primary-action:disabled {
  border-color: var(--border-default);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px var(--action-soft);
}

input:-webkit-autofill,
select:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--text-primary);
  box-shadow: 0 0 0 1000px var(--surface-field) inset;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--action-solid);
}

.primary-link,
.primary-action,
.primary-card-action,
.search-row button,
.operator-actions button {
  border-color: transparent;
  background: var(--action-solid);
  color: var(--on-action);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
}

.primary-link:hover,
.primary-link:focus-visible,
.primary-action:hover,
.primary-action:focus-visible,
.primary-card-action:hover,
.primary-card-action:focus-visible,
.search-row button:hover,
.search-row button:focus-visible,
.operator-actions button:hover,
.operator-actions button:focus-visible {
  background: var(--action-hover);
  color: var(--on-action);
  box-shadow: var(--shadow-md);
}

body.home-page .hero-actions .primary-link,
.auction-bid,
.auction-card .auction-bid,
[data-product-action="bid-now"],
[data-product-action="set-top-bid"] {
  border-color: transparent;
  background: var(--brand-solid);
  color: var(--on-brand);
  box-shadow: var(--shadow-sm);
}

body.home-page .hero-actions .primary-link:hover,
body.home-page .hero-actions .primary-link:focus-visible,
.auction-bid:hover,
.auction-bid:focus-visible,
[data-product-action="bid-now"]:hover,
[data-product-action="bid-now"]:focus-visible,
[data-product-action="set-top-bid"]:hover,
[data-product-action="set-top-bid"]:focus-visible {
  background: var(--brand-hover);
  color: var(--on-brand);
  box-shadow: var(--shadow-md);
}

.secondary-link,
.secondary-action,
.icon-card-action,
.card-actions a:not(.primary-card-action),
.filter-chip,
.segment,
.category-chip,
.section-filter,
.mini-inline-action,
.detail-gallery-strip button,
.operator-topbar nav button,
.operator-filter {
  border-color: var(--border-default);
  background: var(--surface-default);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  font-weight: 650;
}

.secondary-link:hover,
.secondary-link:focus-visible,
.secondary-action:hover,
.secondary-action:focus-visible,
.filter-chip:hover,
.filter-chip:focus-visible,
.segment:hover,
.segment:focus-visible,
.category-chip:hover,
.category-chip:focus-visible,
.section-filter:hover,
.section-filter:focus-visible,
.mini-inline-action:hover,
.mini-inline-action:focus-visible,
.detail-gallery-strip button:hover,
.detail-gallery-strip button:focus-visible {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  color: var(--text-primary);
}

.filter-chip.active,
.segment.active,
.category-chip.active,
.category-icon-button.active,
.category-icon-button[aria-pressed="true"],
.section-filter.active,
.secondary-action.active,
.detail-gallery-strip button.active,
.operator-topbar nav button.active,
.operator-filter.active {
  border-color: var(--action-solid);
  background: var(--action-soft);
  color: var(--action-text);
  box-shadow: inset 0 0 0 1px var(--action-solid);
}

.category-heading output {
  color: var(--action-text);
  font-weight: 700;
}

.category-icon-button {
  border-color: var(--border-default);
  background: var(--surface-default);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.category-icon-button:hover,
.category-icon-button:focus-visible {
  border-color: var(--action-solid);
  background: var(--surface-hover);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
}

.category-icon-button.active span,
.category-icon-button[aria-pressed="true"] span {
  color: var(--action-text);
}

.icon-button,
.demo-map-entry {
  border-color: var(--border-default);
  background: var(--surface-default);
  color: var(--action-text);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
}

.icon-button:hover,
.icon-button:focus-visible,
.demo-map-entry:hover,
.demo-map-entry:focus-visible {
  border-color: var(--action-solid);
  background: var(--action-soft);
  color: var(--action-text);
  box-shadow: var(--shadow-md);
}

.buyer-journey-strip,
.seller-proof-strip,
.hub-handoff-strip,
.demo-state-panel {
  border-color: color-mix(in srgb, var(--action-solid) 28%, var(--border-default));
  background: linear-gradient(135deg, var(--action-soft), var(--surface-default) 72%);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.theme-scope-seller .seller-proof-strip {
  border-color: color-mix(in srgb, var(--action-solid) 32%, var(--border-default));
}

.theme-scope-hub .hub-handoff-strip {
  border-color: color-mix(in srgb, var(--hub-solid) 32%, var(--border-default));
  background: linear-gradient(135deg, var(--hub-soft), var(--surface-default) 72%);
}

.buyer-journey-strip strong,
.seller-proof-strip strong,
.hub-handoff-strip strong {
  color: var(--text-primary);
}

.buyer-journey-strip span,
.seller-proof-strip span,
.hub-handoff-strip span {
  color: var(--text-secondary);
}

.seller-setup-track a,
.seller-checklist li,
.checkout-trust-grid a {
  border-color: var(--border-default);
  background: var(--surface-gradient);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.seller-setup-track a:hover,
.seller-setup-track a:focus-visible,
.seller-checklist li:focus-within,
.checkout-trust-grid a:hover,
.checkout-trust-grid a:focus-visible {
  border-color: var(--action-solid);
  background: var(--action-soft);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
}

.seller-setup-track strong,
.checkout-trust-grid strong {
  color: var(--action-text);
}

.seller-setup-track small,
.checkout-trust-grid small {
  color: var(--text-secondary);
}

.theme-scope-seller .seller-command-link {
  border-color: var(--border-default);
  background: var(--surface-default);
  color: var(--action-text);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
}

.theme-scope-seller .seller-command-link:hover,
.theme-scope-seller .seller-command-link:focus-visible {
  border-color: var(--action-solid);
  background: var(--action-soft);
  color: var(--action-text);
  box-shadow: var(--shadow-md);
}

.theme-scope-seller .seller-action-card,
.theme-scope-seller .seller-action-card.calm {
  border-color: var(--border-default);
  background: var(--surface-gradient);
  color: var(--text-primary);
}

.theme-scope-seller .seller-action-card.urgent {
  border-color: color-mix(in srgb, var(--brand-solid) 32%, var(--border-default));
  background: linear-gradient(145deg, var(--brand-soft), var(--surface-default) 74%);
}

.theme-scope-seller .seller-action-card:hover,
.theme-scope-seller .seller-action-card:focus-visible {
  border-color: var(--action-solid);
  background: var(--action-soft);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
}

.theme-scope-seller .seller-action-card::after {
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--surface-default) 70%, transparent);
}

.theme-scope-seller .seller-action-card strong {
  color: var(--text-primary);
}

.theme-scope-seller .seller-action-card span:not(.seller-action-rank) {
  color: var(--text-secondary);
}

.theme-scope-seller .seller-action-card small {
  background: var(--action-soft);
  color: var(--action-text);
}

.theme-scope-seller .seller-action-rank {
  background: var(--brand-soft);
  color: var(--brand-text);
}

.checkout-total-card div {
  border: 1px solid var(--border-subtle);
  background: var(--surface-subtle);
}

.checkout-total-card dt {
  color: var(--text-secondary);
}

.checkout-total-card dd {
  color: var(--text-primary);
}

.search-active-tags span,
.search-result-tags span {
  border-color: color-mix(in srgb, var(--action-solid) 36%, var(--border-default));
  background: var(--action-soft);
  color: var(--action-text);
}

.search-recovery-panel {
  border-color: color-mix(in srgb, var(--action-solid) 34%, var(--border-default));
  background: linear-gradient(135deg, var(--action-soft), var(--surface-default) 72%);
}

.search-recovery-panel p,
.search-ranking-reason,
.search-live-summary {
  color: var(--text-secondary);
}

.demo-state-counts span,
.demo-state-row em,
.demo-state-event span {
  border-color: var(--border-default);
  background: var(--surface-subtle);
  color: var(--text-primary);
}

.demo-state-row,
.demo-state-event {
  border-color: var(--border-subtle);
  background: var(--surface-subtle);
  color: var(--text-primary);
}

.demo-state-row:hover,
.demo-state-row:focus-visible {
  border-color: var(--action-solid);
  background: var(--action-soft);
}

.demo-state-row img {
  background: var(--surface-media);
}

.demo-state-row strong,
.demo-state-event strong {
  color: var(--text-primary);
}

.demo-state-row small,
.demo-state-event small,
.demo-state-empty {
  color: var(--text-secondary);
}

.technical-appendix {
  margin-top: 1rem;
  padding: 0.9rem;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-panel);
  background: var(--surface-default);
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

.technical-appendix > summary {
  cursor: pointer;
  color: var(--action-text);
  font-weight: 750;
  line-height: 1.4;
}

.technical-appendix[open] > summary {
  margin-bottom: 0.75rem;
}

.technical-appendix > p {
  max-width: 68rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.technical-appendix > section:first-of-type {
  margin-top: 0.85rem;
}

.theme-scope-hub .custody-timeline li {
  border-left-color: color-mix(in srgb, var(--hub-solid) 62%, var(--border-default));
}

.theme-scope-hub .custody-timeline li::before {
  border-color: var(--hub-solid);
  background: var(--surface-canvas);
}

.operator-card,
.metric-card,
.operator-side article {
  border-color: var(--border-default);
  background: var(--surface-gradient);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.operator-card h2,
.operator-card h3,
.operator-side h3,
.queue-row strong,
.seller-row strong,
.hub-row strong,
.category-row strong,
.progress-row strong,
.finance-row strong,
.service-row strong,
.route-row strong,
.policy-row strong,
.playbook-row strong,
.acceptance-row strong,
.workflow-row strong {
  color: var(--text-primary);
}

.operator-card p,
.operator-side p,
.queue-row span,
.queue-row small,
.seller-row span,
.seller-row small,
.hub-row span,
.hub-row small,
.category-row span,
.category-row small,
.progress-row span,
.progress-row small,
.finance-row span,
.finance-row small,
.service-row span,
.service-row small,
.route-row span,
.route-row small,
.policy-row span,
.policy-row small,
.playbook-row span,
.playbook-row small,
.acceptance-row span,
.acceptance-row small,
.workflow-row span,
.workflow-row small,
.metric-card span {
  color: var(--text-secondary);
}

.metric-card small {
  color: var(--text-secondary);
}

.queue-row,
.seller-row,
.hub-row,
.category-row,
.progress-row,
.finance-row,
.service-row,
.route-row,
.policy-row,
.playbook-row,
.acceptance-row,
.workflow-row {
  border: 1px solid var(--border-subtle);
  background: var(--surface-subtle);
  color: var(--text-primary);
}

.operator-topbar nav button:hover,
.operator-topbar nav button:focus-visible,
.operator-filter:hover,
.operator-filter:focus-visible,
.queue-row button,
.finance-row button {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  color: var(--text-primary);
}

.severity {
  border: 1px solid color-mix(in srgb, var(--danger-solid) 34%, var(--border-default));
  background: var(--danger-soft);
  color: var(--danger-text);
}

.bar {
  background: var(--surface-subtle);
}

.bar i {
  background: linear-gradient(90deg, var(--action-solid), var(--hub-solid));
}

.operator-toast {
  border-color: var(--border-strong);
  background: var(--surface-raised);
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
}

.operator-hero + .launch-disclosure {
  margin: 0 0 0.9rem;
}

.hero-thesis {
  border-color: var(--border-default);
  background: var(--surface-brand);
  color: var(--brand-text);
  box-shadow: none;
}

.activity-strip div,
.hub-copy,
.hub-proof-grid article,
.hub-flow,
.hero-stats div,
.listing-activity span,
.listing-proof-row span,
.detail-grid article,
.bid-panel,
.checkout-summary,
.hub-state-chip,
.auction-state-chip,
.checkout-boundary-chip,
.auction-history-list li,
.modal-row,
.simple-list li,
.seller-proof-grid article,
.checkout-trust-grid article,
.offer-flow-grid article,
.offer-decision-grid article,
.exception-grid a,
.strategy-fact-strip article {
  border-color: var(--border-subtle);
  background: var(--surface-subtle);
  color: var(--text-primary);
}

.activity-strip strong,
.hub-proof-grid strong,
.hub-flow strong,
.hero-stats strong,
.listing-activity span,
.listing-proof-row strong,
.hub-state-chip strong,
.auction-state-chip strong,
.checkout-boundary-chip strong,
.hub-state-chip small,
.auction-state-chip small,
.checkout-boundary-chip small,
.auction-history-list small,
.seller-proof-grid strong,
.checkout-trust-grid strong,
.offer-flow-grid strong,
.offer-decision-grid strong,
.exception-grid strong {
  color: var(--text-primary);
}

.auction-card,
.listing-card {
  overflow: clip;
}

.auction-card {
  border-color: var(--border-default);
}

.auction-decision-grid,
.auction-review-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 1rem 0;
}

.auction-decision-grid div,
.auction-review-list div {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
  padding: 0.72rem 0.78rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-control);
  background: var(--surface-subtle);
}

.auction-decision-grid dt,
.auction-review-list dt {
  color: var(--text-tertiary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.auction-decision-grid dd,
.auction-review-list dd {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.96rem;
  font-weight: 750;
}

.auction-decision-grid small,
.auction-review-list small {
  display: block;
  margin-top: 0.1rem;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 550;
}

.auction-proof-summary {
  display: grid;
  gap: 0.52rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}

.auction-proof-summary li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.45;
}

.auction-proof-summary li::before {
  position: absolute;
  top: 0.48em;
  left: 0.12rem;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--success-solid);
  content: "";
}

.auction-proof-summary strong,
.scope-note strong {
  color: var(--text-primary);
}

.scope-note {
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-control);
  background: var(--security-soft);
  color: var(--text-secondary);
}

.account-security-dashboard {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-panel);
  background: var(--surface-default);
  box-shadow: var(--shadow-md);
}

.account-security-heading,
.account-security-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.account-security-heading h2 {
  margin: 0.45rem 0 0.35rem;
  color: var(--text-primary);
}

.account-security-heading p {
  margin: 0;
  color: var(--text-secondary);
}

.security-health {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.72rem;
  border: 1px solid color-mix(in srgb, var(--success-solid) 35%, var(--border-default));
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success-text);
  font-size: 0.8rem;
  font-weight: 700;
}

.security-health span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--success-solid);
}

.account-security-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.account-security-grid article {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  background: var(--surface-subtle);
}

.account-security-grid article > div {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
}

.account-security-grid strong {
  color: var(--text-primary);
}

.account-security-grid article > div span {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.account-security-grid a {
  color: var(--action-text);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: right;
}

.security-icon {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border-radius: 0.65rem;
  background: var(--security-soft);
  color: var(--security-text);
  font-size: 0.82rem;
  font-weight: 800;
}

.account-security-actions {
  justify-content: flex-start;
}

.checkout-primary-review {
  margin-top: 0.25rem;
}

.checkout-item-preview {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checkout-item-preview li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  padding: 0.65rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-control);
  background: var(--surface-subtle);
}

.checkout-item-preview img {
  width: 4.5rem;
  height: 3.4rem;
  border-radius: 0.55rem;
  background: var(--surface-media);
  object-fit: cover;
}

.checkout-total-card .checkout-item-preview div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.18rem;
  min-width: 0;
  padding: 0;
  background: transparent;
}

.checkout-item-preview strong {
  color: var(--text-primary);
  font-size: 0.88rem;
}

.checkout-item-preview li > strong {
  color: var(--text-primary);
  white-space: nowrap;
}

.checkout-item-preview span {
  color: var(--text-secondary);
  font-size: 0.76rem;
  line-height: 1.35;
}

.checkout-ready-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.checkout-ready-list span {
  display: grid;
  gap: 0.16rem;
  padding: 0.7rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-control);
  background: var(--surface-subtle);
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.checkout-ready-list strong {
  color: var(--text-primary);
  font-size: 0.82rem;
}

.auction-card span,
.auction-rail .rail-heading a {
  color: var(--brand-text);
}

.listing-badge,
.watch-button {
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--badge-overlay);
  color: var(--text-on-media);
}

.listing-badge::before {
  background: var(--brand-solid);
  box-shadow: 0 0 0 2px var(--surface-raised);
}

.listing-badge--hub-check::before,
.listing-badge--protected::before,
.listing-badge[data-tone="hub"]::before,
.listing-badge[data-tone="verified"]::before {
  background: #65d7a3;
  box-shadow: 0 0 0 3px rgba(101, 215, 163, 0.2);
}

.watch-button.active {
  border-color: var(--action-solid);
  background: var(--action-solid);
  color: var(--on-action);
  box-shadow: var(--shadow-md);
}

.seller-avatar {
  background: var(--action-soft);
  color: var(--action-text);
}

.seller-rating {
  color: var(--text-primary);
}

.seller-rating::before {
  color: var(--warning-text);
}

.status-pill,
.strategy-state {
  border-color: var(--border-default);
  background: var(--surface-subtle);
  color: var(--text-secondary);
  box-shadow: none;
}

.status-pill[data-tone="verified"],
.strategy-state.is-active,
.strategy-state[data-tone="verified"] {
  border-color: var(--success-text);
  background: var(--success-soft);
  color: var(--success-text);
}

.status-pill[data-tone="hub"],
.strategy-state[data-tone="hub"] {
  border-color: var(--hub-text);
  background: var(--hub-soft);
  color: var(--hub-text);
}

.status-pill[data-tone="security"],
.strategy-state[data-tone="security"] {
  border-color: var(--security-text);
  background: var(--security-soft);
  color: var(--security-text);
}

.status-pill[data-tone="digital"],
.strategy-state[data-tone="digital"] {
  border-color: var(--digital-text);
  background: var(--digital-soft);
  color: var(--digital-text);
}

.status-pill[data-tone="warning"],
.strategy-state.is-hold,
.strategy-state[data-tone="warning"] {
  border-color: var(--warning-text);
  background: var(--warning-soft);
  color: var(--warning-text);
}

.status-pill[data-tone="danger"],
.strategy-state.is-blocked,
.strategy-state[data-tone="danger"] {
  border-color: var(--danger-text);
  background: var(--danger-soft);
  color: var(--danger-text);
}

.status-pill[data-tone="auction"],
.strategy-state[data-tone="auction"] {
  border-color: var(--brand-text);
  background: var(--brand-soft);
  color: var(--brand-text);
}

.strategy-step-number,
.demo-step-list li::before {
  background: var(--action-solid);
  color: var(--on-action);
  box-shadow: none;
}

.strategy-note,
.route-context-note {
  border-color: var(--border-default);
  background: var(--surface-warning);
  color: var(--text-secondary);
}

.strategy-note strong,
.route-context-note strong {
  color: var(--warning-text);
}

.journey-choice {
  --journey-tone: var(--journey-shopping);
  border-color: var(--border-default);
  background: var(--surface-default);
  color: var(--text-primary);
  box-shadow: inset 3px 0 0 var(--journey-tone), var(--shadow-sm);
}

.journey-choice[data-path-button="selling"] { --journey-tone: var(--journey-selling); }
.journey-choice[data-path-button="seller"] { --journey-tone: var(--journey-selling); }
.journey-choice[data-path-button="hub"] { --journey-tone: var(--journey-hub); }
.journey-choice[data-path-button="digital"] { --journey-tone: var(--journey-digital); }
.journey-choice[data-path-button="support"] { --journey-tone: var(--journey-support); }
.journey-choice[data-path-button="trust"] { --journey-tone: var(--journey-support); }
.journey-choice[data-path-button="technical"] { --journey-tone: var(--journey-technical); }
.journey-choice[data-path-button="operator"] { --journey-tone: var(--journey-technical); }

.journey-choice:hover,
.journey-choice:focus-visible,
.journey-choice.active,
.journey-choice[aria-pressed="true"] {
  border-color: var(--journey-tone);
  background: var(--surface-selected);
  color: var(--text-primary);
  box-shadow: inset 4px 0 0 var(--journey-tone), var(--shadow-md);
}

.demo-walkthrough-panel,
.demo-path-card,
.demo-map-page .section-heading,
.demo-map-tools,
.demo-map-filter-row,
.demo-step-list li {
  border-color: var(--border-default);
  background: var(--surface-default);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.demo-walkthrough-panel h2,
.demo-step-list a,
.journey-nav-list a {
  color: var(--text-primary);
}

.demo-step-list li p,
.journey-summary,
.journey-action-label {
  color: var(--text-secondary);
}

/*
 * Theme-compatibility bridge for the original dark-first components.
 * These selectors intentionally match the legacy specificity so every
 * resolved surface, label and state is driven by semantic tokens.
 */
.demo-walkthrough-panel .path-purpose {
  border-color: color-mix(in srgb, var(--action-solid) 34%, var(--border-default));
  background: var(--action-soft);
  color: var(--text-primary);
}

.demo-map-search input,
.assistant-panel input,
.assistant-panel select,
.assistant-panel textarea {
  border-color: var(--border-control);
  background: var(--surface-field);
  color: var(--text-primary);
  caret-color: var(--action-solid);
}

.demo-map-search input:focus,
.assistant-panel input:focus,
.assistant-panel select:focus,
.assistant-panel textarea:focus,
.assistant-panel input.typing,
.assistant-panel textarea.typing {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px var(--action-soft);
}

.demo-map-filter-row button,
.demo-map-show-more {
  border-color: var(--border-default);
  background: var(--surface-default);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.demo-map-filter-row button:hover,
.demo-map-filter-row button:focus-visible,
.demo-map-show-more:hover,
.demo-map-show-more:focus-visible {
  border-color: var(--action-solid);
  background: var(--surface-hover);
  color: var(--action-text);
  box-shadow: var(--shadow-md);
}

.demo-map-filter-row button.active {
  border-color: var(--action-solid);
  background: var(--action-soft);
  color: var(--action-text);
  box-shadow: inset 0 0 0 1px var(--action-solid);
}

.demo-map-empty {
  border-color: var(--danger-text);
  background: var(--danger-soft);
  color: var(--danger-text);
}

.route-appendix summary {
  border-color: var(--border-default);
  background: var(--surface-default);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.route-appendix:not([open]) summary {
  border-color: var(--border-default);
  box-shadow: var(--shadow-sm);
}

.route-appendix summary strong {
  color: var(--text-secondary);
}

.route-appendix summary::after {
  background: var(--action-solid);
  color: var(--on-action);
}

.journey-nav-list a,
.demo-path-card a {
  border-color: var(--border-default);
  background: var(--surface-subtle);
  color: var(--text-primary);
}

.journey-nav-list a:hover,
.journey-nav-list a:focus-visible,
.demo-path-card a:hover,
.demo-path-card a:focus-visible {
  border-color: var(--action-solid);
  background: var(--action-soft);
  color: var(--action-text);
}

.demo-path-card {
  --journey-tone: var(--journey-shopping);
  box-shadow: inset 3px 0 0 var(--journey-tone), var(--shadow-sm);
}

.demo-path-card:nth-child(2) { --journey-tone: var(--journey-selling); }
.demo-path-card:nth-child(3) { --journey-tone: var(--journey-hub); }
.demo-path-card:nth-child(4) { --journey-tone: var(--journey-digital); }
.demo-path-card:nth-child(5) { --journey-tone: var(--journey-support); }
.demo-path-card:nth-child(6) { --journey-tone: var(--journey-technical); }

.demo-path-card:hover,
.demo-path-card:focus-within,
.demo-path-card:focus-visible {
  border-color: var(--journey-tone);
  box-shadow: inset 4px 0 0 var(--journey-tone), var(--shadow-md);
}

.demo-path-card > span {
  color: var(--journey-tone);
}

.demo-path-card h3,
.proof-card-grid strong {
  color: var(--text-primary);
}

.demo-path-card > strong {
  border-color: color-mix(in srgb, var(--journey-tone) 42%, var(--border-default));
  background: color-mix(in srgb, var(--journey-tone) 12%, var(--surface-default));
  color: var(--text-primary);
}

.proof-card-grid article,
.seller-spotlight-card,
.user-dashboard article,
.user-lists article,
.state-section article,
.state-boundary-note {
  border-color: var(--border-default);
  background: var(--surface-gradient);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.proof-card-grid span,
.seller-spotlight-head span:not(.seller-avatar),
.seller-spotlight-card dt,
.seller-spotlight-card p,
.profile-summary-card small,
.user-dashboard strong,
.user-lists p,
.user-lists li small,
.user-lists li em,
.state-boundary-note p,
.state-card p:not(.eyebrow),
.state-microcopy {
  color: var(--text-secondary);
}

.seller-spotlight-card:hover,
.seller-spotlight-card:focus-visible {
  border-color: var(--action-solid);
  box-shadow: var(--shadow-md);
}

.seller-spotlight-head strong,
.seller-spotlight-card dd,
.user-dashboard span,
.profile-summary-card strong,
.profile-detail-grid dd,
.state-boundary-note p strong {
  color: var(--text-primary);
  text-shadow: none;
}

.seller-spotlight-card dl div,
.profile-detail-grid div,
.user-lists li {
  border-color: var(--border-subtle);
  background: var(--surface-subtle);
}

.seller-spotlight-action,
.profile-badges span {
  border-color: color-mix(in srgb, var(--action-solid) 38%, var(--border-default));
  background: var(--action-soft);
  color: var(--action-text);
}

.seller-spotlight-action:hover,
.seller-spotlight-action:focus-visible {
  border-color: var(--action-solid);
  background: var(--action-solid);
  color: var(--on-action);
}

.seller-toggle-grid label {
  border-color: var(--border-default);
  background: var(--surface-subtle);
  color: var(--text-primary);
}

.seller-toggle-grid label:focus-within {
  border-color: var(--focus);
  background: var(--action-soft);
  box-shadow: 0 0 0 3px var(--action-soft);
}

.user-lists li em {
  color: var(--text-secondary);
}

.user-lists li span {
  color: var(--action-text);
}

.demo-end-bar {
  border-color: color-mix(in srgb, var(--warning-solid) 38%, var(--border-default));
  background: var(--warning-soft);
  color: var(--warning-text);
  box-shadow: var(--shadow-sm);
}

.state-card.current-state {
  border-color: color-mix(in srgb, var(--action-solid) 34%, var(--border-default));
  background: linear-gradient(145deg, var(--action-soft), var(--surface-default) 72%);
}

.state-card.launch-state {
  border-color: color-mix(in srgb, var(--success-solid) 34%, var(--border-default));
  background: linear-gradient(145deg, var(--success-soft), var(--surface-default) 72%);
}

.state-chip-grid span {
  border-color: var(--border-default);
  background: var(--surface-subtle);
  color: var(--text-primary);
}

.state-card.current-state .state-chip-grid span {
  border-color: color-mix(in srgb, var(--action-solid) 34%, var(--border-default));
  background: var(--action-soft);
  color: var(--action-text);
}

.state-card.launch-state .state-chip-grid span {
  border-color: color-mix(in srgb, var(--success-solid) 34%, var(--border-default));
  background: var(--success-soft);
  color: var(--success-text);
}

.site-footer {
  color: var(--text-secondary);
}

.auction-facts span,
.product-status {
  border-color: color-mix(in srgb, var(--brand-solid) 36%, var(--border-default));
  background: var(--brand-soft);
  color: var(--brand-text);
}

.security-label-card strong {
  border-color: color-mix(in srgb, var(--security-text) 34%, var(--border-default));
  background: var(--security-soft);
  color: var(--security-text);
}

.theme-scope-support .hub-handoff-strip {
  border-color: color-mix(in srgb, var(--warning-solid) 32%, var(--border-default));
  background: linear-gradient(135deg, var(--warning-soft), var(--surface-default) 72%);
}

.theme-scope-support .hub-handoff-strip strong {
  color: var(--warning-text);
}

.video-overlay-panel {
  border-color: var(--border-strong);
  background: var(--surface-raised);
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
}

.video-overlay-panel h2 {
  color: var(--text-primary);
}

.video-overlay-description {
  color: var(--text-secondary);
}

/* Customer-facing dialogs and route details that carried dark-only chrome. */
.category-popover-card {
  border-color: var(--border-default);
  background: var(--surface-subtle);
}

.category-popover-card.active {
  border-color: var(--action-solid);
  box-shadow: inset 0 0 0 1px var(--action-solid);
}

.category-popover-main {
  background: var(--surface-default);
  color: var(--text-primary);
}

.category-popover-chip {
  border-color: var(--border-default);
  background: var(--surface-default);
  color: var(--text-secondary);
}

.category-popover-link {
  border-color: color-mix(in srgb, var(--action-solid) 34%, var(--border-default));
  background: var(--action-soft);
  color: var(--action-text);
}

.category-popover-main:hover,
.category-popover-main:focus-visible,
.category-popover-chip:hover,
.category-popover-chip:focus-visible,
.category-popover-link:hover,
.category-popover-link:focus-visible,
.category-popover-close:hover,
.category-popover-close:focus-visible {
  border-color: var(--action-solid);
  background: var(--action-soft);
  color: var(--action-text);
}

.route-card-grid .route-context {
  border-color: var(--border-default);
  background: var(--surface-subtle);
  color: var(--text-secondary);
}

.route-card-grid .route-purpose {
  border-color: color-mix(in srgb, var(--action-solid) 30%, var(--border-default));
  background: var(--action-soft);
  color: var(--action-text);
}

.walkthrough-actions a,
.walkthrough-actions button {
  border-color: var(--border-default);
  background: var(--surface-default);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.walkthrough-actions .walkthrough-next {
  border-color: transparent;
  background: var(--action-solid);
  color: var(--on-action);
  box-shadow: var(--shadow-md);
}

.modal-price {
  color: var(--text-primary);
}

.offer-panel input,
.offer-panel textarea,
.message-panel textarea,
.review-dialog textarea {
  border-color: var(--border-control);
  background: var(--surface-field);
  color: var(--text-primary);
  caret-color: var(--action-solid);
}

.offer-panel input:focus,
.offer-panel textarea:focus,
.message-panel textarea:focus,
.review-dialog textarea:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px var(--action-soft);
}

.bid-history li,
.checkout-choice-row button,
.compare-card,
.seller-storefront article,
.thread-snapshot article,
.report-checklist label,
.stat-list div,
.registry-row,
.strategy-home-card {
  border-color: var(--border-default);
  background: var(--surface-subtle);
  color: var(--text-primary);
}

.checkout-choice-row button {
  color: var(--text-secondary);
}

.checkout-choice-row button:hover,
.checkout-choice-row button:focus-visible,
.checkout-choice-row button.active {
  border-color: var(--action-solid);
  background: var(--action-soft);
  color: var(--action-text);
}

.compare-card span,
.modal-row span,
.simple-list span,
.bid-history span {
  color: var(--brand-text);
}

.stat-list dt,
.compare-card small,
.compare-card em,
.seller-storefront span,
.thread-snapshot span,
.offer-panel label,
.message-panel label {
  color: var(--text-secondary);
}

.stat-list dd {
  color: var(--text-primary);
}

.review-backdrop {
  background: var(--scrim);
}

.review-dialog {
  border-color: var(--border-strong);
  background: var(--surface-gradient);
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
}

.star-row button {
  border-color: var(--border-default);
  background: var(--surface-default);
  color: var(--text-secondary);
}

.star-row button:hover,
.star-row button:focus-visible,
.star-row button.active {
  border-color: var(--warning-solid);
  background: var(--warning-soft);
  color: var(--warning-text);
}

.strategy-home-card {
  background: var(--surface-gradient);
  box-shadow: var(--shadow-sm);
}

/* Journey, hub and offer families with element-specific legacy selectors. */
.demo-map-page .demo-walkthrough-shell {
  border-color: var(--border-default);
  background: var(--surface-default);
  box-shadow: var(--shadow-md);
}

.demo-map-quickstarts .journey-choice {
  border-color: var(--border-default);
  background: var(--surface-default);
  color: var(--text-primary);
  box-shadow: inset 3px 0 0 var(--journey-tone), var(--shadow-sm);
}

.demo-map-quickstarts .journey-choice strong {
  color: var(--text-primary);
}

.demo-map-quickstarts .journey-choice span {
  color: var(--text-secondary);
}

.demo-map-quickstarts .journey-choice:hover,
.demo-map-quickstarts .journey-choice:focus-visible,
.demo-map-quickstarts .journey-choice.active,
.demo-map-quickstarts .journey-choice[aria-pressed="true"] {
  border-color: var(--journey-tone);
  background: var(--surface-selected);
  color: var(--text-primary);
  box-shadow: inset 4px 0 0 var(--journey-tone), var(--shadow-md);
}

.hub-flow article {
  border-color: var(--border-default);
  background: var(--surface-gradient);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.hub-flow article:hover {
  border-color: var(--hub-solid);
  box-shadow: var(--shadow-md);
}

.hub-flow span {
  border-color: var(--hub-solid);
  background: var(--hub-soft);
  color: var(--hub-text);
}

.hub-flow strong {
  color: var(--text-primary);
}

.hub-flow p {
  color: var(--text-secondary);
}

.hub-hero {
  border-color: color-mix(in srgb, var(--hub-solid) 34%, var(--border-default));
  background: linear-gradient(135deg, var(--hub-soft), var(--surface-default) 72%);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
}

.hub-hero h1 {
  color: var(--text-primary);
}

.hub-hero p {
  color: var(--text-secondary);
}

.seller-checklist a {
  color: var(--action-text);
}

.offer-flow-grid a,
.offer-decision-grid a,
.exception-grid a {
  border-color: var(--border-default);
  background: var(--surface-gradient);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.offer-flow-grid a:hover,
.offer-flow-grid a:focus-visible,
.offer-decision-grid a:hover,
.offer-decision-grid a:focus-visible,
.exception-grid a:hover,
.exception-grid a:focus-visible {
  border-color: var(--action-solid);
  background: var(--action-soft);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
}

.offer-decision-grid a.primary {
  border-color: var(--action-solid);
  background: var(--action-soft);
}

.offer-flow-grid strong,
.offer-decision-grid strong,
.exception-grid strong {
  color: var(--text-primary);
}

.offer-flow-grid span,
.offer-decision-grid span,
.exception-grid span {
  color: var(--text-secondary);
}

.offer-flow-grid small,
.exception-grid small {
  background: var(--warning-soft);
  color: var(--warning-text);
}

.segmented-control {
  border-color: var(--border-default);
  background: var(--surface-subtle);
}

.sale-marker {
  border: 1px solid color-mix(in srgb, var(--brand-solid) 36%, var(--border-default));
  background: var(--brand-soft);
  color: var(--brand-text);
}

.detail-media {
  border-color: var(--border-default);
  background: var(--surface-media);
  box-shadow: var(--shadow-md);
}

.detail-gallery-strip {
  border-top-color: var(--border-default);
  background: var(--surface-default);
}

.category-panel {
  border-top-color: var(--border-subtle);
}

.category-chip.child {
  border-color: color-mix(in srgb, var(--action-solid) 34%, var(--border-default));
  background: var(--action-soft);
  color: var(--action-text);
}

.feature-grid article:hover,
.status-grid article:hover,
.draft-panel:hover,
.assistant-panel:hover,
.spotlight-card:hover {
  border-color: var(--action-solid);
}

.modal-empty {
  background: var(--surface-subtle);
  color: var(--text-secondary);
}

/* Video dialogs are deliberately dark media chrome, expressed semantically. */
.video-dialog {
  border-color: color-mix(in srgb, var(--text-on-media) 24%, transparent);
  background: var(--badge-overlay);
}

.video-close {
  border-color: color-mix(in srgb, var(--text-on-media) 28%, transparent);
  background: var(--badge-overlay);
  color: var(--text-on-media);
}

.video-close:hover,
.video-close:focus-visible {
  background: var(--danger-solid);
  color: var(--text-on-media);
}

.category-popover,
.market-modal,
.video-overlay {
  background: var(--scrim);
}

.tooltip-target::after,
.walkthrough-bar,
.compare-tray,
.toast {
  border-color: var(--border-default);
  background: var(--surface-raised);
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
}

.video-overlay-player {
  background: #000;
}

.video-overlay-close,
.category-popover-close,
.market-modal-close {
  border-color: var(--border-default);
  background: var(--surface-subtle);
  color: var(--text-primary);
}

.form-error,
[aria-invalid="true"] {
  border-color: var(--danger-text);
  background-color: var(--danger-soft);
  color: var(--danger-text);
}

.form-status.is-success {
  color: var(--success-text);
}

.form-status.is-error {
  color: var(--danger-text);
}

.mobile-nav {
  border-color: var(--border-default);
  background: var(--surface-header);
  box-shadow: 0 -12px 34px rgba(15, 23, 42, 0.12);
}

.mobile-nav a {
  color: var(--text-secondary);
  font-weight: 650;
}

.mobile-nav a:hover,
.mobile-nav a:focus-visible {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.mobile-nav a[aria-current="page"] {
  background: var(--action-soft);
  color: var(--action-text);
  box-shadow: inset 0 0 0 1px var(--action-solid);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--focus-outer);
}

body.home-page:not(.journey-active) .topbar .demo-map-entry,
body.home-page:not(.journey-active) .demo-map-pulse,
.journey-choice.active,
.demo-walkthrough-actions .primary-action,
.walkthrough-next {
  animation: none;
}

button,
.primary-link,
.secondary-link,
.primary-action,
.secondary-action,
.primary-card-action,
.mini-inline-action,
.filter-chip,
.segment,
.section-filter {
  border-radius: var(--radius-control);
}

@media (max-width: 760px) {
  .account-security-heading,
  .account-security-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-security-grid {
    grid-template-columns: 1fr;
  }

  .account-security-grid article {
    grid-template-columns: auto 1fr;
  }

  .account-security-grid a {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }

  .auction-decision-grid,
  .auction-review-list {
    grid-template-columns: 1fr;
  }

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

  .topbar.has-theme-control {
    gap: 0.4rem;
  }

  .topbar.has-theme-control .brand {
    max-width: none;
  }

  .topbar.has-theme-control .theme-control {
    margin-left: auto;
    min-height: 2.55rem;
    padding: 0.24rem;
  }

  .topbar.has-theme-control .demo-map-entry {
    display: none;
  }

  .theme-control-label {
    font-size: 0.7rem;
  }

  .theme-control-choice {
    min-height: 2rem;
    padding-inline: 0.43rem;
    font-size: 0.68rem;
  }

  .theme-control-indicator {
    display: none;
  }
}

@media (max-width: 360px) {
  .brand small {
    display: none;
  }

  .theme-control {
    gap: 0.25rem;
  }

  .theme-control-label {
    font-size: 0.65rem;
  }

  .theme-control-choice {
    padding-inline: 0.34rem;
    font-size: 0.64rem;
  }

  .topbar .demo-map-entry {
    width: 4.8rem;
    max-width: 4.8rem;
  }

  .checkout-item-preview li {
    grid-template-columns: 3.4rem minmax(0, 1fr);
  }

  .checkout-item-preview img {
    width: 3.4rem;
    height: 3.4rem;
  }

  .checkout-item-preview li > strong {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-control,
  .theme-control-choice {
    transition: none !important;
  }
}

/* Guided Product Tour: one readable path, one focal point, one next action. */
.demo-map-page .demo-walkthrough-shell {
  gap: 0.85rem;
}

.demo-map-page .demo-map-quickstarts {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.55rem;
  overflow: visible;
  padding: 0;
}

.demo-map-page .demo-map-quickstarts .journey-choice {
  min-height: 5.4rem;
  padding: 0.72rem;
  border-radius: 0.75rem;
}

.demo-map-page .demo-walkthrough-panel {
  align-items: start;
  gap: 1.1rem clamp(1.25rem, 3vw, 2.5rem);
}

.demo-step-list.journey-nav-list {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  counter-reset: none;
}

.demo-step-list.journey-nav-list .journey-step-card {
  position: relative;
  display: block;
  min-width: 0;
  padding: 0.9rem;
  border: 1px solid var(--border-default);
  border-radius: 0.8rem;
  background: var(--surface-gradient);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  counter-increment: none;
}

.demo-step-list.journey-nav-list .journey-step-card::before {
  content: none;
}

.journey-step-heading {
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem;
}

.journey-step-number {
  display: grid !important;
  grid-column: 1 !important;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 2px solid var(--action-solid);
  border-radius: 999px;
  background: var(--action-soft);
  color: var(--action-text) !important;
  font-size: 0.9rem !important;
  font-weight: 850;
}

.journey-step-heading > div {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
}

.demo-step-list.journey-nav-list .journey-step-heading a {
  display: inline;
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--action-text);
  font-size: 1rem;
  line-height: 1.3;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--action-solid) 38%, transparent);
  text-underline-offset: 0.18em;
}

.demo-step-list.journey-nav-list .journey-step-heading a:hover,
.demo-step-list.journey-nav-list .journey-step-heading a:focus-visible {
  color: var(--text-primary);
  text-decoration-color: var(--action-solid);
}

.journey-step-mode {
  display: inline-flex !important;
  grid-column: auto !important;
  align-items: center;
  min-height: 1.55rem;
  padding: 0.18rem 0.48rem;
  border: 1px solid var(--border-default);
  border-radius: 999px;
  background: var(--surface-subtle);
  color: var(--text-secondary) !important;
  font-size: 0.69rem !important;
  font-weight: 750;
  line-height: 1.1 !important;
}

.journey-step-card[data-step-mode="required"] .journey-step-mode {
  border-color: color-mix(in srgb, var(--action-solid) 38%, var(--border-default));
  background: var(--action-soft);
  color: var(--action-text) !important;
}

.journey-step-details {
  display: grid;
  gap: 0.36rem;
  margin: 0.65rem 0 0 3.1rem;
}

.demo-step-list.journey-nav-list .journey-step-details p {
  display: flex;
  grid-column: auto;
  gap: 0.45rem;
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.42;
}

.journey-step-look svg {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  margin-top: 0.08rem;
  fill: var(--action-text);
}

.demo-step-list.journey-nav-list .journey-step-partner {
  margin-top: 0.15rem;
  padding-top: 0.38rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-tertiary);
}

.guided-tour-controller {
  display: grid;
  grid-template-columns: minmax(15rem, 0.72fr) minmax(23rem, 1.25fr) auto;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.65rem clamp(0.85rem, 3vw, 2.5rem);
  border-color: var(--border-default);
  background: var(--surface-header);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
}

.tour-progress-block {
  display: grid;
  min-width: 0;
  gap: 0.45rem;
}

.guided-tour-controller .walkthrough-copy {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 0.5rem;
}

.guided-tour-controller .walkthrough-copy span,
.guided-tour-controller .walkthrough-copy small {
  color: var(--text-tertiary);
  font-size: 0.68rem;
}

.guided-tour-controller .walkthrough-copy strong {
  grid-column: 1 / -1;
  color: var(--text-primary);
  font-size: 0.96rem;
}

.tour-progress-rail {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tour-progress-rail li {
  display: flex;
  align-items: center;
}

.tour-progress-rail li:not(:last-child)::after {
  content: "";
  width: clamp(0.4rem, 1.25vw, 1.1rem);
  height: 2px;
  margin-left: 0.28rem;
  background: var(--border-strong);
}

.tour-progress-rail a,
.tour-progress-rail span {
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface-subtle);
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 850;
  text-decoration: none;
}

.tour-progress-rail .current span {
  border-color: var(--action-solid);
  background: var(--action-solid);
  color: var(--on-action);
}

.tour-progress-rail .complete a {
  border-color: var(--success-solid);
  background: var(--success-soft);
  color: var(--success-text);
}

.tour-progress-rail .skipped a {
  border-color: var(--warning-solid);
  background: var(--warning-soft);
  color: var(--warning-text);
}

.tour-instruction {
  min-width: 0;
  margin: 0;
  border: 0;
}

.tour-instruction > summary {
  display: none;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  color: var(--action-text);
  cursor: pointer;
  font-weight: 800;
}

.tour-instruction-body {
  display: grid;
  gap: 0.25rem;
}

.tour-instruction-body p {
  display: flex;
  gap: 0.45rem;
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.76rem;
  line-height: 1.35;
}

.tour-eye-icon {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  fill: var(--action-text);
}

.tour-partner-row {
  padding-top: 0.2rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-tertiary) !important;
}

.guided-tour-controller .walkthrough-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(4.2rem, auto));
  gap: 0.35rem;
}

.guided-tour-controller .walkthrough-actions a,
.guided-tour-controller .walkthrough-actions button {
  min-height: 2.75rem;
  border-color: var(--border-strong);
  background: var(--surface-default);
  color: var(--text-primary);
  box-shadow: none;
}

.guided-tour-controller .walkthrough-actions .tour-show-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: var(--action-text);
}

.guided-tour-controller .walkthrough-actions .walkthrough-next {
  grid-column: 1 / -1;
  grid-row: 1;
  border-color: var(--action-solid);
  background: var(--action-solid);
  color: var(--on-action);
}

.guided-tour-controller .walkthrough-actions .walkthrough-next:disabled {
  border-color: var(--border-default);
  background: var(--disabled-bg);
  color: var(--disabled-text);
  cursor: not-allowed;
  opacity: 1;
}

.guided-tour-controller .tour-skip-control {
  border-color: var(--warning-solid) !important;
  color: var(--warning-text) !important;
}

.walkthrough-bar--off-path {
  border-color: var(--warning-solid);
  background: var(--surface-warning);
  color: var(--text-primary);
}

[data-tour-highlighted] {
  scroll-margin-top: calc(var(--topbar-height) + var(--walkthrough-bar-height) + 1.5rem);
  outline: 4px solid var(--focus) !important;
  outline-offset: 6px;
  box-shadow: 0 0 0 10px var(--action-soft), var(--shadow-lg) !important;
}

@media (max-width: 1099px) {
  .demo-map-page .demo-map-quickstarts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .guided-tour-controller {
    grid-template-columns: minmax(14rem, 0.8fr) minmax(19rem, 1.2fr);
  }

  .guided-tour-controller .walkthrough-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .guided-tour-controller .walkthrough-actions .walkthrough-next {
    grid-column: auto;
    grid-row: auto;
    order: -1;
  }
}

@media (max-width: 760px) {
  .demo-map-page .demo-map-quickstarts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-inline: 0;
  }

  .demo-map-page .demo-walkthrough-shell .demo-map-quickstarts .journey-choice {
    min-height: 4.5rem;
    padding: 0.65rem;
  }

  .journey-step-details {
    margin-left: 0;
  }

  .guided-tour-controller {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
    max-height: calc(100svh - var(--topbar-height) - var(--mobile-nav-safe-height) - 0.5rem);
    padding: 0.5rem 0.65rem;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .guided-tour-controller .walkthrough-copy {
    grid-template-columns: 1fr auto;
  }

  .guided-tour-controller .walkthrough-copy strong {
    font-size: 0.88rem;
  }

  .tour-progress-block {
    gap: 0.3rem;
  }

  .tour-progress-rail a,
  .tour-progress-rail span {
    width: 2.75rem;
    height: 2.75rem;
  }

  .tour-progress-rail {
    gap: 0;
  }

  .tour-progress-rail li:not(:last-child)::after {
    width: 0.25rem;
    margin-left: 0;
  }

  .tour-instruction {
    border-top: 1px solid var(--border-subtle);
  }

  .tour-instruction > summary {
    display: flex;
  }

  .tour-instruction-body {
    padding: 0 0 0.45rem;
  }

  .tour-partner-row {
    display: none !important;
  }

  .guided-tour-controller .walkthrough-actions {
    grid-column: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.3rem;
  }

  .guided-tour-controller .walkthrough-actions a,
  .guided-tour-controller .walkthrough-actions button {
    min-width: 0;
    min-height: 2.75rem;
    padding: 0.35rem 0.42rem;
    font-size: 0.72rem;
    white-space: normal;
  }

  .guided-tour-controller .walkthrough-actions .walkthrough-next {
    grid-column: 1 / -1;
    order: -1;
  }
}

@media (max-width: 360px) {
  .demo-map-page .demo-map-quickstarts {
    grid-template-columns: 1fr;
  }

  .guided-tour-controller .walkthrough-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (forced-colors: active) {
  [data-tour-highlighted],
  .tour-progress-rail .current span,
  .journey-step-number {
    outline: 3px solid Highlight !important;
    outline-offset: 3px;
  }
}
