/* GENERATED by tools/gen_dark_css.py from the pages' own CSS — do not edit by hand.
   Hand-written dark rules: static/css/dark.css. Re-run the tool after changing a page's CSS. */

/* templates/_part_card.html */
html[data-theme="dark"] .plink { color:#7897ed; }
html[data-theme="dark"] .plink:hover { color:#9aafe9; }
html[data-theme="dark"] #partCardOv .box { background:#111b2e; color:#f1f5f9; }
html[data-theme="dark"] #partCardOv .body + .body { border-top:2px solid #475569; }
html[data-theme="dark"] #partCardOv .body h4 { color:#9aafe9; }
html[data-theme="dark"] #partCardOv .body { background:#0f1a2e; }
html[data-theme="dark"] #partCardOv .photo { background:#111b2e; border:1px solid #475569; }
html[data-theme="dark"] #partCardOv dl { background:#111b2e; border:1px solid #475569; }
html[data-theme="dark"] #partCardOv dl > div { border-bottom:1px solid #334155; }
html[data-theme="dark"] #partCardOv dt { color:#b4c0cf; }

/* templates/_part_tools.html */
html[data-theme="dark"] #dupOv .box, html[data-theme="dark"] #cfxOv .box { background:#0f1a2e; color:#f1f5f9; }
html[data-theme="dark"] .dup-group { background:#111b2e; border:1px solid #475569; }
html[data-theme="dark"] .dup-head { border-bottom:1px solid #475569; }
html[data-theme="dark"] .dup-head.likely { background:rgba(232,48,48,0.16); color:#e89b9b; }
html[data-theme="dark"] .dup-head.possible { background:rgba(232,195,48,0.26); color:#f1b592; }
html[data-theme="dark"] .dup-hints { color:#f1f5f9; background:#0f1a2e; border-bottom:1px solid #334155; }
html[data-theme="dark"] .dup-part { border:1px solid #475569; }
html[data-theme="dark"] .dup-photo { background:#0f1a2e; border-bottom:1px solid #334155; }
html[data-theme="dark"] .dup-part dl > div { border-bottom:1px solid #263449; }
html[data-theme="dark"] .dup-part dt { color:#b4c0cf; }
html[data-theme="dark"] .dup-part .diff { background:rgba(232,216,48,0.26); }
html[data-theme="dark"] .dup-keep { background:#0f1a2e; border-bottom:1px solid #334155; }
html[data-theme="dark"] .dup-part:has(.dup-keep input:checked) .dup-keep { background:rgba(48,127,232,0.26); color:#9aafe9; }
html[data-theme="dark"] .dup-btn { background:#111b2e; color:#f1f5f9; }
html[data-theme="dark"] .dup-btn:hover { background:#0f1a2e; }
html[data-theme="dark"] .cfx-card { background:#111b2e; border:1px solid #475569; }
html[data-theme="dark"] .cfx-table th { color:#b4c0cf; border-bottom:1px solid #475569; }
html[data-theme="dark"] .cfx-table td { border-bottom:1px solid #334155; }
html[data-theme="dark"] .cfx-table tr.conflict td { background:rgba(232,216,48,0.26); }
html[data-theme="dark"] .cfx-table tr.done td { background:rgba(48,232,112,0.26); }
html[data-theme="dark"] .cfx-table tr.fail td { background:rgba(232,48,48,0.16); }
html[data-theme="dark"] .cfx-table input[type=text] { border:1px solid #475569; }

/* templates/_stock_move.html */
html[data-theme="dark"] #smvOv .box { background:#0f1a2e; color:#f1f5f9; }
html[data-theme="dark"] #smvOv .card { background:#111b2e; border:1px solid #475569; }
html[data-theme="dark"] #smvOv label.smv-l { color:#b4c0cf; }
html[data-theme="dark"] #smvOv input[type=text], html[data-theme="dark"] #smvOv input[type=number], html[data-theme="dark"] #smvOv select { border:1px solid #475569; background:#111b2e; color:#f1f5f9; }
html[data-theme="dark"] #smvOv .smv-step { border:1px solid #475569; background:#111b2e; color:#f1f5f9; }
html[data-theme="dark"] #smvOv .smv-btn { border:1px solid #475569; background:#111b2e; color:#f1f5f9; }
html[data-theme="dark"] #smvOv .smv-chip { border:1px solid #475569; background:#111b2e; color:#f1f5f9; }
html[data-theme="dark"] #smvOv .smv-note { color:#f1f5f9; background:rgba(48,129,232,0.16); }
html[data-theme="dark"] #smvOv .smv-warn { background:rgba(232,195,48,0.26); }
html[data-theme="dark"] #smvOv .smv-msg-err { color:#e89b9b; background:rgba(232,48,48,0.16); }
html[data-theme="dark"] #smvOv .smv-msg-ok { color:#9ce7ba; background:rgba(48,232,112,0.26); }

/* templates/_supplier_suggest.html */
html[data-theme="dark"] #ssOv .box { background:#0f1a2e; color:#f1f5f9; }
html[data-theme="dark"] .ss-group { background:#111b2e; border:1px solid #475569; }
html[data-theme="dark"] .ss-ghead .ss-gn { border:1px solid #263449; }
html[data-theme="dark"] .ss-table td { border-bottom:1px solid #334155; }
html[data-theme="dark"] .ss-table tr.ss-on td { background:rgba(232,195,48,0.16); }
html[data-theme="dark"] .ss-pn { color:#b4c0cf; }
html[data-theme="dark"] .ss-make { background:#1a2740; color:#f1f5f9; }
html[data-theme="dark"] .ss-sel { border:1px solid #475569; background:#111b2e; color:#f1f5f9; }
html[data-theme="dark"] .ss-why { color:#b4c0cf; }
html[data-theme="dark"] .ss-x { border:1px solid #475569; background:#111b2e; color:#e2e8f0; }
html[data-theme="dark"] .ss-x:hover { background:rgba(232,48,48,0.16); color:#ed9797; }
html[data-theme="dark"] .ss-primary { background:#111b2e; color:#f4b68f; }
html[data-theme="dark"] .ss-ghost { border:1px solid #263449; }
@media (max-width: 767px) { html[data-theme="dark"] .ss-table tr { border-bottom:1px solid #334155; } }

/* templates/_wo_panel.html */
html[data-theme="dark"] #woPanel label { color:#e2e8f0; }
html[data-theme="dark"] #woPanel input[type=text], html[data-theme="dark"] #woPanel input[type=number], html[data-theme="dark"] #woPanel select, html[data-theme="dark"] #woPanel textarea { border:1px solid #475569; color:#f1f5f9; background:#111b2e; }
html[data-theme="dark"] #woPanel h4 { color:#f1f5f9; border-top:1px solid #334155; }
html[data-theme="dark"] .wp-btn { border:1px solid #475569; background:#111b2e; color:#f1f5f9; }
html[data-theme="dark"] .wp-btn:hover { background:#0f1a2e; }
html[data-theme="dark"] .wp-task { border:1px solid #334155; }
html[data-theme="dark"] .wp-task.done { background:#0f1a2e; }
html[data-theme="dark"] .wp-meta { color:#b4c0cf; }

/* templates/base.html */
html[data-theme="dark"] .sophisticated-card { border-color:#334155 !important; }
html[data-theme="dark"] .panel { background:#111b2e; border:1px solid #334155; }
html[data-theme="dark"] .panel-head { background:#0f1a2e; border-bottom:1px solid #334155; color:#e2e8f0; }
html[data-theme="dark"] .soft-row { border-bottom:1px solid #334155; }
html[data-theme="dark"] main table thead th { background:#0f1a2e; color:#b4c0cf; border-bottom:1px solid #334155; }
html[data-theme="dark"] main table tbody tr { border-bottom:1px solid #334155; }
html[data-theme="dark"] main table tbody tr:hover { background-color:#0f1a2e; }

/* templates/compliance.html */
html[data-theme="dark"] .cp-tab { color:#b4c0cf; }
html[data-theme="dark"] .cp-tab.on { color:#9aafe9; }
html[data-theme="dark"] .cp-lbl { color:#b4c0cf; }
html[data-theme="dark"] .cp-in { border:1.5px solid #475569; color:#f1f5f9; background:#111b2e; }
html[data-theme="dark"] .cp-btn { border:1.5px solid #475569; background:#111b2e; color:#f1f5f9; }
html[data-theme="dark"] .cp-btn:hover { background:#0f1a2e; }
html[data-theme="dark"] .cp-table { color:#f1f5f9; }
html[data-theme="dark"] .cp-table th { color:#b4c0cf; background:#1a2740; }
html[data-theme="dark"] .cp-table td { border-top:1px solid #334155; }
html[data-theme="dark"] .cp-table tr:nth-child(even) td { background:#0f1a2e; }
html[data-theme="dark"] .b-signed { background:rgba(48,232,112,0.26); color:#9ce7ba; }
html[data-theme="dark"] .b-due { background:rgba(232,48,48,0.16); color:#ed9797; }
html[data-theme="dark"] .b-none { background:#1a2740; color:#e2e8f0; }
html[data-theme="dark"] .b-na { background:#0f1a2e; color:#94a3b8; }
html[data-theme="dark"] .b-void { background:rgba(232,195,48,0.26); color:#f1b592; }
html[data-theme="dark"] .muted { color:#b4c0cf; }
html[data-theme="dark"] .link { color:#7897ed; }
html[data-theme="dark"] .ap-list { border:1px solid #475569; background:#111b2e; }
html[data-theme="dark"] .ap-item { border-bottom:1px solid #263449; }
html[data-theme="dark"] .ap-item:hover { background:rgba(48,129,232,0.16); }
html[data-theme="dark"] .fb-field { border:1.5px solid #475569; background:#111b2e; }
html[data-theme="dark"] .fb-type { color:#9aafe9; }
html[data-theme="dark"] .fb-tools button { border:1px solid #475569; background:#111b2e; }
html[data-theme="dark"] .fb-tools button:hover { background:#0f1a2e; }
html[data-theme="dark"] .fb-add button { background:#0f1a2e; color:#f1f5f9; }
html[data-theme="dark"] .fb-add button:hover { background:rgba(48,129,232,0.16); }
html[data-theme="dark"] .fb-check { color:#f1f5f9; }
html[data-theme="dark"] .fb-preview { background:#1a2740; }
html[data-theme="dark"] .fb-list button { color:#f1f5f9; }
html[data-theme="dark"] .fb-list button:not(.on):hover { background:#0f1a2e; }
html[data-theme="dark"] .cp-dlg { background:#111b2e; }
@media (max-width: 767px) { html[data-theme="dark"] .cp-table tr { border:1px solid #334155; background:#111b2e; } }
@media (max-width: 767px) { html[data-theme="dark"] .cp-table td[data-label]::before { color:#b4c0cf; } }

/* templates/dashboard.html */
html[data-theme="dark"] .ht { background:#111b2e; border:1px solid #263449; }
html[data-theme="dark"] .ht h2 { color:#f1f5f9; }
html[data-theme="dark"] .ht p.ht-desc { color:#94a3b8; }
html[data-theme="dark"] .ht-minis { background:#1a2740; }
html[data-theme="dark"] #homeEditBtn { border:1.5px solid #475569; background:#111b2e; color:#e2e8f0; }
html[data-theme="dark"] #homeEditBtn:hover { background:rgba(48,129,232,0.16); color:#7897ed; }
html[data-theme="dark"] .ht-x { border:2px solid #263449; }
html[data-theme="dark"] .hd-box { background:#1a2740; }
html[data-theme="dark"] .hd-bar input { color:#f1f5f9; }
html[data-theme="dark"] .hd-row { background:#111b2e; border:1px solid #334155; }

/* templates/my_roster.html */
html[data-theme="dark"] .day-head { background:#0f1a2e; color:#e2e8f0; border-top:1px solid #334155; border-bottom:1px solid #334155; }
html[data-theme="dark"] .day-head.today { background:rgba(48,127,232,0.26); color:#97abed; }
html[data-theme="dark"] .job { border-bottom:1px solid #334155; background:#111b2e; }
html[data-theme="dark"] .job:hover { background:#0f1a2e; }
html[data-theme="dark"] .pill { background:#1a2740; color:#e2e8f0; }
html[data-theme="dark"] .pill.closed { background:rgba(48,232,112,0.26); color:#9ae9b8; }
html[data-theme="dark"] .pill.open { background:rgba(48,127,232,0.26); color:#97abed; }
html[data-theme="dark"] .pill.form-due { background:rgba(232,48,48,0.16); color:#ed9797; border:1px solid rgba(232,48,48,0.45); }
html[data-theme="dark"] .pill.form-ok { background:rgba(48,232,112,0.26); color:#9ce7ba; }
html[data-theme="dark"] .forms-due { background:rgba(232,150,48,0.16); }
html[data-theme="dark"] .forms-due .fd-row { border-top:1px solid rgba(232,147,48,0.45); }
html[data-theme="dark"] .sheet { background:#111b2e; color:#f1f5f9; }
html[data-theme="dark"] .sheet > .p-4 > .flex:first-child .btn-ghost { border-color:#263449; }
html[data-theme="dark"] .modal .box { background:#111b2e; color:#f1f5f9; }
html[data-theme="dark"] .ap-list { border:1px solid #334155; background:#111b2e; }
html[data-theme="dark"] .ap-item { border-bottom:1px solid #263449; }
html[data-theme="dark"] .ap-item:hover { background:rgba(48,129,232,0.16); }
html[data-theme="dark"] .ap-more { color:#94a3b8; }
html[data-theme="dark"] .rq-in { border:1.5px solid #475569; background:#111b2e; color:#f1f5f9; }
html[data-theme="dark"] .sheet select, html[data-theme="dark"] .sheet textarea, html[data-theme="dark"] .modal input, html[data-theme="dark"] .modal textarea { border-color:#475569; }
html[data-theme="dark"] .sheet .text-slate-400, html[data-theme="dark"] .modal .text-slate-400 { color:#94a3b8; }
html[data-theme="dark"] .sheet .text-slate-500, html[data-theme="dark"] .modal .text-slate-500 { color:#b4c0cf; }
html[data-theme="dark"] ::placeholder { color:#94a3b8; }
html[data-theme="dark"] .lbl { color:#b4c0cf; }
html[data-theme="dark"] .task { border:1.5px solid #475569; background:#0f1a2e; }
html[data-theme="dark"] .btn-ghost { border:1.5px solid #475569; color:#f1f5f9; background:#111b2e; }

/* templates/parts.html */
html[data-theme="dark"] .pm-thumb { background:#0f1a2e; }
html[data-theme="dark"] .pm-thumb-placeholder { background:#0f1a2e; }
html[data-theme="dark"] #pmTable th { background:#0f1a2e; }
html[data-theme="dark"] .pm-pencil:hover { color:#739bf2; background:rgba(48,129,232,0.16); }
html[data-theme="dark"] .pm-input { background:#111b2e; }
html[data-theme="dark"] .pm-save-btn { color:#93f0b6; }
html[data-theme="dark"] .pm-save-btn:hover { background:#0f1a2e; }
html[data-theme="dark"] .pm-cancel-btn { color:#ea7b7b; }
html[data-theme="dark"] .pm-cancel-btn:hover { background:#0f1a2e; }
html[data-theme="dark"] .pm-edit.pm-changed { background:rgba(48,129,232,0.16); }
html[data-theme="dark"] .pm-edit { border-color:#334155; }
html[data-theme="dark"] .pm-resize::after { background:#263449; }
html[data-theme="dark"] #dupOv .box, html[data-theme="dark"] #cfxOv .box { background:#0f1a2e; color:#f1f5f9; }
html[data-theme="dark"] .dup-group { background:#111b2e; border:1px solid #475569; }
html[data-theme="dark"] .dup-head { border-bottom:1px solid #475569; }
html[data-theme="dark"] .dup-head.likely { background:rgba(232,48,48,0.16); color:#e89b9b; }
html[data-theme="dark"] .dup-head.possible { background:rgba(232,195,48,0.26); color:#f1b592; }
html[data-theme="dark"] .dup-hints { color:#f1f5f9; background:#0f1a2e; border-bottom:1px solid #334155; }
html[data-theme="dark"] .dup-part { border:1px solid #475569; }
html[data-theme="dark"] .dup-photo { background:#0f1a2e; border-bottom:1px solid #334155; }
html[data-theme="dark"] .dup-part dl > div { border-bottom:1px solid #263449; }
html[data-theme="dark"] .dup-part dt { color:#b4c0cf; }
html[data-theme="dark"] .dup-part .diff { background:rgba(232,216,48,0.26); }
html[data-theme="dark"] .dup-keep { background:#0f1a2e; border-bottom:1px solid #334155; }
html[data-theme="dark"] .dup-part:has(.dup-keep input:checked) .dup-keep { background:rgba(48,127,232,0.26); color:#9aafe9; }
html[data-theme="dark"] .dup-btn { background:#111b2e; color:#f1f5f9; }
html[data-theme="dark"] .dup-btn:hover { background:#0f1a2e; }
html[data-theme="dark"] .cfx-card { background:#111b2e; border:1px solid #475569; }
html[data-theme="dark"] .cfx-table th { color:#b4c0cf; border-bottom:1px solid #475569; }
html[data-theme="dark"] .cfx-table td { border-bottom:1px solid #334155; }
html[data-theme="dark"] .cfx-table tr.conflict td { background:rgba(232,216,48,0.26); }
html[data-theme="dark"] .cfx-table tr.done td { background:rgba(48,232,112,0.26); }
html[data-theme="dark"] .cfx-table tr.fail td { background:rgba(232,48,48,0.16); }
html[data-theme="dark"] .cfx-table input[type=text] { border:1px solid #475569; }
@media (max-width: 767px) { html[data-theme="dark"] #pmTable tr.pm-row { border:1px solid #334155; background:#111b2e; } }
@media (max-width: 767px) { html[data-theme="dark"] #pmTable td::before { color:#94a3b8; } }
@media (max-width: 767px) { html[data-theme="dark"] #pmTable td:first-child { border-bottom:1px solid #334155 !important; } }
html[data-theme="dark"] #pmTableWrap { border:1px solid #334155; }
@media (min-width: 768px) { html[data-theme="dark"] #pmTable thead th { background:#0f1a2e; border-bottom:1px solid #334155; } }
@media (min-width: 768px) { html[data-theme="dark"] #pmTable tbody td { border-bottom:1px solid #334155; } }

/* templates/parts_stock.html */
html[data-theme="dark"] .sd-card { background:#111b2e; border:1px solid #334155; }
html[data-theme="dark"] .sd-metric .lbl { color:#b4c0cf; }
html[data-theme="dark"] .sd-metric .big { color:#f1f5f9; }
html[data-theme="dark"] .sd-tab { color:#e2e8f0; }
html[data-theme="dark"] .sd-tab:hover { background:rgba(48,92,232,0.16); color:#f1f5f9; }
html[data-theme="dark"] .sd-in { border:1px solid #475569; background:#111b2e; }
html[data-theme="dark"] .sd-table td { border-bottom:1px solid #334155; color:#f1f5f9; }
html[data-theme="dark"] .sd-table td.tick { border-right:1px solid #334155; }
html[data-theme="dark"] .sd-table tbody tr:hover { background:rgba(48,92,232,0.16); }
html[data-theme="dark"] .sd-table tr.ticked { background:rgba(48,90,232,0.26); }
html[data-theme="dark"] .sd-name { color:#f1f5f9; }
html[data-theme="dark"] button.sd-name:hover { color:#7897ed; }
html[data-theme="dark"] .sd-ref { background:rgba(48,90,232,0.26); color:#9aafe9; }
html[data-theme="dark"] .sd-tag { background:rgba(48,92,232,0.16); color:#a5a0e3; }
html[data-theme="dark"] .sd-bin { color:#94a3b8; }
html[data-theme="dark"] .sd-sup { background:rgba(48,127,232,0.26); color:#9aafe9; border:1px solid rgba(48,130,232,0.45); }
html[data-theme="dark"] .sd-stk { color:#b4c0cf; }
html[data-theme="dark"] .sd-stk b { color:#f1f5f9; }
html[data-theme="dark"] .sd-stk b.red { color:#ef9595; }
html[data-theme="dark"] .sd-stk b.green { color:#f1f5f9; }
html[data-theme="dark"] .sd-gauge { background:#1a2740; }
html[data-theme="dark"] .sd-step { border:1px solid #475569; background:#111b2e; }
html[data-theme="dark"] .sd-step button { color:#e2e8f0; background:#0f1a2e; }
html[data-theme="dark"] .sd-step button:hover { background:#1a2740; }
html[data-theme="dark"] .sd-step input { border-left:1px solid #334155; border-right:1px solid #334155; }
html[data-theme="dark"] .sd-kebab { color:#b4c0cf; }
html[data-theme="dark"] .sd-kebab:hover { background:#1a2740; color:#f1f5f9; }
html[data-theme="dark"] #sdMenu { background:#111b2e; border:1px solid #475569; }
html[data-theme="dark"] #sdMenu button, html[data-theme="dark"] #sdMenu a { color:#f1f5f9; }
html[data-theme="dark"] #sdMenu button:hover, html[data-theme="dark"] #sdMenu a:hover { background:rgba(48,92,232,0.16); }
html[data-theme="dark"] #sdMenu .danger { color:#ef9595; }
html[data-theme="dark"] .sd-table tr.grpfoot td { background:#0f1a2e; color:#b4c0cf; }
html[data-theme="dark"] .sd-table tr.grpfoot:hover { background:#0f1a2e; }
html[data-theme="dark"] .sd-table tr.grpfoot select { border:1px solid #475569; }
html[data-theme="dark"] .sd-thumb { border:1px solid #334155; background:#0f1a2e; }
html[data-theme="dark"] .ppencil { color:#94a3b8; }
html[data-theme="dark"] .ppencil:hover { color:#97abed; background:rgba(48,90,232,0.26); }
html[data-theme="dark"] .sd-shelf { background:rgba(48,232,193,0.26); color:#97ece7; }
html[data-theme="dark"] .sd-min { color:#b999eb; }
html[data-theme="dark"] #sdRows td.g-loc .ppencil, html[data-theme="dark"] #sdRows td.g-stk .ppencil { background:#111b2e; }
html[data-theme="dark"] #sdRows td.g-loc .ppencil:hover, html[data-theme="dark"] #sdRows td.g-stk .ppencil:hover { background:rgba(48,90,232,0.26); }
html[data-theme="dark"] .sd-table .pe.pchg, html[data-theme="dark"] .sd-field.pchg { background:rgba(232,216,48,0.26); }
html[data-theme="dark"] .sd-code { color:#b4c0cf; }
html[data-theme="dark"] .sd-loc { background:#1a2740; color:#f1f5f9; }
html[data-theme="dark"] .sd-act { color:#b4c0cf; }
html[data-theme="dark"] .sd-act:hover { background:#1a2740; color:#97abed; }
html[data-theme="dark"] .sd-pg { color:#e2e8f0; }
html[data-theme="dark"] .sd-pg:hover:not(:disabled) { background:#1a2740; }
html[data-theme="dark"] .sd-table tr.grp td { border-top:2px solid #263449; }
html[data-theme="dark"] .sd-table tr.grp .grp-n { border:1px solid #263449; }
html[data-theme="dark"] .sd-sechead { color:#f1f5f9; }
html[data-theme="dark"] .sd-sechead:hover { background:rgba(48,92,232,0.16); }
html[data-theme="dark"] .sd-hint { color:#94a3b8; }
html[data-theme="dark"] .sd-area-title { color:#f1f5f9; }
html[data-theme="dark"] .sd-btn { border:1px solid #475569; background:#111b2e; color:#f1f5f9; }
html[data-theme="dark"] .sd-btn:hover:not(:disabled) { background:#0f1a2e; }
html[data-theme="dark"] .sd-btn-green { color:#9ce7ba; }
html[data-theme="dark"] .sd-btn-green:hover { background:#0f1a2e !important; }
html[data-theme="dark"] .sd-field { border:1px solid #475569; background:#111b2e; color:#f1f5f9; }
html[data-theme="dark"] .sd-bar { border:1px solid #334155; background:#0f1a2e; color:#e2e8f0; }
html[data-theme="dark"] .sd-table tr.grp .grp-tools .exportbasket { border-color:#263449; }
html[data-theme="dark"] .sd-stick { background:#111b2e; }
html[data-theme="dark"] .or-areas { border-bottom:1px solid #334155; }
html[data-theme="dark"] .or-areas button { color:#b4c0cf; }
html[data-theme="dark"] .or-areas button:hover { color:#f1f5f9; }
html[data-theme="dark"] .or-areas button.on { color:#f1f5f9; }
html[data-theme="dark"] .or-chips button { border:1px solid #334155; color:#e2e8f0; background:#111b2e; }
html[data-theme="dark"] .or-chips button:hover { background:rgba(48,92,232,0.16); }
html[data-theme="dark"] .or-panel { background:#0f1a2e; border-left:1px solid #475569; }
html[data-theme="dark"] .or-panel h3 { color:#f1f5f9; }
html[data-theme="dark"] .or-panel .lbl { color:#b4c0cf; }
html[data-theme="dark"] .or-x, html[data-theme="dark"] .or-open { color:#94a3b8; }
html[data-theme="dark"] .or-x:hover, html[data-theme="dark"] .or-open:hover { background:#1a2740; color:#f1f5f9; }
html[data-theme="dark"] .sd-table tr.or-grp td { background:#0f1a2e; border-bottom:1px solid #334155; }
html[data-theme="dark"] .od-card { border:1px solid #475569; background:#111b2e; }
html[data-theme="dark"] .od-tog:hover { background:rgba(48,92,232,0.16); }
html[data-theme="dark"] .od-code { color:#f1f5f9; }
html[data-theme="dark"] .od-meta { color:#b4c0cf; }
html[data-theme="dark"] .od-f { color:#e2e8f0; }
html[data-theme="dark"] .od-f input { border:1px solid #475569; background:#111b2e; color:#f1f5f9; }
html[data-theme="dark"] .od-placed { color:#9aafe9; }
html[data-theme="dark"] .od-body { border-top:1px solid #334155; }
html[data-theme="dark"] .od-qty { border:1px solid #475569; }
html[data-theme="dark"] .od-foot { border-top:1px solid #334155; background:#0f1a2e; }
html[data-theme="dark"] .sd-table tr.sel td { background:rgba(48,90,232,0.26); }
html[data-theme="dark"] .or-steps button { color:#94a3b8; }
html[data-theme="dark"] .or-steps button::before { background:#263449; }
html[data-theme="dark"] .or-steps .dot { border:2px solid #475569; background:#111b2e; }
html[data-theme="dark"] .or-steps button.cur { color:#f1f5f9; }
html[data-theme="dark"] .or-steps button:not(:disabled):not(.cur):hover { color:#97abed; }
html[data-theme="dark"] .or-tag { background:rgba(232,195,48,0.26); color:#f4b68f; }
html[data-theme="dark"] .or-tag.reply { background:rgba(232,48,48,0.16); color:#ef9595; }
html[data-theme="dark"] .or-moved { color:#96eeb7; }
html[data-theme="dark"] .or-undo, html[data-theme="dark"] .or-link { color:#7897ed; }
html[data-theme="dark"] .or-g { color:#b4c0cf; }
html[data-theme="dark"] .or-g b { color:#f1f5f9; }
html[data-theme="dark"] .or-g b.red { color:#ef9595; }
html[data-theme="dark"] .or-g .bar { background:#1a2740; }
html[data-theme="dark"] .or-quiet { color:#b4c0cf; }
html[data-theme="dark"] .or-quiet b { color:#f1f5f9; }
html[data-theme="dark"] .or-thread .m { background:#111b2e; border:1px solid #334155; }
html[data-theme="dark"] .or-thread .m.me { background:rgba(48,90,232,0.26); border-color:rgba(48,85,232,0.45); }
html[data-theme="dark"] .or-thread .m .w { color:#94a3b8; }
html[data-theme="dark"] .or-thread .s { color:#94a3b8; }
html[data-theme="dark"] .or-mini th { color:#b4c0cf; border-bottom:1px solid #334155; }
html[data-theme="dark"] .or-mini td { border-bottom:1px solid #334155; }
@media screen and (max-width: 767px) { html[data-theme="dark"] .sd-table tr { border-bottom:1px solid #334155; } }
@media screen and (max-width: 767px) { html[data-theme="dark"] .sd-table td[data-label]::before { color:#b4c0cf; } }
@media screen and (max-width: 767px) { html[data-theme="dark"] .sd-table tr.grpfoot { background:#0f1a2e; } }

/* templates/roster.html */
html[data-theme="dark"] .text-slate-400 { color:#94a3b8 !important; }
html[data-theme="dark"] .text-slate-500 { color:#b4c0cf !important; }
html[data-theme="dark"] ::placeholder { color:#94a3b8 !important; }
html[data-theme="dark"] main input, html[data-theme="dark"] main select, html[data-theme="dark"] main textarea { border-color:#475569; color:#f1f5f9; }
html[data-theme="dark"] .day-header { background:#0f1a2e; color:#e2e8f0; border-top:1px solid #334155; border-bottom:1px solid #334155; }
html[data-theme="dark"] .roster-row { border-bottom:1px solid #334155; }
html[data-theme="dark"] .roster-row select, html[data-theme="dark"] .roster-row input { border:1px solid #334155; background:#111b2e; }
html[data-theme="dark"] .r-contractor { background:rgba(48,129,232,0.16) !important; }
html[data-theme="dark"] .roster-desc { color:#b4c0cf; }
html[data-theme="dark"] .roster-asset { color:#739bf2; }
html[data-theme="dark"] .roster-row:hover .cell-desc:not(:empty) .roster-desc { color:#f1f5f9; }
html[data-theme="dark"] .wo-pick:hover { background:#0f1a2e; }
html[data-theme="dark"] .wo-open { color:#7897ed; background:rgba(48,129,232,0.16); }
html[data-theme="dark"] .wo-open:hover { background:rgba(48,127,232,0.26); }
html[data-theme="dark"] .wo-form-sel { color:#e2e8f0; background:#111b2e; }
html[data-theme="dark"] .wo-form-sel.on { color:#ed9797; background:#0f1a2e !important; border-color:rgba(232,48,48,0.45) !important; }
html[data-theme="dark"] .wo-form-ok { color:#9ce7ba; background:rgba(48,232,112,0.26); }
html[data-theme="dark"] .row-remove:hover { color:#ea7b7b; background:#0f1a2e; }
html[data-theme="dark"] .roster-row.row-locked { background:rgba(232,215,48,0.16); }
html[data-theme="dark"] .roster-row.row-locked::after { color:#f9cc8b; }
html[data-theme="dark"] .pres-chip { color:#e2e8f0; background:#0f1a2e; border:1px solid #334155; }
html[data-theme="dark"] .pres-chip.pres-editing { background:rgba(232,216,48,0.26); color:#f3c590; }
html[data-theme="dark"] .week-lock { border:1px solid #334155; background:#0f1a2e; }
html[data-theme="dark"] .week-lock-hint { color:#94a3b8; }
html[data-theme="dark"] .unalloc-chip { border:1px solid #334155; }
html[data-theme="dark"] .chip-on { background:rgba(48,232,112,0.26); color:#96eeb7; border-color:rgba(50,231,113,0.45); }
html[data-theme="dark"] .chip-off { background:#111b2e; color:#94a3b8; }
html[data-theme="dark"] .tray-count { background:rgba(48,127,232,0.26); color:#7897ed; }
html[data-theme="dark"] .tray-count-warn { background:rgba(232,195,48,0.26); color:#f4b68f; }
html[data-theme="dark"] .tray-count-ready { background:rgba(48,232,112,0.26); color:#9ce7ba; }
html[data-theme="dark"] .ready-parts { color:#9ce7ba; }
html[data-theme="dark"] .carry-status { color:#e2e8f0; background:#0f1a2e; border:1px solid #334155; }
html[data-theme="dark"] .carry-last { color:#b4c0cf; }
html[data-theme="dark"] .carry-move { color:#7897ed; background:#111b2e; }
html[data-theme="dark"] .carry-move:hover { background:rgba(48,129,232,0.16); }
@media (max-width: 767px) { html[data-theme="dark"] .roster-row { border-bottom:1px solid #334155; } }
html[data-theme="dark"] #namePanel { background:#111b2e; border:1px solid #334155; }
html[data-theme="dark"] .np-head { background:#0f1a2e; border-bottom:1px solid #263449; }
html[data-theme="dark"] .np-row { color:#e2e8f0; }
html[data-theme="dark"] .np-row:hover { background:#0f1a2e; }
html[data-theme="dark"] .np-daily { color:#f9ba8b; background:rgba(232,195,48,0.26); }
html[data-theme="dark"] .np-other { color:#739bf2; background:rgba(48,129,232,0.16); }

/* templates/search.html */
html[data-theme="dark"] #browsePanel { background:#111b2e; }
html[data-theme="dark"] .browse-thumb { background:#0f1a2e; }
html[data-theme="dark"] .browse-thumb-placeholder { background:#0f1a2e; }
html[data-theme="dark"] .browse-row:hover { background:#0f1a2e; }
html[data-theme="dark"] .browse-letter-header { background:#0f1a2e; color:#94a3b8; }

/* templates/system_log.html */
html[data-theme="dark"] .sl-tab { color:#e2e8f0; border:1px solid #334155; background:#111b2e; }
html[data-theme="dark"] .sl-chip { border:1px solid #334155; background:#111b2e; color:#e2e8f0; }
html[data-theme="dark"] .sl-day { background:#0f1a2e; color:#e2e8f0; border-bottom:1px solid #334155; border-top:1px solid #334155; }
html[data-theme="dark"] .sl-row { border-bottom:1px solid #263449; }
html[data-theme="dark"] .sl-row:hover { background:#0f1a2e; }
html[data-theme="dark"] .sl-time { color:#b4c0cf; }
html[data-theme="dark"] .sl-error { background:rgba(232,48,48,0.16); color:#ed9797; }
html[data-theme="dark"] .sl-warning { background:rgba(232,195,48,0.26); color:#f4b68f; }
html[data-theme="dark"] .sl-info { background:rgba(48,90,232,0.26); color:#a5a0e3; }
html[data-theme="dark"] .sl-text { color:#f1f5f9; }
html[data-theme="dark"] .sl-meta { color:#94a3b8; }
html[data-theme="dark"] .sl-hint { color:#e2e8f0; background:#0f1a2e; }
html[data-theme="dark"] .sl-row.error .sl-hint { border-left-color:rgba(232,48,48,0.45); }
html[data-theme="dark"] .sl-det summary { color:#7897ed; }

/* templates/traceability.html */
html[data-theme="dark"] .prow { border-bottom:1px solid #334155; }
html[data-theme="dark"] .prow:hover { background:#0f1a2e; }
html[data-theme="dark"] .prow-ctl input, html[data-theme="dark"] .prow-ctl select { border:1px solid #334155; color:#f1f5f9; background:#111b2e; }
html[data-theme="dark"] .chip { background:#0f1a2e; color:#e2e8f0; }
html[data-theme="dark"] .chip-red { background:rgba(232,48,48,0.16); color:#ef9595; }
html[data-theme="dark"] .chip-amber { background:rgba(232,195,48,0.26); color:#f4b68f; }
html[data-theme="dark"] .flow-arrow { color:#b4c0cf; }
html[data-theme="dark"] .pg { border-bottom:1px solid #334155; }
html[data-theme="dark"] .pg:hover { background:#0f1a2e; }
html[data-theme="dark"] .pg.head { background:#0f1a2e; color:#94a3b8; }
html[data-theme="dark"] .pg.head:hover { background:#0f1a2e; }
html[data-theme="dark"] .pg input[type=text], html[data-theme="dark"] .pg input[type=number], html[data-theme="dark"] .pg select { border:1px solid #334155; background:#111b2e; color:#f1f5f9; }
html[data-theme="dark"] .pg .c-name { color:#f1f5f9; }
html[data-theme="dark"] .pg .sub { color:#94a3b8; }
html[data-theme="dark"] .num-red { color:#ef9595; }
html[data-theme="dark"] .pbtn { border:1px solid rgba(48,130,232,0.45); background:#111b2e; color:#7897ed; }
html[data-theme="dark"] .pbtn:hover { background:rgba(48,129,232,0.16); }
@media (max-width: 640px) { html[data-theme="dark"] #mvTable tr { border:1px solid #334155; background:#111b2e; } }
@media (max-width: 640px) { html[data-theme="dark"] #mvTable td::before { color:#94a3b8; } }

/* templates/workorder_progress.html */
html[data-theme="dark"] .pg-card { background:#111b2e; border:1.5px solid #475569; }
html[data-theme="dark"] .pg-tile { background:#111b2e; border:1.5px solid #475569; }
html[data-theme="dark"] .pg-tile:hover { background:#0f1a2e; }
html[data-theme="dark"] .pg-tile .n { color:#f1f5f9; }
html[data-theme="dark"] .pg-tile .l { color:#b4c0cf; }
html[data-theme="dark"] .pg-btn { border:1.5px solid #475569; background:#111b2e; color:#f1f5f9; }
html[data-theme="dark"] .pg-btn:hover { background:#0f1a2e; }
html[data-theme="dark"] .pg-tab { color:#b4c0cf; }
html[data-theme="dark"] .pg-tab.on { color:#9aafe9; }
html[data-theme="dark"] .pg-tab.urgent { color:#ef9595; }
html[data-theme="dark"] .pg-table { color:#f1f5f9; }
html[data-theme="dark"] .pg-table th { color:#b4c0cf; background:#1a2740; }
html[data-theme="dark"] .pg-table td { border-top:1px solid #334155; }
html[data-theme="dark"] .pg-table tr:nth-child(even) td { background:#0f1a2e; }
html[data-theme="dark"] .pg-table tr.wo-row:hover td { background:rgba(48,127,232,0.26); }
html[data-theme="dark"] .st.done { background:rgba(50,231,113,0.36); color:#9ce7ba; }
html[data-theme="dark"] .st.todo { background:rgba(48,130,232,0.36); color:#9aafe9; }
html[data-theme="dark"] .tag.log { background:rgba(81,48,232,0.26); color:#b999eb; }
html[data-theme="dark"] .pg-bar { background:#263449; }
html[data-theme="dark"] .pg-in { border:1.5px solid #475569; background:#111b2e; color:#f1f5f9; }
html[data-theme="dark"] .pg-in::placeholder { color:#94a3b8; }
html[data-theme="dark"] #urgent button { background:#111b2e; color:#e89b9b; }
html[data-theme="dark"] #urgent button:hover { background:rgba(232,48,48,0.16); }
html[data-theme="dark"] #urgentList { background:#111b2e; }
html[data-theme="dark"] #urgentList table { color:#f1f5f9; }
html[data-theme="dark"] #urgentList td { border-top:1px solid rgba(232,48,48,0.45); }
html[data-theme="dark"] #urgentList tr:hover td { background:rgba(232,48,48,0.16); }
html[data-theme="dark"] #urgentList .hint { color:#e89b9b; background:rgba(232,48,48,0.16); }
html[data-theme="dark"] #weekHead .wk { color:#9aafe9; }
html[data-theme="dark"] .uc-row.missed td { background:#0f1a2e !important; }
html[data-theme="dark"] .uc-age { color:#ef9595; }
html[data-theme="dark"] #woView label { color:#b4c0cf; }
html[data-theme="dark"] #woView .val { color:#f1f5f9; }
html[data-theme="dark"] #woView .box { background:#0f1a2e; border:1px solid #334155; }
html[data-theme="dark"] #woView select, html[data-theme="dark"] #woView textarea, html[data-theme="dark"] #woView input[type=text] { border:1.5px solid #475569; color:#f1f5f9; background:#111b2e; }
@media screen and (max-width: 767px) { html[data-theme="dark"] .pg-table tr { border-top:1px solid #334155; } }
@media screen and (max-width: 767px) { html[data-theme="dark"] .pg-table tr:nth-child(even) { background:#0f1a2e; } }
@media screen and (max-width: 767px) { html[data-theme="dark"] .pg-table td[data-label]::before { color:#b4c0cf; } }
@media screen and (max-width: 767px) { html[data-theme="dark"] .pg-table tr.uc-row.missed { background:#0f1a2e; } }
@media screen and (max-width: 767px) { html[data-theme="dark"] #urgentList tr { border-top:1px solid rgba(232,48,48,0.45); } }
@media screen and (max-width: 767px) { html[data-theme="dark"] #urgentList td:nth-child(3) { color:#b4c0cf; } }
@media screen and (max-width: 767px) { html[data-theme="dark"] #urgentList td:nth-child(4) { color:#b4c0cf; } }

/* templates/workorders.html */
html[data-theme="dark"] .wo-row:hover { background:#0f1a2e; }
html[data-theme="dark"] .wo-row.selected { background:rgba(48,129,232,0.16); }
html[data-theme="dark"] .status-open { background:rgba(48,127,232,0.26); color:#7897ed; }
html[data-theme="dark"] .status-inprogress { background:rgba(232,195,48,0.26); color:#f9ba8b; }
html[data-theme="dark"] .status-completed { background:rgba(48,232,112,0.26); color:#96eeb7; }
html[data-theme="dark"] .status-onhold { background:rgba(136,48,232,0.16); color:#b67ce9; }
html[data-theme="dark"] .status-other { background:#0f1a2e; color:#b4c0cf; }
html[data-theme="dark"] #batchPanel { background:#111b2e; }
html[data-theme="dark"] .batch-field { border:1px solid #334155; background:#111b2e; }
html[data-theme="dark"] .batch-field.on { background:rgba(48,129,232,0.16); }
html[data-theme="dark"] .sel-chip { background:rgba(48,129,232,0.16); color:#7897ed; border:1px solid rgba(48,130,232,0.45); }
html[data-theme="dark"] .sel-chip button:hover { color:#7897ed; }
html[data-theme="dark"] th.sorted .sort-icon { color:#739bf2; }
html[data-theme="dark"] .filter-pill.pill-empty { color:#94a3b8 !important; }
html[data-theme="dark"] #detailPanel, html[data-theme="dark"] #createPanel { background:#111b2e; }
html[data-theme="dark"] #createPanel, html[data-theme="dark"] #detailPanel { background:#111b2e; }
html[data-theme="dark"] #createPanel #cvBody, html[data-theme="dark"] #detailPanel #dvBody { background:#1a2740; }
html[data-theme="dark"] #createPanel .detail-field, html[data-theme="dark"] #detailPanel .detail-field { background:#111b2e; border:1px solid #475569; }
html[data-theme="dark"] #createPanel > div:last-child, html[data-theme="dark"] #detailPanel > div:last-child { background:#0f1a2e; border-top:2px solid #334155; }
html[data-theme="dark"] #createPanel .cv-task, html[data-theme="dark"] #detailPanel .border-dashed { background:#0f1a2e !important; border:1.5px solid #475569 !important; }
html[data-theme="dark"] #detailPanel .border-dashed { background:rgba(48,129,232,0.16) !important; }
html[data-theme="dark"] #confirmModal > div, html[data-theme="dark"] #deleteModal > div, html[data-theme="dark"] #projectModal > div { color:#f1f5f9; }
html[data-theme="dark"] #confirmModal input, html[data-theme="dark"] #confirmModal select, html[data-theme="dark"] #confirmModal textarea, html[data-theme="dark"] #projectModal input, html[data-theme="dark"] #projectModal select, html[data-theme="dark"] #projectModal textarea, html[data-theme="dark"] #deleteModal input, html[data-theme="dark"] #deleteModal textarea { border:1.5px solid #475569 !important; color:#f1f5f9; }
html[data-theme="dark"] #detailPanel [data-task] { border:1.5px solid #475569 !important; background:#0f1a2e !important; }
html[data-theme="dark"] #detailPanel > div:last-child a { border-color:#475569 !important; color:#f1f5f9; }
html[data-theme="dark"] .detail-field { border-bottom:1px solid #263449; }
html[data-theme="dark"] .detail-label { color:#b4c0cf; }
html[data-theme="dark"] .detail-value { color:#f1f5f9; }
html[data-theme="dark"] .cv-asset-list { background:#111b2e; border:1px solid #475569; }
html[data-theme="dark"] .cv-asset-item { color:#f1f5f9; }
html[data-theme="dark"] .cv-asset-item .code { color:#b4c0cf; }
html[data-theme="dark"] .cv-asset-item.active, html[data-theme="dark"] .cv-asset-item:hover { background:rgba(48,127,232,0.26); }
html[data-theme="dark"] .cv-asset-none { color:#b4c0cf; }
html[data-theme="dark"] .text-slate-400 { color:#94a3b8 !important; }
html[data-theme="dark"] .text-slate-500 { color:#b4c0cf !important; }
html[data-theme="dark"] ::placeholder { color:#94a3b8 !important; }
html[data-theme="dark"] main select, html[data-theme="dark"] main input[type=text], html[data-theme="dark"] main input[type=number], html[data-theme="dark"] main input[type=search], html[data-theme="dark"] main textarea { color:#f1f5f9; }
html[data-theme="dark"] #detailPanel, html[data-theme="dark"] #createPanel { color:#f1f5f9; }
html[data-theme="dark"] #detailPanel input, html[data-theme="dark"] #detailPanel select, html[data-theme="dark"] #detailPanel textarea, html[data-theme="dark"] #createPanel input, html[data-theme="dark"] #createPanel select, html[data-theme="dark"] #createPanel textarea { background:#111b2e; border:1.5px solid #475569 !important; color:#f1f5f9; }
@media (max-width: 767px) { html[data-theme="dark"] #woTable tr.wo-row { border:1px solid #334155; } }
@media (max-width: 767px) { html[data-theme="dark"] #woTable td::before { color:#94a3b8; } }

/* static/js/deliveries.js */
html[data-theme="dark"] .dv-chip { background:#1a2740; color:#f1f5f9; }
html[data-theme="dark"] .dv-req { background:rgba(83,48,232,0.16); color:#b897ec; }
html[data-theme="dark"] .dv-new { background:rgba(232,195,48,0.26); color:#f4b68f; }
html[data-theme="dark"] .dv-stk { background:rgba(48,232,112,0.26); color:#9ae9b8; }
html[data-theme="dark"] .dv-red { background:rgba(232,48,48,0.16); color:#ef9595; }
html[data-theme="dark"] .dv-btn { border:1px solid #475569; background:#111b2e; color:#7897ed; }
html[data-theme="dark"] .dv-btn:hover { background:rgba(48,129,232,0.16); }
html[data-theme="dark"] .dv-dlg { background:#0f1a2e; }
html[data-theme="dark"] .dv-card { background:#111b2e; border:1px solid #475569; }
html[data-theme="dark"] .dv-card h4 { color:#f1f5f9; }
html[data-theme="dark"] .dv-hint { color:#b4c0cf; }
html[data-theme="dark"] .dv-foot { border-top:1px solid #475569; background:#111b2e; }
html[data-theme="dark"] .dv-dlg input[type=text], html[data-theme="dark"] .dv-dlg input[type=number] { border:1px solid #475569; color:#f1f5f9; background:#111b2e; }
html[data-theme="dark"] .dv-line { border-bottom:1px solid #334155; }

/* static/js/file_viewer.js */
html[data-theme="dark"] #fvBox { background:#111b2e; }
html[data-theme="dark"] #fvImg { background:#111b2e; }
html[data-theme="dark"] #fvPages canvas { background:#111b2e; }

/* static/js/form_fill.js */
html[data-theme="dark"] #ffBox { background:#1a2740; }
html[data-theme="dark"] .ff-card { background:#111b2e; border:1px solid #475569; color:#f1f5f9; }
html[data-theme="dark"] .ff-num { color:#ef9595; }
html[data-theme="dark"] .ff-meta { border-top:1px solid #334155; }
html[data-theme="dark"] .ff-meta span { color:#b4c0cf; }
html[data-theme="dark"] .ff-lbl { color:#b4c0cf; }
html[data-theme="dark"] .ff-req { color:#ef9595; }
html[data-theme="dark"] .ff-h { color:#9aafe9; }
html[data-theme="dark"] .ff-ack { background:rgba(48,129,232,0.16); }
html[data-theme="dark"] .ff-in { border:1.5px solid #475569; color:#f1f5f9; background:#111b2e; }
html[data-theme="dark"] .ff-opt { border:1.5px solid #475569; background:#111b2e; color:#f1f5f9; }
html[data-theme="dark"] .ff-sig { background:#0f1a2e; }
html[data-theme="dark"] .ff-sig .ff-sigline { border-bottom:1px solid #475569; }
html[data-theme="dark"] .ff-sig .ff-sighint { color:#94a3b8; }
html[data-theme="dark"] .ff-small { color:#b4c0cf; }
html[data-theme="dark"] .ff-btn { border:1.5px solid #475569; background:#111b2e; color:#f1f5f9; }
html[data-theme="dark"] .ff-thumbs img { border:1px solid #475569; }
html[data-theme="dark"] .ff-err { background:#0f1a2e; border:1.5px solid rgba(232,48,48,0.45); color:#ed9797; }
html[data-theme="dark"] .ff-done { background:#0f1a2e; color:#9ce7ba; }

/* static/js/part_search.js */
html[data-theme="dark"] .ps-list { background:#111b2e; border:1px solid #475569; }
html[data-theme="dark"] .ps-item { border-bottom:1px solid #263449; }
html[data-theme="dark"] .ps-item.active, html[data-theme="dark"] .ps-item:hover { background:rgba(48,129,232,0.16); }
html[data-theme="dark"] .ps-name { color:#f1f5f9; }
html[data-theme="dark"] .ps-sub { color:#b4c0cf; }
html[data-theme="dark"] .ps-in { background:rgba(48,232,112,0.26); color:#9ae9b8; }
html[data-theme="dark"] .ps-out { background:rgba(232,48,48,0.16); color:#ed9797; }
html[data-theme="dark"] .ps-nh { background:rgba(232,195,48,0.26); color:#f4b68f; }
html[data-theme="dark"] .ps-note { color:#b4c0cf; }

/* static/js/parts_link.js */
html[data-theme="dark"] #plBox { background:#1a2740; }
html[data-theme="dark"] .pl-intro { color:#f1f5f9; }
html[data-theme="dark"] .pl-h { color:#e2e8f0; }
html[data-theme="dark"] .pl-find { border:1.5px solid #475569; background:#111b2e; color:#f1f5f9; }
html[data-theme="dark"] .pl-opt { background:#111b2e; border:1.5px solid #475569; color:#f1f5f9; }
html[data-theme="dark"] .pl-opt.on { background:rgba(48,129,232,0.16); }
html[data-theme="dark"] .pl-meta { color:#b4c0cf; }
html[data-theme="dark"] .pl-purpose { color:#f1f5f9; }
html[data-theme="dark"] .pl-st { background:rgba(232,195,48,0.26); color:#f4b68f; }
html[data-theme="dark"] .pl-st.ordered { background:rgba(48,127,232,0.26); color:#97abed; }
html[data-theme="dark"] .pl-st.quoted { background:rgba(83,48,232,0.16); color:#b897ec; }
html[data-theme="dark"] .pl-lbl { color:#b4c0cf; }
html[data-theme="dark"] .pl-in { border:1.5px solid #475569; color:#f1f5f9; background:#111b2e; }
html[data-theme="dark"] .pl-none { color:#b4c0cf; }
html[data-theme="dark"] .pl-err { color:#ef9595; }
html[data-theme="dark"] .pl-btn { border:1.5px solid #475569; background:#111b2e; color:#f1f5f9; }

/* static/js/update_check.js */
html[data-theme="dark"] #updCard .upd-go { background:#111b2e; color:#9aafe9; }
html[data-theme="dark"] #updCard .upd-go:hover { background:rgba(48,127,232,0.26); }

/* static/js/whats_new.js */
html[data-theme="dark"] #wnBox { background:#111b2e; color:#f1f5f9; }
html[data-theme="dark"] .wn-day { color:#b4c0cf; }
html[data-theme="dark"] .wn-item { border:1px solid #334155; background:#0f1a2e; }
html[data-theme="dark"] .wn-title { color:#f1f5f9; }
html[data-theme="dark"] .wn-item li { color:#f1f5f9; }
html[data-theme="dark"] .wn-foot { border-top:1px solid #334155; background:#111b2e; }
html[data-theme="dark"] .wn-foot span { color:#b4c0cf; }

/* static/js/wo_view.js */
html[data-theme="dark"] #wvBox { background:#111b2e; color:#f1f5f9; }
html[data-theme="dark"] .wv-ro { background:#111b2e; color:#9aafe9; }
html[data-theme="dark"] .wv-hb { border:1.5px solid #263449; }
html[data-theme="dark"] .wv-in { border:1.5px solid #475569; background:#111b2e; color:#f1f5f9; }
html[data-theme="dark"] .wv-hint { color:#b4c0cf; }
html[data-theme="dark"] .wv-row { border-bottom:1px solid #334155; }
html[data-theme="dark"] .wv-pmun-pill { background:rgba(232,48,48,0.16); color:#ed9797; border-color:rgba(232,48,48,0.45); }
html[data-theme="dark"] .wv-row:hover, html[data-theme="dark"] .wv-row:focus { background:rgba(48,129,232,0.16); }
html[data-theme="dark"] .wv-code { color:#f1f5f9; }
html[data-theme="dark"] .wv-desc { color:#e2e8f0; }
html[data-theme="dark"] .wv-sub { color:#b4c0cf; }
html[data-theme="dark"] .wv-pill { background:#1a2740; color:#e2e8f0; }
html[data-theme="dark"] .wv-lbl { color:#b4c0cf; }
html[data-theme="dark"] .wv-who { background:#0f1a2e; border:1.5px solid #334155; }
html[data-theme="dark"] .wv-who b { color:#f1f5f9; }
html[data-theme="dark"] .wv-task { border:1.5px solid #334155; background:#0f1a2e; }
html[data-theme="dark"] .wv-note { background:#0f1a2e; border:1px solid #334155; }
html[data-theme="dark"] .wv-thumb { border:1px solid #334155; background:#0f1a2e; }
html[data-theme="dark"] .wv-doc { color:#7897ed; background:#0f1a2e; border:1px solid #334155; }
html[data-theme="dark"] .wv-ghost { background:#111b2e; color:#f1f5f9; border:1.5px solid #475569; }
html[data-theme="dark"] .wv-act { border:1.5px solid rgba(87,48,232,0.45); background:#0f1a2e; color:#c88df7; }
html[data-theme="dark"] .wv-act-mine { background:#0f1a2e; color:#9de7e2; }
html[data-theme="dark"] .wv-act-req { background:rgba(232,150,48,0.16); color:#efab94; }
html[data-theme="dark"] .wv-act textarea { border:1.5px solid #475569; background:#111b2e; color:#f1f5f9; }
html[data-theme="dark"] .wv-err { color:#ef9595; }
html[data-theme="dark"] .wv-ok { color:#96eeb7; }
html[data-theme="dark"] .wt-list { background:#111b2e; color:#f1f5f9; }
html[data-theme="dark"] .wt-row { border-top:1px solid rgba(81,48,232,0.45); }
html[data-theme="dark"] .wt-no { background:#111b2e; color:#ef9595; border:1.5px solid rgba(232,48,48,0.45); }
html[data-theme="dark"] .wt-note input { border:1.5px solid #475569; background:#111b2e; color:#f1f5f9; }
html[data-theme="dark"] .wt-mine .wv-btn { background:#111b2e; color:#b999eb; }
