/* Softer dark palette approved by the user; inspired by Jota blue. */
.appearance-setting{display:grid;gap:8px;margin:16px 0 24px;font-size:13px;font-weight:600}
.appearance-setting select{min-height:44px;padding:10px;border:1px solid #cad2d8;border-radius:8px;background:#f5f5f5;color:#121926}
:root[data-theme=dark]{color-scheme:dark;--night:#243247;--panel:#2e4058;--raised:#3b5270;--line:#60738e;--ink:#f2f4f7;--muted:#ccd5e1;background:var(--night);color:var(--ink)}
[data-theme=dark] :is(.app,.inbox-panel,.details-panel,.chat-head,.panel-head,.details-head,.modal-card,.location-dialog,.login-shell,.login-card,.attachment-menu,.agenda-card){background:var(--panel);color:var(--ink);border-color:var(--line)}
[data-theme=dark] :is(.chat-panel,.chat-content,.reports-panel,.kanban-panel,.login-aside){background:var(--night);color:var(--ink)}
[data-theme=dark] .chat-content{background-image:none}
[data-theme=dark] .rail{background:var(--night);border-color:var(--line)}
[data-theme=dark] :is(h1,h2,h3,strong,.chat-title strong,.conversation-top strong,.kanban-card-name,.kanban-column-head h2,.report-panel h2,.reports-head h1,.report-kpis strong){color:var(--ink)}
[data-theme=dark] :is(p,small,.subtle,.chat-title span,.conversation-time,.conversation-preview span,.conversation-meta small,.kanban-result,.kanban-empty,.kanban-card-origin,.kanban-card-meta,.reports-empty,.report-footnote,.report-kpis small,.reports-head label,.section-title,.switch-row,.contact-form label,.modal-card label,.history-card,.stage-reason,.panel-foot,.photo-previews figcaption){color:var(--muted)}
[data-theme=dark] :is(.conversation-item,.kanban-card,.report-panel,.report-kpis article,.report-kpis .report-pending,.note-card,.agenda-day,.location-card){background:var(--panel);color:var(--ink);border-color:var(--line);box-shadow:none}
[data-theme=dark] :is(.conversation-item.active,.conversation-item:hover,.filter.active,.archive-folder.active,.rail-button.active,.rail-button:hover,.kanban-card-open:hover,.kanban-card-open:focus-visible,.report-pending:hover,.agenda-day.selected){background:var(--raised);color:var(--ink)}
[data-theme=dark] :is(.kanban-head,.kanban-column,.kanban-column-head,.composer,.composer-hint,.panel-foot,.day-divider,.search-wrap,.kanban-search,.filter,.stage-tag,.count-pill,.archive-folder){background:var(--panel);color:var(--muted);border-color:var(--line)}
[data-theme=dark] :is(.kanban-column-head,.avatar,.kanban-card-top .avatar,.kanban-count,.kanban-total strong){background:var(--raised);color:var(--ink)}
[data-theme=dark] .kanban-total strong{background:transparent}
[data-theme=dark] .kanban-step{color:#d9cead}
[data-theme=dark] :is(.kanban-card-open,.kanban-move,.kanban-move select,.icon-button,.back-button,.close-button,.rail-button,.attachment-menu button){color:var(--muted);border-color:var(--line)}
[data-theme=dark] .kanban-move select{background:transparent}
[data-theme=dark] :is(input,textarea,select,.composer textarea,.contact-form input,.detail-section select,.modal-card input,.detail-section textarea,.reports-head select,.new-lead-dialog input,.new-lead-dialog select,.new-lead-dialog textarea,.appearance-setting select){background:var(--night);color:var(--ink);border-color:var(--line)}
[data-theme=dark] :is(input,textarea)::placeholder{color:#adb8c9}
[data-theme=dark] :is(.message.in,.message.out){background:var(--raised);color:var(--ink)}
[data-theme=dark] .message.in{background:var(--panel)}
[data-theme=dark] :is(.message-footer,.message.out .message-footer,.message-type,.message-check){color:var(--muted)}
[data-theme=dark] .message.out .message-footer .message-check.is-read{color:#53bdeb}
[data-theme=dark] :is(.primary,.composer>button,.location-actions [data-send]){background:var(--raised);color:var(--ink)}
[data-theme=dark] :is(.secondary,.location-actions button,.agenda-actions button){background:var(--raised);color:var(--ink);border-color:var(--line)}
[data-theme=dark] :is(.attachment-menu button:hover,.attachment-menu button:focus-visible,.back-button.back-to-funnel:hover){background:var(--raised)}
[data-theme=dark] :is(.attachment-menu button,.composer .attachment-menu button){background:transparent;color:var(--ink)}
[data-theme=dark] :is(.panel-foot,.filter-row,.chat-head,.detail-section,.profile-card,.details-head,.kanban-stack,.conversation-item,.kanban-move){border-color:var(--line)}
[data-theme=dark] :is(.kanban-stack,.kanban-columns,.messages,.conversation-list,.details-scroll,.reports-panel){scrollbar-color:#68758d var(--night)}
[data-theme=dark] :is(.eyebrow,.rail-logo,.brand-mark,.section-title span:first-child){color:#d9cead}
[data-theme=dark] .voice-dialog .voice-clock{color:var(--ink)}
[data-theme=dark] .voice-dialog.is-recording .voice-clock{color:#ffada6}
[data-theme=dark] :is(a,.location-card small,.location-dialog a){color:#d9cead}
[data-theme=dark] .unread-count{background:#168341;color:#f5fff7}
[data-theme=dark] :is(.agenda-grid,.agenda-week,.agenda-month){color:var(--muted)}
[data-theme=dark] :focus-visible{outline-color:#d9cead}

[data-theme=dark] :is(.report-row-head,.report-row-head span,.report-kpis span,.report-footnote,.report-row,.agenda-visit,.agenda-event){color:var(--muted)}
[data-theme=dark] .report-track{background:var(--raised)}
[data-theme=dark] .report-track>div{background:#d9cead}
[data-theme=dark] :is(.kanban-total strong,.kanban-count,.kanban-card-top .avatar){background:transparent}
[data-theme=dark] .kanban-count{background:var(--raised)}
[data-theme=dark] :is(.search-wrap input,.kanban-search input){background:transparent}
