/* Optional EZRGB charcoal/gold theme, aligned with the supplied luxury CSS tokens. */
[data-theme=dark][data-palette=ezrgb]{color-scheme:dark;background:#09090b;color:#f2eee6;--ez-gold:#dca54c;--ez-border:#3b3935}
[data-theme=dark][data-palette=ezrgb] body,[data-theme=dark][data-palette=ezrgb] .section,[data-theme=dark][data-palette=ezrgb] .k-shell .main,[data-theme=dark][data-palette=ezrgb] .contacts-main{background:#09090b;color:#f2eee6}
[data-theme=dark][data-palette=ezrgb] .k-rail,[data-theme=dark][data-palette=ezrgb] .contact-rail,[data-theme=dark][data-palette=ezrgb] .k-nav,[data-theme=dark][data-palette=ezrgb] .sidebar,[data-theme=dark][data-palette=ezrgb] .k-details,[data-theme=dark][data-palette=ezrgb] .card,[data-theme=dark][data-palette=ezrgb] .chathead,[data-theme=dark][data-palette=ezrgb] .composer,[data-theme=dark][data-palette=ezrgb] .settings-tabs,[data-theme=dark][data-palette=ezrgb] .settings-panel,[data-theme=dark][data-palette=ezrgb] .settings-row,[data-theme=dark][data-palette=ezrgb] .inbox-entry{background:#171618;color:#f2eee6;border-color:var(--ez-border)}
[data-theme=dark][data-palette=ezrgb] h1,[data-theme=dark][data-palette=ezrgb] .section-head h1,[data-theme=dark][data-palette=ezrgb] .k-heading,[data-theme=dark][data-palette=ezrgb] .settings-panel-head h2,[data-theme=dark][data-palette=ezrgb] .settings-tabs h2{color:var(--ez-gold)}
[data-theme=dark][data-palette=ezrgb] .staff-rail a,[data-theme=dark][data-palette=ezrgb] .k-nav a,[data-theme=dark][data-palette=ezrgb] .settings-tabs a{color:var(--ez-gold)}
[data-theme=dark][data-palette=ezrgb] .staff-rail a.active,[data-theme=dark][data-palette=ezrgb] .staff-rail a:hover,[data-theme=dark][data-palette=ezrgb] .k-nav a.selected,[data-theme=dark][data-palette=ezrgb] .settings-tabs a.active{background:#32302b;color:#ffd27e}
[data-theme=dark][data-palette=ezrgb] .chatrow.active,[data-theme=dark][data-palette=ezrgb] .chatrow:hover{background:#33302b;border-left-color:var(--ez-gold)}
[data-theme=dark][data-palette=ezrgb] .k-shell .filters button.active,[data-theme=dark][data-palette=ezrgb] .compose-tabs button.selected{color:var(--ez-gold);border-bottom-color:var(--ez-gold);background:#33302b}
[data-theme=dark][data-palette=ezrgb] input,[data-theme=dark][data-palette=ezrgb] textarea,[data-theme=dark][data-palette=ezrgb] select,[data-theme=dark][data-palette=ezrgb] .rich-editor{background:#1e1d1f;color:#f5f0e6;border-color:#5e5544;caret-color:var(--ez-gold)}
[data-theme=dark][data-palette=ezrgb] input::placeholder,[data-theme=dark][data-palette=ezrgb] textarea::placeholder{color:#aaa496}
[data-theme=dark][data-palette=ezrgb] .btn.primary,[data-theme=dark][data-palette=ezrgb] #send,[data-theme=dark][data-palette=ezrgb] .inbox-detail-form .btn.primary{background:var(--ez-gold);border-color:var(--ez-gold);color:#161616}
[data-theme=dark][data-palette=ezrgb] .btn:not(.primary),[data-theme=dark][data-palette=ezrgb] .format-tools button,[data-theme=dark][data-palette=ezrgb] .compose-bottom button:not(#send){background:#171618;color:#efc476;border-color:#6d5b3b}
[data-theme=dark][data-palette=ezrgb] .format-tools button.active{background:#6a5229;color:#fff2d3;border-color:var(--ez-gold)}
[data-theme=dark][data-palette=ezrgb] .bubble:not(.agent){background:#303030;color:#f4f1ea;border-color:var(--ez-border)}
[data-theme=dark][data-palette=ezrgb] .k-thread .bubble.agent{background:#59472a;color:#fff5df;border-color:#8d6e37}
[data-theme=dark][data-palette=ezrgb] .bubble.internal-note{background:#403323;border-color:#8d6e37}
[data-theme=dark][data-palette=ezrgb] .bubble a,[data-theme=dark][data-palette=ezrgb] .previous-link,[data-theme=dark][data-palette=ezrgb] .inbox-back{color:#ffd27e}
[data-theme=dark][data-palette=ezrgb] .k-avatar,[data-theme=dark][data-palette=ezrgb] .avatar{background:#443b2b;color:#ffd27e}
[data-theme=dark][data-palette=ezrgb] .meta,[data-theme=dark][data-palette=ezrgb] .preview,[data-theme=dark][data-palette=ezrgb] .muted,[data-theme=dark][data-palette=ezrgb] .k-details p,[data-theme=dark][data-palette=ezrgb] .settings-panel-head p,[data-theme=dark][data-palette=ezrgb] #subtitle{color:#bcb5a7}
[data-theme=dark][data-palette=ezrgb] .inbox-detail{--detail-bg:#171618;--detail-soft:#222;--detail-input:#09090b;--detail-text:#f2eee6;--detail-muted:#bcb5a7;--detail-border:#4c4437}
[data-theme=dark][data-palette=ezrgb] .inbox-detail-row h3,[data-theme=dark][data-palette=ezrgb] .inbox-detail-tabs button.selected{color:var(--ez-gold);border-bottom-color:var(--ez-gold)}
[data-theme=dark][data-palette=ezrgb] .inbox-detail-form input[type=checkbox],[data-theme=dark][data-palette=ezrgb] .inbox-detail-form input[type=radio]{accent-color:var(--ez-gold)}
[data-theme=dark][data-palette=ezrgb] .settings-item,[data-theme=dark][data-palette=ezrgb] .contact-card{background:#171618;border-color:var(--ez-border)}
[data-theme=dark][data-palette=ezrgb] .rail-badge{background:var(--ez-gold);color:#161616}

[data-theme=dark][data-palette=ezrgb] input[type=radio],[data-theme=dark][data-palette=ezrgb] input[type=checkbox]{accent-color:#dca54c}
[data-theme=dark][data-palette=ezrgb] .staff-rail{background:#171618!important;border-color:#3b3935!important}
[data-theme=dark][data-palette=ezrgb] .staff-rail a:not(.k-logo):not(.rail-brand),[data-theme=dark][data-palette=ezrgb] .staff-rail button[id$=toggle]{color:#dca54c}
[data-theme=dark][data-palette=ezrgb] .staff-rail a.active,[data-theme=dark][data-palette=ezrgb] .staff-rail a:not(.k-logo):not(.rail-brand):hover{background:#393227!important;color:#ffd27e!important}
[data-theme=dark][data-palette=ezrgb] .k-heading span,[data-theme=dark][data-palette=ezrgb] .k-shell .filters button{background:#303030;color:#c9c1b1}
[data-theme=dark][data-palette=ezrgb] .k-shell .filters button.active{color:#dca54c;background:#393227;border-bottom-color:#dca54c}

/* Cover the component-specific dark styles across every staff menu. */
[data-theme=dark][data-palette=ezrgb] :is(.workspace-shell,.workspace-shell .section){background:#09090b;color:#f2eee6}
[data-theme=dark][data-palette=ezrgb] :is(.contact-subnav,.contact-expanded,.contact-pagination,#contact-dialog,.settings-table,#settings-dialog,.settings-row.heading,.k-details summary,.app-nav){background:#171618;color:#f2eee6;border-color:#3b3935}
[data-theme=dark][data-palette=ezrgb] :is(.contact-subnav strong,.kc-folder.selected,.kc-folder:hover,.settings-tabs nav a.active,.settings-tabs nav a:hover,.k-nav a.selected,.app-nav a.active,.app-nav a:hover){background:#393227;color:#ffd27e}
[data-theme=dark][data-palette=ezrgb] :is(.contact-subnav span,.contact-summary small,.contact-card .chevron,.contact-expanded .contact-actions span,.contact-expanded .edit-form label,#new-contact label,.section-head p){color:#bcb5a7}
[data-theme=dark][data-palette=ezrgb] :is(.view-details,.ticket-list a,.kc-access a,.kc-editor a,.settings-tabs nav a){color:#ffd27e}
[data-theme=dark][data-palette=ezrgb] :is(.contact-card .contact-avatar,.k-avatar,.avatar){background:#443b2b;color:#ffd27e}
[data-theme=dark][data-palette=ezrgb] :is(.kc-editor label input,.kc-editor label select,.kc-editor label textarea,.kc-access input,.kc-toolbar input,.contacts-toolbar input,.contacts-toolbar select,.contacts-toolbar select option,.edit-form input,.edit-form select,.edit-form textarea,#new-contact input,#new-contact select,#new-contact textarea,#settings-dialog input:not([type=checkbox]),#settings-dialog select,#settings-dialog textarea,.team-login input,#team-add input,#team-add select,.k-search input){background:#1e1d1f;color:#f5f0e6;border-color:#5e5544}
[data-theme=dark][data-palette=ezrgb] :is(.contacts-toolbar button:not(.primary),.contact-pagination button,.more-menu summary,.more-options,.more-options button,.contact-expanded .contact-actions button,.contact-actions button,.detail-section button,#add-macro,.format-tools button,.compose-bottom button:not(.primary)){background:#171618;color:#efc476;border-color:#6d5b3b}
[data-theme=dark][data-palette=ezrgb] :is(.more-options button:hover,.more-menu[open] summary,.format-tools button.active){background:#59472a;color:#fff2d3;border-color:#dca54c}
[data-theme=dark][data-palette=ezrgb] :is(.chatrow,.contact-card summary,.contact-expanded,.ticket-list a,.kc-chat-result,th,td){border-color:#3b3935}
[data-theme=dark][data-palette=ezrgb] :is(.k-shell .chathead,.k-shell .sidebar,.k-shell .composer){background:#171618;color:#f2eee6;border-color:#3b3935}
[data-theme=dark][data-palette=ezrgb] .staff-rail .rail-badge{box-shadow:0 0 0 2px #171618}

/* Composer mode tabs use the palette in every interaction state. */
[data-theme=dark][data-palette=ezrgb] .k-shell .composer .compose-tabs{border-color:var(--ez-border)}
[data-theme=dark][data-palette=ezrgb] .k-shell .composer .compose-tabs button{background:#171618;color:#bcb5a7;border-bottom:2px solid transparent}
[data-theme=dark][data-palette=ezrgb] .k-shell .composer .compose-tabs button.selected{background:#33302b;color:var(--ez-gold);border-bottom-color:var(--ez-gold)}
[data-theme=dark][data-palette=ezrgb] .k-shell .composer .compose-tabs button:hover:not(:disabled){background:#393227;color:#ffd27e}
[data-theme=dark][data-palette=ezrgb] .k-shell .composer .compose-tabs button:focus-visible{outline:2px solid var(--ez-gold);outline-offset:-2px}
[data-theme=dark][data-palette=ezrgb] .k-shell .composer .compose-tabs button:disabled{opacity:.45;cursor:not-allowed}
[data-theme=dark][data-palette=ezrgb] #contact-edit-dialog{background:#171618;color:#f2eee6;border-color:#5e5544}[data-theme=dark][data-palette=ezrgb] #contact-edit-dialog label,[data-theme=dark][data-palette=ezrgb] #contact-edit-identity{color:#bcb5a7}

/* Scoped luxury component geometry; other theme modes retain their own styles. */
[data-theme=dark][data-palette=ezrgb]{--ez-surface:#171618;--ez-field:#1e1d1f;--surface:#171618;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
[data-theme=dark][data-palette=ezrgb] :is(.card,.contact-card,.settings-item,.inbox-entry,dialog,#contact-dialog,#contact-edit-dialog,#settings-dialog){border-radius:1rem}
[data-theme=dark][data-palette=ezrgb] :is(.btn,.contact-actions button,.contacts-toolbar button,.contact-pagination button,.detail-section button,#add-macro){min-height:2.5rem;padding:0 1rem;border-radius:.5rem;font-size:.875rem;font-weight:600}
[data-theme=dark][data-palette=ezrgb] :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),select){box-sizing:border-box;min-height:2.5rem;padding:.5rem .75rem;border-width:1px;border-style:solid;border-radius:.5rem}
[data-theme=dark][data-palette=ezrgb] textarea{padding:.5rem .75rem;border:1px solid #5e5544;border-radius:.5rem}
[data-theme=dark][data-palette=ezrgb] #contact-edit-dialog :is(input,select){min-height:2.5rem}
[data-theme=dark][data-palette=ezrgb] :is(.kc-entry,.kc-answer,.bubble,.rich-editor,.contact-expanded){color:#f5f5f5}
[data-theme=dark][data-palette=ezrgb] :is(.more-options,.app-nav){background:var(--ez-field)}
[data-theme=dark][data-palette=ezrgb] :is(.btn.primary,#send):hover:not(:disabled){background:#e6b867;border-color:#e6b867;color:#161616}
[data-theme=dark][data-palette=ezrgb] :is(button,input,select,textarea,summary,a):focus-visible{outline:2px solid var(--ez-gold);outline-offset:2px}
[data-theme=dark][data-palette=ezrgb] .btn:disabled{opacity:.45;cursor:not-allowed}
[data-theme=dark][data-palette=ezrgb] :is(#new-contact,#settings-dialog,#contact-edit-dialog) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select){box-sizing:border-box;min-height:2.5rem;padding:.5rem .75rem;border-width:1px;border-radius:.5rem}
[data-theme=dark][data-palette=ezrgb] :is(#new-contact,#settings-dialog,#contact-edit-dialog) textarea{padding:.5rem .75rem;border-radius:.5rem}
