[data-theme="light"] .inbox-desk-tabs{background:var(--bg3)}

[data-theme="light"] .inbox-action-btn{background:transparent;color:var(--text3)}

[data-theme="light"] .inbox-action-btn:hover{background:var(--bg3);color:var(--text)}

[data-theme="light"] .inbox-filter-pill{border:1px solid var(--border);color:var(--text3)}

[data-theme="light"] .inbox-filter-pill:hover{background:var(--bg3)}

[data-theme="light"] .inbox-filter-pill.active{background:var(--text);color:var(--bg2);border-color:var(--text)}

[data-theme="light"] .inbox-filter-dropdown{background:var(--bg2);border:1px solid var(--border);box-shadow:var(--shadow-lg)}

[data-theme="light"] .ifd-option:hover{background:var(--bg3)}

[data-theme="light"] .ifd-actions{border-top:1px solid var(--bg3)}

[data-theme="light"] .calls-inline-list .call-item{border-bottom:1px solid var(--bg3)}

[data-theme="light"] .calls-inline-list .call-item:hover{background:var(--bg)}

[data-theme="light"] .invite-box,[data-theme="light"] .invite-error-box{background:var(--bg2);border:1px solid var(--border);box-shadow:var(--shadow-lg)}

[data-theme="light"] .invite-box input{background:var(--bg3);border:1px solid var(--border);color:var(--text)}

[data-theme="light"] .invite-box input::placeholder{color:var(--text3)}

[data-theme="light"] .invite-subtitle{color:var(--text3)}

[data-theme="light"] .invite-error-msg{color:var(--text3)}

[data-theme="light"] .invite-link{color:var(--text3)}

[data-theme="light"] .bulk-label-panel{background:var(--bg2);border:1px solid var(--border);box-shadow:var(--shadow-lg)}

[data-theme="light"] .bulk-label-item:hover{background:var(--bg)}

[data-theme="light"] .bulk-label-header{border-bottom:1px solid var(--bg3)}

[data-theme="light"] .profile-card{background:var(--bg2);border-color:var(--border);box-shadow:var(--shadow-sm)}

[data-theme="light"] .profile-row:hover{background:var(--bg)}

[data-theme="light"] .profile-row-icon{background:var(--bg3)}

[data-theme="light"] .profile-input{background:var(--bg2);border-color:var(--border)}

[data-theme="light"] .avatar-picker-card{background:var(--bg2)}

[data-theme="light"] .compose-results{background:var(--bg2);box-shadow:var(--shadow-md)}

[data-theme="light"] .compose-result:hover{background:var(--bg3)}

/* LIGHT THEME                                                     */

[data-theme="light"]{
  --brand:#4f7df5;
  --brand-hover:#3b6be3;
  --brand-bg:rgba(79,125,245,.06);
  --nav-active-bg:rgba(0,0,0,.04);
  --nav-active-text:#111827;
  --teal:#0d9488;--teal-hover:#0f766e;--teal-bg:rgba(13,148,136,.06);--teal-light:rgba(13,148,136,.1);--teal-glow:rgba(13,148,136,.12);
  --bg:#f8f9fa;--bg2:#ffffff;--bg3:#f3f4f6;--bg4:#e8eaed;
  --bg-2:#ffffff;--bg-3:#f3f4f6;--bg-4:#e8eaed;
  --text:#111827;--text1:#111827;--text2:#4b5563;--text3:#6b7280;--text4:#4b5563;
  --text-2:#4b5563;--text-3:#6b7280;--text-4:#4b5563;
  --border:#e5e7eb;--border-light:#f0f0f0;--border-lighter:#f5f5f5;
  --danger:#e11d48;--danger-light:#fb7185;--warn:#d97706;--success:#059669;
  --pink:#db2777;--purple:#6d28d9;--orange:#ea580c;
  --blue:#2563eb;--green:#059669;--indigo:#4f46e5;
  --role-admin:#4f46e5;--role-owner:#d97706;--internal:#92400e;
  --sidebar-active-bg:#f0fdfa;
  --toast-bg:#1f2937;--toast-success-bg:#065f46;--toast-error-bg:#9f1239;
  --internal-bg:#fef3c7;--internal-border:#fde68a;
  --drag-handle:#bbb;--drag-handle-hover:#888;--drag-handle-active:#555;
  --blue-active:#3b82f6;
  --tag-vip-text:#b45309;--tag-regular-text:#7c3aed;
  --call-bg:#e8eaf6;--call-text:#1a1a2e;
  --internal-overlay:rgba(217,119,6,.08);--internal-border-overlay:rgba(217,119,6,.15);
  --blue-12:rgba(59,130,246,.12);
  --shadow-sm:0 1px 2px rgba(0,0,0,.05);
  --shadow-md:0 4px 12px rgba(0,0,0,.08);
  --shadow-lg:0 8px 24px rgba(0,0,0,.1);
}

[data-theme="light"] html,[data-theme="light"] body{background:var(--bg);color:var(--text)}

[data-theme="light"] ::-webkit-scrollbar-thumb{background:var(--overlay-dark-10)}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover{background:var(--overlay-dark-20)}

[data-theme="light"] .sidebar-profile-avatar .online-dot{border-color:var(--white)}

[data-theme="light"] .sidebar-inbox:hover{background:var(--bg3)}

[data-theme="light"] .sidebar-inbox.active{background:var(--sidebar-active-bg)}

[data-theme="light"] .sidebar-member:hover{background:var(--bg3)}

[data-theme="light"] .sidebar-member-dot{border-color:var(--white)}

[data-theme="light"] .sidebar-bottom{border-top:1px solid var(--border)}

[data-theme="light"] .mobile-tabs{background:var(--bg2);border-top:1px solid var(--border);backdrop-filter:none}

[data-theme="light"] .mob-tab{color:var(--text3)}

[data-theme="light"] .mob-tab.active{color:var(--text)}

[data-theme="light"] .topbar{background:var(--bg2);border-bottom:1px solid var(--border)}

[data-theme="light"] .search-box input{color:var(--text)}

[data-theme="light"] .search-box input::placeholder{color:var(--text3)}

[data-theme="light"] .inbox-dropdown{background:var(--bg2);box-shadow:var(--shadow-md);border:1px solid var(--border)}

[data-theme="light"] .inbox-dropdown-item{color:var(--text2)}

[data-theme="light"] .inbox-dropdown-item:hover,[data-theme="light"] .inbox-dropdown-item.active{background:var(--bg3)}

[data-theme="light"] .pill.active,[data-theme="light"] .pill:hover{background:var(--brand-hover-bg);color:var(--brand);border-color:var(--brand-20)}

[data-theme="light"] .convo-name{color:var(--text)}

[data-theme="light"] .convo-preview{color:var(--text3)}

[data-theme="light"] .convo-time{color:var(--text3)}

[data-theme="light"] .convo-avatar{box-shadow:var(--shadow-sm)}

[data-theme="light"] .chat-header{background:var(--bg2);border-bottom:1px solid var(--border)}

[data-theme="light"] .chat-name{color:var(--text)}

[data-theme="light"] .chat-sub{color:var(--text3)}

[data-theme="light"] .chat-messages{background:var(--bg)}

[data-theme="light"] .msg-bubble.internal{background:var(--internal-overlay);color:var(--internal);border:1px solid var(--internal-border-overlay)}

[data-theme="light"] .msg-bubble.inbound .msg-meta{color:var(--text3)}

[data-theme="light"] .msg-bubble.internal .msg-meta{color:var(--internal)}

[data-theme="light"] .msg-date{color:var(--text3)}

[data-theme="light"] .chat-input-bar{background:var(--bg2);border-top:1px solid var(--border)}

[data-theme="light"] .chat-input::placeholder{color:var(--text3)}

[data-theme="light"] .chat-input:focus,[data-theme="light"] .chat-input:focus-visible{border-color:var(--teal-40-light);background:var(--white);box-shadow:0 0 0 3px var(--teal-8-light);outline:2px solid var(--teal);outline-offset:2px}

[data-theme="light"] .typing-indicator{color:var(--text3)}

[data-theme="light"] .crm-strip{background:var(--bg2);border-bottom:1px solid var(--border)}

[data-theme="light"] .crm-strip-cell{border-right:1px solid var(--border-light)}

[data-theme="light"] .crm-strip-cell .sl{color:var(--text3)}

[data-theme="light"] .crm-strip-cell .sv{color:var(--text)}

[data-theme="light"] .crm-section{border-bottom:1px solid var(--bg3)}

[data-theme="light"] .crm-stitle{color:var(--text3)}

[data-theme="light"] .crm-field .l{color:var(--text3)}

[data-theme="light"] .crm-field .v{color:var(--text)}

[data-theme="light"] .crm-detail-card{background:var(--bg2);border:1px solid var(--border);box-shadow:var(--shadow-sm)}

[data-theme="light"] .crm-big-name{color:var(--text)}

[data-theme="light"] .crm-big-phone{color:var(--text3)}

[data-theme="light"] .crm-note{background:var(--bg);border:1px solid var(--border)}

[data-theme="light"] .crm-note-date{color:var(--text3)}

[data-theme="light"] .crm-note-text{color:var(--text2)}

[data-theme="light"] .crm-add-note{color:var(--brand);background:var(--brand-6);border:1px solid var(--brand-15)}

[data-theme="light"] .crm-add-note:hover{background:var(--teal-light)}

[data-theme="light"] .contacts-panel{background:var(--bg)}

[data-theme="light"] .contacts-detail-panel{background:var(--bg2);border-left:1px solid var(--border)}

[data-theme="light"] .contact-item.active{background:var(--brand-6)}

[data-theme="light"] .contact-item:hover{background:var(--bg3)}

[data-theme="light"] .contact-item:active{background:var(--border)}

[data-theme="light"] .contact-cb-wrap:hover{background:var(--bg3)}

[data-theme="light"] .contact-item.selected{background:var(--brand-6);border-left:2px solid var(--brand)}

[data-theme="light"] .contacts-bulk-bar{background:var(--bg);border-bottom:1px solid var(--border)}

[data-theme="light"] .contacts-bulk-bar .bulk-btn{border:1px solid var(--border);background:var(--bg2);color:var(--text2)}

[data-theme="light"] .contacts-bulk-bar .bulk-btn:hover{background:var(--bg3)}

[data-theme="light"] .contacts-bulk-bar .bulk-btn.danger{border-color:var(--danger);color:var(--danger)}

[data-theme="light"] .contacts-desk-header{background:var(--bg2);border-bottom:1px solid var(--border)}

[data-theme="light"] .contacts-desk-search input{background:var(--bg3);color:var(--text);border:1px solid transparent}

[data-theme="light"] .contacts-desk-search input::placeholder{color:var(--text3)}

[data-theme="light"] .contacts-desk-search input:focus{border-color:var(--teal-30-light)}

[data-theme="light"] .contacts-split-dd{background:var(--bg2);border:1px solid var(--border);box-shadow:var(--shadow-lg)}

[data-theme="light"] .contacts-split-dd-item{color:var(--text2)}

[data-theme="light"] .contacts-split-dd-item:hover{background:var(--bg3);color:var(--text)}

[data-theme="light"] .cfd-panel{background:var(--bg2);border:1px solid var(--border);box-shadow:var(--shadow-lg)}

[data-theme="light"] .cfd-panel-item:hover{background:var(--bg)}

[data-theme="light"] .cfd-panel-header{border-bottom:1px solid var(--bg3)}

[data-theme="light"] .cfd-panel-clear{border-top:1px solid var(--bg3)}

[data-theme="light"] .contact-name{color:var(--text)}

[data-theme="light"] .contact-phone{color:var(--text3)}

[data-theme="light"] .calls-panel{background:var(--bg)}

[data-theme="light"] .call-item{border-bottom:1px solid var(--border-light)}

[data-theme="light"] .settings-panel{background:var(--bg)}

[data-theme="light"] .settings-list{background:var(--bg)}

[data-theme="light"] .settings-row + .settings-row::before{background:var(--bg3)}

[data-theme="light"] .settings-row:hover{background:var(--bg)}

[data-theme="light"] 
.settings-inbox-card{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius-md);padding:var(--space-4);margin-bottom:var(--space-2);transition:background .12s ease,color .12s ease}

[data-theme="light"] .settings-inbox-name-input{background:var(--bg3)}

[data-theme="light"] .settings-inbox-name-input:focus{background:var(--border)}

[data-theme="light"] .settings-inbox-card{background:var(--bg2);border:1px solid var(--border)}

[data-theme="light"] .settings-inbox-display-name:hover{background:var(--bg3)}

[data-theme="light"] .settings-volume input[type="range"]{background:var(--border)}

[data-theme="light"] .settings-toggle.on{background:var(--brand)}

[data-theme="light"] .settings-nav{background:var(--bg2);border-right:1px solid var(--border)}

[data-theme="light"] .settings-nav-item:hover{background:var(--bg3)}

[data-theme="light"] .settings-nav-item.active{background:var(--brand-6)}

[data-theme="light"] .fab,[data-theme="light"] .calls-fab{box-shadow:var(--shadow-md)}

[data-theme="light"] .login-screen{background:var(--bg)}

[data-theme="light"] .login-card{background:var(--bg2);border:1px solid var(--border);box-shadow:var(--shadow-lg)}

[data-theme="light"] .login-card input{background:var(--bg3);border:1px solid var(--border);color:var(--text)}

[data-theme="light"] .login-card input::placeholder{color:var(--text3)}

[data-theme="light"] .login-card h2,[data-theme="light"] .login-card h3{color:var(--text)}

[data-theme="light"] .login-card p{color:var(--text3)}

[data-theme="light"] .ac-overlay{background:var(--overlay-dark-30);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}

[data-theme="light"] .ac-card{background:var(--bg2);border:1px solid var(--border);box-shadow:var(--shadow-xl)}

[data-theme="light"] .ac-field input,[data-theme="light"] .ac-field select,[data-theme="light"] .ac-field textarea{background:var(--bg);border:1px solid var(--border);color:var(--text)}

[data-theme="light"] .ac-field input::placeholder,[data-theme="light"] .ac-field textarea::placeholder{color:var(--text3)}

[data-theme="light"] .ac-field input:focus,[data-theme="light"] .ac-field select:focus,[data-theme="light"] .ac-field textarea:focus{border-color:var(--teal);background:var(--white);box-shadow:0 0 0 3px var(--teal-8-light)}

[data-theme="light"] .ac-field select option{background:var(--bg2);color:var(--text)}

[data-theme="light"] .ac-field-label{color:var(--text3)}

[data-theme="light"] .ac-title{color:var(--text)}

[data-theme="light"] .ac-title span{background:linear-gradient(135deg,#4f7df5,#3b6be3);-webkit-background-clip:text;-webkit-text-fill-color:transparent}

[data-theme="light"] .ac-divider{background:linear-gradient(90deg,transparent,rgba(0,0,0,.06),transparent)}

[data-theme="light"] .ac-btn-cancel{background:var(--bg3);border:1px solid var(--border);color:var(--text2)}

[data-theme="light"] .ac-btn-cancel:hover{background:var(--border);color:var(--text)}

[data-theme="light"] #edit-contact-overlay>div{background:var(--bg2);border:1px solid var(--border);box-shadow:var(--shadow-xl)}

[data-theme="light"] #edit-contact-overlay label{color:var(--text3)}

[data-theme="light"] #edit-contact-overlay input,[data-theme="light"] #edit-contact-overlay select{background:var(--bg);border:1px solid var(--border);color:var(--text)}

[data-theme="light"] .ec-card{background:var(--bg2);border:1px solid var(--border);box-shadow:var(--shadow-xl)}

[data-theme="light"] .ec-label{color:var(--text3)}

[data-theme="light"] .ec-select{background:var(--bg);border:1px solid var(--border);color:var(--text)}

[data-theme="light"] .ec-phone-input{background:var(--bg);border:1px solid var(--border);color:var(--text)}

[data-theme="light"] .inbox-ctx-menu{background:var(--bg2);border:1px solid var(--overlay-dark-6);box-shadow:var(--shadow-md)}

[data-theme="light"] .inbox-ctx-item{color:var(--text2)}

[data-theme="light"] .inbox-ctx-item:hover{background:var(--bg3)}

[data-theme="light"] .mfo-overlay{background:var(--overlay-dark-30)}

[data-theme="light"] .mfo-card{background:var(--bg2);border:1px solid var(--border);box-shadow:var(--shadow-xl);color:var(--text)}

[data-theme="light"] .mfo-heading{color:var(--text)}

[data-theme="light"] .mfo-input{background:var(--bg);border:1px solid var(--border);color:var(--text)}

[data-theme="light"] .mfo-edit-input{background:var(--bg);border:1px solid var(--brand);color:var(--text)}

[data-theme="light"] .sp-ov{background:rgba(0,0,0,.25);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}

[data-theme="light"] .sp-card{background:var(--bg2);border:1px solid var(--border);box-shadow:var(--shadow-xl);color:var(--text)}

[data-theme="light"] .sp-card h3{color:var(--text)}

[data-theme="light"] .sp-card input,[data-theme="light"] .sp-card textarea{background:var(--bg3);border:1px solid var(--border);color:var(--text)}

[data-theme="light"] .sp-card input::placeholder,[data-theme="light"] .sp-card textarea::placeholder{color:var(--text3)}

[data-theme="light"] .sp-btn.cancel{background:var(--bg3);color:var(--text2);border:1px solid var(--border)}

[data-theme="light"] .sp-btn.ok{box-shadow:var(--shadow-md)}

[data-theme="light"] .sakura-confirm-overlay{background:rgba(0,0,0,.25);backdrop-filter:blur(4px)}

[data-theme="light"] .sc-card{background:var(--bg2);border:1px solid var(--border);box-shadow:var(--shadow-xl)}

[data-theme="light"] .sc-title{color:var(--text)}

[data-theme="light"] .sc-msg{color:var(--text3)}

[data-theme="light"] .sc-btn{border:1px solid var(--border)}

[data-theme="light"] .sc-btn.cancel{background:var(--bg3);color:var(--text2)}

[data-theme="light"] .ctx-menu-item{color:var(--text2)}

[data-theme="light"] .ctx-menu-item:hover{background:var(--bg3)}

[data-theme="light"] .ctx-menu-sep{background:var(--border)}

[data-theme="light"] .toast{background:var(--toast-bg);color:var(--bg2)}

[data-theme="light"] .toast.success{background:var(--toast-success-bg)}

[data-theme="light"] .toast.error{background:var(--toast-error-bg)}

[data-theme="light"] .gsearch-overlay{background:var(--overlay-dark-20)}

[data-theme="light"] .gsearch-box{background:var(--bg2);border:1px solid var(--border);box-shadow:var(--shadow-xl)}

[data-theme="light"] .gsearch-input{background:var(--bg3);border:1px solid var(--border);color:var(--text)}

[data-theme="light"] .gsearch-input::placeholder{color:var(--text3)}

[data-theme="light"] .gsearch-result{border-bottom:1px solid var(--border-light);color:var(--text)}

[data-theme="light"] .gsearch-result:hover{background:var(--bg3)}

[data-theme="light"] .gsearch-result .sr-name{color:var(--text)}

[data-theme="light"] .gsearch-result .sr-preview{color:var(--text3)}

[data-theme="light"] .dialpad-overlay{background:var(--overlay-dark-30)}

[data-theme="light"] .dialpad{background:var(--bg2);border:1px solid var(--border);box-shadow:var(--shadow-xl)}

[data-theme="light"] .dialpad-key{background:var(--bg);color:var(--text);border:1px solid var(--border)}

[data-theme="light"] .dialpad-key:hover{background:var(--bg3)}

[data-theme="light"] .dialpad-number{color:var(--text)}

[data-theme="light"] .ie-btn{background:var(--bg2);border:1px solid var(--border);color:var(--text2)}

[data-theme="light"] .ie-btn:hover{background:var(--brand-bg);color:var(--brand);border-color:var(--brand-20)}

[data-theme="light"] .delete-contact-btn{background:var(--bg2);border:1px solid rgba(225,29,72,.15);color:rgba(225,29,72,.6)}

[data-theme="light"] .delete-contact-btn:hover{background:rgba(225,29,72,.04);border-color:rgba(225,29,72,.25);color:var(--danger)}

[data-theme="light"] .compose-panel{background:var(--bg)}

[data-theme="light"] .compose-line{background:var(--bg2);border:1px solid var(--border);color:var(--text)}

[data-theme="light"] .compose-line:hover{background:var(--bg)}

[data-theme="light"] .compose-line.selected{background:var(--brand-6);border-color:var(--brand-20)}

[data-theme="light"] .inbox-switcher{color:var(--text)}

[data-theme="light"] .ac-tag,[data-theme="light"] .multi-pill{background:var(--brand-6);color:var(--brand);border:1px solid var(--brand-15)}

[data-theme="light"] .drop-overlay{background:var(--brand-6);border-color:var(--brand)}

[data-theme="light"] .attach-preview{background:var(--bg3);border:1px solid var(--border)}

[data-theme="light"] .internal-banner{background:var(--internal-bg);color:var(--internal);border-bottom:1px solid var(--internal-border)}

[data-theme="light"] .theme-toggle:hover{background:var(--overlay-dark-4);color:var(--text)}

[data-theme="light"] [style*="z-index:10000"][style*="position:fixed"]{backdrop-filter:blur(4px)}

[data-theme="light"] .np-dropdown{background:var(--bg2);box-shadow:var(--shadow-md)}

[data-theme="light"] .np-dd-opt:hover{background:var(--bg3)}

[data-theme="light"] .np-row:hover{background:var(--border-lighter)}

[data-theme="light"] .np-val-input{background:var(--bg3)}

[data-theme="light"] .np-val-input:focus{background:var(--border)}

[data-theme="light"] .np-note-input{background:var(--bg3);border-color:var(--border)}

[data-theme="light"] .np-note-input:focus{background:var(--bg2);border-color:var(--teal)}

[data-theme="light"] .msg-composer{background:var(--bg2);border-color:var(--border)}

[data-theme="light"] .msg-composer:focus-within{border-color:var(--brand-20);box-shadow:0 0 0 3px rgba(79,125,245,.08)}

[data-theme="light"] .msg-composer textarea::placeholder{color:var(--text3)}

[data-theme="light"] .slash-dropdown{background:var(--bg2);border:1px solid var(--border);box-shadow:var(--shadow-md)}

[data-theme="light"] .slash-item:hover,[data-theme="light"] .slash-item.active{background:var(--bg3)}

[data-theme="light"] .msg-tbtn:hover{background:var(--bg3);color:var(--text)}

[data-theme="light"] .msg-tbtn.active{background:var(--blue-12);color:var(--blue-active)}

[data-theme="light"] .emoji-picker{background:var(--bg2);border-color:var(--border);box-shadow:var(--shadow-md)}

[data-theme="light"] .ep-search{background:var(--bg3);color:var(--text)}

[data-theme="light"] .ep-tab:hover,[data-theme="light"] .ep-tab.active{background:var(--bg3)}

[data-theme="light"] .ep-grid span:hover{background:var(--bg3)}

[data-theme="light"] .tmpl-panel{background:var(--bg2);border:1px solid var(--border);box-shadow:var(--shadow-xl)}

[data-theme="light"] .tmpl-card{background:var(--bg);border:1px solid var(--border)}

[data-theme="light"] .tmpl-card:hover{border-color:var(--brand)}

[data-theme="light"] .tmpl-card-dd{background:var(--bg2);border:1px solid var(--border);box-shadow:var(--shadow-md)}

[data-theme="light"] .tmpl-edit-card{background:var(--bg);border:1px solid var(--border)}

[data-theme="light"] .tmpl-search-input{background:var(--bg3);border:1px solid var(--border)}

[data-theme="light"] .tmpl-edit-input,[data-theme="light"] .tmpl-edit-textarea{background:var(--bg3);border:1px solid var(--border);color:var(--text)}

[data-theme="light"] .tmpl-edit-cancel{border:1px solid var(--border);color:var(--text3)}

[data-theme="light"] .team-panel{background:var(--bg2);border:1px solid var(--border);box-shadow:var(--shadow-xl)}

[data-theme="light"] .team-card{background:var(--bg);border:1px solid var(--border)}

[data-theme="light"] .team-card:hover{border-color:var(--brand-20)}

[data-theme="light"] .team-avatar .team-presence{border-color:var(--bg)}

[data-theme="light"] .team-dropdown{background:var(--bg2);border:1px solid var(--border);box-shadow:var(--shadow-md)}

[data-theme="light"] .team-dd-item:hover{background:var(--bg3)}

[data-theme="light"] .team-invite-card{background:var(--bg);border:1px solid var(--border)}

[data-theme="light"] .team-invite-icon{background:var(--brand-6)}

[data-theme="light"] .team-inv-copy{background:var(--bg3);border:1px solid var(--border);color:var(--text3)}

[data-theme="light"] .team-invite-modal{background:var(--bg2);border:1px solid var(--border);box-shadow:var(--shadow-xl)}

[data-theme="light"] .team-role-pill{background:var(--bg);border:1px solid var(--border);color:var(--text3)}

[data-theme="light"] .team-role-pill.active{background:var(--brand-6);border-color:var(--brand);color:var(--brand)}

[data-theme="light"] .team-role-desc{background:var(--bg);border:1px solid var(--border)}

[data-theme="light"] .team-link-input{background:var(--bg3);border:1px solid var(--border);color:var(--text)}

[data-theme="light"] .team-link-done{background:var(--bg3);border:1px solid var(--border);color:var(--text3)}

[data-theme="light"] .ic-mob-btn{color:var(--text3)}

[data-theme="light"] .ic-mob-btn:active{background:var(--bg3)}

[data-theme="light"] .ic-conv-row:hover{background:var(--bg3)}

[data-theme="light"] .ic-conv-row.active{background:rgba(99,102,241,.06)}

[data-theme="light"] .ic-back-header{border-bottom:1px solid var(--border)}

[data-theme="light"] .ic-back-header:hover{background:var(--bg3)}

[data-theme="light"] .ic-conv-row .ic-dot{border-color:var(--white)}

[data-theme="light"] .msg-bubble.ic-received{background:var(--bg3);color:var(--text)}

[data-theme="light"] .msg-bubble.ic-received .msg-meta{color:var(--text3)}

[data-theme="light"] .sidebar-member-badge{border-color:var(--white)}

[data-theme="light"] .ic-msg-recalled{color:var(--text3)}

[data-theme="light"] .ic-edit-area{background:var(--bg3);border:1px solid var(--border);color:var(--text)}

[data-theme="light"] .ic-edit-area:focus{border-color:rgba(99,102,241,.4)}

[data-theme="light"] .ic-reaction-bar{background:rgba(255,255,255,.92);box-shadow:var(--shadow-lg)}

[data-theme="light"] .ic-reaction-emoji:hover{background:var(--overlay-dark-6)}

[data-theme="light"] .ic-ctx-menu{background:rgba(255,255,255,.92);box-shadow:var(--shadow-lg)}

[data-theme="light"] .ic-ctx-item{color:var(--toast-bg)}

[data-theme="light"] .ic-ctx-item:hover{background:var(--overlay-dark-4)}

[data-theme="light"] .ic-ctx-item.danger{color:var(--danger)}

[data-theme="light"] .ic-ctx-sep{background:var(--overlay-dark-6)}

[data-theme="light"] .ic-reaction-plus{color:var(--overlay-dark-30);border-left-color:var(--overlay-dark-8)}

[data-theme="light"] .msg-reaction-pill{background:var(--overlay-dark-4)}

[data-theme="light"] .msg-reaction-pill:hover{background:var(--overlay-dark-8)}

[data-theme="light"] .msg-reaction-pill .r-count{color:var(--text3)}

[data-theme="light"] .msg-reaction-pill.mine{border-color:rgba(99,102,241,.4);background:rgba(99,102,241,.08)}

[data-theme="light"] .ic-msg-edited{color:var(--text3)}

@media(max-width:768px){
  [data-theme="light"] .mobile-tabs{
    background:var(--bg2);
    border-top:1px solid var(--border);
    backdrop-filter:none;
    box-shadow:var(--shadow-sm);
  }
  [data-theme="light"] .mob-tab{color:var(--text3)}
  [data-theme="light"] .mob-tab.active{color:var(--text)}
  [data-theme="light"] .mob-tab.active::before{background:var(--text)}

  [data-theme="light"] .topbar{
    background:var(--bg2);
    border-bottom:1px solid var(--border);
  }
  [data-theme="light"] .chat-header{
    background:var(--bg2);
    border-bottom:1px solid var(--border);
  }
  [data-theme="light"] .chat-input-bar{
    background:var(--bg2);
    border-top:1px solid var(--border);
  }

  [data-theme="light"] .convo-item::after{background:var(--border)}
  [data-theme="light"] .convo-item:active{background:var(--bg3)}
  [data-theme="light"] .convo-item.pinned{background:var(--brand-6)}

  [data-theme="light"] .contact-item{border-bottom:1px solid var(--border-light)}
  [data-theme="light"] .contact-item:active{background:var(--bg3)}
  [data-theme="light"] .contact-alpha{background:var(--bg3);border-bottom:1px solid var(--border)}

  [data-theme="light"] .call-item{border-bottom:1px solid var(--border-light)}

  [data-theme="light"] .settings-card{background:var(--bg2);border:1px solid var(--border)}
  [data-theme="light"] .settings-row + .settings-row::before{background:var(--bg3)}
  [data-theme="light"] .settings-row:active{background:var(--bg3)}

  [data-theme="light"] .inbox-topbar-mobile{
    background:var(--bg2);
    border-bottom:1px solid var(--border);
  }

  [data-theme="light"] .search-box{
    background:var(--bg3);
    border:1px solid transparent;
  }

  [data-theme="light"] .mob-toggle-card{background:rgba(0,0,0,.03);border-color:var(--overlay-dark-6)}
  [data-theme="light"] .mob-toggle-card.active{background:var(--overlay-dark-6);border-color:var(--overlay-dark-10);color:var(--text)}
  [data-theme="light"] .mob-toggle-card:not(.active){color:var(--text3)}
  [data-theme="light"] .mob-header-btn svg{color:var(--text3)}
  [data-theme="light"] .mob-profile-phone{color:var(--text3)}
  [data-theme="light"] .mob-compose-fab{box-shadow:var(--shadow-md)}

  [data-theme="light"] .inbox-filters{border-bottom:1px solid var(--border)}

  [data-theme="light"] .icon-btn{background:transparent;color:var(--text3)}
[data-theme="light"] .icon-btn:hover{background:var(--brand-hover-bg);color:var(--brand)}
}

[data-theme="light"] .incoming-overlay{box-shadow:var(--shadow-lg);background:var(--overlay-dark-50)}

[data-theme="light"] .incoming-card{background:var(--bg2);border:1px solid var(--overlay-dark-8)}

[data-theme="light"] .incoming-name{color:var(--text)}

[data-theme="light"] .incoming-sub{color:var(--text3)}

[data-theme="light"] .incoming-phone{color:var(--text3)}

[data-theme="light"] .incoming-action-label{color:var(--text3)}

[data-theme="light"] .incoming-hint{color:var(--text3)}

[data-theme="light"] .epp-modal{background:var(--bg2);border:1px solid var(--border);box-shadow:var(--shadow-xl)}

[data-theme="light"] .epp-search input{background:var(--bg3);border:1px solid var(--border)}

[data-theme="light"] .epp-cell:hover{background:var(--bg3)}

[data-theme="light"] .team-inbox-icon{background:var(--bg3)}

[data-theme="light"] .team-inbox-label{color:var(--text3)}

[data-theme="light"] .stmpl-card{background:var(--bg);border:1px solid var(--border)}

[data-theme="light"] .stmpl-card:hover{border-color:var(--brand)}

[data-theme="light"] .settings-tmpl-search{max-width:100%}.settings-tmpl-search input{background:var(--bg3);border:1px solid var(--border)}

[data-theme="light"] .stmpl-edit-input,[data-theme="light"] .stmpl-edit-textarea{background:var(--bg3);border:1px solid var(--border)}

[data-theme="light"] .drag-handle{color:var(--border)}

[data-theme="light"] .drag-handle:hover{color:var(--text3)}

[data-theme="light"] .sidebar-drag-handle{color:var(--drag-handle)}

[data-theme="light"] .sidebar-inbox:hover .sidebar-drag-handle{opacity:.4;color:var(--drag-handle-hover)}

[data-theme="light"] .sidebar-drag-handle:hover{color:var(--drag-handle-active);background:var(--overlay-dark-4)}

[data-theme="light"] .sidebar-inbox-menu{color:var(--drag-handle)}

[data-theme="light"] .sidebar-inbox:hover .sidebar-inbox-menu{color:var(--drag-handle-hover)}

[data-theme="light"] .schedule-dropdown{background:var(--bg2);border-color:var(--border)}

[data-theme="light"] .schedule-dd-item:hover{background:var(--bg3)}

[data-theme="light"] .msg-scheduled-badge{background:var(--brand-8)}

[data-theme="light"] .skel{background:linear-gradient(90deg,var(--border) 25%,var(--bg3) 50%,var(--border) 75%);background-size:800px 100%}

[data-theme="light"] .call-item:hover{background:rgba(0,0,0,.02)}

[data-theme="light"]{
  --bg:#f7f8fa;--bg2:#ffffff;--bg3:#f0f2f5;--bg4:#e5e8ed;
  --bg-2:#ffffff;--bg-3:#f0f2f5;--bg-4:#e5e8ed;
  --panel-sidebar:#ffffff;--panel-list:#f7f8fa;--panel-chat:#ffffff;--panel-crm:#f7f8fa;--panel-elevated:#f0f2f5;
  --text:#1a1d26;--text1:#1a1d26;--text2:#4b5563;--text3:#6b7280;--text4:#4b5563;
  --text-2:#4b5563;--text-3:#6b7280;--text-4:#4b5563;
  --border:#e5e7eb;--border-light:rgba(0,0,0,.06);--border-lighter:rgba(0,0,0,.04);
  --teal:#0d9a8a;--teal-hover:#0b8578;--teal-bg:rgba(13,154,138,.05);--teal-light:rgba(13,154,138,.08);
  --danger:#e5484d;--danger-light:#fb7185;
}

[data-theme="light"] .desktop-nav{background:var(--panel-sidebar);border-right:1px solid var(--overlay-dark-6)}

[data-theme="light"] .inbox-panel{background:var(--panel-list);border-right:1px solid var(--overlay-dark-6)}

[data-theme="light"] .crm-panel{background:var(--panel-crm);border-left:1px solid var(--overlay-dark-6)}

[data-theme="light"] .chat-panel{background:var(--panel-chat)}

[data-theme="light"] .msg-bubble.inbound{background:var(--bg3);color:var(--text);border:none;box-shadow:none}

[data-theme="light"] .msg-bubble.outbound{background:#3b6de6;color:var(--white);box-shadow:var(--shadow-sm)}

[data-theme="light"] .convo-item{border-bottom:1px solid var(--overlay-dark-4)}

[data-theme="light"] .convo-item:hover{background:rgba(0,0,0,.02)}

[data-theme="light"] .convo-item.active{background:var(--brand-6);border-left:3px solid var(--brand)}

[data-theme="light"] .chat-input{background:var(--bg3);border:1px solid var(--overlay-dark-6);color:var(--text)}

[data-theme="light"] .inbox-desk-header{background:var(--panel-list);border-bottom:1px solid var(--overlay-dark-6)}

[data-theme="light"] .inbox-tab{color:var(--text3)}

[data-theme="light"] .inbox-tab.active{color:var(--text);background:var(--bg2);box-shadow:var(--shadow-sm);border-bottom-color:var(--brand)}

[data-theme="light"] .inbox-tab:hover{color:var(--text3)}

[data-theme="light"] .tag{border:none}

[data-theme="light"] .tag-vip{background:rgba(251,191,36,.1);color:var(--tag-vip-text)}

[data-theme="light"] .tag-regular{background:rgba(167,139,250,.08);color:var(--tag-regular-text)}

[data-theme="light"] .tag-new{background:rgba(52,211,153,.08);color:var(--success)}

[data-theme="light"] .tag-blocked{background:var(--danger-hover-bg);color:var(--danger)}

[data-theme="light"] .tag-loc{background:rgba(96,165,250,.08);color:var(--blue)}

[data-theme="light"] .tag-eth{background:rgba(251,146,60,.08);color:var(--orange)}

[data-theme="light"] .sidebar-link:hover{background:rgba(0,0,0,.03)}

[data-theme="light"] .sidebar-link.active{background:var(--overlay-dark-4);color:var(--text)}

[data-theme="light"] .icon-btn{border:none;color:var(--text3)}

[data-theme="light"] .icon-btn:hover{background:var(--overlay-dark-4);color:var(--text2)}

[data-theme="light"] .settings-card{background:var(--bg2);border:1px solid var(--border);box-shadow:var(--shadow-sm)}

[data-theme="light"] .search-box{background:var(--bg3);border:1px solid var(--overlay-dark-6)}

[data-theme="light"] .pill{background:var(--bg3);color:var(--text3);border:1px solid var(--overlay-dark-6)}

[data-theme="light"] .pill.active{background:var(--brand-6);color:var(--brand);border-color:var(--brand-15)}

[data-theme="light"] .ctx-menu{background:var(--bg2);border:1px solid var(--overlay-dark-6);box-shadow:var(--shadow-md)}

[data-theme="light"] .crm-act{background:rgba(0,0,0,.03);border:none;color:var(--text3)}

[data-theme="light"] .crm-act:hover{background:var(--overlay-dark-6);border-color:var(--brand-20);color:var(--text)}

[data-theme="light"] .crm-tag{border:none;box-shadow:none;background:rgba(0,0,0,.03)}

[data-theme="light"] .np-pill{background:var(--overlay-dark-4);border:none}

[data-theme="light"] .contact-item{border-bottom:1px solid var(--overlay-dark-4)}

[data-theme="light"] .contact-alpha{background:var(--bg3);color:var(--text3);border-color:var(--overlay-dark-6)}

[data-theme="light"] .status-popover{background:var(--bg2);border:1px solid var(--border);box-shadow:var(--shadow-lg)}

[data-theme="light"] .sp-ti{background:var(--bg);border-color:var(--border)}

[data-theme="light"] .sp-opt:hover{background:var(--bg3)}

[data-theme="light"] .sp-opt.selected{background:var(--brand-6)}

[data-theme="light"] .mob-inbox-dd{background:var(--bg2);box-shadow:var(--shadow-lg)}

[data-theme=light] .keypad-btn{background:var(--bg3)}

[data-theme=light] .keypad-btn:active{background:var(--border)}

[data-theme=light] .keypad-sms{background:var(--bg3)}

[data-theme="light"] .mute-popover{background:var(--bg2);box-shadow:var(--shadow-md)}

[data-theme="light"] .mute-option:hover{background:rgba(0,0,0,.03)}

[data-theme="light"] .cr-step{background:var(--bg2);border-color:var(--border)}

[data-theme="light"] .cr-picker{background:var(--bg2);box-shadow:var(--shadow-lg)}

[data-theme="light"] .cr-picker-item:hover{background:rgba(0,0,0,.03)}

[data-theme="light"] .cr-fb-input{background:var(--bg2);border-color:var(--border);color:var(--text)}
