:root {
  --bg: #08090c;
  --panel: #111217;
  --panel-2: #191b22;
  --line: #343741;
  --text: #ffffff;
  --muted: #c8cbd2;
  --accent: #e30613;
  --accent-hot: #ff2638;
  --accent-deep: #7d0710;
  --white-soft: #f7f8fb;
  --green: var(--accent);
  --cyan: #ffffff;
  --coral: #ff5a63;
  --gold: #ffc845;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
  --topbar-height: 4.2rem;
  --walkthrough-bar-height: 0px;
  --mobile-nav-height: 4.45rem;
  --mobile-nav-safe-inset: max(0px, env(safe-area-inset-bottom));
  --mobile-nav-safe-height: calc(var(--mobile-nav-height) + var(--mobile-nav-safe-inset));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-height) + var(--walkthrough-bar-height) + 0.75rem);
  overflow-x: hidden;
}

body {
  min-width: 0;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(135deg, rgba(227, 6, 19, 0.2), transparent 28%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.045), transparent 38%),
    linear-gradient(180deg, #08090c 0%, #0d0f14 55%, #07080b 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button,
a {
  -webkit-tap-highlight-color: rgba(227, 6, 19, 0.28);
}

button,
a.primary-action,
a.secondary-action,
.primary-card-action,
.secondary-card-action,
.icon-card-action,
.card-actions a,
.icon-button,
.mini-inline-action,
.filter-chip,
.segment,
.category-icon-button,
.section-filter,
.demo-path-picker button,
.demo-map-filter-row button,
.walkthrough-actions a,
.walkthrough-actions button {
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease,
    box-shadow 140ms ease,
    filter 140ms ease;
}

button:active,
a.primary-action:active,
a.secondary-action:active,
.primary-card-action:active,
.secondary-card-action:active,
.icon-card-action:active,
.card-actions a:active,
.icon-button:active,
.mini-inline-action:active,
.filter-chip:active,
.segment:active,
.category-icon-button:active,
.section-filter:active,
.demo-path-picker button:active,
.demo-map-filter-row button:active,
.walkthrough-actions a:active,
.walkthrough-actions button:active {
  transform: translateY(1px) scale(0.975);
  filter: brightness(1.08);
}

.tap-feedback {
  animation: tapFeedback 360ms ease-out;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 9, 12, 0.9);
  backdrop-filter: blur(18px);
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-logo {
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.16));
}

.brand strong {
  color: var(--white-soft);
  text-shadow: none;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
  min-width: 0;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.5rem);
  color: var(--muted);
  font-size: 0.95rem;
}

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

.launch-disclosure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.75rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(227, 6, 19, 0.34);
  border-radius: 8px;
  background: rgba(227, 6, 19, 0.08);
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

.launch-disclosure strong {
  color: var(--text);
  white-space: nowrap;
}

.form-error {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(255, 94, 105, 0.5);
  border-radius: 6px;
  background: rgba(227, 6, 19, 0.1);
  color: #ffd7da;
  font-size: 0.84rem;
}

.tooltip-target {
  position: relative;
}

.tooltip-target::after {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.55rem);
  z-index: 30;
  width: max-content;
  max-width: min(18rem, 80vw);
  padding: 0.45rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(5, 9, 12, 0.96);
  color: var(--text);
  content: attr(data-tooltip);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, 0.25rem);
  transition: opacity 140ms ease, transform 140ms ease;
}

.tooltip-target:hover::after,
.tooltip-target:focus-visible::after,
.tooltip-target.tooltip-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.topbar .tooltip-target::after {
  top: calc(100% + 0.55rem);
  bottom: auto;
  transform: translate(-50%, -0.25rem);
}

.topbar .tooltip-target:hover::after,
.topbar .tooltip-target:focus-visible::after,
.topbar .tooltip-target.tooltip-visible::after {
  transform: translate(-50%, 0);
}

.icon-button,
.filter-chip,
.segment,
.primary-action,
.search-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0 0.9rem;
  border-color: rgba(227, 6, 19, 0.72);
  background: linear-gradient(180deg, rgba(227, 6, 19, 0.28), rgba(125, 7, 16, 0.2));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 12px 32px rgba(0, 0, 0, 0.22);
}

.icon-button[aria-disabled="true"] {
  cursor: help;
}

.demo-map-entry::before {
  content: "";
  width: 1.45rem;
  height: 1.45rem;
  flex: 0 0 auto;
  background: url("assets/ui-icons/ui-icon-open-page.png") center / contain no-repeat;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
}

body.home-page:not(.journey-active) .topbar .demo-map-entry,
body.home-page:not(.journey-active) .demo-map-pulse {
  animation: none;
}

.app-section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(430px, 0.84fr) minmax(0, 1.16fr);
  gap: clamp(0.75rem, 2.4vw, 1.25rem);
  padding: clamp(0.75rem, 2vw, 1.25rem) 0 0.6rem;
  align-items: start;
}

.hero-copy {
  min-width: 0;
  max-width: 100%;
}

.hero-thesis {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 0.8rem;
  padding: 0.42rem 0.68rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(227, 6, 19, 0.94), rgba(125, 7, 16, 0.82));
  color: #fff;
  font-size: clamp(0.92rem, 1.55vw, 1.16rem);
  font-weight: 950;
  line-height: 1.05;
  text-transform: uppercase;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.hero-thesis:hover,
.hero-thesis:focus-visible {
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}

.hero-copy h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(2.75rem, 3.65vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: 0;
  color: #fff;
  text-shadow: none;
  text-wrap: balance;
}

.hero-copy p:not(.eyebrow) {
  max-width: min(32rem, 100%);
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 1rem;
}

.hero-actions .primary-link {
  grid-column: 1 / -1;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0 1rem;
  border-radius: 8px;
  font-weight: 900;
  line-height: 1.12;
  text-align: center;
  overflow-wrap: anywhere;
}

.primary-link {
  background: var(--accent);
  color: #fff;
}

.secondary-link {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--accent-hot);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-panel,
.spotlight-card,
.assistant-panel,
.draft-panel,
.feature-grid article,
.status-grid article {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(23, 24, 31, 0.94), rgba(10, 11, 15, 0.9));
  box-shadow: var(--shadow);
}

.search-panel {
  display: grid;
  gap: 0.65rem;
  padding: clamp(0.7rem, 1.8vw, 0.9rem);
  min-width: 0;
  border-color: rgba(227, 6, 19, 0.34);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.activity-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0.25rem 0 1.25rem;
}

.activity-strip div {
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(227, 6, 19, 0.16), rgba(255, 255, 255, 0.045));
}

.activity-strip strong,
.activity-strip span {
  display: block;
  overflow-wrap: anywhere;
}

.activity-strip strong {
  color: #fff;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.activity-strip span {
  margin-top: 0.2rem;
  color: var(--muted);
}

.auction-rail {
  padding: 0.15rem 0 0.8rem;
}

.rail-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.rail-heading h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.3vw, 1.75rem);
}

.rail-heading a {
  color: var(--accent-hot);
  font-size: 0.86rem;
  font-weight: 900;
  white-space: nowrap;
}

.section-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-width: 0;
}

.section-filter-row.compact {
  margin: -0.15rem 0 0.65rem;
}

.section-filter-row.mini {
  justify-content: flex-end;
}

.section-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-wrap: balance;
  white-space: normal;
}

.section-filter:hover,
.section-filter:focus-visible,
.section-filter.active {
  border-color: rgba(227, 6, 19, 0.66);
  background: linear-gradient(180deg, rgba(227, 6, 19, 0.34), rgba(125, 7, 16, 0.2));
  color: #fff;
}

.auction-scroller {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 0 0 0.45rem;
  scrollbar-width: thin;
}

.auction-card {
  flex: 0 0 clamp(15rem, 28vw, 20rem);
  display: grid;
  grid-template-columns: 5.25rem minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(227, 6, 19, 0.34);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(26, 27, 34, 0.98), rgba(10, 11, 15, 0.98));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.auction-card img {
  width: 100%;
  height: 100%;
  min-height: 6rem;
  object-fit: cover;
}

.auction-card div {
  display: grid;
  align-content: center;
  gap: 0.25rem;
  padding: 0.75rem;
}

.auction-card span {
  color: var(--accent-hot);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.auction-card strong {
  overflow-wrap: anywhere;
  line-height: 1.2;
}

.auction-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.auction-bid {
  width: fit-content;
  min-height: 2rem;
  margin-top: 0.25rem;
  padding: 0 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-hot), var(--accent));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 950;
}

.auction-card:hover,
.auction-card:focus-within {
  border-color: rgba(227, 6, 19, 0.68);
  transform: translateY(-1px);
}

.hub-network {
  display: grid;
  grid-template-columns: minmax(240px, 0.34fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
  padding: 0.5rem 0 1.25rem;
}

.hub-copy {
  display: grid;
  grid-row: span 2;
  align-content: center;
  gap: 0.75rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(227, 6, 19, 0.38);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(227, 6, 19, 0.2), rgba(255, 255, 255, 0.04));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.hub-copy h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.05;
}

.hub-copy p:not(.eyebrow) {
  margin: 0.85rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.hub-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  min-width: 0;
}

.hub-proof-grid article {
  min-width: 0;
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
}

.hub-proof-grid strong,
.hub-proof-grid span {
  display: block;
  overflow-wrap: anywhere;
}

.hub-proof-grid strong {
  color: #fff;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.hub-proof-grid span {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.hub-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.hub-flow article {
  min-width: 0;
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(22, 23, 29, 0.98), rgba(10, 11, 15, 0.98));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.hub-flow span {
  display: inline-grid;
  min-width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  border: 1px solid rgba(227, 6, 19, 0.52);
  border-radius: 50%;
  background: rgba(227, 6, 19, 0.18);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.hub-flow strong {
  display: block;
  margin-top: 0.65rem;
  color: #fff;
  font-size: 1rem;
}

.hub-flow p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.hub-flow article:hover {
  border-color: rgba(227, 6, 19, 0.56);
  transform: translateY(-1px);
}

.search-label,
.assistant-panel label {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
}

.search-row input,
.assistant-panel textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #07080b;
  color: var(--text);
}

.search-row input {
  min-height: 3.2rem;
  padding: 0 1rem;
}

.search-row button,
.primary-action {
  padding: 0 1rem;
  border-color: rgba(255, 255, 255, 0.22);
  background: linear-gradient(180deg, var(--accent-hot), var(--accent));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.search-row button:hover,
.primary-action:hover,
.primary-action:focus-visible {
  background: linear-gradient(180deg, #ff4050, #e30613);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.primary-action:disabled {
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.12);
  color: var(--muted);
}

.filter-chip,
.segment,
.category-chip {
  padding: 0 0.85rem;
  color: var(--muted);
}

.filter-chip.active,
.segment.active,
.category-chip.active {
  border-color: rgba(227, 6, 19, 0.86);
  background: rgba(227, 6, 19, 0.2);
  color: var(--text);
}

.category-panel {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
  padding-top: 0.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.category-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.category-heading output {
  color: var(--accent-hot);
  max-width: min(30vw, 14rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}

.category-heading-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.mini-inline-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.85rem;
  padding: 0 0.72rem;
  border: 1px solid rgba(227, 6, 19, 0.42);
  border-radius: 999px;
  background: rgba(227, 6, 19, 0.14);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  text-decoration: none;
  text-align: center;
  text-wrap: balance;
  white-space: normal;
  overflow-wrap: anywhere;
}

.hero-action-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
}

.hero-action-strip .mini-inline-action {
  min-height: 2.35rem;
  min-width: 0;
  border-radius: 8px;
  font-size: 0.76rem;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-wrap: balance;
  padding-inline: 0.6rem;
}

.category-bubbles {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 0.05rem 0 0.35rem;
  scrollbar-width: none;
}

.category-bubbles::-webkit-scrollbar {
  display: none;
}

.category-chip {
  flex: 0 0 auto;
  min-height: 2.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.category-chip.child {
  border-color: rgba(227, 6, 19, 0.34);
  background: rgba(227, 6, 19, 0.1);
}

.category-icon-button {
  display: grid;
  flex: 0 0 clamp(5.8rem, 11vw, 7.2rem);
  min-height: 5.25rem;
  min-width: 0;
  place-items: center;
  gap: 0.35rem;
  padding: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.03));
  color: var(--text);
  overflow: visible;
}

.category-icon-button:hover,
.category-icon-button:focus-visible {
  border-color: rgba(227, 6, 19, 0.7);
  background: linear-gradient(180deg, rgba(227, 6, 19, 0.22), rgba(255, 255, 255, 0.055));
}

.category-asset {
  width: clamp(3rem, 5.8vw, 3.8rem);
  height: clamp(3rem, 5.8vw, 3.8rem);
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.36));
  transform: translateY(-0.05rem);
}

.category-icon-button span {
  max-width: 100%;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.1;
  overflow-wrap: anywhere;
  text-align: center;
}

.category-icon-button.active {
  border-color: rgba(227, 6, 19, 0.9);
  background: linear-gradient(180deg, rgba(227, 6, 19, 0.32), rgba(255, 255, 255, 0.06));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 16px 30px rgba(0, 0, 0, 0.24);
}

.category-icon-button.active span {
  color: var(--text);
}

.category-popover {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.category-popover.visible {
  opacity: 1;
  pointer-events: auto;
}

.category-popover-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 8, 0.78);
  backdrop-filter: blur(12px);
}

.category-popover-panel {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100vw - 2rem));
  max-height: min(82vh, 760px);
  overflow: auto;
  padding: clamp(0.8rem, 2vw, 1rem);
  border: 1px solid rgba(227, 6, 19, 0.4);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(22, 23, 29, 0.98), rgba(7, 8, 11, 0.98));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.58);
}

.category-popover-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.category-popover-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.category-popover-close {
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
}

.category-popover-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.category-popover-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.category-popover-card.active {
  border-color: rgba(227, 6, 19, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.category-popover-main {
  display: grid;
  width: 100%;
  min-height: 7.2rem;
  place-items: center;
  gap: 0.45rem;
  padding: 0.8rem 0.6rem;
  border: 0;
  background: linear-gradient(180deg, rgba(227, 6, 19, 0.16), rgba(255, 255, 255, 0.03));
  color: #fff;
  font-weight: 950;
}

.category-popover-main .category-asset {
  width: clamp(4rem, 7vw, 5.2rem);
  height: clamp(4rem, 7vw, 5.2rem);
}

.category-popover-main span {
  max-width: 100%;
  line-height: 1.1;
  overflow-wrap: anywhere;
  text-align: center;
}

.category-popover-children {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.65rem;
}

.category-popover-chip {
  min-height: 2rem;
  padding: 0 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.category-popover-link {
  display: block;
  margin: 0 0.65rem 0.65rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(227, 6, 19, 0.34);
  border-radius: 8px;
  background: rgba(227, 6, 19, 0.14);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 950;
  text-align: center;
}

.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: rgba(227, 6, 19, 0.62);
  background: rgba(227, 6, 19, 0.22);
  color: #fff;
}

.hero-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 0.75rem;
  align-items: stretch;
}

.hero-stats div {
  display: grid;
  min-height: clamp(5rem, 12vw, 6.4rem);
  align-content: center;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  font-size: clamp(1.35rem, 3.5vw, 1.8rem);
  overflow-wrap: anywhere;
}

.hero-stats span {
  color: var(--muted);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.toolbar,
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}

.toolbar {
  padding: 1rem 0;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.toolbar h2,
.section-heading h2,
.section-heading h1,
.split-section h2,
.state-section h2,
.policy-section h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
}

.section-heading h1 {
  max-width: 14ch;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.segmented-control {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(84px, 1fr));
  gap: 0.35rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
}

.sort-control {
  grid-template-columns: repeat(3, minmax(92px, 1fr));
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding-bottom: 1.5rem;
}

.listing-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(22, 23, 29, 0.98), rgba(10, 11, 15, 0.98));
  min-width: 0;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.listing-card:hover {
  border-color: rgba(227, 6, 19, 0.62);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.36);
  transform: translateY(-2px);
}

.route-showcase {
  padding: 0.5rem 0 2rem;
}

.route-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.route-card-grid a {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(22, 23, 29, 0.98), rgba(10, 11, 15, 0.98));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  position: relative;
  isolation: isolate;
}

.route-card-grid a:hover,
.route-card-grid a:focus-visible {
  border-color: rgba(227, 6, 19, 0.6);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.34);
}

.route-card-grid a[hidden] {
  display: none;
}

.route-card-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--panel-2);
}

.route-card-grid strong,
.route-card-grid span {
  display: block;
  overflow-wrap: anywhere;
  padding: 0 0.85rem;
}

.route-card-grid strong {
  padding-top: 0.85rem;
  color: #fff;
  line-height: 1.2;
}

.route-card-grid span {
  padding-bottom: 0.85rem;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.route-card-grid .route-context {
  display: block;
  margin: 0.45rem 0.85rem 0;
  padding: 0.32rem 0.48rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1.15;
  width: fit-content;
  max-width: calc(100% - 1.7rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-card-grid .route-purpose {
  display: block;
  align-self: end;
  margin: 0 0.85rem 0.85rem;
  padding: 0.48rem 0.62rem;
  border: 1px solid rgba(227, 6, 19, 0.22);
  border-radius: 8px;
  background: rgba(227, 6, 19, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.2;
}

.route-card-grid a[class*="route-group-"]::before {
  content: attr(data-route-primary-label);
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.7rem;
  max-width: calc(100% - 1.4rem);
  padding: 0 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.route-card-grid a.route-group-buyer::before {
  background: rgba(227, 6, 19, 0.18);
  border-color: rgba(227, 6, 19, 0.42);
}

.route-card-grid a.route-group-seller::before {
  background: rgba(3, 133, 214, 0.2);
  border-color: rgba(3, 133, 214, 0.4);
}

.route-card-grid a.route-group-hub::before {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.45);
}

.route-card-grid a.route-group-trust::before {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.45);
}

.route-card-grid a.route-group-operator::before {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.45);
}

.compact-hero {
  min-height: auto;
  padding-top: 7rem;
  padding-bottom: 2rem;
}

.demo-paths {
  padding-top: 0.5rem;
}

.demo-map-page .demo-paths {
  padding-top: 1.25rem;
}

.demo-map-page .section-heading {
  align-items: end;
  padding: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background:
    radial-gradient(circle at top left, rgba(227, 6, 19, 0.22), transparent 44%),
    linear-gradient(180deg, rgba(17, 18, 24, 0.96), rgba(8, 9, 12, 0.96));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
}

.demo-map-page .section-heading p:not(.eyebrow) {
  max-width: 68ch;
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.demo-map-journey-heading {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  justify-content: stretch;
  justify-items: stretch;
  gap: 0.85rem;
  text-align: left;
}

.demo-map-journey-copy {
  display: grid;
  gap: 0.4rem;
  max-width: none;
}

.demo-map-journey-copy h1 {
  max-width: none;
  margin: 0;
  text-wrap: balance;
}

.demo-map-journey-intro {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 0.75rem;
}

.demo-map-page .demo-map-journey-heading .mini-inline-action {
  justify-self: start;
}

.demo-direct-starts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.demo-direct-starts a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.demo-direct-starts a:hover,
.demo-direct-starts a:focus-visible {
  border-color: rgba(227, 6, 19, 0.72);
  background: rgba(227, 6, 19, 0.18);
}

.demo-direct-starts .primary-action {
  border-color: transparent;
  background: linear-gradient(180deg, var(--accent-hot), var(--accent));
}

.demo-map-quickstarts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.demo-map-quickstarts a,
.demo-map-quickstarts button {
  display: grid;
  min-width: 0;
  min-height: 5.75rem;
  align-content: start;
  gap: 0.45rem;
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background:
    radial-gradient(circle at top left, rgba(227, 6, 19, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(24, 24, 31, 0.92), rgba(10, 11, 15, 0.96));
  color: #fff;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  text-align: left;
}

.demo-map-quickstarts a:hover,
.demo-map-quickstarts a:focus-visible,
.demo-map-quickstarts button:hover,
.demo-map-quickstarts button:focus-visible,
.journey-choice:focus-visible,
.demo-map-quickstarts a.active,
.demo-map-quickstarts button.active {
  border-color: rgba(227, 6, 19, 0.72);
  background:
    radial-gradient(circle at top left, rgba(255, 38, 56, 0.26), transparent 40%),
    linear-gradient(180deg, rgba(32, 24, 28, 0.98), rgba(10, 11, 15, 0.98));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.demo-map-quickstarts a.active,
.demo-map-quickstarts button.active {
  animation: none;
}

.demo-map-quickstarts strong,
.demo-map-quickstarts span {
  display: block;
  min-width: 0;
}

.demo-map-quickstarts strong {
  font-size: 1.02rem;
  font-weight: 950;
}

.demo-map-quickstarts span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.34;
}

.demo-walkthrough-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.demo-map-page .demo-walkthrough-shell {
  position: static;
  align-items: stretch;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(8, 9, 12, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.36);
}

.demo-path-picker {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.demo-path-picker button {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(24, 24, 31, 0.92), rgba(10, 11, 15, 0.96));
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 950;
  text-align: center;
}

.demo-path-picker button.active,
.demo-path-picker button:hover,
.demo-path-picker button:focus-visible {
  border-color: rgba(227, 6, 19, 0.72);
  background: linear-gradient(180deg, rgba(255, 38, 56, 0.92), rgba(180, 0, 14, 0.96));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.demo-path-picker button.active {
  animation: none;
}

.demo-walkthrough-shell .demo-map-quickstarts {
  margin-top: 0;
}

.demo-walkthrough-shell .demo-map-quickstarts button {
  min-height: 5.75rem;
  align-content: center;
  padding: 0.75rem;
}

.demo-walkthrough-shell .demo-map-quickstarts span {
  font-size: 0.8rem;
}

.demo-walkthrough-panel {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "summary"
    "actions"
    "steps";
  gap: 1rem;
  min-width: 0;
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(227, 6, 19, 0.2), transparent 42%),
    linear-gradient(180deg, rgba(24, 24, 31, 0.98), rgba(9, 10, 14, 0.98));
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.3);
}

.demo-walkthrough-panel h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1.08;
}

.demo-walkthrough-panel p {
  max-width: 64ch;
  margin: 0.55rem 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.demo-walkthrough-panel .path-purpose {
  max-width: 72ch;
  margin-top: 0.75rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(227, 6, 19, 0.24);
  border-radius: 8px;
  background: rgba(227, 6, 19, 0.09);
  color: #fff;
  font-weight: 850;
}

.journey-summary {
  grid-area: summary;
  min-width: 0;
}

.demo-step-list {
  display: grid;
  grid-area: steps;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: journey-step;
}

.demo-step-list li {
  display: grid;
  grid-template-columns: 2.65rem minmax(0, 1fr);
  align-content: start;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  counter-increment: journey-step;
}

.demo-step-list li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.demo-step-list li::before {
  content: counter(journey-step, decimal-leading-zero);
  display: grid;
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid rgba(227, 6, 19, 0.55);
  border-radius: 999px;
  background: rgba(227, 6, 19, 0.14);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 950;
}

.demo-step-list a {
  grid-column: 2;
  color: #fff;
  font-weight: 950;
  line-height: 1.2;
}

.journey-nav-list {
  list-style: none;
  margin: 0.45rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.journey-nav-list li {
  min-width: 0;
}

.journey-nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.58rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035));
  color: #fff;
  font-weight: 950;
  line-height: 1.2;
  text-wrap: balance;
  text-align: left;
  word-break: break-word;
  width: 100%;
}

.demo-step-list a::before {
  content: none;
}

.demo-step-list span {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.demo-walkthrough-actions {
  display: grid;
  grid-area: actions;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: center;
  justify-content: stretch;
  justify-items: stretch;
  padding: 0.2rem 0 0.35rem;
}

.demo-walkthrough-actions .journey-action-label {
  grid-column: 1 / -1;
  max-width: none;
  margin: 0;
  font-size: 0.84rem;
}

.demo-walkthrough-actions .primary-action {
  display: inline-flex;
  align-items: center;
  width: 100%;
  min-height: 3.35rem;
  justify-content: center;
  padding: 0.72rem 1.25rem;
  border-radius: 10px;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1;
  text-align: center;
  text-wrap: balance;
  white-space: normal;
  place-self: stretch;
  vertical-align: middle;
  box-shadow: var(--shadow-md);
  animation: none;
}

.demo-walkthrough-actions .secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1rem;
  line-height: 1;
  opacity: 0.88;
}

.demo-map-tools {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0;
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(22, 23, 29, 0.92), rgba(9, 10, 14, 0.96));
}

.demo-map-page .demo-map-tools {
  position: sticky;
  top: calc(var(--topbar-height) + 0.55rem);
  z-index: 65;
  backdrop-filter: blur(18px);
}

.demo-map-search {
  display: grid;
  gap: 0.4rem;
}

.demo-map-search span,
.demo-map-tools output {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.demo-map-rail-summary {
  display: grid;
  align-items: start;
  gap: 0.4rem;
  padding: 0.4rem 0.1rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.22;
}

.demo-map-rail-summary p {
  margin: 0;
}

.demo-map-search input {
  width: 100%;
  min-height: 2.8rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font: inherit;
  font-weight: 800;
}

.demo-map-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.demo-map-filter-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-wrap: balance;
  white-space: normal;
}

.demo-map-filter-row button.active,
.demo-map-filter-row button:hover,
.demo-map-filter-row button:focus-visible {
  border-color: rgba(255, 255, 255, 0.28);
  background: linear-gradient(180deg, var(--accent-hot), var(--accent));
}

.demo-map-show-more {
  justify-self: start;
  min-height: 2.35rem;
  padding: 0 0.88rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.1;
}

.demo-map-show-more:hover,
.demo-map-show-more:focus-visible {
  border-color: rgba(255, 255, 255, 0.3);
  background: linear-gradient(180deg, var(--accent-hot), var(--accent));
}

.demo-map-empty {
  margin: 0;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(255, 38, 56, 0.42);
  border-radius: 8px;
  background: rgba(227, 6, 19, 0.14);
  color: #fff;
  font-weight: 800;
}

.route-appendix {
  margin-top: 1rem;
}

.route-appendix summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(24, 24, 31, 0.96), rgba(9, 10, 14, 0.98));
  color: #fff;
  cursor: pointer;
  font-weight: 950;
  list-style: none;
  text-wrap: balance;
}

.route-appendix summary::-webkit-details-marker {
  display: none;
}

.route-appendix summary::after {
  content: "+";
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 950;
}

.route-appendix[open] summary::after {
  content: "-";
}

.demo-map-page .route-appendix {
  display: grid;
}

.demo-map-page .demo-map-tools {
  margin-top: 0.9rem;
  z-index: 66;
}

.demo-map-page .route-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.demo-map-page .route-card-grid a {
  min-height: 0;
}

.route-appendix summary strong {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
  white-space: nowrap;
}

.route-appendix:not([open]) summary {
  border-color: rgba(227, 6, 19, 0.34);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.route-appendix[open] .route-card-grid {
  margin-top: 0.35rem;
}

.demo-path-grid,
.proof-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.demo-path-card,
.proof-card-grid article {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(24, 24, 31, 0.96), rgba(10, 11, 15, 0.98)),
    radial-gradient(circle at top left, rgba(227, 6, 19, 0.18), transparent 46%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.demo-path-card {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  padding: 1rem;
  width: 100%;
  cursor: pointer;
  color: inherit;
  font: inherit;
  text-decoration: none;
  text-align: left;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.demo-path-card.active,
.demo-path-card:hover,
.demo-path-card:focus-within,
.demo-path-card:focus-visible {
  border-color: rgba(227, 6, 19, 0.68);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.34);
  transform: translateY(-2px);
}

.demo-path-card > span {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-path-card h3,
.proof-card-grid strong {
  color: #fff;
  line-height: 1.15;
}

.demo-path-card h3 {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.demo-path-card p,
.proof-card-grid span {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.demo-path-card > strong {
  display: inline-flex;
  min-height: 2.35rem;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 7px;
  background: rgba(227, 6, 19, 0.16);
  color: #fff;
  font-weight: 950;
  line-height: 1.2;
}

.demo-state-panel {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(227, 6, 19, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(28, 14, 18, 0.95), rgba(9, 10, 13, 0.98)),
    radial-gradient(circle at top right, rgba(227, 6, 19, 0.18), transparent 48%);
}

.seller-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.seller-spotlight-card {
  display: grid;
  min-width: 0;
  gap: 0.9rem;
  align-content: start;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(227, 6, 19, 0.22), transparent 42%),
    linear-gradient(180deg, rgba(24, 24, 31, 0.96), rgba(10, 11, 15, 0.98));
  color: inherit;
  text-decoration: none;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.seller-spotlight-card:hover,
.seller-spotlight-card:focus-visible {
  border-color: rgba(227, 6, 19, 0.72);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.35);
  outline: none;
  transform: translateY(-2px);
}

.seller-spotlight-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.seller-spotlight-head div {
  min-width: 0;
}

.seller-spotlight-head strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.15;
}

.seller-spotlight-head span:not(.seller-avatar) {
  display: block;
  margin-top: 0.22rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
}

.seller-spotlight-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0;
}

.seller-spotlight-card dl div {
  min-width: 0;
  padding: 0.6rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  text-align: center;
}

.seller-spotlight-card dt {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.seller-spotlight-card dd {
  margin: 0.2rem 0 0;
  color: #fff;
  font-weight: 950;
}

.seller-spotlight-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.seller-spotlight-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  margin-top: auto;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(227, 6, 19, 0.45);
  border-radius: 7px;
  background: rgba(227, 6, 19, 0.16);
  color: #fff;
  font-weight: 950;
  line-height: 1.1;
  text-align: center;
}

.demo-state-head {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
}

.demo-state-head h2,
.demo-state-head p {
  margin: 0;
}

.demo-state-note {
  display: block;
  max-width: 46rem;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.demo-state-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.demo-state-counts span,
.demo-state-row em,
.demo-state-event span {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.demo-state-list {
  display: grid;
  gap: 0.65rem;
}

.demo-state-row,
.demo-state-event {
  display: grid;
  grid-template-columns: 3.6rem minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  text-decoration: none;
}

.demo-state-event {
  grid-template-columns: auto minmax(0, 1fr);
}

.demo-state-row img {
  width: 3.6rem;
  height: 3.6rem;
  object-fit: cover;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
}

.demo-state-row strong,
.demo-state-event strong {
  display: block;
  color: #fff;
}

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

.walkthrough-bar {
  position: sticky;
  top: var(--topbar-height);
  z-index: 75;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 0.75rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(90deg, rgba(227, 6, 19, 0.36), rgba(8, 9, 12, 0.98) 42%),
    rgba(8, 9, 12, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}

body.journey-active {
  padding-top: calc(var(--topbar-height) + var(--walkthrough-bar-height));
}

body.journey-active .topbar,
body.journey-active .operator-topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 90;
}

body.journey-active .walkthrough-bar {
  position: fixed;
  top: var(--topbar-height);
  right: 0;
  left: 0;
  z-index: 85;
}

.walkthrough-copy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.3rem 0.8rem;
  min-width: 0;
}

.walkthrough-copy span,
.walkthrough-copy small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.walkthrough-copy strong {
  grid-column: 1 / -1;
  min-width: 0;
  color: var(--text);
  font-size: clamp(0.98rem, 1.6vw, 1.2rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.walkthrough-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.walkthrough-actions a,
.walkthrough-actions button {
  min-height: 2.1rem;
  padding: 0 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.walkthrough-actions a {
  display: inline-flex;
  align-items: center;
}

.walkthrough-actions .walkthrough-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-color: rgba(227, 6, 19, 0.58);
  background: var(--accent);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  animation: none;
}

.walkthrough-actions .walkthrough-next small {
  display: block;
  color: inherit;
  font: inherit;
  line-height: 1.05;
  min-width: 0;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.walkthrough-actions .walkthrough-next span {
  display: block;
  min-width: 0;
  line-height: 1.05;
  text-align: center;
}

.demo-path-card ol {
  display: grid;
  gap: 0.45rem;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
}

.demo-path-card li {
  min-width: 0;
}

.demo-path-card a {
  display: flex;
  min-height: 2.35rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  font-weight: 900;
  line-height: 1.2;
}

.demo-path-card a:hover,
.demo-path-card a:focus-visible {
  border-color: rgba(227, 6, 19, 0.62);
  background: rgba(227, 6, 19, 0.14);
}

.operator-path {
  background:
    linear-gradient(180deg, rgba(37, 21, 24, 0.98), rgba(12, 12, 16, 0.98)),
    radial-gradient(circle at top right, rgba(227, 6, 19, 0.26), transparent 52%);
}

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

.proof-card-grid article {
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
}

.proof-card-grid strong {
  display: block;
  font-size: 1.05rem;
}

.listing-media {
  position: relative;
}

.listing-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--panel-2);
  filter: none;
}

.listing-condition {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.listing-condition strong {
  color: var(--text);
}

.listing-attributes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 0.4rem;
  margin: 0;
}

.listing-attributes div {
  min-width: 0;
  padding: 0.45rem 0.5rem;
  border: 1px solid var(--border-default, rgba(255, 255, 255, 0.12));
  border-radius: 0.5rem;
  background: var(--surface-subtle, rgba(255, 255, 255, 0.04));
}

.listing-attributes dt,
.listing-attributes dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.listing-attributes dt {
  color: var(--text-tertiary, var(--muted));
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.listing-attributes dd {
  margin-top: 0.15rem;
  color: var(--text-primary, var(--text));
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.3;
}

.listing-badge,
.watch-button {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  position: absolute;
  z-index: 2;
  min-height: 1.9rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(8, 9, 12, 0.82);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.listing-badge {
  top: 0.55rem;
  left: 0.55rem;
  max-width: calc(100% - 4.9rem);
  padding: 0 0.62rem;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0;
}

.listing-badge {
  border-color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(180deg, rgba(7, 8, 12, 0.92), rgba(7, 8, 12, 0.76));
  color: #fff;
}

.listing-badge::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent-hot);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.14);
}

.listing-badge--hub-check::before,
.listing-badge--protected::before {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.16);
}

.listing-badge--sold::before {
  background: #9ca3af;
  box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.18);
}

.watch-button {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  right: 0.55rem;
  bottom: 0.55rem;
  padding: 0 0.65rem;
}

.watch-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.watch-button.active {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(227, 6, 19, 0.96);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
}

.listing-body {
  padding: 0.9rem;
}

.listing-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
}

.listing-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.listing-card p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.listing-activity {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.listing-activity span {
  min-width: 0;
  padding: 0.45rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.listing-proof-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.listing-proof-row span {
  min-width: 0;
  padding: 0.55rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.listing-proof-row strong {
  display: block;
  margin-bottom: 0.2rem;
  color: #fff;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price {
  color: #fff;
  font-weight: 900;
  white-space: nowrap;
  text-shadow: none;
}

.listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

.card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.card-actions.live-actions {
  flex-wrap: nowrap;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding-bottom: 0.1rem;
  scrollbar-width: thin;
}

.secondary-action,
.primary-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-height: 2.65rem;
  min-width: 0;
  border-radius: 8px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  text-wrap: balance;
  white-space: normal;
}

.icon-card-action {
  flex: 0 0 auto;
  min-width: 3.4rem;
  padding: 0 0.76rem;
  overflow: hidden;
}

.card-actions:not(.live-actions) .icon-card-action {
  flex: 1 1 7rem;
}

.action-symbol {
  width: 1.75rem;
  height: 1.75rem;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 7px 12px rgba(0, 0, 0, 0.34));
}

.action-label {
  display: inline-block;
  max-width: 8.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045));
  color: var(--text);
}

.secondary-action.active {
  border-color: rgba(227, 6, 19, 0.74);
  background: rgba(227, 6, 19, 0.24);
  color: #fff;
}

.primary-card-action {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(180deg, var(--accent-hot), var(--accent));
  color: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
}

.secondary-action:hover,
.secondary-action:focus-visible {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
}

.primary-card-action:hover,
.primary-card-action:focus-visible {
  background: linear-gradient(180deg, #ff4050, #e30613);
}

.seller-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.seller-rating {
  margin-left: auto;
  color: #fff;
  font-size: 0.78rem;
}

.seller-rating::before {
  content: "\2605 ";
  color: var(--gold);
}

.seller-avatar {
  display: inline-grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(227, 6, 19, 0.2);
  color: #fff;
  font-size: 0.7rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  min-height: 1.65rem;
  padding: 0 0.55rem;
  border: 1px solid rgba(227, 6, 19, 0.36);
  border-radius: 999px;
  background: rgba(227, 6, 19, 0.14);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 800;
}

.status-symbol {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.28));
}

.status-pill span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 1.25rem;
  align-items: center;
  padding: 2rem 0 4rem;
}

.split-section p,
.state-section li,
.policy-section p {
  color: var(--muted);
  line-height: 1.7;
}

.state-section.compact-boundary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 1rem 0 1.4rem;
}

.state-section.compact-boundary article {
  padding: 0.85rem;
}

.state-section.compact-boundary h2 {
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.18;
}

.state-section.compact-boundary p:not(.eyebrow) {
  font-size: 0.88rem;
  line-height: 1.5;
}

.auction-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.auction-timeline span {
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(255, 200, 69, 0.46);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 200, 69, 0.18), rgba(227, 6, 19, 0.08));
  color: #fff2bd;
  font-size: 0.9rem;
}

.spotlight-card {
  overflow: hidden;
}

.spotlight-card div {
  padding: 1rem;
}

.spotlight-card h3,
.draft-panel h3,
.feature-grid h3 {
  margin: 0.65rem 0 0.35rem;
}

.spotlight-card .primary-action {
  width: 100%;
  margin-top: 1rem;
}

.seller-workbench,
.saved-section,
.status-section {
  padding: 3rem 0;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.status-grid article {
  padding: 1rem;
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.13);
}

.status-grid h3 {
  margin: 0.65rem 0 0.35rem;
}

.status-grid p {
  color: var(--muted);
  line-height: 1.6;
}

.workbench-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 1rem;
  margin-top: 1rem;
}

.assistant-panel,
.draft-panel {
  padding: 1rem;
}

.listing-builder {
  display: grid;
  align-content: start;
  gap: 0.85rem;
}

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

.assistant-panel label {
  min-width: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.assistant-panel input,
.assistant-panel select,
.assistant-panel textarea {
  display: block;
  width: 100%;
  margin-top: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #07080b;
  color: var(--text);
}

.assistant-panel input {
  min-height: 2.85rem;
  padding: 0 0.8rem;
}

.assistant-panel select {
  min-height: 2.85rem;
  padding: 0 0.8rem;
}

.assistant-panel textarea {
  min-height: 11rem;
  padding: 0.9rem;
  resize: vertical;
}

.assistant-panel input.typing,
.assistant-panel textarea.typing {
  border-color: rgba(227, 6, 19, 0.74);
  box-shadow: 0 0 0 3px var(--action-soft);
}

.builder-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 0.6rem;
}

.seller-option-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.seller-toggle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.seller-toggle-grid label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  margin: 0;
  padding: 0 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
}

.seller-toggle-grid input {
  width: auto;
  min-height: auto;
  margin: 0;
  accent-color: var(--accent);
}

.builder-actions .primary-action,
.builder-actions .secondary-action {
  width: 100%;
}

.draft-panel p,
.draft-panel li {
  color: var(--muted);
  line-height: 1.55;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.feature-grid article {
  padding: 1rem;
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.13);
}

.feature-grid article:hover,
.status-grid article:hover,
.draft-panel:hover,
.assistant-panel:hover,
.spotlight-card:hover {
  border-color: rgba(227, 6, 19, 0.46);
}

.feature-grid p {
  color: var(--muted);
  line-height: 1.6;
}

.user-dashboard {
  display: grid;
  grid-template-columns: minmax(15rem, 1.55fr) repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.user-dashboard article,
.user-lists article {
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(22, 23, 29, 0.98), rgba(10, 11, 15, 0.98));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.user-dashboard span {
  display: block;
  color: #fff;
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  font-weight: 950;
  line-height: 1;
  text-shadow: none;
}

.user-dashboard strong {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.profile-summary-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.profile-summary-card .profile-avatar,
.profile-head .profile-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid rgba(227, 6, 19, 0.6);
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(227, 6, 19, 0.72), rgba(125, 7, 16, 0.9));
  color: #fff;
  font-size: 0.95rem;
  font-weight: 950;
  line-height: 1;
  text-shadow: none;
}

.profile-summary-card strong {
  margin-top: 0;
  color: #fff;
  font-size: 1rem;
  text-transform: none;
}

.profile-summary-card small {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.user-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.user-lists .profile-card {
  grid-column: 1 / -1;
}

.card-filter-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.55rem;
}

.card-filter-head h3 {
  margin: 0;
}

.card-filter-head .section-filter {
  min-height: 1.75rem;
  padding: 0 0.55rem;
  font-size: 0.68rem;
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.profile-head h3 {
  margin: 0 0 0.25rem;
}

.profile-head p {
  overflow-wrap: anywhere;
}

.profile-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0.9rem 0 0;
}

.profile-detail-grid div {
  min-width: 0;
  padding: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
}

.profile-detail-grid dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-detail-grid dd {
  margin: 0.25rem 0 0;
  color: #fff;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.profile-badges span {
  min-height: 1.8rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(227, 6, 19, 0.4);
  border-radius: 999px;
  background: rgba(227, 6, 19, 0.14);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.profile-note {
  margin-top: 0.85rem;
}

.user-lists h3 {
  margin: 0 0 0.55rem;
}

.user-lists p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.user-lists ul {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.user-lists li {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
  padding: 0.55rem;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.055);
}

.user-lists .market-row {
  grid-template-columns: 3.5rem minmax(0, 1fr) auto;
  align-items: center;
}

.user-lists .market-row.compact {
  grid-template-columns: 2.35rem minmax(0, 1fr) auto;
}

.market-row img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 7px;
  object-fit: cover;
}

.sale-marker {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(227, 6, 19, 0.2);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 950;
}

.market-row-copy {
  min-width: 0;
}

.user-lists li strong,
.user-lists li span,
.user-lists li small,
.user-lists li em {
  display: block;
  overflow-wrap: anywhere;
}

.user-lists li small,
.user-lists li em {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.user-lists li em {
  color: #d9dce3;
  font-style: normal;
}

.user-lists li span {
  color: var(--accent-hot);
  font-size: 0.82rem;
  font-weight: 900;
  text-align: right;
}

.row-action-stack {
  grid-column: 2 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.row-action-stack .secondary-action {
  min-height: 2rem;
  padding: 0 0.65rem;
  font-size: 0.76rem;
}

.demo-end-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(227, 6, 19, 0.42);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(227, 6, 19, 0.28), rgba(255, 255, 255, 0.055), rgba(227, 6, 19, 0.18));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.26);
}

.state-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 2rem 0 0.5rem;
}

.state-section.state-section--compact {
  grid-template-columns: 1fr;
  padding-bottom: 1rem;
}

.state-section article {
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(22, 23, 29, 0.96), rgba(10, 11, 15, 0.94));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.state-boundary-note {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(22, 23, 29, 0.96), rgba(10, 11, 15, 0.94));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.state-boundary-note summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 850;
}

.state-boundary-note > div {
  display: grid;
  gap: 0.75rem;
}

.state-boundary-note > p:first-child {
  margin: 0 0 0.15rem;
}

.state-boundary-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.state-boundary-note p strong {
  color: #fff;
}

.state-card {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.state-card.current-state {
  border-color: rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at 18% 8%, rgba(227, 6, 19, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(22, 23, 29, 0.98), rgba(10, 11, 15, 0.96));
}

.state-card.launch-state {
  border-color: rgba(255, 255, 255, 0.14);
}

.state-card-head {
  display: grid;
  gap: 0.35rem;
}

.state-card p:not(.eyebrow),
.state-microcopy {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.92rem, 1vw, 1rem);
  line-height: 1.6;
}

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

.state-chip-grid span {
  display: flex;
  min-width: 0;
  min-height: 2.35rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.state-card.current-state .state-chip-grid span {
  border-color: rgba(227, 6, 19, 0.3);
  background: rgba(227, 6, 19, 0.12);
}

.state-microcopy {
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}

.state-section ul {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}

.state-section li {
  margin: 0;
}

.policy-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.policy-copy {
  display: grid;
  gap: 0.85rem;
}

.policy-copy p {
  margin: 0;
}

.site-footer {
  padding: 2rem 0 5.25rem;
  color: #aeb2bb;
  font-size: 0.82rem;
}

.site-footer p {
  margin: 0;
}

.copyright-trigger {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.copyright-trigger:hover,
.copyright-trigger:focus-visible {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

body.video-overlay-open {
  overflow: hidden;
}

.video-overlay[hidden] {
  display: none;
}

.video-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: clamp(0.75rem, 3vw, 2rem);
  background: rgba(2, 3, 5, 0.9);
  backdrop-filter: blur(14px);
}

.video-overlay-panel {
  position: relative;
  display: grid;
  width: min(100%, 76rem);
  max-height: calc(100svh - 2rem);
  gap: 0.75rem;
  overflow: auto;
  padding: clamp(0.75rem, 2vw, 1.2rem);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: #090a0e;
  box-shadow: 0 2rem 8rem rgba(0, 0, 0, 0.72);
}

.video-overlay-panel h2 {
  margin: 0;
  padding-right: 5rem;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.video-overlay-player {
  display: block;
  width: 100%;
  max-height: min(72svh, 48rem);
  border-radius: 8px;
  background: #000;
}

.video-overlay-description {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.video-overlay-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 1;
  min-height: 2.65rem;
  padding: 0 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 7px;
  background: #1a1c22;
  color: #fff;
  font-weight: 800;
}

.video-overlay-close:hover,
.video-overlay-close:focus-visible {
  border-color: var(--accent-hot);
  outline: 3px solid rgba(227, 6, 19, 0.22);
}

body.modal-open,
body.category-modal-open {
  overflow: hidden;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.video-modal.visible {
  opacity: 1;
  pointer-events: auto;
}

.video-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 9, 0.78);
  backdrop-filter: blur(10px);
}

.video-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100vw - 2rem));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: #05090c;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.video-dialog video {
  display: block;
  width: 100%;
  max-height: min(70vh, 720px);
  background: #000;
}

.video-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(5, 9, 12, 0.82);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.video-close:hover,
.video-close:focus-visible {
  background: rgba(223, 15, 31, 0.95);
}

.review-modal {
  position: fixed;
  inset: 0;
  z-index: 82;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.market-modal {
  position: fixed;
  inset: 0;
  z-index: 84;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.market-modal.visible {
  opacity: 1;
  pointer-events: auto;
}

.market-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 9, 0.8);
  backdrop-filter: blur(10px);
}

.market-dialog {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100vw - 2rem));
  max-height: min(86vh, 820px);
  overflow: auto;
  padding: clamp(0.85rem, 2vw, 1.2rem);
  border: 1px solid rgba(227, 6, 19, 0.42);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(22, 23, 29, 0.99), rgba(7, 8, 11, 0.99));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.62);
}

.market-modal-head {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.market-modal-head h3 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.05;
}

.market-modal-head p,
.market-dialog p,
.market-dialog small {
  color: var(--muted);
  line-height: 1.5;
}

.modal-price {
  color: #fff;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.listing-detail-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.modal-hero-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  object-fit: cover;
}

.modal-actions,
.bid-input-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: stretch;
}

.modal-actions button,
.modal-actions a,
.bid-input-row button,
.bid-panel > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 10rem);
  min-height: 2.65rem;
  text-align: center;
}

.detail-grid,
.auction-detail-grid,
.checkout-layout,
.report-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.detail-grid article,
.bid-panel,
.checkout-summary,
.market-dialog section {
  min-width: 0;
}

.detail-grid article,
.bid-panel,
.checkout-summary {
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.market-dialog h4 {
  margin: 0 0 0.6rem;
}

.auction-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.auction-facts span {
  padding: 0.45rem 0.6rem;
  border: 1px solid rgba(227, 6, 19, 0.32);
  border-radius: 999px;
  background: rgba(227, 6, 19, 0.12);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 850;
}

.bid-input-row input,
.report-layout select,
.report-layout textarea {
  flex: 1 1 12rem;
  min-height: 2.7rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #07080b;
  color: #fff;
  padding: 0 0.8rem;
}

.report-layout textarea {
  width: 100%;
  min-height: 8rem;
  padding: 0.8rem;
}

.bid-history,
.modal-list,
.simple-list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bid-history li,
.modal-row,
.simple-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: center;
  padding: 0.65rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.bid-history small {
  grid-column: 1 / -1;
}

.modal-row {
  grid-template-columns: 3.6rem minmax(0, 1fr) auto auto;
}

.modal-row img {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 7px;
  object-fit: cover;
}

.modal-row strong,
.modal-row small,
.bid-history strong,
.simple-list strong {
  overflow-wrap: anywhere;
}

.modal-row span,
.simple-list span,
.bid-history span {
  color: var(--accent-hot);
  font-weight: 900;
  white-space: nowrap;
}

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

.checkout-summary {
  align-content: start;
  display: grid;
  gap: 0.65rem;
}

.checkout-choice-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
}

.checkout-choice-row button {
  min-height: 2.1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.checkout-choice-row button.active {
  border-color: rgba(227, 6, 19, 0.7);
  background: rgba(227, 6, 19, 0.24);
  color: #fff;
}

.checkout-summary strong {
  font-size: 2rem;
}

.modal-empty {
  margin: 0;
  padding: 0.8rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

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

.compare-card {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.compare-card img {
  width: 100%;
  aspect-ratio: 1.25;
  border-radius: 7px;
  object-fit: cover;
}

.compare-card strong,
.compare-card span,
.compare-card small,
.compare-card em {
  display: block;
  overflow-wrap: anywhere;
}

.compare-card span {
  color: var(--accent-hot);
  font-weight: 950;
}

.compare-card small,
.compare-card em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
}

.offer-panel {
  display: grid;
  grid-template-columns: minmax(10rem, 0.8fr) minmax(0, 1fr);
  gap: 0.75rem;
}

.offer-panel img {
  width: 100%;
  height: 100%;
  min-height: 15rem;
  border-radius: 8px;
  object-fit: cover;
}

.offer-panel label {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  font-weight: 900;
}

.offer-panel input,
.offer-panel textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #07080b;
  color: var(--text);
}

.offer-panel input {
  min-height: 2.8rem;
  padding: 0 0.75rem;
}

.offer-panel textarea {
  padding: 0.75rem;
  resize: vertical;
}

.seller-storefront {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.9rem;
}

.seller-storefront article {
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.seller-storefront strong,
.seller-storefront span {
  display: block;
  overflow-wrap: anywhere;
}

.seller-storefront span {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.message-panel {
  display: grid;
  gap: 0.75rem;
}

.thread-snapshot {
  display: grid;
  gap: 0.5rem;
}

.thread-snapshot article {
  min-width: 0;
  padding: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.thread-snapshot strong,
.thread-snapshot span {
  display: block;
  overflow-wrap: anywhere;
}

.thread-snapshot span {
  margin-top: 0.2rem;
  color: var(--muted);
}

.message-panel label {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  font-weight: 900;
}

.message-panel textarea {
  width: 100%;
  min-height: 8rem;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #07080b;
  color: var(--text);
  resize: vertical;
}

.report-checklist {
  display: grid;
  gap: 0.5rem;
}

.report-checklist label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.55rem;
  padding: 0 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.report-checklist input {
  accent-color: var(--accent);
}

.review-modal.visible {
  opacity: 1;
  pointer-events: auto;
}

.review-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 9, 0.78);
  backdrop-filter: blur(10px);
}

.review-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.8rem;
  width: min(520px, calc(100vw - 2rem));
  padding: 1rem;
  border: 1px solid rgba(227, 6, 19, 0.42);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(22, 23, 29, 0.98), rgba(7, 8, 11, 0.98));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.58);
}

.review-dialog h3 {
  margin: 0;
}

.review-dialog textarea {
  width: 100%;
  min-height: 8rem;
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #07080b;
  color: var(--text);
  resize: vertical;
}

.star-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.star-row button {
  min-height: 2.45rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-weight: 900;
}

.star-row button.active {
  border-color: rgba(255, 200, 69, 0.68);
  background: rgba(255, 200, 69, 0.16);
  color: #fff2bd;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 5.15rem;
  z-index: 40;
  max-width: min(24rem, calc(100vw - 2rem));
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(5, 9, 12, 0.95);
  color: var(--text);
  box-shadow: var(--shadow);
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.6rem);
  transition: opacity 150ms ease, transform 150ms ease;
}

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

.compare-tray {
  position: fixed;
  right: 1rem;
  bottom: 5.1rem;
  z-index: 55;
  display: none;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.55rem;
  width: min(42rem, calc(100% - 2rem));
  padding: 0.75rem;
  border: 1px solid rgba(227, 6, 19, 0.56);
  border-radius: 8px;
  background: rgba(10, 11, 15, 0.96);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.42);
}

.compare-tray.visible {
  display: grid;
}

.compare-tray strong,
.compare-tray span {
  display: block;
  overflow-wrap: anywhere;
}

.compare-tray span {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.mobile-nav {
  display: none;
}

.route-mobile-nav {
  --route-nav-active: rgba(227, 6, 19, 0.28);
}

.route-context-note {
  display: flex;
  align-items: center;
  gap: 0.7rem 1rem;
  padding-block: 0.72rem;
  border-bottom: 1px solid rgba(255, 200, 69, 0.22);
  background: rgba(255, 200, 69, 0.07);
  color: var(--muted);
  font-size: 0.88rem;
}

.route-context-note strong {
  color: var(--gold);
  white-space: nowrap;
}

.route-context-note a {
  margin-left: auto;
  color: var(--text);
  font-weight: 800;
  white-space: nowrap;
}

.access-gate {
  display: grid;
  justify-items: start;
  gap: 1rem;
  min-height: min(64vh, 42rem);
  align-content: center;
}

.access-gate h1,
.access-gate p {
  max-width: 48rem;
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--accent-hot);
  outline-offset: 3px;
}

@keyframes tapFeedback {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.38);
    filter: brightness(1.18);
  }

  100% {
    box-shadow: 0 0 0 0.5rem rgba(255, 255, 255, 0);
    filter: brightness(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1000px) {
  .hero,
  .split-section,
  .workbench-grid,
  .hub-network,
  .policy-section {
    grid-template-columns: 1fr;
  }

  .hub-copy {
    grid-row: auto;
  }

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

  .demo-path-picker {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding-bottom: 0.15rem;
  }

  .demo-path-picker button {
    flex: 0 0 min(12rem, 42vw);
  }

  .demo-step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hub-proof-grid,
  .route-card-grid,
  .demo-map-quickstarts,
  .demo-path-grid,
  .proof-card-grid,
  .seller-spotlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

  .profile-summary-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: calc(var(--topbar-height) + var(--walkthrough-bar-height) + 0.75rem);
  }

  body {
    padding-bottom: calc(var(--mobile-nav-safe-height) + 1.5rem);
  }

  .route-context-note {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .route-context-note span {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .route-context-note a {
    grid-column: 2;
    grid-row: 1;
  }

  .desktop-nav {
    display: none;
  }

  .topbar {
    gap: 0.45rem;
    justify-content: flex-start;
    padding: 0.75rem 1rem;
  }

  .launch-disclosure {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
    text-align: left;
  }

  .demo-map-page .demo-map-tools {
    position: static;
  }

  .demo-map-page .demo-walkthrough-shell {
    position: sticky;
    top: calc(var(--topbar-height) + 0.35rem);
    grid-template-columns: 1fr;
    max-height: calc(100svh - var(--topbar-height) - 0.85rem);
    overflow: auto;
    overscroll-behavior: contain;
  }

  .demo-map-page .section-heading {
    align-items: stretch;
    padding: 0.8rem;
  }

  .demo-map-page .section-heading h1 {
    max-width: 100%;
    font-size: clamp(1.8rem, 9vw, 2.6rem);
  }

  .demo-walkthrough-actions {
    grid-template-columns: 1fr;
  }

  .demo-walkthrough-actions .primary-action,
  .demo-walkthrough-actions .secondary-action {
    width: 100%;
    justify-content: center;
    min-height: 3rem;
    padding-block: 0.68rem;
  }

  .journey-nav-list a {
    min-height: 2.9rem;
  }

  .demo-map-quickstarts {
    grid-template-columns: 1fr;
  }

  .demo-walkthrough-shell .demo-map-quickstarts {
    display: flex;
    gap: 0.55rem;
    margin-inline: -0.15rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 0.05rem 0.15rem 0.25rem;
  }

  .demo-walkthrough-shell .demo-map-quickstarts button {
    flex: 0 0 min(12rem, 46vw);
    min-height: 4.75rem;
    padding: 0.65rem;
  }

  .demo-walkthrough-shell .demo-map-quickstarts span {
    font-size: 0.76rem;
  }

  .demo-map-filter-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo-map-filter-row button {
    width: 100%;
    min-height: 2.65rem;
    padding: 0.45rem 0.55rem;
  }

  .demo-map-quickstarts a,
  .demo-map-quickstarts button {
    min-height: auto;
  }

  .brand {
    gap: 0.55rem;
    flex: 0 1 auto;
    max-width: calc(100% - 5.25rem);
  }

  .brand-logo {
    width: 2.1rem;
    height: 2.1rem;
    flex: 0 0 auto;
  }

  .brand span {
    min-width: 0;
  }

  .brand strong,
  .brand small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .icon-button {
    display: none;
  }

  .topbar .demo-map-entry {
    display: inline-flex;
    flex: 0 1 auto;
    justify-content: center;
    margin-left: auto;
    min-width: 0;
    width: 6rem;
    max-width: 6rem;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.75rem;
    padding: 0;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .topbar .demo-map-entry span {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    font-size: 0.68rem;
  }

  .demo-map-page .topbar .demo-map-entry {
    display: none;
  }

  .demo-map-page .brand {
    max-width: 100%;
  }

  .app-section {
    width: min(100% - 1rem, 1180px);
  }

  .hero {
    min-height: auto;
    padding-top: 0.65rem;
    gap: 0.65rem;
  }

  .hero-copy h1 {
    max-width: 12ch;
    font-size: clamp(2.15rem, 10.5vw, 3.35rem);
    line-height: 1;
  }

  .hero-copy p:not(.eyebrow) {
    max-width: 100%;
  }

  .hero-thesis {
    margin-bottom: 0.62rem;
    white-space: normal;
  }

  .hero-action-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-stats,
  .feature-grid,
  .status-grid,
  .hub-flow,
  .hub-proof-grid,
  .demo-path-picker,
  .demo-step-list,
  .listing-grid,
  .route-card-grid,
  .demo-path-grid,
  .proof-card-grid,
  .seller-spotlight-grid,
  .activity-strip,
  .user-dashboard,
  .user-lists,
  .state-section {
    grid-template-columns: 1fr;
  }

  .hero-actions a {
    width: 100%;
  }

  .demo-walkthrough-actions a {
    width: 100%;
    justify-content: center;
  }

  .route-appendix summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .route-appendix summary strong {
    margin-left: 0;
  }

  .walkthrough-bar {
    top: var(--topbar-height);
    display: grid;
    gap: 0.65rem;
    max-height: calc(100svh - var(--topbar-height) - max(0.5rem, env(safe-area-inset-bottom)));
    overflow: auto;
    overscroll-behavior: contain;
  }

  .walkthrough-copy {
    display: grid;
    gap: 0.15rem;
  }

  .walkthrough-copy span,
  .walkthrough-copy small {
    white-space: normal;
  }

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

  .walkthrough-actions .walkthrough-next {
    grid-column: 1 / -1;
    order: -1;
    display: grid;
    gap: 0.04rem;
    min-height: 2.65rem;
  }

  .walkthrough-actions .walkthrough-next small {
    display: block;
    font-size: 0.68rem;
    line-height: 1.1;
    opacity: 0.88;
    white-space: normal;
  }

  .walkthrough-actions a,
  .walkthrough-actions button {
    justify-content: center;
    padding: 0 0.55rem;
    text-align: center;
  }

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

  .auction-card {
    flex-basis: min(82vw, 19rem);
  }

  .toolbar,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar-actions {
    justify-content: stretch;
  }

  .section-filter-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .section-filter-row .section-filter {
    width: 100%;
    min-height: 2.55rem;
    padding: 0.45rem 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .segmented-control {
    width: 100%;
  }

  .field-grid,
  .seller-option-grid,
  .seller-toggle-grid,
  .builder-actions {
    grid-template-columns: 1fr;
  }

  .card-actions.live-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-x: visible;
    gap: 0.42rem;
  }

  .listing-proof-row {
    grid-template-columns: 1fr;
  }

  .card-actions.live-actions .primary-card-action {
    grid-column: 1 / -1;
    order: -1;
    min-height: 3rem;
    flex-direction: row;
    gap: 0.45rem;
    padding-inline: 0.55rem;
  }

  .card-actions.live-actions .icon-card-action {
    min-width: 0;
    min-height: 3.15rem;
    padding: 0.32rem 0.42rem;
    flex-direction: column;
    gap: 0.18rem;
    width: 100%;
  }

  .card-actions.live-actions .action-symbol {
    width: 1.55rem;
    height: 1.55rem;
  }

  .card-actions.live-actions .secondary-action .action-label {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: hidden;
    clip: auto;
    max-width: 100%;
    font-size: 0.66rem;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .card-actions.live-actions .primary-card-action .action-label {
    max-width: 100%;
  }

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

  .user-lists .market-row,
  .user-lists .market-row.compact {
    grid-template-columns: 3rem minmax(0, 1fr);
  }

  .market-row img,
  .sale-marker {
    width: 3rem;
    height: 3rem;
  }

  .user-lists li span {
    grid-column: 2;
    text-align: left;
  }

  .star-row {
    grid-template-columns: 1fr;
  }

  .category-popover {
    align-items: end;
    padding: 0.5rem;
  }

  .category-popover-panel {
    width: 100%;
    max-height: 82vh;
    border-radius: 10px 10px 8px 8px;
  }

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

  .listing-detail-layout,
  .detail-grid,
  .auction-detail-grid,
  .checkout-layout,
  .compare-grid,
  .offer-panel,
  .report-layout,
  .modal-list-grid {
    grid-template-columns: 1fr;
  }

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

  .modal-row {
    grid-template-columns: 3rem minmax(0, 1fr);
  }

  .modal-row img {
    width: 3rem;
    height: 3rem;
  }

  .modal-row span,
  .modal-row button {
    grid-column: 2;
    width: fit-content;
  }

  .modal-actions,
  .bid-input-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .modal-actions .primary-action,
  .modal-actions button:first-child,
  .bid-input-row .primary-action,
  .bid-input-row button:first-child {
    grid-column: 1 / -1;
  }

  .modal-actions button,
  .modal-actions a,
  .bid-input-row button {
    width: 100%;
    min-width: 0;
    min-height: 2.85rem;
    padding-inline: 0.55rem;
    overflow: hidden;
  }

  .builder-actions .primary-action,
  .builder-actions .secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 2.9rem;
    padding: 0.62rem 0.7rem;
    line-height: 1;
    text-align: center;
    text-wrap: balance;
    white-space: normal;
  }

  .compare-tray {
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(var(--mobile-nav-safe-height) + 1rem);
    width: auto;
    grid-template-columns: 1fr;
  }

  .toast {
    right: 0.75rem;
    bottom: calc(var(--mobile-nav-safe-height) + 1rem);
    left: 0.75rem;
    max-width: none;
  }

  .mobile-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 75;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.2rem;
    min-height: var(--mobile-nav-safe-height);
    padding: 0.35rem 0.5rem calc(0.35rem + var(--mobile-nav-safe-inset));
    border: 1px solid rgba(227, 6, 19, 0.34);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 12px 12px 0 0;
    background: rgba(8, 9, 12, 0.94);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.45);
  }

  .mobile-nav a {
    display: grid;
    min-height: 3rem;
    place-items: center;
    align-content: center;
    gap: 0.15rem;
    border-radius: 6px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
  }

  .mobile-nav svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
  }

  .mobile-nav span {
    line-height: 1;
    white-space: nowrap;
  }

  .mobile-nav a:focus-visible,
  .mobile-nav a:hover {
    background: rgba(227, 6, 19, 0.22);
    color: var(--text);
  }

  .mobile-nav a[aria-current="page"] {
    background: var(--accent);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 10px 24px rgba(0, 0, 0, 0.24);
  }

  .route-mobile-nav {
    z-index: 20;
  }
}

@media (max-width: 760px) and (max-height: 680px) {
  :root {
    --mobile-nav-height: 4rem;
  }

  .topbar {
    padding-block: 0.55rem;
  }

  .brand-logo {
    width: 1.9rem;
    height: 1.9rem;
  }

  .brand small {
    font-size: 0.72rem;
  }

  .walkthrough-bar {
    padding-block: 0.5rem;
  }

  .walkthrough-copy strong {
    font-size: 0.95rem;
  }

  .walkthrough-actions {
    gap: 0.35rem;
  }

  .walkthrough-actions a,
  .walkthrough-actions button {
    min-height: 2rem;
    padding-inline: 0.4rem;
    font-size: 0.74rem;
  }

  .mobile-nav a {
    min-height: 2.65rem;
    font-size: 0.68rem;
  }

  .mobile-nav svg {
    width: 1.1rem;
    height: 1.1rem;
  }

  .walkthrough-bar {
    gap: 0.35rem;
    max-height: calc(100svh - var(--topbar-height) - max(0.45rem, env(safe-area-inset-bottom)));
    overflow: auto;
    overscroll-behavior: contain;
  }

  .walkthrough-actions {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .walkthrough-actions .walkthrough-next {
    order: -1;
  }

  .mobile-nav {
    min-height: 3.65rem;
    gap: 0.12rem;
    padding: 0.28rem 0.4rem calc(0.28rem + var(--mobile-nav-safe-inset));
  }
}

/* Release 1.0 composition: keep the public entry points balanced at every width. */
.demo-step-list.journey-nav-list {
  margin: 0;
}

.demo-step-list.journey-nav-list a {
  display: block;
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
}

.demo-library-heading {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  justify-content: stretch;
  gap: 0.85rem;
}

.demo-map-page .demo-library-heading > p {
  max-width: 52ch;
  margin: 0;
}

@media (min-width: 1100px) {
  .demo-map-journey-heading,
  .demo-library-heading {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(2rem, 5vw, 4.5rem);
  }

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

  .demo-walkthrough-shell .demo-map-quickstarts button {
    min-height: 6.25rem;
  }

  .demo-walkthrough-panel {
    grid-template-columns: minmax(0, 0.88fr) minmax(30rem, 1.12fr);
    grid-template-areas:
      "summary steps"
      "actions steps";
    align-items: start;
    column-gap: clamp(1.25rem, 3vw, 2.4rem);
  }

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

  .demo-step-list li:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

@media (min-width: 761px) and (max-width: 1099px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 22ch;
    font-size: clamp(2.65rem, 6vw, 3.25rem);
  }

  .hero-copy p:not(.eyebrow) {
    max-width: 52rem;
  }

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

  .hero-actions .primary-link {
    grid-column: auto;
  }

  .demo-map-quickstarts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .hero-copy h1 {
    max-width: 15ch;
    font-size: clamp(2.1rem, 10vw, 3rem);
    text-wrap: balance;
  }

  .hero-action-strip > :last-child {
    grid-column: 1 / -1;
  }

  .demo-map-page .demo-walkthrough-shell {
    position: static;
    max-height: none;
    overflow: visible;
    overscroll-behavior: auto;
  }

  .demo-walkthrough-panel {
    grid-template-columns: 1fr;
    grid-template-areas:
      "summary"
      "actions"
      "steps";
  }

  .demo-walkthrough-actions {
    grid-template-columns: 1fr;
  }

  .demo-walkthrough-actions .journey-action-label {
    grid-column: 1;
  }

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

  .demo-step-list li:last-child:nth-child(odd) {
    grid-column: auto;
  }
}
