/* Veyra · Security workbench — shared Orbis/Veyra editorial system. */
@font-face {
  font-family:Manrope;
  src:url('./fonts/Manrope.ttf') format('truetype');
  font-style:normal;
  font-weight:200 800;
  font-display:swap;
}
:root {
  --ground:#f6f4ef;
  --surface:#fffefa;
  --raised:#eeece5;
  --border:#d7d8cf;
  --muted:#62665f;
  --text:#242725;
  --accent:#284fc9;
  --accent-soft:#edf0fc;
  --danger:#a33333;
  --radius:8px;
  font-family:Manrope,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  color:var(--text);
  background:var(--ground);
  font-size:14px;
  color-scheme:light;
  font-synthesis:none;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
}
button,input,select,textarea {
  font:inherit;
}
button,a,input,select,textarea,summary {
  touch-action:manipulation;
}
button {
  cursor:pointer;
  border:1px solid #bfc2b9;
  border-radius:6px;
  background:var(--surface);
  color:var(--text);
  min-height:42px;
  padding:10px 16px;
  font-size:12px;
  font-weight:650;
  line-height:1.4;
  transition:background-color 140ms ease,border-color 140ms ease,transform 100ms ease;
}
button:hover {
  background:var(--raised);
  border-color:#92988b;
}
button:active {
  transform:scale(.985);
}
button:disabled {
  opacity:.5;
  cursor:default;
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible {
  outline:2px solid var(--accent);
  outline-offset:4px;
}
a {
  color:inherit;
  text-underline-offset:4px;
}
h1,h2,h3,p {
  margin-top:0;
}
h1,h2,h3,legend,summary {
  overflow-wrap:anywhere;
}
h1 {
  font-size:clamp(30px,2.7vw,42px);
  font-weight:600;
  letter-spacing:-.035em;
  line-height:1.15;
  text-wrap:balance;
}
h2 {
  font-size:23px;
  font-weight:600;
  letter-spacing:-.025em;
  line-height:1.35;
}
h3 {
  font-size:16px;
  font-weight:650;
  letter-spacing:-.015em;
  line-height:1.4;
}
p {
  line-height:1.7;
}
.mono,.eyebrow,.fine,time,.count,th,.tag {
  font-family:inherit;
  font-variant-numeric:tabular-nums;
}
.eyebrow {
  font-size:11px;
  font-weight:700;
  letter-spacing:.12em;
  color:var(--muted);
  margin-bottom:16px;
}
.muted,.fine {
  color:var(--muted);
}
.fine {
  font-size:12px;
  line-height:1.7;
}
.primary {
  background:var(--text);
  color:var(--surface);
  border-color:var(--text);
}
.primary:hover {
  background:#3b403b;
  border-color:#3b403b;
}
.danger {
  border-color:#d3a3a1;
  color:var(--danger);
  background:#fff8f5;
}
.danger:hover {
  background:#fae6e1;
}
.text-button {
  border:0;
  background:transparent;
  padding:6px 0;
  min-height:36px;
  font-size:12px;
  color:var(--muted);
  text-align:left;
}
.text-button:hover {
  background:transparent;
  color:var(--accent);
  text-decoration:underline;
  text-underline-offset:4px;
}
.skip {
  position:fixed;
  top:-100px;
  left:20px;
  z-index:300;
}
.skip:focus {
  top:12px;
  background:var(--surface);
  padding:12px;
  border:1px solid var(--accent);
}
/* Permanent navigation and the page's quiet working frame. */
#shell:not([hidden]) {
  display:grid;
  grid-template-columns:244px minmax(0,1fr);
  min-height:100svh;
}
aside {
  background:#eeeee7;
  border-right:1px solid var(--border);
  padding:35px 24px 26px;
  position:sticky;
  top:0;
  height:100svh;
  display:flex;
  flex-direction:column;
}
.brand {
  display:flex;
  align-items:center;
  gap:12px;
  max-width:100%;
  text-decoration:none;
}
.brand-logo {
  display:block;
  width:42px;
  height:42px;
  flex:0 0 42px;
}
.brand-copy {
  display:block;
  min-width:0;
}
.brand-name {
  display:block;
  font-size:25px;
  font-weight:650;
  line-height:1.2;
  letter-spacing:-.045em;
}
.brand-subline {
  display:block;
  margin-top:5px;
  font-size:11px;
  letter-spacing:.07em;
  color:var(--muted);
  font-weight:650;
}
.workspace-label {
  margin:62px 0 14px;
  font-size:11px;
  letter-spacing:.1em;
}
nav {
  display:grid;
  gap:6px;
}
.nav {
  display:flex;
  align-items:center;
  gap:12px;
  border:0;
  width:100%;
  padding:12px;
  color:var(--muted);
  font-size:11px;
  background:transparent;
  text-align:left;
  font-weight:500;
}
.nav span {
  font-size:13px;
}
.nav.active {
  background:var(--surface);
  color:var(--accent);
  box-shadow:none;
}
.nav.active span {
  color:var(--text);
  font-weight:700;
  text-decoration:none;
}
.nav:hover {
  background:#e5e7dd;
  color:var(--text);
}
.rail-bottom {
  margin-top:auto;
  padding-top:40px;
}
.workspace-name {
  font-size:12px;
  font-weight:650;
  overflow-wrap:anywhere;
  display:flex;
  align-items:baseline;
  gap:8px;
}
.workspace-name:before {
  content:'';
  width:7px;
  height:7px;
  flex:0 0 7px;
  display:inline-block;
  border-radius:50%;
  background:var(--accent);
}
.rail-bottom .fine {
  margin:8px 0 0;
  font-size:11px;
  max-width:21ch;
}
main {
  padding:0 44px;
  min-width:0;
}
.topline {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  min-height:83px;
  border-bottom:1px solid var(--border);
  font-size:11px;
  letter-spacing:.07em;
  font-weight:600;
  color:var(--muted);
  line-height:1.6;
}
#local-status {
  color:var(--accent);
  font-size:11px;
  letter-spacing:.08em;
}
.local-notice {
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  justify-content:space-between;
  gap:0 24px;
  padding:16px 0;
  border-bottom:1px solid var(--border);
}
.local-notice strong {
  font-size:11px;
  font-weight:500;
  line-height:1.7;
}
.local-notice details {
  max-width:100%;
}
.local-notice summary {
  font-size:11px;
  min-height:32px;
  padding:5px 0;
  color:var(--muted);
}
.local-notice details[open] {
  flex-basis:100%;
}
.local-notice p {
  margin:8px 0 0;
  max-width:78ch;
  color:var(--muted);
  font-size:12px;
  line-height:1.7;
}
.page-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:28px;
  padding:40px 0 30px;
}
.page-heading>div {
  min-width:0;
}
.page-heading h1 {
  margin-bottom:13px;
}
.page-heading p {
  margin-bottom:0;
  max-width:68ch;
  font-size:13px;
}
.page-heading>.primary {
  flex-shrink:0;
}
.page-heading .eyebrow {
  display:none;
}
.page-heading h1,.page-heading p,.mission p,.mission h3,.record-section p {
  overflow-wrap:anywhere;
  min-width:0;
}
/* Context and guidance are editorial rows rather than competing dashboard cards. */
.quick-start {
  margin:4px 0 24px;
  padding:24px 28px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:8px;
  max-width:none;
}
.quick-start h2 {
  font-size:20px;
  margin-bottom:10px;
}
.quick-start p,.review-guide p {
  max-width:75ch;
  font-size:13px;
}
.quick-start ol,.review-guide ol {
  padding-left:22px;
  line-height:1.7;
  font-size:13px;
  max-width:76ch;
}
.quick-start li,.review-guide li {
  margin-bottom:8px;
  padding-left:4px;
}
.quick-start .fine {
  margin:12px 0 0;
  font-size:11px;
}
.quick-start button {
  margin-top:4px;
}
details.quick-start {
  padding:0 24px;
}
details.quick-start>summary {
  padding-block:16px;
}
details.quick-start>:last-child {
  margin-bottom:22px;
}
.workspace-tools,.perspective-help {
  border-block:1px solid var(--border);
  margin:16px 0 24px;
}
.perspective-help>p {
  max-width:75ch;
  color:var(--muted);
  font-size:13px;
}
summary {
  cursor:pointer;
  min-height:46px;
  padding:13px 0;
  line-height:1.6;
  font-size:12px;
  font-weight:650;
  color:var(--text);
}
summary:hover,details[open]>summary {
  color:var(--accent);
}
summary::marker {
  color:var(--accent);
  font-size:.85em;
}
details>summary+* {
  margin-top:10px;
}
.mission-strip {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  margin:8px 0 24px;
  border:1px solid var(--border);
  border-radius:8px;
  background:var(--surface);
  overflow:hidden;
}
.hat {
  padding:22px 16px;
  border-right:1px solid var(--border);
}
.hat:last-child {
  border:0;
}
.hat-number {
  display:flex;
  justify-content:space-between;
  gap:8px;
  font-size:11px;
  font-weight:650;
  color:var(--muted);
  margin-bottom:24px;
}
.hat-number>span:first-child {
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  border:1px solid #a7b7e4;
  color:var(--accent);
  border-radius:50%;
  flex:0 0 24px;
}
.hat-number>span:last-child {
  padding-top:6px;
  letter-spacing:.04em;
}
.hat h3 {
  margin-bottom:8px;
  font-size:14px;
}
.hat p {
  font-size:11px;
  line-height:1.7;
  color:var(--muted);
  margin:0;
}
.section-title {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin:32px 0 16px;
}
.section-title h2 {
  font-size:21px;
  margin:0;
}
.section-title .count {
  white-space:normal;
  text-align:right;
  line-height:1.6;
}
.count {
  color:var(--muted);
  font-size:11px;
  white-space:nowrap;
}
.toolbar {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px;
  margin-bottom:16px;
}
.toolbar input {
  max-width:330px;
  flex:1 1 220px;
}
.toolbar select {
  width:auto;
  max-width:260px;
  min-width:150px;
}
.toolbar .count {
  margin-left:auto;
}
/* Data, evidence, and forms. */
input,select,textarea {
  display:block;
  width:100%;
  background:var(--surface);
  color:var(--text);
  border:1px solid #bfc2b9;
  border-radius:6px;
  padding:11px 12px;
  min-height:44px;
  font-size:13px;
  caret-color:var(--accent);
}
input::placeholder,textarea::placeholder {
  color:#6f746b;
  opacity:1;
}
textarea {
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
  font-size:12px;
  line-height:1.7;
  resize:vertical;
}
label {
  display:block;
  font-size:12px;
  font-weight:600;
  color:var(--text);
  margin:20px 0 8px;
}
table {
  border-collapse:collapse;
  width:100%;
  font-size:12px;
  text-align:left;
}
th {
  font-size:11px;
  color:var(--muted);
  font-weight:650;
  padding:14px 12px;
  white-space:nowrap;
  background:#eeeee7;
  letter-spacing:.02em;
}
td {
  padding:20px 12px;
  border-top:1px solid var(--border);
  vertical-align:top;
  overflow-wrap:anywhere;
  line-height:1.7;
}
td:last-child,th:last-child {
  text-align:right;
}
.table-wrap {
  overflow-x:auto;
  max-width:100%;
  border-radius:8px;
  border:1px solid var(--border);
  background:var(--surface);
}
.table-wrap table {
  min-width:520px;
}
.table-wrap tbody tr:hover {
  background:#f0f2e9;
}
.table-wrap tbody tr:focus-within {
  background:var(--accent-soft);
}
.table-wrap>.muted {
  padding:24px;
}
.row-button {
  border:0;
  background:transparent;
  padding:0;
  min-height:28px;
  text-align:left;
  font-size:13px;
  line-height:1.6;
  font-weight:700;
  overflow-wrap:anywhere;
  max-width:100%;
  color:var(--accent);
}
.row-button:hover {
  background:transparent;
  text-decoration:underline;
  text-underline-offset:4px;
}
.subline {
  display:block;
  font-size:11px;
  color:var(--muted);
  margin-top:5px;
  line-height:1.7;
}
.tag,td.tag {
  font-size:11px;
  color:var(--text);
  line-height:1.6;
}
.empty {
  padding:42px 24px 46px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:8px;
  text-align:center;
}
.empty-index {
  display:block;
  width:48px;
  height:48px;
  border:1px solid #a7b7e4;
  border-radius:50%;
  margin:0 auto 22px;
  color:var(--accent);
  font-size:27px;
  font-weight:400;
  line-height:46px;
}
.empty h2 {
  margin-bottom:12px;
  font-size:23px;
}
.empty p {
  max-width:53ch;
  margin:0 auto 22px;
  color:var(--muted);
  font-size:13px;
}
.empty small {
  display:block;
  margin-top:18px;
  color:var(--muted);
  font-size:11px;
}
.stats {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  padding:22px 0;
  border-block:1px solid var(--border);
  margin:16px 0 24px;
}
.stat {
  padding-left:28px;
  border-left:1px solid var(--border);
}
.stat:first-child {
  padding-left:0;
  border-left:0;
}
.stat strong {
  display:block;
  font:600 31px/1.3 Manrope,sans-serif;
  letter-spacing:-.03em;
  font-variant-numeric:tabular-nums;
  color:var(--accent);
  margin:8px 0;
}
.stat span {
  font-size:12px;
  color:var(--muted);
}
.detail-actions {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  margin:16px 0;
}
.detail-actions button {
  font-size:12px;
}
.detail-actions .text-button {
  padding-inline:8px;
}
.assessment-tools,.record-details {
  border-block:1px solid var(--border);
  margin:16px 0;
}
.assessment-tools .detail-actions {
  margin:4px 0 18px;
}
.record-details {
  color:var(--muted);
  font-size:12px;
}
.record-details p {
  max-width:78ch;
  overflow-wrap:anywhere;
}
.record-details summary {
  font-size:12px;
}
.tabs {
  display:flex;
  gap:26px;
  overflow-x:auto;
  white-space:nowrap;
  border-bottom:1px solid var(--border);
  margin-top:24px;
  scrollbar-width:thin;
}
.tab {
  flex-shrink:0;
  min-height:48px;
  padding:12px 2px;
  border:0;
  border-radius:0;
  background:transparent;
  border-bottom:2px solid transparent;
  color:var(--muted);
  font-size:12px;
}
.tab.active {
  border-bottom:2px solid var(--accent);
  color:var(--accent);
}
.tab:hover {
  background:transparent;
  color:var(--text);
}
.tab:focus-visible {
  outline-offset:-3px;
}
#assessment-panel {
  min-width:0;
}
#assessment-panel>.page-heading {
  padding-top:28px;
}
#assessment-panel>.page-heading h1 {
  font-size:26px;
}
.mission {
  padding:26px 0;
  border-bottom:1px solid var(--border);
}
.mission-header {
  display:flex;
  gap:22px;
  align-items:baseline;
}
.mission-header .eyebrow {
  width:65px;
}
.mission p,.mission li,.coverage li {
  font-size:13px;
  color:var(--muted);
  line-height:1.8;
  max-width:80ch;
}
.mission ol,.coverage ul {
  padding-left:22px;
}
.coverage {
  padding:26px 0;
}
.record-section {
  padding:18px 0;
  border-bottom:1px solid var(--border);
}
.record-section h3 {
  font-size:11px;
  font-weight:700;
  color:var(--muted);
  margin-bottom:8px;
}
.record-section p {
  font-size:13px;
  line-height:1.8;
  max-width:85ch;
  margin:0;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}
.back {
  margin-top:24px;
}
.error-inline {
  color:var(--danger);
  font-size:12px;
  margin:12px 0;
  overflow-wrap:anywhere;
}
.error-inline:focus {
  outline:1px solid var(--danger);
  outline-offset:4px;
}
.review-guide {
  margin:16px 0;
  padding:20px 0;
  border-block:1px solid var(--border);
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px 24px;
}
.review-guide>h2 {
  grid-column:1;
  font-size:20px;
  margin:0;
}
.review-guide>p,.review-guide>details {
  grid-column:1;
  margin:0;
}
.review-guide>details {
  max-width:75ch;
}
.review-guide>details>summary {
  padding:8px 0;
}
.review-guide>button {
  grid-column:2;
  grid-row:1 / span 2;
  align-self:center;
  max-width:240px;
}
.tracking-details {
  margin-block:18px;
}
.tracking-details fieldset {
  margin-top:0;
}
#view:has(>.review-guide)>.page-heading {
  padding:22px 0 18px;
}
#view:has(>.review-guide)>.perspective-help {
  margin:0 0 10px;
}
#view:has(>.review-guide)>.stats {
  margin:14px 0 16px;
  padding:16px 0;
}
#view:has(>.review-guide)>.tabs {
  margin-top:18px;
}
.workspace-status {
  padding:16px 0;
  border-top:1px solid var(--border);
  margin:18px 0;
}
.workspace-status p {
  margin:4px 0;
  overflow-wrap:anywhere;
}
.change-hint {
  padding:12px 0;
  border-bottom:1px solid var(--accent);
  color:var(--accent);
}
#delivery-form {
  max-width:900px;
}
#reload-workbook,#reload-delivery,#reload-finding {
  margin-bottom:16px;
}
.snapshot-hash {
  overflow-wrap:anywhere;
}
/* Dialogs share the same paper surface and protect keyboard focus. */
dialog {
  background:var(--ground);
  color:var(--text);
  border:1px solid var(--border);
  border-radius:8px;
  width:min(760px,calc(100vw - 40px));
  max-height:calc(100dvh - 48px);
  padding:30px;
  overscroll-behavior:contain;
  box-shadow:0 20px 60px #24272526;
}
dialog::backdrop {
  background:rgb(36 39 37/.45);
}
.dialog-head {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;
  margin-bottom:24px;
}
.dialog-head h2 {
  margin:0;
  font-size:27px;
  line-height:1.3;
}
.dialog-head .eyebrow {
  display:none;
}
.close {
  border:0;
  background:transparent;
  min-width:40px;
  min-height:40px;
  flex-shrink:0;
  font-size:26px;
  line-height:1;
  padding:4px;
}
.form-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}
.form-grid label:first-child {
  margin-top:0;
}
.dialog-actions {
  display:flex;
  gap:12px;
  justify-content:flex-end;
  margin-top:26px;
  padding-top:20px;
  border-top:1px solid var(--border);
}
fieldset {
  border:0;
  border-top:1px solid var(--border);
  padding:16px 0 0;
  margin:24px 0;
}
legend {
  font-size:13px;
  font-weight:700;
  color:var(--text);
  padding:0 8px 0 0;
  line-height:1.6;
}
.role-checks {
  display:flex;
  flex-wrap:wrap;
  gap:6px 20px;
}
.role-checks label,.attestation {
  display:flex;
  align-items:flex-start;
  gap:10px;
}
.role-checks label {
  flex:1 1 175px;
  font-size:12px;
  font-weight:500;
  margin:10px 0;
  line-height:1.6;
}
.role-checks input,.attestation input,.inline-check input {
  width:17px;
  height:17px;
  min-height:17px;
  accent-color:var(--accent);
  flex-shrink:0;
  margin:2px 0 0;
}
.attestation {
  font-size:12px;
  font-weight:500;
  line-height:1.8;
}
.inline-check {
  display:flex;
  align-items:center;
  gap:9px;
  margin:0;
  font-size:12px;
  font-weight:500;
}
.input-heading {
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:16px;
}
.input-heading label {
  margin-bottom:8px;
}
.review-fields .fine {
  font-size:12px;
}
#delete-dialog {
  max-width:500px;
}
#delete-dialog p,#recovery-dialog li {
  color:var(--muted);
  font-size:13px;
  line-height:1.8;
}
#recovery-dialog li {
  margin-bottom:14px;
}
#restore-preview {
  max-height:160px;
  overflow:auto;
  overflow-wrap:anywhere;
  font-size:12px;
  line-height:1.7;
}
#restore-file {
  max-width:100%;
}
#notice {
  position:fixed;
  right:24px;
  bottom:24px;
  max-width:500px;
  z-index:200;
  background:var(--text);
  color:var(--surface);
  border:1px solid #434b43;
  border-radius:8px;
  padding:15px 20px;
  font-size:12px;
  line-height:1.6;
  box-shadow:0 8px 30px #24272520;
  display:none;
}
#notice.visible {
  display:block;
}
#notice.error {
  background:#873333;
  border-color:#873333;
}
footer {
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:28px 0;
  margin-top:48px;
  border-top:1px solid var(--border);
  font-size:11px;
  color:var(--muted);
  line-height:1.7;
}
footer .mono {
  font-size:11px;
  letter-spacing:.05em;
}
#print-report {
  display:none;
}
::selection {
  background:#d7e0ff;
  color:#192b69;
}
html {
  scrollbar-color:#a7ad9f var(--ground);
}
[hidden] {
  display:none!important;
}
@media(min-width:1600px) {
  main {
    padding-inline:64px;
  }
  #view {
    max-width:1400px;
    margin:auto;
  }
}
@media(max-width:1100px) {
  #shell:not([hidden]) {
    grid-template-columns:220px minmax(0,1fr);
  }
  aside {
    padding-inline:20px;
  }
  .brand-name {
    font-size:23px;
  }
  .brand-logo {
    width:36px;
    height:36px;
    flex-basis:36px;
  }
  .brand {
    gap:10px;
  }
  main {
    padding-inline:30px;
  }
  .page-heading {
    align-items:flex-start;
  }
  .mission-strip {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .hat:nth-child(2n) {
    border-right:0;
  }
  .hat {
    border-bottom:1px solid var(--border);
  }
  .hat:last-child {
    grid-column:1 / -1;
  }
  .hat {
    padding:18px 14px;
  }
}
@media(max-width:800px) {
  #shell:not([hidden]) {
    grid-template-columns:220px minmax(0,1fr);
  }
  aside {
    padding:28px 16px;
  }
  .brand {
    gap:8px;
  }
  .brand-name {
    font-size:21px;
  }
  .brand-logo {
    width:30px;
    height:30px;
    flex-basis:30px;
  }
  .brand-subline {
    font-size:11px;
  }
  main {
    padding-inline:24px;
  }
  .page-heading {
    flex-direction:column;
    gap:18px;
  }
  .page-heading>.primary {
    align-self:flex-start;
  }
  .topline {
    min-height:70px;
    font-size:11px;
  }
  .topline span:last-child {
    display:none;
  }
  .quick-start {
    padding:22px;
  }
  .review-guide {
    grid-template-columns:minmax(0,1fr);
  }
  .review-guide>button {
    grid-column:1;
    grid-row:auto;
    max-width:none;
    justify-self:start;
  }
  .stats {
    gap:14px;
  }
  .stat {
    padding-left:14px;
  }
  .stat strong {
    font-size:28px;
  }
  .stat span {
    font-size:11px;
  }
  .toolbar select {
    max-width:100%;
  }
  .section-title {
    align-items:baseline;
  }
  .section-title h2 {
    font-size:19px;
  }
}
@media(max-width:700px) {
  #shell:not([hidden]) {
    display:block;
  }
  aside {
    position:static;
    height:auto;
    border-right:0;
    border-bottom:1px solid var(--border);
    padding:20px 20px 8px;
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:18px;
  }
  .brand-name {
    font-size:25px;
  }
  .brand-logo {
    width:38px;
    height:38px;
    flex-basis:38px;
  }
  .brand-subline {
    font-size:11px;
  }
  .brand {
    gap:12px;
  }
  .workspace-label,.rail-bottom {
    display:none;
  }
  nav {
    display:flex;
    flex-wrap:wrap;
    gap:8px;
  }
  .nav {
    width:auto;
    gap:9px;
    padding:10px 12px;
    min-height:44px;
    font-size:11px;
  }
  .nav span {
    font-size:12px;
  }
  .nav.active {
    box-shadow:none;
  }
  main {
    padding-inline:20px;
  }
  .topline {
    min-height:54px;
    font-size:11px;
  }
  .local-notice {
    padding:12px 0;
    gap:3px;
  }
  .local-notice strong {
    font-size:11px;
  }
  .local-notice summary {
    min-height:32px;
  }
  .page-heading {
    padding:28px 0 24px;
    gap:18px;
    align-items:stretch;
  }
  .page-heading h1 {
    font-size:31px;
    line-height:1.2;
  }
  .page-heading p {
    font-size:13px;
  }
  .page-heading>.primary {
    align-self:stretch;
    width:100%;
  }
  .quick-start {
    padding:22px 20px;
    margin-bottom:20px;
  }
  .quick-start h2,.review-guide h2 {
    font-size:19px;
  }
  .quick-start p,.quick-start ol,.review-guide p,.review-guide ol {
    font-size:12px;
  }
  .quick-start button,.review-guide>button {
    width:100%;
    min-height:44px;
  }
  .mission-strip {
    grid-template-columns:minmax(0,1fr);
  }
  .hat {
    border-right:0;
  }
  .hat:last-child {
    grid-column:auto;
  }
  .section-title {
    margin-top:28px;
  }
  .toolbar {
    gap:10px;
  }
  .toolbar input,.toolbar select {
    flex-basis:100%;
    width:100%;
    max-width:none;
  }
  .toolbar .count {
    margin-left:0;
  }
  .table-wrap table {
    min-width:0;
  }
  .table-wrap table,.table-wrap tbody {
    display:block;
  }
  .table-wrap thead {
    position:absolute;
    width:1px;
    height:1px;
    overflow:hidden;
    clip-path:inset(50%);
  }
  .table-wrap tr {
    display:block;
    border-bottom:1px solid var(--border);
    padding:14px 18px;
  }
  .table-wrap tr:last-child {
    border-bottom:0;
  }
  .table-wrap td,.table-wrap td:first-child,.table-wrap td:last-child {
    display:grid;
    grid-template-columns:98px minmax(0,1fr);
    gap:10px;
    padding:7px 0;
    text-align:left;
    border:0;
  }
  .table-wrap td::before {
    content:attr(data-label);
    font-size:11px;
    font-weight:500;
    color:var(--muted);
    line-height:1.7;
  }
  .table-wrap td:first-child {
    display:block;
  }
  .table-wrap td:first-child::before {
    display:block;
    margin-bottom:3px;
  }
  .table-wrap td:first-child .row-button {
    display:block;
    width:100%;
    min-height:36px;
  }
  .empty {
    padding:32px 20px;
  }
  .empty h2 {
    font-size:21px;
  }
  .empty p {
    font-size:12px;
  }
  .empty button {
    width:100%;
  }
  .stats {
    gap:10px;
    padding-block:18px;
  }
  .stat {
    padding-left:10px;
  }
  .stat strong {
    font-size:27px;
  }
  .stat span {
    display:block;
    font-size:11px;
    line-height:1.6;
  }
  .detail-actions {
    align-items:stretch;
    gap:8px;
  }
  .detail-actions button {
    flex:1 1 145px;
    padding:10px 12px;
    min-height:44px;
    font-size:12px;
  }
  .detail-actions .text-button {
    text-align:center;
  }
  .tabs {
    gap:22px;
  }
  .tab {
    font-size:11px;
    min-height:48px;
  }
  .review-guide {
    gap:10px;
    padding-block:18px;
  }
  .review-guide>button {
    justify-self:stretch;
  }
  .mission-header {
    display:block;
  }
  .mission-header .eyebrow {
    margin-bottom:8px;
  }
  .mission p,.mission li,.coverage li {
    font-size:12px;
  }
  #assessment-panel>.page-heading h1 {
    font-size:24px;
  }
  .form-grid {
    grid-template-columns:1fr;
    gap:0;
  }
  .form-grid label:first-child {
    margin-top:18px;
  }
  .dialog-head {
    margin-bottom:20px;
  }
  .dialog-head h2 {
    font-size:25px;
  }
  dialog {
    width:calc(100vw - 24px);
    max-height:calc(100dvh - 24px);
    padding:22px 20px;
  }
  .close {
    min-width:44px;
    min-height:44px;
  }
  .dialog-actions {
    flex-wrap:wrap;
    gap:10px;
  }
  .dialog-actions button {
    flex:1 1 auto;
    min-height:44px;
  }
  .role-checks {
    gap:4px 16px;
  }
  .role-checks label {
    min-height:44px;
    align-items:center;
    margin:2px 0;
  }
  .attestation {
    min-height:44px;
    padding-block:8px;
  }
  .input-heading {
    align-items:flex-end;
    flex-wrap:wrap;
    gap:0 12px;
  }
  .input-heading .text-button {
    font-size:12px;
  }
  input,select,textarea {
    font-size:16px;
  }
  footer {
    flex-direction:column;
    gap:6px;
    margin-top:32px;
    padding-block:24px;
  }
  #notice {
    right:16px;
    left:16px;
    bottom:16px;
  }
  #view:has(>.review-guide)>.page-heading {
    padding:20px 0;
  }
  #view:has(>.review-guide)>.back {
    margin-top:12px;
  }
}
@media(max-width:380px) {
  main {
    padding-inline:16px;
  }
  .stats {
    grid-template-columns:1fr;
    gap:0;
    padding-block:6px;
  }
  .stat,.stat:first-child {
    border-left:0;
    padding:10px 0;
    display:flex;
    align-items:baseline;
    justify-content:space-between;
    gap:12px;
  }
  .stat+.stat {
    border-top:1px solid var(--border);
  }
  .stat strong {
    margin:0;
  }
  .stat span {
    font-size:11px;
  }
  .table-wrap td,.table-wrap td:last-child {
    grid-template-columns:88px minmax(0,1fr);
  }
  .nav {
    padding-inline:10px;
  }
}
@media(prefers-reduced-motion:reduce) {
  button {
    transition:none;
  }
  button:active {
    transform:none;
  }
}
@media print {
  :root {
    color-scheme:light;
    color:#242725;
    background:#fff;
    font-size:11pt;
  }
  body>* {
    display:none!important;
  }
  body>#print-report {
    display:block!important;
  }
  #print-report {
    color:#242725;
    background:#fff;
    padding:10mm 6mm;
    font-family:Manrope,sans-serif;
  }
  #print-report .report-logo {
    width:210px;
    height:auto;
    display:block;
    margin-bottom:24px;
  }
  #print-report p {
    font-size:10pt;
    line-height:1.6;
    white-space:pre-wrap;
    overflow-wrap:anywhere;
  }
  #print-report h1 {
    font-size:25pt;
    line-height:1.2;
    margin-bottom:18pt;
  }
  #print-report h2 {
    font-size:17pt;
    line-height:1.3;
    margin-top:24pt;
    break-after:avoid;
  }
  #print-report h3 {
    font-size:12pt;
    line-height:1.4;
    break-after:avoid;
  }
  #print-report .eyebrow {
    color:#62665f;
  }
  .print-finding {
    border-top:1px solid #bfc2b9;
    padding-top:14pt;
    margin-top:14pt;
  }
  #print-report .snapshot-hash {
    overflow-wrap:anywhere;
  }
  @page {
    margin:12mm;
  }
}

/* Veyra wordmark: an open typographic identity, without an enclosing emblem. */
.brand-wordmark {
  display: block;
  width: 137px;
  height: 52px;
  object-fit: contain;
}
.brand-subline {
  margin-top: -2px;
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 500;
}
@media (max-width:700px) {
  .brand-wordmark { width: 126px; height: 48px; }
  .brand-subline { margin-top: -3px; font-size: 11px; }
}

/* Protocol study: references and draft actions share a clear reading order. */
.protocol-context {
  border-block:1px solid var(--border);
  margin:0 0 28px;
  padding:12px 0 28px;
}
.protocol-context>summary { font-size:14px; }
.protocol-context>.fine { max-width:75ch; margin-bottom:20px; }
.protocol-picker { max-width:400px; }
.protocol-picker label { display:block; margin-bottom:8px; }
.protocol-picker select { width:100%; }
.protocol-card { display:grid; grid-template-columns:minmax(0,1fr) minmax(240px,280px); gap:44px; margin-top:28px; }
.protocol-card[hidden] { display:none; }
.protocol-card>div { min-width:0; }
.protocol-card h3 { font-size:23px; margin-bottom:12px; }
.protocol-card h4 { font-size:14px; font-weight:650; line-height:1.5; margin:24px 0 12px; }
.protocol-reading p { max-width:70ch; }
.protocol-reading ul { padding-left:20px; margin:0; }
.protocol-reading li { line-height:1.7; padding-left:4px; margin-bottom:12px; }
.protocol-resources { border-top:1px solid var(--border); margin-top:24px; }
.protocol-resources .text-button { display:inline-flex; align-items:center; min-height:44px; }
.protocol-resources>p { margin:4px 0 8px; }
.protocol-sources { display:flex; flex-direction:column; align-items:flex-start; gap:4px; }
.protocol-sources a { overflow-wrap:anywhere; }
.protocol-drafting { border-left:1px solid var(--border); padding-left:28px; }
.protocol-drafting h4 { margin-top:0; }
.protocol-drafting .fine { margin-bottom:16px; }
.protocol-actions { display:grid; gap:8px; }
.protocol-actions button { width:100%; min-height:44px; text-align:left; white-space:normal; }
@media(max-width:1100px) {
  .protocol-card { grid-template-columns:minmax(0,1fr); gap:28px; }
  .protocol-drafting { border-left:0; border-top:1px solid var(--border); padding:24px 0 0; }
  .protocol-actions { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:600px) {
  .protocol-picker { max-width:none; }
  .protocol-context { padding-bottom:24px; }
  .protocol-card { gap:24px; margin-top:24px; }
  .protocol-actions { grid-template-columns:minmax(0,1fr); }
}
