/* The workspace is dark by default. Add .theme-light only after an explicit choice. */
:root{--bg:#101114;--surface:#181a1f;--surface2:#22252b;--line:#323640;--text:#f1f4f8;--muted:#aab2c0;--green:#ffd452;--accent:#ffd452;color-scheme:dark}
body,#app main,#view{background:var(--bg);color:var(--text)}
#view{min-height:calc(100vh - 76px)}
.app header,.app main>header{background:#101114!important}.app header p{color:var(--muted)!important}
.panel,.metric,.data-table tbody tr:hover,.lead-card,.secondary,.icon-btn,input,select,textarea{background:var(--surface)!important;color:var(--text)!important;border-color:var(--line)!important}
.data-table th{background:#202228!important;color:#c7cdd8!important}.data-table td{color:#d9dee7!important;border-color:var(--line)!important}.data-table td strong{color:#fff!important}
.page-heading h1,.page-heading p,.welcome h2,.welcome p,.detail-heading h1,.detail-heading p{color:var(--text)!important}.page-heading p,.welcome p,.detail-heading p{color:var(--muted)!important}
.theme-toggle{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:8px 12px;border:1px solid #3a3e48;border-radius:9px;background:#20232a;color:#e6eaf0;font:600 12px/1 Inter,"Segoe UI",Arial,sans-serif;cursor:pointer}.theme-toggle:hover{border-color:#ffd452;color:#ffd452}
.kanban-workspace{background:#101114!important;color:var(--text)!important}.kanban-page h1,#view .kanban-page__head h1{color:#fff!important}.kanban-page__head p,#view .kanban-page__head p{color:var(--muted)!important}.kanban-metrics article{background:#1a1d23!important;border-color:#343946!important}.kanban-metrics article span,.kanban-toolbar>span{color:#aab5c7!important}.kanban-metrics article strong{color:#fff!important}.kanban-toolbar input{background:#191c22!important;color:#fff!important;border-color:#3a404d!important}.kanban-column{background:#1b2230!important}.kanban-column--amber{background:#282419!important}.kanban-column--purple{background:#251f31!important}.kanban-column--green{background:#192b25!important}.kanban-column h2{color:#fff!important}.kanban-card{background:#22262e!important;border-color:#3a414d!important;color:#fff!important;box-shadow:none!important}.kanban-card__source,.kanban-card__meta,.kanban-empty{color:#aeb8c8!important}
:root.theme-light{--bg:#f5f6f8;--surface:#fff;--surface2:#f0f2f5;--line:#dce1e8;--text:#182232;--muted:#687386;--green:#a86600;--accent:#efb753;color-scheme:light}
:root.theme-light body,:root.theme-light #app main,:root.theme-light #view{background:var(--bg);color:var(--text)}
:root.theme-light .app header,:root.theme-light .app main>header{background:#fff!important}
:root.theme-light .panel,:root.theme-light .metric,:root.theme-light .data-table tbody tr:hover,:root.theme-light .lead-card,:root.theme-light .secondary,:root.theme-light .icon-btn,:root.theme-light input,:root.theme-light select,:root.theme-light textarea{background:var(--surface)!important;color:var(--text)!important;border-color:var(--line)!important}
:root.theme-light .kanban-workspace{background:#fff!important}:root.theme-light .kanban-page h1,:root.theme-light #view .kanban-page__head h1{color:#10213e!important}:root.theme-light .kanban-page__head p,:root.theme-light #view .kanban-page__head p{color:#64748b!important}:root.theme-light .kanban-metrics article{background:#f8faff!important;border-color:#e5ebf5!important}:root.theme-light .kanban-metrics article strong{color:#10213e!important}:root.theme-light .kanban-column{background:#f5f8ff!important}:root.theme-light .kanban-column--amber{background:#fffaec!important}:root.theme-light .kanban-column--purple{background:#f8f4ff!important}:root.theme-light .kanban-column--green{background:#effbf4!important}:root.theme-light .kanban-column h2{color:#10213e!important}:root.theme-light .kanban-card{background:#fff!important;border-color:#e0e7f1!important;color:#10213e!important}:root.theme-light .kanban-card__source,:root.theme-light .kanban-card__meta,:root.theme-light .kanban-empty{color:#627390!important}

:root:not(.theme-light) .kanban-sort{background:#181b21!important;border-color:#3a414d!important;color:#c3ccda!important}:root:not(.theme-light) .kanban-sort:hover{border-color:#61b6ff!important;color:#61b6ff!important}:root.theme-light .kanban-sort{background:#fff!important;border-color:#d7e1ef!important;color:#5b6c86!important}
