:root{color:#1b2430;background:#f5f7fa;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:14px;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select{font:inherit}button{cursor:pointer}.auth-shell{display:grid;min-height:100vh;place-items:center;padding:18px}.auth-panel{display:grid;width:min(100%,360px);gap:14px;padding:18px;background:#fff;border:1px solid #dbe2ea;border-radius:8px}.auth-field{display:grid;gap:6px;color:#566579}.auth-field input{width:100%;min-height:38px;padding:0 10px;color:#172232;background:#f8fafc;border:1px solid #d5dde8;border-radius:6px;outline:0}.auth-field input:focus{border-color:#3e8fc4;box-shadow:0 0 0 3px #3e8fc424}.auth-submit{min-height:38px;color:#fff;background:#176b96;border:1px solid #176b96;border-radius:6px}.auth-submit:disabled{cursor:default;opacity:.65}.auth-error{padding:8px 10px;color:#a83a32;background:#fff1ee;border:1px solid #f5c2ba;border-radius:6px}.app-shell{min-height:100vh;padding:18px}.sticky-header{position:sticky;top:0;z-index:20;margin:-18px -18px 0;padding:18px 18px 4px;background:#f5f7fa}.topbar,.toolbar,.venue-row,.main-panel,.side-panel{background:#fff;border:1px solid #dbe2ea;border-radius:8px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px}h1,h2{margin:0;color:#101820;letter-spacing:0}h1{font-size:20px;line-height:1.2}h2{font-size:15px;line-height:1.25}.muted{color:#637083;font-size:12px}.status-strip{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.status,.icon-button,.pager-button,.seg,.venue-chip{min-height:32px;border-radius:6px;border:1px solid #d5dde8;background:#fbfcfe;color:#263241}.status{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;white-space:nowrap}.status-ok{color:#127353;background:#edf8f2;border-color:#bfe8d4}.status-error{max-width:420px;overflow:hidden;color:#a83a32;text-overflow:ellipsis;background:#fff1ee;border-color:#f5c2ba}.icon-button{display:inline-flex;align-items:center;gap:7px;padding:0 10px}.icon-button:hover,.pager-button:hover:not(:disabled),.seg:hover,.venue-chip:hover{border-color:#8ea2bc}.pager-button:disabled{cursor:default;opacity:.45}.spin{animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px;padding:10px}.filter-group,.search-box,.field{display:inline-flex;align-items:center;gap:6px}.filter-group{padding-right:4px;color:#566579}.seg{min-width:44px;padding:0 10px}.seg.active,.venue-chip.active{color:#0f4e7a;background:#eaf4fb;border-color:#94c7e8}.search-box,.field{min-height:32px;padding:0 8px;color:#5b6878;background:#f8fafc;border:1px solid #d5dde8;border-radius:6px}.search-box input,.field input,.field select{height:28px;border:0;outline:0;color:#172232;background:transparent}.search-box input{width:130px}.field input{width:78px;text-align:right}.field select{width:72px}.volume-field input{width:110px}.venue-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px;padding:10px}.venue-chip{padding:0 10px;text-transform:capitalize}.content-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:12px;margin-top:12px;align-items:start}.main-panel,.side-panel{min-width:0;padding:12px}.side-panel{position:sticky;top:calc(var(--sticky-h, 0px) + 12px);max-height:calc(100vh - var(--sticky-h, 0px) - 24px);overflow:auto}.section-title{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:10px}.table-wrap{overflow:auto;border:1px solid #e0e6ee;border-radius:6px}.pagination-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px}.pagination-actions{display:inline-flex;align-items:center;gap:6px}.pager-button{display:inline-flex;align-items:center;justify-content:center;width:34px;padding:0}table{width:100%;border-collapse:collapse;font-size:13px}.opportunity-table{min-width:1200px;table-layout:fixed}.col-rank{width:44px}.col-kind{width:56px}.col-symbol{width:106px}.col-leg{width:206px}.col-diff{width:94px}.col-edge{width:106px}.col-net{width:84px}.col-funding{width:158px}.col-index-diff{width:106px}.col-volume{width:112px}th,td{padding:9px 8px;border-bottom:1px solid #e8edf3;text-align:left;white-space:nowrap}th{position:sticky;top:0;z-index:1;color:#526173;font-weight:600;background:#f8fafc}th small{display:block;margin-top:2px;color:#7a8798;font-size:10px;font-weight:600}.header-hint{display:inline-flex;align-items:center;gap:5px;min-width:0}.hint-anchor{position:relative;display:inline-flex;align-items:center;color:#8a96a8;outline:0}.hint-anchor svg{stroke-width:2.2}.hint-popover{position:fixed;z-index:1000;width:max-content;padding:10px 12px;color:#fff;white-space:normal;line-height:1.45;background:#242424;border-radius:8px;box-shadow:0 8px 24px #10182038;pointer-events:none;overflow-wrap:anywhere}.hint-popover:after{position:absolute;left:50%;width:12px;height:12px;content:"";background:#242424}.hint-popover-top{transform:translate(-50%,-100%)}.hint-popover-top:after{top:100%;transform:translate(-50%,-6px) rotate(45deg)}.hint-popover-bottom{transform:translate(-50%)}.hint-popover-bottom:after{bottom:100%;transform:translate(-50%,6px) rotate(45deg)}tbody tr:hover{background:#f5f9fd}tbody tr.selected{background:#edf7ff}tbody tr:last-child td{border-bottom:0}.number{font-variant-numeric:tabular-nums;text-align:left}.opportunity-table .number{font-size:12px;font-weight:650}.positive{color:#0d7a53}.negative{color:#a83a32}.symbol-cell{color:#111827;font-weight:650;overflow:hidden;text-overflow:ellipsis}.symbol-link,.text-button{border:0;padding:0;color:#0f4e7a;background:transparent;font:inherit;font-weight:650}.symbol-link:hover,.text-button:hover{text-decoration:underline}.text-button:disabled{cursor:default;color:#8a96a8;text-decoration:none}.text-button.number{font-variant-numeric:tabular-nums}.detail-percent,.detail-table .text-button.number{color:#255f91;font-weight:650;font-variant-numeric:tabular-nums}.detail-percent.positive,.detail-table .text-button.number.positive{color:#0d7a53}.detail-percent.negative,.detail-table .text-button.number.negative{color:#a83a32}.kind{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:23px;border-radius:5px;font-size:12px;font-weight:700}.kind-sf{color:#315f72;background:linear-gradient(90deg,#e7f6f1 0,#e7f6f1 50%,#f4eafa 50%,#f4eafa)}.kind-ff{color:#6d3d83;background:#f4eafa}.kind-ss{color:#127353;background:#e7f6f1}.leg-view{display:grid;grid-template-columns:minmax(0,100px) 84px;align-items:center;gap:6px;width:100%;min-width:0}.leg-meta{display:grid;grid-template-columns:54px minmax(0,1fr);align-items:center;gap:5px;min-width:0}.market-badge{display:inline-flex;align-items:center;justify-content:center;height:20px;border-radius:5px;font-size:11px;font-weight:700}.market-badge{color:#127353;background:#e7f6f1;text-transform:uppercase}.market-future{color:#6d3d83;background:#f4eafa}.venue-name{min-width:0;overflow:hidden;color:#263241;text-overflow:ellipsis;text-transform:capitalize}.leg-price{display:grid;grid-template-columns:26px minmax(0,1fr);gap:5px;align-items:baseline;min-width:0}.leg-price small{color:#748095;font-size:10px;font-weight:700;text-align:left}.leg-price strong{color:#101820;font-weight:650;font-variant-numeric:tabular-nums;text-align:left}.pair-stack{display:grid;gap:2px;justify-items:start;width:100%;font-variant-numeric:tabular-nums}.pair-stack span{min-height:18px}.funding-pair span{display:block;width:100%}.funding-pair strong,.value-pair strong{color:#172232;font-size:12px;font-weight:650;text-align:left}.funding-pair strong.positive,.value-pair strong.positive{color:#0d7a53}.funding-pair strong.negative,.value-pair strong.negative{color:#a83a32}.funding-pair strong{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis}.edge-pair{display:grid;gap:2px;justify-items:start;font-variant-numeric:tabular-nums}.edge-pair span{display:block}.edge-pair strong{color:#172232;font-size:12px;font-weight:650}.edge-pair strong.positive{color:#0d7a53}.edge-pair strong.negative{color:#a83a32}.empty-state{color:#748095;text-align:center}.bucket-list{display:grid;gap:7px}.bucket-row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:48px;padding:8px 9px;border:1px solid #e1e7ef;border-radius:6px;background:#fbfcfe}.bucket-row strong,.bucket-row span,.bucket-row small{display:block}.bucket-row strong{color:#172232;font-size:13px}.bucket-row span,.bucket-row small{margin-top:2px;color:#68778a;font-size:12px}.detail-shell{display:grid;gap:12px;align-content:start;align-items:start;grid-auto-rows:max-content}.detail-topbar{position:sticky;top:0;z-index:20;align-self:start;align-items:center;flex-direction:row;padding:8px 10px}.detail-title-row{display:flex;align-items:center;gap:8px;min-width:0}.detail-title-row h1{font-size:17px;line-height:1.15;white-space:nowrap}.detail-title-row .muted{margin-top:1px;line-height:1.1}.detail-topbar .status-strip{flex:1;gap:6px;flex-wrap:nowrap;min-width:0}.detail-topbar .status,.detail-topbar .icon-button,.detail-topbar .search-box{min-height:28px}.detail-topbar .icon-button{padding:0 8px}.detail-topbar .status{padding:4px 7px}.detail-search input{width:104px;height:24px;text-transform:uppercase}.detail-panel{align-self:start;padding:12px}.detail-warning{margin-bottom:10px;padding:9px 10px;color:#8a4b12;border:1px solid #f0d19b;border-radius:6px;background:#fff8e8}.detail-table{min-width:1360px;table-layout:fixed}.detail-table th:nth-child(1){width:86px}.detail-table th:nth-child(2){width:72px}.detail-table th:nth-child(3){width:102px}.detail-table th:nth-child(4),.detail-table th:nth-child(5){width:108px}.detail-table th:nth-child(6),.detail-table th:nth-child(7),.detail-table th:nth-child(9),.detail-table th:nth-child(10){width:96px}.detail-table th:nth-child(8){width:58px}.detail-table th:nth-child(11),.detail-table th:nth-child(12),.detail-table th:nth-child(14){width:104px}.detail-table th:nth-child(13){width:82px}.detail-table th:nth-child(15){width:86px}.status-badge{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:22px;padding:0 7px;border-radius:5px;font-size:12px;font-weight:650}.status-good{color:#127353;background:#e7f6f1}.status-muted{color:#637083;background:#eef2f6}.status-bad{color:#a83a32;background:#fff1ee}.detail-tabs-panel{display:grid;gap:12px}.detail-tabs{display:inline-flex;align-items:center;justify-self:start;padding:3px;border:1px solid #d9e1eb;border-radius:6px;background:#f8fafc}.detail-tabs button{min-width:86px;height:30px;padding:0 12px;border:0;border-radius:5px;color:#526173;background:transparent;font-weight:650}.detail-tabs button.active{color:#0f4e7a;background:#fff;box-shadow:0 0 0 1px #c8d6e5}.detail-tab-content{display:grid;gap:12px;min-width:0}.chart-toolbar{display:inline-flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0}.range-tabs,.metric-tabs{display:inline-flex;align-items:center;padding:2px;border:1px solid #d9e1eb;border-radius:6px;background:#fff}.range-tabs button,.metric-tabs button{height:24px;min-width:42px;padding:0 8px;border:0;border-radius:4px;color:#526173;background:transparent;font-size:12px;font-weight:650}.range-tabs button.active,.metric-tabs button.active{color:#0f4e7a;background:#eaf4fb}.metric-tabs button:disabled{cursor:default;color:#9aa6b5}.chart-legend{display:inline-flex;align-items:center;gap:12px;justify-self:start;color:#526173;font-size:12px;font-weight:650}.chart-legend span{display:inline-flex;align-items:center;gap:5px}.chart-legend i{display:inline-block;width:18px;height:3px;border-radius:999px}.legend-base{background:#255f91}.legend-notional{background:#b45f2a}.detail-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 420px;gap:12px;align-items:start}.detail-grid>.main-panel{display:grid;grid-template-rows:auto 1fr;min-height:360px}.mini-chart{position:relative;display:grid;grid-template-columns:repeat(3,1fr);align-items:end;gap:10px;min-height:300px;padding:14px;overflow:hidden;border:1px solid #e0e6ee;border-radius:6px;background:#f8fafc}.mini-chart div{height:34%;border-radius:4px 4px 0 0;background:#d8e2ee}.mini-chart div:nth-child(2){height:55%;background:#c8d9e8}.mini-chart div:nth-child(3){height:42%;background:#dbe7df}.mini-chart span{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;color:#637083;font-size:22px;font-weight:700;background:#f8fafcb8}.funding-history{display:grid;gap:10px;min-height:300px;padding:10px;border:1px solid #e0e6ee;border-radius:6px;background:#f8fafc}.funding-history .metric-tabs{justify-self:start}.funding-history svg{width:100%;height:210px;overflow:visible}.axis-line{stroke:#b9c5d3;stroke-width:1}.grid-line{stroke:#e0e7f0;stroke-width:1}.zero-line{stroke:#9caabd;stroke-dasharray:4 4}.axis-text,.axis-caption{fill:#68778a;font-size:11px;font-weight:600}.axis-caption{fill:#526173}.funding-line{fill:none;stroke:#255f91;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.open-interest-base-line{stroke:#255f91}.open-interest-notional-line{stroke:#b45f2a}.open-interest-estimated-line{stroke-dasharray:6 4;stroke-width:2.4}.funding-dot{stroke:#fff;stroke-width:1.5}.chart-hit-area{fill:transparent;pointer-events:all}.tooltip-guide{stroke:#8ea2bc;stroke-dasharray:3 3}.chart-tooltip rect{fill:#172232;opacity:.94}.chart-tooltip text{fill:#fff;font-size:11px;font-weight:650}.positive-dot{fill:#0d7a53}.negative-dot{fill:#a83a32}.open-interest-dot,.open-interest-base-dot{fill:#255f91}.open-interest-notional-dot{fill:#b45f2a}.axis-text-notional{fill:#8a4b12}.notional-axis{stroke:#cfa17f}.history-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.history-stats div,.history-state{min-width:0;padding:8px;border:1px solid #e1e7ef;border-radius:6px;background:#fff}.history-stats span,.history-stats small{display:block;overflow:hidden;color:#68778a;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.history-stats strong{display:block;margin:3px 0 2px;font-size:13px;font-variant-numeric:tabular-nums}.history-state{display:grid;min-height:300px;place-items:center;color:#637083}.history-state div{display:grid;gap:5px;justify-items:center}.history-state strong{color:#172232;font-size:18px;font-variant-numeric:tabular-nums}.history-state span{color:#637083;font-size:12px}.history-error{color:#a83a32;text-align:center}.detail-kv{display:grid;gap:8px;align-content:start}.detail-kv-wide{grid-template-columns:repeat(2,minmax(0,1fr))}.detail-kv div{display:flex;align-items:baseline;justify-content:space-between;gap:14px;min-height:38px;padding:8px 9px;border:1px solid #e1e7ef;border-radius:6px;background:#fbfcfe}.detail-kv span{color:#68778a}.detail-kv strong{min-width:0;overflow:hidden;color:#172232;font-weight:650;text-align:right;text-overflow:ellipsis;font-variant-numeric:tabular-nums}.detail-kv .detail-error{align-items:flex-start;border-color:#f5c2ba;background:#fff1ee}.detail-kv .detail-error strong{color:#a83a32;white-space:normal}.index-components,.transfer-status{display:grid;gap:8px;min-width:0}.index-components h3,.transfer-status h3{margin:0;color:#172232;font-size:14px;line-height:1.2}.compact-table-wrap{border:1px solid #e0e6ee;border-radius:6px}.component-table{min-width:560px;table-layout:fixed}.component-table th:nth-child(1){width:180px}.component-table th:nth-child(2){width:180px}.component-table th:nth-child(3),.component-table th:nth-child(4){width:100px}.transfer-table{min-width:700px}.transfer-table th:nth-child(1){width:120px}.transfer-table th:nth-child(2){width:220px}.transfer-table th:nth-child(5){width:120px}.venue-merged-cell{vertical-align:top;color:#172232;font-weight:700;text-transform:capitalize}.component-table td{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.inline-empty{display:grid;align-items:center;min-height:42px;padding:10px 12px;color:#68778a;border:1px solid #e0e6ee;border-radius:6px;background:#f8fafc;font-size:13px}@media(max-width:1040px){.content-grid{grid-template-columns:1fr}.side-panel{order:-1}.detail-grid{grid-template-columns:1fr}}@media(max-width:760px){.app-shell{padding:10px}.sticky-header{margin:-10px -10px 0;padding:10px 10px 4px}.topbar{align-items:flex-start;flex-direction:column}.detail-topbar{align-items:center;flex-direction:row;gap:8px}.detail-topbar .status-strip{justify-content:flex-end;width:auto}.detail-topbar .status{display:none}.detail-title-row h1{font-size:15px}.detail-title-row .muted{display:none}.section-title{align-items:flex-start;flex-direction:column}.chart-toolbar{align-items:flex-start;justify-content:flex-start;flex-wrap:wrap}.status-strip{justify-content:flex-start}.search-box,.field,.toolbar .filter-group{width:100%}.search-box input,.field input,.field select{flex:1;width:auto}.detail-search{width:auto}.detail-search input{flex:0 0 auto;width:92px}}
