:root {
  --ink: #101820;
  --ink-2: #1f2d36;
  --muted: #667582;
  --line: #d9e0e6;
  --soft: #f4f7f9;
  --paper: #ffffff;
  --nav: #0d1b24;
  --nav-2: #142936;
  --brand: #b38a36;
  --brand-2: #d9b45d;
  --good: #1e7d58;
  --warn: #b86b00;
  --bad: #b33a3a;
  --blue: #2f6f9f;
  --score-1: #b33a3a;
  --score-2: #d46c2f;
  --score-3: #c59b28;
  --score-4: #4f9b68;
  --score-5: #16734f;
  --shadow: 0 18px 45px rgba(12, 27, 36, 0.12);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body[data-theme="executive"] {
  --nav: #18232b;
  --nav-2: #263642;
  --brand: #a57b2b;
  --brand-2: #caa755;
  --soft: #f7f8fa;
  --ink: #141b22;
}

body[data-theme="field"] {
  --nav: #10221d;
  --nav-2: #19362e;
  --brand: #a88b3a;
  --brand-2: #d7c26b;
  --soft: #f3f6f3;
  --ink: #13201c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
}

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

button {
  cursor: pointer;
}

.link-button {
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 800;
  padding: 10px;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 272px 1fr;
}

.sidebar {
  background: var(--nav);
  color: #e8eef2;
  padding: 24px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.brand-lockup {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
}

.mark {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(217, 180, 93, 0.6);
  display: grid;
  place-items: center;
  color: var(--brand-2);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-title {
  font-weight: 800;
  line-height: 1.05;
}

.brand-subtitle {
  color: #9fb0bb;
  font-size: 12px;
  margin-top: 4px;
}

.nav-group {
  display: grid;
  gap: 8px;
}

.nav-button {
  border: 0;
  background: transparent;
  color: #b8c8d1;
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  text-align: left;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border-radius: 6px;
}

.nav-button:hover,
.nav-button.active {
  background: var(--nav-2);
  color: white;
}

.nav-button.active {
  box-shadow: inset 3px 0 0 var(--brand);
}

.nav-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--brand-2);
  font-weight: 800;
}

.nav-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-meta {
  font-size: 11px;
  color: #8fa4af;
}

.sidebar-panel {
  margin-top: auto;
  border: 1px solid rgba(217, 180, 93, 0.2);
  background: rgba(255, 255, 255, 0.04);
  padding: 14px;
  border-radius: 8px;
}

.sidebar-panel strong {
  color: white;
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
}

.sidebar-panel p {
  margin: 0;
  color: #a9bac4;
  font-size: 12px;
  line-height: 1.45;
}

.main {
  min-width: 0;
}

.topbar {
  min-height: 74px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.eyebrow {
  text-transform: uppercase;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.page-title {
  margin: 3px 0 0;
  font-size: 24px;
  letter-spacing: 0;
}

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

.btn {
  border: 1px solid var(--line);
  background: var(--paper);
  min-height: 38px;
  padding: 0 13px;
  border-radius: 6px;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 750;
}

.btn.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.btn.gold {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.26);
  color: white;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.content {
  padding: 26px 28px 42px;
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

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

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(12, 27, 36, 0.03);
}

.card.pad {
  padding: 18px;
}

.hero-band {
  background: linear-gradient(135deg, #0f1f2a 0%, #183340 58%, #263b42 100%);
  color: white;
  min-height: 220px;
  padding: 24px;
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 22px;
  position: relative;
  overflow: hidden;
}

.hero-band::after {
  content: "";
  position: absolute;
  inset: auto 24px 22px auto;
  width: 250px;
  height: 160px;
  background:
    linear-gradient(90deg, rgba(217, 180, 93, 0.3) 1px, transparent 1px),
    linear-gradient(rgba(217, 180, 93, 0.22) 1px, transparent 1px);
  background-size: 24px 24px;
  transform: perspective(450px) rotateX(62deg) rotateZ(-10deg);
  opacity: 0.7;
}

.hero-band > * {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(30px, 4vw, 54px);
  line-height: 0.98;
  margin: 10px 0 14px;
  max-width: 820px;
  letter-spacing: 0;
}

.hero-copy {
  color: #cbd8df;
  line-height: 1.55;
  max-width: 720px;
  margin: 0;
}

.score-tile {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 6px;
}

.score-number {
  font-size: 46px;
  line-height: 1;
  font-weight: 850;
}

.score-1 {
  color: var(--score-1) !important;
}

.score-2 {
  color: var(--score-2) !important;
}

.score-3 {
  color: var(--score-3) !important;
}

.score-4 {
  color: var(--score-4) !important;
}

.score-5 {
  color: var(--score-5) !important;
}

.score-none {
  color: #8fa0aa !important;
}

.score-label {
  color: var(--muted);
  font-size: 13px;
}

.hero-band .score-label {
  color: #b7c8d0;
}

.score-ring {
  width: 180px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--brand-2) calc(var(--value) * 1%), rgba(255, 255, 255, 0.14) 0);
  margin: auto;
}

.score-ring::before {
  content: "";
  width: 132px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #142936;
  position: absolute;
}

.score-ring span {
  position: relative;
  font-size: 38px;
  font-weight: 850;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin: 26px 0 12px;
}

.section-head h2,
.card h3 {
  margin: 0;
  letter-spacing: 0;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
  max-width: 760px;
}

.category-card {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.category-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.category-title {
  font-weight: 850;
}

.status-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  color: var(--muted);
  background: #f8fafb;
  white-space: nowrap;
}

.status-pill.good {
  color: var(--good);
  border-color: rgba(30, 125, 88, 0.25);
  background: rgba(30, 125, 88, 0.08);
}

.status-pill.warn {
  color: var(--warn);
  border-color: rgba(184, 107, 0, 0.25);
  background: rgba(184, 107, 0, 0.08);
}

.status-pill.score-1,
.status-pill.score-2,
.status-pill.score-3,
.status-pill.score-4,
.status-pill.score-5 {
  border-color: color-mix(in srgb, currentColor 35%, white);
  background: color-mix(in srgb, currentColor 12%, white);
}

.meter {
  height: 8px;
  border-radius: 999px;
  background: #e8edf1;
  overflow: hidden;
}

.meter > span {
  display: block;
  height: 100%;
  width: var(--w);
  background: var(--c, var(--brand));
}

.metric-row,
.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.metric-row:last-child,
.list-row:last-child {
  border-bottom: 0;
}

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

.small {
  font-size: 13px;
}

.trend {
  height: 160px;
  display: flex;
  align-items: end;
  gap: 10px;
  padding-top: 18px;
}

.bar {
  flex: 1;
  min-width: 20px;
  height: var(--h);
  background: var(--brand);
  border-radius: 5px 5px 0 0;
  position: relative;
}

.bar::before {
  content: attr(data-score);
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--muted);
}

.assessment-layout {
  display: grid;
  grid-template-columns: minmax(230px, 300px) 1fr;
  gap: 18px;
}

.assessment-module-header {
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 16px;
  align-items: stretch;
  background: linear-gradient(135deg, #101820, #233a46);
  color: white;
  border-radius: 8px;
  padding: 20px;
}

.assessment-module-header h2 {
  margin: 8px 0 8px;
  font-size: clamp(28px, 4vw, 42px);
}

.assessment-module-header p {
  margin: 0;
  color: #d7e2e8;
  font-size: 17px;
  line-height: 1.45;
}

.assessment-module-header span {
  display: block;
  margin-top: 10px;
  color: #aebfc8;
  line-height: 1.45;
}

.module-score-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(217, 180, 93, 0.26);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  align-content: center;
  gap: 8px;
}

.module-score-card small,
.module-score-card span {
  color: #bdcdd5;
}

.module-score-card strong {
  font-size: 48px;
  line-height: 1;
}

.category-menu {
  padding: 10px;
}

.category-menu button {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 6px;
  padding: 12px;
  text-align: left;
  display: grid;
  gap: 5px;
}

.category-menu button.active,
.category-menu button:hover {
  background: #eef3f6;
}

.question-card {
  padding: 18px;
  display: grid;
  gap: 16px;
}

.question-card + .question-card {
  margin-top: 14px;
}

.question-title {
  font-size: 18px;
  font-weight: 850;
}

.scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(44px, 1fr));
  gap: 8px;
}

.scale button {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 6px;
  min-height: 44px;
  font-weight: 850;
  display: grid;
  place-items: center;
  gap: 2px;
  color: currentColor;
}

.scale button span {
  font-size: 18px;
  line-height: 1;
}

.scale button small {
  font-size: 10px;
  line-height: 1;
  color: var(--muted);
}

.scale button.active {
  background: var(--ink);
  color: white !important;
  border-color: var(--ink);
  box-shadow: 0 10px 18px rgba(12, 27, 36, 0.18);
}

.scale button.active span {
  color: white !important;
}

.scale button.active small {
  color: rgba(255, 255, 255, 0.9) !important;
}

.scale button.score-1.active {
  background: var(--score-1);
  border-color: var(--score-1);
}

.scale button.score-2.active {
  background: var(--score-2);
  border-color: var(--score-2);
}

.scale button.score-3.active {
  background: var(--score-3);
  border-color: var(--score-3);
}

.scale button.score-4.active {
  background: var(--score-4);
  border-color: var(--score-4);
}

.scale button.score-5.active {
  background: var(--score-5);
  border-color: var(--score-5);
}

.score-legend {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.score-legend p {
  margin: 6px 0 0;
}

.inline-knowledge-link {
  border: 0;
  background: transparent;
  color: var(--brand);
  padding: 8px 0 0;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

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

.legend-step {
  --level-color: currentColor;
  border: 1px solid color-mix(in srgb, currentColor 38%, white);
  background: color-mix(in srgb, currentColor 12%, white);
  border-radius: 8px;
  padding: 10px;
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 4px;
}

.legend-step span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  background: var(--level-color);
  color: white;
  border-radius: 999px;
  padding: 0 10px;
  font-weight: 900;
  font-size: 12px;
}

.legend-step.score-1 {
  --level-color: var(--score-1);
}

.legend-step.score-2 {
  --level-color: var(--score-2);
}

.legend-step.score-3 {
  --level-color: var(--score-3);
}

.legend-step.score-4 {
  --level-color: var(--score-4);
}

.legend-step.score-5 {
  --level-color: var(--score-5);
}

.legend-step strong {
  color: var(--ink);
}

.legend-step small {
  color: var(--muted);
}

.focus-row {
  margin: 0 -8px;
  padding-left: 8px;
  padding-right: 8px;
  border-left: 4px solid currentColor;
  background: color-mix(in srgb, currentColor 8%, white);
}

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

.rubric div {
  border: 1px solid var(--line);
  background: #fbfcfd;
  border-radius: 6px;
  padding: 10px;
  min-height: 112px;
}

.rubric strong {
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
}

.anchor-callout {
  border: 1px solid color-mix(in srgb, var(--brand) 36%, white);
  background: color-mix(in srgb, var(--brand) 9%, white);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 4px;
}

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

.rubric .rubric-anchor {
  min-height: 150px;
  display: grid;
  align-content: start;
  gap: 6px;
  border-top: 4px solid var(--line);
}

.rubric-anchor em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.rubric .anchor-low {
  border-top-color: var(--score-1);
  background: color-mix(in srgb, var(--score-1) 7%, white);
}

.rubric .anchor-mid {
  border-top-color: var(--score-3);
  background: color-mix(in srgb, var(--score-3) 8%, white);
}

.rubric .anchor-high {
  border-top-color: var(--score-5);
  background: color-mix(in srgb, var(--score-5) 7%, white);
}

textarea,
input,
select {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  min-height: 38px;
  padding: 9px 10px;
  color: var(--ink);
  width: 100%;
  cursor: text;
}

select {
  cursor: pointer;
}

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid color-mix(in srgb, var(--brand) 26%, transparent);
  border-color: var(--brand);
}

.form-field {
  display: block;
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
}

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

.notes-field {
  display: grid;
  gap: 7px;
  border: 1px solid color-mix(in srgb, var(--brand) 34%, white);
  background: linear-gradient(180deg, rgba(179, 138, 54, 0.08), rgba(255, 255, 255, 0.92));
  border-radius: 8px;
  padding: 12px;
}

.notes-field span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.notes-field textarea {
  border-color: color-mix(in srgb, var(--brand) 24%, var(--line));
  background: rgba(255, 255, 255, 0.9);
  min-height: 92px;
}

.notes-field textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--brand) 34%, transparent);
  border-color: var(--brand);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

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

.table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #fbfcfd;
}

.kpi-card {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.kpi-notice {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-color: color-mix(in srgb, var(--score-5) 38%, var(--line));
  background: color-mix(in srgb, var(--score-5) 8%, white);
}

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

.kpi-tracker {
  margin-top: 18px;
  border-color: color-mix(in srgb, var(--brand) 34%, var(--line));
}

.kpi-tracker-table {
  min-width: 900px;
}

.kpi-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ref-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ref-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  border: 1px solid #cfd9df;
  background: #f8fafb;
  color: var(--ink);
  border-radius: 999px;
  padding: 4px 9px 4px 5px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 850;
}

.ref-chip:hover,
.ref-card:hover {
  border-color: color-mix(in srgb, var(--brand) 48%, white);
  box-shadow: 0 8px 22px rgba(12, 27, 36, 0.08);
}

.ref-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--nav);
  color: var(--brand-2);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0;
}

.ref-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ref-icon.large {
  width: 38px;
  height: 38px;
  font-size: 11px;
  margin-bottom: 8px;
}

.ref-icon.large svg {
  width: 23px;
  height: 23px;
}

.ref-card {
  color: var(--ink);
  text-decoration: none;
  display: grid;
  align-content: start;
  min-height: 150px;
}

.ref-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.ref-card h3 {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.25;
}

.ref-card-large {
  min-height: 230px;
}

.reference-map-card {
  display: grid;
  gap: 14px;
}

.scoring-kb {
  margin-bottom: 22px;
  scroll-margin-top: 18px;
}

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

.maturity-level-card {
  border: 1px solid color-mix(in srgb, currentColor 34%, var(--line));
  border-top: 5px solid currentColor;
  border-radius: 8px;
  background: color-mix(in srgb, currentColor 7%, white);
  padding: 14px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.maturity-level-card h3 {
  color: var(--ink);
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
}

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

.maturity-level-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.next-step {
  border-top: 1px solid color-mix(in srgb, currentColor 22%, white);
  padding-top: 10px;
  display: grid;
  gap: 4px;
}

.next-step span,
.source-note {
  color: var(--muted);
}

.next-step span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 900;
}

.next-step strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.evidence-panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfd;
  padding: 10px 12px;
}

.evidence-panel summary {
  cursor: pointer;
  font-weight: 850;
}

.evidence-panel p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.evidence-ref-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.evidence-ref-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 10px;
  color: var(--ink);
  text-decoration: none;
}

.evidence-ref-card span {
  display: grid;
  gap: 3px;
}

.evidence-ref-card em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  line-height: 1.4;
}

.presentation {
  display: grid;
  gap: 16px;
}

.slide {
  min-height: 320px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.slide.dark {
  background: #101820;
  color: white;
}

.slide h2 {
  margin: 0 0 18px;
  font-size: 32px;
}

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

.phase {
  border-left: 4px solid var(--brand);
  background: #f7f9fa;
  padding: 14px;
  border-radius: 6px;
}

.empty {
  padding: 24px;
  text-align: center;
  color: var(--muted);
}

.public-shell {
  min-height: 100vh;
  background: var(--soft);
}

.public-nav {
  min-height: 76px;
  padding: 14px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
}

.public-brand {
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.public-nav nav {
  display: flex;
  gap: 10px;
  align-items: center;
}

.marketing-hero {
  min-height: calc(100vh - 76px);
  background:
    linear-gradient(90deg, rgba(13, 27, 36, 0.96) 0%, rgba(13, 27, 36, 0.86) 44%, rgba(13, 27, 36, 0.38) 100%),
    url("assets/security-ops-hero.png") center / cover no-repeat;
  color: white;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  align-items: center;
  gap: 28px;
  padding: 54px 44px;
}

.marketing-copy h1,
.pricing-hero h1,
.signup-card h1 {
  font-size: clamp(38px, 6vw, 74px);
  line-height: 0.96;
  max-width: 880px;
  margin: 12px 0 18px;
  letter-spacing: 0;
}

.marketing-copy p,
.pricing-hero p {
  max-width: 720px;
  color: #d1dde3;
  font-size: 18px;
  line-height: 1.55;
}

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

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-strip span {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 13px;
  color: #d8e3e8;
}

.product-preview-card {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  align-self: center;
}

.preview-header {
  display: flex;
  gap: 7px;
  padding: 12px;
  background: #e9eef2;
}

.preview-header span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #9fb0bb;
}

.preview-screen {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: center;
  padding: 22px;
}

.mini-score {
  height: 102px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 38px;
  font-weight: 900;
  background: #f3f6f8;
}

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

.mini-bars div {
  display: grid;
  grid-template-columns: minmax(116px, 150px) 1fr 34px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

.mini-bars b {
  display: block;
  width: var(--w);
  min-width: 6px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.mini-bars em {
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}

.public-section {
  padding: 34px 44px;
}

.public-footer {
  border-top: 1px solid var(--line);
  background: white;
  padding: 24px 44px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 14px 24px;
  align-items: center;
}

.public-footer p {
  margin: 6px 0 0;
  max-width: 620px;
  color: var(--muted);
  line-height: 1.45;
}

.public-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.legal-page {
  padding: 44px;
  max-width: 1180px;
  margin: 0 auto;
}

.legal-page h1 {
  max-width: 900px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.02;
  margin: 8px 0 16px;
}

.legal-page > p {
  max-width: 860px;
  font-size: 18px;
  line-height: 1.55;
}

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

.legal-stack {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.legal-grid section,
.legal-stack section {
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 18px;
}

.legal-grid h2,
.legal-stack h2 {
  font-size: 20px;
  margin: 0 0 8px;
}

.legal-grid p,
.legal-stack p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.evidence-band {
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-card p {
  color: var(--muted);
  line-height: 1.5;
}

.sales-intro {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: start;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.sales-intro h2,
.safety-band h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
}

.sales-copy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.sales-copy-grid p,
.safety-band p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.module-band {
  background: #f8fafb;
}

.feature-card-icon {
  min-height: 220px;
  align-content: start;
  display: grid;
  gap: 12px;
}

.feature-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--nav);
  color: var(--brand-2);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.workflow-step {
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 8px;
  padding: 14px;
  display: grid;
  gap: 8px;
  min-height: 150px;
}

.workflow-step span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 950;
}

.workflow-step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.safety-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 28px;
  align-items: center;
  background: #101820;
  color: white;
}

.safety-band p {
  color: #c8d5dc;
  margin-top: 14px;
}

.export-demo {
  display: grid;
  gap: 10px;
}

.export-demo div {
  border: 1px solid rgba(217, 180, 93, 0.26);
  background: rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 4px;
}

.export-demo span {
  color: #b9cbd3;
  font-size: 13px;
}

.split-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: center;
  background: white;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.split-band h2,
.pricing-hero h1 {
  color: var(--ink);
}

.split-band p {
  color: var(--muted);
  line-height: 1.55;
}

.access-demo {
  display: grid;
  gap: 10px;
}

.pricing-hero,
.access-lock-hero {
  color: white;
  background: linear-gradient(135deg, #101820, #203946);
  border-radius: 8px;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 22px;
  align-items: center;
}

.pricing-hero {
  margin: 28px;
}

.pricing-hero h1 {
  color: white;
}

.checkout-note,
.lock-panel {
  border: 1px solid rgba(217, 180, 93, 0.3);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 16px;
}

.billing-toggle {
  display: inline-flex;
  gap: 4px;
  margin-top: 20px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.pricing-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.pricing-points span {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #e7eef2;
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 800;
}

.billing-toggle button {
  border: 0;
  background: transparent;
  color: #d8e3e8;
  border-radius: 999px;
  min-height: 36px;
  padding: 0 14px;
  font-weight: 850;
}

.billing-toggle button.active {
  background: white;
  color: var(--ink);
}

.billing-toggle span {
  color: var(--brand);
  font-size: 11px;
  margin-left: 4px;
}

.savings-line {
  color: var(--good);
  font-size: 13px;
  font-weight: 850;
}

.checkout-note p,
.lock-panel p {
  color: #c5d4dc;
  line-height: 1.5;
}

.pricing-grid {
  padding: 0 28px 42px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.price-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  display: grid;
  gap: 14px;
}

.price-card.featured {
  border-color: color-mix(in srgb, var(--brand) 50%, white);
  box-shadow: var(--shadow);
}

.price-card h2 {
  margin: 0;
}

.price {
  font-size: 38px;
  font-weight: 900;
}

.price-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.signup-layout {
  padding: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.signup-card {
  display: grid;
  gap: 14px;
  position: relative;
  z-index: 2;
}

.signup-card input,
.signup-card button {
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

.signup-card h1 {
  color: var(--ink);
  font-size: clamp(32px, 5vw, 58px);
}

.signup-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  border-color: color-mix(in srgb, var(--brand) 40%, white);
}

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

.theme-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 14px;
  text-align: left;
  display: grid;
  gap: 6px;
}

.theme-card.active {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--brand) 35%, transparent);
}

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

.export-panel {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.upgrade-callout {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-color: color-mix(in srgb, var(--gold) 45%, var(--line));
  background: linear-gradient(135deg, #fff, #fff8e8);
}

.upgrade-callout h3 {
  margin: 4px 0 6px;
}

.export-panel p {
  margin: 6px 0 0;
}

.invite-panel {
  margin-top: 16px;
}

.invite-message {
  margin-top: 12px;
}

.assessment-submit {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  background: linear-gradient(135deg, #fff, #fff9eb);
}

.admin-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.admin-hero-actions,
.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.admin-checklist,
.admin-links,
.admin-status-grid,
.admin-users {
  margin-top: 16px;
}

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

.admin-table {
  min-width: 920px;
}

.admin-table th:last-child,
.admin-table td:last-child {
  text-align: right;
}

.btn.danger {
  border-color: color-mix(in srgb, var(--score-1) 44%, var(--line));
  color: #8f1f1f;
  background: color-mix(in srgb, var(--score-1) 8%, white);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

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

.check-row input {
  margin-top: 3px;
}

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

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

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

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

  .sidebar-panel {
    display: none;
  }

  .grid.cols-4,
  .grid.cols-3,
  .grid.cols-2,
  .hero-band,
  .assessment-layout,
  .rubric,
  .roadmap,
  .marketing-hero,
  .split-band,
  .sales-intro,
  .sales-copy-grid,
  .workflow-rail,
  .safety-band,
  .pricing-hero,
  .access-lock-hero,
  .pricing-grid,
  .signup-layout,
  .public-footer,
  .legal-grid,
  .theme-picker,
  .maturity-level-grid,
  .assessment-module-header {
    grid-template-columns: 1fr;
  }

  .marketing-hero {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  .topbar {
    align-items: start;
    flex-direction: column;
  }

  .top-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .btn {
    flex: 1;
    justify-content: center;
  }

  .content {
    padding: 18px 14px 32px;
  }

  .nav-group {
    grid-template-columns: 1fr 1fr;
  }

  .scale {
    grid-template-columns: repeat(5, 1fr);
  }

  .score-legend,
  .legend-scale {
    grid-template-columns: 1fr;
  }

  .public-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
  }

  .public-nav nav,
  .hero-actions,
  .trust-strip {
    width: 100%;
  }

  .public-nav nav {
    flex-wrap: wrap;
  }

  .marketing-hero,
  .public-section,
  .signup-layout {
    padding: 24px 14px;
  }

  .pricing-hero {
    margin: 14px;
  }

  .pricing-grid {
    padding: 0 14px 28px;
  }

  .preview-screen,
  .assessment-submit,
  .mini-bars div {
    grid-template-columns: 1fr;
  }

  .assessment-submit {
    align-items: stretch;
    flex-direction: column;
  }

  .export-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .public-footer,
  .legal-page {
    padding: 24px 14px;
  }

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

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

  .export-actions {
    justify-content: stretch;
  }

.export-actions .btn {
    flex: 1;
  }
}

.demo-banner {
  margin-bottom: 16px;
  border-color: color-mix(in srgb, var(--brand) 42%, white);
  background: color-mix(in srgb, var(--brand) 10%, white);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

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