:root {
  color-scheme: dark;
  --page: #0d1117;
  --header: #0a0e13;
  --surface: #151b23;
  --surface-strong: #121926;
  --control: #1b232e;
  --line: #232c38;
  --line-soft: rgba(35, 44, 56, 0.6);
  --ink: #e8edf3;
  --ink-2: #aeb9c6;
  --ink-3: #7b8794;
  --accent: #3b82f6;
  --accent-light: #7fb0f9;
  --accent-wash: rgba(59, 130, 246, 0.16);
  --good: #22c55e;
  --good-light: #4ade80;
  --good-wash: rgba(34, 197, 94, 0.14);
  --warn: #f59e0b;
  --warn-light: #fbbf24;
  --warn-wash: rgba(245, 158, 11, 0.14);
  --danger: #ef4444;
  --danger-light: #f87171;
  --danger-wash: rgba(239, 68, 68, 0.13);
  --shadow: 0 16px 44px rgba(0, 0, 0, 0.16);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--page);
  color: var(--ink);
  font: 14px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: #6ea4f8;
}

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

:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.8);
  outline-offset: 3px;
}

.sr-only {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.topbar {
  align-items: center;
  background: var(--header);
  display: flex;
  gap: 16px;
  min-height: 62px;
  padding: 14px 40px;
}

.brand {
  align-items: center;
  color: var(--ink);
  display: flex;
  font-size: 15px;
  font-weight: 800;
  gap: 12px;
  letter-spacing: 0.16em;
}

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

.brand-mark {
  background: var(--accent);
  border-radius: 9px;
  display: grid;
  height: 34px;
  place-items: center;
  width: 34px;
}

.brand-mark svg {
  display: block;
  height: 16px;
  width: 16px;
}

.product-name {
  border-left: 1px solid var(--line);
  color: var(--ink-3);
  padding-left: 16px;
}

.service-state {
  align-items: center;
  color: var(--ink-2);
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.status-dot {
  background: var(--good);
  border-radius: 50%;
  height: 8px;
  width: 8px;
}

.nav {
  align-items: center;
  background: var(--header);
  border-bottom: 1px solid var(--line);
  display: flex;
  padding: 0 40px;
}

.nav a {
  border-bottom: 2px solid transparent;
  color: var(--ink-3);
  font-weight: 600;
  margin-bottom: -1px;
  margin-right: 28px;
  padding: 14px 2px 12px;
}

.nav a:hover {
  color: var(--ink-2);
}

.nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
  color: var(--ink);
}

.nav form {
  margin-left: auto;
}

.nav button {
  background: transparent;
  border: 0;
  color: var(--ink-3);
  cursor: pointer;
  padding: 14px 2px 12px;
}

.nav button:hover {
  color: var(--ink-2);
}

main {
  box-sizing: content-box;
  margin: 0 auto;
  max-width: 1440px;
  padding: 28px 40px 60px;
}

.page-heading {
  align-items: center;
  background: linear-gradient(135deg, var(--surface-strong), #0e141d 55%);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 30px 34px;
}

.eyebrow {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin: 0 0 4px;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 6px 0 8px;
}

.page-heading > div > p:last-child {
  color: var(--ink-2);
  font-size: 15px;
  margin: 0;
}

.people-heading > p:last-child {
  color: var(--ink-2);
  font-size: 14px;
  margin: 0;
}

.privacy-label {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  flex: none;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
}

.filterbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 16px;
}

.range-form {
  align-items: center;
  display: flex;
  gap: 12px;
}

.range-form label {
  font-weight: 700;
}

.range-form select,
.range-form button,
.people-filters input,
.people-filters select,
.people-filters button:not(.sr-only) {
  background: var(--control);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 38px;
  padding: 8px 12px;
}

.range-form select,
.people-filters select,
.people-filters input {
  color: var(--ink);
}

.range-form button,
.people-filters button:not(.sr-only) {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  padding-left: 18px;
  padding-right: 18px;
}

.range-form button:hover,
.people-filters button:not(.sr-only):hover {
  background: #4a8cf7;
}

.freshness {
  color: var(--ink-3);
  font-size: 12.5px;
  margin-left: auto;
  text-align: right;
}

.freshness strong {
  color: var(--ink);
  display: block;
  font-size: 14px;
}

.htmx-indicator {
  color: var(--ink-3);
  display: none;
  font-size: 12px;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
  display: inline;
}

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

.summary-card,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
}

.summary-card {
  border-radius: 12px;
  overflow: hidden;
  padding: 18px 20px 16px;
  position: relative;
}

.summary-card::before {
  background: transparent;
  content: "";
  height: 3px;
  inset: 0 0 auto;
  position: absolute;
}

.summary-card.accent::before {
  background: var(--accent);
}

.summary-card.good::before {
  background: var(--good);
}

.summary-card h2 {
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  margin: 0;
}

.summary-value {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 8px 0 6px;
}

.summary-value span {
  color: var(--ink-3);
  font-size: 20px;
  font-weight: 600;
}

.summary-detail {
  color: var(--ink-3);
  font-size: 12px;
  margin: 8px 0 0;
}

progress {
  appearance: none;
  background: var(--control);
  border: 0;
  border-radius: 4px;
  display: block;
  height: 8px;
  overflow: hidden;
  width: 100%;
}

progress::-webkit-progress-bar {
  background: var(--control);
}

progress::-webkit-progress-value {
  background: var(--accent);
  border-radius: 4px;
}

progress::-moz-progress-bar {
  background: var(--accent);
  border-radius: 4px;
}

.engagement-meter {
  height: 6px;
}

.overview-stack {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.panel {
  border-radius: 14px;
  min-width: 0;
  padding: 22px 24px;
}

.panel-heading {
  align-items: baseline;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.panel-heading h2 {
  font-size: 17px;
  margin: 0;
}

.panel-heading > span,
.panel-heading p:not(.eyebrow) {
  color: var(--ink-3);
  font-size: 12.5px;
  margin: 3px 0 0;
}

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

table {
  border-collapse: collapse;
  font-size: 13.5px;
  width: 100%;
}

th {
  border-bottom: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 10px 12px;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

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

.numeric {
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.campaign-pill {
  background: var(--accent-wash);
  border-radius: 7px;
  color: var(--accent-light);
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  white-space: nowrap;
}

.status-pill {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 600;
  gap: 6px;
  padding: 4px 12px;
  white-space: nowrap;
}

.status-pill i {
  background: currentColor;
  border-radius: 50%;
  height: 6px;
  width: 6px;
}

.status-pill.good,
.status-pill.accent {
  background: var(--good-wash);
  color: var(--good-light);
}

.status-pill.accent {
  background: var(--accent-wash);
  color: var(--accent-light);
}

.status-pill.warn {
  background: var(--warn-wash);
  color: var(--warn-light);
}

.status-pill.danger {
  background: var(--danger-wash);
  color: var(--danger-light);
}

.section-intro {
  align-items: baseline;
  display: flex;
  gap: 12px;
  margin: 30px 0 12px;
}

.section-intro p {
  margin-bottom: 0;
}

.section-intro p:last-child {
  color: var(--ink-3);
  font-size: 12.5px;
}

.division-grid {
  align-items: start;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.division-grid > .panel:first-child {
  flex: 1 1 620px;
}

.posture-panel {
  flex: 1 1 360px;
  max-width: 100%;
}

.posture-panel .panel-heading {
  margin-bottom: 12px;
}

.posture-panel table {
  font-size: 13px;
}

.posture-panel th {
  padding: 8px 10px;
}

.posture-panel td {
  padding: 10px;
}

.division-table {
  min-width: 640px;
}

.division-table th {
  white-space: normal;
}

.table-sub {
  color: var(--ink-3);
  display: block;
  font-size: 12px;
  font-weight: 400;
  margin-top: 1px;
  white-space: nowrap;
}

.meter-with-value {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  min-width: 134px;
}

.meter-with-value progress {
  height: 7px;
  width: 96px;
}

.meter-with-value strong {
  font-variant-numeric: tabular-nums;
  min-width: 26px;
  text-align: right;
}

.risk-meter.good::-webkit-progress-value {
  background: var(--good);
}

.risk-meter.good::-moz-progress-bar {
  background: var(--good);
}

.risk-meter.warn::-webkit-progress-value {
  background: var(--warn);
}

.risk-meter.warn::-moz-progress-bar {
  background: var(--warn);
}

.risk-meter.danger::-webkit-progress-value {
  background: var(--danger);
}

.risk-meter.danger::-moz-progress-bar {
  background: var(--danger);
}

.meter-with-value.engagement {
  gap: 9px;
  min-width: 215px;
}

.engagement-track {
  background: var(--control);
  border: 1px solid var(--line);
  border-radius: 4px;
  display: inline-block;
  height: 8px;
  overflow: visible;
  position: relative;
  width: 150px;
}

.engagement-track progress {
  background: transparent;
  border-radius: 4px;
  height: 8px;
  inset: 0;
  position: absolute;
  width: 100%;
}

.engagement-track progress::-webkit-progress-bar {
  background: transparent;
}

.engagement-shown::-webkit-progress-value {
  background: var(--accent-wash);
}

.engagement-shown::-moz-progress-bar {
  background: var(--accent-wash);
}

.engagement-engaged.accent::-webkit-progress-value {
  background: var(--accent);
}

.engagement-engaged.accent::-moz-progress-bar {
  background: var(--accent);
}

.engagement-engaged.good::-webkit-progress-value {
  background: var(--good);
}

.engagement-engaged.good::-moz-progress-bar {
  background: var(--good);
}

.engagement-track.has-threshold::after {
  background: var(--ink-3);
  border-radius: 1px;
  bottom: -4px;
  content: "";
  display: block;
  left: 90.91%;
  position: absolute;
  top: -4px;
  width: 2px;
}

.meter-with-value.engagement strong {
  min-width: 48px;
  white-space: nowrap;
}

.waiver-rate.good {
  color: var(--good-light);
}

.waiver-rate.danger {
  color: var(--danger-light);
}

.category-tag {
  border: 1px solid;
  border-radius: 5px;
  display: inline-block;
  font-size: 11px;
  padding: 1.5px 8px;
  white-space: nowrap;
}

.category-tag.good {
  background: var(--good-wash);
  border-color: rgba(34, 197, 94, 0.35);
  color: var(--good-light);
}

.category-tag.danger {
  background: var(--danger-wash);
  border-color: rgba(239, 68, 68, 0.35);
  color: var(--danger-light);
}

.posture-tabs {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  margin: 0 0 14px;
  overflow: hidden;
}

.posture-tabs button {
  background: transparent;
  border: 0;
  color: var(--ink-3);
  cursor: pointer;
  font: inherit;
  font-size: 12.5px;
  padding: 7px 13px;
}

.posture-tabs button + button {
  border-left: 1px solid var(--control-border, var(--line));
}

.posture-tabs button[aria-selected="true"] {
  background: var(--control);
  color: var(--ink);
  font-weight: 700;
}

.organization-posture {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 0;
}

.organization-posture[hidden] {
  display: none;
}

.organization-posture-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 104px 1fr;
}

.organization-posture-row > span:first-child {
  color: var(--ink-2);
  font-size: 11.5px;
  text-align: right;
}

.organization-posture-row > span:last-child {
  align-items: center;
  display: flex;
  gap: 8px;
}

.organization-posture-meter {
  background: transparent;
  border-radius: 0 4px 4px 0;
  flex: 1 1 140px;
  height: 16px;
  max-width: 160px;
  min-width: 72px;
}

.organization-posture-meter::-webkit-progress-bar {
  background: transparent;
}

.organization-posture-meter::-webkit-progress-value {
  background: var(--accent);
  border-radius: 0 4px 4px 0;
}

.organization-posture-meter::-moz-progress-bar {
  background: var(--accent);
  border-radius: 0 4px 4px 0;
}

.organization-posture-row strong {
  font-size: 11.5px;
  font-weight: 600;
}

.organization-posture-row b {
  color: transparent;
  font-size: 10.5px;
  font-weight: 600;
}

.organization-posture-row b.good {
  color: var(--good-light);
}

.organization-posture-row b.danger {
  color: var(--danger-light);
}

.organization-posture > p {
  color: var(--ink-3);
  font-size: 12px;
  margin: 10px 0 0;
}

.empty-state {
  align-items: center;
  background: var(--control);
  border: 1px dashed #334052;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 180px;
  padding: 24px;
  text-align: center;
}

.empty-state p {
  color: var(--ink-3);
  font-size: 12.5px;
  margin: 4px 0 0;
}

.people-heading {
  margin: 6px 0 18px;
}

.people-heading h1 {
  font-size: 28px;
  margin-bottom: 4px;
}

.people-filters {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.people-filters input {
  min-width: 240px;
}

.people-panel {
  padding: 10px 24px 14px;
}

.people-summary {
  color: var(--ink-3);
  font-size: 12.5px;
  margin: 0;
  padding: 12px 12px 2px;
}

.people-table {
  min-width: 1040px;
}

.people-table tr.is-selected {
  background: rgba(59, 130, 246, 0.06);
}

.table-sort {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  gap: 4px;
  letter-spacing: inherit;
  padding: 0;
  text-transform: inherit;
  white-space: nowrap;
}

.table-sort:hover {
  color: var(--ink-2);
}

.table-sort [data-sort-indicator] {
  color: var(--accent);
  font-size: 9px;
}

.selection-cell {
  text-align: center;
  width: 34px;
}

th.selection-cell {
  padding: 10px 0 10px 12px;
}

td.selection-cell {
  padding: 12px 0 12px 12px;
}

.selection-cell input {
  accent-color: var(--accent);
  cursor: pointer;
  height: 16px;
  margin: 0;
  vertical-align: middle;
  width: 16px;
}

.bulk-toolbar {
  align-items: center;
  animation: bulk-rise 0.18s ease-out;
  background: #161d27;
  border: 1px solid #2c3644;
  border-radius: 14px;
  bottom: 28px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), 0 16px 44px rgba(0, 0, 0, 0.5);
  display: flex;
  gap: 6px;
  left: 50%;
  padding: 8px 10px;
  position: fixed;
  transform: translateX(-50%);
  z-index: 40;
}

.bulk-toolbar[hidden] {
  display: none;
}

.bulk-toolbar > span {
  align-items: center;
  color: var(--ink-2);
  display: inline-flex;
  font-size: 13px;
  gap: 8px;
  padding: 0 8px 0 4px;
}

.bulk-toolbar > span strong {
  background: var(--accent-wash);
  border-radius: 7px;
  color: var(--accent-light);
  display: inline-grid;
  font-variant-numeric: tabular-nums;
  height: 24px;
  min-width: 24px;
  padding: 0 7px;
  place-items: center;
}

.bulk-toolbar > i {
  background: #2c3644;
  height: 22px;
  width: 1px;
}

.bulk-toolbar button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  gap: 7px;
  padding: 8px 12px;
}

.bulk-toolbar button:hover {
  background: #222c39;
}

.bulk-toolbar b {
  background: var(--accent);
  border-radius: 2px;
  height: 7px;
  width: 7px;
}

.bulk-toolbar b.email-dot {
  background: var(--good);
  border-radius: 50%;
}

@keyframes bulk-rise {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}

.meter-with-value.wide .engagement-track {
  width: 170px;
}

.new-joiner {
  background: var(--accent-wash);
  border: 1px solid rgba(59, 130, 246, 0.45);
  border-radius: 5px;
  color: var(--accent-light);
  display: inline-block;
  font-size: 11px;
  margin-top: 4px;
  padding: 1.5px 8px;
}

.noscript {
  background: var(--warn-wash);
  border-radius: 8px;
  color: var(--warn-light);
  margin-top: 16px;
  padding: 10px 12px;
}

footer {
  box-sizing: content-box;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  display: flex;
  font-size: 12.5px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1440px;
  padding: 22px 40px 44px;
}

footer strong {
  color: var(--ink-2);
  letter-spacing: 0.16em;
}

@media (max-width: 820px) {
  .topbar,
  .nav {
    padding-left: 20px;
    padding-right: 20px;
  }

  main {
    padding: 24px 20px 48px;
  }

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

  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px;
  }

  .freshness {
    margin-left: 0;
    text-align: left;
    width: 100%;
  }

  .section-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  footer {
    gap: 16px;
    margin: 0 20px;
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 560px) {
  .product-name {
    display: none;
  }

  .service-state {
    font-size: 0;
  }

  .range-form,
  .people-filters,
  .people-filters label,
  .people-filters input,
  .people-filters select,
  .people-filters button:not(.sr-only) {
    width: 100%;
  }

  .range-form {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .range-form label {
    grid-column: 1 / -1;
  }

  .panel {
    padding: 18px 16px;
  }

  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  footer {
    flex-direction: column;
  }
}

/* Threat intelligence */

.intelligence-main {
  display: grid;
  gap: 18px;
}

.demo-disclosure {
  align-items: center;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 10px;
  color: var(--ink-2);
  display: flex;
  font-size: 12.5px;
  gap: 10px;
  padding: 10px 14px;
}

.demo-disclosure > span:nth-child(2) {
  flex: 1;
}

.demo-disclosure > span:last-child {
  color: var(--warn-light);
  font-weight: 650;
  white-space: nowrap;
}

.demo-disclosure strong {
  color: var(--warn-light);
  margin-right: 5px;
}

.demo-disclosure-icon {
  background: var(--warn);
  border-radius: 5px;
  color: #1a1205;
  display: grid;
  flex: none;
  font-size: 10px;
  font-weight: 900;
  height: 20px;
  place-items: center;
  width: 20px;
}

.intelligence-heading {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 12px 2px 4px;
}

.intelligence-heading h1 {
  font-size: clamp(32px, 4vw, 44px);
  margin: 4px 0 8px;
}

.intelligence-heading > div:first-child > p:last-child {
  color: var(--ink-2);
  font-size: 15px;
  margin: 0;
  max-width: 780px;
}

.intelligence-heading-meta {
  align-items: flex-end;
  color: var(--ink-3);
  display: flex;
  flex-direction: column;
  font-size: 12px;
  gap: 8px;
  text-align: right;
  white-space: nowrap;
}

.intelligence-heading-meta strong {
  color: var(--ink-2);
  font-weight: 600;
}

.intel-mode-pill {
  background: var(--accent-wash);
  border: 1px solid rgba(59, 130, 246, 0.34);
  border-radius: 999px;
  color: var(--accent-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  text-transform: uppercase;
}

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

.intel-kpi {
  background: linear-gradient(145deg, var(--surface), #111821);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  min-height: 128px;
  padding: 17px 19px;
  position: relative;
}

.intel-kpi::before {
  background: var(--accent);
  border-radius: 1px;
  content: "";
  height: 2px;
  inset: -1px 28% auto;
  opacity: 0;
  position: absolute;
}

.intel-kpi.proposed::before {
  background: #a78bfa;
  opacity: 1;
}

.intel-kpi > span {
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
}

.intel-kpi > strong {
  align-self: end;
  font-size: 32px;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 10px 0 4px;
}

.intel-kpi > small {
  color: var(--ink-3);
  font-size: 11px;
}

.intel-overview-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
}

.intelligence-panel-heading {
  margin-bottom: 18px;
}

.intelligence-panel-heading h2 {
  font-size: 18px;
  margin: 2px 0 0;
}

.intelligence-panel-heading > div > p:last-child {
  color: var(--ink-3);
  font-size: 12px;
  margin: 4px 0 0;
}

.intelligence-panel-heading > span {
  color: var(--ink-3);
  font-size: 11px;
  max-width: 220px;
  text-align: right;
}

.executive-brief {
  background:
    radial-gradient(circle at 100% 0, rgba(59, 130, 246, 0.11), transparent 18rem),
    var(--surface);
}

.executive-brief > h3 {
  font-size: clamp(21px, 2.4vw, 28px);
  letter-spacing: -0.025em;
  line-height: 1.22;
  margin: 22px 0 10px;
  max-width: 760px;
}

.executive-brief > p {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
  max-width: 800px;
}

.executive-brief ol {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.executive-brief li {
  align-items: center;
  background: rgba(13, 17, 23, 0.48);
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  display: flex;
  gap: 10px;
  padding: 9px 12px;
}

.executive-brief li > span {
  background: var(--accent-wash);
  border-radius: 6px;
  color: var(--accent-light);
  display: grid;
  flex: none;
  font-size: 10px;
  font-weight: 800;
  height: 23px;
  place-items: center;
  width: 23px;
}

.executive-brief li p {
  color: var(--ink-2);
  font-size: 12.5px;
  margin: 0;
}

.trend-chip {
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
}

.trend-chip.up {
  background: var(--danger-wash);
  color: var(--danger-light);
}

.intel-bar-chart {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(10, 1fr);
  height: 206px;
  padding: 20px 4px 0;
}

.intel-bar-column {
  align-items: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: end;
  min-width: 0;
}

.intel-bar {
  background: linear-gradient(180deg, var(--accent-light), var(--accent));
  border-radius: 4px 4px 1px 1px;
  display: block;
  min-height: 12%;
  opacity: 0.82;
  width: min(26px, 72%);
}

.intel-bar-column:hover .intel-bar {
  filter: brightness(1.12);
  opacity: 1;
}

.intel-bar-1 { height: 10%; }
.intel-bar-2 { height: 20%; }
.intel-bar-3 { height: 30%; }
.intel-bar-4 { height: 40%; }
.intel-bar-5 { height: 50%; }
.intel-bar-6 { height: 60%; }
.intel-bar-7 { height: 70%; }
.intel-bar-8 { height: 80%; }
.intel-bar-9 { height: 90%; }
.intel-bar-10 { height: 100%; }

.intel-bar-column small {
  color: var(--ink-3);
  font-size: 9px;
  margin-top: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.chart-baseline {
  color: var(--ink-3);
  display: flex;
  font-size: 10.5px;
  justify-content: space-between;
  margin-top: 9px;
}

.investigate-panel {
  padding-bottom: 9px;
}

.intel-signal-table {
  min-width: 1180px;
}

.intel-signal-table th,
.catalog-table th {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.intel-signal-table td {
  vertical-align: middle;
}

.signal-title {
  color: var(--ink);
  display: block;
  font-size: 13px;
  font-weight: 650;
  margin: 5px 0 2px;
  max-width: 360px;
}

a.signal-title:hover {
  color: var(--accent-light);
}

.source-badge {
  border: 1px solid transparent;
  border-radius: 5px;
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  text-transform: uppercase;
}

.source-badge.mitre {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.25);
  color: var(--accent-light);
}

.source-badge.fortitude {
  background: rgba(167, 139, 250, 0.13);
  border-color: rgba(167, 139, 250, 0.28);
  color: #c4b5fd;
}

.severity-badge {
  border-radius: 999px;
  display: inline-block;
  font-size: 10px;
  font-weight: 750;
  padding: 4px 9px;
}

.severity-badge.critical {
  background: var(--danger-wash);
  color: var(--danger-light);
}

.severity-badge.high {
  background: var(--warn-wash);
  color: var(--warn-light);
}

.severity-badge.medium {
  background: var(--accent-wash);
  color: var(--accent-light);
}

.confidence-value {
  display: block;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.mapping-chip {
  border: 1px solid transparent;
  border-radius: 999px;
  display: block;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.3;
  max-width: 150px;
  overflow: hidden;
  padding: 3px 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: max-content;
}

.mapping-chip + .mapping-chip {
  margin-top: 5px;
}

.mapping-chip.attack {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(96, 165, 250, 0.22);
  color: var(--accent-light);
}

.mapping-chip.owasp {
  background: rgba(34, 197, 94, 0.09);
  border-color: rgba(74, 222, 128, 0.22);
  color: #86efac;
}

.mapping-chip.owasp.unmapped {
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.18);
  color: var(--ink-3);
}

.trend-value {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.trend-value.up {
  color: var(--danger-light);
}

.trend-value.down {
  color: var(--good-light);
}

.trend-value.flat {
  color: var(--ink-3);
}

.detail-button {
  background: var(--control);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink-2);
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
  padding: 6px 10px;
}

.detail-button:hover {
  border-color: rgba(59, 130, 246, 0.56);
  color: var(--ink);
}

.matrix-heading {
  align-items: center;
}

.matrix-mode-switcher {
  background: var(--control);
  border: 1px solid var(--line);
  border-radius: 9px;
  display: flex;
  padding: 3px;
}

.matrix-mode-switcher button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--ink-3);
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
  padding: 6px 10px;
}

.matrix-mode-switcher button[aria-pressed="true"] {
  background: var(--surface);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.28);
  color: var(--ink);
}

.tactic-matrix {
  display: grid;
  gap: 6px;
  grid-auto-columns: 142px;
  grid-auto-flow: column;
  overflow-x: auto;
  padding: 2px 0 12px;
  scrollbar-color: #344154 transparent;
}

.tactic-cell {
  background: var(--control);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 112px;
  padding: 11px;
  transition: background 120ms ease, border-color 120ms ease;
}

.tactic-cell > span {
  color: var(--ink-3);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.tactic-cell h3 {
  font-size: 11px;
  line-height: 1.3;
  margin: 8px 0 18px;
}

.tactic-cell strong {
  display: block;
  font-size: 12px;
}

.tactic-cell.heat-0,
.matrix-legend i.heat-0 {
  background: #141a22;
  border-color: #202934;
  color: var(--ink-3);
}

.tactic-cell.heat-1,
.matrix-legend i.heat-1 {
  background: rgba(30, 64, 175, 0.14);
  border-color: rgba(59, 130, 246, 0.18);
}

.tactic-cell.heat-2,
.matrix-legend i.heat-2 {
  background: rgba(30, 64, 175, 0.22);
  border-color: rgba(59, 130, 246, 0.26);
}

.tactic-cell.heat-3,
.matrix-legend i.heat-3 {
  background: rgba(37, 99, 235, 0.28);
  border-color: rgba(96, 165, 250, 0.34);
}

.tactic-cell.heat-4,
.matrix-legend i.heat-4 {
  background: rgba(37, 99, 235, 0.4);
  border-color: rgba(96, 165, 250, 0.48);
}

.tactic-cell.heat-5,
.matrix-legend i.heat-5 {
  background: rgba(59, 130, 246, 0.56);
  border-color: rgba(147, 197, 253, 0.62);
}

.matrix-legend {
  align-items: center;
  color: var(--ink-3);
  display: flex;
  font-size: 10px;
  gap: 12px;
  margin-top: 2px;
}

.matrix-legend > span:first-child {
  flex: 1;
}

.matrix-legend i {
  border: 1px solid var(--line);
  border-radius: 3px;
  display: inline-block;
  height: 9px;
  margin-right: 3px;
  vertical-align: -1px;
  width: 9px;
}

.emerging-section {
  margin-top: 4px;
}

.intelligence-section-intro {
  margin: 2px 2px 13px;
}

.intelligence-section-intro h2 {
  font-size: 20px;
  margin: 2px 0 3px;
}

.intelligence-section-intro p:last-child {
  color: var(--ink-3);
  font-size: 12px;
  margin: 0;
}

.proposal-disclaimer {
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.22);
  border-radius: 7px;
  color: #c4b5fd;
  font-size: 10.5px;
  padding: 7px 10px;
}

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

.emerging-card {
  background:
    radial-gradient(circle at 100% 0, rgba(167, 139, 250, 0.1), transparent 13rem),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  min-width: 0;
  padding: 18px;
}

.emerging-card-topline {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.emerging-card-topline > span:last-child {
  color: var(--ink-3);
  font-size: 10px;
}

.pattern-id {
  color: #a78bfa;
  display: block;
  font: 10px/1.4 ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, monospace;
  letter-spacing: 0.06em;
  margin-top: 17px;
}

.emerging-card h3 {
  font-size: 17px;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 5px 0 8px;
}

.emerging-card > p {
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.58;
  min-height: 60px;
}

.emerging-card dl {
  border-bottom: 1px solid var(--line-soft);
  border-top: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 16px 0;
  padding: 12px 0;
}

.emerging-card dl > div + div {
  border-left: 1px solid var(--line-soft);
  padding-left: 12px;
}

.emerging-card dt {
  color: var(--ink-3);
  font-size: 9px;
  text-transform: uppercase;
}

.emerging-card dd {
  font-size: 12px;
  font-weight: 700;
  margin: 4px 0 0;
}

.related-mapping span {
  color: var(--ink-3);
  display: block;
  font-size: 9px;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.related-mapping strong {
  color: var(--ink-2);
  display: block;
  font-size: 11px;
  line-height: 1.5;
}

.related-owasp {
  border-top: 1px solid var(--line-soft);
  margin-top: 10px;
  padding-top: 10px;
}

.catalog-panel {
  padding: 0;
}

.catalog-panel > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 19px 22px;
}

.catalog-panel > summary::-webkit-details-marker {
  display: none;
}

.catalog-panel > summary::after {
  color: var(--ink-3);
  content: "+";
  font-size: 20px;
  margin-left: 18px;
}

.catalog-panel[open] > summary::after {
  content: "−";
}

.catalog-panel > summary > span:first-child {
  display: grid;
  gap: 2px;
}

.catalog-panel > summary strong {
  color: var(--ink);
  font-size: 15px;
}

.catalog-panel > summary > span:nth-child(2) {
  color: var(--ink-3);
  font-size: 11px;
  margin-left: auto;
}

.catalog-content {
  border-top: 1px solid var(--line);
  padding: 18px 22px 22px;
}

.catalog-toolbar {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.catalog-toolbar input,
.catalog-toolbar select {
  background: var(--control);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 37px;
  padding: 7px 11px;
}

.catalog-search {
  flex: 1;
}

.catalog-search input {
  width: 100%;
}

.catalog-toolbar > span {
  color: var(--ink-3);
  font-size: 11px;
  margin-left: auto;
  white-space: nowrap;
}

.catalog-toolbar > span strong {
  color: var(--ink-2);
}

.catalog-table-wrap {
  max-height: 560px;
  overflow: auto;
}

.catalog-table {
  min-width: 900px;
}

.catalog-table thead {
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 2;
}

.catalog-table td:first-child {
  min-width: 300px;
}

.catalog-table a {
  color: var(--ink);
  display: block;
  font-weight: 650;
}

.catalog-table a:hover {
  color: var(--accent-light);
}

.catalog-empty {
  color: var(--ink-3);
  padding: 48px 20px;
  text-align: center;
}

.catalog-empty strong {
  color: var(--ink-2);
}

.catalog-empty p {
  margin: 4px 0 0;
}

.methodology-strip {
  background: #10161e;
  border: 1px solid var(--line);
  border-radius: 11px;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.methodology-strip > div {
  padding: 16px 18px;
}

.methodology-strip > div + div {
  border-left: 1px solid var(--line);
}

.methodology-strip strong,
.methodology-strip span {
  display: block;
}

.methodology-strip strong {
  font-size: 12px;
  margin: 2px 0 4px;
}

.methodology-strip span {
  color: var(--ink-3);
  font-size: 10.5px;
  line-height: 1.5;
}

.methodology-links {
  display: flex !important;
  gap: 12px;
  margin-top: 7px;
}

.owasp-source-links {
  flex-wrap: wrap;
  gap: 5px 10px;
}

.owasp-source-links a {
  font-size: 9px;
}

.methodology-links a {
  font-weight: 650;
}

.intelligence-dialog {
  background: #151b23;
  border: 1px solid #313d4c;
  border-radius: 16px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.62);
  color: var(--ink);
  margin: auto 0 auto auto;
  max-height: calc(100vh - 32px);
  max-width: min(640px, calc(100vw - 32px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 26px;
  width: 100%;
}

.intelligence-dialog::backdrop {
  background: rgba(3, 7, 12, 0.7);
  backdrop-filter: blur(3px);
}

.intelligence-dialog .dialog-close {
  background: var(--control);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-2);
  cursor: pointer;
  float: right;
  font-size: 20px;
  height: 32px;
  line-height: 1;
  width: 32px;
}

.intelligence-dialog .source-badge {
  margin-top: 4px;
}

.intelligence-dialog .pattern-id {
  margin-top: 15px;
}

.intelligence-dialog h2 {
  font-size: 25px;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin: 5px 44px 6px 0;
}

.dialog-provenance {
  color: #c4b5fd;
  font-size: 11px;
  margin: 0 0 18px;
}

.dialog-summary {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.65;
}

.dialog-metrics {
  background: #10161e;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 20px 0;
}

.dialog-metrics > div {
  padding: 12px;
}

.dialog-metrics > div:nth-child(even) {
  border-left: 1px solid var(--line);
}

.dialog-metrics > div:nth-child(n + 3) {
  border-top: 1px solid var(--line);
}

.dialog-metrics dt {
  color: var(--ink-3);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dialog-metrics dd {
  font-size: 12px;
  font-weight: 700;
  margin: 4px 0 0;
}

.intelligence-dialog section {
  border-top: 1px solid var(--line);
  padding: 15px 0;
}

.intelligence-dialog section h3 {
  font-size: 11px;
  letter-spacing: 0.07em;
  margin: 0 0 5px;
  text-transform: uppercase;
}

.intelligence-dialog section p {
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.55;
  margin: 0;
}

.dialog-section-heading {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.dialog-section-heading > span:last-child {
  color: var(--ink-3);
  flex: none;
  font-size: 10px;
  text-transform: uppercase;
}

.dialog-section-heading > span:last-child strong {
  color: var(--good-light);
}

.synthetic-reconstruction-badge {
  background: rgba(245, 158, 11, 0.11);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 999px;
  color: #fcd34d;
  display: inline-block;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.09em;
  margin-bottom: 7px;
  padding: 3px 7px;
  text-transform: uppercase;
}

.dialog-reconstruction[hidden] {
  display: none;
}

.intelligence-dialog .reconstruction-privacy {
  color: #fcd34d;
  font-size: 10.5px;
  margin: 6px 0 12px;
}

.dialog-reconstruction figure {
  margin: 0;
}

.reconstruction-browser {
  background: #e8edf3;
  border: 1px solid #445264;
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.reconstruction-browser-bar {
  align-items: center;
  background: #26313f;
  display: grid;
  gap: 10px;
  grid-template-columns: 45px 1fr 45px;
  min-height: 34px;
  padding: 6px 10px;
}

.reconstruction-browser-dots {
  display: flex;
  gap: 4px;
}

.reconstruction-browser-dots i {
  background: #7b8795;
  border-radius: 50%;
  height: 6px;
  width: 6px;
}

.reconstruction-domain {
  background: #18212b;
  border-radius: 5px;
  color: #d8e0e9;
  font: 9px/1.4 ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, monospace;
  overflow: hidden;
  padding: 4px 9px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reconstruction-page {
  background:
    radial-gradient(circle at 10% 100%, rgba(37, 99, 235, 0.09), transparent 15rem),
    linear-gradient(135deg, rgba(241, 90, 58, 0.04), transparent 55%),
    #f8fafc;
  color: #182230;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(130px, 0.75fr);
  min-height: 252px;
  padding: 0 25px 25px;
  position: relative;
}

.reconstruction-page header {
  align-items: center;
  border-bottom: 1px solid #d7dde4;
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
  grid-template-columns: 27px auto 1fr;
  min-height: 55px;
}

.reconstruction-page header > strong {
  color: #15345b;
  font-size: 14px;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.reconstruction-page header > span:last-child {
  color: #697586;
  font-size: 8px;
  justify-self: end;
  text-transform: uppercase;
}

.reconstruction-brand-mark {
  align-items: center;
  background: #f15a3a;
  border-radius: 3px;
  color: white;
  display: flex;
  font: 900 12px/1 Arial, Helvetica, sans-serif;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.reconstruction-hero {
  align-self: center;
  padding: 26px 24px 25px 1px;
}

.reconstruction-kicker {
  color: #f15a3a;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reconstruction-hero h4 {
  color: #15345b;
  font: 800 24px/1.08 Arial, Helvetica, sans-serif;
  letter-spacing: -0.025em;
  margin: 8px 0 9px;
  max-width: 340px;
}

.reconstruction-hero p {
  color: #526071 !important;
  font-size: 10px !important;
  line-height: 1.5 !important;
  max-width: 300px;
}

.reconstruction-cta {
  background: #2563eb;
  border-radius: 4px;
  color: white;
  display: inline-block;
  font-size: 9px;
  font-weight: 750;
  margin-top: 15px;
  padding: 8px 15px;
}

.reconstruction-hero small {
  color: #697586;
  display: block;
  font-size: 7px;
  margin-top: 7px;
}

.reconstruction-side-note {
  align-self: center;
  background: #eaf2ff;
  border-left: 3px solid #f15a3a;
  display: grid;
  gap: 4px;
  margin-left: 14px;
  padding: 22px 16px;
}

.reconstruction-side-note strong {
  color: #15345b;
  font: 800 14px/1.2 Arial, Helvetica, sans-serif;
}

.reconstruction-side-note span {
  color: #697586;
  font-size: 8px;
  line-height: 1.45;
}

.reconstruction-watermark {
  bottom: 7px;
  color: rgba(37, 99, 235, 0.42);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.12em;
  position: absolute;
  right: 12px;
  text-transform: uppercase;
}

.reconstruction-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 9px 0 8px;
}

.reconstruction-flags span {
  background: #10161e;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-3);
  font-size: 8px;
  padding: 3px 7px;
}

.dialog-reconstruction figcaption {
  color: var(--ink-3);
  font-size: 9px;
  line-height: 1.5;
}

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

.framework-mapping-card {
  background: #10161e;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px;
}

.framework-mapping-card.unmapped {
  border-style: dashed;
}

.framework-chip {
  border-radius: 999px;
  display: inline-block;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.07em;
  margin-bottom: 7px;
  padding: 3px 7px;
  text-transform: uppercase;
}

.framework-chip.mitre {
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent-light);
}

.framework-chip.owasp {
  background: rgba(34, 197, 94, 0.1);
  color: #86efac;
}

.mapping-provenance {
  color: var(--ink-3);
  display: block;
  font-size: 9.5px;
  line-height: 1.5;
  margin-top: 6px;
}

.intelligence-dialog .dialog-recommendation {
  background: var(--accent-wash);
  border: 1px solid rgba(59, 130, 246, 0.24);
  border-radius: 9px;
  padding: 13px;
}

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

  .intel-overview-grid {
    grid-template-columns: 1fr;
  }

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

  .emerging-card > p {
    min-height: 0;
  }
}

@media (max-width: 820px) {
  .intelligence-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .intelligence-heading-meta {
    align-items: flex-start;
    text-align: left;
  }

  .matrix-heading,
  .intelligence-section-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .matrix-mode-switcher {
    margin-top: 8px;
  }

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

  .methodology-strip > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .demo-disclosure {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .demo-disclosure > span:last-child {
    margin-left: 30px;
  }

  .intel-kpi-grid {
    grid-template-columns: 1fr;
  }

  .intel-kpi {
    min-height: 112px;
  }

  .intel-bar-chart {
    gap: 3px;
    height: 170px;
  }

  .intel-bar-column small {
    font-size: 0;
  }

  .intel-bar-column:nth-child(odd) small {
    font-size: 8px;
  }

  .chart-baseline {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .matrix-mode-switcher {
    width: 100%;
  }

  .matrix-mode-switcher button {
    flex: 1;
  }

  .matrix-legend {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .matrix-legend > span:first-child {
    flex-basis: 100%;
  }

  .proposal-disclaimer {
    width: 100%;
  }

  .emerging-card dl {
    gap: 8px;
  }

  .catalog-panel > summary {
    align-items: flex-start;
  }

  .catalog-panel > summary > span:nth-child(2) {
    display: none;
  }

  .catalog-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-toolbar > span {
    margin-left: 0;
  }

  .intelligence-dialog {
    border-radius: 14px;
    margin: auto;
    max-height: calc(100vh - 20px);
    max-width: calc(100vw - 20px);
    padding: 20px;
  }

  .reconstruction-page {
    grid-template-columns: 1fr;
  }

  .reconstruction-side-note {
    display: none;
  }

  .reconstruction-hero {
    padding-right: 1px;
  }

  .reconstruction-hero h4 {
    font-size: 21px;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   FORTITUDE MORTAR — DASHBOARD CASCADE

   The legacy layer above remains intact as a behavioral safety net. This final
   layer maps its established component selectors onto the landing page's
   editorial design language: warm mortar grounds, olive instrumentation,
   Cormorant display type, Plex body/chrome, hairlines, restrained radii, and
   sparse elevation. The synthetic reconstruction is deliberately isolated
   below because it represents observed third-party creative, not Fortitude.
   ══════════════════════════════════════════════════════════════════════════ */

/* Match the palette attribute's specificity from the shared theme layer. */
:root,
html[data-palette="mortar"] {
  color-scheme: light;

  /* Landing-system names. */
  --color-bg: #e8e6e1;
  --color-surface: #dcd9d2;
  --color-text: #1a1a16;
  --color-accent: #55642f;
  --color-divider: rgb(26 26 22 / 18%);
  --control-border: rgb(26 26 22 / 52%);
  --color-neutral-100: #f4f3ef;
  --color-neutral-200: #e6e4de;
  --color-neutral-300: #d3d1c9;
  --color-neutral-700: #5d5a53;
  --color-neutral-800: #413f39;
  --color-neutral-900: #2a2823;
  --color-accent-100: #eef2e4;
  --color-accent-200: #dbe4c7;
  --color-accent-300: #c0cda6;
  --color-accent-600: #6b7b4a;
  --color-accent-700: #526132;
  --color-accent-800: #3b4722;
  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 7px;

  /* Existing dashboard contracts, reassigned to the Mortar palette. */
  --page: var(--color-bg);
  --header: var(--color-bg);
  --surface: var(--color-surface);
  --surface-strong: #e1ded7;
  --control: rgb(26 26 22 / 4%);
  --line: var(--color-divider);
  --line-soft: rgb(26 26 22 / 11%);
  --ink: var(--color-text);
  --ink-2: #413f39;
  --ink-3: #625f58;
  --accent: var(--color-accent);
  --accent-light: var(--color-accent-800);
  --accent-wash: rgb(85 100 47 / 12%);
  --good: #3f704c;
  --good-light: #315d3c;
  --good-wash: rgb(63 112 76 / 12%);
  --warn: #9b681e;
  --warn-light: #795015;
  --warn-wash: rgb(155 104 30 / 12%);
  --danger: #a44640;
  --danger-light: #8b3732;
  --danger-wash: rgb(164 70 64 / 11%);
  --research: #755d84;
  --research-light: #60466f;
  --research-wash: rgb(117 93 132 / 11%);
  --shadow: 0 8px 24px rgb(42 40 35 / 11%);
  --font: var(--font-body);
}

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

html {
  background: var(--page);
  scroll-behavior: smooth;
}

body {
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  text-wrap: pretty;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.012em;
}

a {
  color: var(--accent-light);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

button,
input,
select {
  font-family: var(--font-mono);
}

input::placeholder {
  color: var(--ink-3);
  opacity: 1;
}

::selection {
  background: rgb(85 100 47 / 24%);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Shell */

.topbar,
.nav {
  background: var(--header);
  padding-left: max(40px, calc((100% - 1440px) / 2 + 40px));
  padding-right: max(40px, calc((100% - 1440px) / 2 + 40px));
}

.topbar {
  border-bottom: 1px solid var(--line-soft);
  gap: 18px;
  min-height: 66px;
  padding-bottom: 14px;
  padding-top: 14px;
}

.brand {
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  gap: 10px;
  letter-spacing: 0.035em;
  line-height: 1;
  margin-right: 0;
}

.brand:hover {
  color: var(--accent);
}

.brand-mark {
  background: transparent;
  border-radius: 0;
  height: 32px;
  padding: 2px;
  width: 32px;
}

.brand-mark svg {
  height: 27px;
  overflow: visible;
  width: 27px;
}

.brand-mark svg rect {
  fill: var(--accent);
}

.brand-mark .arm {
  fill: none;
  stroke: var(--accent);
}

.brand-mark .lobe {
  fill: url("#fh-courses");
}

#fh-courses rect {
  fill: color-mix(in srgb, var(--accent) 42%, transparent);
}

.product-name,
.service-state {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.product-name {
  border-left-color: var(--line);
  color: var(--ink-3);
  padding-left: 18px;
}

.service-state {
  color: var(--ink-2);
}

.status-dot {
  background: var(--good);
  box-shadow: 0 0 0 3px var(--good-wash);
  height: 6px;
  width: 6px;
}

.nav {
  border-bottom-color: var(--line);
  gap: 25px;
}

.nav a,
.nav button {
  border-bottom: 1px solid transparent;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.085em;
  margin: 0 0 -1px;
  padding: 13px 1px 12px;
  text-transform: uppercase;
}

.nav a {
  margin-right: 0;
}

.nav a:hover,
.nav button:hover {
  color: var(--ink);
}

.nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
  color: var(--accent-light);
}

.nav form {
  margin-left: auto;
}

main {
  max-width: 1440px;
  padding: 34px 40px 68px;
}

footer {
  border-top-color: var(--line);
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.035em;
  padding-bottom: 38px;
  padding-top: 22px;
}

footer strong {
  color: var(--ink-2);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.055em;
}

/* Editorial page introductions */

.page-heading {
  align-items: flex-end;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 18px 0 31px;
}

.eyebrow {
  color: var(--accent-light);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  margin-bottom: 7px;
}

h1 {
  font-size: clamp(38px, 4.4vw, 56px);
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.03;
  margin: 4px 0 9px;
}

.page-heading > div > p:last-child,
.people-heading > p:last-child,
.intelligence-heading > div:first-child > p:last-child {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.6;
}

.privacy-label,
.intel-mode-pill {
  background: var(--accent-wash);
  border: 1px solid rgb(85 100 47 / 32%);
  border-radius: var(--radius-sm);
  color: var(--accent-light);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.07em;
  padding: 7px 10px;
  text-transform: uppercase;
}

.people-heading {
  border-bottom: 1px solid var(--line);
  margin: 0 0 18px;
  padding: 18px 0 28px;
}

.people-heading h1 {
  font-size: clamp(36px, 4vw, 50px);
  margin: 4px 0 7px;
}

/* Controls */

.filterbar {
  border-bottom: 1px solid var(--line-soft);
  gap: 14px;
  margin: 0 0 18px;
  padding: 16px 0;
}

.range-form {
  gap: 9px;
}

.range-form label {
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.range-form select,
.range-form button,
.people-filters input,
.people-filters select,
.people-filters button:not(.sr-only),
.catalog-toolbar input,
.catalog-toolbar select {
  background: rgb(255 255 255 / 10%);
  border: 1px solid var(--control-border);
  border-radius: var(--radius-md);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11.5px;
  min-height: 36px;
  padding: 7px 10px;
}

.range-form select:hover,
.people-filters input:hover,
.people-filters select:hover,
.catalog-toolbar input:hover,
.catalog-toolbar select:hover {
  border-color: color-mix(in srgb, var(--ink) 72%, transparent);
}

.range-form select:focus-visible,
.people-filters input:focus-visible,
.people-filters select:focus-visible,
.catalog-toolbar input:focus-visible,
.catalog-toolbar select:focus-visible {
  border-color: var(--accent);
  outline-offset: 0;
}

.range-form button,
.people-filters button:not(.sr-only) {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent-light);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.065em;
  padding-left: 14px;
  padding-right: 14px;
  text-transform: uppercase;
}

.range-form button:hover,
.people-filters button:not(.sr-only):hover {
  background: var(--accent-wash);
  color: var(--accent-light);
}

.freshness,
.htmx-indicator {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 10px;
}

.freshness strong {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
}

/* Shared dashboard surfaces and data */

.summary-grid {
  gap: 12px;
}

.summary-card,
.panel,
.intel-kpi,
.emerging-card {
  background: var(--surface);
  border-color: var(--line);
  border-radius: var(--radius-md);
  box-shadow: none;
}

.summary-card {
  padding: 17px 18px 15px;
}

.summary-card::before {
  height: 2px;
}

.summary-card h2,
.intel-kpi > span {
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.summary-value {
  font-family: var(--font-mono);
  font-size: 31px;
  font-weight: 500;
  letter-spacing: -0.035em;
  margin: 10px 0 7px;
}

.summary-value span {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
}

.summary-detail,
.people-summary {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 10px;
}

.overview-stack {
  gap: 12px;
  margin-top: 12px;
}

.panel {
  padding: 20px 22px;
}

.panel-heading {
  margin-bottom: 13px;
}

.panel-heading h2,
.intelligence-panel-heading h2 {
  font-size: 20px;
  line-height: 1.1;
  margin: 1px 0 0;
}

.panel-heading > span,
.panel-heading p:not(.eyebrow),
.intelligence-panel-heading > span,
.intelligence-panel-heading > div > p:last-child {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.5;
}

table {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

th {
  border-bottom-color: var(--line);
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.085em;
  padding: 9px 11px;
}

td {
  border-bottom-color: var(--line-soft);
  padding: 11px;
}

tbody tr {
  transition: background-color 120ms ease;
}

tbody tr:hover {
  background: rgb(26 26 22 / 3.5%);
}

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

.numeric,
.confidence-value,
.trend-value,
.waiver-rate,
.meter-with-value strong {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.confidence-value,
.trend-value,
.waiver-rate,
.meter-with-value strong,
table strong {
  font-weight: 500;
}

.campaign-pill,
.status-pill,
.category-tag,
.new-joiner,
.source-badge,
.severity-badge,
.mapping-chip,
.trend-chip,
.proposal-disclaimer,
.synthetic-reconstruction-badge,
.framework-chip {
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-weight: 500;
}

.campaign-pill {
  background: var(--accent-wash);
  color: var(--accent-light);
  font-size: 10.5px;
  padding: 3px 8px;
}

.status-pill {
  border: 1px solid currentColor;
  font-size: 9.5px;
  padding: 3px 7px;
}

.status-pill.good,
.status-pill.accent {
  background: var(--good-wash);
  color: var(--good-light);
}

.status-pill.accent {
  background: var(--accent-wash);
  color: var(--accent-light);
}

.status-pill.warn {
  background: var(--warn-wash);
  color: var(--warn-light);
}

.status-pill.danger {
  background: var(--danger-wash);
  color: var(--danger-light);
}

progress {
  background: rgb(26 26 22 / 10%);
  border-radius: var(--radius-sm);
}

progress::-webkit-progress-bar {
  background: rgb(26 26 22 / 10%);
}

progress::-webkit-progress-value {
  background: var(--accent);
  border-radius: var(--radius-sm);
}

progress::-moz-progress-bar {
  background: var(--accent);
  border-radius: var(--radius-sm);
}

.engagement-meter {
  height: 5px;
}

.section-intro {
  border-top: 1px solid var(--line);
  gap: 12px;
  margin: 30px 0 12px;
  padding-top: 16px;
}

.section-intro p:last-child {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 9.5px;
}

.division-grid {
  gap: 12px;
}

.table-sub {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.45;
  margin-top: 2px;
}

.meter-with-value progress {
  height: 5px;
}

.engagement-track {
  background: rgb(26 26 22 / 8%);
  border-color: var(--line);
  border-radius: var(--radius-sm);
  height: 7px;
}

.engagement-track progress {
  border-radius: var(--radius-sm);
  height: 7px;
}

.engagement-track.has-threshold::after {
  background: var(--ink-2);
  border-radius: 0;
  width: 1px;
}

.category-tag {
  font-size: 9px;
  padding: 2px 6px;
}

.category-tag.good {
  background: var(--good-wash);
  border-color: rgb(63 112 76 / 34%);
  color: var(--good-light);
}

.category-tag.danger {
  background: var(--danger-wash);
  border-color: rgb(164 70 64 / 32%);
  color: var(--danger-light);
}

.posture-tabs,
.matrix-mode-switcher {
  background: transparent;
  border-color: var(--control-border);
  border-radius: var(--radius-md);
}

.posture-tabs button,
.matrix-mode-switcher button {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
}

.posture-tabs button[aria-selected="true"],
.matrix-mode-switcher button[aria-pressed="true"] {
  background: var(--accent-wash);
  box-shadow: none;
  color: var(--accent-light);
  font-weight: 500;
}

.organization-posture-row > span:first-child,
.organization-posture-row strong,
.organization-posture-row b,
.organization-posture > p {
  font-family: var(--font-mono);
}

.organization-posture-row > span:first-child {
  color: var(--ink-2);
  font-size: 9.5px;
}

.organization-posture-meter {
  height: 12px;
}

.empty-state {
  background: rgb(255 255 255 / 7%);
  border-color: var(--line);
  border-radius: var(--radius-md);
  min-height: 160px;
}

.empty-state strong {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
}

.empty-state p {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 10px;
}

/* People */

.people-filters {
  gap: 9px;
  margin-bottom: 12px;
}

.people-panel {
  padding: 9px 20px 12px;
}

.people-summary {
  padding: 10px 11px 2px;
}

.people-table tr.is-selected {
  background: var(--accent-wash);
}

.table-sort {
  font-family: inherit;
  font-weight: inherit;
}

.table-sort:hover {
  color: var(--accent-light);
}

.table-sort [data-sort-indicator] {
  color: var(--accent);
}

.selection-cell input {
  accent-color: var(--accent);
}

.bulk-toolbar {
  background: var(--surface-strong);
  border-color: var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 3px 10px rgb(42 40 35 / 16%), 0 12px 32px rgb(42 40 35 / 20%);
}

.bulk-toolbar > span {
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.bulk-toolbar > span strong {
  background: var(--accent-wash);
  border-radius: var(--radius-sm);
  color: var(--accent-light);
  font-weight: 500;
}

.bulk-toolbar > i {
  background: var(--line);
}

.bulk-toolbar button {
  border-radius: var(--radius-md);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
}

.bulk-toolbar button:hover {
  background: var(--accent-wash);
}

.new-joiner {
  background: var(--accent-wash);
  border-color: rgb(85 100 47 / 34%);
  color: var(--accent-light);
  font-size: 9px;
  padding: 2px 6px;
}

.noscript {
  border: 1px solid rgb(155 104 30 / 28%);
  border-radius: var(--radius-md);
  color: var(--warn-light);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

/* Intelligence */

.intelligence-main {
  gap: 14px;
}

.demo-disclosure {
  background: var(--warn-wash);
  border-color: rgb(155 104 30 / 28%);
  border-radius: var(--radius-md);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 9px 11px;
}

.demo-disclosure > span:last-child,
.demo-disclosure strong {
  color: var(--warn-light);
  font-weight: 500;
}

.demo-disclosure-icon {
  background: var(--warn);
  border-radius: var(--radius-sm);
  color: #1a1a16;
  font-family: var(--font-mono);
}

.intelligence-heading {
  border-bottom: 1px solid var(--line);
  padding: 17px 0 29px;
}

.intelligence-heading h1 {
  font-size: clamp(40px, 4.5vw, 56px);
  margin: 4px 0 8px;
}

.intelligence-heading-meta {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 9.5px;
}

.intelligence-heading-meta strong {
  color: var(--ink-2);
  font-weight: 500;
}

.intel-kpi-grid {
  gap: 9px;
}

.intel-kpi {
  min-height: 116px;
  padding: 15px 17px;
}

.intel-kpi::before {
  height: 1px;
}

.intel-kpi.proposed::before {
  background: var(--research);
}

.intel-kpi > strong {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 500;
}

.intel-kpi > small {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 9px;
}

.intel-overview-grid {
  gap: 12px;
}

.intelligence-panel-heading {
  margin-bottom: 15px;
}

.executive-brief {
  background: var(--surface);
}

.executive-brief > h3 {
  font-size: clamp(23px, 2.5vw, 30px);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-top: 18px;
}

.executive-brief > p {
  color: var(--ink-2);
  line-height: 1.65;
}

.executive-brief ol {
  gap: 6px;
  margin-top: 19px;
}

.executive-brief li {
  background: rgb(255 255 255 / 8%);
  border-color: var(--line-soft);
  border-radius: var(--radius-md);
  padding: 8px 10px;
}

.executive-brief li > span {
  background: var(--accent-wash);
  border-radius: var(--radius-sm);
  color: var(--accent-light);
  font-family: var(--font-mono);
  font-weight: 500;
}

.executive-brief li p {
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.trend-chip.up {
  background: var(--danger-wash);
  color: var(--danger-light);
}

.intel-bar-chart {
  border-bottom-color: var(--line);
}

.intel-bar {
  background: linear-gradient(180deg, var(--color-accent-300), var(--accent));
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.intel-bar-column small,
.chart-baseline {
  color: var(--ink-3);
  font-family: var(--font-mono);
}

.intel-signal-table th,
.catalog-table th {
  font-size: 9px;
  letter-spacing: 0.075em;
}

.signal-title {
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
}

a.signal-title:hover {
  color: var(--accent-light);
}

.source-badge {
  font-size: 8px;
}

.source-badge.mitre,
.mapping-chip.attack,
.framework-chip.mitre {
  background: var(--accent-wash);
  border-color: rgb(85 100 47 / 28%);
  color: var(--accent-light);
}

.source-badge.fortitude,
.proposal-disclaimer {
  background: var(--research-wash);
  border-color: rgb(117 93 132 / 28%);
  color: var(--research-light);
}

.severity-badge {
  border: 1px solid currentColor;
  font-size: 8.5px;
  padding: 3px 7px;
}

.mapping-chip {
  font-size: 8px;
}

.mapping-chip.owasp,
.framework-chip.owasp {
  background: var(--good-wash);
  border-color: rgb(63 112 76 / 27%);
  color: var(--good-light);
}

.mapping-chip.owasp.unmapped {
  background: rgb(26 26 22 / 5%);
  border-color: var(--line);
  color: var(--ink-3);
}

.detail-button {
  background: transparent;
  border-color: var(--control-border);
  border-radius: var(--radius-md);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
}

.detail-button:hover {
  background: var(--accent-wash);
  border-color: var(--accent);
  color: var(--accent-light);
}

.matrix-mode-switcher {
  padding: 2px;
}

.matrix-mode-switcher button {
  border-radius: var(--radius-sm);
}

.tactic-matrix {
  scrollbar-color: var(--line) transparent;
}

.tactic-cell {
  background: var(--control);
  border-color: var(--line);
  border-radius: var(--radius-md);
  min-height: 106px;
}

.tactic-cell > span,
.tactic-cell strong,
.matrix-legend {
  font-family: var(--font-mono);
}

.tactic-cell h3 {
  font-family: var(--font-body);
  font-weight: 500;
}

.tactic-cell.heat-0,
.matrix-legend i.heat-0 {
  background: rgb(26 26 22 / 3%);
  border-color: var(--line-soft);
  color: var(--ink-3);
}

.tactic-cell.heat-1,
.matrix-legend i.heat-1 {
  background: rgb(85 100 47 / 9%);
  border-color: rgb(85 100 47 / 18%);
}

.tactic-cell.heat-2,
.matrix-legend i.heat-2 {
  background: rgb(85 100 47 / 15%);
  border-color: rgb(85 100 47 / 25%);
}

.tactic-cell.heat-3,
.matrix-legend i.heat-3 {
  background: rgb(85 100 47 / 23%);
  border-color: rgb(85 100 47 / 35%);
}

.tactic-cell.heat-4,
.matrix-legend i.heat-4 {
  background: rgb(85 100 47 / 33%);
  border-color: rgb(85 100 47 / 46%);
}

.tactic-cell.heat-5,
.matrix-legend i.heat-5 {
  background: rgb(85 100 47 / 46%);
  border-color: rgb(85 100 47 / 64%);
}

.matrix-legend {
  color: var(--ink-3);
  font-size: 9px;
}

.matrix-legend i {
  border-radius: var(--radius-sm);
}

.intelligence-section-intro {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.intelligence-section-intro h2 {
  font-size: 24px;
}

.proposal-disclaimer {
  border-radius: var(--radius-sm);
  font-size: 9px;
}

.emerging-grid {
  gap: 9px;
}

.emerging-card {
  background: var(--surface);
  padding: 17px;
}

.emerging-card-topline > span:last-child,
.pattern-id,
.emerging-card dt,
.emerging-card dd,
.related-mapping span,
.related-mapping strong {
  font-family: var(--font-mono);
}

.emerging-card-topline > span:last-child {
  color: var(--ink-3);
  font-size: 8.5px;
}

.pattern-id {
  color: var(--research-light);
  font-size: 9px;
}

.emerging-card h3 {
  font-size: 20px;
}

.emerging-card > p {
  color: var(--ink-2);
}

.emerging-card dl {
  border-color: var(--line-soft);
}

.emerging-card dl > div + div,
.related-owasp {
  border-color: var(--line-soft);
}

.related-mapping strong {
  color: var(--ink-2);
  font-weight: 500;
}

.catalog-panel {
  border-radius: var(--radius-md);
}

.catalog-panel > summary {
  padding: 17px 20px;
}

.catalog-panel > summary::after {
  color: var(--accent-light);
  font-family: var(--font-mono);
}

.catalog-panel > summary strong {
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
}

.catalog-panel > summary > span:nth-child(2),
.catalog-toolbar > span {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 9.5px;
}

.catalog-content {
  border-top-color: var(--line);
}

.catalog-table thead {
  background: var(--surface);
}

.catalog-table a {
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
}

.catalog-table a:hover {
  color: var(--accent-light);
}

.methodology-strip {
  background: transparent;
  border-color: var(--line);
  border-radius: var(--radius-md);
}

.methodology-strip > div + div {
  border-color: var(--line);
}

.methodology-strip strong {
  font-family: var(--font-body);
  font-weight: 500;
}

.methodology-strip span,
.methodology-links a {
  color: var(--ink-3);
  font-family: var(--font-mono);
}

/* Intelligence detail drawer */

.intelligence-dialog {
  background: var(--surface-strong);
  border-color: var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgb(42 40 35 / 28%);
  color: var(--ink);
}

.intelligence-dialog::backdrop {
  backdrop-filter: blur(2px);
  background: rgb(26 26 22 / 48%);
}

.intelligence-dialog .dialog-close {
  background: transparent;
  border-color: var(--control-border);
  border-radius: var(--radius-md);
  color: var(--ink-2);
  font-family: var(--font-mono);
}

.intelligence-dialog .dialog-close:hover {
  background: var(--accent-wash);
  color: var(--accent-light);
}

.intelligence-dialog h2 {
  font-size: 29px;
  font-weight: 600;
}

.dialog-provenance,
.dialog-summary,
.dialog-metrics,
.dialog-metrics dt,
.dialog-metrics dd,
.intelligence-dialog section p,
.dialog-section-heading > span:last-child,
.mapping-provenance {
  font-family: var(--font-mono);
}

.dialog-provenance {
  color: var(--research-light);
}

.dialog-summary,
.intelligence-dialog section p {
  color: var(--ink-2);
}

.dialog-metrics,
.framework-mapping-card {
  background: rgb(255 255 255 / 7%);
  border-color: var(--line);
  border-radius: var(--radius-md);
}

.dialog-metrics > div:nth-child(even),
.dialog-metrics > div:nth-child(n + 3),
.intelligence-dialog section {
  border-color: var(--line);
}

.intelligence-dialog section h3 {
  font-family: var(--font-mono);
  font-weight: 500;
}

.synthetic-reconstruction-badge {
  background: var(--warn-wash);
  border-color: rgb(155 104 30 / 28%);
  color: var(--warn-light);
}

.intelligence-dialog .reconstruction-privacy {
  color: var(--warn-light);
  font-family: var(--font-mono);
}

.reconstruction-flags span {
  background: rgb(255 255 255 / 7%);
  border-color: var(--line);
  color: var(--ink-3);
  font-family: var(--font-mono);
}

.dialog-reconstruction figcaption {
  color: var(--ink-3);
  font-family: var(--font-mono);
}

.intelligence-dialog .dialog-recommendation {
  background: var(--accent-wash);
  border-color: rgb(85 100 47 / 26%);
  border-radius: var(--radius-md);
}

/* Keep the third-party synthetic page visually quarantined from the product
   system so analysts cannot mistake its styling for Fortitude UI. */
.reconstruction-browser,
.reconstruction-browser * {
  color-scheme: light;
}

.reconstruction-browser {
  background: #e8edf3;
  border-color: #445264;
  border-radius: 6px;
  font-family: Arial, Helvetica, sans-serif;
}

.reconstruction-browser-bar,
.reconstruction-page,
.reconstruction-page header,
.reconstruction-hero,
.reconstruction-side-note {
  font-family: Arial, Helvetica, sans-serif;
}

/* Automatic mortar-dark: the structure stays unchanged and only material,
   contrast, elevation, and semantic ramps are reassigned. */

@media (prefers-color-scheme: dark) {
  :root,
  html[data-palette="mortar"] {
    color-scheme: dark;
    --color-bg: #141510;
    --color-surface: #1d1f18;
    --color-text: #ece9df;
    --color-accent: #a7b678;
    --color-divider: rgb(236 233 223 / 18%);
    --control-border: rgb(236 233 223 / 44%);
    --color-neutral-100: #1a1c16;
    --color-neutral-200: #24261e;
    --color-neutral-300: #33362a;
    --color-neutral-700: #b0ada3;
    --color-neutral-800: #cecbc1;
    --color-neutral-900: #ece9df;
    --color-accent-100: #202518;
    --color-accent-200: #2b3320;
    --color-accent-300: #69774a;
    --color-accent-600: #98a86b;
    --color-accent-700: #aebd7f;
    --color-accent-800: #c3cf96;

    --page: var(--color-bg);
    --header: #11120e;
    --surface: var(--color-surface);
    --surface-strong: #23251d;
    --control: rgb(236 233 223 / 5%);
    --line: var(--color-divider);
    --line-soft: rgb(236 233 223 / 10%);
    --ink: var(--color-text);
    --ink-2: #c6c3b9;
    --ink-3: #929087;
    --accent: var(--color-accent);
    --accent-light: #c3cf96;
    --accent-wash: rgb(167 182 120 / 14%);
    --good: #77ae7e;
    --good-light: #93c49a;
    --good-wash: rgb(119 174 126 / 13%);
    --warn: #c89a53;
    --warn-light: #dfb873;
    --warn-wash: rgb(200 154 83 / 13%);
    --danger: #ca6e68;
    --danger-light: #e28b84;
    --danger-wash: rgb(202 110 104 / 13%);
    --research: #a78fb5;
    --research-light: #c3afd0;
    --research-wash: rgb(167 143 181 / 13%);
    --shadow: 0 8px 28px rgb(0 0 0 / 28%);
  }

  #fh-courses rect {
    fill: rgb(167 182 120 / 44%);
  }

  .range-form select,
  .range-form button,
  .people-filters input,
  .people-filters select,
  .people-filters button:not(.sr-only),
  .catalog-toolbar input,
  .catalog-toolbar select {
    background: rgb(255 255 255 / 3%);
  }

  .range-form select:hover,
  .people-filters input:hover,
  .people-filters select:hover,
  .catalog-toolbar input:hover,
  .catalog-toolbar select:hover {
    border-color: rgb(236 233 223 / 38%);
  }

  progress,
  .engagement-track {
    background: rgb(236 233 223 / 9%);
  }

  progress::-webkit-progress-bar {
    background: rgb(236 233 223 / 9%);
  }

  tbody tr:hover {
    background: rgb(236 233 223 / 3.5%);
  }

  .empty-state,
  .executive-brief li,
  .dialog-metrics,
  .framework-mapping-card,
  .reconstruction-flags span {
    background: rgb(255 255 255 / 3%);
  }

  .bulk-toolbar,
  .intelligence-dialog {
    box-shadow: 0 12px 34px rgb(0 0 0 / 36%);
  }

  .tactic-cell.heat-0,
  .matrix-legend i.heat-0 {
    background: rgb(236 233 223 / 3%);
  }

  .tactic-cell.heat-1,
  .matrix-legend i.heat-1 {
    background: rgb(167 182 120 / 9%);
    border-color: rgb(167 182 120 / 18%);
  }

  .tactic-cell.heat-2,
  .matrix-legend i.heat-2 {
    background: rgb(167 182 120 / 15%);
    border-color: rgb(167 182 120 / 25%);
  }

  .tactic-cell.heat-3,
  .matrix-legend i.heat-3 {
    background: rgb(167 182 120 / 23%);
    border-color: rgb(167 182 120 / 35%);
  }

  .tactic-cell.heat-4,
  .matrix-legend i.heat-4 {
    background: rgb(167 182 120 / 33%);
    border-color: rgb(167 182 120 / 46%);
  }

  .tactic-cell.heat-5,
  .matrix-legend i.heat-5 {
    background: rgb(167 182 120 / 47%);
    border-color: rgb(195 207 150 / 65%);
  }

  .intelligence-dialog::backdrop {
    background: rgb(5 6 4 / 68%);
  }
}

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

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

/* Responsive refinements are repeated after the Mortar layer so the original
   density decisions still win at each established breakpoint. */

@media (max-width: 1080px) {
  .intel-overview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .topbar,
  .nav {
    padding-left: 20px;
    padding-right: 20px;
  }

  main {
    padding: 26px 20px 52px;
  }

  .page-heading {
    align-items: flex-start;
    padding-bottom: 25px;
  }

  .intelligence-heading {
    padding-bottom: 25px;
  }

  footer {
    margin-left: 20px;
    margin-right: 20px;
  }
}

@media (max-width: 560px) {
  .topbar {
    min-height: 58px;
  }

  .service-state {
    font-size: 0;
    letter-spacing: 0;
  }

  .brand {
    font-size: 18px;
  }

  .brand-mark {
    height: 28px;
    width: 28px;
  }

  .brand-mark svg {
    height: 24px;
    width: 24px;
  }

  .nav {
    gap: 18px;
    overflow-x: auto;
  }

  .nav a,
  .nav button {
    font-size: 9.5px;
    padding-bottom: 11px;
    padding-top: 12px;
  }

  main {
    padding-top: 20px;
  }

  h1,
  .people-heading h1,
  .intelligence-heading h1 {
    font-size: 38px;
  }

  .page-heading,
  .people-heading,
  .intelligence-heading {
    padding-top: 10px;
  }

  .privacy-label {
    margin-top: 5px;
  }

  .panel {
    padding: 17px 15px;
  }

  .people-panel {
    padding: 8px 10px 11px;
  }

  .bulk-toolbar {
    bottom: 14px;
    max-width: calc(100vw - 24px);
    overflow-x: auto;
  }

  .intelligence-dialog {
    border-radius: var(--radius-lg);
    padding: 19px;
  }
}
