/* Appearance is edited only in the user profile. */
.appearance-settings{display:grid;gap:10px}
.appearance-settings>label{font-weight:600}
html[data-alp-theme="mixed"]{--nav:#45474c;--workspace-switcher-fg:#f1f1f2;--workspace-switcher-hover:#ffffff18;--workspace-switcher-open:#ffffff18}
html[data-alp-theme="mixed"] #sidebar{background:var(--nav);color:#e7e8eb}
html[data-alp-theme="mixed"] #nav{scrollbar-color:#96989e transparent}
html[data-alp-theme="mixed"] #nav button{color:#e7e8eb}
html[data-alp-theme="mixed"] #nav .parent{border-bottom-color:#62646a}
html[data-alp-theme="mixed"] #nav button:hover{background:#ffffff12}
html[data-alp-theme="mixed"] #nav .parent.active{background:#087cfa;color:#fff}
html[data-alp-theme="mixed"] #nav .child.active{background:#ffffff20;color:#fff;box-shadow:inset 2px 0 #c4c7cd}
html[data-alp-theme="mixed"] #nav .child.active:hover{background:#ffffff2b}
html[data-alp-theme="mixed"] #nav .caret{border-top-color:#bfc2c8}


/* Night palette changes color only; shared dimensions and brand assets are retained. */
html[data-alp-theme="dark"]{color-scheme:dark;background:#111b2b;color:#e5edf7;--nav:#101c2e;--muted:#a9b9cf;--line:#3b4c64;--page-title-color:#e5edf7;--light-blue:#253b55;--soft:#24354c;--choice-fill:#253b55;--choice-outline:#6899cc;--choice-text:#d4e7ff}
html[data-alp-theme="dark"] body.alp-preview{background:#111b2b;color:#e5edf7;--alp-overview-ink:#e5edf7;--alp-overview-amount:#e5edf7;--alp-overview-secondary:#a9b9cf}
html[data-alp-theme="dark"] :is(input,select,textarea,dialog,.modal-foot,.review-popover,.flyout,.workspace-switcher-menu,.notification-footer){background-color:#1c2a3e;border-color:#3b4c64;color:#e5edf7}
html[data-alp-theme="dark"] button:not(.primary):not(.orange):not(.active):not(.selected):not(.brand):not(.acc-danger-button){background-color:#1c2a3e;border-color:#3b4c64;color:#d4e3f5}
html[data-alp-theme="dark"] #nav button:not(.active){background:transparent;color:#ced9e9}
html[data-alp-theme="dark"] #content :is(.card,.metric,.info-card,.fieldbox,.total,.dashboard-widget,.dash-panel,.dash-kpi,.ov-panel,.regional-clock,.push-step,.ov-month,.ov-popover){background-color:#1c2a3e;border-color:#3b4c64;color:#e5edf7}
html[data-alp-theme="dark"] #content :is(th,.card>.metrics .metric,.cash-body>.metrics .metric,.totals>div,.total,.meter-list tbody tr:nth-child(even),.cash-table tbody tr:nth-child(even),.acc-table tbody tr:nth-child(even),.acc-ledger-summary,.acc-finance-fields,.acc-manual-row){background:#24354c;color:#c2d2e6;border-color:#3b4c64}
html[data-alp-theme="dark"] #content :is(h1,h2,h3,.fields strong,.bank-table .iban,td .id,.acc-choice-button,.fieldbox strong,.metric strong,.dash-kpi-value,.ov-total,.ov-metrics strong,.ov-line strong,.info-card-value,.info-card-value>span,.salary-employee-name){color:#e5edf7}
html[data-alp-theme="dark"] :is(td,.card-head,.table-footer,.notification-item,.notification-footer){border-color:#3b4c64}
html[data-alp-theme="dark"] #content :is(.subtitle,.tiny,.secondary,.fieldbox small,.metric span,.info-card-head,.info-card-secondary,.profile-storage-note,.dashboard-widget small,.dash-note,.dash-chart-subtitle,.dash-kpi-label,.dash-kpi-foot,.ov-caption,.ov-asof,.ov-metrics span,.ov-metrics small,.ov-progress-note,.ov-line,.ov-option,.dash-task-list small){color:#a9b9cf}
html[data-alp-theme="dark"] :is(button:hover,.flyout button:hover,.workspace-switcher-menu button:hover,tbody tr[data-open]:not(.row-returned):hover){background-color:#30445f}
html[data-alp-theme="dark"] #top>#country{background:#1c2a3e;border-color:#3b4c64;color:#e5edf7}
html[data-alp-theme="dark"] :is(.primary,.orange,.tabs button.active,.shortcuts button.active,.page-primary-action){color:#fff}
html[data-alp-theme="dark"] #content :is(.dash-heading,.periodbar){background:#111b2b}
html[data-alp-theme="dark"] :is(.dash-track,.ov-payment-track,.dash-inbox,.dash-inbox strong,.registry-result-grid>div,.regional-clock){background-color:#24354c;color:#c2d2e6}
html[data-alp-theme="dark"] :is(.dash-ring-number){fill:#e5edf7}
html[data-alp-theme="dark"] :is(.dash-ring-caption){fill:#a9b9cf}
html[data-alp-theme="dark"] :is(.card-head small,.regional-clock small,.regional-note,.fields label,.notification-copy>span,.notification-copy small,.notification-heading small){color:#a9b9cf}
html[data-alp-theme="dark"] :is(.notification-heading h2,.notification-item){color:#e5edf7}
html[data-alp-theme="dark"] .notification-item.is-unread{background:#253b55}
html[data-alp-theme="dark"] :is(.dash-bank-row,.dash-legend button,.dash-document-row,.dash-task-list button,.dash-more,.dash-ring-link,.acc-link){background:transparent!important}
html[data-alp-theme="dark"] #content .chart-bars{background:repeating-linear-gradient(to top,#1c2a3e 0px,#1c2a3e 57px,#3b4c64 58px)}
html[data-alp-theme="dark"] #content :is(.info-card-value>span.red,.red,.expense){color:#ff8585}
html[data-alp-theme="dark"] #content :is(.green,.income){color:#65d6a0}
@media print{html[data-alp-theme="dark"],html[data-alp-theme="dark"] body{color-scheme:light;background:#fff;color:#000}html[data-alp-theme="dark"] #content :is(.card,th,td){background:#fff;color:#000}}

/* Overview owns explicit ink tokens; override them at the same scope. */
html[data-alp-theme="dark"] body.dashboard-mode:not(.auth-mode){--alp-overview-ink:#e5edf7;--alp-overview-amount:#e5edf7;--alp-overview-secondary:#a9b9cf;color:#e5edf7}
html[data-alp-theme="dark"] #content button:not(.primary,.orange,.active,.selected,.brand,.acc-danger-button,.page-primary-action,[aria-pressed="true"],[aria-current="page"]){background-color:#1c2a3e;color:#d4e3f5;border-color:#3b4c64}
html[data-alp-theme="dark"] body.dashboard-mode:not(.auth-mode) #ov-picker>summary{background:#1c2a3e;border-color:#3b4c64;color:#d4e3f5}
html[data-alp-theme="dark"] body.dashboard-mode:not(.auth-mode) :is(.dash-ring-number){fill:#e5edf7}
html[data-alp-theme="dark"] body.dashboard-mode:not(.auth-mode) :is(.dash-ring-caption){fill:#a9b9cf}
