:root {
  --bg: #040d12;
  --bg-accent: #183d3d;
  --panel: rgba(24, 61, 61, 0.92);
  --panel-strong: #183d3d;
  --text: #93b1a6;
  --muted: #5c8374;
  --line: rgba(147, 177, 166, 0.16);
  --brand: #93b1a6;
  --brand-strong: #5c8374;
  --gold: #5c8374;
  --rose: #93b1a6;
  --shadow: 0 22px 60px rgba(4, 13, 18, 0.36);
  --radius: 24px;
  --radius-sm: 16px;
  --max: 1240px;
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --ui: "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--ui);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(147, 177, 166, 0.14), transparent 30%),
    radial-gradient(circle at bottom right, rgba(92, 131, 116, 0.18), transparent 28%),
    linear-gradient(180deg, var(--bg-accent) 0%, var(--bg) 62%, var(--bg) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(147, 177, 166, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 177, 166, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.shell {
  width: min(calc(100% - 40px), var(--max));
  margin: 24px auto 48px;
}

.shell-auth {
  width: min(calc(100% - 24px), 520px);
  min-height: calc(100vh - 48px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-layout {
  width: min(calc(100% - 40px), 1440px);
  margin: 24px auto 48px;
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.app-main {
  min-width: 0;
}

.app-sidebar {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(24, 61, 61, 0.94), rgba(4, 13, 18, 0.92)),
    var(--panel);
  box-shadow: 0 18px 48px rgba(4, 13, 18, 0.28);
  overflow: hidden;
}

.sidebar-top,
.sidebar-footer,
.app-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-top {
  justify-content: space-between;
  min-height: 34px;
}

.sidebar-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.sidebar-credit-brand {
  flex: 1 1 auto;
}

.sidebar-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.sidebar-brand-badge {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--brand);
  font-weight: 600;
  flex: 0 0 auto;
  font-size: 0.64rem;
}

.sidebar-brand-copy,
.sidebar-link-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.sidebar-brand-copy small,
.sidebar-link-copy small,
.sidebar-section-title {
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.58rem;
}

.sidebar-brand-copy small {
  letter-spacing: 0.03em;
  text-transform: none;
  font-size: 0.72rem;
}

.sidebar-brand-copy strong,
.sidebar-link-copy strong {
  line-height: 1.15;
}

.sidebar-brand-copy strong {
  font-size: 0.9rem;
}

.sidebar-brand-title {
  display: block;
  white-space: nowrap;
  color: #dbe7e1;
  font-size: 0.9rem;
  line-height: 1.1;
}

.sidebar-link-copy {
  gap: 0;
}

.sidebar-link-copy strong {
  font-size: 0.9rem;
  font-weight: 600;
}

[data-admin-only][hidden] {
  display: none !important;
}

.sidebar-section {
  display: grid;
  gap: 2px;
}

.sidebar-section-title {
  margin: 0;
}

.sidebar-nav {
  display: grid;
  gap: 1px;
}

.sidebar-link {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 7px 8px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  text-decoration: none;
  color: inherit;
  background: transparent;
  position: relative;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.sidebar-link::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 999px;
  background: transparent;
  transition: background 160ms ease;
}

.sidebar-link:hover,
.sidebar-link.active,
.sidebar-link-button:hover {
  background: rgba(147, 177, 166, 0.04);
  color: #c7ddd4;
}

.sidebar-link.active::before,
.sidebar-link-button:hover::before {
  background: rgba(147, 177, 166, 0.72);
}

.sidebar-link-button {
  font: inherit;
  cursor: pointer;
  text-align: left;
  box-shadow: none;
}

.sidebar-toggle {
  width: 22px;
  height: 22px;
  min-width: 22px;
  padding: 0;
  border-radius: 999px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.sidebar-footer {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

[data-app-layout][data-sidebar-state="collapsed"] {
  grid-template-columns: 94px minmax(0, 1fr);
}

[data-app-layout][data-sidebar-state="collapsed"] .app-sidebar {
  padding-inline: 10px;
}

[data-app-layout][data-sidebar-state="collapsed"] .sidebar-section-title,
[data-app-layout][data-sidebar-state="collapsed"] .sidebar-footer .account-copy {
  display: none;
}

[data-app-layout][data-sidebar-state="collapsed"] .sidebar-top,
[data-app-layout][data-sidebar-state="collapsed"] .sidebar-footer {
  justify-content: center;
}

[data-app-layout][data-sidebar-state="collapsed"] .sidebar-link,
[data-app-layout][data-sidebar-state="collapsed"] .sidebar-link-button {
  justify-content: flex-start;
  padding-inline: 6px;
}

[data-app-layout][data-sidebar-state="collapsed"] .sidebar-brand-copy {
  display: grid;
}

[data-app-layout][data-sidebar-state="collapsed"] .sidebar-brand-copy small {
  display: none;
}

[data-app-layout][data-sidebar-state="collapsed"] .sidebar-brand-copy strong {
  font-size: 0.8rem;
}

[data-app-layout][data-sidebar-state="collapsed"] .sidebar-link-copy strong {
  font-size: 0.74rem;
  line-height: 1.18;
}

[data-sidebar-toggle-label] {
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 700;
}

.hero {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(24, 61, 61, 0.96), rgba(4, 13, 18, 0.92)),
    var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(147, 177, 166, 0.12), transparent 66%);
  top: -80px;
  right: -80px;
}

.brand-row,
.nav-row,
.scope-row,
.results-grid,
.summary-grid {
  display: grid;
  gap: 18px;
}

.brand-row {
  grid-template-columns: 1.3fr 1fr;
  align-items: start;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  line-height: 0.98;
}

h1 {
  font-size: clamp(3rem, 8vw, 5.8rem);
  max-width: 10ch;
}

.lede {
  margin: 18px 0 0;
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.6;
  font-size: 1.05rem;
}

.hero-card,
.panel,
.result-card,
.archive-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(12px);
}

.hero-card {
  padding: 22px;
  align-self: stretch;
}

.hero-card h3 {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.stat:first-of-type {
  border-top: 0;
}

.stat strong {
  font-size: 1.9rem;
  font-family: var(--display);
}

.stat span {
  color: var(--muted);
  max-width: 18ch;
  text-align: right;
}

.nav-row {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 24px;
}

.nav-link {
  text-decoration: none;
  color: inherit;
  padding: 20px 18px;
  border-radius: var(--radius-sm);
  background: rgba(24, 61, 61, 0.68);
  border: 1px solid var(--line);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.nav-link:hover,
.nav-link.active {
  transform: translateY(-2px);
  border-color: rgba(147, 177, 166, 0.28);
  background: rgba(24, 61, 61, 0.96);
}

.nav-link small,
.muted {
  color: var(--muted);
}

.nav-link strong {
  display: block;
  margin-top: 6px;
  font-size: 1.1rem;
}

.scope-row {
  grid-template-columns: 1.3fr 0.7fr;
  margin-top: 24px;
}

.panel {
  padding: 24px;
  box-shadow: var(--shadow);
}

.panel h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

label {
  display: block;
  font-size: 0.95rem;
  margin: 18px 0 10px;
  font-weight: 600;
}

textarea,
select,
input {
  width: 100%;
  border: 1px solid rgba(147, 177, 166, 0.2);
  background: rgba(4, 13, 18, 0.52);
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--text);
  font: inherit;
}

textarea {
  min-height: 180px;
  resize: vertical;
}

.actions,
.card-actions,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.actions {
  margin-top: 18px;
}

button,
.button-link {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    opacity 160ms ease;
}

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

.primary {
  color: var(--bg);
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  box-shadow: 0 12px 24px rgba(4, 13, 18, 0.3);
}

.secondary {
  color: var(--text);
  background: rgba(24, 61, 61, 0.9);
  border: 1px solid var(--line);
}

.ghost {
  color: var(--muted);
  background: rgba(24, 61, 61, 0.4);
  border: 1px solid transparent;
}

.summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.summary-tile {
  padding: 18px;
  border-radius: 18px;
  background: rgba(4, 13, 18, 0.4);
  border: 1px solid var(--line);
}

.summary-tile strong {
  display: block;
  font-size: 2rem;
  font-family: var(--display);
}

.summary-tile span {
  color: var(--muted);
}

.results-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.result-card,
.archive-card {
  padding: 22px;
  box-shadow: var(--shadow);
}

.result-card header,
.archive-card header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(147, 177, 166, 0.12);
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.metric-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.metric-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.metric-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.metric-list strong {
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.result-card p,
.archive-card p,
.note {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.archive-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.empty {
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed rgba(147, 177, 166, 0.22);
  color: var(--muted);
  background: rgba(4, 13, 18, 0.34);
}

.badge-gold {
  background: rgba(147, 177, 166, 0.12);
  color: var(--brand);
}

.badge-rose {
  background: rgba(92, 131, 116, 0.18);
  color: var(--brand);
}

.fade-in {
  animation: fadeUp 420ms ease both;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 10px 4px 4px;
}

.brand-mark {
  display: grid;
  gap: 6px;
  text-decoration: none;
  color: inherit;
}

.brand-mark span {
  color: var(--brand);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}

.brand-mark strong {
  font-size: 1.35rem;
  font-family: var(--display);
  line-height: 1.1;
}

.brand-mark.compact strong {
  font-size: 1.05rem;
}

.brand-mark.centered {
  justify-items: center;
  text-align: center;
}

.header-right,
.header-nav,
.button-row,
.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.header-right {
  align-items: center;
  justify-content: flex-end;
}

.header-nav a {
  text-decoration: none;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(24, 61, 61, 0.52);
}

.header-nav a:hover {
  border-color: rgba(147, 177, 166, 0.2);
  background: rgba(24, 61, 61, 0.92);
}

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

.header-auth-actions .button-link,
.header-auth-actions button {
  min-width: 104px;
}

.hero-home {
  padding: 32px;
  margin-top: 12px;
}

.home-grid,
.access-grid,
.feature-grid,
.dashboard-grid,
.signal-grid,
.workflow-grid,
.audience-grid,
.kpi-grid {
  display: grid;
  gap: 18px;
}

.home-grid {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
  position: relative;
  z-index: 1;
}

.access-grid {
  grid-template-columns: 0.9fr 1.1fr;
}

.hero-home h2,
.section h2,
.cta-band h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.02;
}

.button-row {
  margin-top: 24px;
}

.button-row-compact {
  margin-top: 18px;
}

.button-row-compact button:disabled,
.button-row-compact .button-link:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: saturate(0.7);
}

.button-row-compact button[data-busy="true"] {
  opacity: 1;
  cursor: progress;
}

.hero-highlights {
  margin-top: 18px;
}

.hero-panel,
.section,
.feature-card,
.signal-card,
.workflow-step,
.audience-card,
.cta-band,
.auth-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.hero-panel,
.feature-card,
.signal-card,
.workflow-step,
.audience-card,
.auth-shell {
  padding: 24px;
}

.section {
  margin-top: 24px;
  padding: 24px;
}

.section-header {
  max-width: none;
  width: 100%;
  margin-bottom: 22px;
}

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

.billing-checkout-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.58fr);
  align-items: start;
}

.billing-checkout-grid-single {
  grid-template-columns: minmax(280px, 0.42fr);
}

.billing-plan-card,
.billing-credit-card,
.billing-embed-card {
  min-height: 100%;
}

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

.billing-embed-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.billing-embed-head .button-link {
  margin-top: 4px;
}

.billing-embed-frame {
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(147, 177, 166, 0.14);
  background: rgba(4, 13, 18, 0.28);
  overflow: hidden;
}

.billing-fallback-stack {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.billing-page-stack {
  display: grid;
  gap: 12px;
}

.billing-title-panel {
  padding: 14px 18px;
}

.billing-title-copy {
  display: grid;
  gap: 6px;
}

.billing-page-title {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1;
  max-width: none;
}

.billing-pricing-panel {
  padding: 12px;
}

.billing-pricing-shell {
  display: grid;
  gap: 10px;
}

.billing-pricing-panel .billing-embed-frame {
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
  overflow: hidden;
}

.billing-pricing-panel .billing-fallback-stack {
  justify-items: center;
}

.browse-mode-banner {
  margin-bottom: 10px;
}

.froggy-page-stack {
  display: grid;
  gap: 14px;
}

.froggy-hero {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 0.58fr) minmax(280px, 0.42fr);
  align-items: start;
  background:
    radial-gradient(circle at top right, rgba(147, 177, 166, 0.12), transparent 34%),
    rgba(24, 61, 61, 0.82);
}

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

.froggy-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 0.98;
  max-width: 12ch;
}

.froggy-copy {
  margin: 0;
  max-width: 48ch;
  color: var(--muted);
  line-height: 1.5;
}

.froggy-outcome-strip {
  display: grid;
  gap: 10px;
}

.froggy-outcome-card {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(147, 177, 166, 0.14);
  background: rgba(4, 13, 18, 0.24);
}

.froggy-outcome-card small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
}

.froggy-outcome-card strong {
  color: #dbe7e1;
  font-size: 1rem;
  line-height: 1.15;
}

.froggy-map-panel {
  display: grid;
  gap: 12px;
}

.froggy-flowchart {
  display: grid;
  gap: 12px;
}

.froggy-flow-stage {
  display: grid;
  gap: 12px;
  align-items: center;
}

.froggy-flow-stage-top {
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1.15fr) 34px minmax(0, 1.15fr);
}

.froggy-flow-stage-center {
  justify-items: center;
}

.froggy-flow-stage-signals {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.froggy-flow-stage-merge {
  justify-items: center;
}

.froggy-flow-stage-bottom {
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
}

.froggy-node {
  display: grid;
  gap: 6px;
  min-height: 100%;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(147, 177, 166, 0.14);
  background: rgba(4, 13, 18, 0.2);
}

.froggy-node small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.66rem;
  font-weight: 700;
}

.froggy-node strong {
  color: #dbe7e1;
  font-size: 1.02rem;
  line-height: 1.12;
}

.froggy-node span {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.94rem;
}

.froggy-node-start {
  background:
    radial-gradient(circle at top left, rgba(147, 177, 166, 0.22), transparent 42%),
    rgba(4, 13, 18, 0.28);
}

.froggy-node-process,
.froggy-node-signal,
.froggy-node-merge {
  background: rgba(4, 13, 18, 0.22);
}

.froggy-node-link {
  margin-top: 4px;
  justify-self: start;
  color: #dbe7e1;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(219, 231, 225, 0.24);
}

.froggy-node-link:hover {
  border-bottom-color: rgba(219, 231, 225, 0.72);
}

.froggy-arrow {
  position: relative;
  background: rgba(147, 177, 166, 0.28);
}

.froggy-arrow-h {
  height: 2px;
}

.froggy-arrow-v {
  width: 2px;
  min-height: 26px;
}

.froggy-arrow::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-top: 2px solid rgba(147, 177, 166, 0.38);
  border-right: 2px solid rgba(147, 177, 166, 0.38);
}

.froggy-arrow-h::after {
  right: -1px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.froggy-arrow-v::after {
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%) rotate(135deg);
}

.froggy-decision {
  width: 180px;
  height: 180px;
  transform: rotate(45deg);
  border-radius: 24px;
  border: 1px solid rgba(147, 177, 166, 0.16);
  background:
    linear-gradient(180deg, rgba(147, 177, 166, 0.1), rgba(4, 13, 18, 0.24)),
    rgba(24, 61, 61, 0.88);
  display: grid;
  place-items: center;
}

.froggy-decision-copy {
  width: 70%;
  transform: rotate(-45deg);
  display: grid;
  gap: 4px;
  justify-items: center;
  text-align: center;
}

.froggy-decision-copy strong {
  color: #dbe7e1;
  font-size: 0.96rem;
  line-height: 1.2;
}

.froggy-node-merge {
  width: min(100%, 620px);
  text-align: center;
  justify-items: center;
}

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

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

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

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

.kpi-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.feature-card,
.signal-card,
.workflow-step,
.audience-card {
  min-height: 100%;
}

.feature-card p:not(.plan-price),
.signal-card p,
.workflow-step p,
.audience-card p {
  color: var(--muted);
  line-height: 1.55;
}

.feature-card-highlight {
  position: relative;
  background:
    linear-gradient(180deg, rgba(147, 177, 166, 0.08), rgba(24, 61, 61, 0.92)),
    var(--panel);
}

.feature-card h3,
.signal-card h3,
.workflow-step h3,
.audience-card h3 {
  margin: 14px 0 10px;
  font-size: 1.55rem;
}

.plan-price {
  margin: 18px 0 10px;
  font-size: clamp(2.5rem, 5vw, 3.6rem);
  font-family: var(--display);
  line-height: 0.95;
  color: var(--brand);
}

.plan-price span {
  margin-left: 8px;
  font-size: 1rem;
  font-family: var(--ui);
  color: var(--muted);
}

.portal-workflow {
  margin-top: 18px;
}

.portal-note {
  margin-top: 12px;
}

.disabled-link {
  opacity: 0.55;
  pointer-events: none;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
}

.secure-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(147, 177, 166, 0.1);
  color: var(--muted);
  line-height: 1.55;
}

.auth-shell {
  display: grid;
  gap: 18px;
  align-content: start;
}

.auth-landing {
  width: 100%;
  padding: 28px;
}

.auth-header {
  display: grid;
  gap: 8px;
}

.auth-header-centered {
  text-align: center;
}

.auth-header h3,
.signed-in-card h3 {
  font-size: 2rem;
}

.auth-mode-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-mode {
  border: 1px solid var(--line);
  background: rgba(24, 61, 61, 0.74);
  color: var(--text);
  box-shadow: none;
}

.auth-mode.active {
  color: var(--bg);
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  box-shadow: 0 12px 24px rgba(4, 13, 18, 0.3);
}

.form-stack {
  display: grid;
  gap: 0;
}

.form-stack button {
  margin-top: 18px;
}

.auth-google-shell {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.auth-divider {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}

.auth-google-button {
  display: flex;
  justify-content: center;
}

.status-message {
  padding: 14px 16px;
  border-radius: 16px;
  line-height: 1.5;
  border: 1px solid rgba(147, 177, 166, 0.18);
}

.status-message.info,
.status-message.warning {
  background: rgba(147, 177, 166, 0.12);
  color: var(--brand);
}

.status-message.error {
  background: rgba(92, 131, 116, 0.2);
  color: var(--brand);
}

.status-message.is-success {
  background: rgba(147, 177, 166, 0.12);
  color: #c7ddd4;
}

.signed-in-card {
  display: grid;
  gap: 14px;
}

.app-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 2px 6px;
  margin-bottom: 6px;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.app-topbar-left {
  min-width: 0;
}

.app-topbar h2 {
  font-size: 1.08rem;
}

.account-bar,
.account-copy {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.account-copy {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.account-copy strong {
  font-size: 0.95rem;
}

.account-copy span {
  color: var(--muted);
  font-size: 0.92rem;
}

.account-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(147, 177, 166, 0.12);
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cta-band {
  margin-top: 24px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}

.footer {
  padding: 24px 4px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
}

.footer a {
  color: var(--brand);
}

.simple-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.simple-footer-nav a {
  text-decoration: none;
}

.page-header-shell {
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(24, 61, 61, 0.82);
  box-shadow: 0 16px 40px rgba(4, 13, 18, 0.24);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px 18px;
}

.signal-page-header {
  margin-bottom: 8px;
  padding: 10px 12px;
  gap: 8px 16px;
  align-items: center;
}

.page-header-copy {
  flex: 0 1 320px;
  min-width: 0;
  display: grid;
  gap: 3px;
}

.page-title {
  font-size: clamp(1.95rem, 3vw, 2.8rem);
  line-height: 1;
  max-width: none;
}

.signal-page-header .page-header-copy {
  flex-basis: 180px;
  display: grid;
  gap: 2px;
}

.signal-page-header .page-title {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1;
  max-width: none;
}

.signal-page-header .action-bar {
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  width: auto;
  justify-self: end;
}

.signal-page-header .field-inline span {
  font-size: 0.6rem;
}

.signal-page-header .field-inline select,
.signal-page-header .action-bar button {
  padding-top: 8px;
  padding-bottom: 8px;
}

.signal-page-header .field-inline {
  min-width: 190px;
}

.signal-page-header .field-inline-grow {
  min-width: 260px;
}

.signal-page-header .field-inline select {
  padding-left: 12px;
  padding-right: 12px;
}

.page-purpose,
.inline-help,
.inline-copy,
.result-subtitle,
.result-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.page-purpose {
  max-width: 34ch;
  line-height: 1.4;
}

.action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
  justify-content: flex-end;
}

.page-header-shell > .action-bar {
  flex: 1 1 620px;
  min-width: min(100%, 320px);
  width: 100%;
}

.action-bar .field-inline-grow {
  flex: 2 1 260px;
}

.action-bar .field-inline {
  flex: 1 1 160px;
  min-width: 140px;
}

.action-bar-tight {
  margin-top: 4px;
}

.action-bar-tight button,
.action-bar-tight .button-link {
  padding: 10px 14px;
}

.field-inline,
.field-compact,
.toggle-field {
  margin: 0;
  display: grid;
  gap: 6px;
}

.field-inline {
  min-width: 152px;
}

.field-inline-grow {
  min-width: 220px;
}

.field-inline > span,
.field-compact > span,
.toggle-field span,
.inline-label {
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 700;
}

.workspace-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: start;
}

.client-page-shell,
.client-company-panel {
  min-width: 0;
}

.search-page-shell {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

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

.signal-input-panel,
.signal-bottom-shell {
  display: grid;
  gap: 8px;
}

.signal-input-panel-full {
  gap: 8px;
}

.signal-input-core,
.signal-input-panel,
.signal-bottom-shell {
  display: grid;
  gap: 8px;
}

.signal-input-panel-dense {
  padding: 12px;
}

.company-signals-input-core {
  display: grid;
  gap: 10px;
}

.field-compact-minimal {
  gap: 0;
}

.company-signals-entry-row {
  display: grid;
  gap: 8px;
  align-items: stretch;
}

.company-signals-entry-row-primary {
  grid-template-columns: minmax(180px, 0.9fr) minmax(220px, 1.1fr) minmax(220px, 1fr) minmax(180px, 0.7fr) minmax(150px, 0.6fr);
}

.company-signals-entry-row .field-compact input,
.company-signals-entry-row .field-compact select,
.company-signals-search-button {
  min-height: 54px;
}

.company-signals-search-button {
  width: 100%;
  align-self: stretch;
}

.company-signals-table-panel {
  padding-top: 10px;
}

.company-signals-diagnostics-panel {
  padding-top: 10px;
  padding-bottom: 10px;
}

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

.company-signals-diagnostic-item {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.company-signals-diagnostic-item span {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.company-signals-diagnostic-item strong {
  min-width: 0;
  font-size: 0.98rem;
  line-height: 1.25;
  word-break: break-word;
}

.company-signals-table .table-row.is-selected td {
  background: rgba(129, 161, 145, 0.08);
}

.company-signals-sort-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  padding: 0;
  margin: 0;
  cursor: pointer;
  transition: color 140ms ease;
}

.company-signals-sort-button:hover,
.company-signals-sort-button:focus-visible {
  color: var(--text);
  outline: none;
}

.company-signals-sort-button.is-active {
  color: var(--accent);
}

.company-signals-table td:first-child {
  font-weight: 700;
}

.company-signals-table td {
  white-space: nowrap;
}

.company-signals-table td:first-child,
.company-signals-table td:nth-child(4),
.company-signals-table td:nth-child(5),
.company-signals-table td:nth-child(6) {
  white-space: normal;
}

.company-signals-region {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  vertical-align: top;
}

.company-signals-region.is-suspicious {
  color: rgba(255, 122, 122, 0.9);
}

.company-signals-count-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.company-signals-count-link:hover,
.company-signals-count-link:focus-visible {
  color: var(--text);
  outline: none;
}

.search-service-option {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 6px 4px;
}

.search-service-option input {
  margin-top: 2px;
}

.search-service-option-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.search-service-option-copy strong {
  font-size: 0.88rem;
  line-height: 1.25;
}

.search-service-option-copy small {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.search-page-header-compact .action-bar button {
  white-space: nowrap;
}

.search-input-panel-compact .signal-input-core {
  gap: 6px;
}

.search-input-panel-compact {
  gap: 6px;
}

.search-service-name-field input {
  width: 100%;
}

.signal-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.signal-draft-label {
  display: none;
}

.signal-meta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
}

.signal-step-row {
  display: grid;
  gap: 8px;
}

.signal-step-row-primary {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.signal-search-field {
  margin: 0;
  display: grid;
  gap: 4px;
}

.signal-search-field-wide {
  min-width: 0;
}

.signal-search-field textarea {
  min-height: 132px;
  padding: 12px;
  border-radius: 14px;
  resize: vertical;
  line-height: 1.45;
}

.signal-example-button {
  min-height: 40px;
  align-self: center;
  white-space: nowrap;
}

.signal-search-cta {
  background: linear-gradient(135deg, #dbe7a4, #bcd98d);
  color: #10201f;
  border: 1px solid rgba(219, 231, 164, 0.5);
  box-shadow: 0 10px 22px rgba(188, 217, 141, 0.2);
  font-weight: 700;
}

.signal-search-cta:hover {
  background: linear-gradient(135deg, #e6efb9, #c9e4a0);
}

.signal-service-grid {
  margin-bottom: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.signal-service-grid-single {
  grid-template-columns: minmax(0, 1fr);
}

.signal-description-field textarea {
  min-height: 108px;
  padding: 10px 12px;
}

.signal-filter-row-dense {
  grid-template-columns: minmax(150px, 1.1fr) repeat(2, minmax(110px, 0.82fr)) minmax(116px, 0.76fr);
  gap: 8px;
}

.search-filter-row-dense {
  grid-template-columns: minmax(160px, 1.15fr) repeat(3, minmax(112px, 0.72fr));
}

.search-service-grid {
  margin-bottom: 0;
}

.search-description-field textarea {
  min-height: 78px;
  padding: 10px 12px;
}

.search-inline-support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.search-inline-support .inline-help {
  flex: 1 1 auto;
}

.search-input-panel-compact .compact-form-grid,
.search-input-panel-compact .filter-row {
  gap: 8px;
}

.search-input-panel-compact .field-anchor textarea {
  min-height: 92px;
}

.signal-filter-row-dense .toggle-field {
  padding: 8px 12px;
}

.signal-bottom-shell-compact {
  padding-top: 10px;
  padding-bottom: 10px;
}

.signal-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.signal-table-run-meta {
  flex: 1 1 auto;
}

.signal-table-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.signal-table-search {
  width: min(160px, 100%);
  flex: 0 0 auto;
}

.signal-export-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.signal-export-button {
  min-width: 58px;
  padding: 8px 12px;
}

.signal-export-button:disabled {
  opacity: 0.42;
  cursor: default;
}

.signal-export-button:disabled:hover {
  transform: none;
}

.signal-table-shell {
  margin-top: 2px;
}

.signal-load-more-row td {
  padding-top: 12px;
  border-bottom: 0;
}

.signal-load-more-button {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--brand);
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  box-shadow: none;
  justify-content: flex-start;
}

.signal-load-more-button:hover {
  transform: none;
  color: #c7ddd4;
}

.signal-bottom-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.signal-table-placeholder {
  margin: 0;
  color: var(--muted);
}

.signal-table-placeholder-inline {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.86rem;
  line-height: 1.35;
}

.workspace-main,
.workspace-results,
.search-editor-stack,
.search-results-stack,
.stack-lg,
.stack-md,
.stack-sm,
.stack-xs,
.support-stack {
  display: grid;
}

.workspace-main,
.workspace-results,
.search-editor-stack,
.search-results-stack,
.stack-lg {
  gap: 12px;
}

.stack-md {
  gap: 10px;
}

.stack-sm,
.support-stack {
  gap: 8px;
}

.stack-xs {
  gap: 6px;
}

.panel-compact {
  padding: 14px;
  border-radius: 22px;
}

.section-header.section-header-tight {
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: minmax(220px, max-content) minmax(0, 1fr);
  gap: 6px 18px;
  align-items: start;
  width: 100%;
}

.section-header.section-header-tight > :first-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.section-header.section-header-tight h2 {
  font-size: clamp(1.55rem, 2.4vw, 2.3rem);
  line-height: 0.96;
  text-wrap: balance;
}

.section-header.section-header-tight .inline-help,
.section-header.section-header-tight .inline-copy,
.section-header.section-header-tight .result-copy,
.section-header.section-header-tight .result-subtitle {
  max-width: none;
  align-self: center;
  justify-self: start;
  line-height: 1.35;
}

.compact-form-grid,
.support-grid,
.filter-row {
  display: grid;
  gap: 10px;
}

.compact-form-grid {
  grid-template-columns: minmax(160px, 0.42fr) minmax(0, 0.58fr);
  margin-bottom: 6px;
}

.field-anchor textarea {
  min-height: 86px;
}

.guided-step {
  display: grid;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(147, 177, 166, 0.1);
}

.guided-step:last-of-type {
  padding-bottom: 4px;
}

.guided-step-copy {
  display: grid;
  gap: 3px;
}

.guided-step-copy h3 {
  font-size: 1.02rem;
  line-height: 1.05;
}

.filter-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
}

.toggle-field {
  min-height: 100%;
  padding: 9px 12px;
  border: 1px solid rgba(147, 177, 166, 0.2);
  background: rgba(4, 13, 18, 0.52);
  border-radius: 16px;
}

.toggle-field input {
  width: auto;
  min-height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  appearance: auto;
  accent-color: var(--brand);
  justify-self: start;
}

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

.metric-strip-tight {
  margin-top: 2px;
}

.prospect-workspace {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 0.92fr) minmax(290px, 0.88fr);
  align-items: start;
}

.lead-card-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.lead-card-shell .prospect-row {
  min-width: 0;
}

.prospect-list-panel {
  min-width: 0;
}

.prospect-list-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.prospect-list {
  display: grid;
  gap: 8px;
  max-height: 640px;
  overflow: auto;
  padding-right: 4px;
}

.prospect-row {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(147, 177, 166, 0.14);
  border-radius: 16px;
  background: rgba(4, 13, 18, 0.2);
  box-shadow: none;
  text-align: left;
  color: var(--text);
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.prospect-row:hover,
.prospect-row.active {
  background: rgba(147, 177, 166, 0.08);
  border-color: rgba(147, 177, 166, 0.26);
}

.prospect-rank {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.prospect-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.prospect-main strong {
  font-size: 1rem;
  line-height: 1.2;
  color: #dbe7e1;
}

.prospect-subline {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prospect-subline-quiet {
  font-size: 0.8rem;
  opacity: 0.9;
}

.prospect-meta {
  display: grid;
  gap: 4px;
  justify-items: end;
}

.mini-score,
.mini-stat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  line-height: 1;
}

.mini-score {
  background: rgba(147, 177, 166, 0.16);
  color: var(--brand);
  font-weight: 700;
}

.mini-stat {
  background: rgba(147, 177, 166, 0.06);
  color: var(--muted);
}

.lead-source-action {
  align-self: center;
  min-width: 72px;
  text-align: center;
  text-decoration: none;
}

.lead-source-action:hover,
.lead-source-action:focus-visible {
  border-color: rgba(147, 177, 166, 0.26);
  background: rgba(147, 177, 166, 0.14);
  color: #dbe7e1;
}

.prospect-detail-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(4, 13, 18, 0.22);
  padding: 16px;
  display: grid;
  gap: 12px;
}

.metric-card {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(4, 13, 18, 0.34);
  display: grid;
  gap: 4px;
}

.metric-card small {
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 700;
}

.metric-card strong {
  font-size: 1.5rem;
  font-family: var(--display);
  line-height: 0.94;
}

.metric-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.empty-state {
  padding: 22px 20px;
  border: 1px dashed rgba(147, 177, 166, 0.24);
  border-radius: 18px;
  background: rgba(4, 13, 18, 0.22);
  display: grid;
  gap: 10px;
}

.empty-state h3 {
  font-size: 1.45rem;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

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

.quiet-details {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(4, 13, 18, 0.26);
  padding: 10px 14px;
}

.quiet-details summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}

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

.quiet-details[open] {
  padding-bottom: 14px;
}

.service-tile-panel {
  gap: 10px;
}

.service-tile-head {
  margin-bottom: 2px;
}

.service-tile-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: stretch;
}

.service-tile {
  width: 100%;
  min-height: 168px;
  height: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(147, 177, 166, 0.14);
  border-radius: 16px;
  background: rgba(4, 13, 18, 0.2);
  box-shadow: none;
  text-align: left;
  color: var(--text);
  display: grid;
  gap: 5px;
  align-items: start;
  align-content: start;
  grid-template-rows: auto auto 1fr;
}

.service-tile:hover,
.service-tile.active {
  background: rgba(147, 177, 166, 0.08);
  border-color: rgba(147, 177, 166, 0.26);
}

.service-tile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.service-tile-head strong {
  display: -webkit-box;
  font-size: 0.96rem;
  line-height: 1.18;
  color: #dbe7e1;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.service-tile-meta,
.service-tile-copy,
.service-tile-empty {
  margin: 0;
  color: var(--muted);
}

.service-tile-meta {
  display: -webkit-box;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.service-tile-copy {
  display: -webkit-box;
  font-size: 0.82rem;
  line-height: 1.35;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.client-tile-grid {
  align-items: start;
}

.service-tile-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(147, 177, 166, 0.12);
  color: #dbe7e1;
  font-size: 0.74rem;
  line-height: 1;
  font-weight: 700;
  flex: 0 0 auto;
}

.client-drawer-shell {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  pointer-events: none;
}

.client-drawer-shell[hidden] {
  display: none !important;
}

.client-drawer-shell[data-open="true"] {
  pointer-events: auto;
}

.client-drawer-backdrop {
  border: 0;
  border-radius: 0;
  background: rgba(4, 13, 18, 0.52);
  box-shadow: none;
  width: 100%;
  min-height: 100vh;
  padding: 0;
}

.client-drawer-panel {
  min-width: 0;
  height: 100vh;
  padding: 18px 18px 18px 0;
}

.client-profile-drawer-panel {
  height: 100%;
  overflow-y: auto;
  gap: 12px;
  border-radius: 24px 0 0 24px;
  border-right: 0;
  box-shadow: 0 24px 60px rgba(4, 13, 18, 0.42);
}

.client-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.client-drawer-close {
  min-height: 34px;
  padding: 8px 14px;
  white-space: nowrap;
}

.service-tile-empty {
  padding: 4px 0;
  font-size: 0.88rem;
}

.quiet-details[open] summary {
  margin-bottom: 10px;
}

.table-shell {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.data-table th,
.data-table td {
  padding: 11px 10px;
  border-bottom: 1px solid rgba(147, 177, 166, 0.12);
  vertical-align: top;
  text-align: left;
}

.data-table th {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.table-group-row td {
  padding-top: 18px;
  color: var(--brand);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
  background: transparent;
}

.table-row {
  cursor: pointer;
}

.table-row:hover {
  background: rgba(147, 177, 166, 0.03);
}

.table-primary {
  display: grid;
  gap: 4px;
}

.table-primary strong {
  font-size: 1rem;
}

.table-primary span {
  color: var(--muted);
  line-height: 1.4;
}

.table-primary-tight {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.table-primary-tight strong {
  font-size: 0.92rem;
  line-height: 1.15;
}

.table-primary-tight span {
  font-size: 0.8rem;
  line-height: 1.25;
}

.portal-master-table {
  table-layout: fixed;
}

.portal-master-table th:nth-child(1),
.portal-master-table td:nth-child(1) {
  width: 28%;
}

.portal-master-table th:nth-child(2),
.portal-master-table td:nth-child(2) {
  width: 19%;
}

.portal-master-table th:nth-child(3),
.portal-master-table td:nth-child(3) {
  width: 7%;
  white-space: nowrap;
}

.portal-master-table th:nth-child(4),
.portal-master-table td:nth-child(4) {
  width: 24%;
}

.portal-master-table th:nth-child(5),
.portal-master-table td:nth-child(5) {
  width: 10%;
}

.portal-master-table th:nth-child(6),
.portal-master-table td:nth-child(6) {
  width: 8%;
}

.portal-master-table th:nth-child(7),
.portal-master-table td:nth-child(7) {
  width: 4%;
  white-space: nowrap;
}

.portal-master-cell strong,
.portal-master-cell span,
.portal-master-text {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
}

.portal-master-cell strong {
  -webkit-line-clamp: 2;
}

.portal-master-cell span,
.portal-master-text {
  -webkit-line-clamp: 2;
}

.portal-master-text {
  font-size: 0.84rem;
  line-height: 1.24;
  color: var(--text);
}

.portal-master-source {
  color: var(--muted);
}

.portal-master-date {
  white-space: nowrap;
  display: block;
}

.table-action {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(24, 61, 61, 0.72);
  color: var(--text);
  box-shadow: none;
}

.table-action-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.table-link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.table-link:hover {
  color: #c7ddd4;
  text-decoration: underline;
}

.table-link-muted {
  color: var(--muted);
  font-weight: 500;
}

.portal-master-table th:last-child,
.portal-master-table td:last-child {
  white-space: nowrap;
}

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

.chip,
.chip-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(147, 177, 166, 0.14);
  background: rgba(147, 177, 166, 0.08);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 600;
}

.chip-muted {
  color: var(--muted);
}

.chip-button {
  cursor: pointer;
  box-shadow: none;
}

.chip-button span {
  color: var(--muted);
}

.chip-button.active,
.chip-button:hover {
  background: rgba(147, 177, 166, 0.14);
  color: #c7ddd4;
}

.test-page-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  align-items: start;
}

.test-variant-panel {
  display: grid;
  gap: 12px;
  width: 100%;
}

.test-table-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.test-search-field {
  width: min(180px, 100%);
}

.test-search-field input {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(4, 13, 18, 0.36);
  min-height: 0;
}

.users-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.users-toolbar-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.users-table td,
.users-table th {
  white-space: nowrap;
}

.sources-panel {
  display: grid;
  gap: 12px;
}

.sources-import-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 12px;
  align-items: start;
}

.sources-import-stack,
.sources-help-stack {
  display: grid;
  gap: 10px;
}

.sources-help-stack {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(4, 13, 18, 0.2);
}

.sources-help-stack .inline-help {
  font-size: 0.8rem;
  line-height: 1.45;
}

.sources-panel textarea {
  min-height: 180px;
  padding: 10px 12px;
}

.sources-table td,
.sources-table th {
  white-space: nowrap;
}

.sources-table td:nth-child(3) {
  min-width: 220px;
  white-space: normal;
}

.sources-table td:nth-child(4) {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.test-table-dense {
  width: 100%;
}

.test-table-dense th,
.test-table-dense td {
  padding: 8px 8px;
  font-size: 0.82rem;
}

.test-table-dense td:last-child {
  font-weight: 700;
}

.test-sort-button {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  justify-content: flex-start;
  box-shadow: none;
}

.test-sort-button:hover {
  transform: none;
  color: #c7ddd4;
}

.test-sort-button[data-sort-state="asc"],
.test-sort-button[data-sort-state="desc"] {
  color: #c7ddd4;
}

.inline-status {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(147, 177, 166, 0.1);
  color: var(--brand);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.result-item,
.client-rank-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(4, 13, 18, 0.24);
  display: grid;
  gap: 10px;
}

.result-heading-row {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: start;
}

.result-heading-row h3 {
  font-size: 1.4rem;
}

.score-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(147, 177, 166, 0.14);
  color: var(--brand);
  font-weight: 700;
}

.signal-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(147, 177, 166, 0.1);
}

.signal-row-link {
  text-decoration: none;
  color: inherit;
  border-radius: 14px;
  transition: background 140ms ease, border-color 140ms ease;
}

.signal-row-link:hover,
.signal-row-link:focus-visible {
  background: rgba(147, 177, 166, 0.08);
}

.signal-source-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  padding: 4px 8px;
  border: 1px solid rgba(147, 177, 166, 0.18);
  border-radius: 999px;
  background: rgba(147, 177, 166, 0.08);
  color: #dbe7e1;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.signal-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.signal-row strong {
  display: block;
  margin-bottom: 4px;
  color: #dbe7e1;
}

.signal-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.signal-row-muted {
  opacity: 0.92;
}

.signal-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.info-block {
  display: grid;
  gap: 8px;
}

.meta-list {
  display: grid;
  gap: 10px;
  margin: 4px 0 2px;
}

.meta-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(147, 177, 166, 0.1);
}

.meta-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.meta-list strong {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.service-fit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(147, 177, 166, 0.1);
}

.service-fit-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.service-fit-row div {
  display: grid;
  gap: 4px;
}

.service-fit-row span {
  color: var(--muted);
}

.status-message.success {
  background: rgba(147, 177, 166, 0.12);
  color: #c7ddd4;
}

.two-point-oh-header .page-title {
  letter-spacing: -0.03em;
}

.two-point-oh-shell {
  display: grid;
  gap: 14px;
}

.two-point-oh-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: stretch;
  background:
    linear-gradient(145deg, rgba(24, 61, 61, 0.96), rgba(4, 13, 18, 0.92)),
    var(--panel);
}

.two-point-oh-hero-copy {
  display: grid;
  align-content: start;
  gap: 12px;
  padding-right: 6px;
}

.two-point-oh-hero-copy h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.96;
  color: #d0e3db;
  letter-spacing: -0.04em;
}

.two-point-oh-composer {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(147, 177, 166, 0.14);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(147, 177, 166, 0.08), transparent 34%),
    rgba(4, 13, 18, 0.46);
}

.two-point-oh-service-grid {
  grid-template-columns: 1fr;
}

.two-point-oh-service-grid input {
  font-size: 1rem;
}

.two-point-oh-query-field textarea,
.two-point-oh-prompt-field textarea {
  min-height: 180px;
  resize: vertical;
}

.two-point-oh-query-field textarea {
  font-size: 1.02rem;
  line-height: 1.55;
}

.two-point-oh-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
  gap: 14px;
  align-items: start;
}

.two-point-oh-main,
.two-point-oh-side {
  min-width: 0;
}

.two-point-oh-analysis-grid,
.two-point-oh-output-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.two-point-oh-analysis-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(147, 177, 166, 0.12);
  background: rgba(4, 13, 18, 0.32);
}

.two-point-oh-analysis-copy {
  margin: 0;
  color: #d0e3db;
  line-height: 1.55;
}

.two-point-oh-chip-sections {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.two-point-oh-chip-sections > div,
.two-point-oh-analysis-grid > article,
.two-point-oh-results-list > article,
.two-point-oh-sources-list > a {
  min-width: 0;
}

.two-point-oh-shell .signal-source-chip {
  min-width: 0;
  max-width: 100%;
  justify-content: flex-start;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.two-point-oh-results-list,
.two-point-oh-sources-list {
  display: grid;
  gap: 12px;
}

.two-point-oh-result-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(147, 177, 166, 0.12);
  background:
    radial-gradient(circle at top right, rgba(147, 177, 166, 0.06), transparent 32%),
    rgba(4, 13, 18, 0.34);
}

.two-point-oh-result-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.two-point-oh-result-heading {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.two-point-oh-result-heading h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.15;
  color: #d0e3db;
}

.two-point-oh-result-meta {
  margin: 0;
  color: var(--muted);
}

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

.two-point-oh-responsibility-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--text);
  line-height: 1.45;
}

.two-point-oh-score-shell {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.two-point-oh-source-button {
  text-decoration: none;
}

.two-point-oh-sources-empty {
  padding: 0;
  border: 0;
  background: transparent;
}

.two-point-oh-source-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(147, 177, 166, 0.12);
  background: rgba(4, 13, 18, 0.26);
  color: inherit;
  text-decoration: none;
}

.two-point-oh-source-row:hover,
.two-point-oh-source-row:focus-visible {
  border-color: rgba(147, 177, 166, 0.28);
  transform: translateY(-1px);
}

.two-point-oh-source-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.two-point-oh-source-copy strong {
  color: #d0e3db;
}

.two-point-oh-source-copy span {
  color: var(--muted);
}

.two-point-oh-admin-panel {
  display: grid;
  gap: 14px;
}

.two-point-oh-prompt-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(147, 177, 166, 0.12);
  background: rgba(4, 13, 18, 0.28);
}

.two-point-oh-prompt-card h3 {
  margin: 0;
  color: #d0e3db;
  font-size: 1.05rem;
}

.two-point-oh-prompt-field textarea {
  min-height: 220px;
}

.two-point-oh-prompt-card .section-header.section-header-tight {
  grid-template-columns: 1fr;
  gap: 8px;
}

.two-point-oh-prompt-card [data-two-point-oh-prompt-meta] {
  overflow-wrap: anywhere;
}

.two-point-oh-source-copy,
.two-point-oh-result-heading,
.two-point-oh-analysis-copy,
.two-point-oh-prompt-card .inline-copy {
  overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
  .two-point-oh-hero,
  .two-point-oh-workspace,
  .two-point-oh-analysis-grid,
  .two-point-oh-output-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .two-point-oh-result-top,
  .two-point-oh-score-shell {
    display: grid;
    justify-items: start;
  }

  .two-point-oh-result-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .workspace-grid,
  .signal-step-row-primary,
  .signal-filter-row-dense,
  .search-page-shell,
  .prospect-workspace,
  .sources-import-grid,
  .page-header-copy,
  .page-header-shell > .action-bar {
    flex-basis: 100%;
    max-width: none;
  }

  .page-header-shell > .action-bar {
    justify-content: flex-start;
  }

  .page-purpose {
    max-width: none;
  }

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

  .client-drawer-shell {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  }
}

@media (max-width: 900px) {
  .filter-row,
  .compact-form-grid,
  .company-signals-entry-row-primary,
  .company-signals-entry-row-secondary,
  .company-signals-diagnostics-grid,
  .search-page-shell {
    grid-template-columns: 1fr;
  }

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

  .client-drawer-shell {
    grid-template-columns: 1fr;
  }

  .client-drawer-panel {
    padding: 10px;
  }

  .client-profile-drawer-panel {
    border-radius: 20px;
    border-right: 1px solid var(--line);
  }

  .action-bar .field-inline,
  .action-bar button,
  .action-bar .button-link {
    width: 100%;
  }

  .signal-row,
  .service-fit-row,
  .signal-table-toolbar,
  .signal-table-toolbar-actions,
  .signal-bottom-head,
  .billing-embed-head,
  .prospect-row {
    flex-direction: column;
  }

  .section-header.section-header-tight {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .prospect-row {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .prospect-meta {
    justify-items: start;
    grid-auto-flow: column;
    grid-template-columns: repeat(3, auto);
  }

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

  .lead-source-action {
    justify-self: start;
  }

  .test-search-field {
    width: 100%;
  }

  .search-inline-support {
    flex-direction: column;
    align-items: stretch;
  }

}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .app-layout,
  .brand-row,
  .scope-row,
  .summary-grid,
  .results-grid,
  .nav-row,
  .home-grid,
  .access-grid,
  .billing-checkout-grid,
  .feature-grid,
  .dashboard-grid,
  .signal-grid,
  .workflow-grid,
  .audience-grid,
  .kpi-grid,
  .cta-band {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 12ch;
  }

  .site-header {
    flex-direction: column;
    align-items: start;
  }

  .app-layout {
    grid-template-columns: 1fr;
    width: min(calc(100% - 24px), 1440px);
    gap: 14px;
  }

  .app-sidebar {
    position: static;
  }

  [data-app-layout][data-sidebar-state="collapsed"] {
    grid-template-columns: 1fr;
  }

  [data-app-layout][data-sidebar-state="collapsed"] .app-sidebar {
    gap: 14px;
  }

  [data-app-layout][data-sidebar-state="collapsed"] .sidebar-section,
  [data-app-layout][data-sidebar-state="collapsed"] .sidebar-footer {
    display: none;
  }

  [data-app-layout][data-sidebar-state="collapsed"] .sidebar-top {
    justify-content: space-between;
  }

  [data-app-layout][data-sidebar-state="collapsed"] .sidebar-brand-copy {
    display: grid;
  }

  .header-right {
    width: 100%;
    justify-content: flex-start;
  }

  .app-topbar {
    flex-direction: column;
    align-items: start;
  }

  .froggy-hero,
  .froggy-flow-stage-top,
  .froggy-flow-stage-signals,
  .froggy-flow-stage-bottom {
    grid-template-columns: 1fr;
  }

  .froggy-arrow-h,
  .froggy-arrow-v {
    width: 2px;
    height: 22px;
    min-height: 22px;
    justify-self: center;
  }

  .froggy-arrow-h::after,
  .froggy-arrow-v::after {
    left: 50%;
    bottom: -1px;
    right: auto;
    top: auto;
    transform: translateX(-50%) rotate(135deg);
  }

  .froggy-decision {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(calc(100% - 24px), var(--max));
    margin-top: 14px;
  }

  .app-layout {
    width: min(calc(100% - 20px), 1440px);
    margin-top: 14px;
  }

  .shell-auth {
    width: min(calc(100% - 20px), 520px);
    min-height: calc(100vh - 24px);
    margin-bottom: 14px;
  }

  .hero,
  .panel,
  .result-card,
  .archive-card,
  .section,
  .feature-card,
  .signal-card,
  .workflow-step,
  .audience-card,
  .cta-band,
  .hero-panel,
  .auth-shell,
  .app-topbar {
    border-radius: 20px;
  }

  .hero {
    padding: 20px;
  }

  .panel {
    padding: 18px;
  }

  h1 {
    font-size: clamp(2.4rem, 17vw, 3.6rem);
  }

  .froggy-title {
    max-width: none;
  }

  .hero-home,
  .section,
  .cta-band,
  .auth-shell,
  .app-topbar,
  .app-sidebar {
    padding: 20px;
  }

  .app-topbar-left {
    width: 100%;
    flex-wrap: wrap;
  }
}

.tracking-input-panel,
.tracking-results-shell,
.tracking-details {
  min-width: 0;
}

.tracking-input-panel {
  padding: 8px 10px;
}

.tracking-results-shell {
  gap: 8px;
  padding: 10px;
}

.tracking-input-panel .signal-input-core {
  gap: 4px;
}

.tracking-input-panel .field-compact span {
  margin-bottom: 3px;
}

.tracking-input-panel .field-compact input,
.tracking-input-panel .field-compact select,
.tracking-multiselect-toggle {
  min-height: 42px;
  height: 42px;
  padding: 8px 40px 8px 16px;
  border: 1px solid rgba(147, 177, 166, 0.2);
  background-color: rgba(4, 13, 18, 0.52);
  border-radius: 16px;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  width: 100%;
}

.tracking-input-panel .field-compact select,
.tracking-multiselect-toggle {
  -webkit-appearance: none;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(176, 196, 188, 0.92) 50%),
    linear-gradient(135deg, rgba(176, 196, 188, 0.92) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.tracking-filter-row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  align-items: end;
}

.tracking-multiselect-wrap {
  position: relative;
  z-index: 5;
}

.tracking-multiselect-field {
  position: relative;
  z-index: 5;
}

.tracking-multiselect-field[open] {
  z-index: 40;
}

.tracking-multiselect-toggle {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  text-align: left;
  position: relative;
  z-index: 6;
  cursor: pointer;
  transform: none;
  box-shadow: none;
  list-style: none;
}

.tracking-multiselect-toggle::-webkit-details-marker {
  display: none;
}

.tracking-multiselect-toggle [data-tracking-state-label] {
  color: var(--text) !important;
  opacity: 1 !important;
  letter-spacing: 0;
  text-transform: none;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.tracking-multiselect-caret {
  display: none;
}

.tracking-multiselect-toggle:hover {
  transform: none;
}

.tracking-multiselect-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 40;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(137, 165, 154, 0.18);
  background: rgba(8, 22, 25, 0.98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.tracking-multiselect-field[open] .tracking-multiselect-panel {
  display: block;
}

.tracking-multiselect-options {
  max-height: 260px;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 12px;
}

.tracking-multiselect-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #dbe7e1;
}

.tracking-multiselect-option input {
  margin: 0;
}

.tracking-search-cell {
  display: grid;
  gap: 3px;
  position: relative;
  z-index: 3;
}

.tracking-search-spacer {
  display: block;
  min-height: 18px;
}

.tracking-search-button {
  width: 100%;
  min-height: 42px;
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

.tracking-search-button.is-loading {
  opacity: 0.9;
  cursor: wait;
}

.tracking-input-panel .status-message {
  margin-top: 0;
  padding: 6px 10px;
  min-height: 0;
  font-size: 0.8rem;
}

.tracking-count-row th {
  padding-top: 4px;
  padding-bottom: 6px;
  font-size: 0.95rem;
  line-height: 1;
  color: #dbe7e1;
  letter-spacing: 0;
  text-transform: none;
}

.company-mapping-input-panel,
.company-mapping-results-shell {
  min-width: 0;
  max-width: 100%;
}

.company-mapping-results-shell {
  overflow: hidden;
}

.company-mapping-input-panel {
  padding: 10px 12px;
}

.company-mapping-input-panel .signal-input-core {
  gap: 8px;
}

.company-mapping-form {
  display: grid;
  gap: 8px;
}

.company-mapping-input-panel.is-intake-collapsed {
  padding-top: 8px;
  padding-bottom: 8px;
}

.company-mapping-input-panel.is-intake-collapsed .signal-input-core {
  gap: 6px;
}

.company-mapping-input-panel.is-intake-collapsed .company-mapping-contacts-field textarea {
  min-height: 46px;
  height: 46px;
  overflow: hidden;
  resize: vertical;
}

.company-mapping-filter-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

.company-mapping-topbar-cell {
  min-width: 0;
  min-height: 42px;
}

.company-mapping-search-cell {
  display: flex;
  align-items: stretch;
}

.company-mapping-search-button {
  width: 100%;
  min-height: 42px;
  height: 42px;
  padding: 8px 16px;
}

.company-mapping-company-select-field,
.company-mapping-company-name-field {
  display: flex;
  align-items: stretch;
}

.company-mapping-company-select-field span,
.company-mapping-company-name-field span,
.company-mapping-search-cell .field-label-spacer {
  display: none;
}

.company-mapping-company-select-field select,
.company-mapping-company-name-field input {
  width: 100%;
  min-height: 42px;
  height: 42px;
}

.company-mapping-contacts-field textarea {
  min-height: 124px;
}

.company-mapping-intake-summary {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(4, 13, 18, 0.84);
}

.company-mapping-intake-summary-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.company-mapping-intake-summary-copy {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
}

.company-mapping-intake-summary-copy[data-state="saved"] {
  color: #c7ddd4;
}

.company-mapping-intake-summary-copy[data-state="unsaved"] {
  color: #e7daa1;
}

.company-mapping-intake-summary-copy[data-state="saving"] {
  color: #8fb9ff;
}

.company-mapping-intake-summary-copy[data-state="error"] {
  color: #f0a8a1;
}

.company-mapping-import-toggle,
.company-mapping-header-import-toggle {
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  line-height: 1;
  white-space: nowrap;
}

.company-mapping-empty-state,
.company-mapping-loading-state,
.company-mapping-error-state {
  padding: 2px 2px 6px;
}

.company-mapping-header {
  margin-bottom: 6px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.company-mapping-header .page-header-copy {
  flex-basis: auto;
  gap: 0;
}

.company-mapping-header .page-title {
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
}

.company-mapping-results {
  display: grid;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.company-mapping-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.company-mapping-status-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.company-mapping-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.company-mapping-view-toggle-button {
  min-width: 64px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
}

.company-mapping-view-toggle-button.is-active {
  border-color: rgba(191, 215, 122, 0.42);
  color: var(--text);
  background: rgba(13, 30, 23, 0.62);
}

.company-mapping-edit-button.is-active {
  border-color: rgba(191, 215, 122, 0.42);
  color: var(--text);
}

.company-mapping-delete-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.company-mapping-meta-strip {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.company-mapping-meta-chip {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(147, 177, 166, 0.18);
  background: rgba(4, 13, 18, 0.28);
}

.company-mapping-meta-chip strong {
  min-width: 0;
  font-size: 0.98rem;
  line-height: 1.25;
  color: var(--text);
}

.company-mapping-workspace {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.company-mapping-sidebar-stack {
  display: grid;
  gap: 10px;
  align-content: start;
}

.company-mapping-workspace {
  position: relative;
}

.company-mapping-workspace.is-list-view .company-mapping-hierarchy-shell {
  display: none;
}

.company-mapping-workspace.is-map-view .company-mapping-list-shell {
  display: none;
}

.company-mapping-workspace.is-list-view [data-company-mapping-zoom-out],
.company-mapping-workspace.is-list-view [data-company-mapping-fit],
.company-mapping-workspace.is-list-view [data-company-mapping-zoom-in] {
  display: none;
}

.company-mapping-hierarchy-shell {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable both-edges;
  min-height: clamp(720px, 78vh, 980px);
  padding: 10px 8px 18px;
  border-radius: 20px;
  border: 1px solid rgba(147, 177, 166, 0.14);
  background: rgba(4, 13, 18, 0.16);
  touch-action: pan-x pan-y;
  cursor: grab;
}

.company-mapping-list-shell {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  min-height: clamp(720px, 78vh, 980px);
  padding: 56px 8px 10px;
  border-radius: 20px;
  border: 1px solid rgba(147, 177, 166, 0.14);
  background: rgba(4, 13, 18, 0.16);
}

.company-mapping-list-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.company-mapping-list-search-field {
  flex: 1 1 320px;
  min-width: 220px;
}

.company-mapping-list-search-field input {
  width: 100%;
}

.company-mapping-list-add-person-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.company-mapping-list-scroll {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  max-height: calc(clamp(720px, 78vh, 980px) - 118px);
  overflow: auto;
  border-radius: 16px;
  border: 1px solid rgba(147, 177, 166, 0.1);
  background: rgba(6, 18, 24, 0.56);
}

.company-mapping-grid {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
}

.company-mapping-grid th,
.company-mapping-grid td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(147, 177, 166, 0.12);
  vertical-align: top;
  text-align: left;
}

.company-mapping-grid th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(8, 21, 27, 0.96);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.company-mapping-grid tbody tr:hover {
  background: rgba(13, 30, 23, 0.22);
}

.company-mapping-grid tbody tr.is-selected {
  background: rgba(13, 30, 23, 0.36);
}

.company-mapping-list-empty {
  color: var(--muted);
  text-align: center;
  font-weight: 600;
}

.company-mapping-grid {
  --company-mapping-tree-width: 148px;
  --company-mapping-name-width: 296px;
}

.company-mapping-grid td:first-child,
.company-mapping-grid th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: rgba(8, 21, 27, 0.94);
}

.company-mapping-grid td:nth-child(2),
.company-mapping-grid th:nth-child(2) {
  position: sticky;
  left: var(--company-mapping-tree-width, 148px);
  z-index: 1;
  background: rgba(8, 21, 27, 0.94);
}

.company-mapping-grid th:first-child {
  z-index: 3;
}

.company-mapping-grid th:nth-child(2) {
  z-index: 3;
}

.company-mapping-list-tree {
  width: var(--company-mapping-tree-width, 148px);
  min-width: var(--company-mapping-tree-width, 148px);
}

.company-mapping-list-name {
  width: var(--company-mapping-name-width, 296px);
  min-width: var(--company-mapping-name-width, 296px);
}

.company-mapping-list-tree-input {
  display: block;
  min-width: 76px;
  max-width: 188px;
  width: calc(100% - (var(--depth, 0) * 16px));
  margin-left: calc(var(--depth, 0) * 16px);
  border-radius: 999px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  padding-inline: 10px;
}

.company-mapping-list-tree-input::placeholder {
  color: rgba(232, 241, 236, 0.62);
}

.company-mapping-list-input,
.company-mapping-list-select,
.company-mapping-list-textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(147, 177, 166, 0.16);
  border-radius: 12px;
  background: rgba(10, 28, 36, 0.96);
  color: var(--text);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  padding: 7px 10px;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.company-mapping-list-input:focus,
.company-mapping-list-select:focus,
.company-mapping-list-textarea:focus {
  border-color: rgba(191, 215, 122, 0.44);
  box-shadow: 0 0 0 3px rgba(191, 215, 122, 0.12);
}

.company-mapping-list-input {
  min-width: 150px;
}

.company-mapping-list-input[type="url"] {
  min-width: 220px;
}

.company-mapping-list-select {
  min-width: 132px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(186, 208, 198, 0.88) 50%),
    linear-gradient(135deg, rgba(186, 208, 198, 0.88) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) calc(50% - 1px),
    calc(100% - 11px) calc(50% - 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding: 6px 24px 6px 10px;
  font-size: 0.74rem;
  font-weight: 600;
}

.company-mapping-list-select[data-support-tone="champion"],
.company-mapping-list-select[data-support-tone="strong"] {
  color: #d8f4cb;
  border-color: rgba(117, 191, 117, 0.34);
  background-color: rgba(21, 57, 35, 0.92);
}

.company-mapping-list-select[data-support-tone="supportive"] {
  color: #d8f0dd;
  border-color: rgba(117, 191, 149, 0.28);
  background-color: rgba(18, 47, 33, 0.92);
}

.company-mapping-list-select[data-support-tone="neutral"] {
  color: rgba(216, 224, 220, 0.92);
  border-color: rgba(147, 177, 166, 0.2);
}

.company-mapping-list-select[data-support-tone="skeptical"] {
  color: #ffd8ac;
  border-color: rgba(220, 153, 74, 0.32);
  background-color: rgba(63, 36, 12, 0.92);
}

.company-mapping-list-select[data-support-tone="blocker"] {
  color: #ffc2c2;
  border-color: rgba(214, 120, 120, 0.36);
  background-color: rgba(64, 20, 20, 0.92);
}

.company-mapping-list-textarea {
  min-width: 220px;
  min-height: 72px;
  resize: vertical;
}

.company-mapping-list-action-button {
  min-width: 88px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(214, 120, 120, 0.28);
  background: rgba(39, 13, 17, 0.64);
  color: #f3d0d0;
}

.company-mapping-list-action-button:hover,
.company-mapping-list-action-button:focus-visible {
  background: rgba(58, 16, 22, 0.8);
}

.company-mapping-list-action-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.company-mapping-list-action-button-archive {
  border-color: rgba(147, 177, 166, 0.22);
  background: rgba(10, 28, 36, 0.9);
  color: var(--text);
}

.company-mapping-list-action-button-archive:hover,
.company-mapping-list-action-button-archive:focus-visible {
  background: rgba(14, 36, 46, 0.98);
}

.company-mapping-hierarchy-shell.is-panning {
  cursor: grabbing;
  user-select: none;
}

.company-mapping-chart-toolbar {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: calc(100% - 20px);
  margin: 0;
  min-height: 0;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(147, 177, 166, 0.12);
  background: rgba(6, 18, 24, 0.72);
  opacity: 0.75;
  backdrop-filter: blur(8px);
  transition: opacity 160ms ease, filter 160ms ease;
}

.company-mapping-tool-button {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.company-mapping-tool-button svg {
  width: 14px;
  height: 14px;
}

.company-mapping-pdf-button.is-busy svg {
  animation: company-mapping-tool-spin 0.9s linear infinite;
}

.company-mapping-tool-button.is-busy {
  opacity: 0.72;
}

.company-mapping-tool-button.is-confirming {
  border-color: rgba(214, 133, 133, 0.42);
  background: rgba(72, 24, 24, 0.74);
  color: #f2c8c8;
}

.company-mapping-chart-stage {
  position: relative;
  display: block;
  width: max-content;
  min-width: 100%;
  max-width: none;
  min-height: calc(clamp(720px, 78vh, 980px) - 28px);
  box-sizing: border-box;
  padding: 56px 10px 28px;
}

.company-mapping-chart-stage.is-root-drop-target::after {
  content: "Drop here to create a new tree";
  position: absolute;
  inset: 52px 10px 28px;
  border: 1px dashed rgba(191, 215, 122, 0.34);
  border-radius: 18px;
  background: rgba(7, 18, 24, 0.06);
  color: rgba(203, 220, 214, 0.66);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: grid;
  place-items: start center;
  padding-top: 16px;
  pointer-events: none;
}

.company-mapping-chart-stage.is-dragging-node .company-mapping-chart-svg,
.company-mapping-chart-stage.is-dragging-node .company-mapping-chart-hit-area {
  pointer-events: none;
}

.company-mapping-unplaced-toggle {
  position: absolute;
  top: 56px;
  right: 10px;
  z-index: 5;
  min-width: 118px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  opacity: 0.82;
}

.company-mapping-unplaced-toggle:disabled {
  opacity: 0.44;
  cursor: not-allowed;
}

.company-mapping-unplaced-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform 180ms ease;
}

.company-mapping-unplaced-toggle.is-open svg {
  transform: rotate(180deg);
}

.company-mapping-unplaced-tray {
  position: absolute;
  top: 96px;
  right: 10px;
  z-index: 5;
  width: 220px;
  max-height: calc(100% - 116px);
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(147, 177, 166, 0.14);
  background: rgba(6, 18, 24, 0.88);
  box-shadow: 0 18px 34px rgba(2, 8, 11, 0.22);
  backdrop-filter: blur(8px);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.company-mapping-unplaced-tray.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.company-mapping-unplaced-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.company-mapping-unplaced-head strong {
  color: var(--text);
  font-size: 0.74rem;
}

.company-mapping-unplaced-list {
  display: grid;
  gap: 12px;
  align-content: start;
  overflow-y: auto;
  padding-right: 2px;
}

.company-mapping-unplaced-group {
  display: grid;
  gap: 8px;
}

.company-mapping-unplaced-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: rgba(147, 177, 166, 0.78);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.company-mapping-unplaced-group-head strong {
  color: rgba(232, 241, 236, 0.88);
  font-size: 0.68rem;
}

.company-mapping-unplaced-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.company-mapping-zoom-layer {
  position: relative;
  width: max-content;
  min-width: 100%;
  transform-origin: top left;
  will-change: transform;
}

.company-mapping-popover {
  position: absolute;
  z-index: 8;
  width: min(700px, calc(100vw - 40px));
  padding: 12px 12px 10px;
  border-radius: 18px;
  border: 1px solid rgba(147, 177, 166, 0.2);
  background: rgba(6, 18, 24, 0.96);
  box-shadow: 0 18px 42px rgba(2, 8, 11, 0.34);
  backdrop-filter: blur(10px);
}

.company-mapping-workspace.has-popover-open .company-mapping-chart-toolbar {
  opacity: 0.18;
  filter: saturate(0.6);
  pointer-events: none;
}

.company-mapping-workspace.has-popover-open .company-mapping-unplaced-toggle,
.company-mapping-workspace.has-popover-open .company-mapping-unplaced-tray {
  opacity: 0.14;
  pointer-events: none;
}

.company-mapping-popover-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
}

.company-mapping-popover-body {
  display: grid;
  gap: 6px;
}

.company-mapping-popover-field {
  display: grid;
  gap: 2px;
  min-width: 0;
}

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

.company-mapping-popover-row {
  display: grid;
  gap: 4px 8px;
  align-items: start;
}

.company-mapping-popover-row.is-two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.company-mapping-popover-row.is-three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.company-mapping-popover-field span {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.company-mapping-popover-input,
.company-mapping-popover-textarea,
.company-mapping-popover-select {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(147, 177, 166, 0.16);
  border-radius: 14px;
  background: rgba(10, 28, 36, 0.96);
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.3;
  padding: 7px 10px;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.company-mapping-popover-input:focus,
.company-mapping-popover-textarea:focus,
.company-mapping-popover-select:focus {
  border-color: rgba(191, 215, 122, 0.44);
  box-shadow: 0 0 0 3px rgba(191, 215, 122, 0.12);
}

.company-mapping-popover-select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(186, 208, 198, 0.88) 50%),
    linear-gradient(135deg, rgba(186, 208, 198, 0.88) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) calc(50% - 1px),
    calc(100% - 11px) calc(50% - 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding: 5px 24px 5px 10px;
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.2;
}

.company-mapping-popover-select[data-support-tone="champion"],
.company-mapping-popover-select[data-support-tone="strong"] {
  color: #d8f4cb;
  border-color: rgba(117, 191, 117, 0.34);
  background-color: rgba(21, 57, 35, 0.92);
}

.company-mapping-popover-select[data-support-tone="supportive"] {
  color: #d8f0dd;
  border-color: rgba(117, 191, 149, 0.28);
  background-color: rgba(18, 47, 33, 0.92);
}

.company-mapping-popover-select[data-support-tone="neutral"] {
  color: rgba(216, 224, 220, 0.92);
  border-color: rgba(147, 177, 166, 0.2);
}

.company-mapping-popover-select[data-support-tone="skeptical"] {
  color: #ffd8ac;
  border-color: rgba(220, 153, 74, 0.32);
  background-color: rgba(63, 36, 12, 0.92);
}

.company-mapping-popover-select[data-support-tone="blocker"] {
  color: #ffc2c2;
  border-color: rgba(214, 120, 120, 0.36);
  background-color: rgba(64, 20, 20, 0.92);
}

.company-mapping-popover-select[data-support-tone="unknown"] {
  color: var(--text);
}

.company-mapping-popover-textarea {
  min-height: 60px;
  resize: none;
}

.company-mapping-popover-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 2px;
}

.company-mapping-popover-delete,
.company-mapping-popover-archive,
.company-mapping-popover-save {
  min-width: 120px;
  min-height: 34px;
  padding: 5px 14px;
  border-radius: 999px;
}

.company-mapping-popover-archive {
  border: 1px solid rgba(147, 177, 166, 0.2);
  background: rgba(10, 28, 36, 0.9);
  color: var(--text);
}

.company-mapping-popover-archive:hover {
  background: rgba(14, 36, 46, 0.98);
}

.company-mapping-popover-delete {
  border: 1px solid rgba(214, 120, 120, 0.34);
  background: rgba(39, 13, 17, 0.68);
  color: #f3d0d0;
}

.company-mapping-popover-delete:hover {
  background: rgba(58, 16, 22, 0.82);
}

.company-mapping-popover-save {
  margin-left: auto;
}

.company-mapping-chart-svg {
  position: absolute;
  inset: 0 auto auto 0;
  overflow: visible;
  pointer-events: auto;
  z-index: 0;
}

.company-mapping-branch-label-layer {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.company-mapping-branch-label {
  position: absolute;
  transform: translate(-50%, -100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  max-width: 140px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(11, 29, 35, 0.32);
  color: rgba(222, 232, 225, 0.56);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  backdrop-filter: blur(6px);
}

.company-mapping-chart-hit-area {
  fill: none;
  stroke: rgba(0, 0, 0, 0);
  stroke-width: 16;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: stroke;
  cursor: pointer;
}

.company-mapping-chart-path {
  fill: none;
  stroke: rgba(147, 177, 166, 0.34);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  cursor: pointer;
  pointer-events: none;
  opacity: 0.98;
  transition: stroke 180ms ease, stroke-width 180ms ease, opacity 180ms ease;
}

.company-mapping-chart-hit-area:hover + .company-mapping-chart-path,
.company-mapping-chart-path:hover {
  opacity: 1;
}

.company-mapping-chart-path.is-verified {
  stroke: rgba(210, 233, 170, 0.82);
  stroke-width: 2.4;
}

.company-mapping-chart-path.is-supported {
  stroke: rgba(147, 177, 166, 0.62);
  stroke-width: 1.9;
}

.company-mapping-chart-path.is-inferred {
  stroke: rgba(147, 177, 166, 0.34);
  stroke-width: 1.5;
  stroke-dasharray: 6 7;
}

.company-mapping-chart-path.is-manual {
  stroke: rgba(191, 215, 122, 0.76);
  stroke-width: 2.1;
}

.company-mapping-hierarchy {
  display: grid;
  gap: 18px;
  align-items: start;
  width: max-content;
  min-width: 100%;
  position: relative;
  z-index: 1;
}

.company-mapping-forest {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: center;
  width: max-content;
  min-width: 100%;
  padding: 0 8px;
}

.company-mapping-branch {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: var(--company-mapping-branch-gap, 40px);
  width: max-content;
  min-width: 112px;
}

.company-mapping-branch-children {
  display: flex;
  gap: var(--company-mapping-child-gap, 18px);
  align-items: flex-start;
  justify-content: center;
  width: max-content;
  min-width: max-content;
}

.company-mapping-branch.is-single-child {
  min-width: 0;
}

.company-mapping-branch.is-single-child > .company-mapping-node-wrap {
  width: 108px;
  min-width: 108px;
}

.company-mapping-branch.is-single-child > .company-mapping-branch-children {
  min-width: 0;
}

.company-mapping-branch-children.is-single-child {
  justify-content: center;
}

.company-mapping-branch.is-leaf-cluster {
  min-width: 0;
}

.company-mapping-branch.is-leaf-cluster > .company-mapping-branch-children {
  align-items: stretch;
}

.company-mapping-branch.is-wide-cluster > .company-mapping-branch-children {
  align-items: flex-start;
}

.company-mapping-branch-slot {
  display: grid;
  justify-items: center;
  min-width: 0;
}

.company-mapping-node-wrap {
  position: relative;
  width: 112px;
  min-width: 112px;
  display: grid;
  justify-items: center;
  gap: 6px;
}

.company-mapping-node-wrap.is-editable {
  cursor: grab;
}

.company-mapping-node-tree-tag {
  max-width: 100%;
  padding: 2px 9px 3px;
  border-radius: 999px;
  border: 1px solid rgba(173, 203, 194, 0.08);
  background: rgba(7, 18, 24, 0.22);
  color: rgba(203, 220, 214, 0.66);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 18px rgba(2, 8, 11, 0.08);
}

.company-mapping-node-wrap.is-root {
  width: 126px;
  min-width: 126px;
}

.company-mapping-node-wrap.is-compact {
  width: 92px;
  min-width: 92px;
}

.company-mapping-node-wrap.is-compact .company-mapping-node-tree-tag,
.company-mapping-node-wrap.is-root .company-mapping-node-tree-tag {
  display: none;
}

.company-mapping-node {
  --company-mapping-node-bg: rgba(4, 13, 18, 0.34);
  --company-mapping-node-border: rgba(147, 177, 166, 0.16);
  --company-mapping-node-selected-bg: rgba(13, 30, 23, 0.7);
  --company-mapping-node-glow: 0 12px 20px rgba(2, 8, 11, 0.14);
  --company-mapping-node-ring-shadow: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 8px 6px;
  border-radius: 12px;
  border: 1px solid var(--company-mapping-node-border);
  background: var(--company-mapping-node-bg);
  min-width: 0;
  min-height: 82px;
  text-align: center;
  appearance: none;
  color: inherit;
  cursor: pointer;
  box-shadow: var(--company-mapping-node-ring-shadow);
  transition: border-color 780ms ease, transform 180ms ease, background-color 780ms ease, box-shadow 780ms ease;
}

.company-mapping-node.is-root {
  min-height: 76px;
}

.company-mapping-node.is-compact {
  min-height: 56px;
  padding: 6px 5px;
  border-radius: 10px;
  gap: 0;
}

.company-mapping-node.is-known {
  box-shadow: inset 0 0 0 1px rgba(191, 215, 122, 0.08), var(--company-mapping-node-ring-shadow);
}

.company-mapping-node.is-editable {
  cursor: grab;
}

.company-mapping-chart-stage.is-editing .company-mapping-node.is-editable {
  cursor: grab;
}

.company-mapping-node-wrap.is-dragging .company-mapping-node,
.company-mapping-node.is-dragging {
  opacity: 0.45;
  transform: scale(0.98);
}

.company-mapping-node.is-drop-target {
  border-color: rgba(191, 215, 122, 0.72);
  box-shadow: 0 0 0 1px rgba(191, 215, 122, 0.22), 0 14px 22px rgba(2, 8, 11, 0.16);
  background: rgba(13, 30, 23, 0.74);
}

.company-mapping-node:hover,
.company-mapping-node:focus-visible {
  border-color: rgba(191, 215, 122, 0.48);
  transform: translateY(-1px);
  box-shadow: var(--company-mapping-node-ring-shadow), var(--company-mapping-node-glow);
}

.company-mapping-node.is-selected {
  border-color: rgba(191, 215, 122, 0.62);
  background: var(--company-mapping-node-selected-bg);
  box-shadow: var(--company-mapping-node-ring-shadow), 0 16px 24px rgba(2, 8, 11, 0.16), var(--company-mapping-node-glow);
}

.company-mapping-node.is-drop-confirmed {
  animation: company-mapping-drop-confirm 1.35s ease;
  border-color: rgba(191, 215, 122, 0.82);
  box-shadow: 0 0 0 1px rgba(191, 215, 122, 0.34), var(--company-mapping-node-ring-shadow), 0 18px 28px rgba(2, 8, 11, 0.2), 0 0 0 10px rgba(191, 215, 122, 0.08);
}

@keyframes company-mapping-drop-confirm {
  0% {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 0 0 1px rgba(191, 215, 122, 0.4), var(--company-mapping-node-ring-shadow), 0 0 0 16px rgba(191, 215, 122, 0.18);
  }

  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 1px rgba(191, 215, 122, 0.22), var(--company-mapping-node-ring-shadow), 0 0 0 0 rgba(191, 215, 122, 0);
  }
}

@keyframes company-mapping-tool-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.company-mapping-node-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  min-height: 36px;
}

.company-mapping-node-avatar,
.company-mapping-detail-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 2px solid rgba(147, 177, 166, 0.32);
  background: rgba(15, 34, 38, 0.9);
  color: var(--text);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.company-mapping-node.is-root .company-mapping-node-avatar {
  width: 32px;
  height: 32px;
  font-size: 0.74rem;
}

.company-mapping-node-badge {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid rgba(191, 215, 122, 0.2);
  background: rgba(191, 215, 122, 0.12);
  color: #e8f2c8;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.company-mapping-node h3 {
  margin: 0;
  color: #f2f7f4;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.08;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: balance;
}

.company-mapping-node.is-compact h3 {
  font-size: 0.76rem;
  -webkit-line-clamp: 2;
}

.company-mapping-node-short-title {
  margin: 0;
  max-width: 100%;
  color: rgba(203, 220, 214, 0.56);
  font-size: 0.58rem;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0.03em;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: balance;
}

.company-mapping-node-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 18px;
  padding: 0 6px;
  border: 0;
  background: transparent;
  color: rgba(147, 177, 166, 0.82);
  font-size: 0.62rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.company-mapping-node-toggle svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}

.company-mapping-node-toggle:hover,
.company-mapping-node-toggle:focus-visible {
  color: rgba(191, 215, 122, 0.88);
}

.company-mapping-node-toggle-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  min-height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  border: 1px solid rgba(147, 177, 166, 0.16);
  background: rgba(4, 13, 18, 0.26);
}

.company-mapping-node-wrap:not(.is-collapsed) .company-mapping-node-toggle {
  gap: 0;
}

.company-mapping-node-wrap:not(.is-collapsed) .company-mapping-node-toggle-count {
  display: none;
}

.company-mapping-node-title {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  line-height: 1.12;
  font-size: 0.7rem;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.company-mapping-node-chip-row {
  margin-top: auto;
}

.company-mapping-node-meta {
  min-height: 14px;
  margin: 0;
  font-size: 0.7rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.company-mapping-detail-panel {
  display: grid;
  gap: 10px;
  position: sticky;
  top: 92px;
  padding: 14px 14px 16px;
  border-radius: 18px;
}

.company-mapping-detail-empty {
  color: var(--muted);
}

.company-mapping-detail-body {
  display: grid;
  gap: 12px;
}

.company-mapping-detail-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.company-mapping-detail-identity {
  display: grid;
  gap: 4px;
}

.company-mapping-detail-identity h3 {
  margin: 0;
  font-size: 1.14rem;
}

.company-mapping-detail-title {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  line-height: 1.3;
}

.company-mapping-detail-chip-row {
  min-height: 28px;
}

.company-mapping-detail-section {
  display: grid;
  gap: 6px;
}

.company-mapping-detail-sources {
  display: grid;
  gap: 8px;
}

.company-mapping-detail-source-row {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(147, 177, 166, 0.18);
  background: rgba(4, 13, 18, 0.32);
  text-decoration: none;
  color: inherit;
}

.company-mapping-detail-source-row strong {
  line-height: 1.25;
}

.company-mapping-detail-source-row span {
  color: var(--muted);
  font-size: 0.88rem;
}

.company-mapping-insight-strip {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr);
}

.company-mapping-detail-card {
  display: grid;
  gap: 8px;
}

.company-mapping-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.company-mapping-sources-shell {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.company-mapping-sources-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.company-mapping-source-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(147, 177, 166, 0.18);
  background: rgba(4, 13, 18, 0.38);
  text-decoration: none;
  color: inherit;
}

.company-mapping-source-row:hover,
.company-mapping-source-row:focus-visible {
  border-color: color-mix(in srgb, rgba(147, 177, 166, 0.18) 65%, var(--accent));
  transform: translateY(-1px);
}

.company-mapping-source-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.company-mapping-source-copy strong {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.company-mapping-source-copy span {
  color: var(--muted);
  line-height: 1.35;
}

.company-mapping-empty-copy {
  color: var(--muted);
  padding: 6px 4px;
}

@media (max-width: 1080px) {
  .tracking-filter-row {
    grid-template-columns: 1fr;
  }

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

  .company-mapping-filter-row,
  .company-mapping-meta-strip,
  .company-mapping-insight-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .company-mapping-workspace {
    display: block;
  }

  .company-mapping-status-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .company-mapping-view-toggle {
    justify-content: flex-start;
  }

  .company-mapping-detail-panel {
    position: static;
  }

  .company-mapping-sidebar-stack {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .company-mapping-filter-row,
  .company-mapping-meta-strip,
  .company-mapping-insight-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .company-mapping-level-body {
    gap: 10px;
    justify-content: flex-start;
    padding: 0 4px;
  }

  .company-mapping-node-wrap {
    width: 100px;
    min-width: 100px;
  }

  .company-mapping-list-shell {
    padding-top: 64px;
  }

  .company-mapping-list-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .company-mapping-list-search-field,
  .company-mapping-list-add-person-button {
    width: 100%;
    min-width: 0;
  }
}
