.appearance-options{display:grid;grid-template-columns:repeat(2,minmax(0,220px));gap:18px;margin-top:20px}.appearance-option{display:grid;grid-template-columns:1fr auto;gap:14px;position:relative;text-align:left;padding:14px;background:#fff;color:#384331;border:2px solid #dce4d6;border-radius:12px}.appearance-option[aria-pressed="true"]{border-color:#639a45;box-shadow:0 0 0 3px #639a4518}.appearance-option strong{font-size:14px}.appearance-choice{visibility:hidden;color:#578d3b;font-weight:700}.appearance-option[aria-pressed="true"] .appearance-choice{visibility:visible}.appearance-preview{grid-column:1/-1;display:flex;height:100px;border-radius:7px;border:1px solid #d5ddd1;overflow:hidden;background:#f7f9f5}.appearance-preview>i{width:24%;background:#dde5d7;border-right:1px solid #cfd9c7}.appearance-preview>span{padding:14px;display:flex;gap:9px;flex:1}.appearance-preview b{background:white;border:1px solid #d9e1d3;border-radius:4px;flex:1}.appearance-preview-dark{background:#151b1f;border-color:#3b484e}.appearance-preview-dark>i{background:#222b30;border-color:#3b484e}.appearance-preview-dark b{background:#29343a;border-color:#46545c}.appearance-hint{color:#788471;font-size:12px;line-height:1.6;margin:18px 0 0}@media(max-width:480px){.appearance-options{gap:12px}.appearance-preview{height:76px}.appearance-option{padding:10px}.appearance-preview>span{padding:10px;gap:5px}}
html[data-theme="dark"]{color-scheme:dark;--bg:#161d21;--ink:#e0e7ea;--muted:#a3b0b7;--line:#364249;--select-border:#435159;--select-hover:#66875d;--select-arrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23bccabf' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")}
html[data-theme="dark"] body,html[data-theme="dark"] .shell,html[data-theme="dark"] body main{background:#161d21;color:#e0e7ea}
html[data-theme="dark"] .topbar,html[data-theme="dark"] .app-rail{background:#171d20;border-color:#364249}
html[data-theme="dark"] .sidebar{background:#1c252a;color:#c2ced2;border-color:#364249}
html[data-theme="dark"] :is(.workspace-title,.sidebar nav a,.settings-nav-link){color:#b5c2c8}
html[data-theme="dark"] :is(.sidebar nav a.active,.sidebar nav a:hover,.settings-nav-link.active,.settings-nav-link:hover){background:#304432;color:#b9dea7;border-color:#8cbd6b}
html[data-theme="dark"] :is(.card,.team-member,.login-card,.appearance-option,.route-member-list li,.ivr-key-row,.sda-row,.dect-account-row,.device-removal-options>label,.server-logo-preview){background:#222c32;border-color:#3b484f;color:#e0e7ea;box-shadow:none}
html[data-theme="dark"] :is(h1,h2,h3,h4,.page-heading h1,.team-member h2,.member-department,.field,.profile-fields label,.route-destination-title,.appearance-option strong){color:#e0e7ea}
html[data-theme="dark"] :is(.card-header,.page-heading,.equipment-editor-tabs,.user-editor-tabs,.routing-tabs,.status-settings,.status-profile-nav,.schedule-week,.schedule-day,.conversation-header,.message-form,.route-member-list li,.sidebar nav,.personal-list,.chat-layout){border-color:#3b484f}
html[data-theme="dark"] :is(.team-count,.member-status small,.member-department,.appearance-hint,.profile-status-title,.details dt,.details dd,.card p,.apps-platform p,.apps-install-guide li,.pwa-install-instructions,.pwa-install-instructions p,.route-member-identity small,.route-members-empty,.ivr-keys-empty,.phone-web-message){color:#afbdc5}
html[data-theme="dark"] body :is(input:not([type="checkbox"]):not([type="radio"]),textarea,select,.announcement-picker-trigger){background-color:#192227;color:#e0e7ea;border-color:#435159}
html[data-theme="dark"] body :is(input,textarea)::placeholder{color:#889ba4}
html[data-theme="dark"] body :is(input[readonly],input:disabled,textarea:disabled,select:disabled){background-color:#2b343a;color:#9daab1;border-color:#435159}
html[data-theme="dark"] body select:focus-visible,html[data-theme="dark"] body .announcement-picker-trigger[aria-expanded="true"]{background-color:#25312e;border-color:#91bd75;color:#edf4ed}
html[data-theme="dark"] :is(.button.secondary,.member-actions button,.vm-audio-button,.route-help-button,.icon-button,.theme-choice,.announcement-delete){background:#29363d;color:#c4d3bc;border-color:#46564c}
html[data-theme="dark"] :is(.button.secondary:hover,.member-actions button:hover,.vm-audio-button:hover,.route-help-button:hover){background:#35483a;border-color:#8fae7e}
html[data-theme="dark"] :is(.text-button,.text-link,.equipment-profile-link,.status-profile-nav button,.equipment-editor-tabs button,.user-editor-tabs button,.routing-tabs button){color:#b5d39f}
html[data-theme="dark"] :is(.equipment-editor-tabs button,.user-editor-tabs button,.routing-tabs button)[aria-pressed="true"],html[data-theme="dark"] .routing-tabs button.active{color:#c3e8aa;border-color:#91bd75;background:#2c3d31}
html[data-theme="dark"] :is(thead,th,.schedule-week-header,.toolbar,.general-hours-collapse>summary,.info-block,.console-notice,.device-assignment,.phone-header,.phone-bottom){background:#29363d;color:#c4d0d6;border-color:#3b484f}
html[data-theme="dark"] :is(td,th,.stat,.event-line){border-color:#36434a;color:#cbd6dc}
html[data-theme="dark"] tbody tr:hover{background:#2c3b3f}
html[data-theme="dark"] :is(.announcement-picker-menu,.announcement-picker-option,.call-list-row,.chat-peer,.status-profile-nav button){background:#222c32;color:#dae4e9;border-color:#3b484f}
html[data-theme="dark"] :is(.announcement-picker-option:hover,.announcement-picker-option.selected,.chat-peer:hover,.chat-peer.selected,.status-profile-nav button[aria-pressed="true"]){background:#314635;color:#c1e3ad}
html[data-theme="dark"] .search{background:transparent;color:#b6c5bc;border-color:#435159}
html[data-theme="dark"] .message{background:#2d3a41;color:#e1e9ee}html[data-theme="dark"] .message.mine{background:#304e37;color:#e5f1e0}
html[data-theme="dark"] :is(.team-member .extension-status,.extension-status){background:color-mix(in srgb,var(--status-color) 17%,#202a30)}
html[data-theme="dark"] .presence-dot[class*="status-"]{border-color:#222c32}
html[data-theme="dark"] :is(.apps-platform-icon,.appearance-option[aria-pressed="true"]){background:#2c3d31;color:#b5d39f;border-color:#91bd75}
html[data-theme="dark"] body :is(dialog,#profile-menu,#webphone){background:#222c32;color:#e0e7ea;border-color:#435159;box-shadow:0 18px 65px #0007}
html[data-theme="dark"] dialog::backdrop{background:#0008}
html[data-theme="dark"] :is(.profile-status-option,.phone-keypad>button,.phone-peer,.phone-blf-panel){background:#253138;color:#d1ded0;border-color:#435159}
html[data-theme="dark"] :is(.profile-status-option:hover,.profile-status-option[aria-pressed="true"],.phone-keypad>button:hover){background:#35483a;color:#dcf0cb}
html[data-theme="dark"] :is(.phone-blf-key,.phone-blf-pages button,.phone-devices select){background:#29363d;color:#d0dfc8;border-color:#435159}
html[data-theme="dark"] :is(.phone-status,.phone-peer strong,.phone-peer small,.phone-blf-heading,.phone-message,.phone-bottom>button,.phone-bottom>span){color:#b4c4af}
html[data-theme="dark"] body #phone-number{background:transparent;color:#e4eee0;border-color:#435159}
html[data-theme="dark"] .blf-left .blf-label-cell input{background:#25374b;color:#d8e8fb}html[data-theme="dark"] .blf-right .blf-label-cell input{background:#38304c;color:#e6dff7}html[data-theme="dark"] .blf-key-config :is(input,select):disabled{background:#353b40;color:#929ca3;border-color:#4b555b}
html[data-theme="dark"] body :is(.text-button,.button.secondary)[data-action-icon="trash"],html[data-theme="dark"] body :is(.announcement-delete,[data-dect-delete],[data-dect-account-remove]){color:#f29890;border-color:#705050}
html[data-theme="dark"] body .button.danger{background:#a13e3b;color:white;border-color:#bc5752}
html[data-theme="dark"] .phone-web-frame{background:white;border-color:#435159}
html[data-theme="dark"] body.pwa-offline{background:#161d21}html[data-theme="dark"] .pwa-offline main{background:#222c32;border-color:#435159;color:#e0e7ea}html[data-theme="dark"] .pwa-offline p{color:#afbdc5}
@supports(appearance:base-select){html[data-theme="dark"] body select:not([multiple]):not([size])::picker(select){background:#222c32;border-color:#435159;color:#e0e7ea}html[data-theme="dark"] body select option:is(:hover,:focus,:checked){background:#354b38;color:#d2e9c3}}
.appearance-settings{margin-bottom:20px}html[data-theme="dark"] :is(.workspace-title,.settings-nav-link){background:#1c252a;border-color:#3b484f}html[data-theme="dark"] .settings-nav-link.active,html[data-theme="dark"] .settings-nav-link:hover{background:#304432;color:#b9dea7}
html[data-theme="dark"] body :is(#content,#portal-dialog,#profile-menu,#webphone) :is(input:not([type="checkbox"]):not([type="radio"]),textarea,select,.announcement-picker-trigger){background-color:#192227;color:#e0e7ea;border-color:#435159}html[data-theme="dark"] body :is(#content,#portal-dialog,#profile-menu,#webphone) :is(input[readonly],input:disabled,textarea:disabled,select:disabled){background-color:#2b343a;color:#a8b5bd;border-color:#435159}html[data-theme="dark"] :is(.sidebar nav a,.settings-nav-link,.system-row){border-color:#36434a}html[data-theme="dark"] :is(.system-row,.stat-label,.metric-label){color:#afbdc5}html[data-theme="dark"] :is(.system-row strong,.stat-value,.metric-value){color:#e0e7ea}html[data-theme="dark"] .system-row a,html[data-theme="dark"] .console-notice strong,html[data-theme="dark"] .console-notice a{color:#b6d69f}
html[data-theme="dark"] body #content table:not(.blf-table)>thead th{background:#29363d;color:#c4d0d6;border-color:#3b484f}html[data-theme="dark"] body #content table tbody :is(td,th){border-color:#36434a}html[data-theme="dark"] body #content .person :is(strong,.person-name),html[data-theme="dark"] body #content .system-row strong{color:#e0e7ea}html[data-theme="dark"] body #content .system-row{color:#afbdc5;border-color:#36434a}html[data-theme="dark"] body #content .system-row a{color:#b6d69f}
html[data-theme="dark"] .extension-status.status-available{--status-color:#8ed89c}html[data-theme="dark"] .extension-status.status-internal{--status-color:#9ec7ff}html[data-theme="dark"] .extension-status.status-mobile{--status-color:#efbf7b}html[data-theme="dark"] .extension-status.status-dnd{--status-color:#f39ca6}html[data-theme="dark"] .extension-status.status-in-call{--status-color:#cba9f0}html[data-theme="dark"] :is(.team-member h2 span,.person small,.phone-blf-heading>span:last-child){color:#a8bac4}

html[data-theme="dark"] .apps-mobile-guide :is(p,li){color:#afbdc5}

/* Hover surfaces use the dark palette, including controls styled by portal.css. */
html[data-theme="dark"] body #content table:not(.blf-table)>tbody>tr:hover{background:#2c3b3f}
html[data-theme="dark"] body :is(.button.secondary,.text-button,.member-actions button,.vm-audio-button,.route-help-button,.icon-button,.dial-key,.authorized-tool,.phone-header-actions button,.phone-blf-key):hover:not(:disabled){background:#35483a;color:#dcf0cb;border-color:#8fae7e}
html[data-theme="dark"] body :is(.equipment-editor-tabs,.user-editor-tabs,.routing-tabs,.status-profile-nav) button:hover{background:#304432;color:#c3e8aa}
html[data-theme="dark"] body :is(.call-list-row,.chat-peer,.general-hours-collapse>summary):hover{background:#2c3b3f;color:#dae4e9}
html[data-theme="dark"] body #profile-menu .profile-status-option{background:#253138;color:#e0e7ea;border-color:#435159}
html[data-theme="dark"] body #profile-menu .profile-status-option:is(:hover,[aria-pressed="true"]){background:#35483a;color:#dcf0cb;border-color:var(--status-color)}
html[data-theme="dark"] body :is(#content,#portal-dialog,#profile-menu,#webphone) :is(select:not([multiple]):not([size]),.announcement-picker-trigger):hover:not(:disabled){background-color:#25312e;color:#e0e7ea;border-color:#91bd75}
html[data-theme="dark"] body input[type="file"]::file-selector-button{background:#29363d;color:#c4d3bc;border-color:#46564c}
html[data-theme="dark"] body input[type="file"]::file-selector-button:hover{background:#35483a;color:#dcf0cb;border-color:#8fae7e}
html[data-theme="dark"] body :is(.announcement-delete,[data-user-delete],[data-department-delete],[data-route-delete],[data-member-remove],[data-ivr-key-remove],[data-equipment="device-delete"],[data-equipment="trunk-delete"],[data-sda-remove],[data-dect-delete],[data-dect-account-remove],[data-action-icon="trash"]):hover:not(:disabled){background:#503236;color:#ffb1a9;border-color:#a66868}
@supports(appearance:base-select){html[data-theme="dark"] body select:not([multiple]):not([size]) option:is(:hover,:focus,:checked){background:#354b38;color:#d2e9c3}}

/* Readable labels and icons across personal and administration pages. */
html[data-theme="dark"] body :is(.extension,.system-row>span,.toggle-row strong,.rights-grid label,.favorite-row strong,.conversation-header strong,.call-list-row strong,.chat-peer strong,.device-removal-options strong){color:#d0dbe0}
html[data-theme="dark"] body :is(.description,.muted,.field small,.toggle-row small,.profile-note,.web-access-row,.list-title,.list-title span,.call-list-row small,.chat-peer small,.call-duration,.conversation-header>span:last-child,.message small,.chat-intro,.status-greeting small,.voicemail-message small,.device-removal-options small,.route-help-content p,.general-hours-collapse>summary small,.save-bar p,.future-card p,.credential-details dt,.modal-eyebrow,.blf-list-header,.blf-row-number,.blf-key-config label,.phone-blf-empty,.team-member p,.date-label,.metric-note,.chart-axis,.chart-legend,.chart-column>span,.eyebrow,.nav-label,.count-pill){color:#afbdc5}
html[data-theme="dark"] body :is(.badge.neutral,.chip,.nav-count){background:#344149;color:#d2dee4;border-color:#53616a}
html[data-theme="dark"] body :is(.badge.success,.status-block){background:#304d35;color:#c4e8b9;border-color:#587e50}
html[data-theme="dark"] body :is(.credential-details dd,.credential-details code,.message p,.route-help-content,.info-block strong,.info-block p){color:#d9e4e7}
html[data-theme="dark"] body :is(.sidebar nav a,.settings-nav-link) .icon{color:#b8c9b0}
html[data-theme="dark"] body :is(.sidebar nav a.active,.settings-nav-link.active) .icon{color:#c5e8b1}
html[data-theme="dark"] body :is(.card-header h2>.icon,.call-icon,.route-flow .icon,.empty>.icon,.blf-line-icon){color:#b5cda7}
html[data-theme="dark"] body :is(.route-flow span,.hours-expand-label,.authorized-tool,.dial-key){color:#c3d8b5}
html[data-theme="dark"] body :is(.authorized-tool,.dial-key,.phone-secondary button,.phone-avatar,.phone-header small){background:#293a33;color:#d0e4c3;border-color:#53654e}
html[data-theme="dark"] body .phone-secondary button.on{background:#3b543c;color:#e3f1d9;border-color:#8fae7e}
html[data-theme="dark"] body :is(.phone-keypad small,#webphone-form label,#phone-timer,.phone-header-actions button){color:#b9cbb3}
html[data-theme="dark"] body .phone-blf-pages button[aria-pressed="true"]{background:#3d6b30;color:#fff;border-color:#8fae7e}
html[data-theme="dark"] body dialog h2{color:#e0e7ea}
html[data-theme="dark"] body dialog>p,html[data-theme="dark"] body dialog form>p{color:#afbdc5}
html[data-theme="dark"] body #profile-menu :is(a,button,small){color:#c1d4b6}
html[data-theme="dark"] body .button.primary{background:#3d6b30;color:#fff;border-color:#6e945d}
html[data-theme="dark"] body .button.primary:hover:not(:disabled){background:#345e29;border-color:#91bd75}
html[data-theme="dark"] body :is(.rail-nav a.rail-active,.rail-admin.active){background:#3d6b30;color:#fff}
html[data-theme="dark"] body :is(.blf-legend-right){color:#abcdf9}html[data-theme="dark"] body .blf-legend-left{color:#d4b5f1}
html[data-theme="dark"] body :is(.event-error,#error,#login-error,#dial-error,.device-reset-confirm,#device-removal-error){color:#ffb1a9}
html[data-theme="dark"] body .event-warning{color:#edce8c}
html[data-theme="dark"] body #content td strong{color:#e0e7ea}
html[data-theme="dark"] body pre{background:#192227;color:#c8d8bf;border-color:#435159}
html[data-theme="dark"] body :is(.member-avatar,.small-avatar,.large-avatar,.top-avatar){background:#415348;color:#f0f6eb}
html[data-theme="dark"] body .empty strong{color:#c5d5bc}
html[data-theme="dark"] body :is(.phone-call,.phone-answer){background:#3d6b30;color:#fff}
html[data-theme="dark"] body :is(.phone-call,.phone-answer):hover{background:#345e29}
html[data-theme="dark"] body .phone-hangup{background:#963d39;color:#fff}
html[data-theme="dark"] body .phone-hangup:hover{background:#81322f}
html[data-theme="dark"] body .blf-right .blf-key-cap strong{color:#abcdf9}
html[data-theme="dark"] body .blf-left .blf-key-cap strong{color:#d4b5f1}

html[data-theme="dark"] body .apps-qr-url{color:#c3e8aa}

html[data-theme="dark"] .status-closure{--status-color:#eda8d5;--status-bg:#452e3e}

html[data-theme="dark"] body .service-detail{color:#afbdc5}html[data-theme="dark"] body .service-warning{background:#4b3c28;color:#f0d0a0}

html[data-theme="dark"] .system-tabs{border-color:#3e4b54}
html[data-theme="dark"] .system-tabs a{color:#bdc9d1}
html[data-theme="dark"] .system-tabs a:hover{background:#35424b;color:#e2e9ed}
html[data-theme="dark"] .system-tabs a[aria-current="page"]{background:#303e35;color:#c3e8aa;border-bottom-color:#8dbf6c}

html[data-theme="dark"] .system-status-effects h3{border-color:#3e4b54}

html[data-theme="dark"] .standard-board p{color:#bdc9d1}
html[data-theme="dark"] .standard-badge{background:color-mix(in srgb,var(--standard-color,#2469c5) 24%,#222c32);color:#edf2f5}
html[data-theme="dark"] .standard-choice-button[aria-pressed="true"]{background:color-mix(in srgb,var(--standard-color) 24%,#222c32);color:#edf2f5}

html[data-theme="dark"] body [data-standard-remove]{color:#f0a6a6}
html[data-theme="dark"] body [data-standard-remove]:hover:not(:disabled){background:#482e33;border-color:#75444c;color:#ffc4c4}

html[data-theme="dark"] .voicemail-mailboxes{border-color:#3e4b54}
html[data-theme="dark"] .voicemail-mailboxes button{background:#26333b;border-color:#46565f;color:#d7e1e7}
html[data-theme="dark"] .voicemail-mailboxes button:hover{background:#35434c}
html[data-theme="dark"] .voicemail-mailboxes button[aria-pressed="true"]{background:#2c3d31;border-color:#91bd75;color:#c3e8aa}
html[data-theme="dark"] .voicemail-mailboxes b{background:#3d4c53;color:#e3ebf0}
html[data-theme="dark"] body [data-status-profile-delete]{color:#f0a6a6}
html[data-theme="dark"] body [data-status-profile-delete]:hover:not(:disabled){background:#482e33;border-color:#75444c;color:#ffc4c4}

html[data-theme="dark"] .voicemail-message .shared-voicemail-read.is-unread{color:#b9dea7}

html[data-theme="dark"] .dect-state-good{background:#294333;color:#b8e3bd}html[data-theme="dark"] .dect-state-off{background:#4b2e35;color:#f2b5be}html[data-theme="dark"] .dect-state-wait{background:#493e28;color:#f0d18f}

/* Option surfaces must override the light defaults in portal.css as well. */
html[data-theme="dark"] body select :is(option,optgroup){background:#222c32;color:#e0e7ea}
html[data-theme="dark"] body select option:is(:hover,:focus,:checked){background:#354b38;color:#d2e9c3}
html[data-theme="dark"] body select option:disabled{background:#222c32;color:#91a0a8}
html[data-theme="dark"] body :is(.announcement-picker-menu,.announcement-picker-row,.announcement-picker-option){background:#222c32;color:#e0e7ea;border-color:#435159}
html[data-theme="dark"] body .announcement-picker-option:is(:hover,:focus-visible,.selected){background:#354b38;color:#d2e9c3}
html[data-theme="dark"] body .announcement-delete:disabled{background:#29343a;color:#91a0a8;border-color:#435159}
@supports(appearance:base-select){
 html[data-theme="dark"] body select:not([multiple]):not([size])::picker(select){background:#222c32;color:#e0e7ea;border-color:#435159;box-shadow:0 10px 30px #0006}
 html[data-theme="dark"] body select:not([multiple]):not([size]) option::checkmark{color:#b5d39f}
}

/* Confirmation dialogs and compact menus share the same dark surfaces. */
html[data-theme="dark"]{--soipp-border:#435159;--soipp-focus:0 0 0 3px #91bd7540}
html[data-theme="dark"] body :is(#dialog,#portal-dialog){background:#222c32;color:#e0e7ea;border-color:#435159;box-shadow:0 22px 70px #0008}
html[data-theme="dark"] body dialog :is(p,li,label,legend,summary){color:#c3cfd5}
html[data-theme="dark"] body dialog :is(strong,h2,h3){color:#e0e7ea}
html[data-theme="dark"] body dialog a:not(.button){color:#b6d69f}
html[data-theme="dark"] body dialog :is(.modal-actions,.unsaved-return-actions,.route-members){border-color:#435159}
html[data-theme="dark"] body .credential-details code{background:#192227;color:#d9e4e7;border-color:#435159}
html[data-theme="dark"] body .device-removal-options>label{background:#253138;color:#e0e7ea;border-color:#435159}
html[data-theme="dark"] body .device-removal-options>label:has(input:checked){background:#304432;border-color:#91bd75}
html[data-theme="dark"] body .device-removal-options>label:focus-within{outline:2px solid #91bd75;outline-offset:2px}
html[data-theme="dark"] body :is(.device-reset-confirm,#device-removal-error,.service-restart-confirm .event-error){color:#ffb1a9}
html[data-theme="dark"] body :is(.service-warning,.dect-state-wait){background:#463b28;color:#f0d196}
html[data-theme="dark"] body .dect-state-off{background:#472d33;color:#ffb1b8}
html[data-theme="dark"] body :is(.vm-extension-form,#browser-check){background:#253138;color:#e0e7ea;border-color:#435159}
html[data-theme="dark"] body .vm-audio-button[aria-pressed="true"]{background:#354b38;color:#d2e9c3;border-color:#91bd75}
html[data-theme="dark"] body .voicemail-mailboxes button{background:#29363d;color:#d1ddd0;border-color:#435159}
html[data-theme="dark"] body .voicemail-mailboxes button:is(:hover,[aria-pressed="true"]){background:#354b38;color:#d2e9c3;border-color:#91bd75}
html[data-theme="dark"] body :is(.standard-badge,.standard-choice-button[aria-pressed="true"]){background:color-mix(in srgb,var(--standard-color,#2469c5) 22%,#222c32);color:#e0e7ea}
html[data-theme="dark"] body #profile-menu :is(a,button:not(.profile-status-option)){border-color:#435159}
html[data-theme="dark"] body #profile-menu :is(a,button:not(.profile-status-option)):is(:hover,:focus-visible){background:#35483a;color:#dcf0cb}
html[data-theme="dark"] body :is([data-standard-remove],[data-status-profile-delete]):hover:not(:disabled){background:#503236;color:#ffb1a9;border-color:#a66868}
html[data-theme="dark"] body #profile-menu .profile-status-symbol{color:#162119}

/* Dialler and BLF controls keep contrast in every call state. */
html[data-theme="dark"] body #webphone :is(.phone-header,.phone-bottom,.phone-blf-panel){border-color:#435159}
html[data-theme="dark"] body #webphone :is(.phone-status,.phone-message,.phone-blf-heading,.phone-peer small,.phone-bottom>span){color:#bdcbd2}
html[data-theme="dark"] body #webphone :is(.phone-peer strong,#phone-number){color:#edf4f6}
html[data-theme="dark"] body #webphone #phone-number::placeholder{color:#a5b6c0}
html[data-theme="dark"] body #webphone .phone-keypad>button{background:#29363d;color:#edf4f6;border-color:#495960}
html[data-theme="dark"] body #webphone .phone-keypad>button:is(:hover,:focus-visible){background:#354b38;color:#f0f7eb;border-color:#91bd75}
html[data-theme="dark"] body #webphone .phone-keypad small{color:#c2d1d8}
html[data-theme="dark"] body #webphone .phone-header-actions button{color:#d3e2cb}
html[data-theme="dark"] body #webphone .phone-header-actions button:is(:hover,:focus-visible,[aria-pressed="true"]){background:#35483a;color:#e4f1dc}
html[data-theme="dark"] body #webphone .phone-hangup{background:#893c40;color:#fff}
html[data-theme="dark"] body #webphone .phone-hangup:hover{background:#a1474b}
html[data-theme="dark"] body #webphone .phone-call-actions>button:disabled{background:#344149;color:#afbec7;border:1px solid #52616a}
html[data-theme="dark"] body #webphone .phone-secondary button{background:#29363d;color:#d1ddd0;border-color:#495960}
html[data-theme="dark"] body #webphone .phone-secondary button:is(:hover,:focus-visible,.on){background:#354b38;color:#e3f1d9;border-color:#91bd75}
html[data-theme="dark"] body #webphone .phone-secondary button:disabled{background:#344149;color:#afbec7;border-color:#52616a}
html[data-theme="dark"] body #webphone .phone-blf-key{background:#253138;color:#e0e7ea;border-color:transparent}
html[data-theme="dark"] body #webphone .phone-blf-key:is(:hover,:focus-visible):not(:disabled){background:#35483a;color:#edf4e8;border-color:#91bd75}
html[data-theme="dark"] body #webphone .phone-blf-dot.blf-busy{background:#c6a0f4}
html[data-theme="dark"] body #webphone .phone-blf-dot.blf-speed{background:#88c5c2}
html[data-theme="dark"] body #webphone .phone-blf-dot.blf-offline{background:#98a8b2}
html[data-theme="dark"] body #webphone .phone-blf-dot.blf-empty{background:#677780}
html[data-theme="dark"] body #webphone .phone-blf-pages button:focus-visible{outline:2px solid #b5d39f;outline-offset:2px}
html[data-theme="dark"] body #content .blf-right{--blf-tint:#25374b;--blf-ink:#bed9ff}
html[data-theme="dark"] body #content .blf-left{--blf-tint:#38304c;--blf-ink:#e0c7ff}
html[data-theme="dark"] body #content .blf-right .blf-label-cell input{background:#25374b;color:#e0ecff;border-color:#6584aa}
html[data-theme="dark"] body #content .blf-left .blf-label-cell input{background:#38304c;color:#eee3ff;border-color:#937bb1}
html[data-theme="dark"] body #content .blf-key-config :is(input,select):disabled{background:#353b40;color:#b5bfc7;border-color:#53616a}
html[data-theme="dark"] body #content .blf-key-config input:disabled::placeholder{color:#b5bfc7}
html[data-theme="dark"] body #content .blf-key-config [data-blf-unused]{color:#afbdc5}
html[data-theme="dark"] body #content .blf-line-icon{color:var(--blf-ink,#d3e2cb)}
html[data-theme="dark"] body .standard-panel{background:#222c32;color:#e0e7ea;border-color:#435159;box-shadow:0 16px 55px #0008}
html[data-theme="dark"] body .standard-panel-heading{background:#29363d;color:#e0e7ea;border-color:#435159}
html[data-theme="dark"] body .standard-panel-heading button{color:#d3e2cb}
html[data-theme="dark"] body .standard-panel-heading button:is(:hover,:focus-visible){background:#35483a;color:#e4f1dc}
html[data-theme="dark"] body .standard-panel .standard-board{background:transparent;border-color:#435159}
html[data-theme="dark"] body .standard-panel .standard-board p{color:#bdcbd2}
html[data-theme="dark"] body #standard-welcome-dialog{background:#222c32;color:#e0e7ea;border-color:#435159;box-shadow:0 22px 70px #0008}
html[data-theme="dark"] body .standard-welcome-symbol{background:#472d33;color:#ffb1b8}
html[data-theme="dark"] body #standard-welcome-dialog .standard-welcome-error{color:#ffb1b8}
html[data-theme="dark"] body .event-line.event-error{background:#3c2b2d;color:#ffb1a9}
html[data-theme="dark"] body .event-line.event-warning{background:#3e3728;color:#edce8c}
html[data-theme="dark"] body :is(.toolbar,.team-toolbar) .search{background:#192227;color:#c2d3ba;border-color:#52636b}
html[data-theme="dark"] body .search input{color:#e0e7ea}
html[data-theme="dark"] body .search input::placeholder{color:#a8b9c3}
html[data-theme="dark"] body .search:focus-within{border-color:#91bd75;box-shadow:0 0 0 3px #91bd7533}
