/* Dark grey theme over light.css (06.10.2026): neutral greys, the same violet accent; audio colours stay as they are.
   :where(.dark) adds no specificity: each rule weighs as its light.css twin and wins by order only, so a generic «button»
   never beats a class rule (.clip, .project-item…) as it would not in the light theme. */
:root.dark{color-scheme:dark;--bg:#1d1e20;--panel:#25262a;--line:#35373b;--text:#e2e2df;--muted:#999a95;--accent:#b3a1e0;--green:#8cc9a6;--gold:#d8b67a;--red:#e79a93}
:where(.dark) body{background:var(--bg);color:var(--text)}
:where(.dark) button,:where(.dark) .button{background:#2c2d31;border-color:#3d3f44;color:#d6d6d2;box-shadow:0 1px 2px #0003}
:where(.dark) button:hover,:where(.dark) .button:hover{background:#34353a;border-color:#5c5476}
:where(.dark) button:focus-visible,:where(.dark) a:focus-visible,:where(.dark) [tabindex]:focus-visible{outline-color:#8f7cc4}
:where(.dark) .primary{background:#3a3350;border-color:#54497a;color:#e6ddfb;box-shadow:0 1px 2px #0004}
:where(.dark) .primary:hover{background:#443b5f;border-color:#685b95}
:where(.dark) .subtle{background:transparent;border-color:transparent;color:#a9aaa5;box-shadow:none}
:where(.dark) .subtle:hover{background:#26272a}
:where(.dark) .text-button{background:transparent;color:var(--accent);box-shadow:none}
:where(.dark) .text-button:hover{background:#2f2b3a}
:where(.dark) input,:where(.dark) select,:where(.dark) textarea{background:#1a1b1d;color:var(--text);border-color:#3b3d42}
:where(.dark) input::placeholder,:where(.dark) textarea::placeholder{color:#6f706b}
:where(.dark) input:focus,:where(.dark) select:focus,:where(.dark) textarea:focus{outline-color:#7d6ca8;border-color:#7d6ca8}
:where(.dark) input[type=checkbox],:where(.dark) .project-overview input[type=checkbox]{accent-color:#a48fd6}
:where(.dark) .sidebar{background:#17181a;border-color:#2a2b2e}
:where(.dark) .logo{color:#a993d8}
:where(.dark) .side-title{color:#7d7e79}
:where(.dark) .project-row:hover{background:#222326}
:where(.dark) .project-row.active{background:#2c2839;border-color:#3e3653}
:where(.dark) .project-state-dot{background:#5d5e5a}
:where(.dark) .project-more{background:transparent;color:#8a8b86;box-shadow:none}
:where(.dark) .project-more:hover,:where(.dark) .project-more[aria-expanded=true]{background:#38324a;color:#d2c4f4}
:where(.dark) .project-menu,:where(.dark) .clip-menu{background:#28292c;border-color:#3b3d41;box-shadow:0 8px 28px #0009}
:where(.dark) .project-menu button,:where(.dark) .clip-menu button{background:#28292c;color:#d6d6d2}
:where(.dark) .project-menu button:hover,:where(.dark) .clip-menu button:hover:not(:disabled){background:#33303d}
:where(.dark) .project-menu button.danger-text{color:var(--red)}
:where(.dark) .project-menu button:disabled{color:#686964;background:#28292c}
:where(.dark) .statusline{color:#9a9b96}
:where(.dark) .status-badge{background:#2f2d28;color:#c8bb95}
:where(.dark) .status-badge.done{background:#1f3229;color:#8fcaa9}
:where(.dark) .status-badge.running,:where(.dark) .status-badge.queued{background:#2e2940;color:#bfaee6}
:where(.dark) .status-badge.error,:where(.dark) .status-badge.review{background:#3d2727;color:#eaa59e}
:where(.dark) .panel{background:var(--panel);border-color:#323438;box-shadow:0 2px 6px #0002}
:where(.dark) .panel-heading{border-color:#303236}
:where(.dark) .count{background:#303134;color:#a3a49f}
:where(.dark) th{background:#212225;color:#8e8f8a}
:where(.dark) td{border-color:#2f3134}
:where(.dark) tr.clickable:hover{background:#2a2b2e}
:where(.dark) tr.selected,:where(.dark) .project-overview tr.project-selected,:where(.dark) .project-selected{background:#2d2938}
:where(.dark) #project-table .project-name{color:#cbbcf1}
:where(.dark) #project-table tr.project-open td:first-child{box-shadow:inset 3px 0 0 #9d89cf}
:where(.dark) .lang-code{background:#2e2f32;color:#b0b1ab;border-color:#3a3b3f}
:where(.dark) .progress{background:#35363a}:where(.dark) .progress i{background:#9c88c9}:where(.dark) .progress.done i{background:#6fa487}
:where(.dark) .progress-row,:where(.dark) .step-progress span,:where(.dark) .languages-done{color:#93948f}
:where(.dark) .progress-finished{color:#86c7a0}:where(.dark) .progress-warning{color:var(--red)}
:where(.dark) button.run-all{background:#24352a;color:#a8d4ad;border-color:#385440}
:where(.dark) button.run-all:hover{background:#2b3f31;border-color:#46664f}
:where(.dark) button.stop-project{background:#3a2627;color:#eba6a0;border-color:#5a3a3b}
:where(.dark) button.stop-project:hover{background:#45292b;border-color:#6e4547}
:where(.dark) .batch-delete{color:var(--red)}:where(.dark) .batch-delete:hover:not(:disabled){background:#3a2526;border-color:#5c3a3a}
:where(.dark) .project-problems .problem{color:#e3a69e}
:where(.dark) .request-row td{background:#29261f}
:where(.dark) .upload-note,:where(.dark) .users-table td small{color:#8e8f8a}
:where(.dark) .user-disabled td{color:#6f706b}
:where(.dark) .sort-button{background:none;color:inherit}:where(.dark) .sort-button:hover{color:var(--text);background:none}
:where(.dark) .tabs{border-color:#333539}:where(.dark) .tabs button{background:transparent;color:#8d8e89}:where(.dark) .tabs button.active{color:#cbbcf1;border-color:#9d89cf}
:where(.dark) .review-context{color:#93948f}
:where(.dark) .transport{border-color:#333539}:where(.dark) .play{background:#3a3350;color:#e6ddfb;border-color:#54497a}:where(.dark) .clock{color:#7f807b}:where(.dark) .clock b{color:#d6d6d3}
:where(.dark) .listen{background:#1b1c1e}:where(.dark) .listen button{background:transparent;color:#8c8d88}:where(.dark) .listen button.active{background:#2f2c3a;color:#d2c4f4;box-shadow:0 1px 4px #0005}
:where(.dark) .timeline-shell{background:#1b1c1e}:where(.dark) .track-labels{background:#212225;border-color:#313236}:where(.dark) .track-label{border-color:#2f3033;color:#a1a29d}
:where(.dark) .badge{color:#8cc4ad;background:#1f2e28;border-color:#35503f}:where(.dark) .badge.target{color:#bfaee6;background:#2a2638;border-color:#463d5e}
:where(.dark) .ruler-spacer,:where(.dark) .ruler{border-color:#313236}:where(.dark) .ruler span{color:#7b7c77;border-color:#393a3e}
:where(.dark) .lane{border-color:#2c2d30;background:repeating-linear-gradient(to right,transparent 0,transparent 99px,#27282b 100px)}
:where(.dark) .timeline-scroll{scrollbar-color:#46474c #1b1c1e}
:where(.dark) .clip.selected{outline-color:#c4b4ef}
:where(.dark) .ghost{border-color:#4a4c51}:where(.dark) .playhead::before,:where(.dark) .playhead i{background:#b09ce0}
:where(.dark) .music-clip{background:#24262b;border-color:#33363c;color:#7d8597}
:where(.dark) .legend{color:#8a8b86}
:where(.dark) .text-pair article{background:#202124;border-color:#333539}:where(.dark) .text-pair p{color:#dcdcd9}:where(.dark) .card-heading{color:#9a9b96}
:where(.dark) .tag{background:#2d2a37;color:#bba9d9}
:where(.dark) .inspector details{border-color:#303236}:where(.dark) summary{color:#9d9e99}
:where(.dark) pre{background:#1a1b1d;color:#a9b5a6}
:where(.dark) .version{border-color:#303236}:where(.dark) .segments-panel td:last-child{color:#bba9d9}
:where(.dark) .collapse-toggle .chevron{color:#8c8d88}
:where(.dark) .panel-note{color:#8e8f8a}:where(.dark) .log-line,:where(.dark) .log-day{border-color:#2e2f32}:where(.dark) .log-day{color:#8e8f8a}:where(.dark) .log-group>.log-line{background:#212225}
:where(.dark) .log-line .level{color:#84b598}:where(.dark) .log-line.warning .level{color:#d1ae74}:where(.dark) .log-line.error .level{color:#e0918f}:where(.dark) .log-stage{color:#b09ed6}
:where(.dark) .welcome p{color:#93948f}
:where(.dark) dialog{background:#25262a;border-color:#3a3c40;box-shadow:0 24px 100px #000b;color:var(--text)}
:where(.dark) dialog::backdrop{background:#0b0b0cb0}
:where(.dark) .close-dialog{background:transparent;color:#8c8d88}
:where(.dark) .block-label{color:#9a9b96}:where(.dark) .block-label small{color:#7a7b76}
:where(.dark) .setting-fixed,:where(.dark) .setting-number,:where(.dark) .setting-toggle{color:#b7b8b3}
:where(.dark) .setting-languages{color:#93948f}
:where(.dark) .setting-range input{accent-color:#86b56a}
:where(.dark) .setting-toggle input{background:#3a3b3f;border-color:#47494e}:where(.dark) .setting-toggle input::after{background:#d9d9d6;box-shadow:0 1px 2px #0006}
:where(.dark) .setting-toggle input:checked{background:#8f7bbf;border-color:#8f7bbf}
:where(.dark) .service-info,:where(.dark) .dialog-footer,:where(.dark) .preset-save,:where(.dark) .user-form{border-color:#333539}:where(.dark) .dialog-footer small{color:#7d7e79}
:where(.dark) #drop-zone,:where(.dark) #music-drop-zone,:where(.dark) .attach-zone{background:#27252d;border-color:#4d4566}
:where(.dark) #drop-zone.dragging{background:#302b3e;border-color:#8a76bb}
:where(.dark) #drop-zone span:not(.drop-icon),:where(.dark) #music-drop-zone span:not(.drop-icon),:where(.dark) .attach-zone span{color:#8e8f8a}
:where(.dark) #drop-zone strong,:where(.dark) #music-drop-zone strong,:where(.dark) .attach-zone strong{color:#cdc2e2}:where(.dark) .drop-icon{color:#a58fd0}:where(.dark) .drop-note{color:#8e8f8a}
:where(.dark) .pending-file{background:#222a25;border-color:#33413a;color:#a6c2b0}:where(.dark) .pending-file button{background:transparent}
:where(.dark) .language-option{background:#222326;border-color:#37393d;color:#a3a49f}
:where(.dark) .language-option:has(input:checked){background:#2e2a3b;border-color:#54497a;color:#d2c4f4}
:where(.dark) .issue,:where(.dark) #error{background:#3a2526;border-color:#5c3a3a;color:#eba6a0}
:where(.dark) .danger{background:#a6544f;border-color:#a6544f;color:#fff}:where(.dark) .danger:hover{background:#b55f5a;border-color:#b55f5a}
:where(.dark) #toast{background:#322d40;color:#e3d9f8;border-color:#4e4568;box-shadow:0 8px 30px #0008}
:where(.dark) body.dragging::after{background:#1f1d27ee;border-color:#8a76bb;color:#cdc0ea}
:where(.dark) .help-button{background:#2b2833;border-color:#46405a;color:#b7a5dc}
:where(.dark) .help-button:hover,:where(.dark) .help-button:focus-visible{background:#36304a;color:#d6c8f5;border-color:#6a5c92}
:where(.dark) .settings-tooltip{background:#2a2b2e;border-color:#414347;color:#cfd0cb;box-shadow:0 6px 24px #0009}
:where(.dark) .name-entry,:where(.dark) .names-empty,:where(.dark) .excerpt-setting{background:#232227;border-color:#36333f}
:where(.dark) #names-dialog td small,:where(.dark) .excerpt-setting small{color:#8e8f8a}
:where(.dark) .time-bar i,:where(.dark) .time-dot{background:#9c88c9}
:where(.dark) .logins-table tr.flagged td{background:#3a2a2a}:where(.dark) .vpn-tag{background:#3b3427}:where(.dark) .logins-badge{color:#1d1e20}
:where(.dark) .user-box,:where(.dark) .system-load{color:#a3a49f}:where(.dark) .system-load b{color:#dcdcd9}
:where(.dark) .load-bar{background:#2c2d30}:where(.dark) .load-bar i{background:#9c88c9}:where(.dark) .load-bar i.high{background:#d0716a}
:where(.dark) .down-banner{background:#2d281c;border-color:#5a4c2e;color:#d8bf86}
:where(.dark) .as-banner{background:#2a2633;border-color:#46405a;color:#cdbdea}
:where(.dark) .login-page main.login-card{background:#25262a;border-color:#35373b;box-shadow:0 10px 30px #0006}
:where(.dark) #upload-thanks{background:#25262a}
:where(.dark) #replacements-check-frame{background:#1d1e20}
/* The switch beside the logo: the moon in the light theme, the sun in the dark one. */
.brand-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:30px}.brand-row .brand{margin-bottom:0}
.theme-toggle{width:32px;height:32px;padding:0;border-radius:50%;flex:none;background:transparent;border-color:transparent;box-shadow:none;color:#8a8f84}
.theme-toggle:hover{background:#eae7f1;border-color:#d8d0e5;color:#65547f}
.theme-toggle svg{width:17px;height:17px;display:block}.theme-toggle .sun,:where(.dark) .theme-toggle .moon{display:none}:where(.dark) .theme-toggle .sun{display:block}
:where(.dark) .theme-toggle{background:transparent;border-color:transparent;box-shadow:none;color:#9a9b96}
:where(.dark) .theme-toggle:hover{background:#2c2839;border-color:#3e3653;color:#e0c98f}
.login-card .brand-row{margin-bottom:18px}
@media(max-width:780px){.brand-row{margin:0}}
