* { box-sizing: border-box; }
html { color: var(--foreground); background: var(--background); font-family: Arial, Helvetica, sans-serif; font-size: 14px; letter-spacing: 0; }
body { margin: 0; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 8px 14px; border: 1px solid var(--primary); border-radius: 6px; background: var(--primary); color: white; font-weight: 600; cursor: pointer; line-height: 1.35; }
button:hover, .button:hover { background: #213777; text-decoration: none; }
.secondary { background: white; color: var(--primary); border-color: var(--border); }
.secondary:hover { background: #edf2fb; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
input:not([type=hidden]), select, textarea { width: 100%; max-width: 100%; padding: 10px 12px; background: white; border: 1px solid #cad3df; border-radius: 5px; color: var(--foreground); }
label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 12px; }
p { line-height: 1.65; }
h1, h2, h3, h4, p { overflow-wrap: anywhere; }
h1 { font-size: 30px; line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: 20px; line-height: 1.3; margin: 0 0 16px; }
h3 { font-size: 14px; line-height: 1.4; margin: 0 0 12px; }
ul, ol { line-height: 1.7; padding-left: 22px; }
.icon { display: inline-block; width: 18px; height: 18px; flex: 0 0 18px; opacity: .7; vertical-align: middle; }
.site-header { background: white; border-bottom: 1px solid var(--border); }
.brand-rule { height: 4px; background: linear-gradient(90deg, #c6002d 0 24%, #294294 24% 72%, #6c93cc 72%); }
.header-inner { max-width: 1480px; min-height: 76px; margin: auto; padding: 12px 28px; display: flex; align-items: center; gap: 26px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--primary); flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand img { object-fit: contain; }
.brand strong { display: block; font-size: 15px; }
.brand small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.primary-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-link { display: flex; align-items: center; gap: 8px; padding: 11px 13px; font-weight: 600; font-size: 12px; border-radius: 5px; white-space: nowrap; color: #526071; }
.nav-link.active { background: var(--primary); color: white; }
.nav-link.active .icon { filter: invert(1); }
.account-menu { display: flex; align-items: center; gap: 12px; border-left: 1px solid var(--border); padding-left: 20px; font-size: 12px; }
.public-label { color: var(--muted); white-space: nowrap; }
.account-menu details { position: relative; }
.account-menu summary { cursor: pointer; display: flex; align-items: center; gap: 10px; list-style: none; }
.avatar { width: 32px; height: 32px; display: grid; place-items: center; background: #e9eef8; color: var(--primary); font-weight: 700; border-radius: 50%; }
.account-dropdown { position: absolute; right: 0; top: 44px; width: 230px; padding: 16px; background: white; border: 1px solid var(--border); box-shadow: 0 8px 28px #21212115; border-radius: 6px; z-index: 20; }
.account-dropdown p { margin-top: 0; }
.account-dropdown form { margin-top: 14px; }
.account-dropdown button { width: 100%; }
.page { max-width: 1480px; margin: auto; padding: 32px 28px 52px; min-height: calc(100vh - 152px); }
.auth-page { max-width: 460px; margin: 56px auto; padding: 0 24px; min-height: calc(100vh - 270px); }
.auth-page h1 { font-size: 26px; margin-bottom: 24px; }
.auth-page form > p { margin: 0 0 20px; }
.auth-page form > button { width: 100%; }
.auth-page .helptext, .auth-page li { color: var(--muted); font-size: 12px; }
.auth-page .helptext { display: block; margin-top: 8px; line-height: 1.65; }
.auth-page .errorlist, [role=alert] { color: #aa1534; }
.site-footer { max-width: 1480px; margin: auto; padding: 20px 28px; border-top: 1px solid var(--border); display: flex; gap: 12px; justify-content: space-between; color: var(--muted); font-size: 11px; }
.muted { color: var(--muted); }
.eyebrow { margin: 0 0 9px; color: var(--primary); font-size: 11px; text-transform: uppercase; font-weight: 700; }
.page-heading { display: flex; gap: 28px; align-items: flex-end; justify-content: space-between; margin: 0 0 26px; }
.page-heading p:last-child { margin: 0; font-size: 13px; max-width: 710px; }
.summary-stats { display: flex; flex-shrink: 0; gap: 22px; margin: 0; }
.summary-stats > div { display: flex; flex-direction: column-reverse; border-left: 2px solid var(--accent); padding-left: 12px; min-width: 72px; gap: 5px; }
.summary-stats dd { font-size: 20px; font-weight: 700; margin: 0; }
.summary-stats dt { text-transform: uppercase; font-size: 9px; color: var(--muted); }
.library-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 30px; align-items: start; }
.library-main { min-width: 0; }
.filter-form { display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 12px; padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.filter-form select, .filter-form input { font-size: 12px; min-height: 38px; }
.filter-actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; font-size: 11px; grid-column: 1 / -1; color: var(--muted); }
.filter-actions > span { margin-right: auto; }
.filter-actions button { min-height: 32px; padding: 6px 12px; font-size: 12px; }
.level-tabs { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); border: 1px solid var(--border); background: white; }
.level-tabs a { border-right: 1px solid var(--border); padding: 12px; color: #43526a; font-size: 11px; }
.level-tabs a:last-child { border: 0; }
.level-tabs strong { display: block; font-size: 19px; margin-top: 7px; }
.level-tabs .selected { background: #eaf0fb; box-shadow: inset 0 -3px var(--primary); color: var(--primary); }
.artifact-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; font-size: 10px; }
.artifact-tabs > span { color: var(--muted); text-transform: uppercase; margin-right: 5px; font-weight: 600; }
.artifact-tabs a { display: flex; gap: 9px; align-items: center; padding: 7px 9px; background: white; border: 1px solid var(--border); border-radius: 4px; font-weight: 600; }
.artifact-tabs a.selected { background: #eaf0fb; border-color: var(--accent); }
.artifact-tabs a span { color: var(--muted); font-size: 9px; }
.table-heading { display: flex; justify-content: space-between; margin: 14px 0; font-size: 11px; color: var(--muted); }
.table-heading strong { color: #43526a; }
.table-scroll { position: relative; width: 100%; overflow-x: auto; border: 1px solid var(--border); background: white; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th { font-size: 11px; color: var(--muted); background: #f8fafc; padding: 13px 15px; border-bottom: 1px solid var(--border); }
td { padding: 16px 14px; border-bottom: 1px solid #e9edf3; vertical-align: top; font-size: 12px; line-height: 1.6; }
tr:last-child td { border-bottom: 0; }
.document-table { min-width: 650px; }
.activity-register { min-width: 700px; }
.activity-register small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.document-table tr:hover td { background: #f7faff; }
.document-table .selected-row td { background: #f0f5ff; }
.document-table td:first-child { width: 61%; }
.document-table td:nth-child(2) { width: 24%; }
.document-table td:nth-child(2) strong { display: block; font-size: 11px; }
.document-table td .muted, .workspace-history td .muted { display: block; font-size: 10px; margin-top: 6px; }
.document-name { display: flex; align-items: flex-start; gap: 9px; padding-left: var(--indent,0); }
.document-name > div { min-width: 0; }
.document-icon { display: grid; place-items: center; width: 31px; height: 34px; flex: 0 0 31px; background: #edf1f7; border-radius: 5px; }
.document-title { display: block; font-size: 12px; font-weight: 600; color: #22314a; line-height: 1.6; }
.document-codes, .badge-row { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 7px; }
code { color: var(--primary); font-size: 11px; font-family: ui-monospace, monospace; font-weight: 600; overflow-wrap: anywhere; }
.badge { display: inline-block; font-size: 9px; font-weight: 600; line-height: 1.5; border-radius: 3px; padding: 3px 7px; background: #edf1f7; color: #526071; }
.classification { color: #694c93; background: #f0ecf8; }
.published { background: #e5f3ec; color: var(--success); }
.draft { background: #fff2d5; color: var(--warning); }
.version { color: var(--success); font-weight: 600; white-space: nowrap; font-size: 11px; }
.detail-link { display: block; margin-top: 6px; font-size: 10px; }
.detail-link .icon { width: 12px; height: 12px; }
.icon-button { width: 30px; height: 30px; flex: 0 0 30px; display: inline-grid; place-items: center; border-radius: 4px; }
.icon-button:hover { background: #e4ecf8; }
.tree-spacer { width: 12px; flex: 0 0 12px; }
.pagination, .pagination > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pagination { padding: 15px 0; color: var(--muted); font-size: 11px; }
.document-summary { border-left: 1px solid var(--border); padding: 4px 0 20px 24px; font-size: 12px; min-width: 0; }
.document-summary h2 { font-size: 19px; margin: 8px 0 16px; }
.document-summary section { border-top: 1px solid var(--border); padding: 18px 0; }
.document-summary h3 { font-size: 11px; color: var(--muted); margin-bottom: 10px; }
.compact { gap: 12px; margin: 24px 0; }
.compact > div { min-width: 0; flex: 1; padding-left: 9px; }
.compact dd { font-size: 18px; }
.compact dt { font-size: 8px; line-height: 1.5; }
.breadcrumb-list { list-style: none; padding: 0; }
.breadcrumb-list li { display: flex; align-items: baseline; gap: 8px; font-size: 11px; padding: 7px 0; border-bottom: 1px solid #e9edf3; }
.breadcrumb-list li .badge { flex-shrink: 0; }
.metadata { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.metadata dt { font-size: 10px; color: var(--muted); margin-bottom: 6px; }
.metadata dd { margin: 0; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; line-height: 1.65; }
.context-note p { font-size: 11px; max-height: 250px; overflow-y: auto; padding-right: 8px; }
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li { padding: 9px 0; border-bottom: 1px solid #e9edf3; font-size: 12px; }
.wide { width: 100%; }
.empty-state { text-align: center; padding: 38px 20px; }
.workspace-nav { margin: 24px 0; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: #f8fafc; }
.workspace-nav-guidance { margin: 0 0 12px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.workspace-nav-groups { display: flex; flex-wrap: wrap; gap: 12px; }
.workspace-nav-group { min-width: 0; padding-right: 12px; border-right: 1px solid #dce3ed; }
.workspace-nav-group:last-child { padding-right: 0; border-right: 0; }
.workspace-nav-group h2 { margin: 0 0 7px; color: #647187; font-size: 9px; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; }
.workspace-nav-links { display: flex; flex-wrap: wrap; gap: 5px; }
.workspace-nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 7px 10px; border: 1px solid transparent; border-radius: 6px; color: #405069; font-size: 12px; font-weight: 600; line-height: 1.35; }
.workspace-nav a:hover { background: #eef3fb; color: var(--primary); text-decoration: none; }
.workspace-nav a.active { border-color: #bdcce7; background: #e8eefb; color: var(--primary); box-shadow: inset 0 -2px var(--primary); }
.workspace-nav-count { display: inline-grid; min-width: 18px; height: 18px; place-items: center; padding: 0 5px; border-radius: 999px; background: #dbe5f8; color: #294294; font-size: 9px; font-variant-numeric: tabular-nums; }
.workspace-nav-mobile { display: none; }
.task-stats { border-bottom: 1px solid var(--border); padding-bottom: 24px; }
.task-priority { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 24px 0 0; padding: 18px 20px; border: 1px solid #bfd0ef; border-left: 4px solid var(--primary); border-radius: 12px; background: linear-gradient(135deg, #f1f6ff, #fff); }
.task-priority > div:first-child { max-width: 720px; }
.task-priority h2 { margin: 0 0 7px; font-size: 17px; }
.task-priority p:last-child { margin: 0; color: #526177; font-size: 11px; line-height: 1.65; }
.task-priority-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 8px; max-width: 420px; }
.task-priority-actions .button { min-height: 34px; padding: 7px 10px; font-size: 11px; text-align: center; }
.task-section { padding: 28px 0; border-bottom: 1px solid var(--border); }
.task-section .section-heading p { margin: 5px 0 0; }
.task-list { display: grid; gap: 10px; }
.task-card { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 16px 18px; border: 1px solid var(--border); background: white; }
.task-card > div { min-width: 0; }
.task-card .document-title { font-size: 13px; }
.task-card p { margin: 5px 0 0; font-size: 11px; line-height: 1.55; }
.task-card .button { flex: 0 0 auto; }
.task-blocker { color: var(--destructive); }
.tone-red { background: #fbe8ec; color: #a50b32; }
.tone-blue { background: #e8f1ff; color: #294294; }
.gate-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.gate-list li { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--border); background: white; }
.gate-list li > span { display: grid; place-items: center; width: 25px; height: 25px; flex: 0 0 25px; border-radius: 50%; font-weight: 700; }
.gate-list strong { display: block; font-size: 12px; }
.gate-list p { margin: 4px 0 0; font-size: 11px; line-height: 1.55; }
.gate-list .gate-action { display: inline-flex; margin-top: 10px; min-height: 31px; padding: 6px 9px; font-size: 10px; }
.gate-pass > span { background: #e5f3ec; color: var(--success); }
.gate-fail { border-color: #e6b8c4 !important; }
.gate-fail > span { background: #fbe8ec; color: var(--destructive); }
.decision-options { display: grid; gap: 12px; margin: 20px 0; }
.decision-option { display: grid; gap: 8px; }
.decision-option > button { justify-self: start; }
.decision-option > button:disabled { opacity: .5; cursor: not-allowed; }
.decision-option .notice { font-size: 11px; }
.decision-option .notice ul { margin-bottom: 0; }
.override-field { padding: 12px 14px; border: 1px solid #d8c28d; background: #fff8e8; }
.override-field input { width: auto; margin-right: 8px; }
.override-field label { display: inline; }
.revision-sections { display: grid; gap: 12px; }
.revision-sections > details { border: 1px solid var(--border); background: white; }
.revision-sections > details > summary { cursor: pointer; padding: 14px 16px; font-weight: 600; }
.revision-changes { display: grid; gap: 12px; padding: 0 16px 16px; }
.revision-change { border-top: 1px solid var(--border); padding-top: 14px; }
.revision-change > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.comparison-grid > div { min-width: 0; padding: 13px; background: #f8fafc; border-left: 3px solid #aeb9c8; }
.comparison-grid > div + div { background: #f3f7fd; border-color: var(--primary); }
.comparison-grid h3 { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.comparison-grid p { margin: 5px 0; font-size: 11px; white-space: pre-wrap; }
.change-added { background: #e5f3ec; color: var(--success); }
.change-removed { background: #fbe8ec; color: var(--destructive); }
.change-changed { background: #fff2d5; color: var(--warning); }
.workspace-stats { justify-content: flex-start; flex-wrap: wrap; margin: 24px 0; }
.workspace-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.workspace-table { min-width: 760px; }
.workspace-load-more td { padding: 14px 16px; background: #f8fafc; text-align: center; }
.workspace-load-message { display: inline-block; margin-right: 8px; color: var(--muted); font-size: 11px; }
.workspace-load-more a { font-size: 11px; font-weight: 700; }
html.js-enabled .workspace-pagination { display: none; }
.workspace-history { min-width: 620px; }
.workspace-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.workspace-actions .button, .workspace-actions button { min-height: 40px; max-width: 100%; white-space: normal; text-align: center; }
.workspace-form-page { max-width: 960px; }
.workspace-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.workspace-form h1 { font-size: 24px; padding-right: 35px; }
.workspace-form h2 { font-size: 17px; }
.workspace-form .form-field { min-width: 0; }
.workspace-form .full-width { grid-column: 1 / -1; }
.workspace-form textarea { min-height: 120px; resize: vertical; }
.workspace-form input, .workspace-form select, .workspace-form textarea { width: 100%; max-width: 100%; box-sizing: border-box; }
.workspace-form label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 600; }
.workspace-form .errorlist { color: var(--destructive); font-size: 12px; padding-left: 18px; }
.workspace-form p, .workspace-page td, .detail-page h1, .activity-list p { overflow-wrap: anywhere; }
.priority-0 { background: #fbe8ec; color: #a50b32; }
.priority-1, .priority-2 { background: #fff2d5; color: #865912; }
#workspace-dialog { width: min(880px, calc(100% - 28px)); max-height: calc(100dvh - 40px); box-sizing: border-box; border: 1px solid var(--border); border-radius: 8px; padding: 28px; color: var(--foreground); }
#workspace-dialog::backdrop { background: rgb(25 32 45 / 45%); }
.dialog-close { position: absolute; right: 14px; top: 14px; padding: 5px; background: transparent; color: var(--foreground); }
@media (max-width: 600px) {
  .workspace-fields { grid-template-columns: 1fr; }
  .task-priority { align-items: flex-start; flex-direction: column; }
  .task-priority-actions { justify-content: flex-start; max-width: none; }
  .task-card { align-items: flex-start; flex-direction: column; }
  .gate-list, .comparison-grid { grid-template-columns: 1fr; }
  #workspace-dialog { padding: 20px; }
  .workspace-form h1 { font-size: 21px; }
}
.empty-state h2 { font-size: 17px; margin-top: 15px; }
.empty-state p { color: var(--muted); font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.detail-page { max-width: 1240px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 25px; font-size: 12px; }
.document-heading { padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.document-heading h1 { font-size: 27px; margin: 12px 0 0; max-width: 960px; }
.detail-metadata { grid-template-columns: repeat(4,minmax(0,1fr)); margin: 22px 0 30px; }
.document-body { padding: 25px 0; }
.document-body p { max-width: 920px; color: #4d596c; }
.detail-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; border-top: 1px solid var(--border); padding: 28px 0; }
.activity-section { border-top: 1px solid var(--border); padding-top: 28px; }
.activity-list { padding-left: 0; list-style: none; }
.activity-list li { border-left: 2px solid var(--accent); padding: 0 0 16px 18px; margin-bottom: 14px; font-size: 12px; }
.activity-list span { display: block; font-size: 11px; color: var(--muted); }
.process-section { border-top: 1px solid var(--border); padding: 26px 0; }
.process-section p, .process-section li { font-size: 12px; color: #4d596c; line-height: 1.8; }
.section-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; }
.section-heading h2 { margin: 0; }
.boundary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.boundary-grid > div { border-left: 3px solid #6c93cc; padding: 3px 18px; }
.boundary-grid > div:nth-child(2) { border-color: #54a98c; }
.boundary-grid summary { padding: 10px 0; font-weight: 600; cursor: pointer; }
.sipoc-grid { display: grid; grid-template-columns: 1fr 1fr 1.35fr 1fr 1fr; border: 1px solid var(--border); background: white; }
.sipoc-grid section { border-right: 1px solid var(--border); padding: 17px; min-width: 0; }
.sipoc-grid section:last-child { border-right: 0; }
.sipoc-grid section:nth-child(2) { background: #f4fafc; }
.sipoc-grid section:nth-child(3) { background: #f0f5ff; }
.sipoc-grid section:nth-child(4) { background: #f7f5fc; }
.sipoc-grid section:nth-child(5) { background: #f1f9f5; }
.sipoc-grid h3 { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.sipoc-grid h3 b { width: 25px; height: 25px; display: grid; place-items: center; background: var(--primary); color: white; border-radius: 4px; }
.sipoc-grid p { font-size: 10px; min-height: 34px; }
.sipoc-grid ul, .sipoc-grid ol { padding-left: 16px; }
.sipoc-grid li { margin-bottom: 12px; font-size: 11px; overflow-wrap: anywhere; }
.diagram-scroll { width: 100%; overflow: auto; max-height: 700px; background: white; border: 1px solid var(--border); }
.diagram-scroll svg { display: block; max-width: none; font-family: Arial, sans-serif; }
.diagram-legend { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding: 14px 0; font-size: 10px; color: var(--muted); }
.diagram-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.register-item { padding: 16px 0; border-bottom: 1px solid var(--border); }
.register-item:last-child { border-bottom: 0; }
.register-item h3 { margin: 8px 0; }
.register-item p { margin: 6px 0; }
.notice { padding: 18px 20px; border-left: 3px solid var(--accent); }
.notice p:last-child { margin-bottom: 0; }
.notice.success { background: #e9f5ef; border-color: var(--success); }
.notice.warning { background: #fff5e2; border-color: #c99236; }
.warning-text { color: #9b5815 !important; font-size: 11px; }
.view-tabs { display: flex; border: 1px solid var(--border); padding: 3px; border-radius: 5px; background: white; }
.view-tabs a { padding: 8px 12px; font-size: 12px; border-radius: 3px; }
.view-tabs .active { background: var(--primary); color: white; }
.raci-matrix { width: max-content; min-width: 100%; }
.raci-matrix thead th { background: #26364c; color: white; width: 140px; min-width: 140px; max-width: 160px; vertical-align: bottom; }
.raci-matrix th:first-child { min-width: 280px; width: 280px; max-width: 320px; }
.raci-matrix tbody th { background: #f6f8fb; border: 1px solid var(--border); }
.raci-matrix tbody th p { font-weight: 500; margin: 8px 0; }
.raci-matrix td { text-align: center; border-right: 1px solid var(--border); vertical-align: middle; }
.raci-mark { display: inline-grid; place-items: center; min-width: 30px; height: 30px; border: 1px solid #d0d9e7; background: #edf1f7; color: #526071; font-size: 11px; font-weight: 700; border-radius: 4px; }
.raci-mark.R { background: #e8f1ff; color: #294294; border-color: #c7d7ee; }
.raci-mark.A { background: #f0e9fa; color: #70429b; border-color: #dfcdeb; }
.raci-mark.C { background: #fff3d7; color: #926517; border-color: #f1dfb6; }
.raci-mark.AR { background: #f8e8f4; color: #9a377d; border-color: #eccae2; }
.role-layout { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 30px; }
.role-layout nav { border-right: 1px solid var(--border); padding-right: 18px; }
.role-layout nav a { display: block; padding: 11px; font-size: 12px; line-height: 1.6; }
.role-layout nav a.active { background: #e6edf9; color: var(--primary); font-weight: 600; }
.role-layout nav a .badge { margin-top: 5px; }
.role-governance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 9px; margin-top: 14px; }
.role-governance-grid article { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 7px; border: 1px solid var(--border); border-radius: 8px; padding: 11px; background: #f8fafc; }
.role-governance-grid strong { flex: 1 1 150px; font-size: 11px; line-height: 1.55; color: #26364c; }
.role-governance-grid small { flex-basis: 100%; font-size: 9px; line-height: 1.5; color: var(--muted); }
.role-alignment-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.role-alignment-stats > div { padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: #f8fafc; }
.role-alignment-stats dt { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.role-alignment-stats dd { margin: 5px 0 0; color: var(--text); font-size: 22px; font-weight: 750; }
.role-alignment details { border-top: 1px solid var(--border); padding-top: 14px; }
.role-alignment summary { cursor: pointer; color: var(--primary); font-weight: 700; }
.role-crosswalk { margin-top: 14px; }
.role-crosswalk td:first-child { min-width: 260px; }
.role-crosswalk small { display: block; max-width: 620px; margin-top: 5px; color: var(--muted); line-height: 1.5; }
.role-crosswalk .raci-mark { display: inline-grid; margin: 0 3px; }
.raci-matrix thead th .badge { display: block; width: fit-content; margin-top: 6px; }
/* Long matrices keep the activity column and role headers in view while scrolling. */
.table-scroll:has(> .raci-matrix) { max-height: 78vh; overflow: auto; }
.raci-matrix thead th { position: sticky; top: 0; z-index: 2; }
.raci-matrix tbody th { position: sticky; left: 0; z-index: 1; }
.raci-matrix thead th:first-child { left: 0; z-index: 3; }
/* Design and review material stays available but folded below the work content. */
.design-notes > summary { cursor: pointer; font-size: 15px; font-weight: 700; color: var(--foreground); }
.design-notes[open] > summary { margin-bottom: 8px; }
.design-notes > .role-alignment, .design-notes > .raci-status, .design-notes > .detail-columns, .design-notes > .metadata { margin-top: 22px; }
.guide-page { max-width: 1320px; }
.guide-map { padding: 24px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.guide-map h2 { font-size: 12px; color: var(--muted); }
.guide-map nav { display: flex; flex-wrap: wrap; gap: 12px; }
.guide-map > div + div { margin-top: 20px; }
.guide-map a { flex: 1; background: white; border: 1px solid var(--border); border-top: 3px solid var(--accent); padding: 12px; min-width: 105px; font-size: 12px; font-weight: 600; }
.guide-map span, .guide-map small { display: block; }
.guide-map small { color: var(--muted); font-weight: 400; line-height: 1.5; font-size: 10px; margin-top: 6px; }
.guide-layout { display: grid; grid-template-columns: 265px minmax(0,1fr); gap: 38px; }
.guide-nav { border-right: 1px solid var(--border); padding-right: 25px; }
.inline-search { display: flex; gap: 6px; }
.inline-search input { min-width: 0; }
.inline-search button { padding: 8px; flex-shrink: 0; }
.inline-search .icon { filter: invert(1); }
.guide-nav nav h2 { margin: 24px 0 8px; font-size: 10px; text-transform: uppercase; color: var(--muted); }
.guide-nav nav a { display: block; border-left: 2px solid transparent; padding: 11px 12px; color: #46566d; font-size: 12px; font-weight: 600; }
.guide-nav nav a span { display: block; font-size: 10px; font-weight: 400; line-height: 1.6; margin-top: 5px; color: var(--muted); }
.guide-nav nav a.active { background: #eaf0fb; border-color: var(--primary); color: var(--primary); }
.guide-detail > header h2 { font-size: 25px; }
.guide-detail > header { padding-bottom: 22px; }
.guide-detail p, .guide-detail li { font-size: 13px; line-height: 1.8; color: #4d596c; }
.guide-detail .detail-columns { margin-bottom: 0; gap: 26px; padding: 22px 0; }
.guide-detail details { padding: 18px 0; border-top: 1px solid var(--border); }
.guide-detail summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.guide-detail details li { margin-bottom: 8px; }
.guide-sources { border-top: 1px solid var(--border); padding: 24px 0; }
.guide-sources a { display: block; padding: 18px 0; border-bottom: 1px solid var(--border); }
.guide-sources span { display: block; font-size: 10px; color: var(--primary); margin-bottom: 7px; }
.guide-sources strong { color: var(--foreground); font-size: 13px; }
.guide-sources p { font-size: 11px; margin: 8px 0 0; }
@media (max-width: 850px) {
  .guide-layout { grid-template-columns: 1fr; gap: 24px; }
  .guide-nav { border-right: 0; padding-right: 0; }
  .guide-nav nav { max-height: 260px; overflow-y: auto; border-bottom: 1px solid var(--border); }
  .guide-detail > header h2 { font-size: 23px; }
}
@media (max-width: 850px) {
  .sipoc-grid { display: block; }
  .sipoc-grid section { border-right: 0; border-bottom: 1px solid var(--border); }
  .sipoc-grid p { min-height: 0; }
  .boundary-grid, .role-layout { grid-template-columns: 1fr; }
  .role-alignment-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .role-layout nav { border-right: 0; border-bottom: 1px solid var(--border); padding-bottom: 16px; max-height: 240px; overflow-y: auto; }
}
@media (max-width: 1150px) {
  .page-heading { align-items: flex-start; flex-direction: column; gap: 20px; }
  .library-layout { grid-template-columns: minmax(0,1fr) 280px; gap: 20px; }
  .filter-form { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .search-field { grid-column: 1 / -1; }
}
@media (max-width: 850px) {
  .library-layout { display: block; }
  .document-summary { border-left: 0; border-top: 1px solid var(--border); padding: 25px 0; }
  .detail-metadata { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .detail-columns { grid-template-columns: 1fr; gap: 24px; }
  .document-heading h1 { font-size: 23px; }
  .level-tabs a { padding: 11px 8px; }
}
@media (max-width: 960px) {
  .header-inner { gap: 14px; padding: 12px 20px; flex-wrap: wrap; }
  .brand { margin-right: auto; }
  .primary-nav { order: 3; width: 100%; margin-left: 0; flex-wrap: wrap; }
  .account-name, .public-label { display: none; }
  .page { padding: 26px 20px; }
}
@media (max-width: 520px) {
  .header-inner { padding: 10px 14px; gap: 10px; }
  .brand { gap: 8px; min-width: 0; flex: 1; }
  .brand img { width: 38px; height: 38px; }
  .brand strong { font-size: 13px; }
  .brand small { font-size: 8px; }
  .account-menu { padding-left: 10px; }
  .account-menu .button { padding: 8px; font-size: 12px; }
  .account-menu .button .icon { display: none; }
  .page { padding: 24px 14px; }
  h1 { font-size: 25px; }
  .site-footer { padding: 20px 14px; flex-wrap: wrap; }
}

/* Version-bound review center and inbox. */
.review-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.review-filters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; align-items: end; }
.review-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.review-field-wide { grid-column: 1 / -1; }
.review-form label, .review-filters label { display: block; margin-bottom: .4rem; font-weight: 600; }
.review-form input:not([type="hidden"]), .review-form select, .review-form textarea, .review-filters input, .review-filters select { width: 100%; min-width: 0; }
.review-form .help-text { font-size: .82rem; color: var(--muted); margin-top: .4rem; }
.review-list { display: grid; gap: 1rem; margin: 1.5rem 0; }
.review-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; background: var(--surface); margin-bottom: 1rem; overflow-wrap: anywhere; }
.review-card h2, .review-card h3 { margin: .7rem 0; }
.review-body { white-space: normal; overflow-wrap: anywhere; }
.review-form button:disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 640px) {
  .review-fields, .review-filters { grid-template-columns: minmax(0, 1fr); }
  .review-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-card { padding: 1rem; }
}

.content-editor .editor-row { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin: 20px 0; background: var(--surface); }
.content-editor input[type="checkbox"] { width: auto; }
.content-editor legend { font-weight: 600; padding: 0 8px; }
.content-editor .workspace-fields { margin-bottom: 20px; }

.access-page .content-editor { max-width: 48rem; }
.access-page .invitation-link { overflow-wrap: anywhere; }
.access-preview-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1180px; margin: 12px auto 0; padding: 12px 20px; border: 1px solid #d6a64b; border-radius: 10px; background: #fff8e8; color: #60420b; }
.access-preview-banner strong, .access-preview-banner span { display: block; }
.access-preview-banner span { margin-top: 2px; font-size: 12px; line-height: 1.45; }
.access-preview-banner form { flex: 0 0 auto; margin: 0; }
.access-result .notice form { margin: 12px 0 0; }
.access-workflow { margin: 24px 0; padding: 16px; border: 1px solid #cdd9ee; border-radius: 12px; background: #f6f9ff; }
.access-workflow ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.access-workflow li { min-width: 0; padding: 12px; border-radius: 8px; color: #526176; font-size: 12px; line-height: 1.45; }
.access-workflow li.active { background: #e1ebff; color: #183b7b; }
.access-workflow strong, .access-workflow span { display: block; }
.access-workflow span { margin-top: 3px; }
.access-action-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.access-action-groups section { min-width: 0; padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.access-action-groups p { margin: 0 0 8px; color: #647187; font-size: 10px; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; }
.access-action-groups div { display: flex; flex-wrap: wrap; gap: 6px; }
.access-action-groups a { display: inline-flex; align-items: center; min-height: 34px; padding: 7px 10px; border: 1px solid #d7e0ed; border-radius: 7px; color: #405069; font-size: 12px; font-weight: 600; line-height: 1.35; }
.access-action-groups a:hover { border-color: #9eb4dc; background: #eef3fb; color: var(--primary); text-decoration: none; }
.access-action-groups a.active { border-color: #5478bd; background: #294b91; color: #fff; }
.access-task { border-top: 3px solid #5478bd; }
.access-result { max-width: 56rem !important; border-top: 3px solid var(--success); }
.access-rollout { margin: 24px 0; padding: 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.access-rollout .metrics-grid { margin: 16px 0; }
.access-rollout td { min-width: 130px; vertical-align: top; }
.access-rollout td:first-child { min-width: 260px; }
.access-rollout td:last-child { min-width: 120px; }
.access-rollout td p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.access-rollout td:last-child a, .access-rollout td:last-child span { display: block; margin: 0 0 6px; }
.access-rollout td:last-child span { color: var(--muted); font-size: 12px; }
.rollout-pilot { background: #f6f9ff; }
.rollout-tag { display: inline-flex; margin-left: 6px; padding: 2px 6px; border-radius: 999px; background: #dfeaff; color: #294b91; font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.rollout-status { display: inline-flex; padding: 4px 7px; border-radius: 999px; font-size: 10px; line-height: 1.2; }
.status-ready_for_uat, .status-uat_passed, .status-active { background: #e2f4eb; color: #176c48; }
.status-appointment_required { background: #fff2d8; color: #81510a; }
.status-unresolved { background: #fde8e7; color: #9a312b; }
.access-capabilities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 14px 0 20px; }
.access-capabilities div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; }
.access-capabilities dt { color: #405069; font-size: 12px; }
.access-capabilities dd { margin: 0; white-space: nowrap; font-size: 12px; }
.access-capabilities .available { color: #18714b; }
.access-capabilities .unavailable { color: #8a4c00; }
.workspace-nav { flex-wrap: wrap; }
.access-page .form-field { margin: 1rem 0; }
.access-page .form-field > label { display: block; margin-bottom: .4rem; }
.access-page .content-editor { margin-bottom: 2rem; }
.access-page .help-text { color: var(--muted); font-size: .875rem; }

.sipoc-document { border-top: 1px solid var(--border); }
.sipoc-document .process-section:first-child { border-top: 0; }
.sipoc-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.sipoc-section-heading .eyebrow, .sipoc-model-header .eyebrow { margin: 0 0 5px; color: var(--primary); }
.sipoc-section-heading h2, .sipoc-model-header h2 { margin: 0; color: #17233b; }
.sipoc-purpose { max-width: 72rem; margin: 0 0 18px; color: #334155; font-size: 13px; line-height: 1.75; }
.sipoc-boundary-grid { gap: 16px; }
.sipoc-boundary-grid > div { padding: 16px 18px; border: 1px solid #cfe0f6; border-left: 4px solid #5b8cc8; border-radius: 12px; background: linear-gradient(135deg, #f8fbff, #fff); }
.sipoc-boundary-grid > div:nth-child(2) { border-color: #cce8dd; border-left-color: #3d9a78; background: linear-gradient(135deg, #f4fbf8, #fff); }
.sipoc-boundary-grid p { margin: 0; }
.sipoc-boundary-grid .eyebrow { margin-bottom: 7px; color: #45658e; font-size: 10px; }
.sipoc-model-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.sipoc-model-header > div { max-width: 750px; }
.sipoc-model-header .muted { margin: 7px 0 0; font-size: 11px; }
.sipoc-view-tabs { display: grid; flex: 0 0 auto; grid-template-columns: 1fr 1fr; gap: 4px; min-width: 230px; padding: 4px; border: 1px solid var(--border); border-radius: 12px; background: #f1f4f8; }
.sipoc-view-tabs a { padding: 9px 13px; border-radius: 9px; color: #5a6678; font-size: 11px; font-weight: 700; text-align: center; text-decoration: none; white-space: nowrap; }
.sipoc-view-tabs a:hover { background: rgb(255 255 255 / 70%); color: var(--primary); }
.sipoc-view-tabs a.active { background: #fff; color: var(--primary); box-shadow: 0 1px 3px rgb(24 39 75 / 12%), inset 0 0 0 1px #b9c7e4; }
.sipoc-trace-callout { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; padding: 15px 17px; border: 1px solid #c7d6f0; border-radius: 13px; background: linear-gradient(90deg, #f1f6ff, #fbfdff); }
.sipoc-trace-callout strong { color: #20346f; font-size: 12px; }
.sipoc-trace-callout p { margin: 5px 0 0; color: #5a6678; font-size: 10px; line-height: 1.55; }
.sipoc-trace-counts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.sipoc-trace-counts span { padding: 5px 8px; border-radius: 7px; background: #fff; color: #43536b; font-size: 9px; font-weight: 800; box-shadow: inset 0 0 0 1px #d9e1ec; white-space: nowrap; }
.sipoc-trace-counts .process-count { background: var(--primary-soft); color: var(--primary); box-shadow: inset 0 0 0 1px #c6d1ed; }
.sipoc-trace-layout { display: grid; grid-template-columns: minmax(250px, .72fr) minmax(0, 2.28fr); gap: 16px; align-items: start; }
.sipoc-step-nav, .sipoc-selected-step { overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.sipoc-step-nav > header { padding: 14px 15px 11px; border-bottom: 1px solid var(--border); background: #f8fafc; }
.sipoc-step-nav > header > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sipoc-step-nav > header .eyebrow { margin: 0; color: #68758a; font-size: 9px; }
.sipoc-step-nav > header strong { color: #68758a; font-size: 10px; }
.sipoc-step-list { display: grid; max-height: 650px; padding: 8px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #c4cede transparent; }
.sipoc-step-list a { display: grid; grid-template-columns: 25px minmax(0, 1fr); gap: 9px; align-items: start; padding: 10px; border-radius: 9px; color: #435168; text-decoration: none; }
.sipoc-step-list a:hover { background: #f5f7fb; color: var(--primary); }
.sipoc-step-list a > span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 999px; background: #e9edf4; color: #526178; font-size: 9px; font-weight: 800; }
.sipoc-step-list a > strong { font-size: 10px; line-height: 1.5; }
.sipoc-step-list a.active { background: var(--primary-soft); color: #1f3479; box-shadow: inset 0 0 0 1px #8da4d8; }
.sipoc-step-list a.active > span { background: var(--primary); color: #fff; }
.sipoc-selected-step { padding: 16px; }
.sipoc-selected-step > header { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: start; margin-bottom: 14px; padding: 15px; border: 1px solid #cbd8f0; border-radius: 12px; background: linear-gradient(135deg, #eef4ff, #fafcff); }
.sipoc-selected-step > header > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 900; }
.sipoc-selected-step > header .eyebrow { margin: 0 0 5px; color: #5a6f9f; font-size: 9px; }
.sipoc-selected-step > header h3 { margin: 0; color: #17233b; font-size: 14px; line-height: 1.55; }
.sipoc-relations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sipoc-relation-card { min-width: 0; padding: 14px; border: 1px solid var(--border); border-radius: 12px; overflow-wrap: anywhere; }
.sipoc-relation-card > header { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; }
.sipoc-relation-card > header b { display: grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; background: #334155; color: #fff; font-size: 11px; }
.sipoc-relation-card h4 { margin: 0; color: #1b273d; font-size: 12px; }
.sipoc-relation-card header p { margin: 2px 0 0; color: #66758b; font-size: 9px; line-height: 1.35; }
.sipoc-relation-card ul { margin: 0; padding-left: 16px; }
.sipoc-relation-card li { margin-bottom: 7px; color: #3f4d64; font-size: 10px; line-height: 1.55; }
.sipoc-relation-card.tone-slate { background: #f8fafc; }
.sipoc-relation-card.tone-sky { border-color: #bae2f7; background: #f1f9fd; }
.sipoc-relation-card.tone-sky > header b { background: #1779aa; }
.sipoc-relation-card.tone-violet { border-color: #ddd3f6; background: #f8f5ff; }
.sipoc-relation-card.tone-violet > header b { background: #6d28d9; }
.sipoc-relation-card.tone-emerald { border-color: #b8e5d4; background: #f1fbf7; }
.sipoc-relation-card.tone-emerald > header b { background: #16805f; }
@media (max-width: 900px) {
  .sipoc-model-header { align-items: stretch; flex-direction: column; }
  .sipoc-view-tabs { align-self: stretch; }
  .sipoc-trace-callout { align-items: flex-start; flex-direction: column; }
  .sipoc-trace-counts { justify-content: flex-start; }
  .sipoc-trace-layout { grid-template-columns: 1fr; }
  .sipoc-step-list { grid-auto-flow: column; grid-auto-columns: minmax(235px, 80%); max-height: none; overflow-x: auto; overflow-y: hidden; }
}
@media (max-width: 620px) {
  .sipoc-model-header .muted { line-height: 1.55; }
  .sipoc-view-tabs { min-width: 0; }
  .sipoc-view-tabs a { padding: 9px 8px; }
  .sipoc-trace-callout { padding: 13px; }
  .sipoc-selected-step { padding: 10px; }
  .sipoc-selected-step > header { grid-template-columns: 34px minmax(0, 1fr); padding: 12px; }
  .sipoc-selected-step > header > span { width: 34px; height: 34px; }
  .sipoc-relations { grid-template-columns: 1fr; }
}

.badge.tone-red { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.badge.tone-violet { background: #f5f3ff; color: #5b21b6; border: 1px solid #ddd6fe; }
.badge.tone-blue { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.badge.tone-emerald { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alignment-card { border: 1px solid #bfdbfe; background: rgba(239, 246, 255, .7); border-radius: .7rem; padding: 12px; margin: 14px 0; }
.alignment-card .eyebrow { margin: 0; color: var(--muted); font-size: 10px; }
.alignment-card p { margin: 8px 0 0; font-size: 11px; line-height: 1.6; color: #4d596c; }
.alignment-meta { display: block; margin-top: 2px; font-size: 10px; font-weight: 600; color: #1d4ed8; }
.alignment-queue { border: 1px solid var(--border); border-radius: 1rem; overflow: hidden; margin: 18px 0; background: #fff; }
.queue-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px; border-bottom: 1px solid var(--border); }
.queue-heading h2 { margin: 4px 0; font-size: 18px; } .queue-heading .muted { max-width: 48rem; font-size: 12px; line-height: 1.6; margin: 0; }
.queue-badge { padding: 8px 12px; font-size: 11px; }
.phase-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--border); }
.phase-tile { display: block; padding: 16px; text-decoration: none; color: inherit; border-left: 1px solid var(--border); }
.phase-tile:first-child { border-left: 0; } .phase-tile:hover { background: #f8fafc; }
.phase-tile.selected { background: rgba(239, 246, 255, .7); box-shadow: inset 0 0 0 2px #60a5fa; }
.phase-tile strong { float: right; font-size: 20px; } .phase-tile .muted { margin: 8px 0 0; font-size: 10px; line-height: 1.5; }
.queue-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px; background: #f8fafc; border-bottom: 1px solid var(--border); }
.queue-toolbar .muted { margin: 0; font-size: 10px; }
.queue-list { list-style: none; margin: 0; padding: 0; }
.queue-list li { display: grid; grid-template-columns: 64px minmax(0, 1fr) 220px; gap: 12px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.queue-list .badge-row { display: flex; flex-wrap: wrap; gap: 6px; } .queue-list code { font-size: 9px; font-weight: 700; }
.queue-list .document-title { display: block; margin-top: 8px; font-weight: 700; } .queue-list p.muted { margin: 4px 0 0; font-size: 10px; line-height: 1.5; }
.queue-rank { display: grid; place-items: center; width: 44px; height: 44px; border-radius: .7rem; background: #0f172a; color: #fff; font-family: ui-monospace, monospace; font-size: 12px; font-weight: 700; }
.queue-phase { text-align: right; } .queue-phase .muted { display: block; margin-top: 4px; font-size: 10px; }
@media (max-width: 720px) { .phase-tiles { grid-template-columns: 1fr 1fr; } .queue-list li { grid-template-columns: 1fr; } .queue-phase { text-align: left; } }

.review-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.review-tabs a { padding: 8px 14px; border: 1px solid var(--border); border-radius: .7rem; text-decoration: none; font-size: 12px; font-weight: 700; color: var(--text); }
.review-tabs a.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.badge.tone-amber { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.badge.primary { background: var(--primary); color: #fff; }
.confirmation-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 18px; }
.tone-text-red { color: #b91c1c; } .tone-text-emerald { color: #047857; } .tone-text-violet { color: #6d28d9; } .tone-text-blue { color: #1d4ed8; } .tone-text-amber { color: #b45309; }
.notice.info { background: #eff6ff; border-color: #bfdbfe; font-size: 12px; line-height: 1.6; margin-bottom: 18px; }
.notice.error { background: #fef2f2; border-color: var(--destructive); margin-bottom: 18px; }
.confirmation-list { display: grid; gap: 12px; }
.confirmation-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; background: var(--surface); overflow-wrap: anywhere; }
.confirmation-card h2 { font-size: 14px; line-height: 1.5; margin: 10px 0; }
.confirmation-baseline, .confirmation-history { border: 1px solid var(--border); border-radius: .5rem; background: #f8fafc; padding: 8px 12px; font-size: 11px; line-height: 1.6; margin: 10px 0; }
.confirmation-baseline summary, .confirmation-history summary { cursor: pointer; font-weight: 700; color: var(--primary); }
.confirmation-baseline .detail-columns { margin-top: 10px; }
.confirmation-decision { border: 1px solid var(--border); border-radius: .5rem; padding: 12px; font-size: 11px; line-height: 1.6; margin: 10px 0; }
.confirmation-decision p { margin: 0 0 4px; }
.confirmation-actions { margin: 12px 0 0; gap: 8px; }
.confirmation-actions form { display: inline; }
.confirmation-actions a.button.success { background: #047857; border-color: #047857; color: #fff; }
.confirmation-form { border: 1px solid #bfdbfe; background: #eff6ff; border-radius: .5rem; padding: 12px; margin-top: 12px; display: grid; gap: 8px; }
.confirmation-form textarea, .confirmation-form select { width: 100%; }
.confirmation-form .workspace-actions { margin: 4px 0 0; }
.confirmation-history ol { margin: 8px 0 0; padding-left: 16px; border-left: 2px solid var(--border); list-style: none; }
@media (max-width: 720px) { .confirmation-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.guide-note { margin-bottom: 18px; }
/* v142: document tables respond to their container, not the viewport (globals.css:108-160). */
.document-table-shell { container-type: inline-size; overflow-x: hidden; }
.document-table-shell .document-list-table { min-width: 0; width: 100%; table-layout: fixed; }
.document-table-shell .document-list-table td:first-child, .document-table-shell .document-list-table th:first-child { width: 58%; }
.document-table-shell .document-list-table td:nth-child(2), .document-table-shell .document-list-table th:nth-child(2) { width: 24%; }
.document-table-shell .document-list-table td:nth-child(3), .document-table-shell .document-list-table th:nth-child(3) { width: 13%; }
.document-table-shell .document-list-table td:last-child, .document-table-shell .document-list-table th:last-child { width: 5%; }
.document-table-shell .workspace-table td:first-child, .document-table-shell .workspace-table th:first-child { width: 55%; }
.document-table-shell .workspace-table td:nth-child(2), .document-table-shell .workspace-table th:nth-child(2) { width: 25%; }
.document-table-shell .workspace-table td:last-child, .document-table-shell .workspace-table th:last-child { width: 7%; }
/* The queue adds a Prioritas column; without its own width the fixed layout squeezed it to zero. */
.document-table-shell .queue-table td:first-child, .document-table-shell .queue-table th:first-child { width: 44%; }
.document-table-shell .queue-table td:nth-child(2), .document-table-shell .queue-table th:nth-child(2) { width: 22%; }
.document-table-shell .queue-table td:nth-child(4), .document-table-shell .queue-table th:nth-child(4) { width: 14%; }
.document-table-shell .document-title { min-width: 0; overflow-wrap: anywhere; }
.document-table-mobile-meta { display: none; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; font-size: 10px; color: var(--muted); }
.document-table-mobile-meta .button { min-height: 30px; padding: 4px 10px; font-size: 11px; }
@container (max-width: 760px) {
  .document-table-header, .document-table-secondary { display: none; }
  .document-list-table, .document-list-table tbody, .document-table-row, .document-table-main-cell { display: block; width: 100%; }
  .document-table-shell .document-list-table td.document-table-main-cell { width: 100%; }
  .document-table-main-cell { min-width: 0; padding: 1rem; }
  .document-name { padding-left: 0; }
  .document-table-mobile-meta { display: flex; }
}


/* Loading feedback: htmx marks the form or link that fired the request. */
.htmx-request, .htmx-request * { cursor: progress; }
.htmx-request { opacity: 0.7; transition: opacity 0.15s ease 0.15s; }

/* 2026 UI system refresh: calm hierarchy, stronger scanning and mobile efficiency. */
html { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 15px; color: #172238; }
body { min-width: 320px; background: radial-gradient(circle at 85% -10%, #eaf0ff 0, transparent 28rem), var(--background); }
body::before { content: ""; position: fixed; z-index: 100; top: 0; left: 0; width: 0; height: 3px; background: linear-gradient(90deg, var(--destructive), var(--primary), var(--accent)); opacity: 0; }
body.is-loading::before { width: 72%; opacity: 1; transition: width .7s ease, opacity .12s ease; }
a, button, input, select, textarea { transition: border-color .16s ease, background-color .16s ease, color .16s ease, box-shadow .16s ease, opacity .16s ease; }
button, .button { min-height: 42px; border-radius: 10px; padding: 9px 16px; box-shadow: 0 1px 2px rgb(24 39 75 / 10%); }
button:hover, .button:hover { background: var(--primary-strong); box-shadow: 0 5px 14px rgb(41 66 148 / 18%); }
.button.secondary:hover, button.secondary:hover { border-color: #b9c5d7; background: #edf2fb; color: var(--primary-strong); box-shadow: 0 4px 12px rgb(24 39 75 / 8%); }
input:not([type=hidden]), select, textarea { min-height: 44px; border-radius: 10px; border-color: #cdd7e5; padding: 10px 13px; }
input:not([type=hidden]):hover, select:hover, textarea:hover { border-color: #9eacc0; }
input:not([type=hidden]):focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgb(41 66 148 / 12%); outline: 0; }
h1 { color: #111a2d; letter-spacing: -.025em; }
.site-header { position: sticky; top: 0; z-index: 40; box-shadow: 0 1px 0 rgb(33 49 74 / 5%); }
.brand-rule { height: 3px; }
.header-inner { min-height: 74px; }
.brand strong { font-size: 16px; letter-spacing: -.01em; }
.brand small { letter-spacing: .08em; }
.nav-link { min-height: 42px; padding: 11px 14px; border-radius: 9px; font-size: 13px; }
.nav-link:hover { background: #f0f4fb; color: var(--primary); text-decoration: none; }
.nav-link.active { box-shadow: 0 7px 17px rgb(41 66 148 / 18%); }
.page { max-width: 1540px; padding-top: 38px; }
.library-page { padding-bottom: 68px; }
.library-hero { align-items: center; margin-bottom: 30px; }
.library-intro { min-width: 0; }
.library-intro .eyebrow { letter-spacing: .12em; }
.library-intro h1 { font-size: clamp(30px, 3vw, 42px); margin-bottom: 10px; }
.library-intro > p:last-child { max-width: 760px; font-size: 14px; }
.library-stats { gap: 10px; padding: 8px; border: 1px solid rgb(220 227 238 / 85%); border-radius: 15px; background: rgb(255 255 255 / 85%); box-shadow: var(--shadow-sm); backdrop-filter: blur(12px); }
.library-stats > div { min-width: 112px; padding: 8px 14px; border-left: 0; border-right: 1px solid var(--border); }
.library-stats > div:last-child { border-right: 0; }
.library-stats dd { color: #18243b; font-size: 22px; }
.library-stats dt { font-size: 9px; letter-spacing: .08em; }
.library-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; }
.library-main > .filter-form, .workspace-filters { display: block; margin-bottom: 20px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: rgb(255 255 255 / 92%); box-shadow: var(--shadow-sm); }
.library-searchbar, .workspace-searchbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.search-input-shell { position: relative; display: block; }
.search-input-shell > .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); z-index: 1; opacity: .55; pointer-events: none; }
.search-input-shell input { padding-left: 43px; font-size: 14px; }
.library-main > .filter-form label, .workspace-filters label { margin: 0 0 7px 2px; color: #46546a; font-size: 11px; }
.search-submit { min-width: 106px; }
.filter-toggle { display: none; color: var(--primary); }
.filter-toggle .icon { opacity: .8; }
.filter-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 10px; }
.filter-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding-top: 12px; }
.workspace-filter-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 10px; padding-top: 12px; }
.library-main > .filter-form .filter-actions { grid-column: auto; padding-top: 12px; margin-top: 12px; border-top: 1px solid #e9edf4; justify-content: space-between; }
.library-main > .filter-form .filter-actions > span { margin: 0; }
.library-main > .filter-form .filter-actions strong { color: #2a3851; font-size: 12px; }
.workspace-filters .filter-actions { grid-column: auto; padding-top: 12px; margin-top: 12px; border-top: 1px solid #e9edf4; justify-content: space-between; }
.workspace-filters .filter-actions > span { margin: 0; }
.workspace-filters .filter-actions strong { color: #2a3851; font-size: 12px; }
.reset-link { margin-left: auto; font-weight: 600; }
.facet-scroll { min-width: 0; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #c4cede transparent; }
.level-tabs { min-width: 650px; overflow: hidden; border-radius: 12px; box-shadow: var(--shadow-sm); }
.level-tabs a { min-width: 84px; padding: 13px 14px; }
.level-tabs a:hover { background: #f7f9fc; text-decoration: none; }
.level-tabs strong { font-size: 20px; }
.level-tabs .selected { background: var(--primary-soft); box-shadow: inset 0 -4px var(--primary); }
.artifact-strip { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; margin: 15px 0 21px; }
.facet-label { color: var(--muted); text-transform: uppercase; font-size: 10px; font-weight: 700; letter-spacing: .06em; white-space: nowrap; }
.artifact-tabs { flex-wrap: nowrap; width: max-content; margin: 0; }
.artifact-tabs a { min-height: 36px; padding: 8px 11px; border-radius: 8px; box-shadow: 0 1px 2px rgb(24 39 75 / 4%); white-space: nowrap; }
.artifact-tabs a:hover { border-color: #b9c6d8; background: #f8faff; text-decoration: none; }
.artifact-tabs a.selected { background: var(--primary-soft); border-color: #9aadd7; }
.table-heading { align-items: flex-end; margin: 18px 2px 12px; font-size: 12px; }
.table-heading > div { display: grid; gap: 4px; }
.table-heading strong { color: #24324a; font-size: 14px; }
.table-heading span { color: var(--muted); font-size: 11px; }
.view-mode-switch { padding: 7px 10px; border-radius: 8px; font-size: 11px; font-weight: 700; }
.view-mode-switch:hover { background: var(--primary-soft); text-decoration: none; }
.document-table-shell { border-radius: 14px; box-shadow: var(--shadow-sm); }
.document-table-header th { padding: 14px 16px; background: #f7f9fc; color: #58667a; font-size: 10px; letter-spacing: .045em; text-transform: uppercase; }
.document-table-main-cell { padding: 18px 16px; }
.document-table tr:hover td { background: #f7f9fe; }
.document-table .selected-row td { background: #eef3ff; }
.document-table .selected-row td:first-child { box-shadow: inset 3px 0 var(--primary); }
.document-name { gap: 11px; }
.document-icon { width: 38px; height: 40px; flex-basis: 38px; border-radius: 10px; background: #eff3f8; }
.document-codes { margin-bottom: 5px; }
.document-title { color: #17233b; font-size: 13px; line-height: 1.45; }
.document-title:hover { color: var(--primary); }
.detail-link { margin-top: 7px; font-size: 11px; font-weight: 600; }
.document-summary { position: sticky; top: 102px; padding: 0; border-left: 0; }
.document-summary-card { position: relative; max-height: calc(100vh - 126px); overflow-y: auto; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: rgb(255 255 255 / 94%); box-shadow: var(--shadow-sm); }
.document-summary-card::-webkit-scrollbar { width: 6px; }
.document-summary-card::-webkit-scrollbar-thumb { border-radius: 10px; background: #c7d0de; }
.document-summary h2 { color: #17233b; font-size: 21px; line-height: 1.32; }
.document-summary section { padding: 17px 0; }
.summary-close { position: absolute; right: 14px; top: 14px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: #f0f3f8; }
.summary-close:hover { background: #e4eaf3; }
.document-summary .eyebrow:first-child { padding-right: 36px; }
.pagination { padding: 18px 4px; }
.site-footer { padding-top: 24px; padding-bottom: 24px; }
.auth-page { min-height: 0; margin-top: 64px; margin-bottom: 140px; padding: 36px; border: 1px solid var(--border); border-top: 4px solid var(--primary); border-radius: var(--radius-lg); background: rgb(255 255 255 / 94%); box-shadow: var(--shadow-md); }
.auth-page h1 { margin-bottom: 28px; color: #17233b; }
.auth-page form > p { margin-bottom: 18px; }
.auth-page form > button { min-height: 46px; margin-top: 4px; }
.auth-page > p:last-child { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }

@media (max-width: 1150px) {
  .library-layout { grid-template-columns: minmax(0, 1fr) 310px; }
  .filter-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 850px) {
  .site-header { position: static; }
  .library-hero { gap: 18px; }
  .library-stats { width: 100%; }
  .library-stats > div { flex: 1; }
  .document-summary { display: none; }
  .document-summary.is-open { position: fixed; inset: 0; z-index: 80; display: block; padding: 16px; background: rgb(12 22 43 / 48%); backdrop-filter: blur(5px); }
  .document-summary.is-open .document-summary-card { max-width: 620px; max-height: calc(100dvh - 32px); margin: auto; box-shadow: var(--shadow-md); }
}

@media (max-width: 640px) {
  .library-page { padding-left: 14px; padding-right: 14px; }
  .library-hero { margin-bottom: 22px; }
  .library-intro h1 { font-size: 28px; }
  .library-intro > p:last-child { font-size: 13px; line-height: 1.65; }
  .library-stats { gap: 0; padding: 5px; }
  .library-stats > div { min-width: 0; padding: 8px 10px; }
  .library-stats dd { font-size: 20px; }
  .library-stats dt { font-size: 8px; }
  .library-main > .filter-form { padding: 12px; border-radius: 14px; }
  .workspace-filters { padding: 12px; border-radius: 14px; }
  .library-searchbar, .workspace-searchbar { grid-template-columns: minmax(0, 1fr) auto; }
  .library-searchbar .search-field, .workspace-searchbar .search-field { grid-column: 1 / -1; }
  .search-submit { min-width: 0; }
  .filter-toggle { display: inline-flex; }
  .filter-options { grid-template-columns: 1fr; max-height: 0; padding: 0; overflow: hidden; opacity: 0; }
  .workspace-filter-options { grid-template-columns: 1fr; max-height: 0; padding: 0; overflow: hidden; opacity: 0; }
  .library-main > .filter-form.filters-open .filter-options { max-height: 480px; padding-top: 12px; opacity: 1; }
  .workspace-filters.filters-open .workspace-filter-options { max-height: 650px; padding-top: 12px; opacity: 1; }
  .filter-actions { align-items: flex-start; gap: 8px; }
  .filter-actions > span { max-width: 230px; line-height: 1.5; }
  .reset-link { white-space: nowrap; }
  .facet-scroll { margin-right: -14px; padding-right: 14px; }
  .level-tabs { min-width: 590px; }
  .level-tabs a { min-width: 76px; padding: 11px; }
  .level-tabs strong { font-size: 18px; }
  .artifact-strip { grid-template-columns: 1fr; gap: 8px; }
  .artifact-strip .facet-scroll { margin-left: 0; }
  .table-heading { align-items: center; gap: 12px; }
  .document-table-main-cell { padding: 16px 12px; }
  .document-name { gap: 9px; }
  .document-name .tree-spacer { display: none; }
  .document-icon { width: 36px; height: 38px; flex-basis: 36px; }
  .document-title { font-size: 14px; }
  .detail-link { font-size: 12px; }
  .document-summary.is-open { padding: 8px; }
  .document-summary.is-open .document-summary-card { max-height: calc(100dvh - 16px); padding: 20px; border-radius: 14px; }
  .auth-page { margin: 28px 14px 80px; padding: 26px 20px; }
  .primary-nav { flex-wrap: nowrap; overflow-x: auto; margin: 0 -14px; padding: 0 14px 5px; scrollbar-width: none; }
  .primary-nav::-webkit-scrollbar { display: none; }
  .workspace-nav { margin-left: 0; margin-right: 0; padding: 12px; }
  .workspace-nav-guidance { margin-bottom: 10px; }
  .workspace-nav-desktop { display: none; }
  .workspace-nav-mobile { display: block; border: 1px solid #d9e1ec; border-radius: 8px; background: #fff; }
  .workspace-nav-mobile > summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-height: 44px; padding: 12px; cursor: pointer; color: var(--primary); list-style: none; }
  .workspace-nav-mobile > summary::-webkit-details-marker { display: none; }
  .workspace-nav-mobile > summary span { font-size: 12px; font-weight: 750; }
  .workspace-nav-mobile > summary small { max-width: 185px; color: var(--muted); font-size: 10px; line-height: 1.4; text-align: right; }
  .workspace-nav-mobile[open] > summary { border-bottom: 1px solid #d9e1ec; background: #f5f8fc; }
  .workspace-nav-mobile .workspace-nav-groups { display: grid; gap: 14px; padding: 14px 12px; }
  .workspace-nav-mobile .workspace-nav-group { padding: 0; border: 0; }
  .workspace-nav-mobile .workspace-nav-links { flex-wrap: wrap; }
  .workspace-nav-mobile a { min-height: 38px; }
  .access-workflow ol, .access-action-groups, .access-capabilities { grid-template-columns: 1fr; }
  .access-preview-banner { align-items: flex-start; flex-direction: column; margin: 8px 12px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* SOP readiness register */
.readiness-heading { align-items: flex-end; }
.readiness-principle { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 22px; margin: 22px 0; padding: 20px 22px; border: 1px solid #c9d8ec; border-left: 4px solid var(--accent); border-radius: 14px; background: linear-gradient(135deg, #f4f8fd, #fff); }
.readiness-principle strong { display: block; margin-bottom: 5px; color: #17233b; font-size: 16px; }
.readiness-principle p { margin: 0; color: #536176; font-size: 12px; line-height: 1.65; }
.readiness-principle details { padding-left: 20px; border-left: 1px solid var(--border); }
.readiness-principle summary { cursor: pointer; color: var(--primary); font-weight: 700; }
.readiness-principle details p { margin-top: 10px; }
.readiness-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 24px 0; }
.readiness-stats > div { padding: 15px; border: 1px solid var(--border); border-top: 3px solid var(--primary); border-radius: 11px; background: #fff; box-shadow: var(--shadow-sm); }
.readiness-stats dt { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.readiness-stats dd { margin: 5px 0 0; color: #16213a; font-size: 25px; font-weight: 750; }
.readiness-filters { grid-template-columns: minmax(230px, 1.6fr) repeat(4, minmax(150px, 1fr)); margin-bottom: 20px; }
.readiness-filters .filter-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; }
.readiness-filters .filter-actions span { margin-left: auto; color: var(--muted); font-size: 11px; }
.readiness-table-shell { border: 1px solid var(--border); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.readiness-table { min-width: 1420px; }
.readiness-table th { padding: 13px 14px; background: #f7f9fc; color: #5c6980; font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }
.readiness-table td { max-width: 300px; padding: 16px 14px; vertical-align: top; font-size: 11px; line-height: 1.5; }
.readiness-table tbody tr:hover td { background: #fafcff; }
.readiness-package-title { display: block; margin-top: 6px; color: #202d46; font-size: 12px; line-height: 1.45; }
.readiness-table p { margin: 6px 0 0; }
.readiness-metrics { display: grid; grid-template-columns: repeat(4, minmax(44px, 1fr)); gap: 5px; }
.readiness-metrics span { padding: 7px 5px; border-radius: 7px; background: #f1f4f8; color: #6a7688; font-size: 8px; text-align: center; text-transform: uppercase; }
.readiness-metrics b { display: block; color: #20304a; font-size: 15px; }
.scope-list { display: flex; flex-wrap: wrap; gap: 4px; }
.scope-list code { padding: 2px 5px; border-radius: 4px; background: #eef2f7; color: #43516a; font-size: 9px; }
.readiness-status { margin-bottom: 8px; font-size: 10px; }
.readiness-score { display: block; color: #17233b; font-size: 18px; }
.release-gates { display: flex; gap: 4px; margin: 9px 0; }
.release-gates span { display: grid; place-items: center; width: 21px; height: 21px; border: 1px solid #d4dbe6; border-radius: 50%; background: #f3f5f8; color: #7b8799; font-size: 9px; font-weight: 700; }
.release-gates span.passed { border-color: #6bc5a5; background: #e8f8f2; color: #087653; }
.readiness-details { min-width: 230px; }
.readiness-details > summary { cursor: pointer; color: var(--primary); font-weight: 700; }
.readiness-details h3 { margin: 14px 0 6px; color: #2a3851; font-size: 10px; text-transform: uppercase; }
.readiness-details ul, .readiness-details ol { margin: 0; padding-left: 18px; }
.readiness-details li { margin-bottom: 5px; }
.score-breakdown { padding-left: 0 !important; list-style: none; }
.score-breakdown li { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 6px 0; border-bottom: 1px solid #edf0f4; }
.score-breakdown small { grid-column: 1 / -1; color: var(--muted); }
.gate-detail li::marker { color: #b13a47; }
.gate-detail li.passed { color: #087653; }
.gate-detail li.passed::marker { color: #087653; }

/* Core SOP programme — Batch 0 */
.core-sop-stats { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.core-workflow-stats { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.implementation-stats { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.governance-handover { border-left-color: var(--primary); background: linear-gradient(135deg, #f2f6ff, #fff); }
.review-routing { border-left-color: #087653; background: linear-gradient(135deg, #eef9f5, #fff); }
.core-sop-section { margin: 34px 0; }
.core-sop-section > .section-heading { margin-bottom: 16px; }
.core-sop-section > .section-heading h2, .core-sop-section > .section-heading p { margin: 0; }
.core-sop-section > .section-heading p:not(.eyebrow) { margin-top: 5px; color: var(--muted); font-size: 12px; }
.core-domain-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.core-domain-grid article, .core-batch-grid article { padding: 17px; border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); }
.core-domain-grid h3, .core-batch-grid h3 { margin: 0 0 12px; color: #17233b; font-size: 15px; }
.core-domain-grid dl, .core-batch-grid dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.core-domain-grid dl div, .core-batch-grid dl div { padding: 8px; border-radius: 7px; background: #f5f7fa; }
.core-domain-grid dt, .core-batch-grid dt { color: var(--muted); font-size: 8px; font-weight: 700; text-transform: uppercase; }
.core-domain-grid dd, .core-batch-grid dd { margin: 3px 0 0; color: #23314a; font-size: 14px; font-weight: 750; }
.core-batch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.core-batch-grid article { display: flex; flex-direction: column; }
.core-batch-grid h3 { margin-top: 10px; }
.core-batch-grid article > p { color: #56647a; font-size: 11px; line-height: 1.55; }
.core-batch-grid dl { margin-top: auto; }
.core-batch-readiness { margin-bottom: 0; font-weight: 650; }
.standards-hierarchy { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; margin: 0 0 18px; padding: 0; list-style: none; }
.standards-hierarchy li { display: grid; grid-template-columns: 28px 1fr; gap: 9px; padding: 13px; border: 1px solid var(--border); border-radius: 10px; background: #fbfcfe; }
.standards-hierarchy li > span, .authoring-gates li > span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 10px; font-weight: 800; }
.standards-hierarchy strong { color: #21304a; font-size: 10px; line-height: 1.4; }
.standards-hierarchy p { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.core-details { padding: 15px 17px; border: 1px solid var(--border); border-radius: 11px; background: #fff; }
.core-details > summary, .core-control-grid summary { cursor: pointer; color: var(--primary); font-weight: 750; }
.standard-profile { margin-top: 20px; }
.standard-profile h3 { margin: 0; font-size: 14px; }
.standard-profile > p { margin: 5px 0 10px; color: var(--muted); font-size: 11px; }
.standard-profile table { min-width: 760px; }
.standard-profile td { vertical-align: top; font-size: 10px; }
.standard-profile td:first-child { width: 31%; }
.standard-profile small { display: block; margin-top: 3px; color: var(--muted); }
.core-assurance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.core-assurance-grid > div { padding: 18px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.core-assurance-grid h3 { margin: 0 0 12px; color: #17233b; font-size: 14px; }
.authoring-gates, .opex-tests { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.authoring-gates li { display: grid; grid-template-columns: 30px 1fr; gap: 9px; }
.authoring-gates strong, .opex-tests strong { color: #263650; font-size: 10px; }
.authoring-gates p { margin: 3px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.opex-tests li { padding: 9px 10px; border-left: 3px solid var(--accent); background: #f5f8fc; }
.opex-tests span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.core-control-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.core-control-grid details { padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: #fbfcfe; }
.core-control-grid ol, .core-control-grid ul { margin: 10px 0 0; padding-left: 18px; }
.core-control-grid li { margin-bottom: 5px; color: #536176; font-size: 10px; line-height: 1.5; }
.core-sop-filters { grid-template-columns: minmax(220px, 1.5fr) repeat(6, minmax(130px, 1fr)); margin-bottom: 18px; }
.core-sop-filters .filter-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; }
.core-sop-filters .filter-actions span { margin-left: auto; color: var(--muted); font-size: 11px; }
.core-sop-table { min-width: 1180px; }
.core-sop-table th { padding: 12px; background: #f7f9fc; color: #5c6980; font-size: 9px; text-transform: uppercase; }
.core-sop-table td { max-width: 310px; padding: 14px 12px; vertical-align: top; color: #4f5e74; font-size: 10px; line-height: 1.5; }
.core-sop-table td > strong, .core-sop-table td > small { display: block; margin-top: 5px; }
.core-sop-table td > strong { color: #22314b; }
.core-sop-table td > small { color: var(--muted); }
.governance-table { min-width: 1320px; }
.review-pack-shell { max-height: 680px; border: 1px solid var(--border); border-radius: 12px; }
.review-pack-table { min-width: 1180px; margin: 0; }
.review-pack-table thead { position: sticky; top: 0; z-index: 1; }
.review-pack-table td p { margin: 7px 0; }
.review-pack-table td > span:not(.badge) { color: #34445f; }
.review-pack-table code { display: inline-block; margin: 2px 0; }
.review-charter-grid { margin-bottom: 14px; }
.implementation-pack-table { min-width: 1120px; margin: 0; }
.implementation-pack-table td p { margin: 7px 0; }
.governance-gate-detail { margin-top: 8px; }
.governance-gate-detail summary { cursor: pointer; color: var(--primary); font-weight: 700; }
.governance-gate-detail ol { margin: 7px 0 0; padding-left: 18px; }
.governance-gate-detail li { margin-bottom: 3px; color: #8f3441; }
.governance-gate-detail li.passed { color: #087653; }
.readiness-metrics.two { grid-template-columns: repeat(2, minmax(48px, 1fr)); }

@media (max-width: 1100px) {
  .readiness-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .readiness-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .core-sop-stats, .core-workflow-stats, .implementation-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .core-batch-grid, .standards-hierarchy { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .core-sop-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .readiness-heading { align-items: flex-start; }
  .readiness-principle { grid-template-columns: 1fr; padding: 17px; }
  .readiness-principle details { padding: 15px 0 0; border-top: 1px solid var(--border); border-left: 0; }
  .readiness-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .readiness-stats dd { font-size: 21px; }
  .readiness-filters { grid-template-columns: 1fr; }
  .readiness-filters .filter-actions { align-items: flex-start; flex-wrap: wrap; }
  .readiness-filters .filter-actions span { width: 100%; margin-left: 0; }
  .core-sop-stats, .core-workflow-stats, .implementation-stats, .core-domain-grid, .core-batch-grid, .standards-hierarchy, .core-assurance-grid, .core-control-grid, .core-sop-filters { grid-template-columns: 1fr; }
  .core-sop-filters .filter-actions { align-items: flex-start; flex-wrap: wrap; }
  .core-sop-filters .filter-actions span { width: 100%; margin-left: 0; }
}

/* Structured SOP review */
.sop-overview { border-left: 4px solid var(--primary); }
.sop-quick-preview { margin: 24px 0; padding: 24px; border: 1px solid #c9d8ec; border-top: 4px solid var(--accent); border-radius: 16px; background: linear-gradient(145deg, #f4f8fd 0%, #fff 55%); box-shadow: var(--shadow-sm); }
.sop-quick-heading { position: static; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 0; background: transparent; color: inherit; }
.sop-quick-heading h2, .sop-quick-heading p { margin: 0; }
.sop-quick-heading h2 { color: #17233b; font-size: 22px; }
.sop-quick-heading p:not(.eyebrow) { max-width: 720px; margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.sop-quick-heading .button { flex: 0 0 auto; }
.sop-quick-boundary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.sop-quick-boundary article { padding: 14px 15px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.sop-quick-boundary span { display: block; margin-bottom: 5px; color: var(--primary); font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.sop-quick-boundary strong { color: #263650; font-size: 11px; line-height: 1.55; }
.sop-quick-meta, .sop-quick-evidence { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }
.sop-quick-meta > div, .sop-quick-evidence > div { padding: 15px; border-radius: 10px; background: #f7f9fc; }
.sop-quick-meta h3, .sop-quick-evidence h3, .sop-quick-steps-title { margin: 0 0 9px; color: #253550; font-size: 12px; }
.sop-quick-meta p, .sop-quick-evidence li { color: #536176; font-size: 11px; line-height: 1.55; }
.sop-role-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.sop-role-chips li { padding: 7px 9px; border: 1px solid #d5dfec; border-radius: 8px; background: #fff; }
.sop-role-chips strong, .sop-role-chips span { display: block; }
.sop-role-chips strong { color: #263650; font-size: 10px; }
.sop-role-chips span { margin-top: 2px; color: var(--muted); font-size: 8px; }
.sop-quick-steps-title { margin-top: 24px; }
.sop-quick-steps { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.sop-quick-steps > li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 11px; background: #fff; }
.sop-quick-number { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 12px; font-weight: 800; }
.sop-quick-steps h4, .sop-quick-steps p { margin: 0; }
.sop-quick-steps h4 { color: #1f2f49; font-size: 13px; line-height: 1.45; }
.sop-quick-steps p:not(.eyebrow) { margin-top: 5px; color: #4d596c; font-size: 11px; line-height: 1.6; }
.sop-quick-output { display: block; margin-top: 7px; color: #087653; font-size: 10px; }
.sop-quick-steps details { margin-top: 8px; padding-top: 7px; border-top: 1px dashed #d9c2bd; }
.sop-quick-steps summary { min-height: 32px; cursor: pointer; color: #a04431; font-size: 10px; font-weight: 700; }
.sop-operational-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin: 0; padding: 0; list-style: none; }
.sop-operational-flow li { position: relative; min-height: 82px; padding: 13px 14px; border: 1px solid #c8d8eb; border-radius: 10px; background: #fff; }
.sop-operational-flow li:not(:last-child)::after { content: "→"; position: absolute; z-index: 1; right: -15px; top: 29px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; }
.sop-operational-flow strong { display: block; color: #1f3555; font-size: 11px; }
.sop-operational-flow span { display: block; margin-top: 5px; color: #536176; font-size: 10px; line-height: 1.45; }
.sop-operational-table { min-width: 1010px; }
.sop-operational-table th { padding: 10px; background: #17365d; color: #fff; font-size: 9px; letter-spacing: .035em; text-transform: uppercase; }
.sop-operational-table td { padding: 11px 10px; vertical-align: top; color: #3f4e63; font-size: 11px; line-height: 1.5; }
.sop-operational-table tbody tr:nth-child(even) { background: #f4f8fc; }
.sop-quick-evidence ul { margin: 0; padding-left: 18px; }
.sop-quick-evidence li { margin-bottom: 5px; }
.sop-quick-caution { margin: 20px 0 0; padding: 13px 15px; border-left: 3px solid #c99236; background: #fff5e2; color: #644d25; font-size: 11px; line-height: 1.6; }
.sop-full-document { margin: 26px 0; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.sop-full-document > summary { display: flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; cursor: pointer; list-style-position: inside; color: var(--primary); }
.sop-full-document > summary span { font-size: 13px; font-weight: 800; }
.sop-full-document > summary small { color: var(--muted); font-size: 9px; font-weight: 500; text-align: right; }
.sop-full-document-body { padding: 0 20px 20px; border-top: 1px solid var(--border); }
.sop-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sop-summary-grid article { padding: 16px; border: 1px solid var(--border); border-radius: 10px; background: #f8fafc; }
.sop-summary-grid article:first-child { grid-column: 1 / -1; }
.sop-summary-grid h3, .sop-summary-grid p { margin: 0; }
.sop-summary-grid h3 { margin-bottom: 6px; color: var(--primary); font-size: 11px; text-transform: uppercase; }
.sop-source-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sop-source-grid article { padding: 13px; border: 1px solid var(--border); border-radius: 9px; background: #fff; }
.sop-source-grid .badge { margin-left: 6px; }
.sop-source-grid p { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.sop-table { min-width: 920px; }
.sop-table th { color: #536176; font-size: 9px; letter-spacing: .035em; text-transform: uppercase; }
.sop-table td { font-size: 11px; line-height: 1.55; }
.sop-steps { display: grid; gap: 12px; }
.sop-step { overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); }
.sop-step > header { position: static; display: grid; grid-template-columns: 42px 1fr; gap: 12px; padding: 14px 16px; background: #f4f7fb; color: inherit; }
.sop-step > header > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; }
.sop-step h3, .sop-step .eyebrow { margin: 0; }
.sop-step h3 { margin-top: 3px; font-size: 14px; line-height: 1.5; }
.sop-step dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.sop-step dl > div { padding: 12px 16px; border-top: 1px solid var(--border); }
.sop-step dl > div:nth-child(even) { border-left: 1px solid var(--border); }
.sop-step dl .exception { grid-column: 1 / -1; border-left: 0; background: #fff8f5; }
.sop-step dt { margin-bottom: 4px; color: #637086; font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.sop-step dd { margin: 0; font-size: 11px; line-height: 1.55; }
.sop-references { display: grid; gap: 12px; padding-left: 22px; }
.sop-references li { padding-left: 5px; }
.sop-references p { margin: 4px 0; color: #536176; }
.sop-overlay-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sop-overlay-grid article { padding: 16px; border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: 11px; background: #f9fbfd; }
.sop-overlay-grid h3 { margin: 0 0 8px; color: #1f3152; font-size: 13px; }
.sop-overlay-grid ul { margin: 0 0 10px; padding-left: 18px; }
.sop-overlay-grid li { margin-bottom: 5px; }
.sop-overlay-grid p { margin: 5px 0 0; color: #536176; font-size: 10px; }
.release-gate { border: 1px solid #b8d4cb; background: #f4fbf8; }
.release-gate li { margin-bottom: 7px; }
.release-gate details { margin-top: 18px; padding-top: 14px; border-top: 1px solid #cee1da; }
.release-gate summary { cursor: pointer; color: var(--primary); font-weight: 750; }

/* UX foundation: keyboard entry point, status feedback, and task explanation. */
.skip-link { position: fixed; z-index: 1000; top: 10px; left: 10px; transform: translateY(-180%); padding: 11px 14px; border-radius: 8px; background: var(--primary); color: #fff; font-weight: 750; transition: transform .15s ease; }
.skip-link:focus { transform: translateY(0); outline: 3px solid #f3c75c; outline-offset: 3px; }
#main-content:focus { outline: none; }
#panel[aria-busy="true"] { cursor: progress; }
.task-next-step { max-width: 760px; margin: 10px 0 0; color: #4c5c73; font-size: 11px; line-height: 1.55; }
.task-next-step strong { color: #263650; }
.access-quickstart { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; margin: 20px 0; padding: 20px 22px; border: 1px solid #c9d8ec; border-left: 4px solid var(--accent); border-radius: 12px; background: #f5f8fc; }
.access-quickstart h2, .access-quickstart p { margin: 0; }
.access-quickstart p:not(.eyebrow) { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.access-quickstart .button { white-space: nowrap; }
.access-rollout { margin-top: 26px; }
.access-rollout details { border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.access-rollout summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; padding: 16px 18px; cursor: pointer; color: var(--primary); list-style: none; }
.access-rollout summary::-webkit-details-marker { display: none; }
.access-rollout summary > span { display: grid; gap: 3px; }
.access-rollout summary .eyebrow { margin: 0; }
.access-rollout summary strong { color: #1f3152; font-size: 14px; }
.access-rollout summary small { color: var(--muted); font-size: 11px; text-align: right; }
.access-rollout details[open] > summary { border-bottom: 1px solid var(--border); background: #f7f9fc; }
.access-rollout details > :not(summary) { margin-left: 18px; margin-right: 18px; }
.access-rollout details > .table-scroll { margin-left: 0; margin-right: 0; border-radius: 0; }
.access-rollout-intro { margin: 0 0 14px; color: var(--muted); font-size: 12px; line-height: 1.55; }

@media (max-width: 850px) {
  .sop-source-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .access-quickstart { grid-template-columns: 1fr; padding: 18px; }
  .access-quickstart .button { width: 100%; }
  .access-rollout summary { align-items: flex-start; flex-direction: column; }
  .access-rollout summary small { text-align: left; }
  .sop-quick-heading { flex-direction: column; }
  .sop-quick-heading .button { width: 100%; }
  .sop-quick-boundary, .sop-quick-meta, .sop-quick-evidence, .sop-operational-flow { grid-template-columns: 1fr; }
  .sop-operational-flow li:not(:last-child)::after { right: auto; left: 22px; top: auto; bottom: -15px; }
  .sop-full-document > summary { align-items: flex-start; flex-direction: column; }
  .sop-full-document > summary small { text-align: left; }
  .sop-summary-grid, .sop-source-grid, .sop-overlay-grid { grid-template-columns: 1fr; }
  .sop-summary-grid article:first-child { grid-column: auto; }
  .sop-step dl { grid-template-columns: 1fr; }
  .sop-step dl > div:nth-child(even) { border-left: 0; }
}

/* Library usability and document control (owner request, 31 October 2026). */
.level-tabs .is-empty, .artifact-tabs .is-empty { color: #9aa5b6; cursor: not-allowed; }
.level-tabs .is-empty { min-width: 84px; padding: 13px 14px; border-right: 1px solid var(--border); font-size: 11px; }
.level-tabs small { display: block; margin-top: 2px; font-size: 10px; font-weight: 500; color: #6b778c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.level-tabs .selected small { color: inherit; }
.artifact-tabs .is-empty { display: flex; gap: 9px; align-items: center; min-height: 36px; padding: 8px 11px; border: 1px dashed var(--border); border-radius: 8px; background: transparent; font-weight: 600; white-space: nowrap; }
.artifact-tabs .is-empty span { color: inherit; font-size: 9px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 8px 4px 11px; border: 1px solid #c6d3ea; border-radius: 999px; background: var(--primary-soft); color: #1f3152; font-size: 11px; font-weight: 600; }
.filter-chip span { color: var(--muted); font-weight: 500; }
.filter-chip .icon { width: 13px; height: 13px; opacity: .65; }
.filter-chip:hover { border-color: var(--primary); text-decoration: none; }
.filter-chip:hover .icon { opacity: 1; }
@container (min-width: 761px) {
  .document-table-shell .document-list-table td:first-child, .document-table-shell .document-list-table th:first-child { width: 54%; }
  .document-table-shell .document-list-table td:nth-child(2), .document-table-shell .document-list-table th:nth-child(2) { width: 22%; }
  .document-table-shell .document-list-table td:nth-child(3), .document-table-shell .document-list-table th:nth-child(3) { width: 14%; }
  .document-table-shell .document-list-table td:last-child, .document-table-shell .document-list-table th:last-child { width: 10%; }
}
.document-list-table .actions-heading { text-align: right; }
.row-actions { display: flex; justify-content: flex-end; gap: 4px; }
.row-actions .icon-button { width: 34px; height: 34px; flex-basis: 34px; border-radius: 8px; }
.document-title { display: inline-block; margin-top: 2px; }
.document-summary .summary-actions { display: flex; gap: 8px; margin: 16px 0 18px; }
.document-summary .summary-actions .button:first-child { flex: 1; }
.document-summary .metadata { padding: 16px 0; border-top: 1px solid var(--border); }
.breadcrumb-nav { margin-bottom: 22px; font-size: 12px; }
.breadcrumb-nav ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.breadcrumb-nav li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb-nav li + li::before { content: "›"; color: #9aa5b6; }
.breadcrumb-nav a { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb-nav [aria-current="page"] { color: var(--muted); font-weight: 600; }
.detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 20px 0 6px; }
.controlled-copy-note { flex: 1 1 320px; max-width: 640px; margin: 0; padding-left: 14px; border-left: 3px solid #c99236; color: #5a4a2a; font-size: 11px; line-height: 1.55; }
.document-control { margin: 20px 0 26px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.document-control h2 { margin: 0 0 14px; color: var(--muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.control-metadata { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 22px; }
.control-metadata dd small { display: block; color: var(--muted); font-size: 11px; font-weight: 500; }
.control-metadata .badge { margin-left: 4px; vertical-align: middle; }
.revision-history { margin-top: 34px; }
.revision-history > p { font-size: 12px; }
.revision-history .table-scroll { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.revision-history td:nth-child(3) { min-width: 260px; }
.revision-history .current-revision td { background: #f3f8f5; }

@media (max-width: 900px) {
  .control-metadata { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .document-control { padding: 16px; }
  .detail-actions .button { width: 100%; }
}
.artifact-tabs > .is-empty { margin-right: 0; text-transform: none; }
.revision-history td:nth-child(2) { white-space: nowrap; }

/* SOP in the ISO 10013:2021 layout (owner request, 31 October 2026). */
.sop-toc { margin: 18px 0 24px; padding: 14px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); font-size: 12px; }
.sop-toc ol { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0 0; padding: 0; list-style: none; }
.sop-document { max-width: 980px; padding: 28px 32px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); font-size: 13px; line-height: 1.6; }
.sop-iso h2 { margin: 30px 0 10px; color: #1f2a44; font-size: 19px; scroll-margin-top: 110px; }
.sop-iso h3 { margin: 18px 0 8px; font-size: 14px; }
.sop-iso .sop-section { scroll-margin-top: 110px; }
.sop-iso table { margin: 10px 0 14px; border: 1px solid var(--border); }
.sop-iso th { background: #f4f3ef; color: #3c4658; font-size: 11px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.sop-iso th, .sop-iso td { padding: 9px 11px; border: 1px solid #e3e1da; vertical-align: top; font-size: 12px; line-height: 1.55; }
.sop-iso tbody tr:hover td { background: transparent; }
.sop-iso .sop-control-table { max-width: 680px; scroll-margin-top: 110px; }
.sop-iso .sop-control-table caption { padding: 9px 11px; border: 1px solid #e3e1da; border-bottom: 0; background: #f4f3ef; color: #3c4658; text-align: left; font-size: 12px; }
.sop-iso .sop-control-table th, .sop-iso .sop-kv th { width: 34%; background: transparent; font-weight: 500; }
.sop-iso .code-cell { white-space: nowrap; font-family: var(--font-mono, ui-monospace, monospace); font-size: 11px; }
.sop-iso em { font-style: normal; font-weight: 600; }
.sop-iso .sop-legend { color: var(--muted); font-size: 12px; }
.sop-iso td ul { margin: 0; padding-left: 16px; }
.sop-iso .url-cell { overflow-wrap: anywhere; font-size: 11px; }
.sop-stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 14px 0; padding: 0; list-style: none; }
.sop-stages li { padding: 10px 12px; border-left: 3px solid var(--primary); border-radius: 8px; background: var(--primary-soft); font-size: 12px; }
.sop-stages strong, .sop-stages span { display: block; }
.sop-flow-figure { margin: 18px 0 20px; }
.sop-flow-figure figcaption { margin-bottom: 10px; color: var(--muted); font-size: 12px; }
.sop-flow { display: grid; gap: 22px; max-width: 520px; margin: 0 auto; padding: 0; list-style: none; }
.sop-flow li { position: relative; padding: 10px 14px; border: 1px solid #cfd5df; border-radius: 10px; background: #fff; text-align: center; font-size: 12px; }
.sop-flow li:not(:last-child)::after { content: ""; position: absolute; left: 50%; bottom: -21px; height: 20px; border-left: 2px solid #c3cad6; }
.sop-flow strong, .sop-flow span { display: block; }
.sop-flow span { color: var(--muted); font-size: 11px; }
.sop-flow .sop-flow-terminal { border-color: #9aadd7; background: var(--primary-soft); }

@media (max-width: 640px) {
  .sop-document { padding: 18px 14px; }
  .sop-iso table { display: block; overflow-x: auto; }
}
.sop-iso .sop-procedure { table-layout: fixed; }
.sop-iso .sop-procedure th:nth-child(1) { width: 9%; } .sop-iso .sop-procedure th:nth-child(2) { width: 12%; } .sop-iso .sop-procedure th:nth-child(3) { width: 27%; }
.sop-iso .sop-procedure th:nth-child(4), .sop-iso .sop-procedure th:nth-child(5) { width: 15%; } .sop-iso .sop-procedure th:nth-child(6) { width: 22%; }
.sop-iso .sop-procedure td { overflow-wrap: anywhere; }

/* Browser printing (Ctrl+P): company kop instead of navigation; the PDF download stays the official print. */
.print-kop { display: none; }
@media print {
  @page { size: A4; margin: 14mm 12mm 16mm; }
  body, #panel { background: white !important; color: #212121; }
  body::before, .skip-link, .site-header, .site-footer, .breadcrumb-nav, .detail-actions, .alignment-card, .activity-section, .sop-toc, .library-searchbar, .filter-form, .level-tabs, .active-filters, .view-mode-switch, .pagination, .summary-close, form, button, .button, .icon-button, dialog { display: none !important; }
  .print-kop { display: grid; grid-template-columns: auto 1fr minmax(0, 46%); gap: 4mm; align-items: center; margin: 0 0 6mm; padding: 0 0 3mm; border-bottom: .6mm solid #294294; break-inside: avoid; }
  .print-kop img { width: 11mm; height: auto; }
  .print-kop strong { display: block; color: #294294; font-size: 11pt; }
  .print-kop span, .print-kop p { margin: 0; color: #596579; font-size: 8pt; line-height: 1.35; }
  .page { max-width: none; margin: 0; padding: 0; }
  .table-scroll, .diagram-scroll { overflow: visible !important; max-height: none !important; }
  .diagram-scroll svg { width: 100% !important; height: auto !important; }
  .table-scroll table { width: 100% !important; min-width: 0 !important; }
  .table-scroll th, .table-scroll td { min-width: 0 !important; position: static !important; }
  @page wide { size: A4 landscape; margin: 12mm; }
  .table-scroll:has(> .raci-matrix) { page: wide; }
  .raci-matrix { table-layout: fixed !important; }
  .raci-matrix th, .raci-matrix td { padding: 1mm !important; font-size: 6.5pt !important; overflow-wrap: break-word; }
  .raci-matrix thead th { width: auto !important; max-width: none !important; }
  .raci-matrix th:first-child { width: 20% !important; max-width: none !important; }
  .raci-matrix .badge { display: none !important; }
  section, article, .card { box-shadow: none !important; }
  table { font-size: 8.5pt; }
  tr, figure, svg { break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; }
  a { color: inherit; text-decoration: none; }
}

/* Workspace version detail (P19-07): decision bar, tabs, and zones that tell review material
   apart from the content that will be published. */
.workspace-detail .decision-bar { position: sticky; top: 78px; z-index: 30; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 24px; align-items: start; margin: 16px 0 0; padding: 14px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.decision-bar h1 { margin: 4px 0 6px; font-size: 22px; line-height: 1.25; }
.decision-bar .workspace-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.status-steps { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 12px; }
.status-steps li { padding: 3px 10px; border-radius: 999px; background: #eef1f6; color: var(--muted); }
.status-steps li.is-done { background: #e6f4ee; color: var(--success); }
.status-steps li.is-done::before { content: "✓ "; }
.status-steps li.is-current { background: var(--primary); color: white; font-weight: 600; }
.readiness-chips { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 13px; min-width: 240px; }
.readiness-chips li { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border); background: #f7f9fc; }
.readiness-chips li a { color: inherit; }
.readiness-chips .is-ready { border-color: #b9dfcf; background: #eef8f3; color: var(--success); }
.readiness-chips .is-attention { border-color: #ead7a8; background: #fdf7e8; color: var(--warning); }
.readiness-chips .is-blocked { border-color: #f0b8c4; background: #fdeef1; color: var(--destructive); font-weight: 600; }
.zone-tabs { display: flex; gap: 4px; margin: 18px 0 0; border-bottom: 2px solid var(--border); }
.zone-tabs a { padding: 10px 16px; margin-bottom: -2px; border-bottom: 3px solid transparent; color: var(--muted); font-weight: 600; }
.zone-tabs a:hover { color: var(--primary); text-decoration: none; }
.zone-tabs a.active { color: var(--primary); border-bottom-color: var(--primary); }
.zone { margin-top: 18px; }
.zone-banner { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 14px; }
.zone-banner h2 { margin: 2px 0 4px; font-size: 18px; }
.zone-banner p:last-child { margin: 0; color: var(--muted); }
.zone-review .zone-banner, .zone-trail .zone-banner { background: #fdf7e8; border-left: 5px solid #d9a521; }
.zone-review .zone-banner .eyebrow, .zone-trail .zone-banner .eyebrow { color: var(--warning); }
.zone-review > .process-section, .zone-trail > .process-section, .zone-trail > .metadata, .zone-trail > .activity-section { border-left: 3px solid #f0dca8; }
.zone-document .zone-banner { background: var(--primary-soft); border-left: 5px solid var(--primary); }
.document-paper { position: relative; padding: 24px 28px; background: white; border: 1px solid var(--border); border-radius: 6px; box-shadow: var(--shadow-md); }
.document-paper.is-draft::before { content: attr(data-watermark); position: absolute; top: 12px; right: 18px; padding: 3px 10px; border: 2px solid var(--warning); border-radius: 6px; color: var(--warning); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.review-open-list { margin: 0; padding: 0; list-style: none; }
.review-open-list li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.review-open-list li > a { margin: 0 8px; font-weight: 600; }
.review-open-list p { margin: 4px 0 0; }
.line-changes { margin: 8px 0; padding: 0; list-style: none; font-size: 14px; }
.line-changes li { padding: 4px 8px; border-radius: 4px; margin-bottom: 2px; white-space: pre-wrap; }
.diff-added, .line-changes .diff-added { background: #e6f4ee; color: #0e5a45; }
.diff-removed, .line-changes .diff-removed { background: #fdeef1; color: #8f0020; text-decoration: line-through; text-decoration-color: rgb(143 0 32 / 40%); }
.revision-change .full-text { margin-top: 6px; }
.design-notes h3 { margin-top: 0; }
@media (max-width: 900px) {
  .workspace-detail .decision-bar { position: static; grid-template-columns: 1fr; }
  .readiness-chips { min-width: 0; }
  .zone-tabs { overflow-x: auto; }
  .zone-tabs a { white-space: nowrap; }
  .document-paper { padding: 16px; }
}
@media print { .decision-bar .workspace-actions, .zone-tabs, .readiness-chips { display: none !important; } .workspace-detail .decision-bar { position: static; box-shadow: none; } }
/* Decision dialog (P19-07): summary first, each action states its effect, return is secondary. */
.decision-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 12px 0 16px; padding: 12px 14px; background: #f7f9fc; border: 1px solid var(--border); border-radius: 10px; font-size: 13px; }
.decision-summary .wide { grid-column: 1 / -1; }
.decision-summary dt { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.decision-summary dd { margin: 2px 0 0; }
.decision-option { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; }
.decision-option > button { justify-self: end; white-space: nowrap; }
.decision-option p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.decision-forward { border-color: #b9c6ea; background: var(--primary-soft); }
.decision-return { background: white; }
.decision-option .gate-ok { color: var(--success); font-weight: 600; }
.override-field label { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.override-field input[type="checkbox"] { width: 18px; height: 18px; flex: none; margin: 2px 0 0; }
@media (max-width: 640px) { .decision-option { grid-template-columns: 1fr; } .decision-option > button { justify-self: start; } .decision-summary { grid-template-columns: 1fr; } }
.readiness-chips.inline { flex-direction: row; flex-wrap: wrap; min-width: 0; margin: 8px 0 0; font-size: 12px; }
.readiness-chips.inline li { padding: 3px 8px; }
.document-table-secondary .badge.tone-amber { margin-top: 4px; }
.feedback-link { margin-left: 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.feedback-link::before { content: "✎ "; }
.review-compose > summary { cursor: pointer; list-style: revert; }
.review-compose > summary h2 { display: inline; }
.back-links { font-size: 13px; }
.back-links .back-link { display: inline; }
