/* Management workspace uses the existing Command Center palette. */
.mg-root{--mg-bg:#102638;--mg-panel:#163247;--mg-line:#34566c;--mg-muted:#b5cbd8;--mg-text:#f1f7fa;color:var(--mg-text);font-size:1rem;line-height:1.6}
.mg-root h2,.mg-root h3,.mg-root h4{color:var(--mg-text);line-height:1.25;margin:0 0 .8rem}
.mg-root h2{font-size:clamp(1.7rem,3vw,2.4rem);letter-spacing:-.035em}.mg-root h3{font-size:1.2rem}.mg-root h4{font-size:1.05rem}
.mg-root p{font-size:1rem!important;margin:.6rem 0 1rem}.mg-muted,.mg-root small{color:var(--mg-muted);font-size:.9rem!important}
.mg-root button,.mg-root select,.mg-root input,.mg-root textarea{font:inherit}.mg-root button,.mg-root select{min-height:42px}
.mg-root button{cursor:pointer;border:1px solid #4e7388;background:#1a3a50;color:#eef9ff;padding:.55rem .85rem;border-radius:9px;line-height:1.35}
.mg-root button:hover{border-color:#70e5ce;background:#224b5f}.mg-root button.cc-primary{background:#62dec6;color:#102e36;border-color:#62dec6;font-weight:700}
.mg-root a{color:#75e3d2;text-decoration:underline;text-underline-offset:3px}
.mg-root :focus-visible,.wbs-print-dialog :focus-visible{outline:3px solid #8fe8d9;outline-offset:3px}
.mg-toolbar{display:flex;justify-content:space-between;gap:1rem;align-items:center;flex-wrap:wrap;margin:1rem 0 .5rem}
.mg-form-actions{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap}.mg-form-actions a{padding:.6rem 0;font-size:.9rem}
.mg-message{min-height:1.7rem;font-size:.92rem;color:#c7dce8}.mg-badge{display:inline-block;padding:.25rem .6rem;border-radius:7px;background:#254559;color:#cddfe8;font-size:.82rem;line-height:1.4;border:1px solid #496b7b}
.mg-green{color:#8cebd8;background:#123d3e;border-color:#367d74}.mg-amber{color:#ffda99;background:#4b3b25;border-color:#8c6b34}.mg-red{color:#ffc0b2;background:#512d32;border-color:#a76664}
.mg-tabs{display:flex;gap:.45rem;overflow-x:auto;padding:.75rem 0 1.25rem;margin-bottom:.5rem;scrollbar-width:thin}.mg-tabs button{white-space:nowrap;background:transparent;border-color:transparent;color:#bbd1de}
.mg-tabs button.active{background:#1b4c56;color:#91f0dc;border-color:#439a91}.mg-panel{background:var(--mg-panel);border:1px solid var(--mg-line);border-radius:14px;padding:1.35rem;margin:0 0 1.25rem;min-width:0}
.mg-lead{display:flex;justify-content:space-between;align-items:flex-start;gap:1.5rem;background:linear-gradient(125deg,#193d51,#113d40);border:1px solid #4a8a8b;padding:2rem;border-radius:16px;margin-bottom:1.25rem}
.mg-lead p{max-width:750px}.mg-lead-tag{border:1px solid #67b8ad;border-radius:8px;padding:.5rem .8rem;white-space:nowrap;color:#b7f0df;font-size:.9rem}
.mg-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin-bottom:1.25rem}.mg-metric{display:flex;flex-direction:column;gap:.4rem;background:#102b3d;border:1px solid var(--mg-line);border-radius:12px;padding:1.2rem}.mg-metric>span{font-size:.9rem;color:#c0d7e0}.mg-metric strong{font-size:2rem;line-height:1.3;color:#78e4cd}.mg-metric small{line-height:1.4}
.mg-split{display:grid;grid-template-columns:1.2fr 1fr;gap:1.25rem}.mg-callout{border-left:4px solid #edc887;background:#2b3f45;color:#f0e4c9;padding:1rem 1.2rem;margin:1rem 0 1.4rem}
.mg-domain-chart{display:grid;gap:.85rem}.mg-domain-row{display:grid;grid-template-columns:minmax(150px,1.8fr) minmax(70px,1fr) 55px;align-items:center;gap:.7rem}.mg-domain-row b{display:block;font-size:.9rem;font-weight:600;line-height:1.4}.mg-domain-row small{font-size:.8rem!important;display:block}.mg-domain-row strong{font-size:.9rem;color:#99ead9;text-align:right}
.mg-track{height:8px;background:#314f63;border-radius:5px;overflow:hidden}.mg-track i{height:100%;display:block;border-radius:5px;background:#69dac5}
.mg-priorities{list-style:none;padding:0;margin:0}.mg-priorities li{padding:.8rem 0;border-bottom:1px solid #355164}.mg-priorities li:last-child{border-bottom:0}.mg-priorities .mg-badge{margin:0 .5rem .5rem 0}.mg-priorities b{display:block;font-size:.95rem;line-height:1.5}.mg-priorities p{font-size:.9rem!important;color:#c5d9e4}
.mg-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.1rem;padding:1rem 0 .4rem}.mg-form label{display:flex;flex-direction:column;gap:.4rem;font-size:.92rem;color:#cfe1eb;min-width:0}.mg-form label>span{font-weight:600}
.mg-form input,.mg-form select,.mg-form textarea{background:#0b2537!important;color:#eef9ff!important;border:1px solid #4b6c80!important;padding:.7rem .75rem!important;border-radius:7px!important;width:100%;box-sizing:border-box}.mg-form select{white-space:normal}.mg-form textarea{resize:vertical;min-height:90px}
.mg-wide{grid-column:1/-1}.mg-form .mg-form-actions{padding-top:.4rem}.mg-form-error,.mg-error{color:#ffd1c8;background:#4a2931;border:1px solid #ac646c;border-radius:8px;padding:.85rem 1rem;margin:.5rem 0}
.mg-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.1rem}.mg-steps>div{border-top:2px solid #548b94;padding-top:.7rem}.mg-steps b{display:block;font-size:.95rem;margin-bottom:.4rem}.mg-steps span{color:#bcd1dc;font-size:.9rem}
.mg-domain-filters{display:flex;gap:.5rem;flex-wrap:wrap}.mg-domain-filters button{font-size:.9rem;min-height:38px}.mg-area>h3{margin:1.5rem 0 .5rem}.mg-details{background:#132f43;border:1px solid #38596e;border-radius:10px;margin:.7rem 0;overflow:hidden}.mg-details>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:.75rem;padding:1rem 1.2rem;font-weight:600;line-height:1.5}.mg-details>summary::before{content:"+";color:#83dfd0;font-weight:700;font-size:1.2rem}.mg-details[open]>summary::before{content:"−"}.mg-details>summary>span:nth-child(2){flex:1}.mg-details>summary .mg-badge{font-weight:400;margin-left:auto;max-width:180px;text-align:center}.mg-details>.mg-form,.mg-details>.mg-evidence-hint,.mg-details>.mg-form-actions,.mg-details>.mg-muted,.mg-details>.mg-error{margin-left:1.2rem;margin-right:1.2rem}.mg-details>.mg-form-actions{margin-bottom:1.2rem}.mg-details>.mg-form{padding-bottom:1.2rem}
.mg-control-id{color:#95b8cc;font-size:.85rem;min-width:35px}.mg-evidence-hint{font-size:.95rem;line-height:1.55;border-left:3px solid #48897f;padding:.7rem 1rem;background:#173c46;margin-top:.3rem;margin-bottom:.7rem}
.mg-checklist{display:flex;gap:.6rem;flex-wrap:wrap;margin-top:1rem}.mg-checklist span{border:1px solid #446c7e;padding:.4rem .7rem;border-radius:6px;font-size:.9rem;color:#d1e6e9}
.mg-table-wrap{overflow:auto;margin:1rem 0}.mg-table-wrap table{border-collapse:collapse;width:100%;min-width:480px;font-size:.92rem}.mg-table-wrap th,.mg-table-wrap td{padding:.8rem;border:1px solid #3f5f74;vertical-align:top;text-align:left;white-space:pre-line;overflow-wrap:anywhere}.mg-table-wrap th{background:#21485a;color:#f0f9fc;font-weight:600}.mg-table-wrap tbody tr:nth-child(even){background:#19374a}
.mg-cycle{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;margin-top:1.4rem}.mg-cycle>div{display:grid;gap:.3rem;padding:1rem;border:1px solid #40887e;border-radius:9px;background:#133e45}.mg-cycle b{color:#8eecda;font-size:1.4rem}.mg-cycle span{font-size:.95rem}.mg-cycle strong{font-size:1.15rem}
.mg-standard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:1rem 0 1.5rem}.mg-standard{padding:1.35rem;background:#173549;border:1px solid #3d6071;border-radius:12px;min-width:0}.mg-standard>small{display:block;line-height:1.5}.mg-standard h4{margin-top:.6rem}.mg-standard li{font-size:.95rem;margin-bottom:.5rem}.mg-suggestion{border-bottom:1px solid #3d5b6b;padding:1rem 0}.mg-suggestion:last-child{border:0}.mg-footer{font-size:.82rem;color:#a1bfce;margin:2rem 0 1rem}
.mg-summary{display:flex!important;align-items:center;gap:1.5rem;border-color:#3b9286!important;background:linear-gradient(110deg,#123648,#123e42)!important}.mg-summary>div{flex:1}.mg-summary button{flex-shrink:0}.mg-summary p{font-size:1rem!important}
/* Section selector and print preview */
.wbs-print-dialog{width:min(850px,94vw);max-height:90vh;overflow:auto;border:1px solid #567e91;border-radius:15px;background:#102b3d;color:#edf9ff;padding:1.7rem;box-shadow:0 20px 80px #0007}.wbs-print-dialog::backdrop{background:#04111dba}
.wbs-print-dialog h2{margin:0 0 .7rem;color:#f0f9ff;font-size:1.5rem}.wbs-print-dialog p{font-size:1rem;line-height:1.6}.wbs-print-dialog button{padding:.7rem 1rem;border-radius:7px;border:1px solid #6b9aa9;background:#1e4356;color:#f0faff;font-size:1rem;cursor:pointer}.wbs-print-dialog button.primary{background:#74dec9;color:#113139;font-weight:700}.wbs-print-options{display:grid;grid-template-columns:1fr 1fr;gap:.7rem;margin:1.3rem 0}.wbs-print-options label{display:flex;align-items:flex-start;gap:.6rem;background:#193c51;padding:.9rem;border:1px solid #385e73;border-radius:8px;font-size:1rem;line-height:1.4}.wbs-print-options input{width:18px;height:18px;flex-shrink:0;accent-color:#68d7c3;margin-top:2px}.wbs-print-actions{display:flex;justify-content:space-between;gap:.8rem;flex-wrap:wrap;margin-top:1.2rem}.wbs-print-status{color:#ffdaaa;font-size:.9rem;min-height:1.5rem}
#wbs-print-report{display:none}
@media(max-width:1000px){.mg-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.mg-split{grid-template-columns:1fr}.mg-lead{padding:1.4rem}.mg-summary{flex-direction:column;align-items:stretch}}
@media(max-width:680px){.mg-root{font-size:1rem}.mg-lead{display:block}.mg-lead-tag{display:inline-block;margin-top:.5rem}.mg-form,.mg-standard-grid{grid-template-columns:1fr}.mg-metrics{gap:.6rem}.mg-metric{padding:.85rem}.mg-metric strong{font-size:1.6rem}.mg-panel{padding:1rem}.mg-cycle{grid-template-columns:1fr 1fr}.mg-details>summary{flex-wrap:wrap;padding:1rem}.mg-details>summary>span:nth-child(2){min-width:70%}.mg-details>summary .mg-badge{margin-left:40px;max-width:none}.mg-domain-row{grid-template-columns:minmax(130px,1.5fr) minmax(50px,1fr) 48px}.mg-toolbar>.mg-form-actions{width:100%}.mg-toolbar button{flex-grow:1}.wbs-print-options{grid-template-columns:1fr}.mg-root .mg-form-actions{gap:.5rem}}
@media print{
  @page{size:letter portrait;margin:16mm 14mm}
  body.wbs-printing{background:white!important;color:#142f40!important;margin:0!important;padding:0!important}
  body.wbs-printing> :not(#wbs-print-report){display:none!important}
  body.wbs-printing #wbs-print-report{display:block!important;color:#142f40!important;background:white!important;font-family:Arial,sans-serif;font-size:10.5pt;line-height:1.5}
  #wbs-print-report *{box-shadow:none!important;text-shadow:none!important}
  #wbs-print-report h1{font-size:25pt;line-height:1.15;color:#142f40!important;margin:0 0 9pt}
  #wbs-print-report h2{font-size:17pt;color:#142f40!important;margin:16pt 0 8pt;break-after:avoid}
  #wbs-print-report h3{font-size:12pt;color:#142f40!important;margin:12pt 0 6pt;break-after:avoid}
  #wbs-print-report p,#wbs-print-report li,#wbs-print-report td,#wbs-print-report th,#wbs-print-report small,#wbs-print-report b,#wbs-print-report strong,#wbs-print-report span{color:#142f40!important;font-size:10pt}
  #wbs-print-report p{margin:6pt 0 9pt;orphans:3;widows:3}
  #wbs-print-report a{color:#245d76!important;text-decoration:none;overflow-wrap:anywhere}
  #wbs-print-report .wbs-report-cover{border-bottom:1.5pt solid #7aafb0;padding-bottom:16pt;margin-bottom:20pt}
  #wbs-print-report .wbs-report-meta{font-size:9pt;color:#3d596a!important}
  #wbs-print-report .wbs-report-section{break-before:page}
  #wbs-print-report .wbs-report-section:first-of-type{break-before:auto}
  #wbs-print-report .cc-grid,#wbs-print-report .mg-split{display:block!important}
  #wbs-print-report .cc-panel,#wbs-print-report .mg-panel{display:block!important;background:white!important;border:0!important;border-radius:0!important;padding:0!important;margin:10pt 0 16pt!important;break-inside:auto!important}
  #wbs-print-report .cc-banner{background:white!important}
  #wbs-print-report .cc-actions,#wbs-print-report button,#wbs-print-report form,#wbs-print-report .cc-guided-question,#wbs-print-report .cc-network-detail{display:none!important}
  #wbs-print-report .cc-table-wrap,#wbs-print-report .mg-table-wrap{overflow:visible!important;margin:9pt 0}
  #wbs-print-report table{border-collapse:collapse;width:100%!important;min-width:0!important;table-layout:fixed}
  #wbs-print-report th,#wbs-print-report td{border:.6pt solid #bbcbd3!important;padding:6pt!important;vertical-align:top;overflow-wrap:anywhere;white-space:pre-line;background:white!important;font-size:9pt}
  #wbs-print-report th{background:#e7eff2!important;font-weight:700}
  #wbs-print-report tr{break-inside:avoid}#wbs-print-report thead{display:table-header-group}
  #wbs-print-report svg{max-width:100%;height:auto;break-inside:avoid;background:#102638!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}
  #wbs-print-report .cc-graph svg{width:100%}
  #wbs-print-report .cc-flow{display:flex;flex-wrap:wrap;gap:8pt}#wbs-print-report .cc-flow>div{background:#edf3f5!important;border:1px solid #b6cbd3!important;min-width:80pt;padding:8pt!important;flex:1}
  #wbs-print-report .cc-kpi{display:inline-block!important;width:47%;padding:8pt!important;border:1px solid #b6cbd3!important;margin:5pt 1%!important}
  #wbs-print-report .cc-kpi b{display:block;font-size:18pt!important}
  #wbs-print-report .mg-domain-chart{display:grid;gap:7pt;margin:14pt 0}
  #wbs-print-report .mg-domain-row{break-inside:avoid;grid-template-columns:220pt 1fr 40pt}
  #wbs-print-report .mg-track{background:#e1e9ed!important;print-color-adjust:exact}
  #wbs-print-report .mg-track i{background:#188b79!important;print-color-adjust:exact}
  #wbs-print-report .mg-priorities li{break-inside:avoid;border-color:#cad8df}
  #wbs-print-report .mg-badge{background:#edf3f5!important;color:#143241!important;border:1px solid #b2c7d0!important;font-size:8pt}
  #wbs-print-report .mg-callout,#wbs-print-report .cc-note{background:white!important;border-left:2pt solid #8ea9b6!important;padding:8pt!important}
  #wbs-print-report .cc-quote{border:0!important;background:white!important;break-inside:avoid}
}

@media print{#wbs-print-report .cc-edge{stroke:#527b88;stroke-width:1;fill:none;opacity:.8}#wbs-print-report .cc-edge.hot{stroke:#70e9d6;stroke-width:2;opacity:1}#wbs-print-report .cc-node text{fill:#ecf8fc;font:700 13px Arial,sans-serif}#wbs-print-report .cc-node .node-small{fill:#b0c7d4;font:10px Arial,sans-serif}}

#case-root .mg-root h2{font-size:clamp(1.7rem,3vw,2.4rem);line-height:1.2}#case-root .mg-root h3{font-size:1.2rem}#case-root .mg-root h4{font-size:1.05rem}#case-root .mg-root button{font-size:.94rem}#case-root .mg-root select,#case-root .mg-root input,#case-root .mg-root textarea{font-size:1rem}#case-root .mg-tabs button{font-size:.9rem}

body.wbs-report-preview{background:#dce6ea!important;padding:0!important;margin:0!important}
body.wbs-report-preview>:not(#wbs-print-report){display:none!important}
body.wbs-report-preview #wbs-print-report{display:block;background:white;color:#163345;font:16px/1.65 Arial,sans-serif;width:calc(100% - 32px);max-width:960px;margin:24px auto;padding:40px;box-shadow:0 8px 40px #1234;box-sizing:border-box}
#wbs-print-report .wbs-report-controls{display:flex;justify-content:space-between;gap:12px;position:sticky;top:0;background:white;padding:12px 0;margin-bottom:20px;border-bottom:1px solid #bed0d8;z-index:10}
#wbs-print-report .wbs-report-controls button{font:600 16px Arial,sans-serif;padding:10px 18px;color:#fff;background:#155566;border:0;border-radius:6px;cursor:pointer}
body.wbs-report-preview #wbs-print-report h1,body.wbs-report-preview #wbs-print-report h2,body.wbs-report-preview #wbs-print-report h3{color:#143344;line-height:1.3;margin-top:24px}
body.wbs-report-preview #wbs-print-report p,body.wbs-report-preview #wbs-print-report li,body.wbs-report-preview #wbs-print-report span,body.wbs-report-preview #wbs-print-report small,body.wbs-report-preview #wbs-print-report b,body.wbs-report-preview #wbs-print-report strong{color:#244858}
body.wbs-report-preview #wbs-print-report .cc-grid{display:block}
body.wbs-report-preview #wbs-print-report .cc-panel{display:block;background:white;border:0;padding:0;margin:24px 0;color:#143344}
body.wbs-report-preview #wbs-print-report .wbs-report-section{border-top:1px solid #c8d9df;padding-top:24px;margin-top:30px}
body.wbs-report-preview #wbs-print-report .mg-table-wrap table{min-width:0;font-size:14px}
body.wbs-report-preview #wbs-print-report th{background:#e7eff2;color:#163345}
body.wbs-report-preview #wbs-print-report td{background:white;color:#163345}
body.wbs-report-preview #wbs-print-report .mg-badge{background:#e7eff2;color:#163345;border-color:#b1c9d2}
body.wbs-report-preview #wbs-print-report .mg-priorities p{font-size:15px!important;color:#365469}
body.wbs-report-preview #wbs-print-report .mg-track{background:#dce7ea}
body.wbs-report-preview #wbs-print-report svg{background:#102638;width:100%;height:auto}
#wbs-print-report .cc-edge{stroke:#527b88;stroke-width:1;fill:none;opacity:.8}
#wbs-print-report .cc-edge.hot{stroke:#70e9d6;stroke-width:2;opacity:1}
#wbs-print-report .cc-node text{fill:#ecf8fc;font:700 13px Arial,sans-serif}
#wbs-print-report .cc-node .node-small{fill:#b0c7d4;font:10px Arial,sans-serif}
@media(max-width:600px){body.wbs-report-preview #wbs-print-report{padding:18px;width:100%;margin:0}.wbs-report-controls{flex-wrap:wrap}}
@media print{#wbs-print-report .wbs-report-controls{display:none!important}body.wbs-report-preview #wbs-print-report{max-width:none!important;width:100%!important;padding:0!important;margin:0!important;box-shadow:none!important}body.wbs-report-preview #wbs-print-report .wbs-report-section{border:0!important;padding:0!important;margin:0!important}}
