/* OfficeGLG 0.7.66 — per-device dark mode.
   Loaded after the legacy site and seasonal styles.  Neutral surfaces are
   re-toned; semantic statuses (warning, failure, cancelled, done) retain hue.
   All selectors are scoped to the explicit appearance choice. */
html[data-theme="dark"]{
  color-scheme:dark;
  --bg:#0b1220;
  --card:#141f32;
  --panel:#172439;
  --surface:#1b2a40;
  --text:#e7effb;
  --t:#e7effb;
  --m:#b3c1d5;
  --muted:#a5b4c9;
  --b:#394a63;
  --line:#394a63;
  --border:#394a63;
  --brand:#8cb9ff;
  --primary:#82afff;
  --inv-modal-surface:#141f32;
  --inv-panel-surface:#19273d;
  --inv-input-surface:#101b2f;
  scrollbar-color:#526784 #101827;
}
html[data-theme="dark"] body{
  color:var(--t);
  background-color:var(--bg);
  background-image:radial-gradient(ellipse 840px 640px at 94% 4%,rgba(39,84,148,.10),transparent 70%),
                   radial-gradient(ellipse 740px 480px at 8% 92%,rgba(13,116,99,.055),transparent 74%);
  background-size:auto;
}
html[data-theme="dark"] :is(header,.site-header-home){background:#121e31;color:var(--t);border-color:var(--b)}
html[data-theme="dark"] :is(.card,.gf-modal,.dep-equipment-dialog__card){background:var(--card);color:var(--t);border-color:var(--b);box-shadow:0 9px 26px rgba(0,0,0,.14)}
html[data-theme="dark"] :is(.muted,.hint,.small.muted,.fieldHelp,th,legend,label){color:var(--m)}
html[data-theme="dark"] :is(a,a.gf-tablink){color:#aad1ff}
html[data-theme="dark"] a:hover{color:#d5e6ff}
html[data-theme="dark"] :is(button,a.gf-tablink,input,select,textarea){border-color:var(--b);transition:background-color .12s,border-color .12s,color .12s}
html[data-theme="dark"] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),select,textarea){background:#0f1b2d;color:#f0f6ff;border-color:#445772;caret-color:#e6f1ff;box-shadow:none}
html[data-theme="dark"] :is(input,textarea)::placeholder{color:#95a7c0;opacity:1}
html[data-theme="dark"] :is(input,select,textarea):focus-visible{outline:2px solid #84b8ff;outline-offset:1px;border-color:#84b8ff}
html[data-theme="dark"] :is(input[type="checkbox"],input[type="radio"]){accent-color:#76a9fa}
html[data-theme="dark"] button:where(:not(.primary):not(.danger):not([class*="vfx"])){background:#1e2d45;color:#e4edfa;border-color:#43546f}
html[data-theme="dark"] :is(button:not(.primary):not(.danger),a.gf-tablink:not(.primary)):hover{background:#293b58;color:#f8fbff;border-color:#718aa9}
html[data-theme="dark"] :is(button.primary,a.gf-tablink.primary){background:#2863b4;color:#fff;border-color:#417fd4}
html[data-theme="dark"] :is(button.primary,a.gf-tablink.primary):hover{background:#367bda;color:#fff;border-color:#6fa9fa}
html[data-theme="dark"] button.danger{background:rgba(124,34,39,.34);color:#ffb4b4;border-color:#d46c75}
html[data-theme="dark"] button.danger:hover{background:rgba(158,43,50,.52);color:#fff2f2}
html[data-theme="dark"] :is(button,input,select,textarea,a.gf-tablink):disabled{opacity:.56;cursor:not-allowed}
html[data-theme="dark"] :is(button,a,summary,[role="button"]):focus-visible{outline:2px solid #8ebdff;outline-offset:2px}
html[data-theme="dark"] :is(.pill,.kpi .pill,.issueBadge,.gf-checkrow,.gf-radio-group){color:#dae6f7;background:#1e2d45;border-color:var(--b)}
html[data-theme="dark"] :is(.gf-radio-row:hover,.gf-checkrow:hover){background:rgba(119,169,232,.08)}
html[data-theme="dark"] :is(.ok,.dep-inline-assignee.is-done .dep-inline-assignee__name){color:#8de9bc}
html[data-theme="dark"] .warn{color:#fbd28a}
html[data-theme="dark"] .err{color:#ffb2b2}
html[data-theme="dark"] :is(.issueBadge.err,.issueBadge.warn){color:inherit}
html[data-theme="dark"] :is(table,td,th){border-color:var(--b)}
html[data-theme="dark"] :is(thead th,.table thead th){background:#1a2a43;color:#c7d5e7}
html[data-theme="dark"] :is(tbody tr:hover,.table tbody tr:hover){background:rgba(105,151,212,.10)}
html[data-theme="dark"] :is(.gf-modal-backdrop,.mobile-nav-sheet-backdrop){background:rgba(2,8,18,.77)}
html[data-theme="dark"] :is(.gf-modal-x,.gf-chat-close){background:#21324b;color:#e7effb;border-color:#4c607a}
html[data-theme="dark"] :is(.gf-modal-x:hover,.gf-chat-close:hover){background:#324867}
html[data-theme="dark"] :is(.gf-suggest-menu,.gf-suggest,.gf-suggest-option){background:#19273e;color:var(--t);border-color:var(--b)}
html[data-theme="dark"] :is(.gf-suggest-option:hover,.gf-suggest-option.active){background:#2b4262}
html[data-theme="dark"] ::selection{background:#3c69a8;color:#fff}
/* Header, navigation, mobile bottom rail and action sheet */
html[data-theme="dark"] :is(.topbar-card,.topbar-row){background:var(--card);color:var(--t)}
html[data-theme="dark"] .glg-sidebar{background:rgba(17,26,43,.98);border-color:var(--b)}
html[data-theme="dark"] .glg-sidebar .glg-sidebar-item:not(.primary){background:transparent;color:#d2e1f2;border-color:transparent}
html[data-theme="dark"] .glg-sidebar .glg-sidebar-item:not(.primary):hover{background:#294368;border-color:#446793;color:#f0f7ff}
html[data-theme="dark"] .glg-sidebar .glg-sidebar-pin{background:#243550;color:#e1ecfc;border-color:#4a5c77}
html[data-theme="dark"] .glg-sidebar .glg-sidebar-pin[aria-pressed="true"]{background:#275c9e;color:#fff;border-color:#6c9cda}
html[data-theme="dark"] .glg-sidebar .glg-sidebar-logout{color:#ffd69a}
html[data-theme="dark"] :is(.mobile-bottom-nav,.mobile-bottom-nav__shell,.mobile-nav-sheet){background:#111c2e;color:#e4edfc;border-color:var(--b);box-shadow:0 -12px 35px rgba(0,0,0,.32)}
html[data-theme="dark"] :is(.mobile-bottom-nav__item,.mobile-nav-sheet__action,.mobile-nav-quick__item){color:#cddcef;background:transparent;border-color:var(--b)}
html[data-theme="dark"] :is(.mobile-bottom-nav__item.is-active,.mobile-nav-sheet__action.is-active,.mobile-nav-quick__item.is-selected){background:#244674;color:#f6faff;border-color:#6489bb}
html[data-theme="dark"] :is(.mobile-bottom-nav__item:hover,.mobile-nav-sheet__action:hover,.mobile-nav-quick__item:hover){background:#263c59;color:#fff}
html[data-theme="dark"] :is(.mobile-bottom-nav__schedule-ring,.mobile-nav-sheet__action-icon,.mobile-nav-quick__item-icon,.mobile-nav-quick__item-state){background:#243750;color:#e4ecfa;border-color:#4c627c}
html[data-theme="dark"] :is(.mobile-nav-sheet__subtitle,.mobile-nav-sheet__action-note,.mobile-nav-quick__note,.mobile-nav-quick__hint){color:#aebed5}
html[data-theme="dark"] :is(.mobile-nav-quick,.mobile-nav-sheet__head){background:#15243a;border-color:var(--b)}
html[data-theme="dark"] :is(.mobile-nav-sheet__close,.mobile-nav-quick__reset){background:#243750;color:var(--t);border-color:var(--b)}
/* Dashboard, registry and construction views */
html[data-theme="dark"] :is(.home-kpi-card,.home-engineer-row,.home-work-row,.home-safe-grid>div,.home-empty,.home-engineer-details){background:#1b2a41;color:var(--t);border-color:var(--b)}
html[data-theme="dark"] :is(.home-privacy-note,.home-period-card){background:#1e314a;color:#dbe8f8;border-color:var(--b)}
html[data-theme="dark"] .home-hero{background:linear-gradient(135deg,#152b4c,#122336 82%);border-color:#365677;color:#f7fbff}
html[data-theme="dark"] .home-quick-actions a.gf-tablink.primary{background:#326ebe;color:#fff;border-color:#80b1f9}
html[data-theme="dark"] .home-period-grid input{background:#0e1b2d;color:#eaf2ff;border-color:#55708e}
html[data-theme="dark"] .home-period-actions button.primary{background:#3572c9;color:#fff}
html[data-theme="dark"] .home-kpi-icon{background:rgba(123,175,255,.15)}
html[data-theme="dark"] .home-engineer-bar i{background:#72adff}
html[data-theme="dark"] :is(.constructions-bulk-item,.reg-exchange-review-card,.reg-device-custody-shortcut,.reg-custody-selected-photo,.con-start-settings-toggle){background:#1c2b42;color:var(--t);border-color:var(--b);box-shadow:none}
html[data-theme="dark"] #constructionsView .con-selection-float__clear{background:#243b5d;color:#e6f2ff;border-color:#54769e}
html[data-theme="dark"] #constructionsView .con-selection-float__clear:hover{background:#33527c}
html[data-theme="dark"] #constructionsView #tbl tr.con-row-selected td:not(.cellErr):not(.cellWarn){background:transparent}
html[data-theme="dark"] #constructionsView #tbl tr.con-row-selected{background:#203a59!important;box-shadow:inset 4px 0 #77b1ff}
html[data-theme="dark"] #constructionsView :is(.con-selected-inline,.con-selection-float){background:#1f426b;color:#d0e8ff;border-color:#568ac9;box-shadow:0 10px 24px rgba(0,0,0,.25)}
html[data-theme="dark"] :is(.reg-device-load-error,.reg-custody-photo-progress){color:var(--t)}
/* Departure calendar and planning: preserve the state colors. */
html[data-theme="dark"] :is(.dep-summary-card,.dep-calendar-card,.dep-day-card,.dep-page-card,.dep-engineer-section,.dep-day-registry-wrap,.dep-day-fullscreen-table-wrap){background:#152338;border-color:var(--b);color:var(--t);box-shadow:none}
html[data-theme="dark"] :is(.dep-cal-day,.dep-calendar-actions,.dep-load-chip,.dep-engineer-load,.dep-engineer-trip,.dep-trip-card,.dep-mini-card,.dep-primary-section,.dep-primary-entry,.dep-primary-box){background:#1b2a42;color:var(--t);border-color:#3b5270;box-shadow:none}
html[data-theme="dark"] .dep-trip-cloud:not(.is-cancelled):not(.is-done):not([class*="--flag-"]){background:#1b2a42;color:var(--t);border-color:#3b5270;box-shadow:none}
html[data-theme="dark"] :is(.dep-cal-day:hover,.dep-trip-card:hover,.dep-engineer-trip:hover){background:#233752}
html[data-theme="dark"] .dep-cal-day.is-selected{background:#244d7d;border-color:#77a8f2;color:#edf6ff}
html[data-theme="dark"] .dep-cal-day.is-done:not(.is-cancelled){background:#153e36;color:#d4fce9;border-color:#367760}
/* Existing calendar render uses .is-completed, not .is-done.  Keep completed
   dates green even though the dark base button background was overridden. */
html[data-theme="dark"] .dep-cal-day.is-completed{background:#163e35;color:#d7ffeb;border-color:#429875}
html[data-theme="dark"] .dep-cal-day.is-completed.is-selected{box-shadow:0 0 0 2px #8bc1ff}
html[data-theme="dark"] :is(.dep-trip-cloud.is-done,.dep-mini-card.is-done){background:rgba(16,79,57,.46);color:#e3fff2;border-color:#3b9b78}
html[data-theme="dark"] :is(.dep-trip-cloud--flag-red,.dep-mini-card.dep-trip-cloud--flag-red){background:rgba(105,33,51,.46);border-color:#b45d6d}
html[data-theme="dark"] :is(.dep-trip-cloud--flag-yellow,.dep-mini-card.dep-trip-cloud--flag-yellow){background:rgba(119,77,20,.38);border-color:#a98238}
html[data-theme="dark"] :is(.dep-trip-cloud--flag-green,.dep-mini-card.dep-trip-cloud--flag-green){background:rgba(19,91,64,.41);border-color:#488f72}
html[data-theme="dark"] :is(.dep-trip-cloud--flag-blue,.dep-mini-card.dep-trip-cloud--flag-blue){background:rgba(38,72,127,.48);border-color:#698fd0}
html[data-theme="dark"] :is(.dep-trip-cloud.is-cancelled,.dep-mini-card.is-cancelled){background:repeating-linear-gradient(135deg,#212c3d 0 11px,#1b2736 11px 22px);color:#b9c9dd;border-color:#5a718c}
html[data-theme="dark"] :is(.dep-trip-cloud__title.is-cancelled,.dep-day-row.is-cancelled .dep-day-row__object){color:#b6c4d7}
html[data-theme="dark"] :is(.dep-day-row.is-cancelled td,.dep-day-detail-row td){background:#1d2b3e;color:#bfd0e4}
html[data-theme="dark"] :is(.dep-trip-cloud__meta-item,.dep-cloud-chip,.dep-day-stat,.dep-status-badge.is-planned,.dep-day-row__work,.dep-trip-cloud__workline){background:#23364f;color:#e2efff;border-color:#45607c}
html[data-theme="dark"] :is(.dep-inline-check,.dep-debts-user-filter,.dep-object-picker__button,.dep-object-picker__menu,.dep-object-picker__option,.dep-primary-inline-picker,.dep-primary-statement-card){background:#1d2d45;color:var(--t);border-color:var(--b)}
html[data-theme="dark"] :is(.dep-object-picker__option:hover,.dep-object-picker__button:hover){background:#304665;color:#f4f8ff}
html[data-theme="dark"] :is(.dep-day-registry-table thead th,.dep-day-fullscreen-table-wrap .dep-day-registry-table thead th){background:#1b2c45;color:#deebfc}
html[data-theme="dark"] :is(.dep-primary-modal__footer,.dep-trip-modal__footer,.dep-smart-footer){background:#141f32;color:var(--t);border-color:var(--b)}
html[data-theme="dark"] .dep-primary-status.is-ok{background:#164633;color:#bdf1d4}
html[data-theme="dark"] .dep-primary-status.is-empty{background:#26344a;color:#cedcee}
html[data-theme="dark"] .dep-primary-entry__badge{background:#2b3568;color:#dce2ff}
html[data-theme="dark"] :is(.dep-primary-viewer-doc-state,.dep-primary-viewer-doc-state[data-mode="loading"]){background:rgba(13,24,41,.94);color:#e5efff}
html[data-theme="dark"] .dep-primary-viewer-pdf-page{background:#fff; /* PDF pages remain document-white */}
html[data-theme="dark"] .dep-primary-viewer-pdf-page canvas{background:#fff}
html[data-theme="dark"] .dep-primary-viewer-pdf-page__meta{background:#18263b;color:#e0ebfa}
html[data-theme="dark"] :is(.dep-primary-viewer-nav,.dep-primary-viewer-tool){background:#253a55;color:#eaf2ff;border-color:#55718e}
html[data-theme="dark"] :is(.dep-equipment-dialog__card,.dep-equipment-peek__panel,.dep-equipment-dialog .dep-equipment-peek__list li){background:#19283d;color:var(--t);border-color:var(--b)}
html[data-theme="dark"] :is(.dep-smart-employees-block,.dep-smart-settings,.dep-smart-group,.dep-smart-area-details,.dep-smart-group__head){background:#1b2c45;color:var(--t);border-color:var(--b)}
html[data-theme="dark"] .dep-smart-map-shell{background:#152238;color:var(--t)}
html[data-theme="dark"] .dep-smart-area-map{background:#1c2d44;color:var(--t)}
html[data-theme="dark"] .dep-smart-map-tile{filter:brightness(.66) saturate(.77) contrast(1.08)}
/* Invoice screens, stats, tables and dynamic menus */
html[data-theme="dark"] :is(.inv-object-choice,.inv-object-choice-empty,.inv-object-picker,.inv-stats-footer,.inv-invoice-modal,.inv-tone-popover-body){background:#192a42;color:var(--t);border-color:var(--b)}
html[data-theme="dark"] .inv-object-choice:hover{background:#2b4261}
html[data-theme="dark"] .inv-object-choice.is-selected{background:#244f7c;border-color:#5c92d6;color:#ecf7ff}
html[data-theme="dark"] :is(#invInvoiceModal .actions,#invStatsModal .inv-stats-footer){background:var(--card);color:var(--t);border-color:var(--b)}
/* The invoice dialog sets an element-local white input CSS variable by default;
   explicitly override it even before the user selects a surface tone. */
html[data-theme="dark"] #invInvoiceModal .gf-modal.inv-invoice-modal{
  --inv-modal-surface:#162238;
  --inv-panel-surface:#1c2c44;
  --inv-input-surface:#0e1b2e;
  color:var(--t);
  border-color:var(--b);
}
html[data-theme="dark"] :is(.inv-object-choice__sub,.inv-object-choice-empty){color:var(--m)}
/* Timesheets: data/code highlights remain distinct from ordinary cells. */
html[data-theme="dark"] :is(.ts-table-wrap,.ts-card,.ts-mobile-day,.ts-code,.ts-code-chip,.ts-mobile-card-totals span){background:#1c2b44;color:var(--t);border-color:var(--b)}
html[data-theme="dark"] .ts-table thead th{background:#1c2d45;color:#e4f0ff}
html[data-theme="dark"] .ts-table tbody tr:not([style*="--ts-row-color"]) td{background:#152238;color:var(--t)}
html[data-theme="dark"] .ts-table tbody tr[style*="--ts-row-color"] td{background:color-mix(in srgb,var(--ts-row-color) 24%,#121f32);color:#f1f6ff}
html[data-theme="dark"] :is(.ts-mobile-day-input,.ts-table input.ts-day-input,.ts-table input.ts-emp-input){background:#101c30;color:var(--t);border-color:#506682}
html[data-theme="dark"] .ts-mobile-day.ts-code-colored{background:color-mix(in srgb,var(--ts-code-color,#526c94) 24%,#19273a);color:var(--t)}
html[data-theme="dark"] .ts-code-color{border-color:#637991}
/* Chat and notifications. Avoid white bubbles and low-contrast captions. */
html[data-theme="dark"] :is(.gf-chat-panel,.gf-chat-panel__head,.gf-chat-panel__composer,.gf-chat-messages,.gf-chat-mention-menu){background:#132238;color:var(--t);border-color:var(--b)}
html[data-theme="dark"] :is(.gf-chat-message,.gf-chat-empty){background:#1e304a;color:#e8f0fb;border-color:#425b78}
html[data-theme="dark"] .gf-chat-message.is-own{background:#214267;border-color:#3f79a4;color:#fff}
html[data-theme="dark"] :is(.gf-chat-message__author,.gf-chat-message__body){color:#f0f6ff}
html[data-theme="dark"] :is(.gf-chat-panel__meta,.gf-chat-message__time,.gf-chat-panel__hint,.gf-chat-mention-item__name){color:#adc4dd}
html[data-theme="dark"] .gf-chat-mention{background:#2f517b;color:#d0e6ff}
html[data-theme="dark"] .gf-chat-mention.is-self{background:#5c461f;color:#ffe5a3}
html[data-theme="dark"] .gf-chat-message__delete{background:#432a39;color:#ffb7bd;border-color:#8e4f60}
html[data-theme="dark"] .gf-chat-mention-item:hover{background:#2c4565}
/* Readable note markers without glaring pastel rectangles. */
html[data-theme="dark"] .dep-search-more-card{background:#1c2b44!important;border-color:#445a77!important;color:#e9f2ff}
html[data-theme="dark"] .dep-note-yellow{background:#60481d;color:#ffe3aa}
html[data-theme="dark"] .dep-note-green{background:#194333;color:#c5f4d6}
html[data-theme="dark"] .dep-note-blue{background:#203e67;color:#d1e5ff}
html[data-theme="dark"] .dep-note-red{background:#642c3a;color:#ffd3d9}
html[data-theme="dark"] :is(#pushModal .card,#pushModal .push-pref-item,#pushModal .push-notes-list){background:#1d2c43;color:var(--t);border-color:var(--b)}
/* Seasonal-theme preferences remain separate from light/dark appearance. */
html[data-theme="dark"] .glg-theme-dialog.gf-modal{background:#142137;color:#e9f2ff;border-color:var(--b)}
html[data-theme="dark"] :is(.glg-theme-current,.glg-theme-personal,.glg-theme-admin,.glg-theme-option){background:#1c2c45;color:#e9f2ff;border-color:#3c516d}
html[data-theme="dark"] .glg-theme-admin{background:#17263d}
html[data-theme="dark"] :is(.glg-theme-dialog__head p,.glg-theme-current__overline,.glg-theme-current__detail,.glg-theme-help,.glg-theme-admin__head p,.glg-theme-option__desc,.glg-theme-admin__message){color:#b3c6df}
html[data-theme="dark"] :is(.glg-theme-personal__body strong,.glg-theme-option__title){color:#f3f8ff}
html[data-theme="dark"] .glg-theme-option:has(input:checked){background:#214d48;border-color:#58bca6;box-shadow:0 0 0 2px rgba(62,210,176,.17)}
html[data-theme="dark"] :is(.glg-theme-close,.glg-theme-current__icon,.glg-theme-admin__tag){background:#2a3a57;color:#e5f1ff;border-color:#4b6586}
html[data-theme="dark"] .glg-theme-personal__switch{background:#52627a}
.glg-appearance-personal{margin-bottom:10px!important}
.glg-appearance-switch{cursor:pointer}
html[data-theme="dark"] .login-shell{background:#142238;color:var(--t);border-color:var(--b);box-shadow:0 25px 66px rgba(0,0,0,.42)}
html[data-theme="dark"] .login-shell :is(label,.install-title){color:#e7effb}
html[data-theme="dark"] .login-shell :is(.muted,.status,.hint,.install-meta){color:var(--m)}
html[data-theme="dark"] .login-shell :is(input,.login-message,.install-box){background:#1b2c46;color:var(--t);border-color:var(--b)}
html[data-theme="dark"] .login-shell .login-message.error{background:#52232e;color:#ffb5b5;border-color:#90414d}
html[data-theme="dark"] .login-shell .login-message.info{background:#213a60;color:#d4e8ff;border-color:#426fab}
html[data-theme="dark"] .login-shell button{background:#2c64b8;color:#fff;border-color:#488bdc}
.login-shell .login-appearance-switch{margin-top:12px;min-height:40px;background:transparent!important;color:#466a9e!important;border:1px solid #b8cadb!important;font-size:13px;font-weight:650}
html[data-theme="dark"] .login-shell .login-appearance-switch{background:#243751!important;color:#dcecff!important;border-color:#536a88!important}
/* Explicitly distinguish text-entry focus and disabled states on touch devices. */
@media(max-width:768px){
  html[data-theme="dark"] :is(.mobile-bottom-nav,.mobile-bottom-nav__shell){background:#101b2d}
  html[data-theme="dark"] .mobile-nav-sheet{background:#18263d}
}


/* OfficeGLG 0.7.67: VFX contrast in dark mode.
   The legacy award themes use nearly white glass chips; with the dark theme's
   pale foreground those chips rendered text, counts and assignments illegibly.
   Keep all 13 animated frames, but provide dark glass *behind* their content.
   Scoped to dark VFX only: ordinary/flagged/cancelled trips are unchanged. */
html[data-theme="dark"] .dep-completion-vfx{
  --vfx-chip-bg:rgba(11,35,36,.97);
  --vfx-chip-border:rgba(97,204,165,.42);
  --vfx-chip-shadow:0 1px 0 rgba(189,255,218,.08) inset;
  --vfx-done-bg:rgba(9,66,45,.98);
  --vfx-done-border:rgba(91,210,139,.56);
  --vfx-done-shadow:0 1px 0 rgba(196,255,222,.09) inset,0 0 11px rgba(74,222,128,.08);
  --vfx-side-btn-bg:rgba(12,35,41,.97);
  --vfx-side-btn-border:rgba(98,181,167,.48);
  --vfx-title-shadow:0 1px 3px rgba(0,0,0,.66);
}
/* A subtle solid reading area keeps names legible even when a bright
   holographic ribbon crosses the card. It does not cover the outer VFX. */
html[data-theme="dark"] .dep-trip-cloud.dep-completion-vfx .dep-trip-cloud__titlebox{
  padding:8px 10px;
  border:1px solid rgba(120,221,179,.17);
  border-radius:12px;
  background:rgba(4,24,28,.87);
  box-shadow:0 3px 12px rgba(0,0,0,.15);
}
html[data-theme="dark"] .dep-trip-cloud.dep-completion-vfx :is(.dep-trip-cloud__title-customer,.dep-trip-cloud__title-object,.dep-trip-cloud__workvalue,.dep-trip-cloud__meta-value){
  color:#f0fbf6;
}
html[data-theme="dark"] .dep-trip-cloud.dep-completion-vfx :is(.dep-trip-cloud__sub,.dep-trip-cloud__title-sep,.dep-trip-cloud__worklabel,.dep-trip-cloud__meta-label){
  color:#b7cfc9;
}
html[data-theme="dark"] .dep-trip-cloud.dep-completion-vfx :is(.dep-cloud-chip,.dep-trip-cloud__meta-item,.dep-trip-cloud__workline),
html[data-theme="dark"] .dep-mini-card.dep-completion-vfx .dep-cloud-chip{
  background:rgba(11,35,36,.97)!important;
  border-color:rgba(97,204,165,.42)!important;
  color:#e6f9f0;
}
html[data-theme="dark"] .dep-trip-cloud.dep-completion-vfx :is(.dep-cloud-link-btn,.dep-primary-trigger,button.small,a.small),
html[data-theme="dark"] .dep-mini-card.dep-completion-vfx :is(.dep-primary-trigger,.dep-object-history-toggle){
  background:rgba(12,35,41,.97)!important;
  border-color:rgba(98,181,167,.48)!important;
  color:#c8e4ff!important;
  box-shadow:0 1px 0 rgba(184,255,219,.08) inset;
}
html[data-theme="dark"] .dep-trip-cloud.dep-completion-vfx :is(.dep-cloud-link-btn,.dep-primary-trigger,button.small,a.small):hover,
html[data-theme="dark"] .dep-mini-card.dep-completion-vfx :is(.dep-primary-trigger,.dep-object-history-toggle):hover{
  background:#22544c!important;
  border-color:#74d5b0!important;
  color:#ffffff!important;
}
html[data-theme="dark"] .dep-trip-cloud.dep-completion-vfx .dep-status-badge.is-done,
html[data-theme="dark"] .dep-mini-card.dep-completion-vfx .dep-status-badge.is-done{
  background:rgba(9,66,45,.98)!important;
  border-color:rgba(91,210,139,.56)!important;
  color:#c2fbd9!important;
}
html[data-theme="dark"] .dep-completion-vfx .dep-vfx-art{
  filter:brightness(.78);
}
html[data-theme="dark"] .dep-trip-cloud.dep-completion-vfx > .dep-trip-cloud__summary > .dep-vfx-art--summary{
  opacity:.66;
}
html[data-theme="dark"] .dep-trip-cloud.dep-completion-vfx[open] > .dep-trip-cloud__summary > .dep-vfx-art--summary{
  opacity:0;
}
html[data-theme="dark"] .dep-trip-cloud.dep-completion-vfx[open] > .dep-vfx-art--expanded,
html[data-theme="dark"] .dep-mini-card.dep-completion-vfx .dep-vfx-art{
  opacity:.66;
}
/* Guard against future variants that add a white sheen to the foreground. */
html[data-theme="dark"] .dep-trip-cloud.dep-completion-vfx::after,
html[data-theme="dark"] .dep-mini-card.dep-completion-vfx::after{
  opacity:.38!important;
}

/* OfficeGLG 0.7.69: today and selected day remain distinguishable in dark mode.
   #depCalendar scopes the accent to Departures, without changing other calendars.
   The bright cyan ring marks today; the blue/green surface still communicates
   selected/completed status, including when these states occur together. */
html[data-theme="dark"] #depCalendar .dep-cal-day.is-today{
  background:linear-gradient(135deg,rgba(34,211,238,.19),rgba(34,211,238,.04) 78%),#1b2a42;
  border:2px solid #67e8f9;
  box-shadow:0 0 0 2px rgba(103,232,249,.24),inset 0 0 0 1px rgba(103,232,249,.16);
}
html[data-theme="dark"] #depCalendar .dep-cal-day.is-today .dep-cal-day__num::after{
  content:"";display:inline-block;width:6px;height:6px;margin-left:5px;
  vertical-align:middle;border-radius:50%;background:#67e8f9;
  box-shadow:0 0 0 2px rgba(103,232,249,.18);
}
html[data-theme="dark"] #depCalendar .dep-cal-day.is-today.is-selected{
  background:linear-gradient(135deg,rgba(34,211,238,.13),rgba(34,211,238,.02) 78%),#244d7d;
  box-shadow:0 0 0 2px rgba(103,232,249,.4),inset 0 0 0 1px rgba(147,197,253,.25);
}
html[data-theme="dark"] #depCalendar .dep-cal-day.is-today.is-completed{
  background:linear-gradient(135deg,rgba(34,211,238,.15),rgba(34,211,238,.025) 78%),#163e35;
  color:#d7ffeb;
}
html[data-theme="dark"] #depCalendar .dep-cal-day.is-today.is-completed.is-selected{
  background:linear-gradient(135deg,rgba(34,211,238,.12),rgba(34,211,238,.02) 78%),#163e35;
  box-shadow:0 0 0 2px rgba(103,232,249,.4),inset 0 0 0 1px rgba(147,197,253,.25);
}
