/* The same appearance follows the phone, its menus, and the Office workspaces. */
html[data-theme="light"] {
  color-scheme: light;
  --demo-surface: #fff; --demo-panel: #f3f7fc; --demo-line: #c6d5e6;
  --demo-ink: #14273f; --demo-secondary: #485f78; --demo-on-hover: #123e68;
  --demo-hover: #e4f1ff; --demo-focus: #0d63b4;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --demo-surface: #101e30; --demo-panel: #17293c; --demo-line: #354b65;
  --demo-ink: #edf5ff; --demo-secondary: #bacbdd; --demo-on-hover: #f3f8ff;
  --demo-hover: #233d59; --demo-focus: #70c5ff;
}
[hidden] { display: none !important; }
#demo-navigation .office-demo-theme,.directory-theme { display:inline-flex; align-items:center; gap:3px; }
.directory-theme { margin-inline-start:auto; }
.office-demo-theme button,.directory-theme button { font:700 12px/1 system-ui; min-height:32px; padding:4px 8px; border:1px solid var(--demo-line); border-radius:8px; background:var(--demo-panel); color:var(--demo-ink); cursor:pointer; }
html[data-theme] :is(#demo-navigation,.directory-theme) [aria-pressed="true"] { border-color:var(--demo-focus); box-shadow:inset 0 -2px var(--demo-focus); }
html[data-theme="light"] :is(#demo,#demo-navigation) { background:#e8f1fa; color:#193b5b; border-bottom:1px solid #c9d8e6; }
html[data-theme="light"] :is(#demo,#demo-navigation) :is(a,span) {color:#294969;}
html[data-theme] :is(#app,#workspace,#demo,#demo-navigation,#demo-dialog) :is(a,button,summary,input,textarea,select):focus-visible { outline:3px solid var(--demo-focus); outline-offset:2px; }
html[data-theme="light"] #app :is(.keypad .key,.quick-links a,.caller,.conversation,.folder-tab,.menu-btn,.dash-nav,.sl-more-link,.sl-more-drop summary,.desktop-more summary,.more-panel a,.sl-more-panel a,.sl-mobile-more a,.mobile-extra a,.sl-comm-nav a,.customer-section-tab,.upcoming-row,.install-platform,.contact-info,.back,.mini-action,[data-theme-choice]):is(:hover,:focus-visible),
html[data-theme="light"] #workspace :is(.office-nav-link,.office-more summary,.office-more-panel a,.office-mobile-more a,.tool-card,.office-theme-switch button,.tab,.pill,.action-link,.top-link):is(:hover,:focus-visible),
html[data-theme="light"] :is(#demo-navigation,.directory-theme) :is(a,button):is(:hover,:focus-visible) {
  color:var(--demo-on-hover) !important; background:var(--demo-hover) !important; border-color:#9dbddc !important;
}
html[data-theme="light"] #workspace .tool-card:is(:hover,:focus-visible) { background:linear-gradient(120deg,#fff 25%,rgba(var(--rgb),.11)) #fff !important; }
html[data-theme="light"] #workspace .tool-tag { color:#42566f; }
html[data-theme="light"] #workspace .tool-card .tool-icon { color:color-mix(in srgb,var(--accent) 38%,#112337); }
html[data-theme="light"] #app .item:is(:hover,:focus-within) { color:var(--demo-ink) !important; background:#eef5fc !important; }
html[data-theme="light"] #app :is(.conversation,.caller,.upcoming-row):is(:hover,:focus-visible) :is(strong,.phone,.contact-name,.name) { color:var(--demo-ink) !important; }
html[data-theme="light"] #app :is(.conversation,.caller,.upcoming-row):is(:hover,:focus-visible) :is(.meta,.preview,.contact-phone,.conversation-time) { color:#425a73 !important; }
html[data-theme="light"] [data-screen="phone"] { background:linear-gradient(150deg,#f8fbff,#e8f0f9); color:var(--demo-ink); }
html[data-theme="light"] #app :is(.keypad .key,.dial-input) { color:var(--demo-ink); }
html[data-theme="dark"] #app .demo-shortcuts a { background:#18324d; color:#e0efff; border-color:#426381; }
html[data-theme="dark"] #app .demo-shortcuts a:hover { background:#264669; }
html[data-theme] .demo-inline { display:inline-block; font-weight:700; margin-top:.5rem; text-decoration:underline; text-underline-offset:3px; }
html[data-theme] #app .sl-more-panel a { display:flex; }
html[data-theme] #app [data-platform][aria-pressed="true"] { box-shadow:inset 0 -3px var(--demo-focus); }
#app .item h2 { font-size:1rem; margin:3px 0; }
#app .contact-info { border-radius:6px; padding:4px 0; }
html[data-theme="dark"] body[data-screen="clients"] {color:var(--demo-ink); background:#081320;}
html[data-theme="dark"] [data-screen="clients"] :is(.list,.back,.action,.search input) { background:var(--demo-surface); color:var(--demo-ink); border-color:var(--demo-line); }
html[data-theme="dark"] [data-screen="clients"] .contact { border-color:var(--demo-line); }
html[data-theme="dark"] [data-screen="clients"] .name { color:var(--demo-ink); }
html[data-theme="dark"] [data-screen="clients"] :is(.count,.number,.heading p,.empty) { color:var(--demo-secondary); }
html[data-theme="dark"] [data-screen="clients"] .contact-info:hover { background:var(--demo-hover); }
html[data-theme="dark"] [data-screen="setup"] :is(.actions,.menu-item,.choice,.sms-example),
html[data-theme="dark"] [data-screen="devices"] :is(.install-strip,.install-platform) { background:var(--demo-panel);color:var(--demo-ink);border-color:var(--demo-line); }
html[data-theme="dark"] :is([data-screen="setup"],[data-screen="devices"]) :is(.help,.install-strip-title,.field label,.test-list,.choice span,.menu-item span,.actions span) { color:var(--demo-secondary); }
html[data-theme="dark"] body[data-page]:not([data-page="office"]) {
  background:#091521; color:var(--demo-ink); --panel:var(--demo-surface); --panel-soft:var(--demo-surface);
  --bg:#091521; --text:var(--demo-ink); --line:var(--demo-line); --line-soft:var(--demo-line);
  --muted:var(--demo-secondary); --muted-2:var(--demo-secondary); --blue-soft:#1e3854;
}
html[data-theme="dark"] body[data-page]:not([data-page="office"]) #workspace :is(.content-shell,.sidebar,.container,.leads-shell,.leads-body,.card,.side-card,.list-card,.filter-card,.detail-panel,.detail-box,.quick-card,.summary-card,.form-card,.form-wide,.panel,.pillbar,.item-card,.section-grid,.note,.audio-note,.status-box,.left-pane,.right-pane,.search-card,.help-modal,.mobile-lead,.preview-drawer,.empty-state,.demo-doc,.demo-file,td,th,input,textarea,select,[style*="background:#fff"],[style*="background: #fff"]) {
  background:var(--demo-surface) !important; border-color:var(--demo-line) !important; color:var(--demo-ink) !important;
}
html[data-theme="dark"] body[data-page]:not([data-page="office"]) #workspace :is(.card,.panel,.container,.content-shell,.sidebar,.section,.leads-body,.search-card,.pillbar,.detail-panel) :is(h1,h2,h3,h4,label,legend,.lead-name,.section-title,.section-head) {color:var(--demo-ink);}
html[data-theme="dark"] body[data-page]:not([data-page="office"]) #workspace :is(.muted,.helper-note,.lead-muted,.lead-label,.note,.sub,.small,.demo-file,.help,.side-card p,.card p,.quick-card p,.card small,.preview-drawer-sub,.section-head p,[style*="color:#0f172a"]) {color:var(--demo-secondary) !important;}
html[data-theme="dark"] body[data-page]:not([data-page="office"]) #workspace :is(.tab,.pill,.btn-ghost,.btn-secondary,.action-link,.top-link,.ghost,.preview-box,.folder-preview-item,.crumb,[style*="border-radius:999px;background:"]) { background:var(--demo-panel) !important; color:var(--demo-ink) !important; border-color:var(--demo-line) !important; }
html[data-theme="dark"] body[data-page]:not([data-page="office"]) #workspace :is(.tab,.pill,.tool-card,.top-link,.action-link):is(:hover,:focus-visible,.active) {background:var(--demo-hover) !important; color:var(--demo-on-hover) !important;}
html[data-theme="dark"] #demo-dialog {background:var(--demo-panel); color:var(--demo-ink);border-color:var(--demo-line);}
html[data-theme="dark"] #demo-dialog p {color:var(--demo-secondary);}
@media(max-width:1120px) {
  #app .sl-more-nav.open {display:grid; }
  #app .sl-more-nav.open .sl-mobile-more { grid-column:1/-1; }
}
@media(max-width:1050px) {
  #app .top-navigation.open {display:grid; }
  #app .top-navigation.open .desktop-more {display:none; }
}
@media(prefers-reduced-motion:reduce) {
  #app *,#workspace .tool-card,#workspace .tool-card::before,body[data-page="office"]::before { animation-duration:0s !important; transition-duration:0s !important; }
}

html[data-theme="dark"] #demo-dialog h2 { color:var(--demo-ink); }
@media print { #demo,#demo-navigation,#demo-status,.no-print {display:none !important;} }

html[data-theme="dark"] body[data-screen="dashboard"] .attention {
  background:linear-gradient(95deg,#342615,#211e1d);
  border-color:#805c29;
  color:#fff1da;
}
html[data-theme="dark"] body[data-screen="dashboard"] .attention strong {color:#fff1da;}
html[data-theme="dark"] body[data-screen="dashboard"] .attention span {color:#f3d2a1;}
html[data-theme="dark"] body[data-screen="dashboard"] .attention-count {background:#f5aa45;color:#231505;}
