:root {
  --bg: #12110f;
  --surface: #1c1a17;
  --surface-raised: #25221e;
  --surface-subtle: #181613;
  --ink: #f2efe9;
  --ink-soft: #b8b2a6;
  --ink-faint: #827b70;
  --line: #37332e;
  --line-strong: #4b453d;
  --accent: #d79545;
  --accent-bright: #e7ad63;
  --accent-soft: #332719;
  --danger: #e17969;
  --success: #8fc6a0;
  --font-body: "Instrument Sans", Arial, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --ease: cubic-bezier(.22,.61,.36,1);
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, .18);
  --shadow-lift: 0 18px 44px rgba(0, 0, 0, .26);
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; color-scheme: dark; }
html, body { min-height: 100%; max-width: 100%; margin: 0; overflow-x: clip; }
body {
  background:
    radial-gradient(circle at 84% 7%, rgba(215, 149, 69, .06), transparent 28rem),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.shell { width: min(1180px, calc(100% - 64px)); margin: 0 auto; }

/* Header: quiet, persistent orientation without competing with the workspace. */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(55, 51, 46, .92);
  background: rgba(18, 17, 15, .92);
  backdrop-filter: blur(14px);
}
.topbar-in {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
}
.brand-main {
  font-family: var(--font-display);
  font-size: 1.78rem;
  font-weight: 600;
  letter-spacing: -.03em;
}
.brand-main em { color: var(--accent); font-style: italic; }
.brand-product {
  color: var(--ink-faint);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.account {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--ink-soft);
  font-size: .86rem;
}
.account-email {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Typography and page rhythm. */
.page { padding: clamp(48px, 7vw, 92px) 0 120px; }
.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: .71rem;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.25;
  text-transform: uppercase;
}
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2 {
  font-family: var(--font-display);
  letter-spacing: -.03em;
}
h1 {
  max-width: 15ch;
  margin: 14px 0 20px;
  font-size: clamp(3rem, 6.8vw, 5.5rem);
  line-height: .98;
}
h1 em, h2 em { color: var(--accent); font-style: italic; }
h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.02;
}
h3 { line-height: 1.2; }
.lede {
  max-width: 57ch;
  color: var(--ink-soft);
  font-size: 1.04rem;
  line-height: 1.7;
}

/* Intro: make the first decision obvious and turn the right rail into a map. */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(300px, .84fr);
  gap: clamp(44px, 8vw, 120px);
  align-items: end;
  padding-bottom: clamp(58px, 7vw, 88px);
}
.intro > div:first-child { max-width: 690px; }
.landing-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 30px; }
.landing-note { color: var(--ink-faint); font-family: var(--font-mono); font-size: .8rem; letter-spacing: .03em; line-height: 1.5; }
.facts {
  border-top: 1px solid var(--line);
  padding-top: 2px;
}
.fact {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 18px 0 17px;
  border-bottom: 1px solid var(--line);
}
.fact-number {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
}
.fact p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .88rem;
  line-height: 1.45;
}
.fact strong {
  display: inline-block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: .78rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}

/* Shared section chrome. */
.workspace,
.strategy,
.crm {
  border-top: 1px solid var(--line);
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .74fr);
  gap: clamp(42px, 5vw, 72px);
  align-items: start;
  padding-top: 36px;
}
.workspace > div { min-width: 0; }
#hub-view.edit-only .intro,
#hub-view.edit-only .workspace > div:first-child { display: none; }
#hub-view.landing-only .workspace { display: none; }
#hub-view.project-entry .intro { display: none; }
#hub-view.project-entry .workspace { padding-top: clamp(42px, 6vw, 76px); }
#hub-view.edit-only .workspace {
  grid-template-columns: minmax(0, 640px);
  padding-top: 8px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 24px;
}
.section-title h2 { margin: 0; }
.section-note {
  flex: 0 0 auto;
  color: var(--ink-faint);
  font-size: .78rem;
  letter-spacing: .04em;
}

/* Projects: one clean row per decision, with low-risk actions de-emphasised. */
.project-list { border-top: 1px solid var(--line); }
.project-card,
.project-row {
  position: relative;
  padding: 23px 0 21px;
  border-bottom: 1px solid var(--line);
}
.project-card.is-open { border-bottom-color: var(--accent); }
.project-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.pill-new {
  flex: 0 0 auto;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 999px;
  padding: 3px 9px;
  color: var(--accent);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.project-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 0;
  background: var(--accent);
  transition: opacity .22s var(--ease);
}
.project-card.is-open::before { height: 100%; }
.project-card h3,
.project-row h3 {
  margin: 0 0 5px;
  padding-left: 0;
  font-size: 1.13rem;
  font-weight: 600;
}
.project-card p,
.project-row p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .9rem;
  line-height: 1.48;
}
.project-meta {
  margin-top: 10px !important;
  color: var(--ink-faint) !important;
  font-size: .77rem !important;
}
.project-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
}
.empty,
.empty-state {
  padding: 28px 0;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  font-size: .92rem;
}
.lead-list > .button,
.segment-groups > .button { margin: 0 0 22px; }

/* Form: a single strong surface that reads as the next step, not a second page. */
.form-panel {
  position: sticky;
  top: 98px;
  background: linear-gradient(145deg, rgba(37, 34, 30, .98), rgba(28, 26, 23, .98));
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: clamp(25px, 3vw, 34px);
  box-shadow: var(--shadow-soft);
}
.form-panel h2 { margin-top: 13px; font-size: clamp(2rem, 4vw, 2.6rem); }
.form-panel > p { color: var(--ink-soft); font-size: .9rem; line-height: 1.58; }
label {
  display: block;
  margin: 19px 0 7px;
  color: var(--ink-soft);
  font-size: .77rem;
  font-weight: 600;
  letter-spacing: .03em;
}
.hint {
  color: var(--ink-faint);
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: 0;
}
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  background: var(--surface-subtle);
  color: var(--ink);
  line-height: 1.4;
  transition: border-color .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
}
input::placeholder, textarea::placeholder { color: #6f695f; }
textarea { min-height: 88px; resize: vertical; }
input:hover, textarea:hover, select:hover { border-color: var(--line-strong); }
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  outline: 0;
  background: #171411;
  box-shadow: 0 0 0 3px rgba(215, 149, 69, .11);
}
select { appearance: auto; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.message {
  min-height: 1.5em;
  margin: 13px 0 0;
  color: var(--ink-soft);
  font-size: .85rem;
}
.message.error { color: var(--danger); }
.message.success { color: var(--success); }

/* Buttons: one clear primary action, quiet secondary actions. */
.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 9px 17px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.1;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.button:hover {
  border-color: var(--ink-soft);
  background: rgba(242, 239, 233, .04);
}
.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #1d150d;
}
.button.primary:hover {
  border-color: var(--accent-bright);
  background: var(--accent-bright);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .28);
}
.button:disabled { cursor: not-allowed; opacity: .45; transform: none !important; }
.button.danger { color: var(--danger); }
.button.small { min-height: 34px; padding: 7px 12px; font-size: .75rem; }
.button.primary.small { min-height: 36px; padding: 7px 16px; }
.text-button {
  min-height: 34px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  padding: 0 7px;
  font-size: .78rem;
  font-weight: 600;
  transition: color .18s var(--ease);
}
.text-button:hover { color: var(--ink); }
.text-button.danger { color: var(--danger); }
.button:active { transform: scale(.97); }

/* Strategy: give recommendations a visible stage and distinguish status groups. */
.strategy {
  margin-top: 76px;
  padding-top: 36px;
}
.strategy .section-title > div:first-child { max-width: 720px; }
.strategy .section-title .lede { margin-bottom: 0; font-size: .95rem; }
.strategy-actions { display: flex; justify-content: flex-end; align-items: center; }
.segment-groups { display: grid; gap: 32px; margin-top: 29px; }
.segment-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(28, 26, 23, .5);
}
.segment-group h3 {
  margin: 0;
  padding: 13px 18px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.segment-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 19px 18px;
  border-bottom: 1px solid var(--line);
}
.segment-card:last-child { border-bottom: 0; }
.segment-grade {
  min-width: 42px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: .95;
}
.segment-grade[data-grade="C"] { color: var(--ink-faint); }
.segment-card h4 { margin: 0 0 6px; font-size: 1rem; }
.segment-card p { margin: 0; color: var(--ink-soft); font-size: .88rem; line-height: 1.5; }
.segment-origin { margin-top: 9px !important; color: var(--ink-faint) !important; font-size: .74rem !important; }
.segment-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.manual-segment {
  margin-top: 34px;
  padding: 25px 0 0;
  border-top: 1px solid var(--line);
}
.manual-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 90px minmax(0, 1fr);
  gap: 14px;
  margin: 12px 0 16px;
}
.manual-grid label { margin: 0; }
.manual-grid input, .manual-grid select { margin-top: 7px; }

/* CRM: controls first, then a stable two-pane reading surface. */
.crm {
  margin-top: 76px;
  padding-top: 36px;
}
.crm .section-title > div:first-child { max-width: 720px; }
.crm .section-title .lede { margin-bottom: 0; font-size: .95rem; }
.crm-generate {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px;
  margin: 28px 0 12px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(51, 39, 25, .55), rgba(28, 26, 23, .66));
}
.crm-generate label { min-width: 148px; margin: 0; }
.crm-generate input { width: 148px; margin-top: 7px; }
.crm-generate .button { min-height: 44px; }
.generate-hint { flex: 1 1 100%; margin: 2px 0 0; }
.crm-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 17px 0 13px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.crm-filters label { margin: 0; }
.crm-filters input, .crm-filters select { margin-top: 7px; padding: 10px 11px; font-size: .84rem; }
.filter-focus {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  padding-top: 4px;
}
.crm-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
}
.crm-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 66px;
  justify-content: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink-faint);
  font-size: .8rem;
  line-height: 1.2;
}
.crm-stat strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1;
}
.crm-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(310px, .88fr);
  gap: 26px;
  align-items: start;
  border-top: 1px solid var(--line);
}
.lead-list { min-width: 0; }
.lead-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  width: 100%;
  padding: 17px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  transition: background .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.lead-row:hover { background: rgba(242, 239, 233, .035); }
.lead-row.is-open {
  padding-left: 18px;
  border-bottom-color: var(--accent);
  background: rgba(51, 39, 25, .34);
}
.lead-row.is-new:not(.is-open) { background: rgba(51, 39, 25, .18); }
.lead-new {
  display: inline-block;
  margin-left: 8px;
  color: var(--accent);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: none;
  vertical-align: middle;
}
.lead-grade {
  min-width: 34px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: .95;
}
.lead-grade[data-grade="C"] { color: var(--ink-faint); }
.lead-row h3 { margin: 0 0 4px; font-size: .98rem; }
.lead-row p { margin: 0; color: var(--ink-soft); font-size: .85rem; line-height: 1.4; }
.lead-meta { margin-top: 7px !important; color: var(--ink-faint) !important; font-size: .72rem !important; }
.lead-kind {
  display: inline-block;
  margin-left: 7px;
  color: var(--ink-faint);
  font-size: .69rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.lead-detail {
  position: sticky;
  top: 98px;
  min-width: 0;
  min-height: 220px;
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(37, 34, 30, .98), rgba(28, 26, 23, .98));
  box-shadow: var(--shadow-soft);
}
.lead-detail h3 { margin: 0 0 9px; font-size: 1.45rem; }
.lead-detail h4 {
  margin: 21px 0 9px;
  color: var(--ink-faint);
  font-size: .69rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.lead-detail dl { margin: 0 0 17px; }
.lead-detail dt {
  margin-top: 13px;
  color: var(--ink-faint);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.lead-detail dd { margin: 3px 0 0; color: var(--ink-soft); font-size: .9rem; }
.lead-detail a { color: var(--accent); text-decoration: none; }
.lead-detail a:hover { text-decoration: underline; }
.fit-vs-contact { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0 4px; }
.chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--ink-soft);
  font-size: .73rem;
}
.chip strong { margin-right: 6px; color: var(--ink); font-weight: 600; }
.history { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.history li { padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: .8rem; line-height: 1.45; }
.note-form .button { margin-top: 10px; }
.note-form textarea { min-height: 74px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* Login uses the same visual language but keeps the task narrow. */
.login-main {
  min-height: calc(100vh - 73px);
  min-width: 0;
  display: grid;
  place-items: center;
  padding: 64px 0;
}
.login-card { width: 100%; max-width: 500px; min-width: 0; }
.login-card h1 { max-width: 13ch; font-size: clamp(2.7rem, 8vw, 4.3rem); }
.login-card .lede { margin-bottom: 34px; }
.login-steps {
  margin: -8px 0 30px;
  border-top: 1px solid var(--line);
}
.login-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 13px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.login-step-number {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  padding-top: 2px;
}
.login-step strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.login-step p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: .86rem;
  line-height: 1.5;
}
.login-card h1, .login-card .lede, .login-steps, .login-box { min-width: 0; max-width: 100%; }
.login-box { border-top: 1px solid var(--line); padding-top: 26px; }
.google-box {
  margin-bottom: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  text-align: center;
}
.google-box p { color: var(--ink-soft); font-size: .86rem; }
#google-button { display: flex; justify-content: center; min-height: 44px; max-width: 100%; overflow: hidden; }
.divider {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 22px 0;
  color: var(--ink-faint);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: none;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.login-foot { margin-top: 25px; color: var(--ink-faint); font-size: .79rem; line-height: 1.55; }

.project-chrome {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 28px;
  align-items: end;
  padding: 8px 0 36px;
  border-bottom: 1px solid var(--line);
}
.back-hub {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 40px;
  padding-left: 0;
  color: var(--ink-soft);
}
.back-hub::before { content: "← "; color: var(--accent); }
.project-chrome h1 {
  max-width: 22ch;
  margin: 8px 0 10px;
  font-size: clamp(2.15rem, 4.6vw, 3.35rem);
  line-height: 1.02;
}
.project-chrome .lede { margin: 0; max-width: 62ch; font-size: .98rem; }
.project-chrome-actions { padding-bottom: 4px; }
.area-section {
  border-top: 0;
  padding-top: 36px;
}
.area-section .lede { margin-bottom: 0; font-size: .95rem; }
.area-picker { margin: 18px 0 8px; }
.area-picker > label { margin-top: 0; }
.area-picker .hint { margin: 8px 0 10px; }
.map-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.keyword-picks { margin: 8px 0 12px; }
.keyword-pick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: .82rem;
}
.modebtn {
  flex: 1 1 140px;
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: .82rem;
  font-weight: 600;
  transition: border-color .18s var(--ease), color .18s var(--ease), background .18s var(--ease);
}
.modebtn.is-on {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.map-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}
.map-stage { position: relative; }
.map-legend {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 800;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 17, 15, .88);
  color: var(--ink-faint);
  font-size: .75rem;
  letter-spacing: .03em;
  pointer-events: none;
}
.map-legend i {
  display: inline-block;
  width: 14px;
  height: 10px;
  margin-right: 7px;
  border-radius: 2px;
  vertical-align: -1px;
}
.lg-idle {
  border: 1px solid #6f675c;
  background: rgba(111, 103, 92, .18);
}
.lg-sel {
  border: 2px solid var(--accent);
  background: rgba(215, 149, 69, .42);
}
.area-results {
  margin: 0 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  max-height: 220px;
  overflow: auto;
}
.area-hit {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 10px 12px;
  font-size: .9rem;
}
.area-hit small { display: block; color: var(--ink-faint); font-size: .75rem; }
.area-chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 28px; margin-bottom: 10px; }
.area-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .78rem;
  cursor: pointer;
}
#area-map {
  height: 420px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  background: #0a0908;
}
#area-map .leaflet-interactive { cursor: pointer; }
.leaflet-container { background: #0a0908; font-family: var(--font-body); }
.leaflet-control-attribution {
  background: rgba(18,17,15,.82) !important;
  color: #8a857b !important;
}
.leaflet-control-attribution a { color: #b8b2a6 !important; }
.leaflet-tooltip.dk {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}

/* Tablet: never squeeze dense controls into a misleading single row. */
@media (max-width: 1099px) {
  .crm-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .crm-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .intro, .workspace { grid-template-columns: 1fr; }
  .workspace { gap: 50px; }
  .project-chrome { grid-template-columns: 1fr; }
  .project-chrome-actions .button { width: 100%; }
  .form-panel { position: static; max-width: 720px; }
  .section-title { align-items: flex-start; flex-wrap: wrap; }
  .strategy-actions { width: 100%; justify-content: flex-start; }
  .strategy-actions .button { width: 100%; }
  .crm-layout { grid-template-columns: 1fr; }
  .lead-detail { position: static; margin-top: 24px; }
}
@media (max-width: 699px) {
  .shell { width: min(100% - 36px, 1180px); }
  .page { padding-top: 42px; }
  .intro { padding-bottom: 50px; }
  h1 { font-size: clamp(2.85rem, 14vw, 4.25rem); }
  .lede { font-size: .98rem; }
  .crm-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crm-generate, .crm-generate .button.primary { width: 100%; }
  .crm-generate input { width: 100%; }
  .crm-generate label { flex: 1 1 100%; }
  .segment-card { grid-template-columns: 40px minmax(0, 1fr); }
  .segment-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .manual-grid { grid-template-columns: 1fr; }
  .crm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #area-map { height: min(52vh, 380px); min-height: 320px; }
}
@media (max-width: 560px) {
  .shell { width: min(100% - 32px, 1180px); }
  .topbar-in { min-height: 64px; height: auto; flex-wrap: wrap; }
  .brand-product, .account-email { display: none; }
  .account { gap: 7px; }
  .workspace, .strategy, .crm, .area-section { padding-top: 28px; }
  .strategy, .crm { margin-top: 58px; }
  .project-chrome { padding-bottom: 24px; }
  .form-panel { padding: 22px 18px; }
  .form-actions .button.primary, .strategy-actions .button.primary { width: 100%; }
  .crm-filters { grid-template-columns: 1fr; padding: 13px; }
  .crm-stats { gap: 7px; }
  .crm-stat { min-height: 60px; padding: 9px 10px; }
  .lead-detail { padding: 20px 17px; }
  .project-actions { gap: 5px; }
}
@media (hover: hover) and (pointer: fine) {
  .button:hover, .text-button:hover { transform: translateY(-1px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Sales-workspace layer: orientation, momentum, and clear next actions. */
.workspace-nav {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-left: auto;
  margin-right: clamp(10px, 3vw, 44px);
}
.workspace-nav a {
  position: relative;
  color: var(--ink-faint);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .18s var(--ease);
}
.workspace-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .2s var(--ease);
}
.workspace-nav a:hover { color: var(--ink); }
.workspace-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.section-kicker {
  display: block;
  margin-bottom: 15px;
  color: var(--ink-faint);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.section-kicker::first-letter { color: var(--accent); }
.form-progress {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin: -2px 0 27px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.form-progress span:first-child {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: .93rem;
  letter-spacing: 0;
}
.form-progress span:nth-child(2) { color: var(--ink-soft); }
.form-progress span:last-child { font-size: .75rem; letter-spacing: .04em; }

@media (max-width: 899px) {
  .workspace-nav { margin-right: 0; }
}
@media (max-width: 699px) {
  .workspace-nav { order: 3; flex: 1 0 100%; justify-content: space-between; gap: 12px; padding: 0 0 10px; margin: -2px 0 0; }
  .workspace-nav a { font-size: .72rem; }
  .workspace-nav a::after { bottom: -5px; }
}
@media (max-width: 560px) {
  .topbar-in { align-items: center; }
  #hub-nav { display: none; }
  #project-nav.workspace-nav {
    display: flex;
    order: 3;
    flex: 1 0 100%;
    justify-content: space-between;
    gap: 12px;
    padding: 0 0 10px;
    margin: -2px 0 0;
  }
  #project-nav[hidden] { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .workspace-nav a::after { transition: none; }
}

/* -------------------------------------------------------------------------- */
/* 2026 Signal Desk pass                                                     */
/* A quiet sales fieldbook: stronger hierarchy, fewer pills, more useful air. */
/* -------------------------------------------------------------------------- */
:root {
  --bg: #11100e;
  --surface: #1a1815;
  --surface-raised: #211e1a;
  --surface-subtle: #151310;
  --ink: #f3efe8;
  --ink-soft: #b9b1a5;
  --ink-faint: #a19588;
  --line: #332e28;
  --line-strong: #5a4f41;
  --accent: #d79545;
  --accent-bright: #efb56e;
  --accent-soft: #302417;
  --success: #99c9a4;
  --danger: #e18473;
  --shadow-soft: 0 16px 36px rgba(0, 0, 0, .22);
}

html { background: var(--bg); }
body {
  background:
    radial-gradient(circle at 82% 2%, rgba(215,149,69,.09), transparent 24rem),
    var(--bg);
}

.shell { width: min(1240px, calc(100% - 72px)); }
.topbar {
  border-bottom-color: rgba(83, 70, 56, .78);
  background: rgba(17, 16, 14, .86);
  box-shadow: 0 1px 0 rgba(255,255,255,.02);
}
.topbar-in { min-height: 78px; gap: 26px; }
.brand { gap: 12px; }
.brand-main { font-size: 1.92rem; }
.brand-product { color: var(--ink-soft); font-size: .75rem; letter-spacing: .15em; }
.workspace-nav { gap: 28px; margin-right: clamp(8px, 2vw, 32px); }
.workspace-nav a { color: var(--ink-soft); font-size: .76rem; letter-spacing: .13em; }
.workspace-nav a::after { bottom: -13px; }
.quota-orbit {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin-left: auto;
  padding: 8px 12px 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(33, 30, 26, .72);
  color: var(--ink-soft);
  font-size: .78rem;
  white-space: nowrap;
}
.quota-orbit-label {
  color: var(--ink-faint);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.quota-orbit strong {
  color: var(--accent-bright);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1;
}
.quota-orbit[data-tone="low"] { border-color: rgba(225,132,115,.55); }
.quota-orbit[data-tone="low"] strong { color: var(--danger); }

.page { padding-top: clamp(54px, 8vw, 104px); }
.intro {
  grid-template-columns: minmax(0, 1.28fr) minmax(300px, .72fr);
  gap: clamp(52px, 9vw, 132px);
  padding-bottom: clamp(64px, 8vw, 104px);
}
.intro > div:first-child { max-width: 760px; }
h1 { max-width: 13ch; font-size: clamp(3.4rem, 7vw, 6.15rem); line-height: .94; text-wrap: balance; }
.lede { font-size: 1.04rem; }
.intro .lede { max-width: 53ch; margin-top: 25px; }
.facts { border-top-color: var(--line-strong); }
.fact { grid-template-columns: 48px 1fr; gap: 16px; padding: 20px 0 19px; }
.fact-number { color: var(--accent-bright); font-size: 1.72rem; }
.fact strong { font-size: .78rem; letter-spacing: .12em; }
.fact p { font-size: .9rem; line-height: 1.5; }

.workspace { gap: clamp(54px, 7vw, 100px); padding-top: 42px; }
.section-kicker { margin-bottom: 18px; color: var(--accent); font-size: .75rem; letter-spacing: .14em; }
.section-title { margin-bottom: 28px; }
.section-title h2 { text-wrap: balance; }
.project-list { border-top-color: var(--line-strong); }
.project-card,
.project-row { padding: 27px 0 25px; border-bottom-color: var(--line); }
.project-card::before { display: none; }
.project-card.is-open { border-bottom-color: var(--accent); background: linear-gradient(90deg, rgba(48,36,23,.72), transparent 78%); }
.project-card-head { min-height: 30px; }
.project-card h3, .project-row h3 { font-size: 1.18rem; letter-spacing: -.01em; }
.project-card p, .project-row p { max-width: 52ch; font-size: .92rem; }
.project-meta { color: var(--ink-faint) !important; font-size: .78rem !important; }
.project-actions { gap: 10px; margin-top: 18px; }
.pill-new { padding: 5px 10px; font-size: .72rem; }

.form-panel {
  border-color: var(--line-strong);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(33,30,26,.98), rgba(24,21,18,.98));
  box-shadow: var(--shadow-soft);
}
.form-panel::before { background: var(--accent); }
.form-panel h2 { font-size: clamp(2.25rem, 4vw, 3rem); text-wrap: balance; }
.form-panel > p { color: var(--ink-soft); }
.form-progress { margin-bottom: 30px; padding-bottom: 18px; font-size: .75rem; }
.form-progress span:last-child { color: var(--ink-faint); font-size: .75rem; }
label { font-size: .78rem; letter-spacing: .04em; }
input, textarea, select { border-color: var(--line); border-radius: 9px; background: rgba(21,19,16,.8); }
input:focus, textarea:focus, select:focus { background: #171411; box-shadow: 0 0 0 4px rgba(215,149,69,.12); }
.button { min-height: 44px; padding: 10px 19px; font-size: .86rem; }
.button.small, .button.primary.small { min-height: 40px; padding: 8px 14px; font-size: .78rem; }
.text-button { min-height: 40px; padding: 0 8px; font-size: .8rem; }

.project-chrome {
  position: relative;
  padding: 16px 0 42px;
  border-bottom-color: var(--line-strong);
}
.project-chrome::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  width: 74px;
  height: 2px;
  background: var(--accent);
}
.project-chrome h1 { max-width: 18ch; font-size: clamp(2.55rem, 5vw, 4.25rem); }
.project-chrome .lede { max-width: 66ch; }
.back-hub { color: var(--ink-soft); }
.back-hub::before { color: var(--accent-bright); }
.area-section { padding-top: 42px; }
.area-picker { margin-top: 24px; }
.map-modes { gap: 9px; }
.modebtn { min-height: 44px; border-radius: 10px; font-size: .8rem; }
.modebtn.is-on { background: rgba(48,36,23,.86); }
.map-toolbar { gap: 9px; margin-bottom: 12px; }
.map-toolbar .button { border-color: var(--line); }
.map-toolbar .button:first-child { border-color: var(--accent); color: var(--accent-bright); }
#area-map { height: 500px; border-color: var(--line-strong); border-radius: 14px; }
.map-legend { bottom: 14px; left: 14px; border-color: rgba(255,255,255,.12); background: rgba(17,16,14,.88); }
.area-chip { min-height: 32px; padding: 6px 12px; }

.strategy, .crm { margin-top: 92px; padding-top: 42px; }
.strategy .section-title .lede, .crm .section-title .lede { max-width: 66ch; }
.segment-groups { gap: 36px; margin-top: 34px; }
.segment-group { border-color: var(--line-strong); border-radius: 14px; background: rgba(26,24,21,.7); }
.segment-group h3 { padding: 15px 20px 14px; color: var(--accent); font-size: .75rem; }
.segment-card { grid-template-columns: 54px minmax(0, 1fr) auto; gap: 20px; padding: 23px 20px; }
.segment-grade { font-size: 2.2rem; }
.segment-card h4 { font-size: 1.06rem; }
.segment-card p { font-size: .9rem; }
.segment-origin { font-size: .78rem !important; }
.segment-actions { gap: 8px; }
.manual-segment { margin-top: 40px; padding-top: 30px; }

.crm-generate { margin: 30px 0 14px; padding: 21px 22px; border-color: var(--line-strong); border-radius: 14px; background: linear-gradient(135deg, rgba(48,36,23,.72), rgba(26,24,21,.82)); }
.crm-filters { margin: 18px 0 15px; padding: 17px; border-color: var(--line); border-radius: 14px; background: rgba(26,24,21,.86); }
.crm-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 24px; }
.crm-stat { min-height: 76px; padding: 13px 15px; border-color: var(--line); border-radius: 10px; font-size: .76rem; }
.crm-stat strong { font-size: 1.62rem; }
.crm-layout { gap: 34px; border-top-color: var(--line-strong); }
.lead-row { grid-template-columns: 48px minmax(0, 1fr); padding: 20px 14px; }
.lead-row.is-open { padding-left: 18px; border-bottom-color: var(--accent); background: rgba(48,36,23,.6); }
.lead-grade { font-size: 1.95rem; }
.lead-row h3 { font-size: 1.04rem; }
.lead-row p { font-size: .88rem; }
.lead-meta { font-size: .76rem !important; }
.lead-detail { top: 108px; margin-top: 22px; padding: 28px; border-color: var(--line-strong); border-radius: 15px; background: linear-gradient(145deg, rgba(35,31,26,.98), rgba(25,22,19,.98)); }
.lead-detail h3 { font-size: 1.62rem; }
.chip { min-height: 32px; padding: 6px 11px; font-size: .76rem; }

.command-dialog { width: min(620px, calc(100% - 32px)); padding: 0; border: 1px solid var(--line-strong); border-radius: 16px; background: transparent; color: var(--ink); box-shadow: 0 30px 100px rgba(0,0,0,.55); }
.command-dialog::backdrop { background: rgba(0,0,0,.62); backdrop-filter: blur(8px); }
.command-panel { padding: 27px; background: linear-gradient(145deg, rgba(35,31,26,.99), rgba(23,20,17,.99)); }
.command-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.command-head h2 { margin: 6px 0 0; font-size: 2rem; }
.command-close { min-width: 44px; min-height: 40px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--ink-soft); font-size: .76rem; }
.command-search-label { display: block; margin-bottom: 8px; color: var(--ink-faint); font-size: .76rem; }
.command-results { max-height: 330px; margin-top: 12px; overflow-y: auto; border-top: 1px solid var(--line); }
.command-item { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 2px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; }
.command-item:hover, .command-item:focus-visible { color: var(--accent-bright); }
.command-item span { color: var(--ink-faint); font-size: .78rem; }
.command-empty { padding: 24px 2px; color: var(--ink-soft); }
.command-hint { margin: 18px 0 0; color: var(--ink-faint); font-size: .76rem; }
kbd { display: inline-grid; min-width: 22px; min-height: 22px; margin: 0 3px; place-items: center; border: 1px solid var(--line-strong); border-radius: 5px; color: var(--ink-soft); font-family: var(--font-body); font-size: .7rem; }

@media (max-width: 1099px) {
  .shell { width: min(1180px, calc(100% - 56px)); }
  .intro { gap: 56px; }
  .crm-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .topbar-in { gap: 14px; }
  .intro { grid-template-columns: 1fr; }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .quota-orbit { order: 2; }
  .account { order: 3; }
  .workspace-nav { order: 4; }
  #area-map { height: min(56vh, 430px); min-height: 340px; }
}
@media (max-width: 699px) {
  .shell { width: min(100% - 36px, 1180px); }
  .page { padding-top: 46px; }
  h1 { max-width: 100%; font-size: clamp(3.05rem, 14vw, 4.7rem); }
  .intro { gap: 42px; }
  .workspace { gap: 42px; }
  .crm-layout { grid-template-columns: minmax(0, 1fr); }
  .crm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crm-stat { min-height: 70px; }
  .segment-card { grid-template-columns: 44px minmax(0, 1fr); }
  .segment-actions { grid-column: 1 / -1; }
  .command-panel { padding: 22px 18px; }
  #area-map { height: min(58vh, 390px); min-height: 330px; }
}
@media (max-width: 560px) {
  .shell { width: min(100% - 28px, 1180px); }
  .topbar-in { min-height: 70px; padding-top: 10px; padding-bottom: 10px; }
  .brand-main { font-size: 1.7rem; }
  .brand-product, .account-email { display: none; }
  .quota-orbit { margin-left: auto; padding: 7px 9px 6px; }
  .quota-orbit-label { display: none; }
  .workspace-nav { margin: 0; }
  #project-nav.workspace-nav { padding-bottom: 7px; }
  .workspace-nav a { font-size: .74rem; letter-spacing: .1em; }
  .workspace-nav a::after { bottom: -8px; }
  .project-chrome { padding-bottom: 32px; }
  .project-chrome h1 { font-size: clamp(2.55rem, 13vw, 4rem); }
  .project-chrome-actions .button { width: auto; }
  .crm-stats { gap: 8px; }
  .crm-stat { padding: 11px 12px; }
  .crm-stat strong { font-size: 1.48rem; }
  .lead-detail { margin-top: 22px; padding: 22px 18px; }
  .command-head h2 { font-size: 1.72rem; }
  .command-item { align-items: flex-start; flex-direction: column; gap: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  .command-dialog::backdrop { backdrop-filter: none; }
}

/* -------------------------------------------------------------------------- */
/* 2026 Live GeoLead alignment                                                */
/* Borrow the live GeoLead page's visual language; keep the app workflow.    */
/* -------------------------------------------------------------------------- */
:root {
  --bg: #070d18;
  --surface: #0e1929;
  --surface-raised: #111f33;
  --surface-subtle: #0b1422;
  --ink: #f4f1e9;
  --ink-soft: #95a2b6;
  --ink-faint: #8292a8;
  --line: rgba(137, 161, 190, .18);
  --line-strong: rgba(163, 188, 218, .30);
  --accent: #f4b64a;
  --accent-bright: #ffc55d;
  --accent-soft: rgba(244, 182, 74, .12);
  --success: #b7f34a;
  --danger: #ff7b6c;
  --blue: #7aa6d6;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-display: "Instrument Sans", system-ui, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --shadow-soft: 0 14px 34px rgba(0, 0, 0, .20);
  --shadow-lift: 0 24px 64px rgba(0, 0, 0, .28);
}

html {
  background: var(--bg);
  color-scheme: dark;
}

body {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 76% 12%, rgba(33, 79, 125, .18), transparent 32rem),
    radial-gradient(circle at 28% 44%, rgba(19, 48, 80, .12), transparent 30rem),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(137, 161, 190, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(137, 161, 190, .035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.shell { width: min(1260px, calc(100% - 48px)); }
.topbar {
  border-bottom-color: var(--line);
  background: rgba(7, 13, 24, .88);
  box-shadow: none;
}
.topbar-in { min-height: 76px; gap: 22px; }
.brand { align-items: center; gap: 10px; }
.brand-mark-img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.brand-main {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -.045em;
}
.brand-main em { color: var(--ink); font-style: normal; }
.brand-product {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .10em;
}
.workspace-nav { gap: 26px; margin-right: 12px; }
.workspace-nav a {
  color: var(--ink-soft);
  font-size: .80rem;
  letter-spacing: 0;
}
.workspace-nav a::after { bottom: -10px; background: var(--accent); }
.workspace-nav a.nav-cta {
  min-height: 44px;
  padding: 11px 17px;
  border-radius: 10px;
  background: var(--accent);
  color: #15202c;
  font-weight: 700;
}
.workspace-nav a.nav-cta::after { display: none; }
.workspace-nav a.nav-cta span { margin-left: 6px; font-size: 1rem; }
.command-open {
  display: none;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1;
}
.account { color: var(--ink-soft); }
.account .button {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.page { padding-top: clamp(72px, 10vw, 126px); }
.eyebrow {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .10em;
}
.eyebrow-rule {
  display: inline-block;
  width: 18px;
  height: 1px;
  margin: 0 10px 3px 0;
  background: var(--accent);
  vertical-align: middle;
}
h1, h2 {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.035em;
}
h1 {
  max-width: 720px;
  margin: 20px 0 22px;
  font-size: clamp(2.8rem, 5.2vw, 5.2rem);
  line-height: .98;
}
h1 em, h2 em {
  color: var(--accent);
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -.02em;
}
h2 { font-size: clamp(2rem, 3.8vw, 3.55rem); }
.lede { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.7; }

.intro {
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, .94fr);
  gap: clamp(48px, 7vw, 110px);
  align-items: center;
  padding-bottom: clamp(68px, 9vw, 118px);
}
.intro > div:first-child { max-width: 700px; }
.intro .lede { max-width: 55ch; margin-top: 28px; }
.intro-lead-note {
  max-width: 45ch;
  margin-top: 26px;
  padding-left: 18px;
  border-left: 1px solid rgba(244, 182, 74, .72);
}
.intro-lead-note .section-kicker { display: block; }
.intro-lead-note p { margin: 8px 0 0; color: var(--ink-soft); font-size: .9rem; line-height: 1.6; }
.intro-visual {
  position: relative;
  display: flex;
  min-height: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.hub-globe-wrap {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  pointer-events: none;
}
.hub-globe-stage {
  position: relative;
  overflow: visible;
  width: min(100%, 560px);
  aspect-ratio: 1 / 1;
  background: transparent;
  pointer-events: none;
}
.hub-globe-image,
.hub-globe-canvas,
.hub-globe-webgl {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.hub-globe-image {
  opacity: .98;
  filter: saturate(.88) contrast(1.06);
  transform-origin: 50% 52%;
  transition: transform 180ms ease-out;
  will-change: transform;
}
.hub-globe-webgl {
  pointer-events: auto;
  cursor: grab;
  outline: none;
}
.hub-globe-webgl:active { cursor: grabbing; }
.hub-globe-webgl canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  outline: none;
}
.hub-globe-canvas {
  cursor: grab;
  outline: none;
  touch-action: none;
  pointer-events: auto;
}
.hub-globe-canvas.is-dragging { cursor: grabbing; }
.hub-globe-stage [hidden],
.hub-globe-wrap [hidden] { display: none !important; }

.workspace, .strategy, .crm { border-top-color: var(--line-strong); }
.workspace { gap: clamp(54px, 7vw, 100px); }
.section-kicker {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .10em;
}
.section-title h2 { font-family: var(--font-display); }
#projects-title { scroll-margin-top: 92px; }
.section-note, .project-meta, .lead-meta, .segment-origin {
  color: var(--ink-faint) !important;
  font-family: var(--font-mono);
}
.project-list { border-top-color: var(--line-strong); }
.project-card, .project-row {
  border-bottom-color: var(--line);
  padding: 24px 0 22px;
}
.project-card.is-open {
  border-bottom-color: var(--accent);
  background: linear-gradient(90deg, rgba(244, 182, 74, .08), transparent 86%);
}
.project-card h3, .project-row h3 { font-family: var(--font-display); font-size: 1.12rem; }
.project-card p, .project-row p { color: var(--ink-soft); }
.project-actions { margin-top: 16px; }

.form-panel, .segment-group, .lead-detail {
  border-color: var(--line-strong);
  border-radius: .65rem;
  background: linear-gradient(145deg, rgba(14, 25, 41, .98), rgba(11, 20, 34, .98));
  box-shadow: var(--shadow-soft);
}
.form-panel::before { background: var(--accent); }
.form-panel h2 { font-family: var(--font-display); }
.form-progress, label, .command-search-label {
  font-family: var(--font-mono);
  font-size: .70rem;
  letter-spacing: .04em;
}
input, textarea, select {
  border-color: var(--line);
  border-radius: .55rem;
  background: rgba(7, 13, 24, .82);
  color: var(--ink);
}
input::placeholder, textarea::placeholder { color: var(--ink-faint); }
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  background: var(--surface-subtle);
  box-shadow: 0 0 0 3px rgba(244, 182, 74, .13);
}
.button {
  border-color: var(--line-strong);
  border-radius: .65rem;
  background: transparent;
  color: var(--ink);
}
.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #15202c;
  font-weight: 700;
}
.button.primary:hover, .button.primary:focus-visible {
  background: var(--accent-bright);
  color: #15202c;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
}
.button:hover, .button:focus-visible {
  border-color: var(--accent);
  color: var(--accent-bright);
}

.project-chrome h1 { max-width: 18ch; font-family: var(--font-display); }
.back-hub { color: var(--ink-soft); }
.back-hub::before { color: var(--accent); }
.area-section { padding-top: 42px; }
.modebtn {
  border-color: var(--line);
  border-radius: .55rem;
  background: rgba(14, 25, 41, .72);
  color: var(--ink-soft);
  font-family: var(--font-mono);
}
.modebtn.is-on {
  border-color: var(--accent);
  background: rgba(244, 182, 74, .12);
  color: var(--accent-bright);
}
.map-toolbar .button:first-child { border-color: var(--accent); color: var(--accent-bright); }
#area-map {
  border-color: var(--line-strong);
  border-radius: .65rem;
  background: var(--surface);
}
.map-legend {
  border-color: var(--line-strong);
  background: rgba(7, 13, 24, .88);
  font-family: var(--font-mono);
}
.area-chip, .chip { border-color: var(--line-strong); border-radius: 999px; }
.area-chip.is-selected, .chip.is-active { border-color: var(--accent); background: rgba(244, 182, 74, .12); color: var(--accent-bright); }

.strategy, .crm { margin-top: 92px; padding-top: 42px; }
.segment-group h3 {
  border-bottom-color: var(--line);
  color: var(--accent);
  font-family: var(--font-mono);
}
.segment-card { border-bottom-color: var(--line); }
.segment-grade, .lead-grade { font-family: var(--font-mono); }
.crm-generate {
  border-color: var(--line-strong);
  border-radius: .65rem;
  background: linear-gradient(135deg, rgba(244, 182, 74, .12), rgba(14, 25, 41, .88));
}
.crm-filters {
  border-color: var(--line);
  border-radius: .65rem;
  background: rgba(14, 25, 41, .82);
}
.crm-stat {
  border-color: var(--line);
  border-radius: .55rem;
  background: rgba(14, 25, 41, .70);
}
.crm-stat strong { font-family: var(--font-mono); }
.crm-layout { border-top-color: var(--line-strong); }
.lead-row { border-bottom-color: var(--line); }
.lead-row.is-open { border-bottom-color: var(--accent); background: rgba(244, 182, 74, .09); }
.lead-detail { background: linear-gradient(145deg, rgba(14, 25, 41, .98), rgba(11, 20, 34, .98)); }

.command-dialog {
  border-color: var(--line-strong);
  border-radius: .65rem;
}
.command-dialog::backdrop { background: rgba(2, 7, 14, .72); }
.command-panel { background: linear-gradient(145deg, rgba(14, 25, 41, .99), rgba(7, 13, 24, .99)); }
.command-item { border-bottom-color: var(--line); }
.command-item:hover, .command-item:focus-visible { color: var(--accent-bright); }
kbd { font-family: var(--font-mono); }

.login-main { position: relative; z-index: 1; }
.login-card h1 { max-width: 15ch; font-family: var(--font-display); }
.login-box {
  border-color: var(--line-strong);
  border-radius: .65rem;
  background: linear-gradient(145deg, rgba(14, 25, 41, .98), rgba(11, 20, 34, .98));
}

@media (max-width: 899px) {
  .intro { grid-template-columns: 1fr; }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .intro-visual { min-height: 0; }
  .hub-globe-wrap { margin: 0; }
  .hub-globe-stage { width: min(100%, 560px); aspect-ratio: 1 / 1; }
}

@media (max-width: 699px) {
  .shell { width: min(100% - 32px, 1260px); }
  .page { padding-top: 58px; }
  h1 { max-width: none; font-size: clamp(2.8rem, 12vw, 4.35rem); }
  .intro { gap: 34px; }
  .intro-visual { min-height: 0; }
  .hub-globe-wrap { width: 100%; }
  .hub-globe-stage { width: min(100%, 520px); height: min(520px, 92vw); aspect-ratio: 1 / 1; }
  .workspace { gap: 42px; }
  .crm-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .topbar-in { min-height: 68px; }
  .brand-product, .account-email { display: none; }
  #hub-nav { display: none; }
  #project-nav.workspace-nav { display: flex; }
  .command-open { display: inline-grid; place-items: center; margin-left: auto; }
  .quota-orbit { order: 3; margin-left: 0; }
  .account { order: 4; }
  .intro .lede { margin-top: 22px; }
  .hub-globe-stage { width: min(100%, 420px); height: min(420px, 92vw); }
  .login-main { padding-top: 42px; padding-bottom: 52px; }
  .login-card h1 { max-width: 100%; font-size: clamp(2.45rem, 11vw, 3.55rem); }
  .login-card .lede { font-size: .98rem; }
}

/* Commercial signal: quiet enough for the workspace, clear enough for the plan. */
.plan-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 7px 11px;
  border: 1px solid rgba(215, 149, 69, .26);
  border-radius: 999px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .02em;
  white-space: nowrap;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.plan-status:hover { border-color: var(--accent); color: var(--ink); }
.plan-status:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; }
.plan-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(215, 149, 69, .12);
}
.plan-status[data-state="ready"] { border-color: rgba(146, 190, 103, .42); }
.plan-status[data-state="ready"] .plan-status-dot { background: var(--success); box-shadow: 0 0 0 3px rgba(146, 190, 103, .12); }
.billing-dialog { width: min(650px, calc(100% - 32px)); padding: 0; border: 1px solid var(--line-strong); border-radius: 16px; background: transparent; color: var(--ink); box-shadow: 0 30px 100px rgba(0,0,0,.55); }
.billing-dialog::backdrop { background: rgba(2, 7, 14, .72); backdrop-filter: blur(8px); }
.billing-panel { padding: 28px; background: linear-gradient(145deg, rgba(14, 25, 41, .99), rgba(7, 13, 24, .99)); }
.billing-plan-card { display: flex; justify-content: space-between; gap: 20px; padding: 22px; border: 1px solid var(--line-strong); border-radius: 14px; background: rgba(244, 182, 74, .06); }
.billing-kicker { color: var(--accent-bright); font: 600 .68rem/1 var(--font-mono); letter-spacing: .13em; }
.billing-plan-card h3 { margin: 10px 0 8px; font-size: clamp(1.45rem, 4vw, 2.1rem); }
.billing-plan-card p { max-width: 45ch; margin: 0; color: var(--ink-soft); line-height: 1.55; }
.billing-state { flex: 0 0 auto; align-self: flex-start; padding: 7px 10px; border: 1px solid rgba(244, 182, 74, .32); border-radius: 999px; color: var(--accent-bright); font: 600 .68rem/1 var(--font-mono); letter-spacing: .06em; white-space: nowrap; }
.billing-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 18px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.billing-details div { display: grid; gap: 5px; padding: 14px; background: rgba(7, 13, 24, .8); }
.billing-details span { color: var(--ink-faint); font: 600 .67rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.billing-details strong { color: var(--ink); font-size: .92rem; font-weight: 600; }
.billing-note { margin: 0 0 20px; color: var(--ink-faint); font-size: .8rem; line-height: 1.55; }
.billing-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.billing-actions .button { min-height: 42px; }
.billing-dialog .message { min-height: 1.4em; margin: 14px 0 0; }
.brainstorm-hint {
  max-width: 64ch;
  margin: -2px 0 16px;
  line-height: 1.55;
}
.manual-segment > label textarea { min-height: 78px; }

@media (max-width: 899px) {
  .plan-status { order: 2; margin-left: auto; }
}
@media (max-width: 560px) {
  .topbar-in {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: center;
  }
  .brand { grid-column: 1; grid-row: 1; min-width: 0; }
  .command-open { grid-column: 2; grid-row: 1; margin-left: 0; }
  .quota-orbit { grid-column: 3; grid-row: 1; }
  .plan-status { grid-column: 1 / span 2; grid-row: 2; order: initial; margin-left: 0; min-width: 0; }
  .account { grid-column: 3; grid-row: 2; order: initial; }
  #project-nav.workspace-nav { grid-column: 1 / -1; grid-row: 3; }
  .plan-status-label { max-width: 22ch; overflow: hidden; text-overflow: ellipsis; }
  .billing-plan-card { display: block; }
  .billing-state { display: inline-flex; margin-top: 16px; }
  .billing-details { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------------------- */
/* 2026 Project setup order                                                   */
/* Offer first. Build your base second, as a quiet project catalog.           */
/* -------------------------------------------------------------------------- */
.setup-section {
  border-top: 1px solid var(--line-strong);
  padding-top: 42px;
}
.setup-section .form-panel {
  position: relative;
  top: auto;
  width: 100%;
  max-width: none;
  padding: clamp(28px, 4vw, 48px);
}
.setup-section .form-panel > p,
.setup-section .form-panel > label,
.setup-section .form-panel > input,
.setup-section .form-panel > textarea,
.setup-section .form-panel > .form-actions,
.setup-section .form-panel > .message {
  max-width: 720px;
}
.workspace {
  display: block;
  padding: 56px 0 0;
}
.base-section { min-width: 0; }
.project-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  border-top: 0;
  counter-reset: project-card;
}
.project-card {
  display: flex;
  min-height: 246px;
  flex-direction: column;
  padding: 26px 25px 23px;
  border: 1px solid var(--line-strong);
  border-radius: .65rem;
  background: linear-gradient(145deg, rgba(14, 25, 41, .94), rgba(7, 13, 24, .82));
  counter-increment: project-card;
}
.project-card::before {
  content: counter(project-card, decimal-leading-zero);
  position: static;
  display: block;
  width: auto;
  height: auto;
  margin: 0 0 24px;
  background: none;
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 1.72rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.02em;
}
.project-card.is-open {
  border-color: var(--accent);
  background: linear-gradient(145deg, rgba(244, 182, 74, .12), rgba(14, 25, 41, .92));
}
.project-card.is-open::before { height: auto; }
.project-card-head { min-height: 0; }
.project-card h3, .project-row h3 { font-size: 1.28rem; }
.project-card p, .project-row p { max-width: 48ch; }
.project-actions { margin-top: auto; padding-top: 24px; }
#hub-view.edit-only .workspace { display: none; }
#project-form { scroll-margin-top: 92px; }

/* Project setup stays visible as an invitation; the long form only enters the
   workspace after an intentional click. Native details keeps this keyboard-safe. */
.setup-disclosure {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: .65rem;
  background: linear-gradient(145deg, rgba(14, 25, 41, .94), rgba(7, 13, 24, .84));
}
.setup-disclosure[open] { border-color: var(--accent); }
.setup-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 24px 26px;
  cursor: pointer;
  list-style: none;
}
.setup-summary::-webkit-details-marker { display: none; }
.setup-summary:hover { background: rgba(244, 182, 74, .06); }
.setup-summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}
.setup-summary-index {
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 1.72rem;
  font-weight: 500;
  line-height: 1;
}
.setup-summary-copy { display: grid; gap: 5px; min-width: 0; }
.setup-summary-copy .section-kicker { margin: 0; }
.setup-summary-copy strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.05;
}
.setup-summary-hint { color: var(--ink-soft); font-size: .9rem; line-height: 1.5; }
.setup-summary-end {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .11em;
  text-transform: none;
  white-space: nowrap;
}
.setup-summary-state { color: var(--accent); }
.setup-summary-chevron {
  color: var(--accent);
  font-size: 1.35rem;
  line-height: 1;
  transition: transform 180ms var(--ease);
}
.setup-disclosure[open] .setup-summary {
  border-bottom: 1px solid var(--line-strong);
}
.setup-disclosure[open] .setup-summary-chevron { transform: rotate(180deg); }
.setup-disclosure > .form-panel {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 699px) {
  .setup-section { padding-top: 30px; }
  .setup-section .form-panel { padding: 24px 18px; }
  .workspace { padding-top: 42px; }
  .project-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .project-card { min-height: 0; padding: 23px 20px 20px; }
  .project-card::before { margin-bottom: 18px; }
  .setup-summary { grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 20px 18px; }
  .setup-summary-end { grid-column: 2; justify-content: space-between; gap: 8px; }
  .setup-summary-hint { font-size: .84rem; }
}

/* -------------------------------------------------------------------------- */
/* Public Lead Desk homepage                                                  */
/* Product proof first; pricing intentionally stays out of this homepage.    */
/* -------------------------------------------------------------------------- */
#hub-view .landing-page { display: none; }
#hub-view.landing-only .landing-page { display: block; }
#hub-view.landing-only > .setup-section,
#hub-view.landing-only > .workspace { display: none; }
#hub-view.project-entry .landing-page,
#hub-view.edit-only .landing-page { display: none; }
.landing-nav { margin-left: auto; }
.landing-nav a.nav-cta { white-space: nowrap; }

.landing-section,
.landing-final {
  position: relative;
  border-top: 1px solid var(--line-strong);
}
.landing-section { padding: clamp(76px, 10vw, 132px) 0; }
.landing-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr);
  align-items: end;
  gap: clamp(32px, 7vw, 112px);
  margin-bottom: clamp(52px, 6vw, 72px);
}
.landing-section h2,
.landing-final h2 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(2.55rem, 5vw, 4.85rem);
  line-height: .98;
  text-wrap: balance;
}
.landing-section h2 em,
.landing-final h2 em { color: var(--accent); }
.landing-final > .section-kicker { letter-spacing: .04em; text-transform: none; }
.landing-aside-note {
  align-self: end;
  max-width: 310px;
  padding-left: 20px;
  border-left: 1px solid var(--accent);
}
.aside-file {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .05em;
}
.landing-aside-note p,
.grade-heading > p,
.protocol-heading > p,
.faq-intro > p,
.landing-final > p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: .92rem;
  line-height: 1.65;
}

/* Output proof: a readable, fictional preview instead of a price card. */
.lead-preview {
  overflow-x: auto;
  border: 1px solid var(--line-strong);
  border-radius: .55rem;
  background: linear-gradient(145deg, rgba(14, 25, 41, .96), rgba(7, 13, 24, .88));
  scrollbar-color: var(--line-strong) transparent;
}
.lead-preview-head,
.lead-preview-columns,
.lead-preview-row {
  display: grid;
  grid-template-columns: 34px 1.45fr .9fr .9fr 1.05fr .62fr 1.7fr;
  gap: 16px;
  align-items: center;
}
.lead-preview-head {
  display: flex;
  justify-content: space-between;
  min-width: 920px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .05em;
  text-transform: none;
}
.lead-preview-columns {
  min-width: 920px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: none;
}
.lead-preview-row {
  min-width: 920px;
  min-height: 58px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(137, 161, 190, .12);
  color: var(--ink-soft);
  font-size: .78rem;
}
.lead-preview-columns > *,
.lead-preview-row > * {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lead-preview-row:last-child { border-bottom: 0; }
.lead-preview-row > span:first-child { color: var(--ink-faint); font-family: var(--font-mono); }
.lead-preview-row strong { color: var(--ink); font-size: .8rem; font-weight: 600; }
.preview-grade,
.grade-letter {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 600;
}
.grade-a { color: #f4b64a; }
.grade-b { color: #79b8b2; }
.grade-c { color: #8a99ae; }
.preview-grade { color: #070d18; background: currentColor; }
.preview-grade.grade-a { background: #f4b64a; }
.preview-grade.grade-b { background: #79b8b2; }
.preview-grade.grade-c { background: #8a99ae; }
.landing-caption {
  margin: 14px 0 0;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: .8rem;
  line-height: 1.55;
}
.landing-caption > span { color: var(--accent); margin-right: 7px; }

/* Process: a numbered editorial list, matching the actual product journey. */
.process-section,
.faq-section { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(42px, 8vw, 126px); align-items: center; }
.process-heading,
.protocol-heading,
.faq-intro { align-self: start; }
.process-heading > p { max-width: 40ch; margin: 24px 0 0; color: var(--ink-soft); font-size: .92rem; line-height: 1.65; }
.process-list { border-top: 1px solid var(--line); }
.process-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding: 22px 0 20px;
  border-bottom: 1px solid var(--line);
}
.process-number {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .08em;
}
.process-item h3,
.protocol-grid h3,
.grade-card h3 {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}
.process-item p,
.protocol-grid p,
.grade-card p { margin: 0; color: var(--ink-soft); font-size: .88rem; line-height: 1.55; }

/* Fit grading explains the feature without presenting it as a pricing ladder. */
.grade-heading { margin-bottom: 42px; }
.grade-heading > p { max-width: 38ch; }
.grade-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.grade-card {
  min-height: 272px;
  padding: 23px 20px 20px;
  border: 1px solid var(--line-strong);
  border-radius: .55rem;
  background: linear-gradient(145deg, rgba(14, 25, 41, .94), rgba(7, 13, 24, .84));
}
.grade-card.is-featured { border-color: rgba(244, 182, 74, .72); }
.grade-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 25px; }
.grade-tag {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .05em;
  line-height: 1.3;
  text-transform: none;
}
.grade-card h3 { max-width: 18ch; font-family: var(--font-display); font-size: 1.45rem; letter-spacing: -.02em; }
.grade-card dl { margin: 26px 0 0; border-top: 1px solid var(--line); }
.grade-card dl div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.grade-card dt, .grade-card dd { margin: 0; font-family: var(--font-mono); font-size: .8rem; }
.grade-card dt { color: var(--ink-faint); }
.grade-card dd { color: var(--ink); }

/* Protocol: transparent operating promise, no hidden price mechanics. */
.protocol-section { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: clamp(42px, 8vw, 126px); align-items: center; }
.protocol-heading h2 { max-width: 10ch; }
.protocol-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-self: end; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.protocol-grid article { min-height: 184px; padding: 20px 18px 22px; border-right: 1px solid var(--line); }
.protocol-grid article:last-child { border-right: 0; }
.protocol-icon { display: block; margin-bottom: 32px; color: var(--accent); font-size: 1.15rem; }
.protocol-grid h3 { font-size: .88rem; }
.protocol-grid p { font-size: .78rem; }

/* FAQ stays editorial and openable, never a stack of rounded cards. */
.faq-intro h2 { max-width: 12ch; }
.faq-intro > .text-button { display: inline-flex; margin-top: 20px; padding-inline: 0; color: var(--accent); }
.landing-faq { padding-top: 8px; border-top: 1px solid var(--line); }
.landing-faq details { border-bottom: 1px solid var(--line); }
.landing-faq summary { position: relative; padding: 18px 30px 18px 0; color: var(--ink); cursor: pointer; font-size: .88rem; font-weight: 600; list-style: none; }
.landing-faq summary::-webkit-details-marker { display: none; }
.landing-faq summary::after { content: "⌄"; position: absolute; top: 16px; right: 4px; color: var(--accent); font-family: var(--font-mono); font-size: .9rem; transition: transform 180ms var(--ease); }
.landing-faq details[open] summary::after { transform: rotate(180deg); }
.landing-faq details p { max-width: 58ch; padding: 0 20px 19px 0; color: var(--ink-soft); font-size: .86rem; line-height: 1.6; }

.landing-final {
  overflow: hidden;
  margin-top: 12px;
  padding: clamp(44px, 7vw, 78px) clamp(28px, 7vw, 68px);
  border: 1px solid rgba(99, 150, 113, .36);
  border-radius: .6rem;
  background: linear-gradient(130deg, rgba(14, 31, 48, .98), rgba(12, 26, 37, .94));
}
.landing-final-glow { position: absolute; top: -140px; right: 8%; width: 280px; height: 280px; border-radius: 50%; background: rgba(108, 156, 82, .18); filter: blur(80px); pointer-events: none; }
.landing-final-step { display: block; margin: 17px 0 10px; color: var(--accent); font-family: var(--font-mono); font-size: .8rem; letter-spacing: .08em; }
.landing-final h2 { position: relative; max-width: 18ch; }
.landing-final > p { position: relative; max-width: 53ch; margin: 25px 0 27px; }
.landing-final .button { position: relative; }
.landing-final-coord { position: absolute; right: 36px; bottom: 25px; color: var(--ink-faint); font-family: var(--font-mono); font-size: .8rem; letter-spacing: .05em; }
.landing-footer { display: grid; grid-template-columns: .7fr 1.4fr .9fr; gap: 32px; padding: 34px 0 18px; color: var(--ink-faint); font-size: .76rem; }
.landing-footer > div { display: flex; flex-direction: column; gap: 2px; }
.landing-footer strong { color: var(--ink); font-family: var(--font-display); font-size: 1.1rem; }
.landing-footer > div span { color: var(--accent); font-family: var(--font-mono); font-size: .8rem; letter-spacing: .05em; }
.landing-footer p { max-width: 38ch; margin: 0; line-height: 1.5; }
.landing-footer nav { display: flex; justify-content: flex-end; gap: 17px; }
.landing-footer a { color: var(--ink-soft); }
.landing-footer a:hover { color: var(--accent); }
.landing-source-note { display: flex; align-items: flex-start; gap: 16px; margin: 42px 0 0; padding: 20px 22px; border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--surface) 76%, var(--accent-soft)); }
.landing-source-note-mark { flex: 0 0 auto; color: var(--accent-bright); font-family: var(--font-display); font-size: 1.55rem; line-height: 1; }
.landing-source-kicker { margin: 0 0 6px; color: var(--accent-bright); font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; }
.landing-source-copy { max-width: 72ch; margin: 0; color: var(--ink-soft); font-size: .88rem; line-height: 1.55; }
.landing-source-copy strong { color: var(--ink); font-weight: 600; }
.landing-source-copy a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.landing-source-copy a:hover { color: var(--accent-bright); }

@media (max-width: 899px) {
  .landing-nav { order: 4; flex: 1 0 100%; justify-content: space-between; margin: 0; }
  .landing-section-head,
  .process-section,
  .protocol-section,
  .faq-section { grid-template-columns: minmax(0, 1fr); gap: 38px; }
  .landing-aside-note { max-width: 480px; }
  .protocol-grid { align-self: start; }
}
@media (max-width: 699px) {
  .landing-section { padding: 72px 0; }
  .landing-section h2, .landing-final h2 { font-size: clamp(2.45rem, 12vw, 4rem); }
  .landing-cta { align-items: stretch; flex-direction: column; }
  .landing-cta .button { width: 100%; justify-content: center; }
  .grade-grid, .protocol-grid { grid-template-columns: minmax(0, 1fr); }
  .grade-card { min-height: 0; }
  .protocol-grid article { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .protocol-grid article:last-child { border-bottom: 0; }
  .protocol-icon { margin-bottom: 18px; }
  .landing-final { padding: 37px 22px 56px; }
  .landing-final-coord { right: 22px; bottom: 20px; font-size: .8rem; }
  .landing-source-note { margin-top: 30px; padding: 17px 16px; }
  .landing-source-copy { font-size: .84rem; }
  .landing-footer { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-bottom: 38px; }
  .landing-footer nav { justify-content: flex-start; flex-wrap: wrap; }
}

/* -------------------------------------------------------------------------- */
/* 2026 Sales intelligence reframe                                            */
/* One visual language for signal, prioritisation, and pipeline work.          */
/* -------------------------------------------------------------------------- */
:root {
  --bg: #07111f;
  --surface: #0d1b2d;
  --surface-raised: #12243a;
  --surface-subtle: #0a1728;
  --ink: #f3f6f8;
  --ink-soft: #9aaec2;
  --ink-faint: #6e8298;
  --line: #1f344b;
  --line-strong: #35506a;
  --accent: #f4b64a;
  --accent-bright: #ffd071;
  --accent-soft: #2c2517;
  --success: #80d5c4;
  --danger: #ef8b7a;
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, .24);
  --shadow-lift: 0 28px 70px rgba(0, 0, 0, .34);
}

html { background: var(--bg); }
body {
  background:
    radial-gradient(circle at 77% 3%, rgba(35, 103, 156, .20), transparent 30rem),
    radial-gradient(circle at 12% 35%, rgba(244, 182, 74, .055), transparent 25rem),
    var(--bg);
}
.topbar {
  border-bottom-color: rgba(53, 80, 106, .72);
  background: rgba(7, 17, 31, .88);
}
.landing-page {
  position: relative;
  isolation: isolate;
}
.landing-page::before {
  position: absolute;
  z-index: -1;
  top: -110px;
  right: -15vw;
  width: 72vw;
  height: 670px;
  background-image: linear-gradient(rgba(99, 164, 213, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(99, 164, 213, .045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, transparent, #000 32%, #000 70%, transparent);
  content: "";
  pointer-events: none;
}
.landing-page .intro {
  grid-template-columns: minmax(0, 1.02fr) minmax(440px, .98fr);
  gap: clamp(46px, 6vw, 96px);
  min-height: min(690px, 64vw);
  padding-top: clamp(22px, 3vw, 46px);
  padding-bottom: clamp(54px, 7vw, 92px);
}
.landing-page .intro > div:first-child { max-width: 660px; }
.landing-page h1 { max-width: 12ch; font-size: clamp(3.75rem, 7.2vw, 6.7rem); line-height: .91; }
.landing-page .lede { max-width: 54ch; color: #a8b8c8; }
.landing-page .intro-lead-note { max-width: 47ch; border-left-color: var(--accent); }
.landing-page .intro-lead-note p { color: #9db1c5; }
.landing-page .landing-cta { margin-top: 32px; }
.landing-page .landing-cta .button.primary { box-shadow: 0 12px 28px rgba(244, 182, 74, .16); }

.market-visual {
  width: 100%;
  margin: 0;
  pointer-events: none;
}
.market-visual-head,
.market-visual-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}
.market-visual-head span:first-child { color: var(--accent); }
.market-visual-stage {
  position: relative;
  display: grid;
  min-height: clamp(400px, 43vw, 590px);
  place-items: center;
  overflow: visible;
  isolation: isolate;
}
.market-visual-stage::before {
  position: absolute;
  inset: 16% 2% 10%;
  z-index: -2;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(30, 106, 165, .22), rgba(30, 106, 165, .08) 42%, transparent 72%);
  content: "";
  filter: blur(14px);
  transform: rotate(-9deg);
}
.market-visual-stage::after {
  position: absolute;
  inset: 8% 8% 9%;
  z-index: -1;
  border: 1px solid rgba(93, 164, 211, .13);
  border-radius: 48% 52% 50% 48%;
  content: "";
  transform: rotate(-12deg) scaleY(.76);
}
.market-visual-image {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 610px);
  height: auto;
  opacity: 0;
  filter: saturate(1.1) contrast(1.06) drop-shadow(0 28px 34px rgba(0, 0, 0, .34));
  transform: translateY(12px) scale(.96);
  transition: opacity 620ms var(--ease), transform 760ms var(--ease);
}
.market-visual.is-ready .market-visual-image {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.market-visual.is-missing .market-visual-image { opacity: .15; }
.market-visual-axis {
  position: absolute;
  z-index: 0;
  display: block;
  opacity: .55;
  border-color: rgba(103, 171, 215, .18);
  border-style: dashed;
}
.axis-x { right: 3%; left: 3%; top: 52%; border-top-width: 1px; }
.axis-y { top: 9%; bottom: 7%; left: 50%; border-left-width: 1px; }
.market-visual-pulse {
  position: absolute;
  z-index: 2;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(244, 182, 74, .6), 0 0 22px 4px rgba(244, 182, 74, .34);
  animation: signal-pulse 3.2s ease-out infinite;
}
.pulse-one { top: 37%; left: 29%; }
.pulse-two { right: 22%; bottom: 26%; animation-delay: 1.45s; background: #86d8f1; box-shadow: 0 0 0 0 rgba(134, 216, 241, .6), 0 0 22px 4px rgba(134, 216, 241, .28); }
.market-visual-callout {
  position: absolute;
  z-index: 3;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 8px;
  align-items: center;
  min-width: 154px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .04em;
  line-height: 1.35;
}
.market-visual-callout strong { color: var(--ink); font-size: .65rem; font-weight: 600; }
.market-visual-callout small { grid-column: 2; color: var(--ink-faint); font-size: .6rem; }
.callout-signal { top: 19%; right: 1%; }
.callout-pipeline { right: 3%; bottom: 15%; }
.signal-dot { width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 15px currentColor; }
.amber-dot { color: var(--accent); background: currentColor; }
.cyan-dot { color: #86d8f1; background: currentColor; }
.market-visual-callout { display: none; }
.market-visual-readout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 40px);
  margin-top: -14px;
  padding: 0 clamp(8px, 2vw, 26px);
}
.market-visual-readout > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 9px;
  align-items: center;
  min-width: 0;
  padding-top: 11px;
  border-top: 1px solid rgba(103, 171, 215, .23);
  font-family: var(--font-mono);
}
.market-visual-readout .signal-dot { grid-row: span 2; align-self: start; margin-top: 4px; }
.market-visual-readout strong { color: var(--ink); font-size: .67rem; font-weight: 600; letter-spacing: .04em; }
.market-visual-readout small { color: var(--ink-faint); font-size: .59rem; letter-spacing: .04em; line-height: 1.35; }
.market-visual-caption { justify-content: flex-start; margin-top: 14px; color: var(--ink-soft); text-transform: none; }

.login-intent {
  margin: -18px 0 30px;
  padding: 12px 14px;
  border-left: 2px solid var(--accent);
  color: var(--ink-soft);
  font-size: .8rem;
  line-height: 1.5;
}

@keyframes signal-pulse {
  0% { box-shadow: 0 0 0 0 currentColor, 0 0 22px 4px rgba(244, 182, 74, .28); }
  65% { box-shadow: 0 0 0 17px transparent, 0 0 22px 4px rgba(244, 182, 74, .08); }
  100% { box-shadow: 0 0 0 23px transparent, 0 0 22px 4px rgba(244, 182, 74, 0); }
}

.landing-signal-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 16px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.landing-signal-rail > div {
  min-height: 126px;
  padding: 20px 20px 18px;
  border-right: 1px solid var(--line);
}
.landing-signal-rail > div:last-child { border-right: 0; }
.signal-rail-label { display: block; margin-bottom: 13px; color: var(--accent); font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; }
.landing-signal-rail strong { display: block; color: var(--ink); font-size: .9rem; font-weight: 600; }
.landing-signal-rail small { display: block; margin-top: 5px; color: var(--ink-faint); font-size: .74rem; line-height: 1.45; }

.landing-page .landing-section { padding: clamp(74px, 9vw, 124px) 0; border-top-color: rgba(53, 80, 106, .72); }
.landing-page .landing-section-head { margin-bottom: clamp(42px, 5vw, 62px); }
.landing-page .aside-file { color: var(--accent); }
.landing-page .landing-aside-note { border-left-color: rgba(244, 182, 74, .76); }
.landing-page .lead-preview,
.landing-page .grade-card,
.landing-page .landing-final { border-radius: 4px; }
.landing-page .lead-preview { border-color: var(--line-strong); background: linear-gradient(145deg, rgba(13, 28, 47, .98), rgba(7, 17, 31, .96)); box-shadow: var(--shadow-soft); }
.landing-page .lead-preview-head { background: rgba(244, 182, 74, .035); }
.landing-page .grade-card { border-color: var(--line-strong); background: linear-gradient(145deg, rgba(14, 30, 50, .96), rgba(8, 19, 33, .96)); }
.landing-page .grade-card.is-featured { border-color: rgba(244, 182, 74, .78); box-shadow: 0 16px 36px rgba(244, 182, 74, .06); }
.landing-page .protocol-grid article { background: rgba(13, 27, 45, .35); }
.landing-page .landing-final { border-color: rgba(81, 163, 148, .42); background: linear-gradient(130deg, rgba(12, 31, 50, .98), rgba(10, 28, 39, .94)); }
.landing-page .landing-source-note { border-color: var(--line-strong); background: rgba(13, 27, 45, .68); }

.landing-page .landing-footer {
  grid-template-columns: minmax(126px, .7fr) minmax(0, 1.45fr) minmax(210px, .9fr);
  align-items: start;
  row-gap: 24px;
  padding-top: 36px;
  border-top: 1px solid var(--line-strong);
}
.landing-footer-right { display: grid; gap: 11px; justify-items: end; min-width: 0; }
.landing-footer-right nav { flex-wrap: wrap; row-gap: 8px; }
.landing-footer-right small { color: var(--ink-faint); font-size: .68rem; line-height: 1.45; text-align: right; }
.landing-footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: .61rem;
  letter-spacing: .04em;
  line-height: 1.4;
}

.crm-export {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin: 22px 0 24px;
  padding: 18px 20px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: linear-gradient(90deg, rgba(13, 31, 51, .72), rgba(13, 27, 45, .28));
}
.crm-export h3 { margin: 5px 0 2px; color: var(--ink); font-size: 1.05rem; font-weight: 600; }
.crm-export p { margin: 0; color: var(--ink-faint); font-size: .78rem; line-height: 1.45; }
.export-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.export-actions .button { white-space: nowrap; }
.button:disabled { cursor: not-allowed; opacity: .45; }

@media (max-width: 899px) {
  .landing-page .intro { grid-template-columns: 1fr; min-height: 0; gap: 30px; }
  .market-visual { max-width: 690px; margin: 0 auto; }
  .market-visual-stage { min-height: min(590px, 78vw); }
  .landing-signal-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-signal-rail > div:nth-child(2) { border-right: 0; }
  .landing-signal-rail > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .crm-export { grid-template-columns: 1fr; align-items: start; }
  .export-actions { justify-content: flex-start; }
  .landing-page .landing-footer { grid-template-columns: minmax(120px, .7fr) minmax(0, 1.3fr); }
  .landing-footer-right { grid-column: 2; }
}
@media (max-width: 560px) {
  .landing-page .intro { padding-top: 12px; }
  .landing-page h1 { font-size: clamp(3.15rem, 15vw, 4.7rem); }
  .market-visual-stage { min-height: 350px; }
  .market-visual-head { font-size: .59rem; }
  .market-visual-caption { font-size: .66rem; }
  .market-visual-readout { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: -8px; }
  .landing-signal-rail > div { min-height: 112px; padding: 16px 14px; }
  .landing-signal-rail strong { font-size: .82rem; }
  .landing-signal-rail small { font-size: .68rem; }
  .landing-page .landing-footer { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .landing-footer-right { grid-column: auto; justify-items: start; }
  .landing-footer-right nav { justify-content: flex-start; }
  .landing-footer-right small { text-align: left; }
  .landing-footer-bottom { grid-column: auto; flex-direction: column; gap: 5px; }
  .crm-export { padding: 17px 15px; }
  .export-actions .button { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .market-visual-image { transition: none; }
  .market-visual-pulse { animation: none; }
}

.landing-access-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr);
  gap: clamp(24px, 6vw, 90px);
  align-items: end;
  margin: 40px 0 12px;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid rgba(244, 182, 74, .32);
  border-radius: 4px;
  background: linear-gradient(120deg, rgba(14, 31, 48, .96), rgba(11, 26, 39, .8));
}
.landing-access-panel h2 { max-width: 14ch; margin: 0; font-size: clamp(2rem, 4vw, 3.6rem); line-height: .98; }
.landing-access-panel p { max-width: 50ch; margin: 17px 0 0; color: var(--ink-soft); line-height: 1.6; }
.landing-access-offer { display: grid; gap: 8px; padding-left: 22px; border-left: 1px solid var(--accent); }
.landing-access-price { color: var(--ink); font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 4.3rem); line-height: .9; }
.landing-access-period { color: var(--accent-bright); font: 600 .72rem/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.landing-access-offer small { color: var(--ink-faint); font-size: .71rem; line-height: 1.45; }
@media (max-width: 899px) {
  .landing-access-panel { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .landing-access-offer { padding-top: 18px; padding-left: 0; border-top: 1px solid var(--accent); border-left: 0; }
}

/* Prompt chain: turn strategy into a visible sales-thinking workflow. */
.strategy-chain {
  position: relative;
  display: grid;
  gap: 18px;
  margin: 32px 0 42px;
}
.strategy-chain::before {
  content: "";
  position: absolute;
  top: 58px;
  bottom: 58px;
  left: 27px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--line-strong) 48%, transparent);
  pointer-events: none;
}
.chain-step {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(14, 25, 41, .92), rgba(8, 16, 28, .88));
  box-shadow: 0 14px 34px rgba(0, 0, 0, .12);
}
.chain-step.is-ready { border-color: rgba(244, 182, 74, .48); }
.chain-step.is-locked { border-style: dashed; }
.chain-step-head {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 23px 24px 20px;
}
.chain-number {
  position: relative;
  z-index: 1;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent-bright);
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 600;
}
.chain-step.is-locked .chain-number { border-color: var(--line-strong); color: var(--ink-faint); }
.chain-kicker {
  display: block;
  margin: 2px 0 7px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.chain-step h3 { margin: 0 0 6px; color: var(--ink); font-family: var(--font-display); font-size: clamp(1.45rem, 2.6vw, 2rem); line-height: 1.05; }
.chain-step-head p { max-width: 67ch; margin: 0; color: var(--ink-soft); font-size: .9rem; line-height: 1.55; }
.chain-state {
  padding-top: 3px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: .67rem;
  letter-spacing: .06em;
  text-align: right;
  text-transform: uppercase;
  white-space: nowrap;
}
.chain-step.is-ready .chain-state { color: var(--accent-bright); }
.chain-step-body {
  display: grid;
  gap: 17px;
  padding: 22px 24px 25px 98px;
  border-top: 1px solid var(--line);
}
.chain-step-body > label { margin: 0; }
.chain-step-body textarea { min-height: 96px; }
.prompt-surface {
  overflow: hidden;
  border: 1px solid rgba(137, 161, 190, .28);
  border-radius: 9px;
  background: rgba(4, 10, 20, .62);
}
.prompt-surface-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 14px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--accent-bright);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.prompt-surface-head span:last-child { color: var(--ink-faint); }
.prompt-copy {
  max-height: 300px;
  margin: 0;
  overflow: auto;
  padding: 17px;
  color: #c8d3e0;
  font-family: var(--font-mono);
  font-size: .76rem;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.prompt-copy:focus-visible { outline-offset: -3px; }
.prompt-actions, .chain-step-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.prompt-actions { padding: 0 14px 13px; }
.copy-status { min-height: 1.2em; color: var(--success); font-family: var(--font-mono); font-size: .7rem; }
.choice-list { display: grid; gap: 8px; }
.choice-card {
  display: grid;
  grid-template-columns: 18px 34px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-height: 52px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 13, 24, .32);
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color .18s var(--ease), background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.choice-card:hover { border-color: var(--line-strong); color: var(--ink); transform: translateX(2px); }
.choice-card:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(244, 182, 74, .1); }
.choice-card:has(input:checked) { border-color: rgba(244, 182, 74, .68); background: rgba(244, 182, 74, .08); color: var(--ink); }
.choice-card input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.choice-index { color: var(--accent); font-family: var(--font-mono); font-size: .72rem; }
.choice-copy { min-width: 0; font-size: .87rem; line-height: 1.45; }
.choice-empty { margin: 0; padding: 4px 0; }
.chain-step-actions { justify-content: flex-start; }
.chain-step-actions .hint { flex: 1 1 240px; }
.chain-save-actions { align-items: end; }
.grade-control { flex: 0 0 170px; margin: 0; }
.grade-control select { margin-top: 7px; }

@media (max-width: 699px) {
  .strategy-chain { margin-top: 25px; }
  .strategy-chain::before { left: 21px; }
  .chain-step-head { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 19px 17px 17px; }
  .chain-number { width: 42px; height: 42px; font-size: .72rem; }
  .chain-state { grid-column: 2; padding-top: 0; text-align: left; }
  .chain-step-body { padding: 19px 17px 21px; }
  .prompt-surface-head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .prompt-copy { max-height: 360px; padding: 14px; font-size: .72rem; }
  .chain-step-actions .button, .chain-save-actions .button { width: 100%; }
  .grade-control { flex-basis: 100%; }
}
