:root {
  color-scheme: dark;
  --bg: #090a0c;
  --panel: #131417;
  --panel-2: #1a1c20;
  --line: #30343a;
  --line-strong: #515963;
  --text: #f1f4f0;
  --muted: #9ba4aa;
  --soft: #cbd2d6;
  --orange: #f06f2f;
  --green: #42d79d;
  --yellow: #ead36d;
  --red: #ff5d57;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(240, 111, 47, 0.18), transparent 34%),
    radial-gradient(circle at 84% 12%, rgba(66, 215, 157, 0.11), transparent 28%),
    var(--bg);
  color: var(--text);
}

button,
input,
select {
  font: inherit;
}

button,
select,
input {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: #0f1012;
}

button {
  min-height: 44px;
  padding: 0 18px;
  background: var(--orange);
  border-color: #ff8b4f;
  color: #160a04;
  font-weight: 800;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    filter 160ms ease,
    transform 160ms ease;
}

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

button:active {
  transform: translateY(1px);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid rgba(66, 215, 157, 0.78);
  outline-offset: 3px;
}

input,
select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 700;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 20;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--green);
  color: #04100b;
  font-weight: 900;
  transform: translateY(-140%);
}

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

.app-shell {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0 24px;
}

.journey-bar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid rgba(66, 215, 157, 0.34);
  border-radius: var(--radius);
  background: rgba(13, 14, 16, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.journey-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 2px;
  min-width: 0;
}

.journey-summary span {
  grid-row: span 2;
  display: inline-grid;
  place-items: center;
  min-width: 66px;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid rgba(66, 215, 157, 0.45);
  border-radius: 6px;
  background: rgba(66, 215, 157, 0.1);
  color: var(--green);
  font-weight: 950;
}

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

.journey-summary strong {
  color: var(--text);
}

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

.journey-actions button {
  min-height: 44px;
  padding: 0 12px;
  background: #181a1d;
  border-color: var(--line-strong);
  color: var(--soft);
  font-size: 12px;
}

.topbar h1,
.workbench h2,
.section-head h2 {
  margin: 0;
  letter-spacing: 0;
}

.topbar h1 {
  font-size: clamp(34px, 6vw, 76px);
  line-height: 0.9;
  text-transform: uppercase;
}

.topbar-subtitle {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.45;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.data-status,
.score-pill,
#resultCount {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(19, 20, 23, 0.82);
  color: var(--soft);
  white-space: nowrap;
}

.data-status[data-mode="ok"],
#moneyStatus[data-mode="ok"],
#revenueStatus[data-mode="ok"] {
  border-color: rgba(66, 215, 157, 0.5);
  color: var(--green);
}

.data-status[data-mode="warn"],
#moneyStatus[data-mode="warn"],
#revenueStatus[data-mode="warn"] {
  border-color: rgba(234, 211, 109, 0.5);
  color: var(--yellow);
}

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

.layout > * {
  min-width: 0;
}

.control-surface {
  order: 1;
}

.workbench {
  order: 2;
}

.money-surface {
  order: 3;
}

.revenue-surface {
  order: 4;
}

.results-surface {
  order: 5;
}

.candidates-surface {
  order: 6;
}

.vision-surface {
  order: 7;
}

.browser-surface {
  order: 8;
}

.operator-surface,
.research-surface {
  order: 9;
}

.control-surface,
.workbench,
.results-surface,
.candidates-surface,
.browser-surface,
.money-surface,
.revenue-surface,
.operator-surface,
.research-surface {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(19, 20, 23, 0.9);
  box-shadow: var(--shadow);
}

.control-surface {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 20px;
  padding: 18px;
}

.composer-form {
  display: grid;
  gap: 18px;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.example-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.example-chips button {
  min-height: 34px;
  padding: 0 10px;
  border-color: var(--line-strong);
  background: #111316;
  color: var(--soft);
  font-size: 12px;
}

.example-chips button:hover {
  border-color: rgba(66, 215, 157, 0.72);
  color: var(--text);
}

#wordInput {
  min-height: 54px;
  font-size: 28px;
  font-weight: 900;
  text-transform: lowercase;
}

.settings-grid {
  display: grid;
  gap: 12px;
}

.advanced-settings {
  display: grid;
  gap: 12px;
}

.advanced-settings summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  color: var(--green);
  font-size: 13px;
  font-weight: 850;
}

.advanced-settings summary::after {
  content: "+";
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--soft);
}

.advanced-settings[open] summary::after {
  content: "-";
}

.advanced-settings[open] .settings-grid,
.advanced-settings[open] .toggle-row {
  margin-top: 12px;
}

.toggle-row {
  display: grid;
  gap: 10px;
}

.toggle-row label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 650;
}

.toggle-row input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--green);
}

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

.stat-grid div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0d0e10;
}

.stat-grid span {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workbench {
  display: grid;
  gap: 18px;
  min-height: 380px;
  padding: 22px;
}

.workbench-head,
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.workbench h2,
.section-head h2 {
  font-size: 24px;
}

.weapon-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--slot-count, 4), minmax(116px, 1fr));
  gap: 8px;
  min-height: 246px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, #17181a, #26231f 38%, #121315),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 12px);
  scroll-snap-type: x proximity;
}

.weapon-rail::before {
  content: "";
  position: absolute;
  inset: 48% -8% auto;
  height: 32px;
  border-block: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.28);
}

.slot {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 138px auto;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(9, 10, 12, 0.58);
  scroll-snap-align: start;
}

.slot-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 138px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.18), transparent 52%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    #222529;
}

.slot-art img {
  width: min(118px, 82%);
  height: min(118px, 82%);
  object-fit: contain;
  transform: rotate(var(--angle, 0deg));
  opacity: calc(1 - (var(--scrape, 0) * 0.52));
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.55)) contrast(1.1) saturate(1.12);
}

.slot-art::after {
  content: "";
  position: absolute;
  inset: 18px;
  pointer-events: none;
  opacity: calc(var(--scrape, 0) * 0.95);
  background:
    linear-gradient(28deg, transparent 8%, rgba(255, 255, 255, 0.55) 9%, transparent 10% 24%, rgba(255, 255, 255, 0.38) 25%, transparent 26%),
    linear-gradient(153deg, transparent 22%, rgba(0, 0, 0, 0.72) 23%, transparent 24% 72%, rgba(255, 255, 255, 0.35) 73%, transparent 74%);
  mix-blend-mode: screen;
}

.visible-token {
  position: absolute;
  right: 6px;
  bottom: 0;
  padding: 4px 8px;
  border: 1px solid rgba(66, 215, 157, 0.55);
  border-radius: 6px;
  background: rgba(4, 10, 8, 0.82);
  color: var(--green);
  font-size: 26px;
  font-weight: 1000;
  text-transform: uppercase;
}

.slot-meta {
  min-width: 0;
}

.slot-name {
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slot-instructions {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

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

.note {
  min-width: 0;
  padding: 12px;
  border-left: 3px solid var(--orange);
  background: #0d0e10;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
}

.results-surface,
.candidates-surface,
.vision-surface,
.money-surface,
.revenue-surface,
.operator-surface,
.browser-surface,
.research-surface {
  grid-column: 2;
  padding: 18px;
}

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

.result-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0e0f11;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.result-card:hover,
.result-card.active,
.result-card[aria-selected="true"] {
  border-color: rgba(66, 215, 157, 0.72);
  background: rgba(66, 215, 157, 0.07);
}

.result-card:hover {
  transform: translateY(-1px);
}

.result-title {
  margin: 0;
  color: var(--text);
  font-weight: 900;
}

.result-subtitle {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.mini-strip {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.mini-strip img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 6px;
  background: #24272b;
}

.candidate-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.candidate-group {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0e0f11;
}

.candidate-group h3 {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 18px;
  text-transform: uppercase;
}

.craft-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.craft-actions button {
  min-height: 44px;
  padding: 0 12px;
  background: #181a1d;
  border-color: var(--line-strong);
  color: var(--soft);
  font-size: 13px;
}

.craft-actions .primary-action {
  background: var(--green);
  border-color: #78efbd;
  color: #04100b;
}

.craft-actions .secondary-action {
  background: var(--orange);
  border-color: #ff8b4f;
  color: #160a04;
}

.craft-actions .quiet-action {
  background: #101114;
  border-color: var(--line);
}

.craft-actions .danger-action:hover {
  border-color: rgba(255, 93, 87, 0.72);
  color: #ffd5d2;
}

.craft-actions button:hover {
  border-color: rgba(66, 215, 157, 0.72);
  color: var(--text);
  filter: none;
}

.craft-actions .primary-action:hover,
.craft-actions .secondary-action:hover {
  color: #04100b;
  filter: brightness(1.06);
}

.export-box {
  width: 100%;
  min-height: 126px;
  padding: 12px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0d0e10;
  color: var(--muted);
  font: 12px/1.45 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.candidate-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 112px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition:
    background 160ms ease,
    outline-color 160ms ease;
}

.candidate-body {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.candidate-apply {
  min-height: 34px;
  padding: 0 11px;
  background: #181a1d;
  border-color: var(--line-strong);
  color: var(--soft);
  font-size: 12px;
  white-space: nowrap;
}

.candidate-item:hover,
.candidate-item.active {
  background: rgba(66, 215, 157, 0.07);
}

.candidate-item.active {
  outline: 1px solid rgba(66, 215, 157, 0.55);
  outline-offset: -1px;
}

.candidate-item img,
.sticker-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 6px;
  background: #24272b;
}

.candidate-item strong,
.sticker-item strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.candidate-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.sticker-item span {
  display: block;
  margin-top: 2px;
}

.candidate-meta span,
.sticker-item span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.candidate-meta span {
  max-width: 100%;
  padding: 3px 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-chip {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-top: 6px;
  padding: 0 7px;
  border: 1px solid rgba(234, 211, 109, 0.35);
  border-radius: 999px;
  background: rgba(234, 211, 109, 0.08);
  color: var(--yellow);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.price-chip--loading {
  border-color: rgba(66, 215, 157, 0.28);
  background: rgba(66, 215, 157, 0.07);
  color: var(--green);
}

.price-chip--missing {
  border-color: rgba(155, 164, 170, 0.3);
  background: rgba(155, 164, 170, 0.07);
  color: var(--muted);
}

.price-chip--temporary {
  border-color: rgba(234, 211, 109, 0.45);
  background: rgba(234, 211, 109, 0.1);
  color: var(--yellow);
}

.candidate-item em {
  display: block;
  color: var(--green);
  font-size: 11px;
  font-style: normal;
  line-height: 1.25;
}

.candidate-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.market-link,
.slot-link {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.market-link:hover,
.slot-link:hover {
  text-decoration: underline;
}

.slot-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.slot-links .price-chip {
  margin-top: 0;
}

.vision-surface {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(19, 20, 23, 0.9);
  box-shadow: var(--shadow);
}

#visionStatus,
#moneyStatus,
#revenueStatus,
#operatorStatus {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.vision-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0e0f11;
}

.vision-card h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 14px;
}

.vision-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #23272b;
}

.vision-meter span {
  display: block;
  width: var(--value, 0%);
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--green));
}

.vision-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.money-panel {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.money-panel > *,
.money-split > *,
.revenue-panel > * {
  min-width: 0;
}

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

.money-kpi,
.opportunity-card,
.pitch-box {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0e0f11;
}

.money-kpi span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.money-kpi strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 20px;
  font-weight: 950;
}

.money-kpi em {
  display: block;
  margin-top: 4px;
  color: var(--green);
  font-size: 11px;
  font-style: normal;
}

.money-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 12px;
  align-items: start;
}

.opportunity-list {
  display: grid;
  gap: 8px;
}

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

.opportunity-card img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 6px;
  background: #24272b;
}

.opportunity-card strong,
.pitch-box strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.opportunity-card span,
.pitch-box p,
.risk-list li {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.opportunity-tag {
  display: inline-flex;
  width: fit-content;
  margin: 4px 0 2px;
  padding: 3px 7px;
  border: 1px solid rgba(66, 215, 157, 0.32);
  border-radius: 999px;
  background: rgba(66, 215, 157, 0.08);
  color: var(--green) !important;
  font-size: 11px !important;
  font-weight: 850;
}

.opportunity-card button,
.pitch-box button {
  min-height: 44px;
  padding: 0 10px;
  background: #181a1d;
  border-color: var(--line-strong);
  color: var(--soft);
  font-size: 12px;
}

.pitch-box {
  display: grid;
  gap: 10px;
  align-content: start;
}

.pitch-box p {
  margin: 0;
}

.risk-list {
  margin: 0;
  padding-left: 18px;
}

.revenue-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 12px;
  align-items: start;
  margin-top: 16px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.plan-card,
.lead-card,
.owner-alert {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0e0f11;
}

.plan-card {
  display: grid;
  gap: 10px;
  align-content: start;
}

.plan-card strong {
  color: var(--text);
  font-size: 15px;
}

.plan-price {
  color: var(--green);
  font-size: 24px;
  font-weight: 950;
}

.plan-price small:first-child {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.plan-card p,
.lead-card p,
.owner-alert p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.plan-features {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-features li {
  position: relative;
  padding-left: 16px;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.35;
}

.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--green);
}

.plan-card button,
.lead-card button {
  min-height: 44px;
  padding: 0 12px;
  background: var(--green);
  border-color: #78efbd;
  color: #04100b;
  font-size: 12px;
}

.plan-card button[data-payment-missing="true"] {
  background: #181a1d;
  border-color: var(--line-strong);
  color: var(--soft);
}

.lead-card {
  display: grid;
  gap: 10px;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lead-card details {
  display: grid;
  gap: 10px;
}

.lead-card summary {
  cursor: pointer;
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
}

.lead-card details[open] {
  gap: 10px;
}

.lead-card details[open] input {
  margin-top: 10px;
}

.lead-card input,
.lead-card textarea,
.lead-card select {
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0b0c0e;
  color: var(--text);
  font: inherit;
}

.lead-card textarea {
  min-height: 84px;
  padding-top: 10px;
  resize: vertical;
}

.owner-alert {
  border-color: rgba(234, 211, 109, 0.42);
  background: rgba(234, 211, 109, 0.06);
}

.owner-alert strong {
  display: block;
  margin-bottom: 6px;
  color: var(--yellow);
}

.operator-panel {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.operator-controls {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 10px;
}

.operator-controls input {
  min-height: 38px;
}

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

.operator-kpi,
.lead-row,
.plan-mix {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0e0f11;
}

.operator-kpi span,
.lead-row span,
.plan-mix span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.operator-kpi strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 20px;
  font-weight: 950;
}

.operator-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
}

.lead-list,
.plan-list {
  display: grid;
  gap: 8px;
}

.lead-row strong,
.plan-mix strong {
  display: block;
  color: var(--text);
  font-size: 13px;
}

.lead-row p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.browser-surface input {
  max-width: 320px;
}

.sticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(188px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.sticker-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0e0f11;
}

.research-surface {
  color: var(--soft);
}

.research-surface summary {
  cursor: pointer;
  font-weight: 900;
}

.research-surface ol {
  margin: 14px 0 0;
  padding-left: 20px;
}

.research-surface li {
  margin: 8px 0;
  line-height: 1.45;
}

.empty {
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
}

.loading-skeleton {
  position: relative;
  overflow: hidden;
  min-height: 74px;
}

.loading-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  animation: shimmer 1.35s infinite;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 14px;
  border: 1px solid rgba(66, 215, 157, 0.45);
  border-radius: var(--radius);
  background: rgba(13, 14, 16, 0.96);
  color: var(--text);
  box-shadow: var(--shadow);
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

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

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

  .loading-skeleton::after {
    animation: none;
  }
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .control-surface,
  .results-surface,
  .candidates-surface,
  .vision-surface,
  .money-surface,
  .revenue-surface,
  .operator-surface,
  .browser-surface,
  .research-surface {
    grid-column: auto;
  }

  .control-surface {
    position: static;
  }

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

  .craft-notes {
    grid-template-columns: 1fr;
  }

  .money-kpis,
  .money-split,
  .revenue-panel,
  .pricing-grid,
  .operator-kpis,
  .operator-grid,
  .operator-controls {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .app-shell {
    width: min(100% - 20px, 1440px);
    padding-top: 12px;
  }

  .topbar {
    gap: 10px;
    padding-bottom: 12px;
  }

  .topbar h1 {
    font-size: 34px;
    line-height: 0.96;
  }

  .topbar-subtitle {
    margin-top: 6px;
    font-size: 13px;
  }

  .data-status {
    width: 100%;
    white-space: normal;
  }

  .topbar,
  .journey-bar,
  .workbench-head,
  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .journey-actions {
    justify-content: stretch;
    width: 100%;
  }

  .journey-summary strong,
  .journey-summary small {
    white-space: normal;
  }

  .journey-actions button {
    flex: 1 1 96px;
  }

  .control-surface,
  .workbench,
  .results-surface,
  .candidates-surface,
  .vision-surface,
  .money-surface,
  .revenue-surface,
  .browser-surface {
    padding: 12px;
  }

  .control-surface,
  .composer-form {
    gap: 12px;
  }

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

  #wordInput {
    min-height: 48px;
    font-size: 24px;
  }

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

  .stat-grid div {
    padding: 8px;
  }

  .stat-grid span {
    font-size: 15px;
  }

  .stat-grid small {
    font-size: 10px;
  }

  .workbench {
    gap: 12px;
    min-height: auto;
  }

  .weapon-rail {
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 78vw);
    grid-template-columns: none;
    min-height: 214px;
    overflow-x: auto;
    padding: 12px;
  }

  .slot {
    grid-template-rows: 112px auto;
  }

  .slot-art {
    min-height: 112px;
  }

  .slot-art img {
    width: min(96px, 82%);
    height: min(96px, 82%);
  }

  .visible-token {
    font-size: 22px;
  }

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

  .craft-actions button {
    padding-inline: 8px;
  }

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

  .money-kpi strong {
    font-size: 17px;
  }

  .opportunity-list {
    max-height: 520px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
  }

  .pricing-grid {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: 1fr;
    overflow-x: visible;
    scroll-snap-type: none;
  }

  .plan-card {
    scroll-snap-align: none;
  }

  .results-list,
  .candidate-columns,
  .sticker-grid {
    overscroll-behavior: contain;
    padding-right: 4px;
    overflow-y: auto;
  }

  .results-list {
    max-height: 420px;
  }

  .candidate-columns {
    max-height: 680px;
  }

  .sticker-grid {
    max-height: 620px;
  }

  .result-card {
    grid-template-columns: 1fr;
  }

  .mini-strip {
    justify-content: flex-start;
  }
}
