:root {
  --ink: #f8f7f4;
  --muted: #b8b3ab;
  --line: rgba(255, 255, 255, 0.16);
  --soft: rgba(255, 255, 255, 0.08);
  --paper: rgba(255, 255, 255, 0.72);
  --navy: #11100f;
  --teal: #f27816;
  --gold: #ff9a34;
  --wine: #2a1b12;
  --green: #f27816;
  --red: #d56a5d;
  --cream: #f8f1e6;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.14);
  --glass-dark: rgba(5, 5, 5, 0.58);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.30);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 12%, rgba(242, 120, 22, 0.36), transparent 25%),
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.10), transparent 24%),
    radial-gradient(circle at 68% 86%, rgba(242, 120, 22, 0.18), transparent 30%),
    linear-gradient(135deg, #050505 0%, #171514 52%, #2a1b12 100%);
  background-attachment: fixed;
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

html {
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 82%);
}

button,
input,
textarea {
  font: inherit;
}

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

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(160deg, rgba(5, 5, 5, 0.92), rgba(24, 20, 18, 0.76));
  box-shadow: 18px 0 54px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(22px);
  color: #fff;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 0 6px 12px;
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 132px;
  min-width: 132px;
  height: 48px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.brand-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.brand-mark {
  display: grid;
  width: 66px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  font-size: 24px;
  font-weight: 700;
}

.brand-mark.wordmark {
  width: 76px;
  font-size: 20px;
  letter-spacing: 0;
  font-weight: 500;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  line-height: 1.15;
}

.brand span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.demo-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: auto;
}

.mobile-stepper {
  display: none;
}

.nav-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  width: 100%;
  padding: 14px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #fff;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.nav-item:hover,
.nav-item.active {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(242, 120, 22, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.nav-index {
  color: var(--gold);
  font-weight: 700;
}

.nav-item strong,
.nav-item small {
  display: block;
}

.nav-item small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.35;
}

.sidebar-note {
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(242, 120, 22, 0.10);
  backdrop-filter: blur(16px);
}

.sidebar-note p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

.workspace {
  min-width: 0;
  max-width: 100%;
  padding: 28px;
  position: relative;
  z-index: 1;
}

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

.eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: 32px;
  line-height: 1.12;
}

h2 {
  margin-bottom: 12px;
  font-size: 22px;
}

h3 {
  margin-bottom: 8px;
  font-size: 15px;
}

.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.icon-button,
.primary-action,
.secondary-action,
.small-action {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(14px);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(29, 35, 42, 0.08);
}

.icon-button {
  width: 40px;
  height: 40px;
  font-size: 20px;
}

.primary-action {
  padding: 11px 16px;
  border-color: var(--navy);
  color: #fff;
  background: linear-gradient(135deg, #f27816, #ff9a34);
  font-weight: 700;
}

.secondary-action,
.small-action {
  padding: 9px 12px;
}

.small-action {
  font-size: 13px;
}

.demo-content {
  display: grid;
  gap: 18px;
}

.hero-panel,
.panel,
.output-panel {
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 24px;
  padding: 24px;
  overflow: hidden;
  position: relative;
}

.hero-panel::before,
.panel::before,
.output-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 42%);
}

.panel,
.output-panel {
  position: relative;
}

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

.stage-visual {
  min-height: 210px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(5, 5, 5, 0.82), rgba(242, 120, 22, 0.54)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='520' viewBox='0 0 800 520'%3E%3Crect width='800' height='520' fill='%23f5f7f9'/%3E%3Cpath d='M0 380 C180 270 300 480 520 320 C650 220 710 210 800 240 L800 520 L0 520 Z' fill='%23dce2e8'/%3E%3Cpath d='M0 155 C150 100 250 170 380 105 C520 35 660 60 800 40 L800 0 L0 0 Z' fill='%23e7edf1'/%3E%3Ccircle cx='620' cy='165' r='82' fill='%23c8d5dd'/%3E%3C/svg%3E");
  background-size: cover;
  position: relative;
}

.stage-visual::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.stage-card {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 32px;
  padding: 15px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: var(--glass-dark);
  backdrop-filter: blur(18px);
}

.stage-card strong {
  display: block;
  margin-bottom: 6px;
}

.stage-card span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.4;
}

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

.panel,
.output-panel {
  padding: 20px;
}

.muted {
  color: var(--muted);
  line-height: 1.5;
}

.input-stack {
  display: grid;
  gap: 12px;
}

textarea,
input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  resize: vertical;
  min-width: 0;
}

textarea {
  min-height: 170px;
  line-height: 1.45;
}

.progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(229, 235, 239, 0.7);
}

.progress span {
  display: block;
  width: var(--value, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
  transition: width 420ms ease;
}

.step-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.step {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(10px);
}

.step.done .dot {
  background: var(--green);
}

.dot {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #aab4be;
  font-size: 12px;
  font-weight: 700;
}

.step strong,
.step span {
  display: block;
}

.step span {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.4;
}

.blueprint {
  display: grid;
  gap: 12px;
}

.blueprint-section {
  padding: 14px;
  border-left: 4px solid var(--teal);
  background: rgba(245, 247, 249, 0.64);
  backdrop-filter: blur(10px);
}

.blueprint-section strong {
  display: block;
  margin-bottom: 6px;
}

.blueprint-section ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.5;
}

.company-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.company-column {
  min-height: 230px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(251, 252, 253, 0.54);
  backdrop-filter: blur(10px);
}

.company-column h3 {
  margin-bottom: 12px;
}

.company {
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
}

.company .small-action {
  margin-top: 8px;
  padding: 6px 8px;
  font-size: 12px;
}

.company strong,
.company span {
  display: block;
}

.company span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.target h3 {
  color: var(--green);
}

.secondary h3 {
  color: var(--navy);
}

.adjacent h3 {
  color: var(--gold);
}

.excluded h3 {
  color: var(--red);
}

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

.metric-row,
.candidate-row,
.report-row,
.memory-row {
  display: grid;
  gap: 12px;
}

.report-preview {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(242, 120, 22, 0.48);
  border-radius: 8px;
  background: rgba(242, 120, 22, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.report-preview h3 {
  margin-bottom: 6px;
  color: #fffaf2;
  font-size: 18px;
}

.report-preview p,
.report-preview span {
  color: #f1dfcf;
  line-height: 1.45;
}

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

.preview-grid > div {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.preview-grid strong,
.preview-grid span {
  display: block;
}

.preview-grid span {
  margin-top: 5px;
}

.price-card {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid rgba(242, 120, 22, 0.42);
  border-radius: 8px;
  background: rgba(242, 120, 22, 0.14);
}

.executive-summary,
.next-step-panel {
  border-color: rgba(242, 120, 22, 0.34);
  background: rgba(242, 120, 22, 0.11);
}

.executive-summary .preview-grid > div {
  min-height: 138px;
}

.price-card span,
.price-card strong {
  display: block;
}

.price-card strong {
  color: #fffaf2;
  font-size: 34px;
  line-height: 1.05;
}

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

.payment-item {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.075);
}

.payment-item span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--teal);
  font-weight: 700;
}

.payment-item strong,
.payment-item small {
  display: block;
}

.payment-item small {
  color: #d9d3ca;
  line-height: 1.35;
}

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

.metric {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(251, 252, 253, 0.6);
  backdrop-filter: blur(10px);
}

.metric strong,
.metric span {
  display: block;
}

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

.metric span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.candidate-row {
  grid-template-columns: 1.1fr 0.8fr 1.1fr 0.75fr;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(251, 252, 253, 0.6);
  backdrop-filter: blur(10px);
}

.candidate-row + .candidate-row,
.report-row + .report-row,
.memory-row + .memory-row {
  margin-top: 10px;
}

.score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: #fff;
  background: var(--teal);
  font-weight: 700;
}

.status-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.status {
  padding: 4px 7px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.confirmed {
  background: var(--green);
}

.likely {
  background: var(--gold);
}

.unknown {
  background: #78838f;
}

.mismatch {
  background: var(--red);
}

.explain {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.override-box {
  display: none;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #d6c28f;
  border-radius: 8px;
  background: rgba(255, 248, 229, 0.72);
  backdrop-filter: blur(10px);
}

.override-box.visible {
  display: block;
}

.report-row,
.memory-row {
  grid-template-columns: 1.1fr 1.6fr auto;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(251, 252, 253, 0.6);
  backdrop-filter: blur(10px);
}

.audio-guide {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(16px);
}

.audio-guide strong {
  display: block;
}

.audio-guide audio {
  width: 100%;
}

.report-row strong,
.memory-row strong {
  display: block;
}

.report-row span,
.memory-row span {
  color: var(--muted);
  line-height: 1.4;
}

.tag {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 999px;
  background: #e8f2f0;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
}

.upload-card {
  display: grid;
  gap: 10px;
  align-items: center;
  justify-items: start;
  padding: 18px;
  border: 1px dashed rgba(21, 59, 84, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.44);
}

.upload-card span,
.fact span,
.insight span,
.approval span,
.weight span,
.comparison span {
  color: var(--muted);
}

.upload-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  font-size: 24px;
  font-weight: 700;
}

.fact-grid,
.insight-list,
.criteria-board,
.timeline,
.blueprint-workspace {
  display: grid;
  gap: 12px;
}

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

.fact,
.insight,
.timeline-item,
.criteria-column,
.criterion,
.weight,
.approval,
.comparison > div {
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(12px);
}

.fact,
.insight,
.criteria-column,
.weight,
.approval,
.comparison > div {
  padding: 14px;
}

.fact span,
.fact strong,
.insight strong,
.insight span,
.weight span,
.weight strong,
.approval strong,
.approval span {
  display: block;
}

.fact strong,
.insight span,
.approval span {
  margin-top: 5px;
  line-height: 1.4;
}

.timeline-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 14px;
}

.timeline-item > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--teal);
  font-weight: 700;
}

.timeline-item p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

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

.criterion {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
  padding: 10px;
  margin-top: 8px;
}

.blueprint-workspace {
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
}

label {
  display: block;
  margin: 12px 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.weight {
  margin-bottom: 10px;
}

.weight strong {
  float: right;
  margin-top: -18px;
}

.approval {
  border-color: rgba(177, 132, 61, 0.36);
  background: rgba(255, 248, 229, 0.56);
}

.approval.approved {
  border-color: rgba(38, 114, 81, 0.36);
  background: rgba(232, 242, 240, 0.62);
}

.data-table {
  display: grid;
  gap: 8px;
}

.data-header,
.data-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.3fr 0.8fr;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 8px;
}

.data-header {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.58);
  font-weight: 700;
}

.data-row {
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.44);
}

.comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.comparison strong,
.comparison span {
  display: block;
}

.comparison p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

@media (max-width: 1040px) {
  .app-shell {
    grid-template-columns: 1fr;
    max-width: 100vw;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    gap: 12px;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .brand {
    padding: 0;
  }

  .brand-logo {
    width: 98px;
    min-width: 98px;
    height: 38px;
    padding: 6px 8px;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand span {
    font-size: 12px;
  }

  .demo-nav {
    display: none;
  }

  .mobile-stepper {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 8px;
    width: 100%;
  }

  .mobile-stepper select,
  .stepper-button {
    min-width: 0;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(14px);
  }

  .mobile-stepper select {
    width: 100%;
    padding: 0 10px;
    appearance: auto;
  }

  .mobile-stepper option {
    color: #11100f;
  }

  .stepper-button {
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #f27816, #ff9a34);
    font-size: 24px;
    line-height: 1;
  }

  .sidebar-note {
    display: none;
  }

  .workspace {
    scroll-margin-top: 142px;
    padding-top: 18px;
    width: 100%;
    max-width: 100vw;
  }

  .hero-panel,
  .grid-2,
  .filters,
  .metric-row,
  .company-map,
  .criteria-board,
  .blueprint-workspace,
  .fact-grid {
    grid-template-columns: 1fr;
  }

  .data-header {
    display: none;
  }

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

  .preview-grid {
    grid-template-columns: 1fr;
  }

  .payment-grid {
    grid-template-columns: 1fr;
  }

  .data-row span {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 700px) {
  .sidebar {
    padding: 10px;
  }

  .brand {
    gap: 10px;
  }

  .brand-logo {
    width: 84px;
    min-width: 84px;
    height: 34px;
    padding: 5px 7px;
  }

  .workspace {
    padding: 14px;
    scroll-margin-top: 126px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: row;
    gap: 10px;
    margin-bottom: 14px;
  }

  h1 {
    font-size: 22px;
  }

  .top-actions {
    flex-shrink: 0;
    gap: 6px;
  }

  .icon-button {
    width: 36px;
    height: 36px;
  }

  .primary-action {
    padding: 9px 11px;
    font-size: 13px;
  }

  .hero-panel,
  .panel,
  .output-panel {
    padding: 14px;
  }

  .hero-panel {
    gap: 14px;
  }

  .stage-visual {
    min-height: 156px;
  }

  .stage-card {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  textarea {
    min-height: 132px;
  }

  .demo-nav,
  .candidate-row,
  .report-row,
  .memory-row,
  .data-header,
  .data-row,
  .comparison {
    grid-template-columns: 1fr;
  }

  .candidate-row,
  .report-row,
  .memory-row {
    width: 100%;
    overflow-wrap: anywhere;
  }

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

  .audio-guide audio {
    max-width: 100%;
  }
}

/* Contrast pass: dark glass surfaces with clear Luce-brand highlights. */
.hero-panel,
.panel,
.output-panel {
  color: #f8f7f4;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(10, 10, 10, 0.58);
}

.hero-panel p,
.muted,
.step span,
.blueprint-section ul,
.company span,
.metric span,
.explain,
.report-row span,
.memory-row span,
.upload-card span,
.fact span,
.insight span,
.approval span,
.weight span,
.comparison span,
.timeline-item p,
label,
.comparison p {
  color: #d9d3ca;
}

.panel h2,
.output-panel h2,
.fact strong,
.insight strong,
.criteria-column h3,
.criterion strong,
.metric strong,
.company strong,
.candidate-row strong,
.report-row strong,
.memory-row strong,
.weight strong,
.approval strong,
.data-row span,
.comparison strong {
  color: #fffaf2;
}

.upload-card,
.fact,
.insight,
.timeline-item,
.criteria-column,
.criterion,
.weight,
.approval,
.comparison > div,
.blueprint-section,
.company-column,
.company,
.metric,
.candidate-row,
.report-row,
.memory-row,
.data-row,
.audio-guide,
.override-box {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.075);
}

.blueprint-section,
.criteria-column,
.metric,
.company-column,
.candidate-row,
.report-row,
.memory-row,
.data-row {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.blueprint-section {
  border-left-color: #f27816;
}

.data-header {
  color: #ffb066;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(242, 120, 22, 0.14);
}

.approval,
.approval.approved,
.override-box {
  border-color: rgba(242, 120, 22, 0.42);
  background: rgba(242, 120, 22, 0.13);
}

.tag {
  color: #ffd2aa;
  background: rgba(242, 120, 22, 0.22);
}

.status {
  color: #fff;
}

textarea,
input,
.mobile-stepper select,
.icon-button,
.secondary-action,
.small-action {
  color: #f8f7f4;
  background: rgba(255, 255, 255, 0.10);
}

textarea::selection,
input::selection {
  background: rgba(242, 120, 22, 0.42);
}
