/* Flat, bright white/red light theme. */
html[data-theme="light"]{--green:#e31937;--bg:#fff;--panel:#fff;--panel2:#fff;--text:#191919;--line:#e5e5e5;--muted:#666}
html[data-theme="light"] body,html[data-theme="light"] .app,html[data-theme="light"] .sidebar,html[data-theme="light"] #app .sidebar,html[data-theme="light"] .topbar,html[data-theme="light"] .panel,html[data-theme="light"] .metric,html[data-theme="light"] .system-card,html[data-theme="light"] .admin-user-card,html[data-theme="light"] .maintenance-dialog,html[data-theme="light"] .login,html[data-theme="light"] #boot,html[data-theme="light"] .risk-console,html[data-theme="light"] .sidebar .sidebar-profile,html[data-theme="light"] #app tbody tr,html[data-theme="light"] .admin-emergency{background:#fff!important;background-image:none!important;border-color:#e2e2e2;box-shadow:none}
html[data-theme="light"] .login:after,html[data-theme="light"] .channel-image-banner:after{display:none}
html[data-theme="light"] .button,html[data-theme="light"] .button:hover,html[data-theme="light"] .maintenance-toggle.enabled{background:#e31937!important;color:#fff;border-color:#e31937;box-shadow:none}
html[data-theme="light"] .nav-item.active,html[data-theme="light"] #app .sidebar .nav-item.active,html[data-theme="light"] .periods .selected,html[data-theme="light"] .trade-tabs .selected,html[data-theme="light"] .user-history-tabs .selected{background:#e31937!important;color:white;border-color:#e31937;box-shadow:none}
html[data-theme="light"] .nav-item.active .nav-key{color:white}
html[data-theme="light"] .nav-item:hover{background:#f4f4f4;color:#e31937}
html[data-theme="light"] .nav-item.active .nav-icon,html[data-theme="light"] .shield-icon{filter:none}
html[data-theme="light"] .theme-toggle,html[data-theme="light"] .lang,html[data-theme="light"] .periods,html[data-theme="light"] .trade-tabs button,html[data-theme="light"] .user-history-tabs button,html[data-theme="light"] .mobile-menu-toggle,html[data-theme="light"] .mobile-menu-close,html[data-theme="light"] .notice,html[data-theme="light"] .status-pill,html[data-theme="light"] .demo-badge,html[data-theme="light"] .maintenance-toggle,html[data-theme="light"] .admin-stop,html[data-theme="light"] .bot-stop,html[data-theme="light"] .direction{background:#fff!important;color:#e31937;border-color:#e2e2e2;box-shadow:none}
html[data-theme="light"] .bot-stop:disabled{color:#888;border-color:#ddd;background:#f5f5f5!important}
html[data-theme="light"] .metric-number,html[data-theme="light"] .chart-summary strong,html[data-theme="light"] h1,html[data-theme="light"] h2,html[data-theme="light"] h3,html[data-theme="light"] .instrument b,html[data-theme="light"] .admin-summary strong,html[data-theme="light"] .setting-row b,html[data-theme="light"] .sidebar .sidebar-profile #profile-name{color:#191919}
html[data-theme="light"] .metric-label,html[data-theme="light"] .metric-foot>span:last-child,html[data-theme="light"] .metric-number small,html[data-theme="light"] .metric-number>span,html[data-theme="light"] .chart-footer,html[data-theme="light"] .panel-heading p,html[data-theme="light"] .profile small,html[data-theme="light"] .system-card p,html[data-theme="light"] .system-card small,html[data-theme="light"] .nav-key,html[data-theme="light"] .breadcrumb-root,html[data-theme="light"] .breadcrumb b,html[data-theme="light"] .metrics-sync-row,html[data-theme="light"] #metrics-sync,html[data-theme="light"] .sync-period,html[data-theme="light"] .instrument small,html[data-theme="light"] .risk-note,html[data-theme="light"] .bot-bottom,html[data-theme="light"] .setting-row p,html[data-theme="light"] .settings-panel>p,html[data-theme="light"] .admin-user-card dt,html[data-theme="light"] .admin-user-header small,html[data-theme="light"] .legal-footer,html[data-theme="light"] .maintenance-dialog p,html[data-theme="light"] .maintenance-dialog small,html[data-theme="light"] .login-copy>p,html[data-theme="light"] .login-footer,html[data-theme="light"] #boot small{color:#666}
html[data-theme="light"] .nav-item,html[data-theme="light"] td{color:#333}
html[data-theme="light"] .settings-panel input,html[data-theme="light"] .admin-filters input,html[data-theme="light"] .admin-filters select{background:#fff;border-color:#ddd;color:#191919}
html[data-theme="light"] .bot-power,html[data-theme="light"] .maintenance-icon{background:#fff;border-color:#ddd;box-shadow:none;color:#888}
html[data-theme="light"] .bot-power.running{color:#e31937;border-color:#e31937;box-shadow:none}
html[data-theme="light"] .bot-power:before,html[data-theme="light"] .bot-power:after,html[data-theme="light"] .energy-halo,html[data-theme="light"] .energy-ring,html[data-theme="light"] .energy-sparks,html[data-theme="light"] .orbit,html[data-theme="light"] .brand-rain,html[data-theme="light"] .banner-ripples{display:none}
html[data-theme="light"] .channel-image-banner{background:#fff!important;border-color:#e31937;box-shadow:none}
html[data-theme="light"] .channel-image-banner img{display:none}
html[data-theme="light"] .channel-image-banner .compact-banner-copy{margin:0;padding:0 24px;flex:1}
html[data-theme="light"] .channel-image-banner .banner-brand{color:#191919}
html[data-theme="light"] .channel-image-banner .banner-brand span{color:#e31937}
html[data-theme="light"] .banner-telegram{color:#e31937;background:#fff;border-color:#e31937;box-shadow:none}
html[data-theme="light"] .mini-progress{background:#e9e9e9}
html[data-theme="light"] .mini-progress i,html[data-theme="light"] .win-bars i,html[data-theme="light"] .risk-segments i{background:#e31937}
html[data-theme="light"] .risk-segments i:nth-child(n+6){background:#ddd}
html[data-theme="light"] #chart-fill{fill:none}
html[data-theme="light"] .chart-grid path{stroke:#e5e5e5}
html[data-theme="light"] .chart-grid text{fill:#666}
html[data-theme="light"] #chart-line,html[data-theme="light"] .spark path{stroke:#e31937}
html[data-theme="light"] #chart-dot{fill:#e31937}
html[data-theme="light"] .user-avatar{background:#fff!important;color:#e31937!important;border-color:#ddd}
html[data-theme="light"] .green,html[data-theme="light"] td.green{color:#28773c}
html[data-theme="light"] .red,html[data-theme="light"] td.red{color:#d11632}
/* Neutral canvas and raised white surfaces make the hierarchy clear. */
html[data-theme="light"] .count-badge{display:inline-flex;align-items:center;justify-content:center;min-width:30px;min-height:28px;padding:4px 8px;border:1px solid #ed1c24;border-radius:8px;background:#fff;color:#c8101b;font:700 14px/1 Arial,sans-serif;font-variant-numeric:tabular-nums}
html[data-theme="light"] .text-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 14px;min-height:42px;border:1px solid #ed1c24;border-radius:10px;background:#fff;color:#bd0e18;font:600 14px/1.3 Arial,sans-serif;white-space:nowrap;box-shadow:0 2px 5px #22222208}
html[data-theme="light"] .text-button:hover{background:#ed1c24;color:#fff}
html[data-theme="light"] .section-title{gap:12px;flex-wrap:wrap}
html[data-theme="light"] body,html[data-theme="light"] .app{background:#eef0f3!important}
html[data-theme="light"] .panel,html[data-theme="light"] .metric,html[data-theme="light"] .admin-user-card{background:#fff!important;border-color:#d7dbe1;box-shadow:0 3px 7px #202b3d05,0 12px 28px #202b3d09}
html[data-theme="light"] .system-card,html[data-theme="light"] .sidebar .sidebar-profile{background:#f6f7f9!important;border-color:#e0e3e8;box-shadow:none}
html[data-theme="light"] .panel>.panel-heading:first-child{background:#fafbfc;border-bottom-color:#e5e8ed}
html[data-theme="light"] .risk-console{background:#f6f7f9!important;border-color:#dce0e6}
html[data-theme="light"] .channel-image-banner{background:#fff!important;border-color:#d7dbe1;box-shadow:0 8px 24px #202b3d09}
html[data-theme="light"] .channel-image-banner:before{background:transparent!important}
html[data-theme="light"] .trade-tabs{background:#fafbfc}
html[data-theme="light"] #app tbody tr{background:#fafbfc!important;border-color:#dce0e6!important}
html[data-theme="light"] .settings-panel input,html[data-theme="light"] .admin-filters input,html[data-theme="light"] .admin-filters select{background:#f6f7f9;border-color:#d7dbe1}
html[data-theme="light"] .sidebar,html[data-theme="light"] #app .sidebar,html[data-theme="light"] .topbar{background:#fff!important;border-color:#dce0e6}
html[data-theme="light"] .maintenance-dialog{box-shadow:0 22px 70px #17203126}
/* Vivid neutral red and a consistent, high-contrast reading face. */
html[data-theme="light"]{--green:#ed1c24;--red:#d10c16;--text:#141414;--muted:#50545a}
html[data-theme="light"] body{font-family:Arial,'Helvetica Neue',sans-serif;color:#141414;-webkit-font-smoothing:antialiased}
html[data-theme="light"] button,html[data-theme="light"] input,html[data-theme="light"] select,html[data-theme="light"] .nav-item,html[data-theme="light"] .lang,html[data-theme="light"] .theme-toggle,html[data-theme="light"] .breadcrumb,html[data-theme="light"] .profile,html[data-theme="light"] .sidebar .sidebar-profile #profile-name,html[data-theme="light"] .sidebar .sidebar-profile small,html[data-theme="light"] .legal-footer,html[data-theme="light"] .status-pill,html[data-theme="light"] .demo-badge,html[data-theme="light"] .risk-console-top,html[data-theme="light"] .risk-console-bottom{font-family:Arial,'Helvetica Neue',sans-serif;letter-spacing:0}
html[data-theme="light"] h1,html[data-theme="light"] h2,html[data-theme="light"] h3,html[data-theme="light"] .page-heading h1,html[data-theme="light"] .panel h2,html[data-theme="light"] .bot-identity h3{font-family:Arial,'Helvetica Neue',sans-serif;font-weight:700;color:#141414;letter-spacing:-.2px}
html[data-theme="light"] .metric-number,html[data-theme="light"] .chart-summary strong,html[data-theme="light"] .admin-user-card dd{font-family:Arial,'Helvetica Neue',sans-serif;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:-.8px}
html[data-theme="light"] .button,html[data-theme="light"] .button:hover,html[data-theme="light"] .nav-item.active,html[data-theme="light"] #app .sidebar .nav-item.active,html[data-theme="light"] .periods .selected,html[data-theme="light"] .trade-tabs .selected,html[data-theme="light"] .user-history-tabs .selected,html[data-theme="light"] .maintenance-toggle.enabled{background:#ed1c24!important;border-color:#ed1c24;color:#fff}
html[data-theme="light"] .theme-track,html[data-theme="light"] .mini-progress i,html[data-theme="light"] .win-bars i,html[data-theme="light"] .risk-segments i{background:#ed1c24}
html[data-theme="light"] .theme-toggle,html[data-theme="light"] .lang,html[data-theme="light"] .mobile-menu-toggle,html[data-theme="light"] .mobile-menu-close,html[data-theme="light"] .banner-telegram,html[data-theme="light"] .channel-image-banner .banner-brand span{color:#ed1c24}
html[data-theme="light"] #chart-line,html[data-theme="light"] .spark path{stroke:#ed1c24}
html[data-theme="light"] #chart-dot{fill:#ed1c24}
html[data-theme="light"] .metric-label,html[data-theme="light"] .metric-foot>span:last-child,html[data-theme="light"] .metric-number small,html[data-theme="light"] .metric-number>span,html[data-theme="light"] .chart-footer,html[data-theme="light"] .panel-heading p,html[data-theme="light"] .profile small,html[data-theme="light"] .system-card p,html[data-theme="light"] .system-card small,html[data-theme="light"] .nav-key,html[data-theme="light"] .breadcrumb-root,html[data-theme="light"] .breadcrumb b,html[data-theme="light"] .metrics-sync-row,html[data-theme="light"] #metrics-sync,html[data-theme="light"] .sync-period,html[data-theme="light"] .instrument small,html[data-theme="light"] .risk-note,html[data-theme="light"] .bot-bottom,html[data-theme="light"] .setting-row p,html[data-theme="light"] .settings-panel>p,html[data-theme="light"] .admin-user-card dt,html[data-theme="light"] .admin-user-header small,html[data-theme="light"] .legal-footer{color:#50545a}
html[data-theme="light"] .metric-label{font-size:13px;font-weight:600}
html[data-theme="light"] .metric-foot{font-size:12px;line-height:1.6}
html[data-theme="light"] .metric-foot>span:last-child{font-size:11px}
html[data-theme="light"] .panel-heading p,html[data-theme="light"] .chart-footer,html[data-theme="light"] .system-card p{font-size:12px;line-height:1.6}
html[data-theme="light"] .breadcrumb{font-size:11px;font-weight:600}
html[data-theme="light"] .nav-item{font-weight:600}
html[data-theme="light"] .panel h2{font-size:17px}
html[data-theme="light"] .legal-footer{font-size:13px;line-height:1.8}
@media(max-width:760px){html[data-theme="light"] #app .metric-label{font-size:13px}html[data-theme="light"] .breadcrumb{font-size:9px}html[data-theme="light"] #app .sidebar .sidebar-profile #profile-name{font-family:Arial,'Helvetica Neue',sans-serif}html[data-theme="light"] #app .panel h2{font-size:17px}}
/* Clear reading hierarchy across all light-theme pages. */
html[data-theme="light"] .metric-label{font-size:14px;font-weight:600;color:#41464d}
html[data-theme="light"] .metric-foot,html[data-theme="light"] .metric-foot>span:last-child{font-size:12px;line-height:1.6}
html[data-theme="light"] .panel h2{font-size:18px;line-height:1.4;font-weight:700}
html[data-theme="light"] .panel-heading p,html[data-theme="light"] .chart-footer,html[data-theme="light"] .risk-note,html[data-theme="light"] .settings-panel>p,html[data-theme="light"] .notice{font-size:13px;line-height:1.7;color:#4c5158}
html[data-theme="light"] th{font:600 12px/1.5 Arial,sans-serif;color:#50555d}
html[data-theme="light"] td{font:500 14px/1.5 Arial,sans-serif}
html[data-theme="light"] .instrument b{font-size:15px;font-weight:700}
html[data-theme="light"] .instrument small{font-size:12px;color:#60666e}
html[data-theme="light"] .table-status{font:600 14px/1.5 Arial,sans-serif}
html[data-theme="light"] .trade-tabs button,html[data-theme="light"] .periods button{font:600 13px/1.4 Arial,sans-serif}
html[data-theme="light"] .setting-row b{font-size:15px;font-weight:700}
html[data-theme="light"] .setting-row p,html[data-theme="light"] .settings-panel label{font-size:13px;line-height:1.6;color:#50555d}
html[data-theme="light"] .status-pill,html[data-theme="light"] .demo-badge{font-size:11px;font-weight:600}
html[data-theme="light"] .admin-user-card dt,html[data-theme="light"] .admin-filters label,html[data-theme="light"] .user-history-hint{font-size:13px;line-height:1.6}
html[data-theme="light"] .admin-user-header h3{font-size:17px}
html[data-theme="light"] .admin-user-card summary,html[data-theme="light"] .admin-user-actions button{font-size:14px;font-weight:600}
html[data-theme="light"] .legal-footer{font-size:14px;line-height:1.8;color:#4c5158}
@media(max-width:760px){html[data-theme="light"] #app .panel h2{font-size:18px}html[data-theme="light"] #app .positions-panel .panel-heading{flex-wrap:wrap;gap:12px}html[data-theme="light"] #app .metric-label{font-size:13px}html[data-theme="light"] #app td{font-size:14px}html[data-theme="light"] #app td:before{font-size:12px;font-weight:600;color:#50555d}html[data-theme="light"] #app .text-button{font-size:14px}}
html[data-theme="light"] thead,html[data-theme="light"] thead tr{background:#f0f2f5!important}
html[data-theme="light"] thead th{color:#454b54;background:#f0f2f5;font-weight:600}
html[data-theme="light"] .bot-power.running{color:#ed1c24;border-color:#ed1c24;background:#fff;animation:light-power-pulse 2.5s ease-in-out infinite}
html[data-theme="light"] .bot-power.running svg{filter:drop-shadow(0 0 4px #ed1c2455)}
@keyframes light-power-pulse{0%,100%{box-shadow:inset 0 0 10px #ed1c2408,0 0 10px #ed1c2420}50%{box-shadow:inset 0 0 18px #ed1c2414,0 0 24px #ed1c2445}}
/* Same operating-state motion as dark mode, using visible red energy. */
html[data-theme="light"] .bot-power.running{background:#fff5f5;animation:light-power-pulse 2.5s ease-in-out infinite;color:#ed1c24;border-color:#ed1c24}
html[data-theme="light"] .bot-power.running:before,html[data-theme="light"] .bot-power.running:after{display:block!important;content:'';position:absolute;inset:-5px;border-radius:50%;pointer-events:none;border:1px solid transparent}
html[data-theme="light"] .bot-power.running:before{border-top-color:#ed1c24;border-bottom-color:#ed1c2466;animation:energy-orbit 3s linear infinite}
html[data-theme="light"] .bot-power.running:after{border-color:#ed1c2488;animation:power-wave 2.5s ease-out infinite}
html[data-theme="light"] .bot-power.running svg{filter:drop-shadow(0 0 5px #ed1c2470)}
