:root{--bg: #f6f4ef;--ink: #1b1b1b;--muted: #7a7a7a;--card: #ffffff;--line: #e5e1d9;--accent: #d28c2d;--accent-2: #1e6f5c;--shadow: 0 8px 24px rgba(0, 0, 0, .08);--font: "Microsoft YaHei", "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", "Source Han Sans SC", sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font)}.login{display:grid;place-items:center;min-height:100vh;padding:24px}.login-card{width:min(420px,100%);background:var(--card);border:1px solid var(--line);box-shadow:var(--shadow);padding:28px;border-radius:12px}.login-card h1{margin:0 0 8px;font-size:28px}.login-card p{margin:0 0 20px;color:var(--muted)}.login-card form{display:grid;gap:12px}.login-card label{display:grid;gap:6px;font-size:14px;color:var(--muted)}.login-card input{border:1px solid var(--line);padding:10px 12px;border-radius:8px;font-size:14px;width:100%}.login-card button{margin-top:6px;padding:10px 14px;border-radius:8px;border:none;background:var(--accent);color:#fff;font-weight:600;cursor:pointer}.login-error{color:#b00020;font-size:13px;min-height:16px}.password-input-wrapper{display:flex;align-items:stretch;border:1px solid var(--line);border-radius:8px;background:#fff;overflow:hidden}.password-input-wrapper input{flex:1;margin:0;padding:10px 12px;border:none;background:transparent}.show-password-btn{margin:0;padding:0 14px;border:none;background:transparent;color:var(--ink);font-weight:600;cursor:pointer;white-space:nowrap}.dashboard{padding:10px 24px 40px}.symbol-col{display:flex;align-items:center;gap:10px}.pin-btn{position:absolute;top:10px;right:10px;background:transparent;border:none;font-size:18px;cursor:pointer;padding:0;margin:0;opacity:.2;transition:all .2s ease;filter:grayscale(1);display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:6px;z-index:10}.pin-btn:hover{opacity:.8;transform:scale(1.15);filter:grayscale(.5)}.pin-btn.active{opacity:1;filter:grayscale(0);transform:scale(1.1) rotate(-15deg);text-shadow:0 0 8px rgba(251,191,36,.4)}.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:4px}.topbar h2{margin:0 0 4px;font-size:22px}.meta{font-size:13px;color:var(--muted);display:none}.ghost{background:transparent;border:1px solid var(--line);padding:8px 12px;border-radius:8px;cursor:pointer}.toolbar{background:var(--card);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);padding:14px;margin-bottom:12px}.toolbar .row{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:flex-start;margin-bottom:10px}.toolbar label{display:grid;gap:6px;font-size:13px;color:var(--muted)}.toolbar input,.toolbar select{border:1px solid var(--line);padding:8px 10px;border-radius:8px;font-size:13px;min-width:140px}.toolbar .inline{display:flex;align-items:center;gap:6px;color:var(--muted)}.fixed-input{display:flex;gap:8px;align-items:center}.toolbar .row>.fixed-input{flex-wrap:nowrap;justify-content:flex-end;min-width:0}.toolbar .row>.fixed-input:last-child{margin-left:auto}.funding-search-group{flex:0 1 120px;min-width:96px}.funding-search-group input{width:100%;min-width:0}.arb-left-controls{display:flex;align-items:flex-end;flex:1 1 520px;min-width:0}.arb-search-group{margin-right:18px;flex:0 1 114px;min-width:114px}.arb-search-group input{width:120px;min-width:0}.arb-filter-group{margin-right:0;gap:6px;flex:0 0 auto;min-width:0}.arb-filter-group input{width:min(430px,62vw);min-width:0}input.funding-overview-filter,input.funding-monitor-filter{width:55ch!important;max-width:100%!important;min-width:0!important}input.arb-dashboard-filter{width:38ch!important;max-width:100%!important;min-width:0!important}.fixed-input input{width:120px;min-width:60px}.arb-pin-actions{gap:12px}.arb-pin-group{display:flex;align-items:center;gap:8px}.toolbar .arb-pin-input{width:120px!important;min-width:120px!important}.fixed-input button{padding:8px 16px;border-radius:8px;border:none;background:var(--accent-2);color:#fff;font-weight:600;cursor:pointer;transition:all .2s ease;box-shadow:0 2px 4px #0000001a;flex-shrink:0;white-space:nowrap}.fixed-input button:hover{background:#258a72;transform:translateY(-1px);box-shadow:0 4px 12px #1e6f5c33}.fixed-input button:active{transform:translateY(0) scale(.96);filter:brightness(.9)}.fixed-input .arb-ghost-btn{background:transparent;color:var(--text);border:1px solid #c9c5bc;box-shadow:none}.fixed-input .arb-ghost-btn:hover{background:#f5f2ea;transform:translateY(-1px);box-shadow:none;border-color:#a59f93}.fixed-input .arb-ghost-btn:active{background:#eee9de;transform:translateY(0) scale(.98);filter:none}.fixed-input .arb-refresh-btn{margin-left:18px}.fixed-input .arb-outline-btn{background:transparent;color:var(--text);border:1px solid #c9c5bc;box-shadow:none}.fixed-input .arb-outline-btn:hover{background:#f5f2ea;border-color:#a59f93;transform:translateY(-1px)}.fixed-input .arb-sub1-btn:hover{background:#fbfceb8f;border-color:#c8ce9f}.fixed-input .arb-sub2-btn:hover{background:#eef6f28c;border-color:#a9c6ba}.fixed-input .arb-outline-btn:active{background:#eee9de;transform:translateY(0) scale(.98);filter:none}.fixed-input .funding-filter-btn{font-weight:400}.logout-btn{margin-left:60px!important;background:#f1f3f5!important;color:#fa5252!important;border:1px solid #ffc9c9!important;box-shadow:none!important}.logout-btn:hover{background:#fff5f5!important;transform:translateY(-1px)}.fixed-list{display:flex;flex-wrap:wrap;gap:8px}.arb-fixed-list{align-items:center}.tag{display:inline-flex;gap:6px;padding:4px 8px;background:#f1ede4;border-radius:999px;font-size:12px;cursor:pointer}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(680px,1fr));gap:24px}.tag.arb-tag-sub1{background:#fbfceb8f}.tag.arb-tag-sub2{background:#eef6f28c}.funding-cards{grid-template-columns:repeat(auto-fill,minmax(400px,1fr));gap:14px}.card{background:var(--card);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);padding:12px 10px 8px;position:relative}.funding-card{padding:10px 10px 8px}.funding-card .card-header-row{padding-right:24px}.funding-card .symbol-col{width:84px}.card-header-row{display:flex;align-items:center;margin-bottom:12px;padding-right:36px}.symbol-col{width:120px;flex-shrink:0}.metrics-row{flex:1;display:flex;justify-content:space-between;align-items:center;padding-right:8px}.funding-metrics{display:grid;grid-template-columns:auto auto auto;column-gap:16px;row-gap:6px;justify-content:space-between;align-items:center;width:100%;margin-left:0;white-space:normal}.funding-stat{display:flex;align-items:baseline;gap:6px;padding:2px 0;border-radius:0;background:transparent;border:none;box-shadow:none;white-space:nowrap;min-width:0}.funding-stat .k{font-size:12px;color:#6b7280;font-weight:600;letter-spacing:.2px}.funding-stat .v{font-size:12px;line-height:1;color:#1f2937;font-weight:400;font-variant-numeric:tabular-nums}.funding-stat:last-child{justify-self:auto}.card h3{margin:0;font-size:20px;color:var(--accent-2)}.pill{background:linear-gradient(135deg,#f1ede4,#e8e3d5);border:1px solid rgba(0,0,0,.05);border-radius:999px;padding:4px 12px;font-size:11px;font-weight:600;color:#555;white-space:nowrap;box-shadow:0 1px 2px #0000000d}.pill.secondary{background:#e5e1d9;color:var(--muted)}.card-header{margin-bottom:12px;border-bottom:1px solid var(--line);padding-bottom:10px}.metrics{display:flex;gap:6px;flex-wrap:wrap}.grid{width:100%;border-collapse:collapse;font-size:13px;table-layout:fixed}.grid thead th{text-align:center;font-weight:600;color:#444;padding:6px 4px;border-bottom:1px solid var(--line)}.grid th:first-child,.exchange-label{width:95px;text-align:center!important;padding-right:20px!important}.grid tbody td{padding:4px 2px;text-align:center}.price-cell,.rate-now,.rate-hist,.oi-cell,.time-h{width:auto}.exchange{font-weight:600;color:#333;width:64px}.exchange-label{font-weight:600;color:var(--accent-2)}.rate-now,.rate-hist{color:#1e40af}.price-row td,.rate-row td{border-bottom:none}.price-cell{color:#ea580c}.oi-cell{color:#0d9488}.oi-row td{border-bottom:1px solid #777;padding-bottom:12px!important}tbody tr:nth-last-child(-n+3) td{border-bottom:none!important}.price-row td{padding-top:12px!important}.center-cell{text-align:center}.trend-cell{width:16px;min-width:16px;text-align:left;font-weight:900!important;font-size:15px;padding:0!important;position:relative;left:-8px}.trend-cell.up,.trend-cell.same{color:#059669}.trend-cell.down{color:#fa5252}.trend-h{width:16px;padding:0!important}.meta-h,.meta-cell{text-align:center;white-space:nowrap;width:auto}.grid th:last-child,.grid td:last-child{width:60px}.funding-grid{table-layout:fixed}.funding-grid thead th{padding:8px;text-align:center}.funding-grid tbody td{padding:6px 8px;text-align:center;border-bottom:1px solid #efebe2!important}.funding-grid tbody tr:last-child td{border-bottom:none!important}.funding-grid th:first-child,.funding-grid .exchange-label{width:26%;padding-left:25px!important;padding-right:8px!important;text-align:left!important}.funding-grid .exchange-label{font-size:13px}.funding-grid th:nth-child(2),.funding-grid td:nth-child(2){width:26%}.funding-grid th:nth-child(3),.funding-grid td:nth-child(3){width:24%}.funding-grid th:nth-child(4),.funding-grid td:nth-child(4){width:24%;text-align:right;padding-right:25px}.funding-grid .rate-now{color:inherit!important}@media (max-width: 760px){.funding-metrics{grid-template-columns:auto auto auto;column-gap:10px}}@media (max-width: 520px){.funding-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}.highlight{color:var(--accent);font-weight:600}@media (max-width: 640px){.cards{grid-template-columns:1fr}.funding-cards{grid-template-columns:repeat(auto-fill,minmax(340px,1fr))}}.topbar{display:flex;align-items:center;gap:16px;padding:8px 20px;border-bottom:1px solid var(--line);background:var(--card)}.tab-bar{display:flex;gap:4px}.tab-btn{padding:6px 18px;border:none;background:transparent;font-size:14px;font-weight:500;color:var(--muted);cursor:pointer;border-radius:6px;transition:all .15s}.tab-btn:hover{background:#f0ebe3;color:var(--ink)}.tab-btn.active{background:#f5ece0;color:var(--accent);font-weight:600}.topbar .meta{flex:1;text-align:right;font-size:12px;color:var(--muted)}.topbar-logout{font-size:12px;padding:4px 12px;border:1px solid var(--line);background:transparent;color:var(--muted);border-radius:4px;cursor:pointer}.topbar-logout:hover{background:#fee;color:#c33}.arb-dashboard{padding:0;display:flex;flex-direction:column;gap:4px;box-sizing:border-box;background:transparent}.arb-tier{display:flex;flex-direction:column;min-height:60px;border:1px solid var(--line);border-radius:6px;overflow:hidden;background:var(--bg-card, #fff)}.arb-tier-pinned,.arb-tier-sub1{background:#fbfceb8f}.arb-tier-sub2{background:#eef6f28c}.arb-resizer{height:4px;background:transparent;cursor:ns-resize;transition:all .2s;margin:1px 0;border-radius:2px;flex-shrink:0;position:relative}.arb-resizer:after{content:"";position:absolute;top:-8px;bottom:-8px;left:0;right:0;z-index:10}.arb-resizer:hover{background:transparent;box-shadow:none}.arb-tier-header{font-size:14px;font-weight:600;padding:6px 12px;background:linear-gradient(90deg,#fff6e4,transparent);border-left:3px solid var(--accent);flex-shrink:0}.arb-tier-count{margin-left:8px;font-weight:400;color:var(--muted);font-size:12px}.arb-tier-body{flex:1;overflow-y:auto;overflow-x:hidden;min-height:0}.arb-empty-tier{padding:12px 16px;color:var(--muted);font-size:13px}.arb-table{width:100%;border-collapse:collapse;font-size:13px;table-layout:fixed}.arb-table thead th:nth-child(1){width:12%}.arb-table thead th:nth-child(2){width:10%}.arb-table thead th:nth-child(3){width:14%}.arb-table thead th:nth-child(4){width:14%}.arb-table thead th:nth-child(5){width:20%}.arb-table thead th:nth-child(6){width:12%}.arb-table thead th:nth-child(7){width:18%}.arb-table thead th{padding:5px 10px;text-align:center;font-size:11px;font-weight:600;color:var(--muted);border-bottom:none;white-space:nowrap;position:sticky;top:0;background:var(--bg);z-index:1}.arb-th-slash-align{display:inline-block}.arb-th-pair-oi .arb-th-slash-align{transform:translate(.6ch)}.arb-table tbody td{padding:6px 10px;text-align:center;border-bottom:none}.arb-table tbody tr:hover{background:#fdf8ef}.arb-empty-row td{height:34px}.arb-symbol{font-weight:600;text-align:center}.arb-spread{font-weight:700;font-size:14px}.arb-spread.positive{color:#1e6f5c}.arb-spread.muted-spread{color:#999;font-weight:400;font-size:13px}.arb-oi-cell{display:flex;justify-content:center;align-items:baseline;white-space:nowrap;font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1}.arb-pair-cell{display:inline-grid;grid-template-columns:var(--pair-left, 6.2ch) 1ch var(--pair-right, 4.8ch);align-items:baseline;justify-content:center;white-space:nowrap;font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1}.arb-pair-left{text-align:right}.arb-pair-sep{text-align:center}.arb-pair-right{text-align:left}.arb-pair-rate{--pair-left: 7.2ch;--pair-right: 3.2ch}.arb-pair-oi{--pair-left: 6.2ch;--pair-right: 5ch}.arb-dir{white-space:nowrap;font-size:12px}.arb-buy{color:#1e6f5c;margin-right:8px}.arb-sell{color:#c33}
