/* Shared appearance; does not change table density. */
:root[data-theme="dark"]{color-scheme:dark;--navy:#c8ceff;--ink:#e7eaf4;--muted:#a8b2c9;--bg:#101522;--line:#354158;--white:#1b2333;--shadow:0 18px 50px #0004}
:root[data-theme="dark"] .skip:focus{background:#1b2333}
:root[data-theme="dark"] .portal-nav{color:#e7eaf4}
:root[data-theme="dark"] .portal-nav-links a:hover{color:#e7eaf4}
:root[data-theme="dark"] .portal-nav-logout button,:root[data-theme="dark"] .portal-nav-toggle{color:#e7eaf4}
:root[data-theme="dark"] .environment{background:#25324b}
:root[data-theme="dark"] button,:root[data-theme="dark"] .button{border:1px solid #71809c;background:#1b2333}
:root[data-theme="dark"] .menu-card{background:#1b2333}
:root[data-theme="dark"] .stat,:root[data-theme="dark"] .panel{background:#1b2333}
:root[data-theme="dark"] .table-wrap{background:#1b2333}
:root[data-theme="dark"] th{background:#25324b}
:root[data-theme="dark"] .empty{background:#1b2333}
:root[data-theme="dark"] .badge{background:#25324b}
:root[data-theme="dark"] .badge.afgerond{background:#25324b;color:#d5ddf4}
:root[data-theme="dark"] .badge.geblokkeerd,:root[data-theme="dark"] .badge.late{background:#25324b;color:#d5ddf4}
:root[data-theme="dark"] .badge.bezig{background:#25324b;color:#d5ddf4}
:root[data-theme="dark"] .cover{background:#25324b}
:root[data-theme="dark"] .no-cover{background:#25324b}
:root[data-theme="dark"] .cover-card{background:#1b2333}
:root[data-theme="dark"] .notice{background:#25324b;color:#d5ddf4}
:root[data-theme="dark"] .notice.info{background:#25324b}
:root[data-theme="dark"] .bar-track{background:#25324b}
:root[data-theme="dark"] input,:root[data-theme="dark"] select,:root[data-theme="dark"] textarea{border:1px solid #71809c;background:#1b2333}
:root[data-theme="dark"] .file-label{border:1px solid #71809c;background:#1b2333}
:root[data-theme="dark"] .portal-nav-links{background:#242b56}
:root[data-theme="dark"] .edition-sorting{background:#25324b}
:root[data-theme="dark"] .table-wrap{background:#1b2333}
:root[data-theme="dark"] .table-wrap td{border-bottom:1px solid #1b2333;border-right:1px solid #1b2333}
:root[data-theme="dark"] .table-wrap tbody tr:nth-child(even){background:#25324b}
:root[data-theme="dark"] .table-wrap tbody tr:hover{background:#25324b}
:root[data-theme="dark"] .table-wrap td button:hover{background:#25324b;border-color:#e7eaf4}
:root[data-theme="dark"] .edition-tag.regular,:root[data-theme="dark"] .badge{background:#25324b}
:root[data-theme="dark"] .edition-tag.special{background:#25324b;color:#d5ddf4}
:root[data-theme="dark"] .edition-tag.complete,:root[data-theme="dark"] .badge.afgerond{background:#1b2333;color:#d5ddf4}
:root[data-theme="dark"] .edition-tag.pending,:root[data-theme="dark"] .badge.bezig{background:#25324b;color:#d5ddf4}
:root[data-theme="dark"] .badge.geblokkeerd,:root[data-theme="dark"] .badge.late{background:#25324b;color:#d5ddf4}
:root[data-theme="dark"] .column-picker summary,:root[data-theme="dark"] .edition-saved>summary{background:#1b2333;border:1px solid #71809c}
:root[data-theme="dark"] .column-picker[open]>summary,:root[data-theme="dark"] .edition-saved[open]>summary{background:#25324b}
:root[data-theme="dark"] .column-picker>div{background:#1b2333}
:root[data-theme="dark"] .column-picker>div label:hover{background:#25324b}
:root[data-theme="dark"] .edition-saved[open]>.edition-views{background:#1b2333}
:root[data-theme="dark"] .dialog-actions{background:#1b2333}
:root[data-theme="dark"] .week-empty{background:#1b2333;border:1px solid #1b2333}
:root[data-theme="dark"] .week-release{background:#1b2333;border:1px solid #1b2333}
:root[data-theme="dark"] .week-package{background:#242b56;color:#e7eaf4}
:root[data-theme="dark"] .op-grid th,:root[data-theme="dark"] .op-grid td{border-right:1px solid #1b2333}
:root[data-theme="dark"] .op-grid th{background:#242b56}
:root[data-theme="dark"] .op-grid tr:hover td{background:#25324b}
:root[data-theme="dark"] .op-grid .op-group td{background:#25324b!important;color:#d5ddf4;border-top:1px solid #25324b}
:root[data-theme="dark"] .op-pill.blue{background:#25324b;color:#d5ddf4}
:root[data-theme="dark"] .op-pill.teal{background:#25324b;color:#d5ddf4}
:root[data-theme="dark"] .op-pill.violet{background:#25324b;color:#d5ddf4}
:root[data-theme="dark"] .op-pill.pink{background:#25324b;color:#d5ddf4}
:root[data-theme="dark"] .op-pill.green{background:#25324b;color:#d5ddf4}
:root[data-theme="dark"] .op-pill.gold{background:#25324b;color:#d5ddf4}
:root[data-theme="dark"] .op-pill.coral{background:#25324b;color:#d5ddf4}
:root[data-theme="dark"] .op-pill.slate{background:#1b2333;color:#d5ddf4}
:root[data-theme="dark"] .op-file{background:#1b2333;border:1px solid #1b2333}
:root[data-theme="dark"] #operation-editor{border:1px solid #1b2333}
:root[data-theme="dark"] .op-readonly{background:#25324b;border:1px solid #1b2333}
:root[data-theme="dark"] .op-relations{border:1px solid #71809c;background:#1b2333}
:root[data-theme="dark"] .op-form-fields .field>span{color:#d5ddf4}
:root[data-theme="dark"] .edition-table tr.listing-group td{background:#25324b!important;border-top:1px solid #71809c}
:root[data-theme="dark"] .edition-table .listing-group-toggle{color:#d5ddf4}
:root[data-theme="dark"] .edition-table tr.listing-subtotal td{background:#25324b!important;color:#d5ddf4;border-bottom:2px solid #25324b}
:root[data-theme="dark"] .portal-user{color:#e7eaf4}
:root[data-theme="dark"] .portal-sidebar{background:#1b2333}
:root[data-theme="dark"] .portal-nav-links a:hover{background:#25324b}
:root[data-theme="dark"] .portal-nav-links a[aria-current=page]{background:#25324b}
:root[data-theme="dark"] .portal-sidebar-foot strong{color:#d5ddf4}
:root[data-theme="dark"] .environment{background:#25324b}
:root[data-theme="dark"] .kanban-lane{background:#1b2333;border:1px solid #1b2333}
:root[data-theme="dark"] .kanban-card{background:#1b2333;border:1px solid #1b2333;border-left:3px solid #d5ddf4}
:root[data-theme="dark"] .kanban-lane.drop-target{background:#25324b}
:root[data-theme="dark"] .nav-group-toggle:hover,:root[data-theme="dark"] .active-group>.nav-group-toggle{background:#25324b}
:root[data-theme="dark"] #campaign-plan-error{color:#d5ddf4}
:root[data-theme="dark"] #operation-editor .dialog-head button{border:1px solid #1b2333}
:root[data-theme="dark"] .form-reference{background:#25324b;border:1px solid #25324b}
:root[data-theme="dark"] .form-reference summary{color:#d5ddf4}
:root[data-theme="dark"] #operation-editor .op-readonly{border-bottom:1px solid #25324b}

:root[data-theme="dark"] .portal-nav{background:#181d47;color:#fff}
:root[data-theme="dark"] .portal-nav button{color:#fff;background:transparent}
:root[data-theme="dark"] th,:root[data-theme="dark"] .op-grid th{background:#242b56;color:#fff}
:root[data-theme="dark"] .primary{background:#c22650;border-color:#e44b74;color:#fff}
:root[data-theme="dark"] input,:root[data-theme="dark"] select,:root[data-theme="dark"] textarea{background:#151d2c;color:#e7eaf4;border-color:#52617c}
:root[data-theme="dark"] dialog{background:#1b2333;color:#e7eaf4}
:root[data-theme="dark"] #notice,:root[data-theme="dark"] .edition-views button[data-edition-action=save]{background:#242b56;color:#fff}
#theme-toggle,#tour-start{min-width:36px;min-height:36px;margin-right:8px}
#guided-tour{position:fixed;inset:auto 24px 24px auto;margin:0;width:min(460px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:24px;border:1px solid var(--line);border-top:4px solid var(--pink);border-radius:14px;box-shadow:0 16px 60px #0005;color:var(--ink)}
#guided-tour::backdrop{background:rgba(10,16,35,.22)}
#guided-tour h2{margin:0 0 14px}#guided-tour p:not(.eyebrow){font-size:15px;line-height:1.65}
#guided-tour progress{width:100%;height:5px;accent-color:var(--pink);margin:10px 0 20px}
.tour-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}.tour-actions button:first-child{margin-right:auto}
@media(max-width:600px){#guided-tour{right:16px;bottom:16px;padding:20px}.portal-internal{display:none}}
/* Navigation and sort controls retain their borderless hierarchy. */
:root[data-theme="dark"] .portal-nav-links a,:root[data-theme="dark"] .nav-group-toggle{background:transparent;border:0;color:#c5cde0}
:root[data-theme="dark"] .portal-nav-links a:hover,:root[data-theme="dark"] .nav-group-toggle:hover,:root[data-theme="dark"] .active-group>.nav-group-toggle,:root[data-theme="dark"] .portal-nav-links a[aria-current=page]{background:#25324b;color:#e7eaf4}
:root[data-theme="dark"] .table-wrap th button,:root[data-theme="dark"] .op-grid th button{background:transparent;border:0;color:#fff}
