/*
 * FAST, on top of cetome.com's own stylesheet (css/cetome.css: the tokens, the bar, the hero, the footer, the
 * buttons, the figures, the filters, the tables and the app controls of the RED self-assessment). This sheet only
 * adds what FAST has and cetome.com has not: the workspace bar, the questionnaire cards, the measures, the ICS
 * rows, the IXIT fields, the assessment, the status charts and graph, the account pages, the admin pages.
 * Loaded after cetome.css; the rules sit in the "apps" layer, the site's highest.
 */
/* the hero's content sits on the same edges as the rest of the page (cetome.css sets the hero grid outside any layer, so this rule lives outside the layer too) */
.hero-wrapper .hero-content-grid { max-width: 100rem; padding-left: clamp(1rem, 3vw, 3rem); padding-right: clamp(1rem, 3vw, 3rem); }

@layer apps {
  .hero-title-last { white-space: nowrap; }

  /* the screen is used: the containers go to 100rem; paragraphs keep a readable measure */
  .article-container { max-width: 100rem; padding-inline: clamp(1rem, 3vw, 3rem); }
  .fast-lead, .fast-help, .prov-text, .measure-desc, .article-content p, .article-content li { max-width: 80ch; }

  /* a text link reads as a link: blue, underlined, darker on hover. Buttons, tags and menu items carry a class and are left alone */
  main a:not([class]), .workspace-saved a, .fast-help a, .fast-lead a, .figure a, .toast a, .form-card-text a, .field-help a { color: var(--color-brand-blue); font-weight: var(--font-weight-semibold); text-decoration: underline; text-decoration-color: var(--color-blue-300); text-underline-offset: 3px; transition: color 150ms ease, text-decoration-color 150ms ease; }
  main a:not([class]):hover, .workspace-saved a:hover, .fast-help a:hover, .fast-lead a:hover, .form-card-text a:hover, .field-help a:hover { color: var(--color-brand-blue-deep, #003a8f); text-decoration-color: currentColor; }
  .hero-wrapper p a { color: var(--color-white); text-decoration: underline; text-underline-offset: 3px; }

  /* the measures: the threat filter, the view toggle, the table */
  .tick-filter { position: relative; }
  .lv-filters { display: contents; }
  .lv-filters-toggle { display: none; }
  @media (max-width: 767px) {
    .lv-filters-toggle { display: inline-flex; align-items: center; gap: 0.35rem; }
    .lv-filters-toggle[aria-expanded="true"] { border-color: var(--color-brand-blue); color: var(--color-brand-blue); background: var(--color-blue-50); }
    .lv-filters { display: none; width: 100%; flex-wrap: wrap; gap: 0.5rem; }
    .lv-filters.is-open { display: flex; }
  }
  .tick-filter > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem; }
  .tick-filter > summary::-webkit-details-marker { display: none; }
  .tick-filter > summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
  .tick-filter.is-active > summary { border-color: var(--color-brand-blue); background: var(--color-brand-blue); color: var(--color-white); }
  .tick-count { display: inline-grid; place-items: center; min-width: 1.2rem; height: 1.2rem; padding: 0 0.3rem; border-radius: 999px; background: var(--color-white); color: var(--color-brand-blue); font-size: 10px; font-weight: var(--font-weight-black); }
  .tick-panel { position: absolute; top: calc(100% + 0.4rem); left: 0; z-index: 30; width: min(32rem, 90vw); padding: 1rem; border: 1px solid var(--color-slate-200); border-radius: var(--radius-xl); background: var(--color-white); box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14); }
  .tick-panel.is-flipped { left: auto; right: 0; }
  .tick-panel-narrow { width: 18rem; }
  .tick-item strong { font-weight: var(--font-weight-black); }
  .tag-beyond { background: #ede9fe; color: #5b21b6; border-color: #c4b5fd; }
  .tick-panel .fast-help { margin: 0 0 0.5rem; }
  .tick-list { max-height: 20rem; overflow-y: auto; display: flex; flex-direction: column; gap: 0.15rem; margin-bottom: 0.5rem; }
  .tick-item { display: flex; align-items: baseline; gap: 0.4rem; padding: 0.3rem 0.4rem; border-radius: var(--radius-md); font-size: var(--text-small); color: var(--color-slate-800); cursor: pointer; }
  .tick-item:hover { background: var(--color-slate-50); }
  .tick-item input { margin: 0; flex: none; }
  .tick-item small { color: var(--color-slate-500); }
  .toolbar-count { margin-left: auto; }
  .toolbar-note { flex-basis: 100%; display: flex; align-items: flex-start; gap: 0.4rem; margin: 0; }
  .toolbar-note svg { width: 1rem; height: 1rem; flex: none; margin-top: 0.15rem; }
  .filter-btn svg, .tick-filter > summary svg { width: 1rem; height: 1rem; flex: none; }
  .view-toggle .filter-btn { display: inline-flex; align-items: center; gap: 0.35rem; }
  .lv-table { margin-top: 0; }
  .lv-table table { width: 100%; }
  .lv-table td, .lv-table th { vertical-align: top; }
  .lv-table td { padding-top: 0.8rem; }
  .lv-table thead th { white-space: nowrap; }
  .lv-table .assessor-only { display: none; }
  body.assessor-mode .lv-table .assessor-only { display: table-cell; }
  .lv-toolbar .assessor-only { display: none; }
  body.assessor-mode .lv-toolbar .assessor-only { display: inline-block; }
  .lv-row-key { font-weight: var(--font-weight-black); letter-spacing: 0.08em; color: var(--color-slate-600); white-space: nowrap; }
  .lv-row-muted { color: var(--color-slate-500); white-space: nowrap; }
  .lv-row-num { text-align: center; }
  .lv-row-text { min-width: 18rem; }
  .lv-row-text .prov-head { margin-bottom: 0.25rem; }
  .lv-row-desc summary { cursor: pointer; color: var(--color-slate-800); }
  .lv-row-desc[open] > summary .lv-row-short, .lv-row-desc:not([open]) > summary .lv-row-full { display: none; }   /* the full text takes the place of the short one */
  .lv-row-desc div { margin-top: 0.35rem; font-size: var(--text-label); color: var(--color-slate-600); max-width: 60ch; }
  .lv-row-plain { margin: 0; color: var(--color-slate-800); }
  .lv-row-decide { min-width: 14rem; }
  .lv-row-decide .fast-select { max-width: none; }
  .lv-row.is-na td { color: var(--color-slate-500); }

  .sort-btn { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 0.35rem; }
  .sort-btn::after { content: ""; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: 0.35; }
  th[aria-sort="ascending"] .sort-btn::after { opacity: 1; transform: rotate(180deg); }
  th[aria-sort="descending"] .sort-btn::after { opacity: 1; }
  .measure-row-key { font-weight: var(--font-weight-black); letter-spacing: 0.08em; color: var(--color-slate-600); white-space: nowrap; }
  .measure-row-title strong { display: block; color: var(--color-slate-900); }
  .measure-row-desc { margin-top: 0.3rem; font-size: var(--text-label); line-height: 1.55; color: var(--color-slate-600); max-width: 60ch; }
  .measure-row-desc a { color: var(--color-brand-blue); font-weight: var(--font-weight-semibold); }
  .measure-row-decide { min-width: 12rem; }
  .measure-row-decide .fast-select { max-width: none; }
  .measure-note-compact { margin-top: 0.35rem; min-height: 3.6rem; font-size: var(--text-small); line-height: 1.5; }
  .note-required { display: block; margin: 0.35rem 0 0.1rem; font-size: var(--text-label); font-weight: var(--font-weight-semibold); color: #a16207; }
  .is-needs .measure-note { border-color: #d97706; background: #fffbeb; }

  /* the example products on the home page */
  /* the examples: one line under the instructions, each example a link that loads it */
  .demo-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 1rem; margin: 0 0 1.75rem; font-size: var(--text-small); color: var(--color-slate-600); }
  .demo-line-label { font-weight: var(--font-weight-semibold); color: var(--color-slate-700); }
  .demo-inline { margin: 0; }
  .demo-inline-btn { padding: 0; border: 0; background: none; font: inherit; font-weight: var(--font-weight-semibold); color: var(--color-brand-blue); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
  .demo-inline-btn:hover { color: var(--color-brand-blue-deep, #003a8f); }

  /* the contact form */
  .hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
  altcha-widget { display: block; margin-top: 0.25rem; --altcha-border-radius: var(--radius-lg); --altcha-color-border: var(--color-slate-300); --altcha-max-width: 100%; }
  .contact-sent { max-width: 48rem; }

  .assessor-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; margin: 0 0 1rem; }
  .graph-colour-label { display: inline-flex; align-items: center; gap: 0.5rem; }
  .fast-select-compact { width: auto; max-width: 14rem; padding-block: 0.4rem; }
  .login-tabs { margin-bottom: 1rem; }
  .login-tabs .filter-btn { text-decoration: none; }
  /* the admin tabs in the clothes of the workspace steps */
  .admin-nav a { text-transform: none; letter-spacing: 0.04em; }

  /* the dialog: the app's own confirmation and prompt box */
  .fast-dialog { position: fixed; inset: 0; margin: auto; width: min(32rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); overflow: auto; padding: 0; border: 1px solid var(--color-slate-200); border-radius: var(--radius-2xl); background: var(--color-white); color: var(--color-slate-900); box-shadow: 0 24px 64px rgba(15, 23, 42, 0.25); }
  .fast-dialog::backdrop { background: rgba(15, 23, 42, 0.45); backdrop-filter: blur(2px); }
  .fast-dialog[open] { animation: fast-dialog-in 160ms ease-out; }
  @keyframes fast-dialog-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  @media (prefers-reduced-motion: reduce) { .fast-dialog[open] { animation: none; } }
  .fast-dialog-form { padding: 1.5rem 1.75rem 1.5rem; }
  .fast-dialog-form .fast-h2 { margin: 0 0 0.5rem; }
  .fast-dialog-text { margin: 0 0 1rem; font-size: var(--text-small); line-height: 1.6; color: var(--color-slate-700); }
  .fast-dialog-form .field { margin-bottom: 1rem; }
  .fast-dialog-actions { display: flex; justify-content: flex-end; gap: 0.75rem; flex-wrap: wrap; }
  .btn-danger-solid, .btn-danger-solid:hover { background: var(--color-red-600); border-color: var(--color-red-600); color: var(--color-white); }
  .btn-danger-solid:hover { filter: brightness(0.92); }

  /* the hero: the note under the buttons, the cards on the right */
  .hero-note { margin: 1rem 0 0; font-size: var(--text-small); line-height: 1.6; color: rgba(255, 255, 255, 0.78); max-width: 40rem; }
  .hero-card-form { margin: 0; }
  .hero-card-button { width: 100%; text-align: left; font: inherit; cursor: pointer; appearance: none; }
  .hero-card-quiet { opacity: 0.85; }
  .hero-card-quiet:hover { opacity: 1; }

  .draft-choice { margin: 0 0 1.5rem; }
  .draft-choice .toolbar { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
  .draft-choice form { margin: 0; }

  /* the risk assessment */
  .risk-tag { display: inline-flex; align-items: center; padding: 0.15rem 0.6rem; border-radius: var(--radius-md); border: 1px solid var(--color-slate-200); font-size: var(--text-label); font-weight: var(--font-weight-semibold); text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; cursor: help; }
  .risk-tag.is-verylow { border-color: var(--color-green-200); background: var(--color-white); color: var(--color-green-900); }
  .risk-tag.is-low { border-color: var(--color-green-200); background: var(--color-green-50); color: var(--color-green-900); }
  .risk-matrices { display: grid; gap: 1.5rem; margin: 0 0 1rem; }
  @media (width >= 64rem) { .risk-matrices { grid-template-columns: 1fr 1fr; } }
  .risk-matrix-block { display: flex; flex-direction: column; padding: 1.25rem 1.5rem 1rem; border: 1px solid var(--color-slate-200); border-radius: var(--radius-2xl); background: var(--color-white); }
  .risk-matrix-block > .risk-matrix { margin-top: auto; }   /* side by side, the grids line up whatever the heads above them */
  .risk-matrix-block .fast-h4 { margin: 0 0 0.25rem; }
  .risk-matrix-block .fast-help { margin-bottom: 0.75rem; }
  .risk-matrix { display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; gap: 0.25rem; }
  .risk-matrix-axis-y { grid-row: 1; grid-column: 1; display: flex; align-items: center; }
  .risk-matrix-axis-y span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: var(--text-label); font-weight: var(--font-weight-semibold); text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-slate-500); }
  .risk-matrix-axis-x { grid-row: 2; grid-column: 2; text-align: center; font-size: var(--text-label); font-weight: var(--font-weight-semibold); text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-slate-500); }
  .risk-matrix-grid { grid-row: 1; grid-column: 2; display: grid; grid-template-columns: auto repeat(5, minmax(0, 1fr)); gap: 3px; position: relative; }
  .risk-arrows { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; }
  .risk-arrows line { stroke: #0044aa; stroke-width: 2; stroke-opacity: 0.8; stroke-linecap: round; }
  .risk-cell .risk-chip, .risk-cell .risk-from, .risk-cell .risk-ghost { position: relative; z-index: 3; }
  .risk-from { display: inline-flex; align-items: center; padding: 0.1rem 0.4rem; border-radius: 999px; border: 1px solid rgba(15, 23, 42, 0.25); color: var(--color-slate-900); font-size: 0.68rem; font-weight: var(--font-weight-semibold); line-height: 1.3; background: var(--color-white); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.15); opacity: 0.45; cursor: help; }
  .risk-matrix-views { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; }
  .risk-matrix-views .filter-btn[aria-pressed="true"] { border-color: var(--color-brand-blue); background: var(--color-brand-blue); color: var(--color-white); }
  .risk-matrices-one { grid-template-columns: 1fr; max-width: 40rem; }
  .risk-matrices[hidden] { display: none; }
  .risk-matrix-label-y, .risk-matrix-label-x { display: flex; align-items: center; justify-content: center; font-size: var(--text-label); font-weight: var(--font-weight-semibold); color: var(--color-slate-600); gap: 0.3rem; }
  .risk-matrix-label-y { flex-direction: column; justify-content: center; padding-right: 0.4rem; min-width: 2.2rem; text-align: center; }
  .risk-matrix-label-y small, .risk-matrix-label-x small { font-weight: var(--font-weight-normal); color: var(--color-slate-500); font-size: 0.62rem; line-height: 1.1; }
  .risk-matrix-label-x { flex-direction: column; padding-top: 0.3rem; }
  .risk-cell { aspect-ratio: 1; min-height: 3rem; padding: 0.3rem; border-radius: var(--radius-sm); display: flex; flex-wrap: wrap; align-content: flex-start; gap: 0.25rem; border: 1px solid rgba(15, 23, 42, 0.06); transition: outline-color 120ms; outline: 2px solid transparent; }
  .risk-cell.is-verylow, .risk-cell-swatch.is-verylow { background: #f0fdf4; }
  .risk-cell.is-low, .risk-cell-swatch.is-low { background: #bbf7d0; }
  .risk-cell.is-medium, .risk-cell-swatch.is-medium { background: #fef08a; }
  .risk-cell.is-high, .risk-cell-swatch.is-high { background: #fdba74; }
  .risk-cell.is-critical, .risk-cell-swatch.is-critical { background: #f87171; }
  .risk-cell.is-over { outline-color: var(--color-brand-blue); }
  .risk-chip { display: inline-flex; align-items: center; padding: 0.1rem 0.4rem; border-radius: 999px; border: 1px solid rgba(15, 23, 42, 0.25); background: var(--color-white); color: var(--color-slate-900); font-size: 0.68rem; font-weight: var(--font-weight-semibold); line-height: 1.3; cursor: pointer; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.15); }
  .risk-chip:hover { border-color: var(--color-brand-blue); color: var(--color-brand-blue); }
  .risk-matrix.is-editable .risk-chip { cursor: grab; }
  .risk-chip.is-dragging { opacity: 0.5; }
  .risk-chip.is-faded, .risk-ghost.is-faded, .risk-from.is-faded { opacity: 0.2; filter: grayscale(1); }
  .risk-matrix.is-editable .risk-chip.is-faded { cursor: default; }
  .risk-chip.is-moved { animation: risk-chip-in 700ms ease-out; }
  @keyframes risk-chip-in { from { transform: scale(1.4); box-shadow: 0 0 0 4px rgba(0, 68, 170, 0.25); } to { transform: none; } }
  .risk-matrix-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin: 0 0 0.75rem; }
  .risk-matrix-tools .risk-modified-none { margin: 0; }
  .risk-matrix-tools .btn-nav[disabled] { opacity: 0.45; cursor: not-allowed; }
  .risk-chip.is-set { border-color: var(--color-brand-blue); background: var(--color-brand-blue); color: var(--color-white); }
  .risk-chip.is-set:hover { background: var(--color-blue-800); border-color: var(--color-blue-800); color: var(--color-white); }
  .risk-ghost { display: inline-flex; align-items: center; padding: 0.1rem 0.4rem; border-radius: 999px; border: 1px solid rgba(15, 23, 42, 0.25); color: var(--color-slate-900); font-size: 0.68rem; font-weight: var(--font-weight-semibold); line-height: 1.3; background: var(--color-white); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.15); opacity: 0.55; cursor: help; }
  .risk-legend-chip { margin-left: 0.5rem; cursor: default; }
  .risk-matrix .risk-ghost { display: none; }
  .risk-matrix.show-fast .risk-ghost { display: inline-flex; }
  .risk-legend-ghost .risk-ghost { display: inline-flex; }
  .risk-show-fast { display: inline-flex; align-items: center; gap: 0.35rem; margin-left: auto; font-size: var(--text-label); color: var(--color-slate-700); cursor: pointer; }
  .risk-matrices-status { grid-template-columns: 1fr; max-width: 36rem; }
  .risk-matrix-target .risk-matrices { max-width: none; }
  .risk-matrix-target { margin: 0 0 1rem; }
  .risk-matrix-target > summary { color: var(--color-brand-blue); font-weight: var(--font-weight-semibold); cursor: pointer; }
  .risk-matrix-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.9rem; margin: 0 0 2rem; font-size: var(--text-label); color: var(--color-slate-600); }
  .risk-cell-swatch { display: inline-block; width: 0.9rem; height: 0.9rem; border-radius: 3px; border: 1px solid rgba(15, 23, 42, 0.1); vertical-align: -0.15rem; margin-right: 0.2rem; }
  .scale-grid { max-width: 34rem; margin-bottom: 1rem; }
  .admin-section .fast-panel .scale-select { padding: 0.15rem 0.2rem; font-size: 0.7rem; border-radius: var(--radius-sm); }
  .admin-section .fast-panel .riskadmin-table .fast-select { padding: 0.4rem 0.6rem; font-size: var(--text-small); }
  .scale-cell { aspect-ratio: auto; min-height: 2.6rem; padding: 0.2rem; }
  .scale-select { width: 100%; font-size: 0.7rem; padding: 0.15rem 0.2rem; border: 1px solid rgba(15, 23, 42, 0.25); border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.85); color: var(--color-slate-900); }
  .scale-warnings { grid-column: 1 / -1; margin: 0.5rem 0 0; padding: 0.5rem 0.75rem 0.5rem 1.75rem; border: 1px solid #fde68a; border-radius: var(--radius-md); background: #fefce8; color: #713f12; font-size: var(--text-label); }
  .scale-warnings[hidden] { display: none; }
  .risk-scale-locked { display: flex; align-items: center; gap: 0.4rem; }
  .risk-scale-locked svg { width: 1rem; height: 1rem; flex: none; color: var(--color-slate-500); }
  .risk-scale-form { display: flex; flex-wrap: wrap; align-items: end; gap: 0.6rem; margin-top: 0.75rem; }
  .risk-scale-form .risk-field { margin: 0; width: 6.5rem; }
  #risk-scale-form { flex-direction: column; align-items: stretch; }
  .risk-scale-form .form-control { width: 100%; }
  .risk-tag.is-medium { border-color: #fde68a; background: #fefce8; color: #713f12; }
  .risk-tag.is-high { border-color: #fdba74; background: #fff7ed; color: #7c2d12; }
  .risk-tag.is-critical { border-color: var(--color-red-200); background: var(--color-red-600); color: var(--color-white); }
  .risk-tag.is-none { color: var(--color-slate-500); cursor: default; }
  .risk-levels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 1rem; margin: 0.9rem 0; }
  @media (width >= 48rem) { .risk-levels { grid-template-columns: repeat(4, auto); justify-content: start; gap: 0.6rem 1.75rem; } }
  .risk-level { display: flex; flex-direction: column; gap: 0.3rem; align-items: flex-start; }
  .risk-level-label { font-size: var(--text-label); text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-slate-500); font-weight: var(--font-weight-semibold); }
  .risk-coverage { display: block; margin-top: 0.2rem; font-size: var(--text-label); color: var(--color-slate-500); }
  .risk-level .risk-coverage { display: inline; margin: 0 0 0 0.4rem; }
  .risk-field { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 0.6rem; font-size: var(--text-small); }
  .risk-field > span { font-weight: var(--font-weight-semibold); color: var(--color-slate-700); }
  .risk-select.is-set { border-color: var(--color-brand-blue); color: var(--color-brand-blue); font-weight: var(--font-weight-semibold); }
  .risk.is-na .measure-title, .risk-row.is-na td { color: var(--color-slate-500); }
  .risk-row-user { min-width: 14rem; }
  .risk-row-measures { white-space: normal; }
  .risk-measures { margin: 0.9rem 0; }
  .risk-measures .measure-tags-label { display: block; margin-bottom: 0.4rem; color: var(--color-brand-blue); }
  .risk-measure-group { margin: 0.25rem 0; border: 1px solid var(--color-slate-200); border-radius: var(--radius-md); background: var(--color-white); }
  .risk-measure-group > summary { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.6rem; cursor: pointer; list-style: none; }
  .risk-measure-group > summary::-webkit-details-marker { display: none; }
  .risk-measure-group > summary::before { content: '▸'; color: var(--color-slate-400); font-size: 0.8rem; }
  .risk-measure-group[open] > summary::before { content: '▾'; }
  .risk-measure-count { font-size: var(--text-label); color: var(--color-slate-500); }
  .risk-measure-list { margin: 0; padding: 0 0.6rem 0.5rem 1.6rem; font-size: var(--text-small); line-height: 1.5; color: var(--color-slate-700); }
  .risk-measure-list li { padding: 0.15rem 0; }
  .risk-measure-list a.ref { font-weight: var(--font-weight-semibold); }
  .risk-row-user select { margin-bottom: 0.35rem; }
  .risk-row-user .risk-tag { margin-top: 0.1rem; }
  .fast-steps-list { padding-left: 1.25rem; margin: 0 0 1rem; font-size: var(--text-small); line-height: 1.6; color: var(--color-slate-700); }
  .fast-steps-list li { margin-bottom: 0.5rem; }
  .fast-figures-7 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  @media (width >= 48rem) { .fast-figures-7 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
  @media (width >= 64rem) { .fast-figures-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
  .live-risks { margin: 0 0 1.25rem; font-size: var(--text-small); color: var(--color-slate-700); }
  .tag-asset { border-color: var(--color-slate-300); background: var(--color-slate-50); color: var(--color-slate-700); text-transform: none; letter-spacing: 0; }
  .tag-kind-component { border-color: var(--color-blue-200); background: var(--color-blue-50); color: var(--color-blue-800); }
  .tag-kind-data { border-color: #c4b5fd; background: #f5f3ff; color: #5b21b6; }
  .tag-kind-function { border-color: var(--color-green-200); background: var(--color-green-50); color: var(--color-green-900); }
  .asset-list { display: flex; flex-direction: column; gap: 0.75rem; margin: 1rem 0; }
  .asset { padding: 0.75rem 1rem; border: 1px solid var(--color-slate-200); border-radius: var(--radius-lg); background: var(--color-slate-50); }
  .asset-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
  .asset-head .asset-name { flex: 1 1 12rem; }
  .asset-risks { margin-top: 0.5rem; font-size: var(--text-small); }
  .asset-risks summary { cursor: pointer; color: var(--color-brand-blue); font-weight: var(--font-weight-semibold); }
  .asset-risk-list { margin-top: 0.5rem; max-height: 14rem; overflow: auto; }
  .asset-add { display: grid; gap: 0.5rem 1rem; align-items: end; margin-top: 1rem; }
  .asset-add .fast-select, .asset-add .form-control { width: 100%; }
  @media (width >= 48rem) { .asset-add { grid-template-columns: 1fr 1.4fr auto; } .asset-add .risk-field { margin-bottom: 0; } }
  .grid-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0 0 0.75rem; }
  .grid-tabs .grid-dirty { margin-left: auto; color: var(--color-brand-blue); font-weight: var(--font-weight-semibold); }
  .grid-tabs .btn-nav[disabled] { opacity: 0.45; cursor: not-allowed; }
  .grid-wrap { overflow: auto; max-height: 72vh; border: 1px solid var(--color-slate-200); border-radius: var(--radius-lg); background: var(--color-white); }
  .grid-wrap[hidden] { display: none; }
  .risk-grid { border-collapse: separate; border-spacing: 0; font-size: var(--text-label); min-width: 100%; }
  .risk-grid th, .risk-grid td { border-right: 1px solid var(--color-slate-100); border-bottom: 1px solid var(--color-slate-100); padding: 0; background: var(--color-white); }
  .risk-grid thead th { position: sticky; top: 0; z-index: 2; padding: 0.4rem 0.3rem; vertical-align: bottom; text-align: center; background: var(--color-slate-50); font-weight: var(--font-weight-semibold); color: var(--color-slate-800); }
  .risk-grid th.grid-risk { width: 4.6rem; min-width: 4.6rem; }
  .risk-grid th.grid-risk small { display: block; max-width: 4.2rem; margin: 0.15rem auto 0; font-weight: var(--font-weight-normal); color: var(--color-slate-500); font-size: 0.6rem; line-height: 1.15; white-space: normal; }
  .risk-grid th.grid-corner, .risk-grid th.grid-threat { position: sticky; left: 0; z-index: 1; text-align: left; padding: 0.3rem 0.6rem; min-width: 15rem; max-width: 15rem; background: var(--color-slate-50); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-right: 2px solid var(--color-slate-200); }
  .risk-grid th.grid-corner { z-index: 3; }
  .risk-grid th.grid-threat span { font-weight: var(--font-weight-normal); color: var(--color-slate-700); }
  .risk-grid tr.is-hl th, .risk-grid tr.is-hl td, .risk-grid td.is-hl, .risk-grid th.is-hl { background: #e8f0fe; }
  .risk-grid tr.is-hl th.grid-threat, .risk-grid thead th.is-hl { background: #d6e4ff; color: var(--color-brand-blue); }
  .grid-cell { width: 100%; min-width: 2.6rem; height: 2rem; border: 0; margin: 0; text-align: center; font: inherit; font-weight: var(--font-weight-semibold); color: var(--color-slate-900); background: transparent; outline: none; }
  .grid-cell:focus { outline: 2px solid var(--color-brand-blue); outline-offset: -2px; }
  .grid-cell.is-dirty { box-shadow: inset 0 0 0 2px var(--color-brand-blue); }
  .grid-cell.v-1, .grid-swatch.v-1 { background: #c6efce; }
  .grid-cell.v-2, .grid-swatch.v-2 { background: #d9f0b5; }
  .grid-cell.v-3, .grid-swatch.v-3 { background: #ffeb9c; }
  .grid-cell.v-4, .grid-swatch.v-4 { background: #ffc27c; }
  .grid-cell.v-5, .grid-swatch.v-5 { background: #ff9a9a; }
  .grid-swatch { display: inline-block; min-width: 1.4rem; padding: 0.05rem 0.3rem; border-radius: 3px; text-align: center; font-weight: var(--font-weight-semibold); color: var(--color-slate-900); }
  .riskadmin-table tr.is-linked td { background: var(--color-blue-50); }
  .riskadmin-table select { min-width: 10rem; }
  .riskadmin-pick { margin: 0.5rem 0 1rem; }
  .form-inline-fields { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }

  /* pricing */
  .pricing-grid { display: grid; gap: 1.5rem; }
  @media (width >= 48rem) { .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  .pricing-card { display: flex; flex-direction: column; }
  .pricing-card + .pricing-card { margin-top: 0; }
  .pricing-card-main { border-color: var(--color-brand-blue); box-shadow: 0 0 0 3px var(--color-blue-100); }
  .pricing-card .fast-h2 { margin: 0.25rem 0 0.5rem; }
  .pricing-price { margin: 0 0 1rem; font-size: 1.75rem; font-weight: var(--font-weight-black); color: var(--color-brand-blue); }
  .pricing-list { flex: 1; margin: 0 0 1.5rem; }
  .pricing-cta { margin: 0; }
  .pricing-table th[scope="row"] { text-align: left; font-weight: var(--font-weight-semibold); color: var(--color-slate-800); }
  .pricing-table td { text-align: center; }
  .pricing-yes { color: #15803d; font-weight: var(--font-weight-black); }
  .pricing-no { color: var(--color-slate-400); }
  .pricing-note { margin-top: 1rem; }

  /* the dropdowns of a decision, a support, a status or a verdict; the colour follows the value */
  .fast-select { appearance: none; -webkit-appearance: none; width: 100%; max-width: 20rem; padding: 0.55rem 2.2rem 0.55rem 0.8rem; border: 1px solid var(--color-slate-300); border-radius: var(--radius-lg); background: var(--color-white) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%2364748b' stroke-width='1.5'/></svg>") no-repeat right 0.8rem center; font: inherit; font-size: var(--text-small); font-weight: var(--font-weight-semibold); line-height: 1.3; color: var(--color-slate-800); cursor: pointer; transition: box-shadow 150ms ease, opacity 150ms ease; }
  .fast-select:focus-visible { outline: 2px solid var(--color-blue-300); outline-offset: 1px; }
  .fast-select.is-done, .fast-select.is-yes, .fast-select.is-compliant, .fast-select.is-pass { border-color: #15803d; color: #15803d; background-color: #f0fdf4; }
  .fast-select.is-no, .fast-select.is-non_compliant, .fast-select.is-fail { border-color: #b91c1c; color: #b91c1c; background-color: #fef2f2; }
  .fast-select.is-todo, .fast-select.is-inconclusive { border-color: #a16207; color: #a16207; background-color: #fefce8; }
  .fast-select.is-partial, .fast-select.is-alternative, .fast-select.is-in_progress { border-color: #2563eb; color: #1d4ed8; background-color: #eff6ff; }
  .fast-select.is-na { border-color: var(--color-slate-400); color: var(--color-slate-600); background-color: var(--color-slate-50); }
  .fast-select.is-saving { opacity: 0.6; }
  .fast-select.is-saved { box-shadow: 0 0 0 3px #bbf7d0; }

  /* the live status: a button in the workspace bar, a panel from the right */
  .workspace-live { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.9rem; border: 1px solid var(--color-brand-blue); border-radius: var(--radius-lg); background: var(--color-white); color: var(--color-brand-blue); font-size: var(--text-label); font-weight: var(--font-weight-bold); letter-spacing: 0.04em; white-space: nowrap; cursor: pointer; transition: all 150ms ease; }
  .workspace-live:hover, .workspace-live[aria-expanded="true"] { background: var(--color-brand-blue); color: var(--color-white); }
  .live-backdrop { position: fixed; inset: 0; z-index: 2190; background: rgba(15, 23, 42, 0.35); }
  .live-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 2200; width: min(30rem, 100vw); display: flex; flex-direction: column; background: var(--color-white); box-shadow: -12px 0 40px rgba(15, 23, 42, 0.18); transform: translateX(100%); visibility: hidden; transition: transform 250ms ease, visibility 0s linear 250ms; }
  .live-panel.is-open { transform: none; visibility: visible; transition: transform 250ms ease; }
  .live-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem 0.9rem; border-bottom: 1px solid var(--color-slate-200); }
  .live-head .fast-h2 { margin: 0; }
  .peek-back { display: inline-flex; align-items: center; gap: 0.3rem; margin: 0 0 0.5rem; padding: 0; border: 0; background: none; font: inherit; font-size: var(--text-label); font-weight: var(--font-weight-semibold); color: var(--color-brand-blue); cursor: pointer; }
  .peek-back::before { content: '←'; }
  .peek-back:hover { text-decoration: underline; text-underline-offset: 0.2em; }
  .peek-back[hidden] { display: none; }
  .live-close { padding: 0 0.3rem; border: 0; background: none; font-size: 1.9rem; line-height: 1; color: var(--color-slate-500); cursor: pointer; }
  .live-close:hover { color: var(--color-slate-900); }
  .live-body { overflow-y: auto; padding: 1rem 1.5rem 2rem; }
  .live-panel .live-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 0.5rem; }
  .live-body .fast-h4 { margin: 1.25rem 0 0.5rem; }
  .live-foot { margin-top: 1.5rem; }
  .peek-panel { width: min(42rem, 100vw); }
  .peek-foot { padding: 0.9rem 1.5rem; border-top: 1px solid var(--color-slate-200); }
  .peek-card { border: 0; padding: 0; border-radius: 0; background: none; }
  .peek-panel .measure { display: flex; flex-direction: column; gap: 1.25rem; }
  .peek-panel .prov { border-top: 0; }
  .peek-panel .prov.support-yes, .peek-panel .prov.support-no, .peek-panel .prov.is-na { background: none; }
  body.live-open { overflow: hidden; }
  @media (prefers-reduced-motion: reduce) { .live-panel, .live-panel.is-open { transition: none; } }
  .btn-locked { display: inline-flex; align-items: center; gap: 0.4rem; }
  .btn-locked svg { width: 1em; height: 1em; }
  .chart-box { position: relative; width: 100%; }   /* Chart.js sizes the canvas to this box; without it a responsive canvas grows without end */
  .chart-box canvas { display: block; }
  /* ---- Page rhythm ---- */
  body { background: var(--color-white); color: var(--color-slate-900); }
  .fast-section { padding-block: 3rem 4rem; }
  .fast-section-head { margin-bottom: 2rem; }
  .fast-howto { margin: 0 0 1.5rem; padding: 0.75rem 1rem; border: 1px solid var(--color-blue-200); border-radius: var(--radius-lg); background: var(--color-blue-50); color: var(--color-slate-800); font-size: var(--text-small); line-height: 1.6; }
  .fast-howto { display: flex; align-items: flex-start; gap: 0.6rem; }
  .fast-howto > svg { width: 1.25rem; height: 1.25rem; flex: none; margin-top: 0.1rem; color: var(--color-brand-blue); }
  .fast-howto strong { color: var(--color-brand-blue); }
  .fast-section-head + .fast-howto, .fast-lead + .fast-howto { margin-top: 1rem; }
  .fast-section-head-tight { margin-top: 3rem; }
  .fast-lead { max-width: 56rem; margin-top: 0.75rem; font-size: var(--text-body); line-height: 1.7; color: var(--color-slate-600); }
  .fast-help { margin: 0.25rem 0 0.75rem; font-size: var(--text-small); line-height: 1.6; color: var(--color-slate-600); }
  .fast-h2 { margin: 0 0 0.75rem; font-size: var(--text-xl); font-weight: var(--font-weight-extrabold); letter-spacing: -0.01em; color: var(--color-slate-900); }
  .fast-h4 { margin: 1rem 0 0.25rem; font-size: var(--text-label); font-weight: var(--font-weight-black); letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-brand-blue); }
  .fast-list { margin: 0; padding: 0; list-style: none; font-size: var(--text-small); line-height: 1.6; color: var(--color-slate-700); }
  .fast-list li { padding-block: 0.3rem; border-bottom: 1px solid var(--color-slate-100); }
  .fast-list li:last-child { border-bottom: 0; }
  .fast-list small { color: var(--color-slate-500); }
  .fast-panel { padding: 1.75rem; border: 1px solid var(--color-slate-200); border-radius: var(--radius-2xl); background: var(--color-white); }
  .fast-panel + .fast-panel { margin-top: 1.5rem; }
  .fast-two-col { display: grid; gap: 1.5rem; margin-top: 2rem; }
  .fast-three-col { display: grid; gap: 1.5rem; margin-top: 2rem; }
  @media (width >= 48rem) { .fast-three-col { grid-template-columns: 1fr 1fr; } }
  @media (width >= 80rem) { .fast-three-col { grid-template-columns: 1.15fr 1.15fr 0.8fr; } }
  .risk-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.6rem; }
  .risk-line-tags { display: inline-flex; align-items: center; gap: 0.35rem; margin-left: auto; }
  .risk-line-tags .risk-tag { font-size: 0.62rem; padding: 0.1rem 0.45rem; }
  .risk-line-arrow { color: var(--color-slate-400); font-size: var(--text-label); }
  .risk-line-legend { margin: 0.5rem 0 0.75rem; font-size: var(--text-label); color: var(--color-slate-500); text-align: right; }
  @media (width >= 64rem) { .fast-two-col { grid-template-columns: 3fr 2fr; } }
  .fast-details summary { cursor: pointer; font-weight: var(--font-weight-semibold); color: var(--color-brand-blue); margin-top: 1rem; }
  .fast-next { margin-top: 3rem; display: flex; justify-content: flex-end; }
  .fast-empty, .empty-state { padding: 2.5rem; border: 1px dashed var(--color-slate-300); border-radius: var(--radius-2xl); text-align: center; color: var(--color-slate-600); }
  .empty-state p { margin: 0 auto 1rem; max-width: 36rem; }
  .btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-block: 1.5rem; }
  .btn-small { height: 34px; padding-inline: 1rem; font-size: 10px; }
  .btn-large { height: 48px; padding-inline: 2rem; }
  .btn-danger { border-color: var(--color-red-600); color: var(--color-red-600); }
  .btn-danger:hover { background: var(--color-red-600); border-color: var(--color-red-600); color: var(--color-white); }
  .btn-nav-outline { background: var(--color-white); color: var(--color-brand-blue); }
  .btn-nav-outline:hover { background: var(--color-brand-blue); color: var(--color-white); }
  .btn-hero-primary { border-color: var(--color-white); background: var(--color-white); color: var(--color-brand-blue); }
  .btn-hero-primary:hover { background: var(--color-slate-100); border-color: var(--color-slate-100); color: var(--color-brand-blue); }
  .btn-hero-secondary { border-color: rgba(255, 255, 255, 0.5); background: transparent; color: var(--color-white); }
  .btn-hero-secondary:hover { border-color: var(--color-white); background: rgba(255, 255, 255, 0.1); color: var(--color-white); }
  .hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
  .inline-form { display: inline; }
  .link-btn { padding: 0; border: 0; background: none; font-size: var(--text-label); font-weight: var(--font-weight-semibold); color: var(--color-brand-blue); cursor: pointer; }
  .link-btn:hover { text-decoration: underline; }
  .skip-link { position: absolute; left: -999px; top: 0; z-index: 3000; padding: 0.75rem 1rem; background: var(--color-brand-blue); color: var(--color-white); }
  .skip-link:focus { left: 1rem; }

  /* ---- The bar: the user menu beside the menu ---- */
  .user-menu { position: relative; }
  .user-btn { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.3rem 0.75rem 0.3rem 0.3rem; border: 1px solid var(--color-slate-200); border-radius: 999px; background: var(--color-white); cursor: pointer; font-size: var(--text-label); font-weight: var(--font-weight-bold); color: var(--color-slate-900); }
  .user-btn:hover { border-color: var(--color-brand-blue); }
  .avatar { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--color-brand-blue); color: var(--color-white); font-size: var(--text-label); font-weight: var(--font-weight-black); }
  .user-menu-list { position: absolute; right: 0; top: calc(100% + 0.5rem); z-index: 2300; min-width: 15rem; padding: 0.5rem; border: 1px solid var(--color-slate-200); border-radius: var(--radius-xl); background: var(--color-white); box-shadow: 0 12px 30px -18px rgba(2, 15, 41, 0.55); }
  .user-menu-head { padding: 0.5rem 0.75rem 0.75rem; border-bottom: 1px solid var(--color-slate-200); margin-bottom: 0.4rem; font-size: var(--text-label); color: var(--color-slate-600); }
  .user-menu-list a, .user-menu-list button { display: block; width: 100%; padding: 0.55rem 0.75rem; border: 0; border-radius: var(--radius-md); background: none; text-align: left; font-size: var(--text-small); font-weight: var(--font-weight-semibold); color: var(--color-slate-900); cursor: pointer; }
  .user-menu-list a:hover, .user-menu-list button:hover { background: var(--color-blue-50); color: var(--color-brand-blue); }
  .mobile-link-btn { width: 100%; border: 0; background: none; text-align: left; }
  .mobile-overlay[hidden] { display: none; }
  .mobile-footer { padding: 1rem 2rem 1.5rem; }

  /* ---- Toasts ---- */
  .toast-stack { position: fixed; top: 6rem; right: 1.5rem; z-index: 2500; display: flex; flex-direction: column; gap: 0.5rem; max-width: min(24rem, calc(100vw - 3rem)); }
  .toast-note { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.85rem 1rem; border-radius: var(--radius-lg); background: var(--color-brand-blue); color: var(--color-white); font-size: var(--text-small); box-shadow: 0 12px 30px -18px rgba(2, 15, 41, 0.55); }
  .toast-error { background: var(--color-red-600); }
  .toast-close { margin-left: auto; border: 0; background: none; color: inherit; font-size: 1.25rem; line-height: 1; cursor: pointer; }
  .notice { margin-block: 1rem; padding: 1rem 1.25rem; border-radius: var(--radius-lg); border: 1px solid var(--color-blue-200); background: var(--color-blue-50); color: var(--color-slate-900); font-size: var(--text-small); }
  .notice-error { border-color: var(--color-red-200); background: var(--color-red-50); color: var(--color-red-900); }
  .notice ul { margin: 0; padding-left: 1.2rem; }

  /* ---- The workspace bar: the product and its six steps ---- */
  .workspace-bar { position: sticky; top: 5rem; z-index: 40; background: var(--color-white); border-bottom: 1px solid var(--color-slate-200); box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05); }
  .workspace-bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 2rem; padding-block: 0.6rem; }
  .workspace-product { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; min-width: 0; }
  .workspace-kicker { font-size: var(--text-micro); font-weight: var(--font-weight-black); letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-slate-500); }
  .workspace-name { font-size: var(--text-base); font-weight: var(--font-weight-extrabold); color: var(--color-slate-900); }
  .workspace-saved { font-size: var(--text-label); color: var(--color-slate-500); }
  .workspace-steps { display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: none; flex-basis: 100%; order: 3; }   /* always on their own line under the product, signed in or not */
  .workspace-bar-inner .workspace-live { order: 2; margin-left: auto; }
  .workspace-step { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.75rem; border-radius: var(--radius-lg); font-size: var(--text-label); font-weight: var(--font-weight-bold); letter-spacing: 0.04em; color: var(--color-slate-600); white-space: nowrap; text-decoration: none; }
  .workspace-step:hover { background: var(--color-slate-50); color: var(--color-brand-blue); }
  .workspace-step.active { background: var(--color-brand-blue); color: var(--color-white); }
  .workspace-step-no { display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--color-slate-200); font-size: 10px; font-weight: var(--font-weight-black); color: var(--color-slate-700); }
  .workspace-step.active .workspace-step-no { background: var(--color-white); color: var(--color-brand-blue); }

  /* ---- Figures (the band of cetome.com's About page, in a card) ---- */
  .fast-figures { max-width: none; padding: 1.5rem 1.75rem; margin-block: 0 2rem; border: 1px solid var(--color-slate-200); border-radius: var(--radius-2xl); grid-template-columns: repeat(2, minmax(0, 1fr)); }
  @media (width >= 48rem) { .fast-figures { grid-template-columns: repeat(4, minmax(0, 1fr)); } .fast-figures-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } .fast-figures-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
  .fast-figures .figure-value { font-size: clamp(1.6rem, 3vw, 2.25rem); }
  a.figure { text-decoration: none; }
  a.figure:hover .figure-value { color: var(--color-brand-blue-light); }

  /* ---- Hero sidebar cards (the cetome compact card) ---- */
  .hero-card-link { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; border-radius: var(--radius-2xl); background: var(--color-white); color: var(--color-slate-700); text-decoration: none; box-shadow: 0 12px 30px -18px rgba(2, 15, 41, 0.55); transition: transform 200ms ease; }
  .hero-card-link:hover { transform: translateY(-2px); color: var(--color-slate-700); }
  .compact-card-title { display: block; font-size: var(--text-base); font-weight: var(--font-weight-extrabold); color: var(--color-brand-blue); }
  .compact-card-sub { display: block; font-size: var(--text-label); color: var(--color-slate-600); }
  .compact-card-arrow { font-size: 1.25rem; color: var(--color-brand-blue); }

  /* ---- The questionnaire: cetome.com's app controls, with the choice cards of the RED scoping app ---- */
  .fast-questionnaire { margin-top: 1rem; }
  .fast-questionnaire .form-row { margin-bottom: 1.75rem; }
  .fast-questionnaire .cards h3 { font-size: var(--text-base); }
  .fast-questionnaire .cards h3 .required { color: var(--color-red-500); }
  .fast-q-section { margin: 3rem 0 1.25rem; padding-top: 1.5rem; border-top: 1px solid var(--color-slate-200); }
  .fast-q-section-title { margin: 0; font-size: var(--text-label); font-weight: var(--font-weight-black); letter-spacing: 0.4em; text-transform: uppercase; color: var(--color-brand-blue); }
  .fast-q-section-help { margin: 0.4rem 0 0; font-size: var(--text-small); color: var(--color-slate-600); }
  .fast-q-help { margin: -0.5rem 0 0.75rem; font-size: var(--text-label); color: var(--color-slate-500); }
  .fast-choices { display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
  .fast-choices-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  @media (width < 40rem) { .fast-choices-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  .fast-choice { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem; padding: 0.85rem 0.75rem; border: 2px solid var(--color-slate-300); border-radius: var(--radius-lg); background: var(--color-slate-50); text-align: center; font-size: var(--text-small); color: var(--color-slate-700); cursor: pointer; transition: all 150ms ease; user-select: none; }
  .fast-choice input { position: absolute; opacity: 0; width: 0; height: 0; }
  .fast-choice .toggle-label { margin: 0; font-size: var(--text-small); font-weight: var(--font-weight-bold); color: var(--color-slate-900); }
  .fast-choice em { font-size: var(--text-label); font-style: italic; opacity: 0.85; }
  .fast-choice:hover { border-color: var(--color-brand-blue-light); background: var(--color-white); }
  .fast-choice.active, .fast-choice:has(input:checked) { border-color: var(--color-brand-blue); background: var(--color-brand-blue); color: var(--color-white); }
  .fast-choice.active .toggle-label, .fast-choice:has(input:checked) .toggle-label { color: var(--color-white); }
  .fast-choice:has(input:focus-visible) { outline: 2px solid var(--color-brand-blue-light); outline-offset: 2px; }
  .fast-choice-compact { padding: 0.6rem 0.5rem; }
  .fast-slider-labels { display: none; }
  .fast-questionnaire .toggle-switch { margin-bottom: 0.6rem; user-select: none; }   /* the whole box is a click target: no text selection on a double click */
  .fast-questionnaire .toggle-switch p { margin: 0; padding-right: 1rem; font-size: var(--text-small); color: var(--color-slate-800); }
  .fast-questionnaire .toggle-switch p em { display: block; font-size: var(--text-label); color: var(--color-slate-500); font-style: normal; }
  .fast-questionnaire .toggle-switch.is-on { border-color: var(--color-blue-300); background: var(--color-blue-50); }
  .fast-input { width: 100%; max-width: 32rem; padding: 0.75rem 1rem; border: 1px solid var(--color-slate-300); border-radius: var(--radius-lg); background: var(--color-white); font-size: var(--text-base); color: var(--color-slate-900); }
  .fast-input:focus, .fast-textarea:focus { border-color: var(--color-brand-blue); outline: none; box-shadow: 0 0 0 3px rgba(0, 68, 170, 0.15); }
  .fast-input-small { padding: 0.4rem 0.6rem; font-size: var(--text-label); max-width: none; }
  .fast-submit { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--color-slate-200); }
  .fast-q-missing { margin: 0 0 1rem; font-weight: var(--font-weight-semibold); color: var(--color-red-600); }
  .fast-q-note { margin-top: 1rem; font-size: var(--text-label); color: var(--color-slate-500); }

  /* ---- Toolbar: search, filters ---- */
  .measures-bulk { max-width: 16rem; font-size: var(--text-small); }
  .fast-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin: 0 0 1.5rem; padding: 0.75rem 1rem; border: 1px solid var(--color-slate-200); border-radius: var(--radius-2xl); background: var(--color-slate-50); }
  .fast-search { position: relative; display: flex; align-items: center; flex: 1 1 16rem; max-width: 26rem; }
  .fast-search .material-icons { position: absolute; left: 0.6rem; font-size: 1.1rem; color: var(--color-slate-500); pointer-events: none; }
  .fast-search input { width: 100%; padding: 0.5rem 0.75rem 0.5rem 2.2rem; border: 1px solid var(--color-slate-300); border-radius: var(--radius-lg); background: var(--color-white); font-size: var(--text-small); }
  .filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
  .filter-label { margin-right: 0.25rem; font-size: var(--text-micro); font-weight: var(--font-weight-black); letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-slate-500); }
  .filter-btn { border: 1px solid var(--color-slate-200); border-radius: var(--radius-lg); background: var(--color-white); padding: 0.4rem 0.8rem; font-size: var(--text-label); line-height: 1.2; font-weight: var(--font-weight-semibold); color: var(--color-slate-700); cursor: pointer; }
  .filter-btn:hover { border-color: var(--color-brand-blue); color: var(--color-brand-blue); }
  .filter-btn.is-active { border-color: var(--color-brand-blue); background: var(--color-brand-blue); color: var(--color-white); }

  /* ---- Tags ---- */
  .tag { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.15rem 0.55rem; border-radius: var(--radius-md); border: 1px solid var(--color-slate-200); background: var(--color-white); font-size: var(--text-label); font-weight: var(--font-weight-bold); color: var(--color-slate-700); white-space: nowrap; }
  .tag-yes, .tag-done, .tag-compliant, .tag-pass { border-color: var(--color-green-200); background: var(--color-green-50); color: var(--color-green-900); }
  .tag-no, .tag-non_compliant, .tag-fail { border-color: var(--color-red-200); background: var(--color-red-50); color: var(--color-red-900); }
  .tag-na { border-color: var(--color-slate-200); background: var(--color-slate-100); color: var(--color-slate-600); }
  .tag-undecided, .tag-todo, .tag-inconclusive { border-color: var(--color-yellow-200); background: var(--color-yellow-50); color: #713f12; }
  .tag-in_progress, .tag-partial, .tag-alternative { border-color: var(--color-blue-200); background: var(--color-blue-50); color: var(--color-blue-800); }
  .tag-override { border-color: var(--color-brand-blue); color: var(--color-brand-blue); }
  .tag-planned { border-style: dashed; color: var(--color-slate-600); }
  .tag-current { border-color: var(--color-brand-blue); background: var(--color-brand-blue); color: var(--color-white); }
  .tag-source { margin-left: 0.5rem; font-weight: var(--font-weight-semibold); text-transform: none; letter-spacing: 0; }
  .tag-source-fast { border-color: var(--color-blue-200); background: var(--color-blue-50); color: var(--color-blue-800); }
  .tag-source-user { border-color: var(--color-green-200); background: var(--color-green-50); color: var(--color-green-900); }
  /* references to other items: text links, the state in words beside them, one item per line in a column */
  .ref-list { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 1rem; }
  .ref-list-col { flex-direction: column; align-items: flex-start; gap: 0.15rem; }
  .ref-item { display: inline-flex; align-items: baseline; gap: 0.35rem; font-size: var(--text-label); white-space: nowrap; }
  .ref { font-weight: var(--font-weight-bold); color: var(--color-brand-blue); text-decoration: underline; text-decoration-color: var(--color-blue-300); text-underline-offset: 3px; }
  a.ref:hover { color: var(--color-brand-blue-deep, #003a8f); text-decoration-color: currentColor; }
  .ref-plain { color: var(--color-slate-800); text-decoration: none; cursor: help; }
  .ref-state { color: var(--color-slate-500); }
  .ref-state-done, .ref-state-alternative { color: var(--color-green-900); }
  .ref-state-no { color: var(--color-red-900); }
  .ref-state-partial, .ref-state-todo { color: #a16207; }
  .ref-state-m { font-weight: var(--font-weight-black); color: var(--color-brand-blue); }
  .ref-state-r { font-weight: var(--font-weight-semibold); color: var(--color-slate-500); }
  .measure, .prov, .ixit { scroll-margin-top: 9.5rem; }
  #questionnaire { scroll-margin-top: 6rem; }   /* the hero links land on Step 1 with the sticky header above it, not over it */
  @media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
  /* cetome.css turns every link in a table into a pill with an external-link icon: internal references stay text links */
  .fast-table table td a:not(.btn-nav), .fast-table table td a:not(.btn-nav):hover { display: inline; padding: 0; border-radius: 0; background: none; box-shadow: none; translate: none; color: var(--color-brand-blue); font-weight: var(--font-weight-semibold); text-decoration: underline; text-decoration-color: var(--color-blue-300); text-underline-offset: 3px; }
  .fast-table table td a:not(.btn-nav):hover { color: var(--color-brand-blue-deep, #003a8f); text-decoration-color: currentColor; }
  .fast-table table td a:not(.btn-nav)::after, .fast-table table td a:not(.btn-nav):hover::after { content: none; }
  .status-tag { display: inline-flex; align-items: center; padding: 0.1rem 0.5rem; border-radius: var(--radius-sm); border: 1px solid var(--color-slate-200); background: var(--color-white); font-size: var(--text-label); font-weight: var(--font-weight-bold); color: var(--color-slate-700); white-space: nowrap; cursor: help; }
  .status-tag.is-M { border-color: var(--color-brand-blue); color: var(--color-brand-blue); }
  .status-tag.is-R { border-style: dashed; }

  /* ---- Segmented controls ---- */
  .fast-textarea { width: 100%; padding: 0.5rem 0.7rem; border: 1px solid var(--color-slate-300); border-radius: var(--radius-lg); background: var(--color-white); font-size: var(--text-label); line-height: 1.5; resize: vertical; }
  .fast-textarea::placeholder { color: var(--color-slate-400); }
  .is-saving { outline: 2px solid var(--color-blue-200); }
  .is-saved { outline: 2px solid var(--color-green-200); }

  /* ---- Measures ---- */
  .top-threats { margin: 0; padding-left: 1.25rem; font-size: var(--text-small); line-height: 1.5; color: var(--color-slate-700); }
  .top-threats li { padding-block: 0.4rem; border-bottom: 1px solid var(--color-slate-100); }
  .top-threats-count { margin-left: 0.5rem; font-size: var(--text-label); color: var(--color-slate-500); }
  .fast-list-gates li { font-size: var(--text-label); }
  .measure-list { display: flex; flex-direction: column; gap: 0.75rem; }
  .measure { display: grid; gap: 1rem 2rem; padding: 1.25rem 1.5rem; border: 1px solid var(--color-slate-200); border-radius: var(--radius-xl); background: var(--color-white); }
  @media (width >= 64rem) { .measure { grid-template-columns: minmax(0, 1fr) 22rem; } }
  @media (width >= 90rem) { .measure { grid-template-columns: minmax(0, 1fr) 28rem; } }
  .measure.is-na { opacity: 0.8; }
  .measure.is-hidden, .prov.is-hidden, .chapter.is-hidden, .lv-item.is-hidden { display: none; }
  .lv-card.is-flash { outline: 3px solid var(--color-blue-300); outline-offset: 2px; }
  .lv-row.is-flash > td { box-shadow: inset 0 0 0 3px var(--color-blue-300); }
  .measure.is-flash { outline-offset: 0; }
  .measure-key { font-size: var(--text-micro); font-weight: var(--font-weight-black); letter-spacing: 0.15em; color: var(--color-slate-500); }
  .measure-title { margin: 0.1rem 0 0.5rem; font-size: var(--text-lg); font-weight: var(--font-weight-extrabold); line-height: 1.3; color: var(--color-slate-900); }
  .measure-desc { font-size: var(--text-small); line-height: 1.6; color: var(--color-slate-600); }
  .measure-desc a { color: var(--color-brand-blue); font-weight: var(--font-weight-semibold); }
  .measure-meta { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.75rem; }
  .measure-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
  .measure-risks { flex-direction: column; align-items: flex-start; gap: 0.2rem; }   /* one risk per line */
  .measure-risks .measure-tags-label { margin-bottom: 0.15rem; }
  .measure-risks .ref-item { white-space: normal; }
  .measure-tags-label { margin-right: 0.25rem; font-size: var(--text-micro); font-weight: var(--font-weight-black); letter-spacing: 0.15em; text-transform: uppercase; color: var(--color-slate-500); }
  .measure-tags-none { font-size: var(--text-label); color: var(--color-slate-500); font-style: italic; }
  .measure-decide { display: flex; flex-direction: column; gap: 0.5rem; }
  .measure-decide-label { font-size: var(--text-micro); font-weight: var(--font-weight-black); letter-spacing: 0.15em; text-transform: uppercase; color: var(--color-slate-500); }
  .measure-decide-label small { font-weight: var(--font-weight-normal); letter-spacing: 0; text-transform: none; color: var(--color-slate-500); }

  /* ---- The ICS and the assessment: chapters and provision rows ---- */
  .chapter { margin: 0 0 1.25rem; border: 1px solid var(--color-slate-200); border-radius: var(--radius-2xl); background: var(--color-white); overflow: hidden; }
  .chapter-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; padding: 0.9rem 1.5rem; border: 0; background: var(--color-slate-50); text-align: left; cursor: pointer; }
  .chapter-head:hover { background: var(--color-blue-50); }
  .chapter-head h3 { margin: 0; font-size: var(--text-base); font-weight: var(--font-weight-extrabold); letter-spacing: 0.02em; text-transform: uppercase; color: var(--color-brand-blue); }
  .chapter-meta { display: flex; align-items: center; gap: 0.75rem; font-size: var(--text-label); font-weight: var(--font-weight-semibold); color: var(--color-slate-500); white-space: nowrap; }
  .chapter-meta .caret { transition: transform 200ms ease; }
  .chapter[data-collapsed="true"] .caret { transform: rotate(-90deg); }
  .chapter[data-collapsed="true"] .chapter-body { display: none; }
  .prov { padding: 1.25rem 1.5rem; border-top: 1px solid var(--color-slate-200); }
  .prov.support-yes { background: var(--color-green-50); }
  .prov.support-no { background: var(--color-red-50); }
  .prov.is-na { background: var(--color-slate-50); color: var(--color-slate-500); }
  .prov.is-na .prov-text { color: var(--color-slate-500); }
  .prov-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
  .prov-key { font-size: var(--text-lg); font-weight: var(--font-weight-black); color: var(--color-slate-900); }
  .prov-text { margin: 0.6rem 0 0.25rem; max-width: 64rem; font-size: var(--text-small); line-height: 1.6; color: var(--color-slate-800); }
  .prov-note { margin: 0.25rem 0; max-width: 64rem; font-size: var(--text-label); color: var(--color-slate-500); }
  .prov-why { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem; margin: 0.4rem 0; font-size: var(--text-label); color: var(--color-slate-600); }
  .prov-gate { padding: 0.1rem 0.5rem; border-radius: var(--radius-md); background: var(--color-white); border: 1px solid var(--color-slate-200); font-size: var(--text-label); color: var(--color-slate-700); }
  .prov-measures { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin-top: 0.5rem; }
  .prov-decide { display: grid; gap: 0.75rem 2rem; margin-top: 1rem; }
  @media (width >= 64rem) { .prov-decide { grid-template-columns: auto minmax(0, 1fr); align-items: start; } }
  .prov-decide > div { display: flex; flex-direction: column; gap: 0.4rem; }
  .prov-detail { min-height: 2.75rem; }

  /* ---- Documentation ---- */
  .ixit-list { display: flex; flex-direction: column; gap: 1.25rem; }
  .ixit { padding: 1.5rem 1.75rem; border: 1px solid var(--color-slate-200); border-radius: var(--radius-2xl); background: var(--color-white); }
  .ixit-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
  .ixit-title { margin: 0; font-size: var(--text-xl); font-weight: var(--font-weight-extrabold); color: var(--color-brand-blue); }
  .ixit-name { margin: 0.15rem 0 0; font-size: var(--text-label); color: var(--color-slate-500); }
  .ixit-req { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
  .ixit-fields { display: grid; gap: 1rem; }
  @media (width >= 48rem) { .ixit-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  .ixit-field { display: flex; flex-direction: column; gap: 0.35rem; }
  .ixit-field-label { display: flex; flex-wrap: wrap; align-items: center; font-size: var(--text-label); font-weight: var(--font-weight-bold); color: var(--color-slate-900); }
  .ixit-field[data-source="fast"] .ixit-input { border-color: var(--color-blue-200); background: var(--color-blue-50); }
  .ixit-field[data-source="user"] .ixit-input { border-color: var(--color-green-200); }
  .ixit-restore { align-self: flex-start; }
  .ixit-redy { margin-top: 1rem; font-size: var(--text-label); color: var(--color-slate-600); }
  .ixit-redy summary { cursor: pointer; font-weight: var(--font-weight-semibold); color: var(--color-brand-blue); }

  /* ---- Assessment ---- */
  .assessor-switch { display: inline-flex; align-items: center; gap: 0.6rem; font-size: var(--text-small); font-weight: var(--font-weight-bold); color: var(--color-slate-900); cursor: pointer; }
  .assessor-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
  .assessor-track { position: relative; width: 2.5rem; height: 1.4rem; border-radius: 999px; background: var(--color-slate-300); transition: background 200ms ease; }
  .assessor-track::after { content: ''; position: absolute; top: 0.2rem; left: 0.2rem; width: 1rem; height: 1rem; border-radius: 50%; background: var(--color-white); transition: transform 200ms ease; }
  .assessor-switch input:checked + .assessor-track { background: var(--color-brand-blue); }
  .assessor-switch input:checked + .assessor-track::after { transform: translateX(1.1rem); }
  .assessor-help { flex: 1 1 100%; margin: 0; }
  .assessor-only { display: none; }
  body.assessor-mode .assessor-only { display: block; }
  .prov-head .assessor-only { display: none; }
  body.assessor-mode .prov-head .assessor-only { display: inline-flex; }
  .assess-grid { display: grid; gap: 1.25rem 2rem; margin-top: 1rem; }
  body.assessor-mode .assess-grid { grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }
  .assess-self, .assess-tests { display: flex; flex-direction: column; gap: 0.5rem; }
  @media (width >= 64rem) { .assess-self { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 1.25rem; } .assess-self > .measure-decide-label, .assess-self > .fast-select { grid-column: 1 / -1; } .assess-tests { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 1.25rem; } .assess-tests > .measure-decide-label { grid-column: 1 / -1; } }
  .assess-label { display: flex; flex-direction: column; gap: 0.25rem; font-size: var(--text-label); font-weight: var(--font-weight-bold); color: var(--color-slate-700); }
  .assess-tests { padding: 1rem; border: 1px dashed var(--color-slate-300); border-radius: var(--radius-xl); background: #fffdfa; }
  .assess-test { display: flex; flex-direction: column; gap: 0.4rem; padding-top: 0.5rem; }
  .assess-test-name { font-size: var(--text-label); font-weight: var(--font-weight-bold); color: var(--color-slate-900); }

  /* ---- Status: charts and the graph ---- */
  .status-grid { display: grid; gap: 1.5rem; margin-bottom: 2rem; }
  @media (width >= 64rem) { .status-grid { grid-template-columns: 2fr 3fr; } .status-grid .fast-panel-wide { grid-column: 1 / -1; } }
  .legend-list { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; margin: 0.75rem 0 0; padding: 0; list-style: none; font-size: var(--text-label); color: var(--color-slate-600); }
  .legend-list li { display: inline-flex; align-items: center; gap: 0.35rem; }
  .legend-list i { width: 0.65rem; height: 0.65rem; border-radius: 2px; background: var(--color-slate-300); }
  .legend-list b { color: var(--color-slate-900); font-variant-numeric: tabular-nums; }
  .graph-wrap { border: 1px solid var(--color-slate-200); border-radius: var(--radius-2xl); background: var(--color-white); overflow: hidden; }
  .graph-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; padding: 0.75rem 1.25rem; border-bottom: 1px solid var(--color-slate-200); background: var(--color-slate-50); }
  .graph-tools .check { display: inline-flex; align-items: center; gap: 0.4rem; font-size: var(--text-label); color: var(--color-slate-700); }
  .graph-canvas { position: relative; height: 70vh; min-height: 420px; }
  .graph-tools .fast-search { min-width: 16rem; }
  .graph-wrap:fullscreen { display: flex; flex-direction: column; border: 0; border-radius: 0; background: var(--color-white); }
  .graph-wrap:fullscreen .graph-canvas { flex: 1; height: auto; min-height: 0; }
  .graph-wrap:fullscreen .graph-details { max-height: 25vh; overflow-y: auto; }
  .graph-details { padding: 1rem 1.25rem; border-top: 1px solid var(--color-slate-200); font-size: var(--text-small); color: var(--color-slate-700); }
  .graph-details h3 { margin: 0 0 0.35rem; font-size: var(--text-base); font-weight: var(--font-weight-extrabold); color: var(--color-brand-blue); }
  .graph-details p { margin: 0.25rem 0; }
  .graph-legend { padding: 0.75rem 1.25rem 1rem; margin: 0; border-top: 1px solid var(--color-slate-200); }

  /* ---- Tables, products, history, admin ---- */
  .fast-table { max-width: none; margin: 1rem 0 0; max-height: none; box-shadow: none; }
  .fast-table table th:first-child, .fast-table table td:first-child { position: static; box-shadow: none; }
  /* one colour per row, first cell included, whatever cetome.css does with sticky first columns and zebras: white by default,
     tinted by the support, grey when the provision does not apply, blue on hover. No zebra. */
  .fast-table tbody tr > td, .fast-table tbody tr > td:first-child, .fast-table tbody tr:nth-child(2n) > td, .fast-table tbody tr:nth-child(2n) > td:first-child { background-color: var(--color-white); }
  .lv-table tbody tr.support-yes > td, .lv-table tbody tr.support-yes > td:first-child { background-color: var(--color-green-50); }
  .lv-table tbody tr.support-no > td, .lv-table tbody tr.support-no > td:first-child { background-color: var(--color-red-50); }
  .lv-table tbody tr.is-na > td, .lv-table tbody tr.is-na > td:first-child { background-color: var(--color-slate-50); }
  @media (hover: hover) { .fast-table tbody tr:hover > td, .fast-table tbody tr:hover > td:first-child { background-color: var(--color-blue-50); } }
  /* a cell is never a flex box (its background would stop at its content): the items inside are */
  .lv-table td.ref-list { display: table-cell; }
  .lv-table td.ref-list .ref-item { display: flex; margin-bottom: 0.15rem; white-space: normal; }
  .lv-table td.ref-list-inline .ref-item { display: inline-flex; margin: 0 0.45rem 0.2rem 0; }   /* keys only, flowing: the title on hover */   /* titles wrap instead of widening the table */
  .lv-table td.ref-list .ref-item .ref { flex: none; }
  .lv-table td.ref-list .ref-state { overflow-wrap: normal; }   /* a status word stays whole: the column widens instead of breaking it mid-word */
  /* the ID of a row opens the side panel: a link-like button in the key style */
  .lv-open-id { padding: 0; border: 0; background: none; font: inherit; font-weight: var(--font-weight-black); letter-spacing: 0.08em; color: var(--color-brand-blue); cursor: pointer; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em; white-space: nowrap; }
  .lv-open-id:hover, .lv-open-id:focus-visible { text-decoration-color: currentColor; color: var(--color-brand-blue-deep, #003a8f); outline: none; }
  /* the tables fit the page: fixed widths that add up to 100 % */
  #measure-table table, #risk-table table { table-layout: fixed; }
  #measure-table thead th:nth-child(1) { width: 8%; }
  #measure-table thead th:nth-child(2) { width: 27%; }
  #measure-table thead th:nth-child(3) { width: 16%; }
  #measure-table thead th:nth-child(4) { width: 11%; }
  #measure-table thead th:nth-child(5) { width: 17%; }
  #measure-table thead th:nth-child(6) { width: 21%; }
  #risk-table thead th:nth-child(1) { width: 7%; }
  #risk-table thead th:nth-child(2) { width: 21%; }
  #risk-table thead th:nth-child(3) { width: 21%; }
  #risk-table thead th:nth-child(4) { width: 11%; }
  #risk-table thead th:nth-child(5) { width: 8%; }
  #risk-table thead th:nth-child(6) { width: 16%; }
  #risk-table thead th:nth-child(7) { width: 8%; }
  #risk-table thead th:nth-child(8) { width: 8%; }
  .lv-table td { overflow-wrap: anywhere; }
  .lv-table .measure-row-decide, .lv-table .risk-row-user { min-width: 0; }
  .fast-table thead th:first-child { background: #0044AA; }
  .fast-table td { text-align: left; font-size: var(--text-small); }
  .fast-table thead th { text-align: left; }
  .fast-table tr.is-current td { background: var(--color-blue-50); }
  .fast-table tr.muted-row td { color: var(--color-slate-400); }
  .fast-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
  .product-grid { display: grid; gap: 1.25rem; margin-bottom: 2rem; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
  .product-card { padding: 1.5rem; border: 1px solid var(--color-slate-200); border-radius: var(--radius-2xl); background: var(--color-white); }
  .product-card-title { margin: 0; font-size: var(--text-lg); font-weight: var(--font-weight-extrabold); color: var(--color-brand-blue); }
  .product-card-date { margin: 0.25rem 0 1rem; font-size: var(--text-label); color: var(--color-slate-500); }
  .product-card-figures { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: 0; }
  .product-card-figures dt { font-size: var(--text-micro); font-weight: var(--font-weight-black); letter-spacing: 0.15em; text-transform: uppercase; color: var(--color-slate-500); }
  .product-card-figures dd { margin: 0; font-size: var(--text-xl); font-weight: var(--font-weight-extrabold); color: var(--color-slate-900); }
  .admin-bar { border-bottom: 1px solid var(--color-slate-200); background: var(--color-slate-50); }
  .admin-nav { display: flex; gap: 0.25rem; overflow-x: auto; padding-block: 0.5rem; }
  .admin-nav a { padding: 0.5rem 0.9rem; border-radius: var(--radius-lg); font-size: var(--text-label); font-weight: var(--font-weight-bold); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-slate-600); white-space: nowrap; text-decoration: none; }
  .admin-nav a.active { background: var(--color-brand-blue); color: var(--color-white); }
  .admin-section .fast-panel { margin-top: 1rem; }
  .about-figure { margin: 1rem 0 2rem; }
  .about-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--color-slate-200); border-radius: var(--radius-2xl); }
  .about-figure figcaption { margin-top: 0.6rem; font-size: var(--text-label); color: var(--color-slate-500); }
  .about-how { margin: 0 0 2.5rem; padding: 0; }
  .about-how .how-container { padding: 0; max-width: none; }
  .about-how .how-header { margin-bottom: 0; }
  .about-how .how-steps { margin-top: 1.5rem; }
  @media (width >= 64rem) { .about-how .how-steps-7 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
  .article-content .about-how ol { padding-left: 0; }
  .article-content .about-how h2 { margin-top: 0; }
  .article-content .about-how h3 { margin: 0.75rem 0 0.4rem; }
  .fast-steps { padding-left: 1.25rem; }
  .fast-steps li { margin-bottom: 0.75rem; }
  .form-card { max-width: 32rem; margin: 2rem auto; padding: 2rem; border: 1px solid var(--color-slate-200); border-radius: var(--radius-2xl); background: var(--color-white); }
  .form-card .field, .admin-section .fast-panel .field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
  .form-card label { font-size: var(--text-label); font-weight: var(--font-weight-bold); color: var(--color-slate-700); }
  .form-card .form-control, .admin-section .fast-panel .form-control { padding: 0.65rem 0.9rem; border: 1px solid var(--color-slate-300); border-radius: var(--radius-lg); font-size: var(--text-base); }
  .form-card .field-help, .admin-section .fast-panel .field-help { font-size: var(--text-label); color: var(--color-slate-500); }
  .form-card .toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 1rem; }
  .btn-link-light { border: 0; background: none; font-size: var(--text-label); font-weight: var(--font-weight-semibold); color: var(--color-brand-blue); cursor: pointer; }
  .q-pane[hidden] { display: none; }
  .login-passkey[hidden], .login-or[hidden] { display: none; }
  .login-passkey { margin-top: 0.5rem; }
  .login-passkey-btn { width: 100%; justify-content: center; text-align: center; }
  .login-passkey .field-help { margin: 0.6rem 0 0; }
  .login-passkey .form-card-note:empty { display: none; }
  .login-or { display: flex; align-items: center; gap: 0.75rem; margin: 1.25rem 0; font-size: var(--text-label); font-weight: var(--font-weight-bold); letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-slate-500); }
  .login-or::before, .login-or::after { content: ''; flex: 1; border-top: 1px solid var(--color-slate-200); }
  .login-tabs { margin-bottom: 1rem; }
  .form-card-text { font-size: var(--text-small); color: var(--color-slate-600); }
  .form-card-note { font-size: var(--text-label); color: var(--color-slate-500); }
  .code-input { font-size: 1.5rem; letter-spacing: 0.4em; text-align: center; }

  /* phones: the product bar stays small, the tables scroll sideways, the matrix cells grow with their chips, the panels fit the screen */
  @media (width < 48rem) {
    .workspace-bar-inner { gap: 0.3rem 0.6rem; padding-block: 0.4rem; }
    .workspace-product { flex: 1 1 0; flex-wrap: nowrap; align-items: center; gap: 0.4rem; overflow: hidden; }
    .workspace-kicker, .workspace-saved { display: none; }
    .workspace-name { font-size: var(--text-small); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .workspace-bar-inner .workspace-live { padding: 0.3rem 0.65rem; font-size: var(--text-label); white-space: nowrap; }
    .workspace-steps { gap: 0.15rem; margin-inline: -0.25rem; padding-inline: 0.25rem; }
    .workspace-step { padding: 0.35rem 0.55rem; gap: 0.35rem; white-space: nowrap; }
    .measure, .prov, .ixit, .lv-item, .chapter, .fast-section { scroll-margin-top: 11rem; }
    .chapter-head { flex-wrap: wrap; gap: 0.25rem 0.75rem; padding: 0.8rem 1rem; }
    .chapter-head h3 { flex: 1 1 100%; font-size: var(--text-small); }
    .chapter-meta { white-space: normal; }
    .tick-filter { position: static; }
    .fast-toolbar { position: relative; }
    .tick-panel, .tick-panel.is-flipped, .tick-panel-narrow { left: 0.5rem; right: 0.5rem; width: auto; }
    .risk-matrix-block { padding: 0.9rem 0.6rem 0.6rem; }
    .risk-matrix-grid { gap: 2px; }
    .risk-cell { aspect-ratio: auto; min-height: 2.4rem; padding: 0.15rem; gap: 0.15rem; }
    .risk-chip { font-size: 0.5rem; padding: 0 0.2rem; letter-spacing: 0; }
    .risk-matrix-label-y small, .risk-matrix-label-x small { display: none; }
    .risk-matrix-label-y { min-width: 1.4rem; padding-right: 0.2rem; }
    .risk-matrix-label-x { padding-top: 0.2rem; }
    .risk-matrix-axis-y span, .risk-matrix-axis-x { font-size: 0.62rem; }
    .fast-figures { padding: 1rem 1rem; gap: 1rem; }
    .fast-figures .figure-value { font-size: 1.5rem; }
  }
  @media (width < 64rem) {
    .lv-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .lv-table table { min-width: 60rem; }
    #measure-table thead th:nth-child(1), #risk-table thead th:nth-child(1) { width: 6rem; }   /* the sticky key column holds its key */
    .lv-table table th:first-child, .lv-table table td:first-child { position: sticky; left: 0; z-index: 2; box-shadow: 1px 0 0 var(--color-slate-200); }
    .lv-table thead th:first-child { z-index: 3; }
  }
  /* phones: the tables are compact (smaller type, tighter cells, set column widths) so a screen's width shows a readable share of each row */
  @media (width < 48rem) {
    .lv-table table, #prov-table table, #assess-table table { min-width: 46rem; table-layout: fixed; }
    .fast-table td, .fast-table th, .fast-table thead th .sort-btn { font-size: 0.76rem; }
    .fast-table td, .fast-table th { padding: 0.45rem 0.5rem; }
    .lv-table td { padding-top: 0.45rem; }
    .lv-row-key, .lv-open-id { letter-spacing: 0.03em; }
    .lv-row-text, .lv-row-decide, .measure-row-decide { min-width: 0; }
    .lv-table .fast-select, .lv-table textarea, .lv-table .form-control { font-size: 0.76rem; padding: 0.3rem 0.45rem; }
    .lv-table .status-tag, .lv-table .tag, .lv-table .risk-tag { font-size: 0.66rem; padding: 0.05rem 0.35rem; }
    .lv-table .ref-item { font-size: 0.74rem; }
    /* the measure and risk tables list keys only, flowing (the key opens the side panel with the title); the compliance table keeps each measure's status */
    #measure-table td.ref-list .ref-item, #risk-table td.ref-list .ref-item { display: inline-flex; margin: 0 0.4rem 0.2rem 0; }
    #measure-table td.ref-list .ref-state, #risk-table td.ref-list .ref-state { display: none; }
    #measure-table thead th:nth-child(1), #risk-table thead th:nth-child(1) { width: 4.4rem; }
    #prov-table thead th:nth-child(1), #assess-table thead th:nth-child(1) { width: 4.2rem; }
    #prov-table thead th:nth-child(2), #assess-table thead th:nth-child(2) { width: 3rem; }
    #prov-table thead th:nth-child(3) { width: 4.6rem; }
    #prov-table thead th:nth-child(4), #assess-table thead th:nth-child(3) { width: 15rem; }
    #prov-table thead th:nth-child(5) { width: 9rem; }
    #prov-table thead th:nth-child(6) { width: 9rem; }
    #assess-table thead th:nth-child(4) { width: 6.5rem; }
    #assess-table thead th:nth-child(5) { width: 9rem; }
  }
}

/* print: the content, not the chrome */
@media print {
  .nav-root, .nav-spacer, .workspace-bar, .site-footer, .fast-toolbar, .fast-next, .toast-stack, .graph-tools, .btn-row, .live-panel, .live-backdrop { display: none !important; }
  .hero-wrapper { padding: 1rem 0; }
}
