/* Dark theme — generated by scripts/make_dark_css.mjs from style.css, alpha.css, editors.css, refinements.css.
   Edit the light stylesheet or the script, then run the script again. */
html.dark{color-scheme:dark}
html.dark{color:#e2e8f0;background:#0f172a;--ink:#f1f5f9;--muted:#94a3b8;--line:#334155;--lime:#6eea8e;--green:#86c79a}
html.dark button:focus-visible,html.dark a:focus-visible,html.dark input:focus-visible,html.dark textarea:focus-visible,html.dark select:focus-visible{outline:3px solid #366141}
html.dark .topbar{background:#1e293b}
html.dark .demo-badge{color:#a2aeba}
html.dark .button{background:#1e293b}
html.dark .button:hover{background:#262e3d}
html.dark .button.primary{background:#3b4a5e;border-color:#3b4a5e}
html.dark .pill.green{background:#2d3545;color:#96cb9a}
html.dark .pill.amber{background:#3c2e0e;color:#d7a45c}
html.dark .pill.blue{background:#2d3545;color:#91b4e7}
html.dark .pill.gray{background:#2d3545;color:#a2aeb8}
html.dark .journey-item.done{border-color:#435c4c}
html.dark .stat{background:#1e293b}
html.dark .stat-sub strong{color:#78c694}
html.dark .progress-track{background:#2d3545}
html.dark .panel{background:#1e293b}
html.dark .task-row{border-bottom:1px solid #2f3543}
html.dark .task-row input{accent-color:#7bc48f}
html.dark .due{color:#a0afba}
html.dark .deadline{border-bottom:1px solid #2f3543}
html.dark .date-box{border:1px solid #2f3543}
html.dark .module-card{background:#1e293b}
html.dark .module-card:hover{border-color:#455c4a}
html.dark .module-icon{background:#262e3d;color:#87bd93}
html.dark .module-card small{color:#9cb4a3}
html.dark .notice{background:#2d3545;border:1px solid #2d3930;color:#a5cbaf}
html.dark .notice.neutral{background:#262e3d;border-color:#2f3543;color:#a2b8cb}
html.dark .character-card{background:#1e293b}
html.dark .character-avatar{background:#2d3545;color:#95c8a3}
html.dark .character-card:nth-child(3n+2) .character-avatar{background:#2d3545;color:#bba787}
html.dark .character-card:nth-child(3n) .character-avatar{background:#2d3545;color:#90adcc}
html.dark th{background:#262e3d}
html.dark td{border-top:1px solid #2f3543}
html.dark .integration-card{border:1px dashed #39463c;background:#262e3d}
html.dark .integration-card p{color:#9db6a5}
html.dark .empty-card{background:#1e293b}
html.dark .tag{background:#1e293b}
html.dark dialog::backdrop{background:rgba(20,32,43,0.803)}
html.dark input:not([type=checkbox]),html.dark textarea,html.dark select{border:1px solid #3b4350;background:#1e293b}
html.dark .dialog-actions{background:#262e3d}
html.dark .document-text{background:#262e3d}
@media(max-width:760px){html.dark .dialog-head{background:#1e293b}
}
html.dark input:disabled{background:#2d3545}
html.dark .country-picker{border:1px solid var(--line,#2f3543)}
html.dark #account-gate{background:#2d3545}
html.dark .account-card{border:1px solid #2f3543;background:#1e293b}
html.dark .account-card p{color:#aebbc8}
html.dark #account-error{color:#ff9f98}
html.dark #sync-bar{background:#262e3d;border-bottom:1px solid #2f3543;color:#add0b8}
html.dark .rich-toolbar{border:1px solid #2f3543;background:#262e3d}
html.dark .rich-toolbar button,html.dark .rich-fields button{border:1px solid #2f3543;background:#1e293b;color:#cbe1f1}
html.dark .rich-toolbar button:hover,html.dark .rich-fields button:hover{background:#193821}
html.dark .rich-fields{background:#262e3d}
html.dark .rich-page{background:#1e293b;border:1px solid #2f3543}
html.dark .rich-page:focus{border-color:#376040}
html.dark .rich-page td,html.dark .rich-page th,html.dark .rich-preview td,html.dark .rich-preview th{border:1px solid #4e5564}
html.dark .rich-page blockquote,html.dark .rich-preview blockquote{border-left:3px solid #366141}
html.dark .rich-count{color:#99aab4}
html.dark .field-token{background:#223626;color:#9fd5b0}
html.dark .rich-link-panel{background:#262e3d}
html.dark .rich-preview{background:#1e293b}
html.dark .budget-sheet input:focus,html.dark .budget-sheet select:focus{border-color:#366141;background:#1e293b}
html.dark .budget-totals>div{border-bottom:1px solid #2f3543}
html.dark .budget-totals .budget-grand{background:#262e3d}
html.dark .media-image{background:#262e3d}
html.dark .media-placeholder{background:#262e3d;color:#a1aeb7}
html.dark .number-control button{border:1px solid #2f3543;background:#262e3d}
html.dark .multi-options{border:1px solid #2f3543}
html.dark #modal-alert{background:#3e2d09;color:#f1be87;border:1px solid #553e0e}
html.dark .project-trash{background:#262e3d;color:#a1aeb7}
html.dark .project-trash:hover{background:#432822;color:#ffa08d}
html.dark .multi-select summary{border:1px solid #3b4350;background:#1e293b}
html.dark .multi-select summary:focus-visible{outline:3px solid #366141}
html.dark .multi-menu{border:1px solid #3b4350;background:#1e293b}
html.dark .grant-status{border:1px solid #3b4350}
html.dark .grant-status-0{background:#262e3d;color:#b7c7d8}
html.dark .grant-status-1{background:#3c2e0e;color:#dab67c}
html.dark .grant-status-2{background:#262e3d;color:#9fc6f6}
html.dark .grant-status-3{background:#2d3545;color:#9ad0a8}
html.dark .grant-status-4{background:#2d3545;color:#faa7a0}
html.dark .document-cards>.document-row{border:1px solid #2f3543;background:#1e293b}
html.dark .person-documents-row details>summary{color:#b6c8d9}
html.dark .status-menu{border:1px solid #3b4350}
html.dark .status-menu[data-status-color=gray]{background:#262e3d;color:#b7c7d8}
html.dark .status-menu[data-status-color=amber]{background:#3c2e0e;color:#dab67c}
html.dark .status-menu[data-status-color=blue]{background:#262e3d;color:#9fc6f6}
html.dark .status-menu[data-status-color=green]{background:#2d3545;color:#9ad0a8}
html.dark .status-menu[data-status-color=red]{background:#2d3545;color:#faa7a0}
html.dark .role-dropdown{border:1px solid #3b4350;background:#1e293b}
html.dark .role-options{border-top:1px solid #2f3543}
html.dark .role-option{background:#1e293b;color:#d3e2f2}
html.dark .role-option:hover,html.dark .role-option:focus-visible{background:#2d3545}
html.dark .dossier-print{background:#2d3545}
html.dark .account-card .account-tagline{color:#a3b0bd}
html.dark .niu-unread{background:#3d2e04;color:#dcb674}
html.dark .document-size{color:#a3afbb}
html.dark .demo-badge{border:1px solid #2f3543}

/* hand-tuned */
/* theme button (both themes) */
.theme-button{display:inline-grid;place-items:center;width:36px;height:36px;padding:0;color:var(--muted)}
.theme-button:hover{background:#eef1f3;color:var(--ink)}
.theme-button svg{width:19px;height:19px}
html.dark .theme-button:hover{background:#1e293b}
/* page, panels and dialogs */
html.dark body{background:#0f172a;color:#e2e8f0}
html.dark .main-shell{background:#0f172a}
html.dark .topbar{background:#1e293b;border-color:#334155}
html.dark .button{background:#1e293b;color:#e2e8f0;border-color:#334155}
html.dark .button:hover{background:#273449}
html.dark .button.subtle{background:transparent}
html.dark .button.primary{background:#6eea8e;color:#19232b;border-color:#6eea8e}
html.dark .button.primary:hover{background:#5edb81;border-color:#5edb81}
html.dark dialog{background:#1e293b;color:#e2e8f0;border-color:#334155}
html.dark input:not([type=checkbox]),html.dark textarea,html.dark select{background:#0f172a;color:#e2e8f0;border-color:#3b4a5e}
html.dark input:disabled{background:#1a2333;color:#7d8b99}
html.dark select option{background:#1e293b;color:#e2e8f0}
html.dark .tabs a.active,html.dark .tab-button.active{color:#f1f5f9;border-color:#6eea8e}
html.dark #toast{background:#334155}
html.dark .demo-badge{background:transparent;color:#94a3b8;border-color:#334155}
html.dark aside{background:#0b1220}
html.dark nav a:hover,html.dark .workspace:hover{background:#1e293b}
