:root { color-scheme: dark; }
[hidden] { display:none !important; }
html[data-theme="light"] { color-scheme: light; }
html[data-theme="light"] {
    --aurum-bg:#f3f6fa; --aurum-sidebar:#eef2f7; --aurum-panel:#ffffff; --aurum-panel-soft:#f7f9fc;
    --aurum-border:#d0d8e3; --aurum-border-soft:#e1e6ed; --aurum-text:#152033; --aurum-muted:#68778a;
    --td-bg:#f3f6fa; --td-sidebar:#eef2f7; --td-panel:#ffffff; --td-panel-soft:#f7f9fc;
    --td-border:#d0d8e3; --td-border-soft:#e1e6ed; --td-text:#152033; --td-muted:#68778a;
}
html[data-theme="light"] body { background:#f3f6fa !important; color:#152033 !important; }
html[data-theme="light"] .app-main,
html[data-theme="light"] .account-app-main,
html[data-theme="light"] .wrap { background:#f3f6fa !important; }
html[data-theme="light"] header,
html[data-theme="light"] .topbar,
html[data-theme="light"] .account-topbar,
html[data-theme="light"] .management-topbar { background:#ffffff !important; border-color:#d9e0e9 !important; }
html[data-theme="light"] .sidebar,
html[data-theme="light"] .account-sidebar { background:#eef2f7 !important; border-color:#d9e0e9 !important; }
html[data-theme="light"] .portfolio-card,
html[data-theme="light"] .summary-grid,
html[data-theme="light"] .metric,
html[data-theme="light"] .accounts-panel,
html[data-theme="light"] .table-wrap,
html[data-theme="light"] .chart-card,
html[data-theme="light"] .account-panel,
html[data-theme="light"] .account-metric,
html[data-theme="light"] .management-card,
html[data-theme="light"] .compact-form,
html[data-theme="light"] .user-item,
html[data-theme="light"] table,
html[data-theme="light"] .account-settings-panel,
html[data-theme="light"] .pin-modal-dialog,
html[data-theme="light"] .account-note-dialog { background:#ffffff !important; border-color:#d9e0e9 !important; color:#152033 !important; }
html[data-theme="light"] thead,
html[data-theme="light"] .filters,
html[data-theme="light"] .dashboard-range-filter,
html[data-theme="light"] .account-filter-bar,
html[data-theme="light"] .account-menu,
html[data-theme="light"] .dashboard-settings-menu { background:#f7f9fc !important; border-color:#d9e0e9 !important; }
html[data-theme="light"] th,
html[data-theme="light"] td,
html[data-theme="light"] .account-row,
html[data-theme="light"] .chart-body { border-color:#e2e7ee !important; }
html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea,
html[data-theme="light"] .filter-btn,
html[data-theme="light"] .filter,
html[data-theme="light"] .secondary-button,
html[data-theme="light"] .topbar-actions button { background:#f7f9fc !important; border-color:#cfd7e2 !important; color:#152033 !important; }
html[data-theme="light"] .title,
html[data-theme="light"] .account-title,
html[data-theme="light"] .account-topbar-title,
html[data-theme="light"] .section-title,
html[data-theme="light"] .metric-value,
html[data-theme="light"] .portfolio-value,
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] strong { color:#152033; }
html[data-theme="light"] .muted,
html[data-theme="light"] .subtitle,
html[data-theme="light"] .section-subtitle,
html[data-theme="light"] .account-sub,
html[data-theme="light"] small { color:#68778a; }
html[data-theme="light"] .account-row td,
html[data-theme="light"] .owner-cell { color:#334155 !important; }
html[data-theme="light"] .account-main { color:#172033 !important; }
html[data-theme="light"] .account-sub,
html[data-theme="light"] .table-secondary-value,
html[data-theme="light"] .status-active-since { color:#66758a !important; }
html[data-theme="light"] .positive,
html[data-theme="light"] .positive strong,
html[data-theme="light"] strong.positive { color:#20b982 !important; }
html[data-theme="light"] .negative,
html[data-theme="light"] .negative strong,
html[data-theme="light"] strong.negative { color:#ef4458 !important; }
html[data-theme="light"] .status { color:#526174 !important; }
html[data-theme="light"] .save-toast { background:#e7f8f1; color:#087958; border-color:#76caae; }
html[data-theme="light"] .max-positions-filters,
html[data-theme="light"] .position-performance-stat {
    background:#f8fafc !important;
    border-color:#d9e0e8 !important;
}
html[data-theme="light"] .max-positions-filter-field select {
    background:#fff !important;
    border-color:#cfd7e2 !important;
    color:#152033 !important;
}
html[data-theme="light"] .max-positions-filter-button {
    background:#fff !important;
    border-color:#cfd7e2 !important;
    color:#344256 !important;
}
html[data-theme="light"] .max-positions-filter-button.primary {
    background:#fff8da !important;
    border-color:#d8aa00 !important;
    color:#8a6500 !important;
}
html[data-theme="light"] .position-performance-stat strong { color:#152033 !important; }
html[data-theme="light"] .position-performance-table thead th,
html[data-theme="light"] .max-positions-table thead th { background:#f3f6f9 !important; }
html[data-theme="light"] .position-pattern-chip {
    background:#edf5ff !important;
    border-color:#bdd8f7 !important;
    color:#315f8d !important;
}
html[data-theme="light"] .position-pattern-chip strong { color:#163a60 !important; }
html[data-theme="light"] .pnl-export-button { background:#fff8da !important; border-color:#d8aa00 !important; color:#8a6500 !important; }

/* Kontodetail: vollständige helle Oberfläche statt dunkler Inseln. */
html[data-theme="light"] body[data-account-id] .card,
html[data-theme="light"] body[data-account-id] .collapsible-section,
html[data-theme="light"] body[data-account-id] .chart,
html[data-theme="light"] body[data-account-id] .equity-chart-card,
html[data-theme="light"] body[data-account-id] .drawdown-chart-card,
html[data-theme="light"] body[data-account-id] .cashflow-summary-item,
html[data-theme="light"] body[data-account-id] .max-positions-filters,
html[data-theme="light"] body[data-account-id] .settings-user-list,
html[data-theme="light"] body[data-account-id] .settings-user-option,
html[data-theme="light"] body[data-account-id] .account-settings,
html[data-theme="light"] body[data-account-id] .delete-admin-dialog {
    background:#ffffff !important;
    border-color:#d5dde8 !important;
    color:#152033 !important;
    box-shadow:0 12px 34px rgba(28,43,62,.08) !important;
}
html[data-theme="light"] body[data-account-id] .collapsible-section-header,
html[data-theme="light"] body[data-account-id] th {
    background:#f7f9fc !important;
    border-color:#dce3ec !important;
}
html[data-theme="light"] body[data-account-id] .section-toggle,
html[data-theme="light"] body[data-account-id] .card .value,
html[data-theme="light"] body[data-account-id] .cashflow-summary-value,
html[data-theme="light"] body[data-account-id] .chart-summary strong,
html[data-theme="light"] body[data-account-id] td,
html[data-theme="light"] body[data-account-id] .settings-user-option strong {
    color:#152033 !important;
}
html[data-theme="light"] body[data-account-id] .card .label,
html[data-theme="light"] body[data-account-id] .card .account-equity-value,
html[data-theme="light"] body[data-account-id] .card .profit-percent,
html[data-theme="light"] body[data-account-id] .card .drawdown-usd-value:not(.negative):not(.positive),
html[data-theme="light"] body[data-account-id] .chart-legend,
html[data-theme="light"] body[data-account-id] .chart-summary,
html[data-theme="light"] body[data-account-id] .drawdown-legend,
html[data-theme="light"] body[data-account-id] .positions-summary,
html[data-theme="light"] body[data-account-id] .bar-date,
html[data-theme="light"] body[data-account-id] .bar-value.neutral,
html[data-theme="light"] body[data-account-id] .cashflow-summary-label,
html[data-theme="light"] body[data-account-id] .table-empty,
html[data-theme="light"] body[data-account-id] .settings-user-option small {
    color:#68778a !important;
}
html[data-theme="light"] body[data-account-id] .chart-grid-line { stroke:#dce3ec !important; }
html[data-theme="light"] body[data-account-id] .chart-axis-label { fill:#68778a !important; }
html[data-theme="light"] body[data-account-id] .date-input { color-scheme:light; }
html[data-theme="light"] body[data-account-id] .back {
    background:#ffffff !important;
    border-color:#cfd7e2 !important;
    color:#334155 !important;
}
html[data-theme="light"] body[data-account-id] .account-sidebar-link:hover {
    background:#e5ebf3 !important;
    border-color:#d3dce7 !important;
    color:#253247 !important;
}
html[data-theme="light"] body[data-account-id] .account-sidebar-link.active {
    background:linear-gradient(90deg, rgba(241,196,15,.22), rgba(241,196,15,.07)) !important;
    border-color:rgba(196,150,0,.22) !important;
    color:#253247 !important;
    box-shadow:inset 2px 0 0 #d7aa00;
}
html[data-theme="light"] body[data-account-id] .account-sidebar-link.active > span:first-child { color:#b88900 !important; }
html[data-theme="light"] body[data-account-id] .account-menu-item { color:#253247 !important; }
html[data-theme="light"] body[data-account-id] .account-menu-item:hover { background:#e8edf4 !important; }
html[data-theme="light"] body[data-account-id] .positive,
html[data-theme="light"] body[data-account-id] .positive strong { color:#20b982 !important; }
html[data-theme="light"] body[data-account-id] .negative,
html[data-theme="light"] body[data-account-id] .negative strong { color:#ef4458 !important; }
html[data-theme="light"] body[data-account-id] .account-settings-modal,
html[data-theme="light"] body[data-account-id] .delete-admin-modal { background:rgba(32,45,62,.34) !important; }
.page-theme-toggle { min-height:38px; padding:8px 12px; border:1px solid #343a48; border-radius:9px; background:#171a21; color:#e6e9ee; cursor:pointer; }
html[data-theme="light"] .page-theme-toggle { background:#fff; border-color:#cfd7e2; color:#152033; }
.form-error.positive { color:#54d49b; }
.workspace-notification-dock { position:relative; flex:0 0 auto; margin-left:auto; z-index:300; }
.workspace-notification-button { position:relative; display:grid; place-items:center; width:38px; height:38px; padding:0 !important; border:1px solid #343a48 !important; border-radius:10px !important; background:#171a21 !important; color:#f3c847 !important; cursor:pointer; }
.workspace-notification-button > span { font-size:12px; }
.workspace-notification-button > b { position:absolute; top:-7px; right:-7px; min-width:19px; height:19px; display:grid; place-items:center; padding:0 5px; border:2px solid #0d1014; border-radius:99px; background:#ef4458; color:#fff; font-size:9px; }
.workspace-notification-popover { position:absolute; top:46px; right:0; width:min(390px,calc(100vw - 24px)); overflow:hidden; border:1px solid #303946; border-radius:13px; background:#151a21; color:#f4f6f8; box-shadow:0 22px 60px rgba(0,0,0,.38); }
.workspace-notification-head { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:13px 15px; border-bottom:1px solid #29313b; }
.workspace-notification-head a { color:#f3c847 !important; text-decoration:none; font-size:11px; }
.workspace-notification-preview { display:grid; max-height:360px; overflow:auto; }
.workspace-notification-preview > a { display:grid; grid-template-columns:1fr auto; gap:10px; padding:12px 15px; border-bottom:1px solid #252d37; color:#e9edf2 !important; text-decoration:none; }
.workspace-notification-preview > a.unread { background:rgba(80,212,165,.065); }
.workspace-notification-preview span { display:grid; gap:3px; }
.workspace-notification-preview small,.workspace-notification-preview time,.workspace-notification-preview p { color:#929eac !important; font-size:10px; }
.workspace-notification-preview p { padding:18px; text-align:center; }
html[data-theme="light"] .workspace-notification-button { background:#fff !important; border-color:#cfd7e2 !important; color:#b18400 !important; }
html[data-theme="light"] .workspace-notification-button > b { border-color:#fff; color:#fff !important; }
html[data-theme="light"] .workspace-notification-popover { background:#fff; border-color:#cfd7e2; color:#152033; box-shadow:0 20px 50px rgba(28,43,62,.18); }
html[data-theme="light"] .workspace-notification-head,html[data-theme="light"] .workspace-notification-preview>a { border-color:#e1e6ed; }
html[data-theme="light"] .workspace-notification-preview>a { color:#152033 !important; }
html[data-theme="light"] .workspace-notification-preview>a.unread { background:#ecfaf5; }
@media(max-width:700px){.workspace-notification-popover{position:fixed;top:65px;right:12px}}
