.library-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px; }
.library-heading h1 { margin:4px 0 6px; font-size:28px; }
.library-eyebrow { color:var(--muted); font-size:12px; line-height:1.4; font-weight:750; letter-spacing:.075em; }
.library-subtitle { color:var(--muted); font-size:16px; }
.library-counts { flex-shrink:0; padding:8px 12px; border:1px solid var(--line); border-radius:8px; background:var(--paper); color:var(--muted); font-size:14px; font-weight:650; }
.library-context { margin-bottom:14px; border:1px solid var(--line); border-radius:10px; background:var(--soft); }
.library-context summary { min-height:44px; padding:10px 14px; cursor:pointer; font-size:14px; }
.library-context summary strong { font-weight:700; }
.library-context summary span { margin-left:8px; color:var(--muted); }
.context-content { padding:0 16px 14px; display:grid; gap:9px; }
.context-content p { font-size:14px; line-height:1.6; }
.coverage-heading { font-weight:700; margin-top:3px; }
.library-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; margin-bottom:14px; }
.view-switch { display:inline-flex; gap:4px; padding:4px; border:1px solid var(--line); background:var(--paper); border-radius:10px; }
.view-switch button { border:1px solid transparent; min-height:38px; min-width:105px; font-size:14px; font-weight:700; background:transparent; }
.view-switch button[aria-pressed="true"] { background:var(--lavender); border-color:var(--line); }
.library-meta, .library-hint { color:var(--muted); font-size:14px; line-height:1.5; }
.library-hint { margin-top:6px; }
.library-error, .selection-message { margin-bottom:14px; padding:12px 14px; border:1px solid var(--outline); border-radius:10px; background:var(--paper); font-size:14px; }
.library-error p { margin-bottom:10px; }
.selection-message { background:var(--soft); }
.library-layout { display:grid; grid-template-columns:minmax(265px,300px) minmax(0,1fr); align-items:start; gap:16px; }
.library-sidebar { padding:16px 12px; }
.library-sidebar h2 { margin:0 4px 16px; font-size:18px; }
.library-field { margin:0 4px 14px; min-width:0; }
.library-field label, .format-field label { display:block; margin-bottom:5px; font-size:14px; font-weight:650; }
.library-field input, .library-field select { width:100%; min-width:0; max-width:100%; min-height:42px; font-size:16px; padding:8px 10px; }
.library-field select, .format-field select { padding-right:30px; }
.field-error { color:var(--text); font-size:14px; margin-top:6px; font-weight:650; }
.library-field input[aria-invalid="true"] { border-color:var(--text); }
.result-toolbar { display:flex; align-items:center; justify-content:space-between; gap:6px; margin:0 4px 8px; }
.result-toolbar button { min-height:38px; padding:6px 8px; font-size:14px; white-space:nowrap; }
.role-results { list-style:none; padding:0; margin:0; display:grid; gap:5px; }
.role-result { display:block; text-decoration:none; padding:11px 12px; border:1px solid transparent; border-radius:9px; }
.role-result:hover { background:var(--bg); border-color:var(--line); }
.role-result[aria-current="true"] { background:var(--soft); border-color:var(--outline); }
.role-result-title { display:block; font-size:16px; line-height:1.4; font-weight:700; overflow-wrap:anywhere; }
.role-result-family { display:block; color:var(--muted); font-size:14px; line-height:1.4; margin-top:3px; }
.role-result-mission { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; color:var(--muted); font-size:14px; line-height:1.45; margin-top:6px; }
.role-pager { display:flex; align-items:center; justify-content:space-between; gap:5px; flex-wrap:wrap; margin:12px 4px 0; border-top:1px solid var(--line); padding-top:12px; }
.role-pager button { min-height:38px; font-size:14px; padding:6px 9px; }
.role-pager .library-meta { font-size:14px; }
.sidebar-empty { margin:14px 4px; font-size:16px; line-height:1.6; }
#process-count { margin:10px 4px; }
.sidebar-note { margin:16px 4px 0; padding-top:15px; border-top:1px solid var(--line); }
.sidebar-note h3 { margin-bottom:6px; font-size:15px; }
.sidebar-note p { font-size:14px; color:var(--muted); line-height:1.6; }
.library-detail { padding:0; overflow:hidden; }
.detail-header { padding:20px 22px 16px; border-bottom:1px solid var(--line); }
.detail-header h2 { margin:5px 0 9px; font-size:24px; line-height:1.25; letter-spacing:-.025em; overflow-wrap:anywhere; }
.detail-header h2:focus { outline-offset:5px; border-radius:3px; }
.detail-description { font-size:16px; line-height:1.65; max-width:75ch; }
#detail-aliases { margin-top:8px; }
.export-controls { display:flex; align-items:end; flex-wrap:wrap; gap:8px; margin-top:16px; }
.format-field { flex:0 1 145px; min-width:120px; }
.format-field select { width:100%; min-height:40px; font-size:14px; }
.export-controls button { min-height:40px; font-size:14px; font-weight:650; padding:8px 13px; }
.export-controls .library-hint { flex:1 1 100%; margin-top:0; }
.export-feedback:not(:empty) { padding:8px 10px; margin-top:10px; font-size:14px; line-height:1.5; background:var(--soft); border-radius:7px; overflow-wrap:anywhere; }
.detail-body { padding:20px 22px 22px; }
.profile-section + .profile-section, .profile-top-grid + .profile-section { margin-top:24px; padding-top:20px; border-top:1px solid var(--line); }
.profile-section h3 { font-size:18px; line-height:1.35; margin-bottom:10px; }
.profile-section > p { font-size:16px; line-height:1.6; }
.profile-section ul, .profile-section ol { padding-left:22px; margin:8px 0 0; }
.profile-section li { margin-block:6px; font-size:16px; line-height:1.6; overflow-wrap:anywhere; }
.profile-top-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.profile-top-grid .profile-section + .profile-section { margin:0; padding:0; border:0; }
.cadence-group + .cadence-group { margin-top:14px; }
.cadence-label { font-size:14px; font-weight:750; color:var(--muted); }
.cadence-group ul { margin-top:3px; }
.deliverable-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.deliverable-card { border:1px solid var(--line); border-radius:9px; padding:12px 13px; background:var(--bg); min-width:0; }
.deliverable-card h4 { font-size:16px; line-height:1.4; margin:0 0 5px; }
.deliverable-card p { font-size:14px; line-height:1.6; color:var(--muted); }
.handoff-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; list-style:none; padding:0!important; margin:0!important; }
.handoff-list li { border:1px solid var(--line); border-radius:9px; padding:12px 13px; margin:0; }
.handoff-list .handoff-artifact { font-size:16px; font-weight:650; margin:7px 0 3px; }
.handoff-list .handoff-trigger { font-size:14px; color:var(--muted); }
.handoff-list a { font-size:15px; font-weight:700; line-height:1.5; }
.skill-list { list-style:none; display:flex; flex-wrap:wrap; gap:7px; padding:0!important; margin:0!important; }
.skill-list li { margin:0; padding:7px 10px; background:var(--soft); border:1px solid var(--line); border-radius:7px; font-size:14px; }
.raci-legend { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px 18px; padding:13px 14px; margin:12px 0; border:1px solid var(--line); border-radius:9px; background:var(--bg); }
.raci-legend div { min-width:0; }
.raci-legend dt { font-size:14px; font-weight:750; }
.raci-legend dd { font-size:14px; color:var(--muted); margin:3px 0 0; line-height:1.5; }
.process-participation { border:1px solid var(--line); border-radius:9px; margin-top:9px; }
.process-participation summary, .source-references summary { cursor:pointer; min-height:44px; padding:12px 14px; font-size:16px; line-height:1.5; font-weight:650; overflow-wrap:anywhere; }
.process-participation summary span { display:block; margin:3px 0 0 18px; font-size:14px; font-weight:400; color:var(--muted); }
.participation-content { padding:0 14px 14px; }
.process-guidance { font-size:14px; color:var(--muted); margin-bottom:8px; line-height:1.6; }
.process-assumptions { margin:9px 0 12px; padding:10px 12px; border-left:3px solid var(--outline); background:var(--soft); }
.process-assumptions h4 { font-size:14px; margin:0 0 4px; }
.process-assumptions ul { margin:0; padding-left:18px; }
.process-assumptions li { font-size:14px; line-height:1.6; }
.process-open-link { display:inline-flex; align-items:center; min-height:38px; font-size:14px; font-weight:650; }
.participation-activities { list-style:none; padding:0!important; margin:10px 0 0!important; }
.participation-activities > li { padding:11px 0; margin:0; border-top:1px solid var(--line); }
.participation-activities h4 { margin:0 0 5px; font-size:16px; }
.assignment-label { display:inline-block; font-size:14px; padding:3px 7px; border-radius:5px; border:1px solid var(--line); background:var(--soft); margin:0 4px 5px 0; }
.participation-output { font-size:14px; color:var(--muted); line-height:1.6; }
.source-references { border:1px solid var(--line); border-radius:9px; margin-top:22px; background:var(--paper); }
.reference-content { padding:0 14px 14px; }
.reference-content > p { color:var(--muted); font-size:14px; line-height:1.6; }
.source-list { list-style:none; padding:0; margin:12px 0 0; }
.source-list li { border-top:1px solid var(--line); padding-top:11px; margin-top:11px; }
.source-list a { font-size:15px; font-weight:650; line-height:1.6; overflow-wrap:anywhere; }
.source-list p { margin-top:4px; font-size:14px; line-height:1.6; color:var(--muted); }
.process-facts { display:grid; grid-template-columns:1fr 1fr; gap:20px; margin:0 0 20px; }
.process-facts dt { font-size:14px; font-weight:750; margin-bottom:6px; }
.process-facts dd { margin:0; font-size:16px; line-height:1.6; overflow-wrap:anywhere; }
.process-facts ul { padding-left:20px; margin:0; }
.activity-list { list-style:none; padding:0!important; margin:0!important; display:grid; gap:12px; }
.activity-list > li { border:1px solid var(--line); border-radius:10px; padding:14px; margin:0; background:var(--bg); }
.activity-list h4 { font-size:17px; margin:0 0 7px; line-height:1.4; }
.activity-list p { font-size:16px; line-height:1.65; }
.activity-list .deliverable-label { font-size:14px; font-weight:750; margin-top:12px; }
.activity-list ul { margin-top:3px; }
.activity-list ul li { font-size:14px; margin-block:4px; }
.raci-table { border-collapse:collapse; table-layout:fixed; width:100%; font-size:14px; }
.raci-table caption { text-align:left; font-size:14px; color:var(--muted); line-height:1.6; margin:0 0 10px; }
.raci-table th, .raci-table td { text-align:left; vertical-align:top; padding:10px 8px; border-bottom:1px solid var(--line); overflow-wrap:anywhere; line-height:1.5; }
.raci-table thead th { font-size:14px; font-weight:700; background:var(--soft); }
.raci-table tbody th { font-size:14px; font-weight:650; }
.raci-table th:first-child { width:22%; }
.raci-role-list { list-style:none; padding:0!important; margin:0!important; display:grid; gap:7px; }
.raci-role-list li { font-size:14px; margin:0; line-height:1.6; }
.raci-role-list a { display:inline-block; max-width:100%; font-weight:550; }
.raci-none { font-size:14px; color:var(--muted); }
.combined-assignment { display:block; font-size:14px; color:var(--muted); margin-top:3px; }
.raci-card-view { display:none; }
.raci-mobile-card { border:1px solid var(--line); border-radius:9px; padding:14px; margin-top:12px; }
.raci-mobile-card h4 { font-size:17px; line-height:1.4; margin:0 0 12px; }
.raci-mobile-card dl { margin:0; display:grid; gap:12px; }
.raci-mobile-card dt { font-size:14px; font-weight:750; margin-bottom:5px; }
.raci-mobile-card dd { margin:0; }
.intro-heading { font-size:18px; margin:0 0 7px; }
.intro-copy { color:var(--muted); line-height:1.65; font-size:16px; margin:0 0 15px; max-width:62ch; }
.quick-start-list { list-style:none; padding:0; margin:0; display:grid; gap:8px; }
.quick-start-link { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:55px; padding:12px 14px; border:1px solid var(--line); border-radius:9px; background:var(--bg); font-size:16px; font-weight:650; text-decoration:none; overflow-wrap:anywhere; }
.quick-start-link:hover { background:var(--soft); }
.quick-start-link span { color:var(--muted); font-size:14px; font-weight:400; }
.intro-footnote { font-size:14px; color:var(--muted); line-height:1.6; margin:16px 0 0; }
.library-layout button:disabled, .library-toolbar button:disabled { cursor:default; opacity:.58; }
.library-layout [hidden], .library-error[hidden], .selection-message[hidden] { display:none!important; }
.library-sidebar, .library-detail, .profile-section, .profile-top-grid > *, .process-facts > * { min-width:0; }
.library-detail a, .library-detail p, .library-detail li, .library-context p { overflow-wrap:anywhere; }
@media (max-width:1100px) {
  .library-layout { grid-template-columns:minmax(250px,280px) minmax(0,1fr); gap:12px; }
  .detail-header, .detail-body { padding-left:17px; padding-right:17px; }
  .profile-top-grid { grid-template-columns:1fr; gap:22px; }
  .profile-top-grid .profile-section + .profile-section { border-top:1px solid var(--line); padding-top:20px; }
  .raci-table th, .raci-table td { padding-inline:5px; }
}
@media (max-width:850px) {
  .library-layout { grid-template-columns:minmax(0,1fr); }
  .library-sidebar { padding:16px; }
  .role-results { grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
  .role-result { border-color:var(--line); height:100%; }
  .role-pager { justify-content:flex-end; gap:12px; }
  .library-heading { align-items:flex-start; }
  .library-counts { flex-shrink:1; }
  .raci-table-view { display:none; }
  .raci-card-view { display:block; }
  .profile-top-grid { grid-template-columns:1fr 1fr; }
  .profile-top-grid .profile-section + .profile-section { border:0; padding:0; }
}
@media (max-width:650px) {
  body { font-size:16px; }
  main { padding:18px 14px; }
  .topbar nav a { font-size:14px; padding-inline:7px; }
  .library-heading { display:block; margin-bottom:12px; }
  .library-heading h1 { font-size:26px; }
  .library-counts { width:fit-content; margin-top:11px; font-size:14px; padding:6px 10px; }
  .library-context summary { line-height:1.6; }
  .library-context summary span { display:block; margin:3px 0 0 18px; }
  .library-toolbar { align-items:start; gap:8px; }
  .library-toolbar > .library-meta { flex-basis:100%; }
  .view-switch { display:flex; }
  .view-switch button { min-height:44px; }
  .library-sidebar { padding:14px 10px; }
  .library-field input, .library-field select, .format-field select { min-height:44px; font-size:16px; }
  .result-toolbar button, .role-pager button, .export-controls button, #retry-library { min-height:44px; }
  .role-results { grid-template-columns:minmax(0,1fr); }
  .role-result { padding:11px 12px; }
  .role-result-family { font-size:14px; }
  .role-result-mission { -webkit-line-clamp:1; }
  .role-pager { justify-content:space-between; gap:5px; }
  .role-pager .library-meta { font-size:14px; }
  .detail-header, .detail-body { padding:17px 14px; }
  .detail-header h2 { font-size:23px; }
  .export-controls { gap:9px; }
  .format-field { flex:1 1 120px; }
  .export-controls button { flex:1 1 165px; }
  .profile-top-grid, .process-facts, .deliverable-grid, .handoff-list { grid-template-columns:minmax(0,1fr); }
  .profile-top-grid .profile-section + .profile-section { border-top:1px solid var(--line); padding-top:20px; }
  .profile-section + .profile-section { margin-top:21px; padding-top:18px; }
  .handoff-list a, .process-open-link, .source-list a, .raci-role-list a { min-height:44px; display:inline-flex; align-items:center; max-width:100%; }
  .participation-content { padding-inline:12px; }
  .process-participation summary, .source-references summary { padding-inline:12px; }
  .raci-role-list { gap:1px; }
  .combined-assignment { font-size:14px; }
  .quick-start-link { align-items:flex-start; flex-direction:column; gap:4px; }
}
@media (max-width:370px) {
  .raci-legend { grid-template-columns:minmax(0,1fr); }
  .library-context summary { padding-inline:11px; }
  .context-content { padding-inline:12px; }
}
@media (forced-colors:active) {
  .view-switch button[aria-pressed="true"], .role-result[aria-current="true"] { border:2px solid Highlight; }
}

.process-map .process-map-intro { margin: 0 0 12px; }
.process-map-route { display:flex; align-items:stretch; padding:0!important; margin:0 0 12px!important; list-style:none; }
.process-map-route > li { flex:1 1 0; min-width:0; display:flex; align-items:center; margin:0; }
.process-map-stop { flex:1; display:flex; align-items:center; gap:7px; min-width:0; min-height:54px; height:100%; padding:9px; text-align:left; line-height:1.35; font:inherit; font-size:.89rem; font-weight:650; color:#494551; background:#faf9fc; border:1px solid #c6c1cd; border-radius:8px; cursor:pointer; overflow-wrap:anywhere; }
.process-map-stop[aria-pressed="true"] { background:#f0ebf6; border:2px solid #756e7d; padding:8px; }
.process-map-stop:focus-visible { outline:3px solid #514c58; outline-offset:2px; }
.process-map-number { border:1px solid #b2aaba; display:inline-grid; place-items:center; border-radius:50%; flex:0 0 1.4rem; width:1.4rem; height:1.4rem; font-size:.75rem; }
.process-map-arrow { flex:0 0 16px; height:2px; position:relative; background:#817b87; }
.process-map-arrow::after { content:""; position:absolute; right:1px; top:-2px; width:5px; height:5px; border:solid #817b87; border-width:2px 2px 0 0; transform:rotate(45deg); }
.process-map-detail { border-left:3px solid #c5b9d7; padding:9px 14px; background:#faf9fc; border-radius:0 8px 8px 0; }
.process-map-detail h4,.process-map-detail h5 { margin:0 0 5px; }
.process-map-detail h4 { font-size:1.02rem; }
.process-map-detail h5 { font-size:.88rem; }
.process-map-detail p { margin:0 0 8px; }
.process-map-roles { display:grid; grid-template-columns:max-content 1fr; gap:4px 12px; margin:8px 0; font-size:.88rem; }
.process-map-roles dt { font-weight:650; }
.process-map-roles dd { margin:0; }
.process-map-outputs { padding-left:1.3rem; margin:0; }
.process-map-all summary { cursor:pointer; font-weight:650; padding-block:4px; }
@media(max-width:750px) {
  .process-map-route { flex-direction:column; }
  .process-map-route > li { display:block; }
  .process-map-stop { min-height:44px; width:100%; }
  .process-map-arrow { display:block; width:2px; height:12px; margin-left:20px; }
  .process-map-arrow::after { transform:rotate(135deg); top:auto; bottom:1px; right:-2px; }
}

.work-action {display: flex; width: fit-content; align-items: center; min-height: 44px; font-weight: 650;}
.deliverable-card .library-meta {display: block; margin-top: 8px;}
