/* Dark palette overrides. Light styles remain unchanged. No inversion filters. */
/* style.css */
html[data-theme="dark"],html[data-theme="dark"] body{color:#edf1fa;background:#1a2130;}
html[data-theme="dark"] button:focus-visible,html[data-theme="dark"] a:focus-visible,html[data-theme="dark"] input:focus-visible,html[data-theme="dark"] select:focus-visible,html[data-theme="dark"] textarea:focus-visible{outline:3px solid #2d2d76;}
html[data-theme="dark"] .muted{color:#b8c3d7;}
html[data-theme="dark"] .subtle{color:#b8c3d7;}
html[data-theme="dark"] .sidebar{background:#1f2333;border-right:1px solid #404864;}
html[data-theme="dark"] .brand-mark{color:#b8c3d7;background:#25272f;}
html[data-theme="dark"] .logo small{color:#b8c3d7;border-left:1px solid #444b5f;}
html[data-theme="dark"] .workspace-switch{background:#1a2130;border:1px solid #414b63;box-shadow:0 2px 5px #00000004;}
html[data-theme="dark"] .workspace-symbol{background:#201d35;color:#b4ade1;}
html[data-theme="dark"] .workspace-copy small{color:#b8c3d7;}
html[data-theme="dark"] .nav-label{color:#b8c3d7;}
html[data-theme="dark"] .nav a{color:#b8c3d7;}
html[data-theme="dark"] .nav a:hover{background:#1e2333;color:#edf1fa;}
html[data-theme="dark"] .nav a.active{background:#1a2130;color:#edf1fa;box-shadow:0 3px 10px #00000006;}
html[data-theme="dark"] .nav a.active .icon{color:#aea8e6;}
html[data-theme="dark"] .nav .count{background:#201d35;color:#b4aee0;}
html[data-theme="dark"] .nav .separator{background:#202431;}
html[data-theme="dark"] .demo-note{border:1px solid #3c4667;color:#b8c3d7;}
html[data-theme="dark"] .demo-note strong{color:#b8c3d7;}
html[data-theme="dark"] .demo-note strong:before{background:#2e2060;}
html[data-theme="dark"] .avatar{background:#1d2235;color:#b8c3d7;}
html[data-theme="dark"] .avatar.purple{background:#221d35;color:#c7b5d8;}
html[data-theme="dark"] .avatar.peach{background:#35241d;color:#dac0b4;}
html[data-theme="dark"] .avatar.green{background:#203126;color:#b8c3d7;}
html[data-theme="dark"] .avatar.dark{background:#2f3340;color:#b8c3d7;}
html[data-theme="dark"] .profile-info small{color:#b8c3d7;}
html[data-theme="dark"] .topbar{border-bottom:1px solid #3f4964;background:#1a2130;}
html[data-theme="dark"] .breadcrumb{color:#b8c3d7;}
html[data-theme="dark"] .breadcrumb strong{color:#b8c3d7;}
html[data-theme="dark"] .search-trigger{color:#b8c3d7;}
html[data-theme="dark"] .key{border:1px solid #404b63;color:#b8c3d7;}
html[data-theme="dark"] .icon-btn{color:#b8c3d7;}
html[data-theme="dark"] .icon-btn:hover{background:#1e2433;color:#edf1fa;}
html[data-theme="dark"] .button{border:1px solid #404b63;background:#1a2130;color:#b8c3d7;}
html[data-theme="dark"] .button:hover{background:#1d2135;}
html[data-theme="dark"] .button.primary{background:#292c36;color:#b8c3d7;border-color:#7d849c;box-shadow:0 3px 7px #00000017;}
html[data-theme="dark"] .button.primary:hover{background:#3c4050;}
html[data-theme="dark"] .button.accent{background:#211d35;color:#b5ace2;border-color:#3c2d76;}
html[data-theme="dark"] .button.danger{color:#dcb2b9;background:#1a2130;border-color:#73313b;}
html[data-theme="dark"] .eyebrow{color:#b8c3d7;}
html[data-theme="dark"] .page-head p{color:#b8c3d7;}
html[data-theme="dark"] .today-chip{color:#b8c3d7;}
html[data-theme="dark"] .stat{border:1px solid #404864;background:#1a2130;}
html[data-theme="dark"] .stat-top{color:#b8c3d7;}
html[data-theme="dark"] .stat-top .icon{color:#b8c3d7;}
html[data-theme="dark"] .stat-value small{color:#b8c3d7;}
html[data-theme="dark"] .stat-bottom{color:#b8c3d7;}
html[data-theme="dark"] .stat-bottom .positive{color:#b8c3d7;}
html[data-theme="dark"] .stat.featured{background:#2d303d;color:#b8c3d7;border-color:#7b819e;}
html[data-theme="dark"] .stat.featured:after{background:radial-gradient(ellipse, #382f5038, transparent 70%);}
html[data-theme="dark"] .stat.featured .stat-top,html[data-theme="dark"] .stat.featured .stat-bottom{color:#b8c3d7;}
html[data-theme="dark"] .stat.featured .stat-top .icon{color:#bba8e6;}
html[data-theme="dark"] .panel{background:#1a2130;border:1px solid #404864;}
html[data-theme="dark"] .panel-head{border-bottom:1px solid #3d4466;}
html[data-theme="dark"] .panel-title small{color:#b8c3d7;}
html[data-theme="dark"] .link-button{color:#b8c3d7;}
html[data-theme="dark"] .link-button:hover{color:#b6b0de;}
html[data-theme="dark"] .week-day{color:#b8c3d7;}
html[data-theme="dark"] .week-day strong{color:#b8c3d7;}
html[data-theme="dark"] .week-day.active{background:#211d35;color:#bdb5d9;}
html[data-theme="dark"] .week-day.active strong{color:#bdb5d9;}
html[data-theme="dark"] .week-day .dot{background:#32235c;}
html[data-theme="dark"] .agenda-row{border-top:1px solid #39476a;}
html[data-theme="dark"] .agenda-date{color:#b8c3d7;}
html[data-theme="dark"] .agenda-accent{background:#362758;}
html[data-theme="dark"] .agenda-accent.green{background:#334c44;}
html[data-theme="dark"] .agenda-accent.peach{background:#573629;}
html[data-theme="dark"] .agenda-text small{color:#b8c3d7;}
html[data-theme="dark"] .agenda .icon{color:#b8c3d7;}
html[data-theme="dark"] .badge{background:#202332;color:#b8c3d7;}
html[data-theme="dark"] .badge.purple{background:#211d35;color:#c1b5d8;}
html[data-theme="dark"] .badge.green{background:#1e3428;color:#b8c3d7;}
html[data-theme="dark"] .badge.peach{background:#35271d;color:#ddc6b0;}
html[data-theme="dark"] .badge.blue{background:#1d2635;color:#b4c3da;}
html[data-theme="dark"] .badge.red{background:#351d1f;color:#dab4b9;}
html[data-theme="dark"] .task-row{border-top:1px solid #39476a;}
html[data-theme="dark"] .task-check{border:1px solid #3d4a66;color:#b8c3d7;background:#1a2130;}
html[data-theme="dark"] .task-check:hover{border-color:#7161b7;background:#1a2130;}
html[data-theme="dark"] .task-check.done{background:#342a56;border-color:#7765b4;}
html[data-theme="dark"] .task-copy small{color:#b8c3d7;}
html[data-theme="dark"] .task-copy.done strong{color:#b8c3d7;}
html[data-theme="dark"] .panel-bottom{border-top:1px solid #39476a;}
html[data-theme="dark"] .funnel-bar b{color:#b8c3d7;}
html[data-theme="dark"] .funnel-bar span{color:#b8c3d7;}
html[data-theme="dark"] .activity-row{color:#b8c3d7;}
html[data-theme="dark"] .activity-row strong{color:#b8c3d7;}
html[data-theme="dark"] .activity-row small{color:#b8c3d7;}
html[data-theme="dark"] .activity-icon{background:#211d35;color:#c2b8d5;}
html[data-theme="dark"] .tabs{background:#1d2634;}
html[data-theme="dark"] .tabs button{color:#b8c3d7;}
html[data-theme="dark"] .tabs button.active{background:#1a2130;color:#b8c3d7;box-shadow:0 2px 5px #00000008;}
html[data-theme="dark"] .input-search{border:1px solid #3d4866;background:#1a2130;}
html[data-theme="dark"] .input-search .icon{color:#b8c3d7;}
html[data-theme="dark"] .input-search input{color:#b8c3d7;}
html[data-theme="dark"] .input-search input::placeholder{color:#b8c3d7;}
html[data-theme="dark"] .filter-select{color:#b8c3d7;border:1px solid #3d4866;background:#1a2130;}
html[data-theme="dark"] .board-summary{color:#b8c3d7;}
html[data-theme="dark"] .board-summary strong{color:#b8c3d7;}
html[data-theme="dark"] .kanban-column.drag-over{background:#221d35;outline:2px dashed #3f2d76;}
html[data-theme="dark"] .column-head{color:#b8c3d7;}
html[data-theme="dark"] .stage-dot{background:var(--stage-color, #3a354b);}
html[data-theme="dark"] .column-head .count{color:#b8c3d7;}
html[data-theme="dark"] .column-total{color:#b8c3d7;}
html[data-theme="dark"] .lead-card{background:#1a2130;border:1px solid #3d4866;box-shadow:0 2px 4px #00000005;}
html[data-theme="dark"] .lead-card:hover{box-shadow:0 6px 20px #00000010;border-color:#3d2d76;}
html[data-theme="dark"] .company-logo{background:var(--logo-bg, #1d1d35);color:var(--logo-color, #b8c3d7);}
html[data-theme="dark"] .company-name{color:#b8c3d7;}
html[data-theme="dark"] .lead-name{color:#b8c3d7;}
html[data-theme="dark"] .lead-subtitle{color:#b8c3d7;}
html[data-theme="dark"] .lead-budget{color:#b8c3d7;}
html[data-theme="dark"] .lead-budget small{color:#b8c3d7;}
html[data-theme="dark"] .card-next{border-top:1px solid #39476a;color:#b8c3d7;}
html[data-theme="dark"] .card-next .icon{color:#c4b6d7;}
html[data-theme="dark"] .column-add{border:1px dashed #3b4968;color:#b8c3d7;}
html[data-theme="dark"] .empty-column{color:#b8c3d7;}
html[data-theme="dark"] .table-wrap{border:1px solid #39496a;background:#1a2130;}
html[data-theme="dark"] .data-table th{color:#b8c3d7;background:#1a2130;border-bottom:1px solid #3a4c69;}
html[data-theme="dark"] .data-table td{color:#b8c3d7;border-bottom:1px solid #39476a;}
html[data-theme="dark"] .data-table tbody tr:hover{background:#1a2130;}
html[data-theme="dark"] .data-table .primary-text{color:#b8c3d7;}
html[data-theme="dark"] .data-table small{color:#b8c3d7;}
html[data-theme="dark"] .calendar-panel{background:#1a2130;border:1px solid #3c4867;}
html[data-theme="dark"] .calendar-weekdays{background:#1a2130;}
html[data-theme="dark"] .calendar-weekdays div{color:#b8c3d7;}
html[data-theme="dark"] .calendar-cell{border-top:1px solid #3a4c69;border-right:1px solid #3a4c69;}
html[data-theme="dark"] .calendar-cell.outside{background:#1a2130;color:#b8c3d7;}
html[data-theme="dark"] .day-number{color:#b8c3d7;}
html[data-theme="dark"] .calendar-cell.today .day-number{background:#302f3e;color:#b8c3d7;}
html[data-theme="dark"] .calendar-event{background:#231d35;color:#c1b6d8;border-left:2px solid #7c60b9;}
html[data-theme="dark"] .calendar-event:nth-of-type(even){background:#1f322b;color:#b8c3d7;border-color:#77a28e;}
html[data-theme="dark"] .concert-card{background:#1a2130;border:1px solid #3c4867;}
html[data-theme="dark"] .concert-card:hover{box-shadow:0 8px 20px #00000012;}
html[data-theme="dark"] .concert-art{background:#262032;color:#b8c3d7;}
html[data-theme="dark"] .concert-art:before{border:23px solid #52525225;}
html[data-theme="dark"] .concert-art:after{background:#1a21300b;}
html[data-theme="dark"] .concert-art .badge{background:#1a213026;color:#b8c3d7;}
html[data-theme="dark"] .concert-body h3{color:#b8c3d7;}
html[data-theme="dark"] .concert-info{color:#b8c3d7;}
html[data-theme="dark"] .progress-track{background:#1d2435;}
html[data-theme="dark"] .progress-track span{background:#332858;}
html[data-theme="dark"] .progress-line{background:#1d2435;}
html[data-theme="dark"] .progress-line span{background:#374940;}
html[data-theme="dark"] .task-group-head{color:#b8c3d7;background:#1a2130;border-bottom:1px solid #3d4b66;}
html[data-theme="dark"] .task-group-head small{color:#b8c3d7;}
html[data-theme="dark"] .task-table-row{border-bottom:1px solid #3d4b66;}
html[data-theme="dark"] .task-meta{color:#b8c3d7;}
html[data-theme="dark"] .team-layout{border:1px solid #3a4a69;background:#1a2130;}
html[data-theme="dark"] .channels{border-right:1px solid #3a4d6a;}
html[data-theme="dark"] .channels-heading{color:#b8c3d7;}
html[data-theme="dark"] .channel-button{color:#b8c3d7;}
html[data-theme="dark"] .channel-button:hover{background:#1a2130;}
html[data-theme="dark"] .channel-button.active{background:#221d35;color:#c1b6d8;}
html[data-theme="dark"] .channel-button .hash{color:#c1b6d8;}
html[data-theme="dark"] .team-mini{border-top:1px solid #38456b;}
html[data-theme="dark"] .chat-head{border-bottom:1px solid #36496d;}
html[data-theme="dark"] .chat-head h3{color:#b8c3d7;}
html[data-theme="dark"] .chat-head p{color:#b8c3d7;}
html[data-theme="dark"] .chat-date{color:#b8c3d7;}
html[data-theme="dark"] .message-author{color:#b8c3d7;}
html[data-theme="dark"] .message-author small{color:#b8c3d7;}
html[data-theme="dark"] .message-bubble{background:#1d2535;color:#b8c3d7;}
html[data-theme="dark"] .message.own .message-bubble{background:#211d35;color:#c2b8d5;}
html[data-theme="dark"] .message-context{color:#b8c3d7;border:1px solid #452d76;}
html[data-theme="dark"] .chat-compose{border:1px solid #39486a;}
html[data-theme="dark"] .chat-compose textarea{color:#b8c3d7;}
html[data-theme="dark"] .chat-compose textarea::placeholder{color:#b8c3d7;}
html[data-theme="dark"] .chat-footnote{color:#b8c3d7;}
html[data-theme="dark"] .call-card{background:#1a2130;border:1px solid #3b4769;}
html[data-theme="dark"] .call-card .room-symbol{background:#221d35;color:#c2b6d8;}
html[data-theme="dark"] .call-card h3{color:#b8c3d7;}
html[data-theme="dark"] .call-card p{color:#b8c3d7;}
html[data-theme="dark"] .call-explainer{background:#211d35;border:1px solid #433073;color:#b8c3d7;}
html[data-theme="dark"] .empty-state{color:#b8c3d7;}
html[data-theme="dark"] .empty-state > .icon{color:#b8c3d7;}
html[data-theme="dark"] .empty-state h3{color:#b8c3d7;}
html[data-theme="dark"] .overlay{background:#25273a50;}
html[data-theme="dark"] .modal{background:#1a2130;box-shadow:0 20px 90px #00000030;}
html[data-theme="dark"] .field label{color:#b8c3d7;}
html[data-theme="dark"] .field input,html[data-theme="dark"] .field select,html[data-theme="dark"] .field textarea{border:1px solid #3d4b66;color:#b8c3d7;background:#1a2130;}
html[data-theme="dark"] .field input:focus,html[data-theme="dark"] .field select:focus,html[data-theme="dark"] .field textarea:focus{border-color:#765dbc;background:#1a2130;box-shadow:0 0 0 3px #000000;}
html[data-theme="dark"] .error-text{color:#d9b5bb;background:#1a2130;}
html[data-theme="dark"] .form-hint{color:#b8c3d7;}
html[data-theme="dark"] .drawer-overlay{background:#25273a30;}
html[data-theme="dark"] .drawer{background:#1a2130;box-shadow:-15px 0 70px #00000010;}
html[data-theme="dark"] .drawer-head{border-bottom:1px solid #36496d;background:#1a2130ed;}
html[data-theme="dark"] .detail-subtitle{color:#b8c3d7;}
html[data-theme="dark"] .detail-section{border-top:1px solid #36496d;}
html[data-theme="dark"] .detail-section h3{color:#b8c3d7;}
html[data-theme="dark"] .detail-data .label{color:#b8c3d7;}
html[data-theme="dark"] .detail-data .value{color:#b8c3d7;}
html[data-theme="dark"] .detail-note{color:#b8c3d7;}
html[data-theme="dark"] .detail-select{border:1px solid #3c4867;background:#1a2130;color:#c3b7d6;}
html[data-theme="dark"] .checklist-row{color:#b8c3d7;}
html[data-theme="dark"] .checklist-row .done-text{color:#b8c3d7;}
html[data-theme="dark"] .search-large{border-bottom:1px solid #36496d;}
html[data-theme="dark"] .search-large input{color:#b8c3d7;}
html[data-theme="dark"] .search-result:hover{background:#1a2130;}
html[data-theme="dark"] .search-result .icon{color:#c3b9d5;}
html[data-theme="dark"] .search-result strong{color:#b8c3d7;}
html[data-theme="dark"] .search-result small{color:#b8c3d7;}
html[data-theme="dark"] .loading{background:#1a2130;color:#b8c3d7;}
html[data-theme="dark"] .toast{background:#2f3443;color:#a0b6ee;border:1px solid #52525220;box-shadow:0 10px 40px #00000020;}
html[data-theme="dark"] .toast .icon{color:#baade1;}
html[data-theme="dark"] .toast.error{background:#6d424d;}
html[data-theme="dark"] .bottom-note{color:#b8c3d7;}
html[data-theme="dark"] .settings-section{border-bottom:1px solid #384b6b;}
html[data-theme="dark"] .settings-section h3{color:#b8c3d7;}
html[data-theme="dark"] .settings-section p{color:#b8c3d7;}
@media (max-width: 760px){
html[data-theme="dark"] .mobile-overlay.visible{background:#282d4660;}
html[data-theme="dark"] .topbar{background:#1a2130f2;}
html[data-theme="dark"] .mobile-nav{background:#1a2130f5;border-top:1px solid #3b4968;}
html[data-theme="dark"] .mobile-nav a{color:#b8c3d7;}
html[data-theme="dark"] .mobile-nav a.active{color:#c0b4da;}
html[data-theme="dark"] .mobile-nav a.active:after{background:#362858;}
html[data-theme="dark"] .channels{border-bottom:1px solid #3a4d6a;}
}
html[data-theme="dark"] .nav a{color:#b8c3d7;}
html[data-theme="dark"] .page-head p{color:#b8c3d7;}
html[data-theme="dark"] .eyebrow,html[data-theme="dark"] .nav-label{color:#b8c3d7;}
html[data-theme="dark"] .stat-top{color:#b8c3d7;}
html[data-theme="dark"] .stat-bottom{color:#b8c3d7;}
html[data-theme="dark"] .panel-title small{color:#b8c3d7;}
html[data-theme="dark"] .link-button{color:#b8c3d7;}
html[data-theme="dark"] .agenda-text small{color:#b8c3d7;}
html[data-theme="dark"] .agenda-date{color:#b8c3d7;}
html[data-theme="dark"] .task-copy strong{color:#b8c3d7;}
html[data-theme="dark"] .task-copy small{color:#b8c3d7;}
html[data-theme="dark"] .badge.purple{color:#c4b7d7;}
html[data-theme="dark"] .badge.green{color:#b8c3d7;}
html[data-theme="dark"] .badge.peach{color:#d9c6b5;}
html[data-theme="dark"] .badge.blue{color:#b6c4d8;}
html[data-theme="dark"] .badge.red{color:#d6b8bd;}
html[data-theme="dark"] .activity-row{color:#b8c3d7;}
html[data-theme="dark"] .activity-row small{color:#b8c3d7;}
html[data-theme="dark"] .funnel-bar span{color:#b8c3d7;}
html[data-theme="dark"] .filter-select{color:#b8c3d7;}
html[data-theme="dark"] .column-head{color:#b8c3d7;}
html[data-theme="dark"] .column-total{color:#b8c3d7;}
html[data-theme="dark"] .company-name{color:#b8c3d7;}
html[data-theme="dark"] .lead-name{color:#b8c3d7;}
html[data-theme="dark"] .lead-subtitle{color:#b8c3d7;}
html[data-theme="dark"] .lead-budget small{color:#b8c3d7;}
html[data-theme="dark"] .card-next{color:#b8c3d7;}
html[data-theme="dark"] .data-table th{color:#b8c3d7;}
html[data-theme="dark"] .data-table td{color:#b8c3d7;}
html[data-theme="dark"] .data-table small{color:#b8c3d7;}
html[data-theme="dark"] .chat-head p{color:#b8c3d7;}
html[data-theme="dark"] .message-author{color:#b8c3d7;}
html[data-theme="dark"] .message-bubble{color:#b8c3d7;}
html[data-theme="dark"] .message.own .message-bubble{color:#c3b8d6;}
html[data-theme="dark"] .chat-compose textarea{color:#b8c3d7;}
html[data-theme="dark"] .chat-footnote{color:#b8c3d7;}
html[data-theme="dark"] .call-card p{color:#b8c3d7;}
html[data-theme="dark"] .call-explainer{color:#b8c3d7;}
html[data-theme="dark"] .bottom-note{color:#b8c3d7;}
html[data-theme="dark"] .detail-data .label{color:#b8c3d7;}
html[data-theme="dark"] .detail-data .value{color:#b8c3d7;}
html[data-theme="dark"] .detail-note{color:#b8c3d7;}
html[data-theme="dark"] .form-hint{color:#b8c3d7;}
html[data-theme="dark"] .field label{color:#b8c3d7;}
html[data-theme="dark"] .checklist-row{color:#b8c3d7;}
html[data-theme="dark"] .settings-section p{color:#b8c3d7;}
html[data-theme="dark"] .concert-info{color:#b8c3d7;}
html[data-theme="dark"] .nav a,html[data-theme="dark"] .subtle,html[data-theme="dark"] .muted,html[data-theme="dark"] .page-head p,html[data-theme="dark"] .stat-top,html[data-theme="dark"] .stat-bottom,html[data-theme="dark"] .link-button,html[data-theme="dark"] .agenda-text small,html[data-theme="dark"] .agenda-date,html[data-theme="dark"] .task-copy small,html[data-theme="dark"] .activity-row,html[data-theme="dark"] .activity-row small,html[data-theme="dark"] .funnel-bar span,html[data-theme="dark"] .column-total,html[data-theme="dark"] .company-name,html[data-theme="dark"] .lead-subtitle,html[data-theme="dark"] .card-next,html[data-theme="dark"] .data-table th,html[data-theme="dark"] .data-table small,html[data-theme="dark"] .task-meta,html[data-theme="dark"] .chat-head p,html[data-theme="dark"] .chat-footnote,html[data-theme="dark"] .call-card p,html[data-theme="dark"] .bottom-note,html[data-theme="dark"] .detail-data .label,html[data-theme="dark"] .detail-note,html[data-theme="dark"] .form-hint,html[data-theme="dark"] .field label,html[data-theme="dark"] .settings-section p,html[data-theme="dark"] .search-result small,html[data-theme="dark"] .concert-info,html[data-theme="dark"] .week-day,html[data-theme="dark"] .profile-info small,html[data-theme="dark"] .demo-note,html[data-theme="dark"] .workspace-copy small,html[data-theme="dark"] .breadcrumb,html[data-theme="dark"] .search-trigger,html[data-theme="dark"] .board-summary{color:#b8c3d7;}
html[data-theme="dark"] .badge{color:#b8c3d7;}
html[data-theme="dark"] .badge.purple{color:#c3b8d6;}
html[data-theme="dark"] .badge.green{color:#b9d5c7;}
html[data-theme="dark"] .badge.peach{color:#dbc6b2;}
html[data-theme="dark"] .badge.blue{color:#b6c5d8;}
html[data-theme="dark"] .badge.red{color:#d7b7bc;}
html[data-theme="dark"] .lead-budget small{color:#b8c3d7;}
html[data-theme="dark"] .eyebrow,html[data-theme="dark"] .nav-label{color:#b8c3d7;}
html[data-theme="dark"] .stat.featured .stat-top,html[data-theme="dark"] .stat.featured .stat-bottom{color:#b8c3d7;}
html[data-theme="dark"] .field input::placeholder,html[data-theme="dark"] .input-search input::placeholder{color:#b8c3d7;}
html[data-theme="dark"] .chat-compose textarea::placeholder{color:#b8c3d7;}
html[data-theme="dark"] .message-author small{color:#b8c3d7;}
html[data-theme="dark"] .message-bubble{color:#b8c3d7;}
html[data-theme="dark"] .message.own .message-bubble{color:#c5b8d6;}
html[data-theme="dark"] .message-author{color:#b8c3d7;}
html[data-theme="dark"] .detail-note,html[data-theme="dark"] .detail-data .value,html[data-theme="dark"] .checklist-row{color:#b8c3d7;}
html[data-theme="dark"] .calendar-weekdays div,html[data-theme="dark"] .day-number{color:#b8c3d7;}
html[data-theme="dark"] .calendar-event{color:#b8c3d7;}
html[data-theme="dark"] .calendar-event:nth-of-type(even){color:#b8c3d7;}
html[data-theme="dark"] .column-add{color:#b8c3d7;}
html[data-theme="dark"] .mobile-nav a{color:#b8c3d7;}
html[data-theme="dark"] .mobile-nav a.active{color:#c5b8d6;}
html[data-theme="dark"] .demo-note strong{color:#b8c3d7;}
html[data-theme="dark"] .nav a,html[data-theme="dark"] .subtle,html[data-theme="dark"] .muted,html[data-theme="dark"] .page-head p,html[data-theme="dark"] .stat-top,html[data-theme="dark"] .stat-bottom,html[data-theme="dark"] .link-button,html[data-theme="dark"] .agenda-text small,html[data-theme="dark"] .agenda-date,html[data-theme="dark"] .task-copy small,html[data-theme="dark"] .activity-row,html[data-theme="dark"] .activity-row small,html[data-theme="dark"] .funnel-bar span,html[data-theme="dark"] .column-total,html[data-theme="dark"] .company-name,html[data-theme="dark"] .lead-subtitle,html[data-theme="dark"] .card-next,html[data-theme="dark"] .data-table th,html[data-theme="dark"] .data-table small,html[data-theme="dark"] .task-meta,html[data-theme="dark"] .chat-head p,html[data-theme="dark"] .chat-footnote,html[data-theme="dark"] .call-card p,html[data-theme="dark"] .bottom-note,html[data-theme="dark"] .detail-data .label,html[data-theme="dark"] .detail-note,html[data-theme="dark"] .form-hint,html[data-theme="dark"] .field label,html[data-theme="dark"] .settings-section p,html[data-theme="dark"] .search-result small,html[data-theme="dark"] .concert-info,html[data-theme="dark"] .week-day,html[data-theme="dark"] .profile-info small,html[data-theme="dark"] .demo-note,html[data-theme="dark"] .workspace-copy small,html[data-theme="dark"] .breadcrumb,html[data-theme="dark"] .search-trigger,html[data-theme="dark"] .board-summary{color:#b8c3d7;}
html[data-theme="dark"] .eyebrow,html[data-theme="dark"] .nav-label,html[data-theme="dark"] .lead-budget small{color:#b8c3d7;}
html[data-theme="dark"] .badge{color:#b8c3d7;}
html[data-theme="dark"] .badge.peach{color:#ddc5b0;}
html[data-theme="dark"] .detail-note,html[data-theme="dark"] .detail-data .value,html[data-theme="dark"] .checklist-row{color:#b8c3d7;}
html[data-theme="dark"] .column-add{color:#b8c3d7;}
html[data-theme="dark"] .stat.featured .stat-top,html[data-theme="dark"] .stat.featured .stat-bottom{color:#b8c3d7;}
html[data-theme="dark"] .empty-column{color:#b8c3d7;}
html[data-theme="dark"] .empty-state p{color:#b8c3d7;}
html[data-theme="dark"] .empty-state h3{color:#b8c3d7;}
html[data-theme="dark"] .archive-row small{color:#b8c3d7;}
html[data-theme="dark"] .logo small,html[data-theme="dark"] .key,html[data-theme="dark"] .today-chip,html[data-theme="dark"] .stat-value small,html[data-theme="dark"] .panel-title small,html[data-theme="dark"] .activity-row strong,html[data-theme="dark"] .tabs button,html[data-theme="dark"] .toolbar-meta strong,html[data-theme="dark"] .column-head .title,html[data-theme="dark"] .column-add,html[data-theme="dark"] .data-table td,html[data-theme="dark"] .toolbar-right > span,html[data-theme="dark"] .calendar-weekdays,html[data-theme="dark"] .calendar-weekdays > div,html[data-theme="dark"] .day-number,html[data-theme="dark"] .calendar-cell.outside .day-number,html[data-theme="dark"] .task-group-head,html[data-theme="dark"] .channels-heading,html[data-theme="dark"] .channel-button,html[data-theme="dark"] .chat-date,html[data-theme="dark"] .message-author small,html[data-theme="dark"] .call-explainer{color:#b8c3d7;}
html[data-theme="dark"] .workspace-symbol{color:#bab2db;}
html[data-theme="dark"] .week-day.active,html[data-theme="dark"] .week-day.active strong{color:#beb5d9;}
html[data-theme="dark"] .badge.green{color:#b8c3d7;}
html[data-theme="dark"] .badge.blue{color:#b6c3d7;}
html[data-theme="dark"] .company-logo{color:#b8c3d7;}
html[data-theme="dark"] .filter-select,html[data-theme="dark"] #manager-filter,html[data-theme="dark"] .search-box input,html[data-theme="dark"] .search-field input{color:#b8c3d7;}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#b8c3d7;}
html[data-theme="dark"] .calendar-event small{color:#b8c3d7;}
html[data-theme="dark"] .channel-button.active{color:#c3b8d6;}
html[data-theme="dark"] .call-explainer > div{color:#b8c3d7;}
html[data-theme="dark"] .input-search input,html[data-theme="dark"] .board-summary strong,html[data-theme="dark"] .chat-compose textarea,html[data-theme="dark"] .field input,html[data-theme="dark"] .field select,html[data-theme="dark"] .field textarea{color:#b8c3d7;}
html[data-theme="dark"] .input-search input::placeholder,html[data-theme="dark"] .field input::placeholder,html[data-theme="dark"] .chat-compose textarea::placeholder{color:#b8c3d7;}
html[data-theme="dark"] .card-next-date{color:#b8c3d7;}
html[data-theme="dark"] .card-next-date.overdue{color:#e3aab6;}
html[data-theme="dark"] .restore-list{color:#b8c3d7;}
html[data-theme="dark"] .conversation-tabs{background:#1d2335;}
html[data-theme="dark"] .conversation-tabs button{color:#b8c3d7;}
html[data-theme="dark"] .conversation-tabs button[aria-pressed="true"]{background:#1a2130;color:#b8c3d7;box-shadow:0 1px 4px #00000012;}
html[data-theme="dark"] .conversation-tabs small{color:#b8c3d7;}
html[data-theme="dark"] .conversation-copy small{color:#b8c3d7;}
html[data-theme="dark"] .conversation-empty{color:#b8c3d7;}
html[data-theme="dark"] .direct-demo-note{background:#1a2130;color:#b8c3d7;border-bottom:1px solid #492d76;}
html[data-theme="dark"] .demo-profile-shortcut{color:#b8c3d7;}
html[data-theme="dark"] .conversation-tabs button{color:#b8c3d7;}
html[data-theme="dark"] .conversation-copy small{color:#b8c3d7;}
html[data-theme="dark"] .mobile-nav a{color:#b8c3d7;}
html[data-theme="dark"] .import-steps{border-bottom:1px solid #3a4c69;color:#b8c3d7;}
html[data-theme="dark"] .import-steps li > span{border:1px solid #3a4969;}
html[data-theme="dark"] .import-steps li.active{color:#b0a8e6;}
html[data-theme="dark"] .import-steps li.active > span{color:#b8c3d7;background:#292060;border-color:#6759c0;}
html[data-theme="dark"] .import-safety{background:#1d2335;border:1px solid #334170;color:#b8c3d7;}
html[data-theme="dark"] .import-safety > svg{color:#b2a8e5;}
html[data-theme="dark"] .import-file-drop{border:1px dashed #37436c;background:linear-gradient(130deg, #1a2130, #1a2130);}
html[data-theme="dark"] .import-file-icon{background:#1a2130;box-shadow:0 7px 20px #00000013;color:#b2a6e8;}
html[data-theme="dark"] .import-file-drop p{color:#b8c3d7;}
html[data-theme="dark"] .import-file-drop input[type="file"]{color:#b8c3d7;border:1px solid #353f6e;background:#1a2130;}
html[data-theme="dark"] .import-file-drop input::file-selector-button{background:#292060;color:#b8c3d7;}
html[data-theme="dark"] #import-file-status{color:#b8c3d7;}
html[data-theme="dark"] .import-body label:not(.button){color:#b8c3d7;}
html[data-theme="dark"] .import-body select{border:1px solid #39466b;background:#1a2130;color:#b8c3d7;}
html[data-theme="dark"] .import-actions{border-top:1px solid #3a4c69;}
html[data-theme="dark"] .import-file-summary{border:1px solid #3a4a69;color:#b8c3d7;}
html[data-theme="dark"] .import-help{background:#1a2130;color:#b8c3d7;}
html[data-theme="dark"] .import-error{background:#1a2130;color:#e6a8ad;border:1px solid #762d32;}
html[data-theme="dark"] .import-totals > div{border:1px solid #38446b;background:#1a2130;}
html[data-theme="dark"] .import-totals strong{color:#edf1fa;}
html[data-theme="dark"] .import-totals span{color:#b8c3d7;}
html[data-theme="dark"] .import-totals > div:first-child{background:#1d352c;border-color:#3b6856;}
html[data-theme="dark"] .import-totals > div:first-child strong{color:#ace2ce;}
html[data-theme="dark"] .import-preview-toolbar > span{color:#b8c3d7;}
html[data-theme="dark"] .import-row{border:1px solid #39486a;}
html[data-theme="dark"] .import-row-number{color:#b8c3d7;}
html[data-theme="dark"] .import-row-status{color:#b3dbc9;background:#1d3526;}
html[data-theme="dark"] .import-row.duplicate .import-row-status{color:#edcca0;background:#352c1d;}
html[data-theme="dark"] .import-row.invalid .import-row-status{color:#e2acb0;background:#1a2130;}
html[data-theme="dark"] .import-row-data{color:#b8c3d7;}
html[data-theme="dark"] .import-row p{color:#b8c3d7;}
html[data-theme="dark"] .import-final-note{background:#1a2130;color:#b8c3d7;}
html[data-theme="dark"] .import-recovery-file{color:#b8c3d7;}
html[data-theme="dark"] .import-success > span{background:#1d3527;color:#ace2c6;}
html[data-theme="dark"] .import-success > p{color:#b8c3d7;}
html[data-theme="dark"] .import-body .import-recovery-confirm{border:1px solid #75622e;background:#1a2130;color:#dcceb2;}
html[data-theme="dark"] .import-recovery-confirm input{accent-color:#292060;}
html[data-theme="dark"] .contact-pagination{border:1px solid #3a4969;color:#b8c3d7;background:#1a2130;}
html[data-theme="dark"] .contact-pagination .icon-btn{background:#1a2130;border:1px solid #39496b;}
html[data-theme="dark"] .column-head .count{color:#b8c3d7;}
html[data-theme="dark"] .avatar{color:#b8c3d7;}
html[data-theme="dark"] .avatar.purple{color:#b8c3d7;}
html[data-theme="dark"] .avatar.peach{color:#d8c1b6;}
html[data-theme="dark"] .avatar.green{color:#b8c3d7;}
html[data-theme="dark"] .composer-input-row .attach-chat-button{color:#c0b8d5;}
html[data-theme="dark"] .composer-input-row .attach-chat-button:hover{background:#251d35;}
html[data-theme="dark"] .composer-attachments{border-top:1px solid #414562;}
html[data-theme="dark"] .composer-attachment{border:1px solid #473b69;background:#1a2130;color:#b8c3d7;}
html[data-theme="dark"] .composer-attachment small,html[data-theme="dark"] .message-attachment small,html[data-theme="dark"] .attachment-option small{color:#b8c3d7;}
html[data-theme="dark"] .composer-attachment strong{color:#b8c3d7;}
html[data-theme="dark"] .message-attachment,html[data-theme="dark"] .attachment-option{border:1px solid #3f4264;background:#1a2130;color:#b8c3d7;}
html[data-theme="dark"] .message-attachment:hover,html[data-theme="dark"] .attachment-option:hover{border-color:#7d62b6;background:#1a2130;}
html[data-theme="dark"] .attachment-symbol{color:#bfb6d8;background:#251d35;}
html[data-theme="dark"] .attachment-picker-controls select{border:1px solid #39496a;background:#1a2130;color:#b8c3d7;}
html[data-theme="dark"] .attachment-option.selected{background:#251d35;border-color:#7f69af;}
html[data-theme="dark"] .attachment-selection{color:#c2b5d9;}
html[data-theme="dark"] .attachment-picker-pages > span{color:#b8c3d7;}
html[data-theme="dark"] #attachment-selected-count{color:#b8c3d7;}
html[data-theme="dark"] .task-filters{background:#1a2130;border:1px solid #404d63;}
html[data-theme="dark"] .task-filters>label{color:#b8c3d7;}
html[data-theme="dark"] .task-filters input:not([type=checkbox]),html[data-theme="dark"] .task-filters select,html[data-theme="dark"] .task-card-bottom select{border:1px solid #394d6b;background:#1a2130;color:#b7c3d7;}
html[data-theme="dark"] .task-filters .task-focus-option{color:#b7c3d7;}
html[data-theme="dark"] .task-focus-option input{accent-color:#323c4e;}
html[data-theme="dark"] .task-view-caption{color:#b8c3d7;}
html[data-theme="dark"] .task-list-view .task-meta>span:not(.avatar):not(.badge){color:#b8c3d7;}
html[data-theme="dark"] .task-board-column{border:1px solid #3e5066;background:#1d2635;}
html[data-theme="dark"] .task-board-column>h3{color:#b8c3d7;}
html[data-theme="dark"] .task-board-card{background:#1a2130;border:1px solid #3d4e66;box-shadow:0 2px 5px #00000004;}
html[data-theme="dark"] .task-card-dates{color:#b8c3d7;}
html[data-theme="dark"] .task-calendar-controls{color:#b8c3d7;}
html[data-theme="dark"] .concert-project{color:#b8c3d7;}
html[data-theme="dark"] .concert-project strong{color:#b8c3d7;}
html[data-theme="dark"] .project-artist-nav>a{color:#b8c3d7;}
html[data-theme="dark"] .project-artist-nav>a:hover,html[data-theme="dark"] .project-artist-nav>a.active{background:#1d2635;color:#b8c3d7;}
html[data-theme="dark"] .project-artist-dot{background:#323d4e;}
html[data-theme="dark"] .project-artist-empty{color:#b8c3d7;}
html[data-theme="dark"] .project-venue{color:#b8c3d7;}
/* auth.css */
html[data-theme="dark"] .auth-page{background:radial-gradient(ellipse at top right,#1e2233,transparent 60%),#1a2130;}
html[data-theme="dark"] .auth-card{background:#1a2130;border:1px solid #414c62;box-shadow:0 20px 70px #0000000b;}
html[data-theme="dark"] .auth-brand{color:#edf1fa;}
html[data-theme="dark"] .auth-brand small{color:#b8c3d7;}
html[data-theme="dark"] .auth-description,html[data-theme="dark"] .auth-footer{color:#b8c3d7;}
html[data-theme="dark"] .auth-card input,html[data-theme="dark"] #invite-form select,html[data-theme="dark"] .auth-invite-link{border:1px solid #3f4e64;background:#1a2130;color:#edf1fa;}
html[data-theme="dark"] .auth-card input:focus,html[data-theme="dark"] #invite-form select:focus,html[data-theme="dark"] .auth-invite-link:focus{outline:2px solid #6e86ab;}
html[data-theme="dark"] .auth-error{color:#e7a7ac;}
html[data-theme="dark"] .auth-invite-row{border-bottom:1px solid #525252;}
html[data-theme="dark"] .auth-invite-row small{color:#b8c3d7;}
/* catalogs.css */
html[data-theme="dark"] .catalog-hint,html[data-theme="dark"] .catalog-admin p{color:var(--muted,#b8c3d7);}
html[data-theme="dark"] .catalog-admin summary{color:var(--accent,#a2acec);}
/* expenses.css */
html[data-theme="dark"] .expense-table th,html[data-theme="dark"] .expense-table td{border-bottom:1px solid var(--line,#525252);}
/* tags.css */
html[data-theme="dark"] .tag-chip{background:#1d2435;border:1px solid #384a6c;color:#b8c3d7;}
html[data-theme="dark"] .tag-chip button{color:#b8c3d7;}
html[data-theme="dark"] .tag-error{color:#dcb2b6;}
/* Semantic surfaces, native controls and special component states. */
html[data-theme="dark"] {--muted:#b8c3d7;--accent:#bca9f5;--line:#3b465b;background:#101621;color:#edf1fa}
html[data-theme="dark"] body {background:#101621;color:#edf1fa}
html[data-theme="dark"] .sidebar {background:#151c28}
html[data-theme="dark"] .topbar {background:#151c28}
html[data-theme="dark"] .auth-page {background:radial-gradient(ellipse at top right,#26233b,transparent 60%),#101621}
html[data-theme="dark"] .auth-card {background:#1a2130}
html[data-theme="dark"] :is(input,select,textarea) {color-scheme:dark}
html[data-theme="dark"] :is(input,textarea)::placeholder {color:#96a4bc;opacity:1}
html[data-theme="dark"] option {background:#1a2130;color:#edf1fa}
html[data-theme="dark"] input:-webkit-autofill { -webkit-text-fill-color:#edf1fa;box-shadow:0 0 0 1000px #1a2130 inset }
html[data-theme="dark"] :is(button,a,input,select,textarea):focus-visible {outline:3px solid #b6adff;outline-offset:3px}
html[data-theme="dark"] ::selection {background:#584b89;color:#fff}
.theme-toggle {display:inline-flex;align-items:center;justify-content:center;gap:7px;flex-shrink:0;min-width:36px;min-height:36px;border-radius:9px;color:inherit}
.theme-toggle:hover {background:#e9e7f7}
.theme-toggle svg {width:18px;height:18px;pointer-events:none}
.theme-toggle .theme-sun {display:none}
html[data-theme="dark"] .theme-toggle .theme-sun {display:block}
html[data-theme="dark"] .theme-toggle .theme-moon {display:none}
html[data-theme="dark"] .theme-toggle:hover {background:#34304b}
.auth-card {position:relative}
.auth-card>.theme-toggle {position:absolute;right:22px;top:22px}
@media(max-width:600px){.top-actions .theme-toggle {min-width:32px;min-height:36px}}
html[data-theme="dark"] .request-stage-label{border-color:#344052;color:#b8c3d7}
html[data-theme="dark"] .request-stage-label select{background:#151c28;border-color:#465269;color:#edf1fa}
html[data-theme="dark"] .request-stage-label select:hover{border-color:#a99ad8}
html[data-theme="dark"]{--color-bg:#101621;--color-surface:#1a2130;--color-text:#edf1fa;--color-muted:#b8c3d7;--color-accent:#6956b9;--color-focus:#b6adff}
html[data-theme="dark"] :is(.lead-name,.lead-budget,.task-copy strong,.project-concert-card h3){color:var(--color-text)}
html[data-theme="dark"] .button.primary,html[data-theme="dark"] .button.accent{background:var(--color-accent);color:#fff;border-color:#9b8bd5}
html[data-theme="dark"] .button.primary:hover,html[data-theme="dark"] .button.accent:hover{background:#7966ca}
.theme-toggle{min-width:44px;min-height:44px}
@media(max-width:600px){.top-actions .theme-toggle{min-width:44px;min-height:44px}}
html[data-theme="dark"] .company-logo{background:#30394d;color:#d9d4f6}
html[data-theme="dark"] .calendar-month-label{color:var(--color-text)}

/* Cover gradients are shared between themes: preserve readable ink on every
   pastel background, including decorative overlays and the status badge. */
html[data-theme] .concert-art { color: #05070b; }
html[data-theme] .concert-art::before { border-color: #ffffff25; }
html[data-theme] .concert-art::after { background: #ffffff0b; }
html[data-theme] .concert-art .badge { background: #f0edf5; color: #05070b; }
/* Reserve the badge row so long artist names never collide with status. */
.concert-art { height: auto; min-height: 135px; padding-top: 56px; }
.concert-art strong { overflow-wrap: anywhere; }
