*{box-sizing:border-box;margin:0;padding:0}body{color:#d1d4dc;background:#131722;height:100vh;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;overflow:hidden}#loading-screen{z-index:9999;background:#131722;flex-direction:column;justify-content:center;align-items:center;gap:20px;display:flex;position:fixed;inset:0}.loader{border:3px solid #2962ff;border-bottom-color:#0000;border-radius:50%;width:48px;height:48px;animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.progress-bar{background:#2a2e39;border-radius:2px;width:300px;height:4px;overflow:hidden}#loading-progress{background:#2962ff;width:0%;height:100%;transition:width .2s}.hidden{display:none!important}#app{flex-direction:column;height:100vh;display:flex}.header{background:#1e222d;border-bottom:1px solid #2a2e39;flex-shrink:0;justify-content:space-between;align-items:center;padding:8px 16px;display:flex}.header-left{align-items:center;gap:12px;display:flex}.header h1{color:#fff;font-size:16px;font-weight:600}.symbol{color:#2962ff;background:#2962ff26;border-radius:4px;padding:2px 8px;font-size:13px;font-weight:600}.timeframe{color:#868993;background:#2a2e39;border-radius:4px;padding:2px 8px;font-size:12px}#export-btn,#toggle-sidebar,#lang-select{color:#d1d4dc;cursor:pointer;background:#2a2e39;border:1px solid #434651;border-radius:4px;padding:4px 12px;font-size:12px}#export-btn:hover,#toggle-sidebar:hover,#lang-select:hover{background:#363a45}#lang-select option{color:#d1d4dc;background:#1e222d}.main-content{flex:1;min-height:0;display:flex}.chart-area{flex-direction:column;flex:1;min-width:0;display:flex}.chart-top-bar{background:#1e222d;border-bottom:1px solid #2a2e39;flex-shrink:0;justify-content:space-between;align-items:center;padding:4px 8px;display:flex;position:relative}.drawing-toolbar{align-items:center;gap:4px;display:flex}.tool-btn{color:#d1d4dc;cursor:pointer;background:#2a2e39;border:1px solid #434651;border-radius:4px;justify-content:center;align-items:center;width:30px;height:28px;padding:0;font-size:13px;line-height:1;transition:background-color .12s,border-color .12s,color .12s;display:inline-flex;position:relative}.tool-btn[hidden]{display:none}.tool-divider{background:#434651;flex-shrink:0;width:1px;height:18px;margin:0 4px}.tool-btn[data-tooltip]:hover:after,.replay-controls button[data-tooltip]:hover:after{content:attr(data-tooltip);color:#d1d4dc;white-space:nowrap;z-index:1000;pointer-events:none;background:#1e222d;border:1px solid #434651;border-radius:4px;padding:4px 8px;font-size:12px;font-weight:400;position:absolute;top:calc(100% + 6px);left:50%;transform:translate(-50%);box-shadow:0 2px 8px #0006}.tool-btn svg{display:block}.tool-btn:hover{background:#363a45}.tool-btn.inactive{opacity:.4}.tool-btn.active{color:#fff;background:#2962ff;border-color:#2962ff}.modal{z-index:10000;background:#0000008c;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.modal-content{background:#1e222d;border:1px solid #2a2e39;border-radius:8px;flex-direction:column;gap:10px;min-width:320px;max-width:90vw;padding:20px 22px;display:flex;box-shadow:0 10px 40px #00000080}.modal-content h3{color:#d1d4dc;margin-bottom:4px;font-size:14px;font-weight:600}.modal-content label{color:#868993;margin-top:4px;font-size:12px}.modal-content textarea{color:#d1d4dc;resize:vertical;background:#131722;border:1px solid #2a2e39;border-radius:4px;min-height:56px;padding:6px 8px;font-family:inherit;font-size:13px}.modal-content textarea:focus{border-color:#2962ff;outline:none}.modal-row{gap:16px;margin-top:4px;display:flex}.modal-field{flex-direction:column;gap:4px;display:flex}.modal-field label{margin-top:0}.modal-content input[type=color]{cursor:pointer;background:#131722;border:1px solid #2a2e39;border-radius:4px;width:56px;height:30px;padding:2px}.modal-content input[type=color]::-webkit-color-swatch-wrapper{padding:0}.modal-content input[type=color]::-webkit-color-swatch{border:none;border-radius:2px}.modal-content input[type=color]::-moz-color-swatch{border:none;border-radius:2px}.modal-content input[type=number]{color:#d1d4dc;background:#131722;border:1px solid #2a2e39;border-radius:4px;width:70px;height:30px;padding:4px 6px;font-family:inherit;font-size:13px}.modal-content input[type=number]:focus{border-color:#2962ff;outline:none}.modal-actions{justify-content:flex-end;gap:8px;margin-top:8px;display:flex}.modal-btn{cursor:pointer;color:#d1d4dc;background:#2a2e39;border:1px solid #434651;border-radius:4px;padding:6px 14px;font-size:12px;font-weight:600}.modal-btn:hover{background:#363a45}.modal-btn-ok{color:#fff;background:#2962ff;border-color:#2962ff}.modal-btn-ok:hover{background:#1e4fd8}.help-content{min-width:480px;max-width:560px;max-height:80vh;overflow-y:auto}.help-section{flex-direction:column;gap:6px;margin-top:4px;display:flex}.help-section h4{color:#2962ff;margin-bottom:2px;font-size:13px;font-weight:600}.help-section ul{flex-direction:column;gap:4px;padding-left:0;list-style:none;display:flex}.help-section li{color:#d1d4dc;padding-left:14px;font-size:13px;line-height:1.55;position:relative}.help-section li:before{content:"•";color:#868993;position:absolute;left:0}#chart-container{flex:1;min-height:0}.sidebar{background:#1e222d;border-left:1px solid #2a2e39;flex-direction:column;flex-shrink:0;gap:8px;width:260px;padding:8px;transition:width .2s,padding .2s,opacity .2s;display:flex;overflow-y:auto}.sidebar.collapsed{opacity:0;border-left:none;width:0;padding:0;overflow:hidden}.panel{background:#131722;border:1px solid #2a2e39;border-radius:6px;padding:12px}.panel h3{color:#868993;text-transform:uppercase;letter-spacing:.5px;font-size:12px;font-weight:600}.panel-header{justify-content:space-between;align-items:center;margin-bottom:10px;display:flex}.btn-clear-history{color:#868993;cursor:pointer;background:#2a2e39;border:1px solid #434651;border-radius:4px;padding:2px 8px;font-size:11px}.btn-clear-history:hover{color:#fff;background:#f23645;border-color:#f23645}.position-status{background:#1e222d;border-radius:4px;justify-content:space-between;align-items:center;margin-bottom:10px;padding:8px;font-size:13px;display:flex}#position-label{color:#868993;font-weight:600}#position-label.long{color:#089981}#position-label.short{color:#f23645}.pnl{font-family:monospace;font-weight:600}.pnl.positive{color:#089981}.pnl.negative{color:#f23645}.order-inputs{flex-direction:column;gap:6px;margin-bottom:10px;display:flex}.order-inputs label{color:#868993;justify-content:space-between;align-items:center;font-size:12px;display:flex}.order-inputs input{color:#d1d4dc;background:#1e222d;border:1px solid #2a2e39;border-radius:4px;width:100px;padding:4px 6px;font-size:12px}.order-inputs input:focus{border-color:#2962ff;outline:none}.order-buttons{flex-direction:column;gap:6px;display:flex}.order-buttons button{cursor:pointer;border:none;border-radius:4px;padding:8px;font-size:13px;font-weight:600;transition:opacity .15s}.order-buttons button:disabled{opacity:.4;cursor:not-allowed}.order-buttons button:not(:disabled):hover{opacity:.85}.btn-buy{color:#fff;background:#089981}.btn-sell{color:#fff;background:#f23645}.btn-close{color:#fff;background:#868993}.stat-row{border-bottom:1px solid #1e222d;justify-content:space-between;padding:6px 0;font-size:12px;display:flex}.stat-row:last-child{border-bottom:none}.stat-row span:first-child{color:#868993}.stat-row span:last-child{font-family:monospace;font-weight:600}.panel.history-panel{flex-direction:column;flex:1;min-height:0;display:flex}.trade-list{flex-direction:column;flex:1;gap:4px;min-height:0;display:flex;overflow-y:auto}.trade-item{background:#1e222d;border-radius:4px;justify-content:space-between;align-items:center;padding:6px 8px;font-size:11px;display:flex}.trade-item .dir{border-radius:3px;padding:1px 4px;font-size:10px;font-weight:600}.trade-item .dir.long{color:#089981;background:#08998133}.trade-item .dir.short{color:#f23645;background:#f2364533}.trade-item .result{font-family:monospace;font-weight:600}.trade-item .result.positive{color:#089981}.trade-item .result.negative{color:#f23645}.replay-controls{flex-shrink:0;align-items:center;gap:8px;display:flex;position:absolute;left:50%;transform:translate(-50%)}.replay-controls button{color:#d1d4dc;cursor:pointer;background:#2a2e39;border:1px solid #434651;border-radius:4px;justify-content:center;align-items:center;width:30px;height:28px;padding:0;transition:background-color .12s,border-color .12s,color .12s;display:inline-flex;position:relative}.replay-controls button svg{display:block}.replay-controls button:hover{background:#363a45}.replay-controls button:active,#btn-play{color:#fff;background:#2962ff;border-color:#2962ff}#btn-play:hover{background:#1e4fd8;border-color:#1e4fd8}.time-display{color:#868993;margin-left:8px;font-family:monospace;font-size:13px}.bottom-order{align-items:center;gap:8px;margin-left:auto;display:flex}.position-label{color:#868993;text-align:center;background:#131722;border:1px solid #2a2e39;border-radius:4px;min-width:80px;padding:4px 8px;font-size:12px;font-weight:600}.position-label.long{color:#089981;border-color:#089981}.position-label.short{color:#f23645;border-color:#f23645}.bottom-order select,.bottom-order input{color:#d1d4dc;background:#131722;border:1px solid #2a2e39;border-radius:4px;padding:4px 6px;font-size:12px}.bottom-order select{cursor:pointer}.bottom-order input{text-align:center;width:50px}.bottom-order input:disabled,.bottom-order select:disabled{opacity:.4;cursor:not-allowed}.btn-open{color:#fff;cursor:pointer;background:#089981;border:none;border-radius:4px;padding:4px 14px;font-size:12px;font-weight:600}.btn-open:disabled{opacity:.4;cursor:not-allowed}.btn-close-bottom{color:#fff;cursor:pointer;background:#868993;border:none;border-radius:4px;padding:4px 14px;font-size:12px;font-weight:600}.btn-close-bottom:disabled{opacity:.4;cursor:not-allowed}.unrealized-pnl{text-align:right;min-width:60px;font-family:monospace;font-size:12px;font-weight:600}.unrealized-pnl.positive{color:#089981}.unrealized-pnl.negative{color:#f23645}::-webkit-scrollbar{width:6px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:#434651;border-radius:3px}::-webkit-scrollbar-thumb:hover{background:#5d6069}
