:root {
  --bg: #020806;
  --bg-2: #07130f;
  --panel: #081a14;
  --panel-2: #0d211a;
  --cream: #f2efe8;
  --cream-2: #ded9cf;
  --ink: #09130f;
  --muted: #a8aea7;
  --line: rgba(242, 239, 232, 0.14);
  --line-dark: rgba(9, 19, 15, 0.14);
  --sage: #509068;
  --accent: #306048;
  --accent-dark: #184030;
  --danger: #9d493d;
  --warning: #b98541;
  --radius: 8px;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  --serif: "GT Sectra";
  --mono: "GT Flexa Mono";
  --sans: "GT Sectra";
}

@font-face {
  font-family: "GT Sectra";
  src: url("assets/fonts/GT-Sectra-Display-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "GT Sectra";
  src: url("assets/fonts/GT-Sectra-Display-Regular-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "GT Sectra";
  src: url("assets/fonts/GT-Sectra-Display-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "GT Flexa Mono";
  src: url("assets/fonts/GT-Flexa-Mono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "GT Flexa Mono";
  src: url("assets/fonts/GT-Flexa-Mono-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 136px;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--cream);
  background:
    linear-gradient(90deg, rgba(242, 239, 232, 0.018) 1px, transparent 1px),
    linear-gradient(rgba(242, 239, 232, 0.014) 1px, transparent 1px),
    radial-gradient(circle at 18% 0%, rgba(80, 144, 104, 0.12), transparent 34rem),
    linear-gradient(135deg, #081710, var(--bg) 58%, #000302);
  background-size: 80px 80px, 80px 80px, auto, auto;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.42;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
  font-family: var(--mono);
}

button {
  border: 0;
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

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

.page-anchor {
  position: fixed;
  inset: 0 auto auto 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

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

p,
span,
strong,
b,
small,
button,
label,
h1,
h2,
h3 {
  overflow-wrap: break-word;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px clamp(14px, 2.4vw, 34px);
  border-bottom: 1px solid var(--line);
  background: rgba(0, 8, 6, 0.97);
  backdrop-filter: blur(16px);
}

.brand {
  display: block;
  min-width: 230px;
  width: clamp(230px, 19vw, 310px);
  height: 108px;
  overflow: hidden;
}

.brand-lockup {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.step-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.step-nav::-webkit-scrollbar {
  display: none;
}

.step-pill,
.ghost-button,
.language-button,
.primary-button,
.mode-button,
.option-row,
.vehicle-chip,
.module-tab,
.path-node,
.module-chip-row button,
.market-filter-row button,
.watchlist button,
.mini-module-grid button,
.preview-window-bar button,
.preview-open-link {
  border-radius: var(--radius);
}

.step-pill {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  color: rgba(242, 239, 232, 0.72);
  background: rgba(242, 239, 232, 0.035);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
}

.step-pill.active {
  color: var(--ink);
  background: var(--cream);
  border-color: var(--cream);
  box-shadow: 0 3px 0 var(--accent-dark);
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.language-switcher {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.language-button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  color: rgba(242, 239, 232, 0.72);
  background: rgba(242, 239, 232, 0.035);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: none;
}

.language-button.active,
.language-button:hover {
  color: var(--ink);
  background: var(--cream);
  border-color: var(--cream);
  box-shadow: 0 3px 0 var(--accent-dark);
}

.mobile-language-switcher {
  display: none;
}

.mobile-language-button {
  display: none;
}

@media (min-width: 621px) {
  .mobile-language-switcher,
  .mobile-language-button {
    display: none !important;
  }
}

.ghost-button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  color: var(--cream);
  background: rgba(242, 239, 232, 0.035);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.decision-app {
  width: min(100% - 28px, 1520px);
  margin: 18px auto 26px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 320px;
  grid-template-areas:
    "welcome welcome welcome"
    "visual content panel";
  gap: 16px;
  align-items: start;
}

.welcome-henk-section {
  grid-area: welcome;
  scroll-margin-top: 136px;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(18px, 3vw, 42px);
  align-items: end;
  padding: clamp(22px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(115deg, rgba(8, 26, 20, 0.96), rgba(8, 26, 20, 0.74)),
    radial-gradient(circle at 86% 18%, rgba(201, 150, 61, 0.18), transparent 34%);
  box-shadow: var(--shadow);
}

.welcome-henk-copy {
  display: grid;
  gap: 12px;
}

.welcome-henk-copy span,
.welcome-henk-metrics span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.welcome-henk-copy h1 {
  max-width: 980px;
  color: #fffdf8;
  font-family: var(--serif);
  font-size: clamp(44px, 7vw, 92px);
  font-weight: 400;
  line-height: 0.94;
}

.welcome-henk-copy p {
  max-width: 780px;
  color: rgba(242, 239, 232, 0.78);
  font-size: clamp(17px, 1.6vw, 23px);
  line-height: 1.38;
}

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

.welcome-henk-metrics article {
  min-height: 116px;
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(242, 239, 232, 0.16);
  border-radius: var(--radius);
  background: rgba(242, 239, 232, 0.045);
}

.welcome-henk-metrics strong {
  color: var(--cream);
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 400;
  line-height: 0.9;
}

.visual-stage,
.control-panel,
.flow-section {
  min-width: 0;
}

.visual-stage,
.control-panel,
.flow-section,
.research-footer {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 26, 20, 0.9);
  box-shadow: var(--shadow);
}

.visual-stage {
  grid-area: visual;
  overflow: hidden;
  display: grid;
  gap: 14px;
}

.image-stack {
  position: relative;
  height: 250px;
  background: #020807;
}

.image-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
}

.image-stack.changing img {
  opacity: 0.55;
}

.image-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(2, 8, 7, 0.72));
}

.stage-overlay {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px;
  gap: 14px;
  align-items: center;
  padding: 0 18px;
}

.stage-title p,
.flow-copy span,
.section-label span,
.module-head span,
.metric-row span,
.preview-stage p,
.preview-scan-card span {
  color: rgba(242, 239, 232, 0.58);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.stage-title h1 {
  margin-top: 6px;
  color: #fffdf8;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
}

.score-ring,
.score-orbit {
  --score: 92;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--bg) 0 56%, transparent 57%),
    conic-gradient(var(--sage) calc(var(--score) * 1%), rgba(242, 239, 232, 0.13) 0);
}

.score-ring {
  width: 74px;
}

.score-ring strong,
.score-orbit strong {
  color: #fffdf8;
  font-family: var(--mono);
  font-size: 22px;
  line-height: 1;
}

.score-ring span,
.score-orbit span {
  margin-top: -12px;
  color: rgba(242, 239, 232, 0.54);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.score-summary {
  margin: 0 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: rgba(242, 239, 232, 0.82);
  background: rgba(0, 3, 2, 0.3);
  font-size: 14px;
  line-height: 1.45;
}

.vehicle-switcher {
  display: flex;
  gap: 10px;
  padding: 0 18px 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

.vehicle-chip {
  flex: 0 0 164px;
  min-height: 62px;
  padding: 10px;
  border: 1px solid var(--line);
  color: rgba(242, 239, 232, 0.72);
  background: rgba(242, 239, 232, 0.035);
  text-align: left;
}

.vehicle-chip span,
.vehicle-chip small {
  display: block;
}

.vehicle-chip span {
  font-family: var(--mono);
  font-weight: 700;
}

.vehicle-chip small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.vehicle-chip.active {
  color: var(--ink);
  background: var(--cream);
}

.visual-stage .module-shortcuts {
  margin: 0 18px 18px;
}

.control-panel {
  grid-area: panel;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.panel-block {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(242, 239, 232, 0.028);
}

.section-label {
  display: grid;
  gap: 4px;
}

.section-label strong {
  color: #fffdf8;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.05;
}

.mode-grid,
.mini-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mode-button,
.mini-module-grid button {
  min-height: 42px;
  padding: 9px;
  border: 1px solid var(--line);
  color: rgba(242, 239, 232, 0.72);
  background: rgba(242, 239, 232, 0.035);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.mini-module-grid [data-module="file"] {
  grid-column: 1 / -1;
}

.mode-button.active,
.mini-module-grid button:hover {
  color: var(--cream);
  background: var(--accent);
}

.concierge-chat-button {
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(242, 239, 232, 0.32);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--cream);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 3px 0 rgba(70, 104, 82, 0.72);
}

.concierge-chat-button:hover {
  transform: translateY(1px);
  box-shadow: 0 2px 0 rgba(70, 104, 82, 0.72);
}

.option-stack {
  display: grid;
  gap: 8px;
}

.option-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  color: rgba(242, 239, 232, 0.76);
  background: rgba(242, 239, 232, 0.035);
  text-align: left;
}

.option-row strong {
  font-family: var(--mono);
  font-size: 12px;
}

.option-row.active {
  color: var(--ink);
  background: var(--cream);
}

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

.signal-grid span {
  min-height: 58px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(2, 8, 7, 0.18);
  font-size: 12px;
}

.signal-grid b {
  display: block;
  margin-bottom: 4px;
  color: #fffdf8;
  font-family: var(--mono);
  font-size: 13px;
}

.membership-current-line {
  margin: 2px 0 12px;
  color: var(--muted);
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.35;
}

.membership-current-line b {
  color: #fffdf8;
  font-family: var(--mono);
  font-size: 0.95em;
}

.membership-gap-label {
  margin: 0 0 8px;
  color: rgba(242, 239, 232, 0.56);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.membership-teaser-list {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.membership-teaser-list li {
  position: relative;
  min-height: 36px;
  padding: 9px 10px 9px 26px;
  border: 1px solid rgba(92, 135, 105, 0.5);
  border-radius: 8px;
  color: rgba(242, 239, 232, 0.82);
  background: rgba(92, 135, 105, 0.12);
  font-size: clamp(12px, 0.86vw, 14px);
  line-height: 1.28;
}

.membership-teaser-list li::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 16px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

.category-panel .primary-button {
  width: 100%;
}

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

.membership-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 8, 7, 0.72);
  backdrop-filter: blur(8px);
}

.membership-account {
  position: relative;
  width: min(100%, 1240px);
  max-height: min(92vh, 920px);
  overflow: auto;
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #07130f;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.membership-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--cream);
  font-size: 24px;
  line-height: 1;
}

.membership-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  margin-bottom: 20px;
}

.membership-head span,
.membership-login span,
.category-card span {
  color: rgba(242, 239, 232, 0.48);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.membership-head h2 {
  margin: 5px 0 8px;
  color: #fffdf8;
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 66px);
  font-weight: 400;
  line-height: 0.95;
}

.membership-head p {
  max-width: 660px;
  margin: 0;
  color: rgba(242, 239, 232, 0.72);
  font-size: 15px;
  line-height: 1.45;
}

.membership-login {
  display: grid;
  gap: 8px;
  min-width: 220px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(242, 239, 232, 0.035);
}

.membership-login strong {
  color: #fffdf8;
  font-family: var(--mono);
  font-size: 13px;
}

.membership-login a {
  display: inline-grid;
  place-items: center;
  min-height: 38px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
}

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

.category-card {
  display: grid;
  gap: 9px;
  min-height: 330px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(242, 239, 232, 0.035);
  color: rgba(242, 239, 232, 0.72);
}

.category-card.current {
  color: var(--ink);
  background: var(--cream);
}

.category-card.recommended {
  border-color: rgba(108, 166, 128, 0.78);
  box-shadow: inset 0 0 0 2px rgba(108, 166, 128, 0.28);
}

.category-card h3 {
  margin: 0;
  color: #fffdf8;
  font-family: var(--serif);
  font-size: clamp(25px, 2.3vw, 34px);
  font-weight: 400;
  line-height: 1;
}

.category-card.current h3,
.category-card.current p,
.category-card.current li {
  color: var(--ink);
}

.category-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}

.category-card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-card li {
  padding-left: 14px;
  color: rgba(242, 239, 232, 0.7);
  font-size: 11px;
  line-height: 1.28;
}

.category-card li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 8px 1px -14px;
  border-radius: 50%;
  background: var(--accent);
}

.category-card li.highlight {
  color: #fffdf8;
  font-weight: 800;
}

.category-card.current li.highlight {
  color: var(--accent-dark);
}

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

.membership-fit span {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(242, 239, 232, 0.035);
  color: rgba(242, 239, 232, 0.72);
  font-size: 13px;
  line-height: 1.35;
}

.membership-fit b {
  display: block;
  margin-bottom: 4px;
  color: #fffdf8;
  font-family: var(--mono);
  font-size: 12px;
}

.primary-button {
  display: inline-grid;
  place-items: center;
  min-height: 48px;
  padding: 0 16px;
  color: var(--cream);
  background: var(--accent);
  font-family: var(--mono);
  font-weight: 700;
  box-shadow: 0 3px 0 var(--accent-dark);
}

.flow-section {
  grid-area: content;
  scroll-margin-top: 136px;
  display: none;
  padding: clamp(18px, 3vw, 32px);
  scroll-margin-top: 140px;
}

.flow-section.active-section {
  display: grid;
  gap: 18px;
}

.flow-copy {
  display: grid;
  gap: 8px;
}

.cockpit-lockup {
  display: block;
  width: min(620px, calc(100vw - 80px));
  max-width: 100%;
  max-height: 96px;
  object-fit: contain;
  object-position: left center;
}

.flow-copy h2 {
  color: #fffdf8;
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 74px);
  font-weight: 400;
  line-height: 0.95;
}

.metric-row,
.module-tabs,
.module-kpi-grid,
.module-step-list,
.decision-path,
.permission-grid {
  display: grid;
  gap: 12px;
}

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

.metric-row article,
.module-detail,
.module-brief,
.module-kpi-grid span,
.module-step-list span,
.score-panel,
.factor-row,
.slider-board label {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
}

.metric-row article {
  min-height: 128px;
  padding: 18px;
}

.metric-row span {
  color: #68706a;
}

.metric-row strong {
  display: block;
  margin-top: 16px;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 400;
  line-height: 1;
}

#deadlineValue {
  white-space: nowrap;
  font-size: clamp(30px, 3.4vw, 44px);
}

.garage-console {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(7, 24, 18, 0.78);
}

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

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

.garage-head span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.garage-head h3 {
  margin-top: 4px;
  color: #fffdf8;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 400;
  line-height: 1;
}

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

.garage-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(238, 236, 228, 0.06);
}

.garage-card.active {
  border-color: rgba(238, 236, 228, 0.72);
  background: rgba(238, 236, 228, 0.12);
}

.garage-card-main,
.garage-compare-button {
  width: 100%;
  text-align: left;
}

.garage-card-main {
  display: grid;
  gap: 7px;
  min-height: 104px;
  padding: 2px;
  color: #fffdf8;
  background: transparent;
}

.garage-card-main span,
.garage-card-main small {
  color: var(--muted);
}

.garage-card-main span {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.garage-card-main strong {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 400;
  line-height: 0.96;
}

.garage-card-main small {
  font-size: 13px;
  line-height: 1.35;
}

.garage-compare-button {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #fffdf8;
  background: rgba(2, 8, 7, 0.22);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
}

.garage-compare-button:hover {
  background: rgba(238, 236, 228, 0.12);
}

.compare-panel {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(242, 239, 232, 0.18);
  border-radius: var(--radius);
  background: rgba(2, 8, 6, 0.28);
}

.compare-panel[hidden] {
  display: none;
}

.compare-panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.compare-panel-head span,
.compare-summary span,
.compare-table th {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.compare-panel-head h4 {
  margin: 4px 0 6px;
  color: #fffdf8;
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 400;
  line-height: 1;
}

.compare-panel-head p {
  color: rgba(242, 239, 232, 0.74);
  font-size: 14px;
  line-height: 1.4;
}

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

.compare-summary article {
  min-height: 86px;
  padding: 12px;
  border: 1px solid rgba(242, 239, 232, 0.14);
  border-radius: var(--radius);
  background: rgba(242, 239, 232, 0.06);
}

.compare-summary strong {
  display: block;
  margin-top: 6px;
  color: #fffdf8;
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 400;
  line-height: 1;
}

.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(242, 239, 232, 0.12);
  border-radius: var(--radius);
}

.compare-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(242, 239, 232, 0.1);
  color: rgba(242, 239, 232, 0.82);
  text-align: left;
  vertical-align: top;
}

.compare-table tbody tr.selected {
  background: rgba(242, 239, 232, 0.08);
}

.compare-table td strong {
  display: block;
  color: #fffdf8;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.1;
}

.compare-table td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.priority-console {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 16px;
}

.score-board,
.factor-list,
.slider-board {
  display: grid;
  gap: 12px;
}

.score-panel {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
}

.score-orbit {
  width: 132px;
}

.score-orbit strong {
  font-size: 38px;
}

.score-text span,
.module-brief strong {
  color: #68706a;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.score-text h3 {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 400;
  line-height: 1;
}

.score-text p,
.module-detail > p,
.module-brief span {
  margin-top: 10px;
  color: #4d554f;
  line-height: 1.45;
}

.score-text small {
  display: inline-block;
  margin-top: 12px;
  padding: 7px 9px;
  border-radius: var(--radius);
  background: var(--cream-2);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}

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

.score-formula-list article {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(11, 48, 38, 0.12);
  border-radius: var(--radius);
  background: rgba(11, 48, 38, 0.045);
}

.score-formula-list span,
.score-formula-list small {
  color: #68706a;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.score-formula-list strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
}

.factor-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 34px;
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.factor-row strong {
  font-family: var(--mono);
  font-size: 13px;
}

.factor-row span {
  display: block;
  margin-top: 4px;
  color: #59625b;
  font-size: 12px;
  line-height: 1.35;
}

.factor-meter {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--cream-2);
}

.factor-meter i {
  display: block;
  width: var(--value);
  height: 100%;
  background: linear-gradient(90deg, var(--sage), var(--accent-dark));
}

.factor-row > b {
  font-family: var(--mono);
  text-align: right;
}

.slider-board label {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.slider-board label span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #59625b;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.slider-board input {
  width: 100%;
  accent-color: var(--accent-dark);
}

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

.path-node {
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  color: rgba(242, 239, 232, 0.76);
  background: rgba(242, 239, 232, 0.035);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  text-align: left;
}

.path-node.done {
  color: var(--cream);
  background: var(--sage);
}

.path-node.active {
  color: var(--ink);
  background: var(--cream);
  box-shadow: inset 0 -3px 0 var(--accent-dark);
}

.signature-console {
  display: grid;
  gap: 14px;
}

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

.permission-grid label {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 46px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(242, 239, 232, 0.035);
  color: rgba(242, 239, 232, 0.8);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.kar-club-preview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #020807;
}

.preview-window-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #111;
}

.preview-window-bar span {
  color: #fffdf8;
  font-family: var(--serif);
  font-size: 26px;
}

.preview-window-bar button,
.preview-open-link {
  display: inline-grid;
  place-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  color: var(--cream);
  background: rgba(242, 239, 232, 0.055);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.signature-iframe {
  display: block;
  width: 100%;
  height: min(760px, 72vh);
  min-height: 560px;
  border: 0;
  background: #000;
}

.preview-shell {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: 420px;
}

.preview-sidebar {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  padding: 22px;
  color: #202020;
  background: #f5f5f3;
}

.preview-logo-stack,
.preview-profile,
.preview-kicker {
  display: flex;
  gap: 10px;
  align-items: center;
}

.preview-logo-stack img {
  width: min(190px, 100%);
  height: auto;
}

.preview-shield {
  display: grid;
  place-items: center;
  width: 36px;
  height: 40px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-family: var(--serif);
  font-size: 24px;
}

.preview-shield.small {
  width: 30px;
  height: 34px;
  font-size: 18px;
}

.preview-sidebar nav {
  display: grid;
  gap: 8px;
  align-content: start;
}

.preview-sidebar nav span {
  padding: 10px;
  border-radius: var(--radius);
  color: #7d7d7d;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}

.preview-sidebar nav span.active {
  color: #111;
  background: var(--sage);
}

.preview-profile b {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  background: #202020;
}

.preview-stage {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(24px, 4vw, 54px);
  color: #fffdf8;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    #000;
  background-size: 52px 52px;
}

.preview-stage h3 {
  font-family: var(--serif);
  font-size: clamp(38px, 5.5vw, 72px);
  font-weight: 400;
  line-height: 0.92;
}

.preview-stage em {
  color: var(--sage);
  font-style: normal;
}

.preview-stage > strong {
  color: rgba(242, 239, 232, 0.72);
  font-family: var(--mono);
  line-height: 1.35;
}

.preview-scan-card {
  width: min(360px, 100%);
  padding: 14px;
  border: 1px solid rgba(184, 215, 228, 0.36);
  border-radius: var(--radius);
  background: rgba(242, 239, 232, 0.12);
}

.preview-scan-card b {
  display: block;
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
}

.preview-scan-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--mono);
}

.market-console {
  display: grid;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
}

.market-hero,
.market-model-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
}

.market-main-card,
.market-signal-card,
.market-kpi-grid article,
.predictive-card,
.driver-card,
.watchlist-card {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
}

.market-main-card,
.predictive-card,
.driver-card,
.watchlist-card {
  min-width: 0;
  overflow: hidden;
  padding: clamp(16px, 2.2vw, 24px);
}

.market-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.market-card-top span,
.market-kpi-grid span,
.market-signal-card span,
.model-row span,
.watchlist span {
  color: #68706a;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.market-card-top strong {
  color: #59625b;
  font-family: var(--mono);
  font-size: 11px;
  text-align: right;
}

.market-main-card h3 {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: clamp(46px, 5.8vw, 82px);
  font-weight: 400;
  line-height: 0.9;
  overflow-wrap: normal;
  word-break: keep-all;
}

.market-main-card p {
  max-width: 760px;
  margin-top: 14px;
  color: #4d554f;
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.4;
}

.market-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.market-filter-row button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-dark);
  color: var(--ink);
  background: #fffdf8;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}

.market-filter-row button.active {
  color: var(--cream);
  background: var(--accent);
  border-color: var(--accent);
}

.market-signal-card {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 210px;
  padding: 22px;
  background: var(--accent);
  color: var(--cream);
}

.market-signal-card span,
.market-signal-card small {
  color: rgba(242, 239, 232, 0.72);
  font-family: var(--mono);
  font-weight: 700;
  text-transform: uppercase;
}

.market-signal-card strong {
  font-family: var(--serif);
  font-size: clamp(42px, 5vw, 66px);
  font-weight: 400;
  line-height: 0.9;
}

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

.market-kpi-grid article {
  min-height: 92px;
  padding: 14px;
}

.market-kpi-grid strong {
  display: block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1;
}

.model-bars,
.driver-grid,
.watchlist {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.model-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 34px;
  gap: 12px;
  align-items: center;
}

.model-row i {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--cream-2);
}

.model-row i::before {
  content: "";
  display: block;
  width: var(--value);
  height: 100%;
  background: linear-gradient(90deg, var(--sage), var(--accent-dark));
}

.model-row b {
  font-family: var(--mono);
  font-size: 12px;
  text-align: right;
}

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

.driver-grid span {
  min-height: 82px;
  padding: 12px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: #fffdf8;
}

.driver-grid b,
.driver-grid em {
  display: block;
  color: #68706a;
  font-family: var(--mono);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
}

.driver-grid strong {
  display: block;
  margin: 8px 0 5px;
  font-family: var(--mono);
  font-size: 17px;
}

.watchlist button {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  min-height: 58px;
  padding: 12px;
  border: 1px solid var(--line-dark);
  color: var(--ink);
  background: #fffdf8;
  text-align: left;
}

.watchlist strong,
.watchlist b {
  font-family: var(--mono);
  font-size: 12px;
}

.watchlist b {
  justify-self: start;
  color: var(--accent);
}

.market-desk-shell {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.market-desk-shell .market-main-card,
.market-desk-shell .predictive-card,
.market-desk-shell .driver-card,
.market-desk-shell .watchlist-card,
.market-desk-shell .orderbook-card,
.market-desk-shell .market-agent-card,
.valuation-terminal,
.condition-band-grid article,
.market-value-card,
.market-pulse-card {
  border: 1px solid var(--line);
  background: rgba(2, 8, 6, 0.48);
  color: var(--cream);
}

.market-desk-lead {
  background:
    linear-gradient(135deg, rgba(80, 144, 104, 0.15), transparent 60%),
    rgba(2, 8, 6, 0.52) !important;
}

.market-desk-shell .market-card-top span,
.market-desk-shell .market-kpi-grid span,
.market-value-card span,
.market-pulse-card span,
.condition-band-grid span,
.orderbook-row span,
.valuation-legend span {
  color: rgba(242, 239, 232, 0.58);
}

.market-desk-shell .market-card-top strong,
.market-desk-shell .market-main-card p,
.market-desk-shell .watchlist strong,
.market-desk-shell .watchlist b,
.market-value-card small,
.market-pulse-card small,
.condition-band-grid small,
.market-agent-card p {
  color: rgba(242, 239, 232, 0.72);
}

.market-control-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.market-desk-shell .market-filter-row button {
  border-color: rgba(242, 239, 232, 0.13);
  color: rgba(242, 239, 232, 0.72);
  background: rgba(242, 239, 232, 0.035);
}

.market-desk-shell .market-filter-row button.active {
  color: var(--ink);
  background: var(--cream);
  border-color: var(--cream);
}

.market-terminal-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.82fr;
  gap: 12px;
}

.market-value-card,
.market-pulse-card {
  display: grid;
  gap: 9px;
  min-height: 142px;
  padding: 16px;
  border-radius: var(--radius);
}

.market-value-card strong,
.market-pulse-card strong,
.condition-band-grid strong {
  color: #fffdf8;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.92;
}

.market-value-card strong {
  font-size: clamp(38px, 4.5vw, 66px);
}

.market-value-card.compact strong,
.market-pulse-card strong {
  font-size: clamp(42px, 5vw, 72px);
}

.market-pulse-card {
  grid-template-columns: minmax(0, 1fr) 86px;
  align-items: center;
}

.market-pulse-card span,
.market-pulse-card small {
  grid-column: 1 / -1;
}

.market-pulse-card i {
  width: 86px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--bg) 0 56%, transparent 57%),
    conic-gradient(var(--sage) calc(var(--pulse) * 1%), rgba(242, 239, 232, 0.13) 0);
}

.valuation-terminal {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius);
  min-width: 0;
}

.valuation-chart-shell {
  min-height: 390px;
  overflow: hidden;
  border: 1px solid rgba(242, 239, 232, 0.08);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(242, 239, 232, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 239, 232, 0.04) 1px, transparent 1px),
    rgba(1, 5, 4, 0.76);
  background-size: 100% 84px, 150px 100%;
}

.valuation-chart {
  width: 100%;
  min-height: 390px;
}

.valuation-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.valuation-legend span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.valuation-legend i {
  width: 24px;
  height: 3px;
  border-radius: 999px;
}

.legend-concours {
  background: #c9963d;
}

.legend-excellent {
  background: var(--cream);
}

.legend-good {
  background: #5798d9;
}

.legend-fair {
  background: rgba(242, 239, 232, 0.42);
}

.legend-current {
  width: 10px !important;
  height: 10px !important;
  border-radius: 50%;
  background: var(--sage);
}

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

.condition-band-grid article {
  display: grid;
  gap: 8px;
  min-height: 128px;
  padding: 14px;
  border-radius: var(--radius);
}

.condition-band-grid article.active {
  border-color: rgba(242, 239, 232, 0.62);
  box-shadow: inset 0 0 0 1px rgba(242, 239, 232, 0.26);
}

.condition-band-grid strong {
  font-size: clamp(28px, 3vw, 44px);
}

.market-intelligence-row {
  display: grid;
  grid-template-columns: 0.92fr minmax(0, 1.08fr);
  gap: 14px;
}

.orderbook-card,
.market-agent-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  overflow: hidden;
  padding: clamp(16px, 2.2vw, 24px);
  border-radius: var(--radius);
}

.orderbook-list {
  display: grid;
  gap: 9px;
}

.orderbook-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 58px;
  gap: 10px;
  align-items: center;
}

.orderbook-row span,
.orderbook-row strong {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.orderbook-row strong {
  color: rgba(242, 239, 232, 0.74);
  text-align: right;
}

.orderbook-row i {
  display: block;
  height: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(242, 239, 232, 0.08);
}

.orderbook-row b {
  display: block;
  width: var(--depth);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--sage));
}

.market-desk-shell .watchlist button {
  border-color: rgba(242, 239, 232, 0.11);
  color: var(--cream);
  background: rgba(242, 239, 232, 0.04);
}

.market-desk-shell .driver-grid span {
  border-color: rgba(242, 239, 232, 0.11);
  background: rgba(242, 239, 232, 0.04);
}

.market-desk-shell .driver-grid strong,
.market-desk-shell .model-row b,
.market-desk-shell .market-kpi-grid strong {
  color: #fffdf8;
}

.market-desk-shell .market-kpi-grid article {
  border-color: rgba(242, 239, 232, 0.18);
  background: rgba(242, 239, 232, 0.045);
  color: var(--cream);
}

.market-desk-shell .driver-grid b,
.market-desk-shell .driver-grid em,
.market-desk-shell .market-kpi-grid span {
  color: rgba(242, 239, 232, 0.84);
}

.market-agent-card p {
  max-width: 920px;
  margin: 0;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.5;
}

.market-source-card,
.score-layer-card {
  display: grid;
  gap: 16px;
  min-width: 0;
  overflow: hidden;
  padding: clamp(16px, 2.2vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(2, 8, 6, 0.48);
  color: var(--cream);
}

.market-source-card > p {
  max-width: 860px;
  margin: 0;
  color: rgba(242, 239, 232, 0.72);
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.45;
}

.source-pipeline-grid,
.score-layer-grid {
  display: grid;
  gap: 12px;
}

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

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

.source-pipeline-grid section,
.score-layer-grid section {
  display: grid;
  gap: 10px;
  min-height: 178px;
  padding: 14px;
  border: 1px solid rgba(242, 239, 232, 0.12);
  border-radius: var(--radius);
  background: rgba(242, 239, 232, 0.04);
}

.source-pipeline-grid section > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}

.source-pipeline-grid span,
.score-layer-grid span {
  color: rgba(242, 239, 232, 0.58);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.source-pipeline-grid strong {
  color: #fffdf8;
  font-family: var(--mono);
  font-size: 11px;
  text-align: right;
  text-transform: uppercase;
}

.source-pipeline-grid p,
.score-layer-grid p {
  margin: 0;
  color: rgba(242, 239, 232, 0.72);
  font-size: 13px;
  line-height: 1.38;
}

.source-pipeline-grid small {
  display: grid;
  gap: 4px;
  color: rgba(242, 239, 232, 0.68);
  font-size: 12px;
  line-height: 1.32;
}

.source-pipeline-grid b,
.score-layer-grid b {
  display: block;
  margin-bottom: 3px;
  color: rgba(242, 239, 232, 0.5);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.score-layer-grid h3 {
  margin: 0;
  color: #fffdf8;
  font-family: var(--serif);
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 400;
  line-height: 0.98;
}

.compact-kpis {
  margin-top: 4px;
}

.compact-kpis strong {
  font-size: clamp(18px, 1.5vw, 24px);
  overflow-wrap: normal;
  word-break: normal;
}

.module-console {
  display: grid;
  gap: 14px;
}

.file-focus-section > .flow-copy,
.file-focus-section .module-tabs {
  display: none;
}

.file-focus-section {
  padding-top: clamp(16px, 2vw, 24px);
}

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

.module-tab {
  min-height: 52px;
  padding: 10px;
  border: 1px solid var(--line);
  color: rgba(242, 239, 232, 0.76);
  background: rgba(242, 239, 232, 0.035);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.module-tab.active {
  color: var(--ink);
  background: var(--cream);
}

.module-detail {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 2.5vw, 28px);
}

.module-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.module-head span {
  color: #68706a;
}

.module-head h3 {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 400;
  line-height: 0.9;
}

.intake-module-head {
  grid-template-columns: minmax(0, 1fr);
}

.intake-module-head h3 {
  white-space: nowrap;
}

.intake-module-head .compact-action {
  justify-self: start;
}

.module-detail > p {
  max-width: 780px;
  font-size: clamp(17px, 1.8vw, 22px);
}

.module-brief {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
}

.module-brief span {
  margin-top: 0;
}

.module-kpi-grid,
.module-step-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.module-kpi-grid span {
  min-height: 78px;
  padding: 14px;
  color: #59625b;
}

.module-kpi-grid b {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 16px;
}

.risk-niedrig b {
  color: #517a5b;
}

.risk-mittel b {
  color: var(--warning);
}

.risk-hoch b {
  color: var(--danger);
}

.module-step-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 12px;
}

.module-step-list b {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--cream);
  background: var(--bg);
  font-family: var(--mono);
}

.intake-workflow,
.intake-grid,
.upload-chip-list,
.review-checklist,
.pdf-output-preview {
  display: grid;
  gap: 12px;
}

.intake-workflow {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.intake-workflow span,
.intake-form-panel,
.intake-upload-panel,
.intake-review-panel,
.intake-pdf-panel {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(9, 19, 15, 0.035);
  color: var(--ink);
}

.intake-workflow span {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 78px;
  padding: 12px;
  min-width: 0;
}

.intake-workflow b,
.review-checklist b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: var(--cream);
  background: var(--accent-dark);
  font-family: var(--mono);
  font-size: 12px;
}

.intake-workflow .ready b {
  background: var(--sage);
}

.intake-workflow strong {
  min-width: 0;
  font-size: clamp(13px, 1.05vw, 16px);
  line-height: 1.18;
  overflow-wrap: break-word;
  hyphens: auto;
}

.intake-grid {
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
  align-items: start;
}

.intake-form-panel,
.intake-upload-panel,
.intake-review-panel,
.intake-pdf-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.intake-panel-head {
  display: grid;
  gap: 6px;
  align-items: start;
  min-width: 0;
}

.intake-panel-head strong {
  max-width: 100%;
  font-family: var(--serif);
  font-size: clamp(24px, 2.45vw, 40px);
  font-weight: 400;
  line-height: 0.98;
  overflow-wrap: break-word;
  hyphens: auto;
}

.intake-panel-head span {
  max-width: 100%;
  color: #68706a;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.intake-form-panel label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.intake-form-panel label span {
  color: #59625b;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.intake-form-panel input,
.intake-form-panel textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 1px solid rgba(9, 19, 15, 0.18);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fffdf8;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
}

.intake-form-panel input {
  min-height: 44px;
  padding: 0 12px;
}

.intake-form-panel textarea {
  min-height: 104px;
  padding: 12px;
  resize: vertical;
}

.upload-dropzone {
  position: relative;
}

.upload-dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-dropzone label {
  display: grid;
  gap: 8px;
  min-height: 176px;
  padding: 18px;
  border: 1px dashed rgba(9, 19, 15, 0.28);
  border-radius: var(--radius);
  background: #fffdf8;
  min-width: 0;
}

.upload-dropzone b {
  align-self: end;
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
}

.upload-dropzone span,
.upload-dropzone small,
.intake-review-panel p,
.intake-pdf-panel p {
  color: #59625b;
  max-width: 100%;
  line-height: 1.25;
  overflow-wrap: break-word;
  hyphens: auto;
}

.upload-dropzone span {
  font-size: clamp(17px, 1.45vw, 24px);
}

.upload-chip-list,
.review-checklist,
.pdf-output-preview {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.upload-chip-list span,
.review-checklist span,
.pdf-output-preview span {
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  padding: 10px;
  border-radius: var(--radius);
  color: #59625b;
  background: #fffdf8;
  line-height: 1.15;
  overflow-wrap: break-word;
  hyphens: auto;
}

.review-checklist span {
  display: flex;
  gap: 9px;
  align-items: center;
}

.module-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.module-chip-row button {
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line-dark);
  color: var(--ink);
  background: #fffdf8;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}

.vehicle-file-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

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

.vehicle-file-scoreboard span {
  display: grid;
  gap: 8px;
  min-height: 136px;
  padding: 14px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
}

.vehicle-file-scoreboard b {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 400;
  line-height: 0.9;
}

.vehicle-file-scoreboard strong {
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.vehicle-file-scoreboard small {
  color: #59625b;
  font-size: 12px;
  line-height: 1.35;
}

.vehicle-file-card,
.pdf-action-panel {
  padding: 14px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
}

.vehicle-file-card > strong,
.pdf-action-panel > strong {
  color: #68706a;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.dossier-overview {
  background:
    linear-gradient(135deg, #fffdf8, #ebe6dc 72%),
    var(--cream);
}

.dossier-overview-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(9, 19, 15, 0.12);
}

.dossier-overview-head strong {
  color: #68706a;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.dossier-overview-head p {
  max-width: 520px;
  margin: 6px 0 0;
  color: #59625b;
  font-size: 14px;
  line-height: 1.35;
}

.dossier-overview-head > span {
  display: inline-grid;
  place-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--radius);
  color: var(--cream);
  background: var(--accent-dark);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.assembly-grid,
.dossier-grid,
.pdf-action-panel div {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

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

.assembly-card {
  display: grid;
  gap: 9px;
  min-height: 184px;
  padding: 12px;
  border: 1px solid rgba(9, 19, 15, 0.12);
  border-radius: var(--radius);
  background: var(--cream-2);
}

.assembly-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.assembly-card-head b {
  font-family: var(--serif);
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 400;
  line-height: 1;
  overflow-wrap: anywhere;
}

.assembly-card-head em {
  justify-self: end;
  max-width: 100%;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(48, 96, 72, 0.08);
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
  text-align: right;
  white-space: normal;
}

.assembly-card small {
  color: #59625b;
  font-size: 12px;
  line-height: 1.32;
}

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

.dossier-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 166px;
  padding: 16px;
  border: 1px solid rgba(9, 19, 15, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.9), rgba(222, 217, 207, 0.68)),
    #fffdf8;
}

.dossier-index {
  --value: 90;
  display: grid;
  place-items: center;
  width: 92px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--cream) 0 55%, transparent 57%),
    conic-gradient(var(--accent) calc(var(--value) * 1%), rgba(9, 19, 15, 0.12) 0);
}

.dossier-index b {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 800;
}

.dossier-card span,
.dossier-card em {
  color: #68706a;
  font-family: var(--mono);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.dossier-card h4 {
  margin: 5px 0 8px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 400;
  line-height: 1;
}

.dossier-card p {
  margin: 0 0 10px;
  color: #59625b;
  font-size: 13px;
  line-height: 1.4;
}

.dossier-card em {
  display: inline-grid;
  justify-self: start;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(48, 96, 72, 0.22);
  border-radius: 999px;
  background: rgba(48, 96, 72, 0.08);
  color: var(--accent-dark);
}

.assembly-barometers {
  display: grid;
  gap: 7px;
}

.assembly-barometers span {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 38px;
  gap: 8px;
  align-items: center;
}

.assembly-barometers strong,
.assembly-barometers b {
  color: #59625b;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.assembly-barometers b {
  color: var(--accent-dark);
  text-align: right;
}

.assembly-barometers i {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(9, 19, 15, 0.12);
}

.assembly-barometers i::before {
  content: "";
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sage), var(--accent-dark));
}

.pdf-action-panel div {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pdf-action-button {
  appearance: none;
  border: 1px solid rgba(9, 19, 15, 0.16);
  cursor: pointer;
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 9px;
  border-radius: var(--radius);
  color: var(--cream);
  background: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

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

.research-footer {
  position: relative;
  width: min(100% - 28px, 1560px);
  margin: 0 auto 22px;
  padding: clamp(22px, 2.8vw, 34px) clamp(24px, 3vw, 38px) 0;
  display: grid;
  grid-template-columns: minmax(300px, 1.2fr) minmax(460px, 1.15fr) minmax(320px, 0.9fr);
  gap: clamp(24px, 4vw, 70px);
  align-items: center;
  background: #010101;
  border-color: rgba(242, 239, 232, 0.12);
}

.research-footer h2 {
  color: rgba(242, 239, 232, 0.78);
  font-family: var(--serif);
  font-size: clamp(24px, 2vw, 34px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.research-footer p {
  margin-top: 12px;
  color: rgba(242, 239, 232, 0.48);
  font-family: var(--mono);
  font-size: clamp(11px, 0.95vw, 14px);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0;
}

.research-footer__partners {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.partner-logo {
  width: 100%;
  max-width: 230px;
  height: auto;
  opacity: 0.62;
}

.gateway-logo {
  box-sizing: border-box;
  max-width: 285px;
  padding: 10px 14px;
  background: rgba(242, 239, 232, 0.96);
  border: 1px solid rgba(242, 239, 232, 0.18);
  border-radius: 8px;
  opacity: 1;
}

.fresenius-mark {
  max-width: 240px;
  filter: grayscale(1) invert(1);
  opacity: 0.48;
}

.research-footer__claim {
  text-align: right;
}

.research-footer__claim p {
  margin: 0;
  color: rgba(242, 239, 232, 0.46);
  font-family: var(--mono);
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 800;
  line-height: 1.5;
}

.research-footer__bottom {
  grid-column: 1 / -1;
  margin: clamp(22px, 2.6vw, 34px) calc(clamp(24px, 3vw, 38px) * -1) 0;
  padding: 13px 24px 15px;
  border-top: 1px solid rgba(242, 239, 232, 0.09);
  color: rgba(242, 239, 232, 0.7);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
}

.footer-top-button {
  position: absolute;
  right: 8px;
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(242, 239, 232, 0.2);
  border-radius: 50%;
  color: rgba(242, 239, 232, 0.9);
  background: #030303;
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 800;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  max-width: min(420px, calc(100vw - 28px));
  padding: 13px 15px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--cream);
  box-shadow: var(--shadow);
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

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

@media (max-width: 1260px) {
  .app-header {
    grid-template-columns: 1fr auto;
  }

  .step-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .decision-app {
    width: min(100% - 24px, 1060px);
    grid-template-columns: minmax(270px, 340px) minmax(0, 1fr);
    grid-template-areas:
      "welcome welcome"
      "visual content"
      "panel content";
  }

  .control-panel {
    grid-area: panel;
    grid-template-columns: 1fr;
  }

  .vehicle-file-scoreboard,
  .assembly-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .priority-console,
  .research-footer {
    grid-template-columns: 1fr;
  }

  .research-footer__claim {
    text-align: left;
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 0;
  }

  .decision-app {
    width: min(100% - 20px, 820px);
    grid-template-columns: 1fr;
    grid-template-areas:
      "welcome"
      "visual"
      "panel"
      "content";
  }

  .welcome-henk-section {
    scroll-margin-top: 0;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .flow-section {
    scroll-margin-top: 0;
  }

  .flow-section {
    order: 3;
  }

  .control-panel {
    order: 2;
    grid-template-columns: 1fr 1fr;
  }

  .visual-stage {
    order: 1;
  }

  .metric-row,
  .garage-list,
  .market-kpi-grid,
  .module-tabs,
  .decision-path,
  .permission-grid,
  .module-kpi-grid,
  .module-step-list,
  .intake-workflow,
  .upload-chip-list,
  .review-checklist,
  .pdf-output-preview,
  .vehicle-file-scoreboard,
  .membership-category-grid,
  .assembly-grid,
  .source-pipeline-grid,
  .score-layer-grid,
  .research-footer__partners {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .priority-console,
  .score-panel,
  .preview-shell,
  .market-hero,
  .market-model-board,
  .market-terminal-grid,
  .market-intelligence-row,
  .module-brief,
  .intake-grid,
  .membership-head,
  .membership-fit,
  .vehicle-file-grid {
    grid-template-columns: 1fr;
  }

  .score-orbit {
    width: 120px;
  }
}

@media (max-width: 1320px) {
  .module-console .intake-workflow,
  .module-console .upload-chip-list,
  .module-console .review-checklist,
  .module-console .pdf-output-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .module-console .intake-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .garage-head {
    display: grid;
    align-items: start;
  }

  .garage-head-actions {
    justify-content: stretch;
  }

  .garage-head-actions .primary-button {
    width: 100%;
  }

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

@media (max-width: 620px) {
  body {
    background-position: 0 0;
  }

  .app-header {
    position: sticky;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px 12px 12px;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }

  .brand {
    min-width: 0;
    width: min(210px, 68vw);
    height: 74px;
  }

  .cockpit-lockup {
    width: min(300px, calc(100vw - 80px));
    max-width: min(300px, calc(100vw - 80px));
  }

  .ghost-button {
    display: none;
  }

  .header-actions {
    display: flex;
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
  }

  .language-button {
    display: none;
  }

  .mobile-language-switcher {
    position: fixed;
    top: 12px;
    right: auto;
    left: min(222px, calc(100dvw - 144px));
    z-index: 1000;
    display: inline-flex;
    gap: 5px;
    align-items: center;
    padding: 3px;
    min-height: 40px;
    border: 1px solid rgba(242, 239, 232, 0.42);
    border-radius: var(--radius);
    background: rgba(3, 13, 12, 0.72);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(16px);
  }

  .mobile-language-button {
    display: grid;
    place-items: center;
    min-width: 40px;
    min-height: 34px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: calc(var(--radius) - 2px);
    color: rgba(242, 239, 232, 0.76);
    background: transparent;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 800;
  }

  .mobile-language-button.active,
  .mobile-language-button:hover {
    color: var(--ink);
    background: var(--cream);
    border-color: var(--cream);
    box-shadow: 0 2px 0 var(--accent-dark);
  }

  .step-nav {
    grid-column: 1 / -1;
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .step-pill {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    min-width: 0;
    min-height: 40px;
    padding: 0 12px;
    font-size: 12px;
  }

  .decision-app {
    width: calc(100% - 16px);
    max-width: calc(100vw - 16px);
    margin-top: 10px;
    gap: 10px;
    overflow: visible;
  }

  .flow-section,
  .control-panel,
  .visual-stage,
  .welcome-henk-section {
    width: 100%;
    max-width: 100%;
  }

  .welcome-henk-section {
    padding: 18px;
  }

  .welcome-henk-metrics {
    grid-template-columns: 1fr;
  }

  .welcome-henk-metrics article {
    min-height: 92px;
  }

  .control-panel,
  .metric-row,
  .market-kpi-grid,
  .market-terminal-grid,
  .condition-band-grid,
  .market-intelligence-row,
  .driver-grid,
  .module-tabs,
  .decision-path,
  .permission-grid,
  .module-kpi-grid,
  .module-step-list,
  .intake-workflow,
  .intake-grid,
  .upload-chip-list,
  .review-checklist,
  .pdf-output-preview,
  .vehicle-file-scoreboard,
  .assembly-grid,
  .dossier-grid,
  .pdf-action-panel div,
  .mode-grid,
  .signal-grid,
  .membership-head,
  .membership-category-grid,
  .membership-fit,
  .source-pipeline-grid,
  .score-layer-grid,
  .vehicle-switcher,
  .research-footer__partners {
    grid-template-columns: 1fr;
  }

  .dossier-overview-head {
    grid-template-columns: 1fr;
  }

  .dossier-overview-head > span {
    justify-self: start;
  }

  .dossier-card {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
    min-height: 0;
    padding: 12px;
  }

  .dossier-index {
    width: 68px;
  }

  .dossier-index b {
    font-size: 14px;
  }

  .dossier-card h4 {
    font-size: 24px;
  }

  .dossier-card p {
    font-size: 12px;
  }

  .flow-section,
  .control-panel,
  .panel-block,
  .module-detail {
    padding: 14px;
  }

  .flow-copy h2 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .image-stack {
    height: 210px;
  }

  .stage-overlay {
    grid-template-columns: 1fr auto;
  }

  .stage-title h1 {
    font-size: 30px;
  }

  .score-ring {
    width: 64px;
  }

  .path-node {
    min-height: 62px;
  }

  .preview-window-bar,
  .module-head,
  .market-card-top,
  .watchlist button,
  .model-row {
    grid-template-columns: 1fr;
  }

  .market-card-top {
    display: grid;
    align-items: start;
  }

  .market-card-top strong {
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .market-main-card h3 {
    font-size: clamp(32px, 9vw, 40px);
    line-height: 1;
  }

  .market-main-card,
  .market-signal-card,
  .market-kpi-grid article,
  .predictive-card,
  .driver-card,
  .watchlist-card {
    width: min(100%, calc(100vw - 64px));
    max-width: calc(100vw - 64px);
    justify-self: start;
  }

  .market-main-card p,
  .market-card-top strong {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .market-main-card p,
  .market-signal-card p,
  .predictive-card p,
  .driver-card span,
  .watchlist span {
    font-size: 15px;
    line-height: 1.38;
  }

  .market-signal-card {
    min-height: 150px;
  }

  .market-filter-row button {
    width: 100%;
    min-width: 0;
  }

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

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

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

  .valuation-chart-shell,
  .valuation-chart {
    min-height: 330px;
  }

  .market-pulse-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .market-value-card,
  .market-pulse-card,
  .valuation-terminal,
  .condition-band-grid article,
  .orderbook-card,
  .market-agent-card {
    width: min(100%, calc(100vw - 64px));
    max-width: calc(100vw - 64px);
    justify-self: start;
  }

  .watchlist b,
  .model-row b {
    justify-self: start;
    text-align: left;
  }

  .preview-window-bar button,
  .preview-open-link,
  .compact-action {
    justify-self: start;
  }

  .signature-iframe {
    height: 620px;
    min-height: 520px;
  }

  .preview-sidebar {
    display: none;
  }

  .preview-stage {
    padding: 20px;
  }

  .preview-stage h3 {
    font-size: clamp(36px, 13vw, 54px);
  }

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

  .factor-row > b {
    text-align: left;
  }

  .module-head h3 {
    font-size: clamp(42px, 15vw, 68px);
  }

  .module-detail > p,
  .module-brief span,
  .score-text p,
  .score-summary {
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .module-detail,
  .module-brief {
    overflow: hidden;
  }

  .module-brief strong,
  .module-brief span {
    display: block;
    width: 100%;
  }

  .module-brief strong {
    margin-bottom: 10px;
  }

  .module-brief span {
    max-width: 28ch;
  }

.research-footer {
    width: calc(100% - 16px);
    padding: 24px 18px;
  }
}

/* Readability hardening: keep the KAR look, but prevent low-contrast microcopy. */
:root {
  --muted: #c6c3ba;
  --line: rgba(242, 239, 232, 0.24);
  --line-dark: rgba(9, 19, 15, 0.22);
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

p,
li,
small,
span,
button,
label,
input,
textarea {
  line-height: 1.38;
}

.stage-title p,
.flow-copy span,
.section-label span,
.module-head span,
.metric-row span,
.preview-stage p,
.preview-scan-card span,
.garage-head span,
.score-text span,
.module-brief strong,
.membership-head span,
.membership-login span,
.category-card span,
.market-card-top span,
.market-kpi-grid span,
.market-signal-card span,
.model-row span,
.watchlist span,
.market-value-card span,
.market-pulse-card span,
.condition-band-grid span,
.orderbook-row span,
.valuation-legend span,
.vehicle-file-card > strong,
.pdf-action-panel > strong,
.dossier-overview-head strong,
.dossier-card span,
.dossier-card em,
.intake-panel-head span,
.upload-dropzone small,
.research-footer__bottom {
  font-size: max(12px, 0.78rem);
  line-height: 1.32;
}

.stage-title p,
.flow-copy span,
.section-label span,
.garage-head span,
.market-card-top span,
.market-kpi-grid span,
.model-row span,
.watchlist span,
.market-value-card span,
.market-pulse-card span,
.condition-band-grid span,
.orderbook-row span,
.valuation-legend span,
.research-footer p,
.research-footer__claim p {
  color: rgba(242, 239, 232, 0.78);
}

.market-desk-shell .market-card-top span,
.market-desk-shell .market-kpi-grid span,
.market-value-card span,
.market-pulse-card span,
.condition-band-grid span,
.orderbook-row span,
.valuation-legend span {
  color: rgba(242, 239, 232, 0.82);
}

.market-desk-shell .market-card-top strong,
.market-desk-shell .market-main-card p,
.market-desk-shell .watchlist strong,
.market-desk-shell .watchlist b,
.market-value-card small,
.market-pulse-card small,
.condition-band-grid small,
.market-agent-card p,
.orderbook-row strong {
  color: rgba(242, 239, 232, 0.86);
}

.score-ring span,
.score-orbit span {
  color: rgba(242, 239, 232, 0.78);
  font-size: 12px;
}

.step-pill,
.ghost-button,
.language-button,
.primary-button,
.mode-button,
.mini-module-grid button,
.option-row strong,
.module-tab,
.path-node,
.module-chip-row button,
.market-filter-row button,
.watchlist strong,
.watchlist b,
.model-row b,
.driver-grid b,
.driver-grid em,
.orderbook-row span,
.orderbook-row strong,
.pdf-action-button,
.garage-compare-button,
.compact-action {
  font-size: max(12px, 0.78rem);
}

.option-row,
.vehicle-chip,
.mode-button,
.mini-module-grid button,
.module-tab,
.path-node,
.market-filter-row button,
.watchlist button,
.garage-compare-button,
.module-chip-row button {
  color: rgba(242, 239, 232, 0.9);
}

.metric-row span,
.score-text span,
.module-brief strong,
.vehicle-file-scoreboard strong,
.dossier-overview-head strong,
.dossier-card span,
.dossier-card em,
.intake-panel-head span,
.intake-form-panel label span,
.assembly-card small,
.upload-dropzone span,
.upload-dropzone small,
.review-checklist span,
.pdf-output-preview span {
  color: #48534b;
}

.market-main-card p,
.score-text p,
.module-detail > p,
.module-brief span,
.dossier-card p,
.dossier-overview-head p,
.intake-review-panel p,
.intake-pdf-panel p,
.vehicle-file-scoreboard small,
.membership-head p,
.category-card p,
.category-card li {
  color: #3f4943;
}

.panel-block,
.visual-stage,
.control-panel,
.flow-section,
.research-footer,
.market-desk-shell .market-main-card,
.market-desk-shell .predictive-card,
.market-desk-shell .driver-card,
.market-desk-shell .watchlist-card,
.market-desk-shell .orderbook-card,
.market-desk-shell .market-agent-card,
.valuation-terminal,
.condition-band-grid article,
.market-value-card,
.market-pulse-card {
  border-color: rgba(242, 239, 232, 0.24);
}

.partner-logo,
.fresenius-mark {
  opacity: 0.78;
}

.research-footer h2,
.research-footer__bottom {
  color: rgba(242, 239, 232, 0.88);
}

@media (max-width: 620px) {
  .step-pill,
  .ghost-button,
  .language-button,
  .primary-button,
  .mode-button,
  .mini-module-grid button,
  .module-tab,
  .path-node,
  .market-filter-row button,
  .watchlist strong,
  .watchlist b,
  .model-row b,
  .driver-grid b,
  .driver-grid em {
    font-size: 12px;
  }

  .market-main-card p,
  .market-signal-card p,
  .predictive-card p,
  .driver-card span,
  .watchlist span,
  .market-agent-card p,
  .score-summary,
  .module-detail > p {
    font-size: 15px;
    line-height: 1.45;
  }
}

.membership-gap-label,
.market-card-top strong,
.market-desk-shell .market-card-top strong,
.research-footer__copy p,
.market-signal-card small,
.vehicle-card small,
.garage-card-main span,
.garage-card-main small {
  font-size: 12px;
  line-height: 1.35;
}

/* Explicit light-surface protection: no white text on cream cards/buttons. */
.step-pill.active,
.vehicle-chip.active,
.option-row.active,
.path-node.active,
.module-tab.active,
.market-filter-row button.active,
.market-desk-shell .market-filter-row button.active,
.language-button,
.mobile-language-button,
.concierge-chat-button,
.metric-row article,
.score-panel,
.factor-row,
.slider-board label,
.module-detail,
.module-brief,
.module-kpi-grid span,
.module-step-list span,
.vehicle-file-scoreboard span,
.vehicle-file-card,
.pdf-action-panel,
.dossier-overview,
.dossier-card,
.assembly-card,
.upload-dropzone label,
.upload-chip-list span,
.review-checklist span,
.pdf-output-preview span,
.intake-form-panel,
.intake-upload-panel,
.intake-review-panel,
.intake-pdf-panel,
.category-card.current,
.membership-fit span,
.market-main-card:not(.market-desk-lead),
.market-signal-card:not(.market-desk-shell *),
.market-kpi-grid article:not(.market-desk-shell *),
.predictive-card:not(.market-desk-shell *),
.driver-card:not(.market-desk-shell *),
.watchlist-card:not(.market-desk-shell *) {
  color: var(--ink);
}

.step-pill.active *,
.vehicle-chip.active *,
.option-row.active *,
.path-node.active *,
.module-tab.active *,
.market-filter-row button.active *,
.market-desk-shell .market-filter-row button.active *,
.language-button *,
.mobile-language-button *,
.concierge-chat-button *,
.metric-row article *,
.score-panel *,
.factor-row *,
.slider-board label *,
.module-detail *,
.module-brief *,
.module-kpi-grid span *,
.module-step-list span *,
.vehicle-file-scoreboard span *,
.vehicle-file-card *,
.pdf-action-panel *,
.dossier-overview *,
.dossier-card *,
.assembly-card *,
.upload-dropzone label *,
.upload-chip-list span *,
.review-checklist span *,
.pdf-output-preview span *,
.intake-form-panel *,
.intake-upload-panel *,
.intake-review-panel *,
.intake-pdf-panel *,
.category-card.current *,
.membership-fit span *,
.market-main-card:not(.market-desk-lead) *,
.market-signal-card:not(.market-desk-shell *) *,
.market-kpi-grid article:not(.market-desk-shell *) *,
.predictive-card:not(.market-desk-shell *) *,
.driver-card:not(.market-desk-shell *) *,
.watchlist-card:not(.market-desk-shell *) * {
  color: inherit;
}

.metric-row article span,
.score-panel span,
.factor-row span,
.slider-board label span,
.module-detail > p,
.module-brief span,
.module-kpi-grid span,
.module-step-list span,
.vehicle-file-scoreboard small,
.vehicle-file-card p,
.pdf-action-panel p,
.dossier-overview p,
.dossier-card p,
.assembly-card small,
.upload-dropzone small,
.intake-review-panel p,
.intake-pdf-panel p,
.category-card.current p,
.category-card.current li,
.membership-fit span {
  color: #3f4943;
}

.metric-row article strong,
.score-panel h3,
.factor-row strong,
.module-detail h3,
.module-brief strong,
.vehicle-file-scoreboard b,
.dossier-card h4,
.assembly-card-head b,
.category-card.current h3 {
  color: var(--ink);
}

.market-desk-shell,
.market-desk-shell .market-main-card,
.market-desk-shell .predictive-card,
.market-desk-shell .driver-card,
.market-desk-shell .watchlist-card,
.market-desk-shell .orderbook-card,
.market-desk-shell .market-agent-card,
.market-desk-shell .market-value-card,
.market-desk-shell .market-pulse-card,
.market-desk-shell .valuation-terminal,
.market-desk-shell .condition-band-grid article {
  color: var(--cream);
}

.market-desk-shell .compact-kpis > article,
.market-desk-shell .market-agent-card .market-kpi-grid > article {
  border-color: rgba(242, 239, 232, 0.18) !important;
  background: rgba(242, 239, 232, 0.045) !important;
  color: var(--cream) !important;
}

.market-desk-shell .compact-kpis > article *,
.market-desk-shell .market-agent-card .market-kpi-grid > article * {
  color: inherit !important;
}

.market-desk-shell .driver-grid > span > b,
.market-desk-shell .driver-grid > span > em {
  color: rgba(242, 239, 232, 0.84) !important;
}

/* Henk private collection cockpit */
.henk-page {
  background:
    radial-gradient(circle at 20% 0%, rgba(184, 132, 53, 0.1), transparent 34%),
    linear-gradient(180deg, #f8f5ef 0%, #efeadf 100%);
}

.henk-page .step-nav a {
  text-decoration: none;
}

.henk-cockpit {
  row-gap: 32px;
}

.henk-hero .image-stack::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 40, 35, 0.92) 0%, rgba(6, 40, 35, 0.58) 42%, rgba(6, 40, 35, 0.18) 100%),
    radial-gradient(circle at 78% 40%, rgba(184, 132, 53, 0.2), transparent 34%);
  pointer-events: none;
}

.henk-segment-switcher .vehicle-chip {
  min-width: 0;
  overflow: hidden;
}

.henk-segment-switcher .vehicle-chip span {
  font-size: 0.82rem;
  line-height: 1.1;
  white-space: nowrap;
}

.henk-segment-switcher .vehicle-chip small {
  white-space: nowrap;
}

.henk-account-stack .option-row {
  cursor: pointer;
}

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

.henk-welcome-grid,
.henk-intelligence-console,
.henk-roadmap,
.henk-project-board,
.henk-access-console {
  display: grid;
  gap: 14px;
}

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

.henk-welcome-card,
.henk-intelligence-card,
.henk-roadmap article,
.henk-project-card,
.henk-share-panel {
  border: 1px solid rgba(8, 47, 42, 0.14);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 20px 50px rgba(8, 47, 42, 0.08);
}

.henk-page .henk-welcome-card,
.henk-page .henk-intelligence-card:not(.primary),
.henk-page .henk-roadmap article,
.henk-page .henk-project-card {
  background: rgba(248, 245, 239, 0.96) !important;
  color: #141414 !important;
}

.henk-welcome-card,
.henk-intelligence-card,
.henk-roadmap article,
.henk-project-card {
  padding: 18px;
  border-radius: 8px;
}

.henk-welcome-card span,
.henk-intelligence-card span,
.henk-roadmap span,
.henk-project-card span,
.henk-car-card span,
.henk-share-panel strong {
  display: block;
  color: #b88435;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.henk-welcome-card h3,
.henk-intelligence-card h3,
.henk-car-card h3 {
  margin: 8px 0;
  color: #082f2a;
  font-size: 1.18rem;
  letter-spacing: 0;
}

.henk-welcome-card p,
.henk-intelligence-card p,
.henk-roadmap p,
.henk-project-card p,
.henk-car-card p,
.henk-share-panel p {
  color: rgba(20, 20, 20, 0.72);
  line-height: 1.55;
}

.henk-page .henk-welcome-card h3,
.henk-page .henk-intelligence-card:not(.primary) h3,
.henk-page .henk-roadmap strong,
.henk-page .henk-project-card strong {
  color: #082f2a !important;
}

.henk-page .henk-welcome-card p,
.henk-page .henk-intelligence-card:not(.primary) p,
.henk-page .henk-roadmap p,
.henk-page .henk-project-card p {
  color: rgba(20, 20, 20, 0.74) !important;
}

.henk-filter-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 12px;
  scrollbar-width: none;
}

.henk-filter-bar::-webkit-scrollbar {
  display: none;
}

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

.henk-car-card {
  min-height: 180px;
  border: 1px solid rgba(8, 47, 42, 0.14);
  border-radius: 8px;
  padding: 15px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.62)),
    radial-gradient(circle at 100% 0%, rgba(184, 132, 53, 0.12), transparent 42%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 16px 36px rgba(8, 47, 42, 0.06);
}

.henk-car-card.project {
  background:
    linear-gradient(180deg, rgba(8, 47, 42, 0.96), rgba(8, 47, 42, 0.86)),
    radial-gradient(circle at 100% 0%, rgba(184, 132, 53, 0.26), transparent 40%);
}

.henk-car-card strong {
  color: #082f2a;
  font-size: 0.9rem;
}

.henk-car-card.project strong,
.henk-car-card.project h3,
.henk-car-card.project p,
.henk-car-card.project small {
  color: #f8f5ef;
}

.henk-car-card small {
  color: rgba(8, 47, 42, 0.56);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.henk-intelligence-console {
  grid-template-columns: 1.25fr repeat(3, minmax(0, 1fr));
}

.henk-intelligence-card.primary {
  background:
    linear-gradient(135deg, rgba(8, 47, 42, 0.98), rgba(8, 47, 42, 0.88)),
    radial-gradient(circle at 90% 0%, rgba(184, 132, 53, 0.32), transparent 42%);
}

.henk-intelligence-card.primary h3,
.henk-intelligence-card.primary p {
  color: #f8f5ef;
}

.henk-intelligence-card.primary h3 {
  font-size: 2.4rem;
}

.henk-roadmap {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
}

.henk-roadmap strong {
  display: block;
  margin: 8px 0;
  color: #082f2a;
}

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

.henk-project-card strong {
  display: block;
  min-height: 48px;
  margin: 8px 0;
  color: #082f2a;
  font-size: 1rem;
}

.henk-project-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(8, 47, 42, 0.12);
}

.henk-project-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b88435, #082f2a);
}

.henk-access-console {
  grid-template-columns: 0.9fr 1.4fr;
}

.henk-access-preview {
  min-height: 360px;
}

.henk-share-panel {
  min-height: 318px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(8, 47, 42, 0.96), rgba(8, 47, 42, 0.82)),
    radial-gradient(circle at 90% 0%, rgba(184, 132, 53, 0.28), transparent 45%);
  color: #f8f5ef;
}

.henk-share-panel p {
  max-width: 680px;
  color: rgba(248, 245, 239, 0.78);
}

.henk-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.henk-share-actions .primary-button {
  width: auto;
}

@media (max-width: 1180px) {
  .henk-metrics,
  .henk-welcome-grid,
  .henk-intelligence-console,
  .henk-roadmap,
  .henk-project-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .henk-metrics,
  .henk-welcome-grid,
  .henk-intelligence-console,
  .henk-roadmap,
  .henk-project-board,
  .henk-access-console {
    grid-template-columns: 1fr;
  }

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

  .henk-car-card {
    min-height: 168px;
  }
}

@media (max-width: 520px) {
  .henk-collection-grid {
    grid-template-columns: 1fr;
  }
}

/* Henk CI refinement */
.henk-page {
  --henk-bg: #020806;
  --henk-panel: #081a14;
  --henk-panel-soft: #0d211a;
  --henk-cream: #f2efe8;
  --henk-cream-soft: #ded9cf;
  --henk-gold: #b98541;
  --henk-line: rgba(242, 239, 232, 0.16);
  --henk-line-strong: rgba(185, 133, 65, 0.42);
  --henk-muted: rgba(242, 239, 232, 0.66);
  color: var(--henk-cream);
  background:
    linear-gradient(90deg, rgba(242, 239, 232, 0.018) 1px, transparent 1px),
    linear-gradient(rgba(242, 239, 232, 0.012) 1px, transparent 1px),
    radial-gradient(circle at 18% -10%, rgba(185, 133, 65, 0.14), transparent 34rem),
    radial-gradient(circle at 92% 16%, rgba(80, 144, 104, 0.1), transparent 28rem),
    linear-gradient(135deg, #081710, #020806 62%, #000302);
  background-size: 80px 80px, 80px 80px, auto, auto, auto;
}

.henk-page .app-header {
  border-bottom: 1px solid var(--henk-line);
  background: rgba(2, 8, 6, 0.94);
  backdrop-filter: blur(18px);
}

.henk-page .brand-lockup {
  max-height: 70px;
}

.henk-page .step-pill,
.henk-page .ghost-button,
.henk-page .language-button,
.henk-page .module-tab,
.henk-page .primary-button,
.henk-page .vehicle-chip,
.henk-page .option-row {
  border-radius: 6px;
  font-family: var(--sans);
  letter-spacing: 0.01em;
}

.henk-page .step-pill {
  min-height: 44px;
  border-color: var(--henk-line);
  color: var(--henk-muted);
  background: rgba(242, 239, 232, 0.035);
  font-weight: 700;
}

.henk-page .step-pill.active,
.henk-page .step-pill:hover,
.henk-page .vehicle-chip.active {
  color: var(--henk-bg);
  background: var(--henk-cream);
}

.henk-cockpit {
  gap: 18px;
  padding: 18px;
}

.henk-cockpit .visual-stage,
.henk-cockpit .control-panel,
.henk-cockpit .flow-section {
  border: 1px solid var(--henk-line);
  background:
    linear-gradient(180deg, rgba(13, 33, 26, 0.98), rgba(8, 26, 20, 0.96)),
    radial-gradient(circle at 100% 0%, rgba(185, 133, 65, 0.08), transparent 38%);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
}

.henk-cockpit .flow-section {
  border-radius: 8px;
}

.henk-hero .image-stack {
  min-height: 252px;
}

.henk-hero .image-stack::after {
  background:
    linear-gradient(180deg, rgba(2, 8, 6, 0.14), rgba(2, 8, 6, 0.72)),
    linear-gradient(90deg, rgba(2, 8, 6, 0.78), rgba(2, 8, 6, 0.2));
}

.henk-page .stage-title h1,
.henk-page .flow-copy h2,
.henk-page .control-panel .section-label strong,
.henk-page .research-footer__copy h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0;
}

.henk-page .stage-title h1 {
  max-width: 100%;
  font-size: clamp(2.15rem, 3.1vw, 2.9rem);
  line-height: 0.96;
  overflow-wrap: normal;
  word-break: normal;
}

.henk-page .stage-title p,
.henk-page .flow-copy span,
.henk-page .section-label span,
.henk-page .henk-welcome-card span,
.henk-page .henk-intelligence-card span,
.henk-page .henk-roadmap span,
.henk-page .henk-project-card span,
.henk-page .henk-car-card span {
  color: var(--henk-gold);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.henk-page .score-ring {
  border-color: rgba(185, 133, 65, 0.68);
  background: rgba(8, 26, 20, 0.82);
  box-shadow: inset 0 0 0 8px rgba(80, 144, 104, 0.42);
}

.henk-page .score-ring strong {
  font-family: var(--sans);
  font-size: 1.7rem;
}

.henk-page .score-ring span,
.henk-page .vehicle-chip span,
.henk-page .vehicle-chip small {
  font-family: var(--sans);
}

.henk-page .score-summary,
.henk-page .panel-block,
.henk-page .option-row,
.henk-page .membership-teaser-list li {
  border-color: var(--henk-line);
  color: rgba(242, 239, 232, 0.78);
  background: rgba(242, 239, 232, 0.035);
}

.henk-page .panel-block,
.henk-page .module-shortcuts {
  border-radius: 8px;
}

.henk-page .option-row.active,
.henk-page .primary-button {
  color: var(--henk-bg);
  background: var(--henk-cream);
  box-shadow: none;
}

.henk-page .option-row strong {
  color: inherit;
}

.henk-page .metric-row {
  gap: 10px;
}

.henk-page .metric-row article {
  min-height: 120px;
  border: 1px solid var(--henk-line);
  border-radius: 6px;
  color: var(--henk-cream);
  background: rgba(242, 239, 232, 0.04);
}

.henk-page .metric-row span {
  color: var(--henk-muted);
  font-family: var(--sans);
}

.henk-page .metric-row strong {
  color: var(--henk-cream);
  font-family: var(--sans);
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 700;
}

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

.henk-page .henk-welcome-card,
.henk-page .henk-intelligence-card:not(.primary),
.henk-page .henk-roadmap article,
.henk-page .henk-project-card,
.henk-page .henk-car-card {
  border: 1px solid var(--henk-line) !important;
  border-radius: 6px;
  color: var(--henk-cream) !important;
  background:
    linear-gradient(180deg, rgba(242, 239, 232, 0.052), rgba(242, 239, 232, 0.026)),
    rgba(13, 33, 26, 0.9) !important;
  box-shadow: none;
}

.henk-page .henk-welcome-card h3,
.henk-page .henk-intelligence-card:not(.primary) h3,
.henk-page .henk-roadmap strong,
.henk-page .henk-project-card strong,
.henk-page .henk-car-card h3,
.henk-page .henk-car-card strong {
  color: var(--henk-cream) !important;
  font-family: var(--sans);
  font-weight: 760;
  letter-spacing: 0;
}

.henk-page .henk-welcome-card p,
.henk-page .henk-intelligence-card:not(.primary) p,
.henk-page .henk-roadmap p,
.henk-page .henk-project-card p,
.henk-page .henk-car-card p,
.henk-page .henk-car-card small {
  color: rgba(242, 239, 232, 0.68) !important;
}

.henk-page .henk-car-card.project {
  border-color: var(--henk-line-strong) !important;
  background:
    linear-gradient(180deg, rgba(185, 133, 65, 0.14), rgba(242, 239, 232, 0.028)),
    rgba(13, 33, 26, 0.92) !important;
}

.henk-page .henk-intelligence-card.primary,
.henk-page .henk-share-panel {
  border: 1px solid var(--henk-line-strong);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(185, 133, 65, 0.16), rgba(13, 33, 26, 0.94)),
    rgba(8, 26, 20, 0.96);
  box-shadow: none;
}

.henk-page .henk-intelligence-card.primary h3 {
  font-family: var(--sans);
  font-size: 2.6rem;
  font-weight: 760;
}

.henk-page .henk-filter-bar {
  border-bottom: 1px solid var(--henk-line);
  padding-bottom: 14px;
}

.henk-page .module-tab {
  min-height: 40px;
  border-color: var(--henk-line);
  color: var(--henk-muted);
  background: rgba(242, 239, 232, 0.035);
}

.henk-page .module-tab.active,
.henk-page .module-tab:hover {
  color: var(--henk-bg);
  background: var(--henk-cream);
}

.henk-page .henk-collection-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.henk-page .henk-car-card {
  min-height: 156px;
  padding: 14px;
}

.henk-page .henk-car-card h3 {
  font-size: 1rem;
  line-height: 1.16;
}

.henk-page .henk-roadmap,
.henk-page .henk-project-board {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.henk-page .henk-access-console {
  grid-template-columns: 0.8fr 1.2fr;
}

.henk-page .preview-window-bar,
.henk-page .research-footer {
  border-color: var(--henk-line);
  background: rgba(2, 8, 6, 0.92);
}

.henk-page .research-footer {
  color: var(--henk-cream);
}

@media (max-width: 1280px) {
  .henk-page .henk-collection-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .henk-page .henk-collection-grid,
  .henk-page .henk-roadmap,
  .henk-page .henk-project-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .henk-page .henk-welcome-grid,
  .henk-page .henk-access-console {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .henk-page {
    overflow-x: clip;
  }

  .henk-cockpit {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    margin: 10px auto 24px;
    padding: 0;
    overflow: hidden;
  }

  .henk-page .visual-stage *,
  .henk-page .control-panel *,
  .henk-page .flow-section * {
    min-width: 0;
  }

  .henk-page .henk-collection-grid,
  .henk-page .henk-roadmap,
  .henk-page .henk-project-board {
    grid-template-columns: 1fr;
  }
}

/* Final language-button readability override. Keep this at EOF. */
.language-button,
.mobile-language-button,
.henk-page .language-button {
  border-color: rgba(242, 239, 232, 0.82) !important;
  color: #020806 !important;
  background: #f2efe8 !important;
  box-shadow: 0 3px 0 #b98541 !important;
  text-shadow: none !important;
}

.language-button.active,
.language-button:hover,
.mobile-language-button.active,
.mobile-language-button:hover,
.henk-page .language-button.active,
.henk-page .language-button:hover {
  border-color: #b98541 !important;
  color: #020806 !important;
  background: #fffdf8 !important;
}

.language-button *,
.mobile-language-button *,
.henk-page .language-button * {
  color: inherit !important;
}

@media (max-width: 900px) {
  .henk-page .app-header {
    align-items: start;
  }

  .henk-page .step-nav {
    grid-column: 1 / -1;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .henk-page .step-pill {
    flex: 0 0 auto;
  }

  .henk-cockpit {
    grid-template-areas:
      "visual"
      "panel"
      "content";
  }

  .henk-cockpit .visual-stage {
    order: 1;
  }

  .henk-cockpit .control-panel {
    order: 2;
    grid-template-columns: 1fr;
  }

  .henk-cockpit .flow-section {
    order: 3;
  }

  .henk-page .flow-copy h2 {
    max-width: 100%;
    font-size: clamp(2.3rem, 13vw, 3.6rem);
    line-height: 0.98;
    overflow-wrap: break-word;
  }

  .henk-page .stage-title h1 {
    font-size: clamp(2rem, 11vw, 3rem);
  }
}

@media (max-width: 560px) {
  .henk-page .app-header {
    padding: 12px;
  }

  .henk-page .brand-lockup {
    max-height: 52px;
  }

  .henk-page .step-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin-left: 0;
    padding-right: 0;
    overflow: visible;
  }

  .henk-page .step-pill {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 0 8px;
    font-size: 0.78rem;
  }

  .henk-page .header-actions {
    display: none;
  }

  .henk-page .flow-copy h2 {
    font-size: clamp(2rem, 11vw, 2.8rem);
  }

  .henk-page .visual-stage,
  .henk-page .control-panel,
  .henk-page .flow-section,
  .henk-page .panel-block,
  .henk-page .score-summary,
  .henk-page .module-shortcuts {
    max-width: 100%;
    overflow: hidden;
  }

  .henk-page .stage-overlay {
    grid-template-columns: minmax(0, 1fr) 54px;
    gap: 8px;
    width: auto;
    max-width: 100%;
  }

  .henk-page .stage-title {
    min-width: 0;
  }

  .henk-page .score-summary {
    width: min(306px, calc(100vw - 84px));
    max-width: min(306px, calc(100vw - 84px));
    margin-left: 18px;
    margin-right: 18px;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .henk-page .henk-segment-switcher,
  .henk-page .module-shortcuts {
    width: min(306px, calc(100vw - 84px));
    max-width: min(306px, calc(100vw - 84px));
    margin-left: 18px;
    margin-right: 18px;
  }

  .henk-page .score-ring {
    width: 54px;
  }

  .henk-page .score-ring strong {
    font-size: 1.12rem;
  }

  .henk-page .score-ring span {
    margin-top: -8px;
    font-size: 6.5px;
  }

  .henk-page .metric-row article {
    min-height: 104px;
  }

  .henk-page .metric-row strong {
    font-size: 2.7rem;
  }

  .henk-page .henk-welcome-card,
  .henk-page .henk-intelligence-card,
  .henk-page .henk-roadmap article,
  .henk-page .henk-project-card,
  .henk-page .henk-car-card {
    padding: 14px;
  }
}

@media (max-width: 760px) {
  .compare-panel-head,
  .compare-summary {
    grid-template-columns: 1fr;
  }
}

/* Final readability guard for all language buttons. */
.language-button,
.mobile-language-button,
.henk-page .language-button {
  border-color: rgba(242, 239, 232, 0.82) !important;
  color: var(--ink) !important;
  background: var(--cream) !important;
  box-shadow: 0 3px 0 var(--accent-dark) !important;
}

.language-button.active,
.language-button:hover,
.mobile-language-button.active,
.mobile-language-button:hover,
.henk-page .language-button.active,
.henk-page .language-button:hover {
  border-color: var(--warning) !important;
  color: var(--ink) !important;
  background: #fffdf8 !important;
}

/* Henk CI final pass */
body.henk-page {
  color: #f2efe8;
  background:
    linear-gradient(180deg, rgba(242, 239, 232, 0.03), transparent 220px),
    linear-gradient(135deg, #07130f 0%, #020806 54%, #000302 100%);
}

.henk-page,
.henk-page * {
  letter-spacing: 0 !important;
}

.henk-page .app-header {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  padding: 12px clamp(14px, 2vw, 28px);
  border-color: rgba(242, 239, 232, 0.16);
  background: rgba(2, 8, 6, 0.96);
}

.henk-page .brand {
  width: clamp(190px, 17vw, 270px);
  min-width: 0;
  height: 78px;
}

.henk-page .brand-lockup {
  max-height: none;
}

.henk-page .step-pill,
.henk-page .ghost-button,
.henk-page .module-tab,
.henk-page .primary-button,
.henk-page .vehicle-chip,
.henk-page .option-row,
.henk-page .mini-module-grid button {
  border-radius: 4px;
  font-family: var(--sans);
}

.henk-page .step-pill,
.henk-page .ghost-button,
.henk-page .language-button {
  min-height: 40px;
  padding-inline: 14px;
  border-color: rgba(242, 239, 232, 0.18);
  color: rgba(242, 239, 232, 0.76);
  background: rgba(242, 239, 232, 0.04);
  box-shadow: none;
}

.henk-language-switcher {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.henk-page .language-button {
  min-width: 44px;
  padding-inline: 10px;
}

.henk-page .step-pill.active,
.henk-page .step-pill:hover,
.henk-page .ghost-button:hover,
.henk-page .language-button.active,
.henk-page .language-button:hover,
.henk-page .vehicle-chip.active,
.henk-page .module-tab.active,
.henk-page .module-tab:hover,
.henk-page .option-row.active,
.henk-page .primary-button {
  border-color: #b98541;
  color: #020806;
  background: #f2efe8;
  box-shadow: inset 0 -3px 0 rgba(185, 133, 65, 0.42);
}

.henk-cockpit {
  width: min(100% - 32px, 1560px);
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.72fr) minmax(300px, 0.86fr);
  gap: 14px;
  margin-top: 16px;
  padding: 0;
}

.henk-cockpit .visual-stage,
.henk-cockpit .control-panel,
.henk-cockpit .flow-section {
  border-color: rgba(242, 239, 232, 0.16);
  background:
    linear-gradient(180deg, rgba(242, 239, 232, 0.035), rgba(242, 239, 232, 0.015)),
    #081a14;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.34);
}

.henk-cockpit .visual-stage,
.henk-cockpit .control-panel,
.henk-cockpit .flow-section,
.henk-page .panel-block,
.henk-page .score-summary,
.henk-page .henk-welcome-card,
.henk-page .henk-intelligence-card,
.henk-page .henk-roadmap article,
.henk-page .henk-project-card,
.henk-page .henk-car-card,
.henk-page .henk-share-panel {
  border-radius: 6px;
}

.henk-hero .image-stack {
  min-height: 280px;
  border-bottom: 1px solid rgba(185, 133, 65, 0.28);
}

.henk-hero .image-stack::after,
.henk-hero .image-shade {
  background:
    linear-gradient(180deg, rgba(2, 8, 6, 0.08), rgba(2, 8, 6, 0.82)),
    linear-gradient(90deg, rgba(2, 8, 6, 0.82), rgba(2, 8, 6, 0.16));
}

.henk-page .stage-overlay {
  padding: 0 18px;
}

.henk-page .stage-title p,
.henk-page .flow-copy span,
.henk-page .section-label span,
.henk-page .henk-welcome-card span,
.henk-page .henk-intelligence-card span,
.henk-page .henk-roadmap span,
.henk-page .henk-project-card span,
.henk-page .henk-car-card span {
  color: #b98541;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.henk-page .stage-title h1,
.henk-page .flow-copy h2,
.henk-page .control-panel .section-label strong,
.henk-page .research-footer__copy h2 {
  color: #fffdf8;
  font-family: var(--serif);
  font-weight: 400;
}

.henk-page .stage-title h1 {
  max-width: 11ch;
  font-size: clamp(2.35rem, 3.25vw, 3.25rem);
  line-height: 0.96;
}

.henk-page .flow-copy h2 {
  max-width: 12ch;
  font-size: clamp(3rem, 5.4vw, 5.9rem);
  line-height: 0.92;
}

.henk-page .flow-copy img.cockpit-lockup {
  max-width: min(100%, 520px);
}

.henk-page .score-ring {
  border: 1px solid rgba(185, 133, 65, 0.78);
  background: #020806;
  box-shadow: inset 0 0 0 7px rgba(185, 133, 65, 0.18);
}

.henk-page .score-ring strong,
.henk-page .metric-row strong,
.henk-page .henk-intelligence-card.primary h3 {
  font-family: var(--sans);
  font-weight: 760;
}

.henk-page .score-summary,
.henk-page .panel-block,
.henk-page .option-row,
.henk-page .membership-teaser-list li,
.henk-page .vehicle-chip,
.henk-page .mini-module-grid button {
  border-color: rgba(242, 239, 232, 0.14);
  color: rgba(242, 239, 232, 0.78);
  background: rgba(242, 239, 232, 0.04);
}

.henk-page .vehicle-chip,
.henk-page .option-row,
.henk-page .mini-module-grid button {
  min-height: 50px;
}

.henk-page .metric-row article {
  min-height: 112px;
  border-color: rgba(185, 133, 65, 0.3);
  background: #0b1c16;
}

.henk-page .metric-row span {
  color: rgba(242, 239, 232, 0.68);
}

.henk-page .metric-row strong {
  color: #fffdf8;
  font-size: clamp(2.25rem, 3.7vw, 3.7rem);
}

.henk-page .henk-welcome-card,
.henk-page .henk-intelligence-card:not(.primary),
.henk-page .henk-roadmap article,
.henk-page .henk-project-card,
.henk-page .henk-car-card {
  border: 1px solid rgba(242, 239, 232, 0.14) !important;
  background: #0b1c16 !important;
}

.henk-page .henk-welcome-card h3,
.henk-page .henk-intelligence-card:not(.primary) h3,
.henk-page .henk-roadmap strong,
.henk-page .henk-project-card strong,
.henk-page .henk-car-card h3 {
  color: #fffdf8 !important;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.02;
}

.henk-page .henk-car-card strong {
  color: #f2efe8 !important;
  font-family: var(--sans);
  font-weight: 760;
}

.henk-page .henk-welcome-card p,
.henk-page .henk-intelligence-card:not(.primary) p,
.henk-page .henk-roadmap p,
.henk-page .henk-project-card p,
.henk-page .henk-car-card p,
.henk-page .henk-car-card small {
  color: rgba(242, 239, 232, 0.68) !important;
}

.henk-page .henk-car-card.project,
.henk-page .henk-intelligence-card.primary,
.henk-page .henk-share-panel {
  border-color: rgba(185, 133, 65, 0.46) !important;
  background: #0e2018 !important;
}

.henk-page .henk-filter-bar {
  align-items: center;
  border-bottom-color: rgba(185, 133, 65, 0.26);
}

.henk-page .module-tab {
  min-height: 38px;
  padding-inline: 12px;
}

.henk-page .henk-collection-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.henk-page .henk-car-card {
  min-height: 150px;
}

.henk-page .henk-project-progress {
  background: rgba(242, 239, 232, 0.1);
}

.henk-page .henk-project-progress i {
  background: #b98541;
}

.henk-page .research-footer {
  border-color: rgba(242, 239, 232, 0.16);
  background: #020806;
}

@media (max-width: 1280px) {
  .henk-cockpit {
    grid-template-columns: 290px minmax(0, 1fr);
    grid-template-areas:
      "visual content"
      "panel content";
  }

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

@media (max-width: 900px) {
  .henk-page .app-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .henk-page .header-actions {
    gap: 8px;
  }

  .henk-page .brand {
    width: min(230px, 60vw);
    height: 64px;
  }

  .henk-cockpit {
    width: min(100% - 24px, 760px);
    grid-template-columns: 1fr;
    grid-template-areas:
      "visual"
      "panel"
      "content";
  }

  .henk-page .flow-copy h2 {
    max-width: 100%;
    font-size: clamp(2.4rem, 10vw, 4.5rem);
  }

  .henk-page .henk-collection-grid,
  .henk-page .henk-roadmap,
  .henk-page .henk-project-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  html,
  body.henk-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .henk-page .app-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100dvw;
    max-width: 100dvw;
    overflow: hidden;
  }

  .henk-page .brand {
    width: 210px;
    height: 58px;
  }

  .henk-page .header-actions {
    display: flex;
    width: min(calc(100dvw - 24px), 366px);
    max-width: min(calc(100dvw - 24px), 366px);
    justify-content: space-between;
  }

  .henk-page .language-button,
  .henk-page .ghost-button {
    min-height: 38px;
    font-size: 0.75rem;
  }

  .henk-page .step-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(calc(100dvw - 24px), 366px);
    max-width: min(calc(100dvw - 24px), 366px);
    gap: 8px;
    overflow: visible;
  }

  .henk-page .step-pill {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding-inline: 8px;
    font-size: 0.78rem;
    white-space: normal;
  }

  .henk-cockpit {
    width: 100dvw;
    max-width: 100dvw;
    margin: 10px 0 24px;
    padding: 0 12px;
    overflow: hidden;
  }

  .henk-cockpit .visual-stage,
  .henk-cockpit .control-panel,
  .henk-cockpit .flow-section {
    width: min(calc(100dvw - 24px), 366px);
    max-width: min(calc(100dvw - 24px), 366px);
    min-width: 0;
  }

  .henk-hero .image-stack {
    min-height: 236px;
  }

  .henk-page .stage-overlay {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding-inline: 14px;
  }

  .henk-page .stage-title h1 {
    max-width: 9.5ch;
    font-size: clamp(2rem, 10.5vw, 2.75rem);
  }

  .henk-page .score-ring {
    width: 58px;
    justify-self: start;
  }

  .henk-page .score-summary,
  .henk-page .henk-segment-switcher,
  .henk-page .module-shortcuts {
    width: min(calc(100dvw - 52px), 338px);
    max-width: min(calc(100dvw - 52px), 338px);
    margin-left: 14px;
    margin-right: 14px;
  }

  .henk-page .henk-segment-switcher {
    gap: 8px;
    grid-template-columns: 1fr;
  }

  .henk-page .vehicle-chip {
    min-height: 56px;
    padding: 8px;
  }

  .henk-page .flow-copy h2 {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }

  .henk-page .henk-collection-grid,
  .henk-page .henk-roadmap,
  .henk-page .henk-project-board {
    grid-template-columns: 1fr;
  }
}
