.kline-chart{flex:1;width:100%;min-height:0}.chart-header{border-bottom:1px solid var(--B1H);background:var(--B1);justify-content:space-between;align-items:center;gap:12px;height:36px;padding:0 12px;display:flex}.chart-header-left{align-items:center;gap:8px;min-width:140px;display:flex}.symbol-title{font-size:14px;font-weight:600}.symbol-tag{color:var(--T3);background:var(--B2);border-radius:4px;padding:2px 6px;font-size:11px}.chart-header-center{flex:1;align-items:center;gap:2px;display:flex;overflow-x:auto}.interval-btn{color:var(--T2);background:0 0;border:none;border-radius:4px;padding:4px 8px;font-size:12px}.interval-btn:hover{color:var(--T1);background:var(--B2)}.interval-btn.active{color:var(--T1);background:var(--B3)}.chart-header-right{align-items:center;gap:8px;display:flex}.sub-view-tabs{background:var(--B2);border-radius:99px;gap:2px;padding:2px;display:flex}.sub-view-tabs button{color:var(--T2);background:0 0;border:none;border-radius:99px;padding:2px 8px;font-size:12px}.sub-view-tabs button.active{background:var(--B3);color:var(--T1)}:root.light .sub-view-tabs button.active{color:#141414;background:#dbdbdb}.theme-btn{background:var(--B2);color:var(--T2);border:none;border-radius:4px;width:28px;height:28px;font-size:14px}.theme-btn:hover{color:var(--T1)}.depth-chart-view{flex-direction:column;flex:1;min-height:0;display:flex}.depth-chart-container{background:var(--B1);-webkit-user-select:none;user-select:none;flex:1;width:100%;position:relative}.depth-chart-container canvas{outline:none;position:absolute;inset:0}.order-book{background:var(--B1);flex-direction:column;height:100%;display:flex}.order-book-toolbar{justify-content:space-between;align-items:center;height:36px;padding:0 16px;display:flex}.toolbar-right{align-items:center;gap:8px;display:flex}.switch-mode{gap:4px;display:flex}.mode-btn{background:0 0;border:none;flex-direction:column;gap:2px;padding:0;display:flex}.mode-block{opacity:.4;border-radius:2px;width:13px;height:6px}.mode-block.sell{background:var(--sell)}.mode-block.buy{background:var(--buy)}.mode-block.active{opacity:1}.step-select{background:var(--B2);border:1px solid var(--L1);color:var(--T1);border-radius:4px;min-width:75px;padding:4px 8px;font-size:12px}.view-type-menu{position:relative}.view-type-menu:hover .view-type-dropdown{visibility:visible}.settings-btn{color:var(--T3);background:0 0;border:none;padding:4px;font-size:14px}.view-type-dropdown{visibility:hidden;background:var(--B3);z-index:10;white-space:nowrap;border-radius:8px;flex-direction:column;gap:8px;padding:8px 12px;font-size:12px;display:flex;position:absolute;top:28px;right:-10px}.view-type-dropdown label{cursor:pointer;color:var(--T2);align-items:center;gap:6px;display:flex}.head-row{color:var(--T2);padding:0 16px;font-size:12px;line-height:20px;display:flex}.col-price{flex:2}.col-size{text-align:right;flex:2}.col-total{text-align:right;flex:3;padding-right:16px}.order-book-body{flex-direction:column;flex:1;min-height:0;display:flex;overflow:hidden}.order-list{flex:1;font-size:12px;font-weight:500;overflow:hidden}.ask-list{flex-direction:column;justify-content:flex-end;display:flex}.order-item{cursor:pointer;-webkit-user-select:none;user-select:none;z-index:1;line-height:22px;display:flex;position:relative;overflow:hidden}.order-item.bid .order-price{color:var(--buy)}.order-item.ask .order-price{color:var(--sell)}.order-item.bid:hover,.order-item.ask:hover{background:var(--DOT)}.order-item.bid.ask:hover{border-color:var(--menu-color)}.order-item.shading{background:var(--DOT)}.order-price{z-index:1;flex:2;padding-left:16px;position:relative}.order-size{z-index:1;text-align:right;color:var(--T1);flex:2;padding:0 16px;position:relative}.order-total{z-index:1;text-align:right;color:var(--T1);flex:3;padding-right:16px;position:relative}.depth-bar{z-index:0;pointer-events:none;border:none;margin:0;padding:0;display:block;position:absolute;inset:0 0 0 auto}.order-item.bid .depth-bar{background:var(--BID1)}.order-item.bid.odd .depth-bar{background:var(--BID2)}.order-item.ask .depth-bar{background:var(--ASK1)}.order-item.ask.odd .depth-bar{background:var(--ASK2)}.highlight{color:var(--BLUE)}.cancel-icon{color:var(--BLUE);text-align:center;z-index:2;width:16px;font-size:14px;font-style:normal;display:none;position:absolute;top:50%;right:2px;transform:translateY(-50%)}.special-row:hover .cancel-icon{display:block}.no-animation .order-item.up1:before,.no-animation .order-item.up2:before,.no-animation .order-item.dw1:before,.no-animation .order-item.dw2:before{animation:none!important}.order-item.up1:before,.order-item.up2:before,.order-item.dw1:before,.order-item.dw2:before{content:"";z-index:.5;pointer-events:none;position:absolute;inset:0}.order-item.up1:before{animation:.501s ease-out kf-ob-up1}.order-item.up2:before{animation:.502s ease-out kf-ob-up2}.order-item.dw1:before{animation:.501s ease-out kf-ob-dw1}.order-item.dw2:before{animation:.502s ease-out kf-ob-dw2}@keyframes kf-ob-up1{0%{background-color:var(--UPF)}}@keyframes kf-ob-up2{0%{background-color:var(--UPF)}}@keyframes kf-ob-dw1{0%{background-color:var(--DWF)}}@keyframes kf-ob-dw2{0%{background-color:var(--DWF)}}.split-bar{cursor:pointer;flex-shrink:0;align-items:center;gap:12px;padding:0 16px;line-height:38px;display:flex}.last-price{font-size:20px;font-weight:700}.last-price.up{color:var(--buy)}.last-price.down{color:var(--sell)}.change-percent{font-size:12px}.depth-ratio{align-items:center;margin:8px 0;padding:0 16px;font-size:12px;line-height:18px;display:flex}.ratio-left,.ratio-right{align-items:center;gap:8px;display:flex}.ratio-badge{text-align:center;border-radius:4px;width:18px;height:18px;font-size:11px;line-height:16px}.ratio-badge.buy{border:1px solid var(--buy);color:var(--buy)}.ratio-badge.sell{border:1px solid var(--sell);color:var(--sell)}.ratio-bar{flex:1;justify-content:space-between;align-items:center;margin:0 4px;display:flex}.ratio-bid{background:var(--BID2);height:20px;transition:width .5s ease-in-out;position:relative}.ratio-bid:after{content:"";border-right:8px solid #0000;border-bottom:20px solid var(--BID2);position:absolute;right:-8px}.ratio-ask{background:var(--ASK2);height:20px;transition:width .5s ease-in-out;position:relative}.ratio-ask:after{content:"";border-right:8px solid var(--ASK2);border-bottom:20px solid #0000;position:absolute;left:-8px}.buy{color:var(--buy)}.sell{color:var(--sell)}.T2{color:var(--T2)}.T3{color:var(--T3)}.book-trades-view{background:var(--B1);border:1px solid var(--L1);border-radius:4px;flex-direction:column;height:100%;display:flex;overflow:hidden}.book-trades-tabs{border-bottom:1px solid var(--L1);align-items:center;gap:16px;height:36px;padding:0 12px;display:flex}.book-trades-tabs button{color:var(--T2);background:0 0;border:none;border-bottom:2px solid #0000;padding:4px 0;font-size:14px}.book-trades-tabs button.active{color:var(--T1);border-bottom-color:var(--buy)}.book-trades-content{flex:1;min-height:0;display:flex}.recent-trades{flex:1;padding:8px 16px;overflow-y:auto}.trades-head,.trade-row{grid-template-columns:1fr 1fr 1fr;font-size:12px;line-height:24px;display:grid}.trades-head{color:var(--T2);margin-bottom:4px}.book-info-popup{background:var(--B3);color:var(--T2);z-index:100;border-radius:8px;padding:12px 16px;font-size:12px;position:fixed;bottom:16px;right:340px;box-shadow:0 4px 12px #0000004d}.trading-layout{background:var(--B1);flex-direction:column;height:100vh;display:flex}.demo-header{border-bottom:1px solid var(--L1);padding:12px 20px}.demo-header h1{margin:0;font-size:18px;font-weight:600}.demo-header p{color:var(--T3);margin:4px 0 0;font-size:12px}.trading-grid{flex:1;grid-template-columns:1fr 320px;gap:4px;min-height:0;padding:4px;display:grid}.chart-panel{border:1px solid var(--L1);background:var(--B1);border-radius:4px;flex-direction:column;min-height:0;display:flex;overflow:hidden}.chart-body{flex:1;min-height:0;position:relative}.chart-pane{flex-direction:column;display:none;position:absolute;inset:0}.chart-pane.active{display:flex}.book-panel{min-height:0;display:flex}.price-toast{background:var(--B3);border:1px solid var(--L1);z-index:200;border-radius:8px;align-items:center;gap:12px;padding:10px 16px;font-size:13px;display:flex;position:fixed;bottom:48px;left:50%;transform:translate(-50%);box-shadow:0 4px 16px #00000040}.price-toast button{color:var(--T2);background:0 0;border:none;font-size:16px}.demo-footer{color:var(--T3);border-top:1px solid var(--L1);padding:8px 20px;font-size:11px}.demo-footer code{color:var(--T2);background:var(--B2);border-radius:3px;padding:1px 4px}@media (width<=960px){.trading-grid{grid-template-rows:1fr 360px;grid-template-columns:1fr}}:root,:root.dark{--B1:#0e1421;--B1H:#ffffff14;--B2:#1a1f2e;--B3:#212736;--T1:#ffffffe6;--T2:#ffffffa6;--T3:#ffffff73;--T4:#ffffff40;--L1:#ffffff14;--buy:#33d43e;--sell:#f5474b;--BID1:#33d43e1f;--BID2:#33d43e33;--ASK1:#f5474b1f;--ASK2:#f5474b33;--UPF:#33d43e40;--DWF:#f5474b40;--DOT:#ffffff14;--menu-color:#ffffff73;--BLUE:#4a9eff}:root.light{--B1:#fff;--B1H:#0000000f;--B2:#f5f5f5;--B3:#ebebeb;--T1:#000000e6;--T2:#000000a6;--T3:#00000073;--T4:#00000040;--L1:#00000014;--buy:#1dbf53;--sell:#f5474b;--BID1:#1dbf531a;--BID2:#1dbf532e;--ASK1:#f5474b1a;--ASK2:#f5474b2e;--UPF:#1dbf5333;--DWF:#f5474b33;--DOT:#0000000a;--menu-color:#00000073;--BLUE:#06c}*{box-sizing:border-box}html,body,#root{background:var(--B1);height:100%;color:var(--T1);margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:14px}button{font:inherit;cursor:pointer}
