@charset "utf-8";

.app-theme-switch{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:3px;
    margin:0 0 12px;
    padding:3px;
    background:rgba(255,255,255,.035);
    border:1px solid var(--border);
    border-radius:8px;
}

.app-theme-switch button{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:4px;
    min-width:0;
    min-height:30px;
    margin:0;
    padding:5px 4px;
    border:0;
    border-radius:6px;
    background:transparent;
    color:var(--sub);
    font:700 10px/1 Arial,sans-serif;
    cursor:pointer;
}

.app-theme-switch button span{ font-size:12px; }
.app-theme-switch button b{ font:inherit; }
.app-theme-switch button:hover{ color:var(--text); background:rgba(79,141,247,.10); }
.app-theme-switch button.is-active{
    background:#1d4ed8;
    color:#fff;
    box-shadow:0 2px 8px rgba(29,78,216,.24);
}

html[data-theme="light"]{
    --bg:#f3f6fa;
    --card:#ffffff;
    --panel:#ffffff;
    --panel2:#f7f9fc;
    --text:#172033;
    --sub:#64748b;
    --border:#d8e1ec;
    --green:#079455;
    --red:#dc3545;
    --blue:#2563eb;
    --gold:#b77900;
    background:#f3f6fa;
    color-scheme:light;
}

html[data-theme="light"] body{
    background:#f3f6fa !important;
    color:#172033 !important;
}

html[data-theme="light"] .app-sidebar,
html[data-theme="light"] .dashboard-sidebar{
    background:#ffffff !important;
    border-color:#d8e1ec !important;
    box-shadow:8px 0 24px rgba(30,50,80,.05);
}

html[data-theme="light"] .app-sidebar-user,
html[data-theme="light"] .sidebar-user{
    background:#f5f8fc !important;
    border-color:#d8e1ec !important;
}

html[data-theme="light"] .app-sidebar-logo-text strong,
html[data-theme="light"] .app-sidebar-user-info strong,
html[data-theme="light"] .app-sidebar-menu a,
html[data-theme="light"] .sidebar-menu a{
    color:#172033 !important;
}

html[data-theme="light"] .app-sidebar-menu a:hover,
html[data-theme="light"] .app-sidebar-menu a.active,
html[data-theme="light"] .sidebar-menu a:hover,
html[data-theme="light"] .sidebar-menu a.active{
    background:#e8f0ff !important;
    color:#174ea6 !important;
}

html[data-theme="light"] .app-menu-icon,
html[data-theme="light"] .menu-icon{
    background:#edf3fb !important;
    border-color:#d7e2ef !important;
    color:#2563eb !important;
    box-shadow:none !important;
}

html[data-theme="light"] .app-theme-switch{
    background:#f1f5f9;
    border-color:#d8e1ec;
}

html[data-theme="light"] .app-theme-switch button.is-active{
    background:#ffffff;
    color:#174ea6;
    box-shadow:0 1px 5px rgba(30,50,80,.16);
}

html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea,
html[data-theme="light"] .control-select,
html[data-theme="light"] .control-input{
    background:#ffffff !important;
    border-color:#cbd7e5 !important;
    color:#172033 !important;
}

html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder{ color:#8795a8 !important; }

html[data-theme="light"] .trade-header,
html[data-theme="light"] .portfolio-controls,
html[data-theme="light"] .trade-table,
html[data-theme="light"] .trade-card,
html[data-theme="light"] .market-item,
html[data-theme="light"] .stock-row{
    background:#ffffff !important;
    border-color:#d8e1ec !important;
    color:#172033 !important;
    box-shadow:0 8px 22px rgba(30,50,80,.06);
}

html[data-theme="light"] .table-head{
    background:#eef3f8 !important;
    color:#53647a !important;
}

html[data-theme="light"] .stock-row:hover{ background:#f5f8fc !important; }
html[data-theme="light"] .price-status{ background:#ffffff !important; border-color:#d8e1ec !important; }

html[data-theme="light"] .dashboard-top,
html[data-theme="light"] .dash-stat-card,
html[data-theme="light"] .asset-dashboard,
html[data-theme="light"] .dashboard-chart-card,
html[data-theme="light"] .recent-box,
html[data-theme="light"] .security-mini,
html[data-theme="light"] .live-update-box{
    background:#ffffff !important;
    border-color:#d8e1ec !important;
    color:#172033 !important;
    box-shadow:0 8px 24px rgba(30,50,80,.07) !important;
}

html[data-theme="light"] .dash-stat-card::before{ opacity:.65; }
html[data-theme="light"] .dashboard-title,
html[data-theme="light"] .dashboard-section-title,
html[data-theme="light"] .dash-stat-card strong,
html[data-theme="light"] .asset-row strong,
html[data-theme="light"] .recent-box h3{ color:#172033 !important; }

html[data-theme="light"] .asset-row,
html[data-theme="light"] .recent-item,
html[data-theme="light"] .security-details{
    border-color:#e0e7f0 !important;
}

html[data-theme="light"] .daily-change-modal-backdrop,
html[data-theme="light"] .stock-daily-backdrop{ background:rgba(30,41,59,.42) !important; }

html[data-theme="light"] .daily-change-modal-panel,
html[data-theme="light"] .daily-change-modal-panel > header,
html[data-theme="light"] .stock-daily-panel,
html[data-theme="light"] .stock-daily-panel > header,
html[data-theme="light"] .stock-daily-body{
    background:#ffffff !important;
    border-color:#d8e1ec !important;
    color:#172033 !important;
}

html[data-theme="light"] .daily-detail-summary > div,
html[data-theme="light"] .stock-daily-summary > div,
html[data-theme="light"] .daily-detail-notice,
html[data-theme="light"] .stock-daily-notice,
html[data-theme="light"] .daily-contribution-grid h3,
html[data-theme="light"] .stock-daily-contribution-grid h3{
    background:#f5f8fc !important;
    border-color:#d8e1ec !important;
    color:#172033 !important;
}

html[data-theme="light"] .daily-change-modal-panel h2,
html[data-theme="light"] .stock-daily-panel h2,
html[data-theme="light"] .daily-detail-summary strong,
html[data-theme="light"] .stock-daily-summary strong,
html[data-theme="light"] .daily-contribution-row strong,
html[data-theme="light"] .stock-daily-contributor strong{
    color:#172033 !important;
}

html[data-theme="light"] .daily-modal-close,
html[data-theme="light"] .stock-daily-close{
    background:#eef3f8 !important;
    border-color:#ccd8e6 !important;
    color:#334155 !important;
}

html[data-theme="light"] .positive,
html[data-theme="light"] .green{ color:#079455 !important; }
html[data-theme="light"] .negative,
html[data-theme="light"] .red{ color:#dc3545 !important; }

/* Asset pages: currency and shared forms */
html[data-theme="light"] .asset-stat-card,
html[data-theme="light"] .asset-form-card,
html[data-theme="light"] .asset-table-card,
html[data-theme="light"] .fx-live-section,
html[data-theme="light"] .fx-rate-card,
html[data-theme="light"] .fx-chart-section,
html[data-theme="light"] .fx-mini-stat,
html[data-theme="light"] .fx-chart-canvas-wrap{
    background:#ffffff !important;
    border-color:#d8e1ec !important;
    color:#172033 !important;
    box-shadow:0 8px 24px rgba(30,50,80,.07) !important;
}

html[data-theme="light"] .fx-rate-values div,
html[data-theme="light"] .fx-chart-empty,
html[data-theme="light"] .fx-range-btn,
html[data-theme="light"] .asset-modal-box{
    background:#f5f8fc !important;
    border-color:#d8e1ec !important;
    color:#172033 !important;
}

html[data-theme="light"] .asset-row{
    border-color:#e2e8f0 !important;
    color:#172033 !important;
}

html[data-theme="light"] .asset-back,
html[data-theme="light"] .asset-btn.muted,
html[data-theme="light"] .secondary-btn{
    background:#eef3f8 !important;
    border-color:#ccd8e6 !important;
    color:#334155 !important;
}

html[data-theme="light"] .fx-chart-tooltip{
    background:#ffffff !important;
    border-color:#cbd7e5 !important;
    color:#172033 !important;
    box-shadow:0 14px 38px rgba(30,50,80,.18) !important;
}

/* Gold */
html[data-theme="light"] .gold-status div,
html[data-theme="light"] .gold-card,
html[data-theme="light"] .gold-rates-box,
html[data-theme="light"] .gold-form-box,
html[data-theme="light"] .gold-assets-box,
html[data-theme="light"] .gold-rate-card,
html[data-theme="light"] .gold-asset-row,
html[data-theme="light"] .g5-chart-box,
html[data-theme="light"] .g5-kpi,
html[data-theme="light"] .g5-chart-stage,
html[data-theme="light"] .g5-brush-wrap{
    background:#ffffff !important;
    border-color:#e1d5ad !important;
    color:#172033 !important;
    box-shadow:0 8px 24px rgba(80,60,20,.07) !important;
}

html[data-theme="light"] .gold-modal-card,
html[data-theme="light"] .g5-tooltip,
html[data-theme="light"] .g5-empty,
html[data-theme="light"] .g5-range-btn,
html[data-theme="light"] .g5-series-btn{
    background:#fffdf7 !important;
    border-color:#e6d8aa !important;
    color:#172033 !important;
}

html[data-theme="light"] .gold-modal{ background:rgba(30,41,59,.40) !important; }

html[data-theme="light"] .gold-rates-box{
    background:
        radial-gradient(circle at 9% 0%,rgba(255,255,255,.76),transparent 28%),
        linear-gradient(135deg,#fff4c7 0%,#f9dc72 52%,#e6b63c 100%) !important;
    border-color:#e2bd50 !important;
    color:#3c2907 !important;
}

html[data-theme="light"] .gold-rates-box .gold-rate-card{
    background:
        radial-gradient(circle at 100% 0%,rgba(247,201,72,.18),transparent 34%),
        linear-gradient(150deg,#2c2417,#111827) !important;
    border-color:rgba(181,132,25,.52) !important;
    color:#fff7d5 !important;
    box-shadow:0 10px 22px rgba(89,61,8,.18) !important;
}

html[data-theme="light"] .g5-range-btn.active,
html[data-theme="light"] .g5-series-btn.active{
    background:linear-gradient(135deg,#b8871f,#f7c948) !important;
    border-color:#c79524 !important;
    color:#111827 !important;
    box-shadow:0 4px 12px rgba(184,135,31,.22) !important;
}

html[data-theme="light"] .g5-range-btn:not(.active):hover,
html[data-theme="light"] .g5-series-btn:not(.active):hover{
    background:#fff4c7 !important;
    border-color:#d6b85f !important;
    color:#6d4b08 !important;
}

html[data-theme="light"] .g5-chart-badge{
    background:#fff5cf !important;
    border-color:#dfc267 !important;
    color:#72500c !important;
}

html[data-theme="light"] .gold-header h1,
html[data-theme="light"] .gold-card strong,
html[data-theme="light"] .gold-status strong,
html[data-theme="light"] .gold-asset-row strong,
html[data-theme="light"] .gold-form-box h3,
html[data-theme="light"] .gold-assets-box h3,
html[data-theme="light"] .g5-chart-head h3,
html[data-theme="light"] .g5-kpi strong{
    color:#172033 !important;
}

html[data-theme="light"] .gold-header p,
html[data-theme="light"] .gold-card span,
html[data-theme="light"] .gold-card small,
html[data-theme="light"] .gold-status span,
html[data-theme="light"] .gold-asset-row small,
html[data-theme="light"] .gold-table-head,
html[data-theme="light"] .g5-chart-head p,
html[data-theme="light"] .g5-kpi span,
html[data-theme="light"] .g5-kpi small,
html[data-theme="light"] .g5-legend,
html[data-theme="light"] .g5-note{
    color:#64748b !important;
}

html[data-theme="light"] .gold-status-active{
    background:#e9f9f0 !important;
    border-color:#86d7ad !important;
    color:#087443 !important;
}

html[data-theme="light"] .gold-status-cache{
    background:#fff6d8 !important;
    border-color:#e1c15b !important;
    color:#76530a !important;
}

html[data-theme="light"] .gold-status-offline{
    background:#fff0f1 !important;
    border-color:#efb2b8 !important;
    color:#a52a38 !important;
}

html[data-theme="light"] .gold-modal-card h3,
html[data-theme="light"] #g5ChartLastSource,
html[data-theme="light"] #g5ChartLast[data-live-sell-price]{
    color:#76530a !important;
}

html[data-theme="light"] .g5-tooltip{
    background:rgba(255,255,255,.97) !important;
    border-color:#d4b453 !important;
    color:#172033 !important;
    text-shadow:none !important;
    box-shadow:0 12px 28px rgba(30,50,80,.16) !important;
}

html[data-theme="light"] .g5-tooltip strong{
    color:#76530a !important;
}

html[data-theme="light"] .gold-card strong.positive,
html[data-theme="light"] .gold-status strong.positive,
html[data-theme="light"] .g5-kpi strong.positive{
    color:#087443 !important;
}

html[data-theme="light"] .gold-card strong.negative,
html[data-theme="light"] .gold-status strong.negative,
html[data-theme="light"] .g5-kpi strong.negative{
    color:#b42334 !important;
}

/* Cash */
html[data-theme="light"] .cash-hero,
html[data-theme="light"] .cash-kpi-card,
html[data-theme="light"] .cash-form-panel,
html[data-theme="light"] .cash-panel,
html[data-theme="light"] .cash-insight,
html[data-theme="light"] .cash-row,
html[data-theme="light"] .cash-modal-box{
    background:#ffffff !important;
    border-color:#d8e1ec !important;
    color:#172033 !important;
    box-shadow:0 8px 24px rgba(30,50,80,.07) !important;
}

html[data-theme="light"] .cash-bar-track,
html[data-theme="light"] .cash-table-head,
html[data-theme="light"] .cash-filter-chips{
    background:#eef3f8 !important;
    border-color:#d8e1ec !important;
    color:#53647a !important;
}

html[data-theme="light"] .cash-modal{ background:rgba(30,41,59,.40) !important; }

html[data-theme="light"] .cash-projection-grid div,
html[data-theme="light"] .cash-legend-row,
html[data-theme="light"] .cash-bar-row,
html[data-theme="light"] .cash-insight,
html[data-theme="light"] .cash-empty{
    background:#f7f9fc !important;
    border-color:#d8e1ec !important;
    color:#172033 !important;
}

html[data-theme="light"] .cash-filter-chips{
    background:transparent !important;
    border:0 !important;
}

html[data-theme="light"] .cash-filter-chips button{
    background:#ffffff !important;
    border-color:#cbd7e5 !important;
    color:#334155 !important;
    box-shadow:0 2px 7px rgba(30,50,80,.06);
}

html[data-theme="light"] .cash-filter-chips button:hover,
html[data-theme="light"] .cash-filter-chips button:focus-visible{
    background:#fff0f1 !important;
    border-color:#ef9aa3 !important;
    color:#b42334 !important;
}

html[data-theme="light"] .cash-page .btn.muted{
    background:#eef3f8 !important;
    border-color:#cbd7e5 !important;
    color:#334155 !important;
}

html[data-theme="light"] .cash-page .btn.danger{
    background:#fff0f1 !important;
    border:1px solid #efb2b8 !important;
    color:#b42334 !important;
}

html[data-theme="light"] .cash-toast{
    background:#ffffff !important;
    border-color:#cbd7e5 !important;
    color:#172033 !important;
    box-shadow:0 18px 45px rgba(30,50,80,.18) !important;
}

html[data-theme="light"] .cash-toast.success{
    background:#ecfdf3 !important;
    border-color:#86d7ad !important;
    color:#08633b !important;
}

html[data-theme="light"] .cash-toast.error{
    background:#fff0f1 !important;
    border-color:#efb2b8 !important;
    color:#9f2431 !important;
}

html[data-theme="light"] .cash-toast button{
    background:rgba(51,65,85,.08) !important;
    color:#334155 !important;
}

/* Reports */
html[data-theme="light"] .report-hero,
html[data-theme="light"] .report-kpi-card,
html[data-theme="light"] .report-module-card,
html[data-theme="light"] .report-insight-card,
html[data-theme="light"] .report-panel,
html[data-theme="light"] .report-comparison-row,
html[data-theme="light"] .report-table-row{
    background:#ffffff !important;
    border-color:#d8e1ec !important;
    color:#172033 !important;
    box-shadow:0 8px 24px rgba(30,50,80,.07) !important;
}

html[data-theme="light"] .report-bar-track,
html[data-theme="light"] .report-table-head,
html[data-theme="light"] .report-group-chart,
html[data-theme="light"] .report-group-summary > div,
html[data-theme="light"] .report-group-period{
    background:#f2f6fa !important;
    border-color:#d8e1ec !important;
    color:#53647a !important;
}

html[data-theme="light"] .report-group-range-switch,
html[data-theme="light"] .report-group-range-btn,
html[data-theme="light"] .rg-row,
html[data-theme="light"] .rg-loading{
    background:#ffffff !important;
    border-color:#d8e1ec !important;
    color:#53647a !important;
}

html[data-theme="light"] .report-group-range-btn.active{
    background:#e7effd !important;
    color:#174ea6 !important;
}

html[data-theme="light"] .report-daily-backdrop{ background:rgba(30,41,59,.42) !important; }
html[data-theme="light"] .report-daily-panel,
html[data-theme="light"] .report-daily-panel > header,
html[data-theme="light"] .report-daily-body{
    background:#ffffff !important;
    border-color:#d8e1ec !important;
    color:#172033 !important;
}

html[data-theme="light"] .report-daily-summary > div,
html[data-theme="light"] .report-daily-notice,
html[data-theme="light"] .report-daily-table th,
html[data-theme="light"] .report-daily-contributor-grid h3{
    background:#f5f8fc !important;
    border-color:#d8e1ec !important;
    color:#172033 !important;
}

html[data-theme="light"] .report-daily-panel h2,
html[data-theme="light"] .report-daily-summary strong,
html[data-theme="light"] .report-daily-table,
html[data-theme="light"] .report-daily-contributor strong{
    color:#172033 !important;
}

/* Analysis */
html[data-theme="light"] .analysis-hero,
html[data-theme="light"] .analysis-kpi-card,
html[data-theme="light"] .analysis-profile-panel,
html[data-theme="light"] .analysis-panel,
html[data-theme="light"] .analysis-signal-card,
html[data-theme="light"] .analysis-decision-item,
html[data-theme="light"] .analysis-detail-row{
    background:#ffffff !important;
    border-color:#d8e1ec !important;
    color:#172033 !important;
    box-shadow:0 8px 24px rgba(30,50,80,.07) !important;
}

html[data-theme="light"] .analysis-status,
html[data-theme="light"] .analysis-toolbar,
html[data-theme="light"] .analysis-target-track,
html[data-theme="light"] .analysis-table-head{
    background:#eef5fb !important;
    border-color:#d8e1ec !important;
    color:#3f5f7e !important;
}

/* Settings */
html[data-theme="light"]{
    --settings-bg:#f3f6fa;
    --settings-panel:#ffffff;
    --settings-panel-2:#f7f9fc;
    --settings-border:#d8e1ec;
    --settings-border-strong:#b9c9dd;
    --settings-text:#172033;
    --settings-sub:#64748b;
}

html[data-theme="light"] .settings-hero,
html[data-theme="light"] .settings-metric,
html[data-theme="light"] .settings-side-panel,
html[data-theme="light"] .settings-panel,
html[data-theme="light"] .settings-option,
html[data-theme="light"] .notification-channel,
html[data-theme="light"] .settings-save-bar,
html[data-theme="light"] .settings-user-card{
    background:#ffffff !important;
    border-color:#d8e1ec !important;
    color:#172033 !important;
    box-shadow:0 8px 24px rgba(30,50,80,.07) !important;
}

html[data-theme="light"] .settings-search-box,
html[data-theme="light"] .settings-nav-item,
html[data-theme="light"] .settings-side-status,
html[data-theme="light"] .settings-info-banner,
html[data-theme="light"] .notification-channel-field{
    background:#f5f8fc !important;
    border-color:#d8e1ec !important;
    color:#53647a !important;
}

html[data-theme="light"] .settings-nav-item.is-active{
    background:#e8f0ff !important;
    border-color:#bfd1ed !important;
    color:#174ea6 !important;
}

html[data-theme="light"] .settings-action-link.is-muted,
html[data-theme="light"] .settings-secondary-button{
    background:#eef3f8 !important;
    border-color:#ccd8e6 !important;
    color:#334155 !important;
}

/* Profile */
html[data-theme="light"] .profile-hero,
html[data-theme="light"] .profile-metric,
html[data-theme="light"] .profile-side-card,
html[data-theme="light"] .profile-panel,
html[data-theme="light"] .profile-field,
html[data-theme="light"] .profile-notification-panel,
html[data-theme="light"] .profile-notification-card,
html[data-theme="light"] .profile-save-bar{
    background:#ffffff !important;
    border-color:#d8e1ec !important;
    color:#172033 !important;
    box-shadow:0 8px 24px rgba(30,50,80,.07) !important;
}

html[data-theme="light"] .profile-nav,
html[data-theme="light"] .profile-nav-item,
html[data-theme="light"] .profile-side-security,
html[data-theme="light"] .profile-consent-box,
html[data-theme="light"] .profile-notification-summary{
    background:#f5f8fc !important;
    border-color:#d8e1ec !important;
    color:#53647a !important;
}

html[data-theme="light"] .profile-nav-item.is-active{
    background:#e8f0ff !important;
    color:#174ea6 !important;
}

/* Price alerts */
html[data-theme="light"] .alert-hero,
html[data-theme="light"] .alert-stat-card,
html[data-theme="light"] .alert-form-card,
html[data-theme="light"] .alert-table-card,
html[data-theme="light"] .alert-row,
html[data-theme="light"] .alert-channel-card,
html[data-theme="light"] .alert-notification-card,
html[data-theme="light"] .alert-notification-row,
html[data-theme="light"] .alert-modal-box{
    background:#ffffff !important;
    border-color:#d8e1ec !important;
    color:#172033 !important;
    box-shadow:0 8px 24px rgba(30,50,80,.07) !important;
}

html[data-theme="light"] .alert-toolbar,
html[data-theme="light"] .alert-table-top,
html[data-theme="light"] .alert-notification-head,
html[data-theme="light"] .alert-notification-toolbar,
html[data-theme="light"] .alert-notification-summary{
    background:#f2f6fa !important;
    border-color:#d8e1ec !important;
    color:#53647a !important;
}

html[data-theme="light"] .alert-modal,
html[data-theme="light"] .alert-critical-overlay{ background:rgba(30,41,59,.42) !important; }

html[data-theme="light"] .alert-gold-form-card{
    background:
        radial-gradient(circle at 94% 0,rgba(255,201,40,.18),transparent 36%),
        #ffffff !important;
    border-color:#dfc267 !important;
}

html[data-theme="light"] .alert-section-kicker.gold,
html[data-theme="light"] .alert-badge.gold{
    background:#fff5cf !important;
    border-color:#dfc267 !important;
    color:#76530a !important;
    box-shadow:none !important;
}

html[data-theme="light"] .alert-gold-form-note{
    color:#76530a !important;
}

html[data-theme="light"] .alert-row-gold{
    background:linear-gradient(90deg,rgba(255,201,40,.10),#ffffff 36%) !important;
    border-color:#ead99b !important;
}

html[data-theme="light"] .alert-edit-asset-info,
html[data-theme="light"] .alert-refresh-status{
    background:#f5f8fc !important;
    border-color:#cbd7e5 !important;
    color:#334155 !important;
    box-shadow:none !important;
}

html[data-theme="light"] .alert-refresh-item strong{
    color:#172033 !important;
}

html[data-theme="light"] .alert-refresh-interval,
html[data-theme="light"] .alert-refresh-item small{
    color:#64748b !important;
}

html[data-theme="light"] .alert-refresh-divider{
    background:#cbd7e5 !important;
}

html[data-theme="light"] .alert-refresh-state.is-idle{
    background:#e8f0ff !important;
    color:#174ea6 !important;
}

html[data-theme="light"] .alert-refresh-state.is-running{
    background:#fff5cf !important;
    color:#76530a !important;
}

html[data-theme="light"] .alert-refresh-state.is-saving{
    background:#e9f9f0 !important;
    color:#087443 !important;
}

html[data-theme="light"] .alert-refresh-state.is-error{
    background:#fff0f1 !important;
    color:#a52a38 !important;
}

html[data-theme="light"] .alert-btn.muted,
html[data-theme="light"] .alert-actions .alert-btn.muted{
    background:#eef3f8 !important;
    border-color:#c5d2e2 !important;
    color:#334155 !important;
    box-shadow:none !important;
}

html[data-theme="light"] .alert-btn.muted:hover:not(:disabled),
html[data-theme="light"] .alert-actions .alert-btn.muted:hover:not(:disabled){
    background:#e2eaf3 !important;
    border-color:#9fb1c6 !important;
    color:#172033 !important;
}

html[data-theme="light"] .alert-btn.danger,
html[data-theme="light"] .alert-actions .alert-btn.danger{
    background:#fff0f1 !important;
    border-color:#efb2b8 !important;
    color:#a52a38 !important;
    box-shadow:none !important;
}

html[data-theme="light"] .alert-btn.danger:hover:not(:disabled),
html[data-theme="light"] .alert-actions .alert-btn.danger:hover:not(:disabled){
    background:#fde1e4 !important;
    border-color:#df8791 !important;
    color:#861e2b !important;
}

html[data-theme="light"] .alert-status.waiting{
    background:#fff5cf !important;
    color:#76530a !important;
}

html[data-theme="light"] .alert-status.triggered{
    background:#e9f9f0 !important;
    color:#087443 !important;
}

html[data-theme="light"] .alert-status.passive{
    background:#eef3f8 !important;
    color:#53647a !important;
}

html[data-theme="light"] .alert-channel-pill{
    background:#ffffff !important;
    border-color:#cbd7e5 !important;
    color:#334155 !important;
}

html[data-theme="light"] .alert-channel-pill.active{
    border-color:#86d7ad !important;
    box-shadow:0 0 0 2px rgba(8,116,67,.06) !important;
}

html[data-theme="light"] .alert-channel-pill.active small{
    background:#e9f9f0 !important;
    color:#087443 !important;
}

html[data-theme="light"] .alert-channel-pill.inactive small{
    background:#eef3f8 !important;
    color:#64748b !important;
}

html[data-theme="light"] .alert-notification-summary > span{
    background:#e8f0ff !important;
    border-color:#bfd1ed !important;
    color:#174ea6 !important;
}

html[data-theme="light"] .alert-notification-summary strong{
    color:#123f7a !important;
}

html[data-theme="light"] .alert-kicker,
html[data-theme="light"] .alert-section-kicker,
html[data-theme="light"] .alert-badge:not(.gold){
    background:#e8f0ff !important;
    border-color:#bfd1ed !important;
    color:#174ea6 !important;
    box-shadow:none !important;
}

html[data-theme="light"] .alert-notification-row{
    background:#ffffff !important;
    border-color:#d8e1ec !important;
    color:#172033 !important;
    opacity:1 !important;
}

html[data-theme="light"] .alert-notification-row.unread{
    background:linear-gradient(90deg,#edf4ff,#ffffff 42%) !important;
    border-color:#9bbce9 !important;
    box-shadow:0 4px 14px rgba(29,78,216,.08) !important;
}

html[data-theme="light"] .alert-notification-row.read{
    background:#f7f9fc !important;
    border-color:#d8e1ec !important;
}

html[data-theme="light"] .alert-notification-row.read .alert-notification-title{
    color:#3f4f63 !important;
}

html[data-theme="light"] .alert-notification-row.read .alert-notification-message{
    color:#64748b !important;
}

html[data-theme="light"] .alert-notification-title{
    color:#172033 !important;
}

html[data-theme="light"] .alert-notification-message{
    color:#3f4f63 !important;
}

html[data-theme="light"] .alert-notification-meta{
    color:#64748b !important;
}

html[data-theme="light"] .alert-mini-btn{
    background:#e8f0ff !important;
    border-color:#b8cceb !important;
    color:#174ea6 !important;
}

html[data-theme="light"] .alert-mini-btn:hover{
    background:#dce9fb !important;
    border-color:#8eadd9 !important;
    color:#123f7a !important;
    box-shadow:0 5px 12px rgba(29,78,216,.10) !important;
}

html[data-theme="light"] .alert-mini-btn.danger{
    background:#fff0f1 !important;
    border-color:#efb2b8 !important;
    color:#a52a38 !important;
}

html[data-theme="light"] .alert-mini-btn.danger:hover{
    background:#fde1e4 !important;
    border-color:#df8791 !important;
    color:#861e2b !important;
    box-shadow:0 5px 12px rgba(180,35,52,.10) !important;
}

html[data-theme="light"] .alert-notification-empty{
    background:#f7f9fc !important;
    border-color:#cbd7e5 !important;
    color:#64748b !important;
}

html[data-theme="light"] .alert-notification-empty.error,
html[data-theme="light"] .alert-channel-error{
    color:#a52a38 !important;
}

html[data-theme="light"] .alert-live-toast{
    background:rgba(255,255,255,.98) !important;
    border-color:#9fcbd8 !important;
    box-shadow:0 18px 45px rgba(30,50,80,.18) !important;
}

html[data-theme="light"] .alert-live-toast-icon{
    background:#e7f7fb !important;
    color:#13748b !important;
}

html[data-theme="light"] .alert-live-toast-copy strong{
    color:#172033 !important;
}

html[data-theme="light"] .alert-live-toast-copy span{
    color:#53647a !important;
}

html[data-theme="light"] .alert-live-toast-close{
    background:#eef3f8 !important;
    color:#53647a !important;
}

html[data-theme="light"] .alert-live-toast-close:hover{
    background:#e2eaf3 !important;
    color:#172033 !important;
}

/* Stock detail and stock analysis */
html[data-theme="light"] .detail-card,
html[data-theme="light"] .detail-chart-box,
html[data-theme="light"] .detail-info-box,
html[data-theme="light"] .advanced-analysis-panel,
html[data-theme="light"] .advanced-chart-box,
html[data-theme="light"] .analysis-notes-card,
html[data-theme="light"] .analysis-signal-card,
html[data-theme="light"] .position-modal-card,
html[data-theme="light"] .analysis-card,
html[data-theme="light"] .analysis-panel,
html[data-theme="light"] .chart-panel,
html[data-theme="light"] .decision-panel,
html[data-theme="light"] .premium-strategy-panel,
html[data-theme="light"] .usd-analysis-panel,
html[data-theme="light"] .usd-chart-card,
html[data-theme="light"] .strategy-chart-box,
html[data-theme="light"] .strategy-decision-box{
    background:#ffffff !important;
    border-color:#d8e1ec !important;
    color:#172033 !important;
    box-shadow:0 8px 24px rgba(30,50,80,.07) !important;
}

html[data-theme="light"] .advanced-chart-toolbar,
html[data-theme="light"] .advanced-chart-metrics,
html[data-theme="light"] .analysis-table,
html[data-theme="light"] .analysis-data-quality,
html[data-theme="light"] .decision-comment,
html[data-theme="light"] .score-list,
html[data-theme="light"] .strategy-kpi-grid > div,
html[data-theme="light"] .usd-kpi-grid > div{
    background:#f3f7fb !important;
    border-color:#d8e1ec !important;
    color:#53647a !important;
}

html[data-theme="light"] .position-modal{ background:rgba(30,41,59,.42) !important; }
html[data-theme="light"] .detail-chart-tooltip{ background:#fff !important; color:#172033 !important; border-color:#cbd7e5 !important; }

/* Asset performance */
html[data-theme="light"] .report-performance-panel,
html[data-theme="light"] .asset-performance-table-panel,
html[data-theme="light"] .asset-performance-row,
html[data-theme="light"] .asset-performance-chart-wrap{
    background:#ffffff !important;
    border-color:#d8e1ec !important;
    color:#172033 !important;
    box-shadow:0 8px 24px rgba(30,50,80,.07) !important;
}

html[data-theme="light"] .report-performance-summary > div,
html[data-theme="light"] .report-range-switch,
html[data-theme="light"] .report-range-btn,
html[data-theme="light"] .asset-performance-chart-tabs,
html[data-theme="light"] .asset-performance-chart-tab,
html[data-theme="light"] .asset-performance-toolbar{
    background:#f2f6fa !important;
    border-color:#d8e1ec !important;
    color:#53647a !important;
}

html[data-theme="light"] .report-range-btn.active,
html[data-theme="light"] .asset-performance-chart-tab.active{
    background:#e8f0ff !important;
    color:#174ea6 !important;
}

html[data-theme="light"] .report-performance-tooltip{
    background:#ffffff !important;
    color:#172033 !important;
    border-color:#cbd7e5 !important;
    box-shadow:0 14px 38px rgba(30,50,80,.18) !important;
}

/* Admin and users */
html[data-theme="light"] .admin-hero,
html[data-theme="light"] .admin-kpi-card,
html[data-theme="light"] .admin-panel,
html[data-theme="light"] .admin-module-card,
html[data-theme="light"] .admin-command-card,
html[data-theme="light"] .admin-signal-card,
html[data-theme="light"] .admin-health-row,
html[data-theme="light"] .admin-user-row,
html[data-theme="light"] .admin-log-row,
html[data-theme="light"] .users-hero,
html[data-theme="light"] .users-kpi-card,
html[data-theme="light"] .users-panel,
html[data-theme="light"] .users-insight,
html[data-theme="light"] .users-row,
html[data-theme="light"] .users-modal-box,
html[data-theme="light"] .users-detail-stat,
html[data-theme="light"] .users-log-row{
    background:#ffffff !important;
    border-color:#d8e1ec !important;
    color:#172033 !important;
    box-shadow:0 8px 24px rgba(30,50,80,.07) !important;
}

html[data-theme="light"] .admin-section-head,
html[data-theme="light"] .admin-signal-bar,
html[data-theme="light"] .users-table-head,
html[data-theme="light"] .users-toolbar,
html[data-theme="light"] .users-chips{
    background:#f2f6fa !important;
    border-color:#d8e1ec !important;
    color:#53647a !important;
}

html[data-theme="light"] .users-modal{ background:rgba(30,41,59,.42) !important; }

/* Logs and audit tables */
html[data-theme="light"] .logs-top,
html[data-theme="light"] .logs-stat-action,
html[data-theme="light"] .logs-filter-card,
html[data-theme="light"] .logs-row,
html[data-theme="light"] .logs-pagination{
    background:#ffffff !important;
    border-color:#d8e1ec !important;
    color:#172033 !important;
    box-shadow:0 8px 24px rgba(30,50,80,.06) !important;
}

html[data-theme="light"] .logs-table-head,
html[data-theme="light"] .logs-toolbar,
html[data-theme="light"] .logs-page-controls,
html[data-theme="light"] .logs-page-size,
html[data-theme="light"] .logs-page-jump{
    background:#f2f6fa !important;
    border-color:#d8e1ec !important;
    color:#53647a !important;
}

html[data-theme="light"] .logs-page-btn,
html[data-theme="light"] .logs-page-number{
    background:#ffffff !important;
    border-color:#cbd7e5 !important;
    color:#334155 !important;
}

html[data-theme="light"] .logs-page-number.active{
    background:#2563eb !important;
    border-color:#2563eb !important;
    color:#ffffff !important;
}

/* Dashboard precision overrides */
html[data-theme="light"] .asset-summary-box,
html[data-theme="light"] .asset-chart-box,
html[data-theme="light"] .asset-row,
html[data-theme="light"] .asset-total-row,
html[data-theme="light"] .asset-note,
html[data-theme="light"] .legend-item,
html[data-theme="light"] .quick-card{
    background:#ffffff !important;
    border-color:#d8e1ec !important;
    color:#172033 !important;
    box-shadow:none !important;
}

html[data-theme="light"] .asset-row:hover,
html[data-theme="light"] .quick-card:hover{
    background:#f7f9fc !important;
    border-color:#b9c9dd !important;
}

html[data-theme="light"] .asset-percent,
html[data-theme="light"] .asset-note,
html[data-theme="light"] .legend-item em,
html[data-theme="light"] .dash-stat-card span,
html[data-theme="light"] .dash-stat-card small,
html[data-theme="light"] .daily-change-range{
    color:#64748b !important;
}

html[data-theme="light"] .stat-info{
    background:#e8f0ff !important;
    color:#174ea6 !important;
}

html[data-theme="light"] .stat-info::after{
    background:#ffffff !important;
    border-color:#cbd7e5 !important;
    color:#172033 !important;
    box-shadow:0 12px 28px rgba(30,50,80,.18) !important;
}

html[data-theme="light"] .stat-info::before{
    border-top-color:#ffffff !important;
}

html[data-theme="light"] .daily-detail-summary span,
html[data-theme="light"] .daily-detail-summary small,
html[data-theme="light"] .daily-detail-notice,
html[data-theme="light"] .daily-detail-empty,
html[data-theme="light"] .daily-detail-table td small,
html[data-theme="light"] .daily-contribution-row small{
    color:#64748b !important;
}

html[data-theme="light"] .daily-detail-table-wrap,
html[data-theme="light"] .daily-contribution-grid > section{
    background:#ffffff !important;
    border-color:#d8e1ec !important;
}

html[data-theme="light"] .daily-detail-table{
    color:#334155 !important;
}

html[data-theme="light"] .daily-detail-table th{
    background:#eef3f8 !important;
    color:#53647a !important;
}

html[data-theme="light"] .daily-detail-table th,
html[data-theme="light"] .daily-detail-table td,
html[data-theme="light"] .daily-contribution-row{
    border-color:#e0e7f0 !important;
}

html[data-theme="light"] .daily-incomplete-list{
    border-color:#e1c15b !important;
}

html[data-theme="light"] .daily-incomplete-list li{
    background:#fff9e8 !important;
    border-color:#ead99b !important;
}

html[data-theme="light"] .daily-incomplete-list strong{
    color:#76530a !important;
}

html[data-theme="light"] .daily-incomplete-list span{
    color:#7b6840 !important;
}

html[data-theme="light"] .daily-detail-notice.warning{
    background:#fff9e8 !important;
    border-color:#d6a914 !important;
    color:#76530a !important;
}

/* Analysis controls */
html[data-theme="light"] .analysis-page .btn.muted{
    background:#eef3f8 !important;
    border-color:#c5d2e2 !important;
    color:#334155 !important;
}

html[data-theme="light"] .analysis-profile-buttons button{
    background:#ffffff !important;
    border-color:#cbd7e5 !important;
    color:#334155 !important;
}

html[data-theme="light"] .analysis-profile-buttons button:hover{
    background:#edf4ff !important;
    border-color:#9bbce9 !important;
    color:#174ea6 !important;
}

html[data-theme="light"] .analysis-profile-buttons button.active{
    background:#2563eb !important;
    border-color:#2563eb !important;
    color:#ffffff !important;
    box-shadow:0 5px 14px rgba(37,99,235,.18) !important;
}

/* Profile typography and controls */
html[data-theme="light"]{
    --profile-panel:#ffffff;
    --profile-panel-2:#f7f9fc;
    --profile-border:#d8e1ec;
    --profile-text:#172033;
    --profile-sub:#64748b;
}

html[data-theme="light"] .profile-hero h1,
html[data-theme="light"] .profile-metric strong,
html[data-theme="light"] .profile-side-head h2,
html[data-theme="light"] .profile-panel h2,
html[data-theme="light"] .profile-field > span,
html[data-theme="light"] .profile-consent strong,
html[data-theme="light"] .profile-whatsapp-note strong,
html[data-theme="light"] .profile-save-bar strong,
html[data-theme="light"] .profile-notification-summary strong,
html[data-theme="light"] .profile-notification-card-copy strong{
    color:#172033 !important;
}

html[data-theme="light"] .profile-hero p,
html[data-theme="light"] .profile-metric span,
html[data-theme="light"] .profile-metric small,
html[data-theme="light"] .profile-side-kicker,
html[data-theme="light"] .profile-panel-title p,
html[data-theme="light"] .profile-field small,
html[data-theme="light"] .profile-consent small,
html[data-theme="light"] .profile-whatsapp-note p,
html[data-theme="light"] .profile-save-bar span,
html[data-theme="light"] .profile-notification-summary span,
html[data-theme="light"] .profile-notification-summary small,
html[data-theme="light"] .profile-notification-card-copy > span,
html[data-theme="light"] .profile-notification-card-copy small,
html[data-theme="light"] .profile-notification-info p{
    color:#64748b !important;
}

html[data-theme="light"] .profile-eyebrow,
html[data-theme="light"] .profile-whatsapp-note code,
html[data-theme="light"] .profile-whatsapp-note a,
html[data-theme="light"] .profile-notification-info a{
    color:#174ea6 !important;
}

html[data-theme="light"] .profile-badge{
    background:#f5f8fc !important;
    border-color:#cbd7e5 !important;
    color:#53647a !important;
}

html[data-theme="light"] .profile-badge.is-role{
    background:#e8f0ff !important;
    border-color:#bfd1ed !important;
    color:#174ea6 !important;
}

html[data-theme="light"] .profile-badge.is-status,
html[data-theme="light"] .profile-badge.is-phone.is-ready{
    background:#e9f9f0 !important;
    border-color:#86d7ad !important;
    color:#087443 !important;
}

html[data-theme="light"] .profile-field,
html[data-theme="light"] .profile-consent,
html[data-theme="light"] .profile-whatsapp-note,
html[data-theme="light"] .profile-notification-card,
html[data-theme="light"] .profile-notification-info{
    background:#f7f9fc !important;
    border-color:#d8e1ec !important;
    color:#172033 !important;
}

html[data-theme="light"] .profile-notification-card.is-active{
    background:#f0fbf5 !important;
    border-color:#a8dfc3 !important;
}

html[data-theme="light"] .profile-notification-card.is-warning{
    background:#fff9e8 !important;
    border-color:#ead99b !important;
}

html[data-theme="light"] .profile-action-link.is-muted,
html[data-theme="light"] .profile-secondary-button{
    background:#eef3f8 !important;
    border-color:#c5d2e2 !important;
    color:#334155 !important;
}

html[data-theme="light"] .profile-notification-settings-link{
    background:#e8f0ff !important;
    border-color:#bfd1ed !important;
    color:#174ea6 !important;
}

html[data-theme="light"] .profile-consent-box{
    background:#ffffff !important;
    border-color:#aebdce !important;
}

html[data-theme="light"] .profile-save-bar,
html[data-theme="light"] .profile-toast{
    background:rgba(255,255,255,.97) !important;
    border-color:#cbd7e5 !important;
    color:#172033 !important;
    box-shadow:0 16px 40px rgba(30,50,80,.16) !important;
}

html[data-theme="light"] .profile-notification-state.is-active{
    background:#e9f9f0 !important;
    border-color:#86d7ad !important;
    color:#087443 !important;
}

html[data-theme="light"] .profile-notification-state.is-disabled{
    background:#eef3f8 !important;
    border-color:#cbd7e5 !important;
    color:#64748b !important;
}

html[data-theme="light"] .profile-notification-state.is-warning,
html[data-theme="light"] .profile-section-state.is-dirty{
    background:#fff5cf !important;
    border-color:#dfc267 !important;
    color:#76530a !important;
}

/* Admin controls */
html[data-theme="light"] .admin-btn,
html[data-theme="light"] .admin-mini-link,
html[data-theme="light"] .admin-toggle-btn{
    background:#eef3f8 !important;
    border-color:#c5d2e2 !important;
    color:#334155 !important;
    box-shadow:none !important;
}

html[data-theme="light"] .admin-btn:hover,
html[data-theme="light"] .admin-mini-link:hover,
html[data-theme="light"] .admin-toggle-btn:hover{
    background:#e2eaf3 !important;
    border-color:#9fb1c6 !important;
    color:#172033 !important;
}

html[data-theme="light"] .admin-btn.primary{
    background:#2563eb !important;
    border-color:#2563eb !important;
    color:#ffffff !important;
    box-shadow:0 6px 16px rgba(37,99,235,.18) !important;
}

html[data-theme="light"] .admin-btn.ghost{
    background:#ffffff !important;
    border-color:#cbd7e5 !important;
    color:#334155 !important;
}

/* User management controls */
html[data-theme="light"] .users-page .btn.muted{
    background:#eef3f8 !important;
    border-color:#c5d2e2 !important;
    color:#334155 !important;
}

html[data-theme="light"] .users-page .btn.danger{
    background:#fff0f1 !important;
    border-color:#efb2b8 !important;
    color:#a52a38 !important;
    box-shadow:none !important;
}

html[data-theme="light"] .users-page .btn.danger:hover{
    background:#fde1e4 !important;
    border-color:#df8791 !important;
    color:#861e2b !important;
}

html[data-theme="light"] .users-chips{
    background:transparent !important;
    border:0 !important;
}

html[data-theme="light"] .users-chips button{
    background:#ffffff !important;
    border-color:#cbd7e5 !important;
    color:#334155 !important;
}

html[data-theme="light"] .users-chips button:hover,
html[data-theme="light"] .users-chips button:focus-visible{
    background:#e8f0ff !important;
    border-color:#9bbce9 !important;
    color:#174ea6 !important;
}

html[data-theme="light"] .users-close{
    background:#eef3f8 !important;
    border:1px solid #cbd7e5 !important;
    color:#334155 !important;
}

html[data-theme="light"] .users-empty{
    background:#f7f9fc !important;
    border-color:#cbd7e5 !important;
    color:#64748b !important;
}

html[data-theme="light"] .users-toast{
    background:#ffffff !important;
    border-color:#cbd7e5 !important;
    color:#172033 !important;
    box-shadow:0 18px 45px rgba(30,50,80,.18) !important;
}

html[data-theme="light"] .users-toast.success{
    background:#ecfdf3 !important;
    border-color:#86d7ad !important;
    color:#08633b !important;
}

html[data-theme="light"] .users-toast.error{
    background:#fff0f1 !important;
    border-color:#efb2b8 !important;
    color:#9f2431 !important;
}

html[data-theme="light"] .users-toast button{
    background:rgba(51,65,85,.08) !important;
    color:#334155 !important;
}

/* Stock detail cards and chart */
html[data-theme="light"] .detail-card span,
html[data-theme="light"] .detail-card small,
html[data-theme="light"] .advanced-chart-head p,
html[data-theme="light"] .advanced-chart-metrics span,
html[data-theme="light"] .advanced-chart-metrics small,
html[data-theme="light"] .advanced-chart-legend,
html[data-theme="light"] .analysis-signal-card span,
html[data-theme="light"] .analysis-signal-card small,
html[data-theme="light"] .analysis-notes-card span,
html[data-theme="light"] .analysis-notes-card ul{
    color:#64748b !important;
}

html[data-theme="light"] .detail-card strong,
html[data-theme="light"] .advanced-chart-head h2,
html[data-theme="light"] .advanced-chart-metrics strong{
    color:#172033 !important;
}

html[data-theme="light"] .advanced-chart-metrics div,
html[data-theme="light"] .advanced-chart-canvas-wrap,
html[data-theme="light"] .analysis-signal-card,
html[data-theme="light"] .analysis-notes-card{
    background:#f7f9fc !important;
    border-color:#d8e1ec !important;
    color:#172033 !important;
    box-shadow:none !important;
}

html[data-theme="light"] .advanced-chart-toolbar button{
    background:#ffffff !important;
    border-color:#cbd7e5 !important;
    color:#334155 !important;
    box-shadow:none !important;
}

html[data-theme="light"] .advanced-chart-toolbar button:hover{
    background:#edf4ff !important;
    border-color:#9bbce9 !important;
    color:#174ea6 !important;
}

html[data-theme="light"] .advanced-chart-toolbar button.active{
    background:linear-gradient(135deg,#2563eb,#0f766e) !important;
    border-color:#2563eb !important;
    color:#ffffff !important;
}

html[data-theme="light"] .detail-chart-status{
    background:rgba(255,255,255,.88) !important;
    color:#53647a !important;
}

html[data-theme="light"] .chart-live-badge{
    background:#e9f9f0 !important;
    border-color:#86d7ad !important;
    color:#087443 !important;
}

html[data-theme="light"] .signal-buy{
    background:#e9f9f0 !important;
    color:#087443 !important;
}

html[data-theme="light"] .signal-hold{
    background:#fff5cf !important;
    color:#76530a !important;
}

html[data-theme="light"] .signal-risk{
    background:#fff0f1 !important;
    color:#a52a38 !important;
}

/* Stock analysis nested surfaces */
html[data-theme="light"] .stock-analysis-container .analysis-signal-box,
html[data-theme="light"] .stock-analysis-container .analysis-data-quality,
html[data-theme="light"] .stock-analysis-container .analysis-card,
html[data-theme="light"] .stock-analysis-container .analysis-panel,
html[data-theme="light"] .stock-analysis-container .strategy-explain-grid div,
html[data-theme="light"] .stock-analysis-container .analysis-table div,
html[data-theme="light"] .stock-analysis-container .score-list div,
html[data-theme="light"] .stock-analysis-container .decision-list div,
html[data-theme="light"] .stock-analysis-container .strategy-kpi-grid div,
html[data-theme="light"] .stock-analysis-container .usd-kpi-grid div,
html[data-theme="light"] .stock-analysis-container .strategy-chart-box,
html[data-theme="light"] .stock-analysis-container .usd-chart-card{
    background:#ffffff !important;
    border-color:#d8e1ec !important;
    color:#172033 !important;
    box-shadow:0 8px 22px rgba(30,50,80,.05) !important;
}

html[data-theme="light"] .stock-analysis-container .chart-panel canvas{
    background:#f7f9fc !important;
    border-color:#d8e1ec !important;
}

html[data-theme="light"] .stock-analysis-container .analysis-card span,
html[data-theme="light"] .stock-analysis-container .analysis-card small,
html[data-theme="light"] .stock-analysis-container .section-head span,
html[data-theme="light"] .stock-analysis-container .strategy-explain-grid span,
html[data-theme="light"] .stock-analysis-container .strategy-explain-grid small,
html[data-theme="light"] .stock-analysis-container .analysis-table span,
html[data-theme="light"] .stock-analysis-container .score-list span,
html[data-theme="light"] .stock-analysis-container .decision-list span,
html[data-theme="light"] .stock-analysis-container .decision-list small,
html[data-theme="light"] .stock-analysis-container .strategy-kpi-grid span,
html[data-theme="light"] .stock-analysis-container .strategy-kpi-grid small,
html[data-theme="light"] .stock-analysis-container .usd-kpi-grid span,
html[data-theme="light"] .stock-analysis-container .usd-kpi-grid small,
html[data-theme="light"] .stock-analysis-container .mini-head span,
html[data-theme="light"] .stock-analysis-container .analysis-notes,
html[data-theme="light"] .stock-analysis-container .fundamental-description{
    color:#64748b !important;
}

html[data-theme="light"] .stock-analysis-container .analysis-card strong,
html[data-theme="light"] .stock-analysis-container .analysis-table strong,
html[data-theme="light"] .stock-analysis-container .score-list strong,
html[data-theme="light"] .stock-analysis-container .decision-list strong,
html[data-theme="light"] .stock-analysis-container .strategy-kpi-grid strong,
html[data-theme="light"] .stock-analysis-container .usd-kpi-grid strong,
html[data-theme="light"] .stock-analysis-container .mini-head strong{
    color:#172033 !important;
}

html[data-theme="light"] .stock-analysis-container .decision-score-ring{
    box-shadow:inset 0 0 0 13px #ffffff,0 14px 28px rgba(30,50,80,.12) !important;
}

html[data-theme="light"] .stock-analysis-container .decision-comment,
html[data-theme="light"] .stock-analysis-container .usd-decision-box{
    background:#edf4ff !important;
    border-color:#bfd1ed !important;
    color:#174ea6 !important;
}

html[data-theme="light"] .stock-analysis-container .strategy-decision-box.positive-box,
html[data-theme="light"] .stock-analysis-container .usd-decision-box.stock-wins,
html[data-theme="light"] .stock-analysis-container .analysis-data-quality.good{
    background:#e9f9f0 !important;
    border-color:#86d7ad !important;
    color:#087443 !important;
}

html[data-theme="light"] .stock-analysis-container .strategy-decision-box.negative-box,
html[data-theme="light"] .stock-analysis-container .usd-decision-box.dollar-wins{
    background:#fff0f1 !important;
    border-color:#efb2b8 !important;
    color:#a52a38 !important;
}

html[data-theme="light"] .stock-analysis-container .strategy-decision-box.neutral-box,
html[data-theme="light"] .stock-analysis-container .usd-decision-box.neutral,
html[data-theme="light"] .stock-analysis-container .analysis-data-quality.warning{
    background:#fff5cf !important;
    border-color:#dfc267 !important;
    color:#76530a !important;
}

html[data-theme="light"] .stock-analysis-container .analysis-signal-box strong.hold{
    background:#fff5cf !important;
    color:#76530a !important;
}

html[data-theme="light"] .stock-analysis-container .analysis-signal-box strong.risk{
    background:#fff0f1 !important;
    color:#a52a38 !important;
}

html[data-theme="light"] .stock-analysis-container .analysis-signal-box strong.buy{
    background:#e9f9f0 !important;
    color:#087443 !important;
}

html[data-theme="light"] .detail-chart-tooltip strong{
    color:#172033 !important;
}

html[data-theme="light"] .dash-stat-card strong.positive,
html[data-theme="light"] .detail-card strong.positive,
html[data-theme="light"] .advanced-chart-metrics strong.positive,
html[data-theme="light"] .stock-analysis-container strong.positive{
    color:#087443 !important;
}

html[data-theme="light"] .dash-stat-card strong.negative,
html[data-theme="light"] .detail-card strong.negative,
html[data-theme="light"] .advanced-chart-metrics strong.negative,
html[data-theme="light"] .stock-analysis-container strong.negative{
    color:#b42334 !important;
}

html[data-theme="light"] .stock-analysis-container strong.warning{
    color:#76530a !important;
}

/* Reports precision overrides */
html[data-theme="light"] .report-hero{
    background:#ffffff !important;
}

html[data-theme="light"] .report-hero h1,
html[data-theme="light"] .report-kpi-card strong,
html[data-theme="light"] .report-module-card strong,
html[data-theme="light"] .report-insight-card strong,
html[data-theme="light"] .report-section-head h2,
html[data-theme="light"] .report-comparison-top strong,
html[data-theme="light"] .report-comparison-top span,
html[data-theme="light"] .report-comparison-meta b,
html[data-theme="light"] .report-legend-row strong,
html[data-theme="light"] .report-legend-row span{
    color:#172033 !important;
}

html[data-theme="light"] .report-hero p,
html[data-theme="light"] .report-kpi-card span,
html[data-theme="light"] .report-kpi-card small,
html[data-theme="light"] .report-module-card span,
html[data-theme="light"] .report-module-card small,
html[data-theme="light"] .report-insight-card span,
html[data-theme="light"] .report-insight-card small,
html[data-theme="light"] .report-section-head p,
html[data-theme="light"] .report-section-head > span,
html[data-theme="light"] .report-comparison-meta small,
html[data-theme="light"] .report-legend-row small,
html[data-theme="light"] .report-vertical-legend,
html[data-theme="light"] .report-empty,
html[data-theme="light"] .report-daily-range{
    color:#64748b !important;
}

html[data-theme="light"] .report-kicker{
    background:#e8f4ff !important;
    border-color:#a9c9ec !important;
    color:#174ea6 !important;
}

html[data-theme="light"] .report-kpi-card.primary{
    background:#eef9f5 !important;
    border-color:#b8dfcf !important;
}

html[data-theme="light"] .report-legend-row,
html[data-theme="light"] .report-comparison-row,
html[data-theme="light"] .report-table-row,
html[data-theme="light"] .report-empty{
    background:#f8fafc !important;
    border-color:#d8e1ec !important;
    color:#334155 !important;
    box-shadow:none !important;
}

html[data-theme="light"] .report-legend-row:hover,
html[data-theme="light"] .report-comparison-row:hover,
html[data-theme="light"] .report-table-row:hover{
    background:#f2f6fa !important;
    border-color:#b9c9dd !important;
}

html[data-theme="light"] .report-bar-track{
    background:#e2e8f0 !important;
}

html[data-theme="light"] .report-vertical-legend i.cost{
    background:#dbe4ef !important;
    border-color:#9fb0c5 !important;
}

html[data-theme="light"] .report-table-head{
    background:transparent !important;
    border-color:#d8e1ec !important;
    color:#53647a !important;
}

html[data-theme="light"] .report-badge{
    background:#eef5ff !important;
}

html[data-theme="light"] .report-actions .btn,
html[data-theme="light"] .report-toolbar .btn{
    background:#2563eb !important;
    border-color:#2563eb !important;
    color:#ffffff !important;
    box-shadow:0 5px 12px rgba(37,99,235,.16) !important;
}

html[data-theme="light"] .report-actions .btn:hover,
html[data-theme="light"] .report-toolbar .btn:hover{
    background:#1d4ed8 !important;
    border-color:#1d4ed8 !important;
}

html[data-theme="light"] .report-actions .btn.muted,
html[data-theme="light"] .report-toolbar .btn.muted{
    background:#ffffff !important;
    border-color:#b9c9dd !important;
    color:#334155 !important;
    box-shadow:none !important;
}

html[data-theme="light"] .report-actions .btn.muted:hover,
html[data-theme="light"] .report-toolbar .btn.muted:hover{
    background:#eef3f8 !important;
    border-color:#9fb2ca !important;
    color:#172033 !important;
}

html[data-theme="light"] .report-group-range-switch,
html[data-theme="light"] .report-group-summary,
html[data-theme="light"] .report-group-period,
html[data-theme="light"] .report-group-chart{
    background:#f5f8fc !important;
    border-color:#d8e1ec !important;
    color:#334155 !important;
    box-shadow:none !important;
}

html[data-theme="light"] .report-group-range-btn{
    background:transparent !important;
    border-color:#d8e1ec !important;
    color:#53647a !important;
}

html[data-theme="light"] .report-group-range-btn:hover{
    background:#edf4ff !important;
    color:#174ea6 !important;
}

html[data-theme="light"] .report-group-range-btn.active{
    background:#2563eb !important;
    color:#ffffff !important;
    box-shadow:inset 0 0 0 1px #2563eb !important;
}

html[data-theme="light"] .report-group-period span,
html[data-theme="light"] .report-group-summary span,
html[data-theme="light"] .report-group-summary > div > small,
html[data-theme="light"] .report-group-performance-foot,
html[data-theme="light"] .report-group-foot-note{
    color:#64748b !important;
}

html[data-theme="light"] .report-group-period strong,
html[data-theme="light"] .report-group-summary strong{
    color:#172033 !important;
}

html[data-theme="light"] .report-group-period-update{
    background:#e9f9f0 !important;
    border-color:#a9d9bf !important;
}

html[data-theme="light"] .report-group-period-update span{
    color:#39785a !important;
}

html[data-theme="light"] .report-group-period-update strong{
    color:#08633b !important;
}

html[data-theme="light"] .report-group-performance-actions .report-action-btn{
    background:#ffffff !important;
    border-color:#b9c9dd !important;
    color:#334155 !important;
    box-shadow:none !important;
}

html[data-theme="light"] .report-group-performance-actions .report-action-btn:hover{
    background:#edf4ff !important;
    border-color:#8eadd9 !important;
    color:#174ea6 !important;
    box-shadow:0 7px 16px rgba(37,99,235,.10) !important;
}

html[data-theme="light"] .report-group-performance-actions .report-action-btn::before{
    background:linear-gradient(110deg,transparent 18%,rgba(37,99,235,.06) 48%,transparent 76%) !important;
}

html[data-theme="light"] .report-action-icon{
    background:#e8f0ff !important;
    border-color:#b8cceb !important;
    color:#174ea6 !important;
}

html[data-theme="light"] .rg-head{
    background:#eef3f8 !important;
    border-color:#d8e1ec !important;
    color:#53647a !important;
}

html[data-theme="light"] .rg-row{
    background:#ffffff !important;
    border-color:#e0e7f0 !important;
    color:#334155 !important;
}

html[data-theme="light"] .rg-row:hover{
    background:#f5f8fc !important;
}

html[data-theme="light"] .rg-asset strong,
html[data-theme="light"] .rg-num{
    color:#172033 !important;
}

html[data-theme="light"] .rg-asset small,
html[data-theme="light"] .rg-coverage,
html[data-theme="light"] .rg-scale,
html[data-theme="light"] .rg-loading,
html[data-theme="light"] .rg-empty,
html[data-theme="light"] .rg-no-data{
    color:#64748b !important;
}

html[data-theme="light"] .rg-track{
    border-color:#d8e1ec !important;
    background:linear-gradient(90deg,rgba(220,53,69,.045) 0 50%,rgba(7,148,85,.045) 50% 100%) !important;
}

html[data-theme="light"] .rg-grid{
    background:rgba(100,116,139,.18) !important;
}

html[data-theme="light"] .rg-grid.q2{
    background:rgba(51,65,85,.42) !important;
}

html[data-theme="light"] .rg-marker{
    background:#334155 !important;
}

html[data-theme="light"] .rg-zero-marker{
    background:#64748b !important;
}

html[data-theme="light"] .rg-status{
    background:#eef3f8 !important;
    border-color:#cbd7e5 !important;
    color:#53647a !important;
}

html[data-theme="light"] .rg-status.exact{
    background:#e9f9f0 !important;
    border-color:#a9d9bf !important;
    color:#087443 !important;
}

html[data-theme="light"] .rg-status.partial{
    background:#fff7df !important;
    border-color:#e3c76e !important;
    color:#76530a !important;
}

html[data-theme="light"] .rg-info{
    background:#e8f0ff !important;
    border-color:#b8cceb !important;
    color:#174ea6 !important;
}

html[data-theme="light"] .rg-info:hover,
html[data-theme="light"] .rg-info:focus-visible{
    background:#dce9fb !important;
    border-color:#8eadd9 !important;
    color:#123f7a !important;
}

html[data-theme="light"] .rg-tooltip{
    background:#ffffff !important;
    border-color:#b9c9dd !important;
    color:#172033 !important;
    box-shadow:0 14px 34px rgba(30,50,80,.18) !important;
}

html[data-theme="light"] .report-group-summary .neutral{
    color:#475569 !important;
}

html[data-theme="light"] .report-daily-panel > header span{
    color:#174ea6 !important;
}

html[data-theme="light"] .report-daily-close{
    background:#eef3f8 !important;
    border-color:#cbd7e5 !important;
    color:#334155 !important;
}

html[data-theme="light"] .report-daily-close:hover{
    background:#e2eaf3 !important;
    color:#172033 !important;
}

html[data-theme="light"] .report-daily-summary,
html[data-theme="light"] .report-daily-table-wrap,
html[data-theme="light"] .report-daily-contributor-grid > section{
    background:#ffffff !important;
    border-color:#d8e1ec !important;
}

html[data-theme="light"] .report-daily-summary > div{
    background:#f7f9fc !important;
    border-color:#d8e1ec !important;
}

html[data-theme="light"] .report-daily-summary span,
html[data-theme="light"] .report-daily-summary small,
html[data-theme="light"] .report-daily-notice,
html[data-theme="light"] .report-daily-empty,
html[data-theme="light"] .report-daily-table td small,
html[data-theme="light"] .report-daily-contributor small{
    color:#64748b !important;
}

html[data-theme="light"] .report-daily-table th{
    background:#eef3f8 !important;
    color:#53647a !important;
}

html[data-theme="light"] .report-daily-table th,
html[data-theme="light"] .report-daily-table td,
html[data-theme="light"] .report-daily-contributor{
    border-color:#e0e7f0 !important;
}

html[data-theme="light"] .report-daily-contributor-grid h3{
    background:#eef3f8 !important;
    color:#172033 !important;
}

html[data-theme="light"] .report-daily-missing{
    border-color:#dfc267 !important;
}

html[data-theme="light"] .report-daily-missing li{
    background:#fff9e8 !important;
    border-color:#ead99b !important;
}

html[data-theme="light"] .report-daily-missing strong,
html[data-theme="light"] .report-daily-notice.warning{
    color:#76530a !important;
}

html[data-theme="light"] .report-daily-missing span{
    color:#7b6840 !important;
}

/* Dashboard recent actions toggle */
html[data-theme="light"] .recent-toggle-btn{
    background:#e8f0ff !important;
    border-color:#b8cceb !important;
    color:#174ea6 !important;
    box-shadow:none !important;
}

html[data-theme="light"] .recent-toggle-btn:hover,
html[data-theme="light"] .recent-toggle-btn:focus-visible{
    background:#dce9fb !important;
    border-color:#8eadd9 !important;
    color:#123f7a !important;
    outline:none;
}

/* Detail portfolio information cards */
html[data-theme="light"] .detail-info-box .section-title{
    color:#172033 !important;
}

html[data-theme="light"] .detail-info-list > div{
    background:#f5f8fc !important;
    border-color:#d8e1ec !important;
    color:#172033 !important;
    box-shadow:none !important;
}

html[data-theme="light"] .detail-info-list span{
    color:#64748b !important;
}

html[data-theme="light"] .detail-info-list strong{
    color:#172033 !important;
}

html[data-theme="light"] .detail-info-list strong.positive{
    color:#087443 !important;
}

html[data-theme="light"] .detail-info-list strong.negative{
    color:#b42334 !important;
}

@media(max-width:1100px){
    .app-theme-switch{ margin:0 0 10px; }
}

/* Public authentication screens */
.auth-page{
    min-height:100vh;
    background:
        linear-gradient(rgba(11,15,23,.86),rgba(11,15,23,.94)),
        url("assets/icons/finance-logo.svg") center/280px no-repeat fixed,
        var(--bg);
}

.auth-theme-control{
    position:fixed;
    z-index:5;
    top:18px;
    right:18px;
    width:min(270px,calc(100vw - 36px));
}

.auth-theme-control .app-theme-switch{ margin:0; }

.auth-card{
    border:1px solid var(--border);
    box-shadow:0 24px 70px rgba(0,0,0,.34);
}

.auth-brand{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    margin-bottom:2px;
}

.auth-brand img{ width:38px; height:38px; }
.auth-brand div{ display:flex; flex-direction:column; }
.auth-brand strong{ color:var(--text); font-size:18px; }
.auth-brand span{ color:var(--sub); font-size:11px; }
.auth-card h2{ margin:8px 0 0; font-size:25px; }
.auth-intro{ margin:0 0 8px; color:var(--sub); text-align:center; font-size:13px; line-height:1.5; }
.auth-field{ display:grid; gap:6px; color:var(--sub); font-size:12px; font-weight:700; }
.auth-field input{ width:100%; }
.auth-submit{ width:100%; margin-top:4px; }
.auth-alternate{ margin:5px 0 0; color:var(--sub); text-align:center; font-size:13px; }

html[data-theme="light"] .auth-page{
    background:
        linear-gradient(rgba(243,246,250,.91),rgba(243,246,250,.97)),
        url("assets/icons/finance-logo.svg") center/280px no-repeat fixed,
        #f3f6fa !important;
}

html[data-theme="light"] .auth-card{
    background:#ffffff !important;
    border-color:#d8e1ec !important;
    color:#172033 !important;
    box-shadow:0 24px 70px rgba(30,50,80,.14);
}

html[data-theme="light"] .auth-card h2{ color:#172033 !important; }
html[data-theme="light"] .auth-card a{ color:#1d4ed8 !important; }

/* Varlik Performansi */
html[data-theme="light"] .wealth-page{
    --wealth-bg:#f3f6fa;
    --wealth-card:#ffffff;
    --wealth-card-2:#f7f9fc;
    --wealth-border:#d8e1ec;
    --wealth-text:#172033;
    --wealth-sub:#64748b;
    --wealth-blue:#2563eb;
    --wealth-green:#079455;
    --wealth-gold:#b77900;
    --wealth-red:#dc3545;
    color:#172033 !important;
}

html[data-theme="light"] .wealth-hero,
html[data-theme="light"] .wealth-range-bar,
html[data-theme="light"] .wealth-kpi-card,
html[data-theme="light"] .wealth-chart-card,
html[data-theme="light"] .wealth-panel{
    background:#ffffff !important;
    border-color:#d8e1ec !important;
    color:#172033 !important;
    box-shadow:0 8px 24px rgba(30,50,80,.07) !important;
}

html[data-theme="light"] .wealth-hero h1,
html[data-theme="light"] .wealth-section-head h2,
html[data-theme="light"] .wealth-kpi-card strong,
html[data-theme="light"] .wealth-chart-empty strong,
html[data-theme="light"] .wealth-contribution-title span,
html[data-theme="light"] .wealth-insight-row strong{
    color:#172033 !important;
    letter-spacing:0 !important;
}

html[data-theme="light"] .wealth-hero h1{
    font-size:32px !important;
}

html[data-theme="light"] .wealth-kicker,
html[data-theme="light"] .wealth-mini-kicker{
    color:#1d4ed8 !important;
    letter-spacing:0 !important;
}

html[data-theme="light"] .wealth-hero p,
html[data-theme="light"] .wealth-window,
html[data-theme="light"] .wealth-kpi-card span,
html[data-theme="light"] .wealth-kpi-card small,
html[data-theme="light"] .wealth-section-head p,
html[data-theme="light"] .wealth-chart-empty span,
html[data-theme="light"] .wealth-chart-foot small,
html[data-theme="light"] .wealth-legend span,
html[data-theme="light"] .wealth-contribution-row small,
html[data-theme="light"] .wealth-loading-row,
html[data-theme="light"] .wealth-insight-row span{
    color:#64748b !important;
}

html[data-theme="light"] .wealth-live-state{
    background:#f7f9fc !important;
    border-color:#cbd7e5 !important;
    color:#334155 !important;
}

html[data-theme="light"] .wealth-btn.muted{
    background:#edf4ff !important;
    border-color:#9bbce9 !important;
    color:#174ea6 !important;
    box-shadow:none !important;
}

html[data-theme="light"] .wealth-btn.muted:hover:not(:disabled){
    background:#dfeafa !important;
    border-color:#739bcf !important;
    color:#123f7a !important;
}

html[data-theme="light"] .wealth-range-switch,
html[data-theme="light"] .wealth-series-toggles{
    color:#334155 !important;
}

html[data-theme="light"] .wealth-range-btn,
html[data-theme="light"] .wealth-series-btn{
    background:#f7f9fc !important;
    border-color:#cbd7e5 !important;
    color:#53647a !important;
    box-shadow:none !important;
}

html[data-theme="light"] .wealth-range-btn:hover,
html[data-theme="light"] .wealth-series-btn:hover{
    background:#edf4ff !important;
    border-color:#9bbce9 !important;
    color:#174ea6 !important;
}

html[data-theme="light"] .wealth-range-btn.active,
html[data-theme="light"] .wealth-series-btn.active{
    background:#2563eb !important;
    border-color:#2563eb !important;
    color:#ffffff !important;
    box-shadow:none !important;
}

html[data-theme="light"] .wealth-range-btn:focus-visible,
html[data-theme="light"] .wealth-series-btn:focus-visible,
html[data-theme="light"] .wealth-btn:focus-visible{
    outline:3px solid rgba(37,99,235,.20) !important;
    outline-offset:2px;
}

html[data-theme="light"] .wealth-kpi-card.primary{
    background:#f2fbf7 !important;
    border-color:#b8dfcf !important;
}

html[data-theme="light"] .wealth-kpi-card .neutral,
html[data-theme="light"] .wealth-contribution-title .neutral,
html[data-theme="light"] .wealth-contribution-row .neutral{
    color:#475569 !important;
}

html[data-theme="light"] .wealth-chart-wrap{
    background:#f8fafc !important;
    border-color:#d8e1ec !important;
}

html[data-theme="light"] .wealth-chart-tooltip{
    background:rgba(255,255,255,.98) !important;
    border-color:#9bbce9 !important;
    color:#334155 !important;
    box-shadow:0 14px 34px rgba(30,50,80,.18) !important;
}

html[data-theme="light"] .wealth-chart-tooltip > strong,
html[data-theme="light"] .wealth-chart-tooltip b{
    color:#172033 !important;
}

html[data-theme="light"] .wealth-chart-tooltip span{
    color:#53647a !important;
}

html[data-theme="light"] .wealth-contribution-row{
    background:#f8fafc !important;
    border-color:#d8e1ec !important;
}

html[data-theme="light"] .wealth-contribution-track{
    background:#e2e8f0 !important;
}

html[data-theme="light"] .wealth-insight-row{
    border-color:#e0e7f0 !important;
}

html[data-theme="light"] .wealth-data-note{
    background:#edf4ff !important;
    border-color:#bfd1ed !important;
    color:#53647a !important;
}

html[data-theme="light"] .wealth-kpi-card .positive,
html[data-theme="light"] .wealth-contribution-title .positive,
html[data-theme="light"] .wealth-contribution-row .positive{
    color:#087443 !important;
}

html[data-theme="light"] .wealth-kpi-card .negative,
html[data-theme="light"] .wealth-contribution-title .negative,
html[data-theme="light"] .wealth-contribution-row .negative{
    color:#b42334 !important;
}

@media(max-width:760px){
    html[data-theme="light"] .wealth-hero h1{
        font-size:27px !important;
    }
}

@media(max-width:600px){
    .auth-theme-control{ top:10px; right:10px; width:230px; }
    .auth-container{ padding:76px 14px 18px; }
    .auth-card{ padding:22px 18px; border-radius:12px; }
}

@media print{
    .app-theme-switch{ display:none !important; }
}
