/* Bearings workspace: neutral surfaces, cool area accents, semantic risk colours. */
:root {
  --ink: #23313a;
  --muted: #52636d;
  --canvas: #f7f9fa;
  --surface: #fff;
  --line: #dce4e8;
  --brand: #315e73;
  --sidebar: #14273a;
  --area: #4264a0;
  --radius: 12px;
  --shadow: 0 2px 6px #12273b05;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font:
    14px/1.6 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
a {
  color: #315e73;
  text-underline-offset: 3px;
}
a:hover {
  color: #123e55;
}
h1,
h2,
h3 {
  color: #23313a;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
h1 {
  font-size: clamp(30px, 3vw, 40px);
  letter-spacing: -1.2px;
  margin: 12px 0;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.4px;
  margin: 0 0 14px;
}
h3 {
  font-size: 18px;
  margin: 10px 0;
}
p {
  margin: 0 0 14px;
}
main {
  max-width: 1520px;
  margin: 0 auto;
  padding: 30px 36px 48px;
  min-width: 0;
}
.workspace main {
  margin-left: 236px;
}
section {
  margin: 30px 0;
  scroll-margin-top: 30px;
}
article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 18px;
}
.cards > article {
  margin-bottom: 0;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 750;
  color: #536c80;
  margin-bottom: 8px;
}
.intro {
  font-size: 16px;
  color: var(--muted);
  max-width: 72ch;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.metrics div {
  font-size: 12px;
  color: var(--muted);
}
.metrics strong {
  display: block;
  font-size: 28px;
  color: var(--ink);
  font-weight: 750;
}
.badge {
  display: inline-block;
  background: #edf1f6;
  color: #445a70;
  border-radius: 5px;
  font-size: 12px;
  padding: 4px 9px;
  line-height: 1.5;
}
.warning {
  background: #fff4dc;
  color: #785009;
}
aside {
  background: #edf3fa;
  border-left: 3px solid #7895b6;
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}
main nav {
  display: flex;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  margin: 24px 0;
  padding: 0 0 12px;
  flex-wrap: wrap;
}
button,
.button {
  border: 1px solid #cbd6e1;
  background: #fff;
  border-radius: 7px;
  padding: 9px 14px;
  color: #314e66;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  line-height: 1.5;
}
button:hover,
.button:hover {
  background: #edf2f7;
  color: #193d55;
  border-color: #a7b8cb;
}
.primary {
  background: #315e73;
  color: #fff;
  border-color: #315e73;
}
.primary:hover {
  background: #10524e;
  border-color: #10524e;
  color: #fff;
}
.inline {
  display: inline;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 1px solid #b9c7d6;
  border-radius: 7px;
  padding: 10px 12px;
  font: inherit;
  background: white;
  color: var(--ink);
  min-height: 42px;
}
input::placeholder,
textarea::placeholder {
  color: #65788b;
}
input[type="checkbox"],
input[type="radio"] {
  width: auto;
  min-height: auto;
  accent-color: #315e73;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 650;
  margin: 8px 0;
}
form.editor {
  max-width: 760px;
  background: white;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.helptext {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 5px;
}
.errorlist {
  color: #a42f2f;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 13px;
  background: white;
}
th,
td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  overflow-wrap: anywhere;
}
th {
  color: #52677e;
  font-size: 10px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  background: #eaf0f6;
}
tbody tr:hover {
  background: #f7f9fc;
}
td form {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
td input {
  width: 175px;
}
dt {
  font-size: 12px;
  color: var(--muted);
}
dd {
  margin: 0 0 10px;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
summary {
  cursor: pointer;
  color: #285b78;
  font-weight: 600;
  padding: 5px 0;
}
details {
  margin-top: 16px;
}
details[open] > summary {
  margin-bottom: 12px;
}
.login {
  max-width: 700px;
  margin: 48px auto;
  background: white;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 36px #1a31420b;
}
.login h1 {
  font-size: clamp(29px, 4vw, 40px);
}
.login form {
  max-width: 440px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 100;
  background: white;
  color: #23313a;
  padding: 14px;
}
.skip-link:focus {
  top: 8px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #3676b8;
  outline-offset: 3px;
}
#main-content:focus {
  outline: none;
}
.area-inventory,
.area-companies {
  --area: #29857c;
}
.area-review {
  --area: #6475c4;
}
.area-issues {
  --area: #4b6d9b;
}
.area-exposure {
  --area: #267b9c;
}
.area-notifications {
  --area: #8666b5;
}
.area-response {
  --area: #567d9c;
}
.area-explore,
.area-administration {
  --area: #657991;
}
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 14px 30px;
}
.brand {
  font-size: 20px;
  font-weight: 850;
  letter-spacing: 2px;
  color: #19394c;
  text-decoration: none;
  line-height: 1.3;
}
.brand-symbol {
  color: #21837b;
  font-size: 24px;
}
.brand-caption {
  display: block;
  margin: 4px 0 0 29px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: #627286;
}
.account-menu {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.account-name {
  color: #53677c;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.account-menu button {
  background: #f7f9fc;
}
.app-sidebar {
  position: absolute;
  top: 78px;
  bottom: 0;
  left: 0;
  width: 236px;
  min-height: calc(100vh - 78px);
  background: var(--sidebar);
  border: 0;
  border-radius: 0;
  padding: 26px 16px;
  margin: 0;
  color: #dce7f2;
}
/* The sidebar follows long documents without covering their content. */
.workspace {
  position: relative;
  min-height: 100vh;
}
.app-sidebar nav {
  position: sticky;
  top: 20px;
}
.nav-group {
  margin-bottom: 24px;
}
.nav-group-label {
  color: #a5b9ce;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 9px;
  font-weight: 700;
  margin: 0 12px 9px;
}
.workspace-link {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #c5d3e1;
  text-decoration: none;
  font-size: 12px;
  font-weight: 550;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 10px 11px;
  margin: 3px 0;
  line-height: 1.4;
}
.nav-marker {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border: 1px solid #7890a8;
  border-radius: 2px;
}
.workspace-link:hover {
  color: white;
  background: #20394f;
}
.workspace-link.is-active {
  color: white;
  background: #294158;
  border-color: #3d5771;
}
.workspace-link.is-active .nav-marker {
  border-color: #a9dcd5;
  background: #a9dcd5;
  box-shadow: 0 0 0 3px #a9dcd51a;
}
.sidebar-note {
  margin: 26px 12px 0;
  padding-top: 20px;
  border-top: 1px solid #34485d;
  color: #9db1c4;
  font-size: 11px;
  line-height: 1.8;
}
.mobile-menu {
  display: none;
}
.workspace-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 20px;
}
.workspace-location {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  font-size: 12px;
  margin: 0;
}
.workspace-location a {
  color: #4e6379;
  text-decoration: none;
}
.workspace-location a:hover {
  text-decoration: underline;
}
.area-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--area);
}
.breadcrumb-divider {
  color: #9cabbc;
}
.workspace-meta .environment-label {
  margin: 0;
  font-size: 9px;
  color: #586e82;
  letter-spacing: 0.5px;
}
.synthetic-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #eaf1f8;
  color: #405d79;
  border: 1px solid #cbd9e9;
  border-radius: 8px;
  margin: 0 0 22px;
  padding: 10px 15px;
  font-size: 11px;
}
.synthetic-banner strong {
  font-weight: 750;
}
.synthetic-banner > div {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.synthetic-banner a {
  color: #355b80;
  white-space: nowrap;
}
main .workflow-path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  padding: 0;
  margin: 0 0 28px;
  overflow: hidden;
}
.workflow-path a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  text-decoration: none;
  color: #5e7186;
  border-right: 1px solid var(--line);
}
.workflow-path a:last-child {
  border-right: 0;
}
.workflow-path a > span {
  font-size: 12px;
  font-weight: 750;
  color: #52677f;
}
.workflow-path strong {
  display: block;
  font-size: 12px;
}
.workflow-path small {
  display: block;
  font-size: 10px;
  color: #52677f;
}
.workflow-path a[aria-current] {
  background: #edf2f9;
  box-shadow: inset 0 3px var(--area);
  color: #263e58;
}
.workflow-path a:hover {
  background: #f2f6fa;
}
.app-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 20px 36px;
  border-top: 1px solid var(--line);
  color: #61758a;
  font-size: 10px;
}
.workspace .app-footer {
  margin-left: 236px;
}
.app-footer a {
  color: #506b80;
}
.organization-cards h2 {
  font-size: 20px;
  min-height: 50px;
}
.organization-cards h2 a {
  text-decoration: none;
  color: #24465d;
}
.organization-cards article {
  display: flex;
  flex-direction: column;
}
.organization-cards .actions {
  margin-top: auto;
}
.message {
  border-left-color: #557e9c;
}
.message-error {
  border-left-color: #b93242;
  background: #fff0f1;
  color: #842537;
}
.message-success {
  border-left-color: #288376;
  background: #edf8f4;
  color: #245e52;
}
@media (min-width: 1760px) {
  .workspace main {
    margin-right: auto;
    margin-left: calc(236px + (100vw - 1760px) / 2);
  }
}
@media (max-width: 1100px) {
  .app-sidebar {
    display: none;
  }
  .workspace main,
  .workspace .app-footer {
    margin-left: 0;
  }
  .mobile-menu {
    display: block;
    margin: 0;
    background: #14273a;
    color: #dce7f2;
    padding: 10px 24px;
  }
  .mobile-menu > summary {
    color: white;
    font-size: 12px;
  }
  .mobile-menu > summary span {
    font-weight: 400;
    margin-left: 12px;
    color: #b8ccdf;
  }
  .mobile-menu nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding-top: 16px;
  }
  main {
    padding: 24px;
  }
}
@media (max-width: 700px) {
  .app-header {
    padding: 14px 16px;
    gap: 10px;
  }
  .brand {
    font-size: 17px;
  }
  .brand-caption {
    margin-left: 0;
    font-size: 8px;
    letter-spacing: 0;
  }
  .account-menu {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .account-name {
    font-size: 10px;
  }
  .account-menu button {
    padding: 6px 10px;
    min-height: 34px;
    font-size: 11px;
  }
  main {
    padding: 20px 16px 32px;
  }
  article {
    padding: 18px;
  }
  table {
    display: block;
    overflow-x: auto;
  }
  .mobile-menu {
    padding: 8px 16px;
  }
  .mobile-menu nav {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .mobile-menu .nav-group {
    margin-bottom: 8px;
  }
  .mobile-menu .workspace-link {
    padding: 10px;
  }
  .synthetic-banner {
    flex-wrap: wrap;
    padding: 10px 12px;
  }
  .workflow-path a {
    padding: 11px 9px;
    gap: 7px;
  }
  .workflow-path small {
    display: none;
  }
  .app-footer {
    padding: 20px 16px;
    flex-wrap: wrap;
  }
  .login {
    margin: 20px 0;
    padding: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.evidence-chain {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 1rem;
}
.evidence-chain > section {
  min-width: 0;
  padding: 1rem;
  background: #f2f5f4;
  border-radius: 6px;
  overflow-wrap: anywhere;
}
.risk-reference {
  padding: 0.7rem 0;
  border-bottom: 1px solid #cbd8d5;
}
@media (max-width: 1000px) {
  .evidence-chain {
    grid-template-columns: 1fr;
  }
}

.review-cue {
  border-left: 4px solid #c58b24;
}
/* Review hierarchy: severity, machine identity, then evidence and action. */
.environment-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #596b72;
  margin: 0 0 22px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.review-board {
  margin-top: 28px;
}
.severity-filters {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}
.severity-filter {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid #ccd5d9;
  border-top: 4px solid var(--severity-color, #536672);
  border-radius: 8px;
  background: var(--severity-tint, #fff);
  padding: 12px 15px;
  color: var(--severity-ink, #253b45);
  text-decoration: none;
  min-height: 98px;
}
.severity-filter strong {
  font-size: 27px;
  line-height: 1.2;
}
.severity-filter span {
  font-size: 12px;
  font-weight: 700;
}
.severity-filter small {
  font-size: 10px;
}
.severity-filter.selected {
  outline: 2px solid #163e47;
  outline-offset: 2px;
}
.severity-critical {
  --severity-color: #ac143b;
  --severity-tint: #fff0f4;
  --severity-ink: #870b2c;
}
.severity-high {
  --severity-color: #c04316;
  --severity-tint: #fff3eb;
  --severity-ink: #9d2c09;
}
.severity-medium {
  --severity-color: #b17b0b;
  --severity-tint: #fff9e6;
  --severity-ink: #735000;
}
.severity-low {
  --severity-color: #326c9c;
  --severity-tint: #eff6ff;
  --severity-ink: #24537d;
}
.severity-none {
  --severity-color: #607785;
  --severity-tint: #f3f6f8;
  --severity-ink: #435967;
}
.severity-unknown {
  --severity-color: #697782;
  --severity-tint: #f2f4f6;
  --severity-ink: #44525d;
}
.review-search {
  margin: 26px 0;
}
.search-controls {
  display: flex;
  gap: 10px;
}
.search-controls input {
  flex: 1;
  min-width: 0;
}
.review-cue,
.finding-detail {
  border-left: 6px solid var(--severity-color, #697782);
  padding: 24px 28px;
  scroll-margin-top: 20px;
}
.review-cue.severity-unknown {
  border-left-style: dashed;
}
.review-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  border-bottom: 1px solid #e1e7e9;
  padding-bottom: 20px;
}
.review-heading h2 {
  font-size: 27px;
  margin: 4px 0;
  letter-spacing: -0.5px;
}
.review-heading h2 a {
  color: #173a43;
  text-decoration: none;
}
.review-heading .eyebrow {
  margin: 0;
  font-size: 10px;
}
.vulnerability-title {
  color: #304952;
  text-decoration: none;
  font-weight: 550;
}
.severity-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  background: var(--severity-tint, #f2f4f6);
  color: var(--severity-ink, #44525d);
  border: 1px solid var(--severity-color, #697782);
  border-radius: 7px;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}
.severity-badge strong {
  font-size: 26px;
  line-height: 1.2;
}
.severity-badge span {
  font-size: 10px;
  font-weight: 500;
}
.severity-badge.severity-unknown {
  border-style: dashed;
}
.severity-badge:hover {
  color: var(--severity-ink);
  box-shadow: 0 0 0 2px var(--severity-tint);
}
.review-body {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 32px;
}
.review-body > section {
  margin: 18px 0 0;
  min-width: 0;
}
.asset-identity {
  border-right: 1px solid #e1e7e9;
  padding-right: 24px;
}
.asset-identity h3 {
  font-size: 21px;
  overflow-wrap: anywhere;
  margin: 4px 0 18px;
}
.asset-identity h3 a {
  color: #164e56;
}
.asset-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 22px;
  margin: 12px 0;
}
.asset-facts > div {
  min-width: 0;
}
.asset-facts dd {
  font-size: 13px;
  overflow-wrap: anywhere;
  margin: 1px 0 0;
}
.asset-facts dt {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #627681;
}
.missing-value {
  color: #6a7780;
  font-style: italic;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.92em;
}
.review-assessment .product-link {
  font-size: 16px;
  font-weight: 650;
}
.review-assessment p {
  font-size: 13px;
}
.review-assessment .actions {
  margin-top: 20px;
}
.review-assessment .eyebrow {
  font-size: 10px;
}
.review-help {
  font-size: 12px;
  color: #536b72;
  margin-bottom: 35px;
}
.asset-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  margin-top: 30px;
}
.asset-layout article {
  scroll-margin-top: 20px;
}
.finding-assessment {
  border-top: 1px solid #d5dfdf;
  padding-top: 20px;
  margin-bottom: 0;
}
.finding-assessment form {
  max-width: 650px;
}
.evidence-chain > section {
  margin: 20px 0;
  scroll-margin-top: 20px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #137b91;
  outline-offset: 3px;
}
.asset-layout .asset-facts {
  row-gap: 20px;
}
@media (max-width: 1000px) {
  .severity-filters {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .review-body {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .asset-identity {
    border-right: 0;
    border-bottom: 1px solid #e1e7e9;
    padding: 0 0 15px;
  }
  .asset-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .page-heading {
    display: block;
  }
  .review-cue,
  .finding-detail {
    padding: 18px;
  }
  .severity-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .severity-filter {
    min-height: 75px;
    padding: 9px 12px;
  }
  .review-heading {
    gap: 12px;
    flex-wrap: wrap;
  }
  .review-heading h2 {
    font-size: 23px;
  }
  .severity-badge {
    padding: 7px 10px;
  }
  .severity-badge strong {
    font-size: 22px;
  }
  .search-controls {
    flex-wrap: wrap;
  }
  .search-controls input {
    flex-basis: 100%;
  }
  .asset-facts {
    gap: 15px 12px;
  }
}
.assessment-badge {
  display: inline-block;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  background: #edf1f4;
  color: #455965;
}
.assessment-affected {
  background: #fce9e7;
  color: #952619;
}
.assessment-potential {
  background: #fff2d6;
  color: #765007;
}
.assessment-not_affected {
  background: #edf5fb;
  color: #265c7d;
}
.severity-score {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.severity-score small {
  font-size: 9px;
  line-height: 1.2;
  font-weight: 500;
}
.page-heading h1 {
  font-size: 40px;
  margin: 6px 0;
}
.page-heading .eyebrow {
  margin: 0 0 8px;
}
.page-heading .intro {
  font-size: 16px;
  margin: 8px 0 0;
}
.review-board > .row h2 {
  font-size: 20px;
  margin: 0;
}
.severity-filters {
  margin: 16px 0;
}
.severity-filter {
  min-height: 86px;
}
.review-search {
  margin: 18px 0 22px;
}
@media (max-width: 600px) {
  .severity-filters {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .severity-filter {
    padding: 8px;
    min-height: 65px;
  }
  .severity-filter small {
    display: none;
  }
  .severity-filter span {
    font-size: 10px;
  }
  .severity-filter strong {
    font-size: 22px;
  }
  .page-heading h1 {
    font-size: 34px;
  }
}

.notification-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 20px;
}
.notification-form {
  background: #fff;
  border: 1px solid #d4e0dc;
  border-radius: 8px;
  padding: 24px;
}
.notification-message {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    13px/1.7 ui-monospace,
    SFMono-Regular,
    monospace;
  background: #f4f7f6;
  padding: 18px;
  border-radius: 5px;
}
.notification-form .actions {
  margin-top: 24px;
}
.recipient-choice {
  display: flex;
  align-items: center;
  gap: 10px;
}
@media (max-width: 700px) {
  .notification-fields {
    grid-template-columns: 1fr;
  }
  .notification-form {
    padding: 16px;
  }
  .notification-message {
    padding: 10px;
  }
  header > div {
    overflow-wrap: anywhere;
  }
}

.flowintel-export-title {
  overflow-wrap: anywhere;
}

.issue-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}
.issue-metrics article {
  margin: 0;
  padding: 18px;
  border-top: 4px solid #728985;
}
.issue-metrics strong {
  display: block;
  font-size: 32px;
}
.issue-metrics span {
  font-size: 13px;
}
.issue-overdue {
  background: #fff0ed !important;
  color: #8c241d !important;
  border-color: #ae3328 !important;
}
.issue-soon {
  background: #fff6df !important;
  color: #775005 !important;
  border-color: #a66b08 !important;
}
.issue-unknown {
  background: #eef2f5;
  color: #4d6170;
  border: 1px dashed #82949f;
}
.issue-closed {
  background: #edf3f2;
  color: #42625b;
}
.issue-card {
  border-left: 6px solid #7b8e98;
}
.issue-priority-high {
  border-left-color: #bd5721;
}
.issue-priority-critical {
  border-left-color: #a72c30;
}
.issue-summary {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
}
.issue-summary > div {
  min-width: 0;
}
.issue-summary h3 {
  overflow-wrap: anywhere;
}
.issue-filters,
.issue-form-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 22px;
}
.issue-field-wide {
  grid-column: 1/-1;
}
.issue-field,
.issue-filters label {
  min-width: 0;
}
.issue-field input,
.issue-field select,
.issue-field textarea,
.issue-filters input,
.issue-filters select {
  width: 100%;
  box-sizing: border-box;
}
.issue-create-links {
  margin: 20px 0;
  flex-wrap: wrap;
}
.issue-prose {
  white-space: normal;
  overflow-wrap: anywhere;
}
.issue-card h2 {
  overflow-wrap: anywhere;
}
.issue-form-fields .errorlist {
  color: #9c2923;
}
.issue-metrics article {
  min-width: 0;
}
@media (max-width: 700px) {
  .issue-summary,
  .issue-form-fields,
  .issue-filters {
    grid-template-columns: 1fr;
  }
  .issue-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .issue-field-wide {
    grid-column: auto;
  }
  .issue-card {
    padding: 16px;
  }
  .issue-metrics strong {
    font-size: 26px;
  }
}

/* Shared scan hierarchy: evidence cards expose identity; deeper context is expandable. */
.page-heading {
  align-items: flex-start;
  margin-bottom: 24px;
}
.page-heading > div:first-child {
  min-width: 0;
  flex: 1;
}
.page-heading > .actions {
  max-width: 300px;
  justify-content: flex-end;
}
.page-heading h1 {
  font-size: clamp(28px, 2.6vw, 38px);
}
.review-heading h2 {
  font-size: 23px;
}
.review-heading {
  padding-bottom: 16px;
}
.review-cue {
  padding: 20px 24px;
}
.review-cue .review-heading .eyebrow {
  letter-spacing: 0.8px;
}
.review-identity-strip {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1fr;
  gap: 20px;
  padding: 18px 0;
}
.review-identity-strip > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow-wrap: anywhere;
}
.review-identity-strip .eyebrow {
  font-size: 9px;
  letter-spacing: 1px;
  margin: 0;
}
.review-identity-strip .review-asset-name {
  font-weight: 750;
  color: #24485c;
  text-decoration: none;
}
.review-identity-strip .muted {
  font-size: 11px;
}
.review-identity-strip a {
  font-size: 12px;
}
.review-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.review-next > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.review-expanded {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 8px;
}
.review-expanded > summary {
  font-size: 11px;
  color: #49667d;
}
.severity-filter {
  min-height: 82px;
  padding: 11px 12px;
}
.severity-filter strong {
  font-size: 26px;
}
.severity-filter.selected {
  outline-color: #3d5875;
}
.severity-badge {
  border-radius: 8px;
}
.badge[class*="severity-"] {
  background: var(--severity-tint, #eef2f6);
  color: var(--severity-ink, #445965);
  border: 1px solid var(--severity-color, #cbd6e1);
}
.issue-priority-critical .issue-priority {
  background: #fff0f4;
  color: #870b2c;
  border: 1px solid #ac143b;
}
.issue-priority-high .issue-priority {
  background: #fff3eb;
  color: #9d2c09;
  border: 1px solid #c04316;
}
.issue-priority-medium .issue-priority {
  background: #fff9e6;
  color: #735000;
  border: 1px solid #b17b0b;
}
.issue-priority-low .issue-priority {
  background: #eff6ff;
  color: #24537d;
  border: 1px solid #326c9c;
}
.issue-card {
  border-left-color: #8396ab;
}
.issue-priority-critical {
  border-left-color: #ac143b;
}
.issue-priority-high {
  border-left-color: #c04316;
}
.issue-priority-medium {
  border-left-color: #b17b0b;
}
.issue-priority-low {
  border-left-color: #326c9c;
}
.creation-menu {
  background: #eaf0f7;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 18px;
  margin: 20px 0;
}
.creation-menu summary {
  font-size: 12px;
}
.creation-menu .actions {
  margin: 14px 0 0;
}
.issue-filters button {
  align-self: end;
}
.notification-fields {
  background: #f6f8fb;
  border: 1px solid #e3e9f1;
  padding: 18px;
  border-radius: 8px;
}
.notification-form {
  border-color: var(--line);
  border-radius: var(--radius);
}
.notification-message {
  border: 1px solid var(--line);
  background: #f5f7fb;
}
.evidence-chain > section {
  border: 1px solid var(--line);
  background: #f6f8fb;
}
.workspace-link.is-active .nav-marker {
  background: var(--area);
  border-color: #b7c9df;
}
@media (max-width: 1200px) {
  .review-identity-strip {
    gap: 12px;
  }
  .page-heading {
    flex-wrap: wrap;
  }
  .page-heading > .actions {
    max-width: none;
    justify-content: flex-start;
  }
}
@media (max-width: 700px) {
  .review-identity-strip {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .review-cue {
    padding: 18px;
  }
  .page-heading > .actions {
    margin-top: 16px;
  }
  .review-next {
    align-items: flex-start;
  }
  .notification-fields {
    padding: 12px;
  }
}
.notification-fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 22px;
  min-width: 0;
}
.notification-fieldset legend {
  font-size: 12px;
  font-weight: 750;
  color: #405a75;
  padding: 0 0 8px;
}
.audience-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.notification-fields > div {
  min-width: 0;
}
.subscription-options {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 20px;
}
.subscription-options input {
  max-width: 500px;
  margin-bottom: 12px;
}
@media (max-width: 700px) {
  .audience-fields {
    grid-template-columns: 1fr;
  }
}

/* Native application workspace: the child keeps its own identity and permissions. */
.area-applications {
  --area: #41778b;
}
.application-canvas main {
  max-width: none;
}
.application-cards article {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.application-cards .badge {
  align-self: flex-start;
}
.application-cards h2,
.application-cards p {
  overflow-wrap: anywhere;
  margin-bottom: 0;
}
.application-cards .actions {
  margin-top: auto;
  padding-top: 15px;
}
.canvas-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  background: #fff;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 10px 10px 0 0;
}
.canvas-toolbar > div:first-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-wrap: anywhere;
}
.canvas-help {
  font-size: 11px;
  color: #50697f;
  padding: 10px 15px;
  background: #eaf1f8;
  margin: 0;
  border: 1px solid var(--line);
  border-top: 0;
}
.application-frame {
  display: block;
  width: 100%;
  min-height: 720px;
  height: calc(100vh - 315px);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: #fff;
}
.canvas-welcome {
  padding: 36px;
  border-radius: 0 0 10px 10px;
  border-top: 0;
}
.canvas-welcome p {
  max-width: 78ch;
}
@media (max-width: 700px) {
  .canvas-toolbar {
    padding: 15px;
  }
  .canvas-welcome {
    padding: 20px;
  }
  .application-frame {
    min-height: 650px;
  }
}

/* One CIRCL campaign, many private constituent messages. */
.campaign-entry {
  background: #edf3fa;
  border-left: 3px solid #6078ae;
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
}
.campaign-entry .muted {
  display: block;
  margin-top: 4px;
}
.campaign-approval {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border: 1px solid #a8c9c3;
  background: #edf7f3;
  padding: 24px;
  border-radius: 12px;
  margin: 24px 0;
}
.campaign-approval h2 {
  font-size: 19px;
  margin-bottom: 8px;
}
.campaign-approval p {
  margin-bottom: 0;
  max-width: 72ch;
  font-size: 12px;
}
.campaign-approval button {
  flex-shrink: 0;
}
.campaign-company {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.campaign-company > .row {
  margin-bottom: 14px;
}
.campaign-statuses {
  margin: 18px 0;
}
.campaign-metrics strong {
  overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  .campaign-approval {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }
}

.scenario-search {
  display: flex;
  align-items: end;
  gap: 1rem;
  flex-wrap: wrap;
}
.scenario-search > div {
  flex: 1 1 16rem;
  min-width: 0;
}
.scenario-results,
.scenario-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
}
.scenario-card,
.scenario-facts article {
  min-width: 0;
  overflow-wrap: anywhere;
}
.scenario-preview {
  border-top: 4px solid var(--brand);
}
.scenario-confirm {
  margin-top: 1.5rem;
}
.scenario-confirm textarea {
  min-height: 8rem;
}

.case-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0;
}
.case-steps a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.case-steps a.selected {
  border-color: var(--brand);
  background: #e6f3ef;
  font-weight: 700;
}
.case-steps span {
  font-weight: 700;
}
.case-controls {
  margin-top: 1.5rem;
}

/* Product setup and infrastructure overview */
.product-picker { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.product-results { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.product-results button { overflow-wrap: anywhere; white-space: normal; text-align: left; }
.overview-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.overview-controls form { display: flex; gap: .5rem; flex: 1 1 16rem; max-width: 32rem; }
.overview-controls input[type=checkbox] { width: auto; }
.overview-companies { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 30rem), 1fr)); gap: 1.25rem; }
.overview-company { min-width: 0; border-top: 4px solid #8294a9; overflow-wrap: anywhere; }
.overview-company.overview-action { border-top-color: #aa1734; }
.overview-action .overview-status { color: #91152c; background: #fff0f3; }
.overview-company.overview-review { border-top-color: #a16a13; }
.overview-review .overview-status { color: #80500b; background: #fff4dd; }
.overview-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin: 1.25rem 0; }
.overview-metrics a { padding: .8rem; border-radius: var(--radius); background: #f1f5fa; text-decoration: none; }
.overview-metrics strong { display: block; font-size: 1.8rem; line-height: 1.2; }
.overview-metrics span { display: block; margin-top: .4rem; font-size: .85rem; }
.overview-coverage { padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); }
.coverage-gaps { margin-bottom: 0; padding-left: 1.2rem; color: #80500b; }
.overview-priority { margin-top: 2rem; }
@media(max-width: 450px) { .overview-metrics { gap: .35rem; } .overview-metrics a { padding: .6rem; } .overview-metrics span { font-size: .75rem; } }

.overview-controls form input { flex: 1; min-width: 0; }
.overview-controls form button { flex: 0 0 auto; white-space: nowrap; }
.overview-controls label { display: inline-flex; align-items: center; gap: .5rem; }
.overview-controls p { margin: .3rem 0; }

.overview-problems { list-style: none; padding: 0; }
.overview-problems li { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem; overflow-wrap: anywhere; }
.overview-problems h4 { margin: 0 0 .4rem; font-size: 1rem; }
.overview-problems p { margin: .4rem 0; }
.automatic-scenario-summary { padding: 1.25rem; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius); background: var(--surface); margin: 1.25rem 0; }

/* CIRCL coordination: bounded aggregates and local private research. */
.national-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; margin: 1.3rem 0; }
.national-metrics > * { display: block; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; min-width: 0; }
.national-metrics strong { display: block; font-size: 2rem; color: var(--brand); }
.national-metrics span { display: block; font-size: .88rem; margin-top: .4rem; }
.national-panel { margin: 1.4rem 0; padding: 1.3rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; overflow-wrap: anywhere; }
.national-panel h2 { margin-top: 0; }
.table-scroll { overflow-x: auto; max-width: 100%; }
.table-scroll table { min-width: 650px; }
.national-trend { display: block; width: 100%; max-height: 230px; }
.research-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.research-fields input, .research-fields select { width: 100%; min-width: 0; }
@media (max-width: 750px) { .national-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .research-fields { grid-template-columns: 1fr; } }

/* Resumable company setup */
.setup-progress{max-width:70rem;margin:1.5rem 0;padding:1.2rem;border:1px solid #cddbe5;border-radius:12px;background:#fff}
.setup-progress progress{display:block;width:100%;height:1.2rem;margin:.8rem 0;accent-color:#176f69}
.setup-tabs{display:flex;flex-wrap:wrap;gap:.6rem;margin:1.5rem 0}
.setup-tabs a{padding:.7rem 1rem;border:1px solid #cddbe5;border-radius:8px;background:#fff}
.setup-tabs [aria-current=step]{background:#176f69;color:#fff}
.setup-editor{max-width:70rem}.setup-editor textarea{max-width:100%;width:100%;box-sizing:border-box}.setup-editor form{max-width:55rem}
.setup-save-state{font-weight:600}.setup-progress [data-setup-celebration]{color:#176f69;font-weight:700}
[data-save-errors]{color:#a10c2f}[data-setup-celebration][hidden]{display:none}

.public-material{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%}
.account-menu > a {font-size:12px; white-space:nowrap;}

/* CIRCL corporate identity; semantic risk/status colours above stay independent. */
@font-face {
  font-family: Raleway;
  src: url('fonts/raleway-regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root { --sidebar: #fff; --radius: 9px; --shadow: 0 3px 12px #2038440d; }
body { font-family: Raleway, Arial, sans-serif; font-size: 15px; }
.workspace { --area: #315e73; }
h1, h2, h3 { color: #23313a; font-weight: 700; letter-spacing: -.025em; }
a { color: #315e73; }
a:hover { color: #254f63; }
.app-header { border-top: 3px solid #de2d38; box-shadow: 0 4px 18px #2038440d; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #315e73; font-weight: 800; letter-spacing: 2px; }
.brand-mark { width: 44px; height: 44px; flex: 0 0 44px; object-fit: contain; }
.brand-word { display: block; }
.brand-caption { margin: 3px 0 0; color: #52636d; letter-spacing: .15px; }
.app-sidebar { background: #fff; border-right: 1px solid #dce4e8; color: #315e73; }
.nav-group-label { color: #52636d; font-size: 10px; }
.workspace-link { color: #315e73; font-size: 13px; font-weight: 500; border-radius: 6px; }
.workspace-link:hover { color: #254f63; background: #edf3f5; }
.workspace-link.is-active { color: #254f63; background: #edf3f5; border-color: #dce4e8; border-left: 3px solid #de2d38; font-weight: 700; }
.nav-marker { border-color: #7d99a7; }
.workspace-link.is-active .nav-marker { border-color: #315e73; background: #315e73; box-shadow: none; }
.sidebar-note { color: #52636d; border-color: #dce4e8; }
button, .button { color: #315e73; border-color: #c5d2d8; border-radius: 6px; }
button:hover, .button:hover { color: #254f63; background: #edf3f5; border-color: #8fa8b3; }
.primary { background: #315e73; border-color: #315e73; color: #fff; }
.primary:hover { background: #254f63; border-color: #254f63; color: #fff; }
.eyebrow { color: #b8242e; }
th { background: #edf3f5; color: #435965; }
.workflow-path a[aria-current] { background: #edf3f5; border-top-color: #315e73; }
input, select, textarea { font-family: Raleway, Arial, sans-serif; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline-color: #e4a526; }
.app-footer { color: #52636d; }
@media(max-width:760px) { .brand { gap: 9px; font-size: 18px; } .brand-mark { width: 36px; height: 36px; flex-basis: 36px; } .brand-caption { font-size: 10px; } }
/* Long package identities/URLs remain readable on narrow company pages. */
main article p { overflow-wrap: anywhere; }
@media(max-width:1100px) {
  .mobile-menu { background: #edf3f5; color: #23313a; border-bottom: 1px solid #dce4e8; }
  .mobile-menu > summary { color: #315e73; }
  .mobile-menu > summary span { color: #52636d; }
}
/* Two real navigation destinations with a visible selected view. */
.account-menu { flex-wrap: wrap; justify-content: flex-end; gap: 10px 14px; }
.workspace-view-switch { display: inline-grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); background: #edf3f5; border: 1px solid #c5d2d8; border-radius: 8px; padding: 3px; gap: 3px; max-width: 420px; min-width: 0; }
.workspace-view-switch a { display: flex; align-items: center; justify-content: center; padding: 9px 12px; min-height: 40px; color: #315e73; font-size: 12px; font-weight: 600; text-align: center; text-decoration: none; border: 1px solid transparent; border-radius: 5px; line-height: 1.4; overflow-wrap: anywhere; }
.workspace-view-switch a:hover { background: #e0eaee; }
.workspace-view-switch a[aria-current="page"] { background: #315e73; color: #fff; border-color: #315e73; font-weight: 700; box-shadow: 0 1px 3px #173f5226; }
@media(max-width:760px) { .workspace-view-switch { flex-basis: 100%; max-width: 100%; } .workspace-view-switch a { min-height: 44px; padding: 8px; } }
@media(max-width:760px) {
  .operator-workspace .app-header { flex-wrap: wrap; }
  .operator-workspace .account-menu { width: 100%; }
  .operator-workspace .workspace-view-switch { order: -1; flex: 1 1 100%; }
}
.package-association { border-top: 1px solid var(--line); padding: 18px 0; overflow-wrap: anywhere; }
.package-association h3 { font-size: 17px; }

.package-check { overflow-wrap: anywhere; }
