:root { color-scheme: dark; --bg:#0e1119; --panel:#141923; --panel2:#171e2b; --line:#273043; --muted:#7f8aa3; --text:#f2f5fb; --green:#18c98a; --red:#ff6174; --blue:#5c8dff; }
* { box-sizing:border-box; }
body { margin:0; min-width:1130px; background:var(--bg); color:var(--text); font-family:Arial,Helvetica,sans-serif; font-size:13px; }
body #im_pt_load { display:none!important; pointer-events:none!important; }
body #im_pt_header { background:#07090d!important; border-bottom:1px solid var(--line); }
button,input { font:inherit; }
button { color:inherit; }
.yesfi-contract { display:grid; grid-template-columns:240px minmax(500px,1fr) 351px; gap:6px; min-height:100vh; padding:6px; background:#0c1017; }
.panel { background:var(--panel); border:1px solid var(--line); border-radius:5px; overflow:hidden; }
.market-panel,.order-panel { min-height:calc(100vh - 12px); }
.panel-heading { min-height:74px; display:flex; align-items:center; justify-content:space-between; padding:15px; border-bottom:1px solid var(--line); }
.panel-heading h1,.panel-heading h2 { margin:2px 0 0; font-size:18px; letter-spacing:-.2px; }.eyebrow { margin:0; color:#7394ff; font-size:10px; font-weight:bold; letter-spacing:1.2px; }
.connection-state { font-size:10px; padding:5px 7px; border-radius:10px; white-space:nowrap; }.connection-state.loading { color:#f0c568; background:rgba(240,197,104,.12); }.connection-state.ready { color:#57dca7; background:rgba(24,201,138,.12); }.connection-state.error { color:#ff8593; background:rgba(255,97,116,.12); }
.market-search { height:37px; margin:12px; display:flex; align-items:center; gap:8px; padding:0 10px; background:#0d121b; border:1px solid var(--line); border-radius:4px; color:var(--muted); }.market-search input { width:100%; border:0; outline:0; background:transparent; color:#fff; }.market-search input::placeholder { color:#607088; }
.market-tabs { display:flex; gap:15px; padding:0 12px 10px; border-bottom:1px solid var(--line); }.market-tabs button,.chart-tabs button,.bottom-tabs button,.order-mode button { border:0; cursor:pointer; background:transparent; color:var(--muted); }.market-tabs button { padding:4px 0; font-size:12px; }.market-tabs button.active { color:#fff; border-bottom:2px solid var(--blue); }.market-tabs button:disabled { cursor:default; opacity:.45; }
.market-table-head,.market-row { display:grid; grid-template-columns:1fr 78px 52px; align-items:center; gap:5px; }.market-table-head { padding:10px 12px 7px; color:var(--muted); font-size:10px; }.market-table-head span:not(:first-child),.market-row span:not(:first-child) { text-align:right; }.market-list { overflow:auto; max-height:calc(100vh - 205px); }.market-row { width:100%; padding:10px 12px; border:0; border-left:2px solid transparent; background:transparent; text-align:left; cursor:pointer; }.market-row:hover { background:#1a2230; }.market-row.selected { background:#1c2535; border-left-color:var(--blue); }.market-row strong { display:block; color:#e8edf7; font-size:12px; }.market-row small { display:block; margin-top:2px; color:var(--muted); font-size:9px; }.positive { color:var(--green)!important; }.negative { color:var(--red)!important; }
.workspace { min-width:0; display:flex; flex-direction:column; gap:6px; }.instrument-header { min-height:92px; display:flex; align-items:center; justify-content:space-between; padding:15px 18px; }.instrument-name { display:flex; align-items:center; gap:10px; }.asset-mark { width:30px; height:30px; display:grid; place-items:center; border-radius:50%; background:#f4a72e; color:#19202d; font-weight:bold; font-size:15px; }.instrument-title { display:flex; align-items:baseline; gap:6px; }.instrument-title strong { font-size:17px; }.instrument-title span { color:#9ca8bd; font-size:11px; }.instrument-name p { margin:4px 0 0; color:var(--muted); font-size:10px; }.market-stats { display:flex; gap:22px; margin:0; }.market-stats div { min-width:72px; }.market-stats dt { color:var(--muted); font-size:10px; }.market-stats dd { margin:6px 0 0; font-weight:bold; font-size:12px; }
.workspace-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:6px; min-height:600px; }.chart-panel { min-width:0; }.panel-toolbar { height:44px; display:flex; align-items:center; justify-content:space-between; padding:0 14px; border-bottom:1px solid var(--line); }.panel-toolbar.compact { height:42px; font-size:12px; }.panel-toolbar.compact span { color:var(--muted); font-size:10px; }.chart-tabs { display:flex; align-items:stretch; gap:18px; height:100%; }.chart-tabs button { padding:0; font-size:11px; }.chart-tabs button.active { color:#fff; border-bottom:2px solid var(--blue); }.toolbar-status { display:flex; gap:6px; align-items:center; color:var(--muted); font-size:10px; }.pulse { width:6px; height:6px; background:#f0c568; border-radius:50%; }.chart-wrap { position:relative; height:556px; background:repeating-linear-gradient(0deg,transparent 0,transparent 56px,rgba(72,87,112,.13) 57px),repeating-linear-gradient(90deg,transparent 0,transparent 79px,rgba(72,87,112,.13) 80px); }.chart-wrap #price-chart { display:block; width:100%; height:100%; }.chart-empty { position:absolute; inset:0; display:grid; place-items:center; color:#6f7c93; font-size:12px; pointer-events:none; }
.positions-panel { min-height:184px; }.bottom-tabs { height:43px; display:flex; align-items:center; gap:18px; padding:0 15px; border-bottom:1px solid var(--line); }.bottom-tabs button { padding:14px 0 12px; font-size:11px; }.bottom-tabs button.active { color:#fff; border-bottom:2px solid var(--blue); }.bottom-tabs span { color:var(--muted); }.positions-empty { min-height:136px; display:flex; flex-direction:column; align-items:center; justify-content:center; color:#a9b3c4; }.positions-empty strong { margin-top:4px; font-size:12px; }.positions-empty p { margin:5px 0 0; color:var(--muted); font-size:10px; }.empty-icon { color:#58667e; font-size:23px; }
.order-heading { min-height:74px; }.paper-badge { padding:5px 7px; color:#f0c568; background:rgba(240,197,104,.12); border-radius:3px; font-size:10px; }.order-mode { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; margin:12px 15px 0; padding:4px; min-height:44px; align-items:stretch; border:1px solid var(--line); border-radius:7px; background:var(--panel2); }.order-mode button { min-width:0; min-height:34px; padding:8px 4px; border:1px solid transparent; border-radius:5px; color:var(--muted); font-size:13px; line-height:18px; font-weight:600; }.order-mode button.active { color:#fff; background:#315df3; border-color:#5c80ff; font-weight:700; box-shadow:0 2px 5px rgba(0,0,0,.16); }.order-mode button:disabled { cursor:default; opacity:.4; }.leverage-row,.available-row { display:flex; align-items:center; justify-content:space-between; margin:15px; color:var(--muted); font-size:11px; }.leverage-row button { border:1px solid #31405b; border-radius:3px; padding:5px 8px; color:#aebbd0; background:#1a2230; font-size:10px; }.order-field { position:relative; display:block; margin:10px 15px; border:1px solid var(--line); border-radius:4px; background:#10151e; padding:7px 9px; }.order-field span { display:block; color:var(--muted); font-size:10px; }.order-field input { width:100%; margin-top:6px; padding:0 34px 0 0; border:0; outline:0; background:transparent; color:#8390a4; font-size:12px; }.order-field input::placeholder { color:#56637a; }.order-field em { position:absolute; right:9px; bottom:7px; color:#a6b3c9; font-size:10px; font-style:normal; }.amount-shortcuts { display:grid; grid-template-columns:repeat(4,1fr); gap:5px; margin:10px 15px; }.amount-shortcuts button { padding:6px 0; color:#74829b; border:1px solid var(--line); border-radius:3px; background:#171e2b; font-size:10px; }.available-row { margin-top:16px; }.available-row strong { color:#b9c3d4; font-weight:normal; }.trade-button { display:block; width:calc(100% - 30px); height:37px; margin:9px 15px; border:0; border-radius:4px; color:#fff; font-weight:bold; opacity:.55; cursor:not-allowed; }.trade-button span { margin-left:4px; font-weight:normal; }.trade-button.long { background:#17855f; }.trade-button.short { background:#b73b51; }.order-notice { display:flex; gap:7px; margin:15px; padding:10px; background:#121a27; border:1px solid #26364f; border-radius:4px; color:#8e9ab0; font-size:10px; line-height:1.45; }.order-notice span { flex:0 0 14px; height:14px; text-align:center; border:1px solid #6f829f; border-radius:50%; }.order-notice p { margin:0; }
@media (max-width:1280px) { .yesfi-contract { grid-template-columns:210px minmax(500px,1fr) 325px; }.market-stats { gap:12px; }.market-stats div { min-width:60px; } }

[hidden] { display:none!important; }
button:disabled { cursor:not-allowed; }
button:focus-visible,input:focus-visible,a:focus-visible { outline:2px solid var(--blue); outline-offset:2px; }
.positions-empty .positions-signup { display:inline-flex; align-items:center; justify-content:center; min-height:32px; margin-top:12px; padding:7px 20px; border:1px solid var(--blue); border-radius:4px; color:#fff; background:var(--blue); font-size:12px; font-weight:600; text-decoration:none; }
.positions-empty .positions-signup:hover { filter:brightness(1.08); }
.positions-promo { display:grid; grid-template-columns:42px minmax(0,1fr); align-items:center; gap:18px; min-height:116px; margin:14px 15px; padding:20px 24px; border:1px solid var(--line); border-radius:6px; background:linear-gradient(115deg,var(--panel2),var(--panel)); }
.positions-promo-mark { display:grid; place-items:center; width:42px; height:42px; border:1px solid var(--blue); border-radius:12px; background:var(--panel); color:var(--blue); font-size:25px; font-weight:bold; }
.positions-promo-copy { min-width:0; }.positions-promo-brand { color:var(--blue); font-size:10px; font-weight:bold; letter-spacing:1px; }.positions-promo h3 { margin:6px 0; color:var(--text); font-size:20px; font-weight:600; line-height:1.4; overflow-wrap:anywhere; }.positions-promo p { margin:0; color:var(--muted); font-size:12px; line-height:1.6; overflow-wrap:anywhere; }
@media(max-width:1500px) { .positions-promo { grid-template-columns:42px minmax(0,1fr); gap:12px 16px; padding:18px; }.positions-promo h3 { font-size:18px; } }
.account-connection { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:14px 15px 0; font-size:10px; }
.account-connection a { color:#9bb6ff; text-underline-offset:3px; }
#account-address { color:var(--muted); font-family:monospace; }
.account-message { margin:9px 15px 12px; color:#a3b0c7; font-size:11px; line-height:1.5; overflow-wrap:anywhere; }
.account-balances { margin:0 15px 14px; display:grid; grid-template-columns:1fr; gap:8px; font-size:11px; }
.account-balances div { display:flex; justify-content:space-between; gap:8px; }.account-balances dt { color:var(--muted); }.account-balances dd { margin:0; }
.leverage-row > div { display:flex; align-items:center; gap:6px; border:1px solid #31405b; border-radius:3px; padding:5px 8px; background:#1a2230; }
.leverage-row input { width:58px; padding:0; border:0; background:transparent; color:#dce6fa; text-align:right; outline:0; }.leverage-row input:disabled { color:#74829b; }
.order-field input:not(:disabled) { color:var(--text); }.order-field:focus-within { border-color:var(--blue); }
#order-price, #order-quantity { font-size:18px; font-weight:700; }
#order-price-field .order-price-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:18px; }
#order-price-field .order-price-heading>label { color:var(--muted); font-size:10px; }
#order-auto-price-control { display:inline-flex; align-items:center; gap:6px; flex-shrink:0; }
#order-auto-price-control[hidden] { display:none; }
#order-auto-price-control>span { display:inline; margin:0; color:var(--muted); font-size:10px; }
#order-auto-price { position:relative; width:30px; height:16px; padding:0; border:0; border-radius:9px; background:#536079; cursor:pointer; }
#order-auto-price::before { content:""; position:absolute; top:3px; left:3px; width:10px; height:10px; border-radius:50%; background:#fff; transition:transform .12s ease; }
#order-auto-price[aria-checked="true"] { background:var(--blue); }
#order-auto-price[aria-checked="true"]::before { transform:translateX(14px); }
#order-auto-price:focus-visible { outline:2px solid var(--blue); outline-offset:3px; }
#order-auto-price:disabled { opacity:.45; cursor:default; }
.amount-shortcuts button:enabled { cursor:pointer; color:#bccae1; }.amount-shortcuts button:enabled:hover { background:#26334a; }
.instrument-limits { margin:8px 15px; color:var(--muted); font-size:10px; line-height:1.5; }
.order-validation { min-height:30px; margin:9px 15px; color:#f0c568; font-size:11px; line-height:1.45; }
.order-liquidation-preview { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; margin:12px 15px; font-size:10px; }
.order-liquidation-preview > div { min-width:0; }.order-liquidation-preview dt { margin-bottom:5px; color:var(--muted); line-height:1.4; }.order-liquidation-preview dd { margin:0; font-size:11px; font-variant-numeric:tabular-nums; line-height:1.45; overflow-wrap:anywhere; }.order-liquidation-preview .buy dd { color:var(--green); }.order-liquidation-preview .sell { text-align:right; }.order-liquidation-preview .sell dd { color:var(--red); }
.order-liquidation-estimate-note { margin:0 15px 12px; color:var(--muted); font-size:10px; line-height:1.5; overflow-wrap:anywhere; }
.trade-button:enabled { opacity:1; cursor:pointer; }.trade-button.long:enabled { background:#16a877; }.trade-button.short:enabled { background:#db4f66; }.trade-button:enabled:hover { filter:brightness(1.12); }
.trade-result { margin:12px 15px; font-size:11px; line-height:1.55; color:#afc3e8; overflow-wrap:anywhere; }.trade-result.error { color:#ff8593; }.trade-result.success { color:#57dca7; }
.bottom-tabs { gap:16px; height:auto; min-height:43px; flex-wrap:wrap; }.bottom-tabs .table-refresh { margin-left:auto; font-size:10px; color:#91b0ef; cursor:pointer; }
.table-note { margin:10px 15px; font-size:10px; color:var(--muted); line-height:1.5; }
.trade-table-wrap { overflow:auto; min-height:136px; max-height:390px; }.trade-table { border-collapse:collapse; width:100%; white-space:nowrap; font-size:11px; }.trade-table th { color:var(--muted); font-size:10px; font-weight:normal; background:#151c29; position:sticky; top:0; z-index:1; }.trade-table th,.trade-table td { padding:11px 13px; border-bottom:1px solid #222c3e; text-align:right; }.trade-table th:first-child,.trade-table td:first-child { text-align:left; }.trade-table tbody tr:hover { background:#182130; }.trade-table td .row-action { border:1px solid #354864; background:#1e2a3d; padding:5px 7px; border-radius:3px; color:#b8cbed; font-size:10px; margin:0 3px; cursor:pointer; }.trade-table td .row-action.danger { color:#ff9eab; border-color:#663747; }.trade-table td .row-action:disabled { opacity:.4; cursor:not-allowed; }.trade-table .table-symbol { display:block; color:#eef4ff; }.trade-table .table-sub { display:block; margin-top:4px; font-size:9px; color:var(--muted); }.positions-empty { padding:15px; text-align:center; }.positions-empty p { max-width:440px; line-height:1.5; }

.trade-table.position-table { table-layout:fixed; min-width:1080px; font-variant-numeric:tabular-nums; }
.position-table .position-column-symbol { width:11%; }.position-table .position-column-leverage { width:7%; }.position-table .position-column-quantity { width:8%; }.position-table .position-column-entry,.position-table .position-column-liquidation { width:10%; }.position-table .position-column-margin,.position-table .position-column-pnl { width:13%; }.position-table .position-column-protection { width:12%; }.position-table .position-column-actions { width:16%; }
.position-history-table .position-column-symbol { width:11%; }.position-history-table .position-column-leverage,.position-history-table .position-column-quantity,.position-history-table .position-column-status { width:7%; }.position-history-table .position-column-entry,.position-history-table .position-column-close { width:9%; }.position-history-table .position-column-pnl { width:14%; }.position-history-table .position-column-opened,.position-history-table .position-column-closed { width:18%; }
.position-table th,.position-table td { padding-right:10px; padding-left:10px; }
.position-table .position-direction { display:inline-flex; align-items:center; min-height:18px; padding:2px 6px; border:1px solid transparent; border-radius:3px; font-size:10px; font-weight:600; line-height:12px; }
.position-table .position-direction.positive { color:var(--yf-success)!important; background:var(--yf-success-bg); border-color:var(--yf-success-line); }
.position-table .position-direction.negative { color:var(--yf-danger)!important; background:var(--yf-danger-bg); border-color:var(--yf-danger-line); }
.position-table .position-cell-value { display:block; max-width:100%; height:20px; line-height:20px; overflow-x:auto; overflow-y:hidden; scrollbar-width:none; }
.position-table .position-cell-value::-webkit-scrollbar { display:none; }
.position-table .position-cell-text { display:block; width:max-content; min-width:100%; }
.position-table .position-cell-value:focus-visible { outline:2px solid var(--blue); outline-offset:2px; }

.trade-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; margin:9px 15px; }
.trade-actions .trade-button { width:100%; height:50px; margin:0; font-size:13px; }.trade-actions .trade-button small { display:block; margin-top:4px; font-size:10px; font-weight:normal; }.trade-actions .trade-button span { margin-left:0; }
.quick-input { margin:13px 15px; padding:10px; border:1px solid #303b50; border-radius:6px; background:#161e2b; }.quick-input h3 { margin:0 0 9px; color:#b8c5d9; font-size:11px; font-weight:600; }
.quick-modes { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:3px; padding:3px; margin-bottom:10px; border-radius:5px; background:#0e1520; }.quick-modes button { min-width:0; min-height:28px; padding:4px 2px; border:1px solid #41516b; border-radius:3px; background:transparent; color:#aab8ce; font-size:10px; cursor:pointer; }.quick-modes button[aria-pressed="true"] { border-color:#197454; background:#197454; color:#fff; }
.quick-presets { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; }.quick-presets button { min-width:0; min-height:30px; padding:4px 2px; border:1px solid #303c53; border-radius:4px; background:#1b2638; color:#bccae1; font-size:10px; }.quick-presets button:enabled { cursor:pointer; }.quick-presets button:disabled { color:#65718a; }.quick-presets button:enabled:hover,.quick-input .amount-shortcuts button:enabled:hover { border-color:#4d9d83; background:#25374a; }
.quick-percent-label { display:flex; align-items:center; justify-content:space-between; gap:5px; color:#8f9db4; font-size:10px; }.quick-percent-label output { color:#c6d5ed; font-variant-numeric:tabular-nums; }#order-percent { display:block; width:100%; height:20px; margin:8px 0; accent-color:#18b781; cursor:pointer; }.quick-input .amount-shortcuts { grid-template-columns:repeat(5,minmax(0,1fr)); gap:4px; margin:0; }.quick-input > p { margin:9px 0 0; min-height:24px; color:#7f90aa; font-size:9px; line-height:1.45; }

.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.quick-margin { margin:-3px 15px 13px; padding:10px; border:1px solid #2b384e; border-radius:5px; background:#111a28; }.quick-margin h3 { margin:0 0 8px; color:#aebed5; font-size:10px; font-weight:600; }.quick-margin > label { display:block; color:#8b9ab2; font-size:9px; margin-bottom:4px; }.quick-margin select { width:100%; min-width:0; height:29px; margin-bottom:7px; padding:3px 6px; color:#c7d4ea; background:#192438; border:1px solid #35445d; border-radius:3px; font:inherit; font-size:10px; }.quick-margin > p { margin:5px 0; color:#8192ae; font-size:9px; line-height:1.45; overflow-wrap:anywhere; }.quick-margin #margin-target { color:#c2d0e5; }.margin-current { display:flex; justify-content:space-between; gap:8px; margin:8px 0; color:#8797b0; font-size:9px; }.margin-current strong { color:#c2d1e8; font-weight:normal; }.margin-actions { display:grid; grid-template-columns:46px minmax(0,1fr) 46px; gap:5px; }.margin-actions button { height:31px; padding:0 3px; border:1px solid #345b50; border-radius:3px; background:#173b32; color:#8ed9bc; font-size:10px; cursor:pointer; }.margin-actions #margin-reduce { border-color:#5c394b; background:#3a2532; color:#e0a0b3; }.margin-actions button:disabled { opacity:.4; cursor:not-allowed; }.margin-actions label { position:relative; display:block; border:1px solid #33445f; border-radius:3px; background:#0d1521; }.margin-actions input { display:block; width:100%; height:29px; padding:3px 39px 3px 7px; outline:0; border:0; color:#d5e1f6; background:transparent; font-size:11px; }.margin-actions em { position:absolute; top:10px; right:6px; font-size:9px; font-style:normal; color:#8699b9; }

.leverage-row > .leverage-control { padding:0; border:0; background:transparent; }

.order-limits-notice { margin:15px; padding:10px; border:1px solid #2a384f; border-radius:4px; background:#121a27; }.order-limits-notice h3 { margin:0 0 6px; color:#a7b8d3; font-size:10px; font-weight:600; }.order-limits-notice .instrument-limits { margin:0; color:#8494ae; font-size:10px; line-height:1.6; }
