:root {
  --orange: #f15a24;
  --orange-deep: #d94813;
  --orange-soft: #fff0e8;
  --peach: #ffe7d5;
  --cream: #faf5f0;
  --surface: #ffffff;
  --surface-soft: #fbf7f4;
  --ink: #2f3033;
  --muted: #8b8580;
  --line: #ece2da;
  --graphite: #343436;
  --teal: #2b8a84;
  --danger: #9e2b20;
  --shadow: 0 18px 48px rgba(70, 48, 36, 0.08);
  --shadow-soft: 0 10px 26px rgba(70, 48, 36, 0.05);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0) 320px),
    var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button {
  cursor: pointer;
}

.entry-shell {
  align-content: start;
  background:
    linear-gradient(180deg, #fffaf7 0, rgba(255, 250, 247, 0) 460px),
    var(--cream);
  display: grid;
  gap: 24px;
  min-height: 100vh;
  padding: 28px 34px 40px;
}

.landing-nav {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  width: 100%;
}

.landing-nav-actions {
  display: flex;
  gap: 10px;
}

.entry-brand {
  align-items: center;
  display: flex;
  gap: 16px;
}

.entry-brand img {
  height: 34px;
  object-fit: contain;
  width: 124px;
}

.entry-brand span {
  color: var(--muted);
  font-weight: 850;
}

.landing-hero {
  align-items: center;
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  margin: 0 auto;
  max-width: 1180px;
  min-height: 470px;
  width: 100%;
}

.entry-panel {
  background: var(--surface);
  border: 1px solid rgba(236, 226, 218, 0.92);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 28px;
  margin: 0 auto;
  max-width: 1060px;
  padding: 34px;
  width: 100%;
}

.landing-panel {
  max-width: 1180px;
}

.entry-copy {
  max-width: 680px;
}

.eyebrow {
  color: var(--orange);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.entry-copy h1,
.signup-panel h1 {
  font-size: 68px;
  line-height: 1;
  margin: 0 0 12px;
}

.entry-copy > p:not(.eyebrow),
.signup-panel .panel-header span {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
  margin: 0;
}

.landing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.landing-visual {
  background: var(--surface);
  border: 1px solid rgba(236, 226, 218, 0.92);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  overflow: hidden;
  padding: 18px;
}

.landing-visual-top {
  align-items: center;
  display: flex;
  gap: 7px;
}

.landing-visual-top span {
  background: #ffd7c3;
  border-radius: 999px;
  display: block;
  height: 9px;
  width: 9px;
}

.landing-visual-top span:first-child {
  background: var(--orange);
}

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

.landing-visual-grid article {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  min-height: 124px;
  padding: 14px;
}

.landing-visual-grid small,
.landing-visual-grid em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.landing-visual-grid strong {
  color: var(--orange);
  font-size: 34px;
  line-height: 1;
}

.landing-visual-chart {
  align-items: end;
  background:
    linear-gradient(180deg, rgba(236, 226, 218, 0.55) 1px, transparent 1px) 0 0 / 100% 25%,
    #fffaf7;
  border: 1px solid #ffd7c3;
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  height: 178px;
  padding: 22px;
}

.landing-visual-chart i {
  background: linear-gradient(180deg, var(--orange), #ffc092);
  border-radius: 8px 8px 3px 3px;
  display: block;
}

.landing-visual-note {
  align-items: center;
  background: #fff2e9;
  border: 1px solid #ffd0b9;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 34px minmax(0, 1fr);
  padding: 14px;
}

.landing-visual-note svg {
  color: var(--orange);
}

.landing-visual-note span {
  color: var(--muted);
  display: grid;
  gap: 2px;
  line-height: 1.35;
}

.landing-visual-note strong {
  color: var(--ink);
}

.persona-section {
  display: grid;
  gap: 22px;
  margin: 0 auto;
  max-width: 1180px;
  width: 100%;
}

.persona-heading {
  display: grid;
  gap: 8px;
  max-width: 760px;
}

.persona-heading h2 {
  font-size: 40px;
  line-height: 1.05;
  margin: 0;
}

.persona-heading span {
  color: var(--muted);
  font-size: 17px;
  font-weight: 750;
  line-height: 1.45;
}

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

.persona-card {
  background: var(--surface);
  border: 1px solid rgba(236, 226, 218, 0.92);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 14px;
  min-height: 520px;
  padding: 24px;
}

.persona-card-featured {
  background:
    radial-gradient(circle at 92% 10%, rgba(241, 90, 36, 0.12), transparent 27%),
    linear-gradient(180deg, #fffaf7, #ffffff);
  border-color: #ffd1bb;
}

.persona-card > svg {
  background: #fff2e9;
  border: 1px solid #ffd7c3;
  border-radius: 8px;
  color: var(--orange);
  height: 44px;
  padding: 10px;
  width: 44px;
}

.persona-card small {
  color: var(--orange);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.persona-card strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 1.12;
}

.persona-card p {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.45;
  margin: 0;
}

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

.persona-proof span {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 850;
  gap: 3px;
  min-height: 78px;
  padding: 12px;
}

.persona-proof b {
  color: var(--orange);
  font-size: 26px;
  line-height: 1;
}

.persona-card ul {
  border-top: 1px solid var(--line);
  color: var(--ink);
  display: grid;
  gap: 10px;
  font-weight: 800;
  line-height: 1.38;
  list-style: none;
  margin: 0;
  padding: 14px 0 0;
}

.persona-card li {
  display: grid;
  gap: 9px;
  grid-template-columns: 18px minmax(0, 1fr);
}

.persona-card li::before {
  background: var(--orange);
  border-radius: 999px;
  content: "";
  height: 8px;
  margin-top: 7px;
  width: 8px;
}

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

.entry-stack {
  display: grid;
  gap: 22px;
}

.entry-section {
  display: grid;
  gap: 12px;
}

.admin-entry-section {
  margin: 0 auto;
  max-width: 640px;
  width: 100%;
}

.entry-section-heading {
  align-items: end;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.entry-section-heading strong {
  color: var(--ink);
  font-size: 18px;
}

.entry-section-heading span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

.entry-card {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 12px;
  grid-column: span 2;
  min-height: 190px;
  padding: 22px;
  text-align: left;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.portal-grid .entry-card,
.setup-entry-grid .entry-card {
  grid-column: auto;
}

.entry-card-admin {
  background: #fffaf7;
  border-color: #ffd1bb;
  box-shadow: var(--shadow-soft);
  grid-column: auto;
  min-height: 178px;
}

.entry-card-large {
  grid-column: span 3;
  min-height: 210px;
}

.entry-card svg {
  color: var(--orange);
  height: 30px;
  width: 30px;
}

.entry-card strong {
  font-size: 22px;
}

.entry-card small {
  color: var(--orange);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.entry-card span {
  color: var(--muted);
  line-height: 1.4;
}

.entry-card:hover,
.entry-card.featured {
  background: var(--orange-soft);
  border-color: #ffd1bb;
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.compact-entry-card {
  min-height: 156px;
}

.compact-entry-card strong {
  font-size: 20px;
}

.demo-footer {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 14px 16px;
}

.demo-footer > div {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.demo-footer span {
  color: var(--muted);
  font-weight: 800;
}

.signup-shell {
  align-content: start;
}

.signup-panel {
  max-width: 980px;
}

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

.signup-grid label {
  color: var(--muted);
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 900;
}

.signup-grid input,
.signup-grid select,
.signup-grid textarea {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 44px;
  outline: 0;
  padding: 0 12px;
  width: 100%;
}

.signup-grid textarea {
  line-height: 1.4;
  min-height: 94px;
  padding: 10px 12px;
  resize: vertical;
}

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

.tier-card {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 5px;
  min-height: 94px;
  padding: 13px;
  text-align: left;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.tier-card:hover,
.tier-card.active {
  background: var(--orange-soft);
  border-color: #ffd1bb;
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.tier-summary strong {
  color: var(--orange);
}

.tier-summary b,
.plan-card b {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.1;
}

.tier-summary span {
  color: var(--muted);
  font-size: 13px;
}

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

.setup-summary .rule {
  min-height: 92px;
}

.app-shell {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  background: linear-gradient(180deg, #fffaf7 0%, #fff5ef 100%);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 22px;
  height: 100vh;
  padding: 28px 18px;
  position: sticky;
  top: 0;
}

.brand {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 98px minmax(0, 1fr);
  min-height: 44px;
  padding: 0 10px;
}

.brand img {
  display: block;
  height: auto;
  max-height: 26px;
  object-fit: contain;
  object-position: left center;
  width: 94px;
}

.brand strong {
  display: block;
  font-size: 20px;
  line-height: 1;
}

.brand span,
.sidebar-panel span,
.panel-header span,
.metric-card span,
.metric-card small,
.rule span,
.connection-card span,
.empty-state span,
.plan-card span,
.infographic-card span {
  color: var(--muted);
}

.mode-switch {
  background: #f2e6dc;
  border-radius: 8px;
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 4px;
}

.mode-switch button,
.nav-item,
.ghost-button,
.filter-button,
.icon-button,
.category-list button {
  background: transparent;
  border: 0;
  color: var(--muted);
}

.mode-switch button {
  border-radius: 7px;
  font-size: 12px;
  font-weight: 850;
  min-height: 36px;
  padding: 0 6px;
}

.mode-switch button.active {
  background: var(--surface);
  color: var(--orange);
  box-shadow: 0 6px 18px rgba(241, 90, 36, 0.12);
}

nav {
  display: grid;
  gap: 5px;
}

.nav-item {
  align-items: center;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 22px 1fr;
  min-height: 46px;
  padding: 0 12px;
  text-align: left;
  width: 100%;
}

.nav-item:hover {
  background: #fff4ed;
  color: var(--orange);
}

.nav-item.active {
  background: #ffe3d1;
  color: var(--orange);
  font-weight: 900;
  box-shadow: inset 3px 0 0 var(--orange);
}

.svg-icon {
  display: inline-block;
  flex: 0 0 auto;
  height: 20px;
  vertical-align: middle;
  width: 20px;
}

.svg-icon path {
  fill: currentColor;
}

.sidebar-panel {
  background: linear-gradient(180deg, #fff1e8, #ffffff);
  border: 1px solid #ffd7c3;
  border-radius: 8px;
  display: grid;
  gap: 9px;
  margin-top: auto;
  padding: 16px;
}

.sidebar-panel svg {
  color: var(--orange);
}

.workspace {
  align-content: start;
  display: grid;
  gap: 22px;
  padding: 30px 34px 38px;
}

.topbar {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(260px, 1fr) minmax(210px, auto) minmax(150px, auto) 48px auto;
}

.mode-client .topbar {
  grid-template-columns: minmax(260px, 1fr) minmax(150px, auto) 48px auto;
}

.search-field,
.client-picker,
.icon-button {
  background: var(--surface);
  border: 1px solid rgba(236, 226, 218, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.search-field,
.client-picker {
  align-items: center;
  display: flex;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
}

.search-field svg,
.client-picker svg {
  color: var(--muted);
}

.search-field input,
.client-picker select,
.form-grid input,
.form-grid select,
.form-grid textarea,
.inline-create input {
  background: transparent;
  border: 0;
  color: var(--ink);
  outline: 0;
  width: 100%;
}

.client-picker select {
  appearance: none;
  font-weight: 850;
}

.icon-button {
  align-items: center;
  display: grid;
  height: 48px;
  justify-items: center;
  width: 48px;
}

.profile-chip {
  display: grid;
  gap: 2px;
  min-width: 178px;
  text-align: left;
}

.profile-chip span {
  color: var(--muted);
  font-size: 12px;
}

.profile-chip strong {
  font-size: 14px;
}

.page-heading,
.panel-header {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.page-heading h1 {
  font-size: 34px;
  line-height: 1;
  margin: 0 0 7px;
}

.page-heading p,
.panel-header h2,
.panel-header span {
  margin: 0;
}

.page-heading p {
  color: var(--orange);
  font-weight: 800;
}

.primary-action,
.full,
.keyword-cloud > button {
  align-items: center;
  background: var(--orange);
  border: 0;
  border-radius: 8px;
  color: white;
  display: inline-flex;
  gap: 8px;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(241, 90, 36, 0.2);
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.primary-action:hover,
.keyword-cloud > button:hover {
  background: var(--orange-deep);
  box-shadow: 0 12px 28px rgba(217, 72, 19, 0.24);
  transform: translateY(-1px);
}

.full {
  width: 100%;
}

.dashboard-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.85fr);
}

.metric-row {
  display: grid;
  gap: 16px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card,
.panel,
.connection-card {
  background: var(--surface);
  border: 1px solid rgba(236, 226, 218, 0.92);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric-card {
  align-content: start;
  display: grid;
  gap: 8px;
  min-height: 138px;
  padding: 19px;
  position: relative;
}

.metric-card::after {
  background: var(--orange);
  border-radius: 999px;
  content: "";
  height: 3px;
  inset: auto 18px 14px 18px;
  opacity: 0.18;
  position: absolute;
}

.metric-card svg,
.rule svg,
.connection-card svg,
.empty-state svg,
.audit-list svg {
  color: var(--orange);
}

.metric-card strong {
  font-size: 32px;
  line-height: 1.05;
}

.metric-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel {
  min-width: 0;
  overflow: hidden;
  padding: 22px;
}

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

.table-panel::-webkit-scrollbar,
.category-list::-webkit-scrollbar,
.checkbox-grid::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

.table-panel::-webkit-scrollbar-thumb,
.category-list::-webkit-scrollbar-thumb,
.checkbox-grid::-webkit-scrollbar-thumb {
  background: #dccfc5;
  border-radius: 999px;
}

.panel-header {
  margin-bottom: 16px;
}

.panel-header h2 {
  font-size: 21px;
}

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

.chart-panel {
  min-height: 300px;
}

.line-chart {
  height: 205px;
  width: 100%;
}

.line-chart line {
  stroke: var(--line);
}

.line-chart path:last-of-type {
  fill: none;
  stroke: var(--orange);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.line-chart circle {
  fill: var(--surface);
  stroke: var(--orange);
  stroke-width: 4;
}

.line-chart text {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.filter-button,
.ghost-button {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  display: inline-flex;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  font-weight: 800;
  white-space: nowrap;
}

.filter-button:hover,
.ghost-button:hover {
  background: #fff4ed;
  border-color: #ffd7c3;
  color: var(--orange);
}

.ghost-button.dark {
  background: var(--graphite);
  color: white;
}

.api-sync {
  min-height: 48px;
}

.donut-wrap {
  align-items: center;
  display: grid;
  gap: 22px;
  grid-template-columns: 154px 1fr;
}

.donut {
  align-items: center;
  aspect-ratio: 1;
  background: conic-gradient(var(--orange) 0 34%, var(--peach) 34% 61%, var(--graphite) 61% 83%, var(--teal) 83% 100%);
  border-radius: 50%;
  display: grid;
  justify-items: center;
  position: relative;
}

.donut::after {
  background: var(--surface);
  border-radius: 50%;
  content: "";
  inset: 38px;
  position: absolute;
}

.donut span {
  font-weight: 900;
  position: relative;
  text-align: center;
  z-index: 1;
}

.donut small {
  color: var(--muted);
  font-weight: 750;
}

.legend {
  display: grid;
  gap: 12px;
}

.legend span {
  align-items: center;
  display: flex;
  gap: 10px;
}

.legend i {
  border-radius: 3px;
  display: inline-block;
  height: 28px;
  width: 7px;
}

.legend .orange { background: var(--orange); }
.legend .peach { background: var(--peach); }
.legend .graphite { background: var(--graphite); }
.legend .teal { background: var(--teal); }

table {
  border-collapse: collapse;
  min-width: 820px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 12px;
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.table-sort {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  gap: 6px;
  letter-spacing: inherit;
  padding: 0;
  text-align: left;
  text-transform: inherit;
}

.table-sort span {
  color: #b8aaa0;
  font-size: 12px;
}

.table-sort.active,
.table-sort.active span,
.table-sort:hover {
  color: var(--orange);
}

td {
  color: #4d4b49;
  max-width: 260px;
}

tbody tr {
  transition: background 0.15s ease;
}

tbody tr:hover,
.selected-row {
  background: #fff7f1;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.status-pill {
  align-items: center;
  border-radius: 7px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  min-height: 28px;
  padding: 0 10px;
  white-space: nowrap;
}

.status-pill.s-live-embed,
.status-pill.s-demo-ready,
.status-pill.s-director-tool,
.status-pill.s-private,
.status-pill.s-benchmark,
.status-pill.s-planning,
.status-pill.s-district,
.status-pill.s-opt-in-only,
.status-pill.s-director-opt-in,
.status-pill.s-contact-allowed,
.status-pill.s-high-fit,
.status-pill.s-connected {
  background: #e8f4ef;
  color: #28634c;
}

.status-pill.s-active,
.status-pill.s-generated,
.status-pill.s-ready,
.status-pill.s-waiting,
.status-pill.s-internal,
.status-pill.s-exported,
.status-pill.s-draft-prepared,
.status-pill.s-email-sent,
.status-pill.s-follow-up-scheduled,
.status-pill.s-in-progress,
.status-pill.s-strong-fit,
.status-pill.s-10-allowed,
.status-pill.s-20-allowed,
.status-pill.s-25-allowed,
.status-pill.s-50-allowed,
.status-pill.s-75-allowed,
.status-pill.s-100-allowed,
.status-pill.s-approved {
  background: var(--orange);
  color: white;
}

.status-pill.s-vendor {
  background: #fff0e8;
  color: var(--orange-deep);
}

.status-pill.s-pending,
.status-pill.s-new,
.status-pill.s-next,
.status-pill.s-nurture,
.status-pill.s-director-choice,
.status-pill.s-in-review,
.status-pill.s-needs-review,
.status-pill.s-review,
.status-pill.s-limited-data {
  background: #ffd8b6;
  color: #66360e;
}

.status-pill.s-restricted {
  background: var(--graphite);
  color: white;
}

.status-pill.s-closed {
  background: var(--graphite);
  color: white;
}

.status-pill.s-renewal-ok {
  background: #e8f4ef;
  color: #28634c;
}

.status-pill.s-renewal-90 {
  background: #fff0d8;
  color: #7b4a00;
}

.status-pill.s-renewal-60 {
  background: #ffd8b6;
  color: #66360e;
}

.status-pill.s-renewal-30,
.status-pill.s-renewal-due {
  background: #ffe1df;
  color: var(--danger);
}

.renewal-badge {
  min-width: 72px;
  justify-content: center;
}

.status-pill.s-suspended,
.status-pill.s-error {
  background: #ffe1df;
  color: var(--danger);
}

.split-layout,
.report-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1.38fr);
}

.report-side {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.infographic-panel {
  padding: 18px;
}

.infographic-card {
  background: linear-gradient(180deg, #fff8f3, #ffffff);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  padding: 18px;
}

.infographic-topline {
  display: grid;
  gap: 6px;
}

.infographic-topline > span {
  color: var(--orange);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.infographic-topline strong {
  font-size: 24px;
  line-height: 1.05;
}

.infographic-hero {
  align-items: center;
  background: var(--orange-soft);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  grid-template-columns: 116px minmax(0, 1fr);
  min-height: 128px;
  padding: 18px;
}

.infographic-hero strong {
  color: var(--orange);
  font-size: 48px;
  line-height: 1;
}

.infographic-hero span {
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

.mini-bars {
  display: grid;
  gap: 12px;
}

.mini-bars div {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.mini-bars span {
  font-size: 13px;
  font-weight: 850;
}

.mini-bars strong {
  color: var(--orange);
  font-size: 13px;
}

.mini-bars i {
  background: var(--line);
  border-radius: 999px;
  grid-column: 1 / -1;
  height: 10px;
  overflow: hidden;
  position: relative;
}

.mini-bars i::after {
  background: var(--orange);
  border-radius: inherit;
  content: "";
  inset: 0 auto 0 0;
  position: absolute;
  width: var(--w);
}

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

.infographic-callouts span {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
  min-height: 64px;
  padding: 12px;
}

.report-preview-card,
.report-visual-card {
  background: linear-gradient(135deg, #fff1e8, #ffffff 68%);
  border: 1px solid #ffd7c3;
  border-radius: 8px;
  display: grid;
  gap: 16px;
  padding: 18px;
}

.collective-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.collective-card {
  background: linear-gradient(180deg, #fffaf7, #ffffff);
  border: 1px solid rgba(236, 226, 218, 0.92);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  grid-template-rows: minmax(112px, auto) minmax(0, auto);
  min-height: 238px;
  min-width: 0;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.collective-card > div:first-child {
  align-content: start;
  display: grid;
  gap: 11px;
}

.collective-card .status-pill {
  justify-self: start;
}

.collective-card strong {
  font-size: 21px;
  line-height: 1.1;
}

.collective-card span {
  color: var(--muted);
  line-height: 1.4;
}

.collective-stat-row {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  padding-top: 14px;
}

.collective-stat-row span {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-sizing: border-box;
  color: var(--muted);
  display: grid;
  gap: 4px;
  min-height: 70px;
  min-width: 0;
  overflow-wrap: normal;
  padding: 11px;
  word-break: normal;
}

.collective-stat-row strong {
  color: var(--orange);
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1;
  min-width: 0;
}

.collective-signal-list {
  display: grid;
  gap: 12px;
}

.collective-signal-list article {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  min-height: 86px;
  padding: 14px;
}

.collective-signal-list svg {
  background: #fff2e9;
  border: 1px solid #ffd7c3;
  border-radius: 8px;
  color: var(--orange);
  height: 42px;
  padding: 10px;
  width: 42px;
}

.collective-signal-list div {
  display: grid;
  gap: 5px;
}

.collective-signal-list strong {
  color: var(--ink);
  font-size: 15px;
}

.collective-signal-list span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.collective-signal-list em {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  padding: 8px 10px;
  text-align: center;
  white-space: nowrap;
}

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

.intersection-grid article {
  background: linear-gradient(180deg, #fff8f4, #ffffff);
  border: 1px solid rgba(236, 226, 218, 0.92);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  min-height: 190px;
  padding: 18px;
}

.intersection-grid svg {
  background: #2f2f31;
  border-radius: 8px;
  color: #ffffff;
  height: 42px;
  padding: 10px;
  width: 42px;
}

.intersection-grid strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.15;
}

.intersection-grid span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.report-preview-card h3 {
  font-size: 25px;
  line-height: 1.1;
  margin: 0 0 6px;
}

.report-preview-card p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

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

.preview-stat-grid article,
.report-kpi-grid article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  min-height: 82px;
  padding: 13px;
}

.preview-stat-grid strong,
.report-kpi-grid strong {
  color: var(--orange);
  font-size: 24px;
  line-height: 1;
}

.preview-stat-grid span,
.report-kpi-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.report-detail-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.report-document {
  display: grid;
  gap: 22px;
}

.generated-brief-document {
  background:
    linear-gradient(180deg, rgba(255, 241, 232, 0.68), rgba(255, 255, 255, 0.96) 190px),
    var(--surface);
}

.generated-brief-document .report-document-header {
  border-bottom-color: #ffd7c3;
}

.brief-snapshot-card {
  background:
    radial-gradient(circle at 84% 8%, rgba(255, 94, 31, 0.18), transparent 28%),
    linear-gradient(135deg, #fff1e8, #ffffff 70%);
}

.brief-snapshot-card strong {
  font-size: 46px;
}

.generated-brief-layout .report-actions {
  display: grid;
  gap: 10px;
}

.generated-brief-layout .report-actions button {
  justify-content: center;
  width: 100%;
}

.report-document-header {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding-bottom: 18px;
}

.report-document-header h2 {
  font-size: 34px;
  line-height: 1.05;
  margin: 0 0 8px;
}

.report-document-header span {
  color: var(--muted);
  font-weight: 800;
}

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

.report-section {
  display: grid;
  gap: 12px;
}

.report-section h3 {
  font-size: 18px;
  margin: 0;
}

.report-section p {
  color: #4d4b49;
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
}

.finding-list,
.action-list,
.quote-list {
  display: grid;
  gap: 10px;
}

.finding-list article,
.action-list div {
  align-items: start;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 28px minmax(0, 1fr);
  padding: 14px;
}

.finding-list svg,
.action-list svg {
  color: var(--orange);
}

.finding-list strong {
  display: block;
  margin-bottom: 4px;
}

.finding-list span,
.action-list span {
  color: var(--muted);
  line-height: 1.42;
}

.quote-list blockquote {
  background: #fffaf7;
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  color: #4d4b49;
  font-weight: 750;
  line-height: 1.45;
  margin: 0;
  padding: 14px 16px;
}

.insight-engine-layout {
  display: grid;
  gap: 18px;
}

.insight-engine-hero {
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 94, 31, 0.16), transparent 26%),
    linear-gradient(135deg, #fff1e8, #ffffff 66%);
}

.insight-engine-hero .status-pill {
  justify-self: end;
  max-width: 260px;
  text-align: center;
  white-space: normal;
}

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

.insight-opportunity-card {
  align-items: start;
  background: linear-gradient(180deg, #fffaf7, #ffffff);
  border: 1px solid rgba(236, 226, 218, 0.92);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: 44px minmax(0, 1fr);
  min-height: 178px;
  padding: 16px;
}

.insight-opportunity-card > svg {
  background: #fff2e9;
  border: 1px solid #ffd7c3;
  border-radius: 8px;
  color: var(--orange);
  height: 44px;
  padding: 10px;
  width: 44px;
}

.insight-opportunity-card div {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.insight-opportunity-card small {
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.insight-opportunity-card strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.15;
}

.insight-opportunity-card span {
  color: var(--muted);
  line-height: 1.43;
}

.insight-opportunity-card .ghost-button {
  grid-column: 2;
  justify-self: start;
}

.insight-split {
  align-items: stretch;
}

.insight-output-grid .rule {
  align-items: start;
  min-height: 154px;
}

.lead-hero {
  background:
    radial-gradient(circle at 88% 12%, rgba(47, 47, 49, 0.1), transparent 30%),
    linear-gradient(135deg, #fff1e8, #ffffff 66%);
}

.lead-headsup-panel {
  background:
    radial-gradient(circle at 96% 8%, rgba(255, 94, 31, 0.12), transparent 25%),
    linear-gradient(180deg, #fffaf7, #ffffff);
}

.lead-headsup-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

.lead-headsup-grid article {
  background: white;
  border: 1px solid #ffd7c3;
  border-radius: 8px;
  display: grid;
  gap: 7px;
  min-height: 118px;
  padding: 15px;
}

.lead-headsup-grid svg {
  color: var(--orange);
}

.lead-headsup-grid strong {
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
}

.lead-headsup-grid span {
  color: var(--muted);
  font-weight: 850;
}

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

.lead-headsup-list > div {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 28px minmax(0, 1fr) auto auto;
  min-height: 66px;
  padding: 12px 14px;
}

.lead-headsup-list svg {
  color: var(--orange);
}

.lead-headsup-list span {
  color: var(--muted);
  display: grid;
  gap: 3px;
  line-height: 1.35;
}

.lead-headsup-list strong {
  color: var(--ink);
  font-size: 15px;
}

.lead-headsup-score,
.lead-table-fit {
  align-items: center;
  background: white;
  border: 1px solid #ffd7c3;
  border-radius: 8px;
  display: inline-grid;
  gap: 2px;
  justify-items: center;
  min-width: 72px;
  padding: 8px 10px;
}

.lead-headsup-score strong,
.lead-table-fit strong {
  color: var(--orange);
  font-size: 20px;
  line-height: 1;
}

.lead-headsup-score small,
.lead-table-fit span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}

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

.lead-card,
.vendor-match-card {
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 94, 31, 0.12), transparent 26%),
    linear-gradient(180deg, #fffaf7, #ffffff);
  border: 1px solid rgba(236, 226, 218, 0.92);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  min-height: 340px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.vendor-match-card {
  align-items: start;
  grid-template-columns: 44px minmax(0, 1fr) auto;
}

.lead-card-top {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: 50px minmax(0, 1fr) auto;
}

.vendor-match-card > svg {
  background: #fff2e9;
  border: 1px solid #ffd7c3;
  border-radius: 8px;
  color: var(--orange);
  height: 44px;
  padding: 10px;
  width: 44px;
}

.lead-avatar {
  align-items: center;
  background: var(--orange);
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(255, 94, 31, 0.18);
  color: white;
  display: grid;
  height: 50px;
  justify-items: center;
  width: 50px;
}

.lead-avatar svg {
  height: 24px;
  width: 24px;
}

.lead-card-top div,
.vendor-match-card div {
  min-width: 0;
}

.lead-card-top small {
  color: var(--orange);
  display: block;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.lead-card-top strong,
.vendor-match-card strong {
  color: var(--ink);
  display: block;
  font-size: 21px;
  line-height: 1.15;
}

.lead-card-top span,
.vendor-match-card span {
  color: var(--muted);
  line-height: 1.42;
}

.lead-intent {
  background: #ffffff;
  border: 1px solid #ffd7c3;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 14px;
}

.lead-intent span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.lead-intent strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.lead-fit-panel {
  background: #ffffff;
  border: 1px solid #ffd7c3;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 116px minmax(0, 1fr);
  padding: 14px;
}

.lead-fit-score {
  background: #fff2e9;
  border: 1px solid #ffd0b9;
  border-radius: 8px;
  display: grid;
  gap: 7px;
  min-height: 118px;
  padding: 13px;
}

.lead-fit-score strong {
  color: var(--orange);
  font-size: 38px;
  line-height: 1;
}

.lead-fit-score span,
.lead-fit-detail small {
  color: var(--orange);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lead-fit-score i,
.lead-fit-readout i {
  background: #ffe3d3;
  border-radius: 999px;
  display: block;
  height: 8px;
  overflow: hidden;
}

.lead-fit-score i::after,
.lead-fit-readout i::after {
  background: var(--orange);
  border-radius: inherit;
  content: "";
  display: block;
  height: 100%;
  width: var(--w);
}

.lead-fit-detail {
  align-content: center;
  display: grid;
  gap: 7px;
}

.lead-fit-detail strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.lead-fit-detail span {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.4;
}

.lead-card-meta {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.packet-progress {
  background: #fffaf7;
  border: 1px solid #ffd7c3;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 13px;
}

.packet-progress > div {
  display: grid;
  gap: 3px;
}

.packet-progress span {
  color: var(--orange);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.packet-progress strong {
  color: var(--ink);
  font-size: 16px;
}

.packet-progress small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.packet-progress i {
  background: #ffe3d3;
  border-radius: 999px;
  display: block;
  height: 8px;
  overflow: hidden;
}

.packet-progress i::after {
  background: var(--orange);
  border-radius: inherit;
  content: "";
  display: block;
  height: 100%;
  width: var(--w);
}

.lead-contact {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 13px;
}

.lead-source {
  align-items: start;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 26px minmax(0, 1fr);
  padding: 13px;
}

.lead-source svg {
  color: var(--orange);
  height: 24px;
  width: 24px;
}

.lead-source span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.38;
}

.lead-contact span,
.vendor-match-card small {
  color: var(--orange);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lead-contact a {
  color: var(--ink);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.lead-card-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding-top: 14px;
}

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

.lead-chip-row span {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  padding: 7px 10px;
}

.vendor-match-actions {
  align-items: end;
  display: grid;
  gap: 10px;
  justify-items: end;
}

.vendor-match-actions button:disabled {
  cursor: default;
  opacity: 0.68;
}

.consent-note {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: grid;
  gap: 12px;
  grid-template-columns: 28px minmax(0, 1fr);
  padding: 14px;
}

.consent-note svg {
  color: var(--orange);
}

.muted-cell {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.packet-email {
  background: #fffaf7;
  border: 1px solid #ffd7c3;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 16px;
}

.packet-email strong {
  color: var(--ink);
  font-size: 18px;
}

.packet-email p {
  color: #4d4b49;
  line-height: 1.55;
  margin: 0;
}

.packet-checklist {
  display: grid;
  gap: 10px;
}

.packet-checklist label {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  gap: 10px;
  font-weight: 800;
  min-height: 48px;
  padding: 12px 14px;
}

.packet-checklist input {
  accent-color: var(--orange);
  height: 16px;
  width: 16px;
}

.lead-fit-readout {
  background: #fffaf7;
  border: 1px solid #ffd7c3;
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: 150px minmax(0, 1fr);
  padding: 16px;
}

.lead-fit-readout > div {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 16px;
}

.lead-fit-readout > div strong {
  color: var(--orange);
  font-size: 46px;
  line-height: 1;
}

.lead-fit-readout > div span,
.lead-fit-readout small {
  color: var(--orange);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lead-fit-readout article {
  display: grid;
  gap: 8px;
}

.lead-fit-readout article strong {
  color: var(--ink);
  font-size: 20px;
}

.lead-fit-readout ul {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.45;
  margin: 0;
  padding-left: 18px;
}

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

.packet-workflow div {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 7px;
  min-height: 118px;
  padding: 12px;
}

.packet-workflow div.active {
  background: #fff2e9;
  border-color: #ffd0b9;
}

.packet-workflow span {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 12px;
  font-weight: 950;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.packet-workflow div.active span {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
}

.packet-workflow strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.2;
}

.packet-workflow small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.3;
}

.packet-action-grid {
  display: grid;
  gap: 10px;
}

.packet-action-grid button {
  justify-content: center;
  width: 100%;
}

.packet-history {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
}

.packet-history div {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: grid;
  gap: 10px;
  grid-template-columns: 22px minmax(0, 1fr);
  padding: 10px 12px;
}

.packet-history svg {
  color: var(--orange);
  height: 20px;
  width: 20px;
}

.lead-contact.large {
  margin-bottom: 14px;
  min-height: 112px;
}

.lead-contact.large strong {
  font-size: 22px;
}

.report-visual-card strong {
  color: var(--orange);
  font-size: 54px;
  line-height: 1;
}

.report-visual-card > span {
  color: var(--ink);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.35;
}

.report-actions {
  margin-top: 16px;
}

.admin-editor {
  grid-template-columns: minmax(0, 1.1fr) minmax(390px, 0.9fr);
}

.district-editor {
  grid-template-columns: 1fr;
}

.district-editor .table-panel {
  overflow-x: visible;
}

.category-list {
  display: grid;
  gap: 6px;
  max-height: 610px;
  overflow: auto;
  padding-right: 4px;
}

.category-list button {
  border-radius: 8px;
  display: grid;
  gap: 2px;
  min-height: 46px;
  padding: 7px 12px;
  text-align: left;
}

.category-list button small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.category-list button.active {
  background: var(--peach);
  color: var(--orange);
  font-weight: 900;
}

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

.form-grid label {
  color: var(--muted);
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 900;
}

.form-grid label small {
  color: var(--orange);
  font-weight: 900;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 42px;
  padding: 0 12px;
}

.form-grid textarea {
  line-height: 1.4;
  min-height: 92px;
  padding: 10px 12px;
  resize: vertical;
}

.request-note {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  font-size: 12px;
  font-weight: 850;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
}

.request-note .svg-icon {
  color: var(--orange);
  flex: 0 0 auto;
}

.span-2 {
  grid-column: 1 / -1;
}

.form-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.checkbox-grid {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 220px;
  overflow: auto;
  padding: 10px;
}

.checkbox-pill {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink) !important;
  display: flex !important;
  gap: 8px !important;
  min-height: 34px !important;
  padding: 7px 9px !important;
}

.checkbox-pill input {
  accent-color: var(--orange);
  width: auto;
}

.inline-create {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) 40px;
  margin-bottom: 14px;
  min-height: 46px;
  padding: 4px 4px 4px 12px;
}

.inline-create.spacious {
  margin-top: 18px;
}

.inline-create button {
  align-items: center;
  background: var(--orange);
  border: 0;
  border-radius: 7px;
  color: white;
  display: grid;
  height: 38px;
  justify-items: center;
}

.inline-create button:disabled,
.inline-create input:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.keyword-cloud {
  align-content: start;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 150px;
  padding: 14px;
}

.keyword-cloud span {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  gap: 8px;
  min-height: 34px;
  padding: 7px 11px;
  font-weight: 850;
}

.mini-remove {
  align-items: center;
  background: rgba(47, 48, 51, 0.1);
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  display: inline-grid;
  font-size: 12px;
  height: 19px;
  justify-items: center;
  line-height: 1;
  width: 19px;
}

.rule-list {
  display: grid;
  gap: 12px;
}

.gap-list,
.training-plan,
.trend-list,
.trend-signal-grid {
  display: grid;
  gap: 12px;
}

.gap-list article,
.training-plan div,
.trend-list article {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.operator-hero {
  align-items: center;
  background: linear-gradient(135deg, #fff1e8, #ffffff 62%);
  border: 1px solid #ffd7c3;
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 24px;
}

.operator-hero h2 {
  font-size: 32px;
  line-height: 1.08;
  margin: 0 0 8px;
  max-width: 820px;
}

.operator-hero span {
  color: var(--muted);
  display: block;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.45;
  max-width: 860px;
}

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

.pipeline-grid article,
.packet-grid article {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  min-height: 128px;
  padding: 15px;
}

.pipeline-grid svg {
  color: var(--orange);
}

.pipeline-grid strong,
.packet-grid strong {
  font-size: 17px;
}

.pipeline-grid span,
.packet-grid span {
  color: var(--muted);
  line-height: 1.38;
}

.readiness-panel {
  display: grid;
  gap: 14px;
}

.readiness-meter {
  background: linear-gradient(135deg, #fff1e8, #ffffff);
  border: 1px solid #ffd7c3;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 18px;
}

.readiness-meter strong {
  color: var(--orange);
  font-size: 30px;
  line-height: 1;
}

.readiness-meter span {
  color: var(--ink);
  font-weight: 850;
}

.gap-list article {
  grid-template-columns: minmax(0, 1fr) auto;
}

.gap-list article p {
  color: var(--muted);
  grid-column: 1 / -1;
  line-height: 1.4;
  margin: 0;
}

.gap-list strong {
  display: block;
}

.gap-list span {
  color: var(--muted);
  font-size: 13px;
}

.training-plan div {
  align-items: center;
  grid-template-columns: 28px 1fr;
}

.training-plan svg {
  color: var(--orange);
}

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

.trend-list article {
  grid-template-columns: minmax(0, 1fr) auto;
}

.trend-list article strong {
  font-size: 18px;
}

.trend-list article span {
  color: var(--orange);
  font-weight: 950;
}

.trend-list article p {
  color: var(--muted);
  grid-column: 1 / -1;
  line-height: 1.45;
  margin: 0;
}

.brief-preview {
  background: linear-gradient(135deg, #fff1e8, #ffffff 68%);
  border: 1px solid #ffd7c3;
  border-radius: 8px;
  display: grid;
  gap: 16px;
  margin-top: 16px;
  padding: 18px;
}

.training-packet {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  margin-top: 16px;
  padding: 18px;
}

.training-packet h3 {
  font-size: 24px;
  line-height: 1.1;
  margin: 0 0 6px;
}

.training-packet > div > span {
  color: var(--muted);
}

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

.packet-grid article {
  background: white;
  min-height: 118px;
}

.brief-preview h3 {
  font-size: 24px;
  line-height: 1.1;
  margin: 0 0 6px;
}

.brief-preview span {
  color: var(--muted);
}

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

.brief-grid article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  min-height: 82px;
  padding: 12px;
}

.brief-grid strong {
  color: var(--orange);
  font-size: 22px;
}

.pending-panel {
  display: grid;
  gap: 24px;
}

.pending-hero {
  align-items: center;
  background: var(--orange-soft);
  border: 1px solid #ffd7c3;
  border-radius: 8px;
  display: grid;
  gap: 18px;
  grid-template-columns: 54px 1fr;
  padding: 22px;
}

.pending-hero svg {
  color: var(--orange);
  height: 38px;
  width: 38px;
}

.pending-hero h2 {
  font-size: 28px;
  margin: 0 0 8px;
}

.pending-hero p:last-child {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

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

.pending-grid article {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  min-height: 96px;
  padding: 16px;
}

.pending-grid strong {
  color: var(--ink);
}

.pending-grid span {
  color: var(--muted);
}

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

.readiness-card {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  min-height: 154px;
  padding: 16px;
}

.readiness-card .status-pill {
  justify-self: start;
}

.readiness-card strong {
  font-size: 19px;
}

.readiness-card span:last-child {
  color: var(--muted);
  line-height: 1.4;
}

.assistant-layout {
  display: grid;
  gap: 18px;
}

.assistant-panel {
  min-height: 720px;
}

.assistant-prompt-panel {
  display: grid;
  gap: 14px;
}

.prompt-card {
  align-items: start;
  background: linear-gradient(135deg, #fff1e8, #ffffff 68%);
  border: 1px solid #ffd7c3;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 34px minmax(0, 1fr);
  padding: 16px;
}

.prompt-card svg {
  color: var(--orange);
  height: 28px;
  width: 28px;
}

.prompt-card strong {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
}

.prompt-card p {
  color: var(--ink);
  font-weight: 750;
  line-height: 1.45;
  margin: 0;
}

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

.prompt-chip-row span {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  min-height: 34px;
  padding: 8px 10px;
}

.assistant-frame {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 630px;
  overflow: hidden;
  position: relative;
}

.assistant-frame > script {
  display: none;
}

.assistant-loading {
  align-items: center;
  color: var(--muted);
  display: grid;
  gap: 10px;
  inset: 0;
  justify-items: center;
  min-height: 600px;
  padding: 28px;
  position: absolute;
  text-align: center;
}

.assistant-loading svg {
  color: var(--orange);
  height: 38px;
  width: 38px;
}

.assistant-loading strong {
  color: var(--ink);
  font-size: 22px;
}

.rule {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 32px 1fr;
  min-height: 70px;
  padding: 14px;
}

.rule strong,
.connection-card strong {
  display: block;
}

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

.connection-card {
  display: grid;
  gap: 9px;
  min-height: 152px;
  padding: 16px;
}

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

.plan-card {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 16px;
}

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

.plan-rules {
  margin-top: 18px;
}

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

.audit-list div {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 28px 1fr;
  min-height: 56px;
  padding: 12px 14px;
}

.action-cell {
  display: flex;
  gap: 8px;
}

.empty-state {
  align-items: center;
  display: grid;
  justify-items: center;
  min-height: 320px;
  text-align: center;
}

.toast {
  background: var(--graphite);
  border-radius: 8px;
  bottom: 24px;
  box-shadow: var(--shadow);
  color: white;
  font-weight: 850;
  min-height: 46px;
  padding: 13px 17px;
  position: fixed;
  right: 24px;
  z-index: 20;
}

@media (max-width: 1180px) {
  .landing-hero {
    grid-template-columns: 1fr;
  }

  .landing-visual {
    max-width: 760px;
  }

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

  .persona-card {
    min-height: auto;
  }

  .app-shell {
    grid-template-columns: 88px minmax(0, 1fr);
  }

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

  .brand img {
    width: 56px;
  }

  .brand div,
  .nav-item span,
  .sidebar-panel,
  .mode-switch {
    display: none;
  }

  .sidebar {
    padding: 22px 14px;
  }

  .nav-item {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .metric-row,
  .lead-headsup-grid,
  .connection-grid,
  .plan-grid,
  .pending-grid,
  .readiness-grid,
  .pipeline-grid,
  .packet-grid,
  .collective-grid,
  .intersection-grid,
  .collective-stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .entry-card,
  .entry-card-large {
    grid-column: auto;
  }

  .dashboard-grid,
  .split-layout,
  .report-layout,
  .admin-editor,
  .report-detail-layout,
  .operator-hero,
  .insight-card-grid,
  .lead-card-grid,
  .vendor-match-grid,
  .packet-workflow {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .entry-shell {
    padding: 20px 14px;
  }

  .landing-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .landing-nav-actions,
  .landing-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .landing-hero {
    gap: 24px;
    min-height: auto;
  }

  .landing-visual {
    padding: 14px;
  }

  .landing-visual-grid {
    grid-template-columns: 1fr;
  }

  .landing-visual-chart {
    height: 138px;
    padding: 16px;
  }

  .persona-heading h2 {
    font-size: 30px;
  }

  .persona-proof {
    grid-template-columns: 1fr;
  }

  .entry-panel {
    padding: 22px;
  }

  .entry-copy h1,
  .signup-panel h1 {
    font-size: 34px;
  }

  .entry-grid,
  .portal-grid,
  .setup-entry-grid,
  .signup-grid,
  .tier-summary,
  .setup-summary,
  .brief-grid,
  .lead-headsup-grid,
  .pipeline-grid,
  .packet-grid,
  .collective-grid,
  .intersection-grid,
  .collective-stat-row,
  .lead-card-meta {
    grid-template-columns: 1fr;
  }

  .lead-headsup-list > div {
    align-items: start;
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .lead-headsup-score,
  .lead-headsup-list .status-pill {
    grid-column: 2;
    justify-self: start;
  }

  .entry-card,
  .entry-card-large {
    grid-column: auto;
  }

  .collective-signal-list article {
    align-items: start;
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .collective-signal-list em {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .demo-footer {
    align-items: stretch;
    flex-direction: column;
  }

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

  .sidebar {
    height: auto;
    position: static;
  }

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

  .nav-item span,
  .mode-switch,
  .brand div {
    display: block;
  }

  .workspace {
    padding: 20px 14px;
  }

  .topbar,
  .metric-row,
  .form-grid,
  .connection-grid,
  .plan-grid,
    .pending-grid,
    .readiness-grid,
    .preview-stat-grid,
    .report-kpi-grid,
    .insight-card-grid,
    .lead-card-grid,
    .vendor-match-grid,
    .checkbox-grid {
    grid-template-columns: 1fr;
  }

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

  .lead-fit-panel,
  .lead-fit-readout {
    grid-template-columns: 1fr;
  }

  .lead-card-footer {
    align-items: stretch;
    flex-direction: column;
  }

.lead-card-footer .primary-action {
    justify-content: center;
    width: 100%;
  }

  .page-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .donut-wrap {
    grid-template-columns: 1fr;
  }

  table {
    font-size: 14px;
  }

  th,
  td {
    padding: 11px 8px;
  }
}
