.bcm-workspace{--bcm-line:#ccd6df;--bcm-ink:#203649;color:var(--bcm-ink)}
.bcm-intro{margin:0 0 18px;max-width:90ch;color:#465c6d;line-height:1.6}.bcm-context{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:#eaf3f0;border:1px solid #bcd3c8;border-radius:10px;padding:12px 16px;margin-bottom:18px}.bcm-context p{margin:0}.bcm-workspace .bcm-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:18px 0}.bcm-stat{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:16px;border:1px solid var(--bcm-line);background:#fff;border-radius:10px;color:var(--bcm-ink);text-align:left;min-height:98px}.bcm-stat strong{font-size:28px}.bcm-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.bcm-card h3{margin:0 0 8px}.bcm-card p{line-height:1.6;color:#465c6d}.bcm-card .actions{margin-top:16px}.bcm-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:18px 0}.bcm-toolbar input[type=search]{flex:1;min-width:180px;max-width:480px}.bcm-toolbar label{display:flex;gap:6px;align-items:center;font-size:13px;margin:0}.bcm-toolbar label input{width:auto}.bcm-table-wrap{max-width:100%;overflow:auto;border:1px solid var(--bcm-line);border-radius:10px;background:#fff}.bcm-table{width:100%;border-collapse:collapse;font-size:13px}.bcm-table th,.bcm-table td{padding:10px 12px;border-bottom:1px solid #e0e6ec;text-align:left;vertical-align:top}.bcm-table th{color:#29495e;background:#f0f5f7;white-space:nowrap}.bcm-table th button{border:0;background:none;color:inherit;padding:0;font-weight:700;font-size:inherit;white-space:nowrap}.bcm-table .bcm-title{min-width:190px;max-width:360px}.bcm-title button{color:#164b70;text-align:left;white-space:normal;background:none;border:0;padding:0;font-weight:650;line-height:1.5}.bcm-row-actions{display:flex;gap:6px;flex-wrap:wrap;min-width:130px}.bcm-row-actions button{font-size:12px;padding:5px 8px;min-height:30px}.bcm-badge{display:inline-flex;align-items:center;border-radius:6px;border:1px solid #b5c5d2;background:#eef3f7;padding:3px 7px;font-size:12px;font-weight:650;white-space:nowrap;color:#294555}.bcm-badge[data-status=Approved],.bcm-badge[data-status=Restored]{background:#e1f2e8;color:#145b35;border-color:#8ebfa3}.bcm-badge[data-status='In review'],.bcm-badge[data-status=Degraded],.bcm-badge[data-status='Operating with workaround']{background:#fff0cc;color:#6d4400;border-color:#cba75a}.bcm-badge[data-status=Unavailable]{background:#fbe6e4;color:#8b2420;border-color:#d39c96}.bcm-overdue{display:block;color:#8b3020;font-weight:650;font-size:12px;margin-top:4px}.bcm-empty{text-align:center;padding:32px 20px;color:#465c6d}.bcm-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.bcm-form .bcm-wide{grid-column:1/-1}.bcm-field{min-width:0}.bcm-field label{display:block;font-weight:650;margin:0 0 6px;color:#294555}.bcm-field input,.bcm-field select,.bcm-field textarea{width:100%;box-sizing:border-box;min-height:40px}.bcm-field textarea{min-height:100px;resize:vertical}.bcm-field small{display:block;line-height:1.5;color:#465c6d;margin-top:5px}.bcm-form fieldset{border:1px solid #cbd7df;border-radius:8px;padding:12px;min-width:0}.bcm-form legend{font-weight:650;padding:0 5px}.bcm-checklist{max-height:180px;overflow:auto}.bcm-checklist label{display:flex;align-items:flex-start;gap:8px;font-weight:400;margin:8px 0;line-height:1.5}.bcm-checklist input[type=checkbox]{width:auto;min-height:0;margin-top:4px}.bcm-detail{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.bcm-detail dt{font-weight:650;color:#294555;margin-bottom:5px}.bcm-detail dd{margin:0;white-space:pre-wrap;line-height:1.6;overflow-wrap:anywhere}.bcm-detail .bcm-wide{grid-column:1/-1}.bcm-detail dl{margin:0;border-bottom:1px solid #dce4e9;padding-bottom:12px}.bcm-dialog-actions{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}.bcm-footnote{font-size:12px;color:#465c6d;margin-top:12px}.bcm-application{border-left:4px solid #367c62}.bcm-workspace button:focus-visible,.bcm-form input:focus-visible,.bcm-form textarea:focus-visible,.bcm-form select:focus-visible{outline:3px solid #1a659c;outline-offset:3px}
@media(max-width:700px){.bcm-cards,.bcm-form,.bcm-detail{grid-template-columns:1fr}.bcm-form .bcm-wide,.bcm-detail .bcm-wide{grid-column:auto}.bcm-toolbar>*{max-width:100%}.bcm-toolbar input[type=search]{max-width:none}.bcm-table th,.bcm-table td{padding:9px}.bcm-row-actions button{min-height:40px}.bcm-dialog-actions button{min-height:42px}.bcm-table-wrap{border-radius:6px}}
@media print{.bcm-toolbar,.bcm-dialog-actions,.bcm-row-actions{display:none}.bcm-table-wrap{overflow:visible}.bcm-workspace .bcm-cards{display:block}.bcm-card{break-inside:avoid}}

.bcm-plan-editor{color:#203649}.bcm-editor-banner{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;background:#eaf3f0;border:1px solid #bcd3c8;padding:13px 16px;border-radius:9px;margin-bottom:12px}.bcm-editor-banner span{font-size:13px;font-weight:650}.bcm-editor-published{border-left:4px solid #37795a;padding:10px 14px;background:#f0f7f3}.bcm-editor-layout{display:grid;grid-template-columns:190px minmax(0,1fr);gap:24px;align-items:start}.bcm-editor-nav{position:sticky;top:130px;display:flex;flex-direction:column;gap:6px;padding:8px;background:#f1f5f7;border-radius:10px}.bcm-editor-nav button{border:0;background:transparent;text-align:left;white-space:normal;color:#29495e;padding:10px 12px;min-height:42px}.bcm-editor-nav button:hover{background:#dce9e4}.bcm-editor-section{scroll-margin-top:140px;background:#fff;border:1px solid #ccd6df;border-radius:10px;padding:22px;margin-bottom:18px}.bcm-editor-section h2{font-size:19px;margin:0 0 18px}.bcm-editor-section textarea{min-height:150px}.bcm-plan-editor #bcmEditorError{border:1px solid #cf948d;background:#ffefed;color:#8b2420;padding:13px;border-radius:8px}.bcm-editor-section h2:focus{outline:2px solid #1a659c;outline-offset:5px}#headerActions:has(button[data-bcm-editor]){position:sticky;top:0;z-index:20;background:#f6f8f8;padding:10px 0}.bcm-editor-banner #bcmEditorSaveState{overflow-wrap:anywhere}#bcmPlanForm{min-width:0}#bcmReadiness li{margin:8px 0}#bcmReadiness h3:focus{outline:2px solid #1a659c;outline-offset:4px}
@media(max-width:800px){.bcm-editor-layout{grid-template-columns:1fr;gap:14px}.bcm-editor-nav{position:static;flex-direction:row;flex-wrap:wrap}.bcm-editor-nav button{flex:1 1 140px}.bcm-editor-section{padding:16px;scroll-margin-top:110px}.bcm-editor-banner{flex-direction:column}#headerActions:has(button[data-bcm-editor]){position:static}}
@media print{.bcm-editor-nav{display:none}.bcm-editor-layout{display:block}.bcm-editor-section{break-inside:avoid}}

/* BCM navigation colors retain the same symbols and labels. */
[data-page="BCM:Overview"]>span:first-child{color:#166f85!important}
[data-page="BCM:Functions"]>span:first-child{color:#285db2!important}
[data-page="BCM:Readiness"]>span:first-child{color:#956000!important}
[data-page="BCM:Plans"]>span:first-child{color:#26754b!important}
[data-page="BCM:Communications"]>span:first-child{color:#7a4198!important}
.bcm-top-scroll{overflow-x:scroll;overflow-y:hidden;max-width:100%;height:22px;scrollbar-width:auto;margin:8px 0 4px}
.bcm-top-scroll[hidden]{display:none}
.bcm-table-wrap{overflow-x:scroll;scrollbar-width:auto;min-width:0}
.bcm-function-count{white-space:nowrap;background:none;border:0;padding:0;color:#164b70;text-decoration:underline;text-underline-offset:3px;font-size:inherit;min-height:30px}
@media print{.bcm-top-scroll{display:none}.bcm-function-count{text-decoration:none;color:inherit}}

@media print{.bcm-workspace .rl-resource-top-scroll{display:none!important}}

/* Round 103: align BCM screen presentation with Command's shared theme.
   Preserve the preceding print rules and all editor/board markup. */
@media screen {
 .bcm-workspace,.bcm-plan-editor{--bcm-ink:var(--ink);--bcm-line:var(--line);color:var(--ink)}
 :is(.bcm-intro,.bcm-empty,.bcm-footnote,.bcm-card p,.bcm-field small){color:var(--ui-muted,var(--muted))}
 :is(.bcm-context,.bcm-editor-banner,.bcm-editor-published,.bcm-editor-nav,.bcm-editor-section,.bcm-table-wrap,.bcm-stat){background:var(--white);color:var(--ink);border-color:var(--line)}
 :is(.bcm-context,.bcm-editor-banner,.bcm-editor-published) strong{color:var(--teal)}
 .bcm-editor-published,.bcm-application{border-inline-start-color:var(--teal)}
 .bcm-editor-nav button{color:var(--ink);border:1px solid var(--line);background:transparent}
 .bcm-editor-nav button:hover{background:var(--mint);color:var(--ink)}
 .bcm-editor-section h2,.bcm-form legend,.bcm-field label,.bcm-detail dt{color:var(--ink)}
 .bcm-form fieldset,.bcm-detail dl,.bcm-table :is(th,td){border-color:var(--line)}
 .bcm-checklist label{color:var(--ink);overflow-wrap:anywhere}
 .bcm-checklist input[type=checkbox],.bcm-toolbar input[type=checkbox]{accent-color:var(--teal);flex:none}
 :is(.bcm-form,.bcm-toolbar) :is(input,textarea,select):not([type=checkbox]):not([type=radio]){color:var(--ink);border-color:var(--ui-border,var(--line));background:var(--white)}
 .bcm-plan-editor>p:not([role=alert]){color:var(--ink);line-height:1.6}
 #headerActions:has(button[data-bcm-editor]){background:var(--bg);color:var(--ink)}
 .bcm-table th{background:var(--bg);color:var(--ink)}
 :is(.bcm-title button,.bcm-function-count){color:var(--teal)}
 :is(.bcm-workspace button,.bcm-form input,.bcm-form textarea,.bcm-form select):focus-visible{outline-color:var(--ui-accent,var(--teal))}
 :is(.bcm-editor-section h2,#bcmReadiness h3):focus{outline-color:var(--ui-accent,var(--teal))}
 .bcm-workspace,.bcm-plan-editor,.bcm-editor-layout,.bcm-editor-section,.bcm-field{min-width:0}
 /* Overview's final critical-functions table is a direct child of a panel,
    unlike the other BCM tables. Contain its horizontal scroll in that panel. */
 #bcmBody>.panel:has(>table){min-width:0;max-width:100%;overflow-x:auto}
 .bcm-editor-section :is(p,label,legend,small),.bcm-detail dd{overflow-wrap:anywhere}
 .bcm-badge{background:var(--white);color:var(--ink);border-color:var(--line)}
 /* Keep the existing light semantic status colors; use the same Command
    dark status surfaces for BCM's equivalent planning/recovery states. */
 html:not([data-command-theme="dark"]) .bcm-badge:is([data-status=Approved],[data-status=Restored]){background:#e1f2e8;color:#145b35;border-color:#8ebfa3}
 html:not([data-command-theme="dark"]) .bcm-badge:is([data-status='In review'],[data-status=Degraded],[data-status='Operating with workaround']){background:#fff0cc;color:#6d4400;border-color:#cba75a}
 html:not([data-command-theme="dark"]) .bcm-badge[data-status=Unavailable]{background:#fbe6e4;color:#8b2420;border-color:#d39c96}
 /* Existing outlined secondary style, applied only to ordinary BCM actions.
    Sort/link controls, semantic danger, primary and disabled actions retain
    their established presentation. */
 html:not([data-command-theme="dark"]) :is(.bcm-workspace,.bcm-plan-editor,dialog:has(.bcm-form,.bcm-detail,.bcm-dialog-actions),#headerActions:has(button[data-bcm-editor]),.console:has(.bcm-workspace) #headerActions) button:not(.primary,.btn-primary,.danger,.btn-danger,.link,.rl-column-sort,.bcm-stat,.bcm-function-count,[data-sort],.bcm-title button):not(:disabled){background:transparent;color:var(--ink);border:1px solid var(--green,#3e8b75)}
 html:not([data-command-theme="dark"]) :is(.bcm-workspace,.bcm-plan-editor,dialog:has(.bcm-form,.bcm-detail,.bcm-dialog-actions),#headerActions:has(button[data-bcm-editor]),.console:has(.bcm-workspace) #headerActions) button:not(.primary,.btn-primary,.danger,.btn-danger,.link,.rl-column-sort,.bcm-stat,.bcm-function-count,[data-sort],.bcm-title button):not(:disabled):hover{background:#eef5f2}
 html:not([data-command-theme="dark"]) :is(.bcm-workspace,.bcm-plan-editor,dialog:has(.bcm-form,.bcm-detail,.bcm-dialog-actions),#headerActions:has(button[data-bcm-editor]),.console:has(.bcm-workspace) #headerActions) button.primary:not(:disabled){background:var(--ui-accent);color:#fff;border-color:var(--ui-accent)}
 html:not([data-command-theme="dark"]) :is(.bcm-workspace,.bcm-plan-editor,dialog:has(.bcm-form,.bcm-detail,.bcm-dialog-actions),#headerActions:has(button[data-bcm-editor]),.console:has(.bcm-workspace) #headerActions) button.primary:not(:disabled):hover{background:#0e5c50}
 html[data-command-theme="dark"] :is(.bcm-plan-editor,.bcm-editor-section,.bcm-editor-nav,.bcm-editor-published,.bcm-editor-banner){background:var(--white);color:var(--ink);border-color:var(--line)}
 html[data-command-theme="dark"] #headerActions:has(button[data-bcm-editor]){background:var(--white);color:var(--ink);border-color:var(--line)}
 html[data-command-theme="dark"] :is(.bcm-form label,.bcm-form legend,.bcm-detail dt,.bcm-editor-section h2){color:var(--teal)!important}
 html[data-command-theme="dark"] :is(.bcm-plan-editor,.bcm-workspace,dialog:has(.bcm-form)) .bcm-checklist label{color:var(--ink)!important}
 html[data-command-theme="dark"] :is(.bcm-plan-editor,.bcm-workspace) :is(.bcm-title button,.bcm-function-count,.bcm-table th button):not(:disabled){background:transparent!important;color:var(--teal)!important;border:0!important}
 html[data-command-theme="dark"] .bcm-badge{background:#20343e;color:#edf5f8;border-color:#617985}
 html[data-command-theme="dark"] .bcm-badge:is([data-status=Approved],[data-status=Restored]){background:var(--mint);color:var(--teal);border-color:var(--teal)}
 html[data-command-theme="dark"] .bcm-badge:is([data-status=Draft],[data-status='In review'],[data-status=Degraded],[data-status='Operating with workaround']){background:#443c20;color:#ffe29c;border-color:#d0ac48}
 html[data-command-theme="dark"] .bcm-badge[data-status=Unavailable]{background:#542e2d;color:#ffc2bd;border-color:var(--ui-danger)}
 html[data-command-theme="dark"] .bcm-plan-editor #bcmEditorError{background:var(--white)!important;color:var(--ui-danger)!important;border-color:var(--ui-danger)!important}
}

/* Round 103 follow-up: retain the shared action-placement roles (including
   Save & close) and search binder markers. Apply Command's light primary
   and outlined secondary colors even when generic button rules compete.
   Dark mode, disabled actions, semantic danger and print remain untouched. */
@media screen {
 html:not([data-command-theme="dark"]) body:has(#content :is(.bcm-workspace,.bcm-plan-editor)) :is(#content,#headerActions,#dialog) button:is(.primary,.btn-primary,[data-action-role="primary"],[data-explicit-search]):not(:disabled,.danger,.btn-danger,[data-action-role="destructive"]){background:var(--ui-accent)!important;color:#fff!important;border-color:var(--ui-accent)!important}
 html:not([data-command-theme="dark"]) body:has(#content :is(.bcm-workspace,.bcm-plan-editor)) :is(#content,#headerActions,#dialog) button:is(.primary,.btn-primary,[data-action-role="primary"],[data-explicit-search]):not(:disabled,.danger,.btn-danger,[data-action-role="destructive"]):hover{background:#0e5c50!important;color:#fff!important;border-color:var(--ui-accent)!important}
 html:not([data-command-theme="dark"]) body:has(#content :is(.bcm-workspace,.bcm-plan-editor)) :is(#content,#headerActions,#dialog) button:is(.btn-secondary,[data-action-role="secondary"],[data-explicit-clear]):not(:disabled,.primary,.btn-primary,[data-action-role="primary"],[data-explicit-search],.danger,.btn-danger,[data-action-role="destructive"],.link,.btn-tertiary,.rl-column-sort,.bcm-stat,.bcm-function-count,[data-sort],.bcm-title button){background:transparent!important;color:var(--ink)!important;border:1px solid var(--green,#3e8b75)!important}
 html:not([data-command-theme="dark"]) body:has(#content :is(.bcm-workspace,.bcm-plan-editor)) :is(#content,#headerActions,#dialog) button:is(.btn-secondary,[data-action-role="secondary"],[data-explicit-clear]):not(:disabled,.primary,.btn-primary,[data-action-role="primary"],[data-explicit-search],.danger,.btn-danger,[data-action-role="destructive"],.link,.btn-tertiary,.rl-column-sort,.bcm-stat,.bcm-function-count,[data-sort],.bcm-title button):hover{background:#eef5f2!important}
}

