html,body{width:100%;height:100%}input::-ms-clear,input::-ms-reveal{display:none}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:rgba(0,0,0,0)}@-ms-viewport{width:device-width}body{margin:0}[tabindex="-1"]:focus{outline:none}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:500}p{margin-top:0;margin-bottom:1em}abbr[title],abbr[data-original-title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted;border-bottom:0;cursor:help}address{margin-bottom:1em;font-style:normal;line-height:inherit}input[type=text],input[type=password],input[type=number],textarea{-webkit-appearance:none}ol,ul,dl{margin-top:0;margin-bottom:1em}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:500}dd{margin-bottom:.5em;margin-left:0}blockquote{margin:0 0 1em}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}pre,code,kbd,samp{font-size:1em;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace}pre{margin-top:0;margin-bottom:1em;overflow:auto}figure{margin:0 0 1em}img{vertical-align:middle;border-style:none}a,area,button,[role=button],input:not([type=range]),label,select,summary,textarea{touch-action:manipulation}table{border-collapse:collapse}caption{padding-top:.75em;padding-bottom:.3em;text-align:left;caption-side:bottom}input,button,select,optgroup,textarea{margin:0;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{padding:0;border-style:none}input[type=radio],input[type=checkbox]{box-sizing:border-box;padding:0}input[type=date],input[type=time],input[type=datetime-local],input[type=month]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;margin:0;padding:0;border:0}legend{display:block;width:100%;max-width:100%;margin-bottom:.5em;padding:0;color:inherit;font-size:1.5em;line-height:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}mark{padding:.2em;background-color:#feffe6}html{min-height:100%;-webkit-text-size-adjust:100%;text-size-adjust:100%}*,*:before,*:after{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at top left,rgba(47,84,235,.18),transparent 28%),radial-gradient(circle at top right,rgba(19,194,194,.15),transparent 24%),linear-gradient(180deg,#0f172a,#111827 16%,#f5f7fb 16%,#f5f7fb);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}#root{min-height:100vh;min-width:0}.app-shell{min-height:100vh;background:transparent}.app-header{display:flex;align-items:center;background:transparent;padding:24px 32px}.app-content{padding:8px 24px 32px}.ant-card{border-radius:18px;box-shadow:0 12px 40px #0f172a14}.ant-table-wrapper .ant-table-content,.ant-table-wrapper .ant-table-body,.ant-table-wrapper .ant-table-sticky-scroll,.ant-drawer-body,.app-shell{scrollbar-color:#94a3b8 #e5e7eb;scrollbar-width:auto}.ant-table-wrapper .ant-table-content,.ant-table-wrapper .ant-table-body{overflow-x:auto!important;scrollbar-gutter:stable}.ant-table-wrapper .ant-table-content::-webkit-scrollbar,.ant-table-wrapper .ant-table-body::-webkit-scrollbar,.ant-table-wrapper .ant-table-sticky-scroll::-webkit-scrollbar,.ant-drawer-body::-webkit-scrollbar,.app-shell::-webkit-scrollbar{width:14px;height:14px}.ant-table-wrapper .ant-table-content::-webkit-scrollbar:horizontal,.ant-table-wrapper .ant-table-body::-webkit-scrollbar:horizontal,.ant-table-wrapper .ant-table-sticky-scroll::-webkit-scrollbar:horizontal,.ant-drawer-body::-webkit-scrollbar:horizontal,.app-shell::-webkit-scrollbar:horizontal{height:14px}.ant-table-wrapper .ant-table-content::-webkit-scrollbar-track,.ant-table-wrapper .ant-table-body::-webkit-scrollbar-track,.ant-table-wrapper .ant-table-sticky-scroll::-webkit-scrollbar-track,.ant-drawer-body::-webkit-scrollbar-track,.app-shell::-webkit-scrollbar-track{background:#e5e7eb;border-radius:999px}.ant-table-wrapper .ant-table-content::-webkit-scrollbar-thumb,.ant-table-wrapper .ant-table-body::-webkit-scrollbar-thumb,.ant-table-wrapper .ant-table-sticky-scroll::-webkit-scrollbar-thumb,.ant-drawer-body::-webkit-scrollbar-thumb,.app-shell::-webkit-scrollbar-thumb{background:#94a3b8;border:3px solid #e5e7eb;border-radius:999px}.ant-table-wrapper .ant-table-content::-webkit-scrollbar-thumb:hover,.ant-table-wrapper .ant-table-body::-webkit-scrollbar-thumb:hover,.ant-table-wrapper .ant-table-sticky-scroll::-webkit-scrollbar-thumb:hover,.ant-drawer-body::-webkit-scrollbar-thumb:hover,.app-shell::-webkit-scrollbar-thumb:hover{background:#64748b}.ant-table-wrapper .ant-table-sticky-scroll{height:14px!important;background:#e5e7eb!important;border-radius:999px;box-shadow:inset 0 0 0 1px #94a3b859}.ant-table-wrapper .ant-table-sticky-scroll-bar{height:10px!important;bottom:2px!important;background-color:#94a3b8!important;border-radius:999px!important}.ant-table-wrapper .ant-table-sticky-scroll-bar:hover{background-color:#64748b!important}.visible-horizontal-scrollbar{position:fixed;bottom:0;z-index:1200;height:16px;overflow-x:auto;overflow-y:hidden;background:#e5e7eb;border-radius:999px 999px 0 0;box-shadow:0 -6px 18px #0f172a24,inset 0 0 0 1px #94a3b859}.visible-horizontal-scrollbar::-webkit-scrollbar{height:16px}.visible-horizontal-scrollbar::-webkit-scrollbar-track{background:#e5e7eb;border-radius:999px}.visible-horizontal-scrollbar::-webkit-scrollbar-thumb{background:#94a3b8;border:3px solid #e5e7eb;border-radius:999px}.visible-horizontal-scrollbar::-webkit-scrollbar-thumb:hover{background:#64748b}.batch-trade-progress-card.is-running{border-color:#91caff;box-shadow:0 0 0 1px #1677ff1f,0 10px 28px #1677ff1f}.batch-trade-action-bar{display:flex;justify-content:flex-end;padding:4px 0}.batch-trade-action-bar .ant-space{justify-content:flex-end}.batch-trade-running-indicator{display:inline-flex;align-items:center;gap:4px;height:16px}.batch-trade-running-indicator span{width:5px;height:5px;border-radius:50%;background:#1677ff;animation:batch-trade-running-dot 1s ease-in-out infinite}.batch-trade-running-indicator span:nth-child(2){animation-delay:.16s}.batch-trade-running-indicator span:nth-child(3){animation-delay:.32s}.batch-trade-progress.is-running .ant-progress-bg{position:relative;min-width:24px;overflow:hidden}.batch-trade-progress.is-running .ant-progress-bg:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background-image:linear-gradient(110deg,#fff0,#ffffff8c 45%,#fff0 80%);transform:translate(-100%);animation:batch-trade-progress-shine 1.1s linear infinite}@keyframes batch-trade-running-dot{0%,80%,to{opacity:.35;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}@keyframes batch-trade-progress-shine{to{transform:translate(120%)}}.funding-detail-chart-scroll,.contract-spread-chart-scroll,.dex-cex-history-chart-scroll,.portfolio-chart-scroll{width:100%;overflow-x:auto;overflow-y:hidden;scrollbar-color:#94a3b8 #e5e7eb;scrollbar-width:auto;position:relative}.portfolio-chart-stage{position:relative}.funding-detail-chart-canvas{min-width:720px}.contract-spread-chart-canvas{min-width:820px}.dex-cex-history-chart-canvas{min-width:900px;height:330px;display:block}.portfolio-chart-svg{min-width:720px;height:260px;display:block}.portfolio-chart-tooltip{position:absolute;z-index:2;padding:10px 12px;background:#fffffffa;border:1px solid #dbe3ef;border-radius:8px;box-shadow:0 8px 24px #0f172a24;pointer-events:none}.portfolio-chart-tooltip-body{margin-top:6px;display:flex;flex-direction:column;gap:6px}.portfolio-chart-tooltip-count{display:block;margin-top:2px;font-size:12px}.portfolio-chart-tooltip-row{display:flex;align-items:center;justify-content:space-between;gap:10px;white-space:nowrap}.portfolio-chart-tooltip-label{display:inline-flex;align-items:center;gap:6px;color:#475569}.portfolio-chart-tooltip-swatch{width:10px;height:10px;border-radius:50%;display:inline-block}.portfolio-category-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #eef2f7}.portfolio-category-row:last-child{border-bottom:none}.portfolio-category-button{width:100%;border:0;background:transparent;text-align:left;cursor:pointer;color:inherit;font:inherit}.portfolio-category-button:hover{background:#f8fafc}.portfolio-category-button.is-active{background:#eff6ff}.portfolio-record-list{border:1px solid #e5e7eb;border-radius:8px;overflow:hidden;background:#fff}.portfolio-record-category+.portfolio-record-category{border-top:1px solid #dbe3ef}.portfolio-record-category-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:#f8fafc;border-bottom:1px solid #e5e7eb}.portfolio-record-subtotal{display:flex;align-items:baseline;gap:8px;white-space:nowrap}.portfolio-record-row{display:grid;grid-template-columns:32px minmax(220px,1fr) minmax(150px,180px) minmax(132px,160px) 72px;gap:12px;align-items:center;padding:10px 12px;border-bottom:1px solid #eef2f7;background:#fff}.portfolio-record-category .portfolio-record-row:last-child{border-bottom:none}.portfolio-record-row.is-dragging{opacity:.52;background:#f8fafc}.portfolio-record-drag{cursor:grab;color:#64748b}.portfolio-record-drag:active{cursor:grabbing}.portfolio-record-title,.portfolio-record-value{display:flex;flex-direction:column;gap:4px;min-width:0}.portfolio-record-title{cursor:pointer}.portfolio-record-title:hover{color:#1677ff}.portfolio-record-input{width:100%}.portfolio-record-value{align-items:flex-end;text-align:right}.portfolio-record-actions{justify-content:flex-end}@media (max-width: 767px){.portfolio-record-row{grid-template-columns:32px 1fr;align-items:stretch}.portfolio-record-input,.portfolio-record-value,.portfolio-record-actions{grid-column:2}.portfolio-record-value{align-items:flex-start;text-align:left}.portfolio-record-actions{justify-content:flex-start}.portfolio-record-category-header{align-items:flex-start;flex-direction:column}}.funding-detail-chart-scroll::-webkit-scrollbar,.contract-spread-chart-scroll::-webkit-scrollbar,.dex-cex-history-chart-scroll::-webkit-scrollbar,.portfolio-chart-scroll::-webkit-scrollbar{height:14px}.funding-detail-chart-scroll::-webkit-scrollbar-track,.contract-spread-chart-scroll::-webkit-scrollbar-track,.dex-cex-history-chart-scroll::-webkit-scrollbar-track,.portfolio-chart-scroll::-webkit-scrollbar-track{background:#e5e7eb;border-radius:999px}.funding-detail-chart-scroll::-webkit-scrollbar-thumb,.contract-spread-chart-scroll::-webkit-scrollbar-thumb,.dex-cex-history-chart-scroll::-webkit-scrollbar-thumb,.portfolio-chart-scroll::-webkit-scrollbar-thumb{background:#94a3b8;border:3px solid #e5e7eb;border-radius:999px}@media (max-width: 767px){html,body{background:#f5f7fb;overflow-x:hidden;width:100%}#root,.app-shell{width:100%;min-width:0}.app-header{padding-inline:10px!important}.app-header .ant-btn{min-width:40px;min-height:40px}.app-content{padding:10px!important}.ant-card{border-radius:8px;overflow:hidden;box-shadow:0 8px 24px #0f172a12}.ant-card-body{padding:12px!important}.ant-space,.ant-space-item{max-width:100%}.ant-space{row-gap:8px!important}.ant-space-item{min-width:0}.ant-space-vertical{width:100%}.ant-row{min-width:0}.ant-col{max-width:100%;min-width:0}.ant-btn{min-height:38px;white-space:normal}.ant-btn-sm{min-height:34px}.ant-btn-icon-only{min-width:38px}.ant-input,.ant-input-affix-wrapper,.ant-input-number,.ant-select-selector,.ant-picker,.ant-segmented,.ant-radio-button-wrapper,.ant-input-search .ant-input-group-addon .ant-btn{min-height:38px}.ant-select,.ant-input-number,.ant-picker,.ant-input-search,.ant-segmented{max-width:100%}.ant-form-item{margin-bottom:14px}.ant-form-item-label{padding-bottom:4px!important}.ant-alert{align-items:flex-start}.ant-alert-message{font-size:15px;line-height:1.35}.ant-alert-description{font-size:13px;line-height:1.6}.ant-typography{overflow-wrap:anywhere}.ant-modal{max-width:calc(100vw - 16px);top:8px;padding-bottom:8px}.ant-modal-content{border-radius:10px;padding:14px!important}.ant-modal-header{margin-bottom:12px!important}.ant-modal-title{line-height:1.35}.ant-modal-body{max-height:calc(100dvh - 128px);overflow:auto}.ant-drawer-content-wrapper{width:100vw!important;max-width:100vw!important}.app-navigation-drawer .ant-drawer-content-wrapper{width:min(86vw,320px)!important;max-width:100vw!important}.ant-drawer-header{padding:12px 14px!important}.ant-drawer-title{font-size:16px;line-height:1.35;overflow-wrap:anywhere}.ant-drawer-body{padding:12px!important;padding-bottom:calc(32px + env(safe-area-inset-bottom))!important}.app-navigation-drawer .ant-drawer-body{padding:0!important;background:#f7f9fc}.app-navigation-drawer .ant-menu-item,.app-navigation-drawer .ant-menu-submenu-title{min-height:44px;line-height:44px}.app-navigation-drawer .ant-menu-title-content{overflow:hidden;text-overflow:ellipsis}.ant-drawer-extra{max-width:100%;overflow-x:auto;padding-bottom:2px}.ant-drawer-extra .ant-space{flex-wrap:nowrap}.ant-drawer-extra .ant-btn,.ant-card-extra .ant-btn{flex:0 0 auto}.ant-descriptions{max-width:100%}.ant-descriptions-view{overflow-x:auto}.ant-descriptions-bordered .ant-descriptions-item-label,.ant-descriptions-bordered .ant-descriptions-item-content{padding:9px 10px!important}.ant-tabs-nav{margin-bottom:12px!important}.ant-tabs-nav-wrap{overflow-x:auto!important}.ant-tabs-tab{padding:10px 0!important}.ant-tabs-content-holder{min-width:0}.ant-statistic-title{font-size:12px;line-height:1.4}.ant-statistic-content{font-size:20px!important}.ant-table{font-size:13px}.ant-table-cell{padding:10px 8px!important;white-space:nowrap}.ant-table-title{padding:10px 8px!important}.ant-table-wrapper{max-width:100%}.ant-table-wrapper .ant-table-container{border-radius:8px}.ant-table-wrapper .ant-table-content,.ant-table-wrapper .ant-table-body{-webkit-overflow-scrolling:touch}.ant-table-wrapper .ant-table-content>table,.ant-table-wrapper .ant-table-body>table{min-width:640px}.ant-table-wrapper .ant-spin-nested-loading,.ant-table-wrapper .ant-spin-container{min-width:0}.ant-pagination{justify-content:flex-start!important;overflow-x:auto;flex-wrap:nowrap!important;padding-bottom:2px;width:100%}.ant-pagination .ant-pagination-options{display:none}.ant-empty{margin-block:20px}.ant-float-btn{right:14px!important;bottom:calc(18px + env(safe-area-inset-bottom))!important}.funding-detail-chart-card{padding:10px!important}.portfolio-chart-scroll{overflow-x:auto}.portfolio-chart-stage{min-width:720px}.funding-trade-summary-button{top:auto!important;right:16px!important;bottom:calc(24px + env(safe-area-inset-bottom))!important}.batch-trade-action-bar,.batch-trade-action-bar .ant-space{justify-content:flex-start}.smart-position-mobile-list{display:flex;flex-direction:column;gap:12px}.smart-position-mobile-card{width:100%;min-width:0;padding:12px;border:1px solid #e5e7eb;border-radius:8px;background:#fff}.smart-position-mobile-title,.smart-position-mobile-section,.smart-position-mobile-section .ant-typography,.smart-position-mobile-warning{min-width:0;max-width:100%;white-space:normal!important;overflow-wrap:anywhere;word-break:break-word}.smart-position-mobile-section{display:flex;flex-direction:column;gap:4px;padding-top:10px;border-top:1px solid #f0f2f5}.smart-position-mobile-section .ant-space{max-width:100%}.smart-position-mobile-section .ant-space[style],.smart-position-mobile-section .ant-typography[style]{max-width:100%!important}.smart-position-mobile-actions{width:100%;padding-top:10px;border-top:1px solid #f0f2f5}.smart-position-mobile-actions>.ant-space-item{flex:1 1 calc(50% - 6px);min-width:124px}.smart-position-mobile-actions .ant-btn{width:100%;justify-content:center}.visible-horizontal-scrollbar{display:none}}@media (max-width: 575px){.ant-card-head{min-height:44px;padding-inline:12px!important}.ant-card-head-title{padding-block:10px!important;white-space:normal}.ant-card-extra{max-width:100%;padding-block:8px!important;overflow-x:auto}.ant-card-extra .ant-space{flex-wrap:nowrap}.ant-card-head-wrapper{align-items:flex-start;flex-wrap:wrap}.ant-card-head-title,.ant-card-extra{flex:1 1 100%}.ant-segmented{width:100%;overflow-x:auto}.ant-segmented-group{min-width:max-content}.ant-segmented-item-label{min-height:34px;line-height:34px}.ant-table-pagination.ant-pagination{margin:10px 0 0!important}.ant-drawer-extra{width:100%;margin-top:8px}.ant-drawer-header-title{align-items:flex-start}.ant-drawer-header{flex-wrap:wrap}.ant-drawer-title{min-width:0}.ant-modal-footer{display:flex;flex-wrap:wrap;gap:8px}.ant-modal-footer .ant-btn{flex:1 1 120px;margin-inline-start:0!important}}
