/* Dusk instruments: the same data and interactions, on a quieter evening desk.
   Only palette changes live here; chart geometry, animation and layout stay shared. */

/* Workbench --------------------------------------------------------------- */
html[data-theme="dusk"] .lab-section { color: #eeeade; background: #1c382f; }
html[data-theme="dusk"] .lab-section .section-heading h2 { color: #eeeade; }
html[data-theme="dusk"] .lab-section .section-heading h2 em { color: #e4d6ad; }
html[data-theme="dusk"] #interactive-lab {
  --lab-paper: #1b3630;
  --lab-ink: #eeeade;
  --lab-forest: #203e36;
  --lab-lime: #d8bd86;
  --lab-rule: #3b534b;
  --lab-muted: #aebbb0;
  color: #eeeade;
}
html[data-theme="dusk"] .lab-shell { background: #172f29; border-color: #486254; }
html[data-theme="dusk"] .lab-section .lab-shell { border-color: #486254; border-top-color: #9aab8d; }
html[data-theme="dusk"] .lab-section .lab-panel { background: linear-gradient(135deg, #1b3630, #172f29); }
html[data-theme="dusk"] .lab-section .lab-tabs { background: #1b3630; }
html[data-theme="dusk"] .lab-tab { background: #1b3630; color: #aebbb0; }
html[data-theme="dusk"] .lab-tab[aria-selected="true"] { background: #2b4b3f; color: #eeeade; box-shadow: inset 0 -2px #d8bd86; }
html[data-theme="dusk"] .lab-tab[aria-selected="true"] span { color: #d8bd86; }
html[data-theme="dusk"] .lab-tab:hover:not([aria-selected="true"]) { background: #254339; color: #eeeade; }
html[data-theme="dusk"] #interactive-lab :focus-visible { outline-color: #d8bd86; }
html[data-theme="dusk"] .lab-tab:focus-visible { outline-color: #d8bd86 !important; }
html[data-theme="dusk"] .lab-origin { background: #203a30; }
html[data-theme="dusk"] .lab-panel-top { background: #203e36; border-color: #3b534b; }
html[data-theme="dusk"] .lab-kicker { color: #b2c1ad; }
html[data-theme="dusk"] .lab-tag { background: #172f29; border-color: #526a58; }
html[data-theme="dusk"] .lab-tag::before { background: #b6c593; }
html[data-theme="dusk"] :is(.lab-chart-wrap, .lab-plan) { background: #142e27; border-color: #3b534b; }
html[data-theme="dusk"] :is(.lab-compute-summary, .lab-graph-controls) { background: #254339; border-color: #486254; }
html[data-theme="dusk"] .lab-gridline { stroke: #3b534b; }
html[data-theme="dusk"] .lab-axis { fill: #aebbb0; }
html[data-theme="dusk"] .lab-key-a { background: #94afa0; }
html[data-theme="dusk"] .lab-key-b { background: #d8bd86; }
html[data-theme="dusk"] .lab-bar-a { fill: #94afa0; }
html[data-theme="dusk"] .lab-bar-b { fill: #d8bd86; }
html[data-theme="dusk"] .lab-finding strong { color: #e3cea1; }
html[data-theme="dusk"] .lab-button-primary { background: #d8bd86; border-color: #d8bd86; color: #19382f; }
html[data-theme="dusk"] .lab-button-primary span { color: #19382f; }
html[data-theme="dusk"] .lab-button-primary:hover { background: #e6cf9f; border-color: #e6cf9f; }
html[data-theme="dusk"] .lab-button-quiet { border-color: #66806e; }
html[data-theme="dusk"] .lab-button-quiet:hover { background: #314e40; }
html[data-theme="dusk"] .lab-footnote { background: #1b3630; border-color: #3b534b; }
html[data-theme="dusk"] .lab-graph-stage {
  background-color: #142e27;
  background-image: radial-gradient(#486254 .65px, transparent .65px);
  border-color: #3b534b;
}
html[data-theme="dusk"] .lab-graph-edge { stroke: #456052; }
html[data-theme="dusk"] .lab-graph-edge-active { stroke: #aac3a4; }
html[data-theme="dusk"] .lab-node > circle:first-child { fill: #29473e; stroke: #78907e; }
html[data-theme="dusk"] .lab-node-core { fill: #9cb2a2; }
html[data-theme="dusk"] .lab-node-reached > circle:first-child { fill: #94afa0; stroke: #c0d1b7; }
html[data-theme="dusk"] .lab-node-reached .lab-node-core { fill: #203e36; }
html[data-theme="dusk"] .lab-node-start > circle:first-child { fill: #d8bd86; stroke: #ebd8af; }
html[data-theme="dusk"] .lab-node-start .lab-node-core { fill: #203e36; }
html[data-theme="dusk"] .lab-node-name { fill: #eeeade; }
html[data-theme="dusk"] .lab-node-type { fill: #aebbb0; }
html[data-theme="dusk"] .lab-choice { border-color: #66806e; }
html[data-theme="dusk"] .lab-choice[aria-pressed="true"] { color: #19382f; background: #d8bd86; border-color: #d8bd86; }
html[data-theme="dusk"] .lab-choice:hover { border-color: #d8bd86; }
html[data-theme="dusk"] .lab-entity-list .lab-source-entity { color: #e3cea1; border-color: #a18e65; }
html[data-theme="dusk"] .lab-plan-table :is(th, td) { border-color: #3b534b; }
html[data-theme="dusk"] .lab-plan-table input { color: #eeeade; background: #122b28; border-color: #78907e; }
html[data-theme="dusk"] .lab-row-changed input { color: #f2dfb6; background: #354734; border-color: #d8bd86; }
html[data-theme="dusk"] .lab-plan-table input[aria-invalid="true"] { color: #ffd6c1; border-color: #dc9679; background: #4d342b; }
html[data-theme="dusk"] .lab-sql { background: #112d25; border-color: #526a5c; }

/* The published studies already use forest and brass. Keep their data
   vocabulary intact, and let the surrounding dusk surface frame them. */
html[data-theme="dusk"] .bench-instrument {
  --bench-gold: #dcc18a;
  --bench-muted: #bbccbd;
  --bench-rule: #b4c8b43d;
  background: linear-gradient(125deg, #24483d, #193b33);
}
html[data-theme="dusk"] #mercedes .case-art.signal-study {
  --signal-gold: #dcc18a;
  --signal-muted: #b5c9bd;
  --signal-line: #a6bba13d;
  background: linear-gradient(135deg, #24493f, #193b33 72%);
}
html[data-theme="dusk"] .plan-instrument {
  --plan-gold: #dcc18a;
  --plan-muted: #b5c9bd;
  --plan-rule: #a6bba13d;
  background: linear-gradient(135deg, #24493f, #193b33 72%);
}
html[data-theme="dusk"] .project-panel :is(.bench-instrument, .plan-instrument),
html[data-theme="dusk"] #mercedes .case-art.signal-study { border-color: #526a58; }

/* The editable planning ledger becomes an ink-dark inset, without altering
   the gold draft / sage baseline encoding or guided-tour emphasis. */
html[data-theme="dusk"] .plan-editor { background: #172f29; color: #eeeade; border-color: #68806c; box-shadow: 0 6px 18px #061b1420; }
html[data-theme="dusk"] .plan-editor-heading { border-color: #3b534b; }
html[data-theme="dusk"] :is(.plan-editor-heading > span, .plan-table thead th, .plan-product-meta, .plan-editor > p) { color: #b4c3b1; }
html[data-theme="dusk"] .plan-table tbody :is(th, td) { border-color: #3b534b; }
html[data-theme="dusk"] .plan-table input { color: #eeeade; background: #102822; border-color: #78907e; }
html[data-theme="dusk"] .plan-table input:focus-visible,
html[data-theme="dusk"] .plan-editor .plan-actions button:focus-visible { outline-color: #dcc18a; }
html[data-theme="dusk"] .plan-table input[aria-invalid="true"] { color: #ffd6c1; border-color: #dc9679; background: #4d342b; }
html[data-theme="dusk"] .plan-input-error { color: #f3b99d; }
html[data-theme="dusk"] .plan-table [data-plan-delta] { color: #e3cea1; }
html[data-theme="dusk"] .plan-table tr[data-plan-changed="true"] { background: #d5ddc80b; }
html[data-theme="dusk"] .plan-editor .plan-actions { border-color: #3b534b; }
html[data-theme="dusk"] .plan-editor .plan-actions button { color: #eeeade; border-color: #66806e; }
html[data-theme="dusk"] .plan-editor .plan-actions :is([data-plan-review], [data-plan-record]:not(:disabled)) { color: #1a3d31; border-color: #dcc18a; }
html[data-theme="dusk"] .plan-editor .plan-action-note { color: #b4c3b1; }
html[data-theme="dusk"] .plan-editor .plan-notice { color: #c8d7c3; }
html[data-theme="dusk"] .plan-instrument[data-plan-tour-step="edit"] [data-plan-input="0"] { border-color: #d8bd86; background: #354734; box-shadow: 0 0 0 3px #d8bd8628; }
html[data-theme="dusk"] .plan-instrument[data-plan-tour-step="review"] .plan-notice { color: #e3cea1; }

/* Benchmarking: engagement selection and its working notebook. */
html[data-theme="dusk"] .interaction-cue { color: #b4c3b1; }
html[data-theme="dusk"] .engagement-option { background: #172f29; border-top-color: #78907e; }
html[data-theme="dusk"] .engagement-option[aria-pressed="true"] { background: #2a473b; border-top-color: #d8bd86; }
html[data-theme="dusk"] .engagement-option:hover:not(:disabled) { background: #2e4c40; }
html[data-theme="dusk"] .engagement-number { color: #d8bd86; }
html[data-theme="dusk"] .engagement-option-foot { color: #b4c3b1; }
html[data-theme="dusk"] .engagement-notebook { background: #1b3630; border-color: #486254; }
html[data-theme="dusk"] .engagement-notebook::before { opacity: .16; }
html[data-theme="dusk"] .brief-notes > div { border-color: #486254; }
html[data-theme="dusk"] .brief-notes dt { color: #d8bd86; }
html[data-theme="dusk"] .brief-notes dd { color: #c5d0c1; }

/* Illustrative model: preserve the explicit A/B labels and distinctive bars. */
html[data-theme="dusk"] .benchmark-method { background: linear-gradient(180deg, #19352d, #152f29); }
html[data-theme="dusk"] .model-sheet { background: #172f29; border-color: #58705d; box-shadow: 0 10px 28px -23px #061b14; }
html[data-theme="dusk"] .model-sheet-heading { background: #254339; }
html[data-theme="dusk"] :is(.model-sheet-heading > .mono, .model-disclosure) { color: #c0cdb9; }
html[data-theme="dusk"] .model-inputs h3 em { color: #9fc0ba; }
html[data-theme="dusk"] .model-inputs > p:not(.mono):not(.model-small) { color: #b4c3b1; }
html[data-theme="dusk"] .mix-label output { color: #d8bd86; }
html[data-theme="dusk"] #workload-mix { accent-color: #d8bd86; }
html[data-theme="dusk"] :is(.mix-endpoints, .model-small, .model-reset) { color: #aebbb0; }
html[data-theme="dusk"] .model-metrics button { color: #c1cebb; }
html[data-theme="dusk"] .model-metrics button[aria-pressed="true"] { background: #d8bd86; border-color: #d8bd86; color: #19382f; }
html[data-theme="dusk"] .model-metrics button:hover:not(:disabled) { border-color: #d8bd86; }
html[data-theme="dusk"] .model-plot figcaption { color: #c1cebb; }
html[data-theme="dusk"] .model-bars {
  background: repeating-linear-gradient(90deg, transparent 0, transparent calc(20% - 1px), #48625466 calc(20% - 1px), #48625466 20%);
  border-color: #58705d;
}
html[data-theme="dusk"] .model-track { background: #b5c9bd14; }
html[data-theme="dusk"] .model-track i { background: #9fc0ba; }
html[data-theme="dusk"] #model-bar-b { background: #d8bd86; }
html[data-theme="dusk"] :is(#model-scale, #model-context) { color: #b4c3b1; }
html[data-theme="dusk"] .model-annotation { border-color: #d8bd86; }
html[data-theme="dusk"] .model-assumptions summary > span { color: #b4c3b1; }
html[data-theme="dusk"] .model-assumptions-content { background: #203e36; }
html[data-theme="dusk"] .model-assumptions-content p { color: #c1cebb; }
html[data-theme="dusk"] .model-takeaway { color: #c1cebb; }

/* Small deliverable previews are still documents, with muted illuminated ink. */
html[data-theme="dusk"] .artifact-preview { color: #b4c3b1; background: #203e36; border-color: #58705d; box-shadow: 3px 3px 0 #304e40; }
html[data-theme="dusk"] .artifact-preview b { color: #c1cebb; }
html[data-theme="dusk"] .artifact-preview small { color: #aebbb0; }
html[data-theme="dusk"] .artifact-preview i { background: #66806e; }
html[data-theme="dusk"] .artifact-preview svg { stroke: #94afa0; }
html[data-theme="dusk"] .artifact-preview .artifact-bar { stroke: #d8bd86; }
html[data-theme="dusk"] .kit-preview { background: #254339; }
html[data-theme="dusk"] .kit-preview b { color: #c1cebb; }

@media (max-width: 560px) {
  html[data-theme="dusk"] .benchmark-page .engagement-option[aria-pressed="true"] { border-top-color: #3b534b; border-left-color: #d8bd86; }
}
