:root {
  --bg: #efe8dc;
  --bg-warm: #f5efe4;
  --surface: #fbf7f0;
  --surface-raised: #fffdf8;
  --ink: #1f1c17;
  --ink-muted: #6a6358;
  --line: #e0d6c6;
  --accent: #2f6b4f;
  --accent-deep: #24553f;
  --accent-soft: #e7f1ea;
  --accent-mid: #d3e6da;
  --warn-bg: #f7ebe1;
  --warn-ink: #8a4b1f;
  --ok-bg: #e7f1ea;
  --shadow-soft: 0 14px 36px rgba(45, 38, 28, 0.1), 0 2px 8px rgba(45, 38, 28, 0.05);
  --shadow-node: 0 12px 28px rgba(45, 38, 28, 0.12), 0 2px 6px rgba(45, 38, 28, 0.06);
  --sidebar-w: 14rem;
  --radius: 0.9rem;
  --radius-lg: 1.35rem;
  --font-display: system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-label: system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  height: 100dvh;
  margin: 0;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 50% at 0% 0%, #e8dcc8 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 0%, #e0ebe3 0%, transparent 50%),
    radial-gradient(ellipse 45% 35% at 70% 100%, #ebe3d4 0%, transparent 45%),
    var(--bg);
  line-height: 1.5;
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}

.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  padding: 1.25rem;
  border-right: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: color-mix(in srgb, var(--surface) 75%, transparent);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
  color: inherit;
  text-decoration: none;
}

a.brand:focus-visible {
  outline: 2px solid #2688f3;
  outline-offset: 3px;
  border-radius: 0.25rem;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand__mark,
.brand__logo,
.public-brand__mark {
  display: block;
  flex: none;
}

.z2s-num {
  color: #2688f3;
}

.sidebar__label {
  margin: 0 0 0.4rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1.25rem;
}

.nav__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.75rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
}

.nav__item[hidden] { display: none; }
.nav__item--active {
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 600;
}

.nav__item--soon {
  color: var(--ink-muted);
  cursor: default;
}

.nav__item em {
  font-style: normal;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.btn-add-fab {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.btn-add-fab:hover {
  background: var(--accent-deep);
}

.btn-add-fab:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 3px;
}

.btn-add-fab__tooltip {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  padding: 0.3rem 0.55rem;
  border-radius: 0.4rem;
  background: var(--ink);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-2px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.btn-add-fab:hover .btn-add-fab__tooltip,
.btn-add-fab:focus-visible .btn-add-fab__tooltip {
  opacity: 1;
  transform: none;
}

.stage {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  padding: 0.85rem clamp(1rem, 3vw, 2rem) 1rem;
}

.view[hidden] {
  display: none !important;
}

.view--space {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
  position: relative;
}

.view--product,
.view--research {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.space-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  flex-shrink: 0;
  margin-bottom: 0.55rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  flex-shrink: 0;
  margin-bottom: 0.9rem;
}

.metrics[hidden],
.metrics-empty[hidden] {
  display: none !important;
}

.metric {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: var(--surface-raised);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  box-shadow: var(--shadow-soft);
}

.metric__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.metric__value {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.metrics-empty {
  flex-shrink: 0;
  margin: 0 0 0.9rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  border: 1px dashed var(--line);
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.space-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 0.75rem;
}

.space-workspace {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  background: var(--surface-raised);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 10px 28px rgba(45, 38, 28, 0.07);
}

.space-workspace__label {
  position: absolute;
  z-index: 3;
  top: 0.75rem;
  left: 0.95rem;
  margin: 0;
  padding: 0.22rem 0.5rem;
  border-radius: 0.4rem;
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface-raised) 94%, #fff);
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  box-shadow: 0 1px 2px rgba(45, 38, 28, 0.06);
  pointer-events: none;
}

.space-workspace__viewport {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}

.potential-bar {
  position: relative;
  z-index: auto;
  flex: 0 0 auto;
  display: flex;
  justify-content: stretch;
  align-items: stretch;
  width: 100%;
  pointer-events: none;
}

.potential-bar--launcher {
  justify-content: center;
  align-items: flex-start;
}

.potential-bar--launcher .potential-bar__capsule {
  pointer-events: auto;
  width: min(520px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  padding: 1.15rem 1.45rem 1.25rem;
  border-radius: 1.35rem;
  color: #f4faf6;
  background:
    radial-gradient(ellipse 80% 70% at 18% 12%, rgba(255, 236, 200, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 60% at 88% 88%, rgba(232, 214, 160, 0.16), transparent 50%),
    linear-gradient(155deg, #3a8560 0%, #2f6b4f 42%, #1f4634 100%);
  border: 1px solid color-mix(in srgb, #9fd4b4 35%, transparent);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 36px rgba(47, 107, 79, 0.35),
    0 16px 36px rgba(31, 70, 52, 0.35),
    0 4px 10px rgba(45, 38, 28, 0.12);
}

/* Completed journey: in-flow compact scoreboard (never overlays the map) */
.potential-bar--metrics {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  width: 100%;
  justify-content: stretch;
  align-items: stretch;
  z-index: auto;
}

.potential-bar--metrics .potential-bar__capsule,
.potential-bar__capsule--journey,
.potential-bar__capsule--status {
  pointer-events: auto;
  width: 100%;
  display: block;
  padding: 0;
  border: none;
  border-radius: 0.85rem;
  background: transparent;
  box-shadow: none;
  color: inherit;
  text-align: left;
}

.status-strip {
  display: grid;
  grid-template-columns: minmax(12.5rem, 1.18fr) repeat(4, minmax(10.5rem, 1fr));
  gap: 0.75rem;
  width: 100%;
  align-items: stretch;
}

.status-strip__tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.55rem;
  min-height: 9.6rem;
  width: 100%;
  margin: 0;
  padding: 1.05rem 1.1rem 1.05rem;
  border-radius: 1.2rem;
  border: 1px solid color-mix(in srgb, #d9cebc 70%, transparent);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), transparent 42%),
    #fffdf8;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.78) inset,
    0 10px 24px rgba(45, 38, 28, 0.07);
  color: var(--ink);
  font: inherit;
  text-align: left;
  overflow: hidden;
}

button.status-strip__tile {
  cursor: pointer;
  appearance: none;
}

button.status-strip__tile:hover,
button.status-strip__tile:focus-visible {
  border-color: color-mix(in srgb, #17875c 35%, #d9cebc);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 12px 28px rgba(45, 38, 28, 0.1);
}

button.status-strip__tile:focus-visible {
  outline: 2px solid color-mix(in srgb, #17875c 55%, transparent);
  outline-offset: 2px;
}

.status-strip__tile--potential {
  color: #f4faf6;
  border-color: color-mix(in srgb, #9fd4b4 42%, transparent);
  background:
    radial-gradient(ellipse 80% 70% at 14% 8%, rgba(255, 236, 200, 0.3), transparent 55%),
    radial-gradient(ellipse 90% 55% at 50% 118%, rgba(18, 48, 34, 0.55), transparent 62%),
    linear-gradient(155deg, #3a8560 0%, #2f6b4f 42%, #1f4634 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 14px 28px rgba(31, 70, 52, 0.28);
}

.status-strip__tile.is-locked {
  color: color-mix(in srgb, var(--ink) 88%, #8a8478);
  border: 2px solid #17875c;
  box-shadow:
    0 0 0 1px color-mix(in srgb, #17875c 28%, transparent),
    0 1px 0 rgba(255, 255, 255, 0.78) inset,
    0 10px 24px rgba(45, 38, 28, 0.07);
}

.status-strip__tile.is-locked .status-strip__label {
  color: #c01515;
  font-weight: 750;
  font-size: 0.86rem;
  line-height: 1.28;
}

.status-strip__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.status-strip__eyebrow {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}

.status-strip__tile--potential .status-strip__eyebrow {
  color: color-mix(in srgb, #e8f6ee 90%, #f5e6c0);
}

.status-strip__lock {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  color: #8a8478;
  background: color-mix(in srgb, #f3eee4 82%, #fff);
  border: 1px solid color-mix(in srgb, #e6ddcf 80%, transparent);
}

.status-strip__value {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.status-strip__tile--potential .status-strip__value {
  color: #fffef9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.16);
}

.status-strip__tile.is-locked .status-strip__value {
  color: color-mix(in srgb, var(--ink-muted) 70%, transparent);
}

.status-strip__label {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.3;
  color: var(--ink-muted);
}

.status-strip__tile--potential .status-strip__label {
  color: color-mix(in srgb, #e8f6ee 82%, transparent);
}

.potential-journey {
  display: grid;
  grid-template-columns: minmax(10rem, 1.2fr) repeat(4, minmax(0, 1fr));
  width: 100%;
  max-width: 100%;
  min-height: 0;
  border-radius: 0.7rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, #c9bba6 38%, transparent);
  box-shadow: 0 4px 12px rgba(45, 38, 28, 0.06);
  background: color-mix(in srgb, #faf6ef 96%, #fff);
}

.potential-journey--expanding {
  transform: scaleX(0.38);
  transform-origin: center top;
  opacity: 0.88;
  transition:
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 380ms ease;
}

.potential-journey--expanding.is-expanded {
  transform: none;
  opacity: 1;
}

.potential-journey__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.1rem;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 0.45rem 0.7rem 0.48rem;
  background: transparent;
}

.potential-journey__panel--primary {
  gap: 0.12rem;
  padding: 0.5rem 0.8rem 0.52rem;
  color: #f4faf6;
  background:
    radial-gradient(ellipse 75% 70% at 12% 8%, rgba(255, 236, 200, 0.22), transparent 55%),
    linear-gradient(155deg, #3a8560 0%, #2f6b4f 42%, #1f4634 100%);
}

.potential-journey__panel:not(.potential-journey__panel--primary) {
  position: relative;
  color: var(--ink);
}

.potential-journey__panel:not(.potential-journey__panel--primary)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: color-mix(in srgb, #cfc3b0 42%, transparent);
  pointer-events: none;
}

.potential-journey__eyebrow {
  margin: 0;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.potential-journey__panel--primary .potential-journey__eyebrow {
  color: color-mix(in srgb, #e8f6ee 88%, #f5e6c0);
}

.potential-journey__panel:not(.potential-journey__panel--primary) .potential-journey__eyebrow {
  color: color-mix(in srgb, var(--ink-muted) 92%, transparent);
  font-weight: 650;
}

.potential-journey__value {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(0.92rem, 1.25vw, 1.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #fffef9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.16);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.potential-journey__panel--primary .potential-journey__value {
  font-size: clamp(0.95rem, 1.3vw, 1.18rem);
}

.potential-journey__value--empty {
  font-size: clamp(0.98rem, 1.35vw, 1.18rem);
  font-weight: 650;
}

.potential-journey__meta {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.3;
  color: color-mix(in srgb, #dceee4 84%, transparent);
}

.potential-journey__explain {
  margin: 0.15rem 0 0;
  font-size: 0.68rem;
  line-height: 1.3;
  color: color-mix(in srgb, #dceee4 72%, transparent);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.opportunity-form__arr-hint {
  margin-top: 0.35rem;
}

.potential-journey__best {
  margin: 0.1rem 0 0;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.3;
  color: #ffe7a8;
}

.potential-journey__placeholder {
  margin: 0.06rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
  color: color-mix(in srgb, var(--ink) 72%, var(--ink-muted));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.potential-journey__placeholder--dash {
  font-size: 1.05rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--ink-muted) 55%, transparent);
  letter-spacing: 0.04em;
}

.potential-journey__placeholder--metric {
  font-family: var(--font-display);
  font-size: clamp(0.92rem, 1.2vw, 1.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.potential-journey__next {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.45rem 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.potential-journey__next-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-soft) 80%, transparent);
}

.potential-journey__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  margin-top: 0.28rem;
}

.potential-journey__link {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 650;
  color: #ffe7a8;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.potential-journey__link:hover {
  color: #fffef9;
}

.potential-journey__link--quiet {
  color: color-mix(in srgb, #dceee4 72%, transparent);
  font-weight: 550;
  text-decoration: none;
}

.potential-journey__link--quiet:hover {
  color: #fffef9;
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .potential-journey--expanding {
    transform: none;
    opacity: 1;
    transition: none;
  }
}

.potential-bar__mark-wrap {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.1rem;
  border-radius: 999px;
  background: linear-gradient(165deg, #fffef9 0%, #f0e6d4 100%);
  box-shadow:
    0 6px 14px rgba(16, 40, 28, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.45) inset;
}

.potential-bar__mark {
  width: 1.7rem;
  height: 1.7rem;
}

.potential-bar__eyebrow {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, #e8f6ee 88%, #f5e6c0);
}

.potential-bar__headline {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fffef9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.potential-bar__meta {
  margin: 0.1rem 0 0.35rem;
  max-width: 26rem;
  font-size: 0.9rem;
  line-height: 1.35;
  color: color-mix(in srgb, #dceee4 82%, transparent);
}

.potential-bar__cta {
  margin-top: 0.25rem;
  padding: 0.65rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-deep);
  background: linear-gradient(180deg, #fffef9 0%, #f3ebe0 100%);
  border: 1px solid color-mix(in srgb, #fff 55%, #e0d6c6);
  box-shadow:
    0 8px 20px rgba(20, 40, 30, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.potential-bar__cta:hover {
  background: #fff;
  color: #163628;
}

.potential-bar__cta-arrow {
  margin-left: 0.15rem;
}

.potential-bar__cta--ghost {
  color: #f4faf6;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.potential-bar__cta--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.potential-bar__headline--value {
  font-size: clamp(1.55rem, 3vw, 2rem);
}

.potential-bar__running,
.potential-bar__disclaimer {
  margin: 0;
  font-size: 0.85rem;
  color: color-mix(in srgb, #dceee4 78%, transparent);
}

.potential-bar__best {
  margin: 0.15rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffe7a8;
}

.potential-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.35rem;
}

/* Opportunity analysis progress capsule */
.potential-bar[data-mode="analysing"] .potential-bar__capsule {
  pointer-events: auto;
  width: min(560px, 100%);
  gap: 0.45rem;
  padding: 1.2rem 1.35rem 1.1rem;
}

.opp-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  width: 100%;
}

.opp-progress__mark {
  position: relative;
}

.opp-progress__spinner {
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 2px solid transparent;
  border-top-color: color-mix(in srgb, #f5e6c0 80%, transparent);
  border-right-color: color-mix(in srgb, #9fd4b4 55%, transparent);
  animation: opp-spin 1.1s linear infinite;
}

.opp-progress__headline {
  max-width: 28rem;
}

.opp-progress__track {
  display: flex;
  gap: 0.35rem;
  width: min(100%, 20rem);
  margin: 0.35rem 0 0.15rem;
}

.opp-progress__seg {
  flex: 1;
  height: 0.42rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  transition: background 220ms ease, transform 220ms ease;
}

.opp-progress__seg--complete {
  background: linear-gradient(90deg, #f0e2b8, #ffe7a8);
}

.opp-progress__seg--current {
  background: linear-gradient(90deg, rgba(255, 231, 168, 0.45), #ffe7a8);
  animation: opp-seg-pulse 1.4s ease-in-out infinite;
}

.opp-progress__seg--pending {
  background: rgba(255, 255, 255, 0.14);
  opacity: 0.55;
}

.opp-progress__seg--failed {
  background: rgba(255, 196, 180, 0.75);
}

.opp-progress__step {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: color-mix(in srgb, #e8f6ee 78%, #f5e6c0);
}

.opp-progress__island {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 700;
  color: #fffef9;
  letter-spacing: -0.02em;
}

.opp-progress__activity {
  margin: 0;
  min-height: 1.25em;
  font-size: 0.92rem;
  color: color-mix(in srgb, #dceee4 88%, transparent);
}

.opp-progress__announce {
  margin: 0.2rem 0 0;
  max-width: 28rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  color: #ffe7a8;
}

.opp-progress__running {
  margin: 0.1rem 0 0;
  font-size: 0.88rem;
  color: color-mix(in srgb, #e8f6ee 85%, transparent);
}

.opp-progress__elapsed {
  margin: 0;
  font-size: 0.78rem;
  color: color-mix(in srgb, #dceee4 65%, transparent);
}

.opp-progress__note {
  margin: 0.15rem 0 0;
  max-width: 26rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: color-mix(in srgb, #dceee4 58%, transparent);
}

.opp-progress__still {
  margin: 0.1rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #f5e6c0;
}

.opp-progress__cancel {
  margin-top: 0.35rem;
  padding: 0.2rem 0.45rem;
  border: 0;
  background: transparent;
  color: color-mix(in srgb, #dceee4 62%, transparent);
  font: inherit;
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
  pointer-events: auto;
}

.opp-progress__cancel:hover,
.opp-progress__cancel:focus-visible {
  color: #fffef9;
}

@keyframes opp-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes opp-seg-pulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scaleY(1);
  }
  50% {
    opacity: 1;
    transform: scaleY(1.15);
  }
}

.opp-progress.is-reduced-motion .opp-progress__spinner,
.opp-progress.is-reduced-motion .opp-progress__seg--current {
  animation: none;
}

.spatial-bubble-host--recommended .sb--best,
.spatial-bubble-host--recommended {
  filter: drop-shadow(0 0 14px rgba(212, 160, 23, 0.45));
}

.sb__best {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #8a6410;
  background: rgba(255, 236, 170, 0.95);
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  white-space: nowrap;
}

.spatial-bubble-host--pending {
  opacity: 0.55;
}

.spatial-bubble-host--analysing {
  animation: island-pulse 1.6s ease-in-out infinite;
}

.spatial-bubble-host--just-complete {
  animation: island-complete-pop 0.7s ease-out 1;
}

.spatial-link--illuminated {
  stroke: #d4a017 !important;
  stroke-width: 3.1px !important;
  stroke-opacity: 0.92 !important;
  filter: drop-shadow(0 0 6px rgba(212, 160, 23, 0.45));
}

@keyframes island-pulse {
  0%,
  100% {
    filter: drop-shadow(0 0 0 rgba(47, 107, 79, 0));
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    filter: drop-shadow(0 0 12px rgba(47, 107, 79, 0.45));
    transform: translate(-50%, -50%) scale(1.03);
  }
}

@keyframes island-complete-pop {
  0% {
    transform: translate(-50%, -50%) scale(0.92);
    filter: drop-shadow(0 0 0 rgba(212, 160, 23, 0));
  }
  55% {
    transform: translate(-50%, -50%) scale(1.06);
    filter: drop-shadow(0 0 14px rgba(212, 160, 23, 0.4));
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    filter: drop-shadow(0 0 0 rgba(212, 160, 23, 0));
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .spatial-bubble-host--analysing,
  .spatial-bubble-host--just-complete,
  .opp-progress__spinner,
  .opp-progress__seg--current,
  .spatial-link--illuminated {
    animation: none !important;
    filter: none;
  }

  .spatial-bubble-host--analysing {
    outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
  }

  .spatial-link--illuminated {
    stroke-width: 3px !important;
  }
}

.sb__estimate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  margin-top: 0.15rem;
}

.sb__gross {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-deep);
  letter-spacing: -0.01em;
  margin-top: 0.1rem;
}

.sb__sat {
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-muted);
}

.sb__opp-total {
  margin-top: 0.15rem;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: #1a2a20;
}

.empty-state {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 2rem;
  text-align: center;
  max-width: 32rem;
  margin: auto;
}

.empty-state[hidden] {
  display: none !important;
}

.empty-state__icon {
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.empty-state h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.empty-state p {
  margin: 0 0 0.75rem;
  color: var(--ink-muted);
}

.dev-import-local {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.nodes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  padding: 0;
}

.nodes[hidden] {
  display: none !important;
}

.product-switcher {
  position: absolute;
  z-index: 6;
  top: 0.65rem;
  left: 0.65rem;
  right: 4.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  pointer-events: none;
}
.view--space-state1 .product-switcher,
.view--space-state1 .product-list {
  display: none !important;
}

.product-switcher__chip {
  pointer-events: auto;
  border: 1px solid var(--line);
  background: var(--surface-raised);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.product-switcher__chip.is-active {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  color: var(--accent-deep);
  font-weight: 600;
}

/* Spatial force map — categories are capsules, islands are objects */
.spatial-root {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  opacity: 1;
  transition: opacity 180ms ease;
}

.spatial-root.is-preparing {
  opacity: 0;
  pointer-events: none;
}

.spatial-root.is-ready {
  opacity: 1;
}

.spatial-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  touch-action: none;
  background:
    radial-gradient(ellipse 70% 60% at 50% 48%, #f7fbf8 0%, #eef6f2 42%, #e8f0ec 100%);
}

.spatial-svg {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.spatial-svg:active {
  cursor: grabbing;
}

.spatial-html-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.spatial-html-world {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  transform-origin: 0 0;
  will-change: transform;
}

.spatial-link {
  fill: none;
  pointer-events: none;
}

.spatial-node {
  cursor: grab;
}

.spatial-node:active {
  cursor: grabbing;
}

.spatial-node.is-selected .spatial-dot,
.spatial-bubble-host.is-selected {
  z-index: 5;
}

.spatial-node.is-selected .spatial-dot {
  stroke-width: 2.6;
}

.spatial-bubble-host {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
  text-align: center;
  overflow: visible;
  padding: 0.55rem 0.8rem;
  box-sizing: border-box;
  z-index: 2;
}

.spatial-bubble-host--category {
  z-index: 3;
  overflow: visible;
  opacity: 0.88;
}

.spatial-bubble-host--island {
  z-index: 6;
  overflow: visible;
}

.spatial-bubble-host--product.spatial-hub-label {
  z-index: 5;
  color: #f4faf6;
}

.spatial-hub-label .sb--hub {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1rem;
  box-sizing: border-box;
  text-align: center;
  pointer-events: none;
}

.spatial-hub-label .sb__title {
  color: #f3faf6;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 8px rgba(6, 36, 25, 0.35);
}

.spatial-label {
  z-index: 6;
  width: auto;
  height: auto;
  padding: 0;
  justify-content: flex-start;
  text-align: left;
  pointer-events: auto;
}

.spatial-label.is-west {
  text-align: right;
}

.spatial-label .sb--island-label {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  max-width: 11.5rem;
  pointer-events: auto;
}

.spatial-label .sb__title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1d2a24;
  line-height: 1.2;
}

.spatial-label__arr {
  font-size: 0.68rem;
  font-weight: 650;
  color: #5a6b62;
  letter-spacing: 0.01em;
}

.spatial-label__rating {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spatial-label__rating--strong { color: #147a52; }
.spatial-label__rating--promising { color: #c4842a; }
.spatial-label__rating--exploratory { color: #2f7ad1; }

.spatial-root--hub.is-settled .spatial-bubble-host--island,
.spatial-root--hub.is-settled .spatial-bubble-host--product {
  animation: none;
}

.spatial-bubble-host--island.is-selected,
.spatial-bubble-host--product.is-selected {
  z-index: 9;
}

.spatial-bubble-host .sb__build {
  pointer-events: auto;
}

/* Labels live in the zoomed HTML world — they scale with the bubbles */
.sb__screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  max-width: 13.5rem;
}

.spatial-bubble-host--category .sb__screen {
  max-width: 12.5rem;
}

.spatial-bubble-host--island .sb__screen {
  max-width: 12rem;
}

.spatial-bubble-host--product .sb__screen {
  max-width: 14rem;
}

.sb {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-width: 100%;
  min-width: 0;
  font-family: var(--font-label);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.sb__kind {
  margin: 0;
  font-family: var(--font-label);
  font-size: 10px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--ink-muted);
}

.sb__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  overflow: visible;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: manual;
}

.sb--product .sb__kind {
  color: rgba(244, 250, 246, 0.78);
  text-shadow: none;
}

.sb--product .sb__title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #fffef9;
  max-width: 13rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

.sb--product .sb__title--wrap {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.2;
  text-wrap: balance;
}

.sb--category .sb__kind {
  color: #4a6356;
  font-size: 10px;
}

.sb--category .sb__title {
  font-size: 13px;
  font-weight: 650;
  color: #1a2a20;
  max-width: 10.5rem;
}

.sb--island .sb__title {
  font-family: var(--font-label);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  max-width: 12rem;
  color: #1f1b16;
}

.spatial-bubble-host--tint1 .sb--category .sb__kind {
  color: #8a5f22;
}

.spatial-bubble-host--tint1 .sb--category .sb__title {
  color: #3a2810;
}

.spatial-bubble-host--tint2 .sb--category .sb__kind {
  color: #3d6280;
}

.spatial-bubble-host--tint2 .sb--category .sb__title {
  color: #1a2f42;
}

.sb__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  align-items: center;
  justify-content: center;
}

.sb__meta,
.sb__desc {
  margin: 0;
  font-size: 0.7rem;
  color: var(--ink-muted);
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.sb__rating {
  font-size: 11px;
  font-weight: 600;
  padding: 0.08rem 0.35rem;
  border-radius: 999px;
  background: rgba(231, 241, 234, 0.9);
  color: #5a6b60;
  letter-spacing: 0.01em;
}

.sb__rating--strong {
  background: rgba(216, 236, 223, 0.95);
  color: #3d6a52;
}

.sb__rating--promising {
  background: rgba(239, 230, 212, 0.95);
  color: #7a6540;
}

.sb__rating--exploratory {
  background: rgba(235, 230, 223, 0.95);
  color: #6a6358;
}

.sb__rec {
  font-size: 11px;
  font-weight: 700;
  color: #9a7a30;
  line-height: 1;
}

.sb__assumptions {
  margin: 0.15rem 0 0;
  padding-left: 1rem;
  text-align: left;
  font-size: 0.68rem;
  color: var(--ink-muted);
}

.campaigns-top {
  padding: 1.25rem 1.5rem 0.5rem;
  max-width: 40rem;
}

.campaigns-top__title {
  margin: 0.35rem 0 0.25rem;
  font-size: 1.45rem;
  color: var(--ink);
}

.campaigns-top__lead {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.campaigns-body {
  padding: 0.75rem 1.5rem 2rem;
  max-width: 40rem;
}

.campaigns-empty {
  margin: 1rem 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.campaigns-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.campaigns-card {
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  background: color-mix(in srgb, var(--surface) 70%, #fff);
}

.campaigns-card.is-highlight {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  background: var(--accent-soft);
}

.campaigns-card__eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.campaigns-card__title {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  color: var(--ink);
}

.campaigns-card__island {
  margin: 0;
  font-weight: 600;
  color: var(--accent-deep);
}

.campaigns-card__meta {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* —— Campaigns dense operating console —— */
.view--campaigns {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.campaigns-console-root,
.campaign-detail-root {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.camp-console {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.75rem 1rem 1.25rem;
  min-height: 100%;
}

.camp-console__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  flex-shrink: 0;
}

.camp-console__head-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.camp-console__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.camp-kpi {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0;
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  border-radius: 0.55rem;
  background: var(--surface-raised);
  overflow: hidden;
}

.camp-kpi__item {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.45rem 0.55rem;
  min-width: 0;
  border-right: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.camp-kpi__item:last-child {
  border-right: none;
}

.camp-kpi__label {
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.camp-kpi__value {
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
}

.camp-console__kicker {
  margin: 0 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5d675f;
}

.camp-console__lead {
  margin: 0.35rem 0 0;
  max-width: 46rem;
  color: #3e4742;
  font-size: 0.92rem;
  line-height: 1.45;
}

.camp-ops {
  gap: 0.85rem;
  padding: 1rem 1.15rem 1.5rem;
}

.camp-ops .camp-kpi {
  display: flex;
  flex-wrap: wrap;
  grid-template-columns: unset;
  gap: 0.9rem;
  border: 0;
  background: transparent;
  overflow: visible;
}

.camp-ops .camp-kpi__item {
  flex: 0 0 11.5rem;
  width: 11.5rem;
  aspect-ratio: 5 / 7;
  min-height: 0;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 1.25rem 0.85rem 1.05rem;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 1.05rem;
  background: #fff;
  box-shadow: 0 1px 0 rgba(16, 32, 24, 0.03);
}

.camp-ops .camp-kpi__item:last-child {
  border-right: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}

.camp-ops .camp-kpi__label {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #121a16;
  text-align: center;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.camp-ops .camp-kpi__value {
  margin-top: auto;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-align: center;
}

.camp-ops .camp-kpi__icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 0.2rem;
  border-radius: 999px;
}

.camp-ops .camp-kpi__item[data-kpi="budget"] .camp-kpi__icon {
  color: #17875c;
  background: #e8f6ef;
}
.camp-ops .camp-kpi__item[data-kpi="value"] .camp-kpi__icon {
  color: #b45309;
  background: #f8ecd8;
}
.camp-ops .camp-kpi__item[data-kpi="orgs"] .camp-kpi__icon {
  color: #1d4e89;
  background: #e4eef8;
}
.camp-ops .camp-kpi__item[data-kpi="chat"] .camp-kpi__icon {
  color: #0f766e;
  background: #ddf3ef;
}
.camp-ops .camp-kpi__item[data-kpi="meet"] .camp-kpi__icon {
  color: #6d28d9;
  background: #eee6fb;
}
.camp-ops .camp-kpi__item[data-kpi="outcome"] .camp-kpi__icon {
  color: #be123c;
  background: #fde8ee;
}

.camp-ops .camp-kpi__icon-svg {
  width: 2rem;
  height: 2rem;
}

.camp-ops .camp-kpi__hint {
  font-size: 0.78rem;
  font-weight: 550;
  text-align: center;
  line-height: 1.25;
}

.camp-kpi__top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.camp-kpi__icon {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.45rem;
  color: #17875c;
  background: #e8f6ef;
  flex: none;
}

.camp-kpi__hint {
  font-size: 0.72rem;
  color: #6b746e;
}

.camp-toolbar__select select,
.camp-toolbar__sort select {
  font: inherit;
  font-size: 0.85rem;
  padding: 0.4rem 1.7rem 0.4rem 0.65rem;
  border-radius: 0.5rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.camp-toolbar__sort {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: #5d675f;
}

.camp-toolbar__clear {
  border: 0;
  background: transparent;
  color: #17875c;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 650;
  cursor: pointer;
  padding: 0.35rem 0.2rem;
}

.camp-page {
  margin: 0;
  font-size: 0.8rem;
  color: #6b746e;
}

.camp-island {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.camp-island__mark {
  display: grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 0.45rem;
  flex: none;
  font-size: 0.72rem;
  font-weight: 750;
  color: hsl(var(--island-h, 150) 40% 28%);
  background: hsl(var(--island-h, 150) 45% 92%);
}

.camp-island__name {
  font-size: 0.85rem;
  font-weight: 650;
}

.camp-territory {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.camp-territory__flag {
  letter-spacing: -0.12em;
}

.camp-metric {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  font-variant-numeric: tabular-nums;
}

.camp-metric__bar {
  display: block;
  width: 3.2rem;
  height: 0.28rem;
  border-radius: 99px;
  background: #e7eee9;
}

.camp-metric__bar::after {
  content: "";
  display: block;
  width: var(--camp-bar, 0%);
  height: 100%;
  border-radius: inherit;
  background: #17875c;
}

.camp-updated {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.82rem;
}

.camp-updated span {
  color: #6b746e;
  font-size: 0.75rem;
}

.camp-state--active {
  background: #e5f7ee;
  color: #0f7a4d;
}

.camp-state--setup,
.camp-state--ready,
.camp-state--building {
  background: #f7f0d8;
  color: #7a5b12;
}

.camp-state--paused,
.camp-state--draft,
.camp-state--completed {
  background: #eceeea;
  color: #4d5550;
}

.camp-ops .camp-row__action {
  border: 0;
  background: transparent;
  color: #5d675f;
  font-size: 1.15rem;
  line-height: 1;
  padding: 0.15rem 0.4rem;
  cursor: pointer;
}

.camp-foot {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.camp-foot__card {
  display: flex;
  gap: 0.85rem;
  padding: 1rem 1.05rem;
  border-radius: 0.9rem;
  border: 1px solid color-mix(in srgb, #17875c 28%, var(--line));
  background: #eef8f2;
}

.camp-foot__card--soft {
  border-color: color-mix(in srgb, var(--line) 85%, transparent);
  background: #fff;
}

.camp-foot__card h2 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.camp-foot__card p {
  margin: 0 0 0.7rem;
  color: #3e4742;
  font-size: 0.88rem;
}

.camp-foot__icon {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  flex: none;
  background: #17875c;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
}

.camp-foot__icon--radar {
  background: #e8f6ef;
  color: #17875c;
}

.camp-foot__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.camp-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.camp-ops .camp-empty {
  max-width: none;
  padding: 2.1rem 1.5rem;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 0.9rem;
  background: #fff;
  text-align: center;
}

.camp-ops .camp-empty__title {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
}

.camp-ops .camp-empty p {
  margin: 0 auto;
  max-width: 34rem;
  color: #3d4a42;
  font-size: 0.95rem;
}

.camp-empty__actions {
  justify-content: center;
}

.camp-explore {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: #fff;
}

.camp-explore h2 {
  margin: 0 0 0.15rem;
  font-size: 0.95rem;
}

.camp-explore p {
  margin: 0;
  color: #3e4742;
  font-size: 0.85rem;
}

@media (max-width: 1100px) {
  .camp-ops .camp-kpi {
    grid-template-columns: unset;
  }
  .camp-foot {
    grid-template-columns: 1fr;
  }
}

.nav__icon {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
}

.app .nav__item {
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
}

.account-bar__identity {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  min-width: 0;
}

.account-bar__avatar {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: #17875c;
  color: #fff;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.account-bar__avatar:hover {
  filter: brightness(1.08);
}
.account-bar__avatar:focus-visible {
  outline: 2px solid #9ee0c4;
  outline-offset: 2px;
}

.account-bar__meta {
  min-width: 0;
}

.account-bar__name {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-bar__email-line {
  margin: 0.12rem 0 0;
  font-size: 0.72rem;
  line-height: 1.25;
  color: rgba(231, 243, 236, 0.62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-bar__role {
  margin: 0.15rem 0 0;
  font-size: 0.68rem;
  color: rgba(231, 243, 236, 0.5);
}

.camp-perf {
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  border-radius: 0.55rem;
  background: color-mix(in srgb, var(--surface) 65%, #fff);
  padding: 0.55rem 0.7rem 0.65rem;
}

.camp-perf__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.camp-perf__title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.camp-perf__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 4.5rem;
  text-align: center;
  padding: 0.5rem;
}

.camp-perf__empty-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.camp-perf__empty-copy {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
  max-width: 36rem;
}

.camp-perf__metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.35rem;
}

.camp-perf__metric {
  padding: 0.35rem 0.45rem;
  border-radius: 0.4rem;
  background: var(--surface-raised);
  border: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}

.camp-perf__metric-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 650;
  color: var(--ink-muted);
}

.camp-perf__metric-value {
  font-size: 1rem;
  font-weight: 750;
  color: var(--ink);
}

.camp-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
}

.camp-toolbar__search {
  flex: 1 1 12rem;
  min-width: 10rem;
}

.camp-toolbar__search input {
  width: 100%;
  font: inherit;
  font-size: 0.88rem;
  padding: 0.4rem 0.65rem;
  border-radius: 0.45rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.camp-toolbar__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.camp-filter {
  appearance: none;
  margin: 0;
  padding: 0.28rem 0.55rem;
  border-radius: 0.4rem;
  border: 1px solid color-mix(in srgb, var(--line) 90%, transparent);
  background: color-mix(in srgb, var(--surface) 50%, #fff);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--ink-muted);
  cursor: pointer;
}

.camp-filter.is-active,
.camp-filter:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  color: var(--accent-deep);
  background: var(--accent-soft);
}

.camp-toolbar__start {
  margin-left: auto;
  white-space: nowrap;
}

.camp-table-wrap {
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  border-radius: 0.55rem;
  background: var(--surface-raised);
  overflow: auto;
  flex: 1;
  min-height: 12rem;
}

.camp-table__empty {
  margin: 1.25rem 1rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.camp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  line-height: 1.25;
}

.camp-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: left;
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: color-mix(in srgb, var(--surface) 80%, #fff);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  padding: 0.4rem 0.55rem;
  white-space: nowrap;
}

.camp-table tbody td {
  padding: 0.38rem 0.55rem;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
  vertical-align: middle;
  color: var(--ink);
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.camp-row {
  cursor: pointer;
}

.camp-row:hover,
.camp-row:focus-visible {
  background: color-mix(in srgb, var(--accent-soft) 45%, transparent);
  outline: none;
}

.camp-row.is-highlight {
  background: color-mix(in srgb, var(--accent-soft) 70%, transparent);
}

.camp-cell--campaign {
  white-space: normal;
  max-width: 14rem;
}

.camp-row__name {
  appearance: none;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--accent-deep);
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.camp-row__name:hover {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.camp-row__id {
  display: block;
  font-size: 0.62rem;
  color: var(--ink-muted);
  overflow: hidden;
  text-overflow: ellipsis;
}

.camp-col--num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.camp-status {
  display: inline-flex;
  align-items: center;
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid transparent;
  white-space: nowrap;
}

.camp-status--draft {
  background: color-mix(in srgb, var(--surface) 40%, #fff);
  border-color: color-mix(in srgb, var(--line) 80%, transparent);
  color: var(--ink-muted);
}

.camp-status--setup {
  background: #fff7ed;
  border-color: color-mix(in srgb, #f59e0b 35%, transparent);
  color: #9a3412;
}

.camp-status--ready {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--accent-deep);
}

.camp-status--active {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--accent-deep);
}

.camp-status--paused {
  background: var(--warn-bg);
  border-color: color-mix(in srgb, var(--warn-ink) 25%, transparent);
  color: var(--warn-ink);
}

.camp-status--finished,
.camp-status--completed {
  background: #eee;
  color: #555;
}

.camp-action-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  background: linear-gradient(165deg, #fffdf8, var(--accent-soft));
}

.camp-action-banner--setup {
  border-color: color-mix(in srgb, #f59e0b 35%, var(--line));
  background: linear-gradient(165deg, #fffdf8, #fff7ed);
}

.camp-action-banner--ready {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

.camp-action-banner__eyebrow {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.camp-action-banner__title {
  margin: 0.1rem 0 0;
  font-size: 1rem;
  font-weight: 750;
  color: var(--ink);
}

.camp-action-banner__text {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-muted);
  max-width: 36rem;
}

.camp-action-banner__cta {
  flex-shrink: 0;
  font-size: 0.95rem;
  font-weight: 750;
  padding: 0.55rem 1rem;
}

/* Campaign setup wizard */
.camp-setup {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem 1.1rem;
  min-height: 100%;
}

.camp-setup__head {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.camp-setup__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 750;
}

.camp-setup__status {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.camp-setup__steps {
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  border-radius: 0.45rem;
  background: var(--surface-raised);
}

.camp-setup__step {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.55rem;
  border-radius: 0.35rem;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--ink-muted);
}

.camp-setup__step.is-current {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.camp-setup__step.is-done {
  color: var(--ink);
}

.camp-setup__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  background: color-mix(in srgb, var(--line) 55%, #fff);
}

.camp-setup__step.is-current .camp-setup__step-num {
  background: var(--accent);
  color: #fff;
}

.camp-setup__body {
  flex: 1;
  min-height: 0;
}

.camp-setup__panel {
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  border-radius: 0.5rem;
  background: var(--surface-raised);
  padding: 0.75rem 0.85rem;
}

.camp-setup__panel-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 750;
}

.camp-setup__lead,
.camp-setup__note {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.4;
}

.camp-prospects__org,
.camp-prospects__selected-wrap {
  margin: 0.75rem 0;
}

.camp-prospect {
  margin: 0.45rem 0 0.7rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--line, rgba(0, 0, 0, 0.08));
}

.camp-setup__sub {
  margin: 0.65rem 0 0.3rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.camp-setup__dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0 0 0.5rem;
}

.camp-setup__dl dt {
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.camp-setup__dl dd {
  margin: 0.1rem 0 0;
  font-size: 0.88rem;
}

.camp-setup__muted {
  color: var(--ink-muted);
  font-size: 0.82rem;
}

.camp-setup__list {
  margin: 0 0 0.65rem;
  padding-left: 1.05rem;
  font-size: 0.86rem;
}

.camp-setup__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.camp-setup__field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.55rem;
}

.camp-setup__label {
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.camp-setup__field input,
.camp-setup__field textarea {
  font: inherit;
  font-size: 0.9rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.4rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.camp-setup__field textarea {
  resize: vertical;
  line-height: 1.4;
}

.camp-setup__check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 650;
  margin: 0.35rem 0 0.75rem;
}

.camp-setup__required {
  padding: 0.65rem 0.7rem;
  border-radius: 0.45rem;
  border: 1px dashed color-mix(in srgb, #f59e0b 45%, var(--line));
  background: #fffbeb;
  margin-top: 0.35rem;
}

.camp-setup__required-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 750;
  color: #9a3412;
}

.camp-setup__required-copy {
  margin: 0.25rem 0 0.55rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
  line-height: 1.4;
}

.camp-setup__badge {
  margin: 0.45rem 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.camp-setup__checklist {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: grid;
  gap: 0.3rem;
}

.camp-setup__check-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.camp-setup__check-item.is-ok {
  color: var(--accent-deep);
  font-weight: 650;
}

.camp-setup__activate {
  margin-top: 0.25rem;
}

.camp-setup__foot {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.55rem;
  border-top: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}

@media (max-width: 720px) {
  .camp-setup__dl,
  .camp-setup__grid {
    grid-template-columns: 1fr;
  }

  .camp-action-banner {
    flex-direction: column;
    align-items: stretch;
  }
}

.camp-mobile-list {
  display: none;
}

/* Detail — operating console */
.camp-detail {
  padding: 0.55rem 0.85rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 100%;
}

.camp-detail__head {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex-shrink: 0;
}

.camp-detail__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.camp-detail__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.camp-ctrl {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: stretch;
}

.camp-ctrl__item {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 5.5rem;
  padding: 0.28rem 0.5rem;
  border-radius: 0.4rem;
  border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  background: color-mix(in srgb, var(--surface-raised) 85%, #fff);
}

.camp-ctrl__label {
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.camp-ctrl__value {
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.2;
}

.camp-ctrl__hint {
  font-size: 0.68rem;
  color: var(--ink-muted);
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.camp-detail__kpi {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  border-radius: 0.45rem;
  background: var(--surface-raised);
  overflow: hidden;
}

.camp-detail__kpi-item {
  padding: 0.35rem 0.5rem;
  border-right: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.camp-detail__kpi-item:last-child {
  border-right: none;
}

.camp-detail__kpi-label {
  display: block;
  font-size: 0.58rem;
  font-weight: 650;
  color: var(--ink-muted);
}

.camp-detail__kpi-value {
  font-size: 0.98rem;
  font-weight: 750;
  color: var(--ink);
  line-height: 1.15;
}

.camp-detail__workspace {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  flex: 1;
  min-height: 0;
}

.camp-detail__nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.25rem;
  border-radius: 0.45rem;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: color-mix(in srgb, var(--surface) 55%, #fff);
  position: sticky;
  top: 0.25rem;
}

.camp-detail__nav-item {
  appearance: none;
  margin: 0;
  padding: 0.4rem 0.55rem;
  border: 0;
  border-radius: 0.35rem;
  background: transparent;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--ink-muted);
  text-align: left;
  cursor: pointer;
}

.camp-detail__nav-item:hover {
  color: var(--ink);
  background: color-mix(in srgb, #fff 70%, transparent);
}

.camp-detail__nav-item.is-active {
  color: var(--accent-deep);
  background: var(--accent-soft);
}

.camp-detail__main {
  min-width: 0;
}

.camp-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.camp-panel {
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  border-radius: 0.5rem;
  background: var(--surface-raised);
  padding: 0.65rem 0.75rem;
}

.camp-panel--wide {
  grid-column: 1 / -1;
}

.camp-panel--table {
  padding: 0.5rem 0.55rem 0.65rem;
}

.camp-panel__head-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.camp-panel__title {
  margin: 0 0 0.45rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.camp-panel__subtitle {
  margin: 0.55rem 0 0.25rem;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.camp-panel__lead {
  margin: -0.15rem 0 0.55rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.camp-detail__dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem 0.85rem;
  margin: 0;
}

.camp-detail__dl--dense dt {
  font-size: 0.62rem;
}

.camp-detail__dl--dense dd {
  font-size: 0.85rem;
}

.camp-detail__dl dt {
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.camp-detail__dl dd {
  margin: 0.08rem 0 0;
  font-size: 0.9rem;
  color: var(--ink);
}

.camp-detail__mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  word-break: break-all;
}

.camp-detail__islands {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.84rem;
  line-height: 1.35;
}

.camp-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.camp-timeline__item {
  display: grid;
  grid-template-columns: 0.65rem minmax(0, 1fr);
  gap: 0.45rem;
  align-items: start;
}

.camp-timeline__dot {
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.3rem;
  border-radius: 999px;
  background: var(--accent);
}

.camp-timeline__title {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
}

.camp-timeline__detail {
  margin: 0.1rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-muted);
  line-height: 1.35;
}

.camp-timeline__at {
  margin: 0.1rem 0 0;
  font-size: 0.68rem;
  color: var(--ink-muted);
}

.camp-next {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.45rem;
}

.camp-next__item {
  padding: 0.5rem 0.55rem;
  border-radius: 0.4rem;
  border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  background: color-mix(in srgb, var(--surface) 45%, #fff);
}

.camp-next__title {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
}

.camp-next__copy {
  margin: 0.2rem 0 0;
  font-size: 0.76rem;
  line-height: 1.35;
  color: var(--ink-muted);
}

.camp-op-table-wrap {
  position: relative;
  border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  border-radius: 0.4rem;
  overflow: auto;
  min-height: 11rem;
  background: #fff;
}

.camp-op-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.camp-op-table thead th {
  text-align: left;
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: color-mix(in srgb, var(--surface) 70%, #fff);
  white-space: nowrap;
}

.camp-op-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 8.5rem;
  padding: 1rem;
  text-align: center;
}

.camp-op-empty__title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

.camp-op-empty__copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-muted);
  max-width: 28rem;
}

.camp-settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 0.75rem;
}

.camp-settings__field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.camp-settings__label {
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.camp-settings__input {
  font: inherit;
  font-size: 0.88rem;
  padding: 0.4rem 0.55rem;
  border-radius: 0.4rem;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 40%, #fff);
  color: var(--ink);
}

.camp-detail__empty-note,
.camp-detail__missing {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.88rem;
}

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

@media (max-width: 1400px) {
  .camp-col--hide-lg {
    display: none;
  }
}

@media (max-width: 1100px) {
  .camp-kpi {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .camp-kpi__item:nth-child(4) {
    border-right: none;
  }

  .camp-kpi__item:nth-child(n + 5) {
    border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  }

  .camp-col--hide-md {
    display: none;
  }
}

@media (max-width: 900px) {
  .camp-col--hide-md {
    display: none;
  }

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

  .camp-detail__kpi-item:nth-child(3),
  .camp-detail__kpi-item:nth-child(6) {
    border-right: none;
  }

  .camp-detail__kpi-item:nth-child(n + 4) {
    border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  }

  .camp-detail__workspace {
    grid-template-columns: 1fr;
  }

  .camp-detail__nav {
    flex-direction: row;
    flex-wrap: wrap;
    position: static;
    gap: 0.2rem;
  }

  .camp-detail__nav-item {
    flex: 0 0 auto;
  }

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

@media (max-width: 720px) {
  .camp-kpi {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .camp-kpi__item:nth-child(2n) {
    border-right: none;
  }

  .camp-kpi__item:nth-child(n + 3) {
    border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  }

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

  .camp-toolbar__start {
    margin-left: 0;
    width: 100%;
  }

  .camp-table {
    display: none;
  }

  .camp-mobile-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.55rem;
  }

  .camp-mobile-card {
    padding: 0.65rem 0.7rem;
    border-radius: 0.55rem;
    border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
  }

  .camp-mobile-card.is-highlight {
    background: var(--accent-soft);
  }

  .camp-mobile-card__name {
    appearance: none;
    border: 0;
    background: none;
    padding: 0;
    margin: 0;
    font: inherit;
    font-weight: 750;
    font-size: 0.92rem;
    color: var(--accent-deep);
    text-align: left;
    cursor: pointer;
  }

  .camp-mobile-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
    font-size: 0.8rem;
    color: var(--ink);
  }

  .camp-mobile-card__stats {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    font-size: 0.75rem;
    color: var(--ink-muted);
  }

  .camp-col--hide-sm {
    display: none;
  }

  .camp-detail__dl {
    grid-template-columns: 1fr;
  }

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

  .camp-settings {
    grid-template-columns: 1fr;
  }

  .camp-ctrl__item {
    min-width: calc(50% - 0.25rem);
    flex: 1 1 calc(50% - 0.25rem);
  }
}

.sb__campaign {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.25rem;
  font-size: 0.68rem;
}

.sb__campaign em {
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
}

.sb__build {
  pointer-events: auto;
  margin-top: 0.2rem;
  padding: 0.28rem 0.55rem;
  font-size: 0.68rem;
  width: auto;
  align-self: center;
}

/* Detail copy stays in the side panel — bubbles keep titles only */

.spatial-category-filter select {
  font: inherit;
  font-size: 0.75rem;
  max-width: 11rem;
}

.spatial-node.is-category-hidden,
.spatial-bubble-host.is-category-hidden {
  display: none;
}

.spatial-controls {
  position: absolute;
  z-index: 7;
  right: 0.75rem;
  bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
  padding: 0.3rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-raised) 92%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 8px 20px rgba(45, 38, 28, 0.08);
}

.spatial-ctrl {
  border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  background: var(--surface-raised);
  box-shadow: none;
  font-family: var(--font-label);
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  backdrop-filter: none;
}

.spatial-ctrl--round {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  line-height: 1;
  padding: 0;
}

.spatial-ctrl--fit {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.spatial-ctrl:hover {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  color: var(--accent-deep);
}

.spatial-more {
  position: relative;
}

.spatial-ctrl--more {
  font-size: 1.05rem;
  letter-spacing: 0.05em;
}

.spatial-more__menu {
  position: absolute;
  right: calc(100% + 0.4rem);
  bottom: 0;
  min-width: 8.5rem;
  padding: 0.25rem;
  border-radius: 0.75rem;
  border: 1px solid #d8cebe;
  background: rgba(255, 253, 248, 0.97);
  box-shadow: var(--shadow-soft);
}

.spatial-more__menu button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0.45rem 0.65rem;
  border-radius: 0.5rem;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  color: var(--ink);
}

.spatial-more__menu button:hover {
  background: var(--accent-soft);
}

@keyframes spatial-float {
  0%,
  100% {
    transform: translate(-50%, -50%);
  }
  50% {
    transform: translate(-50%, calc(-50% - 3px));
  }
}

@keyframes spatial-float-cat {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, -2px);
  }
}

.spatial-root.is-settled .spatial-bubble-host--island {
  animation: spatial-float 7.5s ease-in-out infinite;
}

.spatial-root.is-settled .spatial-bubble-host--island:nth-child(3n) {
  animation-duration: 8.5s;
  animation-delay: -1.2s;
}

.spatial-root.is-settled .spatial-bubble-host--island:nth-child(3n + 1) {
  animation-duration: 9s;
  animation-delay: -2.4s;
}

.spatial-root.is-settled .spatial-bubble-host--product {
  animation: spatial-float 9s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .spatial-root.is-settled .spatial-bubble-host--island,
  .spatial-root.is-settled .spatial-bubble-host--product {
    animation: none;
  }

  .spatial-svg * {
    transition: none !important;
  }
}

.map-banner {
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.map-tree {
  min-width: 100%;
  min-height: 100%;
}

.map-branches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.map-branch {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.map-islands {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-left: 0.85rem;
  padding-left: 0.75rem;
  border-left: 2px solid color-mix(in srgb, var(--accent) 25%, var(--line));
}

.map-node {
  position: relative;
  left: auto;
  top: auto;
  width: 100%;
  max-width: 22rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 0.9rem 1rem;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  box-shadow: var(--shadow-node);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.map-node--product {
  max-width: 28rem;
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
  background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface-raised));
}

.map-node--category {
  max-width: none;
}

.map-node--island {
  max-width: none;
  box-shadow: 0 6px 16px rgba(45, 38, 28, 0.08);
}

.map-node:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(45, 38, 28, 0.12);
}

.map-node:nth-child(n) {
  left: auto;
  top: auto;
}

.map-node__badge,
.list-card__badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.map-node__title,
.list-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.25;
}

.map-node__status,
.list-card__status {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.list-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  width: 100%;
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-raised);
  box-shadow: var(--shadow-soft);
  color: inherit;
  font: inherit;
  text-align: left;
}

.list-card__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.list-card__note {
  margin: 0.15rem 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--accent-deep);
}

.product-list {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
}

.list-sub {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 0.65rem;
  padding: 0.45rem 0.65rem;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

.list-sub--island {
  margin-left: 0.75rem;
  width: calc(100% - 0.75rem);
}

.detail {
  position: absolute;
  right: 1.1rem;
  top: 1.1rem;
  bottom: 1.1rem;
  z-index: 5;
  width: min(22rem, calc(100% - 2rem));
  overflow: auto;
  padding: 1rem 1.05rem;
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.detail[hidden] {
  display: none !important;
}

.detail__close {
  float: right;
  border: 0;
  background: transparent;
  color: var(--accent-deep);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.detail__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.detail__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.detail__disclaimer {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--warn-ink);
}

.detail--pipeline .pipeline-form__lead,
.detail--pipeline .pipeline-form__hint {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  color: var(--ink);
}

.pipeline-form__hint {
  color: var(--ink-muted);
}

.pipeline-form__fields {
  display: grid;
  gap: 0.85rem;
}

.pipeline-form__fieldset {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
}

.pipeline-form__fieldset legend {
  padding: 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.pipeline-form__meta {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.pipeline-form__islands {
  display: grid;
  gap: 0.4rem;
}

.pipeline-form__island {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 0;
  padding: 0.45rem 0.5rem;
  border-radius: 0.4rem;
  cursor: pointer;
}

.pipeline-form__island--pursued {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.pipeline-form__island strong {
  display: inline;
  font-weight: 650;
}

.pipeline-form__badge {
  margin-left: 0.35rem;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.pipeline-form__field {
  display: grid;
  gap: 0.3rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.pipeline-form__field input,
.pipeline-form__field select {
  width: 100%;
  min-height: 2.4rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
}

.pipeline-form__row {
  display: grid;
  grid-template-columns: 1fr minmax(5.5rem, 7rem) auto;
  gap: 0.65rem;
  align-items: center;
}

.pipeline-setup {
  padding: 1.35rem 1.5rem 2.5rem;
  max-width: 62rem;
  width: 100%;
}
.pipeline-form--setup .pipeline-form__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8478;
}
.pipeline-form--setup .pipeline-form__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.85rem;
  letter-spacing: -0.03em;
  color: #121a16;
}
.pipeline-form--setup .pipeline-form__lead {
  margin: 0.45rem 0 1.15rem;
  font-size: 0.98rem;
  line-height: 1.45;
  color: #3e4742;
  max-width: 46rem;
}
.pipeline-form--setup .pipeline-form__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
  gap: 1rem;
  align-items: start;
}
.pipeline-form--setup .pipeline-form__config {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}
.pipeline-form--setup .pipeline-form__per-day {
  align-self: center;
  font-size: 0.88rem;
  font-weight: 650;
  color: #5d675f;
  white-space: nowrap;
}
.pipeline-review {
  padding: 1.05rem 1.1rem 1.15rem;
  border: 1px solid color-mix(in srgb, #17875c 28%, #e6ddcf);
  border-radius: 1.1rem;
  background: #eef8f2;
  min-width: 0;
}
.pipeline-review h2 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 750;
  color: #121a16;
}
.pipeline-review__lead {
  margin: 0.3rem 0 0.85rem;
  font-size: 0.88rem;
  color: #3e4742;
}
.pipeline-review__facts {
  display: grid;
  gap: 0.7rem;
  margin: 0 0 1rem;
}
.pipeline-review__facts > div {
  padding-bottom: 0.7rem;
  border-bottom: 1px solid color-mix(in srgb, #17875c 16%, #e6ddcf);
}
.pipeline-review__facts > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.pipeline-review__facts dt {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 650;
  color: #6b746e;
}
.pipeline-review__facts dd {
  margin: 0.2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #121a16;
}
.pipeline-review__island {
  min-width: 0;
}
.pipeline-review__state.is-ready {
  color: #147351;
}
.pipeline-review .pipeline-form__build {
  margin-top: 0.15rem;
}
.pipeline-review__note {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #5d675f;
}
@media (max-width: 860px) {
  .pipeline-form--setup .pipeline-form__layout {
    grid-template-columns: 1fr;
  }
}

.pipeline-build {
  width: 100%;
}
.pipeline-build__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
}
.pipeline-build__status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  background: #eef8f2;
  color: #147351;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pipeline-build__status::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #17875c;
  box-shadow: 0 0 0 3px color-mix(in srgb, #17875c 22%, transparent);
}
.pipeline-build__meta {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  font-weight: 650;
  color: #5d675f;
}
.pipeline-build__workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  gap: 1rem;
  align-items: start;
}
.pipeline-build [data-pipeline-live] {
  display: contents;
}
.pipeline-build__progress {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.85rem;
}
.pipeline-build__kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 1rem 0.35rem 1.05rem;
  border-top: 1px solid color-mix(in srgb, #17875c 18%, #e6ddcf);
  border-bottom: 1px solid color-mix(in srgb, #17875c 18%, #e6ddcf);
  text-align: center;
}
.pipeline-build__kpis strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  letter-spacing: -0.03em;
  color: #121a16;
}
.pipeline-build__kpis span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  font-weight: 650;
  color: #6b746e;
}
.pipeline-build__track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem 0.55rem;
  padding: 0.15rem 0 0.35rem;
}
.pipeline-build__track-step {
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8478;
}
.pipeline-build__track-step.is-current,
.pipeline-build__track-step.is-done {
  color: #147351;
}
.pipeline-build__track-step.is-current::before {
  content: "● ";
}
.pipeline-build__track-line {
  width: 2.6rem;
  height: 2px;
  background: #e6ddcf;
}
.pipeline-build__track-line.is-on {
  background: #17875c;
}
.pipeline-build__track-caption {
  flex: 1 1 100%;
  margin: 0.15rem 0 0;
  text-align: center;
  font-size: 0.88rem;
  color: #5d675f;
}
.pipeline-build__card {
  padding: 1.05rem 1.1rem 1.15rem;
  border: 1px solid #e6ddcf;
  border-radius: 1.1rem;
  background: #fff;
  min-width: 0;
}
.pipeline-build__card--live {
  border-color: color-mix(in srgb, #17875c 28%, #e6ddcf);
  background: #eef8f2;
}
.pipeline-build__card h2 {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3e4742;
}
.pipeline-build__card--agent .pipeline-agent {
  margin: 0;
  padding: 0;
  border: 0;
}
.pipeline-build__card--agent .pipeline-summary__islands-title {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pipeline-build__steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}
.pipeline-build__steps li {
  display: grid;
  grid-template-columns: 0.7rem 1fr auto;
  gap: 0.55rem;
  align-items: start;
  font-size: 0.95rem;
  font-weight: 700;
  color: #121a16;
}
.pipeline-build__steps li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.35rem;
  border-radius: 999px;
  border: 1.5px solid #c9c1b3;
  background: transparent;
}
.pipeline-build__steps li.is-current::before {
  border-color: #17875c;
  background: #17875c;
}
.pipeline-build__steps li.is-done::before {
  border-color: #17875c;
  background: #17875c;
}
.pipeline-build__steps em {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 650;
  color: #6b746e;
}
.pipeline-build__steps li.is-current em {
  color: #147351;
}
.pipeline-build__island {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #121a16;
}
.pipeline-build__island-status {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: #5d675f;
}
.pipeline-build__agent-lead {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #3e4742;
}
.pipeline-build__agent-facts {
  margin: 0 0 1rem;
  display: grid;
  gap: 0.55rem;
}
.pipeline-build__agent-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.88rem;
}
.pipeline-build__agent-facts dt {
  margin: 0;
  color: #6b746e;
}
.pipeline-build__agent-facts dd {
  margin: 0;
  font-weight: 700;
  color: #121a16;
}
.pipeline-build__agent-note {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #5d675f;
}
.pipeline-build__activation {
  margin-top: 1.15rem;
  padding: 1.05rem 1.1rem 1.15rem;
  border-top: 1px solid color-mix(in srgb, #17875c 18%, #e6ddcf);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem 1.25rem;
  align-items: end;
}
.pipeline-build__activation h2 {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8478;
}
.pipeline-build__gates {
  margin: 0;
  display: grid;
  gap: 0.45rem;
}
.pipeline-build__gates > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}
.pipeline-build__gates dt {
  margin: 0;
  color: #3e4742;
}
.pipeline-build__gates dd {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  color: #8a8478;
}
.pipeline-build__gates dd[data-gate] {
  color: #6b746e;
}
.pipeline-build__activate[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}
@media (max-width: 860px) {
  .pipeline-build__workspace {
    grid-template-columns: 1fr;
  }
  .pipeline-build__progress,
  .pipeline-build__card--live,
  .pipeline-build__card--agent {
    grid-column: 1;
  }
  .pipeline-build__kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pipeline-build__activation {
    grid-template-columns: 1fr;
  }
}
.pipeline-confirm {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  margin: 0 0 1.35rem;
  border: 1px solid #e6ddcf;
  border-radius: 1.1rem;
  background: #fffdf8;
}
.pipeline-confirm__icon {
  flex: 0 0 3.4rem;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #17875c;
  color: #fff;
}
.pipeline-confirm__icon svg { width: 1.45rem; height: 1.45rem; }
.pipeline-confirm__body { flex: 1; min-width: 0; }
.pipeline-confirm__title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  align-items: center;
}
.pipeline-confirm__name {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 750;
  color: #121a16;
}
.pipeline-confirm__badge {
  font-size: 0.72rem;
  font-weight: 750;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #147351;
  color: #fff;
}
.pipeline-confirm__badge--promising { background: #2f6f9a; }
.pipeline-confirm__badge--exploratory { background: #6b6358; }
.pipeline-confirm__recommended {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.75rem;
  font-weight: 750;
  color: #8a5a00;
  background: #f6d36b;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
}
.pipeline-confirm__desc {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: #5d675f;
}
.pipeline-confirm__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.35rem;
  margin: 0.75rem 0 0;
}
.pipeline-confirm__metrics dt {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 650;
  color: #8a8478;
}
.pipeline-confirm__metrics dd {
  margin: 0.1rem 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #121a16;
}
.pipeline-confirm__buyers dd {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-weight: 600;
}
.pipeline-confirm__buyer {
  display: inline-flex;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #efe7d8;
  font-size: 0.78rem;
}
.pipeline-form__step {
  margin: 0 0 1.15rem;
  padding: 1rem 1.1rem;
  border: 1px solid #e6ddcf;
  border-radius: 1rem;
  background: #fff;
}
.pipeline-form__step h2 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 750;
  color: #121a16;
}
.pipeline-form__step-n {
  display: inline-grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: #17875c;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 750;
}
.pipeline-form__step p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #5d675f;
}
.pipeline-form__callout {
  margin: 0.75rem 0 0 !important;
  padding: 0.7rem 0.85rem;
  border-radius: 0.75rem;
  background: #e8f6ef;
  color: #1d4c3a !important;
}
.pipeline-form__actions { margin-top: 0.35rem; }
.pipeline-form__build {
  width: 100%;
  justify-content: center;
  min-height: 3rem;
  border-radius: 999px;
  font-size: 1rem;
}
.pipeline-form__empty {
  margin: 0 0 1rem;
  color: #c01515;
  font-weight: 650;
}

.pipeline-summary__facts {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
}

.pipeline-summary__facts > div {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.pipeline-summary__facts dt {
  margin: 0;
  color: var(--ink-muted);
  font-weight: 600;
}

.pipeline-summary__facts dd {
  margin: 0;
  font-weight: 650;
}

.pipeline-summary__islands-title {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.pipeline-summary__islands {
  margin: 0 0 0.85rem;
  padding-left: 1.1rem;
}

.pipeline-summary__stop {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.pipeline-agent {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.pipeline-summary__checklist {
  margin: 0 0 0.85rem;
  padding-left: 1.1rem;
}

.pipeline-form__check {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin: 0.65rem 0;
}

.pipeline-agent__mailbox {
  margin: 0.85rem 0;
}

.pipeline-fund {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
}

.pipeline-fund form[data-pipeline-fund-form] {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.5rem;
}

.pipeline-fund__saas {
  display: grid;
  gap: 0.75rem;
  margin: 0.15rem 0 0.15rem;
}

@media (min-width: 40rem) {
  .pipeline-fund__saas {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

.pipeline-fund__saas h4 {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.pipeline-fund__saas p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--ink);
}

.pipeline-fund__promo {
  margin-top: 0.75rem;
}

.pipeline-fund__promo-label {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.pipeline-fund__promo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: stretch;
}

.pipeline-fund__promo-row input {
  flex: 1 1 12rem;
  min-width: 10rem;
  min-height: 2.55rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.pipeline-fund__promo-row button {
  flex: 0 0 auto;
  min-width: 6.25rem;
}

.detail--pipeline .btn[disabled],
.detail--pipeline .btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

.detail__body section {
  margin-bottom: 0.85rem;
}

.detail__body h3 {
  margin: 0 0 0.25rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.detail__body p,
.detail__body ul {
  margin: 0;
  font-size: 0.92rem;
}

.detail__body ul {
  padding-left: 1.1rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 1rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-deep);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.focus-card {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.5rem 1.4rem 1.6rem;
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  box-shadow: var(--shadow-soft);
}

.focus-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
}

.focus-card__title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}

.focus-card__hint {
  margin: 0 0 1.15rem;
  color: var(--ink-muted);
}

.field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.field-head label {
  font-weight: 650;
  font-size: 0.9rem;
}

#product-label-field {
  margin-bottom: 1rem;
}

#product-label-field label {
  display: block;
  font-weight: 650;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

#product-label,
.confirm-name-input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-size: 1rem;
  background: var(--surface-raised);
  color: var(--ink);
}

.field-hint {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.35;
}

.btn-info {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--accent-deep);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-info:hover {
  background: var(--accent-soft);
}

#product-description {
  width: 100%;
  min-height: 10rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1.02rem;
  line-height: 1.45;
  resize: vertical;
}

#product-description:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.field-error {
  margin: 0.5rem 0 0;
  color: var(--warn-ink);
  font-size: 0.9rem;
}

.field-error[hidden] {
  display: none !important;
}

.focus-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
  margin-top: 1.15rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.6rem 1.05rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-deep);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--surface);
}

.research-banner {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  background: var(--warn-bg);
  color: var(--warn-ink);
  font-size: 0.92rem;
}

.research-banner--ok {
  background: var(--ok-bg);
  color: var(--accent-deep);
}

.research-banner--warn {
  background: var(--warn-bg);
  color: var(--warn-ink);
}

.stage-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.stage-item {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  opacity: 0.55;
}

.stage-item--active {
  opacity: 1;
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  background: var(--accent-soft);
  box-shadow: var(--shadow-soft);
}

.stage-item--done {
  opacity: 0.85;
}

.stage-item__mark {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-top: 0.15rem;
}

.stage-item--active .stage-item__mark {
  color: var(--accent-deep);
}

.stage-item__body strong {
  display: block;
  margin-bottom: 0.15rem;
}

.stage-item__body p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.understood {
  margin-top: 1.1rem;
  padding: 1rem 1.05rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-raised);
}

.understood__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.understood__block {
  margin: 0 0 0.9rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.understood__block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.understood__stage {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}

.understood__label {
  margin: 0.45rem 0 0.15rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.understood__list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--ink);
}

.understood__list li {
  margin: 0.15rem 0;
}

.research-progress-note {
  margin: 0.4rem 0 0.85rem;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.92rem;
}

.map-node--recommended {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-mid), var(--shadow-node);
  background: linear-gradient(160deg, #fffef9 0%, var(--accent-soft) 120%);
}

.map-recommend-tip {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  color: var(--accent-deep);
  max-width: 42rem;
}

.potential-chip {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  font-weight: 600;
  color: var(--accent-deep);
}

.potential-chip--strong {
  color: #1f5a3a;
}

.potential-chip--promising {
  color: #5a4a1f;
}

.potential-chip--exploratory {
  color: #5a3a1f;
}

.potential-chip--rec::after {
  content: "";
}

.list-sub--recommended {
  font-weight: 600;
  color: var(--accent-deep);
}

.detail--float {
  box-shadow: var(--shadow-soft);
}

.detail__actions {
  margin-top: 1rem;
}

.campaign-saved-toast {
  margin: 0.75rem 0 0;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius);
  background: var(--ok-bg);
  color: var(--accent-deep);
  font-size: 0.88rem;
}

.evidence-links {
  margin: 0;
  padding-left: 1.1rem;
}

.evidence-excerpt {
  margin: 0.2rem 0 0.55rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.confirm-label {
  display: block;
  margin: 0.85rem 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.confirm-textarea {
  width: 100%;
  min-height: 10rem;
  resize: vertical;
  font: inherit;
  line-height: 1.45;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-raised);
  color: var(--ink);
}

.product-source-link {
  display: inline-block;
  margin: 0.35rem 0 0.55rem;
  font-size: 0.82rem;
  color: var(--accent-deep);
  word-break: break-all;
}

.modal[hidden] {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 26, 22, 0.35);
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: min(32rem, 100%);
  max-height: min(85dvh, 40rem);
  overflow: auto;
  padding: 1.25rem 1.25rem 1.15rem;
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  box-shadow: var(--shadow-soft);
}

.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.modal__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-muted);
  cursor: pointer;
}

.modal__close:hover {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.modal__body p {
  margin: 0 0 0.65rem;
}

.modal__body ul {
  margin: 0 0 0.75rem;
  padding-left: 1.2rem;
  color: var(--ink);
}

.modal__note {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.example {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
}

.example figcaption {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 0.4rem;
}

.example blockquote {
  margin: 0;
  font-size: 0.95rem;
}

.modal__foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.1rem;
}

.modal__foot--split {
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.modal__panel--opportunity {
  width: min(28rem, 100%);
}

.modal__panel--reachable {
  width: min(36rem, 100%);
}

.modal__panel--reachable.modal__panel--reachable-confirm {
  width: min(26rem, 100%);
}

.modal__panel--reachable.modal__panel--reachable-confirm .modal__body {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.modal__panel--reachable.modal__panel--reachable-confirm .modal__head h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-wrap: balance;
}

.reachable-confirm {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.15rem 0 0.35rem;
}

.reachable-confirm__island {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}

.reachable-confirm__meta {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.reachable-confirm__copy {
  margin: 0.15rem 0 0;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ink);
  max-width: 28ch;
}

.reachable-confirm__deal {
  margin: 0.55rem 0 0.15rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.55rem;
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--ink);
}

.market-test-price__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.2rem 0;
  font-size: 0.98rem;
}

.market-test-price__total {
  margin-top: 0.35rem;
  font-size: 1.15rem;
}

.market-test-price__note,
.market-test-price__error {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
}

.market-test-price__error {
  color: var(--danger, #9f1239);
}

.market-test-code {
  margin-top: 0.8rem;
}

.market-test-code__label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.92rem;
}

.market-test-code__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.market-test-code__input {
  min-width: 8rem;
  flex: 1 1 8rem;
}

.reachable-confirm__price {
  font-size: 1.35em;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #b45309;
  background: linear-gradient(180deg, #fff7ed, #ffedd5);
  border: 1px solid color-mix(in srgb, #f59e0b 45%, transparent);
  border-radius: 0.45rem;
  padding: 0.08rem 0.4rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.reachable-confirm__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a3412;
}

.reachable-confirm__advanced {
  appearance: none;
  margin: 0.55rem 0 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
  align-self: flex-start;
}

.reachable-confirm__advanced:hover {
  color: var(--ink);
}

.reachable-advanced__lead {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--ink-muted);
}

.modal__panel--reachable.modal__panel--reachable-choice {
  width: min(34rem, 100%);
}

/* Start a Campaign — market selection */
.modal__panel--reachable.modal__panel--reachable-targeting {
  width: min(45rem, 100%);
  max-height: min(78vh, 52rem);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 0.85rem;
}

.modal__panel--reachable-targeting .modal__head {
  flex-shrink: 0;
  margin-bottom: 0.55rem;
}

.modal__panel--reachable-targeting .modal__head h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-wrap: balance;
}

.modal__panel--reachable-targeting .reachable-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  gap: 0;
}

.modal__panel--reachable-targeting .modal__body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
  gap: 0;
}

.modal__panel--reachable-targeting .field-error {
  flex-shrink: 0;
}

.modal__panel--reachable-targeting .modal__foot {
  flex-shrink: 0;
  margin-top: 0.65rem;
  padding-top: 0.75rem;
  border-top: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  align-items: center;
  gap: 0.75rem;
}

.reachable-targeting {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.reachable-targeting__intro {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.reachable-targeting__territory {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--ink-muted);
}

.reachable-targeting__copy {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--ink);
  max-width: 52ch;
}

.reachable-targeting__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.15rem 0.15rem 0.35rem;
  margin: 0 -0.15rem;
}

.reachable-group--target + .reachable-group--target {
  margin-top: 0.95rem;
}

.reachable-group--target .reachable-group__title {
  margin-bottom: 0.5rem;
}

.reachable-group__list--target {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 0.55rem;
}

.reachable-island--target {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.7rem;
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  background: color-mix(in srgb, var(--surface) 55%, #fff);
  min-width: 0;
}

.reachable-island--target .reachable-island__check {
  padding-top: 0.1rem;
}

.reachable-island--target .reachable-island__name {
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.3;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.reachable-island--target.is-selected {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  background: color-mix(in srgb, var(--accent-soft) 70%, #fff);
}

.reachable-island--target:hover {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
}

.reachable-targeting__count {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--ink-muted);
  white-space: nowrap;
}

.reachable-targeting__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-left: auto;
  align-items: center;
}

@media (max-width: 720px) {
  .modal__panel--reachable.modal__panel--reachable-targeting {
    width: min(100%, 100vw - 1rem);
    max-height: min(88vh, 100%);
  }

  .reachable-group__list--target {
    grid-template-columns: 1fr;
  }

  .modal__panel--reachable-targeting .modal__foot {
    flex-wrap: wrap;
  }

  .reachable-targeting__actions {
    margin-left: 0;
    width: 100%;
    justify-content: stretch;
  }

  .reachable-targeting__actions .btn {
    flex: 1 1 auto;
  }
}

.reachable-choose {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.reachable-choose__context {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.reachable-choose__island {
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.reachable-choose__meta {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.reachable-choose__lead {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.4;
  color: var(--ink);
}

.reachable-choose__options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.reachable-choose__card {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  text-align: left;
  margin: 0;
  padding: 0.85rem 0.9rem;
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  background: linear-gradient(165deg, #fffdf8, #f6f1e8);
  cursor: pointer;
  font: inherit;
  color: inherit;
  min-height: 100%;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.reachable-choose__card:hover,
.reachable-choose__card:focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: 0 8px 20px rgba(45, 38, 28, 0.1);
  background: #fff;
}

.reachable-choose__card-title {
  font-size: 1.02rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.reachable-choose__card-body {
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--ink-muted);
  flex: 1;
}

.reachable-choose__card-cta {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-deep);
}

.potential-journey__panel--action {
  appearance: none;
  border: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
  transition: background 140ms ease;
}

.potential-journey__panel--action:hover,
.potential-journey__panel--action:focus-visible {
  background: color-mix(in srgb, #fff 55%, transparent);
  outline: none;
}

.potential-journey__panel--action:focus-visible {
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 40%, transparent);
}

.potential-journey__panel--action.is-ready .potential-journey__placeholder {
  color: color-mix(in srgb, var(--ink) 80%, var(--accent-deep));
}

.potential-journey__panel--reachable.is-next {
  background: color-mix(in srgb, #f8efe0 55%, transparent);
}

.potential-journey__panel--reachable.is-next .potential-journey__eyebrow {
  color: color-mix(in srgb, #7a5a28 70%, var(--ink-muted));
}

.potential-journey__panel--reachable.is-next .potential-journey__next-line {
  color: #8a642e;
}

.potential-journey__next-line {
  margin: 0.08rem 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  color: color-mix(in srgb, var(--accent-deep) 75%, var(--ink-muted));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.potential-journey__panel--action:hover .potential-journey__next-line {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.potential-journey__status {
  margin: 0.12rem 0 0;
  font-size: 0.72rem;
  font-weight: 650;
  color: #9a3412;
}

@media (max-width: 720px) {
  .reachable-choose__options {
    grid-template-columns: 1fr;
  }
}

.reachable-form .modal__body {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.reachable-summary {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background:
    radial-gradient(ellipse 80% 70% at 12% 0%, rgba(47, 107, 79, 0.1), transparent 55%),
    linear-gradient(165deg, #fffdf8, #f4efe6);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}

.reachable-summary__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.2rem;
}

.reachable-summary strong {
  font-size: 1rem;
  font-weight: 650;
  color: var(--ink);
}

.reachable-modes {
  margin: 0;
  padding: 0;
  border: none;
}

.reachable-modes__legend {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

.reachable-modes__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.reachable-mode {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-raised);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.reachable-mode:has(input:checked) {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  color: var(--accent-deep);
}

.reachable-mode input {
  accent-color: var(--accent);
}

.reachable-group__title {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.reachable-group + .reachable-group {
  margin-top: 0.85rem;
}

.reachable-group__list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.reachable-island {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.9rem;
  border: 1px solid transparent;
  background: color-mix(in srgb, var(--surface) 70%, #fff);
  cursor: pointer;
}

.reachable-island.is-selected {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  background: var(--accent-soft);
}

.reachable-island__name {
  font-weight: 650;
  color: var(--ink);
}

.reachable-island__badge {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #ffe7a8;
  color: #6a4f0a;
}

.reachable-island__count {
  width: 4.25rem;
  padding: 0.35rem 0.45rem;
  border-radius: 0.55rem;
  border: 1px solid var(--line);
  font: inherit;
  font-weight: 650;
  text-align: center;
  background: #fff;
}

.reachable-target {
  padding: 0.75rem 0.9rem;
  border-radius: 0.9rem;
  background: linear-gradient(180deg, #fffdf8, #f6efe4);
  border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
}

.reachable-target__label {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.reachable-target__value,
.reachable-target__alloc {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
  color: var(--ink);
}

.reachable-note {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink-muted);
}

#reachable-form-error {
  margin: 0 1.25rem 0.5rem;
}

.reachable-progress {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background:
    radial-gradient(ellipse 70% 60% at 8% 0%, rgba(47, 107, 79, 0.12), transparent 55%),
    linear-gradient(165deg, #fffdf8, #f3ebe0);
  border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
}

.reachable-progress__mark {
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.25rem;
}

.reachable-progress__spinner {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-top-color: var(--accent);
  animation: reachable-spin 0.9s linear infinite;
}

@keyframes reachable-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reachable-progress__spinner {
    animation: none;
    border-top-color: color-mix(in srgb, var(--accent) 45%, transparent);
  }
}

.reachable-progress__step {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.reachable-progress__island {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.reachable-progress__track {
  display: flex;
  gap: 0.35rem;
  width: 100%;
  margin: 0.35rem 0;
}

.reachable-progress__seg {
  flex: 1;
  height: 0.35rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 70%, #fff);
}

.reachable-progress__seg--complete {
  background: var(--accent);
}

.reachable-progress__seg--current {
  background: color-mix(in srgb, var(--accent) 55%, #ffe7a8);
}

.reachable-progress__seg--failed {
  background: #c45c3e;
}

.reachable-progress__activity,
.reachable-progress__elapsed,
.reachable-progress__announce {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.reachable-progress__announce {
  color: var(--accent-deep);
  font-weight: 600;
}

.reachable-ready--orgs {
  align-items: stretch;
  text-align: left;
}

.reachable-orgs {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  max-height: min(42vh, 22rem);
  overflow: auto;
  border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--surface) 80%, #fff);
}

.reachable-orgs__item {
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
}

.reachable-orgs__item:last-child {
  border-bottom: 0;
}

.reachable-orgs__name {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.95rem;
}

.reachable-orgs__category {
  margin: 0.1rem 0 0;
  font-size: 0.75rem;
  color: var(--ink-soft, inherit);
}

.reachable-orgs__domain {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.reachable-orgs__domain--missing {
  font-style: italic;
}

.reachable-orgs__link {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.reachable-orgs__aliases {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.reachable-orgs__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  flex-shrink: 0;
}

.reachable-orgs__status {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.reachable-orgs__status--resolved {
  color: color-mix(in srgb, #1f6b4a 80%, var(--ink));
}

.reachable-orgs__status--unresolved {
  color: color-mix(in srgb, #8a5a20 85%, var(--ink));
}

.reachable-orgs__resolve,
.reachable-orgs__roles {
  margin-top: 0.75rem;
}

.reachable-orgs__roles h4 {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.reachable-orgs__role {
  margin: 0.35rem 0;
}

.reachable-orgs__role-name {
  margin: 0;
  font-weight: 700;
}

.reachable-orgs__role-person {
  margin: 0.1rem 0 0.25rem;
}

.reachable-orgs__role-title,
.reachable-orgs__role-basis {
  display: block;
  color: var(--ink-muted);
  font-size: 0.78rem;
}

.reachable-orgs__contacts {
  margin-top: 0.35rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.reachable-orgs__prov {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.reachable-orgs__persist {
  margin: 0.65rem 0 0;
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.reachable-plan-cards {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.reachable-plan-card {
  padding: 0.75rem 0.9rem;
  border-radius: 0.9rem;
  background: color-mix(in srgb, var(--surface) 65%, #fff);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.reachable-plan-card.is-ready {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
}

.reachable-plan-card__eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.reachable-plan-card__name {
  margin: 0 0 0.3rem;
  font-weight: 700;
  color: var(--ink);
}

.reachable-plan-card__summary {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink-muted);
}

.reachable-ready__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.reachable-ready__title {
  margin: 0.25rem 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 750;
  color: var(--ink);
}

@media (max-width: 560px) {
  .reachable-modes__row {
    flex-direction: column;
  }

  .reachable-island {
    grid-template-columns: auto 1fr;
  }

  .reachable-island__count {
    grid-column: 2;
    justify-self: start;
  }
}

.opportunity-form .field {
  margin-bottom: 1rem;
}

.opportunity-form .field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.opportunity-form .field input,
.opportunity-form .field select {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.opportunity-form .field input:focus,
.opportunity-form .field select:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 1px;
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
}

.opportunity-form .field-hint {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.opportunity-form .field-error {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: #8a3b2a;
}

.opportunity-form .field-error[hidden] {
  display: none !important;
}

.opportunity-form__deal {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 0.75rem;
}

@media (max-width: 560px) {
  .opportunity-form__deal {
    grid-template-columns: 1fr;
  }

  .modal__foot--split {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .modal__foot--split .btn {
    width: 100%;
  }

  .modal__panel--reachable-targeting .modal__foot.modal__foot--split {
    flex-direction: column;
    align-items: stretch;
  }

  .reachable-targeting__count {
    order: -1;
    white-space: normal;
  }

  .reachable-targeting__actions {
    width: 100%;
  }

  .reachable-targeting__actions .btn {
    width: auto;
    flex: 1 1 0;
  }
}

@media (max-width: 1100px) and (min-width: 901px) {
  .potential-journey {
    grid-template-columns: minmax(10rem, 1.2fr) repeat(4, minmax(0, 1fr));
  }

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

  .status-strip__tile--potential {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  html,
  body {
    height: auto;
    min-height: 100dvh;
    overflow: auto;
  }

  .app {
    height: auto;
    max-height: none;
    min-height: 100dvh;
    overflow: visible;
    grid-template-columns: 1fr;
  }

  .sidebar {
    height: auto;
    overflow: visible;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-block: 0.85rem;
  }

  .brand {
    margin-bottom: 0;
  }

  .sidebar__label {
    display: none;
  }

  .nav {
    flex-direction: row;
    margin-bottom: 0;
    flex: 1;
  }

  .nav__item--soon {
    display: none;
  }

  .stage {
    height: auto;
    overflow: visible;
  }

  .view--space {
    height: auto;
  }

  .view--product,
  .view--research {
    overflow: visible;
  }

  .space-main {
    flex: none;
    min-height: auto;
    gap: 0.75rem;
  }

  .space-workspace {
    display: none;
  }

  .potential-bar {
    width: 100%;
  }

  .potential-bar--launcher .potential-bar__capsule {
    width: 100%;
    padding: 1rem 1.1rem 1.15rem;
  }

  .potential-bar--metrics {
    position: relative;
  }

  .potential-journey {
    grid-template-columns: 1fr 1fr;
    min-height: 0;
  }

  .status-strip {
    grid-template-columns: 1fr 1fr;
  }

  .status-strip__tile--potential {
    grid-column: 1 / -1;
  }

  .potential-journey__panel--primary {
    grid-column: 1 / -1;
  }

  .product-list {
    display: flex;
  }

  .product-list[hidden] {
    display: none !important;
  }

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

  .detail {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    top: auto;
    bottom: 0.75rem;
    width: auto;
    max-height: 48dvh;
  }
}

@media (max-width: 560px) {
  .potential-bar__headline {
    font-size: 1.25rem;
  }

  .potential-bar__meta {
    font-size: 0.85rem;
  }

  .potential-bar__best {
    font-size: 0.88rem;
  }

  .potential-bar__actions {
    flex-direction: column;
    width: 100%;
  }

  .potential-bar__cta {
    width: 100%;
  }

  .potential-bar[data-mode="analysing"] .potential-bar__capsule {
    width: 100%;
    padding: 1rem 0.95rem 0.95rem;
  }

  .potential-journey {
    grid-template-columns: 1fr;
  }

  .status-strip {
    grid-template-columns: 1fr;
  }

  .potential-journey__value {
    font-size: 1.35rem;
  }

  .potential-journey__panel:not(.potential-journey__panel--primary)::before {
    left: 8%;
    right: 8%;
    top: 0;
    bottom: auto;
    width: auto;
    height: 1px;
  }

  .opp-progress__track {
    width: 100%;
    gap: 0.28rem;
  }

  .opp-progress__island {
    font-size: 1.05rem;
  }

  .opp-progress__announce {
    font-size: 0.88rem;
  }

  .sb__best {
    font-size: 9px;
  }

  .focus-card__actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .btn-add-fab {
    width: 2.75rem;
    align-self: flex-start;
  }
}


/* —— Reachable ARR journey + spatial orgs —— */
.potential-journey__panel--reachable.is-active {
  background: color-mix(in srgb, #f6eee0 40%, transparent);
}

.potential-journey__panel--reachable.is-active .potential-journey__eyebrow {
  color: color-mix(in srgb, #7a5a28 65%, var(--ink-muted));
}

.potential-journey__value--reachable {
  font-size: clamp(0.98rem, 1.3vw, 1.18rem);
  color: #2a241c;
  text-shadow: none;
}

.potential-journey__count {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  color: color-mix(in srgb, #5a4a32 80%, var(--ink-muted));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sb__reachable {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.45rem;
  justify-content: center;
  margin-top: 0.15rem;
}

.sb__reachable-count {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #5a6f58;
  background: rgba(216, 236, 223, 0.92);
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
}

.sb__reachable-arr {
  font-size: 0.68rem;
  font-weight: 650;
  color: #6a5530;
}

.spatial-root.is-island-focus .spatial-bubble-host.is-dimmed,
.spatial-root.is-island-focus .spatial-node.is-dimmed {
  opacity: 0.22;
  filter: saturate(0.55);
  pointer-events: none;
}

.spatial-root.is-island-focus .spatial-link.is-dimmed {
  opacity: 0.12;
}

.spatial-root.is-island-focus .spatial-bubble-host.is-focus-island {
  z-index: 4;
}

.spatial-ctrl--pill {
  width: auto;
  min-width: 0;
  padding: 0 0.85rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.spatial-ctrl--exit-focus {
  background: color-mix(in srgb, #fffdf8 88%, #e8d9b8);
  color: #3a3228;
  border: 1px solid color-mix(in srgb, #c9bba6 70%, transparent);
}

.spatial-org-host {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  z-index: 5;
  pointer-events: auto;
}

.spatial-org-host__dot {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  box-shadow:
    0 0 0 3px rgba(255, 253, 248, 0.85),
    0 6px 14px rgba(45, 38, 28, 0.18);
}

.spatial-org-host--solid .spatial-org-host__dot {
  background: linear-gradient(145deg, #5f9a72, #2f6b4f);
}

.spatial-org-host--soft .spatial-org-host__dot {
  background: linear-gradient(145deg, #e8d4a8, #c4a574);
  opacity: 0.9;
}

.spatial-org-host__name {
  max-width: 7.5rem;
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  color: #2a241c;
  text-shadow: 0 1px 0 rgba(255, 253, 248, 0.9);
}

.reachable-evidence-host {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 12;
  max-width: min(22rem, calc(100% - 2rem));
  pointer-events: none;
}

.reachable-evidence-host .reachable-evidence {
  pointer-events: auto;
}

.reachable-evidence {
  position: relative;
  padding: 1rem 1.1rem 1.05rem;
  border-radius: 1rem;
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(255, 248, 230, 0.9), transparent 55%),
    linear-gradient(180deg, #fffdf8 0%, #f5eee3 100%);
  border: 1px solid color-mix(in srgb, #c9bba6 65%, transparent);
  box-shadow:
    0 18px 40px rgba(45, 38, 28, 0.18),
    0 4px 12px rgba(45, 38, 28, 0.08);
  animation: reachable-evidence-in 280ms ease-out;
}

@keyframes reachable-evidence-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reachable-evidence { animation: none; }
  .reachable-progress__pulse,
  .reachable-progress__spinner { animation: none !important; }
}

.reachable-evidence__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  border: none;
  background: transparent;
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--ink-muted);
  cursor: pointer;
}

.reachable-evidence__eyebrow {
  margin: 0 2rem 0.2rem 0;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7a5a28;
}

.reachable-evidence__title {
  margin: 0 2rem 0.25rem 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 650;
  color: #1f1b16;
}

.reachable-evidence__site { margin: 0 0 0.65rem; font-size: 0.82rem; }
.reachable-evidence__site a,
.reachable-evidence__link { color: #3d6a52; }

.reachable-evidence__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 0.75rem;
  margin: 0 0 0.7rem;
}
.reachable-evidence__meta dt {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.reachable-evidence__meta dd {
  margin: 0.1rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
}

.reachable-evidence__reason {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
  line-height: 1.4;
  color: #3a3228;
}

.reachable-evidence__points {
  margin: 0 0 0.65rem;
  padding-left: 1.1rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.reachable-evidence__sources-label {
  margin: 0 0 0.25rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.reachable-evidence__sources {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.7rem;
}

.reachable-evidence__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.reachable-evidence--embedded {
  box-shadow: none;
  animation: none;
  padding: 0;
  border: none;
  background: transparent;
}

.reachable-org-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.reachable-org-list__item {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid color-mix(in srgb, #d8ccb8 70%, transparent);
  background: color-mix(in srgb, #fffdf8 88%, #f0e6d4);
  cursor: pointer;
  text-align: left;
}

.reachable-org-list__item.is-soft {
  background: color-mix(in srgb, #fff8ec 90%, #f0d9a8);
}

.reachable-org-list__name { font-weight: 650; font-size: 0.9rem; }
.reachable-org-list__verdict { font-size: 0.72rem; color: var(--ink-muted); white-space: nowrap; }

.detail__section-label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.reachable-progress--live { text-align: center; padding: 1.5rem 1rem 1.25rem; }
.reachable-progress__pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, #2f6b4f 35%, transparent);
  animation: reachable-pulse 1.6s ease-out infinite;
}
.reachable-progress__mark {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 0.85rem;
}
.reachable-progress__counts { margin: 0.35rem 0; font-size: 0.85rem; color: var(--ink-muted); }
.reachable-support { margin: 0.55rem 0 0; font-size: 0.78rem; color: var(--ink-muted); }

.reachable-summary-visual { text-align: center; padding: 0.35rem 0.5rem 1rem; }
.reachable-summary-visual__arr {
  margin: 0.35rem 0;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 650;
  color: #2a241c;
}

.reachable-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-bottom: 0.9rem;
}
.reachable-filters__btn {
  border: 1px solid color-mix(in srgb, #d8ccb8 75%, transparent);
  background: #fffdf8;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 650;
  cursor: pointer;
  color: var(--ink-muted);
}
.reachable-filters__btn.is-active {
  background: color-mix(in srgb, #e8f1ea 80%, #fff);
  color: #2f6b4f;
  border-color: color-mix(in srgb, #2f6b4f 28%, transparent);
}

.reachable-review { display: flex; flex-direction: column; gap: 0.65rem; }
.reachable-review__item {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.85rem 0.95rem;
  border-radius: 0.9rem;
  background: color-mix(in srgb, #fffdf8 92%, #efe6d6);
  border: 1px solid color-mix(in srgb, #d8ccb8 60%, transparent);
}
.reachable-review__item.is-solid { box-shadow: inset 3px 0 0 #2f6b4f; }
.reachable-review__item.is-soft { box-shadow: inset 3px 0 0 #c4a574; }
.reachable-review__name { margin: 0; font-weight: 700; font-size: 1rem; }
.reachable-review__site,
.reachable-review__meta,
.reachable-review__reason { margin: 0.2rem 0 0; font-size: 0.82rem; color: var(--ink-muted); }
.reachable-review__reason { color: #3a3228; }
.reachable-review__actions { display: flex; gap: 0.4rem; flex-shrink: 0; }

body.is-login-open { overflow: hidden; }
.login-gate {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(7, 20, 15, 0.46);
  backdrop-filter: blur(3px);
}
.login-gate[hidden] { display: none; }
.login-card {
  position: relative;
  width: min(26.5rem, 100%);
  padding: 1.25rem 1.25rem 1.15rem;
  border-radius: 0.85rem;
  background: var(--surface-raised);
  border: 1px solid rgba(20, 24, 22, 0.12);
  box-shadow: 0 18px 44px rgba(7, 20, 15, 0.18);
}
.login-form {
  display: grid;
  gap: 0.8rem;
}
.login-card__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-right: 1.75rem;
}
.login-card__brand img {
  display: block;
  width: 28px;
  height: 28px;
  flex: none;
}
.login-card__brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.login-card__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 0.4rem;
  background: transparent;
  color: var(--ink-muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.login-card__close:hover { color: var(--ink); }
.account-bar__label { margin: 0; color: var(--ink-muted); font-size: 0.92rem; }
.login-card .login-field input,
.login-card__submit { min-height: 2.75rem; }
.login-field { display: grid; gap: 0.35rem; font-size: 0.82rem; color: var(--ink-muted); }
.login-field input,
.account-bar select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  padding: 0.65rem 0.75rem;
}
.login-card__submit { justify-content: center; }
.login-legal {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--ink-muted);
}
.login-form[data-auth-mode="login"] .login-register-only,
.login-register-only[hidden] {
  display: none !important;
}
.login-legal input { width: auto; min-height: 1.1rem; margin-top: 0.2rem; }
.login-legal a { color: inherit; font-weight: 650; }
.account-bar[hidden] { display: none; }
.account-bar {
  display: grid;
  gap: 0.7rem;
  margin: 0.4rem 0.85rem 0.8rem;
  padding: 0.85rem 0.9rem 0.8rem;
  border-radius: 1rem;
  background: color-mix(in srgb, var(--surface-raised) 88%, transparent);
  border: 1px solid var(--line);
  min-width: 0;
}
.account-bar__email,
.account-bar__workspace { margin: 0; font-size: 0.78rem; }
.account-bar__workspace[hidden] { display: none !important; }
.account-bar__logout {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  justify-self: start;
  border: 0;
  background: transparent;
  color: var(--accent-deep);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
}
.account-bar__logout-icon {
  display: block;
  flex: none;
}

@keyframes reachable-pulse {
  0% { transform: scale(0.85); opacity: 0.7; }
  100% { transform: scale(1.45); opacity: 0; }
}

@media (max-width: 900px) {
  .spatial-org-host { display: none; }
  .reachable-evidence-host { display: none; }
  .detail--org-sheet {
    position: fixed;
    inset: auto 0 0 0;
    max-height: min(78vh, 36rem);
    z-index: 40;
    border-radius: 1.1rem 1.1rem 0 0;
    overflow: auto;
  }
}

.settings-root { max-width: 46rem; display: grid; gap: 1.25rem; padding: 1.25rem 1.4rem 2rem; }
.settings-panel { display: grid; gap: 0.75rem; }
.settings-panel h2 { margin: 0; font-size: 1.05rem; }
.settings-grid { display: grid; gap: 0.65rem; }
.settings-grid label, .settings-add { display: grid; gap: 0.25rem; font-size: 0.82rem; }
.settings-grid input, .settings-grid select, .settings-add input, .settings-add select, .settings-transfer select {
  font: inherit; padding: 0.45rem 0.55rem; border-radius: 0.55rem; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.settings-meta { margin: 0; color: var(--ink-muted); font-size: 0.85rem; }
.settings-error { margin: 0; color: var(--danger, #9b2c2c); }
.settings-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.settings-table th, .settings-table td { text-align: left; padding: 0.4rem 0.35rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.settings-actions, .settings-add, .settings-transfer { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: end; }
.settings-you { font-size: 0.75rem; margin-left: 0.35rem; color: var(--ink-muted); }
.settings-root.settings-ops {
  max-width: none;
  display: block;
  padding: 1.25rem 1.5rem 2rem;
  color: var(--ink);
  background: var(--surface);
}
.settings-ops h1 { margin: 0; font-size: 1.45rem; font-weight: 650; letter-spacing: -0.02em; }
.settings-ops__lead { margin: 0.25rem 0 0; color: var(--ink-muted); font-size: 0.9rem; }
.settings-ops__layout {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin-top: 1.1rem;
}
.settings-ops__nav { display: grid; align-content: start; }
.settings-ops__nav-item {
  display: grid;
  gap: 0.1rem;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.7rem;
  border: 0;
  border-left: 3px solid transparent;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.settings-ops__nav-item[aria-current="true"] {
  background: color-mix(in srgb, var(--accent) 8%, #fff);
  border-left-color: var(--accent);
}
.settings-ops__nav-hint, .settings-ops .settings-meta { color: var(--ink-muted); }
.settings-ops__nav-hint { font-size: 0.75rem; }
.settings-ops__content { min-width: 0; display: grid; gap: 0.8rem; }
.settings-credits__form {
  display: grid;
  gap: 0.55rem;
}
.settings-ops .settings-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem 1rem; }
.settings-ops .settings-grid label, .settings-ops .settings-add label, .settings-ops .settings-transfer label {
  color: var(--ink-muted);
  font-size: 0.75rem;
}
.settings-ops input, .settings-ops select {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.4rem 0.5rem;
  font: inherit;
  accent-color: var(--accent);
}
.settings-ops__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem 1rem; margin: 0.8rem 0 0; }
.settings-ops__facts dt { color: var(--ink-muted); font-size: 0.75rem; }
.settings-ops__facts dd { margin: 0.1rem 0 0; }
.settings-ops__table-wrap { overflow-x: auto; max-width: 100%; }
.settings-ops .settings-table th { color: var(--ink-muted); font-size: 0.75rem; font-weight: 550; }
.settings-ops .settings-add, .settings-ops .settings-transfer { margin-top: 0.8rem; }
.settings-ops .settings-transfer { padding-top: 0.8rem; border-top: 1px solid var(--line); }
.settings-ops__link, .settings-ops__danger {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}
.settings-ops__link { color: var(--accent); }
.settings-ops__danger { color: var(--danger, #9f1239); }
.settings-ops :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 960px) {
  .settings-ops__layout { grid-template-columns: 1fr; }
  .settings-ops__nav { display: flex; flex-wrap: wrap; gap: 0.35rem; }
  .settings-ops__nav-item { width: auto; }
}
@media (max-width: 800px) {
  .settings-root.settings-ops { padding-left: 0.75rem; padding-right: 0.75rem; }
  .settings-ops .settings-grid, .settings-ops__facts { grid-template-columns: 1fr; }
}
.platform-root { max-width: 58rem; display: grid; gap: 1rem; padding: 1.25rem 1.4rem 2rem; }
.platform-kicker { margin: 0; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-muted); }
.platform-head h2, .platform-panel h3 { margin: 0; }
.platform-panel { display: grid; gap: 0.55rem; }
.platform-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0.5rem; }
.platform-metric { margin: 0; display: grid; gap: 0.15rem; padding: 0.55rem 0.65rem; border: 1px solid var(--line); border-radius: 0.6rem; }
.platform-metric span { color: var(--ink-muted); font-size: 0.75rem; }
.platform-list { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.25rem; }
.platform-link { border: 0; background: transparent; color: var(--accent-deep, var(--ink)); font: inherit; padding: 0; cursor: pointer; text-align: left; }
.platform-root input, .platform-root select { font: inherit; padding: 0.45rem 0.55rem; border-radius: 0.55rem; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.platform-form, .platform-danger { display: grid; gap: 0.45rem; }
.platform-danger { margin-top: 0.8rem; padding: 0.8rem; border: 1px solid #b45309; border-radius: 0.6rem; }
.platform-root.platform-ops {
  max-width: none;
  padding: 1.25rem 1.5rem 2rem;
  color: var(--ink);
  background: var(--surface);
}
.platform-ops h1 { margin: 0; font-size: 1.45rem; font-weight: 650; letter-spacing: -0.02em; }
.platform-ops h2, .platform-ops h3 { margin: 0; font-size: 1rem; }
.platform-ops__lead, .platform-ops .settings-meta { color: var(--ink-muted); }
.platform-ops__lead { margin: 0.25rem 0 0; font-size: 0.9rem; }
.platform-ops__head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.platform-ops__overview { margin-top: 0.9rem; }
.platform-ops__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.45rem 1rem; margin: 0; }
.platform-ops__facts dt { color: var(--ink-muted); font-size: 0.72rem; }
.platform-ops__facts dd { margin: 0.1rem 0 0; }
.platform-ops__filters { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1rem 0 0.6rem; }
.platform-ops__filter {
  padding: 0 0 0.2rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--ink-muted);
  font: inherit;
  cursor: pointer;
}
.platform-ops__filter[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.platform-ops__search { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: end; margin: 0.4rem 0 0.8rem; }
.platform-ops__search label, .platform-ops__create label, .platform-ops .platform-form label { display: grid; gap: 0.15rem; color: var(--ink-muted); font-size: 0.75rem; }
.platform-ops input, .platform-ops select {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.35rem 0.5rem;
  font: inherit;
  accent-color: var(--accent);
}
.platform-ops__create { display: grid; grid-template-columns: repeat(2, minmax(0, 16rem)); gap: 0.55rem; margin-top: 0.8rem; }
.platform-ops__layout { display: block; }
.platform-ops__layout.has-inspector {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22rem;
  gap: 0;
  align-items: start;
}
.platform-ops__table-wrap { overflow-x: auto; max-width: 100%; }
.platform-ops__table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.platform-ops__table th, .platform-ops__table td {
  text-align: left;
  padding: 0.5rem 0.4rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-weight: 450;
}
.platform-ops__table thead th { color: var(--ink-muted); font-size: 0.75rem; font-weight: 550; }
.platform-ops__table tr.is-selected { background: color-mix(in srgb, var(--accent) 7%, #fff); }
.platform-ops__state { display: inline-flex; gap: 0.35rem; align-items: center; }
.platform-ops__dot { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--ink-muted); }
.platform-ops__dot--ok { background: var(--accent); }
.platform-ops__dot--danger { background: var(--danger, #9f1239); }
.platform-ops__dot--muted { background: var(--ink-muted); }
.platform-ops__link, .platform-ops__danger, .platform-ops__close {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.platform-ops__link { color: var(--accent); text-decoration: underline; text-underline-offset: 0.15em; }
.platform-ops__danger { color: var(--danger, #9f1239); text-decoration: underline; text-underline-offset: 0.15em; }
.platform-ops__close { color: var(--ink); font-size: 1.25rem; line-height: 1; }
.platform-ops__inspector {
  background: #fff;
  border-left: 1px solid var(--line);
  padding: 0.85rem 1rem 1.2rem;
}
.platform-ops__inspector-head { display: flex; justify-content: space-between; gap: 0.5rem; align-items: flex-start; }
.platform-ops__block, .platform-ops__danger-zone { margin-top: 0.8rem; padding-top: 0.7rem; border-top: 1px solid var(--line); }
.platform-ops__secondary { margin-top: 1.4rem; padding-top: 0.8rem; border-top: 1px solid var(--line); display: grid; gap: 0.45rem; }
.platform-ops__empty { margin: 0.6rem 0; color: var(--ink-muted); }
.platform-ops :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 1280px) {
  .platform-ops .platform-col--created { display: none; }
}
@media (max-width: 1100px) {
  .platform-ops__layout.has-inspector { display: block; }
  .platform-ops .platform-col--workspace { display: none; }
  .platform-ops__inspector {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(24rem, 100%);
    z-index: 30;
    overflow: auto;
    box-shadow: -8px 0 24px color-mix(in srgb, var(--ink) 8%, transparent);
  }
}
@media (max-width: 960px) {
  .platform-ops .platform-col--commercial { display: none; }
  .platform-ops__facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .platform-root.platform-ops { padding-left: 0.75rem; padding-right: 0.75rem; }
  .platform-ops__head, .platform-ops__create { display: block; }
  .platform-ops__create { grid-template-columns: 1fr; }
}

/* Public homepage. Scoped so Sales Space chrome is unchanged. */
body.is-booting .public-home,
body.is-booting .app {
  display: none !important;
}

.public-home[hidden],
.app[hidden] {
  display: none !important;
}

body.is-public {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background: #f3f1ea;
  color: #161616;
}

.public-home {
  --ph-mint: #5ee9b0;
  --ph-mint-deep: #17875c;
  --ph-forest: #07140f;
  --ph-ink: #141816;
  --ph-muted: #5d675f;
  min-height: 100%;
  background: #f3f1ea;
  color: var(--ph-ink);
  font-family: var(--font-body);
}

.public-home :focus-visible {
  outline: 2px solid var(--ph-mint);
  outline-offset: 3px;
}

.public-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.75rem;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(20, 24, 22, 0.06);
  backdrop-filter: blur(10px);
}

.public-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: inherit;
  text-decoration: none;
}

.public-brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.public-brand__mark {
  width: 28px;
  height: 28px;
}

.public-nav__toggle {
  display: none;
  justify-self: end;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(20, 24, 22, 0.12);
  border-radius: 0.55rem;
  background: #fff;
  cursor: pointer;
}

.public-nav__toggle-bars,
.public-nav__toggle-bars::before,
.public-nav__toggle-bars::after {
  display: block;
  width: 1rem;
  height: 1.5px;
  margin: 0 auto;
  background: var(--ph-ink);
  position: relative;
}

.public-nav__toggle-bars::before,
.public-nav__toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.public-nav__toggle-bars::before { top: -5px; }
.public-nav__toggle-bars::after { top: 5px; }

.public-nav__panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
}

.public-nav__links {
  display: flex;
  justify-content: center;
  gap: 1.35rem;
}

.public-nav__links a,
.public-nav__links button,
.public-nav__signin {
  border: 0;
  background: transparent;
  color: #3a403c;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.2rem;
  cursor: pointer;
  text-decoration: none;
}

.public-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  justify-self: end;
}

.public-nav__demo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  background: #10281f;
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55rem 0.95rem;
  cursor: pointer;
}

.public-hero--home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: min(78vh, 46rem);
  padding: 5.5rem 1.5rem 5rem;
  background:
    radial-gradient(ellipse 42% 48% at 50% 62%, rgba(40, 180, 110, 0.26), transparent 64%),
    radial-gradient(ellipse 40% 50% at 18% 88%, rgba(16, 80, 52, 0.42), transparent 60%),
    linear-gradient(180deg, #07140f 0%, #0a1c16 55%, #07140f 100%);
}

.public-hero--home .public-hero__center {
  width: min(43.75rem, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.public-hero--home .public-hero__copy {
  max-width: 38rem;
}

.public-hero--home .public-hero__eyebrow { margin-bottom: 1.15rem; }

.public-hero--home .public-hero__title {
  font-size: clamp(2.2rem, 4.4vw, 3.35rem);
  line-height: 1.08;
}

.public-hero--home .public-hero__lead {
  max-width: 34rem;
  margin: 1.35rem auto 0;
}

.public-hero--home .public-search {
  width: 100%;
  max-width: 43.75rem;
  margin-top: 2.75rem;
  padding: 0.55rem 0.55rem 0.55rem 1.2rem;
  align-items: end;
}

.public-hero--home .public-search:focus-within {
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.4),
    0 0 0 2px rgba(94, 233, 176, 0.5);
}

.public-hero--home .public-search__icon {
  margin-bottom: 1.35rem;
}

.public-hero--home .public-search textarea {
  font-size: 1.12rem;
  line-height: 1.35;
  padding: 1.05rem 0.55rem;
  min-height: 3.6rem;
  max-height: 11.5rem;
}

.public-hero--home .public-search__go {
  width: 3.6rem;
  height: 3.6rem;
  margin-bottom: 0;
}

.public-hero--home .public-stage,
.public-hero--home .public-flow-simple {
  display: none;
}

@media (max-width: 700px) {
  .public-hero--home {
    min-height: 0;
    padding: 3.1rem 1.15rem 3.4rem;
  }

  .public-hero--home .public-hero__title {
    font-size: clamp(1.85rem, 8vw, 2.35rem);
  }

  .public-hero--home .public-search {
    margin-top: 1.85rem;
    padding: 0.4rem 0.4rem 0.4rem 0.9rem;
    border-radius: 0.85rem;
  }

  .public-hero--home .public-search__icon {
    margin-bottom: 1.05rem;
  }

  .public-hero--home .public-search textarea {
    font-size: 1rem;
    line-height: 1.35;
    padding: 0.82rem 0.35rem;
    min-height: 3rem;
    max-height: 9.5rem;
  }

  .public-hero--home .public-search__go {
    width: 3rem;
    height: 3rem;
  }
}

.public-hero__grid {
  display: grid;
  grid-template-columns: minmax(18rem, 30rem) minmax(0, 1fr);
  gap: 1.6rem 2.4rem;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 3.2rem 1.75rem 2.8rem;
}

.public-hero__copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: 30rem;
}

.public-hero__eyebrow,
.public-steps__eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.public-hero__eyebrow { color: rgba(214, 232, 222, 0.72); }

.public-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.05rem, 2.7vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.038em;
  color: #fff;
}

.public-hero__line { display: block; }

.public-hero__title-accent { color: var(--ph-mint); }

.public-hero__lead {
  max-width: 28rem;
  margin: 1.15rem 0 0;
  color: rgba(232, 240, 236, 0.78);
  font-size: 1.02rem;
  line-height: 1.55;
}

.public-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.4rem;
  margin-top: 2rem;
  padding: 0.5rem 0.5rem 0.5rem 1.05rem;
  border-radius: 0.95rem;
  background: #fff;
  color: #1c1c1c;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(94, 233, 176, 0.35);
}

.public-search__icon {
  color: #8b938e;
  flex: none;
  margin-bottom: 1.05rem;
}

.public-search textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 3.4rem;
  max-height: 10.5rem;
  border: 0;
  background: transparent;
  color: #1c1c1c;
  font: inherit;
  font-size: 1.06rem;
  line-height: 1.35;
  padding: 0.9rem 0.45rem;
  resize: none;
  overflow-x: hidden;
  overflow-y: auto;
}

.public-search textarea::placeholder { color: #8d948f; }
.public-search textarea:focus { outline: none; }

.public-search__go {
  display: grid;
  place-items: center;
  flex: none;
  width: 3.4rem;
  height: 3.4rem;
  border: 0;
  border-radius: 0.65rem;
  background: var(--ph-mint-deep);
  color: #fff;
  cursor: pointer;
}

.public-search__go:hover { background: #147a52; }

.public-search__error {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0 0.2rem 0.35rem;
  color: #9f1d1d;
  font-size: 0.85rem;
}

.public-search__error[hidden] { display: none; }

.public-stage {
  position: relative;
  height: 28rem;
  min-width: 0;
  isolation: isolate;
}

.public-stage__map {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.public-stage__map text {
  font-family: var(--font-body);
  paint-order: stroke fill;
  stroke: #07140f;
  stroke-width: 3.5px;
  stroke-linejoin: round;
}

.public-viz__sell {
  stroke-dasharray: 7 9;
  animation: public-sell-flow 9s linear infinite;
}

.public-flow-simple {
  display: none;
  grid-column: 1 / -1;
  gap: 0.45rem;
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
}

.public-flow-simple li {
  padding: 0.7rem 0.9rem;
  border-radius: 0.7rem;
  background: rgba(10, 28, 22, 0.72);
  border: 1px solid rgba(94, 233, 176, 0.22);
  color: #e7f6ef;
  font-weight: 650;
}

.public-flow-simple li + li::before {
  content: "↓";
  display: block;
  margin: -0.55rem 0 0.35rem;
  color: var(--ph-mint);
  font-size: 0.8rem;
}

.public-bridge {
  padding: 1.35rem 1.5rem;
  background: #f7f5f0;
  border-top: 1px solid rgba(20, 24, 22, 0.05);
  border-bottom: 1px solid rgba(20, 24, 22, 0.05);
  text-align: center;
}

.public-bridge p {
  margin: 0;
  color: #5c665f;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.public-steps {
  padding: 4.2rem 1.5rem 5rem;
  background: #f3f1ea;
}

.public-steps__eyebrow {
  text-align: center;
  color: #7b847d;
}

.public-steps h2 {
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  letter-spacing: -0.03em;
  font-weight: 800;
}

.public-steps__lead {
  max-width: 40rem;
  margin: 0.85rem auto 0;
  text-align: center;
  color: var(--ph-muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.public-steps__list {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0.35rem 0.4rem;
  align-items: start;
  max-width: 1080px;
  margin: 2.8rem auto 0;
  padding: 0;
  list-style: none;
}

.public-steps__list > li:not(.public-steps__arrow) {
  text-align: center;
  padding: 0 0.35rem;
}

.public-steps__icon {
  display: inline-block;
  width: 4.4rem;
  height: 4.4rem;
  margin-bottom: 0.95rem;
  border-radius: 50%;
  background-color: #e5f3eb;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 1.45rem 1.45rem;
}

.public-steps__icon[data-step="tell"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317875c' stroke-width='1.7'%3E%3Cpath d='M7 3.5h7l4 4V20a1.5 1.5 0 0 1-1.5 1.5h-9.5A1.5 1.5 0 0 1 5.5 20V5A1.5 1.5 0 0 1 7 3.5Z'/%3E%3Cpath d='M14 3.5V8h4.5M8 12h8M8 16h5'/%3E%3C/svg%3E");
}
.public-steps__icon[data-step="find"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317875c' stroke-width='1.7'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='M16 16l4 4' stroke-linecap='round'/%3E%3C/svg%3E");
}
.public-steps__icon[data-step="outreach"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317875c' stroke-width='1.7'%3E%3Cpath d='M3.5 12 20 5.5l-6.2 14-2.3-5.4L3.5 12Z'/%3E%3C/svg%3E");
}
.public-steps__icon[data-step="responses"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317875c' stroke-width='1.7'%3E%3Cpath d='M6 16.5 4 20l4.2-1.4A8 8 0 1 0 6 16.5Z'/%3E%3C/svg%3E");
}
.public-steps__icon[data-step="convert"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317875c' stroke-width='1.7'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M8.5 12.2 11 14.7 15.8 9.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.public-steps__outcomes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.7rem;
  margin-top: 0.65rem;
  color: #3d6b56;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.public-steps__outcomes span + span::before {
  content: "·";
  margin-right: 0.7rem;
  color: #8fd4b4;
}

.public-steps h3 {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.public-steps__list p {
  margin: 0;
  color: var(--ph-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.public-steps__arrow {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 1.65rem;
  border-top: 2px solid #17875c;
  border-right: 2px solid #17875c;
  transform: rotate(45deg);
}

@keyframes public-sell-flow {
  to { stroke-dashoffset: -160; }
}

@media (max-width: 1080px) {
  .public-hero__grid { grid-template-columns: 1fr; padding-top: 2.6rem; }
  .public-stage { height: 22rem; }
  .public-viz__minor { display: none; }
}

@media (max-width: 700px) {
  .public-stage { display: none; }
  .public-flow-simple { display: grid; max-width: 28rem; }
}

@media (max-width: 860px) {
  .public-nav { grid-template-columns: 1fr auto; }
  .public-nav__toggle { display: inline-grid; place-items: center; }
  .public-nav__panel {
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    padding: 0.4rem 0 0.6rem;
  }
  .public-nav.is-open .public-nav__panel { display: grid; }
  .public-nav__links,
  .public-nav__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
  .public-nav__links { justify-content: flex-start; }
  .public-steps__list {
    grid-template-columns: 1fr;
    max-width: 22rem;
    gap: 1.35rem;
  }
  .public-steps__arrow { display: none; }
  .public-hero__title { font-size: 2.35rem; }
}

.public-nav__links a[aria-current="page"] {
  color: var(--ph-ink);
  font-weight: 650;
}

.public-hero--product .public-hero__grid {
  padding-bottom: 3.2rem;
  align-items: start;
}

.public-hero--product .public-hero__copy {
  padding-top: 0.35rem;
}

.public-hero--product .public-hero__title {
  font-size: clamp(2.05rem, 3vw, 2.85rem);
  line-height: 1.08;
}

.public-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin-top: 2rem;
}

.public-hero__actions .public-nav__demo {
  background: #fff;
  color: #10281f;
}

.public-text-link {
  color: rgba(232, 240, 236, 0.88);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(143, 240, 200, 0.55);
}

.public-text-link:hover { color: #fff; }

.public-stage--product { height: 26rem; }

.public-prose {
  max-width: 40rem;
  margin: 0 auto;
  padding: 3.6rem 1.5rem 0;
  background: #f3f1ea;
}

.public-prose h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.6vw, 2.15rem);
  letter-spacing: -0.03em;
  font-weight: 800;
  text-align: left;
}

.public-prose .public-steps__eyebrow {
  text-align: left;
  margin-bottom: 0.7rem;
}

.public-prose__lead,
.public-prose p {
  margin: 0.9rem 0 0;
  color: var(--ph-muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.public-prose__lead { color: #3e4742; }

.public-prose__note {
  margin-top: 1.15rem;
  color: #17875c;
  font-weight: 650;
}

.public-traits,
.public-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}

.public-traits li,
.public-flow li {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: #fffdf8;
  border: 1px solid rgba(20, 24, 22, 0.08);
  color: #2a322e;
  font-size: 0.88rem;
  font-weight: 600;
}

.public-flow {
  display: grid;
  gap: 0.55rem;
}

.public-flow li {
  border-radius: 0.7rem;
  padding: 0.7rem 0.9rem;
}

.public-flow li + li { position: relative; }

.public-contrast {
  margin-top: 4.2rem;
  padding: 4.2rem 1.5rem;
  color: #f4f7f5;
  background:
    radial-gradient(ellipse 50% 80% at 80% 20%, rgba(40, 180, 110, 0.22), transparent 58%),
    linear-gradient(180deg, #07140f 0%, #0a1c16 100%);
  text-align: center;
}

.public-contrast h2 {
  margin: 0 auto;
  max-width: 28rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.035em;
  font-weight: 800;
  line-height: 1.12;
}

.public-contrast h2 span { display: block; }

.public-contrast p {
  max-width: 36rem;
  margin: 1.1rem auto 0;
  color: rgba(232, 240, 236, 0.78);
  font-size: 1.02rem;
  line-height: 1.55;
}

.public-contrast__chain {
  max-width: 46rem;
  color: #8ff0c8 !important;
  font-size: 0.92rem !important;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.public-cta-band {
  padding: 4.2rem 1.5rem 5rem;
  background: #f3f1ea;
  text-align: center;
}

.public-cta-band h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.03em;
  font-weight: 800;
}

.public-cta-band p {
  max-width: 32rem;
  margin: 0.85rem auto 1.4rem;
  color: var(--ph-muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.public-cta-band .public-nav__demo { display: inline-flex; }

.public-journey {
  list-style: none;
  counter-reset: journey;
  margin: 0;
  padding: 1.15rem 1.25rem 1.2rem;
  max-width: 22rem;
  border-radius: 1.05rem;
  background: rgba(8, 22, 18, 0.58);
  border: 1px solid rgba(143, 240, 200, 0.22);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.public-journey li {
  position: relative;
  counter-increment: journey;
  padding: 0.45rem 0 0.7rem 1.85rem;
  color: #f4f7f5;
  font-size: 0.95rem;
  font-weight: 650;
  border-left: 1px solid rgba(143, 240, 200, 0.28);
}

.public-journey li:last-child {
  border-left-color: transparent;
  padding-bottom: 0.1rem;
}

.public-journey li::before {
  content: counter(journey);
  position: absolute;
  left: -0.7rem;
  top: 0.38rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: #10281f;
  border: 1px solid #8ff0c8;
  color: #8ff0c8;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  display: grid;
  place-items: center;
}

.public-prose__chain {
  color: #17875c !important;
  letter-spacing: 0.01em;
}

.public-tracks {
  max-width: 48rem;
  margin: 3.6rem auto 0;
  padding: 0 1.5rem;
}

.public-tracks .public-steps__eyebrow {
  text-align: left;
  color: #5d675f;
}

.public-tracks h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.6vw, 2.15rem);
  letter-spacing: -0.03em;
  font-weight: 800;
}

.public-tracks__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.35rem;
}

.public-track {
  min-width: 0;
  padding: 1.15rem 1.1rem 1.25rem;
  background: #fffdf8;
  border: 1px solid rgba(20, 24, 22, 0.08);
  border-radius: 1rem;
}

.public-track h3 {
  margin: 0 0 0.85rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #17875c;
}

.public-track ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.public-track li {
  position: relative;
  padding: 0.45rem 0 0.7rem 1.15rem;
  color: #2a322e;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  border-left: 1px solid rgba(23, 135, 92, 0.28);
}

.public-track li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.public-track li::before {
  content: "";
  position: absolute;
  left: -0.26rem;
  top: 0.7rem;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: #17875c;
}

.public-tracks__join {
  margin: 1.15rem 0 0;
  padding: 1.15rem 1rem 1.25rem;
  text-align: center;
  color: #8ff0c8;
  background: #07140f;
  border-radius: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
}

.public-tracks__join span {
  display: block;
  margin: 0.35rem 0;
  color: rgba(143, 240, 200, 0.7);
  font-weight: 500;
}

.public-contrast--close {
  padding-bottom: 4.2rem;
}

.public-contrast--close .public-steps__eyebrow {
  color: rgba(214, 232, 222, 0.72);
}

.public-contrast--close h2 { max-width: 36rem; }

@media (max-width: 700px) {
  .public-tracks__grid { grid-template-columns: 1fr; }
  .public-journey { max-width: none; }
}

.public-footer {
  margin-top: 0;
  padding: 1.6rem 1.5rem 1.8rem;
  background: #07140f;
  color: rgba(232, 240, 236, 0.72);
  border-top: 1px solid rgba(143, 240, 200, 0.12);
}

.public-footer__inner {
  max-width: 48rem;
  margin: 0 auto;
  display: grid;
  gap: 0.85rem;
}

.public-footer__brand {
  margin: 0;
  color: #f4f7f5;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.public-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.15rem;
}

.public-footer__nav a {
  color: rgba(232, 240, 236, 0.78);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.public-footer__nav a:hover { color: #8ff0c8; }

.public-footer__copy {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(232, 240, 236, 0.5);
}

.public-miss {
  min-height: calc(100svh - 11rem);
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  padding: 4.5rem 1.5rem 5rem;
  color: #f4f7f5;
  background:
    radial-gradient(ellipse 55% 80% at 78% 45%, rgba(40, 180, 110, 0.28), transparent 58%),
    radial-gradient(ellipse 40% 50% at 20% 80%, rgba(16, 80, 52, 0.45), transparent 60%),
    linear-gradient(180deg, #07140f 0%, #0a1c16 55%, #07140f 100%);
}

.public-miss .public-hero__eyebrow { color: #8ff0c8; }

.public-miss h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.035em;
  font-weight: 800;
}

.public-miss p {
  max-width: 28rem;
  margin: 0.9rem 0 0;
  color: rgba(232, 240, 236, 0.78);
  font-size: 1.02rem;
  line-height: 1.55;
}

.public-miss__home {
  margin-top: 1.4rem;
  color: #8ff0c8;
  font-weight: 650;
  text-decoration: none;
  border-bottom: 1px solid rgba(143, 240, 200, 0.45);
}

.public-miss__home:hover { color: #fff; }

.public-hero--utility .public-hero__grid {
  grid-template-columns: minmax(0, 40rem);
  padding-bottom: 3rem;
}

.public-prose--utility { padding-bottom: 4.2rem; }

.public-prose--legal {
  max-width: 44rem;
}

.public-prose--legal h2 {
  margin-top: 2.4rem;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.public-prose--legal ul,
.public-prose--legal ol {
  margin: 0.7rem 0 0;
  padding-left: 1.2rem;
  color: var(--ph-muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.public-prose--legal li + li { margin-top: 0.35rem; }

.public-prose--legal a { color: #0b6e4f; }

@media (max-width: 700px) {
  .public-footer__nav { flex-direction: column; gap: 0.45rem; }
}

@media (max-width: 1080px) {
  .public-stage--product { height: 20rem; }
}

@media (max-width: 700px) {
  .public-stage--product { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .public-viz__sell { animation: none; }
}

/* Logged-in shell and Sales Space. Does not restyle the public homepage. */
.app .sidebar {
  background: #0c1f18;
  color: #e7f3ec;
  border-right: 0;
}
.app .brand__name { color: #fff; }
.app .brand { margin-bottom: 1.1rem; }
.app .nav { flex: 1; }
.app .nav__item { color: rgba(231, 243, 236, 0.82); }
.app .nav__item--active {
  background: #17875c;
  color: #fff;
}
.app .account-bar {
  margin-top: auto;
  margin-bottom: 0.85rem;
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: #e7f3ec;
}
.app .account-bar__email { color: #fff; }
.app .account-bar__logout { color: #9ee0c4; }
.app .account-bar__logout:hover { color: #c9f5e2; }
.app .stage { background: #f3f1ea; }

.space-product {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.space-product[hidden] { display: none; }
.space-product__kicker {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5d675f;
}
.space-product__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  letter-spacing: -0.03em;
}
.space-product__summary {
  margin: 0.35rem 0 0;
  max-width: 42rem;
  color: #3e4742;
  font-size: 0.95rem;
}
.space-product__url {
  display: inline-block;
  margin-top: 0.3rem;
  color: #17875c;
  font-size: 0.88rem;
}
.space-product__actions { display: flex; gap: 0.45rem; flex-shrink: 0; }
.space-product__actions[hidden],
.space-product--state1 .space-product__actions,
#btn-edit-product[hidden],
#btn-add-product[hidden] {
  display: none !important;
}
.space-product--state1 {
  display: block;
  margin-bottom: 1rem;
}
.space-product--state1 .space-product__total,
.space-product__total[hidden] { display: none !important; }
.offer-understanding[hidden] { display: none; }
.offer-understanding {
  margin: 0.95rem 0 0;
  max-width: none;
}
.offer-understanding__card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid #e6ddcf;
  border-radius: 0.95rem;
  background: #fffdf8;
}
.offer-understanding__copy {
  flex: 1;
  min-width: 0;
}
.offer-understanding__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #121a16;
}
.offer-understanding__lede {
  margin: 0.28rem 0 0;
  font-size: 0.8rem;
  color: #5d675f;
  max-width: 38rem;
}
.offer-understanding__facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.65rem 1.25rem;
  margin: 0.7rem 0 0;
}
.offer-understanding__fact--offer {
  grid-column: 1 / -1;
}
.offer-understanding__facts dt {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a8478;
}
.offer-understanding__facts dd {
  margin: 0.2rem 0 0;
  font-size: 0.86rem;
  line-height: 1.4;
  color: #1d2621;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.offer-understanding__edit {
  flex-shrink: 0;
  margin-top: 0.1rem;
  border: 0;
  background: transparent;
  color: #147351;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
  white-space: nowrap;
}
.offer-understanding__form {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.4rem;
}
.offer-understanding__form[hidden] { display: none; }
.offer-understanding__form label {
  font-size: 0.78rem;
  font-weight: 650;
  color: #3e4742;
}
.offer-understanding__form textarea {
  width: 100%;
  min-height: 6rem;
  resize: vertical;
  font: inherit;
  padding: 0.55rem 0.65rem;
  border: 1px solid #d9cebc;
  border-radius: 0.7rem;
  background: #fff;
}
.offer-understanding__error {
  margin: 0;
  color: #c01515;
  font-size: 0.82rem;
  font-weight: 650;
}
.offer-understanding__form-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .offer-understanding__card { flex-direction: column; }
  .offer-understanding__facts { grid-template-columns: 1fr; }
}
.view--space-state1 {
  overflow-y: auto;
}
.view--space-state1 .space-main {
  flex: 0 0 auto;
  min-height: auto;
}
.view--space-state1 .space-workspace {
  flex: 0 0 auto;
  height: auto;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}
.view--space-state1 .space-workspace__viewport {
  flex: none;
  height: auto;
  min-height: 0;
  overflow: visible;
}
.view--space-state1 .nodes {
  position: relative;
  inset: auto;
  overflow: visible;
  min-height: min-content;
  padding: 0 0 1.5rem;
}
.island-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.island-card {
  display: grid;
  grid-template-columns: 2.1rem 2.85rem minmax(12rem, 1.35fr) minmax(16rem, 1.7fr) auto;
  gap: 0.75rem 0.95rem;
  align-items: start;
  background: #fffdf8;
  border: 1px solid #e6ddcf;
  cursor: pointer;
  border-radius: 1.1rem;
  padding: 1.2rem 1.15rem 1.2rem 0.85rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) inset;
}
.island-card--strong { border-left: 4px solid #17875c; }
.island-card--promising { border-left: 4px solid #d4a017; }
.island-card--exploratory { border-left: 4px solid #3b82c4; }
.island-card--recommended {
  border-color: #17875c;
  box-shadow:
    0 0 0 1px color-mix(in srgb, #17875c 55%, transparent),
    0 1px 0 rgba(255, 255, 255, 0.72) inset;
}
.island-card__recommended {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  margin: 0;
  padding: 0.16rem 0.58rem;
  border-radius: 999px;
  background: #f4b942;
  color: #3a2e08;
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}
.island-card__index {
  padding-top: 0.7rem;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #8a8478;
}
.island-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  margin-top: 0.1rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
}
.island-card__icon svg { width: 1.15rem; height: 1.15rem; }
.island-card__icon[data-rating="strong"] { background: #17875c; }
.island-card__icon[data-rating="promising"] { background: #e0a31a; }
.island-card__icon[data-rating="exploratory"] { background: #3b82c4; }
.island-card__copy { min-width: 0; }
.island-card__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
}
.island-card__name {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: #121a16;
}
.island-card__badge {
  font-size: 0.76rem;
  font-weight: 750;
  padding: 0.18rem 0.58rem;
  border-radius: 999px;
}
.island-card__badge--strong { background: #17875c; color: #fff; }
.island-card__badge--promising { background: #f3c04b; color: #3a2e08; }
.island-card__badge--exploratory { background: #3b82c4; color: #fff; }
.island-card__desc {
  margin: 0.35rem 0 0;
  font-size: 0.86rem;
  line-height: 1.4;
  color: #4a524c;
}
.island-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.5rem;
}
.island-card__tag {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.08rem 0.42rem;
  border-radius: 999px;
  border: 0;
  background: color-mix(in srgb, #8a8478 10%, transparent);
  color: #7a7468;
}
.island-card__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem 0.85rem;
  margin: 0;
}
.island-card__metrics dt {
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: #8a8478;
}
.island-card__metrics dd {
  margin: 0.18rem 0 0;
  font-size: 1.08rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #121a16;
}
.island-card__buyers,
.island-card__signals {
  grid-column: 1 / -1;
}
.island-card__buyer {
  display: inline-block;
  margin: 0.18rem 0.28rem 0 0;
  padding: 0.08rem 0.42rem;
  border: 0;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 500;
  background: color-mix(in srgb, #8a8478 10%, transparent);
  color: #7a7468;
}
.island-card__signals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  font-size: 0.78rem;
  color: #3e4742;
}
.island-card__signal--hard {
  font-weight: 650;
  color: #6b5340;
}
.island-card__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  justify-self: end;
  min-width: 12.5rem;
}
.island-card__top {
  margin: 0 0 0.15rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.5rem;
  align-items: start;
}
.island-card__trophy {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #f4b942;
  color: #fff;
  flex-shrink: 0;
}
.island-card__trophy svg {
  width: 1.15rem;
  height: 1.15rem;
}
.island-card__top-copy {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}
.island-card__top strong {
  font-size: 0.86rem;
  font-weight: 750;
  color: #c48a08;
  line-height: 1.2;
}
.island-card__top-copy > span {
  font-size: 0.72rem;
  font-weight: 500;
  color: #6b6458;
  line-height: 1.3;
}
.island-card__pursue {
  border: 0;
  background: #17875c;
  color: #fff;
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  text-align: center;
}
.island-card__pursue:hover { background: #147351; }
.island-card__view {
  border: 1px solid #17875c;
  background: #fff;
  color: #147351;
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
}
.island-card__view:hover {
  background: color-mix(in srgb, #17875c 8%, #fffdf8);
}
@media (max-width: 1080px) {
  .island-card {
    grid-template-columns: 2rem 2.6rem minmax(0, 1fr);
  }
  .island-card__metrics,
  .island-card__actions {
    grid-column: 1 / -1;
  }
  .island-card__actions { justify-self: start; }
}
.detail.detail--state1-focus {
  position: fixed;
  top: 1rem;
  right: 1rem;
  bottom: 1rem;
  left: auto;
  width: min(42.5rem, calc(100vw - var(--sidebar-w) - 2.5rem));
  height: auto;
  max-height: none;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  background: #fffdf8;
  border: 1px solid #e6ddcf;
}
.island-focus {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  height: 100%;
}
.island-focus__close {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  z-index: 1;
  border: 0;
  background: transparent;
  color: #17875c;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.island-focus__scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 1.2rem 1.45rem 1rem;
}
.island-focus__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5d675f;
}
.island-focus__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  padding-right: 3.5rem;
}
.island-focus__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: #121a16;
}
.island-focus__badge {
  font-size: 0.76rem;
  font-weight: 750;
  padding: 0.18rem 0.58rem;
  border-radius: 999px;
}
.island-focus__badge--strong { background: #17875c; color: #fff; }
.island-focus__badge--promising { background: #f3c04b; color: #3a2e08; }
.island-focus__badge--exploratory { background: #3b82c4; color: #fff; }
.island-focus__desc {
  margin: 0.45rem 0 0;
  max-width: 38rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #4a524c;
}
.island-focus__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  margin: 1.15rem 0 0.35rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid #eadfcb;
}
.island-focus__metrics dt {
  font-size: 0.72rem;
  font-weight: 650;
  color: #8a8478;
}
.island-focus__metrics dd {
  margin: 0.28rem 0 0;
  font-size: 1.12rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #121a16;
}
.island-focus__section {
  margin-top: 1.15rem;
}
.island-focus__section h3 {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5d675f;
}
.island-focus__section p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #17211c;
}
.island-focus__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.55rem;
}
.island-focus__tags span {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.08rem 0.42rem;
  border-radius: 999px;
  background: color-mix(in srgb, #8a8478 10%, transparent);
  color: #7a7468;
}
.island-focus__buyers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.island-focus__buyers li {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}
.island-focus__buyers strong {
  font-size: 0.95rem;
  color: #121a16;
}
.island-focus__buyers span {
  font-size: 0.86rem;
  color: #5d675f;
}
.island-focus__signals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
  margin: 0;
}
.island-focus__signals dt {
  font-size: 0.72rem;
  font-weight: 650;
  color: #8a8478;
}
.island-focus__signals dd {
  margin: 0.12rem 0 0;
  font-size: 0.95rem;
  font-weight: 650;
  color: #17211c;
}
.island-focus__section--quiet {
  margin-top: 1.35rem;
  padding-top: 0.9rem;
  border-top: 1px solid #eadfcb;
  opacity: 0.88;
}
.island-focus__section--quiet h3 {
  font-weight: 650;
  color: #8a8478;
}
.island-focus__section--quiet ul {
  margin: 0;
  padding-left: 1.05rem;
  color: #5d675f;
  font-size: 0.84rem;
  line-height: 1.45;
}
.island-focus__footer {
  flex: 0 0 auto;
  padding: 0.9rem 1.45rem 1.15rem;
  border-top: 1px solid #eadfcb;
  background: #fffdf8;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.island-focus__prompt {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #17211c;
}
.island-focus__choice {
  display: grid;
  gap: 0.75rem;
}
.island-focus__choice-item {
  display: grid;
  gap: 0.28rem;
}
.island-focus__choice-btn {
  width: 100%;
  border: 1px solid #17875c;
  background: #fff;
  color: #147351;
  border-radius: 999px;
  padding: 0.72rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  cursor: pointer;
}
.island-focus__choice-btn:hover {
  background: #f3fbf7;
}
.island-focus__choice-copy {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #5d675f;
}
.island-focus__zoom-out {
  align-self: flex-start;
  border: 0;
  background: transparent;
  color: #147351;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 650;
  padding: 0;
  margin: 0 0 0.55rem;
  cursor: pointer;
}
.island-focus__zoom-label {
  margin: 0.65rem 0 0;
  font-size: 0.86rem;
  font-weight: 650;
  color: #147351;
}
.island-focus__pursue {
  width: 100%;
  border: 0;
  background: #17875c;
  color: #fff;
  border-radius: 999px;
  padding: 0.72rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}
.island-focus__pursue:hover { background: #147351; }
.market-target {
  border: 1px solid #eadfcb;
  border-radius: 16px;
  padding: 0.9rem 1rem 1rem;
  margin: 0 0 0.75rem;
  background: #fff;
}
.market-target--recommended { border-color: #17875c; }
.market-target__head {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.market-target__rank { margin: 0; font-size: 0.78rem; color: #6b746c; }
.market-target__name { margin: 0; font-size: 1.02rem; }
.market-target__badge {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  color: #147351;
}
.market-target__guidance {
  display: block;
  font-weight: 500;
  color: #6b746c;
}
.market-target__why,
.market-target__trigger,
.market-target__reason,
.market-target__signals { margin: 0.45rem 0 0; font-size: 0.88rem; line-height: 1.45; }
.market-target__chars { margin: 0.4rem 0 0; padding-left: 1.05rem; font-size: 0.86rem; }
.island-card__targets { margin: 0.35rem 0 0; font-size: 0.82rem; color: #147351; font-weight: 650; }
@media (max-width: 720px) {
  .detail.detail--state1-focus { width: calc(100% - 1.2rem); right: 0.6rem; left: 0.6rem; }
  .island-focus__metrics,
  .island-focus__signals { grid-template-columns: 1fr; }
}
.space-workspace__label { display: none; }
.potential-bar__mark-wrap { display: none; }
.potential-bar--launcher .potential-bar__capsule {
  width: 100%;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  text-align: left;
  align-items: center;
  gap: 0.65rem 1rem;
  color: #17211c;
  background: #fffdf8;
  border: 1px solid #e0d6c6;
  box-shadow: none;
  padding: 0.7rem 0.9rem;
}
.potential-bar__headline { font-size: 1rem; color: #17211c; }
.potential-bar__eyebrow,
.potential-bar__meta { color: #5d675f; }

.spatial-controls {
  inset: 0;
  right: 0;
  bottom: 0;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}
.spatial-toolbar,
.spatial-filters,
.spatial-search,
.spatial-filter {
  display: none !important;
}
.spatial-zoom,
.spatial-legend,
.spatial-more,
.spatial-ctrl--exit-focus { pointer-events: auto; }
.spatial-zoom,
.spatial-legend {
  position: absolute;
  bottom: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.45rem;
  border-radius: 0.8rem;
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid #e0d6c6;
}
.spatial-zoom { right: 0.7rem; }
.spatial-legend {
  left: 0.7rem;
  margin: 0;
  padding: 0.45rem 0.7rem;
  list-style: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  font-size: 0.75rem;
  color: #3e4742;
}
.spatial-legend i {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: #8d948f;
}
.spatial-legend i[data-strength="strong"] { background: #17875c; }
.spatial-legend i[data-strength="promising"] { background: #c4842a; }
.spatial-legend i[data-strength="exploratory"] { background: #2f7ad1; }
.spatial-zoom__level { min-width: 2.6rem; text-align: center; font-size: 0.75rem; }
.spatial-more { position: absolute; right: 0.7rem; bottom: 3.4rem; }
.detail__actions { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.9rem; }
.detail__actions .btn { font-size: 0.85rem; }

@media (max-width: 1100px) {
  .space-product { flex-direction: column; }
  .detail {
    left: 0.6rem;
    right: 0.6rem;
    top: auto;
    bottom: 0.6rem;
    width: auto;
    max-height: min(46vh, 24rem);
  }
  .spatial-legend { display: none; }
}

/* Campaigns overview — operational list. Detail styles stay on .camp-detail. */
.camp-ops {
  gap: 0.75rem;
  padding: 1rem 1.15rem 1.4rem;
  background: transparent;
}
.camp-ops .camp-console__head {
  align-items: flex-start;
  gap: 1rem;
  border-bottom: 1px solid #e4e0d6;
  padding-bottom: 0.7rem;
}
.camp-ops .camp-console__lead {
  margin: 0.2rem 0 0;
  max-width: 38rem;
  color: #5c675f;
  font-size: 0.84rem;
  line-height: 1.35;
}
.camp-ops .camp-console__tools {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}
.camp-ops .camp-toolbar__search input {
  width: 14rem;
  height: 2rem;
  border: 1px solid #d9d4c8;
  border-radius: 2px;
  background: #fff;
  padding: 0 0.55rem;
  font: inherit;
  font-size: 0.82rem;
  color: #17211c;
}
.camp-ops .camp-toolbar { padding: 0; }
.camp-ops .camp-toolbar__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid #e4e0d6;
}
.camp-ops .camp-filter {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  padding: 0.4rem 0.65rem;
  font-size: 0.78rem;
  color: #3d4a42;
}
.camp-ops .camp-filter.is-active,
.camp-ops .camp-filter:hover {
  border-color: transparent;
  border-bottom-color: #1f6b45;
  background: transparent;
  color: #143028;
}
.camp-ops .camp-filter__count {
  color: #6d786f;
  font-variant-numeric: tabular-nums;
}
.camp-ops .camp-table-wrap {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: auto;
}
.camp-ops .camp-table {
  display: table;
  width: 100%;
  min-width: 40rem;
}
.camp-ops .camp-table thead th {
  font-size: 0.72rem;
  font-weight: 650;
  color: #5c675f;
  background: #f7f5ef;
  border-bottom: 1px solid #e4e0d6;
}
.camp-ops .camp-sort {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-weight: 650;
  color: inherit;
  cursor: pointer;
}
.camp-ops .camp-table tbody td {
  border-bottom: 1px solid #ece8df;
  vertical-align: top;
  background: #fff;
}
.camp-ops .camp-row__name,
.camp-ops .camp-row__action,
.camp-ops .camp-sort {
  border-radius: 0;
}
.camp-ops .camp-row__name {
  display: block;
  border: 0;
  background: transparent;
  padding: 0;
  font-weight: 650;
  color: #17211c;
  text-align: left;
  cursor: pointer;
}
.camp-ops .camp-row__scope,
.camp-ops .camp-state__note,
.camp-ops .camp-agent__mail {
  display: block;
  margin-top: 0.12rem;
  color: #5e6a62;
  font-size: 0.75rem;
}
.camp-ops .camp-state { font-weight: 650; color: #17211c; }
.camp-ops .camp-row__action {
  border: 0;
  background: transparent;
  padding: 0;
  color: #1b5c3a;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.camp-ops .camp-cat--commercial { color: #1b5c3a; }
.camp-ops .camp-cat--public_nonprofit { color: #1d4e89; }
.camp-ops .camp-cat--partner { color: #8a5a12; }
.camp-ops :focus-visible {
  outline: 2px solid #1f6b45;
  outline-offset: 2px;
}
@media (max-width: 1100px) {
  .camp-ops .camp-console__head { flex-wrap: wrap; }
  .camp-ops .camp-table { min-width: 0; }
}
.camp-ops .camp-outcomes {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin: 0;
  padding: 0.1rem 0 0.45rem;
  border-bottom: 1px solid #e4e0d6;
}
.camp-ops .camp-outcomes__scope {
  margin: 0;
  color: #6d786f;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.camp-ops .camp-outcomes__list {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
}
.camp-ops .camp-outcomes__item {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  margin: 0;
  padding: 0 0.9rem;
  border-left: 1px solid #e4e0d6;
}
.camp-ops .camp-outcomes__item:first-child {
  padding-left: 0;
  border-left: 0;
}
.camp-ops .camp-outcomes__item dt {
  margin: 0;
  color: #5c675f;
  font-size: 0.68rem;
  font-weight: 500;
}
.camp-ops .camp-outcomes__item dd {
  margin: 0;
  color: #17211c;
  font-size: 1.35rem;
  font-weight: 650;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.camp-ops .camp-outcomes__share {
  margin-left: 0.35rem;
  color: #5c675f;
  font-size: 0.72rem;
  font-weight: 500;
}
.camp-ops .camp-table th.camp-col--num,
.camp-ops .camp-table td.camp-col--num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 1320px) {
  .camp-ops .camp-col--hide-funnel { display: none; }
}
@media (max-width: 1000px) {
  .camp-ops .camp-col--hide-outcome { display: none; }
}
@media (max-width: 800px) {
  .camp-ops .camp-col--hide-sm { display: none; }
  .camp-ops .camp-toolbar__search input { width: 9.5rem; }
}

/* Campaign detail — operational. Setup wizard keeps .camp-detail without this class. */
.camp-ops-detail {
  gap: 0;
  padding: 0.85rem 1.15rem 1.6rem;
  background: var(--surface);
  color: var(--ink);
  min-width: 0;
}
.camp-ops-detail__head { display: flex; flex-direction: column; gap: 0.65rem; }
.camp-ops-detail__crumb {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.75rem;
}
.camp-ops-detail__crumb button {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--accent-deep);
  font: inherit;
  cursor: pointer;
}
.camp-ops-detail__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.camp-ops-detail__name-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.7rem; }
.camp-ops-detail__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.camp-ops-detail__status,
.camp-ops-detail__agent-state,
.camp-ops-detail__state {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  color: var(--ink);
  font-size: 0.84rem;
}
.camp-ops-detail__meta,
.camp-ops-detail__muted,
.camp-ops-detail__lead,
.camp-ops-detail__unavailable,
.camp-ops-detail__empty {
  margin: 0.15rem 0 0;
  color: var(--ink-muted);
  font-size: 0.82rem;
}
.camp-ops-detail__actions { display: flex; flex-wrap: wrap; gap: 0.4rem; flex-shrink: 0; }
.camp-ops-detail .btn { border-radius: 2px; min-height: 2rem; }
.camp-ops-detail__blocker {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  color: var(--warn-ink);
  font-size: 0.82rem;
}
.camp-ops-detail .camp-outcomes {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin: 0;
  padding: 0.35rem 0 0.55rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.camp-ops-detail .camp-outcomes__scope {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.camp-ops-detail .camp-outcomes__list { display: flex; flex-wrap: wrap; margin: 0; }
.camp-ops-detail .camp-outcomes__item {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  margin: 0;
  padding: 0 0.9rem;
  border-left: 1px solid var(--line);
}
.camp-ops-detail .camp-outcomes__item:first-child { padding-left: 0; border-left: 0; }
.camp-ops-detail .camp-outcomes__item dt {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.68rem;
  font-weight: 500;
}
.camp-ops-detail .camp-outcomes__item dd {
  margin: 0;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 650;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.camp-ops-detail .camp-outcomes__share {
  display: block;
  margin: 0.1rem 0 0;
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 500;
}
.camp-ops-detail__ops {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.2rem;
  padding: 0.7rem 0 0.15rem;
}
.camp-ops-detail__kicker {
  margin: 0 0 0.25rem;
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 650;
}
.camp-ops-detail__ops-state { margin: 0; color: var(--ink); font-size: 0.95rem; font-weight: 650; }
.camp-ops-detail__agent { display: flex; flex-direction: column; gap: 0.1rem; }
.camp-ops-detail__agent-name { margin: 0; color: var(--ink); font-size: 0.92rem; font-weight: 650; }
.camp-ops-detail__dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #8a8478;
  flex: 0 0 auto;
}
.camp-ops-detail__dot--ok { background: var(--accent); }
.camp-ops-detail__dot--warning { background: var(--warn-ink); }
.camp-ops-detail__dot--danger { background: var(--danger, #9f1239); }
.camp-ops-detail__dot--muted { background: #8a8478; }
.camp-ops-detail__tabs {
  display: flex;
  gap: 0.15rem;
  margin-top: 0.8rem;
  border-bottom: 1px solid var(--line);
}
.camp-ops-detail__tab {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  margin-bottom: -1px;
  padding: 0.45rem 0.7rem;
  color: var(--ink-muted);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}
.camp-ops-detail__tab.is-active { color: var(--accent-deep); border-bottom-color: var(--accent); }
.camp-ops-detail__panel { padding-top: 0.85rem; }
.camp-ops-detail__panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}
.camp-ops-detail__h2 { margin: 0; font-size: 1rem; font-weight: 650; color: var(--ink); }
.camp-ops-detail__search input {
  width: 14rem;
  height: 2rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  padding: 0 0.55rem;
  font: inherit;
  font-size: 0.82rem;
  color: var(--ink);
}
.camp-ops-detail__table-wrap { overflow: auto; margin-top: 0.7rem; }
.camp-ops-detail__table {
  display: table;
  width: 100%;
  border-collapse: collapse;
  border-color: var(--line);
  font-size: 0.82rem;
}
.camp-ops-detail__table thead,
.camp-ops-detail__table tbody,
.camp-ops-detail__table tr {
  border-color: var(--line);
}
.camp-ops-detail__table th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--ink-muted);
  background: var(--bg-warm);
  border-bottom: 1px solid var(--line);
  padding: 0.4rem 0.55rem;
}
.camp-ops-detail__table td {
  vertical-align: top;
  padding: 0.5rem 0.55rem;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
.camp-ops-detail__primary,
.camp-ops-detail__secondary { display: block; }
.camp-ops-detail__secondary { color: var(--ink-muted); font-size: 0.75rem; }
.camp-ops-detail__link {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--accent-deep);
  font: inherit;
  font-size: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.camp-ops-detail select {
  max-width: 8rem;
  margin-right: 0.35rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.75rem;
}
.camp-ops-detail__dl { display: grid; gap: 0.45rem 1.2rem; margin: 0.8rem 0; }
.camp-ops-detail__dl div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 0.6rem; }
.camp-ops-detail__dl dt { margin: 0; color: var(--ink-muted); font-size: 0.78rem; }
.camp-ops-detail__dl dd { margin: 0; color: var(--ink); font-size: 0.84rem; }
.camp-ops-detail__events { list-style: none; margin: 0.6rem 0 0; padding: 0; }
.camp-ops-detail__event { display: flex; gap: 0.45rem; padding: 0.35rem 0; }
.camp-ops-detail__event-title { margin: 0; color: var(--ink); font-size: 0.84rem; }
.camp-ops-detail :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 1280px) {
  .camp-ops-detail .camp-col--hide-activity { display: none; }
}
@media (max-width: 960px) {
  .camp-ops-detail__title-row,
  .camp-ops-detail__panel-head,
  .camp-ops-detail__ops { display: block; }
  .camp-ops-detail__actions { margin-top: 0.55rem; }
  .camp-ops-detail__ops > div + div { margin-top: 0.7rem; }
  .camp-ops-detail__search input { width: 100%; }
}
@media (max-width: 800px) {
  .camp-ops-detail { padding-left: 0.75rem; padding-right: 0.75rem; }
  .camp-ops-detail__dl div { grid-template-columns: 1fr; gap: 0.1rem; }
}

/* Campaign setup — operational three-column layout. */
.camp-ops-setup {
  gap: 0.85rem;
  padding: 0.85rem 1.15rem 1.5rem;
  background: var(--surface);
  color: var(--ink);
  min-width: 0;
}
.camp-ops-setup__layout {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr) 17rem;
  gap: 1.35rem;
  align-items: start;
  min-width: 0;
}
.camp-setup__crumb {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.45rem;
  color: var(--ink-muted);
  font-size: 0.75rem;
}
.camp-setup__crumb button,
.camp-setup__exit,
.camp-ops-setup button[data-connect-google],
.camp-ops-setup button[data-disconnect-mailbox],
.camp-ops-setup button[data-mailbox-test],
.camp-ops-setup button[data-add-agent],
.camp-ops-setup button[data-agent-rename-save],
.camp-ops-setup button[data-agent-pause],
.camp-ops-setup button[data-select-prospect] {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--accent-deep);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.camp-setup__head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.camp-ops-setup .camp-setup__title {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.camp-ops-setup .camp-setup__status { max-width: 40rem; color: var(--ink-muted); }
.camp-ops-setup .camp-setup__steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.camp-ops-setup .camp-setup__step {
  display: block;
  margin: 0;
  padding: 0 0 0.15rem 0.85rem;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
}
.camp-ops-setup .camp-setup__step button {
  display: grid;
  grid-template-columns: 1.35rem minmax(0, 1fr);
  gap: 0.45rem;
  width: 100%;
  margin-left: -0.85rem;
  padding: 0.35rem 0 0.55rem 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.camp-ops-setup .camp-setup__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  margin-left: -1.5rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 0.68rem;
  font-weight: 650;
}
.camp-ops-setup .camp-setup__step.is-current .camp-setup__step-num {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.camp-ops-setup .camp-setup__step.is-done .camp-setup__step-num {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent-deep);
}
.camp-ops-setup .camp-setup__step-copy { display: flex; flex-direction: column; gap: 0.05rem; }
.camp-ops-setup .camp-setup__step-name { font-size: 0.84rem; font-weight: 650; color: var(--ink); }
.camp-ops-setup .camp-setup__step.is-current .camp-setup__step-name { color: var(--accent-deep); }
.camp-ops-setup .camp-setup__step-hint,
.camp-ops-setup .camp-setup__step-state { font-size: 0.72rem; color: var(--ink-muted); font-weight: 500; }
.camp-ops-setup .camp-setup__step.is-future { color: var(--ink-muted); }
.camp-ops-setup .camp-setup__panel {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}
.camp-ops-setup .camp-setup__required,
.camp-ops-setup .camp-setup__sequence {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 0.75rem 0 0;
}
.camp-ops-setup .camp-setup__required-title { color: var(--ink); }
.camp-ops-setup .camp-setup__required.is-attention .camp-setup__required-title { color: var(--warn-ink); }
.camp-ops-setup .camp-setup__required.is-ok .camp-setup__required-title { color: var(--accent-deep); }
.camp-ops-setup .camp-setup__field input,
.camp-ops-setup .camp-setup__field textarea,
.camp-ops-setup .camp-setup__field select {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
}
.camp-ops-setup input[type="radio"],
.camp-ops-setup input[type="checkbox"] {
  accent-color: var(--accent);
}
.camp-ops-setup .camp-setup__list { padding-left: 1rem; }
.camp-ops-setup .camp-setup__aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}
.camp-ops-setup .camp-setup__aside-title {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--ink);
}
.camp-ops-setup .camp-setup__summary { margin: 0; display: grid; gap: 0.45rem; }
.camp-ops-setup .camp-setup__summary div {
  display: grid;
  grid-template-columns: 7.2rem minmax(0, 1fr);
  gap: 0.35rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--line);
}
.camp-ops-setup .camp-setup__summary dt { margin: 0; color: var(--ink-muted); font-size: 0.75rem; }
.camp-ops-setup .camp-setup__summary dd { margin: 0; color: var(--ink); font-size: 0.82rem; }
.camp-ops-setup .camp-setup__checklist { gap: 0.4rem; }
.camp-ops-setup .camp-setup__check-item {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr);
  gap: 0.15rem 0.4rem;
  color: var(--ink);
  background: transparent;
}
.camp-ops-setup .camp-setup__check-word {
  grid-column: 2;
  color: var(--ink-muted);
  font-size: 0.72rem;
}
.camp-ops-setup .camp-setup__check-item.is-ok .camp-setup__check-mark { color: var(--accent-deep); }
.camp-ops-setup .camp-setup__check-item.is-warning .camp-setup__check-mark { color: var(--warn-ink); }
.camp-ops-setup .camp-setup__check-item.is-danger .camp-setup__check-mark { color: var(--danger, #9f1239); }
.camp-ops-setup .camp-setup__check-item.is-muted .camp-setup__check-mark { color: var(--ink-muted); }
.camp-ops-setup .camp-setup__foot { display: flex; gap: 0.45rem; margin-top: 1rem; }
.camp-ops-setup .btn { border-radius: 2px; }
.camp-ops-setup .btn:disabled { color: var(--ink-muted); background: var(--bg-warm); border-color: var(--line); }
.camp-ops-setup :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 1100px) {
  .camp-ops-setup__layout { grid-template-columns: 1fr; }
  .camp-ops-setup .camp-setup__aside { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 0.9rem; }
  .camp-ops-setup .camp-setup__steps { flex-direction: row; flex-wrap: wrap; border: 0; }
  .camp-ops-setup .camp-setup__step { border-left: 0; padding-left: 0; }
}
@media (max-width: 800px) {
  .camp-ops-setup { padding-left: 0.75rem; padding-right: 0.75rem; }
  .camp-setup__head-row { display: block; }
  .camp-setup__exit { margin-top: 0.45rem; }
}

.agent-ops {
  padding: 1.25rem 1.5rem 2rem;
  color: var(--ink);
  background: var(--surface);
  min-height: 100%;
}
.agent-ops h1 { margin: 0; font-size: 1.45rem; font-weight: 650; letter-spacing: -0.02em; }
.agent-ops__lead, .agent-ops__summary, .agent-ops__muted { color: var(--ink-muted); }
.agent-ops__lead { margin: 0.25rem 0 0; font-size: 0.9rem; }
.agent-ops__summary { margin: 0.65rem 0 0; font-size: 0.82rem; }
.agent-ops__head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.agent-ops__create { display: flex; flex-direction: column; align-items: flex-end; gap: 0.45rem; }
.agent-ops__create-form { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: end; }
.agent-ops__create-form label, .agent-ops__block label, .agent-ops__search { display: grid; gap: 0.2rem; color: var(--ink-muted); font-size: 0.75rem; }
.agent-ops input {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.35rem 0.5rem;
  font: inherit;
}
.agent-ops__toolbar { margin: 0.9rem 0; }
.agent-ops__search input { min-width: 16rem; }
.agent-ops__layout { display: block; }
.agent-ops__layout.has-drawer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22rem;
  gap: 0;
  align-items: start;
}
.agent-ops__table-wrap { overflow-x: auto; }
.agent-ops__table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.agent-ops__table th, .agent-ops__table td {
  text-align: left;
  padding: 0.55rem 0.45rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-weight: 450;
}
.agent-ops__table thead th { color: var(--ink-muted); font-size: 0.75rem; font-weight: 550; }
.agent-ops__table tr.is-selected { background: color-mix(in srgb, var(--accent) 7%, #fff); }
.agent-ops__state { display: flex; gap: 0.4rem; align-items: flex-start; margin: 0; }
.agent-ops__state-label, .agent-ops__muted { display: block; }
.agent-ops__dot { width: 0.45rem; height: 0.45rem; border-radius: 50%; margin-top: 0.35rem; background: var(--ink-muted); flex: none; }
.agent-ops__dot--ok { background: var(--accent); }
.agent-ops__dot--warning { background: var(--warn-ink); }
.agent-ops__dot--danger { background: var(--danger, #9f1239); }
.agent-ops__dot--muted { background: var(--ink-muted); }
.agent-ops__link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}
.agent-ops__empty { margin: 1rem 0; color: var(--ink-muted); }
.agent-ops__error { color: var(--danger, #9f1239); }
.agent-ops__drawer {
  background: #fff;
  border-left: 1px solid var(--line);
  padding: 0.9rem 1rem 1.25rem;
}
.agent-ops__drawer-head { display: flex; justify-content: space-between; gap: 0.5rem; align-items: flex-start; }
.agent-ops__drawer h2 { margin: 0 0 0.35rem; font-size: 1.15rem; }
.agent-ops__close {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.agent-ops__facts { margin: 0.8rem 0; display: grid; gap: 0.45rem; }
.agent-ops__facts dt { color: var(--ink-muted); font-size: 0.75rem; }
.agent-ops__facts dd { margin: 0.1rem 0 0; }
.agent-ops__block { padding: 0.7rem 0; border-top: 1px solid var(--line); }
.agent-ops__block h3 { margin: 0; font-size: 0.92rem; font-weight: 600; }
.agent-ops__assign { display: grid; gap: 0.15rem; margin-top: 0.35rem; }
.agent-ops__block--danger { margin-top: 0.4rem; }
.agent-ops__danger {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--danger, #9f1239);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.agent-ops :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 1280px) {
  .agent-ops .agent-col--capacity { display: none; }
}
@media (max-width: 1100px) {
  .agent-ops__layout.has-drawer { display: block; }
  .agent-ops .agent-col--campaign { display: none; }
  .agent-ops__drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(24rem, 100%);
    z-index: 30;
    overflow: auto;
    box-shadow: -8px 0 24px color-mix(in srgb, var(--ink) 8%, transparent);
  }
}
@media (max-width: 800px) {
  .agent-ops { padding-left: 0.75rem; padding-right: 0.75rem; }
  .agent-ops .agent-col--mailbox { display: none; }
  .agent-ops__head { display: block; }
  .agent-ops__create { align-items: flex-start; margin-top: 0.75rem; }
}

.conv-ops {
  padding: 1.25rem 1.5rem 2rem;
  color: var(--ink);
  background: var(--surface);
  min-height: 100%;
  max-width: 46rem;
}
.conv-ops h1 { margin: 0; font-size: 1.45rem; font-weight: 650; letter-spacing: -0.02em; }
.conv-ops__lead, .conv-ops__note { margin: 0.35rem 0 0; color: var(--ink-muted); font-size: 0.9rem; }
.conv-ops__status { margin: 1.25rem 0 0; font-size: 0.95rem; }
.conv-ops__table { width: 100%; margin-top: 1rem; border-collapse: collapse; font-size: 0.9rem; }
.conv-ops__table th, .conv-ops__table td { text-align: left; padding: 0.4rem 0.5rem 0.4rem 0; border-bottom: 1px solid var(--line, #ddd); }
@media (max-width: 800px) {
  .conv-ops { padding-left: 0.75rem; padding-right: 0.75rem; }
}

.thinking-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: color-mix(in srgb, var(--ink) 28%, transparent);
}
.thinking-modal[hidden] { display: none; }
.thinking-modal__dialog {
  width: min(42rem, calc(100vw - 2.5rem));
  min-height: 16rem;
  background: var(--surface-raised);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.45rem 1.75rem 1.35rem;
}
.thinking-modal--stream .thinking-modal__dialog {
  width: min(42rem, calc(100vw - 2.5rem));
  min-width: 0;
}
.thinking-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.thinking-modal__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.thinking-modal__close {
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-size: 1.4rem;
  line-height: 1;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.15rem 0.35rem;
  cursor: pointer;
}
.thinking-modal__close[hidden] { display: none; }
.thinking-modal__cancel {
  flex-shrink: 0;
  margin: 0.1rem 0 0;
  padding: 0.12rem 0.1rem;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  min-height: 0;
  min-width: 0;
  cursor: pointer;
}
.thinking-modal__cancel:hover,
.thinking-modal__cancel:focus-visible {
  color: var(--ink);
  outline: none;
}
.thinking-modal__cancel[hidden] { display: none; }
.thinking-modal__copy {
  margin: 0.45rem 0 0;
  color: var(--ink-muted);
  max-width: 36rem;
}
.thinking-modal__wait {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.95rem 1rem;
  margin-top: 1.25rem;
}
.thinking-modal__wait[hidden] { display: none; }
.thinking-modal__spinner {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  border: 2.5px solid color-mix(in srgb, var(--accent-deep) 22%, var(--line));
  border-top-color: var(--accent-deep);
  animation: thinking-spin 0.85s linear infinite;
}
.thinking-modal--wait .thinking-modal__spinner {
  animation-play-state: running;
}
@keyframes thinking-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .thinking-modal__spinner {
    animation: none;
    border-top-color: color-mix(in srgb, var(--accent-deep) 22%, var(--line));
    background:
      radial-gradient(circle at center, var(--accent-deep) 0 28%, transparent 29%);
  }
}
.thinking-modal__wait-meta {
  min-width: 0;
}
.thinking-modal__status {
  margin: 0;
  color: var(--accent-deep);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.thinking-modal__elapsed {
  margin: 0.3rem 0 0;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
}
.thinking-modal__stream-wrap[hidden] { display: none; }
.thinking-modal__stream-wrap {
  margin-top: 1.35rem;
}
.thinking-modal__label {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.thinking-modal__stream {
  margin: 0;
  max-height: max(14rem, min(28rem, 70vh));
  height: auto;
  min-height: 14rem;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0.95rem 1.05rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-muted);
}
.thinking-modal__error {
  margin: 0.7rem 0 0;
  color: var(--warn-ink);
}
.thinking-modal__dialog .btn { margin-top: 0.75rem; }
.thinking-modal__dialog .btn[hidden],
.thinking-modal__error[hidden] { display: none; }
@media (max-width: 720px) {
  .thinking-modal { padding: 1rem; }
  .thinking-modal__dialog,
  .thinking-modal--stream .thinking-modal__dialog {
    width: calc(100vw - 2rem);
    min-width: 0;
    min-height: 0;
  }
  .thinking-modal__stream {
    min-height: 10rem;
    max-height: max(10rem, min(18rem, 50vh));
  }
}
