/* User reference: mist blue, translucent layers, precise dark controls. */
:root{--ink:#233247;--muted:#536879;--line:#c8d6df;--green:#202c44;--deep:#121c31;--pale:#e6eef4;--paper:#dbe7ee;--white:#f7fbff;--red:#984636;--amber:#856329;--radius:18px;color:var(--ink);background:#bcced8}
body{background:radial-gradient(ellipse at 8% 0%,#f6fbff 0,transparent 48%),radial-gradient(ellipse at 95% 100%,#94adbf75 0,transparent 52%),linear-gradient(125deg,#c8dbe3,#b7cbd5);background-attachment:fixed}
::selection{background:#bfd2e5;color:#15243a}input,textarea{caret-color:#243d62}*{scrollbar-width:thin;scrollbar-color:#9bafbc #e4edf366}
#app{margin:18px;min-height:calc(100vh - 36px);border:1px solid #ffffffd6;border-radius:28px;background:#e9f3f877;box-shadow:0 22px 64px #344e681c;overflow:clip}
.sidebar{left:30px;top:30px;bottom:30px;width:188px;padding:23px 12px 18px;border:1px solid #ffffffd9;border-radius:23px;background:#f4fbffc9;backdrop-filter:blur(20px)}
.brand{padding:0 7px 25px;gap:9px}.brand>span{font-size:16px;letter-spacing:0}.brand small{color:#526676;letter-spacing:1.2px}.brand img{width:36px;height:36px}.nav-heading{color:#596f81;letter-spacing:0;font-size:11px;margin-top:14px;padding:0 12px}.nav-item{padding:11px 12px;color:#45596b;border-radius:12px}.nav-item:hover{background:#dce8f0}.nav-item.active{background:#202c44;color:#fff;box-shadow:0 5px 12px #243a4f1a}.nav-dot{background:#dceafa}.project-nav{border-color:#c4d4df}.project-switch{color:#40546c;padding:3px 7px 12px}.sidebar-bottom{padding:24px 7px 0}.sidebar-bottom p{color:#5b6e7d;font-size:11px}.local-state{color:#425b6d}.local-state>span{background:#57768b;box-shadow:none}.text-btn{color:#4c6376;font-size:12px}
.workspace{margin-left:212px}.topbar{height:64px;background:none;border-color:#ffffff85;padding:0 30px}.breadcrumb{font-size:12px;color:#526778}.breadcrumb span{color:#718594}.save-state{color:#435d70;font-size:11px}.avatar{background:#dce8f1;color:#344960;border:1px solid #f8fcff;font-family:inherit}
main{padding:28px 30px 30px;min-height:calc(100vh - 142px)}h1{font-size:28px;letter-spacing:-.5px;color:#1f2c43}.page-heading{margin-bottom:23px}.page-heading p{font-size:13px;color:#4c6478;margin-top:8px}.page-heading .eyebrow{display:none}.heading-actions{gap:8px}
.btn{background:#f6fbffb3;border:1px solid #ffffff;border-radius:10px;color:#344c62;font-size:12px}.btn:hover{background:#fff;border-color:#fff}.btn.primary{background:#202c44;border-color:#202c44;color:#fff;box-shadow:0 5px 12px #22394e17}.btn.primary:hover{background:#354863}.btn.icon-btn:hover{background:#d7e4ee}.btn.small{font-size:12px}.inline-link{color:#365673;font-size:12px;text-underline-offset:4px}.inline-link:hover{color:#182d48;text-decoration:underline}.badge{font-size:11px;color:#4d6274;background:#e5edf3}.badge.core,.badge.confirmed{background:#dce9ec;color:#365d62}.badge.adjacent{background:#e1e9f3;color:#475a78}.badge.pending{background:#f0eadf;color:#706040}.badge.na{background:#e8e9eb;color:#5b6771}.badge.incomplete{background:#f4e8cd;color:#816021}.badge.review{background:#dfe9f5;color:#3b597c}.badge.unassigned{background:#f5e1d7;color:#95553b}
.panel,.table-panel,.project-card,.role-card{background:#f5faff99;border:1px solid #fff;border-radius:18px}.panel-heading{border-color:#ffffffa6}.panel-hint{color:#526b7e}.table-toolbar{background:#f7fbff8a;border-color:#fff}.table-toolbar input,.table-toolbar select,.explore-filters input,.explore-filters select{background:#f6fbffbf;border:1px solid #fff}.search{background:#f7fbffa3;border-color:#fff;border-radius:12px}.search svg{color:#5d7385}.search input{background:transparent!important;color:#263b52;font-size:13px}.search input::placeholder{color:#62778a}.search kbd{display:none}input:focus,select:focus,textarea:focus{border-color:#819ab4;box-shadow:0 0 0 3px #8ba6c12b}button:focus-visible,a:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:2px solid #365d81;outline-offset:3px}
.domain-panel{background:#e3edf4b0;border:1px solid #fff;border-radius:18px}.domain-label{color:#415a70;border-color:#fff}.domain-item{color:#40576d;border-radius:10px}.domain-item.active{background:#fff9;color:#213c56}.domain-item:hover{background:#f5faff}.domain-number,.domain-item b{color:#546f84}.duty-table th{color:#4b6173;background:#eef5fa;font-size:12px}.duty-table td{border-color:#d8e3eb}.duty-table tr:hover{background:#fff9}.row-title{color:#263d52;font-size:13px}.row-kicker,.row-kicker code{color:#5c7286}.role-text{color:#476176;font-size:12px}.pagination{color:#536b7e;border-color:#fff}.row-arrow{color:#576f83}.table-toolbar select{color:#405d76}.filter-tag{background:#e0eaf3;color:#345571}
.modal{background:#f2f8fcd9;backdrop-filter:blur(26px);border:1px solid #fff;border-radius:22px;box-shadow:0 22px 70px #20395438}.modal.drawer{border-radius:24px 0 0 24px}.scrim{background:#263d523d;backdrop-filter:blur(3px)}.modal-header,.modal-footer{border-color:#cad9e3;background:#eff7fc8c}.modal-header .eyebrow{display:none}.modal-header h2{color:#20354b}.prose{color:#3b536b;font-size:13px}.field>span{color:#405a70;font-size:12px}.field input,.field textarea,.field select{color:#233f56;background:#fbfdff;border-color:#c6d5df}.form-note{background:#e2edf5;color:#465f76}.pick summary,.pick-list label{color:#34556e}.pick{border-color:#c4d4e0;background:#fff9}.pick-list{background:#f4f9fd;border-color:#b9cddd}.example-box,.assignment-definition{background:#e5eff5;color:#3a566e}.detail-kicker,.detail-kicker code{color:#4e6980}.source-strip{background:#e2edf5;color:#4b6479}.detail-section>h3{color:#314c65}.role-chip{background:#e4edf5;color:#3d5b75}.related-duties button{border-color:#d5e1ea;color:#35516b}.related-duties small{color:#526d82}.instructions .prose{color:#3b536b}
.stats .stat,.project-intro,.coverage-hero{background:#e4eff7a6;border-color:#fff}.stat>span,.stat small,.project-context,.project-intro p,.coverage-hero p,.coverage-explanation p,.coverage-explanation>span{color:#4d677d}.stat strong,.project-intro h2,.coverage-hero strong{color:#203750}.project-icon,.mini-avatar{background:#dce9f3;color:#3e607c}.project-card h3{color:#2d4760}.project-card p,.project-meta,.project-progress{color:#506a80}.progress-track{background:#d7e3eb}.progress-track i{background:#537b98}.project-role-item{border-color:#d2dfe8}.project-role-item b{color:#2f4c65}.project-role-item small,.project-role-item span{color:#557084}.chart-scroll{background:#e4eef5}.status-card{background:#f4faffc4;border-color:#fff}.status-card>span{color:#4c667c}.coverage-table td{color:#38566f}.coverage-table th{color:#47627a}.project-context{border-color:#c9d9e5}.project-role-list .empty,.empty{color:#4d667a}.empty p{color:#557084}.workspace-footer,.workspace-footer span{color:#536c80;border-color:#ffffff8a}.eyebrow{color:#4f6880}

/* Shared neutral states and project surfaces use the current mist-blue theme. */
.field input::placeholder,.field textarea::placeholder{color:#607487;font-size:12px;opacity:1}
.field small{color:#526d82}
.empty-icon{color:#526f87;background:#e6f0f7;border:1px solid #c3d5e3;border-radius:15px;width:54px;height:54px}
.empty h3{color:#29445d;font-weight:600}
.content-caption small{color:#526d82;font-variant-numeric:tabular-nums}
.projects-workspace .project-intro{border-radius:18px;padding:26px 30px;gap:30px;margin-bottom:26px;background:#e6f0f69e}
.projects-workspace .project-intro>div:first-child{min-width:0}
.projects-workspace .project-intro h2{font-size:20px;line-height:1.5;margin:0 0 12px}
.projects-workspace .project-intro p{font-size:13px;line-height:1.9}
.projects-workspace .project-intro .inline-link{margin-top:16px}
.intro-diagram{width:252px;flex-shrink:0;color:#365571;font-size:12px}
.diagram-pill{background:#f4f9fd;border-color:#b8cddd;color:#355570;border-radius:9px;box-shadow:none;padding:9px 22px}
.intro-diagram>.diagram-pill:first-child{background:#263d56;border-color:#263d56;color:#f7fbff;box-shadow:0 4px 12px #2d486315}
.intro-diagram i{height:15px;border-color:#96b0c5}
.diagram-row{gap:18px;position:relative;padding-top:11px}
.diagram-row:before{content:'';position:absolute;top:0;left:25%;right:25%;height:1px;background:#96b0c5}
.diagram-row span{position:relative;flex:1;text-align:center;border:1px solid #b8cddd;background:#e4eef6;color:#3b5a74;border-radius:8px;padding:8px 17px;white-space:nowrap}
.diagram-row span:before{content:'';position:absolute;width:1px;height:11px;background:#96b0c5;top:-12px;left:50%}
.muted-pill{background:#eff6fb;border-style:solid;color:#48657d}
.projects-workspace>.content-caption{margin-bottom:18px;align-items:center}
.projects-workspace>.content-caption h2{font-size:16px;color:#29445d}
.projects-workspace>.content-caption .text-btn{min-height:38px}
.projects-workspace>.empty{padding:38px 24px 44px;border-top:1px solid #c3d5e1}
.projects-workspace>.empty h3{font-size:17px;margin:12px 0 8px}
.projects-workspace>.empty p{font-size:13px;margin:0 auto 20px;max-width:52ch}
.project-card{display:flex;flex-direction:column;min-width:0;transition:background .18s,border-color .18s,box-shadow .18s}
.project-card:hover{background:#f6fbffe6;border-color:#b6cadb;box-shadow:0 8px 20px #2e4b6212}
.project-card-top>svg{color:#526e84}.project-card .badge.core{background:#dce8f3;color:#375775}
.project-card h3{overflow-wrap:anywhere;line-height:1.6;font-weight:600}
.project-card>p{font-size:12px;overflow-wrap:anywhere;flex:1}
.project-progress b{color:#345a77;font-variant-numeric:tabular-nums}.project-meta{flex-wrap:wrap;gap:7px 16px;font-size:11px}
@media(max-width:950px){.projects-workspace .project-intro{padding:24px;gap:22px}.intro-diagram{width:222px}.projects-workspace .project-intro h2{font-size:18px}}
@media(max-width:700px){.projects-workspace .project-intro{padding:22px 20px;margin-bottom:22px}.projects-workspace .project-intro p{font-size:12px}.projects-workspace>.content-caption{gap:10px;flex-wrap:wrap}.projects-workspace>.content-caption h2{font-size:15px}.projects-workspace>.empty{padding:28px 8px 32px}.projects-workspace>.empty h3{font-size:16px}.projects-workspace>.empty p{font-size:12px}.project-card{padding:20px}}

/* Project workspace: shared controls, assignment tables and coverage states. */
.muted,.panel-heading h2 small{color:#526d82}
.stat strong,.coverage-hero strong,.status-card strong{font-family:inherit;font-weight:600;font-variant-numeric:tabular-nums}
.stat em{color:#5a7186;font-family:inherit}.stat small{line-height:1.7}
.next-steps>a{border-color:#cbdbe6;padding:20px 0}.next-steps>a:hover h3{color:#1c4565}.next-steps>a>svg{color:#5b778d}
.step-number{font-family:inherit;font-variant-numeric:tabular-nums;font-size:17px;color:#526e85}
.next-steps h3{color:#29445d}.next-steps p{color:#526d82;font-size:12px;line-height:1.8}
.later-note{color:#526d82;font-size:11px;line-height:1.7}.later-note svg{flex-shrink:0}
.segment{padding:4px;background:#dce8f1;border:1px solid #f5fbff;border-radius:11px;gap:3px}
.segment button{color:#526d82;font-size:12px;border-radius:8px;padding:7px 12px}.segment button.active{color:#213e57;background:#f8fcff;box-shadow:0 3px 8px #29445b10}.segment button:hover{background:#edf5fa}
.graph-controls{color:#526d82;font-size:11px;font-variant-numeric:tabular-nums}.graph-legend{color:#526d82;font-size:10px;border-top:1px solid #cbdbe6}.graph-legend i{border-color:#8aa4b9}
.chart-node:hover>rect:first-child{stroke:#486d8d}.panel-hint{background:#e7f0f7;color:#526d82;line-height:1.8;font-size:12px;border-bottom:1px solid #cbdbe6}
.project-role-item:hover,.org-list-item:hover{background:#f4f9fd}.project-role-item>svg,.org-list-item{color:#526e85}.project-role-item b{font-size:12px}.project-role-item small,.project-role-item div>span{font-size:11px;line-height:1.7;color:#526d82}
.org-list-item{border-color:#cbdbe6}.org-list-item b{color:#29445d}.org-list-item small{color:#526d82;font-size:11px}
.domain-label span,.domain-item.active b{color:#526d82}.domain-item b{font-family:inherit;font-variant-numeric:tabular-nums}
.bulk-bar{background:#e9f2f8;color:#49677e;font-size:12px;border-color:#cbdbe6}.bulk-bar input,.row-check,#select-page{accent-color:#355971}
.row-scope{color:#526d82;font-size:11px;line-height:1.7}.project-duty-layout .table-toolbar{gap:10px}.project-duty-layout .table-toolbar .search{min-height:40px}
.duty-table tbody tr:hover{background:#f5faff}.search{color:#526d82}
.coverage-explanation{border-color:#b8cddd}.coverage-explanation h3{color:#29445d}.coverage-hero .eyebrow{font-size:12px;letter-spacing:0}.coverage-hero p,.coverage-explanation>span{font-size:12px;line-height:1.9}
.status-card strong{color:#365775}.status-card>svg{color:#5b778d}.status-card:hover{background:#f8fcff;border-color:#b3cadb}
.status-card.unassigned strong{color:#95553b}.status-card.confirmed strong{color:#365d62}.status-card.pending strong{color:#706040}.status-card.na strong{color:#5b6771}
.coverage-table th{background:#e8f1f7}.coverage-table td{border-color:#cbdbe6}.coverage-table tr[data-action]:hover{background:#f5faff}
.reference-picker{background:#f4f9fd;border-color:#c3d5e3}.reference-picker label{border-color:#d3e1eb}.reference-picker label:hover{background:#e7f0f7}.reference-picker b{color:#29445d;font-size:13px}.reference-picker small{color:#526d82;font-size:12px}.reference-picker input{accent-color:#355971}
.checkbox-line,.checkbox-line b{color:#36536b;font-size:12px}.checkbox-line small{color:#526d82;font-size:11px}.checkbox-line input{accent-color:#355971;flex-shrink:0}.checkbox-line:has(input:disabled){opacity:.7}
.definition-collapse>summary{color:#3d5d77;font-size:12px}.instructions .detail-section{border-color:#cbdbe6}.instructions .detail-section h3{color:#29445d}
#toast{background:#263d56;color:#f6fbff;box-shadow:0 5px 20px #243b5426}#toast.error{background:#8b493b}
.project-role-editor{width:min(760px,calc(100vw - 16px))!important}
.project-reference-source{padding-bottom:20px;margin-bottom:22px;border-bottom:1px solid #c3d5e3}
.project-reference-source>.field{margin-bottom:8px}
#project-reference-preview details{margin:12px 0;color:#49677f;font-size:12px}
#project-reference-preview summary{cursor:pointer;padding:8px 0}
#project-reference-preview article{padding:14px 0;border-bottom:1px solid #d0dfe9}
#project-reference-preview h4{font-size:13px;color:#29445d;margin:0 0 6px}
#project-reference-preview p,#project-reference-preview small{line-height:1.8;white-space:pre-line;color:#526d82}
.reference-draft-action{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.reference-draft-action>span{color:#526d82;font-size:11px}
.project-reference-apply{border-top:1px solid #c3d5e3;margin-top:8px;padding-top:20px}
@media(max-width:700px){.coverage-explanation{border-top-color:#b8cddd}.next-steps>a{margin:0 20px;padding:18px 0}.graph-controls{flex-wrap:wrap;justify-content:flex-end}.project-role-editor{width:calc(100vw - 8px)!important}.reference-draft-action{align-items:flex-start;gap:8px}}

/* Overview controls and the two connected exploration surfaces. */
.subject-summary p{white-space:pre-line;line-height:1.8}.subject-summary .detail-section{margin:20px 0}.subject-duty-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:28px}.subject-duty-heading h3{margin:0}.subject-duty-heading>span,.draft-link-count{font-size:11px;color:#526d82}.draft-link-count{display:block;margin-top:6px}
.subject-duty-domain{border:1px solid #c3d5e3;border-radius:13px;margin:12px 0;background:#f5faff99;overflow:hidden}.subject-duty-domain>summary{display:flex;align-items:center;justify-content:space-between;gap:18px;cursor:pointer;padding:17px 18px;list-style:none}.subject-duty-domain>summary::-webkit-details-marker{display:none}.subject-duty-domain>summary>span:last-child{white-space:nowrap;font-size:12px;color:#526d82}.subject-duty-domain[open]>summary{border-bottom:1px solid #c3d5e3}.subject-duty-item{padding:20px;border-bottom:1px solid #d3e1eb}.subject-duty-item:last-child{border:0}.subject-duty-item p{white-space:pre-line;font-size:13px;line-height:1.8}.subject-duty-title{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.subject-duty-title b{font-size:14px;color:#29445d;line-height:1.8}.link-judgment{display:inline-block;font-size:11px;white-space:nowrap;padding:3px 8px;border-radius:6px;background:#dde8f0;color:#3c5870}.link-judgment.explicit{background:#dceae5;color:#365d54}.link-judgment.partial{background:#e4e5f1;color:#555b7b}.link-judgment.suggested{background:#eee7d7;color:#75603b}.subject-duty-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.project-link-source{margin:14px 0;color:#526d82;font-size:11px}.project-link-source summary{cursor:pointer}.project-link-source p{font-size:11px;overflow-wrap:anywhere}.project-link-source blockquote{border-left:1px solid #9fb6c8;margin:10px 0;padding-left:12px;white-space:pre-line;line-height:1.8}.project-associations{margin:24px 0;border-block:1px solid #c3d5e3;padding-block:20px}.project-associations h3{margin:0}.project-associations h3 small{font-size:12px;font-weight:400}.project-associations article{margin-top:18px}.project-associations article>div{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.project-associations article p{font-size:12px;line-height:1.8}
.reuse-filters{display:grid;grid-template-columns:1fr 1fr;gap:10px}.reuse-filters>input{grid-column:1/-1}.reuse-filters input,.reuse-filters select{width:100%;min-width:0}.reuse-selection{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:16px 0;border-bottom:1px solid #c3d5e3}.reuse-selection>span{font-size:12px;color:#526d82;margin-left:auto}.reuse-duty-row{display:flex;gap:13px;padding:16px 4px;border-bottom:1px solid #d3e1eb;align-items:flex-start;cursor:pointer}.reuse-duty-row[hidden]{display:none}.reuse-duty-row>span{display:flex;flex-direction:column;gap:5px}.reuse-duty-row b{font-size:13px;font-weight:500;color:#29445d;line-height:1.7}.reuse-duty-row small{font-size:11px;color:#526d82}.reuse-duty-row input{accent-color:#355971;margin-top:5px}.reuse-duty-row:has(input:disabled){background:#e6eff5}.reuse-duty-row:hover{background:#f7fbff}
.organization-outline{padding:18px 24px}.org-outline-node{border-top:1px solid #c7d8e4;padding:10px 0}.org-outline-node:first-child{border-top:0}.org-outline-node .org-outline-node{margin-left:20px;border-top:0;border-left:1px solid #b6cbdc;padding:6px 0 10px 18px}.org-outline-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 0}.org-outline-heading>button:first-child{display:flex;gap:9px;align-items:center;text-align:left;color:#29445d;font-size:13px}.org-outline-heading b{font-weight:600}.org-outline-role{display:flex;align-items:center;width:100%;gap:12px;text-align:left;padding:9px 12px;border-radius:8px;margin:3px 0;background:#f4f9fd80;color:#34536c;font-size:12px}.org-outline-role small{margin-left:auto;white-space:nowrap;font-size:11px;color:#526d82}.org-outline-role:hover{background:#f8fcff}.organization-layout:has(.organization-outline){grid-template-columns:minmax(0,1fr) 300px}.subject-duties .form-note{margin-top:16px}
@media(max-width:950px){.organization-layout:has(.organization-outline){grid-template-columns:1fr}.organization-outline{padding:14px}.org-outline-node .org-outline-node{margin-left:8px;padding-left:12px}}@media(max-width:700px){.subject-duty-heading{align-items:flex-start;flex-direction:column;gap:6px}.subject-duty-title{flex-direction:column;gap:7px}.subject-duty-item{padding:16px}.subject-duty-domain>summary{padding:14px}.reuse-filters{grid-template-columns:1fr}.reuse-selection>span{margin-left:0}.org-outline-heading{flex-wrap:wrap}}
.explore-toolbar{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:17px}.explore-tabs{display:flex;gap:4px;padding:5px;border:1px solid #ffffffba;border-radius:14px;background:#dae7ef99}.explore-tabs button{display:flex;align-items:center;gap:7px;min-height:35px;padding:7px 14px;border-radius:10px;color:#485f73;font-size:13px;transition:background .18s,color .18s}.explore-tabs button:hover{background:#ffffff8a}.explore-tabs button.active{background:#f9fdff;color:#1d334c;box-shadow:0 4px 10px #344d6615}.explore-total{font-size:12px;color:#496378;font-variant-numeric:tabular-nums;margin-left:auto}.explore-total i{font-style:normal;margin:0 6px;color:#5b778a}.explore-note{display:flex;align-items:flex-start;gap:7px;color:#4f687b;font-size:12px;margin:0 0 18px;max-width:90ch}.explore-note svg{flex-shrink:0;margin-top:3px}.explore-filters{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin:0 0 16px}.explore-filters>.search{min-width:180px;flex:1;max-width:none;height:40px}.explore-select{display:flex;flex-direction:column;gap:5px;max-width:225px}.explore-select>span{font-size:11px;color:#526a80}.explore-select select{padding:9px 26px 9px 10px;border-radius:10px;max-width:100%;height:40px;font-size:12px}.explore-context{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:12px 16px;margin:0 0 15px;background:#f5fbffc4;border:1px solid white;border-radius:13px}.explore-context>div{display:flex;flex:1;flex-wrap:wrap;gap:8px}.explore-context span{font-size:12px;color:#2d4a65}.explore-context span+span{border-left:1px solid #b6c9d9;padding-left:12px}
/* Shared row geometry keeps the three layers and their role cards aligned. */
.governance-panorama{display:grid;gap:18px;align-content:start}

.governance-layer{border:1px solid #ffffffd4;border-radius:18px;background:#e6f0f69e;padding:20px;min-width:0}
.governance-layer>header{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:18px}.governance-layer h2{font-size:17px;white-space:nowrap;color:#233d57}.governance-layer h2>span{font-size:11px;color:#526a80;font-weight:400;margin-left:12px}.governance-layer header>p{font-size:12px;color:#4e677c}.governance-layer-content{display:grid;gap:20px;align-content:start}.layer-group{min-width:0}.layer-group h3{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:500;color:#49647c;margin-bottom:10px}.layer-group h3>span{font-size:11px;font-weight:400;color:#587084}
.layer-roles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;align-items:stretch}
.role-categories{display:grid;gap:20px}.role-category{min-width:0}.role-category h4{display:flex;align-items:center;gap:10px;font-size:12px;font-weight:500;color:#304f69;margin:0 0 10px}.role-category h4 span{font-size:11px;font-weight:400;color:#536d83}.role-category+.role-category{padding-top:18px;border-top:1px solid #c8d8e3}.role-group-label{flex-wrap:wrap}
.parallel-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 28px}.governance-layer[data-layer="management"] .parallel-groups{grid-template-columns:repeat(2,minmax(0,1fr))}.parallel-groups button{display:flex;flex-direction:column;justify-content:space-between;gap:6px;padding:12px;border:1px solid #fff;border-radius:10px;background:#f1f8fca6;text-align:left;min-width:0}.parallel-groups b{font-size:13px;color:#2a445f;font-weight:600}.parallel-groups span{font-size:11px;color:#536d83}.parallel-groups button:hover{background:#fff}.parallel-groups button:disabled{opacity:.5;cursor:default}.layer-group>h3{font-size:15px;font-weight:600;color:#243e57;background:#d4e3ed9c;padding:12px 14px;border-radius:9px;margin-bottom:18px;scroll-margin-top:24px}.layer-group>h3>span{margin-left:auto;color:#4c687f;font-size:11px;font-weight:400}.layer-group+.layer-group{border-top:1px solid #aec3d3;padding-top:24px;margin-top:12px}.layer-group-body{padding-left:16px}.role-categories{border-left:1px solid #aec3d3;padding-left:15px}.layer-group.has-categories>.layer-group-body{padding-left:0}.role-category h4{color:#49647c}.role-category+.role-category{border-top:0;padding-top:0}
@media(max-width:550px){.parallel-groups{gap:6px;margin-bottom:22px}.parallel-groups button{padding:9px 7px;gap:8px}.parallel-groups b{font-size:12px;line-height:1.6}.parallel-groups span{font-size:10px}.layer-group>h3{font-size:14px;padding:11px 12px}.layer-group-body{padding-left:10px}.role-categories{padding-left:9px}}
.panorama-role{display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;gap:10px;min-height:92px;padding:12px;border-radius:11px;background:#f8fcff8c;border:1px solid #fff9;text-align:left;transition:background .18s,box-shadow .18s}.panorama-role:hover{background:#fff;box-shadow:0 5px 14px #37516e16}.panorama-role-title{display:block;min-height:38px}.panorama-role b{font-size:12px;color:#253d56;font-weight:500;line-height:1.6;overflow-wrap:anywhere}.role-participation{display:flex;align-items:center;gap:10px;justify-content:space-between;color:#536e84;font-size:11px}


.domain-role-entry{display:block;background:#f8fcff;border:1px solid #ffffff;border-radius:9px;overflow:hidden}.domain-role-entry b{display:block;font-size:12px;line-height:1.6;color:#29445c;font-weight:500;overflow-wrap:anywhere}.domain-role-tag{display:inline-block;color:#526f85;font-size:10px;margin-top:4px}.domain-duty-count{display:flex;gap:2px;align-items:center;justify-content:center;color:#345b79;font-size:12px;font-variant-numeric:tabular-nums}.domain-duty-count small{font-size:10px}.domain-layer-empty{font-size:11px;color:#577187;padding:12px 0}
/* The matrix uses participation colors, grouped axes and a fixed reading origin. */
.matrix-scroll{overflow:auto;max-height:68vh;background:#edf5fa;border:1px solid #fff;border-radius:14px;position:relative;isolation:isolate;scrollbar-gutter:stable}
.role-matrix{--role-column:220px;--domain-column:188px;border-collapse:separate;border-spacing:0;table-layout:fixed;width:max-content;min-width:100%;font-size:12px}
.matrix-role-col{width:var(--role-column)}
.matrix-domain-col{width:var(--domain-column)}
.role-matrix th,.role-matrix td{border-right:1px solid #d1e0eb;border-bottom:1px solid #d1e0eb;text-align:center;padding:8px}
.role-matrix td{min-width:var(--domain-column);width:var(--domain-column);background:#f2f7fb}
.role-matrix thead{position:sticky;top:0;z-index:4}
.role-matrix thead th{background:#e2edf5;color:#294b68;font-weight:500;line-height:1.6}
.matrix-stage-head th{height:38px;font-size:12px;padding:8px 12px}
.matrix-stage-label{position:sticky;left:calc(var(--role-column) + 12px);display:inline-flex;align-items:baseline;max-width:100%;gap:9px}.matrix-stage-head th[scope="colgroup"]{text-align:left}.matrix-stage-label>small{font-size:10px;font-weight:400;color:#526d82;white-space:nowrap}
.matrix-domain-head th{height:66px;padding:8px 10px}
.role-matrix .matrix-corner,.role-matrix .matrix-role-head{position:sticky;left:0;min-width:var(--role-column);width:var(--role-column);text-align:left;background:#e8f1f7;z-index:2;padding:10px 14px;box-shadow:1px 0 #bfd3e1}
.role-matrix .matrix-corner{z-index:5;font-size:13px;font-weight:600}
.matrix-corner>span{display:block;margin-top:8px;font-size:10px;font-weight:400;color:#526d82}
.matrix-domain{display:flex;align-items:center;justify-content:space-between;gap:9px;min-height:44px;width:100%;text-align:left;font-size:12px;line-height:1.7;color:#294b68;border-radius:5px}
.matrix-domain svg{flex-shrink:0;color:#526d82}
.matrix-domain:hover{background:#f7fbff}
.matrix-role-head>button{display:flex;flex-direction:column;align-items:flex-start;gap:7px;text-align:left;font-size:12px;line-height:1.7;font-weight:500;width:100%;min-height:40px;color:#29465f}
.matrix-role-head>button:hover>span:first-child{text-decoration:underline;text-underline-offset:3px}
.role-matrix .matrix-band>th{position:static;text-align:left;padding:8px 14px;background:#d1e1ec;color:#29465f}
.matrix-band>th>span{position:sticky;left:14px;display:inline-flex;align-items:baseline;gap:12px;line-height:1.6}
.matrix-band small{font-size:10px;color:#526d82;font-weight:400}
.role-matrix .matrix-layer>th{font-size:13px;font-weight:600;background:#c8dbe8}
.role-matrix .matrix-group>th{font-size:12px;font-weight:600;background:#dce8f1}
.matrix-group>th>span{padding-left:10px}
.role-matrix .matrix-category>th{font-size:11px;font-weight:500;background:#e8f1f7}
.matrix-category>th>span{padding-left:22px}
.matrix-cell{display:flex;align-items:stretch;justify-content:center;gap:4px;width:100%;padding:3px;border:1px solid transparent;border-radius:8px;min-height:52px;font-variant-numeric:tabular-nums}
.matrix-cell:hover{background:#fff;border-color:#91adc3}
.matrix-cell:focus-visible,.matrix-domain:focus-visible,.matrix-role-head>button:focus-visible{outline:2px solid #385e7a;outline-offset:1px}
.matrix-relation{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:2px;border-radius:5px;min-width:0;padding:5px 2px}
.matrix-relation>span{font-size:10px;white-space:nowrap;font-weight:400}
.matrix-relation>b{font-size:15px;font-weight:600;line-height:1.4}
.matrix-relation[data-relation="lead"]{color:#365c79;background:#dceaf5}
.matrix-relation[data-relation="accountable"]{color:#615677;background:#e8e7f2}
.matrix-relation[data-relation="support"]{color:#426859;background:#e0eee8}
.matrix-relation.is-zero{color:#657986;background:#e9eff3}
.matrix-zero{color:#657986;font-size:12px}
.matrix-duty-summary{font-size:12px;color:#526d82;line-height:1.8;padding-bottom:12px;border-bottom:1px solid #c8d9e6}
.matrix-duty-summary>p{margin:0 0 8px}
.matrix-duty-summary .role-tags{margin:4px 0 10px}
.matrix-duty-groups .role-duty-description{padding:5px 0}
.matrix-duty-groups .role-duty-group h4{gap:8px}
.matrix-duty-groups .role-duty-group[data-relation="lead"] h4{color:#365c79}
.matrix-duty-groups .role-duty-group[data-relation="accountable"] h4{color:#615677}
.matrix-duty-groups .role-duty-group[data-relation="support"] h4{color:#426859}
@media(max-width:800px){.role-matrix{--role-column:175px}}
@media(max-width:550px){.role-matrix{--role-column:132px;--domain-column:170px}.role-matrix .matrix-role-head,.role-matrix .matrix-corner{padding:9px}.matrix-role-head>button{font-size:11px}.role-matrix .matrix-band>th{padding:8px 9px}.matrix-band>th>span{left:9px}.matrix-group>th>span{padding-left:5px}.matrix-category>th>span{padding-left:10px}}

.map-intro{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:19px 0 10px}.map-intro>p{font-size:13px;color:#405e77}.map-intro .search{width:270px;flex-shrink:0;min-height:39px}.domain-map{display:grid;gap:18px}.domain-band{display:grid;grid-template-columns:166px minmax(0,1fr);gap:20px;padding:18px 21px;border:1px solid #ffffffb3;border-radius:20px;background:#ddebf38c}.domain-stage h2{font-size:15px;color:#2a435e;font-weight:600}.domain-stage header p{font-size:11px;color:#4c6a81;margin-top:7px}.stage-domains{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.domain-flow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.flow-stage{background:#d9e7f07d;border-radius:20px;border:1px solid #eaf5fcbd;padding:18px 14px}.flow-stage>header{padding:0 4px 14px;min-height:85px}.flow-stage .stage-domains{grid-template-columns:1fr}.domain-tile{padding:12px;text-align:left;border-radius:12px;min-height:70px;background:#f6fbffc2;border:1px solid #ffffffc9;display:flex;flex-direction:column;justify-content:space-between;gap:9px;transition:background .18s,box-shadow .18s}.domain-tile b{font-size:12px;font-weight:500;color:#28445f}.domain-tile>span{font-size:10px;color:#4b6981;display:flex;align-items:center;gap:5px}.domain-tile i{font-style:normal}.domain-tile svg{margin-left:auto}.domain-tile:hover{background:#fff;box-shadow:0 6px 16px #38567517}.domain-tile.selected{background:#233850;border-color:#233850}.domain-tile.selected b,.domain-tile.selected>span{color:#f2f8ff}
.detail-drawer .modal-header{align-items:flex-start;padding:24px 28px 20px;gap:16px}.detail-drawer .modal-header>div{min-width:0}.detail-drawer .modal-header h2{font-size:24px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}.detail-drawer .modal-subtitle{margin:6px 0 0;color:#526d82;font-family:inherit;font-size:13px;font-weight:400;line-height:1.6;overflow-wrap:anywhere}.detail-drawer .modal-header>.icon-btn{flex-shrink:0;margin-top:2px}.detail-drawer .modal-body{padding-top:18px}.role-detail .role-group-label{display:grid;gap:5px;margin:0 0 24px;padding:0 0 18px;border-bottom:1px solid #cad9e3}.role-detail .role-classification{display:flex;flex-wrap:wrap;gap:5px 8px;align-items:baseline;font-size:12px;line-height:1.7;color:#36556d}.role-detail .role-path-separator{color:#7a8f9f}.role-detail .role-group-label>span{font-size:11px;color:#526d82}.detail-drawer .detail-section{margin-bottom:26px}.detail-drawer .detail-section>h3{font-size:13px;font-weight:600;letter-spacing:0;margin-bottom:9px}.detail-drawer .prose{font-size:14px;line-height:1.8}.role-detail .mapping-hint{font-size:12px;line-height:1.7;margin-bottom:12px}.role-detail .role-domain-map a{padding:14px 15px}.role-detail .role-domain-map b{font-size:16px}.role-detail .related-duties span{color:#3b536b;font-size:12px;line-height:1.7}.role-detail .related-duties code{color:#526d82;font-size:10px}.role-detail .related-duties small{color:#526d82;font-size:11px}.detail-drawer .modal-footer{padding:14px 28px}
.role-domain-duties{border:1px solid #cad9e3;border-radius:12px;overflow:hidden}.role-duty-domain+.role-duty-domain{border-top:1px solid #cad9e3}.role-duty-domain>summary{display:flex;align-items:center;gap:12px;padding:15px 16px;list-style:none;cursor:pointer;background:#eff6fb;color:#304f69}.role-duty-domain>summary::-webkit-details-marker{display:none}.role-duty-domain>summary:hover{background:#f8fcff}.role-domain-title{flex:1;min-width:0}.role-domain-title b{font-size:13px;font-weight:600;line-height:1.6;overflow-wrap:anywhere}.role-domain-title small{display:block;margin-top:4px;color:#526d82;font-size:11px;line-height:1.7}.role-domain-count{font-size:11px;white-space:nowrap;font-variant-numeric:tabular-nums}.role-duty-domain>summary>svg{flex-shrink:0;transition:transform .15s}.role-duty-domain[open]>summary>svg{transform:rotate(180deg)}.role-domain-items{border-top:1px solid #cad9e3;background:#f8fcffb3;padding:0 16px}.role-duty-row{display:flex;align-items:center;gap:12px;width:100%;padding:14px 0;text-align:left;border-bottom:1px solid #d8e3eb;color:#385a74}.role-duty-row:hover .role-duty-description{text-decoration:underline;text-underline-offset:3px}.role-duty-content{flex:1;min-width:0}.role-duty-description{display:block;font-size:13px;line-height:1.8;color:#304c65;overflow-wrap:anywhere}.role-duty-meta{display:flex;flex-wrap:wrap;gap:4px 12px;margin-top:6px;color:#526d82;font-size:11px;line-height:1.6}.role-duty-row>svg{flex-shrink:0}.role-domain-library{display:flex;justify-content:flex-end;align-items:center;gap:6px;min-height:42px;color:#476b86;font-size:11px}.role-domain-library:hover{text-decoration:underline;text-underline-offset:3px}.detail-drawer .detail-section:last-of-type{margin-bottom:0}
@media(max-width:550px){.role-duty-domain>summary{padding:13px 12px;gap:8px;flex-wrap:wrap}.role-domain-title{flex-basis:calc(100% - 22px)}.role-domain-title small{font-size:10px}.role-domain-count{order:1;flex-basis:100%;font-size:10px}.role-domain-items{padding:0 12px}.role-duty-row{padding:12px 0}}
@media(prefers-reduced-motion:reduce){.role-duty-domain>summary>svg{transition:none}}
@media(max-width:550px){.detail-drawer .modal-header{padding:22px 20px 18px;gap:12px}.detail-drawer .modal-header h2{font-size:21px}.detail-drawer .modal-subtitle{font-size:12px}.detail-drawer .modal-body{padding:16px 20px 20px}.role-detail .role-group-label{margin-bottom:20px;padding-bottom:16px}.detail-drawer .modal-footer{padding:12px 20px}.role-detail .role-domain-map a{padding:12px}}
.domain-drilldown{margin-top:30px;scroll-margin-top:20px}.domain-drilldown:focus{outline:none}.drilldown-heading{display:flex;align-items:center;gap:18px;justify-content:space-between;margin-bottom:14px}.drilldown-heading>div{flex:1}.drilldown-heading p{font-size:11px;color:#4d6a80;margin-bottom:5px}.drilldown-heading h2{font-size:20px;color:#243e58}.domain-role-details{margin-bottom:16px;background:#e4eff6c2;border:1px solid #fff;border-radius:13px;padding:12px 16px}.domain-role-details summary{cursor:pointer;font-size:12px;color:#3c5e77}.domain-role-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.domain-role-links a{display:flex;gap:12px;padding:7px 10px;background:#f7fcffb9;border-radius:8px;font-size:12px;color:#3c5c75}.domain-role-links a:hover{background:#fff}.domain-role-links b{font-weight:400;color:#4b7090}.stage-editor{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}.role-group-label{display:flex;gap:12px;align-items:center;font-size:13px;margin:12px 0;color:#244663}.role-group-label>span{font-size:11px;color:#526f85}.role-domain-map{display:grid;gap:0;border:1px solid #cadce9;border-radius:12px;overflow:hidden}.role-domain-map a{display:flex;align-items:center;gap:13px;padding:13px 15px;background:#ffffff6b;color:#305471;font-size:13px}.role-domain-map a+a{border-top:1px solid #ccdce7}.role-domain-map a:hover{background:#fff}.role-domain-map a>span{flex:1}.role-domain-map small{display:block;color:#516d85;font-size:11px;margin-top:4px}.role-domain-map b{font-size:17px;font-weight:500}.mapping-hint{font-size:12px;color:#536e84;margin:0 0 12px}.detail-back{margin-bottom:18px}
@media(min-width:1500px){.domain-tile b,.panorama-role b{font-size:13px}}
@media(max-width:1150px){.layer-roles{grid-template-columns:repeat(3,minmax(0,1fr))}.governance-layer>header{display:block}.governance-layer header>p{margin-top:6px}.domain-flow{grid-template-columns:repeat(2,minmax(0,1fr))}.flow-stage>header{min-height:70px}.domain-band{grid-template-columns:1fr}.domain-band header{display:flex;gap:18px;align-items:center}.domain-band header p{margin:0}.map-intro{align-items:flex-start}}
@media(max-width:800px){#app{margin:8px;border-radius:22px;min-height:calc(100vh - 16px)}.sidebar{width:64px;left:17px;top:17px;bottom:17px;padding:20px 8px;border-radius:17px}.brand{padding:0 4px 21px}.brand img{width:33px;height:33px}.brand>span,.nav-heading,.nav-item>span,.sidebar-bottom,.project-switch,.project-nav .nav-heading{display:none}.nav-item{justify-content:center;padding:12px 7px}.workspace{margin-left:80px}.topbar{padding:0 20px;height:56px}.save-state{display:none}main{padding:24px 20px}.explore-filters>.search{flex-basis:100%;max-width:none}.explore-select{flex:1;min-width:115px;max-width:none}.explore-tabs button{padding:7px 10px;font-size:12px}.explore-total{margin-left:0}.map-intro{display:block}.map-intro .search{width:100%;max-width:none;margin-top:12px}.drilldown-heading{flex-wrap:wrap}.stage-editor{grid-template-columns:1fr}}
@media(max-width:550px){#app{margin:6px}.sidebar{left:12px;top:12px;bottom:12px;width:52px;padding:15px 5px}.brand{padding:0 1px 16px}.brand img{width:32px;height:32px}.nav-item{padding:12px 4px}.workspace{margin-left:64px}.topbar{padding:0 13px}.breadcrumb{font-size:11px}.topbar-right{gap:0}.avatar{display:none}main{padding:22px 12px}.page-heading{align-items:flex-start;flex-direction:column;gap:13px}h1{font-size:25px}.page-heading p{font-size:12px}.heading-actions{width:100%}.explore-toolbar{gap:11px}.explore-toolbar>.btn{margin-left:auto}.explore-total{font-size:11px;line-height:1.7}.explore-tabs{padding:4px;gap:0;max-width:100%}.explore-tabs button{font-size:11px;padding:7px 8px;gap:5px}.explore-note{font-size:11px}.explore-filters{gap:10px}.explore-select{min-width:110px}.governance-layer{padding:16px 12px}.governance-layer h2{font-size:16px}.layer-roles{grid-template-columns:1fr}.panorama-role{min-height:80px}.panorama-role-title{min-height:0}.role-explore-toolbar .explore-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}.role-explore-toolbar .explore-tabs button{justify-content:center;min-height:38px;padding:7px 4px;font-size:10px;gap:4px}.role-explore-toolbar .explore-tabs button svg{width:12px;height:12px}.domain-flow{grid-template-columns:1fr}.flow-stage{padding:16px}.flow-stage>header{min-height:0;padding-bottom:13px}.domain-band{padding:17px 14px;gap:13px}.domain-band header{display:block}.domain-band header p{margin-top:6px}.stage-domains{grid-template-columns:1fr}.domain-tile{min-height:67px}.domain-tile b{font-size:13px}.domain-tile>span{font-size:11px}.drilldown-heading h2{font-size:18px}.drilldown-heading .inline-link{font-size:11px}.explore-context{padding:12px;gap:10px}.domain-drilldown .table-toolbar{flex-wrap:wrap}.domain-drilldown .table-toolbar .search{flex-basis:100%}.domain-drilldown .table-toolbar select{max-width:none}.modal.drawer{width:calc(100vw - 8px)}.role-domain-map a{padding:11px}.workspace-footer{padding:12px}}
@media(prefers-reduced-transparency:reduce){.sidebar,.modal{backdrop-filter:none;background:#f1f7fb}#app{background:#e5eff5}}
@media(prefers-reduced-motion:reduce){.panorama-role,.domain-tile,.explore-tabs button{transition:none}}
/* The in-app side panel also uses the intermediate width, not only phone size. */
@media(min-width:551px) and (max-width:800px){.layer-roles{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Shared functional context and duty details, including project snapshots. */
.domain-path{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px;font-size:13px;line-height:1.7;min-width:0;overflow-wrap:anywhere}.domain-path-stage{color:#526d82;font-size:12px}.domain-path-separator{color:#7a8f9f}.domain-path b{color:#29465f;font-size:13px;font-weight:600}.duty-context{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px;margin-bottom:18px}.duty-context .domain-path{flex:1;min-width:180px}.duty-context .badge{flex-shrink:0}.duty-detail .duty-statement{font-size:21px;font-weight:600;line-height:1.6;letter-spacing:0;color:#243e57;margin-bottom:28px}.detail-drawer .detail-back{font-size:12px;margin-bottom:22px}.detail-drawer .example-box{background:#dce9f280;border-left:2px solid #91aabe;padding:14px 16px;border-radius:0 10px 10px 0}.detail-drawer .example-box .prose{font-size:13px;line-height:1.8;color:#456078}.detail-drawer .detail-grid{gap:20px}.detail-drawer .reference-lines{border-color:#c6d8e5;border-radius:12px;padding:8px 16px;background:#f5faff66}.detail-drawer .reference-lines>div{gap:16px;padding:10px 0}.detail-drawer .reference-lines>div+div{border-top:1px solid #d4e1ea}.detail-drawer .reference-lines>div>span{font-size:12px;color:#526d82;width:60px;line-height:2}.detail-drawer .role-chip{font-size:12px;line-height:1.6;padding:4px 8px;color:#335571;background:#dce9f2;border-radius:6px}.detail-drawer .role-chip:hover{background:#c8dce9}.detail-drawer .source-strip{font-size:11px;line-height:1.7;color:#526d82;background:#dce8f080;border-radius:10px;padding:12px 14px;gap:10px}.detail-drawer .source-strip .btn{color:#365c7a;font-size:12px;min-height:32px}.detail-drawer .evidence-card{border-color:#c6d8e5;background:#f1f7fb;border-radius:10px}.detail-drawer .evidence-card h4{color:#2d4a63;line-height:1.6}.detail-drawer .evidence-card small,.detail-drawer .source-boundary,.detail-drawer .internal-source summary{color:#526d82;font-size:12px}.detail-drawer .evidence-card .prose{font-size:13px}.detail-drawer .evidence-card a{color:#365c7a;font-size:12px}.detail-drawer .internal-source{border-color:#bfd2df}.detail-drawer .definition-collapse>summary{color:#42617a;font-size:13px;line-height:1.7}.detail-drawer .definition-collapse[open]{padding-bottom:0}.detail-drawer .detail-kicker{color:#526d82}.row-kicker span{display:block}
@media(max-width:550px){.duty-detail .duty-statement{font-size:19px;line-height:1.7}.duty-context{align-items:flex-start;flex-direction:column;gap:8px}.detail-drawer .detail-grid{gap:0}.detail-drawer .reference-lines{padding:6px 12px}.detail-drawer .reference-lines>div{gap:10px}.detail-drawer .source-strip>span{flex-basis:calc(100% - 30px)}.domain-path{gap:3px 6px}}

/* Staffing tags describe role arrangements without changing duty adoption. */
.role-tags{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin-top:7px;line-height:1.4}.role-tag{display:inline-flex;align-items:center;min-height:21px;padding:2px 7px;border:1px solid transparent;border-radius:5px;font-size:10px;font-weight:500;white-space:nowrap}.role-tag.on-demand{color:#716043;background:#ece8dc;border-color:#d9d0bb}.role-detail .role-group-label .role-tags{margin-top:6px}.role-detail .role-tag{font-size:11px;min-height:24px}.role-matrix .role-tags{margin-top:0}.domain-role-entry .role-tags{margin-top:6px;gap:4px}.domain-role-entry .role-tag{font-size:10px;padding:2px 5px}.staffing-editor{min-width:0;padding:0;margin:4px 0 20px;border:0}.staffing-editor legend{font-size:13px;font-weight:600;color:#36556d;margin-bottom:10px}.staffing-option{display:inline-flex;align-items:center;gap:9px;min-height:36px;cursor:pointer;font-size:13px;color:#2c4a63}.staffing-option input{margin:0;accent-color:#385e7a}
@media(max-width:550px){.role-matrix .role-tags{margin-top:5px}.role-tag{font-size:10px}}

/* Shared merge guidance keeps the four role proposals readable in the drawer. */
.role-tag.can-merge{color:#365976;background:#dae8f3;border-color:#bfd3e2}
.role-tag.existing-position{color:#3b625e;background:#e1ece8;border-color:#c3d8d0}
.role-tag.new-position{color:#385573;background:#dce5f3;border-color:#becde1}
.role-tag.can-share-position{color:#565d7c;background:#e7e9f2;border-color:#ced2e2}
.staffing-options{display:flex;flex-wrap:wrap;gap:12px 28px}
.merge-plan-fields[hidden]{display:none}
.merge-guidance{margin-top:18px;padding:18px 20px;background:#f4f9fc;border:1px solid #c6d8e5;border-radius:12px}
.merge-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:12px}
.merge-heading h4{font-size:13px;font-weight:400;color:#526d82;line-height:1.7;margin:0}
.merge-heading h4 b{color:#29465f;font-weight:600;font-size:15px}
.merge-heading .btn{flex-shrink:0;font-size:11px;min-height:32px}
.merge-members{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin-bottom:20px}
.merge-member.btn{font-size:12px;line-height:1.7;min-height:30px;padding:3px 7px;border:0;border-radius:5px;box-shadow:none;background:#e2edf5;color:#365976;white-space:normal;text-align:left;display:inline-block;overflow-wrap:anywhere}
.merge-member.btn:hover{background:#cbdfea}
.merge-scope{font-size:11px;color:#476780}
.merge-plus{font-size:12px;color:#526d82;padding:0 2px}
.merge-guidance dl{margin:0}
.merge-guidance dl>div+div{margin-top:16px}
.merge-guidance dt{font-size:12px;font-weight:600;color:#36556d;margin-bottom:6px}
.merge-guidance dd{margin:0}
.merge-guidance dd .prose{font-size:13px;line-height:1.85;margin:0}
@media(max-width:550px){.merge-guidance{padding:14px}.merge-heading{align-items:flex-start}.merge-heading h4 b{display:block}.merge-members{gap:5px 3px}}

/* Within a role, separate each participation type before listing its duties. */
.role-duty-group{padding:18px 0}
.role-duty-group+.role-duty-group{border-top:1px solid #d8e3eb}
.role-duty-group h4{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:600;color:#29465f;line-height:1.7;margin:0 0 8px}
.role-duty-group h4>span{font-size:11px;font-weight:400;color:#526d82}
.role-duty-bullets{list-style:disc;margin:0;padding:0 0 0 18px}
.role-duty-bullets>li{list-style:disc;padding-left:2px;color:#476b86}
.role-duty-bullets>li::marker{font-size:10px}
.role-duty-bullets .role-duty-row{padding:7px 0;border:0;gap:14px;min-height:36px}
.role-duty-bullets .role-duty-description{flex:1;min-width:0}
.role-duty-empty{font-size:12px;line-height:1.7;color:#526d82;margin:0}
.role-duty-group:has(.role-duty-empty){padding:14px 0}
.role-domain-items>.role-domain-library{border-top:1px solid #d8e3eb}

/* Functional map stays in place; detail browsing lives in the right drawer. */
.function-map{display:grid;gap:14px;margin-top:24px}
.function-map-heading{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-bottom:1px}
.function-map-heading h2{font-size:17px;font-weight:600;line-height:1.5;color:#29465f}
.function-map-heading p{font-size:12px;color:#526d82;flex:1}
.function-stage{min-width:0;background:#ddeaf3;border:1px solid #c3d5e2;border-radius:14px;padding:14px}
.function-stage.is-focused{border-color:#7898b1;background:#d5e5f0}
.function-stage>header{min-width:0}
.function-stage>header>button{text-align:left;display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px;width:100%;min-height:28px;color:#29465f}
.function-stage>header>button:hover h3{text-decoration:underline;text-underline-offset:4px}
.function-stage h3{font-size:14px;font-weight:600;line-height:1.7;margin:0}
.function-stage>header>button>span{font-size:10px;color:#526d82;white-space:nowrap}
.function-stage>header p{font-size:11px;line-height:1.8;color:#526d82;margin:3px 0 0}
.function-band{display:grid;grid-template-columns:150px minmax(0,1fr);gap:18px;align-items:center;background:#e4eef5}
.function-domains{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;min-width:0}
.function-domain{display:flex;flex-direction:column;justify-content:center;gap:4px;min-width:0;min-height:64px;padding:8px 11px;text-align:left;border:1px solid #fff;border-radius:8px;background:#f6fbffb3;color:#2d4c65;transition:background .16s,border-color .16s}
.function-domain-title{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%}
.function-domain-title b{font-size:12px;font-weight:500;line-height:1.6;overflow-wrap:anywhere}
.function-domain-title svg{flex-shrink:0;color:#617f94}
.function-layer-counts{display:flex;align-items:center;flex-wrap:wrap;gap:3px 12px;font-size:10px;line-height:1.6;color:#526d82;font-variant-numeric:tabular-nums}
.function-layer-counts>span{white-space:nowrap}
.function-layer-counts b{font-weight:500;color:#314f68}
.function-layer-bar{display:flex;gap:2px;width:100%;height:3px;overflow:hidden;background:#d4e0e9}
.function-layer-bar i{height:100%;flex-basis:0;background:#647d91}
.function-layer-bar [data-layer="decision"]{background:#355471}
.function-layer-bar [data-layer="management"]{background:#6b8eaa}
.function-layer-bar [data-layer="execution"]{background:#acc3d4}
.function-domain.no-match{background:#eaf2f7;border-color:#d0dfe9}
.function-domain:hover{background:#f9fdff;border-color:#96b4ca}
.function-domain.is-selected{background:#233850;border-color:#233850;color:#f7fbff}
.function-domain.is-selected .function-layer-counts,.function-domain.is-selected .function-layer-counts b,.function-domain.is-selected svg{color:#dce9f4}
.function-domain.is-selected .function-layer-bar{background:#536e84}
.function-domain.is-selected .function-layer-bar [data-layer="decision"]{background:#dceaf6}
.function-domain.is-selected .function-layer-bar [data-layer="management"]{background:#a3bfd6}
.function-domain.is-selected .function-layer-bar [data-layer="execution"]{background:#7497b2}
.function-chain{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.function-step{position:relative;display:flex;flex-direction:column}
.function-step>header{min-height:64px;padding-bottom:12px}
.function-step .function-domains{grid-template-columns:1fr;align-content:start}
.function-step:not(:last-child)::after{content:'';position:absolute;right:-11px;top:27px;width:6px;height:6px;border-top:1px solid #678298;border-right:1px solid #678298;transform:rotate(45deg)}
.modal.domain-drawer{width:min(780px,calc(100vw - 24px))}
.detail-drawer .modal-header .detail-back{display:inline-flex;align-items:center;gap:6px;font-size:12px;line-height:1.7;text-align:left;min-height:28px;margin:0 0 10px;white-space:normal}
.domain-switcher{display:flex;align-items:center;gap:18px;font-size:12px;color:#526d82;margin-bottom:18px}
.domain-switcher>span{flex-shrink:0}
.domain-switcher select{flex:1;min-width:0;min-height:40px;border:1px solid #c6d8e5;border-radius:9px;padding:8px 12px;background:#f8fcff;color:#29465f;font-size:13px}
.domain-role-detail{min-width:0}
.domain-detail-summary{display:flex;gap:18px;flex-wrap:wrap;font-size:12px;color:#526d82;padding-bottom:15px;border-bottom:1px solid #c8d9e6}
.domain-detail-filters{font-size:12px;line-height:1.7;color:#526d82;margin:12px 0 0}
.domain-layer-lane{display:grid;gap:12px;padding:20px 0}
.domain-layer-lane:last-child{padding-bottom:0}
.domain-layer-lane+.domain-layer-lane{border-top:1px solid #d2e0ea}
.domain-layer-lane>header h3{display:flex;align-items:baseline;gap:12px;font-size:16px;font-weight:600;color:#29465f;line-height:1.7;margin:0}
.domain-layer-lane>header h3>span{font-size:11px;font-weight:400;color:#526d82}
.domain-layer-lane>header p{font-size:11px;line-height:1.8;color:#526d82;margin:3px 0 0}
.domain-role-group{min-width:0}
.domain-role-group+.domain-role-group{margin-top:12px}
.domain-role-group>h4{display:flex;align-items:baseline;gap:10px;margin:0 0 12px;padding:8px 12px;border-radius:6px;background:#d7e5ee;color:#29465f;font-size:13px;font-weight:600;line-height:1.7}
.domain-role-group>h4>span,.domain-role-category>h5>span{font-size:11px;font-weight:400;color:#526d82}
.domain-role-categories{display:grid;gap:20px;padding-left:12px;border-left:1px solid #c3d6e3;margin-left:6px}
.domain-role-category{min-width:0}
.domain-role-category>h5{display:flex;align-items:baseline;gap:10px;margin:0 0 9px;color:#36556d;font-size:12px;font-weight:600;line-height:1.7}
@media(max-width:550px){.domain-role-categories{padding-left:8px;margin-left:3px}.domain-role-group>h4{padding:7px 10px}}
.domain-layer-members{display:grid;grid-template-columns:1fr;gap:9px;min-width:0;align-items:start}
.domain-layer-members .domain-role-entry{display:block;border-color:#cfdee8;border-radius:9px;min-width:0}
.domain-role-entry>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;list-style:none;cursor:pointer}
.domain-role-entry>summary::-webkit-details-marker{display:none}
.domain-role-entry>summary:hover,.domain-role-entry[open]>summary{background:#e9f2f8}
.domain-role-summary{min-width:0}
.domain-role-heading{display:flex;align-items:center;flex-wrap:wrap;gap:5px 10px}
.domain-role-heading .role-tags{margin:0}
.domain-layer-members .domain-role-entry b{font-size:13px;font-weight:600}
.domain-role-entry .domain-duty-count{flex-shrink:0;gap:4px}
.domain-role-entry .domain-duty-count svg{display:block;margin-left:6px;transition:transform .18s}
.domain-role-entry[open] .domain-duty-count svg{transform:rotate(180deg)}
.domain-role-duties{padding:0 16px;border-top:1px solid #cfdee8}
.domain-role-duties .role-duty-description{display:block;padding:5px 0;font-size:13px;line-height:1.85;color:#29465f;overflow-wrap:anywhere}
.domain-role-entry>summary:focus-visible{outline:2px solid #385e7a;outline-offset:-3px}
@media(max-width:550px){.domain-role-entry>summary{padding:12px;gap:8px;align-items:flex-start}.domain-role-duties{padding:0 12px}.domain-role-entry .domain-duty-count{padding-top:2px}.domain-role-entry .domain-duty-count svg{margin-left:2px}}
@media(prefers-reduced-motion:reduce){.domain-role-entry .domain-duty-count svg{transition:none}}
.domain-relation-line{display:flex;flex-wrap:wrap;gap:3px 8px;margin-top:7px;color:#526d82;font-size:10px;line-height:1.6}
.domain-layer-members .domain-layer-empty{grid-column:1/-1;padding:0}
@media(max-width:1150px){.function-chain{grid-template-columns:repeat(2,minmax(0,1fr))}.function-step:nth-child(2n)::after{display:none}.function-band{grid-template-columns:130px minmax(0,1fr);gap:14px}.function-band .function-domains{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.function-band{grid-template-columns:1fr;gap:12px}.function-band>header{display:flex;align-items:baseline;gap:12px}.function-band>header>button{width:auto;flex-shrink:0}.function-band>header p{margin:0}}
@media(max-width:550px){.function-map{gap:10px;margin-top:18px}.function-map-heading{gap:5px}.function-map-heading p{flex-basis:100%;font-size:11px}.function-chain{grid-template-columns:1fr;gap:10px}.function-step:not(:last-child)::after{display:none}.function-stage{padding:12px}.function-step>header{min-height:0;padding-bottom:12px}.function-band>header{display:block}.function-band>header p{margin-top:4px}.function-band .function-domains{grid-template-columns:1fr}.function-domain-title b{font-size:12px}.function-layer-counts{gap:3px 14px}.modal.domain-drawer{width:calc(100vw - 8px)}.domain-switcher{display:grid;gap:6px}.domain-switcher select{width:100%}.domain-layer-members{grid-template-columns:1fr}.role-duty-group{padding:15px 0}}
@media(prefers-reduced-motion:reduce){.function-domain{transition:none}}

/* Search and filters share one quiet toolbar across the reference catalog. */
.browse-tools{position:relative;margin:0 0 20px;min-width:0}
.browse-search-row{display:flex;align-items:center;gap:18px;margin-bottom:12px}
.browse-search-row>.search{flex:1;max-width:560px;min-width:0;min-height:46px;padding:0 14px;gap:11px;border:1px solid #b8cdda;border-radius:10px;background:#f4f9fccc;transition:border-color .15s,background .15s}
.search input{border:0!important;box-shadow:none!important;outline:none!important;min-width:0;width:100%;border-radius:0;padding:9px 0!important}
.search:focus-within{border-color:#3d627e;background:#fff;outline:2px solid #7392aa;outline-offset:2px}
.browse-filter-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.filter-menu{position:relative;min-width:0}
.filter-menu>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:36px;padding:7px 11px;list-style:none;cursor:pointer;border:1px solid #b7ccd9;border-radius:8px;background:#eaf3f8;color:#334f65;font-size:12px}
.filter-menu>summary::-webkit-details-marker{display:none}
.filter-menu>summary small{font-size:11px;color:#536e82}
.filter-menu>summary b{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;border-radius:4px;background:#36556e;color:#fff;font-size:10px;font-weight:500}
.filter-menu[open]>summary,.filter-menu>summary:hover{background:#f9fcff;border-color:#7996aa}
.filter-menu[open]>summary>svg{transform:rotate(180deg)}
.filter-panel{position:fixed;z-index:45;display:flex;flex-direction:column;width:300px;overflow:hidden;background:#f8fcff;border:1px solid #a8bfce;border-radius:12px;box-shadow:0 12px 28px #2f4b6126;padding:10px 0 0;color:#304e65}
.filter-option-search{display:flex;align-items:center;gap:8px;margin:0 10px 8px;padding:0 9px;border:1px solid #bbcdda;border-radius:7px;background:#fff;flex-shrink:0}
.filter-option-search input{border:0;background:transparent;min-width:0;width:100%;box-shadow:none;padding:8px 0;font-size:12px;color:#304e65}
.filter-option-search:focus-within{outline:2px solid #7392aa;outline-offset:1px}
.filter-options{overflow:auto;min-height:0;max-height:310px;padding:0 6px 7px}
.filter-option-group h4{font-size:11px;font-weight:600;color:#516d82;padding:10px 9px 4px;margin:0}
.filter-option-group label{display:flex;align-items:center;gap:10px;min-height:36px;padding:8px 9px;font-size:12px;line-height:1.6;border-radius:6px;cursor:pointer}
.filter-option-group label:hover{background:#e7f0f7}
.filter-option-group input,.association-list input{width:15px;height:15px;margin:0;accent-color:#355971;flex-shrink:0}
.filter-panel-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #cedce5;padding:8px 12px;background:#edf4f9;flex-shrink:0}
.filter-panel-footer .text-btn{padding:6px 0}
.filter-no-match{padding:15px;font-size:12px;color:#526d82}
.active-filters{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.active-filters button{display:flex;align-items:center;gap:7px;padding:5px 8px;background:#dce9f2;border-radius:5px;color:#34536c;font-size:11px;max-width:100%;text-align:left}
.active-filters button:hover{background:#ccdfeC}
.active-filters svg{flex-shrink:0}
mark{background:#eadfbf;color:#273e50;padding:0 1px;border-radius:2px}
.catalog-total{font-size:12px;color:#506b80;white-space:nowrap;margin-left:auto;font-variant-numeric:tabular-nums}
.catalog-panel{background:#f4f9fcc9;border:1px solid #c2d3df;border-radius:14px;overflow:hidden}
.catalog-head,.catalog-row{display:grid;grid-template-columns:minmax(0,1fr) 175px 76px;gap:22px;align-items:center;padding:14px 20px}
.catalog-head{background:#e4eff6;color:#4c697e;font-size:11px;font-weight:500}
.catalog-row{border-top:1px solid #d1dfe9;padding-top:17px;padding-bottom:17px}
.catalog-row:hover{background:#fbfdff}
.catalog-duty,.catalog-roles{text-align:left;min-width:0}
.catalog-domain{display:flex;align-items:center;flex-wrap:wrap;gap:7px;color:#526e83;font-size:11px;line-height:1.6;margin-bottom:6px}
.catalog-domain i{font-style:normal;color:#7c91a0}
.catalog-domain .badge{font-size:10px;margin-left:3px}
.catalog-duty strong{display:block;font-size:14px;line-height:1.8;font-weight:500;color:#28465f;overflow-wrap:anywhere}
.catalog-duty:hover strong{text-decoration:underline;text-underline-offset:3px}
.catalog-hit{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;line-height:1.7;color:#526d82;margin-top:8px}
.catalog-roles b{display:block;font-size:12px;font-weight:500;color:#34566f}
.catalog-roles>span{display:block;font-size:11px;line-height:1.7;color:#526e83;margin-top:5px;overflow-wrap:anywhere}
.catalog-actions{display:flex;gap:4px}
.catalog-actions .icon-btn{min-width:32px;width:32px;height:34px;border:0;background:transparent}
.catalog-actions .icon-btn:hover{background:#dce9f2}
.catalog-actions .quiet-danger:hover{color:#88463e;background:#f4e5df}
.catalog-panel .pagination{background:#edf4f9}
.catalog-undo{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 15px;margin-bottom:14px;background:#e4eee9;border:1px solid #b7cfc2;border-radius:8px;color:#3a5b4b;font-size:12px;line-height:1.6}
.reference-editor{width:min(860px,95vw)!important}
.duty-association{border-top:1px solid #c6d8e4;margin-top:26px;padding-top:22px}
.duty-association h3{display:flex;align-items:center;gap:12px;font-size:15px;color:#2a4962;margin-bottom:14px}
.duty-association h3 span{font-size:12px;font-weight:400;color:#526d82}
.association-tools{display:flex;gap:9px;margin-bottom:12px}
.association-tools input{flex:1;min-width:0}
.association-tools select{max-width:220px}
.association-tools input,.association-tools select{border:1px solid #baceda;background:#f8fcff;color:#304e65;border-radius:7px;padding:9px 11px;font-size:12px}
.association-list{max-height:380px;overflow:auto;border:1px solid #c5d6e2;border-radius:9px}
.association-list table{border-collapse:separate;border-spacing:0;width:100%;table-layout:fixed}
.association-list th{position:sticky;top:0;background:#e6f0f7;padding:11px 6px;font-size:11px;color:#3e5d75;font-weight:500;border-bottom:1px solid #c5d6e2;z-index:1}
.association-list th:first-child{text-align:left;width:calc(100% - 180px);padding-left:12px}
.association-list th:not(:first-child){width:60px}
.association-list td{padding:12px 6px;border-bottom:1px solid #d6e2eb;background:#f9fcff;text-align:center}
.association-list td:first-child{text-align:left;padding-left:12px}
.association-list td small{display:block;color:#567286;font-size:10px;margin-bottom:4px}
.association-list td span{display:block;color:#2f4e66;font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.association-empty{font-size:12px;color:#526d82;padding:18px;text-align:center}
[hidden]{display:none!important}
@media(max-width:800px){.catalog-head,.catalog-row{grid-template-columns:minmax(0,1fr) 120px 66px;gap:14px;padding-left:14px;padding-right:14px}.catalog-duty strong{font-size:13px}.browse-search-row{flex-wrap:wrap;gap:10px}.browse-search-row>.search{max-width:none;flex-basis:100%}.catalog-total{margin-left:0}.catalog-head{font-size:11px}}
@media(max-width:550px){.browse-search-row>.search{min-height:44px;padding:0 10px}.browse-search-row>.search input{font-size:12px}.browse-filter-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.filter-menu>summary{font-size:11px;gap:5px;padding:8px}.filter-menu>summary small{font-size:10px}.browse-filter-row>.text-btn{justify-self:start;padding:5px 2px}.catalog-head{display:none}.catalog-row{grid-template-columns:minmax(0,1fr) auto;gap:9px;padding:15px 12px}.catalog-row:first-of-type{border-top:0}.catalog-duty{grid-column:1/-1}.catalog-domain{font-size:10px;gap:5px}.catalog-roles{display:flex;gap:8px;align-items:baseline}.catalog-roles>span{display:none}.catalog-actions{justify-self:end}.catalog-undo{align-items:flex-start;flex-direction:column}.association-tools{flex-wrap:wrap}.association-tools input,.association-tools select{width:100%;max-width:none;flex-basis:100%}.association-list th:first-child{width:calc(100% - 132px)}.association-list th:not(:first-child){width:44px;font-size:10px;padding:10px 2px}.association-list td{padding:10px 3px}.association-list td span{font-size:11px}.reference-editor{width:calc(100vw - 8px)!important}}
@media(prefers-reduced-motion:reduce){.browse-search-row>.search{transition:none}}
.organization-layout.outline-layout{display:block}.outline-layout .project-role-panel{display:none}.outline-layout .organization-outline{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:24px}.outline-layout .organization-outline>.org-outline-node{border-top:0;padding:4px 0}.outline-layout .organization-outline>.org-outline-node>.org-outline-heading{padding-bottom:14px;border-bottom:1px solid #c7d8e4;margin-bottom:10px}.outline-layout .organization-outline>.org-outline-node>.org-outline-heading b{font-size:15px}.project-reference-choice>input{width:calc(100% - 34px);margin:0 0 12px 34px}.graph-controls[hidden]{display:none}@media(max-width:900px){.outline-layout .organization-outline{grid-template-columns:1fr}}
/* Project governance, duty allocation and real-world fulfillment share one workspace. */
.project-work-tabs{display:flex;align-items:center;gap:5px;padding:5px;background:#e4eef5b3;border:1px solid #f8fcff;border-radius:12px;width:fit-content;max-width:100%;margin:0 0 22px}
.project-work-tabs a{display:flex;align-items:center;gap:8px;padding:10px 15px;border-radius:8px;font-size:13px;color:#47647b;text-decoration:none;white-space:nowrap}
.project-work-tabs a:hover{background:#eff7fc}.project-work-tabs a.active{background:#fafdff;color:#243c54;font-weight:600;box-shadow:0 3px 9px #314c6010}
.structure-toolbar{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:0 0 20px;min-width:0}
.scope-filter{display:flex;align-items:center;gap:10px;min-width:0;font-size:12px;color:#47647b}
.scope-filter select{min-height:38px;min-width:180px;max-width:100%;padding:8px 30px 8px 12px;border:1px solid #bdcfdd;background:#f4faff;border-radius:8px;color:#2f4b63;font:inherit}
.structure-mode{display:flex;align-items:center;gap:7px;font-size:12px;color:#4e687c}
.structure-toolbar-actions{margin-left:auto;display:flex;flex-wrap:wrap;gap:8px}
.architecture-view-bar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 0 15px;color:#4f6c80;font-size:12px}
.architecture-view-bar .segment{padding:4px;border-radius:9px;background:#dce8f0}
.architecture-view-bar .segment button{padding:7px 12px;border-radius:6px;font-size:12px;color:#48667d}.architecture-view-bar .segment .active{background:#f7fbff;color:#233e56}
.scope-board{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}
.scope-column{min-width:0;border:1px solid #f8fcff;border-radius:16px;background:#eff6fbb3;overflow:hidden}
.scope-column:only-child,.scope-column.scope-shared{grid-column:1/-1}
.scope-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:20px 22px;background:#e0edf5a8;border-bottom:1px solid #c6d8e5}
.scope-heading h2{font-size:18px;font-weight:600;margin:0;color:#233d55;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.scope-heading p{font-size:12px;color:#506c81;margin:6px 0 0}.scope-heading>div:last-child{display:flex;flex-shrink:0;gap:4px}
.scope-template{font-size:10px;color:#4f6b80;background:#edf6fc;border:1px solid #bacfdc;border-radius:4px;padding:2px 6px;font-weight:400}
.scope-content{padding:8px 22px 20px}.scope-column>footer{padding:14px 22px;background:#e6f0f7;border-top:1px solid #cbdce6}
.institution-branch{padding:16px 0 4px;min-width:0}.institution-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.institution-title{display:flex;align-items:flex-start;gap:10px;text-align:left;min-width:0;padding:4px 0;color:#29465f}.institution-title>svg{flex-shrink:0;margin-top:4px}.institution-title span{min-width:0}.institution-title b{display:block;font-size:14px;line-height:1.7;font-weight:600;overflow-wrap:anywhere}.institution-title small{display:block;font-size:11px;line-height:1.8;color:#557085}.institution-title:hover b{text-decoration:underline;text-underline-offset:4px}
.institution-actions{display:flex;gap:2px;flex-shrink:0}.institution-actions .icon-btn,.scope-heading .icon-btn{background:transparent;border:0;min-width:28px;width:28px;height:30px;color:#526e84}.institution-actions .icon-btn:hover,.scope-heading .icon-btn:hover{background:#d5e5ef;color:#284963}
.institution-children{border-left:1px solid #b7ccda;margin-left:8px;padding-left:18px}.institution-children>.institution-branch+.institution-branch{border-top:1px solid #d1e0e9;margin-top:12px}
.institution-roles{display:grid;gap:5px;margin-bottom:12px}.structure-role-row{display:flex;align-items:center;min-width:0;background:#f7fbffb3;border:1px solid #d0e0ea;border-radius:8px;padding:0 5px 0 11px}
.structure-role-row>button:first-child{display:flex;align-items:center;gap:8px;text-align:left;min-width:0;flex:1;padding:10px 0;color:#304f67}.structure-role-row>button:first-child>span{font-size:12px;line-height:1.7;overflow-wrap:anywhere;flex:1}.structure-role-row small{color:#577387;font-size:10px;white-space:nowrap}.structure-role-row>button:first-child>svg{flex-shrink:0}.structure-role-row .icon-btn{border:0;background:transparent;width:28px;min-width:28px;height:30px;color:#5a768a}.structure-role-row:hover{background:#fcfeff;border-color:#9eb8cc}
.scope-direct-roles h3{font-size:12px;font-weight:500;color:#526c7f;margin:18px 0 10px}.scope-direct-roles .structure-role-row{margin-top:5px}.scope-shared .scope-content{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.scope-column .empty{padding:32px 12px}.scope-column .empty-icon{display:none}.scope-column .empty h3{font-size:15px}.scope-column .empty p{font-size:12px}.scope-column .empty .btn{margin:6px 4px 0}
.structure-editor{width:min(780px,95vw)!important}.structure-editor .form-grid{align-items:start}.structure-editor .form-note{margin:12px 0 22px}.structure-editor .field>input,.structure-editor .field>textarea,.structure-editor .field>select{background:#f8fcff}.structure-editor .drawer-actions,.scope-management-actions{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0 20px}.scope-management-actions{border-top:1px solid #c6d7e2;padding-top:20px}
.management-mode-options{display:grid;gap:12px}.management-mode-options label{display:flex;gap:12px;padding:20px;border:1px solid #bfD2df;border-radius:12px;background:#f4faff;cursor:pointer}.management-mode-options label:has(input:checked){border-color:#536f88;background:#e3eef6}.management-mode-options input{accent-color:#29465f;margin-top:5px}.management-mode-options b{display:block;color:#2c4961;font-size:15px}.management-mode-options small{display:block;font-size:12px;line-height:1.8;color:#506c80;margin-top:8px}
.actual-org-list{display:grid;gap:10px}.actual-org-list>button{display:flex;align-items:center;justify-content:space-between;padding:18px;text-align:left;background:#f5fbff;border:1px solid #c4d7e4;border-radius:10px;color:#2b4860}.actual-org-list b,.actual-org-list small{display:block}.actual-org-list small{margin-top:6px;font-size:12px;color:#526e83}
.fulfillment-panel{overflow:hidden}.fulfillment-tools{display:flex;align-items:center;gap:20px;justify-content:space-between;padding:18px 20px;border-bottom:1px solid #c9dce8}.fulfillment-tools .search{width:440px;max-width:100%;min-height:42px;border:1px solid #bacfdd;border-radius:9px;background:#f5faff;padding:0 12px;flex:1}.fulfillment-tools>span{font-size:12px;color:#506c80;flex-shrink:0}.fulfillment-head{display:grid;grid-template-columns:minmax(140px,29%) minmax(0,1fr) 92px;gap:18px;padding:14px 20px;font-size:11px;background:#e2eef6;color:#48677f}.fulfillment-subject{display:grid;grid-template-columns:minmax(140px,29%) minmax(0,1fr) 92px;align-items:center;gap:18px;padding:18px 20px;border-top:1px solid #cbdde8}.fulfillment-subject:hover{background:#f5fbff70}.fulfillment-subject-title{min-width:0}.fulfillment-subject-title button{font-size:13px;font-weight:600;line-height:1.8;color:#29485f;text-align:left}.fulfillment-subject-title button:hover{text-decoration:underline;text-underline-offset:4px}.fulfillment-subject-title small{display:block;font-size:11px;color:#547084;margin-top:5px}.fulfillment-records{min-width:0}.fulfillment-record-columns{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) 18px;gap:14px}.fulfillment-record{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) 18px;gap:14px;text-align:left;width:100%;padding:7px 0;color:#35556c}.fulfillment-record+ .fulfillment-record{border-top:1px solid #ccdce6;margin-top:6px}.fulfillment-record b{font-size:12px;font-weight:500;display:block;line-height:1.8;overflow-wrap:anywhere}.fulfillment-record span,.fulfillment-record small{display:block;font-size:11px;color:#577286;line-height:1.8;margin-top:3px}.fulfillment-record .fulfillment-status{display:inline-block;font-size:10px;border-radius:4px;padding:1px 6px;background:#e6edf2;color:#546b7d}.fulfillment-record .fulfillment-status.confirmed{background:#e1eee9;color:#42675d}.fulfillment-record .fulfillment-status.ended{background:#ebe7e3;color:#6e625c}.fulfillment-unassigned{font-size:12px;color:#637b8d}.fulfillment-subject>.btn{justify-self:end;white-space:nowrap}
@media(max-width:1150px){.scope-board{grid-template-columns:1fr}.scope-column.scope-shared{grid-column:auto}.structure-mode{font-size:11px}.fulfillment-subject{grid-template-columns:minmax(140px,27%) minmax(0,1fr);gap:12px}.fulfillment-subject>.btn{grid-column:2}.fulfillment-head{grid-template-columns:minmax(140px,27%) minmax(0,1fr);gap:12px}.fulfillment-head>span:last-child{display:none}}
@media(max-width:700px){.project-work-tabs{width:100%;gap:2px;padding:4px}.project-work-tabs a{justify-content:center;flex:1;font-size:11px;padding:9px 6px;gap:5px}.project-work-tabs a svg{display:none}.structure-toolbar{gap:10px}.scope-filter{width:100%;justify-content:space-between}.scope-filter select{flex:1;min-width:0;max-width:230px}.structure-toolbar-actions{margin-left:0}.structure-mode{width:100%}.architecture-view-bar{align-items:flex-start;flex-direction:column;gap:10px}.scope-heading{padding:16px}.scope-content{padding:6px 14px 16px}.scope-shared .scope-content{grid-template-columns:1fr;gap:4px}.institution-children{padding-left:10px;margin-left:4px}.institution-title b{font-size:13px}.institution-actions{gap:0}.institution-actions .icon-btn{width:26px;min-width:26px}.institution-title{gap:7px}.structure-role-row{padding-left:8px}.structure-role-row small{font-size:10px}.structure-role-row>button:first-child{gap:5px}.structure-role-row>button:first-child>svg{display:none}.fulfillment-tools{padding:14px;flex-wrap:wrap;gap:9px}.fulfillment-tools .search{flex-basis:100%}.fulfillment-head{display:none}.fulfillment-subject{grid-template-columns:minmax(0,1fr) auto;padding:16px 14px;gap:10px}.fulfillment-subject-title{grid-column:1}.fulfillment-records{grid-column:1/-1;grid-row:2}.fulfillment-subject>.btn{grid-column:2;grid-row:1;font-size:11px}.fulfillment-record{grid-template-columns:minmax(0,1fr) minmax(0,.8fr) 18px;gap:10px}.structure-editor{width:calc(100vw - 8px)!important}.scope-column>footer{padding:12px 14px}}

/* Reuse is one editable workspace, shared by institutions and project roles. */
.governance-root{display:flex;align-items:center;gap:10px;padding:17px 20px;margin:0 0 20px;background:#f4faffb3;border:1px solid #fff;border-radius:14px;color:#2b4862;flex-wrap:wrap}
.governance-root b{font-size:15px}.governance-root>span{font-size:12px;color:#526d82}.governance-root>.btn{margin-left:auto}
.modal.drawer.reuse-editor{width:min(920px,calc(100vw - 28px))}
.reuse-editor .modal-body{padding:24px 28px}.reuse-editor .form-grid{gap:16px}.reuse-editor .field{margin-bottom:16px}
.reuse-description{border-bottom:1px solid #c6d8e4;margin:4px 0 24px;padding-bottom:16px}
.reuse-description>summary{font-size:13px;color:#365673;cursor:pointer;padding:6px 0}
.reuse-description[open]>summary{margin-bottom:14px}
.reuse-workspace{min-width:0}.reuse-workspace [hidden]{display:none!important}
.reuse-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;flex-wrap:wrap}
.reuse-section-title h3{margin:0;font-size:16px;color:#29445d}.reuse-section-title>span{font-size:12px;color:#526d82}
.reuse-source-section{padding-bottom:24px;margin-bottom:26px;border-bottom:1px solid #c6d8e4}
.reuse-source-tabs,.reuse-duty-tabs{display:flex;gap:5px;align-items:center;margin:0 0 14px;border-bottom:1px solid #c6d8e4}
.reuse-source-tabs button,.reuse-duty-tabs button{padding:10px 15px;font-size:13px;color:#526d82;border-bottom:2px solid transparent;border-radius:6px 6px 0 0;min-height:40px}
.reuse-source-tabs button.active,.reuse-duty-tabs button.active{color:#203c57;background:#f4faffbd;border-bottom-color:#365d81;font-weight:600}
.reuse-source-tabs button:hover,.reuse-duty-tabs button:hover{background:#f4faff}.reuse-duty-tabs b{font-size:12px;margin-left:5px;font-variant-numeric:tabular-nums}
.reuse-search{display:flex;align-items:center;gap:10px;border:1px solid #b7ccdb;border-radius:10px;padding:0 12px;min-height:44px;background:#f8fcff;color:#526d82;min-width:0}
.reuse-search:focus-within{outline:2px solid #365d81;outline-offset:2px}
.reuse-search input{flex:1;min-width:0;width:100%;background:transparent;border:0;box-shadow:none;outline:none;padding:12px 0;font:inherit;font-size:13px;color:#29445d;border-radius:0}
.reuse-search input:focus{outline:none;border:0;box-shadow:none}.reuse-search input::placeholder{color:#586f81;opacity:1}
[data-reuse-sources]{display:grid;grid-template-columns:1fr 1fr;gap:0 24px;margin-top:10px}
.reuse-source-row{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:14px 0;border-bottom:1px solid #c6d8e4;min-width:0}
.reuse-source-row>div{min-width:0}.reuse-source-row b{display:block;font-size:13px;line-height:1.6;color:#29445d;overflow-wrap:anywhere}
.reuse-source-row p{font-size:12px;color:#526d82;line-height:1.7;margin:5px 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.reuse-source-row small{font-size:11px;color:#526d82}.reuse-source-row .btn{flex-shrink:0;min-height:36px}
.reuse-source-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.reuse-source-chips:empty{display:none}
.reuse-source-chips>span{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#365673;background:#dbe8f1;padding:4px 8px;border-radius:5px}
.reuse-source-chips button{display:flex;align-items:center;justify-content:center;min-width:28px;min-height:28px;border-radius:5px}.reuse-source-chips button:hover{background:#c2d7e7}
.reuse-discovery-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,220px);gap:12px}
.reuse-discovery-tools select{min-width:0;max-width:100%;border:1px solid #b7ccdb;background:#f8fcff;color:#365673;padding:10px;border-radius:10px;font-size:12px}
.reuse-results-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0 4px;font-size:12px;color:#526d82}
.reuse-results-summary button{min-height:36px}.reuse-candidate{padding:16px 0;border-bottom:1px solid #c6d8e4;min-width:0}
.reuse-candidate>label{display:flex;align-items:flex-start;gap:12px;cursor:pointer}.reuse-candidate input[type=checkbox]{flex-shrink:0;width:17px;height:17px;margin-top:3px;accent-color:#2c4967}
.reuse-candidate b,.duty-finder-title b{display:block;color:#29445d;font-size:13px;font-weight:500;line-height:1.8;overflow-wrap:anywhere}
.reuse-candidate small,.duty-finder-title small{display:block;color:#526d82;font-size:11px;margin-top:5px;line-height:1.6}
.reuse-candidate details{margin:10px 0 0 29px;font-size:12px;color:#4b667b}.reuse-candidate summary{cursor:pointer;padding:4px 0;width:fit-content}.reuse-candidate p{font-size:12px;color:#526d82;line-height:1.85;margin:10px 0;max-width:75ch}
.reuse-candidate .text-btn{min-height:36px}.reuse-candidate .drawer-actions{margin-top:10px}
.reuse-create-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:22px;font-size:12px;color:#526d82}
.reuse-more{grid-column:1/-1;display:block;width:100%;min-height:42px;margin-top:10px}.reuse-more:hover{background:#f4faff}
.reuse-empty{grid-column:1/-1;margin:20px 0;color:#526d82;font-size:13px;line-height:1.8}
.reuse-selected-item{border-bottom:1px solid #c6d8e4}.reuse-selected-item>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 0;cursor:pointer}.reuse-selected-item>summary::-webkit-details-marker{display:none}
.reuse-selected-item>summary b{font-size:13px;color:#29445d;font-weight:500;line-height:1.8;display:block;overflow-wrap:anywhere}.reuse-selected-item>summary small{font-size:11px;color:#526d82;display:block;margin-top:5px}.reuse-selected-item>summary svg{flex-shrink:0;color:#526d82}.reuse-selected-item[open]>summary svg{transform:rotate(180deg)}
.reuse-selected-body{padding:4px 0 20px}.reuse-selected-body>.text-btn{min-height:40px;margin-right:18px}.reuse-original{font-size:12px;line-height:1.8;color:#526d82;margin:0 0 18px;max-width:75ch}
.reuse-workspace button:disabled{cursor:default;opacity:.65}.reuse-workspace button:focus-visible,.reuse-description summary:focus-visible,.reuse-selected-item summary:focus-visible,.reuse-candidate summary:focus-visible{outline:2px solid #365d81;outline-offset:3px}
@media(max-width:680px){.modal.drawer.reuse-editor{width:100vw}.reuse-editor .modal-body{padding:20px}.reuse-editor .form-grid,.reuse-discovery-tools{grid-template-columns:1fr}[data-reuse-sources]{grid-template-columns:1fr}.reuse-source-tabs button,.reuse-duty-tabs button{padding:10px 12px}.reuse-section-title>span{font-size:11px}.reuse-selected-body>.text-btn{display:block;text-align:left;margin-right:0}.governance-root{padding:15px}.governance-root>.btn{margin-left:0}.reuse-create-row{flex-wrap:wrap}}
.reuse-selection-note{font-size:12px;line-height:1.8;color:#526d82;margin:12px 0 0}
.reuse-source-section>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none;min-height:36px}
.reuse-source-section>summary::-webkit-details-marker{display:none}.reuse-source-section>summary h3{font-size:15px;margin:0;color:#29445d}.reuse-source-section>summary>span{display:flex;align-items:center;gap:6px;font-size:12px;color:#526d82}
.reuse-source-section[open]>summary svg{transform:rotate(180deg)}.reuse-source-content{margin-top:14px}.reuse-source-section>summary:focus-visible{outline:2px solid #365d81;outline-offset:3px}

/* Explicit reuse entry points and a selective source picker share one saved selection. */
.reuse-entrypoints{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0 18px}
.reuse-entrypoints button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:8px 10px;border:1px solid #bdcfdd;border-radius:8px;background:#f7fbfe;color:#365772;font-size:12px}
.reuse-entrypoints button.active{background:#e0ecf4;border-color:#537694;color:#203c57;font-weight:600}
.reuse-entrypoints button:hover{background:#e8f2f8}.reuse-entrypoints b{font-variant-numeric:tabular-nums}
.reuse-source-actions{display:flex;flex-direction:column;align-items:stretch;gap:5px;flex-shrink:0}
.reuse-source-actions .text-btn{font-size:12px;min-height:32px}
.reuse-picker-heading{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:10px 0;color:#29445d;font-size:14px}
.reuse-picker-heading .text-btn{display:flex;gap:5px;align-items:center;font-size:12px;min-height:36px}
.reuse-picker-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:12px 0;border-bottom:1px solid #c6d8e4;position:sticky;top:0;z-index:1;background:#edf5fa}
.reuse-picker-actions .text-btn{font-size:12px;min-height:36px}.reuse-picker-actions .btn{margin-left:auto}
.reuse-source-section .reuse-selection-note,[data-reuse-discovery]>.reuse-selection-note{margin:0 0 14px}
.reuse-source-section .reuse-source-chips{padding-top:12px}
.reuse-candidate:has(input:disabled){opacity:.7}
