/* 643: DARK MODE, ONE PLACE. Loaded after every other sheet (am.js adds it last), so a rule here wins over the colours the
   page and component sheets write in for light mode. Only read under <html data-theme="dark">; light mode is untouched.

   Night navy, as fig.css section 16: page #12172A, cards #1B2136, raised #232A42, muted #262D45, lines #2E3654 / #3A4363,
   text #E6E9F2 (headings) / #C9CFE0 (body) / #9AA3BE (secondary). Every text colour here is at least 4.5:1 on the card it
   sits on (WCAG AA). Pills and chips are a tint of their own colour on the dark card with light text in that colour,
   never a pale block. Dividers are lines, not white bars.

   test/dark643.js opens every page in dark mode and fails on text under AA, light blocks and light dividers. */

/* ---------- 1. tokens ----------
   The design system's primitives are written straight into several sheets (IT Desk, Billing, DRI, Team Hub), with navy
   #192341 and the greys used as INK. In dark mode the ink greys turn light and the pale -50 tints turn into dark tints.
   The few places that paint navy as a BACKGROUND are given their colour back in section 3. */
:root[data-theme="dark"] {
  --cl-navy-900: #E6E9F2;
  --cl-gray-700: #C9CFE0;
  --cl-gray-500: #9AA3BE;
  --cl-gray-400: #8D95B0;
  --cl-gray-300: #3A4363;
  --cl-gray-200: #2E3654;
  --cl-gray-100: #262D45;
  --cl-gray-50: #12172A;
  --cl-red-600: #FF8FA3;
  --cl-blue-600: #8FB0FF;
  --cl-green-700: #7DDBA3;
  --cl-orange-800: #FFAB5E;
  --cl-orange-600: #FFA066;
  --cl-yellow-800: #F5CF5C;
  --cl-orange-50: rgba(255, 120, 0, .14);
  --cl-pink-50: rgba(242, 42, 92, .16);
  --cl-purple-50: rgba(137, 0, 181, .24);
  --cl-red-50: rgba(242, 42, 92, .16);
  --cl-green-50: rgba(59, 176, 106, .16);
  --cl-blue-50: rgba(79, 134, 255, .16);
  --cl-yellow-50: rgba(245, 180, 0, .14);

  /* the semantic names that point at a primitive keep their own meaning */
  --cl-bg-sidebar: #192341;
  --cl-bg-nav-hover: #222C4D;
  --cl-bg-inverse: #3A4363;
  --cl-text-primary: #E6E9F2;
  --cl-bg-brand-subtle: rgba(255, 120, 0, .14);
  --cl-bg-accent-subtle: rgba(137, 0, 181, .24);
  --cl-bg-pink-subtle: rgba(242, 42, 92, .16);
  --cl-bg-info-subtle: rgba(79, 134, 255, .16);
  --cl-bg-success-subtle: rgba(59, 176, 106, .16);
  --cl-bg-warning-subtle: rgba(245, 180, 0, .14);
  --cl-bg-danger-subtle: rgba(242, 42, 92, .16);
  --cl-bg-info: #2F6FEB;
  --cl-bg-success: #1B7F52;
  --cl-text-body: #C9CFE0;
  --cl-text-secondary: #9AA3BE;
  --cl-text-tertiary: #9AA3BE;
  --cl-text-disabled: #8D95B0;
  --cl-text-link: #C7A2FF;
  --cl-text-brand: #FFAB5E;
  --cl-text-info: #8FB0FF;
  --cl-text-success: #7DDBA3;
  --cl-text-warning: #F5CF5C;
  --cl-text-danger: #FF8FA3;
  --cl-purple: #D79BF0;
  --cl-purple-600: #D79BF0;
  --cl-crimson: #FF8FA3;
  --text-muted: #9AA3BE;
  --mut: #9AA3BE;
  --dim: #8D95B0;
  --grey-400: #8D95B0;
  --grey-500: #9AA3BE;
}

/* ---------- 2. sheets that keep their own colour names ----------
   My Tasks (and the Dashboard's task list, which is My Tasks), and All tasks. */
:root[data-theme="dark"] .mtv { --ink: #E6E9F2; --ink2: #C9CFE0; --mut: #9AA3BE; --dim: #9AA3BE; --line: #2E3654; --bd: #3A4363; --red: #FF8FA3; }

/* ---------- 3. navy painted as a background (section 1 turned the ink navy light) ---------- */
:root[data-theme="dark"] .blbtn:not(.ghost):not(.cta),
:root[data-theme="dark"] .dri .dripills button.on,
:root[data-theme="dark"] .itd-chip.on,
:root[data-theme="dark"] .itd-pill.navy { background: #3A4363 !important; border-color: #3A4363 !important; color: #fff !important; }
:root[data-theme="dark"] .itd-bar i { background: #8D95B0; }
:root[data-theme="dark"] .itd-err pre, :root[data-theme="dark"] .itd-log { background: #0B0F1E; color: #E6E9F2; }
:root[data-theme="dark"] .th-btn.go-on { background: #1B7F52 !important; border-color: #1B7F52 !important; color: #fff !important; }
:root[data-theme="dark"] .th-pill.info { background: #2F6FEB !important; color: #fff !important; }

/* ---------- 4. quiet text that was written in as a light-mode grey ---------- */
:root[data-theme="dark"] .greet .sub, :root[data-theme="dark"] #greetSub,
:root[data-theme="dark"] #view-it .itwho span, :root[data-theme="dark"] #view-it .itstat span, :root[data-theme="dark"] .fgc .fgc-am,
:root[data-theme="dark"] .fghead .fgsub,
:root[data-theme="dark"] #view-timeline .tllegend,
:root[data-theme="dark"] #clientBar #clientCount, :root[data-theme="dark"] .logmath,
:root[data-theme="dark"] .fgc .fgc-h span,
:root[data-theme="dark"] #view-it .itsub, :root[data-theme="dark"] #view-it .ithint2, :root[data-theme="dark"] .itp span,
:root[data-theme="dark"] .itprompts span, :root[data-theme="dark"] .itlbl i,
:root[data-theme="dark"] #view-it .ittabs button,
:root[data-theme="dark"] .mut, :root[data-theme="dark"] #view-dash .mut, :root[data-theme="dark"] .dash-pempty,
:root[data-theme="dark"] .dash-wfpop .hd span, :root[data-theme="dark"] .dash-wfpop .nt,
:root[data-theme="dark"] .altv .altgb > span,
:root[data-theme="dark"] .amx, :root[data-theme="dark"] .amomut,
:root[data-theme="dark"] .mopts .amclr, :root[data-theme="dark"] .mopts .amclr:disabled,
:root[data-theme="dark"] .th-ch .src, :root[data-theme="dark"] .th-kbox span.p, :root[data-theme="dark"] .th-muted,
:root[data-theme="dark"] .th-cal .c.o, :root[data-theme="dark"] .th-wp.none, :root[data-theme="dark"] .th-wp.Off,
:root[data-theme="dark"] .dd > span,
:root[data-theme="dark"] .itd-meta span, :root[data-theme="dark"] .itd-err .where span,
:root[data-theme="dark"] .ccnts .sep,
:root[data-theme="dark"] .tm .tmwl, :root[data-theme="dark"] .tm .tmamp i, :root[data-theme="dark"] .tm .tmruler span,
:root[data-theme="dark"] .tm .tmmini .past i, :root[data-theme="dark"] .tm .tmday.past b, :root[data-theme="dark"] .tm .tmday.past span,
:root[data-theme="dark"] .tm .tmfoot td.past b { color: #9AA3BE !important; }

/* headings and body text left navy */
:root[data-theme="dark"] #view-it .itwho b, :root[data-theme="dark"] #view-it .itstat b,
:root[data-theme="dark"] #view-timeline #tlRange,
:root[data-theme="dark"] .fgc .fgc-nm h3,
:root[data-theme="dark"] .fgc .lbtn:not(.com),
:root[data-theme="dark"] .th-btn:not(.pri):not(.go-on), :root[data-theme="dark"] .th-in, :root[data-theme="dark"] .th-sel, :root[data-theme="dark"] .th-ta,
:root[data-theme="dark"] .th-gc .ti, :root[data-theme="dark"] .th-tog button.on,
:root[data-theme="dark"] .itgl span,
:root[data-theme="dark"] .anote, :root[data-theme="dark"] .anote b, :root[data-theme="dark"] .anote span,
:root[data-theme="dark"] .itd-view, :root[data-theme="dark"] .itd-page { color: #E6E9F2 !important; }
:root[data-theme="dark"] .th-chip:not(.on), :root[data-theme="dark"] .th-chip:not(.on) b,
:root[data-theme="dark"] .anote span.dim, :root[data-theme="dark"] .anote.unmapped span { color: #C9CFE0 !important; }
:root[data-theme="dark"] .fgc .lbtn.off { color: #9AA3BE !important; }

/* coloured text that was too dark for a dark card */
:root[data-theme="dark"] .th-eye, :root[data-theme="dark"] .drieye,
:root[data-theme="dark"] .dri .drieye, :root[data-theme="dark"] .drilay .drieye { color: #D79BF0 !important; }
:root[data-theme="dark"] .drilay .drieye.or, :root[data-theme="dark"] .ameyebrow, :root[data-theme="dark"] .amtitle .ameyebrow,
:root[data-theme="dark"] .th-desks .lab b, :root[data-theme="dark"] .th-gc .ar,
:root[data-theme="dark"] .cgdh.today b, :root[data-theme="dark"] .amd .amdday.today > span,
:root[data-theme="dark"] .itd-att em { color: #FFAB5E !important; }
:root[data-theme="dark"] .dash-tomt { color: #FF8CC6 !important; }
:root[data-theme="dark"] .dash-tile .s.bad, :root[data-theme="dark"] .amd .amdtbl td.late, :root[data-theme="dark"] .amptbl td .late,
:root[data-theme="dark"] .amopeople .amobandhead span:first-child, :root[data-theme="dark"] .amostundated .amoname .amopn,
:root[data-theme="dark"] .amoscale .amomut[style*="#b41540"],
:root[data-theme="dark"] .xbtn, :root[data-theme="dark"] .th-note[style*="danger"] { color: #FF8FA3 !important; }
:root[data-theme="dark"] .dash-cap .over, :root[data-theme="dark"] .dash-drawer .over, :root[data-theme="dark"] .dash-cap .caps .over { color: #FFA066 !important; }
:root[data-theme="dark"] .dash-cap .ok, :root[data-theme="dark"] .dash-drawer .ok, :root[data-theme="dark"] p > span.ok { color: #7DDBA3 !important; }
:root[data-theme="dark"] .ccnt, :root[data-theme="dark"] .th-a { color: #C7A2FF !important; }
:root[data-theme="dark"] .tm .tmlink, :root[data-theme="dark"] .tm .tmme, :root[data-theme="dark"] .mtv .mtlink { color: #8FB0FF !important; }
:root[data-theme="dark"] .altv .altgrp .altgh b { color: color-mix(in srgb, var(--gc, #E6E9F2) 45%, #fff) !important; }

/* ---------- 5. the task list (Ellie, 3 Dec: the hours, the "Subtask of" names, the pills and the dividers) ---------- */
:root[data-theme="dark"] .mtv .mtsub b, :root[data-theme="dark"] .mtv .mtr2 .mtsub b { color: #C9CFE0 !important; }
:root[data-theme="dark"] .mtv .mtrc > b, :root[data-theme="dark"] .mtv .mtrh b { color: #E6E9F2 !important; }
:root[data-theme="dark"] .mtv .mtrh i.g, :root[data-theme="dark"] .mtv .mtdates b.ok { color: #7DDBA3 !important; }
:root[data-theme="dark"] .mtv .mtrh i.o { color: #FFAB5E !important; }
:root[data-theme="dark"] .mtv .mtdates b.late, :root[data-theme="dark"] .mtv .mtodh, :root[data-theme="dark"] .mtv .mtodh b, :root[data-theme="dark"] .mtv .mtodh span { color: #FF8FA3 !important; }
:root[data-theme="dark"] .mtv .mtrn, :root[data-theme="dark"] .mtv .mtrc { border-right-color: #2E3654 !important; }
:root[data-theme="dark"] .mtv .mttog { color: #C9CFE0 !important; }
/* status pills: a pale pill (light background, coloured text) becomes a dark tint of its colour; a solid pill stays solid */
:root[data-theme="dark"] .mtst:not([style*="--f:#FFFFFF"]) { background: color-mix(in srgb, var(--f) 24%, #1B2136) !important; color: color-mix(in srgb, var(--f) 38%, #fff) !important; }
:root[data-theme="dark"] .mtst[style*="--b:#2173F6"] { background: #1A5FD0 !important; }
:root[data-theme="dark"] .mtv .mtdpill { background: color-mix(in srgb, var(--b) 12%, #262D45) !important; color: #E6E9F2 !important; }
:root[data-theme="dark"] .mtv .mtdpill.late { background: rgba(242, 42, 92, .18) !important; color: #FF8FA3 !important; }
:root[data-theme="dark"] .mtv .mtover { background: rgba(242, 42, 92, .18) !important; color: #FF8FA3 !important; }
:root[data-theme="dark"] .mtv .mtdri { background: rgba(137, 0, 181, .26) !important; color: #E2B8F7 !important; }
:root[data-theme="dark"] .mtv .mtodb { border-top-color: rgba(242, 42, 92, .3) !important; }
:root[data-theme="dark"] .mtv .mtshow label i { background: #2E3654 !important; color: #E6E9F2 !important; }
:root[data-theme="dark"] .mtv .mtn { background: #3A4363 !important; }
:root[data-theme="dark"] .altv .altkind.ret { background: rgba(137, 0, 181, .26) !important; border-color: rgba(185, 120, 230, .45) !important; color: #E2B8F7 !important; }
:root[data-theme="dark"] .altv .altkind.adh { background: rgba(255, 120, 0, .16) !important; border-color: rgba(255, 150, 60, .45) !important; color: #FFC08A !important; }
:root[data-theme="dark"] .altv .altgb button.on { background: #3A4363 !important; border-color: #3A4363 !important; color: #fff !important; }

/* ---------- 6. Dashboard ---------- */
:root[data-theme="dark"] .dash-ss { border-left-color: #2E3654 !important; }
:root[data-theme="dark"] .dash-ss b { color: #E6E9F2; }
:root[data-theme="dark"] .dash-wf.need { background: rgba(242, 42, 92, .16) !important; color: #FF8FA3 !important; border-color: rgba(242, 42, 92, .45) !important; }
:root[data-theme="dark"] .dash-wf .dash-wfh { background: color-mix(in srgb, var(--x, #8FB0FF) 22%, #1B2136); color: color-mix(in srgb, var(--x, #8FB0FF) 40%, #fff); }
:root[data-theme="dark"] .dash-wf.office { background: rgba(132, 204, 22, .16); color: #B5E37A; }
:root[data-theme="dark"] .dash-wf.home { background: rgba(79, 134, 255, .16); color: #9DBBFF; }
:root[data-theme="dark"] .dash-wf.away { background: rgba(137, 0, 181, .24); color: #E2B8F7; }
:root[data-theme="dark"] .dash-wf.off { background: #262D45; color: #C9CFE0; }
:root[data-theme="dark"] .dash-wc { background: #2E3654; }
:root[data-theme="dark"] .dash-wc.off { background: #5E6683; }
:root[data-theme="dark"] .dash-wfpop { background: #1B2136; border-color: #2E3654; }
:root[data-theme="dark"] .dash-wfpop .seg { background: #12172A; }
:root[data-theme="dark"] .dash-wfpop .seg button { color: #9AA3BE; }
:root[data-theme="dark"] .dash-wfpop .seg button.on { background: #2E3654; color: #E6E9F2; }
:root[data-theme="dark"] .dash-wfpop .o { background: color-mix(in srgb, var(--x, #8FB0FF) 18%, #1B2136); color: color-mix(in srgb, var(--x, #8FB0FF) 40%, #fff); }
:root[data-theme="dark"] .dash-wf .dash-wfsep { color: #5E6683; }

/* ---------- 7. Timeline and Clients: buttons and cards left white ---------- */
:root[data-theme="dark"] #view-timeline .t2bar .iconbtn,
:root[data-theme="dark"] #view-timeline .tlzoomw,
:root[data-theme="dark"] #view-timeline #tlThisWeek,
:root[data-theme="dark"] #view-timeline #tlbar .grpbtn, :root[data-theme="dark"] #view-timeline #tlbar .clrf,
:root[data-theme="dark"] .btn.ghost2, :root[data-theme="dark"] .iconbtn, :root[data-theme="dark"] .lbtn.off,
:root[data-theme="dark"] .fgc .lbtn:not(.com) { background-color: #232A42 !important; border-color: #3A4363 !important; color: #E6E9F2 !important; }
:root[data-theme="dark"] .fgc .fgc-card { background: #1B2136 !important; border-color: #2E3654 !important; }
:root[data-theme="dark"] .fgc .fgc-tile { background: #262D45 !important; color: #C9CFE0 !important; }
:root[data-theme="dark"] #view-timeline .tlzoomw b, :root[data-theme="dark"] .tlzoomw b { color: #E6E9F2 !important; }
:root[data-theme="dark"] .admchip.brk { background: rgba(79, 134, 255, .16) !important; border-color: rgba(143, 176, 255, .35) !important; color: #9DBBFF !important; }

/* ---------- 8. Tech support (raise a ticket) ---------- */
:root[data-theme="dark"] #view-it .itq, :root[data-theme="dark"] #view-it .itstrip,
:root[data-theme="dark"] #view-it .itcat, :root[data-theme="dark"] #view-it .itprompts button { background: #1B2136 !important; border-color: #2E3654 !important; color: #C9CFE0 !important; }
:root[data-theme="dark"] #view-it .itstat { border-color: #2E3654 !important; }
:root[data-theme="dark"] #view-it .itgl { border-color: #2E3654 !important; }
:root[data-theme="dark"] #view-it .itcat.on, :root[data-theme="dark"] #view-it .itp.on { background: rgba(137, 0, 181, .24) !important; border-color: rgba(185, 120, 230, .5) !important; color: #F0DDFB !important; }
:root[data-theme="dark"] #view-it .itp.on span { color: #D9C2EC !important; }
:root[data-theme="dark"] #view-it .itp.on b { color: #F0DDFB !important; }
:root[data-theme="dark"] #view-it .ithh .cnt { background: #2E3654 !important; color: #E6E9F2 !important; }
:root[data-theme="dark"] #view-it .ittabs { background: #12172A !important; }
:root[data-theme="dark"] #view-it .ittabs button.on { background: #2E3654 !important; color: #E6E9F2 !important; }
:root[data-theme="dark"] #view-it .ittabs button b { color: inherit !important; }
:root[data-theme="dark"] #view-it .itblock { background: rgba(255, 120, 0, .12) !important; border-color: rgba(255, 150, 60, .35) !important; color: #FFC79A !important; }
:root[data-theme="dark"] #view-it .itblock > b, :root[data-theme="dark"] #view-it .itblock p, :root[data-theme="dark"] #view-it .itblock b { color: #FFD9B8 !important; }

/* ---------- 9. Account manager dashboard, DRI, AM lists ---------- */
:root[data-theme="dark"] .amd .amdchip.red, :root[data-theme="dark"] .dri .dritag.red, :root[data-theme="dark"] .dri .dridate.late,
:root[data-theme="dark"] .th-pill.bad { background: rgba(242, 42, 92, .16) !important; color: #FF8FA3 !important; }
:root[data-theme="dark"] .amd .amdchip.amber, :root[data-theme="dark"] .amd .amdstage.fresh, :root[data-theme="dark"] .amd .amdstage.setup,
:root[data-theme="dark"] .amd .amdstage.ready, :root[data-theme="dark"] .amd .amdstage.newwork,
:root[data-theme="dark"] .dri .dritag.amber { background: rgba(245, 180, 0, .14) !important; color: #F5CF5C !important; }
:root[data-theme="dark"] .amd .amdchip.blue, :root[data-theme="dark"] .amd .amdstage { background: rgba(79, 134, 255, .16); color: #9DBBFF; }
:root[data-theme="dark"] .amd .amdseg i { opacity: 1; }
:root[data-theme="dark"] .dri .dritag, :root[data-theme="dark"] .dri .dridate { background: #262D45; color: #C9CFE0; }
:root[data-theme="dark"] .dri .s-nsch { background: rgba(56, 160, 230, .18); color: #9ED3F5; }
:root[data-theme="dark"] .dri .s-sch { background: rgba(99, 102, 241, .24); color: #BDBEFF; }
:root[data-theme="dark"] .dri .s-wait { background: rgba(245, 180, 0, .16); color: #F5CF5C; }
:root[data-theme="dark"] .dri .s-crev { background: rgba(232, 31, 124, .2); color: #FF9CCB; }
:root[data-theme="dark"] .dri .s-irev { background: rgba(255, 140, 0, .16); color: #FFC38A; }
:root[data-theme="dark"] .dri .s-hold { background: #2E3654; color: #D8CDBB; }
:root[data-theme="dark"] .dri .s-track { background: rgba(20, 170, 190, .18); color: #8FE0EA; }
:root[data-theme="dark"] .dri .dripills button i { background: #2E3654; color: #C9CFE0; }
:root[data-theme="dark"] #view-am-list .amlcar, :root[data-theme="dark"] #view-am-list .amlgcar { background: #9AA3BE !important; }

/* ---------- 10. Team Hub ---------- */
:root[data-theme="dark"] .th-btn:not(.pri):not(.go-on), :root[data-theme="dark"] .th-in, :root[data-theme="dark"] .th-sel, :root[data-theme="dark"] .th-ta,
:root[data-theme="dark"] .th-chip:not(.on), :root[data-theme="dark"] .th-tog button.on { background-color: #232A42 !important; border-color: #3A4363 !important; }
:root[data-theme="dark"] .th-chip:not(.on) b { background: #2E3654 !important; }
:root[data-theme="dark"] .th-chip.on { background: #3A4363 !important; border-color: #3A4363 !important; color: #fff !important; }
:root[data-theme="dark"] .th-gc { background: #1B2136 !important; border-color: #2E3654 !important; }
:root[data-theme="dark"] .th-gc .hd { background: rgba(255, 120, 0, .14) !important; }
:root[data-theme="dark"] .th-wp.none, :root[data-theme="dark"] .th-wp.Off { background: #262D45 !important; }
:root[data-theme="dark"] .th-av { border-color: #1B2136 !important; }
:root[data-theme="dark"] .th-av[style*="--cl-gray-100"] { color: #C9CFE0 !important; }

/* ---------- 11. Billing ---------- */
:root[data-theme="dark"] .blcard, :root[data-theme="dark"] .blkpi { background: #1B2136 !important; border-color: #2E3654 !important; }
:root[data-theme="dark"] .blf > span > b { color: #FF8FA3; }
:root[data-theme="dark"] .blbtn.ghost { background: #232A42 !important; border-color: #3A4363 !important; color: #E6E9F2 !important; }

/* ---------- 12. IT Desk ---------- */
:root[data-theme="dark"] .itd-kpi, :root[data-theme="dark"] .itd-app, :root[data-theme="dark"] .itd-chip:not(.on) { background: #1B2136 !important; border-color: #2E3654 !important; }
:root[data-theme="dark"] .itd-pill { background: #262D45; color: #C9CFE0; }
:root[data-theme="dark"] .itd-pill.green { background: rgba(59, 176, 106, .16); color: #7DDBA3; }
:root[data-theme="dark"] .itd-pill.orange { background: rgba(255, 120, 0, .16); color: #FFB370; }
:root[data-theme="dark"] .itd-pill.crimson { background: rgba(242, 42, 92, .16); color: #FF8FA3; }
:root[data-theme="dark"] .itd-pill.purple { background: rgba(137, 0, 181, .24); color: #E2B8F7; }
:root[data-theme="dark"] .itd-note.bad { border-color: rgba(242, 42, 92, .45) !important; color: #FF8FA3 !important; }
:root[data-theme="dark"] .itd-kpi .n.warn { color: #FFB370; }
:root[data-theme="dark"] .itd-kpi .n.bad { color: #FF8FA3; }
:root[data-theme="dark"] .itd-btn.ghost { background: #232A42 !important; color: #E6E9F2 !important; box-shadow: inset 0 0 0 1px #3A4363; }
:root[data-theme="dark"] .anote.unmapped { background: rgba(255, 120, 0, .1) !important; }

/* ---------- 13. the workspace switcher's menu, and small pop-ups ---------- */
:root[data-theme="dark"] .clmenu { background: #1B2136; border-color: #2E3654; }
:root[data-theme="dark"] .clmenu h6 { color: #9AA3BE; }
:root[data-theme="dark"] .clwsrow { background: #1B2136; }
:root[data-theme="dark"] .clwsrow:hover, :root[data-theme="dark"] .clwsrow.cur { background: #262D45; }
:root[data-theme="dark"] .clwsrow .n { color: #E6E9F2; }
:root[data-theme="dark"] .clwsrow .d { color: #9AA3BE; }
:root[data-theme="dark"] .clwsrow .clico { color: #D79BF0; }
:root[data-theme="dark"] .dash-wfpop .hd b { color: #E6E9F2; }
:root[data-theme="dark"] .clsw .o { color: #A9B6CF; }
:root[data-theme="dark"] .th-need { background: #1B2136 !important; }
/* 668: DRI cover */
:root[data-theme="dark"] .dri .dritag.purple { background: rgba(137, 0, 181, .26) !important; color: #E2B8F7 !important; }
:root[data-theme="dark"] .dri .drinotice { background: rgba(245, 180, 0, .14); color: #F5CF5C; }
:root[data-theme="dark"] .dri .drinotice.ok { background: #262D45; color: #C9CFE0; }
:root[data-theme="dark"] .dri .drinotice b { color: #F1F3F9; }
:root[data-theme="dark"] .dri .drif input, :root[data-theme="dark"] .dri .drisel { background: #1B2136; border-color: #343C57; color: #E6E9F2; }
:root[data-theme="dark"] .dri .drileave { background: #262D45; color: #C9CFE0; }
:root[data-theme="dark"] .dri .drileave b { color: #F1F3F9; }
/* 722: DRI New asset / New task panels */
:root[data-theme="dark"] .drilay .driwarn { background: rgba(245, 180, 0, .14); color: #F5CF5C; }
:root[data-theme="dark"] .drilay .driwarn b, :root[data-theme="dark"] .drilay .driwarni { color: #F5CF5C; }
:root[data-theme="dark"] .drilay .drichip { background: #1B2136; border-color: #343C57; color: #E6E9F2; }
:root[data-theme="dark"] .drilay .drichip.on { background: #E6E9F2; border-color: #E6E9F2; color: #192341; }
:root[data-theme="dark"] .drilay .dritime { background: #262D45; color: #E6E9F2; }
:root[data-theme="dark"] .drilay .s-nsch { background: rgba(56, 160, 230, .18); color: #9ED3F5; }
:root[data-theme="dark"] .drilay .s-sch { background: rgba(99, 102, 241, .24); color: #BDBEFF; }
:root[data-theme="dark"] .drilay .s-wait { background: rgba(245, 180, 0, .16); color: #F5CF5C; }
:root[data-theme="dark"] .drilay .s-crev { background: rgba(232, 31, 124, .2); color: #FF9CCB; }
:root[data-theme="dark"] .drilay .s-irev { background: rgba(255, 140, 0, .16); color: #FFC38A; }
:root[data-theme="dark"] .drilay .s-hold { background: #2E3654; color: #D8CDBB; }
:root[data-theme="dark"] .drilay .s-track { background: rgba(20, 170, 190, .18); color: #8FE0EA; }
:root[data-theme="dark"] .drilay .dribox .dribar { background: #1B2136; }
