/* Personal application appearance. Light mode retains the existing brand palette.
   Explicit component surfaces are recoloured; photographs, logos, charts and
   third-party document/web frames are never filtered or inverted. */
.scheme180-section{min-width:0;margin:0 0 20px;padding:16px 18px;border:1px solid #e1e7ef;border-radius:14px;background:#fff}
.scheme180-section legend{padding:0 6px;font-size:14px;font-weight:650}
.scheme180-section>p{margin:0 0 12px;font-size:12px;line-height:1.6;color:#64748b}
.scheme180-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
label.scheme180-choice{display:flex;align-items:center;gap:10px;margin:0!important;padding:13px;border:1px solid #dce5f0;border-radius:11px;background:#f8fafc;cursor:pointer;color:#334155}
label.scheme180-choice:has(input:checked){background:var(--zsc-accent-soft,#edf4ff);border-color:var(--zsc-accent,#1565ff)}
label.scheme180-choice input{width:16px!important;height:16px;margin:0!important;flex:none;accent-color:var(--zsc-accent,#1565ff)}
.scheme180-choice:focus-within{outline:2px solid var(--zsc-accent,#1565ff);outline-offset:2px}
.scheme180-icon{font-size:21px;line-height:1}
.scheme180-choice>span:last-child{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px;line-height:1.4}
.scheme180-choice b{font-size:13px;font-weight:650}
.scheme180-choice small{font-size:12px;font-weight:400;color:#64748b}
.scheme180-settings{padding:20px;margin:0 0 20px;border:1px solid #e1e7ef;border-radius:14px;background:#fff}
.scheme180-settings>h4{margin:0 0 6px!important}
.scheme180-settings>p{line-height:1.6}
.scheme180-settings .scheme180-section{margin:16px 0 14px;padding:14px 16px}
.scheme180-settings-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px}
#scheme180SettingsStatus{flex:1;min-width:0;line-height:1.6;overflow-wrap:anywhere}
.settings-center-card #scheme180SettingsSave{margin-top:0}
#scheme180Toggle{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;border:1px solid #dce5f0;white-space:nowrap;font-size:12px;flex:none}
#scheme180Toggle:focus-visible{outline:2px solid var(--zsc-accent,#1565ff);outline-offset:2px}

html[data-zsc-scheme="dark"]{
  color-scheme:dark;
  --scheme-bg:#0d1420;
  --scheme-stage:#111b2a;
  --scheme-panel:#182434;
  --scheme-raised:#213044;
  --scheme-input:#111d2c;
  --scheme-hover:#27384d;
  --scheme-line:#334459;
  --scheme-text:#e6edf6;
  --scheme-secondary:#c1cede;
  --scheme-muted:#9aaec6;
  --scheme-link:color-mix(in srgb,var(--zsc-accent,#1565ff) 48%,#e0edff);
  --zsc-app-bg:var(--scheme-bg);
  --zsc-stage-bg:var(--scheme-stage);
  --zsc-accent-soft:color-mix(in srgb,var(--zsc-accent,#1565ff) 18%,var(--scheme-panel));
  --zsc-accent-border:color-mix(in srgb,var(--zsc-accent,#1565ff) 45%,var(--scheme-line));
  --bg:var(--scheme-bg);--panel:var(--scheme-panel);--panel-2:var(--scheme-raised);
  --panel-soft:var(--scheme-stage);--surface:var(--scheme-panel);
  --border:var(--scheme-line);--line:var(--scheme-line);--muted:var(--scheme-muted);
  color:var(--scheme-text);background:var(--scheme-bg);
  scrollbar-color:#526780 var(--scheme-stage);
}
html[data-zsc-scheme="dark"] body{color:var(--scheme-text);background:var(--scheme-bg)}
html[data-zsc-scheme="dark"] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),textarea,select){background:var(--scheme-input)!important;color:var(--scheme-text)!important;border-color:var(--scheme-line)!important}
html[data-zsc-scheme="dark"] :is(input,textarea)::placeholder{color:#91a4bb;opacity:1}
html[data-zsc-scheme="dark"] :is(input,textarea,select):focus{border-color:var(--zsc-accent)!important;box-shadow:0 0 0 3px var(--zsc-accent-soft)!important}
html[data-zsc-scheme="dark"] :is(input,textarea,select):disabled{color:var(--scheme-muted)!important;background:var(--scheme-stage)!important}
html[data-zsc-scheme="dark"] :is(.muted,.status-line,.conv-preview,.conv-meta,.conv-group-header span,.conv-group-info,.msg-name,.msg-time,.msg-by,.internal-msg-meta,.internal-empty,.user-meta,.empty-state,.timeline-meta,.ticket-main-title,.mention-hint,.member-row small,.members-title,.cx18-time,.al18-orig){color:var(--scheme-muted)!important}
html[data-zsc-scheme="dark"] :is(h1,h2,h3,h4,h5,legend,label,.conv-title,.timeline-title,.ticket-title,.sub-title,.conv-group-header b){color:var(--scheme-text)}
html[data-zsc-scheme="dark"] a:not(.primary):not(.zgs-download){color:var(--scheme-link)}
html[data-zsc-scheme="dark"] :is(.primary,.unified-group-chat #unifiedCreateTicketBtn,.unified-group-chat #zgsComposer>button){color:#fff}
html[data-zsc-scheme="dark"] :is(.ghost,.icon-btn,.filter,.tag-chip,.profile-row,.member-row,.dk18-btn,.conversation-settings-button,.conversation-controls-toggle,.cx18-older,.al18-edit,.ma18-more,.zpc-btn,.zpc-x,.kb18-btn,.kb18-x,.kb18-pi,.kb18-pa button:not(.pri),.dash18-ghost){background:var(--scheme-raised)!important;border-color:var(--scheme-line)!important;color:var(--scheme-secondary)!important}
html[data-zsc-scheme="dark"] :is(.ghost,.icon-btn,.filter,.tag-chip,.profile-row,.member-row,.dk18-btn,.conversation-settings-button,.conversation-controls-toggle,.cx18-older,.al18-edit,.ma18-more,.zpc-btn,.zpc-x,.kb18-btn,.kb18-x,.dash18-ghost):hover:not(:disabled){background:var(--scheme-hover)!important;color:var(--scheme-text)!important}
html[data-zsc-scheme="dark"] :is(.danger-ghost,.ma18-menu button.danger){background:#40242c!important;color:#ffb0b9!important}
html[data-zsc-scheme="dark"] :is(.filter.active,.tag-chip.active,.member-row.active,.profile-row.active,.dk18-btn.on,.conversation-controls-toggle[aria-expanded="false"],.ic18-row.active){background:var(--zsc-accent-soft)!important;border-color:var(--zsc-accent-border)!important;color:var(--scheme-link)!important}
html[data-zsc-scheme="dark"] .toast{background:#273b53;color:#f1f5f9;border:1px solid #4a6480;box-shadow:0 12px 30px #0005}
html[data-zsc-scheme="dark"] .toast.error{background:#6c2731;border-color:#98505c;color:#fff}
html[data-zsc-scheme="dark"] .modal:not(.dk18-docked){background:rgba(3,8,16,.72)}
html[data-zsc-scheme="dark"] :is(.modal-card,.modal-head,.panel,.auth-card,.sidebar,.detail-pane,.chat-head,.composer,.internal-composer,.internal-chat-head,.internal-conversation,.v110-sidebar,.zgs-members,.zgs-info,.notification-item,.user-row,.category-admin-row,.admin-unit-row,.api-token-row,.remote-card,.remote-admin-row,.meeting-row){background:var(--scheme-panel)!important;color:var(--scheme-text);border-color:var(--scheme-line)!important}
html[data-zsc-scheme="dark"] :is(.sidebar-head,.sidebar-foot,.conversation-list,.detail-section,.modal-head,.section-title,.internal-chat-layout,.internal-chat-head,.composer,.internal-composer,.v150-inbox-head,.dashboard-strip div,.ticket-foot,.api-token-list-wrap){border-color:var(--scheme-line)!important}
html[data-zsc-scheme="dark"] :is(#appView,.chat-pane,.messages,.internal-messages,.internal-members,.auth-shell,.empty-state){background:var(--scheme-stage)!important}
html[data-zsc-scheme="dark"] .auth-shell{background:radial-gradient(circle at top,#1c2e45,var(--scheme-bg) 65%)!important}
html[data-zsc-scheme="dark"] :is(.dashboard-strip,.conv-group-header,.ticket-box,.profile-summary,.timeline-body,.zalo-card,.api-help,.category-org-title,.v150-reply-context,.v160-flow-banner,#conversationHandling170,#replyTicketContext,.reply-banner,.channel-reply-banner,.mp18-rail,.ic18-day span,.wb-home,.wb-bm){background:var(--scheme-raised)!important;border-color:var(--scheme-line)!important;color:var(--scheme-secondary)!important}
html[data-zsc-scheme="dark"] :is(.dashboard-strip span,.v150-inbox-head span,.v150-welcome-stats span,.realtime-clock span,.v150-reply-context,.v150-connector-status small,.v150-utility-admin-row small,.v150-utility-admin-row em){color:var(--scheme-muted)!important}
html[data-zsc-scheme="dark"] :is(.v150-inbox-head strong,.v150-welcome h3,.v150-welcome-stats b,.v150-reply-context b,#chatTitle,#chatSub,.empty-state h3){color:var(--scheme-text)!important}
html[data-zsc-scheme="dark"] :is(.v150-health-chip,.v150-user-chip,.v150-top-bell,.realtime-clock,.v150-welcome-stats button,.v150-detail-tabs,.v150-link-utility,.v150-connector-card,.v150-utility-admin-row,.utility-tile,.utility-widget,.wb-stage){background:var(--scheme-panel)!important;border-color:var(--scheme-line)!important;color:var(--scheme-secondary)!important}
html[data-zsc-scheme="dark"] .v150-nav-rail{border-color:var(--scheme-line)}
html[data-zsc-scheme="dark"] .v150-nav-brand{background:var(--scheme-raised);color:var(--scheme-link)}
html[data-zsc-scheme="dark"] :is(.v150-detail-tabs button,.source-filter,.channel-code-badge,.active-channel-badge,.role-pill,.mini-pill,.priority,.ticket-status-pill){background:var(--scheme-raised);border-color:var(--scheme-line);color:var(--scheme-secondary)}
html[data-zsc-scheme="dark"] .v150-detail-tabs button.active{background:var(--zsc-accent);color:#fff}
html[data-zsc-scheme="dark"] :is(.conv,.ic18-row):hover{background:var(--scheme-raised)!important}
html[data-zsc-scheme="dark"] #appView #conversationList .conv.active{background:var(--zsc-accent-soft)!important}
html[data-zsc-scheme="dark"] #appView #conversationList,
html[data-zsc-scheme="dark"] #appView #conversationList .org-folder-items{background:var(--scheme-panel)!important;border-color:var(--scheme-line)!important;color:var(--scheme-text)}
html[data-zsc-scheme="dark"] #appView .sidebar>#fl18Bar .fl18-chip{background:var(--scheme-panel)!important;border-color:var(--scheme-line)!important;color:var(--scheme-text)!important}
html[data-zsc-scheme="dark"] #appView .sidebar>#fl18Bar .fl18-chip:hover{background:var(--scheme-raised)!important;border-color:var(--zsc-accent-border)!important}
html[data-zsc-scheme="dark"] #appView .sidebar>#fl18Bar .fl18-chip em{color:var(--scheme-muted)!important}
html[data-zsc-scheme="dark"] #appView .sidebar>#fl18Bar .fl18-ai.on{background:#173c2c!important;border-color:#3b7052!important}
html[data-zsc-scheme="dark"] #appView .sidebar>#fl18Bar .fl18-ai.on em{color:#a8e5be!important}
html[data-zsc-scheme="dark"] #fl18Count{background:var(--zsc-accent-soft)!important;color:var(--scheme-link)!important}
html[data-zsc-scheme="dark"] :is(.conv-group-icon,.avatar,.unified-group-avatar,.v150-utility-tile em){background:var(--zsc-accent-soft);color:var(--scheme-link);border-color:var(--zsc-accent-border)}
html[data-zsc-scheme="dark"] :is(.msg,.internal-msg){background:var(--scheme-panel);color:var(--scheme-text);border-color:var(--scheme-line)}
html[data-zsc-scheme="dark"] .msg-body{background:transparent;color:inherit}
html[data-zsc-scheme="dark"] :is(.msg.outgoing.snd18-mine,.msg.outgoing:not([class*="snd18-from-"]),.internal-msg.mine.snd18-mine,.internal-msg.mine:not([class*="snd18-from-"])){background:var(--zsc-accent-soft)!important;border-color:var(--zsc-accent-border)!important;color:var(--scheme-text)!important}
html[data-zsc-scheme="dark"] :is(.msg.outgoing.snd18-from-internal_user:not(.snd18-mine) .msg-body,.internal-msg.mine.snd18-from-internal_user:not(.snd18-mine)){background:#17344b!important;color:#d6ebff!important;border-color:#365873!important}
html[data-zsc-scheme="dark"] :is(.msg.outgoing.snd18-from-external .msg-body,.msg.outgoing.snd18-from-api .msg-body,.internal-msg.mine.snd18-from-external,.internal-msg.mine.snd18-from-api){background:#263447!important;color:var(--scheme-text)!important;border-color:#526980!important}
html[data-zsc-scheme="dark"] .msg.outgoing.snd18-from-automation .msg-body{background:#163b3b!important;color:#b8efe7!important;border-color:#407973!important}
html[data-zsc-scheme="dark"] :is(.snd18-self,.snd18-deployment,.snd18-automation){background:var(--scheme-raised);border-color:var(--scheme-line)}
html[data-zsc-scheme="dark"] .snd18-self{color:#a8ceff}
html[data-zsc-scheme="dark"] .snd18-deployment{color:#d4bcff}
html[data-zsc-scheme="dark"] .snd18-automation{color:#99e8d9}
html[data-zsc-scheme="dark"] :is(.msg.outgoing.snd18-from-internal_user:not(.snd18-mine) .msg-by,.internal-msg.mine.snd18-from-internal_user:not(.snd18-mine) .internal-msg-meta){color:#a8d6f6!important}
html[data-zsc-scheme="dark"] .msg-by.snd18-me{color:#a8ceff!important}
html[data-zsc-scheme="dark"] :is(.msg .mention,.zgs-mention,.internal-msg .mention,.msg-body a,.mp18-go,.mp18-badge,.ic18-row.unread .ic18-top time){color:var(--scheme-link)!important}
html[data-zsc-scheme="dark"] :is(.zgs-quote,.zgs-message-quote,.zgs-reply-bar,.zgs-file-bar,.zgs-file-chip,.ic18-quote,.reply-preview,.zgs-info-row,.zgs-info-card,.zgs-file-row,.ic18-channel-info){background:var(--scheme-raised)!important;color:var(--scheme-secondary)!important;border-color:var(--scheme-line)!important}
html[data-zsc-scheme="dark"] :is(.zgs-quote,.zgs-message-quote,.zgs-reply-bar){border-left-color:var(--zsc-accent)!important}
html[data-zsc-scheme="dark"] :is(.zgs-suggest,.zgs-suggest-head,.zgs-suggest-row,.zgs-members,.zgs-info,.ic18-pop,.ic18-actions,.ma18-menu,.it18-menu,.v150-more-menu,.kb18-pop,.mention-dropdown,.mention-list,.reaction-picker,.rx18-picker){background:var(--scheme-panel)!important;border-color:var(--scheme-line)!important;color:var(--scheme-text)!important}
html[data-zsc-scheme="dark"] :is(.zgs-suggest-row span,.zgs-suggest-section-head,.zgs-info p,.zgs-info small,.zgs-tl,.mp18-copy>span,.ic18-prev,.ic18-sep,.mp18-unpin,.mp18-more,.mp18-retry){color:var(--scheme-muted)!important}
html[data-zsc-scheme="dark"] :is(.zgs-suggest-row:hover,.ic18-actions button:hover,.ic18-picker button:hover,.ma18-menu button:hover,.it18-menu button:hover,.v150-more-menu button:hover,.kb18-pl button:hover,.mention-item:hover,.wb-bm:hover){background:var(--scheme-hover)!important;color:var(--scheme-text)!important}
html[data-zsc-scheme="dark"] :is(.ma18-menu button,.it18-menu button,.v150-more-menu button,.kb18-pl button,.mp18-go,.zgs-member b,.ic18-row.unread .ic18-prev){color:var(--scheme-text)!important}
html[data-zsc-scheme="dark"] :is(.unified-group-chat .zgs-tools,.unified-group-chat .internal-chat-head,.unified-group-chat .internal-composer,.unified-group-chat #zgsMoreMenu,.unified-group-chat #zgsMoreMenu>button){background:var(--scheme-panel)!important;border-color:var(--scheme-line)!important;color:var(--scheme-secondary)!important}
html[data-zsc-scheme="dark"] :is(.unified-group-chat .zgs-tools button,.unified-group-chat .zgs-embedded-tools>button:not(.primary),.unified-group-chat .zgs-toolbar-secondary>button,.unified-group-chat #zgsMoreBtn,.zgs-filter-chip){background:var(--scheme-raised)!important;border-color:var(--scheme-line)!important;color:var(--scheme-secondary)!important}
html[data-zsc-scheme="dark"] :is(.unified-group-chat .internal-chat-head button.active,.unified-group-chat .zgs-filter-chip:has(input:checked),.unified-group-chat #zgsMoreBtn[aria-expanded="true"],.zgs-ai-section){background:var(--zsc-accent-soft)!important;color:var(--scheme-link)!important;border-color:var(--zsc-accent-border)!important}
html[data-zsc-scheme="dark"] .unified-group-chat #unifiedCreateTicketBtn{background:var(--zsc-accent)!important;color:#fff!important;border-color:var(--zsc-accent)!important}
html[data-zsc-scheme="dark"] .zgs-tl.staff{background:var(--zsc-accent-soft)}
html[data-zsc-scheme="dark"] .zgs-download{background:#153c2b;color:#a0e8bf;border-color:#3b7052}
html[data-zsc-scheme="dark"] .zgs-ticket-chip{background:var(--zsc-accent-soft);color:var(--scheme-link);border-color:var(--zsc-accent-border)}
/* Settings, including cards that originally carried important light surfaces. */
html[data-zsc-scheme="dark"] :is(.settings-center-card .settings-body,#adminModal.s18-embedded-admin>.modal-card,.adm18-main){background:var(--scheme-stage)!important;color:var(--scheme-text)}
html[data-zsc-scheme="dark"] :is(.settings-center-card .settings-nav,.settings-center-card .settings-subbox,.adm18-nav,#adminModal.s18-embedded-admin .adm18-nav,.cn18-card,.cn18-technical,.scheme180-section,.scheme180-settings,.appearance-card,.sla-auto180,.dm180-storage-card,.dm180-step,.dm180-history,.dm180-access){background:var(--scheme-panel)!important;border-color:var(--scheme-line)!important;color:var(--scheme-text)}
html[data-zsc-scheme="dark"] :is(.settings-center-card label,.settings-center-card .settings-page h4,.adm18-crumb b,.cn18-card-head h5,.cn18-technical summary,.dm180 h3,.dm180 h4,.dm180-card-copy>strong,.dm180-card-size,.dm180-history-copy>strong){color:var(--scheme-text)!important}
html[data-zsc-scheme="dark"] :is(.settings-center-card .settings-tab,.adm18-item){color:var(--scheme-secondary)!important}
html[data-zsc-scheme="dark"] :is(.settings-center-card .settings-tab:hover,.adm18-item:hover){background:var(--scheme-hover)!important}
html[data-zsc-scheme="dark"] .settings-center-card .settings-tab.active{background:var(--zsc-accent-soft)!important;color:var(--scheme-link)!important}
html[data-zsc-scheme="dark"] .adm18-item.active{background:var(--zsc-accent)!important;color:#fff!important}
html[data-zsc-scheme="dark"] :is(.settings-center-card button.ghost.small,.thr18-presets button,.appearance-logo-controls button,.appearance-logo-option,.appearance-theme-option,.appearance-actions .ghost,.cn18-status,.dm180-button:not(.is-primary),.dm180-change-location,.dm180-reveal,.dm180-chip,.scheme180-choice){background:var(--scheme-raised)!important;border-color:var(--scheme-line)!important;color:var(--scheme-secondary)!important}
html[data-zsc-scheme="dark"] :is(.scheme180-choice:has(input:checked),.appearance-logo-option[aria-pressed="true"],.cn18-status[data-enabled="true"]){background:var(--zsc-accent-soft)!important;border-color:var(--zsc-accent-border)!important;color:var(--scheme-link)!important}
html[data-zsc-scheme="dark"] .scheme180-choice small{color:var(--scheme-muted)}
html[data-zsc-scheme="dark"] :is(.appearance-card-head h4,.appearance-section-title,.appearance-preview-title,.appearance-preview-title>b){color:var(--scheme-text)!important}
html[data-zsc-scheme="dark"] :is(.appearance-preview,.appearance-logo-preview){background:var(--scheme-raised)!important;border-color:var(--scheme-line)!important}
html[data-zsc-scheme="dark"] :is(.appearance-card-head p,.appearance-logo-controls p,.appearance-logo-controls small,.appearance-logo-controls>span,.appearance-theme-option>small,.appearance-preview-title small,.appearance-status,.scheme180-section>p,.cn18-intro,.cn18-card-head p,.cn18-secret-help,.dm180 p,.dm180-path,.dm180-card-copy>span,.dm180-card-detail,.dm180-disk-legend,.dm180-location>span:first-child,.dm180-history-copy>span,.dm180-local-label,.dm180-prerequisite,.thr18-sub,.thr18-live span){color:var(--scheme-muted)!important}
html[data-zsc-scheme="dark"] :is(#v080TaskColumns .kanban-setting-row,.unit-catalog-categories,.dm180-empty,.dm180-job,.sla-auto180-ai-test,.sla-auto180-result){background:var(--scheme-raised)!important;border-color:var(--scheme-line)!important;color:var(--scheme-secondary)!important}
html[data-zsc-scheme="dark"] :is(.dm180-storage-card>summary:hover,.dm180-history>li:hover){background:var(--scheme-hover)}
/* Work and dashboard use their own design variables, inherited by charts too. */
html[data-zsc-scheme="dark"] :is(#workCenterModal,#taskFormModal,#taskDetailModal,#taskAssignModal){--work-ink:var(--scheme-text);--work-muted:var(--scheme-muted);--work-line:var(--scheme-line);--work-surface:var(--scheme-stage);--work-blue:var(--zsc-accent)}
html[data-zsc-scheme="dark"] :is(#workCenterModal .work-head,#workCenterModal .work-tabs,#workCenterModal .work-stat,#workCenterModal .work-list-panel,#workCenterModal .my-work-row,#workCenterModal .workload-box,#workCenterModal .task-card,.task-info-card,.task-detail-section,.task-history-row,.kb18-top,.kb18-bar,.kb18-card-t,.dash18-head,.dash18-panel,.dash18-kpi,.dash18-row,.dash18-rv,.dash18-wstat,.dash18-chart){background:var(--scheme-panel)!important;color:var(--scheme-text);border-color:var(--scheme-line)!important}
html[data-zsc-scheme="dark"] :is(.work-center-card,.kb18-card,.dash18-card,.zpc-card){background:var(--scheme-stage)!important}
html[data-zsc-scheme="dark"] :is(#workCenterModal .task-col,#workCenterModal .kanban-empty,.kb18-col,.kb18-col.over,.dash18-personal-row,.dash18-hcard,.dash18-closed,.dash18-scope,.dash18-work-status,.dash18-tab,.task-state,.kt-progress){background:var(--scheme-raised)!important;border-color:var(--scheme-line)!important;color:var(--scheme-secondary)!important}
html[data-zsc-scheme="dark"] :is(#workCenterModal .work-title-icon,#workCenterModal .work-stat-icon,#workCenterModal .work-empty-icon,.kb18-ico,.dash18-ico){background:var(--zsc-accent-soft);color:var(--scheme-link);border-color:var(--zsc-accent-border)}
html[data-zsc-scheme="dark"] :is(#workCenterModal .work-stat-copy b,#workCenterModal .work-row-body h4,#workCenterModal .work-empty h4,#workCenterModal .task-card .kt-title,#workCenterModal .workload-table tbody td,#workCenterModal .workload-table tbody td b,#workCenterModal .work-row-code b,.kb18-col>header b,.kb18-card-t .r1 b,.kb18-card-t .ttl,.dash18-kpi span,.dash18-personal-main,.dash18-hcard dd,.dash18-table th[scope="row"],.dash18-closed .dash18-explain){color:var(--scheme-text)!important}
html[data-zsc-scheme="dark"] :is(#workCenterModal .work-stat-copy span,#workCenterModal .work-section-head p,#workCenterModal .work-board-intro p,#workCenterModal .work-row-body p,#workCenterModal .work-row-code,#workCenterModal .work-row-meta,#workCenterModal .task-card .kt-meta,#workCenterModal .work-empty p,.kb18-sub,.kb18-card-t .org,.kb18-card-t .r2,.kb18-stat,.dash18-kpi small,.dash18-hint,.dash18-hcard dt,.dash18-hcard h5,.dash18-hnote,.dash18-personal-meta,.dash18-personal-status>small,.dash18-row small,.dash18-rv-main small,.dash18-closed small,.dash18-wstat span){color:var(--scheme-muted)!important}
html[data-zsc-scheme="dark"] :is(#workCenterModal .work-tab,#workCenterModal .task-card-actions button,#workCenterModal .board-tools .check,#workCenterModal .work-board-intro>.check,.kb18-card-t .r3 button,.kb18-col>header .n,.dash18-scope button,.dash18-tab,.dash18-rv-ticket,.dash18-work-action){background:var(--scheme-raised)!important;color:var(--scheme-secondary)!important;border-color:var(--scheme-line)!important}
html[data-zsc-scheme="dark"] :is(#workCenterModal .work-tab.active,.dash18-scope button.on,.dash18-tab.on,.dash18-tab.active,.dash18-work-action,.dash18-rv-ticket,.dash18-link){background:var(--zsc-accent-soft)!important;color:var(--scheme-link)!important;border-color:var(--zsc-accent-border)!important}
html[data-zsc-scheme="dark"] :is(#workCenterModal .workload-table th,.dash18-table thead th,.dash18-personal-code,.dash18-rv-main:hover b){background:var(--scheme-raised);color:var(--scheme-secondary)!important}
html[data-zsc-scheme="dark"] :is(#workCenterModal .workload-table th,#workCenterModal .workload-table td,.dash18-table th,.dash18-table td){border-color:var(--scheme-line)!important}
html[data-zsc-scheme="dark"] :is(#workCenterModal .workload-table tbody tr:hover,.dash18-row:hover,.dash18-personal-row:hover){background:var(--scheme-hover)!important}
html[data-zsc-scheme="dark"] .kb18-card-t.pending{background:linear-gradient(90deg,var(--scheme-panel) 0%,var(--scheme-hover) 50%,var(--scheme-panel) 100%);background-size:200% 100%}
html[data-zsc-scheme="dark"] .dash18-trends{--series-1:#65afff;--series-2:#ff9a64;--dc-grid:#334459;--dc-axis:#526780;--dc-ink:var(--scheme-text);--dc-ink-2:var(--scheme-secondary);--dc-muted:var(--scheme-muted);--dc-surface:var(--scheme-panel)}
html[data-zsc-scheme="dark"] .dc18-tip{background:var(--scheme-raised);border-color:var(--scheme-line)}
html[data-zsc-scheme="dark"] .dash18-kpi.neutral,html[data-zsc-scheme="dark"] .dash18-wstat.blue{--c:#7dbaff}
html[data-zsc-scheme="dark"] .dash18-kpi.amber,html[data-zsc-scheme="dark"] .dash18-wstat.amber{--c:#ffcb77}
html[data-zsc-scheme="dark"] .dash18-kpi.orange{--c:#ffad75}
html[data-zsc-scheme="dark"] .dash18-kpi.red,html[data-zsc-scheme="dark"] .dash18-wstat.red{--c:#ff929f}
html[data-zsc-scheme="dark"] .dash18-kpi.blue{--c:#6bdfed}
html[data-zsc-scheme="dark"] .dash18-kpi.violet,html[data-zsc-scheme="dark"] .dash18-wstat.violet{--c:#c6acff}
html[data-zsc-scheme="dark"] .dash18-wstat.green{--c:#93e1b2}
/* Unified Ticket / Task shell is mounted beside the individual dialog card. */
html[data-zsc-scheme="dark"] :is(.modal.ws18-host,.modal.dk18-docked.ws18-host,.wt18-page){background:var(--scheme-stage)!important;color:var(--scheme-text)}
html[data-zsc-scheme="dark"] .ws18-shell{background:var(--scheme-panel)!important;color:var(--scheme-text);border-color:var(--scheme-line)!important}
html[data-zsc-scheme="dark"] :is(.ws18-title h3,.ws18-kpi b,.wt18-head h4,.wt18-row .title b){color:var(--scheme-text)!important}
html[data-zsc-scheme="dark"] :is(.ws18-group>i,.ws18-kpi span,.wt18-head p,.wt18-count,.wt18-date,.wt18-row.head,.wt18-row .title small){color:var(--scheme-muted)!important}
html[data-zsc-scheme="dark"] :is(.ws18-ico,.ws18-kpi,.ws18-x,.ws18-views,.ws18-tab em,.wt18-row){background:var(--scheme-raised)!important;color:var(--scheme-secondary)!important;border-color:var(--scheme-line)!important}
html[data-zsc-scheme="dark"] .wt18-row{background:var(--scheme-panel)!important}
html[data-zsc-scheme="dark"] :is(.ws18-kpi:hover,.ws18-x:hover,.ws18-views button:hover,.wt18-row:not(.head):hover){background:var(--scheme-hover)!important;border-color:var(--zsc-accent-border)!important}
html[data-zsc-scheme="dark"] :is(.ws18-tab,.ws18-views button){color:var(--scheme-secondary)!important}
html[data-zsc-scheme="dark"] .ws18-tab:hover{color:var(--scheme-text)!important}
html[data-zsc-scheme="dark"] .ws18-tab.on{color:var(--scheme-link)!important;border-bottom-color:var(--zsc-accent)!important}
html[data-zsc-scheme="dark"] :is(.ws18-kpi.on,.ws18-tab.on em,.ws18-views button.on,.ws18-back button){background:var(--zsc-accent-soft)!important;color:var(--scheme-link)!important;border-color:var(--zsc-accent-border)!important}
html[data-zsc-scheme="dark"] .ws18-kpi.on{box-shadow:inset 0 0 0 1px var(--zsc-accent)}
html[data-zsc-scheme="dark"] :is(.ws18-kpi.hot,.ws18-tab em.hot){background:#442730!important;color:#ffb2bb!important;border-color:#754653!important}
html[data-zsc-scheme="dark"] .ws18-kpi.hot b{color:#ffb2bb!important}
html[data-zsc-scheme="dark"] .wt18-row.overdue{border-left-color:#ff929f!important}
html[data-zsc-scheme="dark"] .wt18-row.head{background:transparent!important;border-color:transparent!important}
/* Dashboard queue pills and staff rows share the surrounding panel palette. */
html[data-zsc-scheme="dark"] :is(.dash18-team-row,.dash18-stats>div){background:var(--scheme-panel)!important;border-color:var(--scheme-line)!important;color:var(--scheme-text)!important}
html[data-zsc-scheme="dark"] :is(.dash18-team-row.head,.dash18-chips button,.dash18-chips button i,.dash18-ages .zero){background:var(--scheme-raised)!important;color:var(--scheme-secondary)!important}
html[data-zsc-scheme="dark"] :is(.dash18-team-row:hover,.dash18-chips button:hover){background:var(--scheme-hover)!important;border-color:var(--zsc-accent-border)!important}
html[data-zsc-scheme="dark"] :is(.dash18-team-row.on,.dash18-stats.response>div,.dash18-chips button.on){background:var(--zsc-accent-soft)!important;color:var(--scheme-link)!important;border-color:var(--zsc-accent-border)!important}
html[data-zsc-scheme="dark"] .dash18-chips button.on i{background:var(--scheme-raised)!important;color:var(--scheme-text)!important}
html[data-zsc-scheme="dark"] :is(.dash18-team-row>b,.dash18-stats strong){color:var(--scheme-text)!important}
html[data-zsc-scheme="dark"] :is(.dash18-team-row>b small,.dash18-team-row .zero,.dash18-stats span,.dash18-state,.dash18-note){color:var(--scheme-muted)!important}
html[data-zsc-scheme="dark"] .dash18-team-row .blue{color:#7dbaff!important}
html[data-zsc-scheme="dark"] .dash18-team-row .orange{color:#ffad75!important}
html[data-zsc-scheme="dark"] .dash18-team-row .red{color:#ff929f!important}
html[data-zsc-scheme="dark"] .dash18-team-row .violet{color:#c6acff!important}
html[data-zsc-scheme="dark"] :is(.dash18-alert,.dash18-state.error){background:#442730!important;color:#ffb2bb!important;border-color:#754653!important}
html[data-zsc-scheme="dark"] .dash18-alert i{color:#ffb2bb}
html[data-zsc-scheme="dark"] .dash18-alert.orange{background:#403322!important;color:#ffd18f!important;border-color:#74603d!important}
html[data-zsc-scheme="dark"] .dash18-alert.orange i{color:#ffd18f}
html[data-zsc-scheme="dark"] .dash18-alert.violet{background:#352c4b!important;color:#d7c2ff!important;border-color:#61517b!important}
html[data-zsc-scheme="dark"] .dash18-alert.violet i{color:#d7c2ff}
/* Preserve semantic priority, sender and service states with dark tints. */
html[data-zsc-scheme="dark"] :is(.mini-pill.mine,.mini-pill.org,.connection-chip.online:not(.rt-floating),.dash18-pill.good,.dash18-work-status.completed,.dash18-work-status.closed,.dash18-work-status.resolved,.dash18-ages .a0,.dm180-notice:not(.is-error)){background:#173c2c!important;color:#a8e5be!important;border-color:#3b6851!important}
html[data-zsc-scheme="dark"] :is(.priority.high,.mini-pill.high,.mini-pill.cx18-sla[data-state="risk"],.permission-warning,.note,.zgs-signal,.zgs-role,.dash18-pill.warn,.dash18-rv-pri.high,.kb18-card-t .pri.high,.dash18-ages .a1,.dash18-ages .a2,#workCenterModal #myWorkNotice){background:#403322!important;color:#ffd18f!important;border-color:#74603d!important}
html[data-zsc-scheme="dark"] :is(.priority.urgent,.mini-pill.urgent,.mini-pill.cx18-sla[data-state="breached"],.dash18-pill.bad,.dash18-rv-pri.urgent,.kb18-card-t .pri.urgent,.kb18-card-t .blk,.kb18-col>header .n.over,.dash18-ages .a3,.dm180-notice.is-error){background:#442730!important;color:#ffb2bb!important;border-color:#754653!important}
html[data-zsc-scheme="dark"] :is(.mini-pill.tag,.mini-pill.folder,.mini-pill.cx18-sla[data-state="waiting"],.dash18-rv-you,.dash18-work-status.review){background:#352c4b!important;color:#d7c2ff!important;border-color:#61517b!important}
html[data-zsc-scheme="dark"] :is(.note-head,.note-body){color:#ead6ad}
html[data-zsc-scheme="dark"] :is(.dash18-personal-error,.dash18-hcard dd.bad,.dash18-fail td.err,.dm180-location-error,.appearance-status.error,#workCenterModal .work-due.overdue,#workCenterModal .task-due.overdue,.dash18-closed .dash18-sla b){color:#ffa4af!important}
/* AI / rules / data tools and service browser surfaces. */
html[data-zsc-scheme="dark"] :is(.ai18-providers button,.ai18-switch,.ai18-test,.ai18-result,.rl18-row,.thr18-live span,.api-help code,.tools-json-card,.tools-file-row,.cn18-cloud-card,.cn18-cloud-row,.cn18-technical,.v140-utility-content){background:var(--scheme-panel)!important;border-color:var(--scheme-line)!important;color:var(--scheme-text)!important}
html[data-zsc-scheme="dark"] :is(.ai18-providers b,.ai18-h b,.ai18-f>span,.thr18-live b,.cn18-title h3,.cn18-cloud-state b){color:var(--scheme-text)!important}
html[data-zsc-scheme="dark"] :is(.ai18-sub,.ai18-h small,.ai18-providers small,.ai18-f>span em,.sla-auto180-help,.sla-auto180-vars,.cn18-title p,.cn18-title .tiny,.cn18-cloud-state,.cn18-cloud-row small){color:var(--scheme-muted)!important}
html[data-zsc-scheme="dark"] :is(.ai18-providers button.active,.ai18-ico,.ai18-close,.cn18-pathbar){background:var(--scheme-raised)!important;color:var(--scheme-secondary)!important;border-color:var(--scheme-line)!important}
html[data-zsc-scheme="dark"] :is(.cn18-cloud-row:hover,.cn18-cloud-row:focus-visible){background:var(--scheme-hover)!important;color:var(--scheme-text)!important}
html[data-zsc-scheme="dark"] :is(.cn18-cloud-actions button,.cn18-cloud-row em){color:var(--scheme-link)!important}
html[data-zsc-scheme="dark"] :is(.cn18-card-head,.cn18-actions,.cn18-pathbar,.cn18-cloud-row,.cn18-cloud-card>.modal-head,.dm180-backup-section,.dm180-card-detail,.dm180-history>li,.appearance-actions,.ai18-sec,.ai18-top,.ai18-foot,.sla-auto180-ai-test){border-color:var(--scheme-line)!important}
html[data-zsc-scheme="dark"] :is(#documentViewerModal .document-viewer-card,#documentViewerModal .dv18-head){background:var(--scheme-panel);border-color:var(--scheme-line);color:var(--scheme-text)}
html[data-zsc-scheme="dark"] #documentViewerTitle{color:var(--scheme-text)}
html[data-zsc-scheme="dark"] #documentViewerStatus{color:var(--scheme-muted)}
/* Floating work companion uses the same surfaces; its illustration stays intact. */
html[data-zsc-scheme="dark"] #workPet{--pet18-ink:var(--scheme-text);--pet18-muted:var(--scheme-muted);--pet18-line:var(--scheme-line)}
html[data-zsc-scheme="dark"] #workPet :is(.pet18-toggle,.pet18-panel,.pet18-bubble,.pet18-bubble:after,.pet18-item,.pet18-panel-footer){background:var(--scheme-panel);border-color:var(--scheme-line)}
html[data-zsc-scheme="dark"] #workPet :is(.pet18-panel-head h3,.pet18-item b,.pet18-bubble-title,.pet18-summary b,.pet18-empty>b){color:var(--scheme-text)}
html[data-zsc-scheme="dark"] #workPet :is(.pet18-bubble-text,.pet18-item p,.pet18-item small,.pet18-panel-subtitle,.pet18-empty,.pet18-summary,.pet18-tabs button){color:var(--scheme-muted)}
html[data-zsc-scheme="dark"] #workPet :is(.pet18-summary>span,.pet18-summary>button,.pet18-item-icon,.pet18-panel-footer button,.pet18-choice,.pet18-tabs button.active,.pet18-tabs button[aria-selected="true"],.pet18-item.is-unread,.pet18-item.unread,.pet18-item:hover){background:var(--scheme-raised);border-color:var(--scheme-line);color:var(--scheme-secondary)}
html[data-zsc-scheme="dark"] #workPet .pet18-count{border-color:var(--scheme-panel)}
html[data-zsc-scheme="dark"] :is(#zscSplash,.zpc-head){background:var(--scheme-stage)!important;color:var(--scheme-text);border-color:var(--scheme-line)}
html[data-zsc-scheme="dark"] #zscSplash .b{color:var(--scheme-secondary)}
html[data-zsc-scheme="dark"] #zscSplash .p{background:var(--scheme-line)}
html[data-zsc-scheme="dark"] .v150-more-sep{background:var(--scheme-line)}
html[data-zsc-scheme="dark"] :is(.org-folder,.org-folder-items,.org-icon,.v180-ctx,.ph18-card,.mt18-head,.mt18-bar,.mt18-row){background:var(--scheme-panel)!important;border-color:var(--scheme-line)!important;color:var(--scheme-text)}
html[data-zsc-scheme="dark"] :is(.org-folder:hover,.org-folder[aria-expanded="true"]){background:var(--zsc-accent-soft)!important;border-color:var(--zsc-accent-border)!important}
html[data-zsc-scheme="dark"] :is(.org-folder .org-name,.v180-ctx-title,.ph18-num,.ph18-who){color:var(--scheme-text)!important}
html[data-zsc-scheme="dark"] :is(.org-chevron,.org-count,.ph18-head,.ph18-hint,.mt18-today,.mt18-sec,.mt18-meta,.mt18-empty p){color:var(--scheme-muted)!important}
html[data-zsc-scheme="dark"] :is(.mt18-card,.mt18-ghost,.mt18-tabs button,.mt18-tabs button i,.mt18-chip,.mt18-st,.rx18-chip,.message-day span,.new-message-jump,.internal-file.document,.stk18-fallback,.zgs-recalled,.sla-auto180-ai,.sla-auto180-preview,.sla-auto180-ai-result){background:var(--scheme-raised)!important;color:var(--scheme-secondary)!important;border-color:var(--scheme-line)!important}
html[data-zsc-scheme="dark"] :is(.mt18-prov,.rx18-chip.mine){background:var(--zsc-accent-soft);color:var(--scheme-link);border-color:var(--zsc-accent-border)}
html[data-zsc-scheme="dark"] .mt18-tabs button.on{background:var(--zsc-accent)!important;color:#fff!important}
html[data-zsc-scheme="dark"] :is(.mt18-st.live,.mt18-row.live .mt18-av){background:#173c2c;color:#a8e5be}
html[data-zsc-scheme="dark"] :is(.sla-auto180-ai-head p,.sla-auto180-ai-head small,.sla-auto180-ai-result small,.sla-auto180-preview small,.sla-auto180-detail,.sla-auto180-empty,.sla-auto180-history small){color:var(--scheme-muted)}
/* Personal display controls and ticket lists. */
html[data-zsc-scheme="dark"] :is(#viewOptionsModal .layout180-section,#viewOptionsModal .layout180-choice,.conversation-view-choice,.tq18-kpis,.tq18-kpi,.tq18-bar,.tq18-row,.tq18-detail,.task-comment,.task-info-list){background:var(--scheme-panel)!important;border-color:var(--scheme-line)!important;color:var(--scheme-text)}
html[data-zsc-scheme="dark"] :is(#viewOptionsModal .layout180-section legend,#viewOptionsModal .layout180-choice b,.conversation-view-choice b,.tq18-kpi span,.tq18-fields label){color:var(--scheme-text)!important}
html[data-zsc-scheme="dark"] :is(#viewOptionsModal .layout180-section>p,#viewOptionsModal .layout180-choice small,#viewOptionsModal .layout180-mobile-note,.conversation-view-choice small,.notification-item div div,.notification-item span,.tq18-row.head,.tq18-row .title small,.tq18-hint,.tq18-foot,.tq18-meta dt){color:var(--scheme-muted)!important}
html[data-zsc-scheme="dark"] :is(#viewOptionsModal .layout180-preview,#viewOptionsModal .layout180-preview-content,#viewOptionsModal .layout180-preview-content::before,.tq18-switch,.tq18-switch button,.tq18-desc,.tq18-taskform,.tq18-pri,.tq18-st,.tq18-prog){background:var(--scheme-raised)!important;border-color:var(--scheme-line)!important;color:var(--scheme-secondary)!important}
html[data-zsc-scheme="dark"] :is(#viewOptionsModal .layout180-choice:has(input:checked),.conversation-view-choice:has(input:checked),.notification-item.unread,.tq18-kpi.on,.tq18-switch button.on,.tq18-row.on,.tq18-st.open,.tq18-st.in_progress){background:var(--zsc-accent-soft)!important;border-color:var(--zsc-accent-border)!important;color:var(--scheme-link)!important}
html[data-zsc-scheme="dark"] :is(.tq18-row:hover,.conversation-view-choice:hover){background:var(--scheme-hover)!important}
html[data-zsc-scheme="dark"] :is(.tq18-pri.high,.tq18-st.waiting_customer,.tq18-st.waiting_internal,.tq18-st.waiting_vendor,.tq18-st.scheduled){background:#403322!important;color:#ffd18f!important}
html[data-zsc-scheme="dark"] :is(.tq18-pri.urgent,.tq18-st.late,.tq18-error){background:#442730!important;color:#ffb2bb!important}
html[data-zsc-scheme="dark"] :is(.tq18-st.resolved,.tq18-prog.done,.tq18-resolved){background:#173c2c!important;color:#a8e5be!important}
html[data-zsc-scheme="dark"] .tq18-prog{background:#352c4b!important;color:#d7c2ff!important}
html[data-zsc-scheme="dark"] .tq18-kpi{--c:var(--scheme-link)}
/* Schedule and attendance retain coloured, labelled work categories. */
html[data-zsc-scheme="dark"] :is(.schedule-grid-wrap,.schedule-legend-item,.schedule-table thead th,.schedule-table thead tr:nth-child(2) th,.schedule-table .employee-col,.att18-head,.att18-today,.att18-list,.att18-sum>div,.att18-month button,.t18-out,.t18-menu){background:var(--scheme-panel)!important;border-color:var(--scheme-line)!important;color:var(--scheme-text)!important}
html[data-zsc-scheme="dark"] :is(.schedule-view-switch,.schedule-view-switch button,.schedule-entry-meta,.att18-card,.att18-times>div,.att18-tabs,.att18-tabs button,.att18-relation button,.att18-head #att18Close){background:var(--scheme-raised)!important;border-color:var(--scheme-line)!important;color:var(--scheme-secondary)!important}
html[data-zsc-scheme="dark"] :is(.schedule-view-switch button.active,.schedule-legend-item.s18-on,.schedule-table thead th.s18-today,.schedule-table td.s18-today,.att18-tabs button.on){background:var(--zsc-accent-soft)!important;color:var(--scheme-link)!important}
html[data-zsc-scheme="dark"] :is(#scheduleRangeTitle,.schedule-week-title,.schedule-table tbody .employee-col,.att18-times strong,.att18-row b){color:var(--scheme-text)!important}
html[data-zsc-scheme="dark"] :is(.schedule-legend-item,.s18-hint,.att18-help,.att18-note,.att18-date,.att18-relation p,.att18-sum span,.att18-times i,.att18-ttl .tiny){color:var(--scheme-muted)!important}
html[data-zsc-scheme="dark"] :is(.schedule-table th,.schedule-table td,.att18-row,.t18-tabs){border-color:var(--scheme-line)!important}
html[data-zsc-scheme="dark"] :is(.schedule-table tbody tr:hover td,.schedule-table tbody tr:hover .employee-col,.schedule-cell.empty:not(.readonly):hover){background:var(--scheme-hover)!important}
html[data-zsc-scheme="dark"] :is(.schedule-cell.type-office,.schedule-legend-item .type-office){background:#254a34;color:#d0efda}
html[data-zsc-scheme="dark"] :is(.schedule-cell.type-hospital,.schedule-cell.type-online,.schedule-legend-item .type-hospital,.schedule-legend-item .type-online){background:#233f62;color:#d9e9ff}
html[data-zsc-scheme="dark"] :is(.schedule-cell.type-remote,.schedule-legend-item .type-remote){background:#44345f;color:#e7d6ff}
html[data-zsc-scheme="dark"] :is(.schedule-cell.type-meeting,.schedule-cell.type-training,.schedule-legend-item .type-meeting,.schedule-legend-item .type-training){background:#59462b;color:#fff0ca}
html[data-zsc-scheme="dark"] :is(.schedule-cell.type-other,.schedule-legend-item .type-other){background:#334459;color:#e4ebf4}
html[data-zsc-scheme="dark"] :is(.att18-card em.ok,.att18-sum strong){color:#a8e5be}
html[data-zsc-scheme="dark"] .att18-card em.ok{background:#173c2c}
html[data-zsc-scheme="dark"] :is(.att18-card em.late,.att18-sum .late strong){color:#ffd18f}
html[data-zsc-scheme="dark"] .att18-card em.late{background:#403322}
html[data-zsc-scheme="dark"] :is(.att18-card em.absent,.att18-sum .absent strong){color:#ffb2bb}
html[data-zsc-scheme="dark"] .att18-card em.absent{background:#442730}
html[data-zsc-scheme="dark"] #workPet :is(.pet18-restore,.pet18-reminder-settings,.pet18-detail-body){background:var(--scheme-raised);color:var(--scheme-text);border-color:var(--scheme-line)}
html[data-zsc-scheme="dark"] #workPet :is(.pet18-detail>b,.pet18-reminder-settings label){color:var(--scheme-text)}
@media(max-width:760px){
  html[data-zsc-scheme="dark"].m18 :is(#appView>.sidebar,#appView>.chat-pane,#appView>#detailPane,.chat-head,.m18-infobar,.m18-nav,.m18-sheet-card,.v110-chat-card .v110-chat-layout>.v110-sidebar){background:var(--scheme-panel)!important;color:var(--scheme-text);border-color:var(--scheme-line)!important}
  html[data-zsc-scheme="dark"].m18 :is(.m18-grid button,.m18-back){background:var(--scheme-raised);color:var(--scheme-secondary);border-color:var(--scheme-line)}
  html[data-zsc-scheme="dark"].m18 :is(.m18-me span,.m18-nav button){color:var(--scheme-muted)}
  html[data-zsc-scheme="dark"].m18 .m18-nav button.active{color:var(--scheme-link)}
  html[data-zsc-scheme="dark"].m18 .m18-logout{background:#40242c;color:#ffb0b9}
  html[data-zsc-scheme="dark"].m18 .m18-grab{background:#526780}
  html[data-zsc-scheme="dark"].m18 #appView #conversationList .conv-group-header:not(.org-folder){background:var(--scheme-panel)!important;border-color:var(--scheme-line)!important}
  html[data-zsc-scheme="dark"].m18 #appView #conversationList .conv-group-header:not(.org-folder) span,
  html[data-zsc-scheme="dark"].m18 #appView #conversationList .channel-code-badge{background:var(--zsc-accent-soft)!important;color:var(--scheme-link)!important}
  html[data-zsc-scheme="dark"].m18 #appView #conversationList .conv::after{background:var(--scheme-line)}
  html[data-zsc-scheme="dark"].m18 #appView #conversationList .conv-meta .mini-pill{background:var(--scheme-raised)!important;color:var(--scheme-secondary)!important}
  html[data-zsc-scheme="dark"].m18 #appView #conversationList .conv-meta .mini-pill[data-m18p="new"]{background:var(--zsc-accent-soft)!important;color:var(--scheme-link)!important}
  html[data-zsc-scheme="dark"].m18 #appView #conversationList .conv-meta .mini-pill[data-m18p="doing"]{background:#173c2c!important;color:#a8e5be!important}
  html[data-zsc-scheme="dark"].m18 #appView #conversationList .conv-meta .mini-pill[data-m18p="unassigned"]{background:#403322!important;color:#ffd18f!important}
  html[data-zsc-scheme="dark"].m18 #appView #conversationList .conv-meta .mini-pill[data-m18p="assigned"]{background:#352c4b!important;color:#d7c2ff!important}
  html[data-zsc-scheme="dark"].m18 #appView #conversationList .conv-meta .mini-pill[data-m18p="hint"]{background:#442730!important;color:#ffb2bb!important}
  .scheme180-settings{padding:16px}
  #scheme180Toggle{min-width:34px}
}
@media(max-width:420px){
  .scheme180-options{grid-template-columns:1fr}
  .scheme180-settings .scheme180-section{padding:12px}
  .scheme180-settings-actions{align-items:stretch;flex-direction:column}
  #scheme180SettingsSave{width:100%}
}
