/* Semantic color, readable secondary text and three distinct surface levels. */
:root{--r-ink:#122733;--r-secondary:#526571;--r-canvas:#f1f5f7;--r-border:#c8d5dc;--r-blue:#315f91;--r-green:#24664c;--r-amber:#805a18;--r-red:#982c43}
.shell,.shell>main{background:var(--r-canvas)}
.panel,.workbench,.ws-register,.report-sheet{background:#fff;border-color:var(--r-border)}
.workbench-side,.flow-file-side{background:#e8eff3!important;border-color:#c3d3dc}
aside a.active{background:#e1edec;border-left:3px solid #24666b;font-weight:600}
aside a:hover:not(.active){background:#edf0ef}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #315f91;outline-offset:3px}
.map-switch .active,.seg-tabs .active,.audit-tabs .active,.content-tabs .active{font-weight:600;box-shadow:inset 0 -3px #24666b}
tbody tr:hover{background:#f0f5f8}tbody tr.is-selected{background:#e2eef2;box-shadow:inset 3px 0 #315f91}
.badge{padding:4px 7px;border-radius:4px;border:1px solid transparent;font-size:12px!important;line-height:1.3}
.badge.critical{background:#f9e9ed!important;color:#982c43;border-color:#e3b4bf}
.badge.high{background:#fff0e5!important;color:#964617;border-color:#e4c5ad}
.badge.medium{background:#faf2df!important;color:#7b5714;border-color:#dfce9e}
.badge.low,.badge.info{background:#eef3f7!important;color:#415a70;border-color:#ccd8e1}
.badge.healthy{background:#e7f3ec!important;color:#24664c;border-color:#bcd8c7}
.flow-dot1{background:#315f91}.flow-dot2{background:#805a18}.flow-dot3{background:#24664c}
.flow-s1{color:#315f91;background:#e8f0fa;border-color:#b8cee7}.flow-s2{color:#805a18;background:#faf2df;border-color:#dfce9e}.flow-s3{color:#24664c;background:#e7f3ec;border-color:#bcd8c7}
.flow-local,.flow-card-top,.flow-card p,.flow-card-foot,.flow-column-empty,.flow-bottom-links>span,.flow-source-history p,.flow-empty-scan,.flow-form-meta,.flow-review-list dt,.flow-file-side dt,.flow-scan-link small,.flow-finding-bridge>a small,.flow-reference,.flow-example-label{color:#526571!important}
.flow-example-label{font-size:11px!important;letter-spacing:.7px}
.flow-card-top,.flow-card p,.flow-card-foot,.flow-bottom-links>span,.flow-source-history p,.flow-form-meta,.flow-review-list dt,.flow-review-list dd,.flow-file-side dt,.flow-scan-link small{font-size:12px!important;line-height:1.6}
.flow-card-foot .overdue{color:#982c43;font-weight:600}
.flow-column{background:#e8eff3;border-color:#c5d4dd}
.flow-stepper .current{color:#315f91}.flow-stepper .current:last-child{color:#24664c}
.flow-page .btn:disabled,button:disabled{opacity:1!important;background:#edf0f2!important;border-color:#c9d1d6!important;color:#60717c!important;cursor:not-allowed}
.d-kicker,.d-source-sub,.d-source-detail small,.d-source-detail>span,.d-source-tile small,.d-plan-grid small,.d-evidence-cards small,.d-result-counter span,.d-limit,.d-side-rail small{color:#526571}
.d-plan-grid small,.d-source-detail small{font-size:12px}
.section-note,.review-note,.table-caption,.inline-provenance,.snapshot-label,.r-field-help{color:#526571!important}
.flow-card,.workspace{transition:border-color .15s,background .15s,box-shadow .15s}.workspace:hover,.flow-card:hover{transform:none}
.r-provenance{display:flex;align-items:center;justify-content:space-between;gap:18px;background:#e8eff3;border:1px solid #c5d3db;border-left:3px solid #315f91;padding:14px 18px;margin:0 0 22px;font-size:13px;line-height:1.6;color:#3c5669}.r-provenance span{color:#526571}
.r-inline-stats{display:flex;gap:24px;flex-wrap:wrap;padding:20px 0;border-block:1px solid #d8e2e7;margin:18px 0}.r-inline-stats>b{font-size:28px;font-weight:600;color:#122733}.r-inline-stats small{font-size:12px;display:block;color:#526571;margin-top:7px;font-weight:400}
.r-print-controls{display:flex;justify-content:space-between;margin-bottom:20px}.r-report{max-width:1050px}.r-report h2{margin:28px 0 12px}.r-report .eyebrow{margin-top:30px}.r-report td{vertical-align:top;font-size:13px}.r-report td small{display:block;font-size:12px;color:#526571;margin-top:6px}.r-report-footnote{border-top:1px solid #c9d7df;padding-top:18px;font-size:12px}.r-report fieldset{border:0}
.r-report-section{break-inside:auto}.r-report-section h2{break-after:avoid}
.r-empty{padding:26px;border:1px dashed #b7cbd5;background:#f1f6f8;text-align:center;color:#425e6e;line-height:1.7}.r-empty h3{font-size:17px;color:#1c3949}.r-empty p{font-size:14px;color:#526571}
.r-saved-views{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0 15px}.r-saved-views button{border:1px solid #beced7;background:white;color:#405c6b;padding:10px 14px;border-radius:4px;font-size:13px}.r-saved-views button.active{background:#e1edec;color:#164e52;border-color:#24666b;box-shadow:inset 0 -2px #24666b;font-weight:600}
.r-queue-extras{display:flex;gap:14px;align-items:center;flex-wrap:wrap;border-bottom:1px solid #cbd8df;margin-bottom:18px;padding-bottom:15px}.r-queue-extras .field{min-width:135px;margin:0;font-size:12px}.r-queue-extras select{padding:8px 10px}.r-queue-extras>span{font-size:12px;color:#526571;margin-left:auto}
.r-late,.r-waiting{display:block;font-size:12px;line-height:1.5;padding:6px 8px;margin-top:10px;border-left:2px solid #982c43;background:#fcf0f3;color:#982c43}.r-waiting{background:#faf2df;border-color:#805a18;color:#805a18}
.r-status-layers{display:grid;grid-template-columns:repeat(3,1fr);margin:20px 0;border-block:1px solid #d2dee4}.r-status-layers>div{padding:18px;border-right:1px solid #d2dee4}.r-status-layers>div:last-child{border:0}.r-status-layers small{display:block;color:#526571;font-size:12px;margin-bottom:8px}.r-status-layers b{font-size:15px;display:block}.r-status-layers span{font-size:12px;color:#526571;display:block;margin-top:8px}
.r-context-actions{display:flex;gap:10px;flex-wrap:wrap}.r-source-status{background:#edf3f6;border-left:3px solid #315f91;margin-top:22px;padding:17px;color:#314f60}.r-source-status p{margin:6px 0}.r-source-status small{font-size:12px;line-height:1.7;color:#526571}
.r-desk-hero{display:grid;grid-template-columns:1.3fr 1fr;gap:28px;background:#e6eef2;border:1px solid #bccfd8;padding:28px;margin:20px 0 24px;border-radius:6px}.r-desk-hero h2{font-size:26px;margin:14px 0}.r-desk-hero p{color:#526571;line-height:1.7;font-size:14px}.r-desk-stats{display:flex;gap:26px;margin-top:22px}.r-desk-stats a{font-size:13px}.r-desk-stats b{font-size:31px;display:block;margin-bottom:7px;color:#122733}.r-next-actions{display:flex;flex-direction:column;gap:10px}.r-next-actions a{padding:17px;background:#fff;border:1px solid #cbd8e0;font-size:12px;color:#315f91}.r-next-actions b{font-size:15px;color:#173747;margin-left:8px}.r-next-actions span{display:block;color:#526571;margin:8px 0 0 25px;font-size:12px}
.r-task-row{display:flex;justify-content:space-between;align-items:center;padding:15px 0;border-bottom:1px solid #d8e2e7;gap:15px}.r-task-row small{display:block;margin-top:8px;color:#526571}.r-boundary{padding:16px 0;border-bottom:1px solid #d5e0e5}.r-boundary p{color:#526571;font-size:14px;line-height:1.7}.r-role-control{display:flex;gap:20px;align-items:center}.r-role-control .field{margin:0;max-width:330px;font-size:12px}
.r-ai-handoff{display:flex;align-items:center;gap:24px;border-left:3px solid #66517d;background:#f8f6fb;margin-top:22px}.r-ai-handoff>div{flex:1}.r-ai-handoff h2{margin-top:10px}.r-ai-handoff p{font-size:14px;line-height:1.7;color:#526571}
.r-result{position:fixed;bottom:20px;right:20px;max-width:min(460px,calc(100vw - 40px));display:flex;gap:20px;align-items:center;padding:16px 18px;background:#fff;border:1px solid #acc5c9;border-left:4px solid #24666b;box-shadow:0 5px 20px #12273315;z-index:45;font-size:13px;color:#173747}.r-result button{border:0;background:none;color:#526571;font-size:21px}
.r-gateway-resume{display:flex;gap:22px;justify-content:flex-end;margin-bottom:24px;font-size:13px;color:#24666b}.r-gateway-resume a{border-bottom:1px solid #9fbfc0;padding-bottom:5px}.r-desk-link{font-size:12px;color:#24666b;white-space:nowrap}
.r-setup-list>section{display:flex;align-items:center;gap:25px}.r-setup-list>section>div:nth-child(2){flex:1}.r-setup-list p{line-height:1.7;color:#526571;font-size:14px}.r-setup-list small{color:#526571;font-size:12px}.r-step-number{font-size:26px;color:#315f91}.r-setup-list .reviewed{border-left:3px solid #24664c}
.r-portfolio{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.r-portfolio .panel{display:flex;flex-direction:column;gap:17px}.r-portfolio h2{font-size:23px}.r-portfolio p{color:#526571;margin:0;line-height:1.7}.r-portfolio .btn{align-self:flex-start;margin-top:auto}
.r-source-health{padding:18px;border:1px solid #c4d6df;background:#e9f0f4;margin:0 0 20px;display:flex;align-items:center;justify-content:space-between;gap:20px}.r-source-health>div{display:flex;gap:16px;align-items:center}.r-state-icon{color:#315f91;font-size:25px}.r-source-health p{margin:6px 0 0;color:#526571;font-size:13px;line-height:1.7}
.r-relation-chain{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.r-relation-chain a{padding:18px;background:#edf3f6;border:1px solid #c4d6df;border-top:3px solid #315f91}.r-relation-chain small,.r-relation-chain span{display:block;font-size:12px;color:#526571}.r-relation-chain b{display:block;margin:14px 0;font-size:24px;color:#122733}.r-field-help{font-size:12px;line-height:1.5;margin-top:5px;font-weight:400}.r-form-error{color:#982c43!important;font-size:13px}
.r-patch-trace td{vertical-align:top}.r-patch-trace td small{display:block;color:#526571;margin-top:7px;font-size:12px}
html[data-density=comfortable] body{zoom:1!important}html[data-density=comfortable] .shell{min-height:calc(100vh - 80px)}html[data-density=comfortable] main{font-size:15px}html[data-density=comfortable] td{padding-top:17px;padding-bottom:17px}html[data-density=comfortable] .flow-card{padding:20px}
#header{flex-wrap:wrap;height:auto;min-height:80px;padding-block:12px}#header .utilities{gap:10px}#header .utilities button{font-size:12px}#header .utilities .demo{font-size:9px}
@media(max-width:1150px){.r-desk-link{display:none}.r-desk-hero{grid-template-columns:1fr}.r-portfolio{grid-template-columns:1fr}.r-status-layers{grid-template-columns:1fr}.r-status-layers>div{border-right:0;border-bottom:1px solid #d2dee4}.r-ai-handoff{flex-wrap:wrap}.r-queue-extras>span{width:100%;margin:0}}
@media(max-width:760px){.r-provenance,.r-source-health,.r-setup-list>section{flex-direction:column;align-items:flex-start}.r-desk-hero{padding:20px}.r-relation-chain{grid-template-columns:1fr 1fr}.r-role-control{align-items:flex-start;flex-direction:column}.r-result{bottom:10px;right:10px}.r-desk-stats{gap:18px}.r-report{padding:22px}.r-ai-handoff .btn{white-space:normal}#header .utilities .demo{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{.r-print-controls,.r-result,.r-report-context,.ws-operation-bridge,.r-gateway-resume{display:none!important}.r-report{padding:0;max-width:none;width:100%;box-shadow:none}.r-report td{font-size:10pt}.r-report .r-provenance{font-size:10pt}.r-report .brand{display:flex!important}.r-report-section h2{break-after:avoid}.r-report tr{break-inside:avoid}.shell{display:block;background:white}body{zoom:1!important;background:white}.r-report-context{display:none!important}}
.r-row-work{display:block;font-size:11px;color:#526571;margin-top:5px;line-height:1.6}
