/* Gemeinsame Theme-Farben für Light und Dark. */
:root{color-scheme:light}
html[data-theme="light"] body{background:#f9f8f6}
html[data-theme="dark"]{
 color-scheme:dark;
 --ink:#e3eaf1;--muted:#a7b4c2;--line:#3a4858;--paper:#1b2633;--blue:#8abaff;
 --theme-bg:#111923;--theme-raised:#233142;--theme-field:#121d2a;
 --theme-success-bg:#1c3b2e;--theme-success:#a1ddb7;
 --theme-warning-bg:#46391f;--theme-warning:#f2d294;
 --theme-danger-bg:#4b2630;--theme-danger:#ffb5c0;
}
html[data-theme="dark"] body{background:var(--theme-bg);color:var(--ink)}
html[data-theme="dark"] a{color:var(--blue)}
html[data-theme="dark"] a:hover{color:#bdd8ff}
html[data-theme="dark"] .brand,
html[data-theme="dark"] .module-card,
html[data-theme="dark"] .workflow-tasks a,
html[data-theme="dark"] .activity-list a{color:var(--ink)}
html[data-theme="dark"] .panel,
html[data-theme="dark"] .table-wrap,
html[data-theme="dark"] .photo_sessions-table tr,
html[data-theme="dark"] .photo_sessions-table .photo_session-group{background:var(--paper);border-color:var(--line)}
html[data-theme="dark"] .table{color:var(--ink)}
html[data-theme="dark"] .table th,
html[data-theme="dark"] .table td,
html[data-theme="dark"] .table tbody+tbody{border-color:var(--line)}
html[data-theme="dark"] .photo_sessions-table th{background:var(--theme-raised);color:var(--muted)}
html[data-theme="dark"] .shot-dialog,
html[data-theme="dark"] .suggestion-dialog{background:var(--paper);color:var(--ink);border-color:var(--line);box-shadow:0 16px 60px #0008}
html[data-theme="dark"] .shot-dialog::backdrop,
html[data-theme="dark"] .suggestion-dialog::backdrop{background:rgba(0,0,0,.65)}
html[data-theme="dark"] .suggestion-choice,
html[data-theme="dark"] .photo_session-shot{background:var(--theme-raised);color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .suggestion-choice:hover,
html[data-theme="dark"] .suggestion-choice:focus-visible{background:#2b435f;border-color:var(--blue);outline-color:var(--blue)}
html[data-theme="dark"] .suggestion-empty,
html[data-theme="dark"] footer,
html[data-theme="dark"] .module-card p{color:var(--muted)}
html[data-theme="dark"] .module-card span{color:var(--blue)}
html[data-theme="dark"] .module-card:hover{border-color:var(--blue)}
html[data-theme="dark"] .form-control{background:var(--theme-field);color:var(--ink);border-color:#62758b}
html[data-theme="dark"] .form-control::placeholder{color:#a0adbb;opacity:1}
html[data-theme="dark"] .form-control:focus{background:var(--theme-field);color:var(--ink);border-color:var(--blue);box-shadow:0 0 0 .2rem rgba(138,186,255,.22)}
html[data-theme="dark"] .form-control:disabled,
html[data-theme="dark"] .form-control[readonly]{background:var(--theme-raised);color:var(--muted);border-color:var(--line)}
html[data-theme="dark"] input[type="checkbox"],
html[data-theme="dark"] input[type="radio"]{accent-color:#8abaff}
html[data-theme="dark"] .btn-primary{background:#2768aa;border-color:#528dc8;color:#fff}
html[data-theme="dark"] .btn-primary:hover,
html[data-theme="dark"] .btn-primary:focus{background:#3379c0;border-color:#8abaff;color:#fff}
html[data-theme="dark"] .btn-outline-primary{color:#a8cfff;border-color:#789eca}
html[data-theme="dark"] .btn-outline-primary:hover,
html[data-theme="dark"] .btn-outline-primary:focus{color:#fff;background:#255a8e;border-color:#8abaff}
html[data-theme="dark"] .btn-outline-secondary{color:#bac8d6;border-color:#718399}
html[data-theme="dark"] .btn-outline-secondary:hover,
html[data-theme="dark"] .btn-outline-secondary:focus{background:#33485f;border-color:#a7b4c2;color:#fff}
html[data-theme="dark"] .btn-outline-danger{color:var(--theme-danger);border-color:#d97987}
html[data-theme="dark"] .btn-outline-danger:hover,
html[data-theme="dark"] .btn-outline-danger:focus,
html[data-theme="dark"] .btn-danger{background:#8d2634;border-color:#d97987;color:#fff}
html[data-theme="dark"] .btn-danger:hover,
html[data-theme="dark"] .btn-danger:focus{background:#a73040;border-color:#ffb5c0;color:#fff}
html[data-theme="dark"] .btn:focus-visible,
html[data-theme="dark"] a:focus-visible,
html[data-theme="dark"] summary:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
html[data-theme="dark"] .btn:disabled,
html[data-theme="dark"] .btn.disabled{opacity:.55}
html[data-theme="dark"] .done,
html[data-theme="dark"] .workflow-chain .step-done{background:var(--theme-success-bg);color:var(--theme-success)}
html[data-theme="dark"] .pending,
html[data-theme="dark"] .workflow-chain .step-pending{background:var(--theme-warning-bg);color:var(--theme-warning)}
html[data-theme="dark"] .workflow-chain .step-optional{background:var(--theme-raised);color:var(--muted)}
html[data-theme="dark"] a.status.done,
html[data-theme="dark"] a.status.done:hover{color:var(--theme-success)}
html[data-theme="dark"] .workflow-chain a,
html[data-theme="dark"] .workflow-chain a:hover{color:inherit}
html[data-theme="dark"] .alert-danger{background:var(--theme-danger-bg);color:var(--theme-danger);border-color:#92515f}
html[data-theme="dark"] .alert-warning{background:var(--theme-warning-bg);color:var(--theme-warning);border-color:#8e7746}
html[data-theme="dark"] .alert-success{background:var(--theme-success-bg);color:var(--theme-success);border-color:#4e8765}
html[data-theme="dark"] .alert-info{background:#20374d;color:#b2d8ff;border-color:#507b9e}
html[data-theme="dark"] .alert a{color:inherit;text-decoration:underline}
html[data-theme="dark"] .text-muted{color:var(--muted)!important}
html[data-theme="dark"] .text-danger{color:var(--theme-danger)!important}
html[data-theme="dark"] .text-success{color:var(--theme-success)!important}
html[data-theme="dark"] .text-warning{color:var(--theme-warning)!important}
html[data-theme="dark"] .text-info{color:#b2d8ff!important}
html[data-theme="dark"] hr{border-color:var(--line)}
html[data-theme="dark"] pre{background:var(--theme-field);color:var(--ink)}
html[data-theme="dark"] code{color:#ffc2dc}
html[data-theme="dark"] ::selection{background:#315f94;color:#fff}
@media(max-width:700px){html[data-theme="dark"] .table-wrap{background:transparent}}
@media print{
 html[data-theme="dark"]{color-scheme:light;--ink:#233445;--muted:#687581;--line:#dde3e8;--paper:#fff;--blue:#1766ac;--theme-bg:#fff;--theme-raised:#edf1f5;--theme-field:#fff;--theme-success-bg:#e3f0e9;--theme-success:#236543;--theme-warning-bg:#fff0d5;--theme-warning:#825c1f;--theme-danger-bg:#f8d7da;--theme-danger:#721c24}
 html[data-theme="dark"] a{color:#1766ac}
 html[data-theme="dark"] .btn{background:#fff!important;color:#233445!important;border-color:#687581!important}
}

/* Deactivated actions use a neutral palette, including destructive buttons. */
:root{--disabled-bg:#e6e8eb;--disabled-text:#7c858f;--disabled-border:#cbd1d8}
html[data-theme="dark"]{--disabled-bg:#283340;--disabled-text:#8994a1;--disabled-border:#44505e}
html[data-theme] .btn:disabled,
html[data-theme] .btn.disabled,
html[data-theme] .btn[aria-disabled="true"]{
 background:var(--disabled-bg);color:var(--disabled-text);border-color:var(--disabled-border);
 opacity:1;box-shadow:none;cursor:not-allowed;
}
