:root{color:#172033;background:#eef1f4;color-scheme:light;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}:root[data-theme=dark]{color:#e7edf7;background:#0b111d;color-scheme:dark}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:linear-gradient(180deg,#ffffffc2,#eef1f4eb),#eef1f4}button{border:0;border-radius:6px;background:#1769aa;color:#fff;font:inherit;font-weight:700;padding:10px 14px;cursor:pointer}button:hover{background:#10527f}input,select{border:1px solid #cfd7e3;border-radius:6px;color:#172033;font:inherit;padding:10px 12px;min-height:40px;background:#fff}.secondary-button{background:#5e6878}.secondary-button:hover{background:#454f5f}.theme-toggle{border:1px solid #cfd7e3;background:#f8fafc;color:#334057;min-height:42px}.theme-toggle:hover{background:#eef3f8;color:#172033}.dashboard-shell{width:min(1680px,calc(100vw - 32px));margin:0 auto;padding:24px 0 48px}.auth-loading{min-height:100vh;display:grid;place-items:center;background:#0b111d;color:#e7edf7}.login-shell{position:relative;isolation:isolate;min-height:100vh;display:grid;place-items:center;padding:24px;overflow:hidden;background:radial-gradient(circle at 16% 18%,rgba(75,145,210,.16),transparent 26%),radial-gradient(circle at 82% 8%,rgba(188,144,255,.12),transparent 24%),#08101c;color:#e7edf7}.login-shell:before{content:"";position:absolute;inset:0;z-index:-2;background-image:radial-gradient(circle,rgba(255,255,255,.85) 0 1px,transparent 1.5px),radial-gradient(circle,rgba(158,208,255,.64) 0 1px,transparent 1.6px),radial-gradient(circle,rgba(255,255,255,.42) 0 .8px,transparent 1.3px);background-position:20px 34px,110px 90px,58px 150px;background-size:190px 190px,260px 260px,330px 330px;opacity:.58}.login-shell:after{content:"";position:absolute;inset:auto 0 0;z-index:-1;height:45%;background:linear-gradient(0deg,rgba(8,16,28,.94),transparent)}.shooting-stars{position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none}.shooting-stars span{position:absolute;top:12%;left:82%;width:120px;height:2px;border-radius:999px;background:linear-gradient(90deg,#9ed0ff00,#9ed0fff2);filter:drop-shadow(0 0 8px rgba(126,189,255,.72));transform:rotate(-28deg) translateZ(0);opacity:0;animation:shooting-star 5.8s linear infinite}.shooting-stars span:after{content:"";position:absolute;right:0;top:50%;width:4px;height:4px;border-radius:999px;background:#fff;transform:translateY(-50%);box-shadow:0 0 12px #ffffffe6}.shooting-stars span:nth-child(2){top:28%;left:70%;width:92px;animation-delay:1.7s;animation-duration:6.4s}.shooting-stars span:nth-child(3){top:48%;left:88%;width:140px;animation-delay:3.2s;animation-duration:7.2s}.shooting-stars span:nth-child(4){top:8%;left:56%;width:76px;animation-delay:4.4s;animation-duration:6.8s}.shooting-stars span:nth-child(5){top:66%;left:76%;width:110px;animation-delay:5.3s;animation-duration:8s}@keyframes shooting-star{0%{opacity:0;transform:rotate(-28deg) translateZ(0)}7%{opacity:1}18%{opacity:0;transform:rotate(-28deg) translate3d(-520px,250px,0)}to{opacity:0;transform:rotate(-28deg) translate3d(-520px,250px,0)}}.login-panel{position:relative;z-index:1;display:grid;gap:22px;width:min(100%,380px);padding:28px;border:1px solid #26354a;border-radius:8px;background:#101827;box-shadow:0 18px 44px #00000047}.login-brand{text-align:center}.login-mark{display:grid;place-items:center;width:64px;height:64px;margin:0 auto 14px;border:1px solid #33445d;border-radius:8px;background:#0b111d;font-size:36px;line-height:1}.login-brand span{display:inline-flex;color:#9ed0ff;font-weight:900;text-transform:uppercase;font-size:13px;letter-spacing:.08em}.login-brand h1{margin:8px 0 0;font-size:30px;line-height:1.1;letter-spacing:0}.login-form{display:grid;gap:14px}.login-form label{display:grid;gap:7px;color:#c2ccda;font-size:13px;font-weight:800}.login-form input{border-color:#33445d;background:#101827;color:#e7edf7}.login-form button{min-height:44px}.forgot-button{background:transparent;color:#9ed0ff;padding:6px 0;justify-self:start}.forgot-button:hover{background:transparent;color:#fff}.login-message{color:#ffb46f;font-size:13px}.topbar{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:18px}.topbar h1,.panel h2,.trade-card h3,.account-columns h3{margin:0;letter-spacing:0}.topbar h1{font-size:28px;line-height:1.15}.topbar-title{display:flex;align-items:center;gap:12px}.dashboard-mark{display:grid;place-items:center;flex:0 0 auto;width:44px;height:44px;border:1px solid #cfd7e3;border-radius:8px;background:#f8fafc;font-size:25px;line-height:1}.topbar p,.panel-heading p{color:#657085;margin:5px 0 0}.top-nav{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.nav-button{border:1px solid #cfd7e3;background:#f8fafc;color:#334057;min-height:38px;padding:8px 12px}.nav-button:hover{background:#eef3f8;color:#172033}.nav-button.active{border-color:#1769aa;background:#1769aa;color:#fff}.status-row,.stats-grid,.button-row{display:flex;gap:10px;align-items:center}.status-row{flex-wrap:wrap;justify-content:flex-end}.user-chip{min-height:42px;display:grid;align-content:center;border:1px solid #d7dde6;border-radius:8px;background:#ffffffeb;padding:7px 12px}.user-chip strong,.user-chip small{display:block}.user-chip small{color:#657085;font-size:12px;text-transform:capitalize}.status-badge,.stat-tile,.panel,.trade-card,.notice,.toast{border:1px solid #d7dde6;border-radius:8px;background:#ffffffeb;box-shadow:0 10px 28px #19213414}.status-badge{display:flex;gap:9px;align-items:center;min-width:178px;padding:10px 12px}.status-badge strong,.status-badge small{display:block}.status-badge small{color:#657085;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:190px}.status-dot{width:10px;height:10px;border-radius:999px;background:#cf6b27;flex:0 0 auto}.status-badge.good .status-dot{background:#15965f}.status-badge.warn .status-dot{background:#cf6b27}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));margin-bottom:16px}.stat-tile{padding:14px;min-height:78px}.stat-tile span{display:block;color:#657085;font-size:13px;margin-bottom:9px}.stat-tile strong{font-size:24px;line-height:1}.stat-tile.green strong{color:#0c8755}.stat-tile.purple strong{color:#7449a8}.stat-tile.orange strong{color:#bc6124}.stat-tile.blue strong{color:#1769aa}.content-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(340px,.75fr);gap:16px;align-items:start}.main-column,.side-column{display:grid;gap:16px}.panel{padding:16px}.panel-heading{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:14px}.panel h2{font-size:18px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;min-width:720px}th,td{padding:12px 10px;border-bottom:1px solid #edf0f4;text-align:right;white-space:nowrap}th:first-child,td:first-child{text-align:left}th{color:#657085;font-size:12px;text-transform:uppercase}td small{display:block;color:#7d8799;margin-top:3px}.positive{color:#0c8755}.negative{color:#c53245}.market-search{width:min(280px,100%)}.market-count{color:#657085;font-size:13px;margin:-5px 0 10px}.market-table-wrap{max-height:520px;overflow:auto}.market-table-wrap thead th{position:sticky;top:0;z-index:1;background:#fffffffa}.tradingview-panel{overflow:hidden}.chart-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:flex-end}.chart-toggle{min-height:40px}.chart-link{align-self:center;color:#1769aa;font-size:13px;font-weight:800;text-decoration:none}.chart-link:hover{color:#0f4d7d}.tradingview-chart-shell{height:min(64vh,720px);min-height:560px;overflow:hidden;border:1px solid #dce4ef;border-radius:8px;background:#0b111d}.tradingview-widget-container,.tradingview-widget-container__widget{width:100%;height:100%}.admin-page,.paper-stack{display:grid;gap:16px}.overall-pnl{text-align:right;min-width:150px}.overall-pnl span,.overall-pnl strong{display:block}.overall-pnl span{color:#657085;font-size:12px;font-weight:800;text-transform:uppercase}.overall-pnl strong{font-size:22px;line-height:1.15}.pnl-table{min-width:860px}.filter-row{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:-2px 0 14px}.timeframe-select-label{display:inline-flex;align-items:center;gap:10px;color:#657085;font-size:13px;font-weight:800}.timeframe-select{min-width:180px;background:#f8fafc;font-weight:800}.total-row td{background:#f8fafc;border-top:2px solid #dbe2eb;font-weight:800}.tab-row{display:inline-flex;gap:4px;align-items:center;padding:4px;border:1px solid #dbe2eb;border-radius:8px;background:#eef3f8}.tab-button{min-height:34px;border-radius:6px;background:transparent;color:#4e5a6f;padding:7px 11px}.tab-button:hover{background:#dfe8f1;color:#172033}.tab-button.active{background:#1769aa;color:#fff}.paper-table{min-width:1180px}.paper-table td,.paper-table th{vertical-align:middle}.paper-table td:nth-child(4){text-align:center}.paper-table td:nth-child(9) small{margin-top:2px}.paper-table tbody tr.selectable-row{cursor:pointer}.paper-table tbody tr.selectable-row:hover td{background:#f8fbff}.paper-table tbody tr.selected-row td{background:#1769aa14}.paper-table tbody tr.selectable-row:focus-visible{outline:2px solid #1769aa;outline-offset:-2px}.admin-panel{overflow:hidden}.admin-create-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:12px}.admin-create-form button{grid-column:span 2}.admin-status{color:#1769aa;font-size:13px;font-weight:800;margin-bottom:10px}.admin-table{min-width:1080px}.admin-table select,.admin-table input{min-height:34px;padding:7px 9px}.status-toggle{min-height:34px;padding:7px 10px;background:#6a7281}.status-toggle.active{background:#0c8755}.status-toggle:hover{background:#515b6b}.status-toggle.active:hover{background:#096d45}.password-reset-row{display:grid;grid-template-columns:minmax(120px,1fr) auto;gap:7px}.password-reset-row button{min-height:34px;padding:7px 10px}.table-limit-note{color:#657085;font-size:13px;margin-top:10px}.ticker-arrow{display:inline-flex;align-items:center;gap:7px}.ticker-arrow span{font-size:14px;line-height:1}.profit-arrow{color:#0c8755}.loss-arrow{color:#c53245}.flat-arrow{color:#657085}.stage-pill{display:inline-flex;align-items:center;justify-content:center;min-width:74px;border-radius:999px;padding:5px 9px;background:#eef3f8;color:#334057;font-size:12px;font-weight:800}.trade-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}.trade-card{padding:14px}.trade-card header,.trade-card footer{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.trade-card h3{font-size:16px}.trade-card header span,.trade-card footer,.mini-list small{color:#657085;font-size:12px}.trade-card dl{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin:14px 0}.trade-card dt{color:#657085;font-size:12px}.trade-card dd{margin:3px 0 0;font-weight:800}.trade-card .live{color:#0c8755}.trade-card .closed{color:#657085}.trade-inspector{position:sticky;top:16px;align-self:start;max-height:calc(100vh - 32px);overflow-y:auto}.inspector-pill{text-transform:capitalize}.inspector-pill.open{background:#0c87551f;color:#0c8755}.inspector-pill.closed{background:#65708524;color:#4e5a6f}.trade-move-inset,.trade-move-empty{border:1px solid #dbe2eb;border-radius:8px;background:#f8fafc;overflow:hidden}.trade-move-empty{display:grid;min-height:160px;place-items:center;color:#657085;font-size:13px;font-weight:800;text-align:center;padding:18px}.trade-move-inset svg{display:block;width:100%;height:auto}.trade-chart-bg{fill:#f8fafc}.trade-chart-grid{stroke:#dfe6ef;stroke-width:1}.trade-move-fill{opacity:.34}.trade-move-fill.profit{fill:#0c8755}.trade-move-fill.loss{fill:#c53245}.trade-move-line{fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.trade-move-line.profit{stroke:#0c8755}.trade-move-line.loss{stroke:#c53245}.entry-line{stroke:#657085;stroke-width:1.4;stroke-dasharray:4 4}.stop-line{stroke:#1769aa;stroke-width:2}.move-point{stroke:#fff;stroke-width:1.5}.move-point.entry{fill:#1769aa}.move-point.partial{fill:#7449a8}.move-point.exit,.move-point.mark{fill:#bc6124}.move-label,.price-label{fill:#334057;font-size:10px;font-weight:800}.price-label.stop{fill:#1769aa}.inspector-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0}.inspector-summary div,.inspector-grid div,.partial-list article{border:1px solid #edf0f4;border-radius:8px;background:#f8fafc;padding:12px}.inspector-summary span,.inspector-summary small,.inspector-grid dt,.partial-list small{color:#657085;font-size:12px;font-weight:800}.inspector-summary strong{display:block;margin:5px 0 2px;font-size:22px;line-height:1.05}.inspector-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0}.inspector-grid dd{margin:4px 0 0;font-weight:850;overflow-wrap:anywhere}.partial-list{display:grid;gap:8px;margin-top:14px}.partial-list h3{margin:0 0 2px;font-size:15px}.partial-list strong,.partial-list span,.partial-list small{display:block}.partial-list span{margin:4px 0 2px;font-weight:800}.account-columns{display:grid;grid-template-columns:1fr 1fr;gap:14px}.account-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:14px}.account-summary-grid div{border:1px solid #dbe2eb;border-radius:8px;background:#f8fafc;padding:12px}.account-summary-grid span,.account-summary-grid strong{display:block}.account-summary-grid span{color:#657085;font-size:12px;font-weight:800;text-transform:uppercase}.account-summary-grid strong{margin-top:5px;font-size:20px}.mini-list{display:grid;gap:8px;margin-top:10px}.mini-list div{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #edf0f4;padding-bottom:8px}.mini-list span{color:#4e5a6f}.mini-list strong{text-align:right}.event-feed{display:grid;gap:8px;max-height:460px;overflow:auto}.event-feed article{display:grid;grid-template-columns:78px 1fr;gap:8px;border-bottom:1px solid #edf0f4;padding-bottom:9px}.event-feed time,.event-feed small{color:#657085;font-size:12px}.event-feed strong,.event-feed span{display:block}.event-feed span{color:#4e5a6f;font-size:13px}.webhook-panel code{display:block;padding:12px;background:#f2f5f8;border:1px solid #dde4ed;border-radius:6px;color:#24435d;overflow-x:auto}.webhook-panel{margin-bottom:16px}.webhook-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;align-items:start}.sample-row{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;max-width:280px}.button-row{margin-top:12px;justify-content:space-between;flex-wrap:wrap}.button-row.stacked{justify-content:flex-start}.button-row span{color:#657085}.sample-price{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#657085;margin-top:10px;padding:10px;border:1px solid #edf0f4;border-radius:8px;background:#f8fafc;font-size:13px}.sample-price strong{color:#172033}.notice,.toast,.empty-state,.empty-cell{color:#657085}.notice{padding:12px;background:#fff8ed;border-color:#efd6af;margin-bottom:12px}.notice.danger{color:#9d2b3a;background:#fff0f2;border-color:#efc4cb}.toast{padding:12px;color:#1769aa}.empty-state{border:1px dashed #cdd5df;border-radius:8px;padding:18px;text-align:center;background:#f8fafc}.empty-state.compact{padding:12px}:root[data-theme=dark] body{background:linear-gradient(180deg,#0e1624f5,#070b13fa),#0b111d}:root[data-theme=dark] .topbar p,:root[data-theme=dark] .panel-heading p,:root[data-theme=dark] .status-badge small,:root[data-theme=dark] .stat-tile span,:root[data-theme=dark] th,:root[data-theme=dark] td small,:root[data-theme=dark] .market-count,:root[data-theme=dark] .overall-pnl span,:root[data-theme=dark] .timeframe-select-label,:root[data-theme=dark] .trade-card header span,:root[data-theme=dark] .trade-card footer,:root[data-theme=dark] .mini-list small,:root[data-theme=dark] .event-feed time,:root[data-theme=dark] .event-feed small,:root[data-theme=dark] .button-row span,:root[data-theme=dark] .sample-price,:root[data-theme=dark] .table-limit-note,:root[data-theme=dark] .notice,:root[data-theme=dark] .toast,:root[data-theme=dark] .empty-state,:root[data-theme=dark] .empty-cell{color:#9aa7bb}:root[data-theme=dark] .status-badge,:root[data-theme=dark] .stat-tile,:root[data-theme=dark] .panel,:root[data-theme=dark] .trade-card,:root[data-theme=dark] .dashboard-mark,:root[data-theme=dark] .user-chip,:root[data-theme=dark] .toast{border-color:#26354a;background:#111927f0;box-shadow:0 14px 34px #00000042}:root[data-theme=dark] input,:root[data-theme=dark] select{border-color:#33445d;background:#101827;color:#e7edf7}:root[data-theme=dark] input::placeholder{color:#7f8da2}:root[data-theme=dark] th,:root[data-theme=dark] td,:root[data-theme=dark] .mini-list div,:root[data-theme=dark] .event-feed article,:root[data-theme=dark] .account-summary-grid div{border-bottom-color:#223044}:root[data-theme=dark] .account-summary-grid div{border-color:#223044}:root[data-theme=dark] .market-table-wrap thead th{background:#111927fa}:root[data-theme=dark] .timeframe-select,:root[data-theme=dark] .total-row td,:root[data-theme=dark] .theme-toggle,:root[data-theme=dark] .empty-state,:root[data-theme=dark] .account-summary-grid div,:root[data-theme=dark] .sample-price{background:#121c2c}:root[data-theme=dark] .total-row td{border-top-color:#35465e}:root[data-theme=dark] .tab-row{border-color:#2c3b50;background:#121c2c}:root[data-theme=dark] .tab-button{color:#acb8ca}:root[data-theme=dark] .tab-button:hover{background:#1b2a40;color:#e7edf7}:root[data-theme=dark] .tab-button.active{background:#2f81d1;color:#fff}:root[data-theme=dark] .nav-button{border-color:#33445d;background:#121c2c;color:#c2ccda}:root[data-theme=dark] .nav-button:hover{background:#1b2a40;color:#fff}:root[data-theme=dark] .nav-button.active{border-color:#2f81d1;background:#2f81d1;color:#fff}:root[data-theme=dark] .stage-pill{background:#1b2a40;color:#d6e0ef}:root[data-theme=dark] .mini-list span,:root[data-theme=dark] .event-feed span,:root[data-theme=dark] .user-chip small,:root[data-theme=dark] .theme-toggle{color:#c2ccda}:root[data-theme=dark] .webhook-panel code{border-color:#33445d;background:#0f1726;color:#9ed0ff}:root[data-theme=dark] .tradingview-chart-shell{border-color:#26354a;background:#0b111d}:root[data-theme=dark] .chart-link{color:#7dbdff}:root[data-theme=dark] .chart-link:hover{color:#add6ff}:root[data-theme=dark] .theme-toggle:hover{background:#1b2a40;color:#fff}:root[data-theme=dark] .sample-price{border-color:#223044}:root[data-theme=dark] .sample-price strong{color:#e7edf7}:root[data-theme=dark] .paper-table tbody tr.selectable-row:hover td{background:#2f81d114}:root[data-theme=dark] .paper-table tbody tr.selected-row td{background:#2f81d129}:root[data-theme=dark] .trade-move-inset,:root[data-theme=dark] .trade-move-empty,:root[data-theme=dark] .inspector-summary div,:root[data-theme=dark] .inspector-grid div,:root[data-theme=dark] .partial-list article{border-color:#223044;background:#121c2c}:root[data-theme=dark] .trade-chart-bg{fill:#121c2c}:root[data-theme=dark] .trade-chart-grid{stroke:#223044}:root[data-theme=dark] .entry-line{stroke:#9aa7bb}:root[data-theme=dark] .move-label,:root[data-theme=dark] .price-label{fill:#d6e0ef}:root[data-theme=dark] .inspector-summary span,:root[data-theme=dark] .inspector-summary small,:root[data-theme=dark] .inspector-grid dt,:root[data-theme=dark] .partial-list small,:root[data-theme=dark] .trade-move-empty{color:#9aa7bb}:root[data-theme=dark] .inspector-pill.open{background:#32d58b21;color:#32d58b}:root[data-theme=dark] .inspector-pill.closed{background:#9aa7bb24;color:#c2ccda}:root[data-theme=dark] .notice{background:#835b1e2e;border-color:#d1923961}:root[data-theme=dark] .notice.danger{color:#ff8f9d;background:#81263538;border-color:#dc52676b}:root[data-theme=dark] .positive,:root[data-theme=dark] .stat-tile.green strong,:root[data-theme=dark] .profit-arrow,:root[data-theme=dark] .trade-card .live{color:#32d58b}:root[data-theme=dark] .negative,:root[data-theme=dark] .loss-arrow{color:#ff6378}:root[data-theme=dark] .flat-arrow{color:#9aa7bb}:root[data-theme=dark] .stat-tile.purple strong{color:#c090ff}:root[data-theme=dark] .stat-tile.orange strong{color:#ffb46f}:root[data-theme=dark] .stat-tile.blue strong,:root[data-theme=dark] .toast,:root[data-theme=dark] .admin-status{color:#7dbdff}@media(max-width:1080px){.topbar,.content-grid{grid-template-columns:1fr;display:grid}.status-row{justify-content:flex-start}.stats-grid{grid-template-columns:repeat(2,minmax(150px,1fr))}.webhook-grid{grid-template-columns:1fr}.trade-inspector{position:static;max-height:none}}@media(max-width:640px){.dashboard-shell{width:min(100vw - 20px,1680px);padding-top:12px}.stats-grid,.account-columns,.account-summary-grid,.inspector-summary,.inspector-grid,.sample-row{grid-template-columns:1fr}.panel-heading{display:grid}.admin-create-form,.password-reset-row{grid-template-columns:1fr}.admin-create-form button{grid-column:auto}.overall-pnl{text-align:left}.tab-row,.top-nav,.chart-actions{width:100%}.tab-button{flex:1}.topbar h1{font-size:24px}.dashboard-mark{width:40px;height:40px;font-size:23px}.tradingview-chart-shell{height:56vh;min-height:420px}}
