:root {
  --bg: #f6fcf8;
  --surface: #ffffff;
  --surface-strong: #eaf8f0;
  --text: #12323a;
  --muted: #637a76;
  --line: #d2e9df;
  --primary: #2f796d;
  --primary-dark: #153f43;
  --primary-soft: #e7fbf7;
  --secondary: #2a6a74;
  --accent: #39d98f;
  --accent-dark: #159463;
  --accent-soft: #e5fbf6;
  --aurora-green: #39ffb0;
  --aurora-cyan: #7df7ea;
  --aurora-violet: #bda8ff;
  --aurora-glow: rgba(57, 255, 176, 0.34);
  --glacial: #8ddbd2;
  --violet: #b7a8ff;
  --polar: #f8fffd;
  --warning: #b96a00;
  --warning-bg: #fff6e6;
  --danger: #b3261e;
  --danger-bg: #fff0f2;
  --success: #007a4d;
  --success-bg: #eaf8f0;
  --neutral-bg: #edf6f7;
  --shadow: 0 22px 54px rgba(18, 50, 58, 0.12);
  --shadow-soft: 0 10px 28px rgba(18, 50, 58, 0.08);
  --ring: 0 0 0 4px rgba(57, 217, 143, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.app-shell {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
  height: auto;
  padding: 16px 28px;
  color: var(--text);
  background: rgba(245, 251, 251, 0.92);
  border-right: 0;
  border-bottom: 1px solid rgba(18, 50, 58, 0.08);
  backdrop-filter: blur(18px);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  background: transparent;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(57, 217, 143, 0.18);
}

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

.brand-block h1,
.brand-block p,
.topbar h2,
.topbar p,
.panel h3,
.panel p {
  margin: 0;
}

.brand-block h1 {
  font-size: 20px;
  letter-spacing: 0;
}

.brand-block p,
.source-health span {
  color: var(--muted);
  font-size: 13px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 10px;
}

.nav-item {
  display: block;
  min-width: 0;
  min-height: 36px;
  padding: 8px 10px;
  color: #293138;
  text-decoration: none;
  border-radius: 8px;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 700;
}

.nav-item:hover,
.nav-item.active {
  color: var(--text);
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(18, 50, 58, 0.06);
}

html[data-device-mode="desktop"] .nav-item[href="#appMode"] {
  display: none;
}

.source-health {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.source-health strong,
.source-health span {
  display: block;
}

.health-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(57, 217, 143, 0.14);
}

.workspace {
  display: grid;
  gap: 20px;
  align-content: start;
  min-width: 0;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 34px 28px 72px;
}

.customer-hero {
  order: 1;
}

.customer-cockpit {
  order: 2;
}

.app-mode {
  order: 3;
}

#profile {
  order: 4;
}

#matches {
  order: 5;
}

#setup {
  order: 6;
}

#trackers {
  order: 7;
}

#activity {
  order: 8;
}

#operatorPreview {
  order: 40;
}

#marketLab {
  order: 41;
}

#adapterLab {
  order: 42;
}

.customer-path {
  order: 50;
}

.customer-trust {
  order: 51;
}

.metrics {
  order: 52;
  display: none;
}

.app-mode {
  display: grid;
  place-items: center;
  min-height: calc(100svh - 128px);
  padding: 10px 0;
}

html[data-device-mode="desktop"]:not(.desktop-guided-active) #appMode {
  display: none;
}

html.mobile-app-launch,
html.mobile-app-launch body {
  min-height: 100%;
  overflow: hidden;
  background: var(--bg);
}

html.mobile-app-launch .sidebar,
html.mobile-app-launch .customer-hero,
html.mobile-app-launch .customer-cockpit,
html.mobile-app-launch #profile,
html.mobile-app-launch #matches,
html.mobile-app-launch #setup,
html.mobile-app-launch #trackers,
html.mobile-app-launch #activity,
html.mobile-app-launch #operatorPreview,
html.mobile-app-launch #marketLab,
html.mobile-app-launch #adapterLab {
  display: none;
}

html.mobile-app-launch .app-shell,
html.mobile-app-launch .workspace {
  display: block;
  width: 100%;
  min-height: 100svh;
  margin: 0;
}

html.mobile-app-launch .workspace {
  max-width: none;
  padding: 0;
}

html.mobile-app-launch #appMode {
  display: grid;
  min-height: 100svh;
  padding: 0;
  place-items: stretch;
  scroll-margin-top: 0;
}

html.mobile-app-launch .app-mode-shell {
  width: 100%;
  height: 100svh;
  min-height: 100svh;
  max-height: 100svh;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

@media (min-width: 520px) {
  html.mobile-app-launch,
  html.mobile-app-launch body {
    background:
      radial-gradient(circle at 50% 0%, rgba(57, 255, 176, 0.14), transparent 34%),
      linear-gradient(180deg, #f1fbf7 0%, #dfeeea 100%);
  }

  html.mobile-app-launch #appMode {
    min-height: 100svh;
    padding: 18px 0;
    place-items: center;
  }

  html.mobile-app-launch .app-mode-shell {
    width: min(390px, calc(100vw - 32px));
    height: min(844px, calc(100svh - 36px));
    min-height: min(680px, calc(100svh - 36px));
    max-height: min(844px, calc(100svh - 36px));
    border: 1px solid rgba(47, 121, 109, 0.24);
    border-radius: 22px;
    box-shadow: 0 28px 70px rgba(18, 50, 58, 0.18);
  }

  html.mobile-app-launch .app-mode-top {
    padding: 16px 16px 12px;
  }

  html.mobile-app-launch .app-mode-top h2 {
    font-size: 18px;
  }

  html.mobile-app-launch .app-step-pill {
    font-size: 11px;
  }

  html.mobile-app-launch .app-screen {
    gap: 16px;
    padding: 22px 16px 24px;
  }

  html.mobile-app-launch .app-screen-copy h3 {
    font-size: 28px;
  }

  html.mobile-app-launch .app-choice-list,
  html.mobile-app-launch .app-choice-list.compact-choice-grid {
    grid-template-columns: 1fr;
  }
}

.app-mode-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  width: min(480px, 100%);
  height: min(790px, calc(100svh - 148px));
  min-height: min(680px, calc(100svh - 148px));
  overflow: hidden;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(57, 217, 143, 0.18) 0%, rgba(141, 219, 210, 0.08) 34%, rgba(183, 168, 255, 0.06) 68%, transparent 100%),
    linear-gradient(180deg, #1c5f57 0%, #153f43 58%, #245f54 100%);
  border: 1px solid rgba(141, 219, 210, 0.2);
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(18, 50, 58, 0.2);
}

.app-mode-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 16px;
  color: var(--polar);
  background:
    linear-gradient(120deg, rgba(57, 217, 143, 0.22) 0%, rgba(141, 219, 210, 0.08) 38%, transparent 72%),
    linear-gradient(180deg, #1d655c 0%, #1a504f 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.app-mode-brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.app-mode-brand > div {
  min-width: 0;
}

.app-mode-brand-mark {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(57, 255, 176, 0.2), rgba(125, 247, 234, 0.09)),
    rgba(15, 58, 58, 0.7);
  border: 1px solid rgba(141, 219, 210, 0.3);
  border-radius: 12px;
  box-shadow:
    0 14px 30px rgba(3, 38, 42, 0.22),
    0 0 0 4px rgba(57, 255, 176, 0.06);
}

.app-mode-brand-mark::before {
  content: "";
  position: absolute;
  inset: -36% -12% 44%;
  background: linear-gradient(90deg, transparent, rgba(57, 255, 176, 0.62), rgba(125, 247, 234, 0.38), transparent);
  filter: blur(7px);
  transform: rotate(-12deg);
}

.app-mode-brand-mark img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 8px 12px rgba(2, 28, 32, 0.22));
}

.app-mode-top h2,
.app-mode-top p,
.app-screen-copy h3,
.app-screen-copy p,
.app-price-card span,
.app-price-card strong,
.app-alert-card strong,
.app-alert-card span,
.app-result-card h4,
.app-result-card p,
.app-detail-body h3,
.app-detail-body p {
  margin: 0;
}

.app-mode-top h2 {
  max-width: 280px;
  margin-top: 4px;
  color: var(--polar);
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: 0;
}

.app-mode-top .eyebrow {
  color: var(--glacial);
}

.app-mode-top .app-wordmark {
  width: fit-content;
  color: transparent;
  background: linear-gradient(90deg, #d9fff8 0%, var(--aurora-green) 48%, var(--aurora-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-shadow: 0 0 18px rgba(57, 255, 176, 0.14);
}

.app-step-pill {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 8px 11px;
  color: #dffcf7;
  background: rgba(57, 217, 143, 0.12);
  border: 1px solid rgba(57, 217, 143, 0.26);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.app-progress {
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
}

.app-progress span {
  display: block;
  width: 11%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--glacial) 74%, var(--violet) 100%);
  transition: width 180ms ease;
}

.app-screen-list {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg);
  scrollbar-width: thin;
}

.app-screen {
  display: none;
  min-height: 100%;
  align-content: start;
  gap: 20px;
  padding: 26px 20px 30px;
  background: var(--bg);
}

.app-screen.is-active {
  display: grid;
}

.app-screen-copy {
  display: grid;
  gap: 7px;
  padding-left: 14px;
  border-left: 5px solid var(--accent);
}

.app-screen-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.app-screen-copy h3 {
  max-width: 410px;
  color: var(--text);
  font-size: 30px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
}

.app-screen-copy p {
  max-width: 430px;
  color: var(--muted);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.5;
}

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

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

.app-taxonomy-list {
  display: grid;
  gap: 10px;
}

.app-taxonomy-picker {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(18, 50, 58, 0.045);
}

.app-taxonomy-picker summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 14px;
  color: var(--text);
  cursor: pointer;
  font-size: 15px;
  font-weight: 850;
}

.app-taxonomy-picker summary b {
  flex: 0 0 auto;
  min-width: 34px;
  padding: 6px 9px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-radius: 999px;
  font-size: 12px;
  text-align: center;
}

.app-taxonomy-picker[open] summary {
  border-bottom: 1px solid var(--line);
}

.app-taxonomy-choice-list {
  padding: 12px;
}

.app-selection-tray {
  position: sticky;
  z-index: 6;
  top: 0;
  display: grid;
  gap: 10px;
  padding: 12px;
  background:
    linear-gradient(115deg, rgba(57, 255, 176, 0.16) 0%, rgba(125, 247, 234, 0.1) 46%, rgba(189, 168, 255, 0.08) 100%),
    rgba(249, 255, 253, 0.96);
  border: 1px solid rgba(47, 121, 109, 0.22);
  border-radius: 8px;
  box-shadow: 0 16px 32px rgba(18, 50, 58, 0.1);
  backdrop-filter: blur(18px);
}

.app-selection-tray.is-empty {
  position: static;
  background: rgba(255, 255, 255, 0.78);
  border-style: dashed;
  box-shadow: none;
  backdrop-filter: none;
}

.app-selection-tray-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-selection-tray-copy span {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-selection-tray-copy strong {
  flex: 0 0 auto;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.app-selection-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.app-selection-chip,
.app-selection-more {
  min-height: 34px;
  padding: 7px 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(47, 121, 109, 0.2);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 850;
  line-height: 1;
}

.app-selection-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.app-selection-chip::after {
  content: "×";
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  color: #11413e;
  background: rgba(57, 255, 176, 0.34);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.app-selection-chip:hover {
  border-color: rgba(57, 217, 143, 0.62);
  box-shadow: 0 0 0 4px rgba(57, 255, 176, 0.12);
}

.app-selection-more {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
}

.app-selection-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
}

.app-dependent-empty {
  padding: 16px;
  color: var(--muted);
  background: #ffffff;
  border: 1px dashed #b8ced0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.choice-chip.app-choice {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 14px;
  color: var(--text);
  background: var(--surface);
  border-color: var(--line);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.22;
  box-shadow: 0 8px 18px rgba(18, 50, 58, 0.045);
}

.choice-chip.app-choice::after {
  content: "";
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 1px solid #bcd7da;
  border-radius: 999px;
  background: #ffffff;
}

.choice-chip.app-choice:hover {
  border-color: rgba(57, 217, 143, 0.52);
  box-shadow: 0 12px 26px rgba(18, 50, 58, 0.07);
}

.choice-chip.app-choice.selected {
  color: var(--polar);
  background:
    linear-gradient(135deg, rgba(57, 217, 143, 0.18) 0%, rgba(141, 219, 210, 0.08) 44%, transparent 100%),
    linear-gradient(180deg, #1d5655 0%, #153f43 100%);
  border-color: rgba(57, 217, 143, 0.5);
  box-shadow: 0 14px 30px rgba(57, 217, 143, 0.15);
}

.choice-chip.app-choice.selected::after {
  content: "✓";
  display: grid;
  place-items: center;
  color: #0f3435;
  background: var(--accent);
  border-color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.app-start-grid {
  grid-template-columns: 1fr;
}

.choice-chip.app-choice.app-start-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  grid-template-areas:
    "title check"
    "copy check";
  align-items: center;
  justify-content: stretch;
  gap: 8px 16px;
  min-height: 126px;
  padding: 18px;
  text-align: left;
}

.choice-chip.app-choice.app-start-card::after {
  grid-area: check;
  justify-self: end;
  align-self: center;
  width: 34px;
  height: 34px;
  border-width: 2px;
}

.choice-chip.app-choice.selected.app-start-card::after {
  font-size: 18px;
}

.app-start-card strong,
.app-start-card span {
  display: block;
  min-width: 0;
  max-width: 100%;
}

.app-start-card strong {
  grid-area: title;
  color: inherit;
  overflow-wrap: anywhere;
  font-size: 22px;
  line-height: 1.06;
}

.app-start-card span {
  grid-area: copy;
  color: var(--muted);
  font-size: 15.5px;
  font-weight: 650;
  line-height: 1.36;
}

.choice-chip.app-choice.selected.app-start-card span {
  color: #dff7f4;
}

@media (max-width: 380px) {
  .app-mode-brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .app-start-card {
    min-height: 118px;
    padding: 16px;
  }

  .app-start-card strong {
    font-size: 20px;
  }

  .app-start-card span {
    font-size: 14.5px;
  }
}

.app-url-card,
.app-source-review {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(18, 50, 58, 0.055);
}

.app-field {
  display: grid;
  gap: 8px;
}

.app-field span {
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}

.app-field input {
  width: 100%;
  min-height: 54px;
  padding: 13px 14px;
  color: var(--text);
  background: var(--polar);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  font-size: 15px;
  font-weight: 650;
}

.app-field input:focus {
  border-color: rgba(57, 217, 143, 0.55);
  box-shadow: var(--ring);
}

.app-url-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 10px;
}

.app-url-actions .mini-button {
  min-height: 50px;
}

.app-review-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-review-heading strong {
  color: var(--text);
  font-size: 16px;
}

.app-source-summary {
  display: grid;
  gap: 10px;
}

.app-source-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.app-source-summary-grid div {
  min-height: 78px;
  padding: 12px;
  background: var(--primary-soft);
  border: 1px solid rgba(47, 121, 109, 0.14);
  border-radius: 8px;
}

.app-source-summary-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.app-source-summary-grid strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.app-source-summary-note {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.45;
}

.app-mini-field {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.app-mini-field > span {
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}

.app-save-note {
  align-self: end;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.app-price-card,
.app-alert-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(18, 50, 58, 0.055);
}

.app-price-card span {
  color: #a9c7cc;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.app-price-card strong {
  color: var(--polar);
  font-size: 46px;
  line-height: 1;
  letter-spacing: 0;
}

.app-price-card {
  color: var(--polar);
  background:
    linear-gradient(120deg, rgba(57, 217, 143, 0.2) 0%, rgba(141, 219, 210, 0.1) 38%, rgba(183, 168, 255, 0.05) 74%, transparent 100%),
    linear-gradient(180deg, #1d655c 0%, #1c5b52 100%);
  border-color: rgba(141, 219, 210, 0.22);
  border-left: 6px solid var(--accent);
}

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

.app-price-card .mini-button {
  color: var(--polar);
  background: rgba(141, 219, 210, 0.12);
  border-color: rgba(141, 219, 210, 0.24);
}

.app-alert-card {
  background: #ffffff;
  border-left: 6px solid var(--accent);
}

.app-alert-card strong {
  color: var(--text);
  font-size: 16px;
}

.app-alert-card span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.app-guest-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: rgba(248, 255, 253, 0.94);
  border: 1px solid rgba(141, 219, 210, 0.22);
  border-radius: 8px;
}

.guest-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(18, 50, 58, 0.08);
}

.guest-stepper:last-child {
  border-bottom: 0;
}

.guest-stepper > span {
  color: var(--text);
  font-size: 15px;
  font-weight: 825;
}

.guest-stepper div {
  display: grid;
  grid-template-columns: 48px 48px 48px;
  gap: 8px;
  align-items: center;
}

.guest-stepper strong {
  text-align: center;
  color: var(--text);
  font-size: 18px;
}

.guest-stepper .mini-button {
  min-width: 48px;
  min-height: 48px;
  padding: 0;
}

.app-result-stack {
  display: flex;
  gap: 14px;
  min-width: 0;
  padding: 2px 2px 18px;
  overflow-x: auto;
  scroll-padding-inline: 2px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.app-result-stack::-webkit-scrollbar {
  display: none;
}

.app-result-card {
  flex: 0 0 min(86vw, 360px);
  display: grid;
  gap: 14px;
  min-height: 430px;
  padding: 20px;
  color: var(--polar);
  background:
    linear-gradient(125deg, rgba(57, 217, 143, 0.17) 0%, rgba(141, 219, 210, 0.08) 42%, rgba(183, 168, 255, 0.06) 82%, transparent 100%),
    linear-gradient(180deg, #1b5b56 0%, #1c5557 100%);
  border: 1px solid rgba(141, 219, 210, 0.22);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(18, 50, 58, 0.2);
  scroll-snap-align: start;
}

.app-result-card.is-saved {
  border-color: rgba(57, 217, 143, 0.44);
  box-shadow:
    0 18px 40px rgba(18, 50, 58, 0.18),
    inset 0 0 0 1px rgba(57, 217, 143, 0.18);
}

.app-result-card:nth-child(2) {
  transform: translateY(10px);
}

.app-result-card:nth-child(3) {
  transform: translateY(20px);
}

.app-card-kicker {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  padding: 7px 9px;
  color: #dffcf7;
  background: rgba(57, 217, 143, 0.14);
  border: 1px solid rgba(57, 217, 143, 0.26);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.app-result-card h4 {
  color: var(--polar);
  font-size: 26px;
  line-height: 1.12;
  letter-spacing: 0;
}

.app-result-card p {
  color: #b9d2d7;
  font-size: 14px;
  line-height: 1.45;
}

.app-card-price {
  display: grid;
  gap: 2px;
  margin-top: auto;
}

.app-card-price strong {
  color: var(--polar);
  font-size: 34px;
  line-height: 1;
}

.app-card-price span {
  color: #b9d2d7;
  font-size: 13px;
}

.app-card-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.app-card-facts span {
  min-height: 30px;
  padding: 7px 9px;
  color: #e9fffb;
  background: rgba(248, 255, 253, 0.1);
  border: 1px solid rgba(141, 219, 210, 0.2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.app-card-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.app-result-card .button.ghost {
  color: var(--polar);
  background: rgba(141, 219, 210, 0.12);
  border-color: rgba(141, 219, 210, 0.24);
}

.app-result-detail {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding: 18px;
  overflow: auto;
  background: var(--bg);
}

.detail-close-button {
  justify-self: end;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--polar);
  background: var(--primary-dark);
  border: 1px solid rgba(141, 219, 210, 0.24);
  border-radius: 8px;
  font-weight: 850;
}

.app-detail-body {
  display: grid;
  gap: 14px;
  align-content: start;
}

.app-detail-body h3 {
  color: var(--text);
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: 0;
}

.app-detail-body p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

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

.app-detail-grid div {
  min-height: 84px;
  padding: 13px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(18, 50, 58, 0.045);
}

.app-detail-grid span,
.app-detail-section span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.app-detail-grid strong {
  display: block;
  margin-top: 7px;
  font-size: 16px;
  line-height: 1.25;
  color: var(--text);
}

.app-detail-section {
  display: grid;
  gap: 9px;
  padding: 13px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(18, 50, 58, 0.045);
}

.app-detail-section ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-detail-section li {
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
}

.app-bottom-bar {
  position: sticky;
  z-index: 4;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 10px 14px 14px;
  background:
    linear-gradient(100deg, rgba(57, 217, 143, 0.12) 0%, rgba(141, 219, 210, 0.07) 45%, transparent 100%),
    rgba(21, 63, 67, 0.96);
  border-top: 1px solid rgba(141, 219, 210, 0.16);
  backdrop-filter: blur(16px);
}

.app-bottom-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 10px;
}

.app-bottom-bar .button {
  width: 100%;
  min-height: 54px;
}

.app-sticky-board {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px 11px;
  color: var(--polar);
  background:
    linear-gradient(115deg, rgba(57, 255, 176, 0.15) 0%, rgba(125, 247, 234, 0.08) 48%, rgba(189, 168, 255, 0.08) 100%),
    rgba(12, 47, 49, 0.74);
  border: 1px solid rgba(125, 247, 234, 0.16);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.app-sticky-board[hidden] {
  display: none;
}

.app-sticky-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.app-sticky-board-head span {
  min-width: 0;
  color: var(--glacial);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-sticky-board-head strong {
  flex: 0 0 auto;
  color: #eafffa;
  font-size: 12.5px;
  font-weight: 900;
}

.app-sticky-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.app-sticky-chip,
.app-sticky-more {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  max-width: 100%;
  padding: 6px 9px;
  color: #eafffa;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(125, 247, 234, 0.16);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
}

.app-sticky-chip {
  gap: 6px;
  overflow-wrap: anywhere;
}

.app-sticky-chip:not(.is-locked)::after {
  content: "×";
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  color: #0d3a3a;
  background: var(--accent);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.app-sticky-chip.is-locked {
  color: #d8f4f0;
}

.app-sticky-more {
  color: var(--glacial);
}

.app-sticky-empty {
  margin: 0;
  color: #d8f4f0;
  font-size: 12.5px;
  font-weight: 750;
  line-height: 1.35;
}

.sheet-open {
  overflow: hidden;
}

.save-watch-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: end;
  padding: 16px;
}

.sheet-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 45, 49, 0.42);
  border: 0;
  backdrop-filter: blur(10px);
}

.save-watch-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  width: min(100%, 520px);
  max-height: min(720px, calc(100vh - 32px));
  margin: 0 auto;
  padding: 20px;
  overflow: auto;
  background:
    linear-gradient(135deg, rgba(57, 217, 143, 0.08), rgba(141, 219, 210, 0.08) 42%, rgba(255, 255, 255, 0) 78%),
    #ffffff;
  border: 1px solid rgba(141, 219, 210, 0.34);
  border-radius: 12px;
  box-shadow: 0 30px 90px rgba(13, 45, 49, 0.28);
}

.sheet-close-button {
  justify-self: end;
  min-height: 40px;
  padding: 8px 11px;
  color: var(--primary);
  background: rgba(47, 121, 109, 0.08);
  border: 1px solid rgba(47, 121, 109, 0.16);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 850;
}

.save-watch-heading {
  display: grid;
  gap: 7px;
}

.save-watch-heading h3 {
  margin: 0;
  color: var(--text);
  font-size: 25px;
  line-height: 1.12;
  letter-spacing: 0;
}

.save-watch-heading span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.save-watch-trip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px;
  background: var(--primary-soft);
  border: 1px solid rgba(47, 121, 109, 0.16);
  border-radius: 8px;
}

.save-watch-trip div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.save-watch-trip div:last-child {
  text-align: right;
}

.save-watch-trip strong,
.save-watch-trip span {
  display: block;
}

.save-watch-trip strong {
  color: var(--text);
  font-size: 16px;
  line-height: 1.2;
}

.save-watch-trip span {
  color: var(--muted);
  font-size: 13px;
}

.save-watch-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 10px;
}

.save-watch-actions .button {
  min-height: 52px;
}

#home,
#profile,
#matches,
#setup,
#trackers,
#activity {
  scroll-margin-top: 24px;
}

.internal-section {
  display: none !important;
}

.internal-action,
.internal-metric {
  display: none !important;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 0;
  padding: 40px 0 18px;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: 0;
  min-width: 0;
  max-width: 850px;
}

.topbar h2 {
  max-width: 820px;
  margin-top: 8px;
  font-size: 54px;
  font-weight: 825;
  line-height: 1.02;
  letter-spacing: 0;
}

.topbar-copy {
  max-width: 690px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.customer-path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.customer-path article {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 6px 12px;
  align-items: start;
  min-width: 0;
  padding: 20px 22px;
  overflow: hidden;
  background: transparent;
  border-right: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.customer-path article:last-child {
  border-right: 0;
}

.customer-path article > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #ffffff;
  background: var(--primary);
  border-radius: 8px;
  font-weight: 800;
}

.customer-path strong {
  align-self: center;
  font-size: 15px;
}

.customer-path p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.customer-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-width: 1px 0;
  border-radius: 0;
}

.customer-trust div {
  min-width: 0;
  padding: 14px 18px;
  background: transparent;
  border-right: 1px solid var(--line);
  border-radius: 0;
}

.customer-trust div:last-child {
  border-right: 0;
}

.customer-trust strong,
.customer-trust span {
  display: block;
}

.customer-trust strong {
  font-size: 13px;
}

.customer-trust span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.topbar-actions,
.button-row,
.passport-step-actions,
.tracker-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.topbar-actions {
  margin-top: 20px;
}

#installButton {
  order: 4;
}

#resetDemoButton {
  order: 5;
}

.button,
.mini-button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 750;
  white-space: nowrap;
  transition:
    transform 140ms ease,
    background 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.button:hover,
.mini-button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
.mini-button:focus-visible,
.nav-item:focus-visible,
.check-card:focus-within,
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  box-shadow: var(--ring);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  text-decoration: none;
}

.mini-button {
  padding: 8px 10px;
  color: var(--text);
  background: #ffffff;
  border-color: var(--line);
}

.button.primary,
.primary-mini {
  color: #0f3435;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 10px 22px rgba(57, 217, 143, 0.18);
}

.button.primary:hover,
.primary-mini:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #ffffff;
}

.button.secondary {
  color: #ffffff;
  background: var(--secondary);
  border-color: var(--secondary);
  box-shadow: 0 10px 22px rgba(22, 73, 91, 0.15);
}

.button.ghost {
  color: var(--text);
  background: #ffffff;
  border-color: var(--line);
}

.button.text-button {
  color: var(--muted);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.button.text-button:hover {
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.52);
}

.danger-mini {
  color: var(--danger);
}

.metrics {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(154px, 1fr));
  gap: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.customer-cockpit {
  display: grid;
  gap: 18px;
  margin: 8px 0 22px;
}

.cockpit-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-top: 4px;
}

.cockpit-heading h3 {
  margin: 6px 0 0;
  color: var(--text);
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: 0;
}

.cockpit-heading > span {
  max-width: 300px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-align: right;
}

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

.cockpit-tile {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 190px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid rgba(17, 23, 27, 0.1);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(18, 50, 58, 0.055);
}

.cockpit-tile-primary {
  color: var(--polar);
  background:
    linear-gradient(120deg, rgba(57, 217, 143, 0.2) 0%, rgba(141, 219, 210, 0.1) 45%, rgba(183, 168, 255, 0.05) 82%, transparent 100%),
    linear-gradient(180deg, #1d655c 0%, #1c5557 100%);
  border-color: rgba(141, 219, 210, 0.24);
}

.tile-kicker {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cockpit-tile-primary .tile-kicker {
  color: #dffcf7;
}

.cockpit-tile h4 {
  margin: 0;
  color: var(--text);
  font-size: 21px;
  line-height: 1.14;
  letter-spacing: 0;
}

.cockpit-tile h4 strong {
  color: var(--primary-dark);
  font-size: 32px;
  line-height: 0.95;
}

.cockpit-tile-primary h4,
.cockpit-tile-primary p {
  color: var(--polar);
}

.cockpit-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
}

.cockpit-brief-tile {
  gap: 10px;
}

.brief-mini-list {
  display: grid;
  gap: 0;
  margin-top: auto;
  border-top: 1px solid var(--line);
}

.brief-mini-list a {
  display: grid;
  grid-template-columns: minmax(76px, 0.45fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 44px;
  padding: 10px 0;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.brief-mini-list a:last-child {
  border-bottom: 0;
}

.brief-mini-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.brief-mini-list strong {
  min-width: 0;
  font-size: 14px;
  line-height: 1.25;
}

.tile-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: auto;
}

.cockpit-tile-primary .button.ghost {
  color: var(--polar);
  background: rgba(141, 219, 210, 0.12);
  border-color: rgba(141, 219, 210, 0.25);
}

.tile-link {
  align-self: end;
  width: fit-content;
  min-height: 38px;
  margin-top: auto;
  padding: 10px 12px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border: 1px solid rgba(47, 121, 109, 0.16);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.tile-stat-row {
  display: grid;
  gap: 8px;
}

.tile-stat-row span,
.tile-note {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  gap: 4px;
  padding: 7px 9px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border: 1px solid rgba(47, 121, 109, 0.14);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.tile-stat-row em {
  font-style: normal;
}

.operator-counts {
  display: none !important;
}

.workspace-drawer {
  margin: 14px 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(17, 23, 27, 0.1);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(18, 50, 58, 0.052);
}

.workspace-drawer summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}

.workspace-drawer summary::-webkit-details-marker {
  display: none;
}

.workspace-drawer summary span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.workspace-drawer summary b {
  color: var(--text);
  font-size: 18px;
  line-height: 1.2;
}

.workspace-drawer summary em {
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
  font-weight: 650;
  line-height: 1.35;
}

.workspace-drawer summary > strong {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 9px 12px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border: 1px solid rgba(47, 121, 109, 0.16);
  border-radius: 8px;
  font-size: 13px;
}

.workspace-drawer[open] summary {
  border-bottom: 1px solid var(--line);
}

.workspace-drawer[open] summary > strong {
  color: var(--polar);
  background: var(--primary-dark);
  border-color: rgba(21, 63, 67, 0.28);
}

.drawer-content {
  padding: 18px;
}

.passport-drawer-content .passport-panel {
  max-width: 1040px;
  margin: 0 auto;
}

.drawer-panel {
  margin: 0;
  border: 0;
  box-shadow: none;
}

.operator-lab-grid {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.operator-drawer .internal-section {
  display: grid !important;
}

.operator-drawer .adapter-panel.internal-section {
  display: grid !important;
}

.metric {
  min-width: 0;
  min-height: 84px;
  padding: 15px 16px;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.metric:last-child {
  border-right: 0;
}

.metric:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: none;
}

.metric span,
.tracker-meta span,
.event-item span,
.empty-state span {
  color: var(--muted);
  font-size: 13px;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 26px;
  letter-spacing: 0;
}

.metric span {
  font-weight: 650;
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 22px;
}

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

.passport-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
}

.revenue-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 22px;
}

.panel {
  min-width: 0;
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(20, 38, 57, 0.06);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.passport-panel,
.recommendations-panel,
.intake-panel,
.baseline-panel {
  border-color: #ccdbe2;
}

.heading-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.panel h3 {
  margin-top: 3px;
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: 0;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.field span {
  color: #344054;
  font-size: 13px;
  font-weight: 750;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 12px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(16, 32, 43, 0.02);
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

.field input,
.field select {
  min-height: 44px;
}

.field textarea {
  min-height: 86px;
  resize: vertical;
  line-height: 1.45;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
}

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

.wide-field {
  grid-column: 1 / -1;
}

.disclosure-box {
  display: grid;
  gap: 14px;
  margin: 4px 0 16px;
  padding: 15px;
  background: #f8fbfc;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
}

.profile-invite,
.profile-nudge,
.alert-plan {
  display: grid;
  gap: 10px;
  margin: 4px 0 16px;
  padding: 16px;
  background:
    linear-gradient(180deg, #edf9f7 0%, #e2f1ef 100%);
  border: 1px solid #b9dfdc;
  border-radius: 8px;
}

.profile-invite strong,
.profile-invite span,
.profile-nudge h4,
.profile-nudge p,
.alert-plan h4,
.alert-plan p {
  margin: 0;
}

.profile-invite strong {
  color: var(--primary-dark);
  font-size: 16px;
}

.passport-stepper {
  display: grid;
  gap: 12px;
  margin: 2px 0 18px;
}

.passport-stepper-copy {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.passport-stepper-copy span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.passport-stepper-copy strong {
  color: var(--primary-dark);
  font-size: 15px;
}

.passport-progress {
  height: 8px;
  overflow: hidden;
  background: #e5ecec;
  border-radius: 999px;
}

.passport-progress i {
  display: block;
  width: 20%;
  height: 100%;
  background: var(--primary);
  border-radius: inherit;
  transition: width 180ms ease;
}

.passport-step-list {
  min-height: 404px;
}

.passport-step {
  display: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.passport-step.is-active {
  display: block;
}

.passport-step legend {
  width: 100%;
  margin: 0 0 6px;
  padding: 0;
  color: var(--text);
  font-size: 24px;
  font-weight: 760;
  line-height: 1.12;
}

.passport-step p {
  max-width: 680px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.choice-section {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
}

.choice-label {
  color: #344054;
  font-size: 14px;
  font-weight: 800;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(154px, 1fr));
  gap: 9px;
}

.compact-choice-grid {
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
}

.choice-chip {
  min-height: 48px;
  padding: 11px 12px;
  color: #21323b;
  background: #ffffff;
  border: 1px solid #ccd8df;
  border-radius: 8px;
  box-shadow: 0 7px 18px rgba(20, 38, 57, 0.04);
  font-weight: 760;
  text-align: left;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    box-shadow 140ms ease;
}

.choice-chip:hover {
  border-color: #97b9b7;
}

.choice-chip.selected {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 10px 22px rgba(23, 79, 73, 0.18);
}

.assisted-field textarea {
  min-height: 68px;
  background: #fbfcfc;
}

.source-field {
  display: none;
}

.taxonomy-picker {
  margin: 0 0 14px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #d5e0e2;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(20, 38, 57, 0.045);
}

.taxonomy-list {
  display: grid;
  gap: 10px;
}

.taxonomy-list .taxonomy-picker {
  margin: 0;
}

.taxonomy-picker summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 13px 14px;
  color: var(--text);
  cursor: pointer;
  list-style-position: inside;
}

.taxonomy-picker summary span,
.taxonomy-picker summary strong,
.taxonomy-picker summary em {
  display: block;
}

.taxonomy-picker summary span {
  min-width: 0;
}

.taxonomy-picker summary strong {
  font-size: 15px;
  line-height: 1.2;
}

.taxonomy-picker summary em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.35;
}

.taxonomy-picker summary b {
  flex: 0 0 auto;
  padding: 6px 9px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-radius: 999px;
  font-size: 12px;
}

.taxonomy-picker[open] summary {
  border-bottom: 1px solid #e1e8ea;
}

.taxonomy-menu {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.taxonomy-group {
  display: grid;
  gap: 9px;
}

.taxonomy-group > strong {
  color: #344054;
  font-size: 13px;
}

.taxonomy-empty {
  padding: 14px;
  color: var(--muted);
  background: #ffffff;
  border: 1px dashed #b8ced0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.caution-picker summary b {
  color: var(--warning);
  background: var(--warning-bg);
}

.optional-entry {
  grid-column: 1 / -1;
  margin: 0 0 12px;
  border: 1px solid #d9e3e6;
  border-radius: 8px;
  background: #fbfcfc;
}

.optional-entry summary {
  min-height: 46px;
  padding: 12px 13px;
  color: var(--primary-dark);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.optional-entry summary::marker {
  color: var(--primary);
}

.optional-entry .field {
  margin: 0;
  padding: 0 13px 13px;
}

.deal-line-card {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #cddadb;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(20, 38, 57, 0.055);
}

.deal-line-card span,
.deal-line-card p {
  margin: 0;
}

.deal-line-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.deal-line-card strong {
  color: var(--primary-dark);
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 42px;
  line-height: 1;
}

.deal-line-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.price-nudges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.price-nudges .mini-button {
  min-height: 38px;
}

.alert-control-card {
  display: grid;
  gap: 4px;
  padding: 14px;
  color: #24423f;
  background: #eef7f5;
  border: 1px solid #c7dfdc;
  border-radius: 8px;
}

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

.alert-control-card span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.passport-step .field span {
  font-size: 14px;
}

.passport-step .field input,
.passport-step .field select,
.passport-step .field textarea {
  min-height: 50px;
  padding: 13px 14px;
  font-size: 16px;
}

.passport-step .field textarea {
  min-height: 108px;
}

.passport-consent {
  margin-top: 6px;
}

.passport-step-actions {
  align-items: center;
  margin-top: 2px;
}

.passport-step-actions .button {
  min-height: 50px;
}

.passport-step-actions .secondary {
  margin-left: auto;
}

.passport-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.passport-steps span {
  min-height: 36px;
  padding: 8px 10px;
  color: #174b4f;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid #c5e3e0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.profile-invite span,
.profile-nudge p,
.alert-plan p,
.profile-mini-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.profile-nudge h4,
.alert-plan h4 {
  margin-top: 3px;
  font-size: 17px;
}

.alert-plan {
  background: #f8fbff;
  border-color: #cbd9ef;
}

.setup-profile-summary {
  display: grid;
  gap: 10px;
}

.profile-strength {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #cae6e3;
  border-radius: 8px;
}

.profile-strength strong,
.profile-strength span,
.profile-strength b {
  display: block;
}

.profile-strength span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.profile-strength b {
  color: var(--primary);
  font-size: 26px;
}

.profile-clues {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-clues span {
  padding: 7px 9px;
  color: #27565b;
  background: #ffffff;
  border: 1px solid #cae6e3;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 750;
}

.disclosure-box h4 {
  margin: 3px 0 6px;
  font-size: 16px;
}

.disclosure-box p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.check-card {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

.check-card:focus-within {
  border-color: var(--primary);
}

.check-card input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--primary);
}

.check-card strong,
.check-card em {
  display: block;
}

.check-card strong {
  font-size: 14px;
}

.check-card em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.35;
}

.message {
  min-height: 44px;
  margin: 6px 0 16px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 650;
}

.message.info {
  color: #284b8f;
  background: #edf4ff;
  border: 1px solid #c8dcff;
}

.message.success {
  color: var(--success);
  background: var(--success-bg);
  border: 1px solid #bee8cf;
}

.message.warning {
  color: var(--warning);
  background: var(--warning-bg);
  border: 1px solid #f1d6a8;
}

.message.danger {
  color: var(--danger);
  background: var(--danger-bg);
  border: 1px solid #f4c4c8;
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  max-width: 100%;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  white-space: normal;
}

.status.success {
  color: var(--success);
  background: var(--success-bg);
}

.status.warning {
  color: var(--warning);
  background: var(--warning-bg);
}

.status.danger {
  color: var(--danger);
  background: var(--danger-bg);
}

.status.neutral {
  color: #475467;
  background: var(--neutral-bg);
}

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

.detail-grid div {
  min-height: 80px;
  padding: 14px;
  background: var(--surface-strong);
  border: 1px solid #dce5ef;
  border-radius: 8px;
}

.detail-grid dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-grid dd {
  margin: 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.tracker-list,
.event-list,
.insight-list,
.offer-list,
.recommendation-list,
.gate-list,
.protocol-list {
  display: grid;
  gap: 12px;
}

.tracker-item,
.recommendation-item {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(20, 38, 57, 0.055);
  overflow: hidden;
}

.recommendation-item-focus {
  border-color: rgba(57, 255, 176, 0.78);
  background:
    linear-gradient(135deg, rgba(57, 255, 176, 0.08), rgba(125, 247, 234, 0.06) 44%, rgba(189, 168, 255, 0.08) 100%),
    #ffffff;
  box-shadow:
    0 0 0 4px rgba(57, 255, 176, 0.18),
    0 0 26px rgba(125, 247, 234, 0.22),
    0 12px 30px rgba(20, 38, 57, 0.085);
}

.recommendation-item-focus::after {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, var(--aurora-green), var(--aurora-cyan), var(--aurora-violet));
  box-shadow: 0 0 18px var(--aurora-glow);
}

.tracker-item::before,
.recommendation-item::before {
  display: none;
}

.tracker-main,
.recommendation-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, auto);
  gap: 16px;
  align-items: start;
}

.recommendation-head {
  padding: 14px;
  background: #fbfefd;
  border: 1px solid rgba(47, 121, 109, 0.14);
  border-radius: 8px;
}

.tracker-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.tracker-item h4,
.recommendation-item h4 {
  margin: 0;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: 0;
}

.tracker-item p,
.recommendation-item p,
.event-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.price-stack {
  text-align: right;
  min-width: 0;
}

.price-stack strong {
  display: block;
  color: #0d3f44;
  font-size: 26px;
  line-height: 1.1;
}

.price-stack span,
.price-stack em {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.decision-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid #d7e2e3;
  border-radius: 8px;
  background: #f8fbfa;
}

.decision-banner.success {
  background: var(--success-bg);
  border-color: #bee8cf;
}

.decision-banner.warning {
  background: var(--warning-bg);
  border-color: #f1d6a8;
}

.decision-banner.neutral {
  background: var(--neutral-bg);
  border-color: #d7dee8;
}

.decision-banner span,
.decision-banner strong,
.decision-banner p {
  display: block;
}

.decision-banner span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.decision-banner strong {
  margin-top: 3px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.2;
}

.decision-banner p {
  max-width: 740px;
  margin: 6px 0 0;
  color: #42505a;
  font-size: 14px;
  line-height: 1.45;
}

.decision-banner-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.decision-banner-meta span {
  min-height: 30px;
  padding: 7px 9px;
  color: #344054;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(17, 23, 27, 0.08);
  border-radius: 999px;
  text-transform: none;
}

.watch-summary-card {
  display: grid;
  gap: 5px;
  padding: 14px;
  background:
    linear-gradient(120deg, rgba(57, 217, 143, 0.08), rgba(141, 219, 210, 0.08)),
    #f9fffc;
  border: 1px solid rgba(47, 121, 109, 0.16);
  border-radius: 8px;
}

.watch-summary-card strong,
.watch-summary-card span,
.watch-summary-card em {
  display: block;
}

.watch-summary-card strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
}

.watch-summary-card span,
.watch-summary-card em {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.watch-summary-card em {
  font-style: normal;
  font-weight: 750;
}

.tracker-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tracker-meta span {
  padding: 6px 9px;
  background: var(--neutral-bg);
  border: 1px solid #dce5ed;
  border-radius: 999px;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.summary-pill {
  min-height: 70px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #dce5ef;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(20, 38, 57, 0.04);
}

.summary-pill span,
.summary-pill strong {
  display: block;
}

.summary-pill span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.summary-pill strong {
  margin-top: 7px;
  overflow-wrap: anywhere;
}

.recommendation-grid {
  display: grid;
  grid-template-columns: minmax(230px, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #dce5ef;
  border-radius: 8px;
}

.score-card,
.explain-card {
  padding: 14px;
  background: #f8faf9;
  border: 1px solid #dce5ef;
  border-radius: 8px;
}

.score-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 36px;
  gap: 10px;
  align-items: center;
  min-height: 30px;
}

.score-row span,
.score-row strong {
  font-size: 12px;
}

.score-track {
  height: 8px;
  overflow: hidden;
  background: #d9e4ef;
  border-radius: 999px;
}

.score-track i {
  display: block;
  height: 100%;
  background: var(--primary);
  border-radius: inherit;
}

.explain-card {
  display: grid;
  gap: 8px;
}

.explain-card strong {
  font-size: 13px;
}

.explain-card ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.value-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
  background: #fbfefd;
  border: 1px solid #dce5ef;
  border-radius: 8px;
}

.value-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 6px 8px;
  background: #f7fafc;
  border: 1px solid #d6e0eb;
  border-radius: 8px;
  color: #344054;
  font-size: 12px;
  font-weight: 750;
}

.value-chip em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.value-chip.verified {
  color: var(--success);
  background: var(--success-bg);
  border-color: #bee8cf;
}

.value-chip.estimated {
  color: var(--warning);
  background: var(--warning-bg);
  border-color: #f1d6a8;
}

.value-chip.unknown {
  color: #475467;
  background: #f3f5f8;
  border-color: #d7dee8;
}

.decision-card {
  display: grid;
  grid-template-columns: minmax(190px, 0.35fr) minmax(0, 0.65fr);
  gap: 14px;
  padding: 15px;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.decision-score {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 13px;
  background: #eef5f3;
  border: 1px solid #dce5ef;
  border-radius: 8px;
}

.decision-score span,
.mini-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.decision-score strong {
  font-size: 42px;
  line-height: 1;
}

.decision-score em {
  justify-self: start;
  font-style: normal;
}

.decision-copy {
  display: grid;
  align-content: start;
  gap: 8px;
}

.decision-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

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

.readiness-card,
.alternatives-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #f8fbfc;
  border: 1px solid #dce5ef;
  border-radius: 8px;
}

.mini-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.readiness-list,
.alternative-list {
  display: grid;
  gap: 8px;
}

.readiness-row,
.alternative-item {
  display: grid;
  gap: 3px;
  min-height: 58px;
  padding: 10px;
  width: 100%;
  color: var(--text);
  text-align: left;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.alternative-item:hover {
  border-color: rgba(47, 121, 109, 0.32);
  box-shadow: 0 10px 22px rgba(18, 50, 58, 0.07);
  transform: translateY(-1px);
}

.alternative-item:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.readiness-row {
  border-left-width: 4px;
}

.readiness-row.ready {
  border-left-color: var(--success);
}

.readiness-row.review {
  border-left-color: var(--warning);
}

.readiness-row.blocked {
  border-left-color: var(--danger);
}

.readiness-row strong,
.alternative-item strong {
  font-size: 13px;
}

.readiness-row span,
.alternative-item span,
.alternative-item em {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.alternative-item em {
  font-style: normal;
  font-weight: 750;
}

.comparison-panel {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 14px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(57, 217, 143, 0.08), rgba(141, 219, 210, 0.08) 45%, transparent 100%),
    #ffffff;
  border: 1px solid rgba(47, 121, 109, 0.18);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(18, 50, 58, 0.065);
}

.comparison-panel::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, rgba(57, 255, 176, 0.6), rgba(125, 247, 234, 0.5), rgba(189, 168, 255, 0.55));
}

.comparison-panel-focus {
  border-color: rgba(57, 255, 176, 0.82);
  background:
    linear-gradient(135deg, rgba(57, 255, 176, 0.14), rgba(125, 247, 234, 0.08) 42%, rgba(189, 168, 255, 0.1) 100%),
    #ffffff;
  box-shadow:
    0 0 0 4px rgba(57, 255, 176, 0.2),
    0 0 34px rgba(125, 247, 234, 0.26),
    0 0 46px rgba(189, 168, 255, 0.16),
    0 12px 28px rgba(18, 50, 58, 0.09);
}

.comparison-panel-focus::before {
  height: 6px;
  background: linear-gradient(90deg, var(--aurora-green), var(--aurora-cyan), var(--aurora-violet));
  box-shadow: 0 0 22px var(--aurora-glow);
}

.comparison-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.comparison-heading div {
  display: grid;
  gap: 3px;
}

.comparison-heading strong {
  font-size: 16px;
}

.comparison-heading span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

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

.compare-option {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.compare-option.current {
  background:
    linear-gradient(135deg, rgba(57, 255, 176, 0.09), rgba(125, 247, 234, 0.06) 50%, rgba(189, 168, 255, 0.08) 100%),
    rgba(255, 255, 255, 0.9);
  border-color: rgba(57, 255, 176, 0.46);
  box-shadow:
    inset 0 0 0 1px rgba(125, 247, 234, 0.18),
    0 10px 24px rgba(57, 255, 176, 0.08);
}

.compare-option-heading {
  display: grid;
  gap: 4px;
}

.compare-option-heading span,
.compare-current-label {
  width: fit-content;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.compare-option-heading span {
  padding: 5px 7px;
}

.compare-current-label {
  min-height: 36px;
  padding: 10px 11px;
}

.compare-option-heading strong {
  color: var(--text);
  font-size: 16px;
  line-height: 1.18;
}

.compare-option-heading em,
.compare-price span,
.compare-option p {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.compare-price {
  display: grid;
  gap: 2px;
}

.compare-price strong {
  font-size: 20px;
}

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

.compare-metrics div {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px;
  background: #f8fbfc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.compare-metrics span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.compare-metrics strong {
  font-size: 13px;
}

.mini-button.intent-active {
  color: var(--primary);
  background: var(--primary-soft);
  border-color: #9ccfd0;
}

.recommendation-item > .tracker-actions {
  padding: 14px;
  background: #fbfefd;
  border: 1px solid #dce5ef;
  border-radius: 8px;
}

.event-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 68px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(20, 38, 57, 0.04);
}

.event-item div {
  display: grid;
  gap: 3px;
}

.event-item div:last-child {
  text-align: right;
}

.alert-event {
  border-left: 4px solid var(--accent);
  background: #fffdfb;
}

.booking-event {
  border-left: 4px solid var(--secondary);
}

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

.model-card,
.insight-item,
.offer-item {
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(20, 38, 57, 0.04);
}

.model-card strong,
.model-card span,
.offer-item strong,
.offer-item span {
  display: block;
}

.model-card strong {
  margin-bottom: 8px;
}

.model-card span,
.insight-item p,
.offer-item p,
.privacy-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.insight-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.insight-row strong,
.insight-row span {
  display: block;
}

.cohort-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.cohort-stats span,
.privacy-note {
  padding: 6px 8px;
  background: var(--neutral-bg);
  border-radius: 8px;
}

.offer-item {
  display: grid;
  gap: 10px;
}

.offer-item p {
  margin: 0;
}

.validation-form {
  align-content: start;
}

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

.gate-item,
.protocol-list > div {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.gate-item.passed {
  border-color: rgba(34, 118, 80, 0.35);
  background: var(--success-bg);
}

.gate-head,
.gate-foot {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.gate-head strong,
.protocol-list strong {
  display: block;
}

.gate-head span,
.gate-foot span,
.protocol-list span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.gate-foot strong {
  white-space: nowrap;
}

.gate-meter {
  height: 8px;
  overflow: hidden;
  background: #d9e4ef;
  border-radius: 999px;
}

.gate-meter span {
  display: block;
  height: 100%;
  background: var(--primary);
  border-radius: inherit;
}

.empty-state {
  display: grid;
  gap: 8px;
  place-items: center;
  min-height: 156px;
  padding: 26px;
  text-align: center;
  background: #ffffff;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.empty-state strong {
  font-size: 16px;
}

.empty-state.compact {
  min-height: 88px;
}

.adapter-panel pre {
  max-height: 420px;
  margin: 0;
  padding: 16px;
  overflow: auto;
  color: #d8e7ff;
  background: #111827;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.55;
}

.export-preview {
  max-height: 280px;
  margin: 14px 0 0;
  padding: 14px;
  overflow: auto;
  color: #d8e7ff;
  background: #111827;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
}

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

  .sidebar {
    position: sticky;
    z-index: 10;
    top: 0;
    height: auto;
    padding: max(14px, env(safe-area-inset-top)) 18px 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 28px rgba(18, 35, 50, 0.16);
  }

  .sidebar {
    gap: 14px;
  }

  .sidebar .brand-block {
    justify-content: space-between;
  }

  .source-health {
    margin-top: 0;
  }

  .nav-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
  }

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

  .nav-item {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.07);
  }

  .source-health {
    display: none;
  }

  .workspace {
    padding-top: 22px;
  }

  .app-mode {
    min-height: calc(100svh - 140px);
  }

  .app-mode-shell {
    min-height: min(720px, calc(100svh - 154px));
  }

  #appMode,
  #home,
  #profile,
  #matches,
  #setup,
  #trackers,
  #activity {
    scroll-margin-top: 134px;
  }

  .topbar h2 {
    font-size: 38px;
  }

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

  .layout-grid,
  .activity-grid,
  .revenue-grid,
  .passport-layout,
  .cockpit-grid,
  .recommendation-grid,
  .decision-banner,
  .decision-card,
  .decision-grid,
  .comparison-grid,
  .customer-path,
  .customer-trust {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 760px) {
  body {
    background: #edf3f5;
  }

  .workspace {
    gap: 16px;
    padding: 16px 14px max(24px, env(safe-area-inset-bottom));
  }

  .app-mode {
    min-height: calc(100svh - 136px);
    place-items: stretch;
  }

  .app-mode-shell {
    width: 100%;
    min-height: calc(100svh - 136px);
    border-color: rgba(17, 23, 27, 0.08);
    box-shadow: none;
  }

  .app-mode-top {
    padding: 16px 16px 12px;
  }

  .app-mode-top h2 {
    font-size: 18px;
  }

  .app-screen {
    gap: 16px;
    padding: 22px 16px 24px;
  }

  .app-screen-copy h3 {
    font-size: 30px;
  }

  .app-choice-list,
  .app-choice-list.compact-choice-grid {
    grid-template-columns: 1fr;
  }

  .app-result-card {
    flex-basis: calc(100vw - 64px);
    min-height: 408px;
  }

  .save-watch-sheet {
    padding: 10px;
  }

  .save-watch-panel {
    max-height: calc(100svh - 20px);
    padding: 18px;
    border-radius: 10px;
  }

  .save-watch-trip,
  .save-watch-actions {
    grid-template-columns: 1fr;
  }

  .save-watch-trip div:last-child {
    text-align: left;
  }

  .app-bottom-bar {
    padding: 12px;
  }

  .sidebar {
    padding: 12px 12px 10px;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .sidebar .brand-block {
    justify-content: flex-start;
  }

  .nav-list {
    margin-left: 0;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-block h1 {
    font-size: 18px;
  }

  .brand-block p {
    font-size: 12px;
  }

  .topbar,
  .panel-heading,
  .tracker-main,
  .recommendation-head,
  .event-item {
    display: flex;
    align-items: stretch;
    flex-direction: column;
  }

  .topbar,
  .panel-heading,
  .event-item {
    display: flex;
  }

  .topbar {
    gap: 14px;
    padding: 14px;
  }

  .topbar h2 {
    font-size: 31px;
    line-height: 1.06;
  }

  .topbar-copy {
    font-size: 14px;
  }

  .topbar-actions,
  .tile-actions,
  .button-row,
  .passport-step-actions,
  .tracker-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button,
  .mini-button {
    width: 100%;
    white-space: normal;
  }

  .tracker-actions .mini-button {
    min-height: 48px;
  }

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

  .customer-path {
    gap: 10px;
  }

  .customer-path article {
    padding: 14px;
  }

  .metric {
    min-height: 82px;
    padding: 13px;
  }

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

  .cockpit-heading {
    align-items: start;
    flex-direction: column;
  }

  .cockpit-heading > span {
    max-width: none;
    text-align: left;
  }

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

  .cockpit-tile {
    min-height: auto;
  }

  .workspace-drawer summary {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .workspace-drawer summary > strong {
    width: fit-content;
  }

  .drawer-content {
    padding: 12px;
  }

  .panel {
    padding: 16px;
  }

  .panel h3 {
    font-size: 19px;
  }

  .form-grid,
  .detail-grid,
  .summary-strip,
  .check-grid,
  .passport-steps {
    grid-template-columns: 1fr;
  }

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

  .choice-grid[data-choice-target="passportPriority"] {
    grid-template-columns: 1fr;
  }

  .decision-banner-meta {
    justify-content: flex-start;
  }

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

  .price-nudges .mini-button {
    width: 100%;
  }

  .passport-stepper-copy {
    display: grid;
    gap: 4px;
  }

  .passport-step-list {
    min-height: 0;
  }

  .passport-step legend {
    font-size: 21px;
  }

  .passport-step p {
    font-size: 14px;
  }

  .passport-step-actions .secondary {
    margin-left: 0;
  }

  .passport-steps span {
    text-align: left;
  }

  .price-stack,
  .event-item div:last-child {
    text-align: left;
  }

  .price-stack strong {
    font-size: 26px;
  }

  .score-row {
    grid-template-columns: 82px minmax(0, 1fr) 34px;
  }

  .decision-score strong {
    font-size: 34px;
  }

  .tracker-meta span {
    border-radius: 8px;
  }
}

@media (max-width: 420px) {
  .metrics {
    display: none;
    grid-template-columns: 1fr 1fr;
  }

  .nav-item {
    font-size: 13px;
  }

  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
  }

  .app-step-pill {
    font-size: 11px;
  }

  .app-screen-copy h3 {
    font-size: 28px;
  }

  .app-result-card {
    flex-basis: calc(100vw - 54px);
  }

}
