:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --panel: #151a21;
  --panel-strong: #1c232c;
  --panel-soft: #10141a;
  --line: #313b48;
  --line-strong: #536173;
  --text: #f4f7fb;
  --muted: #a9b4c3;
  --faint: #788596;
  --accent: #64e2ff;
  --accent-ink: #061318;
  --buy: #52e08f;
  --buy-soft: #102f20;
  --pass: #ff717a;
  --pass-soft: #38171b;
  --investigate: #ffbf47;
  --investigate-soft: #3b2b0f;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px rgb(0 0 0 / 28%);
  --content: 1180px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 100% 0%, rgb(100 226 255 / 8%), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}

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

button,
a,
input,
select,
textarea,
[tabindex] {
  outline: none;
}

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

a {
  color: var(--accent);
}

button,
.button {
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.72rem 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
}

button:hover,
.button:hover {
  filter: brightness(1.08);
}

button:disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  filter: none;
  opacity: 0.55;
}

.button-secondary {
  border-color: var(--line-strong);
  background: var(--panel-strong);
  color: var(--text);
}

.button-quiet {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.button-danger {
  background: var(--pass);
  color: #230307;
}

.button-small {
  min-height: 44px;
  padding: 0.55rem 0.8rem;
  font-size: 0.9rem;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  background: #0f1318;
  color: var(--text);
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--faint);
}

label,
.label {
  display: grid;
  gap: 0.38rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

fieldset {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

legend {
  margin-bottom: 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h1 {
  margin-bottom: 0.5rem;
  font-size: clamp(2rem, 9vw, 4.5rem);
}

h2 {
  margin-bottom: 0.85rem;
  font-size: clamp(1.45rem, 5vw, 2.2rem);
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.08rem;
}

.muted {
  color: var(--muted);
}

.eyebrow {
  margin-bottom: 0.35rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.app-shell {
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: 1rem 1rem 6rem;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  width: min(100%, var(--content));
  min-height: 68px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid rgb(83 97 115 / 55%);
  padding: 0.65rem 1rem;
  background: rgb(11 13 16 / 92%);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid var(--accent);
  border-radius: 11px 11px 11px 3px;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-actions button {
  min-height: 44px;
}

.card,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.card {
  padding: clamp(1rem, 4vw, 1.5rem);
}

.panel {
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding: 1rem;
}

.panel-header h2,
.panel-header h3,
.panel-header p {
  margin-bottom: 0;
}

.panel-body {
  padding: 1rem;
}

.stack {
  display: grid;
  gap: 1rem;
}

.stack-sm {
  display: grid;
  gap: 0.65rem;
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.split {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.screen-heading {
  margin: 1.5rem 0 1rem;
}

.screen-heading p:last-child {
  margin-bottom: 0;
}

.auth-layout {
  display: grid;
  min-height: calc(100vh - 7rem);
  place-items: center;
  padding: 1rem 0 4rem;
}

.auth-card {
  width: min(100%, 460px);
}

.segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.3rem;
  background: var(--panel-soft);
}

.segmented button {
  min-height: 44px;
  background: transparent;
  color: var(--muted);
}

.segmented button[aria-selected="true"],
.segmented button.active {
  background: var(--panel-strong);
  color: var(--text);
  box-shadow: 0 5px 16px rgb(0 0 0 / 25%);
}

.app-nav {
  position: fixed;
  z-index: 30;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  border-top: 1px solid var(--line);
  padding: 0.45rem max(0.6rem, env(safe-area-inset-right)) calc(0.45rem + env(safe-area-inset-bottom)) max(0.6rem, env(safe-area-inset-left));
  background: rgb(16 20 26 / 96%);
  backdrop-filter: blur(16px);
}

#operator-nav {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.app-nav a {
  display: grid;
  min-height: 52px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
}

.app-nav a[aria-current="page"] {
  border-color: var(--line-strong);
  background: var(--panel-strong);
  color: var(--accent);
}

.notice,
.error-box,
.success-box,
.empty-state,
.loading-state {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  background: var(--panel-soft);
}

.error-box {
  border-color: rgb(255 113 122 / 55%);
  background: var(--pass-soft);
  color: #ffc3c7;
}

.success-box {
  border-color: rgb(82 224 143 / 45%);
  background: var(--buy-soft);
  color: #bbf8d5;
}

.empty-state,
.loading-state {
  color: var(--muted);
  text-align: center;
}

.loading-state::before {
  display: inline-block;
  width: 0.8rem;
  height: 0.8rem;
  margin-right: 0.5rem;
  border: 2px solid var(--line-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  content: "";
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

.photo-preview,
.item-photo {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #222b36, #11151b);
  aspect-ratio: 1;
}

.photo-preview img,
.item-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 0.5rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

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

.fixture-option {
  min-width: 0;
  min-height: 74px;
  border-color: var(--line);
  padding: 0.55rem;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 0.78rem;
}

.fixture-option.active {
  border-color: var(--accent);
  background: rgb(100 226 255 / 10%);
  color: var(--text);
}

.pipeline {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pipeline li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 0.75rem;
  align-items: center;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.7rem;
  color: var(--faint);
}

.pipeline-marker {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 900;
}

.pipeline li.active {
  border-color: var(--accent);
  color: var(--text);
}

.pipeline li.active .pipeline-marker {
  border-color: var(--accent);
  color: var(--accent);
}

.pipeline li.complete {
  border-color: rgb(82 224 143 / 35%);
  color: var(--muted);
}

.pipeline li.complete .pipeline-marker {
  border-color: var(--buy);
  background: var(--buy);
  color: #052214;
}

.decision-hero {
  display: grid;
  place-items: center;
  min-height: 210px;
  border: 2px solid currentColor;
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}

.decision-hero strong {
  font-size: clamp(4rem, 23vw, 8rem);
  font-weight: 1000;
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.decision-hero.buy {
  background: var(--buy-soft);
  color: var(--buy);
}

.decision-hero.pass {
  background: var(--pass-soft);
  color: var(--pass);
}

.decision-hero.investigate {
  background: var(--investigate-soft);
  color: var(--investigate);
}

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

.money-stat,
.stat {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
  background: var(--panel-soft);
}

.money-stat span,
.stat span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.money-stat strong,
.stat strong {
  overflow-wrap: anywhere;
  font-size: clamp(1.2rem, 7vw, 2rem);
  line-height: 1;
}

.money-stat.primary strong {
  color: var(--accent);
}

.data-list,
.reason-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.data-row {
  display: grid;
  gap: 0.25rem;
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0;
}

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

.data-row .row-value {
  font-weight: 850;
}

.reason-list li {
  position: relative;
  padding-left: 1.35rem;
}

.reason-list li::before {
  position: absolute;
  left: 0;
  color: currentColor;
  content: "•";
}

.comp-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem;
  background: var(--panel-soft);
}

.comp-price {
  color: var(--accent);
  font-size: 1.45rem;
  font-weight: 950;
}

.pill,
.status-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.status-pill.enabled,
.status-pill.balanced {
  border-color: var(--buy);
  color: var(--buy);
}

.status-pill.disabled,
.status-pill.danger,
.status-pill.unbalanced {
  border-color: var(--pass);
  background: var(--pass-soft);
  color: var(--pass);
}

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

.item-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.item-card .item-photo {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.item-card-body {
  display: grid;
  min-width: 0;
  gap: 0.55rem;
  padding: 0.85rem;
}

.item-card h3,
.item-card p {
  margin-bottom: 0;
}

.item-card h3 {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 1rem;
}

.item-card-price {
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 950;
}

.tabs {
  display: flex;
  max-width: 100%;
  gap: 0.45rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 0.2rem 0.1rem 0.7rem;
  scrollbar-width: thin;
}

.tabs button {
  flex: 0 0 auto;
  max-width: min(82vw, 340px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-height: 44px;
  border-color: var(--line);
  background: var(--panel);
  color: var(--muted);
}

.tabs button.active,
.tabs button[aria-selected="true"] {
  border-color: var(--accent);
  color: var(--accent);
}

.cart-bar {
  position: sticky;
  z-index: 15;
  bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 0.65rem;
  background: rgb(28 35 44 / 96%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

dialog {
  width: min(calc(100% - 1.5rem), 640px);
  max-height: calc(100vh - 1.5rem);
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0;
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgb(0 0 0 / 72%);
  backdrop-filter: blur(5px);
}

.dialog-header,
.dialog-body,
.dialog-footer {
  padding: 1rem;
}

.dialog-header {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.dialog-header h2,
.dialog-header h3 {
  margin-bottom: 0;
}

.dialog-footer {
  position: sticky;
  bottom: 0;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.icon-button {
  display: grid;
  width: 44px;
  min-height: 44px;
  flex: 0 0 44px;
  place-items: center;
  padding: 0;
  border-color: var(--line);
  background: var(--panel-strong);
  color: var(--text);
  font-size: 1.35rem;
}

.qr-wrap {
  display: grid;
  place-items: center;
  gap: 0.75rem;
  border-radius: var(--radius-sm);
  padding: 1rem;
  background: #fff;
  color: #111;
  text-align: center;
}

.qr-wrap canvas {
  width: min(100%, 280px);
  height: auto;
  image-rendering: pixelated;
}

.token-text {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 0.8rem;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.right {
  text-align: right;
}

.big-number {
  color: var(--accent);
  font-size: clamp(2rem, 10vw, 4rem);
  font-weight: 1000;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.hidden,
[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.5rem;
  left: 0.5rem;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

@media (min-width: 640px) {
  .app-shell {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }

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

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

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

  .data-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .data-row .row-value {
    text-align: right;
  }
}

@media (min-width: 900px) {
  .app-shell {
    padding-bottom: 2rem;
  }

  .app-nav {
    position: static;
    display: flex;
    width: min(100%, var(--content));
    margin: 0 auto;
    justify-content: flex-start;
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 1.5rem;
    background: transparent;
    backdrop-filter: none;
  }

  #operator-nav {
    grid-template-columns: none;
  }

  .app-nav a {
    min-width: 130px;
    border-radius: 0;
    border-bottom: 3px solid transparent;
  }

  .app-nav a[aria-current="page"] {
    border: 0;
    border-bottom: 3px solid var(--accent);
    background: transparent;
  }

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

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

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

  .result-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
    gap: 1rem;
    align-items: start;
  }

  .result-layout .decision-column {
    position: sticky;
    top: 5.5rem;
  }
}

@media (max-width: 639px) {
  .header-user {
    display: none;
  }

  .site-header {
    gap: 0.5rem;
  }

  .brand,
  .header-actions {
    min-width: 0;
  }

  .header-actions {
    gap: 0.35rem;
  }

  .header-actions .button-small {
    padding-right: 0.7rem;
    padding-left: 0.7rem;
  }
}

@media (max-width: 389px) {
  .app-shell,
  .site-header {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .header-user {
    display: none;
  }

  .fixture-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 260px) {
  .seller-console .header-actions > a {
    display: none;
  }
}

.demo-hero {
  overflow: hidden;
  margin: 1.5rem 0 0;
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(1.25rem, 5vw, 3rem);
  background:
    radial-gradient(circle at 85% 20%, rgb(100 226 255 / 16%), transparent 22rem),
    linear-gradient(135deg, #151a21, #0f1318);
  box-shadow: var(--shadow);
}

.demo-hero h1 {
  max-width: 13ch;
}

.demo-lede {
  max-width: 65ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.25rem);
}

.demo-notice {
  max-width: 78ch;
}

.credential-box {
  display: grid;
  grid-template-columns: minmax(80px, auto) minmax(0, 1fr);
  gap: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
  background: var(--panel-soft);
}

.credential-box span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.credential-box code,
code.row-value {
  overflow-wrap: anywhere;
  color: var(--text);
}

.walkthrough-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.walkthrough-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 0.75rem;
  align-items: start;
}

.walkthrough-list li > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-weight: 900;
}

.walkthrough-list p {
  margin: 0;
  color: var(--muted);
}

/* Console refinement: scoped to seller/operator surfaces so the public lens,
   sale builder, and demo keep their established presentation. */
.console-page {
  --console-bg: #101312;
  --console-surface: #191d1c;
  --console-surface-raised: #202624;
  --console-rule: #38403d;
  --console-rule-strong: #5a6761;
  --console-text: #f5f7f2;
  --console-muted: #b3beb7;
  --console-faint: #7f8b84;
  --console-accent: #a8d6ba;
  --console-warm: #ffbf47;
  --accent: var(--console-accent);
  background: var(--console-bg);
  color: var(--console-text);
}

.console-document {
  min-width: 0;
}

.console-page body,
.console-page .app-shell {
  color: var(--console-text);
}

.console-page .site-header {
  width: 100%;
  max-width: none;
  padding-right: max(1.25rem, calc((100vw - var(--content)) / 2));
  padding-left: max(1.25rem, calc((100vw - var(--content)) / 2));
  border-bottom-color: var(--console-rule);
  background: rgb(16 19 18 / 94%);
}

.console-page .app-shell {
  padding-top: 2rem;
  padding-bottom: 5rem;
}

.console-page .brand {
  letter-spacing: 0.12em;
}

.console-page .brand-mark {
  border-color: var(--console-accent);
  border-radius: 7px 7px 7px 2px;
  color: var(--console-accent);
}

.console-page .header-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.console-page .button,
.console-page button {
  border-radius: 8px;
  box-shadow: none;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.console-page .button:hover,
.console-page button:hover {
  filter: none;
  transform: translateY(-1px);
}

.console-page .button-secondary {
  border-color: var(--console-rule-strong);
  background: transparent;
  color: var(--console-text);
}

.console-page .button-secondary:hover {
  border-color: var(--console-accent);
  background: rgb(100 226 255 / 8%);
}

.console-page h1,
.console-page h2,
.console-page h3 {
  letter-spacing: -0.04em;
}

.console-page h1 {
  max-width: 16ch;
  font-size: clamp(2.35rem, 6vw, 4.6rem);
  font-weight: 850;
}

.console-page .muted {
  color: var(--console-muted);
}

.console-page .eyebrow {
  color: var(--console-accent);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
}

.console-page .screen-heading {
  max-width: 780px;
  margin: 1rem 0 2rem;
}

.console-page .screen-heading > .muted {
  max-width: 62ch;
  font-size: 1.05rem;
}

.console-page .card,
.console-page .panel {
  border-color: var(--console-rule);
  border-radius: 10px;
  background: var(--console-surface);
  box-shadow: 0 18px 42px rgb(0 0 0 / 18%);
}

.console-page .card {
  padding: clamp(1.1rem, 3vw, 1.65rem);
}

.console-page .panel-header {
  border-bottom-color: var(--console-rule);
  padding: 1.15rem 1.3rem;
}

.console-page .panel-body {
  padding: 1.3rem;
}

.console-page .auth-layout {
  min-height: calc(100vh - 12rem);
  align-items: start;
  padding-top: clamp(2rem, 10vh, 6rem);
}

.console-page .auth-card {
  position: relative;
  min-width: 0;
  overflow-wrap: anywhere;
  border-top: 3px solid var(--console-accent);
}

.console-page .auth-card > * {
  min-width: 0;
}

.console-page .auth-card h1 {
  max-width: none;
  margin-bottom: 0.7rem;
}

.console-page .segmented {
  border-color: var(--console-rule);
  border-radius: 8px;
  background: #121615;
}

.console-page .segmented button[aria-selected="true"],
.console-page .segmented button.active {
  background: var(--console-surface-raised);
  color: var(--console-text);
  box-shadow: inset 0 -2px 0 var(--console-accent);
}

.console-page .app-nav {
  border-top-color: var(--console-rule);
  background: rgb(16 19 18 / 97%);
}

.console-page .app-nav a {
  border-radius: 7px;
}

.console-page .app-nav a[aria-current="page"] {
  border-color: var(--console-rule-strong);
  background: var(--console-surface-raised);
  color: var(--console-accent);
}

.console-page input,
.console-page select,
.console-page textarea {
  border-color: var(--console-rule-strong);
  border-radius: 7px;
  background: #121615;
}

.console-page input:focus,
.console-page select:focus,
.console-page textarea:focus {
  border-color: var(--console-accent);
}

.console-page .notice,
.console-page .error-box,
.console-page .success-box,
.console-page .empty-state,
.console-page .loading-state {
  border-radius: 7px;
  border-color: var(--console-rule);
  background: #121615;
}

.console-page .empty-state {
  display: grid;
  min-height: 8rem;
  place-items: center;
  gap: 0.35rem;
  align-content: center;
  padding: 1.35rem;
}

.console-page .loading-state {
  min-height: 5rem;
}

.console-page .pill,
.console-page .status-pill {
  min-height: 25px;
  border-radius: 5px;
  border-color: var(--console-rule-strong);
  padding: 0.18rem 0.5rem;
  background: transparent;
  font-size: 0.67rem;
  letter-spacing: 0.08em;
}

.console-page .data-list {
  gap: 0;
}

.console-page .data-row {
  border-bottom-color: var(--console-rule);
  padding: 0.9rem 0;
}

.console-page .data-row .row-value {
  color: var(--console-text);
}

.console-page .money-stat,
.console-page .stat {
  border-color: var(--console-rule);
  border-radius: 7px;
  background: #121615;
}

.console-page .money-stat.primary {
  border-color: rgb(100 226 255 / 55%);
  background: rgb(100 226 255 / 7%);
}

.console-page .money-stat.primary strong,
.console-page .big-number,
.console-page .comp-price,
.console-page .item-card-price {
  color: var(--console-accent);
}

.console-page .comp-card,
.console-page .item-card {
  border-color: var(--console-rule);
  border-radius: 8px;
  background: #121615;
}

.console-page .comp-card {
  border-left: 3px solid var(--console-rule-strong);
}

.console-page .item-card:hover {
  border-color: var(--console-accent);
}

.console-page .photo-preview,
.console-page .item-photo {
  border-color: var(--console-rule);
  border-radius: 7px;
  background: linear-gradient(145deg, #29332f, #111514);
}

.console-page .fixture-option {
  border-color: var(--console-rule);
  border-radius: 7px;
  background: #121615;
}

.console-page .fixture-option.active {
  border-color: var(--console-accent);
  background: rgb(100 226 255 / 8%);
}

.console-page table th,
.console-page table td {
  border-bottom-color: var(--console-rule);
}

.console-page table tbody tr:hover {
  background: rgb(100 226 255 / 4%);
}

.console-page .product-attribution {
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: 0 1rem 2rem;
  color: var(--console-faint);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-align: right;
}

.console-page .product-attribution::before {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: var(--console-warm);
  content: "";
}

.seller-console .result-layout {
  gap: 1.35rem;
}

.seller-console .decision-hero {
  min-height: 240px;
  border-radius: 10px;
}

.seller-console .decision-column > .card,
.seller-console .decision-column > .notice {
  border-left: 3px solid var(--console-accent);
}

.admin-console .screen-heading {
  border-left: 3px solid var(--console-warm);
  padding-left: 1rem;
}

.admin-console .screen-heading h1 {
  max-width: none;
}

.admin-console .screen-heading h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
}

.admin-console .sale-catalog-note,
.seller-console .evidence-note {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
}

.seller-console .evidence-label {
  margin: 0.65rem 0 0;
  color: var(--console-warm);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.seller-console .comp-card.demonstration-evidence {
  border-left-color: var(--console-warm);
}

@media (min-width: 640px) {
  .console-page .product-attribution {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }
}

@media (min-width: 900px) {
  .console-page .app-nav {
    width: min(100%, var(--content));
    border-bottom-color: var(--console-rule);
    padding-right: 1.5rem;
    padding-left: 1.5rem;
    background: transparent;
  }

  .console-page .app-nav a {
    min-width: 130px;
    border-radius: 0;
  }

  .console-page .app-nav a[aria-current="page"] {
    border: 0;
    border-bottom: 3px solid var(--console-accent);
    background: transparent;
  }

  .console-page .product-attribution {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }
}

@media (max-width: 639px) {
  .console-page .site-header {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .console-page .brand {
    font-size: 0.86rem;
  }

  .console-page .header-actions .button-small {
    max-width: 8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .console-page .product-attribution {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    text-align: center;
  }
}

/* 18+ confirmation on the create-account forms (checkbox + text on one line, 44px tap target). */
label.age-confirm { display: flex; align-items: center; gap: 10px; min-height: 44px; }
label.age-confirm input { width: 22px; height: 22px; flex: none; }
