:root {
  color-scheme: dark;
  --bg: #111318;
  --surface: #1e222b;
  --surface-soft: #292c32;
  --surface-raised: #242934;
  --ink: #eef2f8;
  --muted: #b8c0cc;
  --line: rgba(184, 192, 204, 0.18);
  --teal: #69e2ff;
  --teal-dark: #5da9ff;
  --blue: #5da9ff;
  --green: #39d98a;
  --amber: #d7b56d;
  --red: #ff5d73;
  --action-ink: #07111f;
  --nav-bg: #111318;
  --field-bg: #111318;
  --switch-track-bg: #3a404c;
  --switch-thumb-bg: #eef2f8;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
  --workspace-accent: var(--blue);
  --workspace-glow: rgba(93, 169, 255, 0.12);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f5f7;
  --surface: #ffffff;
  --surface-soft: #e9eef3;
  --surface-raised: #dde5ec;
  --ink: #18212b;
  --muted: #506173;
  --line: rgba(24, 33, 43, 0.2);
  --teal: #006b78;
  --teal-dark: #145ea8;
  --blue: #145ea8;
  --green: #18794e;
  --amber: #765700;
  --red: #b4233c;
  --action-ink: #ffffff;
  --nav-bg: #e9eef3;
  --field-bg: #ffffff;
  --switch-track-bg: #b8c3ce;
  --switch-thumb-bg: #ffffff;
  --shadow: 0 18px 48px rgba(24, 33, 43, 0.16);
}

* {
  box-sizing: border-box;
  scrollbar-color: rgba(184, 192, 204, 0.34) var(--bg);
}

html {
  background: var(--bg);
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  border: 3px solid var(--bg);
  border-radius: 999px;
  background: rgba(184, 192, 204, 0.36);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(184, 192, 204, 0.5);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: "Geist Sans", Geist, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.45;
}

body::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 72% 0%, var(--workspace-glow), transparent 36%);
  content: "";
}

body.workspace-today,
body.workspace-controls,
body.workspace-frameworks,
body.workspace-audits {
  --workspace-accent: var(--blue);
  --workspace-glow: rgba(93, 169, 255, 0.13);
}

body.workspace-my-work,
body.workspace-documents,
body.workspace-soa,
body.workspace-assets,
body.workspace-links,
body.workspace-assurance {
  --workspace-accent: var(--teal);
  --workspace-glow: rgba(105, 226, 255, 0.1);
}

body.workspace-setup,
body.workspace-evidence,
body.workspace-acceptances,
body.workspace-suppliers,
body.workspace-readiness,
body.workspace-exports {
  --workspace-accent: var(--green);
  --workspace-glow: rgba(57, 217, 138, 0.1);
}

body.workspace-tasks,
body.workspace-calendar,
body.workspace-control-tests,
body.workspace-exceptions,
body.workspace-management {
  --workspace-accent: var(--amber);
  --workspace-glow: rgba(215, 181, 109, 0.1);
}

body.workspace-risks,
body.workspace-corrective,
body.workspace-incidents,
body.workspace-findings {
  --workspace-accent: var(--red);
  --workspace-glow: rgba(255, 93, 115, 0.1);
}

body.workspace-treatments,
body.workspace-system {
  --workspace-accent: var(--blue);
  --workspace-glow: rgba(93, 169, 255, 0.09);
}

body.nav-drawer-open {
  overflow: hidden;
}

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

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

.shell,
.auth-shell {
  position: relative;
  z-index: 1;
}

.shell {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 22px 18px;
  background: var(--nav-bg);
  color: var(--ink);
}

.mobile-nav-toggle,
.mobile-nav-close {
  display: none;
}

.sidebar-header {
  display: block;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  min-height: 54px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(105, 226, 255, 0.34);
  border-radius: 6px;
  background: linear-gradient(145deg, rgba(93, 169, 255, 0.28), rgba(105, 226, 255, 0.12));
  color: var(--teal);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav {
  display: grid;
  gap: 4px;
  margin-top: 28px;
}

.nav-section {
  display: grid;
  gap: 4px;
}

.nav-section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  margin-top: 9px;
  border: 0;
  border-radius: 6px;
  padding: 8px 10px;
  background: transparent;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-section-toggle:hover,
.nav-section-toggle:focus-visible {
  background: rgba(184, 192, 204, 0.08);
  color: var(--ink);
  outline: none;
}

.nav-section-chevron {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.16s ease;
}

.nav-section-toggle[aria-expanded="false"] .nav-section-chevron {
  transform: rotate(-45deg);
}

.nav-section-items {
  display: grid;
  gap: 4px;
}

.nav-section-items[hidden] {
  display: none;
}

.nav a {
  display: block;
  min-height: 40px;
  border-radius: 6px;
  padding: 9px 12px;
  color: var(--muted);
}

.nav a:hover,
.nav a.active {
  background: var(--workspace-glow);
  color: var(--ink);
}

.nav a.active {
  box-shadow: inset 3px 0 0 var(--workspace-accent);
}

.main {
  min-width: 0;
  min-height: 0;
  height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  position: relative;
  isolation: isolate;
  background: var(--bg);
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.topbar h1 {
  margin: 0;
  font-size: clamp(1.8rem, 2vw, 2.4rem);
  line-height: 1.05;
  color: var(--ink);
}

.page-heading {
  min-width: 0;
}

.page-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.workspace-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.workspace-kicker p,
.workspace-kicker strong,
.workspace-kicker small {
  display: block;
  margin: 0;
}

.workspace-kicker strong {
  color: var(--workspace-accent);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.workspace-kicker small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.workspace-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 32px;
  border: 1px solid var(--workspace-accent);
  border-color: color-mix(in srgb, var(--workspace-accent) 55%, transparent);
  border-radius: 6px;
  background: var(--workspace-glow);
  color: var(--workspace-accent);
  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.workspace-evidence .workspace-mark,
.workspace-acceptances .workspace-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.workspace-documents .workspace-mark {
  border-radius: 2px;
  box-shadow: inset 0 -6px 0 var(--workspace-glow);
}

.workspace-controls .workspace-mark {
  border-radius: 3px;
  background:
    linear-gradient(90deg, transparent 47%, var(--workspace-accent) 48% 52%, transparent 53%),
    linear-gradient(0deg, transparent 47%, var(--workspace-accent) 48% 52%, transparent 53%),
    var(--workspace-glow);
}

.workspace-control-tests .workspace-mark {
  border-radius: 50% 50% 4px 4px;
}

.workspace-soa .workspace-mark,
.workspace-treatments .workspace-mark {
  width: 50px;
  border-radius: 2px;
}

.workspace-risks .workspace-mark {
  width: 38px;
  height: 38px;
  border-radius: 0;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.workspace-exceptions .workspace-mark {
  clip-path: polygon(14% 0, 86% 0, 100% 50%, 86% 100%, 14% 100%, 0 50%);
}

.workspace-corrective .workspace-mark {
  width: 48px;
  clip-path: polygon(0 0, 76% 0, 100% 50%, 76% 100%, 0 100%, 14% 50%);
}

.workspace-suppliers .workspace-mark {
  width: 36px;
  height: 38px;
  border-radius: 0;
  clip-path: polygon(50% 0, 94% 18%, 84% 76%, 50% 100%, 16% 76%, 6% 18%);
}

.page-direction {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 980px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--workspace-accent);
  border-radius: 7px;
  background: linear-gradient(115deg, var(--workspace-glow), rgba(10, 12, 16, 0.22) 70%);
  padding: 12px 14px;
}

.page-direction > div {
  min-width: 0;
}

.page-direction > div > span {
  color: var(--workspace-accent);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-purpose {
  max-width: 860px;
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.45;
}

.page-primary-action {
  flex: 0 0 auto;
  min-height: 44px;
  background: var(--workspace-accent);
}

.page-actions-menu {
  position: relative;
  flex: 0 0 auto;
}

.page-actions-menu summary {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid rgba(105, 226, 255, 0.18);
  border-radius: 6px;
  background: rgba(105, 226, 255, 0.08);
  color: var(--teal);
  padding: 0 12px;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 800;
  list-style: none;
  white-space: nowrap;
}

.page-actions-menu summary::-webkit-details-marker {
  display: none;
}

.page-actions-menu summary::after {
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: rotate(45deg) translateY(-2px);
}

.page-actions-menu[open] summary::after {
  transform: rotate(225deg) translateY(-1px);
}

.page-actions-list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  display: grid;
  gap: 4px;
  min-width: 220px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 8px;
}

.page-actions-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  border-radius: 6px;
  padding: 9px 10px;
  color: var(--ink);
  font-weight: 800;
}

.page-actions-list a:hover,
.page-actions-list a:focus-visible {
  background: rgba(93, 169, 255, 0.13);
  outline: none;
}

.page-decision-strip {
  margin-top: 0;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.account-menu {
  position: relative;
  flex: 0 0 auto;
}

.account-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 260px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 5px 10px 5px 6px;
  cursor: pointer;
  list-style: none;
}

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

.account-menu summary::after {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-left: 2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: rotate(45deg) translateY(-2px);
}

.account-menu[open] summary::after {
  transform: rotate(225deg) translateY(-1px);
}

.account-menu-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(105, 226, 255, 0.26);
  border-radius: 999px;
  background: rgba(105, 226, 255, 0.1);
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 900;
}

.account-summary-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
  text-align: left;
}

.account-summary-copy strong,
.account-summary-copy small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.account-summary-copy small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.account-menu-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  gap: 10px;
  width: min(320px, calc(100vw - 36px));
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 10px;
}

.account-menu-header,
.account-role-note {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.account-menu-header {
  border-bottom: 1px solid var(--line);
  padding: 2px 2px 10px;
}

.account-menu-header strong,
.account-menu-header small,
.account-role-note strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.account-menu-header small,
.account-role-note span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.account-role-form {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
  padding: 10px;
}

.account-role-form label {
  margin: 0;
}

.account-role-form select {
  margin-top: 5px;
}

.account-role-note {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
  padding: 10px;
}

.account-menu-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(105, 226, 255, 0.18);
  border-radius: 6px;
  background: rgba(105, 226, 255, 0.08);
  color: var(--teal);
  padding: 0 12px;
  cursor: pointer;
  font-weight: 800;
  text-align: left;
}

.account-menu-item:hover,
.account-menu-item:focus-visible {
  border-color: rgba(105, 226, 255, 0.38);
  outline: none;
}

.account-menu-form {
  margin: 0;
}

.switch-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 4px 5px 4px 13px;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.switch-control input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.switch-track {
  position: relative;
  inline-size: 48px;
  block-size: 28px;
  border-radius: 999px;
  background: var(--switch-track-bg);
  transition: background 140ms ease;
}

.switch-track::after {
  position: absolute;
  inset-block-start: 4px;
  inset-inline-start: 4px;
  inline-size: 20px;
  block-size: 20px;
  border-radius: 999px;
  background: var(--switch-thumb-bg);
  box-shadow: 0 1px 4px rgba(32, 34, 37, 0.22);
  content: "";
  transition: transform 140ms ease;
}

.switch-control input:checked + .switch-track {
  background: var(--blue);
}

.switch-control input:checked + .switch-track::after {
  transform: translateX(20px);
}

.switch-control input:focus-visible + .switch-track {
  outline: 3px solid rgba(105, 226, 255, 0.32);
  outline-offset: 2px;
}

.account-theme-form {
  margin: 0;
}

.theme-switch-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--ink);
  padding: 7px 7px 7px 11px;
  text-align: left;
  white-space: normal;
}

.theme-switch-control:hover {
  border-color: color-mix(in srgb, var(--teal) 55%, var(--line));
}

.theme-switch-control:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--teal) 28%, transparent);
  outline-offset: 2px;
}

.theme-switch-label {
  display: grid;
  gap: 1px;
}

.theme-switch-label strong,
.theme-switch-label small {
  color: inherit;
}

.theme-switch-label small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.theme-switch-control[aria-checked="true"] .switch-track {
  background: var(--blue);
}

.theme-switch-control[aria-checked="true"] .switch-track::after {
  transform: translateX(20px);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.button,
button,
.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  padding: 0 14px;
  background: var(--blue);
  color: var(--action-ink);
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
}

.button {
  padding: 0 14px;
}

.toolbar-action,
.quiet-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid rgba(105, 226, 255, 0.18);
  border-radius: 6px;
  background: rgba(105, 226, 255, 0.08);
  color: var(--teal);
  padding: 0 12px;
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
}

.text-link {
  color: var(--teal);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--ink);
  outline: none;
  text-decoration-color: currentColor;
}

.small-button {
  min-height: 40px;
  padding: 0 10px;
  font-size: 0.86rem;
}

.button-secondary,
.quiet-button {
  border: 1px solid rgba(105, 226, 255, 0.18);
  background: rgba(105, 226, 255, 0.08);
  color: var(--teal);
}

.toolbar-action:hover,
.toolbar-action:focus-visible,
.quiet-link:hover,
.quiet-link:focus-visible,
.button-secondary:hover,
.button-secondary:focus-visible,
.quiet-button:hover,
.quiet-button:focus-visible {
  border-color: rgba(105, 226, 255, 0.38);
  outline: none;
}

.danger-button {
  background: var(--red);
  color: var(--action-ink);
}

.nav .nav-section-toggle {
  justify-content: space-between;
  width: 100%;
  min-height: 40px;
  margin-top: 9px;
  padding: 8px 10px;
  background: transparent;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
}

.nav .nav-section-toggle:hover,
.nav .nav-section-toggle:focus-visible {
  background: rgba(184, 192, 204, 0.08);
  color: var(--ink);
}

.flash {
  margin-bottom: 18px;
  border-left: 4px solid var(--teal);
  background: rgba(105, 226, 255, 0.09);
  padding: 12px 14px;
  color: var(--teal);
  font-weight: 700;
}

.auth-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.login-panel {
  display: grid;
  gap: 22px;
  width: min(100%, 420px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 24px;
}

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

.login-panel input[type="email"] {
  font-weight: 400;
}

.auth-flash {
  width: min(100%, 420px);
}

.summary-band,
.panel,
.metric {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.summary-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.55fr);
  gap: 22px;
  align-items: end;
  padding: 24px;
}

.summary-band h2 {
  margin: 0;
  max-width: 940px;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.18;
}

.summary-band h2.dashboard-company-name {
  margin: 0;
  font-size: clamp(1.8rem, 2vw, 2.4rem);
  line-height: 1.05;
}

.owner-strip,
.detail-list,
.record-detail-grid,
.export-stats {
  display: grid;
  gap: 12px;
  margin: 0;
}

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

.detail-section {
  margin-top: 16px;
}

.detail-note {
  margin: 16px 0 0;
  border-left: 4px solid var(--teal);
  background: var(--surface-soft);
  padding: 12px 14px;
  color: var(--muted);
  font-weight: 700;
}

.form-hint,
label small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
}

.assurance-guidance-panel {
  margin-bottom: 16px;
}

.assurance-checklist,
.assurance-warning-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--text);
}

.assurance-checklist li::marker {
  color: var(--amber);
}

.assurance-warning-list li::marker {
  color: var(--red);
}

.form-section,
.completion-panel,
.review-form,
.wide-inline-form {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  align-items: start;
  min-width: 0;
}

.completion-panel {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
  padding: 12px;
}

.form-row {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.form-row-metadata {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: end;
}

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

.form-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
}

.completion-panel label,
.review-form label,
.wide-inline-form label,
.form-row label {
  margin: 0;
  min-width: 0;
}

.document-review-panel {
  align-items: start;
}

.completion-panel > button,
.review-form > button,
.wide-inline-form > button {
  justify-self: start;
}

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

dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

dd {
  margin: 3px 0 0;
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

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

.metric-section {
  min-width: 0;
}

.metric-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.metric-section-header h2 {
  margin: 0;
  font-size: 1.06rem;
}

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

.metric {
  min-height: 98px;
  padding: 14px;
  border-radius: 6px;
  color: inherit;
}

.metric span {
  color: var(--muted);
  font-weight: 700;
}

a.metric:hover {
  border-color: rgba(105, 226, 255, 0.45);
  transform: translateY(-1px);
}

.metric strong {
  display: block;
  margin-top: 12px;
  font-size: 2rem;
  line-height: 1;
}

.metric.green {
  border-top: 4px solid var(--green);
}

.metric.amber {
  border-top: 4px solid var(--amber);
}

.metric.blue {
  border-top: 4px solid var(--blue);
}

.metric.red {
  border-top: 4px solid var(--red);
}

.metric.neutral {
  border-top: 4px solid var(--muted);
}

.reminder-panel {
  min-width: 0;
}

.dashboard-task-row {
  display: grid;
  grid-template-columns: minmax(260px, 0.3fr) minmax(0, 0.7fr);
  gap: 16px;
  margin: 16px 0;
}

.dashboard-task-row-single {
  grid-template-columns: 1fr;
}

.evidence-health-panel {
  margin-top: 16px;
}

.page-intro {
  max-width: 860px;
  margin: -10px 0 18px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.view-tabs {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin: 0 0 16px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: thin;
}

.view-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border-bottom: 3px solid transparent;
  padding: 9px 14px 8px;
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.view-tabs a:hover,
.view-tabs a:focus-visible {
  color: var(--ink);
  outline: none;
}

.view-tabs a.active {
  border-bottom-color: var(--workspace-accent);
  color: var(--ink);
}

.view-tabs a span {
  min-width: 24px;
  border-radius: 999px;
  background: rgba(93, 169, 255, 0.12);
  padding: 2px 7px;
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-align: center;
}

.view-filter-bar {
  margin-bottom: 16px;
}

.concept-callout {
  max-width: 980px;
  margin: 0 0 18px;
  border: 1px solid rgba(105, 226, 255, 0.2);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(105, 226, 255, 0.08), transparent 62%),
    var(--surface);
  padding: 18px 20px;
}

.concept-callout p {
  margin: 0;
  line-height: 1.55;
}

.concept-callout .eyebrow {
  margin-bottom: 6px;
}

.workspace-overview,
.workspace-board {
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  border-left: 4px solid var(--workspace-accent);
  background:
    linear-gradient(135deg, var(--workspace-glow), transparent 55%),
    var(--surface);
  box-shadow: var(--shadow);
  padding: 22px;
}

.workspace-overview-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.workspace-overview-header h2 {
  max-width: 760px;
  margin: 3px 0 0;
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  line-height: 1.2;
}

.workspace-overview-header > p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.5;
}

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

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

.workspace-signal {
  min-width: 0;
  border: 1px solid var(--line);
  border-top: 3px solid var(--muted);
  border-radius: 7px;
  background: rgba(10, 12, 16, 0.26);
  padding: 15px;
}

a.workspace-signal:hover,
a.workspace-signal:focus-visible {
  border-color: var(--workspace-accent);
  background: var(--workspace-glow);
}

.workspace-signal.red {
  border-top-color: var(--red);
}

.workspace-signal.amber {
  border-top-color: var(--amber);
}

.workspace-signal.blue {
  border-top-color: var(--blue);
}

.workspace-signal.green {
  border-top-color: var(--green);
}

.workspace-signal > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.workspace-signal span {
  min-width: 0;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.25;
}

.workspace-signal strong {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  line-height: 1;
}

.workspace-signal p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.45;
}

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

.workspace-lane {
  min-width: 0;
  border: 1px solid var(--line);
  border-top: 3px solid var(--muted);
  border-radius: 7px;
  background: rgba(10, 12, 16, 0.28);
  padding: 13px;
}

.workspace-lane.red {
  border-top-color: var(--red);
}

.workspace-lane.amber {
  border-top-color: var(--amber);
}

.workspace-lane.blue {
  border-top-color: var(--blue);
}

.workspace-lane.green {
  border-top-color: var(--green);
}

.workspace-lane > header {
  min-height: 106px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 11px;
}

.workspace-lane > header > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.workspace-lane h3 {
  margin: 0;
  font-size: 0.92rem;
}

.workspace-lane > header strong {
  min-width: 26px;
  border-radius: 999px;
  background: var(--surface-soft);
  padding: 3px 7px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-align: center;
}

.workspace-lane > header p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.4;
}

.workspace-lane ol {
  display: grid;
  gap: 9px;
  margin: 11px 0 0;
  padding: 0;
  list-style: none;
}

.workspace-lane li {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 10px;
}

.workspace-lane li > a {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.workspace-lane li > a:hover,
.workspace-lane li > a:focus-visible {
  color: var(--teal);
}

.workspace-lane li small {
  color: var(--muted);
  line-height: 1.35;
}

.workspace-lane li .status {
  justify-self: start;
}

.workspace-lane .workspace-lane-empty {
  border-style: dashed;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.coverage-group-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

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

.coverage-group > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.coverage-group strong {
  min-width: 0;
  font-size: 0.82rem;
}

.coverage-group > div:first-child span {
  flex: 0 0 auto;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.coverage-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-soft);
}

.coverage-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--workspace-accent);
}

.advanced-register {
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 12, 16, 0.2);
}

.advanced-register > summary {
  display: grid;
  gap: 3px;
  min-height: 64px;
  cursor: pointer;
  padding: 13px 16px;
  list-style: none;
}

.advanced-register > summary::-webkit-details-marker {
  display: none;
}

.advanced-register > summary span {
  color: var(--workspace-accent);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.advanced-register > summary strong {
  color: var(--ink);
}

.advanced-register > summary small {
  color: var(--muted);
  font-weight: 700;
}

.advanced-register[open] > summary {
  border-bottom: 1px solid var(--line);
}

.advanced-register > .metric-grid,
.advanced-register > .panel {
  margin: 16px;
}

.evidence-queue {
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--workspace-accent);
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--workspace-glow), transparent 52%),
    var(--surface);
  box-shadow: var(--shadow);
  padding: 22px;
}

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

.proof-lane {
  min-width: 0;
  border-top: 3px solid var(--muted);
  background: rgba(10, 12, 16, 0.26);
}

.proof-lane.red {
  border-top-color: var(--red);
}

.proof-lane.amber {
  border-top-color: var(--amber);
}

.proof-lane.green {
  border-top-color: var(--green);
}

.proof-lane.blue {
  border-top-color: var(--blue);
}

.proof-lane > header {
  min-height: 108px;
  border: 1px solid var(--line);
  border-top: 0;
  padding: 13px;
}

.proof-lane > header > div,
.proof-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.proof-lane h3 {
  margin: 0;
  font-size: 0.94rem;
}

.proof-lane > header strong {
  min-width: 26px;
  border-radius: 999px;
  background: var(--surface-soft);
  padding: 3px 7px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-align: center;
}

.proof-lane > header p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.4;
}

.proof-lane ol {
  display: grid;
  gap: 9px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.proof-lane li {
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 11px;
}

.proof-item-title {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.proof-item-title a {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.35;
}

.proof-item-title a:hover,
.proof-item-title a:focus-visible {
  color: var(--teal);
}

.proof-object-icon {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--workspace-accent);
  color: var(--workspace-accent);
}

.proof-object-icon.request {
  border-radius: 50%;
}

.proof-object-icon.request::after {
  position: absolute;
  inset: 5px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  content: "";
}

.proof-object-icon.evidence {
  border-radius: 2px;
}

.proof-object-icon.evidence::before,
.proof-object-icon.evidence::after {
  position: absolute;
  left: 4px;
  width: 10px;
  height: 1px;
  background: currentColor;
  content: "";
}

.proof-object-icon.evidence::before {
  top: 6px;
}

.proof-object-icon.evidence::after {
  top: 11px;
}

.proof-cues {
  display: grid;
  gap: 5px;
}

.proof-cue {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 6px;
  align-items: start;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 700;
  line-height: 1.35;
}

.proof-cue::before {
  display: block;
  width: 10px;
  height: 10px;
  margin-top: 2px;
  border: 1px solid currentColor;
  content: "";
}

.proof-cue.link-cue::before {
  border-radius: 5px 1px;
  transform: rotate(-35deg);
}

.proof-cue.time-cue::before {
  border-radius: 50%;
  background: linear-gradient(90deg, transparent 47%, currentColor 48% 52%, transparent 53%);
}

.proof-item-footer small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.proof-next-action {
  width: 100%;
  min-height: 40px;
}

.proof-lane .proof-lane-empty {
  border-style: dashed;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.45;
}

.risk-model-help {
  margin: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
}

.risk-model-help > summary {
  min-height: 44px;
  cursor: pointer;
  padding: 11px 12px;
  color: var(--teal);
  font-weight: 800;
}

.risk-model-help[open] > summary {
  border-bottom: 1px solid var(--line);
}

.risk-model-help .risk-scale-guide {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.section-purpose {
  max-width: 760px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.45;
}

.today-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 16px;
  align-items: stretch;
}

.today-recommendation,
.readiness-snapshot {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 28px;
}

.today-recommendation {
  position: relative;
  overflow: hidden;
  border-left: 4px solid var(--blue);
  background:
    linear-gradient(135deg, rgba(93, 169, 255, 0.11), transparent 58%),
    var(--surface);
}

.today-recommendation.red {
  border-left-color: var(--red);
  background:
    linear-gradient(135deg, rgba(255, 93, 115, 0.1), transparent 58%),
    var(--surface);
}

.today-recommendation.amber {
  border-left-color: var(--amber);
  background:
    linear-gradient(135deg, rgba(215, 181, 109, 0.1), transparent 58%),
    var(--surface);
}

.today-recommendation h2 {
  max-width: 760px;
  margin: 6px 0 10px;
  font-size: clamp(1.5rem, 2.2vw, 2.25rem);
  line-height: 1.12;
}

.today-recommendation p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.58;
}

.today-recommendation .button {
  margin-top: 22px;
}

.readiness-snapshot {
  display: grid;
  gap: 16px;
}

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

.readiness-score-row > div {
  display: grid;
  gap: 3px;
}

.readiness-score-row strong {
  font-size: clamp(2.35rem, 4vw, 3.5rem);
  line-height: 0.95;
}

.readiness-score-row span:not(.status) {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.readiness-snapshot progress {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: var(--surface-soft);
}

.readiness-snapshot progress::-webkit-progress-bar {
  border-radius: 999px;
  background: var(--surface-soft);
}

.readiness-snapshot progress::-webkit-progress-value {
  border-radius: 999px;
  background: var(--blue);
}

.readiness-snapshot progress::-moz-progress-bar {
  border-radius: 999px;
  background: var(--blue);
}

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

.readiness-facts > div {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.readiness-facts dd {
  font-size: 0.9rem;
  line-height: 1.35;
}

.today-orchestration {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(93, 169, 255, 0.08), transparent 48%),
    var(--surface);
  box-shadow: var(--shadow);
}

.today-orchestration progress::-webkit-progress-value {
  background: var(--blue);
}

.today-orchestration progress::-moz-progress-bar {
  background: var(--blue);
}

.today-orchestration.red {
  border-top-color: var(--red);
  background:
    linear-gradient(145deg, rgba(255, 93, 115, 0.08), transparent 48%),
    var(--surface);
}

.today-orchestration.amber {
  border-top-color: var(--amber);
  background:
    linear-gradient(145deg, rgba(215, 181, 109, 0.08), transparent 48%),
    var(--surface);
}

.orchestration-current,
.orchestration-action {
  min-width: 0;
  padding: clamp(24px, 3vw, 38px);
}

.orchestration-current {
  border-right: 1px solid var(--line);
  background: rgba(17, 18, 22, 0.24);
}

.orchestration-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.orchestration-heading h2,
.orchestration-action h2 {
  margin: 5px 0 0;
  line-height: 1.12;
}

.orchestration-heading h2 {
  font-size: clamp(1.45rem, 2.2vw, 2.05rem);
}

.orchestration-score {
  display: grid;
  flex: 0 0 auto;
  justify-items: end;
  gap: 7px;
}

.orchestration-score > strong {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: 0.9;
}

.today-orchestration progress {
  width: 100%;
  height: 8px;
  overflow: hidden;
  margin: 24px 0;
  border: 0;
  border-radius: 999px;
  background: var(--surface-soft);
}

.today-orchestration progress::-webkit-progress-bar {
  border-radius: 999px;
  background: var(--surface-soft);
}

.today-orchestration progress::-webkit-progress-value,
.today-orchestration progress::-moz-progress-bar {
  border-radius: 999px;
  background: var(--blue);
}

.current-blocker {
  border-left: 3px solid var(--amber);
  background: rgba(215, 181, 109, 0.06);
  padding: 14px 16px;
}

.current-blocker > span,
.orchestration-reason > span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.current-blocker > strong {
  display: block;
  margin-top: 5px;
  line-height: 1.35;
}

.current-blocker p,
.orchestration-reason p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.orchestration-facts,
.orchestration-action-facts {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
}

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

.orchestration-facts > div,
.orchestration-action-facts > div {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.orchestration-facts dd,
.orchestration-action-facts dd {
  margin: 4px 0 0;
  line-height: 1.4;
}

.orchestration-action {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

.orchestration-action h2 {
  max-width: 760px;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
}

.orchestration-summary {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.58;
}

.orchestration-reason {
  width: 100%;
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.orchestration-action-facts {
  width: 100%;
  grid-template-columns: minmax(0, 1.45fr) minmax(150px, 0.55fr);
}

.orchestration-action .button {
  margin-top: 26px;
}

.supporting-priority-list {
  counter-reset: supporting-priority;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.supporting-priority-list > li {
  counter-increment: supporting-priority;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-width: 0;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 7px;
  background: var(--surface);
  padding: 14px 16px;
}

.supporting-priority-list > li.red {
  border-left-color: var(--red);
}

.supporting-priority-list > li.amber {
  border-left-color: var(--amber);
}

.priority-order {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 900;
}

.priority-order::before {
  content: counter(supporting-priority);
}

.supporting-priority-list strong {
  display: block;
  line-height: 1.35;
}

.supporting-priority-list p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.supporting-priority-list p span {
  color: var(--text);
  font-weight: 800;
}

.what-happens-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(105, 226, 255, 0.24);
  border-radius: 8px;
  background: rgba(105, 226, 255, 0.05);
  padding: 20px 22px;
}

.what-happens-next h2 {
  margin: 3px 0 0;
  font-size: 1.1rem;
}

.what-happens-next p:not(.eyebrow) {
  max-width: 900px;
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.next-sequence-mark {
  flex: 0 0 auto;
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.readiness-overview-panel > .detail-note,
.today-operational-details > .detail-note {
  margin-top: 0;
}

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

.readiness-indicator {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: 7px;
  background: var(--surface-soft);
  padding: 15px;
  color: inherit;
}

.readiness-indicator.red {
  border-top-color: var(--red);
}

.readiness-indicator.amber {
  border-top-color: var(--amber);
}

.readiness-indicator.green {
  border-top-color: var(--green);
}

.readiness-indicator > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.readiness-indicator > strong {
  font-size: 1.7rem;
}

.readiness-indicator > small {
  color: var(--muted);
  line-height: 1.4;
}

.secondary-health-panels {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.secondary-health-panels > h3 {
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.today-operational-details > section + section,
.today-operational-details > section + details {
  margin-top: 16px;
}

.my-work-command {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  align-items: center;
  gap: 28px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(93, 169, 255, 0.08), transparent 52%),
    var(--surface);
  box-shadow: var(--shadow);
  padding: 26px 28px;
}

.my-work-command h2 {
  margin: 4px 0 0;
  font-size: clamp(1.45rem, 2.1vw, 2rem);
}

.my-work-command p:not(.eyebrow) {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

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

.my-work-summary > div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(17, 18, 22, 0.3);
  padding: 13px;
}

.my-work-summary dd {
  margin: 5px 0 0;
  font-weight: 850;
}

.my-work-filter {
  margin-bottom: 0;
}

.my-work-section > .section-heading > span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.my-work-list {
  display: grid;
  gap: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 0;
  list-style: none;
}

.my-work-list > li {
  display: grid;
  grid-template-columns: minmax(110px, 0.18fr) minmax(0, 1fr) minmax(120px, 0.2fr) auto;
  align-items: center;
  gap: 18px;
  min-width: 0;
  border-left: 3px solid var(--blue);
  padding: 16px 18px;
}

.my-work-list > li + li {
  border-top: 1px solid var(--line);
}

.my-work-list > li.red {
  border-left-color: var(--red);
}

.my-work-list > li.amber {
  border-left-color: var(--amber);
}

.my-work-list > li.green {
  border-left-color: var(--green);
}

.my-work-date,
.my-work-item,
.my-work-state {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.my-work-date > span,
.my-work-item > strong {
  line-height: 1.35;
}

.my-work-date small,
.my-work-item small,
.my-work-state small {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.my-work-item p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.my-work-state {
  justify-items: start;
}

.section-empty-state {
  margin: 0;
  border: 1px dashed var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.015);
  color: var(--muted);
  padding: 16px 18px;
  line-height: 1.5;
}

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

.section-heading h2 {
  margin: 2px 0 0;
  font-size: 1.25rem;
}

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

.next-action-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: 8px;
  background: var(--surface);
  padding: 20px;
}

.next-action-card.red {
  border-top-color: var(--red);
}

.next-action-card.amber {
  border-top-color: var(--amber);
}

.next-action-card h3,
.health-panel h3,
.empty-guidance-state h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.next-action-card p,
.health-panel p,
.empty-guidance-state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.next-action-card small {
  color: var(--muted);
  line-height: 1.5;
}

.next-action-card .toolbar-action {
  justify-self: start;
  margin-top: 4px;
}

.attention-marker {
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: var(--blue);
}

.next-action-card.red .attention-marker {
  background: var(--red);
}

.next-action-card.amber .attention-marker {
  background: var(--amber);
}

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

.health-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
}

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

.health-signal {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(57, 217, 138, 0.1);
}

.health-panel.red .health-signal {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(255, 93, 115, 0.1);
}

.health-panel.amber .health-signal {
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(215, 181, 109, 0.1);
}

.health-panel > strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.08rem;
  line-height: 1.3;
}

.health-panel > a {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.88rem;
  font-weight: 800;
}

.dashboard-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 16px;
  align-items: stretch;
}

.dashboard-detail-grid .panel {
  margin: 0;
}

.attention-record-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.attention-record-list > li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.attention-record-list > li:first-child {
  border-top: 0;
  padding-top: 0;
}

.attention-record-list > li:last-child {
  padding-bottom: 0;
}

.attention-record-list > li > div,
.attention-record-list strong,
.attention-record-list small {
  display: block;
  min-width: 0;
}

.attention-record-list small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.compact-detail-list {
  margin-top: 16px;
}

.compact-detail-list > div {
  display: grid;
  grid-template-columns: minmax(130px, 0.45fr) minmax(0, 1fr);
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.compact-detail-list dd {
  margin: 0;
}

.priority-work-panel {
  overflow: hidden;
}

.empty-guidance-state {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  border: 1px dashed rgba(105, 226, 255, 0.3);
  border-radius: 8px;
  background: rgba(105, 226, 255, 0.04);
  padding: 20px;
}

.empty-guidance-state.compact {
  display: grid;
  justify-content: stretch;
  border: 0;
  background: transparent;
  padding: 4px 0;
}

.system-health-panel > .detail-note {
  margin: 0 0 16px;
}

.diagnostic-groups {
  display: grid;
  gap: 20px;
}

.diagnostic-group + .diagnostic-group {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.diagnostic-group h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.diagnostic-group .reminder-list {
  margin-bottom: 20px;
}

.compact-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.compact-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  border: 1px solid var(--line);
  border-left: 3px solid var(--muted);
  border-radius: 6px;
  background: var(--surface-soft);
  padding: 12px;
  color: inherit;
}

.compact-metric.red {
  border-left-color: var(--red);
}

.compact-metric.amber {
  border-left-color: var(--amber);
}

.compact-metric.green {
  border-left-color: var(--green);
}

.compact-metric.blue {
  border-left-color: var(--blue);
}

.compact-metric span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.compact-metric strong {
  font-size: 1.15rem;
}

.role-guidance-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 20px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(93, 169, 255, 0.1), transparent 50%),
    var(--surface);
  box-shadow: var(--shadow);
  padding: 28px;
}

.role-identity h2 {
  margin: 4px 0 10px;
  font-size: clamp(1.55rem, 2.2vw, 2.2rem);
}

.role-identity > p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: var(--text);
  line-height: 1.55;
}

.role-identity .role-readiness-impact {
  margin-top: 12px;
  color: var(--muted);
}

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

.work-summary-strip > div {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(17, 18, 22, 0.28);
  padding: 14px;
}

.role-context-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(105, 226, 255, 0.28);
  border-radius: 8px;
  background: rgba(105, 226, 255, 0.06);
  padding: 18px 20px;
}

.role-context-strip h2 {
  margin: 3px 0 0;
  font-size: 1rem;
  line-height: 1.4;
}

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

.recommended-action-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
}

.recommended-action-card h3,
.runway-empty-state h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.recommended-action-card p,
.runway-empty-state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.recommended-action-card .toolbar-action {
  justify-self: start;
}

.runway-empty-state {
  display: grid;
  gap: 20px;
  border: 1px dashed rgba(105, 226, 255, 0.32);
  border-radius: 8px;
  background: rgba(105, 226, 255, 0.04);
  padding: 24px;
}

.runway-empty-state > div:first-child {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.empty-state-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(57, 217, 138, 0.36);
  border-radius: 999px;
  background: rgba(57, 217, 138, 0.1);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
}

.start-here-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.32fr);
  gap: 22px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 24px;
}

.start-here-overview h2 {
  margin: 4px 0 8px;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.start-here-overview p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.start-here-progress {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.start-here-progress strong {
  justify-self: end;
  font-size: 1.8rem;
  line-height: 1;
}

.start-here-progress progress {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: var(--surface-soft);
}

.start-here-progress progress::-webkit-progress-bar {
  border-radius: 999px;
  background: var(--surface-soft);
}

.start-here-progress progress::-webkit-progress-value {
  border-radius: 999px;
  background: var(--blue);
}

.start-here-progress progress::-moz-progress-bar {
  border-radius: 999px;
  background: var(--blue);
}

.start-here-current-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 16px;
  border: 1px solid rgba(93, 169, 255, 0.38);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(93, 169, 255, 0.1), transparent 55%),
    var(--surface);
  padding: 28px;
}

.start-here-current-step.amber {
  border-color: rgba(215, 181, 109, 0.34);
  border-left-color: var(--amber);
  background:
    linear-gradient(135deg, rgba(215, 181, 109, 0.09), transparent 55%),
    var(--surface);
}

.start-here-current-step.complete {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border-color: rgba(57, 217, 138, 0.34);
  border-left-color: var(--green);
  background:
    linear-gradient(135deg, rgba(57, 217, 138, 0.09), transparent 55%),
    var(--surface);
}

.current-step-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(93, 169, 255, 0.14);
  color: var(--blue);
  font-size: 1rem;
  font-weight: 900;
}

.start-here-current-step.amber .current-step-number {
  background: rgba(215, 181, 109, 0.14);
  color: var(--amber);
}

.start-here-current-step h2 {
  margin: 4px 0 8px;
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.start-here-current-step > div > p,
.current-step-summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.why-this-matters {
  max-width: 820px;
  margin: 18px 0;
  border-left: 3px solid var(--teal);
  background: rgba(105, 226, 255, 0.05);
  padding: 12px 14px;
}

.why-this-matters strong,
.why-this-matters p {
  display: block;
  margin: 0;
}

.why-this-matters p {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.start-here-step-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.start-here-step-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
}

.start-here-step-list ul,
.start-here-step-list ol {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.start-here-step-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.start-here-step-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.start-here-step-list li span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
}

.start-here-step-list li strong,
.start-here-step-list li small {
  display: block;
}

.start-here-step-list li small {
  margin-top: 3px;
  color: var(--muted);
}

.completed-steps li span {
  border-color: rgba(57, 217, 138, 0.34);
  background: rgba(57, 217, 138, 0.08);
  color: var(--green);
}

.start-here-details {
  border-color: rgba(105, 226, 255, 0.2);
  box-shadow: none;
}

.start-here-details > summary.panel-header {
  margin: 0;
}

.start-here-details-body {
  display: grid;
  gap: 16px;
}

.start-here-details-body > .section-break,
.start-here-details-body > .form-grid {
  margin-top: 0;
}

.start-here-details-body .panel {
  box-shadow: none;
}

.guided-flow,
.first-thirty-path,
.decision-strip {
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 20px;
}

.guided-flow-header,
.decision-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.guided-flow h2,
.first-thirty-path h2,
.decision-strip h2 {
  margin: 0;
  font-size: 1.16rem;
}

.decision-strip p {
  max-width: 860px;
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.flow-progress {
  display: grid;
  gap: 2px;
  min-width: 110px;
  text-align: right;
}

.flow-progress strong {
  font-size: 1.35rem;
  line-height: 1;
}

.flow-progress span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.flow-steps {
  display: grid;
  gap: 0;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.flow-steps li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.flow-steps li:first-child {
  border-top: 0;
}

.flow-steps li.current {
  border-left: 4px solid var(--teal);
  padding-left: 12px;
}

.flow-steps li.complete .step-number {
  background: rgba(57, 217, 138, 0.14);
  color: var(--green);
}

.step-number {
  display: grid;
  place-items: center;
  inline-size: 32px;
  block-size: 32px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-weight: 900;
}

.flow-steps strong,
.flow-steps small {
  display: block;
}

.flow-steps small {
  margin-top: 2px;
  color: var(--muted);
  font-weight: 700;
}

.flow-steps p {
  margin: 8px 0 10px;
  color: var(--muted);
}

.first-thirty-path {
  border-color: rgba(105, 226, 255, 0.28);
}

.first-thirty-steps {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.first-thirty-steps li {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.first-thirty-steps li:first-child {
  border-top: 0;
  padding-top: 0;
}

.first-thirty-steps li.current {
  border-left: 4px solid var(--teal);
  padding-left: 12px;
}

.first-thirty-steps li.complete .timebox {
  border-color: rgba(57, 217, 138, 0.42);
  color: var(--green);
}

.first-thirty-steps strong,
.first-thirty-steps small {
  display: block;
}

.first-thirty-steps small {
  margin-top: 2px;
  color: var(--muted);
  font-weight: 700;
}

.first-thirty-steps p {
  margin: 8px 0 10px;
  color: var(--muted);
}

.timebox {
  display: inline-grid;
  place-items: center;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.reminder-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reminder-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-left: 4px solid var(--amber);
  border-bottom: 1px solid var(--line);
  padding: 10px 0 10px 12px;
}

.reminder-list li.red {
  border-left-color: var(--red);
}

.reminder-list small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
}

.two-column,
.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.7fr);
  gap: 16px;
}

.form-grid {
  grid-template-columns: minmax(320px, 0.48fr) minmax(0, 1fr);
}

.section-break {
  margin-top: 16px;
}

.panel {
  min-width: 0;
  border-radius: 6px;
  padding: 20px;
}

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

.panel h2 {
  margin: 0 0 14px;
  font-size: 1.08rem;
}

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

.panel-header h2 {
  margin: 0;
}

.panel-header span {
  color: var(--muted);
  font-weight: 700;
}

.collapsible-panel > summary.panel-header {
  cursor: pointer;
  list-style-position: inside;
}

.collapsible-panel > summary.panel-header h2 {
  display: inline;
}

.collapsible-panel > summary.panel-header + * {
  margin-top: 14px;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  contain: inline-size;
}

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

.responsive-register-table {
  min-width: 720px;
}

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

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

td small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

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

.status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(184, 192, 204, 0.12);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: capitalize;
  white-space: nowrap;
}

.status.current,
.status.approved,
.status.accepted,
.status.completed,
.status.resolved,
.status.generated,
.status.enabled,
.status.sent,
.status.active,
.status.created,
.status.implemented,
.status.green {
  background: rgba(57, 217, 138, 0.14);
  color: var(--green);
}

.status.in-progress,
.status.under-review,
.status.prepared,
.status.submitted,
.status.reported,
.status.triaged,
.status.contained,
.status.investigating,
.status.pending-verification,
.status.partially-implemented,
.status.treatment-planned,
.status.corrective-action-required,
.status.existing,
.status.blue {
  background: rgba(93, 169, 255, 0.14);
  color: var(--blue);
}

.status.overdue,
.status.stale,
.status.needs-review,
.status.action-required,
.status.review-due,
.status.pending,
.status.accepted-risk,
.status.skipped,
.status.amber {
  background: rgba(215, 181, 109, 0.16);
  color: var(--amber);
}

.status.confidential,
.status.highly-sensitive,
.status.critical,
.status.high,
.status.disabled,
.status.rejected,
.status.remediation,
.status.expired,
.status.failed,
.status.revoked,
.status.conflicting,
.status.red {
  background: rgba(255, 93, 115, 0.15);
  color: var(--red);
}

.status.superseded {
  background: rgba(215, 181, 109, 0.16);
  color: var(--amber);
}

.status.medium {
  background: rgba(215, 181, 109, 0.16);
  color: var(--amber);
}

.status.low {
  background: rgba(57, 217, 138, 0.14);
  color: var(--green);
}

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

.collector-form {
  align-items: start;
}

.collector-normalized-content {
  max-width: 100%;
  padding: 16px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--surface-raised);
  border-radius: 8px;
}

.collector-context .detail-grid,
.collector-receipt .detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 12px 24px;
}

.collector-context,
.collector-receipt,
.collector-receipt code {
  min-width: 0;
  overflow-wrap: anywhere;
}

.collector-form > * {
  min-width: 0;
}

.collector-form > .field-span {
  grid-column: 1 / -1;
}

.collector-form > label {
  min-width: 0;
  margin: 0;
  align-content: start;
}

.collector-form .form-actions .button {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.collector-scope-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 8px 16px;
}

.collector-scope-options legend {
  margin-bottom: 8px;
}

.collector-scope-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 40px;
  margin: 0;
  padding: 4px 0;
}

.collector-scope-options input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
}

.collector-workspace .quiet-link {
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}

/* Keep the collector's dense governance surface legible in both themes without
   changing the semantic palette used by unrelated workspaces. */
.collector-workspace {
  --action-ink: #111116;
  --teal: #9692ed;
  --red: #df7e8e;
}

html[data-theme="light"] .collector-workspace {
  --action-ink: #ffffff;
  --muted: #66666b;
  --teal: #5556dc;
  --green: #26734d;
  --red: #b4233c;
}

.collector-workspace :is(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .collector-form {
    grid-template-columns: minmax(0, 1fr);
  }
}

.assurance-intake-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}

.field-grid > .assurance-intake-row {
  grid-column: 1 / -1;
}

.assurance-intake-row label {
  margin-bottom: 0;
}

.assurance-source-field {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.assurance-source-field label {
  margin-bottom: 0;
}

.assurance-intake-separator {
  align-self: center;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.calendar-summary-band {
  margin-bottom: 16px;
}

.calendar-workspace,
.selected-date-panel,
.calendar-support {
  margin-bottom: 16px;
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}

.calendar-toolbar > div:nth-child(2) {
  text-align: center;
}

.calendar-toolbar h2,
.calendar-toolbar p {
  margin: 0;
}

.calendar-toolbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.calendar-grid-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.calendar-weekday-row,
.calendar-month-grid,
.calendar-week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekday-row {
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.calendar-weekday-row span {
  padding: 9px 8px;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.calendar-day {
  min-width: 0;
  min-height: 132px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: 8px;
}

.calendar-week-grid .calendar-day {
  min-height: 210px;
}

.calendar-day:nth-child(7n) {
  border-right: 0;
}

.calendar-day.outside-period {
  background: rgba(17, 19, 24, 0.52);
  color: var(--muted);
  opacity: 0.62;
}

.calendar-day.selected {
  box-shadow: inset 0 0 0 2px var(--blue);
}

.calendar-day.today header > a span {
  display: inline-grid;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--teal);
  color: var(--action-ink);
  place-items: center;
}

.calendar-day header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 30px;
}

.calendar-day header > a {
  color: var(--ink);
  font-weight: 900;
}

.calendar-event-count {
  border-radius: 999px;
  background: rgba(93, 169, 255, 0.12);
  padding: 2px 6px;
  color: var(--blue);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 800;
}

.calendar-day-events {
  display: grid;
  gap: 5px;
  margin-top: 5px;
}

.calendar-event {
  display: flex;
  gap: 6px;
  align-items: center;
  min-width: 0;
  border-radius: 5px;
  background: rgba(93, 169, 255, 0.09);
  padding: 5px 6px;
  color: var(--ink);
  font-size: 0.76rem;
  line-height: 1.25;
}

.calendar-event:hover,
.calendar-event:focus-visible {
  background: rgba(93, 169, 255, 0.17);
  outline: none;
}

.calendar-event-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--blue);
}

.calendar-event.red .calendar-event-dot {
  background: var(--red);
}

.calendar-event.amber .calendar-event-dot {
  background: var(--amber);
}

.calendar-event.green .calendar-event-dot {
  background: var(--green);
}

.calendar-event-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-more {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.calendar-agenda {
  display: grid;
  gap: 10px;
}

.calendar-agenda-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.35fr);
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
  padding: 14px 16px;
}

.calendar-agenda-item h3 {
  margin: 8px 0 4px;
  font-size: 1rem;
}

.calendar-agenda-item p {
  margin: 0;
}

.calendar-agenda-action {
  display: grid;
  gap: 4px;
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.calendar-agenda-action strong {
  color: var(--teal);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.calendar-support {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.calendar-support > summary {
  padding: 18px 20px;
  cursor: pointer;
}

.calendar-support-body {
  display: grid;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 20px;
}

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

@media (max-width: 720px) {
  .view-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
    overflow: visible;
  }

  .view-tabs a {
    justify-content: center;
    min-width: 0;
    padding-inline: 4px;
    font-size: 0.82rem;
    text-align: center;
    white-space: normal;
  }

  .view-tabs a span {
    flex: 0 0 auto;
    min-width: 20px;
    padding-inline: 5px;
  }

  .calendar-toolbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
  }

  .calendar-toolbar .toolbar-action {
    min-height: 40px;
    padding-inline: 9px;
  }

  .calendar-toolbar-actions {
    gap: 4px;
  }

  .calendar-grid-shell.week-view .calendar-weekday-row {
    display: none;
  }

  .calendar-week-grid {
    grid-template-columns: 1fr;
  }

  .calendar-week-grid .calendar-day {
    min-height: 112px;
    border-right: 0;
  }

  .calendar-grid-shell.month-view .calendar-day {
    min-height: 68px;
    padding: 4px;
  }

  .calendar-grid-shell.month-view .calendar-day header {
    gap: 1px;
    min-height: 24px;
  }

  .calendar-grid-shell.month-view .calendar-day.today header > a span {
    width: 22px;
    height: 22px;
  }

  .calendar-grid-shell.month-view .calendar-event-count {
    padding: 1px 3px;
    font-size: 0.62rem;
  }

  .calendar-grid-shell.month-view .calendar-day-events {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
  }

  .calendar-grid-shell.month-view .calendar-event {
    width: 8px;
    min-height: 8px;
    overflow: hidden;
    border-radius: 999px;
    padding: 0;
  }

  .calendar-grid-shell.month-view .calendar-event-dot,
  .calendar-grid-shell.month-view .calendar-event-title,
  .calendar-grid-shell.month-view .calendar-more {
    display: none;
  }

  .calendar-grid-shell.month-view .calendar-event.red {
    background: var(--red);
  }

  .calendar-grid-shell.month-view .calendar-event.amber {
    background: var(--amber);
  }

  .calendar-grid-shell.month-view .calendar-event.green {
    background: var(--green);
  }

  .calendar-agenda-item {
    grid-template-columns: 1fr;
  }

  .calendar-agenda-action {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-top: 12px;
    padding-left: 0;
  }

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

  .assurance-intake-row {
    grid-template-columns: 1fr;
  }

  .assurance-intake-separator {
    text-align: center;
  }
}

.evidence-request-workspace {
  display: grid;
  gap: 4px;
  max-width: 920px;
}

.completion-panel.evidence-request-workspace {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.evidence-request-workspace .panel-header {
  margin-bottom: 4px;
}

.evidence-request-workspace label {
  margin-bottom: 12px;
}

.evidence-request-title-field,
.evidence-request-linked-field,
.evidence-request-status-field,
.evidence-request-expected-field {
  max-width: 760px;
}

.evidence-request-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 14px;
  max-width: 760px;
}

.evidence-request-meta-grid + .evidence-request-meta-grid {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.evidence-request-expected-field textarea {
  min-height: 180px;
}

.evidence-request-record-button {
  margin-top: -6px;
  margin-bottom: 12px;
  justify-self: start;
}

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

label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

fieldset {
  min-width: 0;
  margin: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
}

.bare-fieldset {
  margin: 0;
  border: 0;
  padding: 0;
}

legend {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

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

input[type="date"] {
  color-scheme: dark;
}

html[data-theme="light"] input[type="date"] {
  color-scheme: light;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  filter: brightness(0) invert(1);
  opacity: 1;
  cursor: pointer;
}

input[type="date"]:disabled::-webkit-calendar-picker-indicator {
  opacity: 0.55;
}

html[data-theme="light"] input[type="date"]::-webkit-calendar-picker-indicator {
  filter: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(105, 226, 255, 0.18);
}

textarea {
  resize: vertical;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
}

.check-row input {
  width: 18px;
  min-height: 18px;
}

.role-picker {
  display: grid;
  gap: 8px;
}

.role-picker label {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.role-option {
  align-items: flex-start;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.role-option:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.role-option-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.role-option-copy strong {
  color: var(--ink);
}

.role-option-copy small {
  color: var(--muted);
  font-weight: 700;
}

.compact-role-picker {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  margin-bottom: 10px;
}

.role-update-form {
  display: grid;
  gap: 10px;
  min-width: 420px;
}

.user-admin-layout {
  display: grid;
  gap: 16px;
}

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

.user-create-fields {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.user-create-fields label {
  margin: 0;
}

.user-form-actions {
  display: flex;
  justify-content: flex-start;
}

.user-list {
  display: grid;
  gap: 0;
}

.user-row {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.user-row:first-child {
  border-top: 0;
  padding-top: 2px;
}

.user-row-main {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.4fr) auto;
  gap: 16px;
  align-items: start;
}

.user-title-block {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.user-title-block strong {
  overflow-wrap: anywhere;
}

.user-title-block small {
  color: var(--muted);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.user-snapshot {
  display: grid;
  grid-template-columns: minmax(130px, 0.45fr) minmax(0, 1fr);
  gap: 12px;
  margin: 0;
}

.user-snapshot div,
.user-snapshot dd {
  min-width: 0;
}

.user-snapshot small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
}

.user-role-summary,
.user-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.user-row-actions {
  justify-content: flex-end;
}

.user-disclosure {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
}

.user-disclosure summary {
  cursor: pointer;
  padding: 10px 12px;
  color: var(--teal);
  font-weight: 800;
  list-style-position: inside;
}

.user-disclosure[open] summary {
  border-bottom: 1px solid var(--line);
}

.user-disclosure:not([open]) > :not(summary) {
  display: none;
}

.user-create-roles {
  margin-top: 0;
}

.user-role-picker {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  border: 0;
  margin: 0;
  padding: 12px;
}

.user-role-picker .role-option {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(105, 226, 255, 0.04);
  padding: 10px;
}

.user-management-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.7fr) minmax(260px, 0.8fr);
  gap: 14px;
  padding: 12px;
}

.user-role-update-form {
  min-width: 0;
}

.user-password-form,
.auditor-access-form {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}

.auditor-access-form:only-child {
  grid-column: 1 / -1;
}

.user-password-form label,
.auditor-access-form label {
  margin: 0;
}

.auditor-access-fields {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(220px, 1fr);
  gap: 12px;
  align-items: end;
  padding: 12px;
}

.auditor-access-fields label {
  margin: 0;
}

.auditor-access-panel {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  margin: 0;
}

.inline-form {
  margin: 0;
}

.inline-form:not(.stacked-form):not(.wide-inline-form) {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  vertical-align: middle;
}

.wide-inline-form {
  gap: 10px;
  align-items: start;
}

.wide-inline-form label {
  margin: 0;
}

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

.filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
  padding: 12px;
}

.filter-bar label {
  margin: 0;
}

.filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.status-actions {
  margin-top: 8px;
}

.user-setup-panel,
.user-walkthrough-panel {
  scroll-margin-top: 18px;
}

.setup-question {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.04rem;
  font-weight: 900;
}

.walkthrough-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.walkthrough-layout h3 {
  margin: 0 0 10px;
  font-size: 0.96rem;
}

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

.setup-check-list li {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.setup-check-list li:first-child {
  border-top: 0;
}

.setup-check-list strong,
.setup-check-list small {
  display: block;
}

.setup-check-list small {
  margin-top: 2px;
  color: var(--muted);
  font-weight: 800;
}

.setup-check-list p,
.walkthrough-row p {
  margin: 7px 0 0;
  color: var(--muted);
}

.compact-check-list {
  margin: 0;
}

.walkthrough-scenarios {
  display: grid;
  gap: 0;
}

.walkthrough-row {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.walkthrough-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.walkthrough-row strong,
.walkthrough-row small {
  display: block;
}

.walkthrough-row small {
  margin-top: 2px;
  color: var(--teal);
  font-weight: 800;
}

.plain-list {
  display: grid;
  gap: 5px;
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-weight: 700;
}

.status-link {
  align-items: center;
  display: inline-flex;
  min-height: 40px;
  border-radius: 999px;
  color: inherit;
  padding: 0 2px;
}

.status-link:hover,
.status-link:focus-visible {
  outline: none;
}

.status-link:hover .status,
.status-link:focus-visible .status {
  box-shadow: 0 0 0 2px rgba(105, 226, 255, 0.28);
}

.risk-list {
  display: grid;
  gap: 0;
}

.risk-row {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.risk-row:first-child {
  border-top: 0;
  padding-top: 2px;
}

.risk-row-main {
  display: grid;
  grid-template-columns: minmax(220px, 1.15fr) minmax(0, 1.85fr) auto;
  gap: 16px;
  align-items: center;
}

.risk-title-block {
  min-width: 0;
}

.risk-title-link {
  color: var(--ink);
}

.risk-title-link:hover,
.risk-title-link:focus-visible {
  color: var(--teal);
}

.risk-title-link strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.risk-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.risk-meta span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.risk-snapshot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr) minmax(0, 0.86fr) minmax(0, 0.72fr) minmax(0, 0.76fr);
  gap: 12px;
  margin: 0;
}

.risk-snapshot div {
  min-width: 0;
}

.risk-snapshot dd {
  overflow-wrap: anywhere;
}

.risk-snapshot .status,
.risk-snapshot .status-link {
  max-width: 100%;
  white-space: normal;
}

.risk-snapshot .status {
  text-align: center;
}

.risk-score-value {
  font-size: 1.22rem;
  line-height: 1;
}

.risk-score-context {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

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

.risk-disclosure {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
}

.risk-disclosure summary {
  cursor: pointer;
  padding: 10px 12px;
  color: var(--teal);
  font-weight: 800;
  list-style-position: inside;
}

.risk-disclosure[open] summary {
  border-bottom: 1px solid var(--line);
}

.risk-disclosure:not([open]) > :not(summary) {
  display: none;
}

.risk-edit-form,
.risk-review-form {
  padding: 12px;
}

.risk-edit-form + .risk-review-form {
  border-top: 1px solid var(--line);
}

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

.risk-edit-grid label,
.risk-review-grid label {
  margin: 0;
}

.risk-edit-grid .wide-field {
  grid-column: span 2;
}

.risk-form-actions {
  margin-top: 12px;
}

.risk-review-grid {
  display: grid;
  grid-template-columns: minmax(150px, 0.42fr) minmax(150px, 0.42fr) minmax(240px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.risk-review-history {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.risk-readonly-grid {
  padding: 12px;
}

.risk-empty {
  margin: 8px 0 0;
}

.risk-scale-guide,
.risk-score-detail {
  display: grid;
  gap: 12px;
  margin: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
  padding: 12px;
}

.risk-scale-guide.compact {
  margin-top: 10px;
}

.risk-scale-copy {
  display: grid;
  gap: 4px;
}

.risk-scale-copy strong,
.risk-score-detail strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.risk-scale-copy p,
.risk-score-detail p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

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

.risk-scale-columns > div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 10px;
}

.risk-scale-columns h3 {
  margin: 0 0 8px;
  font-size: 0.86rem;
}

.risk-scale-columns dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.risk-scale-columns dd {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.risk-score-detail {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

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

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

.treatment-row-actions {
  justify-content: flex-start;
}

.treatment-edit-grid .notes-field {
  grid-column: 1 / -1;
}

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

.register-row-actions {
  justify-content: flex-start;
}

.register-edit-grid .notes-field {
  grid-column: 1 / -1;
}

.acceptance-snapshot,
.assurance-snapshot,
.control-snapshot,
.control-test-snapshot,
.supplier-snapshot,
.incident-snapshot {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

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

.exception-snapshot {
  grid-template-columns: minmax(140px, 1.1fr) minmax(120px, 0.95fr) minmax(116px, 0.8fr) minmax(104px, 0.72fr) minmax(104px, 0.72fr);
}

.exception-row-actions {
  justify-content: flex-start;
}

.exception-edit-grid .notes-field {
  grid-column: 1 / -1;
}

.catalogue-details {
  margin-top: 8px;
}

.catalogue-details summary {
  cursor: pointer;
  color: var(--teal);
  font-weight: 800;
}

.catalogue-panel-row > td {
  padding: 0 10px 14px;
}

.catalogue-panel {
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
}

.catalogue-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 10px 12px;
}

.catalogue-panel summary small {
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.catalogue-panel[open] summary {
  border-bottom: 1px solid var(--line);
}

.catalogue-panel-body {
  padding: 12px;
}

.catalogue-panel .mini-table-wrap {
  margin-top: 0;
}

.mini-table-wrap {
  overflow-x: auto;
  margin-top: 8px;
}

.mini-table {
  min-width: 620px;
  font-size: 0.84rem;
}

.mini-table th,
.mini-table td {
  padding: 8px;
}

.collection-brief-diff {
  overflow-x: auto;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--field-bg);
  padding: 8px;
}

.collection-brief-diff-line {
  margin: 0;
  min-width: 680px;
  padding: 2px 6px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.collection-brief-diff-line.added {
  background: rgba(57, 217, 138, 0.1);
  color: var(--green);
}

.collection-brief-diff-line.removed {
  background: rgba(255, 93, 115, 0.1);
  color: var(--red);
}

.event-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.event-list li {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) minmax(120px, 0.4fr);
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.event-list time {
  color: var(--muted);
  font-weight: 700;
}

.export-item {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.export-item header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.export-history-header small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
}

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

.stacked-form {
  display: grid;
  gap: 12px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.check-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-weight: 800;
}

.check-option input {
  inline-size: 16px;
  block-size: 16px;
}

.export-stats {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 12px;
}

.pack-history-meta {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.4fr);
  margin-bottom: 12px;
}

.pack-trail {
  margin: 12px 0;
}

.pack-trail summary {
  cursor: pointer;
  color: var(--teal);
  font-weight: 800;
}

.pack-trail .table-wrap {
  margin-top: 10px;
}

.markdown-output {
  min-height: 260px;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.86rem;
  line-height: 1.5;
}

.empty-state {
  color: var(--muted);
  font-weight: 700;
}

.app-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.app-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
}

.footer-product small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.74rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 100px;
  align-items: center;
  justify-content: flex-end;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.footer-links a {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
}

.legal-panel {
  max-width: 920px;
}

.legal-panel h2 {
  margin: 0;
  font-size: clamp(1.8rem, 2vw, 2.4rem);
  line-height: 1.05;
}

.legal-lead {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 700;
}

.legal-sections {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.legal-sections h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.08rem;
}

.legal-sections p {
  margin: 8px 0 0;
  color: var(--muted);
}

.about-hero {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 16%, rgba(105, 226, 255, 0.18), transparent 32%),
    var(--surface);
}

.about-hero h2,
.about-section h2 {
  margin: 0;
  color: var(--ink);
}

.about-hero h2 {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.about-lead {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 700;
}

.about-company {
  margin: 14px 0 0;
  color: var(--ink);
}

.about-registration {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.about-mark {
  display: grid;
  flex: 0 0 auto;
  width: 112px;
  height: 112px;
  place-items: center;
  border: 1px solid rgba(105, 226, 255, 0.7);
  border-radius: 28px;
  background: var(--bg);
  color: var(--teal);
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: -0.08em;
  box-shadow: 0 18px 45px rgba(23, 25, 31, 0.18);
  transform: rotate(3deg);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 18px;
  margin-top: 18px;
}

.about-section h2 {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.1;
}

.about-section > p:last-child {
  margin-bottom: 0;
}

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

.acronym-grid div {
  min-width: 0;
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.acronym-grid dt {
  color: var(--teal);
  font-size: 1.5rem;
  font-weight: 900;
}

.acronym-grid dd {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.build-details {
  display: grid;
  gap: 0;
  margin: 18px 0 0;
}

.build-details div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.build-details dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.build-details dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.build-details code {
  font-size: 0.82rem;
}

.about-note {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.about-notices {
  margin-top: 18px;
}

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

.notice-grid section {
  padding-left: 16px;
  border-left: 3px solid var(--line);
}

.notice-grid section:first-child {
  border-left-color: var(--teal);
}

.notice-grid h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
}

.notice-grid p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.about-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.about-legal-links a {
  color: var(--teal);
  font-weight: 800;
}

@media (max-width: 1080px) {
  .shell {
    position: relative;
    inset: auto;
    display: block;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .main {
    height: auto;
    overflow-y: visible;
    overscroll-behavior: auto;
    scrollbar-gutter: auto;
  }

  .sidebar {
    position: fixed;
    z-index: 40;
    inset: 0 auto 0 0;
    width: min(340px, calc(100vw - 32px));
    height: 100vh;
    overflow-y: auto;
    box-shadow: var(--shadow);
    transform: translateX(-100%);
    transition: transform 0.18s ease;
  }

  .shell.nav-open .sidebar {
    transform: translateX(0);
  }

  .shell.nav-open::after {
    position: fixed;
    z-index: 35;
    inset: 0;
    background: rgba(0, 0, 0, 0.48);
    content: "";
  }

  .mobile-nav-toggle {
    position: sticky;
    z-index: 30;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    min-height: 58px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: rgba(17, 19, 24, 0.96);
    color: var(--ink);
    padding: 0 24px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  }

  .mobile-nav-toggle-icon,
  .mobile-nav-toggle-icon::before,
  .mobile-nav-toggle-icon::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    content: "";
  }

  .mobile-nav-toggle-icon {
    position: relative;
    flex: 0 0 auto;
  }

  .mobile-nav-toggle-icon::before,
  .mobile-nav-toggle-icon::after {
    position: absolute;
    left: 0;
  }

  .mobile-nav-toggle-icon::before {
    top: -6px;
  }

  .mobile-nav-toggle-icon::after {
    top: 6px;
  }

  .mobile-nav-current {
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .mobile-nav-close {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 40px;
    min-height: 40px;
    border: 1px solid rgba(105, 226, 255, 0.18);
    border-radius: 6px;
    background: rgba(105, 226, 255, 0.08);
    color: var(--teal);
    padding: 0;
  }

  .nav {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .summary-band,
  .two-column,
  .form-grid,
  .dashboard-task-row,
  .today-hero,
  .today-orchestration,
  .dashboard-detail-grid,
  .my-work-command,
  .role-guidance-hero,
  .start-here-overview,
  .walkthrough-layout {
    grid-template-columns: 1fr;
  }

  .orchestration-current {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .next-action-grid,
  .health-panel-grid,
  .recommended-action-grid,
  .workspace-signal-grid,
  .workspace-signal-grid.five,
  .workspace-board-grid,
  .evidence-queue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .risk-row-main {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .user-row-main {
    grid-template-columns: 1fr;
  }

  .user-row-actions {
    justify-content: flex-start;
  }

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

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

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

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

  .acceptance-snapshot,
  .assurance-snapshot,
  .asset-snapshot,
  .control-snapshot,
  .control-test-snapshot,
  .supplier-snapshot,
  .incident-snapshot {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .risk-row-actions {
    justify-content: flex-start;
  }

  .risk-edit-grid,
  .risk-review-grid,
  .risk-scale-columns,
  .risk-score-detail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .user-management-grid {
    grid-template-columns: 1fr;
  }

  .auditor-access-fields {
    grid-template-columns: 1fr;
  }

  .risk-edit-grid .wide-field {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .orchestration-heading,
  .what-happens-next {
    align-items: flex-start;
    flex-direction: column;
  }

  .orchestration-score {
    justify-items: start;
  }

  .orchestration-facts,
  .orchestration-action-facts,
  .readiness-indicator-grid,
  .my-work-summary {
    grid-template-columns: 1fr;
  }

  .supporting-priority-list > li,
  .my-work-list > li {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .supporting-priority-list .toolbar-action,
  .my-work-list .toolbar-action {
    justify-self: start;
  }

  .orchestration-current,
  .orchestration-action,
  .my-work-command {
    padding: 20px;
  }

  .responsive-table-wrap {
    overflow: visible;
    contain: none;
  }

  .responsive-register-table {
    display: block;
    min-width: 0;
    border-collapse: separate;
  }

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

  .responsive-register-table tbody {
    display: grid;
    gap: 12px;
  }

  .responsive-register-table tr {
    display: grid;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface-soft);
    padding: 12px;
  }

  .responsive-register-table td {
    display: grid;
    grid-template-columns: minmax(92px, 0.34fr) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-width: 0;
    border-bottom: 0;
    padding: 0;
  }

  .responsive-register-table td::before {
    content: attr(data-label);
    padding-top: 3px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .responsive-register-table td:first-child,
  .responsive-register-table td.empty-state {
    display: block;
  }

  .responsive-register-table td:first-child::before,
  .responsive-register-table td.empty-state::before {
    display: none;
  }

  .responsive-register-table td > * {
    min-width: 0;
  }

  .collector-workspace .responsive-register-table code {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .responsive-register-table .status,
  .responsive-register-table .button,
  .responsive-register-table .small-button,
  .responsive-register-table .toolbar-action,
  .responsive-register-table .status-link,
  .responsive-register-table .quiet-link {
    max-width: 100%;
    white-space: normal;
  }

  .responsive-register-table .filter-actions,
  .responsive-register-table .action-row {
    align-items: stretch;
  }

  .responsive-register-table .filter-actions > *,
  .responsive-register-table .action-row > * {
    flex: 1 1 auto;
  }

  .responsive-register-table .inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .responsive-register-table textarea,
  .responsive-register-table select,
  .responsive-register-table input {
    max-width: 100%;
  }
}

@media (max-width: 420px) {
  .responsive-register-table td {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .responsive-register-table td::before {
    padding-top: 0;
  }
}

/* July 2026 guided workspace screens */
.workspace-screen {
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--workspace-glow), transparent 48%),
    var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.workspace-screen-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 22px 24px 18px;
}

.workspace-screen-header h2,
.workspace-screen-header h3,
.workspace-screen-header p {
  margin: 0;
}

.workspace-screen-header h2 {
  max-width: 860px;
  margin-top: 4px;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.workspace-screen-header > p {
  max-width: 520px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.5;
}

.workspace-screen-kicker,
.workspace-panel-label {
  color: var(--workspace-accent);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.workspace-stat-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
  min-width: min(100%, 500px);
}

.workspace-stat-rail.three {
  grid-template-columns: repeat(3, minmax(110px, 1fr));
}

.workspace-stat {
  min-width: 0;
  border: 1px solid var(--line);
  border-top: 3px solid var(--muted);
  border-radius: 7px;
  background: rgba(8, 11, 16, 0.48);
  padding: 13px;
}

.workspace-stat.red { border-top-color: var(--red); }
.workspace-stat.amber { border-top-color: var(--amber); }
.workspace-stat.blue { border-top-color: var(--blue); }
.workspace-stat.green { border-top-color: var(--green); }

.workspace-stat span,
.workspace-stat small,
.workspace-stat strong {
  display: block;
}

.workspace-stat span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.workspace-stat strong {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 1.6rem;
  line-height: 1;
}

.workspace-stat small {
  margin-top: 7px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.workspace-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0 18px;
}

.workspace-tabs a {
  flex: 0 0 auto;
  min-height: 48px;
  border-bottom: 3px solid transparent;
  padding: 15px 14px 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.workspace-tabs a:hover,
.workspace-tabs a:focus-visible,
.workspace-tabs a.active {
  color: var(--ink);
}

.workspace-tabs a.active {
  border-bottom-color: var(--workspace-accent);
}

.workspace-tabs a span {
  margin-left: 5px;
  color: var(--workspace-accent);
  font-family: var(--font-mono);
}

.workspace-body,
.workspace-split,
.workspace-detail-grid {
  display: grid;
  gap: 14px;
  padding: 18px 20px 20px;
}

.workspace-detail-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.65fr);
}

.workspace-split {
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
}

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

.workspace-panel,
.workspace-passport,
.workspace-next-action {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(8, 11, 16, 0.38);
  padding: 17px;
}

.workspace-panel h3,
.workspace-passport h3,
.workspace-next-action h3 {
  margin: 5px 0 0;
  font-size: 1.08rem;
  line-height: 1.2;
}

.workspace-panel > p,
.workspace-passport > p,
.workspace-next-action > p {
  margin: 8px 0 0;
  color: var(--muted);
}

.workspace-passport {
  border-left: 3px solid var(--workspace-accent);
}

.workspace-passport .button,
.workspace-passport .small-button,
.workspace-passport .toolbar-action {
  width: 100%;
  margin-top: 12px;
}

.workspace-next-action > span,
.workspace-next-action > strong,
.workspace-next-action > a {
  display: block;
}

.workspace-next-action > span {
  color: var(--workspace-accent);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.workspace-next-action > strong {
  margin-top: 7px;
  line-height: 1.4;
}

.workspace-fact-list,
.workspace-check-list,
.workspace-record-list,
.workspace-timeline {
  display: grid;
  gap: 0;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.workspace-fact-list > div,
.workspace-check-list li,
.workspace-record-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}

.workspace-fact-list dt,
.workspace-check-list li,
.workspace-record-list small {
  color: var(--muted);
}

.workspace-fact-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  text-align: right;
}

.workspace-check-list li::before {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  content: "\2713";
  font-size: 0.68rem;
  font-weight: 900;
}

.workspace-check-list li.attention::before {
  border-color: var(--red);
  color: var(--red);
  content: "!";
}

.workspace-record-list li {
  align-items: flex-start;
}

.workspace-record-list a,
.workspace-record-list strong,
.workspace-record-list small {
  display: block;
}

.workspace-record-list a,
.workspace-record-list strong {
  color: var(--ink);
}

.workspace-record-list small {
  margin-top: 3px;
  font-weight: 700;
}

.workspace-record-list .status {
  flex: 0 0 auto;
}

.workspace-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 14px 20px;
}

.workspace-action-bar p {
  margin: 0;
  color: var(--muted);
}

.workspace-action-bar strong {
  color: var(--workspace-accent);
}

.workspace-action-bar .action-row {
  flex: 0 0 auto;
}

.stage-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0;
  margin-top: 18px;
  padding: 0;
  list-style: none;
}

.stage-track.six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.stage-step {
  position: relative;
  min-width: 0;
  padding: 42px 8px 0;
  color: var(--muted);
  text-align: center;
}

.stage-step::before {
  position: absolute;
  z-index: 2;
  top: 4px;
  left: calc(50% - 15px);
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid var(--muted);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  content: attr(data-step);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 900;
}

.stage-step::after {
  position: absolute;
  top: 19px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--line);
  content: "";
}

.stage-step:first-child::after { left: 50%; width: 50%; }
.stage-step:last-child::after { width: 50%; }

.stage-step.complete::before {
  border-color: var(--green);
  color: var(--green);
}

.stage-step.current::before {
  border-color: var(--blue);
  box-shadow: 0 0 0 5px rgba(93, 169, 255, 0.12);
  color: var(--blue);
}

.stage-step.attention::before {
  border-color: var(--amber);
  color: var(--amber);
}

.stage-step strong,
.stage-step small {
  display: block;
}

.stage-step strong {
  color: var(--ink);
  font-size: 0.78rem;
}

.stage-step small {
  margin-top: 4px;
  line-height: 1.35;
}

.scope-map,
.trace-chain,
.runway-track,
.risk-priority-map,
.supplier-quadrant {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background:
    linear-gradient(rgba(105, 226, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(105, 226, 255, 0.035) 1px, transparent 1px),
    rgba(8, 11, 16, 0.32);
  background-size: 24px 24px;
  padding: 18px;
}

.scope-chain,
.trace-chain {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto minmax(150px, 0.8fr) auto minmax(150px, 0.8fr);
  gap: 10px;
  align-items: center;
}

.scope-node,
.trace-node,
.document-tile,
.check-ticket,
.roadmap-plan {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-raised);
  padding: 14px;
}

.scope-node.selected,
.trace-node.selected,
.document-tile.selected,
.check-ticket.selected,
.roadmap-plan.selected {
  border-color: var(--workspace-accent);
  box-shadow: inset 3px 0 0 var(--workspace-accent);
}

.scope-node strong,
.scope-node small,
.trace-node strong,
.trace-node small,
.document-tile strong,
.document-tile small {
  display: block;
}

.scope-node small,
.trace-node small,
.document-tile small {
  margin-top: 4px;
  color: var(--muted);
}

.scope-arrow,
.trace-arrow {
  color: var(--muted);
  font-size: 1.35rem;
  font-weight: 900;
}

.supplier-quadrant,
.risk-priority-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  min-height: 330px;
  padding: 0;
  overflow: hidden;
}

.supplier-zone,
.risk-zone {
  min-height: 165px;
  padding: 18px;
}

.supplier-zone:nth-child(1),
.risk-zone.act-now,
.risk-zone.critical { background: rgba(255, 93, 115, 0.1); }
.supplier-zone:nth-child(2),
.risk-zone.monitor,
.risk-zone.high { background: rgba(215, 181, 109, 0.12); }
.supplier-zone:nth-child(3),
.risk-zone.review,
.risk-zone.monitored { background: rgba(57, 217, 138, 0.08); }
.supplier-zone:nth-child(4),
.risk-zone.unscored,
.risk-zone.low { background: rgba(93, 169, 255, 0.08); }

.supplier-zone h4,
.risk-zone h4,
.supplier-zone > span:first-child,
.risk-zone > span:first-child {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.supplier-chip,
.risk-chip {
  display: inline-block;
  max-width: 240px;
  margin: 12px 8px 0 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  padding: 10px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
}

.supplier-chip.red,
.risk-chip.red { border-color: var(--red); }
.supplier-chip.amber,
.risk-chip.amber { border-color: var(--amber); }
.supplier-chip.green,
.risk-chip.green { border-color: var(--green); }
.supplier-chip.blue,
.risk-chip.blue { border-color: var(--blue); }

.runway-track {
  position: relative;
  display: grid;
  grid-template-columns: 1.6fr 0.75fr 0.5fr;
  gap: 0;
  min-height: 110px;
  padding: 0;
  overflow: hidden;
}

.runway-track > div {
  display: grid;
  align-content: center;
  padding: 16px;
  text-align: center;
}

.runway-track .active { background: rgba(57, 217, 138, 0.16); color: var(--green); }
.runway-track .warning { background: rgba(215, 181, 109, 0.16); color: var(--amber); }
.runway-track .expiry { background: rgba(255, 93, 115, 0.16); color: var(--red); }

.document-shelf,
.check-board,
.roadmap-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.check-board,
.roadmap-list {
  grid-template-columns: 1fr;
}

.roadmap-plan {
  display: grid;
  gap: 10px;
}

.roadmap-plan header,
.roadmap-plan footer,
.check-ticket header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.roadmap-plan header span,
.roadmap-plan header strong,
.roadmap-plan header small,
.check-ticket header span,
.check-ticket header strong {
  display: block;
}

.roadmap-plan header > span,
.check-ticket header > span {
  flex: 0 0 auto;
}

.roadmap-plan header small,
.check-ticket dl {
  margin-top: 4px;
  color: var(--muted);
}

.roadmap-plan footer {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.check-ticket dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.check-ticket dl div {
  min-width: 0;
}

.check-ticket dt {
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.check-ticket dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-weight: 800;
}

.roadmap-progress {
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--surface-soft);
}

.roadmap-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.workspace-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 18px;
  min-height: 58px;
  padding-left: 26px;
}

.workspace-timeline li::before {
  position: absolute;
  top: 5px;
  left: 3px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--workspace-accent);
  border-radius: 50%;
  background: var(--surface);
  content: "";
}

.workspace-timeline li::after {
  position: absolute;
  top: 19px;
  bottom: -5px;
  left: 9px;
  width: 1px;
  background: var(--line);
  content: "";
}

.workspace-timeline li:last-child::after { display: none; }
.workspace-timeline time { color: var(--muted); font-family: var(--font-mono); font-size: 0.75rem; }
.workspace-timeline strong,
.workspace-timeline small { display: block; }
.workspace-timeline small { margin-top: 3px; color: var(--muted); }

.advanced-register.screen-register {
  margin-top: 18px;
}

.advanced-register.screen-register > summary {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.advanced-register.screen-register > summary::after {
  color: var(--workspace-accent);
  content: "+";
  font-size: 1.4rem;
  grid-column: 2;
  grid-row: 1 / span 3;
}

.advanced-register.screen-register[open] > summary::after {
  content: "\2212";
}

.page-heading {
  width: min(100%, 1180px);
}

.topbar h1 {
  font-size: clamp(2rem, 3.2vw, 3.4rem);
  letter-spacing: -0.045em;
}

.page-direction {
  max-width: 1180px;
}

@media (max-width: 1180px) {
  .workspace-screen-header {
    display: grid;
  }

  .workspace-stat-rail {
    width: 100%;
  }

  .workspace-split,
  .workspace-split.equal,
  .workspace-detail-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .workspace-screen-header,
  .workspace-body,
  .workspace-split,
  .workspace-detail-grid {
    padding: 16px;
  }

  .workspace-stat-rail,
  .workspace-stat-rail.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .workspace-action-bar .action-row,
  .workspace-action-bar .button,
  .workspace-action-bar .toolbar-action {
    width: 100%;
  }

  .scope-chain,
  .trace-chain,
  .roadmap-plan {
    grid-template-columns: 1fr;
  }

  .scope-arrow,
  .trace-arrow {
    transform: rotate(90deg);
    text-align: center;
  }

  .stage-track,
  .stage-track.six {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .stage-step {
    min-height: 44px;
    padding: 9px 10px 9px 52px;
    text-align: left;
  }

  .stage-step::before {
    top: 6px;
    left: 8px;
  }

  .stage-step::after {
    top: 36px;
    bottom: -10px;
    left: 23px;
    width: 2px;
    height: auto;
  }

  .stage-step:first-child::after,
  .stage-step:last-child::after {
    left: 23px;
    width: 2px;
  }

  .stage-step:last-child::after { display: none; }

  .supplier-quadrant,
  .risk-priority-map,
  .document-shelf {
    grid-template-columns: 1fr;
  }

  .runway-track {
    grid-template-columns: 1fr;
  }

  .workspace-timeline li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* Light mode preserves the same hierarchy while translating dark inset layers
   into cool, low-contrast surfaces. Dark remains the default theme. */
html[data-theme="light"] .page-direction {
  background: linear-gradient(115deg, var(--workspace-glow), var(--surface) 70%);
}

html[data-theme="light"] .workspace-signal,
html[data-theme="light"] .workspace-lane,
html[data-theme="light"] .advanced-register,
html[data-theme="light"] .proof-lane,
html[data-theme="light"] .my-work-summary > div,
html[data-theme="light"] .work-summary-strip > div,
html[data-theme="light"] .workspace-stat,
html[data-theme="light"] .workspace-panel,
html[data-theme="light"] .workspace-passport,
html[data-theme="light"] .workspace-next-action,
html[data-theme="light"] .task-health-stats article,
html[data-theme="light"] .task-admin-panel,
html[data-theme="light"] .task-rules-panel,
html[data-theme="light"] .task-rule-card,
html[data-theme="light"] .reference-intro-card,
html[data-theme="light"] .reference-health-stat,
html[data-theme="light"] .evidence-board,
html[data-theme="light"] .document-reference-shelf,
html[data-theme="light"] .reference-inspector,
html[data-theme="light"] .reference-proof-lane li,
html[data-theme="light"] .soa-matrix-row > div,
html[data-theme="light"] .soa-matrix-row > span,
html[data-theme="light"] .control-intro-card,
html[data-theme="light"] .control-test-intro,
html[data-theme="light"] .control-metric-grid article,
html[data-theme="light"] .control-health-panel,
html[data-theme="light"] .control-state-panel,
html[data-theme="light"] .control-attention-panel,
html[data-theme="light"] .control-actions-panel,
html[data-theme="light"] .control-attention-list a,
html[data-theme="light"] .control-actions-panel > a,
html[data-theme="light"] .control-check-list,
html[data-theme="light"] .control-check-inspector,
html[data-theme="light"] .control-check-list > article,
html[data-theme="light"] .treatment-intro,
html[data-theme="light"] .treatment-roadmap-list > article,
html[data-theme="light"] .treatment-bottom-nav {
  background: color-mix(in srgb, var(--surface) 84%, var(--surface-soft));
}

html[data-theme="light"] .orchestration-current {
  background: color-mix(in srgb, var(--surface-soft) 38%, transparent);
}

html[data-theme="light"] .calendar-day.outside-period,
html[data-theme="light"] .section-empty-state,
html[data-theme="light"] .task-rule-action {
  background: var(--surface-soft);
}

html[data-theme="light"] .scope-map,
html[data-theme="light"] .trace-chain,
html[data-theme="light"] .runway-track,
html[data-theme="light"] .risk-priority-map,
html[data-theme="light"] .supplier-quadrant {
  background:
    linear-gradient(rgba(20, 94, 168, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 94, 168, 0.055) 1px, transparent 1px),
    var(--surface-soft);
}

html[data-theme="light"] .task-intro-card {
  background: linear-gradient(115deg, rgba(118, 87, 0, 0.08), var(--surface) 55%);
}

html[data-theme="light"] .task-intro-card.queue {
  background: linear-gradient(115deg, rgba(0, 107, 120, 0.08), var(--surface) 58%);
}

html[data-theme="light"] .task-console {
  background:
    linear-gradient(120deg, rgba(118, 87, 0, 0.06), transparent 42%),
    var(--surface);
}

html[data-theme="light"] .reference-document-card {
  background: linear-gradient(140deg, var(--surface-raised), var(--surface));
}

@media (max-width: 1080px) {
  html[data-theme="light"] .mobile-nav-toggle {
    background: color-mix(in srgb, var(--surface) 96%, transparent);
  }
}

@media (max-width: 440px) {
  .workspace-stat-rail,
  .workspace-stat-rail.three {
    grid-template-columns: 1fr;
  }

  .workspace-screen-header h2 {
    font-size: 1.35rem;
  }
}

/* Task Register — pixel-faithful July 2026 reference composition */
.workspace-tasks .page-direction,
.workspace-tasks .page-actions-menu {
  display: none;
}

.workspace-tasks .topbar {
  align-items: flex-start;
  margin-bottom: 20px;
}

.workspace-tasks .topbar h1 {
  margin-top: 14px;
  font-size: clamp(3rem, 5.2vw, 4.7rem);
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.task-reference-screen {
  display: grid;
  gap: 18px;
  width: min(100%, 1440px);
  margin: 0 auto 18px;
}

.task-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 16px;
}

.task-intro-card {
  display: flex;
  min-width: 0;
  min-height: 112px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(115deg, rgba(215, 181, 109, 0.08), rgba(26, 30, 38, 0.96) 55%);
  padding: 18px 20px;
}

.task-intro-card.queue {
  border-color: rgba(105, 226, 255, 0.34);
  background: linear-gradient(115deg, rgba(105, 226, 255, 0.08), rgba(24, 31, 40, 0.96) 58%);
}

.task-intro-card.purpose {
  display: grid;
  align-content: center;
  justify-content: stretch;
  gap: 0;
}

.task-intro-card span,
.task-console-heading > p {
  color: var(--workspace-accent);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.task-intro-card p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--ink);
  font-size: clamp(0.95rem, 1.25vw, 1.16rem);
  font-weight: 700;
  line-height: 1.36;
}

.task-intro-card.queue p {
  font-size: clamp(1.06rem, 1.55vw, 1.34rem);
  font-weight: 850;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.task-outline-button {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(105, 226, 255, 0.58);
  border-radius: 7px;
  background: rgba(105, 226, 255, 0.08);
  padding: 0 18px;
  color: var(--teal);
  font-size: 0.88rem;
  font-weight: 900;
  white-space: nowrap;
}

.task-console {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background:
    linear-gradient(120deg, rgba(215, 181, 109, 0.06), transparent 42%),
    rgba(24, 27, 34, 0.98);
  box-shadow: var(--shadow);
}

.task-console-health {
  display: grid;
  grid-template-columns: minmax(310px, 1fr) minmax(560px, 1.2fr);
  gap: 24px;
  align-items: start;
  padding: 26px;
}

.task-console-heading > p {
  margin: 0;
}

.task-console-heading h2 {
  max-width: 640px;
  margin: 8px 0 0;
  font-size: clamp(1.55rem, 2.45vw, 2.25rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

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

.task-health-stats article {
  min-width: 0;
  min-height: 140px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--workspace-accent);
  border-radius: 7px;
  background: rgba(10, 12, 17, 0.7);
  padding: 14px 13px;
}

.task-health-stats span {
  display: block;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 900;
}

.task-health-stats p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.79rem;
  font-weight: 750;
  line-height: 1.55;
}

.task-health-stats strong {
  color: var(--ink);
}

.task-console-tabs {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0 26px;
}

.task-console-tabs a {
  flex: 0 0 auto;
  min-height: 54px;
  border-bottom: 3px solid transparent;
  padding: 18px 0 13px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 900;
}

.task-console-tabs a.active {
  border-bottom-color: var(--workspace-accent);
  color: var(--ink);
}

.task-console-body {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 18px;
  padding: 24px 26px 26px;
}

.task-admin-panel,
.task-rules-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 12, 17, 0.62);
  padding: 20px;
}

.task-admin-panel h3,
.task-rules-panel h3 {
  margin: 0 0 15px;
  font-size: 1.08rem;
}

.task-admin-panel ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.task-admin-panel li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 68px;
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
}

.task-admin-panel strong,
.task-admin-panel small {
  display: block;
}

.task-admin-panel strong {
  color: var(--ink);
  font-size: 0.88rem;
}

.task-admin-panel small,
.task-admin-panel > p,
.task-rules-note {
  color: var(--muted);
  font-weight: 700;
}

.task-admin-panel small {
  margin-top: 3px;
}

.task-admin-panel > p,
.task-rules-note {
  margin: 18px 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
}

.task-count {
  display: grid;
  flex: 0 0 auto;
  min-width: 36px;
  min-height: 28px;
  place-items: center;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 900;
}

.task-count.red { background: rgba(255, 93, 115, 0.18); color: var(--red); }
.task-count.amber { background: rgba(215, 181, 109, 0.18); color: var(--amber); }
.task-count.green { background: rgba(57, 217, 138, 0.16); color: var(--green); }

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

.task-rule-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(31, 35, 44, 0.74);
  padding: 12px 14px;
}

.task-rule-interval {
  display: grid;
  min-height: 48px;
  place-items: center;
  border: 1px solid rgba(215, 181, 109, 0.46);
  border-radius: 7px;
  color: var(--workspace-accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 900;
}

.task-rule-copy strong,
.task-rule-copy small {
  display: block;
}

.task-rule-copy strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.task-rule-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.4;
}

.task-rule-status {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  background: rgba(57, 217, 138, 0.15);
  padding: 0 10px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.task-rule-card form {
  margin: 0;
}

.task-rule-action {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  padding: 0 11px;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 850;
  white-space: nowrap;
}

.task-rule-action.disabled {
  color: var(--muted);
}

.task-advanced-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

@media (max-width: 1180px) {
  .task-console-health {
    grid-template-columns: 1fr;
  }

  .task-intro-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .task-health-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  .workspace-tasks .topbar h1 {
    font-size: 2.55rem;
  }

  .task-intro-card,
  .task-intro-card.queue {
    align-items: stretch;
    flex-direction: column;
  }

  .task-outline-button {
    width: 100%;
  }

  .task-console-health,
  .task-console-body {
    padding: 18px 16px;
  }

  .task-health-stats {
    grid-template-columns: 1fr;
  }

  .task-health-stats article {
    min-height: 0;
  }

  .task-console-tabs {
    gap: 22px;
    padding: 0 16px;
  }

  .task-rule-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .task-rule-status,
  .task-rule-card form,
  .task-rule-action {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .main {
    padding: 18px;
  }

  .page-title-row,
  .page-direction,
  .panel-header,
  .guided-flow-header,
  .first-thirty-path .guided-flow-header,
  .decision-strip,
  .section-heading,
  .workspace-overview-header,
  .role-context-strip,
  .app-footer,
  .export-item header,
  .export-actions {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .about-grid,
  .notice-grid {
    grid-template-columns: 1fr;
  }

  .page-direction {
    align-items: stretch;
  }

  .page-primary-action {
    width: 100%;
  }

  .topbar-actions {
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  .account-summary-copy {
    display: none;
  }

  .account-menu summary {
    min-width: 54px;
    justify-content: center;
  }

  .nav,
  .metric-columns,
  .metric-grid,
  .owner-strip,
  .record-detail-grid,
  .field-grid,
  .evidence-request-meta-grid,
  .mini-field-grid,
  .completion-panel,
  .review-form,
  .compact-role-picker,
  .export-stats,
  .pack-history-meta,
  .filter-bar,
  .wide-inline-form,
  .risk-edit-grid,
  .risk-review-grid,
  .risk-scale-columns,
  .risk-score-detail,
  .user-snapshot,
  .event-list li,
  .setup-check-list li,
  .flow-steps li,
  .first-thirty-steps li,
  .reminder-list li {
    grid-template-columns: 1fr;
  }

  .next-action-grid,
  .health-panel-grid,
  .recommended-action-grid,
  .workspace-signal-grid,
  .workspace-signal-grid.five,
  .workspace-board-grid,
  .evidence-queue-grid,
  .start-here-step-lists,
  .work-summary-strip,
  .readiness-facts {
    grid-template-columns: 1fr;
  }

  .today-recommendation,
  .readiness-snapshot,
  .next-action-card,
  .health-panel,
  .workspace-overview,
  .workspace-board,
  .evidence-queue {
    padding: 16px;
  }

  .readiness-score-row,
  .attention-record-list > li,
  .role-context-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .role-guidance-hero {
    padding: 18px;
  }

  .start-here-progress strong {
    justify-self: start;
  }

  .start-here-current-step,
  .start-here-current-step.complete {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .runway-empty-state > div:first-child {
    grid-template-columns: 1fr;
  }

  .summary-band,
  .panel {
    padding: 16px;
  }

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

  .footer-links {
    justify-content: flex-start;
  }

  .about-hero {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
  }

  .about-mark {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    font-size: 1.25rem;
  }

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

  .build-details div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

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

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

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

  .acceptance-snapshot,
  .assurance-snapshot,
  .asset-snapshot,
  .control-snapshot,
  .control-test-snapshot,
  .supplier-snapshot,
  .incident-snapshot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .topbar-actions {
    justify-content: flex-end;
  }
}

/* July 2026 reference consoles: Evidence, Documents, and ISO Coverage */
.workspace-evidence .page-direction,
.workspace-evidence .page-actions-menu,
.workspace-documents .page-direction,
.workspace-documents .page-actions-menu,
.workspace-soa .page-direction,
.workspace-soa .page-actions-menu {
  display: none;
}

.workspace-evidence .topbar,
.workspace-documents .topbar,
.workspace-soa .topbar {
  align-items: flex-start;
  margin-bottom: 20px;
}

.workspace-evidence .topbar h1,
.workspace-documents .topbar h1,
.workspace-soa .topbar h1 {
  margin-top: 14px;
  font-size: clamp(3rem, 5.2vw, 4.7rem);
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.reference-screen {
  display: grid;
  gap: 16px;
  width: min(100%, 1440px);
  margin: 0 auto 18px;
}

.reference-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 16px;
}

.reference-intro-card {
  display: flex;
  min-width: 0;
  min-height: 92px;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  border: 1px solid color-mix(in srgb, var(--workspace-accent) 42%, var(--line));
  border-radius: 8px;
  background: rgba(31, 35, 44, 0.72);
  padding: 18px 22px;
}

.reference-intro-card.distinction {
  display: flex;
}

.reference-intro-card.distinction p,
.reference-intro-card.starter p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.reference-intro-card.distinction strong {
  color: var(--ink);
}

.reference-intro-card.starter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
}

.reference-intro-card.starter > div {
  min-width: 0;
}

.reference-intro-card.starter .reference-intro-label {
  display: block;
  margin-bottom: 6px;
}

.reference-intro-card.starter .reference-outline-button {
  flex: 0 0 auto;
  min-width: 140px;
}

.reference-intro-label {
  color: var(--workspace-accent);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.reference-intro-card > strong {
  color: var(--ink);
  font-size: clamp(1rem, 1.35vw, 1.28rem);
  line-height: 1.35;
}

.reference-console,
.soa-confidence,
.soa-intro-strip,
.soa-decision-map,
.soa-reference-body > .reference-inspector {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--workspace-accent) 9%, transparent), transparent 42%),
    var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.reference-console-health {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(430px, 0.8fr);
  gap: 32px;
  align-items: center;
  padding: 22px 24px 20px;
}

.reference-console-health h2,
.reference-console-health p {
  margin: 0;
}

.reference-console-health h2 {
  max-width: 760px;
  margin-top: 7px;
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.reference-console-health > div:first-child > p:last-child {
  max-width: 720px;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

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

.reference-health-stats.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reference-health-stat {
  min-width: 0;
  min-height: 86px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--muted);
  border-radius: 7px;
  background: rgba(8, 11, 16, 0.65);
  padding: 12px;
}

.reference-health-stat.red { border-top-color: var(--red); }
.reference-health-stat.amber { border-top-color: var(--amber); }
.reference-health-stat.blue { border-top-color: var(--blue); }
.reference-health-stat.green { border-top-color: var(--green); }

.reference-health-stat span,
.reference-health-stat strong {
  display: block;
}

.reference-health-stat span {
  min-height: 28px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.reference-health-stat strong {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 1.65rem;
  line-height: 1;
}

.reference-tabs {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
}

.reference-tabs a {
  flex: 0 0 auto;
  min-height: 52px;
  border-bottom: 3px solid transparent;
  padding: 17px 0 13px;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 900;
  white-space: nowrap;
}

.reference-tabs a:hover,
.reference-tabs a:focus-visible,
.reference-tabs a.active {
  color: var(--ink);
}

.reference-tabs a.active {
  border-bottom-color: var(--workspace-accent);
}

.reference-tabs a span {
  display: inline-grid;
  min-width: 22px;
  min-height: 22px;
  margin-left: 5px;
  place-items: center;
  border-radius: 99px;
  background: color-mix(in srgb, var(--workspace-accent) 18%, transparent);
  color: var(--workspace-accent);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.reference-console-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.28fr);
  gap: 16px;
  padding: 20px 24px 24px;
}

.evidence-board,
.document-reference-shelf,
.reference-inspector {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 11, 16, 0.46);
}

.reference-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
}

.reference-panel-header h2,
.reference-panel-header p {
  margin: 0;
}

.reference-panel-header h2 {
  font-size: 1.1rem;
}

.reference-panel-header p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.reference-outline-button,
.reference-primary-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--workspace-accent) 44%, var(--line));
  border-radius: 6px;
  background: color-mix(in srgb, var(--workspace-accent) 7%, transparent);
  padding: 0 14px;
  color: var(--workspace-accent);
  font-size: 0.76rem;
  font-weight: 900;
  text-align: center;
}

button.reference-outline-button,
button.reference-primary-button {
  width: 100%;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
}

.reference-primary-button {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--action-ink);
}

.reference-outline-button.full,
.reference-primary-button {
  width: 100%;
  margin-top: 10px;
}

.evidence-lane-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 460px;
  border-top: 1px solid var(--line);
}

.reference-proof-lane {
  min-width: 0;
  border-top: 3px solid var(--muted);
  border-right: 1px solid var(--line);
}

.reference-proof-lane:last-child {
  border-right: 0;
}

.reference-proof-lane.red { border-top-color: var(--red); }
.reference-proof-lane.amber { border-top-color: var(--amber); }
.reference-proof-lane.green { border-top-color: var(--green); }
.reference-proof-lane.blue { border-top-color: var(--blue); }

.reference-proof-lane > header {
  min-height: 90px;
  padding: 13px;
}

.reference-proof-lane > header > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.reference-proof-lane h3,
.reference-proof-lane p {
  margin: 0;
}

.reference-proof-lane h3 {
  font-size: 0.86rem;
}

.reference-proof-lane > header strong {
  display: grid;
  min-width: 24px;
  min-height: 24px;
  place-items: center;
  border-radius: 99px;
  background: var(--surface-soft);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.reference-proof-lane > header p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.35;
}

.reference-proof-lane ol {
  display: grid;
  gap: 9px;
  margin: 0;
  border-top: 1px solid var(--line);
  padding: 12px;
  list-style: none;
}

.reference-proof-lane li {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(31, 35, 44, 0.74);
  padding: 11px;
}

.reference-proof-lane li.selected {
  border-color: var(--workspace-accent);
  box-shadow: inset 3px 0 0 var(--workspace-accent);
}

.reference-proof-lane .proof-item-title a {
  font-size: 0.78rem;
}

.reference-proof-lane .proof-cues {
  margin-top: 9px;
}

.reference-proof-lane .proof-cue {
  display: block;
  margin: 4px 0 0;
  padding: 0;
  background: transparent;
  font-size: 0.65rem;
}

.reference-proof-lane .proof-item-footer {
  margin-top: 10px;
}

.reference-proof-lane .proof-item-footer small {
  font-size: 0.65rem;
}

.reference-proof-lane .proof-next-action {
  display: flex;
  width: 100%;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  text-align: center;
}

.reference-proof-lane .proof-lane-empty {
  border-style: dashed;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.4;
}

.reference-inspector {
  padding: 16px;
}

.reference-inspector h2,
.reference-inspector h3,
.reference-inspector > p {
  margin: 0;
}

.reference-inspector h2 {
  margin-top: 4px;
  font-size: 1.25rem;
  line-height: 1.12;
}

.reference-inspector > p:not(.workspace-panel-label) {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.45;
}

.reference-object-visual {
  display: grid;
  min-height: 132px;
  margin: 14px 0;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--workspace-accent) 34%, var(--line));
  border-radius: 8px;
  background:
    linear-gradient(rgba(105, 226, 255, 0.035) 1px, transparent 1px),
    rgba(57, 217, 138, 0.04);
  background-size: 100% 22px;
}

.reference-object-visual.proof span {
  display: grid;
  width: 58px;
  height: 70px;
  place-items: center;
  border: 1px solid var(--green);
  border-radius: 7px;
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.reference-object-visual.document span {
  position: relative;
  width: 72px;
  height: 92px;
  border-radius: 5px;
  background: #dbe5f3;
}

.reference-object-visual.document span::after {
  position: absolute;
  top: 22px;
  left: 17px;
  width: 39px;
  height: 4px;
  border-radius: 99px;
  background: #75869a;
  box-shadow: 0 12px #75869a, 0 24px #75869a, 0 36px #75869a;
  content: "";
}

.reference-facts {
  display: grid;
  gap: 0;
  margin: 0;
}

.reference-facts > div {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.reference-facts dt {
  color: var(--muted);
  font-size: 0.7rem;
}

.reference-facts dd {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 850;
  text-align: right;
}

.reference-path,
.reference-inspector-section {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 13px;
}

.reference-path ol {
  display: grid;
  gap: 9px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.reference-path li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.reference-path li::before {
  position: absolute;
  top: 4px;
  left: 1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--workspace-accent);
  content: "";
}

.reference-document-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-height: 460px;
  border-top: 1px solid var(--line);
  padding: 14px;
  align-content: start;
}

.reference-document-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(140deg, rgba(53, 61, 73, 0.78), rgba(20, 24, 31, 0.88));
  padding: 13px;
}

.reference-document-card.selected {
  border-color: var(--workspace-accent);
  box-shadow: inset 3px 0 0 var(--workspace-accent);
}

.reference-document-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  color: var(--workspace-accent);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-align: right;
}

.document-glyph {
  position: relative;
  flex: 0 0 auto;
  width: 35px;
  height: 43px;
  border: 1px solid var(--muted);
  border-radius: 5px;
}

.document-glyph::after {
  position: absolute;
  top: 13px;
  left: 8px;
  width: 16px;
  height: 1px;
  background: var(--muted);
  box-shadow: 0 7px var(--muted);
  content: "";
}

.reference-document-card h3 {
  min-height: 42px;
  margin: 12px 0 0;
  font-size: 0.93rem;
  line-height: 1.25;
}

.reference-document-card > p {
  min-height: 32px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
}

.reference-facts.compact {
  margin-top: 8px;
}

.reference-facts.compact > div {
  min-height: 32px;
}

.reference-card-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 800;
}

.soa-intro-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) auto;
  gap: 22px;
  align-items: center;
  padding: 18px;
}

.soa-intro-strip > div {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.soa-intro-strip > div + div {
  border-left: 1px solid var(--line);
  padding-left: 22px;
}

.soa-intro-strip p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.4;
}

.soa-intro-strip .reference-intro-label {
  display: block;
  margin-bottom: 4px;
}

.reference-intro-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid var(--workspace-accent);
  border-radius: 50%;
  color: var(--workspace-accent);
  font-size: 1.35rem;
  font-weight: 900;
}

.soa-confidence {
  display: grid;
  grid-template-columns: minmax(280px, 0.65fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 20px 22px;
}

.soa-confidence h2,
.soa-confidence p {
  margin: 0;
}

.soa-confidence h2 {
  margin-top: 5px;
  font-size: 1.35rem;
}

.soa-confidence-signals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.soa-confidence-signals article {
  min-width: 0;
  border-left: 1px solid var(--line);
  padding: 8px 18px;
}

.soa-confidence-signals span,
.soa-confidence-signals strong {
  display: block;
}

.soa-confidence-signals span {
  color: var(--muted);
  font-size: 0.72rem;
}

.soa-confidence-signals strong {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 1.7rem;
}

.soa-confidence-signals .red strong { color: var(--red); }
.soa-confidence-signals .amber strong { color: var(--amber); }
.soa-confidence-signals .blue strong { color: var(--blue); }
.soa-confidence-signals .green strong { color: var(--green); }

.soa-reference-body {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.45fr);
  gap: 16px;
}

.soa-map-content {
  padding: 22px;
}

.soa-map-content > header h2,
.soa-map-content > header p {
  margin: 0;
}

.soa-map-content > header p {
  margin-top: 4px;
  color: var(--muted);
}

.soa-matrix {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.soa-matrix-head,
.soa-matrix-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.25fr) repeat(4, minmax(95px, 0.8fr));
  gap: 10px;
  align-items: stretch;
  padding: 6px;
}

.soa-matrix-head {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.soa-matrix-row {
  border-top: 1px solid var(--line);
}

.soa-matrix-row.selected {
  outline: 2px solid var(--workspace-accent);
  outline-offset: -2px;
}

.soa-matrix-row > div,
.soa-matrix-row > span {
  display: flex;
  min-width: 0;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(31, 35, 44, 0.64);
  font-size: 0.72rem;
  font-weight: 850;
  text-align: center;
}

.soa-matrix-row > div {
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  border: 0;
  background: transparent;
  padding: 7px;
  text-align: left;
}

.soa-matrix-row > div strong,
.soa-matrix-row > div span {
  display: block;
}

.soa-matrix-row > div span {
  margin-top: 4px;
  color: var(--muted);
}

.soa-matrix-row > span.red { border-color: var(--red); color: var(--red); }
.soa-matrix-row > span.amber { border-color: var(--amber); color: var(--amber); }
.soa-matrix-row > span.blue { border-color: var(--blue); color: var(--blue); }
.soa-matrix-row > span.green { border-color: var(--green); color: var(--green); }
.soa-matrix-row > span.neutral { color: var(--muted); }

.soa-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.soa-legend span::before {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 7px;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
}

.soa-legend .red { color: var(--red); }
.soa-legend .amber { color: var(--amber); }
.soa-legend .blue { color: var(--blue); }
.soa-legend .green { color: var(--green); }

.soa-selected-references {
  display: grid;
  gap: 0;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.soa-selected-references a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 10px;
  color: var(--ink);
  font-size: 0.7rem;
}

.soa-selected-references a:last-child {
  border-bottom: 0;
}

.soa-selected-references code {
  color: var(--ink);
}

.soa-selected-references strong {
  color: var(--red);
  white-space: nowrap;
}

.reference-inspector-section h3 {
  font-size: 0.95rem;
}

.reference-inspector-section p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.soa-resolution-path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.soa-resolution-path li {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 800;
  text-align: center;
}

.soa-resolution-path span {
  display: grid;
  width: 24px;
  height: 24px;
  margin: 0 auto 7px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: var(--action-ink);
  font-family: var(--font-mono);
  font-weight: 900;
}

@media (max-width: 1240px) {
  .reference-console-health,
  .soa-confidence {
    grid-template-columns: 1fr;
  }

  .reference-console-body,
  .soa-reference-body {
    grid-template-columns: 1fr;
  }

  .reference-document-grid {
    min-height: 0;
  }
}

@media (max-width: 980px) {
  .reference-intro-grid,
  .soa-intro-strip {
    grid-template-columns: 1fr;
  }

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

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

  .reference-proof-lane:nth-child(2) {
    border-right: 0;
  }

  .reference-proof-lane:nth-child(n + 3) {
    border-top-width: 3px;
  }

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

  .soa-matrix {
    overflow-x: auto;
  }

  .soa-matrix-head,
  .soa-matrix-row {
    min-width: 720px;
  }
}

@media (max-width: 640px) {
  .workspace-evidence .topbar h1,
  .workspace-documents .topbar h1,
  .workspace-soa .topbar h1 {
    font-size: 2.55rem;
  }

  .reference-intro-card.starter {
    align-items: stretch;
    flex-direction: column;
  }

  .reference-intro-card.starter .reference-outline-button {
    width: 100%;
  }

  .reference-console-health,
  .reference-console-body,
  .soa-map-content {
    padding: 16px;
  }

  .reference-health-stats,
  .reference-health-stats.three,
  .soa-confidence-signals,
  .reference-document-grid,
  .evidence-lane-grid {
    grid-template-columns: 1fr;
  }

  .reference-health-stat {
    min-height: 0;
  }

  .reference-tabs {
    gap: 22px;
    padding: 0 16px;
  }

  .reference-proof-lane {
    border-right: 0;
  }

  .reference-document-card h3,
  .reference-document-card > p {
    min-height: 0;
  }

  .soa-confidence-signals article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .soa-intro-strip > div {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .reference-intro-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

/* July 2026 reference consoles: Controls and Control Checks */
.workspace-controls .page-direction,
.workspace-controls .page-actions-menu,
.workspace-control-tests .page-direction,
.workspace-control-tests .page-actions-menu {
  display: none;
}

.workspace-controls .topbar,
.workspace-control-tests .topbar {
  align-items: flex-start;
  margin-bottom: 20px;
}

.workspace-controls .topbar h1,
.workspace-control-tests .topbar h1 {
  margin-top: 14px;
  font-size: clamp(3rem, 5.2vw, 4.7rem);
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.control-intro-card,
.control-test-intro {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid color-mix(in srgb, var(--workspace-accent) 42%, var(--line));
  border-radius: 8px;
  background: rgba(31, 35, 44, 0.72);
  padding: 17px 20px;
}

.control-intro-card > div {
  display: grid;
  gap: 7px;
}

.control-intro-card strong {
  font-size: 0.95rem;
}

.control-intro-card .reference-primary-button,
.control-test-intro .reference-primary-button {
  flex: 0 0 auto;
  width: auto;
  min-width: 180px;
  margin-top: 0;
}

.control-console-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.5fr);
  gap: 30px;
  align-items: center;
  padding: 24px;
}

.control-console-heading h2,
.control-console-heading p {
  margin: 0;
}

.control-console-heading h2 {
  max-width: 770px;
  margin-top: 7px;
  font-size: clamp(1.7rem, 2.7vw, 2.5rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.control-console-heading > p {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.45;
}

.control-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 18px 24px;
}

.control-metric-grid article {
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(31, 35, 44, 0.68);
  padding: 14px;
}

.control-metric-grid span,
.control-metric-grid strong {
  display: block;
}

.control-metric-grid span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.control-metric-grid strong {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 2rem;
}

.control-metric-grid .red strong { color: var(--red); }
.control-metric-grid .amber strong { color: var(--amber); }
.control-metric-grid .green strong { color: var(--green); }

.control-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 14px;
  padding: 0 24px 24px;
}

.control-health-panel,
.control-state-panel,
.control-attention-panel,
.control-actions-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(8, 11, 16, 0.44);
  padding: 16px;
}

.control-health-panel h3,
.control-state-panel h3,
.control-attention-panel h3,
.control-actions-panel h3 {
  margin: 0;
  font-size: 0.98rem;
}

.control-health-bars {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.control-health-bars a {
  display: grid;
  grid-template-columns: minmax(120px, 0.6fr) minmax(160px, 1fr) minmax(110px, 0.45fr);
  gap: 12px;
  align-items: center;
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 850;
}

.control-health-bars i {
  height: 12px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--surface-soft);
}

.control-health-bars i b {
  display: block;
  width: 58%;
  height: 100%;
  border-radius: inherit;
  background: var(--amber);
}

.control-health-bars i.implemented b,
.control-health-bars i.approved b {
  width: 88%;
  background: var(--green);
}

.control-health-bars i.partially-implemented b,
.control-health-bars i.planned b {
  width: 52%;
  background: var(--blue);
}

.control-health-bars i.ineffective b,
.control-health-bars i.not-started b {
  width: 30%;
  background: var(--red);
}

.control-health-bars a > strong {
  color: var(--muted);
  font-size: 0.65rem;
  text-align: right;
}

.control-state-summary {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 14px;
}

.control-health-ring {
  display: grid;
  width: 116px;
  height: 116px;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--surface) 0 46%, transparent 48%),
    conic-gradient(var(--green) 0 48%, var(--blue) 48% 62%, var(--amber) 62% 82%, var(--red) 82% 100%);
}

.control-health-ring span,
.control-health-ring small {
  display: block;
  font-family: var(--font-mono);
  font-weight: 900;
}

.control-health-ring span {
  font-size: 1.5rem;
}

.control-health-ring small {
  color: var(--muted);
  font-size: 0.62rem;
}

.control-state-summary ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.control-state-summary li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.control-state-summary li::before {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--muted);
  content: "";
}

.control-state-summary li span {
  flex: 1;
}

.control-state-summary li.red::before { background: var(--red); }
.control-state-summary li.amber::before { background: var(--amber); }
.control-state-summary li.blue::before { background: var(--blue); }
.control-state-summary li.green::before { background: var(--green); }

.control-attention-list,
.control-actions-panel {
  display: grid;
  gap: 9px;
}

.control-attention-list {
  margin-top: 14px;
}

.control-attention-list a,
.control-actions-panel > a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(31, 35, 44, 0.64);
  padding: 10px;
}

.control-attention-list a > span,
.control-actions-panel a > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber);
}

.control-attention-list a.ineffective > span,
.control-attention-list a.not-started > span {
  background: var(--red);
}

.control-attention-list a.implemented > span {
  background: var(--green);
}

.control-actions-panel a > span.amber { background: var(--amber); }
.control-actions-panel a > span.blue { background: var(--blue); }

.control-attention-list p,
.control-actions-panel p {
  margin: 0;
}

.control-attention-list strong,
.control-attention-list small,
.control-actions-panel strong,
.control-actions-panel small {
  display: block;
}

.control-attention-list strong,
.control-actions-panel strong {
  color: var(--ink);
  font-size: 0.75rem;
}

.control-attention-list small,
.control-actions-panel small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
}

.control-attention-list b,
.control-actions-panel b {
  border: 1px solid color-mix(in srgb, var(--workspace-accent) 42%, var(--line));
  border-radius: 5px;
  padding: 6px 9px;
  color: var(--workspace-accent);
  font-size: 0.68rem;
}

.control-actions-panel {
  align-content: start;
}

.control-test-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr) auto;
  padding: 0;
}

.control-test-intro > div {
  min-height: 94px;
  padding: 19px;
}

.control-test-intro > div + div {
  border-left: 1px solid var(--line);
}

.control-test-intro p {
  margin: 7px 0 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.4;
}

.control-test-intro > .reference-primary-button {
  margin-right: 18px;
}

.control-test-health {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.7fr);
  gap: 28px;
  align-items: center;
  padding: 22px 24px 10px;
}

.control-test-health h2,
.control-test-health p {
  margin: 0;
}

.control-test-health h2 {
  margin-top: 7px;
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
  letter-spacing: -0.04em;
}

.control-test-health > div:last-child {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.control-test-health article {
  border-left: 1px solid var(--line);
  padding: 8px 14px;
}

.control-test-health article span,
.control-test-health article strong {
  display: block;
}

.control-test-health article span {
  min-height: 30px;
  color: var(--muted);
  font-size: 0.68rem;
}

.control-test-health article strong {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 1.65rem;
}

.control-test-health article.red strong { color: var(--red); }
.control-test-health article.amber strong { color: var(--amber); }
.control-test-health article.blue strong { color: var(--blue); }
.control-test-health article.green strong { color: var(--green); }

.control-test-body {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.55fr);
  gap: 14px;
  padding: 0 16px 18px;
}

.control-check-list,
.control-check-inspector {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(8, 11, 16, 0.4);
  padding: 16px;
}

.control-check-list > h3,
.control-check-inspector h3,
.control-check-inspector h4,
.control-check-inspector p {
  margin: 0;
}

.control-check-list > h3 {
  margin-bottom: 14px;
  font-size: 1rem;
}

.control-check-list > article {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--amber);
  border-radius: 7px;
  background: rgba(31, 35, 44, 0.64);
  padding: 16px;
}

.control-check-list > article.red {
  border-left-color: var(--red);
}

.control-check-list > article.selected {
  border-color: var(--workspace-accent);
  border-left-color: var(--red);
}

.control-check-list article > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.control-check-list article > header span {
  display: inline-block;
  border: 1px solid var(--red);
  border-radius: 4px;
  padding: 4px 7px;
  color: var(--red);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.control-check-list h4 {
  margin: 10px 0 0;
  font-size: 1rem;
}

.control-check-list article > p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.control-check-list article > dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 0;
}

.control-check-list dt,
.control-check-list dd {
  font-size: 0.68rem;
}

.control-check-list dt {
  color: var(--muted);
  font-weight: 850;
  text-transform: uppercase;
}

.control-check-list dd {
  margin: 5px 0 0;
  font-weight: 800;
}

.control-check-inspector > p:first-child {
  color: var(--muted);
  font-size: 0.78rem;
}

.control-check-inspector > h3 {
  margin-top: 4px;
  font-size: 1.28rem;
}

.control-check-tags {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.control-check-tags code {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 5px 8px;
}

.control-check-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.control-check-facts > div + div {
  border-left: 1px solid var(--line);
  padding-left: 10px;
}

.control-check-facts dt {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 850;
  text-transform: uppercase;
}

.control-check-facts dd {
  margin: 5px 0 0;
  font-size: 0.75rem;
  font-weight: 850;
}

.control-check-reason {
  margin-top: 14px;
}

.control-check-reason h4,
.control-check-next h4 {
  font-size: 0.9rem;
}

.control-check-reason p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.74rem;
}

.control-check-evidence {
  display: grid;
  gap: 4px;
  margin-top: 16px;
}

.control-check-evidence span {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 850;
  text-transform: uppercase;
}

.control-check-evidence a {
  font-size: 0.76rem;
}

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

.control-check-actions .reference-primary-button,
.control-check-actions .reference-outline-button {
  width: 100%;
  margin-top: 0;
}

.control-check-next {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.control-check-next ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.control-check-next li {
  color: var(--muted);
  font-size: 0.65rem;
  text-align: center;
}

.control-check-next li span {
  display: grid;
  width: 25px;
  height: 25px;
  margin: 0 auto 6px;
  place-items: center;
  border: 1px solid var(--muted);
  border-radius: 50%;
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 900;
}

@media (max-width: 1180px) {
  .control-console-heading,
  .control-test-health,
  .control-test-body {
    grid-template-columns: 1fr;
  }

  .control-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .control-test-intro {
    grid-template-columns: 1fr;
  }

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

  .control-test-intro > .reference-primary-button {
    width: calc(100% - 36px);
    margin: 0 18px 18px;
  }

  .control-metric-grid,
  .control-test-health > div:last-child {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .control-check-list article > dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .workspace-controls .topbar h1,
  .workspace-control-tests .topbar h1 {
    font-size: 2.55rem;
  }

  .control-intro-card {
    align-items: stretch;
    flex-direction: column;
  }

  .control-intro-card .reference-primary-button {
    width: 100%;
  }

  .control-console-heading,
  .control-metric-grid,
  .control-dashboard-grid,
  .control-test-health,
  .control-test-body {
    padding-right: 16px;
    padding-left: 16px;
  }

  .control-metric-grid,
  .control-test-health > div:last-child,
  .control-check-list article > dl,
  .control-check-facts,
  .control-check-actions {
    grid-template-columns: 1fr;
  }

  .control-health-bars a {
    grid-template-columns: 1fr;
  }

  .control-health-bars a > strong {
    text-align: left;
  }

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

  .control-check-list article > header {
    flex-direction: column;
  }

  .control-check-list article > header .reference-outline-button {
    width: 100%;
  }

  .control-check-facts > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-top: 8px;
    padding-left: 0;
  }
}

/* July 2026 reference console: Risk Reduction Plans */
.workspace-treatments .page-direction,
.workspace-treatments .page-actions-menu {
  display: none;
}

.workspace-treatments .topbar {
  align-items: flex-start;
  margin-bottom: 18px;
}

.workspace-treatments .topbar h1 {
  margin-top: 14px;
  font-size: clamp(2.6rem, 4.4vw, 4rem);
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.treatment-intro {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--workspace-accent);
  border-radius: 8px;
  background: rgba(8, 11, 16, 0.4);
  padding: 16px 20px;
}

.treatment-intro p {
  margin: 7px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.treatment-intro > a {
  flex: 0 0 auto;
  color: var(--workspace-accent);
  font-weight: 850;
}

.treatment-intro-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 14px;
}

.treatment-intro-actions > a:last-child {
  color: var(--workspace-accent);
  font-weight: 850;
}

.treatment-execution > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px 8px;
}

.treatment-execution > header h2,
.treatment-execution > header p {
  margin: 0;
}

.treatment-execution > header h2 {
  margin-top: 7px;
  font-size: clamp(1.45rem, 2.2vw, 2.05rem);
  letter-spacing: -0.035em;
}

.treatment-execution > header > div > p:last-child {
  margin-top: 6px;
  color: var(--muted);
}

.treatment-blocker-count {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-weight: 750;
}

.treatment-blocker-count i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--red);
}

.treatment-time-axis {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 110px 16px 350px;
  padding-top: 16px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  text-align: center;
  text-transform: uppercase;
}

.treatment-time-axis::before {
  position: absolute;
  top: 37px;
  right: 12%;
  left: 12%;
  height: 1px;
  background: var(--line);
  content: "";
}

.treatment-time-axis span {
  position: relative;
}

.treatment-time-axis span::after {
  display: block;
  width: 9px;
  height: 9px;
  margin: 7px auto 0;
  border-radius: 50%;
  background: var(--muted);
  content: "";
}

.treatment-roadmap-list {
  display: grid;
  gap: 12px;
  padding: 0 18px;
}

.treatment-roadmap-list > article {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) 130px minmax(460px, 1.9fr) 150px;
  gap: 16px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 11, 16, 0.4);
  padding: 16px;
}

.treatment-roadmap-list > article.selected {
  border-color: var(--workspace-accent);
}

.treatment-roadmap-risk {
  border-right: 1px solid var(--line);
  padding-right: 14px;
}

.treatment-roadmap-risk h3,
.treatment-roadmap-risk p {
  margin: 0;
}

.treatment-roadmap-risk h3 {
  font-size: 1rem;
  line-height: 1.3;
}

.treatment-roadmap-risk p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.76rem;
}

.treatment-score {
  display: grid;
  align-content: center;
  justify-items: center;
  border-right: 1px solid var(--line);
  text-align: center;
}

.treatment-score.target {
  border-right: 0;
  border-left: 1px solid var(--line);
}

.treatment-score > span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.treatment-score > strong {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 2.4rem;
  line-height: 1;
}

.treatment-score > b {
  display: inline-block;
  min-width: 70px;
  margin-top: 8px;
  border-radius: 5px;
  padding: 4px 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.66rem;
  text-transform: uppercase;
}

.treatment-score > b.red,
.treatment-score > b.amber,
.treatment-score > b.green {
  color: var(--action-ink);
}
.treatment-score > b.red { background: var(--red); }
.treatment-score > b.amber { background: var(--amber); }
.treatment-score > b.green { background: var(--green); }
.treatment-score.target .reference-primary-button { min-height: 34px; font-size: 0.7rem; }

.treatment-milestones {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  align-items: start;
  margin: 0;
  padding: 10px 0 0;
  list-style: none;
}

.treatment-milestones::before {
  position: absolute;
  top: 28px;
  right: 12%;
  left: 12%;
  height: 2px;
  background: var(--line);
  content: "";
}

.treatment-milestones li {
  position: relative;
  display: grid;
  justify-items: center;
  color: var(--muted);
  text-align: center;
}

.treatment-milestones i {
  z-index: 1;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid var(--muted);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-mono);
  font-style: normal;
  font-weight: 900;
}

.treatment-milestones strong {
  margin-top: 9px;
  color: var(--ink);
  font-size: 0.68rem;
  line-height: 1.25;
}

.treatment-milestones span {
  margin-top: 5px;
  font-size: 0.65rem;
}

.treatment-milestones li.complete i { border-color: var(--green); color: var(--green); }
.treatment-milestones li.complete span { color: var(--green); }
.treatment-milestones li.active i { border-color: var(--blue); box-shadow: 0 0 0 5px rgba(93, 169, 255, 0.14); color: var(--blue); }
.treatment-milestones li.active span { color: var(--blue); }
.treatment-milestones li.blocked i { border-color: var(--red); color: var(--red); }
.treatment-milestones li.blocked span { color: var(--red); }

.treatment-blocker {
  display: grid;
  grid-column: 3 / 4;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-top: -8px;
  border: 1px solid var(--red);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 0.7rem;
}

.treatment-blocker strong,
.treatment-blocker a {
  color: var(--red);
}

.treatment-next-decision {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 14px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 14px;
}

.treatment-next-decision > span {
  color: var(--workspace-accent);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.treatment-next-decision p {
  margin: 0;
  border-left: 1px solid var(--line);
  padding-left: 18px;
  color: var(--muted);
}

.treatment-next-decision .reference-primary-button {
  width: auto;
  min-width: 150px;
  margin: 0;
}

.treatment-bottom-nav {
  display: grid;
  grid-template-columns: repeat(4, auto) minmax(100px, 1fr);
  gap: 20px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 11, 16, 0.44);
  padding: 0 18px;
}

.treatment-bottom-nav a {
  min-height: 54px;
  border-bottom: 3px solid transparent;
  padding: 18px 4px 13px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.treatment-bottom-nav a.active {
  border-bottom-color: var(--workspace-accent);
  color: var(--workspace-accent);
}

.treatment-bottom-nav > span {
  justify-self: end;
  color: var(--muted);
  font-size: 0.75rem;
}

@media (max-width: 1240px) {
  .treatment-time-axis {
    display: none;
  }

  .treatment-roadmap-list {
    padding-top: 18px;
  }

  .treatment-roadmap-list > article {
    grid-template-columns: minmax(210px, 0.7fr) minmax(460px, 1.6fr) 140px;
  }

  .treatment-score.current {
    grid-column: 1;
    grid-row: 2;
    border-top: 1px solid var(--line);
    border-right: 0;
    padding-top: 10px;
  }

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

  .treatment-score.target {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .treatment-blocker {
    grid-column: 2 / 3;
  }
}

@media (max-width: 860px) {
  .treatment-execution > header,
  .treatment-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .treatment-intro-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .treatment-intro-actions .reference-outline-button {
    width: 100%;
  }

  .treatment-roadmap-list > article {
    grid-template-columns: 1fr;
  }

  .treatment-roadmap-risk,
  .treatment-score.current,
  .treatment-milestones,
  .treatment-score.target,
  .treatment-blocker {
    grid-column: 1;
    grid-row: auto;
  }

  .treatment-roadmap-risk,
  .treatment-score,
  .treatment-score.target {
    border: 0;
  }

  .treatment-score {
    justify-items: start;
    text-align: left;
  }

  .treatment-milestones {
    min-width: 0;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .treatment-milestones::before {
    display: none;
  }

  .treatment-milestones li {
    grid-template-columns: 38px minmax(0, 1fr);
    column-gap: 10px;
    justify-items: start;
    text-align: left;
  }

  .treatment-milestones i {
    grid-row: 1 / span 2;
  }

  .treatment-milestones strong,
  .treatment-milestones span {
    margin-top: 0;
  }

  .treatment-next-decision,
  .treatment-bottom-nav {
    grid-template-columns: 1fr;
  }

  .treatment-next-decision p {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-top: 10px;
    padding-left: 0;
  }

  .treatment-next-decision .reference-primary-button,
  .treatment-bottom-nav a {
    width: 100%;
  }

  .treatment-bottom-nav > span {
    justify-self: start;
    padding-bottom: 14px;
  }
}

/* PDR-009: shared visual-polish and presentation preference layer. */
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --content-max: 1440px;
  --decision-surface: color-mix(in srgb, var(--surface) 90%, var(--workspace-accent) 10%);
  --working-surface: var(--surface);
  --supporting-surface: color-mix(in srgb, var(--surface-soft) 78%, transparent);
}

.shell {
  transition: grid-template-columns 160ms ease;
}

.sidebar {
  z-index: 32;
  border-right: 1px solid var(--line);
}

.sidebar-header {
  position: relative;
}

.sidebar-mode-form {
  position: absolute;
  top: 58px;
  right: 0;
  margin: 0;
}

.sidebar-mode-toggle {
  display: grid;
  width: 32px;
  min-height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted);
  padding: 0;
  cursor: pointer;
}

.sidebar-mode-toggle span,
.sidebar-mode-toggle span::before {
  display: block;
  width: 13px;
  height: 13px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  content: "";
}

.sidebar-mode-toggle span::before {
  width: 4px;
  margin: -1.5px 0 0 -1.5px;
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
}

.nav-group-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-section-toggle {
  justify-content: flex-start;
}

.nav-section-label {
  flex: 1 1 auto;
}

.nav-section-items {
  margin-left: 30px;
}

.nav a {
  min-height: 36px;
  padding: 8px 10px;
  font-size: 0.84rem;
}

.shell.sidebar-compact {
  grid-template-columns: 80px minmax(0, 1fr);
}

.sidebar-compact .sidebar {
  overflow: visible;
  padding: 18px 11px;
}

.sidebar-compact .brand {
  justify-content: center;
}

.sidebar-compact .brand > span:last-child,
.sidebar-compact .nav-section-label,
.sidebar-compact .nav-section-chevron {
  display: none;
}

.sidebar-compact .sidebar-mode-form {
  position: static;
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.sidebar-compact .nav {
  margin-top: 18px;
}

.sidebar-compact .nav-section {
  position: relative;
}

.sidebar-compact .nav-section-toggle {
  justify-content: center;
  min-height: 46px;
  margin-top: 4px;
  padding: 10px;
}

.sidebar-compact .nav-group-icon {
  width: 21px;
  height: 21px;
}

.sidebar-compact .nav-section-items:not([hidden]) {
  position: absolute;
  z-index: 45;
  top: 0;
  left: calc(100% + 9px);
  display: grid;
  width: 250px;
  max-height: min(560px, calc(100vh - 40px));
  overflow-y: auto;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 8px;
}

.sidebar-compact .nav-section-items a {
  color: var(--ink);
}

.main {
  padding: var(--space-6) clamp(20px, 3vw, var(--space-12));
}

.main > :not(.topbar):not(.app-footer) {
  width: min(100%, var(--content-max));
  margin-right: auto;
  margin-left: auto;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(280px, 420px) auto;
  align-items: start;
  width: min(100%, var(--content-max));
  margin-right: auto;
  margin-bottom: var(--space-6);
  margin-left: auto;
}

.page-heading {
  width: 100%;
}

.topbar h1 {
  font-size: clamp(1.75rem, 2.4vw, 2.65rem);
  letter-spacing: -0.035em;
}

body[class*="workspace-"] .topbar h1 {
  margin-top: 0;
  font-size: clamp(1.75rem, 2.4vw, 2.65rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.workspace-evidence .page-direction,
.workspace-documents .page-direction,
.workspace-soa .page-direction {
  display: flex;
}

.page-direction {
  margin-top: var(--space-3);
  padding: var(--space-3) var(--space-4);
}

.global-search-form {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--field-bg);
  padding: 4px 7px 4px 12px;
}

.global-search-form:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 20%, transparent);
}

.global-search-form input {
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 5px 0;
  color: var(--ink);
  outline: 0;
}

.global-search-form kbd {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-soft);
  color: var(--muted);
  padding: 2px 7px;
  font-size: 0.72rem;
}

.search-icon {
  position: relative;
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  border: 1.5px solid var(--muted);
  border-radius: 50%;
}

.search-icon::after {
  position: absolute;
  right: -4px;
  bottom: -2px;
  width: 6px;
  height: 1.5px;
  background: var(--muted);
  content: "";
  transform: rotate(45deg);
}

.topbar-actions {
  padding-top: 2px;
}

.account-theme-form label {
  display: grid;
  gap: 5px;
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.account-theme-form select {
  width: 100%;
}

.search-page {
  max-width: 1000px;
}

.search-page-form {
  min-height: 56px;
  padding-left: 18px;
}

.search-page-form .button {
  min-height: 44px;
}

.search-result-count {
  margin: var(--space-6) 0 var(--space-3);
  color: var(--muted);
}

.global-search-results {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.global-search-results > li > a {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-4);
  min-height: 70px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--working-surface);
  padding: var(--space-3) var(--space-4);
  color: var(--ink);
}

.global-search-results > li > a:hover,
.global-search-results > li > a:focus-visible {
  border-color: color-mix(in srgb, var(--blue) 55%, var(--line));
  background: color-mix(in srgb, var(--surface) 94%, var(--blue) 6%);
  outline: 0;
}

.search-result-type {
  width: fit-content;
  border-radius: 999px;
  background: var(--surface-soft);
  padding: 4px 8px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.search-result-type.blue { color: var(--blue); }
.search-result-type.green,
.search-result-type.approved,
.search-result-type.accepted,
.search-result-type.current,
.search-result-type.complete { color: var(--green); }
.search-result-type.amber,
.search-result-type.requested,
.search-result-type.pending,
.search-result-type.blocked,
.search-result-type.high { color: var(--amber); }
.search-result-type.red,
.search-result-type.rejected,
.search-result-type.overdue,
.search-result-type.stale,
.search-result-type.critical { color: var(--red); }
.search-result-type.cyan { color: var(--teal); }

.search-result-copy {
  display: grid;
  gap: 3px;
}

.search-result-copy small,
.search-result-open {
  color: var(--muted);
}

.search-result-open {
  font-size: 0.76rem;
  font-weight: 800;
}

.preferences-layout {
  max-width: 1050px;
}

.preferences-form {
  display: grid;
  gap: var(--space-6);
}

.preference-group {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.preference-group legend {
  margin-bottom: var(--space-3);
  font-weight: 900;
}

.choice-card-grid,
.preference-grid {
  display: grid;
  gap: var(--space-3);
}

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

.choice-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  min-height: 92px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--supporting-surface);
  padding: var(--space-4);
  color: var(--ink);
  cursor: pointer;
}

.choice-card:has(input:checked) {
  border-color: var(--blue);
  background: color-mix(in srgb, var(--surface) 90%, var(--blue) 10%);
}

.choice-card span {
  display: grid;
  gap: 5px;
}

.choice-card small {
  color: var(--muted);
  font-weight: 500;
}

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

.preference-safety-note {
  border-left: 3px solid var(--amber);
  background: color-mix(in srgb, var(--surface) 94%, var(--amber) 6%);
  padding: var(--space-3) var(--space-4);
}

.preference-safety-note p {
  margin: 5px 0 0;
  color: var(--muted);
}

.panel,
.advanced-register,
.reference-console,
.today-orchestration {
  border-radius: var(--radius-md);
}

.today-orchestration {
  border-top-width: 1px;
  background: var(--decision-surface);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.orchestration-score > strong {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.supporting-priority-list {
  counter-reset: supporting-priority 1;
}

.reference-proof-lane li.selected {
  border-color: color-mix(in srgb, var(--blue) 55%, var(--line));
  background: color-mix(in srgb, var(--surface) 94%, var(--blue) 6%);
  box-shadow: none;
}

.evidence-definition-strip {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  border-left: 3px solid var(--blue);
  background: var(--supporting-surface);
  padding: var(--space-3) var(--space-4);
}

.evidence-definition-strip span {
  color: var(--muted);
}

.density-compact .panel,
.density-compact .orchestration-current,
.density-compact .orchestration-action,
.density-compact .workspace-body,
.density-compact .reference-console-health,
.density-compact .reference-console-body {
  padding: var(--space-4);
}

.density-compact .section-break {
  margin-top: var(--space-4);
}

.density-compact .responsive-register-table th,
.density-compact .responsive-register-table td {
  padding-top: 8px;
  padding-bottom: 8px;
}

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

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

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

  .topbar-search {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 1080px) {
  .sidebar-compact .sidebar {
    width: min(340px, calc(100vw - 32px));
    overflow-y: auto;
    padding: 22px 18px;
  }

  .sidebar-compact .brand {
    justify-content: flex-start;
  }

  .sidebar-compact .brand > span:last-child,
  .sidebar-compact .nav-section-label,
  .sidebar-compact .nav-section-chevron {
    display: block;
  }

  .sidebar-compact .sidebar-mode-form {
    display: none;
  }

  .sidebar-compact .nav-section-toggle {
    justify-content: flex-start;
  }

  .sidebar-compact .nav-section-items:not([hidden]) {
    position: static;
    width: auto;
    max-height: none;
    overflow: visible;
    margin-left: 30px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .sidebar-mode-form {
    display: none;
  }
}

@media (max-width: 720px) {
  .main {
    padding: var(--space-4);
  }

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

  .account-summary-copy {
    display: none;
  }

  .choice-card-grid.three,
  .preference-grid {
    grid-template-columns: 1fr;
  }

  .global-search-results > li > a {
    grid-template-columns: 1fr auto;
  }

  .search-result-type {
    grid-column: 1 / -1;
  }
}

/* PDR-010: Quiet Authority experience and visual-system reset. */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

:root {
  --bg: #121217;
  --surface: #1c1c24;
  --surface-soft: #24242e;
  --surface-raised: #2c2c38;
  --ink: #f3f2f7;
  --muted: #b7b5c2;
  --line: rgba(229, 227, 238, 0.12);
  --blue: #8b87ff;
  --teal: #8b87ff;
  --teal-dark: #7772ec;
  --green: #63c79d;
  --amber: #d9ad66;
  --red: #df7182;
  --violet: #a990d8;
  --action-ink: #ffffff;
  --nav-bg: #15151b;
  --field-bg: #18181f;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

html[data-theme="light"] {
  --bg: #f7f5f2;
  --surface: #fffefd;
  --surface-soft: #efede9;
  --surface-raised: #e6e3df;
  --ink: #24232a;
  --muted: #65616d;
  --line: rgba(36, 35, 42, 0.13);
  --blue: #5149c6;
  --teal: #5149c6;
  --teal-dark: #433bad;
  --green: #257d5b;
  --amber: #8a6118;
  --red: #a53a4d;
  --violet: #7153a5;
  --action-ink: #ffffff;
  --nav-bg: #f1efeb;
  --field-bg: #fffefd;
  --shadow: 0 18px 44px rgba(50, 45, 60, 0.09);
}

body {
  font-family: "Segoe UI Variable Text", Inter, "Public Sans", "Source Sans 3", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  font-size: 15.5px;
  line-height: 1.55;
}

body::before {
  display: none;
}

.sidebar {
  border-right-color: color-mix(in srgb, var(--line) 72%, transparent);
  background: var(--nav-bg);
}

.brand-mark {
  border-radius: 12px;
  background: var(--blue);
  color: var(--action-ink);
}

.nav-section-items a.active {
  border-color: color-mix(in srgb, var(--blue) 28%, transparent);
  background: color-mix(in srgb, var(--blue) 11%, transparent);
  color: var(--ink);
}

.main {
  padding-top: 32px;
}

.topbar {
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 360px) auto;
  gap: 22px;
}

.topbar h1,
body[class*="workspace-"] .topbar h1 {
  font-size: clamp(2rem, 3vw, 2.65rem);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.topbar-search {
  align-self: center;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.topbar-search:focus-within {
  transform: translateY(-1px);
}

.topbar-actions {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 8px;
  padding: 0;
}

.topbar-icon-link,
.theme-control > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
}

.theme-control {
  position: relative;
}

.theme-control > summary {
  gap: 7px;
  padding: 0 10px;
  list-style: none;
}

.theme-control > summary::-webkit-details-marker {
  display: none;
}

.theme-control > summary:hover,
.theme-control > summary:focus-visible,
.topbar-icon-link:hover,
.topbar-icon-link:focus-visible {
  border-color: var(--line);
  background: var(--surface-soft);
  color: var(--ink);
}

.theme-control svg,
.topbar-icon-link svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.theme-control > summary span {
  font-size: 0.78rem;
  font-weight: 700;
}

.theme-control-panel {
  position: absolute;
  z-index: 25;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  min-width: 190px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 8px;
}

.theme-control-panel p {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 8px 10px 10px;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 750;
}

.theme-control-panel p small {
  color: var(--muted);
  font-weight: 550;
}

.theme-control-panel form {
  margin: 0;
}

.theme-control-panel button {
  width: 100%;
  min-height: 38px;
  border: 0;
  background: transparent;
  padding: 7px 10px;
  color: var(--ink);
  text-align: left;
}

.theme-control-panel button:hover,
.theme-control-panel button:focus-visible,
.theme-control-panel button[aria-current="true"] {
  background: color-mix(in srgb, var(--blue) 12%, transparent);
}

.theme-control-panel button[aria-current="true"]::after {
  float: right;
  color: var(--blue);
  content: "✓";
}

button,
.button,
.toolbar-action,
input,
select,
textarea {
  border-radius: 10px;
}

button,
.button {
  min-height: 42px;
}

.panel,
.advanced-register,
.reference-console,
.today-orchestration {
  border-color: color-mix(in srgb, var(--line) 88%, transparent);
  border-radius: 14px;
  box-shadow: none;
}

.panel h2,
.panel-header h2 {
  font-size: clamp(1.18rem, 1.8vw, 1.45rem);
  font-weight: 650;
  letter-spacing: -0.018em;
}

.command-palette {
  width: min(680px, calc(100vw - 28px));
  max-height: min(720px, calc(100vh - 80px));
  margin: 9vh auto auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: transparent;
  color: var(--ink);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
  padding: 0;
}

.command-palette::backdrop {
  background: rgba(10, 10, 16, 0.58);
  backdrop-filter: blur(5px);
}

.command-palette-shell {
  overflow: hidden;
  border-radius: inherit;
  background: var(--surface);
}

.command-palette-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 12px;
}

.command-palette-header form {
  display: flex;
  align-items: center;
  gap: 12px;
}

.command-palette-header input {
  width: 100%;
  min-height: 46px;
  border: 0;
  background: transparent;
  padding: 8px 0;
  color: var(--ink);
  font-size: 1.05rem;
  outline: 0;
}

.command-close {
  min-height: 32px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  padding: 4px 9px;
  color: var(--muted);
  font-size: 0.73rem;
}

.command-palette-body {
  max-height: min(580px, calc(100vh - 190px));
  overflow-y: auto;
  padding: 18px;
}

.command-palette-body > h2 {
  margin: 0 0 18px;
  font-size: 1.25rem;
}

.command-palette-body section + section {
  margin-top: 20px;
}

.command-palette-body h3 {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-transform: none;
}

.command-palette-body section > p {
  margin: 0;
  color: var(--muted);
}

.command-list {
  display: grid;
  gap: 3px;
}

.command-list a {
  display: grid;
  gap: 2px;
  border-radius: 10px;
  padding: 9px 11px;
  color: var(--ink);
}

.command-list a:hover,
.command-list a:focus-visible {
  background: color-mix(in srgb, var(--blue) 11%, transparent);
}

.command-list small {
  color: var(--muted);
}

.feedback-toast {
  position: fixed;
  z-index: 40;
  top: 20px;
  right: 24px;
  width: min(420px, calc(100vw - 32px)) !important;
  border: 1px solid color-mix(in srgb, var(--green) 35%, var(--line));
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 13px 16px;
  transition: opacity 180ms ease, transform 180ms ease;
}

.feedback-toast.is-leaving {
  opacity: 0;
  transform: translateY(-8px);
}

.experience-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  padding: 0 2px;
}

.experience-intro h2 {
  margin: 4px 0 7px;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
}

.experience-intro p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.autosave-status {
  flex: 0 0 auto;
  font-size: 0.8rem;
}

.experience-stack {
  display: grid;
  gap: 20px;
}

.preference-section {
  padding: clamp(20px, 3vw, 30px);
}

.preference-group {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.preference-group legend {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 720;
}

.field-help {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 4px;
}

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

.segmented-control label {
  margin: 0;
  cursor: pointer;
}

.segmented-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.segmented-control span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.segmented-control input:checked + span {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
}

.segmented-control input:focus-visible + span {
  outline: 3px solid color-mix(in srgb, var(--blue) 34%, transparent);
  outline-offset: 1px;
}

.preferences-form.is-saving {
  opacity: 0.82;
}

.advanced-view {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.advanced-view > summary {
  cursor: pointer;
  padding: 16px 18px;
  color: var(--ink);
  font-weight: 700;
}

.advanced-view[open] > summary {
  border-bottom: 1px solid var(--line);
}

.advanced-view-body {
  padding: 20px;
}

.experience-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin: 0 0 20px;
  border-bottom: 1px solid var(--line);
  padding: 0 0 10px;
}

.experience-tabs a {
  flex: 0 0 auto;
  border-radius: 9px;
  padding: 8px 12px;
  color: var(--muted);
  font-weight: 700;
}

.experience-tabs a.active {
  background: color-mix(in srgb, var(--blue) 12%, transparent);
  color: var(--ink);
}

.assurance-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  border-left: 3px solid var(--green);
  border-radius: 10px;
  background: color-mix(in srgb, var(--green) 7%, var(--surface));
  padding: 14px 16px;
}

.assurance-strip p {
  margin: 0;
  color: var(--muted);
}

.assurance-strip strong {
  color: var(--ink);
}

.access-overview,
.ai-overview-grid,
.notification-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.access-primary-card,
.access-framework-card,
.ai-overview-grid > .panel,
.notification-overview > .panel {
  min-height: 100%;
}

.access-pack {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.access-pack p,
.capability-list p,
.automated-evidence-source-cards p,
.integration-recipe-cards p,
.notification-activity-list p {
  margin: 4px 0 0;
  color: var(--muted);
}

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

.capability-list article,
.notification-activity-list article,
.automated-evidence-source-cards article {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.capability-list article:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.allowance-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}

.allowance-list > div {
  border-left: 2px solid color-mix(in srgb, var(--blue) 45%, var(--line));
  padding-left: 13px;
}

.allowance-list dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.allowance-list dd {
  margin: 5px 0 0;
  color: var(--ink);
  font-weight: 700;
}

.activity-timeline {
  display: grid;
  gap: 0;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.activity-timeline > li {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 18px;
}

.activity-timeline > li:not(:last-child)::before {
  position: absolute;
  top: 16px;
  bottom: 0;
  left: 6px;
  width: 1px;
  background: var(--line);
  content: "";
}

.activity-marker {
  position: relative;
  z-index: 1;
  width: 13px;
  height: 13px;
  margin-top: 5px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 1px var(--line);
}

.activity-marker.warning,
.activity-marker.rejected {
  background: var(--amber);
}

.activity-timeline article {
  border-bottom: 1px solid var(--line);
  padding: 0 0 16px;
}

.activity-timeline article header,
.review-record > header,
.integration-recipe-cards article > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.activity-timeline article header > div,
.review-record > header > div {
  display: grid;
  gap: 3px;
}

.activity-timeline article small,
.review-record small {
  color: var(--muted);
}

.activity-timeline article p {
  margin: 8px 0;
  color: var(--muted);
}

.governed-notification-list,
.capability-checklist {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.governed-notification-list li,
.capability-checklist li {
  display: grid;
  gap: 3px;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}

.governed-notification-list li:last-child,
.capability-checklist li:last-child {
  border-bottom: 0;
}

.governed-notification-list small {
  color: var(--muted);
}

.capability-checklist li {
  grid-template-columns: minmax(0, 1fr) auto;
}

.capability-checklist strong {
  color: var(--muted);
  font-size: 0.78rem;
}

.capability-checklist .enabled strong {
  color: var(--green);
}

.notification-activity-list {
  display: grid;
}

.nested-advanced {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 12px;
}

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

.review-stepper {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.review-stepper li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 7px;
  color: var(--muted);
  text-align: center;
  font-size: 0.76rem;
}

.review-stepper li:not(:last-child)::after {
  position: absolute;
  z-index: -1;
  top: 15px;
  left: 55%;
  width: 90%;
  height: 1px;
  background: var(--line);
  content: "";
}

.review-stepper span,
.review-step-heading > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  font-weight: 750;
}

.review-stepper .current span,
.review-step-heading > span {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--action-ink);
}

.management-decision-workspace {
  display: grid;
  gap: 20px;
}

.review-workspace-section {
  padding: clamp(22px, 3vw, 32px);
}

.review-step-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  margin-bottom: 22px;
}

.review-step-heading h2 {
  margin: 2px 0 4px;
}

.review-step-heading p:last-child {
  margin: 0;
  color: var(--muted);
}

.review-briefing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 0 0 22px;
}

.review-briefing-grid > div {
  border-left: 2px solid color-mix(in srgb, var(--violet) 52%, var(--line));
  padding: 9px 12px;
}

.review-briefing-grid dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.review-briefing-grid dd {
  margin: 3px 0 0;
  font-size: 1.35rem;
  font-weight: 650;
}

.review-finalise {
  border-color: color-mix(in srgb, var(--blue) 30%, var(--line));
  background: color-mix(in srgb, var(--blue) 5%, var(--surface));
}

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

.review-record {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 16px;
}

.review-record-outcome {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.review-record-outcome > div {
  border-radius: 10px;
  background: var(--surface);
  padding: 12px;
}

.review-record-outcome span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
}

.review-record-outcome p {
  margin: 5px 0 0;
  white-space: pre-line;
}

.automated-evidence-source-cards,
.integration-recipe-cards {
  display: grid;
  gap: 12px;
}

.automated-evidence-source-cards article > div:last-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.integration-recipe-cards {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.integration-recipe-cards article {
  display: grid;
  align-content: start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  padding: 18px;
}

.integration-recipe-cards dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.integration-recipe-cards dl > div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
}

.integration-recipe-cards dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.integration-recipe-cards dd {
  margin: 0;
  font-size: 0.82rem;
}

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

  .topbar-search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .main {
    padding: 18px 16px;
  }

  .topbar {
    gap: 14px;
  }

  .page-heading {
    grid-row: 1;
    grid-column: 1 / -1;
  }

  .topbar-search {
    grid-row: 2;
    grid-column: 1;
  }

  .topbar-actions {
    grid-row: 2;
    grid-column: 2;
  }

  .theme-control > summary span {
    display: none;
  }

  .experience-intro,
  .assurance-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .segmented-control.three {
    grid-template-columns: 1fr;
  }

  .command-palette {
    margin-top: 16px;
  }

  .access-overview,
  .ai-overview-grid,
  .notification-overview,
  .capability-list,
  .review-record-outcome {
    grid-template-columns: 1fr;
  }

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

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

  .review-stepper strong {
    display: none;
  }
}

/* 30 July 2026 editorial refinement: quiet hierarchy, tonal themes, and
   progressive disclosure without changing authoritative actions or records. */
:root {
  --bg: #141318;
  --surface: #1d1c22;
  --surface-soft: #242329;
  --surface-raised: #2b2931;
  --ink: #f1eff3;
  --muted: #aaa6b0;
  --line: rgba(234, 230, 238, 0.1);
  --blue: #7772dc;
  --teal: #8a86df;
  --teal-dark: #6d68cc;
  --green: #69bc96;
  --amber: #d0a35f;
  --red: #d66f7f;
  --violet: #9985bc;
  --nav-bg: #17161b;
  --field-bg: #1a191e;
  --shadow: 0 18px 54px rgba(0, 0, 0, 0.2);
}

html[data-theme="light"] {
  --bg: #faf9f7;
  --surface: #ffffff;
  --surface-soft: #f2f0ed;
  --surface-raised: #eae7e3;
  --ink: #29272d;
  --muted: #706b75;
  --line: rgba(41, 39, 45, 0.11);
  --blue: #5750b8;
  --teal: #6962c4;
  --teal-dark: #4d46a8;
  --green: #377b5e;
  --amber: #8b641e;
  --red: #a64555;
  --violet: #735c98;
  --nav-bg: #f4f2ef;
  --field-bg: #ffffff;
  --shadow: 0 16px 44px rgba(47, 42, 54, 0.07);
}

body.workspace-tasks,
body.workspace-calendar {
  --workspace-accent: var(--blue);
  --workspace-glow: color-mix(in srgb, var(--blue) 8%, transparent);
}

body {
  line-height: 1.62;
}

h1,
h2,
h3,
h4,
strong,
b {
  font-weight: 620;
}

.eyebrow,
.workspace-screen-kicker,
.task-intro-card span,
.task-console-heading > p {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 620;
  letter-spacing: 0.015em;
  text-transform: none;
}

.main {
  padding-top: 38px;
}

.topbar {
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 360px) auto;
  margin-bottom: 32px;
}

.topbar h1,
body[class*="workspace-"] .topbar h1,
.workspace-tasks .topbar h1 {
  margin-top: 0;
  font-size: clamp(2rem, 3vw, 2.65rem);
  font-weight: 590;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.workspace-tasks .page-direction {
  display: flex;
}

.page-direction {
  border: 0;
  background: transparent;
  padding: 8px 0 0;
}

.page-direction > div > span {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.page-purpose,
.section-purpose,
.detail-note {
  color: var(--muted);
  font-weight: 430;
}

.section-break {
  margin-top: clamp(28px, 3.6vw, 44px);
}

.panel,
.reference-console {
  border-color: color-mix(in srgb, var(--line) 72%, transparent);
  background: var(--surface);
}

.panel h2,
.panel-header h2 {
  font-weight: 590;
}

button,
.button,
.toolbar-action,
.small-button,
.quiet-link {
  font-weight: 620;
}

.advanced-register,
.advanced-register.screen-register,
.start-here-details,
.calendar-support {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.advanced-register > summary,
.advanced-register.screen-register > summary,
.start-here-details > summary.panel-header,
.calendar-support > summary {
  padding: 16px 2px;
}

.advanced-register > summary span,
.advanced-register > summary strong,
.advanced-register > summary small {
  font-weight: 560;
}

.advanced-register[open] > summary,
.start-here-details[open] > summary.panel-header,
.calendar-support[open] > summary {
  border-bottom-color: color-mix(in srgb, var(--line) 70%, transparent);
}

.app-footer {
  width: min(100%, var(--content-max));
  margin: 54px auto 0;
  border-top-color: color-mix(in srgb, var(--line) 65%, transparent);
  padding: 18px 0 4px;
  opacity: 0.72;
}

.app-footer p,
.footer-links a {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 480;
}

.footer-links {
  gap: 16px;
}

/* Today: one story, one blocker, one dominant action. */
.today-orchestration {
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  border: 0;
  border-top: 0;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.today-orchestration.red,
.today-orchestration.amber {
  border-top: 0;
  background: var(--surface);
}

.orchestration-current,
.orchestration-action {
  padding: clamp(28px, 4vw, 48px);
}

.orchestration-current {
  border-right-color: color-mix(in srgb, var(--line) 74%, transparent);
  background: color-mix(in srgb, var(--surface-soft) 44%, var(--surface));
}

.orchestration-heading {
  display: grid;
  gap: 18px;
}

.orchestration-score {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 7px;
}

.orchestration-score > strong {
  font-size: clamp(1.9rem, 3vw, 2.55rem);
  font-weight: 560;
  letter-spacing: -0.04em;
}

.orchestration-score > span {
  color: var(--muted);
  font-size: 0.9rem;
}

.today-orchestration progress {
  height: 5px;
  margin: 20px 0 26px;
}

.current-blocker {
  border-left-width: 2px;
  border-radius: 0;
  background: transparent;
  padding: 4px 0 4px 16px;
}

.current-blocker > span,
.orchestration-reason > span {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.current-blocker > strong {
  margin-top: 8px;
  font-size: 1.05rem;
}

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

.orchestration-action {
  justify-content: center;
}

.orchestration-action h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.75rem);
  font-weight: 570;
  letter-spacing: -0.035em;
}

.orchestration-reason {
  border-top-color: color-mix(in srgb, var(--line) 70%, transparent);
}

.orchestration-action .button {
  min-height: 48px;
  padding-right: 24px;
  padding-left: 24px;
}

.supporting-priority-list {
  gap: 0;
}

.supporting-priority-list > li {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-left: 0;
  border-radius: 0;
  background: transparent;
  padding: 17px 2px;
}

.priority-order {
  border: 0;
  background: var(--surface-soft);
  font-weight: 600;
}

.what-happens-next {
  border: 0;
  border-left: 2px solid color-mix(in srgb, var(--blue) 55%, var(--line));
  border-radius: 0;
  background: transparent;
  padding: 8px 0 8px 18px;
}

.next-sequence-mark {
  font-size: 1.2rem;
  letter-spacing: 0;
}

/* Start Here: current work first; detail and catalogues stay available. */
.start-here-overview {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0 2px 20px;
}

.start-here-overview h2,
.start-here-current-step h2 {
  font-weight: 580;
}

.start-here-progress strong {
  font-size: 1.4rem;
  font-weight: 540;
}

.start-here-progress progress {
  height: 5px;
}

.start-here-current-step,
.start-here-current-step.amber,
.start-here-current-step.complete {
  margin-top: 0;
  border: 0;
  border-left: 2px solid var(--blue);
  border-radius: 0;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 40px);
}

.start-here-current-step.amber {
  border-left-color: var(--amber);
}

.start-here-current-step.complete {
  border-left-color: var(--green);
}

.current-step-number {
  background: color-mix(in srgb, var(--blue) 12%, transparent);
  font-weight: 620;
}

.why-this-matters {
  border-left-width: 2px;
  background: transparent;
  padding-top: 4px;
  padding-bottom: 4px;
}

.start-here-step-lists {
  grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1.38fr);
  gap: 24px;
  align-items: start;
}

.start-here-step-list {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.start-here-step-list > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
}

.start-here-step-list > summary::-webkit-details-marker {
  display: none;
}

.start-here-step-list > summary strong {
  font-weight: 560;
}

.onboarding-roadmap {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}

.onboarding-roadmap h2 {
  margin: 4px 0 14px;
  font-size: 1.35rem;
  font-weight: 580;
}

.entitlement-summary {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.entitlement-review,
.setup-catalogue {
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.entitlement-review > summary,
.setup-catalogue > summary {
  padding: 14px 0;
  color: var(--blue);
  font-weight: 620;
  cursor: pointer;
}

/* Task administration: neutral operational console, quieter recurring rules. */
.task-reference-screen {
  gap: 28px;
}

.task-intro-grid {
  grid-template-columns: 1fr;
  gap: 24px;
}

.task-intro-card,
.task-intro-card.queue,
html[data-theme="light"] .task-intro-card,
html[data-theme="light"] .task-intro-card.queue {
  min-height: 88px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 8px 0 8px 20px;
}

.task-intro-card p,
.task-intro-card.queue p {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 480;
  line-height: 1.5;
}

.task-intro-card.queue {
  max-width: 860px;
}

.task-outline-button {
  border-color: color-mix(in srgb, var(--blue) 42%, var(--line));
  background: transparent;
  color: var(--blue);
  font-weight: 620;
}

.task-console,
html[data-theme="light"] .task-console {
  border-color: color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.task-console-heading h2 {
  font-weight: 570;
}

.task-health-stats {
  gap: 2px;
}

.task-health-stats article,
html[data-theme="light"] .task-health-stats article {
  min-height: 112px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 8px 14px;
}

.task-health-stats span,
.task-health-stats p {
  font-weight: 480;
}

.task-health-stats strong {
  font-size: 1.2rem;
  font-weight: 560;
}

.task-console-tabs a {
  font-weight: 560;
}

.task-admin-panel,
.task-rules-panel,
html[data-theme="light"] .task-admin-panel,
html[data-theme="light"] .task-rules-panel {
  border-color: color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-soft) 56%, var(--surface));
}

.task-admin-panel small,
.task-rule-copy small {
  font-weight: 450;
}

.task-rule-card,
html[data-theme="light"] .task-rule-card {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 13px 2px;
}

.task-rule-interval {
  min-height: 42px;
  border-color: var(--line);
  color: var(--muted);
  font-weight: 560;
}

.task-rule-status,
.task-rule-action {
  font-weight: 560;
}

/* Calendar: the grid recedes and scheduled work carries the signal. */
.calendar-summary-band {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.calendar-summary-band .workspace-screen-header {
  gap: 28px;
  background: transparent;
  padding: 10px 0 20px;
}

.calendar-summary-band .workspace-screen-header h2 {
  max-width: 760px;
  font-size: clamp(1.75rem, 2.7vw, 2.35rem);
  font-weight: 570;
}

.calendar-summary-band .workspace-action-bar {
  border-top: 1px solid var(--line);
  background: transparent;
  padding: 16px 0;
}

.calendar-summary-band .workspace-stat {
  min-height: 82px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  padding: 8px 14px;
}

.calendar-summary-band .workspace-stat strong {
  font-weight: 540;
}

.calendar-workspace {
  margin-top: 28px;
}

.calendar-toolbar {
  margin-bottom: 16px;
}

.calendar-toolbar h2 {
  font-size: 1.35rem;
  font-weight: 560;
}

.calendar-nav-arrow {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  font-size: 1.1rem;
}

.calendar-nav-arrow:hover,
.calendar-nav-arrow:focus-visible {
  background: var(--surface-soft);
  color: var(--ink);
}

.calendar-grid-shell {
  border-color: color-mix(in srgb, var(--line) 65%, transparent);
  border-radius: 14px;
}

.calendar-weekday-row {
  background: transparent;
}

.calendar-weekday-row span {
  font-family: inherit;
  font-weight: 540;
  letter-spacing: 0;
  text-transform: none;
}

.calendar-day {
  border-right-color: color-mix(in srgb, var(--line) 65%, transparent);
  border-bottom-color: color-mix(in srgb, var(--line) 65%, transparent);
  padding: 10px;
}

.calendar-day.outside-period,
html[data-theme="light"] .calendar-day.outside-period {
  background: color-mix(in srgb, var(--surface-soft) 34%, var(--surface));
  opacity: 0.52;
}

.calendar-day.selected {
  background: color-mix(in srgb, var(--blue) 7%, var(--surface));
  box-shadow: none;
}

.calendar-day.selected header > a span,
.calendar-day.today header > a span {
  display: inline-grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
}

.calendar-day.selected header > a span {
  background: color-mix(in srgb, var(--blue) 18%, transparent);
  color: var(--ink);
}

.calendar-day.today header > a span {
  background: var(--blue);
  color: var(--action-ink);
}

.calendar-day header > a {
  font-weight: 560;
}

.calendar-event {
  border-left: 2px solid var(--blue);
  border-radius: 0;
  background: transparent;
  padding: 3px 4px 3px 7px;
}

.calendar-event.red { border-left-color: var(--red); }
.calendar-event.amber { border-left-color: var(--amber); }
.calendar-event.green { border-left-color: var(--green); }

.calendar-event:hover,
.calendar-event:focus-visible {
  background: var(--surface-soft);
}

.calendar-event-dot {
  display: none;
}

.selected-date-panel {
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 16px 0 16px 22px;
}

.calendar-empty-day {
  margin: 4px 0 0;
  font-size: 1rem;
  font-weight: 440;
}

.calendar-agenda-item {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.calendar-support {
  margin-top: 38px;
}

/* Personal work keeps ownership visible without a wall of cards. */
.my-work-command {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0 0 24px;
}

.my-work-summary > div {
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.my-work-list > li {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-left: 2px solid var(--blue);
  border-radius: 0;
  background: transparent;
}

@media (max-width: 900px) {
  .today-orchestration,
  .task-intro-grid,
  .start-here-step-lists {
    grid-template-columns: 1fr;
  }

  .orchestration-current {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .onboarding-roadmap {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 720px) {
  .main {
    padding-top: 22px;
  }

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

  .orchestration-current,
  .orchestration-action,
  .start-here-current-step,
  .start-here-current-step.complete {
    padding: 24px 20px;
  }

  .orchestration-facts,
  .orchestration-action-facts {
    grid-template-columns: 1fr;
  }

  .task-console-health,
  .task-console-body {
    padding: 20px 16px;
  }

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

  .app-footer {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

/* 30 July 2026 experience supplement: one compositional spine, restrained
   semantics, module-specific work surfaces, and honest progressive disclosure. */
:root {
  --content-max: 1320px;
  --blue: #7772dc;
  --green: #69bc96;
  --amber: #d0a35f;
  --red: #d66f7f;
}

html[data-theme="light"] {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-soft: #f5f5f7;
  --surface-raised: #ececef;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(29, 29, 31, 0.12);
  --blue: #5b5ceb;
  --teal: #5b5ceb;
  --teal-dark: #494ad0;
  --green: #2f855a;
  --amber: #b26a00;
  --red: #c43d4b;
  --nav-bg: #f5f5f7;
}

.main {
  padding-top: 30px;
}

.topbar {
  align-items: start;
  grid-template-columns: minmax(340px, 1fr) minmax(280px, 350px) auto;
  margin-bottom: 30px;
}

.page-heading .eyebrow {
  margin-bottom: 7px;
}

.topbar h1,
body[class*="workspace-"] .topbar h1 {
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 580;
  letter-spacing: -0.042em;
}

.page-direction {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 8px;
  border: 0;
  background: transparent;
  padding: 0;
}

html[data-theme="light"] .page-direction {
  border: 0;
  background: transparent;
}

.page-direction .page-purpose {
  max-width: 760px;
  margin: 0;
  font-size: 0.92rem;
}

.page-direction.has-primary-action {
  align-items: flex-start;
  flex-direction: column;
  gap: 14px;
}

.page-primary-action {
  flex: 0 0 auto;
}

.panel,
.reference-console,
.workspace-screen,
.experience-intro {
  border-color: var(--line);
  box-shadow: none;
}

.workspace-screen,
.reference-screen,
.experience-intro {
  background: transparent;
}

.workspace-screen-header {
  align-items: end;
  padding: 0 0 22px;
}

.workspace-screen-header h2,
.experience-intro h2,
.readiness-mission-header h2 {
  max-width: 780px;
  margin: 4px 0 0;
  font-size: clamp(1.7rem, 2.8vw, 2.45rem);
  font-weight: 570;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.workspace-screen-header p:last-child,
.experience-intro > div > p:last-child,
.readiness-mission-header > div > p:last-child {
  max-width: 730px;
  margin: 9px 0 0;
  color: var(--muted);
}

.workspace-record-count,
.workspace-compact-signals {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.workspace-compact-signals {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
}

.workspace-compact-signals span {
  white-space: nowrap;
}

.workspace-compact-signals strong {
  color: var(--ink);
}

.workspace-detail-grid {
  gap: 22px;
}

.workspace-panel,
.workspace-passport {
  border-color: var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: none;
}

.workspace-passport {
  border-left: 1px solid var(--line);
}

.workspace-panel-label,
.workspace-screen-kicker,
.eyebrow {
  color: var(--muted);
  font-weight: 610;
}

.workspace-next-action {
  border: 0;
  border-left: 2px solid var(--blue);
  border-radius: 0;
  background: transparent;
  padding: 7px 0 7px 15px;
}

.workspace-fact-list > div,
.workspace-record-list li {
  border-color: var(--line);
}

.advanced-register,
.advanced-register.screen-register,
.advanced-view {
  margin-top: 34px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.advanced-register > summary,
.advanced-register.screen-register > summary,
.advanced-view > summary {
  display: grid;
  position: static;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 12px;
  align-items: center;
  padding: 17px 2px;
  color: var(--ink);
}

.advanced-register > summary span,
.advanced-register > summary strong,
.advanced-register > summary small {
  position: static;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
}

.advanced-register > summary span {
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 650;
}

.advanced-register > summary strong {
  font-size: 0.9rem;
  font-weight: 620;
}

.advanced-register > summary small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 430;
}

.advanced-register[open] > summary,
.advanced-view[open] > summary {
  border-bottom: 1px solid var(--line);
}

/* Risk reduction reads as an outcome and a decision, with milestones on demand. */
.workspace-treatments .page-direction,
.workspace-treatments .page-actions-menu {
  display: flex;
}

.workspace-treatments .topbar {
  margin-bottom: 30px;
}

.workspace-treatments .topbar h1 {
  margin-top: 0;
  font-size: clamp(2rem, 3vw, 2.75rem);
}

.treatment-execution {
  overflow: visible;
  border: 0;
  background: transparent;
}

.treatment-execution > header {
  padding: 0 0 20px;
}

.treatment-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.treatment-time-axis {
  display: none;
}

.treatment-roadmap-list {
  gap: 14px;
  padding: 0;
}

.treatment-roadmap-list > article {
  grid-template-columns: minmax(210px, 1fr) 105px minmax(180px, 0.8fr) 125px;
  border-color: var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 18px;
}

.treatment-roadmap-list > article.selected {
  border-color: color-mix(in srgb, var(--blue) 55%, var(--line));
  box-shadow: inset 3px 0 0 var(--blue);
}

.treatment-roadmap-risk {
  border-right-color: var(--line);
}

.treatment-score > strong {
  font-family: inherit;
  font-size: 2rem;
  font-weight: 560;
}

.treatment-score > b.red,
.treatment-score > b.amber,
.treatment-score > b.green {
  background: transparent;
  color: var(--muted);
}

.treatment-score > b.red { color: var(--red); }
.treatment-score > b.amber { color: var(--amber); }
.treatment-score > b.green { color: var(--green); }

.treatment-milestone-disclosure {
  align-self: center;
  min-width: 0;
}

.treatment-milestone-disclosure > summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 620;
  cursor: pointer;
}

.treatment-milestone-disclosure[open] > summary {
  margin-bottom: 12px;
}

.treatment-blocker {
  grid-column: 3 / 4;
  border: 0;
  border-left: 2px solid var(--red);
  border-radius: 0;
  background: transparent;
}

.treatment-next-decision {
  margin: 16px 0 0;
  border: 0;
  border-left: 2px solid var(--red);
  border-radius: 0;
  background: transparent;
}

.treatment-bottom-nav {
  grid-template-columns: repeat(3, auto) minmax(100px, 1fr);
  margin-top: 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.treatment-bottom-nav a {
  text-transform: none;
}

/* Decision and exception pages group rationale, people, and next action. */
.workspace-acceptances .workspace-screen,
.workspace-exceptions .workspace-screen {
  border: 0;
}

.workspace-acceptances .workspace-stat-rail,
.workspace-exceptions .workspace-stat-rail {
  gap: 0;
}

.workspace-acceptances .workspace-stat,
.workspace-exceptions .workspace-stat {
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 8px 16px;
}

.workspace-acceptances .workspace-panel,
.workspace-acceptances .workspace-passport,
.workspace-exceptions .workspace-panel,
.workspace-exceptions .workspace-passport {
  background: var(--surface);
}

/* Control checks are a compact assurance workspace, not a card wall. */
.control-test-reference-screen,
.control-test-plan-board,
.control-test-intro {
  background: transparent;
}

.control-test-intro {
  min-height: 0;
  border: 0;
  padding: 0 0 20px;
}

.control-check-list article {
  border-color: var(--line);
  border-radius: 9px;
  background: var(--surface);
}

/* The ISO coverage map is the hero; colour is reserved for state. */
.soa-reference-screen {
  display: grid;
  gap: 18px;
}

.soa-confidence {
  grid-template-columns: minmax(300px, 0.85fr) minmax(380px, 1fr);
  border: 0;
  padding: 0 0 4px;
}

.soa-confidence h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.45rem);
  font-weight: 570;
}

.soa-confidence > div > p:last-child {
  margin-top: 8px;
  color: var(--muted);
}

.soa-confidence-signals article {
  padding: 6px 14px;
}

.soa-confidence-signals strong {
  font-family: inherit;
  font-weight: 560;
}

.soa-decision-map,
.soa-inspector {
  border-color: var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.soa-matrix-row > div,
.soa-matrix-row > span {
  background: transparent;
}

.soa-matrix-row > span {
  border-color: var(--line);
}

.soa-matrix-row.selected {
  outline: 0;
  box-shadow: inset 3px 0 0 var(--blue);
}

.soa-resolution-path span {
  background: var(--surface-soft);
  color: var(--ink);
}

/* Assets, suppliers, and incidents each keep one domain metaphor. */
.workspace-assets .workspace-screen,
.workspace-suppliers .workspace-screen,
.workspace-incidents .workspace-screen {
  border: 0;
}

.scope-chain {
  border-color: var(--line);
  background: transparent;
}

.supplier-quadrant {
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--line);
}

.supplier-zone,
.supplier-zone.critical,
.supplier-zone.watched,
.supplier-zone.stable,
.supplier-zone.routine {
  border: 0;
  border-radius: 0;
  background: var(--surface);
}

.supplier-zone.critical { box-shadow: inset 3px 0 0 var(--red); }
.supplier-zone.watched { box-shadow: inset 3px 0 0 var(--amber); }
.supplier-zone.stable { box-shadow: inset 3px 0 0 var(--green); }

.supplier-chip {
  border-color: var(--line);
  background: var(--surface-soft);
}

.stage-track {
  margin-top: 24px;
}

.stage-step::before {
  border-color: var(--line);
  background: var(--surface);
}

.incident-journey-context {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 26px 0 0;
  border-top: 1px solid var(--line);
}

.incident-journey-context > div {
  padding: 13px 12px 10px 0;
}

.incident-journey-context dt {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 620;
}

.incident-journey-context dd {
  margin: 4px 0 0;
}

/* Audit readiness is a mission-control view grounded in current records. */
.readiness-mission {
  display: grid;
  gap: 28px;
}

.readiness-mission-header,
.readiness-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.readiness-confidence-card {
  display: grid;
  grid-template-columns: 180px minmax(260px, 1fr) minmax(220px, 0.5fr);
  gap: 32px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: clamp(24px, 4vw, 42px);
}

.readiness-score-ring {
  display: grid;
  width: 148px;
  height: 148px;
  place-content: center;
  border: 10px solid color-mix(in srgb, var(--blue) 16%, var(--line));
  border-top-color: var(--blue);
  border-radius: 50%;
  text-align: center;
}

.readiness-score-ring.red { border-top-color: var(--red); }
.readiness-score-ring.amber { border-top-color: var(--amber); }
.readiness-score-ring.green { border-top-color: var(--green); }

.readiness-score-ring strong {
  font-size: 2.15rem;
  font-weight: 560;
  letter-spacing: -0.04em;
}

.readiness-score-ring span {
  color: var(--muted);
  font-size: 0.72rem;
}

.readiness-confidence-copy h3,
.readiness-next-action h3,
.readiness-established h3,
.readiness-section-heading h3 {
  margin: 4px 0 0;
  font-size: 1.45rem;
  font-weight: 580;
  letter-spacing: -0.025em;
}

.readiness-confidence-copy > p:not(.eyebrow),
.readiness-section-heading p {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
}

.readiness-confidence-copy .quiet-link {
  display: inline-block;
  margin-top: 14px;
}

.readiness-severity-list {
  display: grid;
  gap: 0;
  margin: 0;
  border-left: 1px solid var(--line);
  padding-left: 26px;
}

.readiness-severity-list > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
}

.readiness-severity-list dt {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.readiness-severity-list i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.readiness-severity-list i.red { color: var(--red); }
.readiness-severity-list i.amber { color: var(--amber); }
.readiness-severity-list i.green { color: var(--green); }
.readiness-severity-list dd { margin: 0; font-weight: 620; }

.readiness-priority-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.readiness-priority-card {
  display: grid;
  min-height: 148px;
  align-content: end;
  border: 1px solid var(--line);
  border-top: 2px solid var(--blue);
  border-radius: 10px;
  background: var(--surface);
  padding: 15px;
  color: var(--ink);
}

.readiness-priority-card.red { border-top-color: var(--red); }
.readiness-priority-card.amber { border-top-color: var(--amber); }
.readiness-priority-card.green { border-top-color: var(--green); }

.readiness-priority-card > span {
  align-self: start;
  color: var(--muted);
  font-size: 0.7rem;
}

.readiness-priority-card > strong {
  margin-top: auto;
  font-size: 0.87rem;
}

.readiness-priority-card > b {
  margin-top: 5px;
  font-size: 1.65rem;
  font-weight: 560;
}

.readiness-priority-card > small {
  color: var(--muted);
}

.readiness-action-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 24px;
}

.readiness-next-action,
.readiness-established {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.readiness-next-action article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 24px;
  margin-top: 16px;
}

.readiness-next-action article h4 {
  margin: 8px 0 0;
  font-size: 1.05rem;
}

.readiness-next-action article p {
  margin: 5px 0 0;
  color: var(--muted);
}

.readiness-next-action article dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.readiness-next-action article dl > div {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 8px;
}

.readiness-next-action dt {
  color: var(--muted);
  font-size: 0.72rem;
}

.readiness-next-action dd {
  margin: 0;
  font-size: 0.78rem;
}

.readiness-next-action article .button {
  width: fit-content;
}

.readiness-established > div {
  display: grid;
  gap: 0;
  margin-top: 16px;
}

.readiness-established > div a {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  color: var(--ink);
}

.readiness-advanced-body {
  display: grid;
  gap: 24px;
  padding-top: 24px;
}

/* Evidence integrations open as a living dashboard. */
.experience-intro {
  align-items: end;
  border: 0;
  padding: 0 0 22px;
}

.integration-living-dashboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.integration-living-dashboard > a {
  display: grid;
  min-height: 138px;
  align-content: end;
  border-right: 1px solid var(--line);
  padding: 18px;
  color: var(--ink);
}

.integration-living-dashboard > a:last-child {
  border-right: 0;
}

.integration-living-dashboard span {
  color: var(--muted);
  font-size: 0.76rem;
}

.integration-living-dashboard strong {
  margin-top: auto;
  font-size: 2rem;
  font-weight: 560;
}

.integration-living-dashboard small {
  margin-top: 5px;
  color: var(--muted);
}

.experience-tabs {
  margin-top: 18px;
}

.automated-evidence-source-cards {
  gap: 0;
}

.automated-evidence-source-cards article,
.notification-activity-list article {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

/* Notification and user administration stay honest about implemented scope. */
.notification-overview {
  gap: 22px;
}

.notification-overview > .panel {
  border-radius: 12px;
  background: var(--surface);
}

.governed-notification-list li {
  border-color: var(--line);
}

.user-setup-summary {
  padding-bottom: 22px;
}

.user-setup-summary .panel-header {
  align-items: end;
}

.user-setup-summary .panel-header p {
  margin: 6px 0 0;
  color: var(--muted);
}

.user-setup-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.user-setup-strip article {
  display: grid;
  gap: 7px;
  border-right: 1px solid var(--line);
  padding: 16px;
}

.user-setup-strip article:last-child {
  border-right: 0;
}

.user-setup-strip .status {
  justify-self: start;
}

.user-setup-strip small {
  color: var(--muted);
}

.user-walkthrough-panel {
  margin: 0 0 28px;
}

@media (max-width: 1100px) {
  .soa-confidence,
  .readiness-confidence-card {
    grid-template-columns: 160px minmax(0, 1fr);
  }

  .soa-confidence > div:first-child,
  .soa-confidence-signals {
    grid-column: 1 / -1;
  }

  .readiness-severity-list {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-top: 12px;
    padding-left: 0;
  }

  .readiness-severity-list > div {
    border-bottom: 0;
    border-right: 1px solid var(--line);
    padding: 4px 14px;
  }

  .readiness-severity-list > div:last-child {
    border-right: 0;
  }

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

  .treatment-roadmap-list > article {
    grid-template-columns: minmax(200px, 1fr) 100px minmax(160px, 0.8fr) 120px;
  }
}

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

  .topbar-search {
    grid-column: 1;
    grid-row: 2;
  }

  .topbar-actions {
    grid-column: 2;
    grid-row: 2;
  }

  .workspace-screen-header,
  .experience-intro,
  .readiness-mission-header,
  .readiness-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .treatment-roadmap-list > article,
  .readiness-action-grid {
    grid-template-columns: 1fr;
  }

  .treatment-roadmap-risk,
  .treatment-score,
  .treatment-score.target {
    border: 0;
  }

  .treatment-score.current,
  .treatment-milestone-disclosure,
  .treatment-score.target,
  .treatment-blocker {
    grid-column: 1;
    grid-row: auto;
  }

  .treatment-score {
    justify-items: start;
    text-align: left;
  }

  .integration-living-dashboard,
  .user-setup-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .integration-living-dashboard > a:nth-child(2),
  .user-setup-strip article:nth-child(2) {
    border-right: 0;
  }

  .integration-living-dashboard > a:nth-child(-n + 2),
  .user-setup-strip article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .main {
    padding-right: 16px;
    padding-left: 16px;
  }

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

  .page-primary-action {
    width: 100%;
  }

  .readiness-confidence-card {
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }

  .readiness-score-ring {
    width: 126px;
    height: 126px;
  }

  .readiness-severity-list {
    grid-column: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .readiness-severity-list > div:nth-child(2) {
    border-right: 0;
  }

  .readiness-priority-grid,
  .integration-living-dashboard,
  .user-setup-strip,
  .incident-journey-context {
    grid-template-columns: 1fr;
  }

  .integration-living-dashboard > a,
  .user-setup-strip article {
    min-height: 112px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .integration-living-dashboard > a:last-child,
  .user-setup-strip article:last-child {
    border-bottom: 0;
  }

  .soa-confidence {
    grid-template-columns: 1fr;
  }

  .soa-confidence > div,
  .soa-confidence-signals {
    grid-column: auto;
  }

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

  .workspace-compact-signals {
    justify-content: flex-start;
  }
}

/* First-login guidance: one focused invitation, then server-rendered steps. */
.first-login-tour-dialog {
  width: min(520px, calc(100vw - 32px));
  margin: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  padding: 0;
}

.first-login-tour-dialog::backdrop {
  background: rgba(10, 10, 16, 0.64);
  backdrop-filter: blur(5px);
}

.first-login-tour-shell {
  position: relative;
  padding: 32px;
}

.first-login-tour-shell h2 {
  margin: 8px 0 10px;
  font-size: clamp(1.55rem, 4vw, 2rem);
  font-weight: 590;
  letter-spacing: -0.025em;
}

.first-login-tour-shell > p:not(.eyebrow) {
  max-width: 42ch;
  margin: 0;
  color: var(--muted);
}

.first-login-tour-close-form {
  position: absolute;
  top: 16px;
  right: 16px;
  margin: 0;
}

.first-login-tour-close-form .command-close {
  display: inline-grid;
  min-width: 40px;
  width: 40px;
  min-height: 40px;
  place-items: center;
  padding: 0;
  font-size: 1.25rem;
}

.first-login-tour-actions,
.welcome-tour-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}

.first-login-tour-actions {
  justify-content: flex-end;
}

.first-login-tour-actions form,
.welcome-tour-actions form,
.welcome-tour-actions .action-row form {
  margin: 0;
}

.admin-setup-progress {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 12px 20px;
  padding: 0;
  margin: 0 0 24px;
}

.admin-setup-progress li { flex: 1 1 120px; }
.admin-setup-progress a,
.admin-setup-progress li > span { display: block; color: var(--muted); }
.admin-setup-progress [aria-current="step"] { color: var(--ink); font-weight: 600; }
.admin-setup-number { display: block; font-size: 0.8rem; margin-bottom: 4px; }
.admin-setup-reviewed { display: block; font-size: 0.75rem; font-weight: 400; }
.admin-setup-actions { margin-top: 32px; }
.admin-setup-actions p { margin-top: 12px; font-size: 0.875rem; }
.admin-setup-page .build-details dd,
.admin-setup-managers { overflow-wrap: anywhere; }
.admin-setup-managers li { margin-bottom: 8px; }
.admin-setup-managers span { display: block; }

.admin-setup-request-dialog {
  width: min(660px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  overscroll-behavior: contain;
}

.admin-setup-request-dialog::backdrop {
  background: rgba(10, 10, 16, 0.64);
  backdrop-filter: blur(5px);
}

body:has(.admin-setup-request-dialog:modal) { overflow: hidden; }
.admin-setup-request-shell { padding: clamp(20px, 4vw, 32px); }
.admin-setup-request-header { display: flex; align-items: flex-start; gap: 16px; }
.admin-setup-request-header > div { flex: 1; min-width: 0; }
.admin-setup-request-header h2 { margin: 8px 0; font-size: 1.5rem; line-height: 1.2; }
.admin-setup-request-header .command-close { display: grid; place-items: center; min-width: 40px; min-height: 40px; padding: 0; font-size: 1.25rem; text-decoration: none; }
.admin-setup-request-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.admin-setup-request-dialog label { margin-bottom: 0; }
.admin-setup-request-dialog .field-help { margin: 0; font-size: 0.8rem; line-height: 1.45; }
.admin-setup-request-dialog #setup-request-purpose { margin: 4px 0 24px; }
.admin-setup-request-dialog .check-row { align-items: flex-start; font-size: 0.85rem; line-height: 1.5; }
.admin-setup-request-dialog .check-row input { flex-shrink: 0; margin-top: 3px; }
.admin-setup-request-names > label { margin-top: 16px; }
.admin-setup-request-dialog .admin-setup-request-actions { margin-top: 12px; }
.admin-setup-request-success { margin-top: 20px; }
.admin-setup-request-success p { margin-bottom: 6px; }

@media (max-width: 540px) {
  .admin-setup-request-columns { grid-template-columns: 1fr; gap: 12px; }
  .admin-setup-request-dialog { width: calc(100vw - 16px); max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 14px; }
}

.admin-setup-page,
.welcome-tour-page,
.bootstrap-profile-page {
  width: min(100%, 760px);
  margin: 0 auto;
}

.welcome-tour-progress {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.welcome-tour-progress p {
  margin: 0;
}

.welcome-tour-progress progress {
  width: min(280px, 46vw);
  height: 8px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface-soft);
}

.welcome-tour-progress progress::-webkit-progress-bar {
  background: var(--surface-soft);
}

.welcome-tour-progress progress::-webkit-progress-value {
  background: var(--blue);
}

.welcome-tour-progress progress::-moz-progress-bar {
  background: var(--blue);
}

.welcome-tour-step {
  min-height: 340px;
  padding: clamp(26px, 5vw, 48px);
}

.welcome-tour-step h2 {
  max-width: 20ch;
  margin: 10px 0 14px;
  font-size: clamp(1.7rem, 4vw, 2.45rem);
  font-weight: 590;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.welcome-tour-lead {
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.02rem;
}

.welcome-tour-outcome {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.welcome-tour-outcome > span {
  display: inline-grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--green) 14%, transparent);
  color: var(--green);
}

.welcome-tour-outcome p,
.welcome-tour-outcome strong {
  display: block;
  margin: 0;
}

.welcome-tour-outcome strong {
  margin-bottom: 3px;
}

.bootstrap-profile-form {
  max-width: 620px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 40px);
}

.bootstrap-profile-form h2 {
  margin: 8px 0 10px;
  font-size: clamp(1.55rem, 4vw, 2.1rem);
  font-weight: 590;
  letter-spacing: -0.025em;
}

.bootstrap-profile-form .section-purpose {
  margin: 0 0 26px;
}

.about-tour {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.about-tour > * {
  margin-top: 0;
  margin-bottom: 0;
}

.about-tour .button {
  margin-top: 8px;
}

@media (max-width: 640px) {
  .first-login-tour-shell {
    padding: 28px 22px 22px;
  }

  .first-login-tour-actions,
  .welcome-tour-actions,
  .welcome-tour-actions > .action-row,
  .bootstrap-profile-actions {
    align-items: stretch;
    flex-direction: column-reverse;
    width: 100%;
  }

  .first-login-tour-actions > *,
  .welcome-tour-actions > *,
  .welcome-tour-actions .action-row > *,
  .bootstrap-profile-actions > * {
    width: 100%;
  }

  .first-login-tour-actions .button,
  .first-login-tour-actions button,
  .welcome-tour-actions .button,
  .welcome-tour-actions button,
  .bootstrap-profile-actions button {
    justify-content: center;
    width: 100%;
  }

  .welcome-tour-progress {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .welcome-tour-progress progress {
    width: 100%;
  }

  .welcome-tour-step {
    min-height: 0;
    padding: 24px 20px;
  }
}
