/* Planner chrome only. Technical drawings, instrument faces, status colors and
   print documents retain their own palettes. Kept after the legacy sheets. */
@media screen {
  body.planner-charcoal {
    --pc-page: #101113;
    --pc-surface: #191a1d;
    --pc-raised: #24262a;
    --pc-hover: #303238;
    --pc-text: #f1f1f2;
    --pc-muted: #a7a9af;
    --pc-line: rgba(255,255,255,.065);
    --pc-glass: var(--shell);
    --line: var(--pc-line);
    --ink: var(--pc-text);
    --muted: var(--pc-muted);
    --lime: #c5c9d1;
    color: var(--pc-text);
    background: var(--pc-page);
    color-scheme: dark;
    scrollbar-color: #45474f transparent;
  }

  /* Continuous workspace surfaces; separation comes from tone, not frames. */
  body.planner-charcoal > header,
  body.planner-charcoal :is(.panel-heading,.canvas-toolbar,.workflow-launch,.workspace-tools,.scene-transform-bar,.scene-site-bar,.plant-guide,.selection-bar,.sequence-strip,.timeline,.context-strip,.mobile-nav) {
    background: var(--pc-surface);
    color: var(--pc-text);
    border-color: var(--pc-line);
    box-shadow: none;
  }
  body.planner-charcoal :is(.workspace,.stage-layout,.details) {
    background: var(--pc-page);
    border-color: var(--pc-line);
    box-shadow: none;
  }
  body.planner-charcoal main > aside,
  body.planner-charcoal .scene-dock {
    background: var(--pc-surface);
    border-color: var(--pc-line);
  }
  body.planner-charcoal :is(.sidebar-foot,.segmented,.workspace-demo-fold>summary,.explorer-fold>summary,.setup-section-picker) {
    background: var(--pc-surface);
    color: var(--pc-muted);
    border-color: var(--pc-line);
  }
  body.planner-charcoal :is(.project,.explorer-fold,.dock-note,.setup-section,.studio-section,.editor-fold,.rw-panels,.rw-toolbar,.rw-device,.rw-mini,.rc-ledger,.rc-travel,.site-tree-folder,.floor-list>div,.scene-site-dimensions) {
    border-color: var(--pc-line);
  }
  body.planner-charcoal .brand-icon {
    background: #d7d9de;
    color: #16171a;
    box-shadow: none;
  }
  body.planner-charcoal #siteWorkspaceBar {
    background: var(--pc-surface)!important;
    color: var(--pc-text)!important;
    border-color: var(--pc-line)!important;
    box-shadow: none;
  }
  body.planner-charcoal #siteWorkspaceBar>button {
    background: var(--pc-raised);
    color: var(--pc-text);
    border-color: transparent;
  }
  body.planner-charcoal #drawing { background: var(--pc-page); }
  body.planner-charcoal .scene-site-bar :is(input:not([type=checkbox]):not([type=range]),select) {
    background: #18191c; color: var(--pc-text); border: 1px solid var(--pc-line); border-radius: 5px;
  }
  body.planner-charcoal .scene-site-dimensions { border-color: var(--pc-line); }
  body.planner-charcoal :is(.eyebrow,.panel-heading p,.sidebar-foot,.tool-help,.workspace-layout,.workspace-camera-picker,.scene-transform-bar label,.level-placement-note,.site-tool-context>label,.site-tool-context>span,.site-browser-heading>span,.plant-guide label,.plant-guide [data-plant-caption]) {
    color: var(--pc-muted);
  }
  body.planner-charcoal :is(.workspace-heading h2,.selection-bar strong,.plant-guide strong,.site-browser-heading) {
    color: var(--pc-text);
  }
  body.planner-charcoal #viewHint,
  body.planner-charcoal #saveStatus { color: var(--pc-muted); }

  /* The workspace's compact command rails and selection states. */
  body.planner-charcoal :is(.actions,.workspace-primary,.workspace-tools,.canvas-toolbar,.selection-bar,.scene-transform-bar,.scene-site-bar,.plant-guide,.camera-tools,.phase-buttons,.site-browser-actions,.workspace-panel-toggles) button,
  body.planner-charcoal :is(.workspace-menu,.site-command-menu,.transform-exact)>summary {
    background: rgba(255,255,255,.055);
    color: #d8dae0;
    border-color: transparent;
    box-shadow: none;
  }
  body.planner-charcoal :is(.context-strip button,.workspace-panel-toggles button,.workspace-menu>div button,.workspace-menu>div a,.site-command-menu>div button,.site-load-menu button) {
    background: transparent;
    border-color: transparent;
    color: #d8dae0;
  }
  body.planner-charcoal :is(.actions,.workspace-primary,.workspace-tools,.canvas-toolbar,.selection-bar,.scene-transform-bar,.scene-site-bar,.plant-guide,.camera-tools,.phase-buttons,.site-browser-actions,.workspace-panel-toggles) button:hover:not(:disabled),
  body.planner-charcoal :is(.workspace-menu>div button,.workspace-menu>div a,.site-command-menu>div button,.site-load-menu button,.site-tool-rail button):hover {
    background: var(--pc-hover);
    color: var(--pc-text);
  }
  body.planner-charcoal :is(.tabs button.active,.segmented button.active,.camera-tools button.active,.elevation-tools button.active,.phase-buttons button.active,.workspace-tools button[aria-pressed=true],.workspace-panel-toggles button[aria-pressed=true],.scene-transform-row button[aria-pressed=true],.site-draw-launch[aria-pressed=true],.site-tool-rail button[aria-pressed=true],.mobile-nav button[aria-expanded=true]) {
    background: #383b42;
    color: #fff;
    border-color: transparent;
    box-shadow: inset 0 -2px #c3c8d2;
  }
  body.planner-charcoal :is(.tabs button,.mobile-nav button) {
    background: transparent;
    border-color: transparent;
    color: var(--pc-muted);
  }
  body.planner-charcoal .timeline>button,
  body.planner-charcoal .workflow-launch .book-launch {
    background: #363940;
    color: #f4f5f6;
    border-color: transparent;
  }
  body.planner-charcoal .book-launch {
    background: #363940!important;
    color: #f4f5f6!important;
    border-color: transparent!important;
  }
  body.planner-charcoal :is(.timeline-label span,.timeline-ends,.timeline-labels,.phase-buttons>span,.context-strip small,.selection-bar small,.context-strip strong,.workspace-demo-fold,.workspace-demo-fold>summary span) {
    color: var(--pc-muted);
  }
  body.planner-charcoal .context-strip .attention {
    background: #2b241c;
    color: #e6bf80;
  }

  /* Inspector and explorer, including the same content moved into phone sheets. */
  body.planner-charcoal #inspector :is(.crane-card,.kit-launch,.setup-launch,.rigging-launch,.load-launch,.piece-title),
  body.planner-charcoal :is(.crane-card,.fleet-model-summary,.connection-card,.piece-title,.obstacle,.setting-toggle,.motion-summary,.tension,.assembly-readout>div,.share-cards>div,.weather-readout:not(.review),.upending-angle,.upending-hook-grid>div ) {
    background: var(--pc-raised);
    border-color: transparent;
    color: var(--pc-text);
    box-shadow: none;
  }
  body.planner-charcoal #inspector :is(label,.help,.crane-card p,.crane-card .eyebrow,.kit-launch>span),
  body.planner-charcoal :is(.fields label,.help,.crane-card p,.kit-launch small,.piece-title small,.connection-card>small,.connection-card dt,.connection-card p,.weather-readout:not(.review) p,.motion-summary,.assembly-readout span,.assembly-readout small,.assembly-readout p,.share-cards span,.share-cards small,.share-cards p,.upending-angle span,.upending-hook-grid small,.upending-hook-grid span,.upending-intro p) {
    color: var(--pc-muted);
  }
  body.planner-charcoal :is(.crane-card h3,.kit-launch strong,.connection-card dd,.weather-readout:not(.review) strong,.motion-summary strong,.tension strong,.assembly-readout strong,.share-cards strong,.upending-angle strong,.section-label) {
    color: var(--pc-text);
  }
  body.planner-charcoal #inspector :is(input:not([type=range]):not([type=checkbox]):not([type=color]),select,textarea),
  body.planner-charcoal :is(.explorer-search input,.workspace-layout select,.workspace-camera-picker select,.scene-transform-bar select) {
    background: #111214;
    color: var(--pc-text);
    border-color: rgba(255,255,255,.12);
    box-shadow: none;
  }
  body.planner-charcoal #objectList :is(.object-item,.site-tree-row),
  body.planner-charcoal :is(.site-tree-folder>summary,.layer-list label,.explorer-group h3,.dock-note,.telemetry-row) {
    background: transparent;
    color: var(--pc-muted);
    border-color: transparent;
  }
  body.planner-charcoal :is(.object-item i,.object-item small,.site-tree-row small,.site-tree-folder>summary small,.site-tree-folder>summary:before,.layer-list label small,.dock-note span,.dock-heading>span:last-child:not(:first-child)) {
    color: #92959f;
  }
  body.planner-charcoal #objectList :is(.object-item,.site-tree-row):hover { background: var(--pc-raised); }
  body.planner-charcoal #objectList :is(.object-item.selected,.site-tree-row.selected) {
    background: #303238;
    color: var(--pc-text);
    box-shadow: inset 2px 0 #c3c8d2;
  }
  body.planner-charcoal :is(.object-item.selected i,.telemetry-row strong,.site-group-context strong) { color: var(--pc-text); }
  body.planner-charcoal .isolate-toggle { background: var(--pc-raised); border-color: transparent; }

  /* Glass shells surround opaque data surfaces so controls remain readable. */
  body.planner-charcoal :is(dialog,.unified-inspector,.site-load-panel,.floor-view-panel,.lug-quick,.wrap-quick) {
    background: var(--pc-glass);
    color: var(--pc-text);
    border-color: rgba(255,255,255,.045);
    box-shadow: 0 18px 65px #0008;
    backdrop-filter: blur(12px);
  }
  body.planner-charcoal dialog::backdrop { background: rgba(5,5,7,.72); }
  body.planner-charcoal dialog>header,
  body.planner-charcoal :is(.kit-header,.rw-header,.studio-header,.studio-footer,.book-header,.erm-header,.erm-footer,.upending-sheet-toolbar,.mobile-sheet-heading),
  body.planner-charcoal :is(.planning-desk,.site-workbench,.workspace-review,.staged-crane-editor,.level-manager,.sequence-player,.sequence-video,.unified-inspector,.lift-sequence)>header,
  body.planner-charcoal :is(.unified-inspector,.lift-sequence,.sequence-player)>footer {
    background: var(--control);
    color: var(--pc-text);
    border-color: var(--pc-line);
  }
  body.planner-charcoal :is(.kit-navigation,.setup-navigation,.setup-summary,.studio-nav,.studio-properties,.library-sidebar,.fleet-details,.erm-details,.ie-layout aside,.rigging-workbench .rw-inspector) {
    background: #151619;
    color: var(--pc-text);
    border-color: var(--pc-line);
  }
  body.planner-charcoal .equipment-roadmap-dialog {
    --erm-bg: var(--pc-surface);
    --erm-panel: var(--pc-raised);
    --erm-border: var(--pc-line);
    --erm-muted: var(--pc-muted);
    --erm-text: var(--pc-text);
    --erm-accent: #c5c9d1;
  }
  /* Legacy compact editor fields carry their own palette. Keep form surfaces
     neutral without flattening selected buttons, paint swatches or status colors. */
  body.studio-charcoal.planner-charcoal :is(dialog,.compact-editor,.unified-inspector,.site-load-panel,.route-scene-panel,.handling-panel,.site-manager) :is(input,select,textarea):where(:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=color])) {
    background: #121316;
    color: var(--pc-text);
    border-color: rgba(255,255,255,.12);
  }
  body.studio-charcoal.planner-charcoal :is(dialog,.compact-editor,.unified-inspector,.site-load-panel,.route-scene-panel,.handling-panel,.site-manager) :is(input,select,textarea):user-invalid {
    border-color: #e49b8b;
  }
  body.planner-charcoal :is(.rigging-workbench .rw-main,.rigging-workbench .rw-panels,.rigging-workbench .rw-panel-picker,.rigging-workbench .rw-item-picker,.rw-gallery,.library-tabs,.book-tabs,.planning-desk nav,.studio-section,.ui-search,.seq-preview,.erm-comparison,.fleet-table-scroll) {
    background: var(--pc-surface);
    border-color: var(--pc-line);
  }
  body.planner-charcoal :is(.rigging-workbench,.compact-editor,.planning-studio,.planning-desk,.site-workbench,.setup-library,.plan-workbook,.fleet-dialog,.equipment-roadmap-dialog,.unified-inspector,.lift-sequence,.indoor-editor,.object-group-dialog,.object-setup-library,.asset-library,.site-load-panel,.level-manager,.sequence-player,.sequence-video,.save-project-dialog,.equipment-travel,.scenario-library,.tank-transfer,.route-scene-panel,.handling-panel,.site-manager,.staged-crane-editor) :where(button,select,input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=color]),textarea) {
    border-color: rgba(255,255,255,.12);
    background: #121316;
    color: var(--pc-text);
    box-shadow: none;
  }
  body.planner-charcoal :is(.rigging-workbench,.compact-editor,.planning-studio,.planning-desk,.site-workbench,.setup-library,.plan-workbook,.fleet-dialog,.equipment-roadmap-dialog,.unified-inspector,.lift-sequence,.indoor-editor,.object-group-dialog,.object-setup-library,.asset-library,.site-load-panel,.level-manager,.sequence-player,.sequence-video,.save-project-dialog,.equipment-travel,.scenario-library,.tank-transfer,.route-scene-panel,.handling-panel,.site-manager,.staged-crane-editor) button {
    background: var(--control);
    border-color: transparent;
  }
  body.planner-charcoal :is(.rigging-workbench,.compact-editor,.planning-studio,.planning-desk,.site-workbench,.setup-library,.plan-workbook,.fleet-dialog,.equipment-roadmap-dialog,.unified-inspector,.lift-sequence,.indoor-editor,.object-group-dialog,.object-setup-library,.asset-library,.site-load-panel,.level-manager,.sequence-player,.sequence-video,.save-project-dialog,.equipment-travel,.scenario-library,.tank-transfer,.route-scene-panel,.handling-panel,.site-manager,.staged-crane-editor) button:hover:not(:disabled) {
    background: var(--control-hover);
    color: #fff;
  }
  body.planner-charcoal :is(.rigging-workbench,.compact-editor,.planning-studio,.planning-desk,.site-workbench,.setup-library,.plan-workbook,.fleet-dialog,.equipment-roadmap-dialog,.unified-inspector,.lift-sequence,.indoor-editor,.equipment-travel,.scenario-library,.tank-transfer,.route-scene-panel,.handling-panel,.site-manager,.staged-crane-editor) :is(button[aria-pressed=true],button[aria-current=page],button.active,.rw-primary),
  body.planner-charcoal :is(.editor-summary-toggle[aria-pressed=true],.library-list button[aria-pressed=true],.point-tabs .active,.object-pieces button.selected) {
    color: #fff;
    background: #3c3f47;
    border-color: #555a65;
    box-shadow: none;
  }
  body.planner-charcoal .sequence-player :is(button[aria-pressed=true],button[aria-current=true],[data-sp-play]) {
    background: #3c3f47!important;
    border-color: #555a65!important;
  }
  body.planner-charcoal [data-sp-shot] { color: #bdc5d1!important; }
  body.planner-charcoal :is(.planning-desk,.site-load-panel) button.primary,
  body.planner-charcoal :is(.book-actions button:first-child,.library-apply button:first-child,.fleet-detail-actions button:first-child,.studio-proposal button:first-of-type) {
    background: #d8dbe1;
    color: #16171b;
    border-color: transparent;
  }
  body.planner-charcoal .studio-proposal button:first-of-type {
    background: #d8dbe1!important;
    color: #16171b!important;
    border-color: transparent!important;
  }
  body.planner-charcoal :is(.rigging-workbench,.compact-editor,.planning-studio,.planning-desk,.site-workbench,.setup-library,.plan-workbook,.fleet-dialog,.equipment-roadmap-dialog,.unified-inspector,.lift-sequence,.indoor-editor,.object-group-dialog,.object-setup-library,.asset-library) :is(label,legend) {
    color: #b8bbc3;
  }
  body.planner-charcoal :is(.kit-header small,.rw-header small,.studio-nav>small,.studio-title>small,.studio-header>div,.studio-title p,.studio-content p,.studio-footer,.kit-note,.setup-intro p,.setup-section h3 span,.setup-reference p,.reference-assessment-list,.reference-assessment-list li,.arrangement-grid small,.editor-fold>summary,.editor-section-list button,.editor-search,.editor-section-picker,.kit-section-picker,.editor-scope-note,.editor-search-status,.library-detail-heading p,.library-schedule>p,.library-empty p,.book-intro p,.book-review>p,.book-footnote,.rw-gallery span,.rw-gallery small,.rw-data p,.rw-inspector>small,.rw-inspector details p,.rw-inspector h4,.rw-footer span,.ui-fields p,.seq-detail p,.seq-detail li,.seq-toolbar>span,.sequence-player small,.sequence-video small,.sequence-video p,.sequence-video footer,.ie-hint,.ie-note,.fleet-specs dt,.fleet-card small,.fleet-model-summary small,.erm-eyebrow,.erm-model-brand,.erm-card-summary,.erm-inspect>small,.erm-specs dt,.erm-selection-hint,.erm-detail-section summary>span,.erm-detail-section ul,.erm-detail-section ol,.erm-source-list small,.erm-source-list li>p,.erm-footer p,.erm-footer p>span,.erm-footer>span,.asset-library p,.asset-library-grid small,.asset-library-grid span>span,.object-group-dialog small,.object-group-dialog p,.object-setup-library small,.object-setup-library p) {
    color: var(--pc-muted);
  }
  body.planner-charcoal :is(.studio-title h2,.setup-summary h3,.setup-reference strong,.kit-section h3,.rw-data h3,.rw-inspector summary,.fleet-specs dd,.erm-card-class,.erm-specs dd,.erm-detail-section summary,.planning-desk summary,.site-load-panel summary,.kit-table td strong,.rc-travel h4,.rc-ledger strong,.rw-mini strong) {
    color: var(--pc-text);
  }

  /* Data cards retain meaningful warning / conflict / rating state colors. */
  body.planner-charcoal :is(.setup-reference,.editor-fold,.arrangement-picker,.lattice-build,.crawler-support-note,.boom-system-picker,.spider-support-editor details,.kit-total,.kit-summary-pills span,.reeving-overview,.connection-card,.studio-feature,.studio-stats,.studio-preset-grid>button,.studio-source-grid article,.studio-roadmap,.access-readout>div,.site-card,.site-stat-grid article,.site-support-inputs>div,.site-points>div,.library-installed,.library-save,.book-step,.book-evidence,.book-review,.book-empty,.rw-stats,.rigging-workbench .rc-node,.rl-list article,.rr-list article,.rr-metrics>div,.rr-empty,.rr-change-list article,.cf-card:not(.conflict),.ui-fields fieldset,.seq-summary,.seq-preview,.ie-readout,.ie-live:not(.has-issues),.erm-card,.erm-reference-class,.erm-rating-state,.erm-empty,.desk-stat,.asset-library-grid button,.asset-swatch,.object-setup-library [data-setup-capture]) {
    background: var(--pc-raised);
    border-color: var(--pc-line);
    box-shadow: none;
  }
  body.planner-charcoal :is(.studio-feature:hover,.erm-card.is-selected,.editor-match,.rw-data tr.selected,.rr-legs label:has(input:checked)) {
    background: #30333a;
    border-color: #5f6571;
  }
  body.planner-charcoal .rigging-workbench .rc-node[aria-pressed=true] {
    background: #3c3f47;
    border-color: #606672;
    color: #fff;
  }
  body.planner-charcoal :is(.library-save,.studio-preset-grid>button,.studio-connection-flow button) {
    background: var(--pc-raised)!important;
    color: var(--pc-text)!important;
  }
  body.planner-charcoal :is(.book-summary,.erm-milestones,.studio-nav-foot,.access-scrubber,.sp-readout,.seq-preview) {
    background: var(--pc-raised);
    color: var(--pc-muted);
    border-color: var(--pc-line);
  }
  body.planner-charcoal :is(.book-summary b,.studio-wordmark,.studio-wordmark span,.studio-nav>button[aria-current=page]>span,.access-scrubber output,.sp-readout>strong) { color: var(--pc-text); }
  body.planner-charcoal :is(.erm-milestones small,.erm-step-number,.studio-nav-foot>span,.sp-readout ul,.studio-toolbar>span,.studio-section-head>span,.studio-map-tools>span) { color: var(--pc-muted); }
  body.planner-charcoal .equipment-roadmap-dialog .erm-compare-check { background: #1c1e22; border-color: var(--pc-line); }
  body.planner-charcoal .equipment-roadmap-dialog .erm-inspect { background: transparent; }
  body.planner-charcoal .equipment-roadmap-dialog .erm-inspect:hover { background: #ffffff05; }
  body.planner-charcoal :is(.kit-total span,.kit-lengths span,.kit-table small,.kit-summary-pills span,.reeving-overview span,.reeving-overview small,.studio-stats span,.studio-feature small,.studio-feature p,.studio-feature>span,.studio-preset-grid small,.studio-section h3 small,.studio-source-grid article small,.studio-roadmap span,.access-readout small,.access-readout span,.site-stat-grid small,.site-stat-grid em,.library-installed small,.library-installed span,.rw-stats small,.rw-stats span,.rw-stats i,.rw-mini span,.rc-node small,.rc-terminal,.rc-insert>span,.rc-ledger span,.rc-travel>small,.rc-travel h4 span,.rl-list small,.rl-count,.rr-metrics small,.rr-item-head small,.rr-list dt,.rr-legs small,.rr-change-list small,.cf-card header small,.cf-card dt,.seq-summary span,.erm-reference-class span,.erm-rating-state>span,.erm-rating-state small,.desk-stat span) {
    color: var(--pc-muted);
  }
  body.planner-charcoal :is(.kit-total strong,.kit-lengths strong,.reeving-overview>div,.studio-stats b,.studio-preset-grid strong,.studio-roadmap b,.access-readout b,.site-stat-grid strong,.rw-stats strong,.rr-metrics strong,.rr-list dd,.cf-card dd,.erm-reference-class strong,.erm-rating-state strong) { color: var(--pc-text); }
  body.planner-charcoal :is(.kit-table th,.studio-content th,.site-table thead th,.setup-library thead th,.rw-data thead th,.desk-table th,.fleet-table thead,.erm-comparison thead th) {
    background: #202227;
    color: #b8bbc3;
  }
  body.planner-charcoal :is(.kit-table td,.studio-content th,.studio-content td,.site-table td,.setup-library td,.setup-library tbody th,.rw-data td,.rw-data tbody th,.desk-table td,.fleet-table td,.fleet-table th,.erm-comparison td,.erm-comparison th) { border-color: var(--pc-line); }
  body.planner-charcoal :is(.studio-content td,.fleet-table td,.erm-comparison td) { color: #d5d7dc; }
  body.planner-charcoal :is(.reference-link,.data-card a,.rigging-workbench a,.studio-content a,.planning-desk a,.fleet-details a,.equipment-roadmap-dialog a,.setup-library table a,.equipment-controls a,.project-library-link) { color: #c6cfde; }
  body.planner-charcoal .rw-note { color: var(--pc-muted)!important; }
  body.planner-charcoal .rigging-workbench .rw-footer {
    background: var(--pc-surface);
    border-color: var(--pc-line);
  }
  body.planner-charcoal .rc-symbol {
    background: #35383f;
    color: #e1e4eb;
    border-color: #505662;
  }
  body.planner-charcoal :is(.rr-result-count,.rr-selected) { color: var(--pc-muted)!important; }
  body.planner-charcoal .staged-config-body>nav {
    background: var(--pc-surface);
    border-color: var(--pc-line);
  }
  body.planner-charcoal .staged-config-body>nav [aria-pressed=true] {
    background: #3c3f47; color: #fff; border-color: transparent;
    box-shadow: inset 2px 0 #d4c7ad;
  }
  body.planner-charcoal .staged-crane-editor :is(label,header small) { color: var(--pc-muted); }
  body.planner-charcoal .staged-crane-editor .setup-editor { background: var(--pc-surface); }
  body.planner-charcoal :is(.handling-panel,.site-manager,.staged-crane-editor) :is(label,legend,dt,p,article small) { color: var(--pc-muted); }
  body.planner-charcoal .site-manager .coordination-only-badge,
  body.planner-charcoal .site-manager .assignment-kept { color: #e2b88a; font-weight: 700; }
  body.planner-charcoal dialog.assignment-coordination-confirm { border-color: #825c40; }
  body.planner-charcoal dialog.assignment-coordination-confirm :is(h4,p) { color: #e2b88a; }
  body.planner-charcoal :is(.handling-panel,.site-manager,.staged-crane-editor) :is(details,fieldset,form,article,td,th) { border-color: var(--pc-line); }
  body.planner-charcoal :is(.handling-panel,.site-manager,.staged-crane-editor) :is(summary,dd,article strong) { color: var(--pc-text); }
  body.planner-charcoal .handling-panel th { background: var(--pc-raised); color: #b8bbc3; }
  body.planner-charcoal .handling-panel a { color: #c6cfde; }

  /* These containers communicate a blocked move or an unreviewed wind state. */
  body.planner-charcoal .upending-block {
    background: #372d21;
    border-color: #d19b58;
  }
  body.planner-charcoal .upending-block strong { color: #eac99c; }
  body.planner-charcoal .upending-block p { color: #c2b5a4; }
  body.planner-charcoal .weather-readout.review { background: #30271f; border-color: #825c40; }
  body.planner-charcoal .weather-readout.review strong { color: #e2b88a; }
  body.planner-charcoal .weather-readout.review p { color: #c6b49e; }

  /* Demo guides and route authoring are also reachable from the planner. */
  body.planner-charcoal :is(.tank-demo-bar,.scenario-guide,.travel-playback,.ui-notice,.seq-status,.library-impact,.scenario-grid article) {
    background: var(--pc-raised);
    color: var(--pc-muted);
    border-color: var(--pc-line);
  }
  body.planner-charcoal :is(.tank-demo-bar button,.tank-demo-bar nav a,.scenario-guide button,.scenario-grid a,.tank-hold-actions a,.setup-library-launch button,.connection-route button) {
    background: #303238;
    color: #e1e3e7;
    border-color: transparent;
  }
  body.planner-charcoal :is(.tank-demo-bar nav [aria-current],.tank-demo-actions [data-demo-play],.route-scene-actions button[aria-pressed=true],.route-assistant button[data-route-action=apply-route]) {
    background: #42464f;
    border-color: #606672;
    color: #fff;
  }
  body.planner-charcoal :is(.tank-demo-title small,.tank-transfer small,.tank-demo-title p,.tank-demo-bar nav b,.tank-demo-bar details,.tank-demo-bar summary,.tank-current small,.tank-transfer p,.tank-transfer li,.scenario-library small,.scenario-library p,.scenario-grid ol,.scenario-library footer,.scenario-guide summary>span,.scenario-guide summary>small,.scenario-guide p,.travel-demo-launch span,.equipment-travel p,.equipment-travel small,.equipment-travel label,.travel-playback span,.route-scene-panel p,.route-scene-panel small,.library-impact p) { color: var(--pc-muted); }
  body.planner-charcoal :is(.tank-current>strong,.library-impact strong) { color: var(--pc-text); }
  body.planner-charcoal :is(.travel-layout>aside,.route-scene-results,.route-assistant,.seq-layout>nav,.book-tabs,.book-notice,.library-header,.library-notice,.library-metadata,.erm-specs>div,.erm-detail-section,.erm-source-list li,.erm-results-bar,.erm-milestones>div) { border-color: var(--pc-line); }
  body.planner-charcoal .travel-layout>aside { background: #151619; }

  /* Floating menus share the homepage's restrained translucent treatment. */
  body.planner-charcoal :is(.workspace-menu>div,.site-command-menu>div,.transform-exact>div,.site-load-menu,.plant-guide-details,.floor-view-panel,.indoor-review,.indoor-lift-panel,.wrap-quick,.lug-quick,.site-tool-rail,.map-tag,.site-load-placement,.scene-connect-bar,.scene-connect-note,.route-scene-panel) {
    background: var(--pc-glass);
    color: var(--pc-text);
    border-color: rgba(255,255,255,.12);
    box-shadow: 0 8px 30px #0005;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  body.planner-charcoal .floor-view-panel header { background: var(--pc-surface); }
  body.planner-charcoal .route-scene-panel header { background: var(--pc-surface); }
  body.planner-charcoal .site-load-panel>header {
    background: var(--pc-surface);
    box-shadow: 0 -12px 0 var(--pc-surface);
  }
  body.planner-charcoal :is(.floor-view-panel p,.floor-view-panel fieldset>small,.floor-list small,.floor-view-panel legend,.transform-exact small,.plant-guide-details small,.map-tag span:last-child,.indoor-review small,.indoor-review p,.indoor-review-metrics span,.indoor-lift-panel small,.il-help,.wrap-quick small,.lug-body>small,.lug-heading small,.scene-connect-bar span) { color: var(--pc-muted); }
  body.planner-charcoal :is(.floor-view-panel fieldset,.indoor-review-metrics,.scene-dock>.selection-bar) { border-color: var(--pc-line); }
  body.planner-charcoal :is(.floor-view-panel,.indoor-review,.indoor-lift-panel,.wrap-quick,.lug-quick) :is(button,input:not([type=range]):not([type=checkbox]),select) {
    background: var(--pc-raised);
    color: var(--pc-text);
    border-color: rgba(255,255,255,.12);
  }
  body.planner-charcoal :is(.floor-view-launch.active,.lug-axis button[aria-pressed=true],.indoor-demo-stages button[aria-pressed=true]) {
    background: #3c3f47;
    color: #fff;
    border-color: #606672;
  }

  /* Handoff data stays neutral on screen; the print palette is untouched. */
  body.planner-charcoal :is(.metrics,.data-card,section.review,.scan-result) {
    background: var(--pc-surface);
    border-color: var(--pc-line);
    box-shadow: none;
  }
  body.planner-charcoal :is(.metric,.data-card dl>div) { border-color: var(--pc-line); }
  body.planner-charcoal :is(.metric small,.metric strong span,.metric em,section.review p,.detail-title p,.data-card p,.data-card small,.data-card dt,.profile-caption) { color: var(--pc-muted); }
  body.planner-charcoal :is(.metric strong,.metric:first-child strong,section.review h2,.detail-title h2,.data-card h3,.data-card dd,.scan-heading h3,.scan-metrics strong) { color: var(--pc-text); }
  body.planner-charcoal #toast { background: #30333a; color: #f1f1f2; border-color: #525864; }

  /* Camera mode hides editing handles; Select retains direct building handles. */
  body.planner-charcoal #drawing[data-interaction=navigate] .scene-site-overlay,
  body.planner-charcoal #drawing[data-interaction=navigate] .scene-site-overlay * { visibility:hidden!important; pointer-events:none!important; }
  body.planner-charcoal #drawing:is([data-interaction=navigate],[data-interaction=select]) :is(.pose-overlay,.crane-gizmo,.gizmo-bar,.equipment-pivot-controls,.lug-controls,.wrap-controls,.scene-transform-overlay),
  body.planner-charcoal #drawing:is([data-interaction=navigate],[data-interaction=select]) :is(.pose-overlay,.crane-gizmo,.gizmo-bar,.equipment-pivot-controls,.lug-controls,.wrap-controls,.scene-transform-overlay) * {
    visibility: hidden!important; pointer-events: none!important;
  }
  body.planner-charcoal #drawing[data-interaction=navigate] :is(canvas,#scene) { cursor: grab; }
  body.planner-charcoal #drawing[data-interaction=navigate] :is(canvas,#scene):active { cursor: grabbing; }
  body.planner-charcoal .scene-interaction-modes { display: flex; gap: 3px; flex-wrap: wrap; }
  body.planner-charcoal .scene-interaction-modes button { padding: 6px 10px; min-height: 30px; font-size: 11px; }
  body.planner-charcoal .scene-interaction-modes button[aria-pressed=true] { background: #464951; color: #fff; box-shadow: inset 0 -2px #dcc293; }
  body.planner-charcoal .scene-interaction-help { display: block; color: #b6bac3; font-size: 10px; line-height: 1.4; margin: 4px 0 8px; }

  /* Mobile sheets move existing panels rather than introducing another theme. */
  @media (max-width:900px) {
    body.planner-charcoal.mobile-workspace .mobile-sheet {
      background: var(--pc-surface);
      color: var(--pc-text);
      border-color: rgba(255,255,255,.12);
    }
    body.planner-charcoal .mobile-sheet :is(aside,.scene-dock,.workflow-launch,.workspace-tools,.camera-tools) { background: transparent; }
    body.planner-charcoal .mobile-sheet .tabs { background: var(--pc-surface); }
    body.planner-charcoal :is(.mobile-sheet-heading small,.mobile-touch-hint) { color: var(--pc-muted); }
    body.planner-charcoal .mobile-sheet .selection-bar { background: var(--pc-raised); border-color: transparent; }
    body.planner-charcoal .mobile-sheet .project-library-link { background: var(--pc-raised); border-color: transparent; }
  }
  @media (prefers-reduced-transparency: reduce) {
    body.planner-charcoal :is(dialog,.unified-inspector,.site-load-panel,.floor-view-panel,.lug-quick,.wrap-quick,.workspace-menu>div,.site-command-menu>div,.transform-exact>div,.site-load-menu,.plant-guide-details,.indoor-review,.indoor-lift-panel,.site-tool-rail,.route-scene-panel) {
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
    }
  }
}
