:root {
  color-scheme: dark;
  --canvas: #090b0e;
  --panel: #101419;
  --panel-2: #14191f;
  --panel-3: #0c1014;
  --panel-raised: #171d23;
  --line: #29323b;
  --line-strong: #3a4652;
  --text: #edf2f5;
  --text-soft: #d6dee3;
  --muted: #98a4ad;
  --subtle: #68747e;
  --accent: #42c9bb;
  --accent-soft: #102f2c;
  --blue: #6fa9e8;
  --blue-soft: #13263a;
  --critical: #ff6675;
  --high: #f3a657;
  --medium: #d9c85f;
  --low: #78c99a;
  --green: #55d68a;
  --danger-soft: #35171d;
  --warning-soft: #332516;
  --radius: 6px;
  --shadow: 0 24px 70px rgb(0 0 0 / 46%);
  font-family: "Segoe UI Variable", "Segoe UI", Inter, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--canvas);
  font-size: 15px;
  line-height: 1.45;
}

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

button,
a,
label,
summary {
  -webkit-tap-highlight-color: transparent;
}

button,
summary {
  user-select: none;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.app-shell {
  min-height: 100vh;
}

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

/* Tooltips */

[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  display: none;
  left: 50%;
  bottom: calc(100% + 9px);
  z-index: 90;
  width: max-content;
  max-width: min(270px, 82vw);
  padding: 7px 9px;
  color: var(--text);
  background: #07090b;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  box-shadow: 0 12px 30px rgb(0 0 0 / 45%);
  font-size: 0.73rem;
  font-weight: 600;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  text-align: left;
  transform: translate(-50%, 3px);
  transition: opacity 120ms ease, transform 120ms ease;
  white-space: normal;
}

[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::after {
  display: block;
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Product header */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(260px, auto) minmax(360px, 1fr) minmax(260px, auto);
  align-items: center;
  min-height: 64px;
  padding: 0 clamp(18px, 2.5vw, 36px);
  background: rgb(9 11 14 / 96%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand,
.brand-link,
.topbar-actions,
.top-nav,
.badge-row,
.button-row,
.drawer-footer,
.admin-token-row {
  display: flex;
  align-items: center;
}

.brand {
  min-width: 0;
  gap: 12px;
}

.brand-link {
  color: inherit;
  text-decoration: none;
}

.brand-monogram {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding-right: 11px;
  color: var(--accent);
  border-right: 1px solid var(--line-strong);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand-copy > span {
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-copy strong {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.2;
  white-space: nowrap;
}

.environment-chip,
.live-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 4px 8px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.environment-chip i,
.live-state i {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
}

.top-nav {
  justify-self: center;
  gap: 2px;
  min-width: 0;
}

.top-nav a {
  min-height: 36px;
  padding: 8px 12px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.top-nav a:hover {
  color: var(--text-soft);
  background: var(--panel-2);
}

.top-nav a.active {
  color: var(--text);
  background: var(--panel-raised);
  border-color: var(--line);
}

.topbar-actions {
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.current-workspace {
  max-width: 150px;
  color: var(--subtle);
  font-size: 0.72rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.stack-button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  width: min(210px, 24vw);
  min-height: 44px;
  padding: 6px 9px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
}

.stack-button:hover {
  border-color: var(--accent);
  background: var(--panel-2);
}

.stack-button-count {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #071310;
  background: var(--accent);
  border-radius: 4px;
  font-family: Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 800;
}

.stack-button-copy {
  display: grid;
  min-width: 0;
}

.stack-button-copy strong {
  font-size: 0.77rem;
}

.stack-button-copy small {
  color: var(--muted);
  font-size: 0.68rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-dock {
  display: none;
  scrollbar-width: none;
}

.mobile-dock::-webkit-scrollbar { display: none; }

.mobile-dock [data-tooltip]::after {
  display: none;
}

/* Buttons and fields */

.primary-button,
.secondary-button,
.text-button,
.icon-label-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 12px;
  color: var(--text-soft);
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.primary-button {
  color: #071310;
  background: var(--accent);
  border-color: var(--accent);
}

.primary-button:hover {
  background: #59d7ca;
  border-color: #59d7ca;
}

.secondary-button:hover,
.text-button:hover,
.icon-label-button:hover,
.icon-button:hover {
  color: var(--text);
  background: var(--panel-raised);
  border-color: #52606d;
}

.text-button {
  color: var(--accent);
  background: transparent;
  border-color: #28534f;
}

.icon-button {
  width: 38px;
  padding: 0;
  font-size: 1rem;
}

.icon-button.subtle {
  color: var(--subtle);
  background: transparent;
  border-color: transparent;
}

.compact-action {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 0.78rem;
}

.full {
  width: 100%;
}

.field {
  display: grid;
  gap: 7px;
  min-width: 0;
  margin: 0 0 13px;
}

.field > span {
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 700;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  color: var(--text);
  background: var(--panel-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  outline: none;
}

input,
select {
  min-height: 42px;
  padding: 9px 11px;
}

input::placeholder,
textarea::placeholder {
  color: #66727c;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(66 201 187 / 11%);
}

.field-hint {
  color: #7d8992;
  font-size: 0.7rem;
  line-height: 1.4;
}

/* Main feed layout */

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(250px, 284px) minmax(520px, 1fr) minmax(250px, 282px);
  gap: 18px;
  width: 100%;
  padding: 18px clamp(18px, 2.5vw, 36px) 40px;
}

.feed-column {
  min-width: 0;
}

.workspace-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  min-height: 96px;
  margin-bottom: 12px;
  padding: 6px 0 16px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.workspace-header h1,
.admin-header h1 {
  margin: 5px 0 3px;
  color: var(--text);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 720;
  letter-spacing: 0;
  line-height: 1.2;
}

.workspace-header p:not(.eyebrow),
.admin-header p:not(.eyebrow) {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.workspace-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}

.workspace-state {
  color: var(--subtle);
  font-family: Consolas, monospace;
  font-size: 0.7rem;
  white-space: nowrap;
}

.view-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.view-tabs button {
  position: relative;
  align-self: stretch;
  min-width: 130px;
  padding: 8px 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-weight: 650;
}

.view-tabs button:hover {
  color: var(--text-soft);
  background: rgb(255 255 255 / 2%);
}

.view-tabs button.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.view-tabs button span {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 7px;
  padding: 0 5px;
  color: var(--text-soft);
  background: var(--panel-raised);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 0.67rem;
}

.sort-indicator {
  margin-left: auto;
  color: var(--subtle);
  font-family: Consolas, monospace;
  font-size: 0.7rem;
}

.snapshot-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.snapshot-metric {
  display: grid;
  gap: 1px;
  min-width: 0;
  min-height: 72px;
  padding: 11px 13px;
  border-right: 1px solid var(--line);
}

.snapshot-metric:last-child {
  border-right: 0;
}

.snapshot-metric span,
.snapshot-metric small {
  color: var(--muted);
  font-size: 0.67rem;
  white-space: nowrap;
}

.snapshot-metric span {
  font-weight: 700;
  text-transform: uppercase;
}

.snapshot-metric strong {
  color: var(--text);
  font-family: Consolas, monospace;
  font-size: 1.22rem;
  line-height: 1.2;
}

.research-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  margin-bottom: 14px;
  padding: 8px 11px;
  color: var(--muted);
  background: #0d1518;
  border-left: 2px solid var(--blue);
  font-size: 0.76rem;
}

.notice-label {
  color: #b9d9f7;
  font-family: Consolas, monospace;
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
}

.research-notice a {
  color: var(--blue);
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

/* Filters */

.filter-panel,
.summary-panel {
  position: sticky;
  top: 82px;
  height: calc(100vh - 100px);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: #44515d transparent;
  scrollbar-width: thin;
}

.filter-panel {
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.panel-heading,
.drawer-heading,
.summary-heading,
.admin-panel-heading,
.section-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.panel-heading {
  align-items: center;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.panel-heading h2,
.summary-heading h2,
.admin-panel h2,
.drawer-heading h2 {
  margin: 4px 0 0;
  font-size: 1rem;
  letter-spacing: 0;
}

.filter-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 12px 0 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.filter-summary span {
  display: grid;
  min-width: 0;
  padding: 7px 5px;
  color: var(--subtle);
  background: var(--panel-3);
  font-size: 0.61rem;
  text-align: center;
  text-transform: uppercase;
}

.filter-summary strong {
  color: var(--text-soft);
  font-family: Consolas, monospace;
  font-size: 0.76rem;
}

.filter-group {
  padding: 14px 0 1px;
  border-bottom: 1px solid var(--line);
}

.filter-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.filter-group-heading strong {
  color: var(--text-soft);
  font-size: 0.75rem;
}

.filter-group-heading small {
  color: var(--subtle);
  font-size: 0.65rem;
}

kbd {
  min-width: 22px;
  padding: 2px 6px;
  color: var(--muted);
  background: var(--panel-3);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  font: 0.68rem Consolas, monospace;
  text-align: center;
}

.search-field {
  margin-bottom: 12px;
}

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

.filter-actions {
  padding-top: 14px;
}

/* Priority queue */

.priority-brief {
  margin-bottom: 14px;
  padding: 14px 0 4px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.priority-brief.quiet {
  padding-bottom: 14px;
}

.brief-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.brief-heading h2 {
  margin: 3px 0 0;
  font-size: 0.98rem;
}

.brief-heading > span {
  color: var(--subtle);
  font-family: Consolas, monospace;
  font-size: 0.69rem;
  white-space: nowrap;
}

.brief-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.brief-card {
  display: grid;
  gap: 5px;
  min-height: 106px;
  padding: 11px 12px;
  color: var(--text);
  background: var(--panel-3);
  border: 0;
  cursor: pointer;
  text-align: left;
}

.brief-card:hover {
  background: var(--panel-raised);
}

.brief-card span,
.triage-line span,
.assessment-priority > span {
  color: var(--muted);
  font-family: Consolas, monospace;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
}

.brief-card strong {
  overflow: hidden;
  display: -webkit-box;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.brief-card small {
  color: var(--muted);
  line-height: 1.35;
}

/* Threat list */

.threat-list,
.skeleton-stack {
  display: grid;
  gap: 10px;
}

.load-more-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  margin-top: 12px;
  padding: 10px 12px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.76rem;
}

.load-more-row strong {
  color: var(--subtle);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.load-more-button {
  min-width: 190px;
  justify-content: center;
}

.load-more-button small {
  margin-left: 7px;
  color: var(--subtle);
  font-size: 0.65rem;
}

.ad-placement {
  display: grid;
  min-height: 112px;
  padding: 9px 12px 12px;
  background: #0b0e11;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.ad-label {
  color: var(--subtle);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
}

.ad-placement .adsbygoogle {
  min-width: 0;
  min-height: 82px;
}

.threat-card {
  position: relative;
  display: grid;
  gap: 11px;
  min-width: 0;
  padding: 15px 16px 13px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid #55616c;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 130ms ease, border-color 130ms ease;
}

.threat-card:hover,
.threat-card:focus-visible {
  background: var(--panel-2);
  border-color: var(--line-strong);
}

.threat-card.threat-critical,
.threat-card.is-kev {
  border-left-color: var(--critical);
}

.threat-card.threat-high {
  border-left-color: var(--high);
}

.threat-card.threat-medium {
  border-left-color: var(--medium);
}

.threat-card.threat-low {
  border-left-color: var(--low);
}

.card-topline,
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.badge-row {
  gap: 6px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: Consolas, monospace;
  font-size: 0.63rem;
  font-weight: 700;
  text-transform: uppercase;
}

.severity-critical,
.kev-badge {
  color: #ffd9de;
  background: var(--danger-soft);
  border-color: #6a2c37;
}

.severity-high,
.no-patch-badge {
  color: #ffdfbd;
  background: var(--warning-soft);
  border-color: #6a4824;
}

.severity-medium {
  color: #f6e9a4;
  background: #2e2a15;
  border-color: #5d5526;
}

.severity-low,
.severity-info,
.source-badge {
  color: #c8dcf1;
  background: var(--blue-soft);
  border-color: #294766;
}

.patched-badge {
  color: #c9f4d8;
  background: #123021;
  border-color: #285e40;
}

.risk-pill {
  display: grid;
  place-items: center;
  min-width: 52px;
  height: 43px;
  padding: 3px 7px;
  background: var(--panel-3);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
}

.risk-pill span {
  font-family: Consolas, monospace;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1;
}

.risk-pill small {
  color: var(--subtle);
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
}

.risk-critical span { color: var(--critical); }
.risk-high span { color: var(--high); }
.risk-medium span { color: var(--medium); }
.risk-low span { color: var(--low); }

.threat-heading {
  display: grid;
  gap: 4px;
}

.card-identifiers {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-bottom: 5px;
  color: var(--muted);
  font-family: Consolas, monospace;
  font-size: 0.67rem;
}

.card-identifiers span + span::before {
  content: "/";
  margin-right: 12px;
  color: #47525c;
}

.threat-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.01rem;
  font-weight: 700;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.stack-impact {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  background: #0e1a21;
  border: 1px solid #233d4d;
  border-radius: 4px;
}

.stack-impact-neutral {
  background: var(--panel-3);
  border-color: var(--line);
}

.stack-impact-label {
  color: #a9d2f4;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}

.stack-impact-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stack-impact-items span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 8px;
  color: #dbeaf7;
  background: #142838;
  border: 1px solid #31526b;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 650;
}

.stack-impact-neutral .stack-impact-items span {
  color: var(--text-soft);
  background: var(--panel-2);
  border-color: var(--line-strong);
}

.triage-line {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 38px;
  padding: 7px 10px;
  background: var(--panel-3);
  border-left: 2px solid var(--line-strong);
}

.triage-line strong {
  color: var(--text-soft);
  font-size: 0.79rem;
  line-height: 1.35;
}

.priority-critical { border-color: var(--critical) !important; }
.priority-high { border-color: var(--high) !important; }
.priority-medium { border-color: var(--medium) !important; }
.priority-low { border-color: #5f6b75 !important; }
.priority-critical > span,
.priority-critical span { color: var(--critical); }
.priority-high > span,
.priority-high span { color: var(--high); }
.priority-medium > span,
.priority-medium span { color: var(--medium); }

.threat-summary {
  margin: 0;
  color: #c6d0d6;
  font-size: 0.86rem;
  line-height: 1.55;
}

.reason {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.reason strong {
  color: var(--text-soft);
}

.evidence-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.evidence-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  color: #c9d3da;
  background: #151b21;
  border: 1px solid #303b45;
  border-radius: 3px;
  font-size: 0.64rem;
  font-weight: 650;
}

.evidence-critical {
  color: #ffd6dc;
  background: var(--danger-soft);
  border-color: #69303a;
}

.evidence-high,
.evidence-warning {
  color: #ffe0be;
  background: var(--warning-soft);
  border-color: #664723;
}

.evidence-patched {
  color: #c9f4d8;
  background: #123021;
  border-color: #285e40;
}

.evidence-stack,
.evidence-new {
  color: #cce2f7;
  background: var(--blue-soft);
  border-color: #294766;
}

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

.source-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--subtle);
  font-size: 0.68rem;
}

.source-wrap > span:not(.badge) {
  white-space: nowrap;
}

.button-row {
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.button-row .text-button,
.button-row .icon-label-button {
  min-height: 32px;
  padding: 5px 9px;
  font-size: 0.72rem;
}

.button-row .icon-button {
  width: 32px;
  min-height: 32px;
}

.open-detail-hint {
  margin-right: 2px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 650;
}

/* Summary rail */

.summary-panel {
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.summary-heading {
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.summary-section {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.summary-section:last-child {
  border-bottom: 0;
}

.summary-section h3,
.section-heading-row h3 {
  margin: 0 0 10px;
  color: var(--text-soft);
  font-size: 0.78rem;
}

.section-heading-row {
  align-items: center;
}

.section-heading-row a {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 650;
  text-decoration: none;
}

.signal-list,
.mini-map {
  display: grid;
  gap: 6px;
}

.signal-row,
.mini-map-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 35px;
  padding: 7px 9px;
  background: var(--panel-3);
  border-left: 2px solid var(--line-strong);
}

.signal-row span,
.mini-map-row span {
  color: var(--muted);
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}

.signal-row strong,
.mini-map-row strong {
  font-family: Consolas, monospace;
  font-size: 0.78rem;
}

.signal-critical { border-left-color: var(--critical); }
.signal-high,
.signal-warning { border-left-color: var(--high); }
.signal-info { border-left-color: var(--blue); }

.sync-stamp,
.cadence-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.48;
}

.sync-stamp {
  margin: 0 0 8px;
}

.source-health-row {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 6px 0;
  border-top: 1px solid #222a31;
}

.source-health-row strong {
  min-width: 0;
  font-size: 0.72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-health-row small {
  color: var(--subtle);
  font-size: 0.64rem;
  white-space: nowrap;
}

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

.status-dot.healthy { background: var(--green); }
.status-dot.degraded { background: var(--high); }
.status-dot.failed { background: var(--critical); }
.status-dot.pending { background: var(--medium); }
.status-dot.disabled { background: #4b565f; }

/* Drawers and dialogs */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  justify-content: end;
  background: rgb(0 0 0 / 68%);
}

.stack-drawer {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  width: min(610px, 100vw);
  height: 100vh;
  background: var(--panel);
  border-left: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}

.drawer-heading {
  padding: 18px 18px 16px;
  border-bottom: 1px solid var(--line);
}

.drawer-heading p:not(.eyebrow) {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.stack-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: var(--panel-3);
  border-bottom: 1px solid var(--line);
}

.stack-selection-status {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 0 6px;
}

.stack-selection-status strong {
  color: var(--accent);
  font-family: Consolas, monospace;
  font-size: 1.1rem;
}

.stack-selection-status span,
.stack-selection-status small {
  color: var(--muted);
  font-size: 0.72rem;
}

.stack-selection-status small {
  grid-column: 1 / -1;
  color: var(--subtle);
}

.stack-actions {
  display: flex;
  gap: 7px;
}

.stack-actions .secondary-button {
  min-height: 34px;
  padding: 6px 9px;
  font-size: 0.72rem;
}

.stack-tree {
  overflow: auto;
  padding: 8px 14px 20px;
  scrollbar-color: #44515d transparent;
  scrollbar-width: thin;
}

.stack-group {
  border-bottom: 1px solid var(--line);
}

.stack-group summary {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 48px;
  padding: 8px 6px;
  border-radius: 4px;
  cursor: pointer;
  list-style: none;
}

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

.stack-group summary:hover {
  background: var(--panel-2);
}

.stack-caret {
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  transform: rotate(-45deg);
  transition: transform 120ms ease;
}

.stack-group[open] > summary .stack-caret {
  transform: rotate(45deg) translate(-2px, -2px);
}

.stack-group-copy {
  display: grid;
  min-width: 0;
}

.stack-group-copy strong {
  color: var(--text-soft);
  font-size: 0.82rem;
}

.stack-group-copy small {
  color: var(--subtle);
  font-size: 0.66rem;
}

.stack-group-count {
  color: var(--muted);
  font-family: Consolas, monospace;
  font-size: 0.67rem;
}

.stack-children {
  padding: 0 0 8px 11px;
  border-left: 1px solid #273039;
}

.stack-check {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 42px;
  padding: 6px 7px 6px calc(var(--depth) * 4px + 7px);
  border-radius: 4px;
  cursor: pointer;
}

.stack-check:hover {
  background: #121b20;
}

.stack-check-broad {
  margin-bottom: 2px;
  background: var(--panel-3);
  border-left: 2px solid #34414b;
}

.stack-check input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--accent);
}

.stack-check span {
  display: grid;
  min-width: 0;
}

.stack-check strong {
  color: var(--text-soft);
  font-size: 0.78rem;
}

.stack-check small {
  color: var(--subtle);
  font-size: 0.65rem;
}

.drawer-footer {
  gap: 8px;
  padding: 13px 18px;
  background: var(--panel-3);
  border-top: 1px solid var(--line-strong);
}

.drawer-footer p {
  margin: 0 auto 0 0;
  color: var(--subtle);
  font-size: 0.7rem;
}

.detail-modal {
  width: min(1120px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  align-self: center;
  justify-self: center;
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  scrollbar-color: #44515d transparent;
  scrollbar-width: thin;
}

.detail-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 18px;
  background: rgb(16 20 25 / 97%);
  border-bottom: 1px solid var(--line-strong);
  backdrop-filter: blur(12px);
}

.detail-heading-copy {
  min-width: 0;
}

.detail-header h2 {
  max-width: 850px;
  margin: 9px 0 0;
  font-size: 1.16rem;
  line-height: 1.38;
}

.detail-header-side {
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-reference-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  margin-top: 11px;
}

.detail-reference-bar > span {
  color: var(--subtle);
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
}

.detail-reference-bar > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.detail-reference-bar a {
  max-width: 220px;
  padding: 3px 7px;
  color: var(--accent);
  background: var(--panel-3);
  border: 1px solid #28534f;
  border-radius: 3px;
  font-size: 0.67rem;
  font-weight: 650;
  overflow: hidden;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
}

.detail-main {
  min-width: 0;
  padding: 0 22px 24px;
  border-right: 1px solid var(--line);
}

.detail-section {
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}

.detail-section:last-child {
  border-bottom: 0;
}

.detail-section h3,
.detail-facts h3 {
  margin: 4px 0 10px;
  font-size: 0.94rem;
}

.detail-section > p:not(.eyebrow),
.discussion-list > p {
  margin: 0;
  color: #c7d1d7;
  line-height: 1.62;
}

.assessment-priority {
  display: grid;
  gap: 5px;
  margin-bottom: 11px;
  padding: 11px 12px;
  background: var(--panel-3);
  border-left: 3px solid var(--line-strong);
}

.assessment-priority strong {
  color: var(--text-soft);
}

.assessment-priority small {
  color: var(--muted);
  line-height: 1.4;
}

.match-list,
.timeline,
.discussion-list,
.reference-list {
  display: grid;
  gap: 7px;
}

.match-row {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  background: var(--panel-3);
  border-left: 2px solid var(--blue);
}

.match-row strong {
  font-size: 0.78rem;
}

.match-row span {
  color: var(--muted);
  font-size: 0.72rem;
}

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

.version-grid > div {
  display: grid;
  gap: 4px;
  padding: 10px;
  background: var(--panel-3);
  border: 1px solid var(--line);
}

.version-grid span {
  color: var(--muted);
  font-size: 0.66rem;
  text-transform: uppercase;
}

.version-grid strong {
  font-size: 0.76rem;
  overflow-wrap: anywhere;
}

.note-input {
  min-height: 120px;
  padding: 10px;
  resize: vertical;
  line-height: 1.5;
}

.note-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 9px;
  flex-wrap: wrap;
}

.note-actions small {
  color: var(--subtle);
  font-size: 0.69rem;
}

.discussion-topic {
  margin-top: 10px !important;
  color: var(--muted) !important;
  font-size: 0.78rem;
}

.discussion-topic strong {
  color: var(--text-soft);
  overflow-wrap: anywhere;
}

.discussion-list {
  margin: 12px 0;
}

.discussion-list a,
.discussion-search-links a {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  color: var(--text-soft);
  background: var(--panel-3);
  border: 1px solid var(--line);
  border-radius: 4px;
  text-decoration: none;
}

.discussion-list a:hover,
.discussion-search-links a:hover {
  border-color: var(--accent);
}

.discussion-list span,
.discussion-search-links a {
  color: var(--muted);
  font-size: 0.72rem;
}

.discussion-search-links {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.discussion-status {
  color: var(--muted) !important;
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #222a31;
}

.timeline span {
  color: var(--muted);
  font-family: Consolas, monospace;
  font-size: 0.68rem;
}

.timeline strong {
  font-size: 0.77rem;
}

.detail-facts {
  align-self: start;
  padding: 18px;
  background: var(--panel-3);
}

.detail-facts-heading {
  margin-bottom: 12px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}

.fact {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid #222a31;
}

.fact span {
  color: var(--muted);
  font-size: 0.7rem;
}

.fact strong {
  color: var(--text-soft);
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}

.detail-quick-actions {
  display: grid;
  gap: 7px;
  margin-top: 16px;
}

/* Empty, alerts, skeletons, and notices */

.alert,
.empty-state {
  padding: 17px;
  border-radius: var(--radius);
}

.alert {
  margin-bottom: 12px;
  color: #ffe0bd;
  background: var(--warning-soft);
  border: 1px solid #624621;
}

.alert.success {
  color: #c9f4d8;
  background: #123021;
  border-color: #285e40;
}

.empty-state {
  display: grid;
  justify-items: center;
  min-height: 220px;
  align-content: center;
  background: var(--panel);
  border: 1px dashed var(--line-strong);
  text-align: center;
}

.empty-state.compact {
  min-height: 150px;
}

.empty-state-code {
  color: var(--subtle);
  font-family: Consolas, monospace;
  font-size: 0.67rem;
}

.empty-state h2 {
  margin: 7px 0 4px;
  font-size: 1rem;
}

.empty-state p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

.empty-actions {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.skeleton-card {
  display: grid;
  gap: 11px;
  padding: 15px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid #3d4852;
  border-radius: var(--radius);
}

.skeleton-topline,
.skeleton-footer {
  display: flex;
  align-items: center;
  gap: 8px;
}

.skeleton-topline .skeleton-pill:first-child,
.skeleton-pill.source {
  margin-right: auto;
}

.skeleton-line,
.skeleton-pill,
.skeleton-score,
.skeleton-strip,
.skeleton-button {
  display: block;
  overflow: hidden;
  background: linear-gradient(90deg, #151a1f, #222a31, #151a1f);
  background-size: 220% 100%;
  border: 1px solid #28323a;
  border-radius: 4px;
  animation: skeleton-pulse 1.5s linear infinite;
}

.skeleton-pill { width: 118px; height: 22px; }
.skeleton-pill.short { width: 92px; }
.skeleton-pill.source { width: 132px; }
.skeleton-score { width: 52px; height: 43px; }
.skeleton-line { width: 100%; height: 14px; }
.skeleton-line.title { width: 72%; height: 20px; }
.skeleton-line.medium { width: 48%; }
.skeleton-line.narrow { width: 64%; }
.skeleton-strip { width: 100%; height: 40px; }
.skeleton-button { width: 100px; height: 32px; }
.skeleton-button.short { width: 72px; }

@keyframes skeleton-pulse {
  from { background-position: 0 0; }
  to { background-position: -220% 0; }
}

.status-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  max-width: min(390px, calc(100vw - 36px));
  padding: 11px 13px;
  color: var(--text);
  background: #15211f;
  border: 1px solid #2f625c;
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 16px 42px rgb(0 0 0 / 42%);
  font-size: 0.8rem;
  font-weight: 650;
}

/* Exposure map */

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.75fr);
  gap: 14px;
  padding: 18px clamp(18px, 2.5vw, 36px) 40px;
}

.map-panel {
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.map-overview {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 6px 0 16px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.map-overview h2 {
  margin: 5px 0 3px;
  font-size: 1.45rem;
}

.map-panel h2 {
  margin: 0 0 7px;
  font-size: 0.95rem;
}

.map-panel p {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 0.8rem;
}

.map-panel.wide {
  grid-row: span 2;
}

.map-bars {
  display: grid;
  gap: 11px;
}

.map-bar {
  display: grid;
  gap: 5px;
}

.map-bar > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.map-bar strong {
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}

.map-bar span {
  color: var(--subtle);
  font-size: 0.67rem;
  white-space: nowrap;
}

.map-bar i {
  position: relative;
  display: block;
  width: 100%;
  height: 7px;
  overflow: hidden;
  background: var(--panel-3);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.map-bar i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--bar-width);
  background: var(--accent);
}

/* Source operations */

.admin-layout,
.legal-layout {
  display: grid;
  gap: 14px;
  padding: 18px clamp(18px, 2.5vw, 36px) 40px;
}

.admin-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 6px 0 16px;
  border-bottom: 1px solid var(--line);
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  gap: 1px;
  overflow: hidden;
}

.admin-metric {
  display: grid;
  gap: 2px;
  min-height: 70px;
  padding: 11px 14px;
  background: var(--panel);
}

.admin-metric span {
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.admin-metric strong {
  font-family: Consolas, monospace;
  font-size: 1.28rem;
}

.admin-metric-critical strong {
  color: var(--critical);
}

.admin-metric-warning strong {
  color: var(--high);
}

.admin-panel {
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-panel-heading {
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.admin-panel-heading > span {
  color: var(--subtle);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.admin-token-row {
  align-items: flex-end;
  gap: 9px;
}

.admin-token-row .field {
  width: min(480px, 100%);
  margin: 0;
}

.source-form {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 150px minmax(260px, 1.7fr) minmax(150px, 0.8fr) auto;
  gap: 9px;
  align-items: end;
  margin-bottom: 16px;
  padding: 13px;
  background: var(--panel-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.source-form .field {
  margin: 0;
}

.admin-table,
.run-list,
.unmapped-list {
  display: grid;
  gap: 7px;
}

.admin-row {
  display: grid;
  grid-template-columns: 8px minmax(0, 1.4fr) minmax(180px, 0.7fr) auto;
  gap: 11px;
  align-items: center;
  min-width: 0;
  padding: 10px 11px;
  background: var(--panel-3);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.admin-source-identity,
.admin-source-telemetry {
  display: grid;
  min-width: 0;
}

.admin-source-identity strong,
.admin-source-telemetry strong {
  font-size: 0.78rem;
}

.admin-source-identity span,
.admin-source-identity small,
.admin-source-telemetry small {
  color: var(--muted);
  font-size: 0.68rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.error-text {
  color: var(--critical) !important;
}

.warning-text {
  color: var(--high) !important;
}

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

.run-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 9px;
  padding: 9px 10px;
  background: var(--panel-3);
  border-left: 2px solid var(--green);
}

.run-row.failed {
  border-left-color: var(--critical);
}

.run-row strong,
.run-row span,
.run-row small {
  font-size: 0.72rem;
}

.run-row span,
.run-row small {
  color: var(--muted);
}

.unmapped-list article {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  background: var(--panel-3);
  border-left: 2px solid var(--medium);
}

.unmapped-list article strong {
  font-size: 0.76rem;
}

.unmapped-list article span {
  color: var(--muted);
  font-size: 0.7rem;
}

/* Legal and footer */

.content-page {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 56px;
}

.content-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 0 0 24px;
  border-bottom: 1px solid var(--line-strong);
}

.content-page-header h1 {
  margin: 5px 0 7px;
  font-size: 1.9rem;
}

.content-page-header p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
}

.status-banner,
.provider-status,
.release-state,
.version-stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 700;
}

.status-banner {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  text-transform: uppercase;
}

.status-banner i,
.provider-status i {
  width: 7px;
  height: 7px;
  background: var(--subtle);
  border-radius: 50%;
}

.status-operational i,
.provider-healthy i { background: var(--green); }
.status-degraded i,
.provider-degraded i,
.provider-pending i { background: var(--high); }
.provider-failed i { background: var(--critical); }

.status-overview {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, minmax(120px, 1fr));
  gap: 1px;
  margin: 24px 0 38px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.status-metric {
  display: grid;
  gap: 6px;
  min-height: 82px;
  padding: 14px 16px;
  background: var(--panel);
}

.status-metric span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-metric strong {
  align-self: end;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.88rem;
}

.content-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
}

.content-section-heading h2 {
  margin: 4px 0 0;
  font-size: 1.12rem;
}

.content-section-heading > span {
  color: var(--subtle);
  font-size: 0.72rem;
}

.responsive-table {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.status-table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
  background: var(--panel);
}

.status-table th,
.status-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 0.75rem;
  text-align: left;
  vertical-align: middle;
}

.status-table th {
  color: var(--muted);
  background: var(--panel-3);
  font-size: 0.66rem;
  text-transform: uppercase;
}

.status-table tbody tr:last-child td { border-bottom: 0; }
.status-table td:not(:first-child) { color: var(--muted); }

.status-explainer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 38px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.status-explainer > div {
  padding: 20px 24px 22px 0;
  border-right: 1px solid var(--line);
}

.status-explainer > div:not(:first-child) { padding-left: 24px; }
.status-explainer > div:last-child { border-right: 0; }
.status-explainer h2 { margin: 0 0 8px; font-size: 0.88rem; }
.status-explainer p { margin: 0; color: var(--muted); font-size: 0.77rem; line-height: 1.6; }
.status-explainer a { color: var(--accent); }

.status-error {
  margin-top: 24px;
  padding: 22px;
  background: var(--danger-soft);
  border: 1px solid var(--critical);
  border-radius: var(--radius);
}

.status-error h2 { margin: 0 0 6px; font-size: 1rem; }
.status-error p { color: var(--text-soft); }

.page-skeleton {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.page-skeleton .skeleton-wide { width: 64%; height: 28px; }
.skeleton-table { height: 340px; background: var(--panel); border: 1px solid var(--line); }

.editorial-page { width: min(1040px, calc(100% - 48px)); }

.blog-entry {
  max-width: 780px;
  margin: 0 auto;
}

.blog-entry-header {
  padding: 8px 0 26px;
  border-bottom: 1px solid var(--line-strong);
}

.blog-entry-header h1 {
  margin: 6px 0 14px;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 2rem;
  letter-spacing: 0;
}

.blog-entry-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.74rem;
}

.blog-entry-meta span::after {
  content: "/";
  margin-left: 10px;
  color: var(--line-strong);
}

.blog-entry-body {
  padding: 28px 0 14px;
}

.blog-entry-body p {
  margin: 0 0 22px;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.8;
}

.blog-entry-body p:first-child {
  color: var(--text);
  font-size: 1.08rem;
}

.version-stamp {
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
}

.version-stamp strong { color: var(--accent); font-family: Consolas, monospace; }
.current-release { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 28px; padding: 34px 0 40px; border-bottom: 1px solid var(--line-strong); }
.release-rail { display: grid; align-content: start; gap: 10px; color: var(--accent); font-family: Consolas, monospace; font-weight: 800; }
.release-rail i { display: block; width: 2px; height: 110px; margin-left: 7px; background: var(--accent); }
.release-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.release-heading > div { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.release-heading h2 { margin: 0; font-size: 1.35rem; }
.release-heading time { color: var(--muted); font-size: 0.74rem; }
.release-state { padding: 4px 6px; border: 1px solid var(--line-strong); border-radius: 3px; font-size: 0.63rem; text-transform: uppercase; }
.release-state.shipped { color: var(--green); border-color: rgb(85 214 138 / 45%); }
.release-state.planned { color: var(--blue); border-color: rgb(111 169 232 / 45%); }
.release-content > p { max-width: 780px; color: var(--muted); line-height: 1.65; }
.release-list { display: grid; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.release-list li { position: relative; padding-left: 18px; color: var(--text-soft); font-size: 0.8rem; }
.release-list li::before { content: ""; position: absolute; top: 0.55em; left: 0; width: 7px; height: 2px; background: var(--accent); }

.roadmap-section { padding: 38px 0; }
.roadmap-list { border-top: 1px solid var(--line); }
.roadmap-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 28px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.roadmap-version { color: var(--muted); font-family: Consolas, monospace; font-size: 0.8rem; font-weight: 700; }
.roadmap-row h3 { margin: 8px 0 5px; font-size: 0.95rem; }
.roadmap-row p { max-width: 820px; margin: 0; color: var(--muted); font-size: 0.78rem; line-height: 1.6; }

.decision-gates { padding: 30px 0 8px; border-top: 1px solid var(--line-strong); }
.decision-gates > h2 { margin: 0 0 16px; font-size: 1.08rem; }
.gate-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); }
.gate-grid > div { min-height: 124px; padding: 18px; background: var(--panel); }
.gate-grid strong { font-size: 0.82rem; }
.gate-grid p { margin: 7px 0 0; color: var(--muted); font-size: 0.76rem; line-height: 1.55; }

.legal-panel {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 20px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.legal-panel h2 {
  margin: 5px 0 4px;
  font-size: 1.35rem;
}

.legal-updated,
.legal-intro,
.legal-section p {
  color: var(--muted);
  line-height: 1.62;
}

.legal-updated {
  margin: 0 0 14px;
  font-size: 0.75rem;
}

.legal-intro {
  margin: 0 0 16px;
  color: var(--text-soft);
}

.legal-section {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.legal-section h3 {
  margin: 0 0 8px;
  font-size: 0.92rem;
}

.legal-section p {
  margin: 8px 0 0;
}

.legal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(18px, 2.5vw, 36px);
  color: var(--muted);
  background: #07090b;
  border-top: 1px solid var(--line);
}

.legal-footer > div {
  display: grid;
  gap: 2px;
}

.legal-footer strong,
.legal-footer span,
.legal-footer a {
  font-size: 0.7rem;
}

.legal-footer strong {
  color: var(--text-soft);
}

.legal-footer nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.legal-footer a {
  color: var(--accent);
  font-weight: 650;
  text-decoration: none;
}

/* CISSP study lab */

.cissp-page {
  width: min(1280px, calc(100% - 48px));
  min-height: calc(100vh - 64px);
  margin: 0 auto;
  padding: 32px 0 64px;
}

.cissp-heading,
.cissp-section-heading,
.cissp-independence-note,
.cissp-session-bar,
.cissp-question-meta,
.cissp-question-actions,
.cissp-card-toolbar,
.cissp-card-navigation,
.cissp-summary-actions,
.cissp-rating-actions {
  display: flex;
  align-items: center;
}

.cissp-heading {
  justify-content: space-between;
  gap: 36px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line-strong);
}

.cissp-heading h1 {
  margin: 5px 0 7px;
  font-size: 2.1rem;
  line-height: 1.1;
}

.cissp-heading > div > p:last-child {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
}

.cissp-library-summary,
.cissp-progress-metrics,
.cissp-mini-stats {
  display: grid;
  margin: 0;
}

.cissp-library-summary {
  grid-template-columns: repeat(3, minmax(108px, auto));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-3);
}

.cissp-library-summary > div {
  min-width: 0;
  padding: 12px 15px;
  border-right: 1px solid var(--line);
}

.cissp-library-summary > div:last-child {
  border-right: 0;
}

.cissp-library-summary dt,
.cissp-progress-metrics dt,
.cissp-mini-stats dt {
  color: var(--muted);
  font-size: 0.72rem;
}

.cissp-library-summary dd,
.cissp-progress-metrics dd,
.cissp-mini-stats dd {
  margin: 2px 0 0;
  color: var(--text);
  font-weight: 750;
}

.cissp-library-summary > div:last-child dd {
  white-space: nowrap;
}

.cissp-independence-note {
  justify-content: space-between;
  gap: 20px;
  margin: 18px 0 0;
  padding: 12px 15px;
  border-left: 3px solid var(--blue);
  background: #0e151c;
}

.cissp-independence-note > div {
  display: grid;
  gap: 2px;
}

.cissp-independence-note span {
  color: var(--muted);
  font-size: 0.8rem;
}

.cissp-independence-note a {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
}

.cissp-study-root {
  margin-top: 22px;
}

.cissp-skeleton {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
  min-height: 420px;
}

.cissp-skeleton span {
  border: 1px solid var(--line);
  background: var(--panel);
  animation: cissp-pulse 1.3s ease-in-out infinite alternate;
}

.cissp-skeleton span:first-child {
  grid-row: 1 / 3;
}

@keyframes cissp-pulse {
  from { opacity: 0.46; }
  to { opacity: 0.9; }
}

.cissp-trademark-note {
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--subtle);
  font-size: 0.72rem;
}

.cissp-tabs {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line-strong);
  scrollbar-width: thin;
}

.cissp-tabs button {
  position: relative;
  flex: 0 0 auto;
  min-width: 126px;
  min-height: 44px;
  padding: 10px 15px;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 700;
}

.cissp-tabs button::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: -1px;
  left: 12px;
  height: 2px;
  background: transparent;
}

.cissp-tabs button:hover {
  color: var(--text);
  background: var(--panel-3);
}

.cissp-tabs button.active {
  color: var(--text);
}

.cissp-tabs button.active::after {
  background: var(--accent);
}

.cissp-tab-panel {
  padding-top: 26px;
}

.cissp-section-heading {
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.cissp-section-heading h2 {
  margin: 3px 0 0;
  font-size: 1.35rem;
}

.cissp-section-heading > span {
  color: var(--muted);
  font-size: 0.78rem;
}

.cissp-setup-grid,
.cissp-flash-layout,
.cissp-progress-layout,
.cissp-summary-grid {
  display: grid;
  align-items: start;
}

.cissp-setup-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 22px;
}

.cissp-controls,
.cissp-mindset,
.cissp-progress-summary {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.cissp-controls {
  padding: 20px;
}

.cissp-controls fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.cissp-controls legend,
.cissp-controls label,
.cissp-flash-controls label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
}

.cissp-controls legend {
  margin-bottom: 9px;
}

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

.cissp-segmented button {
  display: grid;
  gap: 2px;
  min-width: 0;
  min-height: 62px;
  padding: 10px;
  color: var(--text-soft);
  background: var(--panel-3);
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
}

.cissp-segmented button:hover {
  border-color: var(--line-strong);
  background: var(--panel-2);
}

.cissp-segmented button.active {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.cissp-segmented button span {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 500;
}

.cissp-field-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.cissp-field-grid label,
.cissp-flash-controls label {
  display: grid;
  gap: 6px;
}

.cissp-field-grid select,
.cissp-flash-controls select,
.cissp-flash-controls input {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  color: var(--text);
  background: var(--panel-3);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
}

.cissp-start-button {
  min-width: 170px;
  margin-top: 20px;
}

.cissp-inline-alert {
  margin: 16px 0 0;
  padding: 10px 12px;
  color: #f4d7a9;
  background: var(--warning-soft);
  border-left: 3px solid var(--high);
  font-size: 0.82rem;
}

.cissp-mindset {
  padding: 20px;
}

.cissp-mindset h3 {
  margin: 5px 0 13px;
  font-size: 1.08rem;
}

.cissp-mindset ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0 0 0 19px;
  color: var(--text-soft);
  font-size: 0.84rem;
}

.cissp-mini-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 19px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.cissp-mini-stats > div {
  padding-right: 8px;
}

.cissp-session-bar {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.cissp-session-progress {
  display: grid;
  flex: 1 1 auto;
  max-width: 650px;
  gap: 6px;
}

.cissp-session-progress > span,
.cissp-session-score {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.cissp-progress-track {
  height: 5px;
  overflow: hidden;
  background: #202830;
  border-radius: 2px;
}

.cissp-progress-track i {
  display: block;
  height: 100%;
  background: var(--accent);
  transition: width 180ms ease;
}

.cissp-question-panel {
  padding: clamp(20px, 3.5vw, 36px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
}

.cissp-question-meta {
  justify-content: space-between;
  gap: 16px;
}

.cissp-question-meta > div,
.cissp-flashcard-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.cissp-domain-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  min-height: 24px;
  padding: 3px 6px;
  color: #b8d7f5;
  background: var(--blue-soft);
  border: 1px solid #34597c;
  border-radius: 4px;
  font-family: Consolas, "SFMono-Regular", monospace;
}

.cissp-bookmark-button {
  min-height: 34px;
  padding: 6px 10px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
}

.cissp-bookmark-button:hover,
.cissp-bookmark-button.active {
  color: #f4d792;
  border-color: #806c37;
  background: #2a2414;
}

.cissp-objective {
  margin: 24px 0 7px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 750;
  text-transform: uppercase;
}

.cissp-question-panel h2 {
  max-width: 990px;
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.35;
}

.cissp-choice-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
}

.cissp-choice {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 12px;
  color: var(--text-soft);
  background: var(--panel-3);
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
}

.cissp-choice:hover:not(:disabled) {
  color: var(--text);
  border-color: #52606d;
  background: var(--panel-2);
}

.cissp-choice > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-family: Consolas, "SFMono-Regular", monospace;
}

.cissp-choice strong {
  font-size: 0.88rem;
  line-height: 1.4;
}

.cissp-choice small {
  color: var(--muted);
  font-size: 0.65rem;
  white-space: nowrap;
}

.cissp-choice:disabled {
  cursor: default;
  opacity: 0.78;
}

.cissp-choice.correct {
  color: #d8f6e3;
  background: #10261a;
  border-color: #387a51;
  opacity: 1;
}

.cissp-choice.correct > span {
  color: var(--green);
  border-color: #387a51;
}

.cissp-choice.incorrect {
  color: #f6d5da;
  background: var(--danger-soft);
  border-color: #88404b;
  opacity: 1;
}

.cissp-choice.incorrect > span {
  color: var(--critical);
  border-color: #88404b;
}

.cissp-answer-prompt {
  margin: 18px 0 0;
  color: var(--subtle);
  font-size: 0.76rem;
}

.cissp-rationale {
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) minmax(0, 1.2fr) minmax(220px, 0.6fr);
  gap: 20px;
  margin-top: 25px;
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
}

.cissp-rationale-result,
.cissp-takeaway {
  display: grid;
  align-content: start;
  gap: 3px;
}

.cissp-rationale-result strong {
  color: var(--green);
  font-size: 1.05rem;
}

.cissp-rationale.incorrect .cissp-rationale-result strong {
  color: var(--critical);
}

.cissp-rationale h3,
.cissp-flashcard-answer h3,
.cissp-progress-layout h3,
.cissp-domain-detail h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.cissp-rationale p,
.cissp-rationale-result span,
.cissp-takeaway p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.cissp-takeaway {
  padding: 12px;
  background: var(--blue-soft);
  border-left: 3px solid var(--blue);
}

.cissp-takeaway strong {
  color: #b8d7f5;
  font-size: 0.75rem;
}

.cissp-question-actions {
  justify-content: space-between;
  gap: 20px;
  margin-top: 14px;
}

.cissp-question-actions > span {
  color: var(--muted);
  font-size: 0.76rem;
}

.cissp-quiz-summary {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
}

.cissp-quiz-summary > header {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.cissp-quiz-summary h2 {
  margin: 4px 0 6px;
  font-size: 1.75rem;
}

.cissp-quiz-summary > header p:last-child {
  margin: 0;
  color: var(--muted);
}

.cissp-summary-grid {
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 28px;
  margin-top: 24px;
}

.cissp-score-block {
  display: grid;
  place-content: center;
  aspect-ratio: 1;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid #28534f;
  border-radius: var(--radius);
  text-align: center;
}

.cissp-score-block span {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
}

.cissp-score-block small {
  margin-top: 4px;
  color: var(--muted);
}

.cissp-summary-grid h3 {
  margin: 0 0 11px;
  font-size: 0.9rem;
}

.cissp-domain-results {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cissp-domain-results li {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(100px, 0.65fr);
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.77rem;
}

.cissp-summary-actions,
.cissp-rating-actions {
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 25px;
}

.cissp-flash-layout {
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
}

.cissp-flash-controls {
  display: grid;
  gap: 15px;
  padding-right: 22px;
  border-right: 1px solid var(--line);
}

.cissp-flash-controls .secondary-button {
  width: 100%;
}

.cissp-flash-status {
  display: grid;
  gap: 7px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
}

.cissp-flash-status span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.cissp-flash-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.cissp-flash-status i.known { background: var(--green); }
.cissp-flash-status i.review { background: var(--high); }

.cissp-flash-stage {
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
}

.cissp-card-toolbar,
.cissp-card-navigation {
  justify-content: space-between;
  min-height: 38px;
  color: var(--muted);
  font-size: 0.76rem;
}

.cissp-flashcard {
  min-height: 420px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
}

.cissp-flashcard-header {
  min-height: 56px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}

.cissp-card-rating {
  margin-left: auto;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.cissp-card-rating.known { color: var(--green); border-color: #387a51; }
.cissp-card-rating.review { color: var(--high); border-color: #7f5b34; }

.cissp-flashcard-front {
  display: grid;
  place-content: center;
  width: 100%;
  min-height: 363px;
  padding: 40px;
  color: var(--text);
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: center;
}

.cissp-flashcard-front > span,
.cissp-flashcard-front small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.cissp-flashcard-front h3 {
  max-width: 650px;
  margin: 14px 0 18px;
  font-size: 2rem;
}

.cissp-flashcard-front:hover {
  background: var(--panel-2);
}

.cissp-flashcard-answer {
  display: grid;
  gap: 7px;
  padding: clamp(22px, 4vw, 38px);
}

.cissp-flashcard-answer > p:not(.eyebrow) {
  margin: 0 0 16px;
  color: var(--text-soft);
}

.cissp-exam-tip {
  margin-top: 4px;
  padding: 13px 15px;
  background: var(--blue-soft);
  border-left: 3px solid var(--blue);
}

.cissp-exam-tip strong {
  color: #b8d7f5;
  font-size: 0.76rem;
}

.cissp-exam-tip p {
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: 0.84rem;
}

.cissp-rating-actions {
  justify-content: center;
}

.cissp-card-navigation {
  margin-top: 7px;
}

.cissp-empty-state {
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  text-align: center;
}

.cissp-empty-state p {
  max-width: 470px;
  margin: -70px 0 0;
  color: var(--muted);
}

.cissp-domain-weight-bar {
  display: flex;
  gap: 2px;
  height: 8px;
  margin-bottom: 18px;
}

.cissp-domain-weight-bar i {
  min-width: 1px;
  background: var(--accent);
}

.cissp-domain-weight-bar i:nth-child(2n) { background: var(--blue); }
.cissp-domain-weight-bar i:nth-child(3n) { background: var(--high); }

.cissp-domain-guide {
  border-top: 1px solid var(--line-strong);
}

.cissp-domain-entry {
  border-bottom: 1px solid var(--line);
}

.cissp-domain-entry summary {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  padding: 12px 10px;
  cursor: pointer;
  list-style: none;
}

.cissp-domain-entry summary::-webkit-details-marker { display: none; }

.cissp-domain-entry summary:hover {
  background: var(--panel-3);
}

.cissp-domain-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid #28534f;
  border-radius: 4px;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-weight: 800;
}

.cissp-domain-entry summary > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.cissp-domain-entry summary small {
  max-width: 890px;
  color: var(--muted);
  font-weight: 400;
}

.cissp-domain-weight {
  min-width: 46px;
  color: var(--blue);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-weight: 750;
  text-align: right;
}

.cissp-domain-detail {
  display: grid;
  grid-template-columns: 1fr 1.25fr 0.75fr;
  gap: 24px;
  margin: 0 10px 18px 66px;
  padding: 18px;
  background: var(--panel);
  border-left: 2px solid var(--line-strong);
}

.cissp-domain-detail ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.8rem;
}

.cissp-domain-detail p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.cissp-domain-performance strong {
  color: var(--accent);
  font-size: 1.2rem;
}

.cissp-domain-performance .text-button {
  margin-top: 11px;
}

.cissp-progress-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.cissp-progress-metrics > div {
  padding: 16px 18px;
  border-right: 1px solid var(--line);
}

.cissp-progress-metrics > div:last-child {
  border-right: 0;
}

.cissp-progress-metrics dd {
  color: var(--accent);
  font-size: 1.55rem;
}

.cissp-progress-metrics dd small {
  margin-left: 2px;
  color: var(--muted);
  font-size: 0.75rem;
}

.cissp-progress-layout {
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 24px;
}

.cissp-domain-analytics {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.cissp-domain-table {
  display: grid;
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.cissp-domain-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(120px, 1fr) 80px 90px;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  border-bottom: 1px solid var(--line);
}

.cissp-domain-row > div:first-child {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.cissp-domain-row > div:first-child span {
  color: var(--blue);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.75rem;
}

.cissp-domain-row > div:first-child strong {
  overflow: hidden;
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cissp-domain-row > span,
.cissp-domain-row > small {
  color: var(--muted);
  font-size: 0.74rem;
  text-align: right;
}

.cissp-progress-summary {
  padding: 20px;
}

.cissp-progress-summary dl {
  display: grid;
  margin: 12px 0 18px;
}

.cissp-progress-summary dl > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.cissp-progress-summary dt {
  color: var(--muted);
}

.cissp-progress-summary dd {
  margin: 0;
  color: var(--text);
  font-weight: 750;
}

.cissp-progress-summary > p {
  color: var(--muted);
  font-size: 0.78rem;
}

.danger-text {
  color: var(--critical);
  border-color: #69343c;
}

.danger-button {
  min-height: 38px;
  padding: 8px 12px;
  color: #fff1f3;
  background: #7a2d38;
  border: 1px solid #a74351;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 700;
}

.cissp-reset-confirm {
  margin-top: 16px;
  padding: 12px;
  background: var(--danger-soft);
  border: 1px solid #69343c;
}

.cissp-reset-confirm > div {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

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

  .cissp-setup-grid,
  .cissp-progress-layout {
    grid-template-columns: 1fr;
  }

  .cissp-mindset {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
    gap: 0 24px;
  }

  .cissp-mindset .eyebrow,
  .cissp-mindset h3,
  .cissp-mindset ul {
    grid-column: 1;
  }

  .cissp-mini-stats {
    grid-column: 2;
    grid-row: 1 / 4;
    align-content: center;
    margin: 0;
    padding: 0 0 0 22px;
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .cissp-rationale {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .cissp-takeaway {
    grid-column: 1 / -1;
  }

  .cissp-domain-detail {
    grid-template-columns: 1fr 1fr;
  }

  .cissp-domain-performance {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .cissp-page {
    width: calc(100% - 28px);
    padding-top: 22px;
  }

  .cissp-heading h1 {
    font-size: 1.8rem;
  }

  .cissp-question-panel h2 {
    font-size: 1.25rem;
  }

  .cissp-flashcard-front h3 {
    font-size: 1.65rem;
  }

  .cissp-library-summary {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cissp-library-summary > div:nth-child(2) {
    border-right: 0;
  }

  .cissp-library-summary > div:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
  }

  .cissp-independence-note,
  .cissp-section-heading,
  .cissp-question-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .cissp-independence-note a {
    min-height: 36px;
    padding-top: 7px;
  }

  .cissp-tabs button {
    min-width: 110px;
  }

  .cissp-segmented,
  .cissp-field-grid,
  .cissp-choice-list,
  .cissp-flash-layout,
  .cissp-summary-grid,
  .cissp-domain-detail {
    grid-template-columns: 1fr;
  }

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

  .cissp-mindset {
    display: block;
  }

  .cissp-mini-stats {
    margin-top: 19px;
    padding: 16px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .cissp-session-bar {
    display: grid;
    grid-template-columns: auto 1fr;
  }

  .cissp-session-progress {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: none;
  }

  .cissp-session-score {
    justify-self: end;
  }

  .cissp-question-meta {
    align-items: flex-start;
  }

  .cissp-choice-list {
    margin-top: 20px;
  }

  .cissp-rationale {
    grid-template-columns: 1fr;
  }

  .cissp-takeaway {
    grid-column: auto;
  }

  .cissp-question-actions .primary-button {
    width: 100%;
  }

  .cissp-score-block {
    width: 150px;
    aspect-ratio: 1;
  }

  .cissp-domain-results li {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .cissp-domain-results .cissp-progress-track {
    grid-column: 1 / -1;
  }

  .cissp-flash-controls {
    grid-template-columns: 1fr 1fr;
    padding: 0 0 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .cissp-flash-controls label:first-child,
  .cissp-flash-status {
    grid-column: 1 / -1;
  }

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

  .cissp-flashcard {
    min-height: 390px;
  }

  .cissp-flashcard-front {
    min-height: 333px;
  }

  .cissp-domain-entry summary {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 9px;
  }

  .cissp-domain-entry summary small {
    display: none;
  }

  .cissp-domain-detail {
    margin-left: 0;
  }

  .cissp-domain-performance {
    grid-column: auto;
  }

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

  .cissp-progress-metrics > div:nth-child(2) {
    border-right: 0;
  }

  .cissp-progress-metrics > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .cissp-domain-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 12px;
    padding: 9px 0;
  }

  .cissp-domain-row .cissp-progress-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .cissp-domain-row > small {
    display: none;
  }
}

@media (max-width: 460px) {
  .cissp-tabs button {
    min-width: 96px;
    padding-inline: 10px;
    font-size: 0.78rem;
  }

  .cissp-segmented,
  .cissp-flash-controls {
    grid-template-columns: 1fr;
  }

  .cissp-flash-controls label:first-child,
  .cissp-flash-status {
    grid-column: auto;
  }

  .cissp-library-summary dd {
    font-size: 0.85rem;
  }

  .cissp-question-meta {
    flex-direction: column;
  }

  .cissp-choice {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .cissp-choice small {
    grid-column: 2;
  }

  .cissp-summary-actions > *,
  .cissp-rating-actions > * {
    width: 100%;
  }

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

@media (prefers-reduced-motion: reduce) {
  .nm-feedback,
  .nm-toast {
    transition: none;
  }
}

/* Security drills */

.games-layout {
  width: min(1100px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 44px;
}

.games-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.games-intro h2 {
  margin: 5px 0 0;
  font-size: 1.5rem;
}

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

.game-card {
  display: grid;
  gap: 15px;
  min-height: 380px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.game-card-top,
.game-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.game-card-top h3 {
  margin: 4px 0 0;
}

.game-card-top > span {
  padding: 5px 8px;
  color: var(--accent);
  background: var(--panel-3);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: Consolas, monospace;
  font-size: 0.7rem;
}

.game-prompt {
  min-height: 86px;
  margin: 0;
  color: var(--text-soft);
}

.port-target {
  display: grid;
  place-items: center;
  min-height: 88px;
  background: var(--panel-3);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  font-family: Consolas, monospace;
  font-size: 2rem;
  font-weight: 800;
}

.game-choice-row,
.game-choice-grid {
  display: grid;
  gap: 8px;
}

.game-choice-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.game-choice-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.game-choice {
  min-height: 46px;
  color: var(--text);
  background: var(--panel-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
}

.game-choice:hover:not(:disabled) { border-color: var(--accent); }
.game-choice.correct { color: #071310; background: var(--green); border-color: var(--green); }
.game-choice.wrong { color: #fff; background: #7b2a35; border-color: var(--critical); }
.game-choice:disabled { cursor: default; }

.game-result {
  min-height: 82px;
  padding: 10px;
  background: var(--panel-3);
  border-left: 3px solid var(--line-strong);
}

.game-result.correct { border-left-color: var(--green); }
.game-result.wrong { border-left-color: var(--critical); }
.game-result strong,
.game-result span { display: block; }
.game-result span { margin-top: 4px; color: var(--muted); font-size: 0.78rem; }

/* Responsive */

.mobile-only {
  display: none;
}

@media (max-width: 1280px) {
  .topbar {
    grid-template-columns: auto minmax(340px, 1fr) auto;
  }

  .environment-chip,
  .current-workspace {
    display: none;
  }

  .dashboard-layout {
    grid-template-columns: minmax(238px, 270px) minmax(500px, 1fr);
  }

  .summary-panel {
    display: none;
  }

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

  .source-url-field {
    grid-column: 1 / -1;
  }

  .source-form .primary-button {
    align-self: end;
  }
}

@media (max-width: 1100px) {
  .topbar {
    grid-template-columns: auto 1fr auto;
  }

  .top-nav {
    display: none;
  }

  .mobile-dock {
    position: sticky;
    top: 64px;
    z-index: 24;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(72px, auto);
    grid-template-columns: none;
    gap: 1px;
    overflow-x: auto;
    background: var(--line);
    border-bottom: 1px solid var(--line);
  }

  .mobile-dock a,
  .mobile-dock button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 6px 8px;
    color: var(--muted);
    background: var(--panel-3);
    border: 0;
    border-bottom: 2px solid transparent;
    font-size: 0.7rem;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
  }

  .mobile-dock .active {
    color: var(--text);
    border-bottom-color: var(--accent);
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
    padding-top: 12px;
  }

  .mobile-only {
    display: inline-flex;
  }

  .mobile-filter-shell {
    display: none;
  }

  .mobile-filter-shell.open {
    position: fixed;
    inset: 0;
    z-index: 55;
    display: block;
    background: rgb(0 0 0 / 68%);
  }

  .filter-panel {
    position: absolute;
    inset: 0 auto 0 0;
    top: 0;
    width: min(360px, 100vw);
    height: 100vh;
    border-radius: 0;
    box-shadow: var(--shadow);
  }

  .map-layout {
    grid-template-columns: 1fr;
  }

  .map-panel.wide {
    grid-row: auto;
  }

  .admin-secondary-grid,
  .games-grid {
    grid-template-columns: 1fr;
  }

  .detail-body {
    grid-template-columns: 1fr;
  }

  .detail-main {
    border-right: 0;
  }

  .detail-facts {
    border-top: 1px solid var(--line-strong);
  }

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

  .status-metric:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: 0;
  }

  .topbar {
    position: static;
    grid-template-columns: 1fr auto;
    min-height: 62px;
    padding: 0 14px;
  }

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

  .topbar-actions .compact-action,
  .topbar-actions .stack-button {
    display: none;
  }

  .mobile-dock {
    top: 0;
  }

  .dashboard-layout,
  .map-layout,
  .admin-layout,
  .legal-layout {
    padding-inline: 12px;
  }

  .content-page,
  .editorial-page {
    width: calc(100% - 28px);
    padding-top: 24px;
  }

  .content-page-header,
  .release-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .status-overview,
  .status-explainer,
  .gate-grid {
    grid-template-columns: 1fr;
  }

  .status-metric:first-child { grid-column: auto; }
  .status-explainer > div,
  .status-explainer > div:not(:first-child) { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .status-explainer > div:last-child { border-bottom: 0; }
  .current-release,
  .roadmap-row { grid-template-columns: 78px minmax(0, 1fr); gap: 16px; }

  .workspace-header,
  .admin-header,
  .map-overview {
    align-items: flex-start;
    flex-direction: column;
  }

  .workspace-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .workspace-state {
    width: 100%;
  }

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

  .snapshot-metric {
    border-bottom: 1px solid var(--line);
  }

  .snapshot-metric:nth-child(2n) {
    border-right: 0;
  }

  .snapshot-metric:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }

  .research-notice {
    grid-template-columns: 1fr auto;
  }

  .research-notice > span:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .brief-heading,
  .card-footer,
  .stack-toolbar,
  .detail-header,
  .legal-footer,
  .games-intro,
  .game-card-top,
  .game-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .load-more-row {
    align-items: stretch;
    flex-direction: column;
  }

  .load-more-button {
    width: 100%;
  }

  .brief-card-grid,
  .version-grid,
  .admin-metrics {
    grid-template-columns: 1fr;
  }

  .stack-impact,
  .triage-line {
    grid-template-columns: 1fr;
  }

  .card-footer,
  .source-wrap,
  .button-row {
    width: 100%;
  }

  .button-row {
    justify-content: flex-start;
  }

  .open-detail-hint {
    width: 100%;
  }

  .stack-actions {
    width: 100%;
  }

  .stack-actions > * {
    flex: 1 1 0;
  }

  .drawer-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .drawer-footer p {
    grid-column: 1 / -1;
  }

  .detail-header-side {
    position: absolute;
    top: 12px;
    right: 12px;
  }

  .detail-heading-copy {
    padding-right: 72px;
  }

  .detail-reference-bar {
    grid-template-columns: 1fr;
  }

  .admin-row,
  .run-row {
    grid-template-columns: 8px minmax(0, 1fr);
  }

  .admin-row .admin-source-telemetry,
  .admin-row button {
    grid-column: 2;
  }

  .run-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .source-form {
    grid-template-columns: 1fr;
  }

  .source-url-field {
    grid-column: auto;
  }

  .admin-token-row {
    align-items: stretch;
    flex-direction: column;
  }

  .legal-footer nav {
    justify-content: flex-start;
  }

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

@media (max-width: 460px) {
  .brand-monogram {
    display: none;
  }

  .brand-copy > span {
    display: none;
  }

  .mobile-dock {
    grid-auto-columns: minmax(68px, auto);
  }

  .current-release,
  .roadmap-row { grid-template-columns: 1fr; }

  .release-rail { grid-template-columns: auto 1fr; align-items: center; }
  .release-rail i { width: 100%; height: 2px; margin: 0; }

  .view-tabs button {
    min-width: 0;
    flex: 1 1 0;
    padding-inline: 7px;
    font-size: 0.75rem;
  }

  .sort-indicator {
    display: none;
  }

  .card-topline {
    align-items: flex-start;
  }

  .date-grid,
  .game-choice-grid,
  .game-choice-row {
    grid-template-columns: 1fr;
  }

  .detail-main {
    padding-inline: 14px;
  }

  .detail-heading-copy {
    padding-right: 54px;
  }

  .detail-header-side .risk-pill {
    display: none;
  }

  .timeline li,
  .fact {
    grid-template-columns: 1fr;
  }

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

  .drawer-footer p {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
