.topnav{height:var(--header-h);display:flex;align-items:center;justify-content:space-between;padding:0 16px;background:#0000004d;border-bottom:1px solid rgba(255,255,255,.1);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);flex-shrink:0;z-index:100}.tn-left{display:flex;align-items:center;gap:24px}.tn-logo{display:flex;align-items:center;flex-shrink:0}.tn-logo-image{height:16px;width:auto;transition:transform .2s ease}.tn-logo:hover .tn-logo-image{transform:scale(1.05)}.tn-links{display:flex;align-items:center;gap:4px}.tn-link{padding:6px 12px;font-size:13px;color:var(--text-subtle);border-radius:4px;font-weight:500;position:relative}.tn-link:hover{color:var(--text);background:var(--bg-hover)}.tn-link.active{color:var(--text)}.tn-link.active:after{content:"";position:absolute;bottom:-14px;left:12px;right:12px;height:2px;background:var(--text);border-radius:1px}.tn-right{display:flex;align-items:center;gap:12px}.tn-balance{display:flex;flex-direction:column;align-items:flex-end;font-size:12px;line-height:1.2}.tn-balance-label{color:var(--text-muted);font-size:10px;text-transform:uppercase;letter-spacing:.05em}.tn-account{display:flex;align-items:center;gap:6px;padding:6px 10px;background:var(--bg-elevated);border:1px solid var(--border);border-radius:4px;font-size:12px}.tn-status-dot{width:6px;height:6px;border-radius:50%;background:var(--text-subtle)}.tn-status-dot[data-active=true]{background:var(--primary);box-shadow:0 0 6px #ee470580}.tn-acct{color:var(--text-muted);font-size:11px}@media (max-width: 768px){.topnav{padding:0 10px;gap:8px}.tn-left{gap:8px;min-width:0}.tn-logo-image{height:14px}.tn-links{gap:0}.tn-link{padding:6px 8px;font-size:12px}.tn-link.active:after{left:8px;right:8px;bottom:-10px}.tn-right{gap:8px}.tn-balance,.tn-addr{display:none}.tn-account{padding:5px 8px}}@media (max-width: 420px){.tn-account{display:none}.tn-logo-image{height:12px}}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000b3;display:flex;align-items:center;justify-content:center;z-index:100;padding:16px}.modal{width:100%;max-width:460px;background:var(--bg-panel);border:1px solid var(--border);border-radius:8px;display:flex;flex-direction:column}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:16px;border-bottom:1px solid var(--border)}.modal-header h3{margin:0;font-size:14px;font-weight:600}.modal-close{font-size:20px;color:var(--text-muted);line-height:1;padding:0 4px}.modal-close:hover{color:var(--text)}.modal-body{padding:16px;display:flex;flex-direction:column;gap:12px}.sg-bullets{list-style:disc;padding-left:18px;margin:0;font-size:12px;color:var(--text-muted);line-height:1.6}.modal-body .btn{margin-top:8px}.sg-notice{display:flex;flex-direction:column;gap:8px;padding:12px;background:var(--bg-elevated);border:1px solid var(--border);border-radius:4px;font-size:12px}.sg-notice p{margin:0}.sg-hint{font-size:11px;text-align:center}.market-icon{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;flex-shrink:0;overflow:hidden;background:var(--bg-elevated);-webkit-user-select:none;user-select:none}.market-icon-fallback{color:#fff;font-weight:700;letter-spacing:-.02em;text-transform:uppercase;line-height:1}.market-switcher{position:relative}.ms-button{display:flex;align-items:center;gap:12px;padding:6px 10px 6px 8px;background:var(--bg-elevated);border:1px solid var(--border);border-radius:6px;font-size:13px;transition:background-color .12s ease,border-color .12s ease}.ms-button:hover,.ms-button.open{background:var(--bg-hover);border-color:var(--border-strong)}.ms-symbol{font-weight:600;letter-spacing:.01em}.ms-price{font-size:13px;min-width:92px;text-align:right;font-variant-numeric:tabular-nums}.ms-change{font-size:12px;min-width:64px;text-align:right;font-variant-numeric:tabular-nums}.ms-caret{color:var(--text-muted);transition:transform .15s ease,color .12s ease;line-height:1}.ms-caret.open{transform:rotate(180deg);color:var(--text)}.ms-dropdown{position:fixed;z-index:1000;display:flex;flex-direction:column;border-radius:8px;box-shadow:0 16px 40px #0009,0 2px 8px #0006;overflow:hidden}.ms-search-row{position:relative;display:flex;align-items:center;padding:10px 12px;border-bottom:1px solid var(--border);background:var(--bg-panel)}.ms-search-icon{color:var(--text-muted);font-size:14px;margin-right:8px;line-height:1}.ms-categories{display:flex;gap:4px;padding:8px 12px;border-bottom:1px solid var(--border);background:var(--bg-panel);overflow-x:auto;scrollbar-width:none;flex-shrink:0}.ms-categories::-webkit-scrollbar{display:none}.ms-cat{padding:4px 10px;border-radius:999px;border:1px solid var(--border);background:transparent;color:var(--text-muted);font-size:11px;font-weight:600;white-space:nowrap;transition:background-color .12s ease,color .12s ease,border-color .12s ease}.ms-cat:hover{color:var(--text);border-color:var(--border-strong)}.ms-cat.active{background:var(--bg-hover);color:var(--text);border-color:var(--border-strong)}.ms-search-input{flex:1;background:transparent;border:none;outline:none;color:var(--text);font-family:inherit;font-size:13px}.ms-search-input::placeholder{color:var(--text-muted)}.ms-search-clear{margin-left:8px;width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:var(--bg-elevated);color:var(--text-muted);font-size:16px;line-height:1}.ms-search-clear:hover{background:var(--bg-hover);color:var(--text)}.ms-list-header,.ms-row{display:grid;grid-template-columns:20px 1.7fr 1fr .85fr 1fr 1fr;align-items:center;gap:8px;padding:0 14px}.ms-star{width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;background:transparent;border:none;color:var(--text-subtle, var(--text-muted));font-size:13px;line-height:1;cursor:pointer;border-radius:3px;transition:color .12s ease,transform .12s ease}.ms-star:hover{color:var(--text);transform:scale(1.15)}.ms-star.active{color:#f5b941}.ms-list-header{height:32px;border-bottom:1px solid var(--border);background:var(--bg-panel);font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted);font-weight:600;position:sticky;top:0;z-index:1}.ms-col{display:inline-flex;align-items:center;gap:4px;font:inherit;color:inherit;background:transparent;height:100%;padding:0;cursor:pointer;white-space:nowrap;text-transform:inherit;letter-spacing:inherit}.ms-col:hover{color:var(--text)}.ms-col-symbol{justify-content:flex-start}.ms-col-right{justify-content:flex-end;text-align:right}.ms-sort-arrow{font-size:9px;color:var(--text-subtle);line-height:1}.ms-sort-arrow.active{color:var(--text)}.ms-list{flex:1;overflow-y:auto}.ms-row{width:100%;height:44px;font-size:12px;color:var(--text);cursor:pointer;border-radius:0;background:transparent;text-align:left;border-bottom:1px solid rgba(255,255,255,.025);transition:background-color .1s ease}.ms-row:last-child{border-bottom:none}.ms-row:hover{background:var(--bg-hover)}.ms-row.active{background:var(--bg-elevated);box-shadow:inset 2px 0 0 var(--text)}.ms-row-symbol{display:inline-flex;align-items:center;gap:10px;min-width:0}.ms-row-symbol-text{display:inline-flex;flex-direction:column;align-items:flex-start;line-height:1.15;min-width:0}.ms-row-symbol-main{font-weight:600;font-size:12.5px;letter-spacing:.01em}.ms-row-symbol-sub{font-size:9px;color:var(--text-muted);text-transform:uppercase;letter-spacing:.08em}.ms-empty{padding:32px 12px;text-align:center;font-size:12px}@media (max-width: 560px){.ms-list-header,.ms-row{grid-template-columns:18px 1.6fr 1fr .9fr;gap:6px;padding:0 10px}.ms-list-header>:nth-child(5),.ms-list-header>:nth-child(6),.ms-row>:nth-child(5),.ms-row>:nth-child(6){display:none}.ms-categories{padding:8px 10px}}.tradingview-chart-container{height:100%;width:100%;background-color:#000}.tradingview-chart-placeholder{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:.5rem;height:100%;width:100%;padding:1rem;background-color:#000;color:#ccc;font-size:1.2rem;text-align:center}.tradingview-chart-placeholder h3{margin:0;color:#fff;font-size:1rem;font-weight:600}.tradingview-chart-placeholder p{max-width:28rem;margin:0;color:#999;font-size:.875rem;line-height:1.4}.fallback-chart{display:flex;flex-direction:column;height:100%;min-height:0;width:100%;padding:12px;background:radial-gradient(circle at 20% 10%,rgba(238,71,5,.08),transparent 26%),#000;color:#fff}.fallback-chart-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-shrink:0}.fallback-chart-title{display:block;font-size:14px;font-weight:700}.fallback-chart-subtitle{display:block;margin-top:2px;color:#8f8f8f;font-size:11px}.fallback-chart-price{font-family:JetBrains Mono,monospace;font-size:14px;font-weight:700}.fallback-chart-svg{flex:1;min-height:0;width:100%}.fallback-chart-grid{stroke:#ffffff14;stroke-width:1}.fallback-chart-axis{fill:#7f7f7f;font-family:JetBrains Mono,monospace;font-size:10px;text-anchor:end}.fallback-chart-wick{stroke-width:1.5}.fallback-chart-candle{stroke-width:0}.fallback-chart-svg .up .fallback-chart-wick,.fallback-chart-svg .up .fallback-chart-candle{fill:#22ab94;stroke:#22ab94}.fallback-chart-svg .down .fallback-chart-wick,.fallback-chart-svg .down .fallback-chart-candle{fill:#ef5350;stroke:#ef5350}@media (max-width: 768px){.tradingview-chart-container,.tradingview-chart-placeholder{height:100%}}:root,.theme-dark:root,.tv-custom-theme{--tv-color-platform-background: #000000 !important;--tv-color-pane-background: #000000 !important;--tv-color-toolbar-button-background: #000000 !important;--tv-color-toolbar-button-background-hover: #1a1a1a !important;--tv-color-toolbar-button-background-expanded: #1a1a1a !important;--tv-color-toolbar-button-background-active: #333333 !important;--tv-color-toolbar-button-background-active-hover: #1a1a1a !important;--tv-color-toolbar-button-text: #ffffff !important;--tv-color-toolbar-button-text-hover: #ffffff !important;--tv-color-toolbar-button-text-active: #ffffff !important;--tv-color-toolbar-button-text-active-hover: #ffffff !important;--tv-color-toolbar-toggle-button-background-active: #333333 !important;--tv-color-toolbar-toggle-button-background-active-hover: #1a1a1a !important;--tv-color-item-active-text: #ffffff !important;--tv-color-toolbar-divider-background: #1a1a1a !important;--tv-color-toolbar-save-layout-loader: #ffffff !important;--tv-color-popup-background: #000000 !important;--tv-color-popup-element-text: #ffffff !important;--tv-color-popup-element-text-hover: #ffffff !important;--tv-color-popup-element-background-hover: #1a1a1a !important;--tv-color-popup-element-divider-background: #1a1a1a !important;--tv-color-popup-element-secondary-text: #cccccc !important;--tv-color-popup-element-hint-text: #999999 !important;--tv-color-popup-element-text-active: #ffffff !important;--tv-color-popup-element-background-active: #333333 !important;--tv-color-popup-element-toolbox-text: #ffffff !important;--tv-color-popup-element-toolbox-text-hover: #ffffff !important;--tv-color-popup-element-toolbox-text-active-hover: #ffffff !important;--tv-color-popup-element-toolbox-background-hover: #1a1a1a !important;--tv-color-popup-element-toolbox-background-active-hover: #333333 !important}.tv-custom-theme .chart-container{background-color:#000!important;color:#fff!important}.tv-custom-theme [class*=toolbar],.tv-custom-theme [class*=header],.tv-custom-theme [class*=topbar],.tv-custom-theme [class*=top-toolbar],.tv-custom-theme [class*=top-bar],.tv-custom-theme [class*=topBar],.tv-custom-theme [class*=top_bar],.tv-custom-theme [class*=chart-toolbar],.tv-custom-theme [class*=timeframe],.tv-custom-theme [class*=time-frame],.tv-custom-theme [class*=chart-controls],.tv-custom-theme [class*=drawing-toolbar],.tv-custom-theme [class*=chart-header],.tv-custom-theme div[data-name*=toolbar],.tv-custom-theme div[data-name*=header],.tv-custom-theme div[data-name*=topbar],.tv-custom-theme div[data-name*=top-bar],.tv-custom-theme div[data-name*=chart-toolbar],.tv-custom-theme div[data-name*=timeframe]{background-color:#000!important;background:#000!important;border-color:#1a1a1a!important}.tv-custom-theme [class*=chart-toolbar] *,.tv-custom-theme [class*=timeframe] *,.tv-custom-theme [class*=time-frame] *,.tv-custom-theme [class*=chart-controls] *,.tv-custom-theme [class*=drawing-toolbar] *{background-color:#000!important;color:#fff!important}.tv-custom-theme [class*=interval],.tv-custom-theme [class*=resolution],.tv-custom-theme [class*=timeframe-button],.tv-custom-theme [class*=chart-button],.tv-custom-theme [class*=drawing-button],.tv-custom-theme [class*=settings-button],.tv-custom-theme [class*=screenshot-button],.tv-custom-theme .tv-button,.tv-custom-theme button,.tv-custom-theme [class*=button]{background-color:#000!important;color:#fff!important;border-color:#1a1a1a!important}.tv-custom-theme .tv-button:hover,.tv-custom-theme button:hover,.tv-custom-theme [class*=button]:hover{background-color:#1a1a1a!important;color:#fff!important}.tv-custom-theme .tv-active-item{color:#fff!important}.tv-custom-theme .tv-popup{background-color:#000!important;color:#fff!important}.tv-custom-theme .tv-popup .tv-element:hover{background-color:#1a1a1a!important;color:#fff!important}.tv-custom-theme .tv-legend{background-color:#000!important;color:#fff!important;border:1px solid #1a1a1a!important}.tv-custom-theme .tv-grid-line{stroke:#1a1a1a!important}.tv-custom-theme .tv-crosshair{stroke:#fff!important}.tv-custom-theme .tv-tooltip{background-color:#000!important;color:#fff!important;border:1px solid #1a1a1a!important}.tv-custom-theme .tv-floating-toolbar{background-color:#000!important}.tv-custom-theme .chart-container,.tv-custom-theme iframe,.tv-custom-theme [class*=left-toolbar],.tv-custom-theme [class*=side-toolbar],.tv-custom-theme [class*=drawing-toolbar],.tv-custom-theme [class*=toolbar-container],.tv-custom-theme [data-name=drawing-toolbar]{background-color:#000!important;background:#000!important}.tv-custom-theme [class*=left-toolbar] button,.tv-custom-theme [class*=side-toolbar] button,.tv-custom-theme [class*=drawing-toolbar] button{background-color:#000!important;color:#fff!important;border-color:#1a1a1a!important}.tv-custom-theme [class*=left-toolbar] button:hover,.tv-custom-theme [class*=side-toolbar] button:hover,.tv-custom-theme [class*=drawing-toolbar] button:hover{background-color:#1a1a1a!important;color:#fff!important}.tv-custom-theme .chart-container .toolbar,.tv-custom-theme .chart-container .header,.tv-custom-theme .chart-container .topbar,.tv-custom-theme .chart-container [class*=chart-toolbar],.tv-custom-theme .chart-container [class*=timeframe],.tv-custom-theme .chart-container [class*=top-],.tv-custom-theme .chart-container [class*=control],.tv-custom-theme .chart-container [class*=nav]{background-color:#000!important;background:#000!important}.tv-custom-theme,.tv-custom-theme>div,.tv-custom-theme .chart-container{background-color:#000!important;background:#000!important}.tradingview-chart-container.tv-custom-theme{background-color:#000!important}.tradingview-chart-container.tv-custom-theme *{--tv-color-toolbar-background: #000000 !important;--tv-color-toolbar-button-background: #000000 !important;--tv-color-toolbar-button-background-active: #000000 !important;--tv-color-topbar-background: #000000 !important;--tv-color-pane-background: #000000 !important}.orderbook{display:flex;flex-direction:column;height:100%;min-height:0}.ob-header{display:grid;grid-template-columns:1fr 1fr 1fr;padding:6px 12px;font-size:10px;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);border-bottom:1px solid var(--border);font-weight:600;height:24px;flex-shrink:0}.ob-asks,.ob-bids{flex:1;overflow-y:auto;min-height:0}.ob-asks{display:flex;flex-direction:column;justify-content:flex-end}.ob-row{position:relative;display:grid;grid-template-columns:1fr 1fr 1fr;padding:2px 12px;font-size:11px;cursor:pointer;height:22px;align-items:center}.ob-row:hover{background:var(--bg-hover)}.ob-bar{position:absolute;top:0;right:0;height:100%;z-index:0;transition:width .15s ease-out}.red-row .ob-bar{background:var(--red-bg)}.green-row .ob-bar{background:var(--green-bg)}.ob-price,.ob-right{position:relative;z-index:1}.ob-right{text-align:right}.ob-mid{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;border-top:1px solid var(--border);border-bottom:1px solid var(--border);font-size:14px;font-weight:500;background:var(--bg-elevated);flex-shrink:0}.recent-trades{display:flex;flex-direction:column;height:100%;min-height:0}.rt-header{display:grid;grid-template-columns:1fr 1fr 1fr;padding:6px 12px;font-size:10px;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);border-bottom:1px solid var(--border);font-weight:600;height:24px;flex-shrink:0}.rt-list{flex:1;overflow-y:auto;min-height:0}.rt-row{display:grid;grid-template-columns:1fr 1fr 1fr;padding:3px 12px;font-size:11px;height:22px;align-items:center}.rt-row:hover{background:var(--bg-hover)}.rt-right{text-align:right}.obt{display:flex;flex-direction:column;height:100%;min-height:0}.obt-tabs{display:flex;align-items:center;justify-content:space-between;padding:0 12px;border-bottom:1px solid var(--border);height:36px;flex-shrink:0;gap:8px}.obt-tabs-left{display:flex;align-items:center;gap:0;height:100%}.obt-tab{position:relative;height:100%;display:inline-flex;align-items:center;padding:0 14px;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);cursor:pointer;transition:color .12s ease;background:transparent}.obt-tab:hover,.obt-tab.active{color:var(--text)}.obt-tab.active:after{content:"";position:absolute;left:8px;right:8px;bottom:-1px;height:2px;background:var(--text);border-radius:2px 2px 0 0}.obt-spread{font-size:11px;white-space:nowrap}.obt-body{flex:1;display:flex;flex-direction:column;min-height:0;overflow:hidden}.obt-body>*{flex:1;min-height:0}.order-entry{display:flex;flex-direction:column;padding:0;height:100%;min-height:0}.oe-side-tabs{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid var(--border)}.oe-side{padding:10px;font-size:12px;font-weight:600;color:var(--text-muted);background:var(--bg-panel);border-bottom:2px solid transparent}.oe-side:hover{color:var(--text)}.oe-side.active.buy{color:var(--green);border-bottom-color:var(--green);background:var(--green-bg)}.oe-side.active.sell{color:var(--red);border-bottom-color:var(--red);background:var(--red-bg)}.oe-type-tabs{display:flex;gap:4px;padding:8px 12px 0}.oe-balance{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:12px;border-bottom:1px solid var(--border);font-size:12px}.oe-label{color:var(--text-muted);font-size:10px;text-transform:uppercase;letter-spacing:.05em;font-weight:600;margin-bottom:2px}.oe-fields{display:flex;flex-direction:column;gap:8px;padding:12px}.oe-field{display:flex;flex-direction:column;gap:4px}.oe-meta{display:flex;align-items:center;justify-content:space-between;font-size:12px;padding-top:4px}.oe-options{display:flex;flex-direction:column;gap:6px;padding:0 12px 12px}.oe-check{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--text-muted);cursor:pointer}.oe-check:hover{color:var(--text)}.oe-check input{accent-color:var(--green)}.oe-fees{font-size:11px;text-align:center;padding:8px 12px 12px}.order-entry>.btn{margin:0 12px}.oe-seg-row{display:flex;gap:8px}.oe-seg{display:flex;flex:1;border:1px solid var(--border);border-radius:4px;overflow:hidden}.oe-seg button{flex:1;padding:6px 4px;font-size:11px;color:var(--text-muted);background:var(--bg-panel)}.oe-seg button:hover{color:var(--text)}.oe-seg button.active{color:var(--text);background:var(--bg-elevated);font-weight:600}.oe-size-label{display:flex;align-items:center;justify-content:space-between}.oe-unit-toggle{display:inline-flex;border:1px solid var(--border);border-radius:3px;overflow:hidden}.oe-unit-toggle button{padding:2px 8px;font-size:10px;color:var(--text-muted);background:var(--bg-panel);text-transform:none;letter-spacing:0}.oe-unit-toggle button.active{color:var(--text);background:var(--bg-elevated);font-weight:600}.oe-pct-row{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.oe-pct{padding:4px 0;font-size:11px;color:var(--text-muted);background:var(--bg-elevated);border:1px solid var(--border);border-radius:3px}.oe-pct:hover{color:var(--text);background:var(--bg-hover)}.oe-tpsl{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding-top:4px}.pm-modal{max-width:380px}.pm-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:10px 12px;background:var(--bg-elevated);border:1px solid var(--border);border-radius:4px;font-size:12px}.pm-stats>div{display:flex;flex-direction:column;gap:2px}.pm-hint{margin:0;font-size:11px}.data-table{display:flex;flex-direction:column;width:100%;height:100%;min-height:0}.dt-header,.dt-row{display:grid;grid-template-columns:1fr .6fr 1fr 1fr 1fr 1fr 1fr 80px;gap:8px;align-items:center;padding:6px 16px;font-size:11px}.dt-header{color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em;font-weight:600;height:28px;border-bottom:1px solid var(--border);flex-shrink:0}.dt-body{flex:1;overflow-y:auto}.dt-row{height:32px;border-bottom:1px solid var(--border)}.dt-row:hover{background:var(--bg-hover)}.dt-right{text-align:right;justify-self:end}.dt-positions .dt-header,.dt-positions .dt-row{grid-template-columns:.8fr .5fr .85fr .85fr .85fr .85fr 1.25fr .85fr 1.15fr .85fr 132px}.dt-tpsl{white-space:nowrap;font-size:10px}.dt-orders .dt-header,.dt-orders .dt-row{grid-template-columns:.9fr .5fr .9fr 1fr 1fr 1fr 1fr .7fr 80px}.dt-actions{display:inline-flex;gap:6px}.dt-pnl-pct{font-size:10px;opacity:.8}.dt-fills .dt-header,.dt-fills .dt-row{grid-template-columns:1.3fr .9fr .5fr .7fr .6fr .8fr .8fr .8fr .9fr .7fr}.dt-funding .dt-header,.dt-funding .dt-row{grid-template-columns:1.4fr .9fr .6fr 1fr 1fr 1fr}.dt-transfers .dt-header,.dt-transfers .dt-row{grid-template-columns:1.4fr 1fr 1fr 1fr 1.1fr}.dt-link{color:var(--text-muted);text-decoration:underline;text-underline-offset:2px}.dt-link:hover{color:var(--text)}.dt-badge-liq{margin-left:6px;padding:1px 4px;border-radius:3px;background:var(--red-bg);color:var(--red);font-size:9px;font-weight:700;letter-spacing:.05em}.dt-order-history .dt-header,.dt-order-history .dt-row{grid-template-columns:1.5fr .8fr .5fr .9fr .9fr .9fr .9fr .9fr 1fr}.dt-time{white-space:nowrap;font-size:10px}.empty-state{display:flex;align-items:center;justify-content:center;height:100%;min-height:120px;color:var(--text-muted);font-size:13px}@media (max-width: 768px){.data-table{overflow:auto;-webkit-overflow-scrolling:touch}.dt-body{overflow:visible;flex:none}.dt-header{position:sticky;top:0;z-index:2;background:var(--bg-panel)}.dt-header,.dt-row{min-width:620px}.dt-positions .dt-header,.dt-positions .dt-row{min-width:1000px}.dt-orders .dt-header,.dt-orders .dt-row{min-width:780px}.dt-fills .dt-header,.dt-fills .dt-row{min-width:800px}.dt-order-history .dt-header,.dt-order-history .dt-row{min-width:820px}.dt-funding .dt-header,.dt-funding .dt-row{min-width:560px}.dt-transfers .dt-header,.dt-transfers .dt-row{min-width:540px}}.aqr{display:flex;flex-direction:column;align-items:center;gap:8px;width:100%}.aqr-toggle{background:none;border:none;color:var(--green, #22ab94);font-size:12px;cursor:pointer;padding:0;align-self:center}.aqr-toggle:hover{text-decoration:underline}.aqr-qr{background:#fff;padding:8px;border-radius:8px;line-height:0;box-shadow:0 0 0 1px var(--border, #1a1a1a)}.aqr-label{font-size:11px;color:var(--text-muted, #888);text-align:center}.aqr-addr{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;background:var(--bg-elevated, #141414);border:1px solid var(--border, #1a1a1a);border-radius:6px;padding:8px 10px;color:var(--text, #e5e5e5);font-size:12px;cursor:pointer;transition:border-color .12s ease}.aqr-addr:hover{border-color:var(--border-strong, #262626)}.aqr-addr-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:break-all}.aqr-copy{flex-shrink:0;font-size:11px;color:var(--green, #22ab94);font-weight:600}.dc-body{display:flex;flex-direction:column;gap:10px;padding:12px}.dc-intro{font-size:12px;margin:0 0 4px}.dc-row{display:flex;justify-content:space-between;align-items:center;font-size:12px;gap:12px}.dc-row-full{flex-direction:column;align-items:stretch;gap:4px}.dc-label{color:var(--text-muted, #888);font-size:11px;text-transform:uppercase;letter-spacing:.04em}.dc-value{font-size:13px;color:var(--text-primary, #ffffff)}.dc-intent{display:flex;align-items:center;gap:8px;background:var(--bg-elevated, #141414);border:1px solid var(--border, rgba(255, 255, 255, .08));border-radius:4px;padding:6px 8px;font-size:11px;word-break:break-all}.dc-intent code{flex:1 1 auto;font-size:11px;line-height:1.4}.dc-warn{font-size:12px;background:#ffc40014;border:1px solid rgba(255,196,0,.4);color:#ffd479;padding:8px 10px;border-radius:4px;display:flex;align-items:center;justify-content:space-between;gap:12px}.dc-amount-row{display:flex;gap:8px;align-items:center}.dc-amount-input{flex:1 1 auto}.btn-xs{font-size:11px;padding:4px 10px;height:auto}.dc-tx-link{font-size:11px;color:var(--accent, #ee4705);text-decoration:none;text-align:center}.dc-tx-link:hover{text-decoration:underline}.dc-polling{display:flex;align-items:center;justify-content:center;gap:8px;font-size:12px;color:var(--text-muted, #888);padding:8px}.dc-spinner{width:12px;height:12px;border-radius:50%;border:2px solid currentColor;border-top-color:transparent;animation:dc-spin .9s linear infinite;display:inline-block}@keyframes dc-spin{to{transform:rotate(360deg)}}.dc-min{font-size:11px}.trade-page{display:flex;flex-direction:column;height:100%;min-height:0}.trade-topbar{display:flex;align-items:center;gap:24px;padding:8px 16px;background:var(--bg-panel);border-bottom:1px solid var(--border);flex-shrink:0;height:52px;overflow-x:auto}.market-stats{display:flex;align-items:center;gap:24px;flex-shrink:0}.ms-stat{display:flex;flex-direction:column;gap:2px;font-size:12px;white-space:nowrap}.ms-stat-label{color:var(--text-muted);font-size:10px;text-transform:uppercase;letter-spacing:.05em;font-weight:600}.ms-last{font-size:15px;font-weight:700;font-variant-numeric:tabular-nums;transition:color .15s ease}.ms-tick-arrow{font-size:11px;margin-left:3px}.ms-countdown{font-variant-numeric:tabular-nums}.trade-grid{flex:1;display:grid;grid-template-columns:1fr 280px 320px;grid-template-rows:1fr 240px;grid-template-areas:"chart orderbook entry" "bottom bottom entry";gap:1px;background:var(--border);min-height:0}.trade-mobile-market-tabs,.trade-mobile-action,.trade-mobile-sheet-backdrop{display:none}.trade-chart.panel{grid-area:chart;min-height:0;overflow:hidden;background:#000;border-color:#1a1a1a}.trade-orderbook{grid-area:orderbook;min-height:0}.trade-entry{grid-area:entry;min-height:0;background:var(--bg-panel)}.trade-bottom{grid-area:bottom;display:flex;flex-direction:column;min-height:0}.trade-bottom-tabs{display:flex;align-items:center;padding:4px 8px;border-bottom:1px solid var(--border);height:32px;flex-shrink:0}.trade-bottom-body{flex:1;overflow:hidden}@media (max-width: 1280px){.trade-grid{grid-template-columns:1fr 240px 300px;grid-template-areas:"chart orderbook entry" "bottom bottom entry";grid-template-rows:1fr 240px}}@media (max-width: 960px){.trade-grid{grid-template-columns:1fr 300px;grid-template-rows:1fr 260px;grid-template-areas:"chart entry" "bottom entry"}.trade-orderbook{display:none}}@media (max-width: 700px){.trade-page{overflow-y:auto;-webkit-overflow-scrolling:touch;padding-bottom:74px}.trade-topbar{flex-direction:column;align-items:stretch;height:auto;gap:10px;padding:10px 12px}.market-switcher{width:100%}.ms-button{width:100%;justify-content:space-between}.market-stats{gap:16px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}.market-stats::-webkit-scrollbar{display:none}.trade-grid{display:flex;flex-direction:column;flex:1;gap:0;min-height:0;background:var(--bg)}.trade-mobile-market-tabs{display:flex;align-items:center;gap:0;padding:0;background:var(--bg-panel);border-bottom:0;flex-shrink:0}.trade-mobile-market-tabs .tab{flex:1;justify-content:center;padding:10px 12px;border-bottom-width:2px}.trade-chart.panel{height:calc(100dvh - 214px);min-height:420px;max-height:640px;border-top:0}.trade-orderbook{display:block;height:calc(100dvh - 214px);min-height:420px;max-height:640px}.trade-chart.panel:not(.mobile-active),.trade-orderbook:not(.mobile-active){display:none}.trade-entry{display:none}.trade-bottom{min-height:440px}.trade-bottom-tabs{overflow-x:auto;scrollbar-width:none}.trade-bottom-tabs::-webkit-scrollbar{display:none}.trade-bottom-tabs .tab{white-space:nowrap}.trade-mobile-action{position:fixed;left:0;right:0;bottom:0;z-index:35;display:block;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:linear-gradient(180deg,#0000,#000000e0 24%,#000)}.trade-mobile-action-button{width:100%;min-height:44px;border-radius:8px;font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.trade-mobile-sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;display:flex;align-items:flex-end;background:#000000b8}.trade-mobile-sheet{width:100%;max-height:min(86dvh,760px);display:flex;flex-direction:column;overflow:hidden;background:var(--bg-panel);border:1px solid var(--border-strong);border-bottom:0;border-radius:16px 16px 0 0;box-shadow:0 -18px 60px #0000008c}.trade-mobile-sheet-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid var(--border);flex-shrink:0}.trade-mobile-sheet-header strong{display:block;margin-top:2px;font-size:15px}.trade-mobile-sheet-kicker{display:block;color:var(--text-muted);font-size:10px;text-transform:uppercase;letter-spacing:.08em}.trade-mobile-sheet-body{min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;padding-bottom:env(safe-area-inset-bottom)}.trade-mobile-sheet-body .order-entry.panel{border:0;min-height:auto}}.pnl-chart{display:flex;flex-direction:column;gap:4px;padding:8px 12px 12px}.pnl-chart svg{display:block;cursor:crosshair}.pnl-chart-readout{display:flex;align-items:baseline;gap:10px}.pnl-chart-value{font-size:20px;font-weight:600}.pnl-chart-time{font-size:11px}.pnl-chart-empty{display:flex;align-items:center;justify-content:center;height:180px;font-size:13px}.portfolio-page{padding:16px;display:flex;flex-direction:column;gap:16px;height:100%;overflow-y:auto}.pp-hero{display:grid;grid-template-columns:minmax(380px,1.2fr) 1fr;gap:16px;align-items:stretch}.pp-hero-main{display:flex;flex-direction:column;padding:16px 4px 4px}.pp-hero-top{display:flex;justify-content:space-between;align-items:flex-start;padding:0 12px}.pp-hero-equity{font-size:32px;font-weight:700;letter-spacing:-.01em;margin:4px 0 8px}.pp-hero-chips{display:flex;gap:8px;align-items:center}.pp-chip{display:inline-flex;align-items:baseline;gap:4px;padding:3px 8px;border-radius:4px;font-size:12px;font-weight:600;border:1px solid var(--border)}.pp-chip-up{color:var(--green);background:var(--green-bg);border-color:transparent}.pp-chip-down{color:var(--red);background:var(--red-bg);border-color:transparent}.pp-chip-label{font-size:10px;opacity:.75;text-transform:uppercase;letter-spacing:.05em}.pp-hero-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.pp-card{padding:14px 16px;border-radius:4px;display:flex;flex-direction:column;justify-content:center}.pp-card-label{color:var(--text-muted);font-size:10px;text-transform:uppercase;letter-spacing:.06em;font-weight:600;margin-bottom:6px}.pp-card-value{font-size:18px;font-weight:600;line-height:1.2}.pp-card-value-sub{font-size:11px;font-weight:500}.pp-card-sub{margin-top:4px;font-size:10.5px}.pp-exposure{font-size:14px}.pp-margin-bar{height:4px;border-radius:2px;background:var(--bg-elevated);margin-top:8px;overflow:hidden}.pp-margin-fill{height:100%;border-radius:2px;background:var(--green);transition:width .3s ease}.pp-margin-fill.danger{background:var(--red)}.pp-tables{display:flex;flex-direction:column;flex:1;min-height:380px}.pp-tabs{display:flex;align-items:center;gap:2px;padding:4px 8px;border-bottom:1px solid var(--border);flex-shrink:0}.pp-tab-count{margin-left:6px;padding:0 5px;border-radius:8px;background:var(--bg-elevated);font-size:10px;font-weight:600}.pp-tab-body{flex:1;min-height:0;overflow:hidden}.pp-range-tabs{display:flex;gap:4px}.page-stub{padding:32px}.page-stub h2{margin:0 0 8px}@media (max-width: 1100px){.pp-hero{grid-template-columns:1fr}.pp-hero-stats{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}}@media (max-width: 640px){.portfolio-page{padding:12px;gap:12px}.pp-hero{gap:12px}.pp-hero-equity{font-size:26px}.pp-hero-stats{grid-template-columns:repeat(2,1fr);gap:8px}.pp-card{padding:12px}.pp-card-value{font-size:16px}.pp-tabs{overflow-x:auto;scrollbar-width:none}.pp-tabs::-webkit-scrollbar{display:none}.pp-tabs .tab{white-space:nowrap}.pp-tables{min-height:360px}}@media (max-width: 380px){.pp-hero-stats{grid-template-columns:1fr}}.hd-stepper{display:flex;align-items:center;gap:4px;padding:2px 0 6px}.hd-step{display:flex;align-items:center;gap:6px;flex:1;min-width:0}.hd-step:last-child{flex:0 0 auto}.hd-step-dot{width:18px;height:18px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:10px;font-weight:700;background:var(--bg-elevated, #141414);border:1px solid var(--border, #1a1a1a);color:var(--text-muted, #888);flex-shrink:0}.hd-step.active .hd-step-dot{border-color:var(--green, #22ab94);color:var(--green, #22ab94)}.hd-step.done .hd-step-dot{background:var(--green-bg, rgba(34, 171, 148, .1));border-color:var(--green, #22ab94);color:var(--green, #22ab94)}.hd-step-label{font-size:10px;text-transform:uppercase;letter-spacing:.05em;font-weight:600;color:var(--text-muted, #888);white-space:nowrap}.hd-step.active .hd-step-label,.hd-step.done .hd-step-label{color:var(--text, #e5e5e5)}.hd-step-line{flex:1;height:1px;background:var(--border, #1a1a1a);min-width:8px}.hd-presets{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.hd-preset{padding:5px 0;border-radius:4px;border:1px solid var(--border, #1a1a1a);background:transparent;color:var(--text-muted, #888);font-size:12px;font-weight:600;cursor:pointer;transition:border-color .12s ease,color .12s ease}.hd-preset:hover{color:var(--text, #e5e5e5);border-color:var(--border-strong, #262626)}.hd-preset.active{color:var(--green, #22ab94);border-color:var(--green, #22ab94);background:var(--green-bg, rgba(34, 171, 148, .1))}.hd-amount{font-size:16px}.hd-quote-receive{display:flex;justify-content:space-between;align-items:baseline;padding-bottom:4px;border-bottom:1px solid var(--border, #1a1a1a);margin-bottom:2px}.hd-quote-amount{font-size:18px;font-weight:700}.hd-quote-unit{font-size:11px;color:var(--text-muted, #888);font-weight:500}.hd-quote-ttl{height:3px;border-radius:2px;background:var(--bg-hover, #1f1f1f);overflow:hidden;margin-top:4px}.hd-quote-ttl-fill{height:100%;background:var(--green, #22ab94);transition:width 1s linear}.hd-done{display:flex;flex-direction:column;align-items:center;gap:8px;padding:16px 8px;text-align:center}.hd-done p{margin:0;font-size:13px;color:var(--text-muted, #888)}.hd-done-icon{width:36px;height:36px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:var(--green-bg, rgba(34, 171, 148, .1));border:1px solid var(--green, #22ab94);color:var(--green, #22ab94);font-size:18px;font-weight:700}.hd-tabs{display:flex;gap:4px;padding:2px;background:var(--bg-elevated, #141414);border:1px solid var(--border, rgba(255, 255, 255, .08));border-radius:6px}.hd-tab{flex:1 1 0;background:transparent;border:none;color:var(--text-muted, #888);padding:6px 10px;font-size:12px;border-radius:4px;cursor:pointer;transition:background-color .12s ease,color .12s ease}.hd-tab:hover{color:var(--text-primary, #ffffff)}.hd-tab.active{background:var(--bg-hover, #1f1f1f);color:var(--text-primary, #ffffff)}.hd-token-pick{display:flex;flex-direction:column;gap:12px}.hd-seg{display:flex;gap:4px;padding:2px;background:var(--bg-elevated, #141414);border:1px solid var(--border, rgba(255, 255, 255, .08));border-radius:6px}.hd-seg-btn{flex:1 1 0;background:transparent;border:none;color:var(--text-muted, #888);padding:6px 10px;font-size:12px;font-weight:600;border-radius:4px;cursor:pointer;transition:background-color .12s ease,color .12s ease}.hd-seg-btn:hover:not(:disabled){color:var(--text, #e5e5e5)}.hd-seg-btn.active{background:var(--bg-hover, #1f1f1f);color:var(--text, #e5e5e5)}.hd-seg-btn:disabled{opacity:.35;cursor:not-allowed}.hd-method-chips{display:flex;flex-wrap:wrap;gap:6px}.hd-chip{background:var(--bg-elevated, #141414);border:1px solid var(--border, rgba(255, 255, 255, .08));color:var(--text-muted, #888);font-size:11px;padding:4px 10px;border-radius:999px;cursor:pointer;transition:border-color .12s ease,color .12s ease}.hd-chip:hover{border-color:var(--accent, #ee4705);color:var(--text-primary, #ffffff)}.hd-chip.active{background:#22ab941a;border-color:var(--accent, #ee4705);color:var(--accent, #ee4705)}.hd-quote{display:flex;flex-direction:column;gap:6px;background:var(--bg-elevated, #141414);border:1px solid var(--border, rgba(255, 255, 255, .08));border-radius:6px;padding:10px 12px}.hd-instr{display:flex;flex-direction:column;gap:10px}.hd-deposit-info{display:flex;flex-direction:column;gap:12px}.hd-deposit-block{display:flex;flex-direction:column;gap:6px;background:var(--bg-elevated, #141414);border:1px solid var(--border, rgba(255, 255, 255, .08));border-radius:6px;padding:10px 12px}.hd-status{font-size:12px;padding:2px 8px;border-radius:999px;background:#ffffff0d;border:1px solid var(--border, #1a1a1a);color:var(--text-muted, #888);text-transform:capitalize}.hd-status.complete{color:var(--accent, #ee4705);border-color:#22ab9466;background:#22ab9414}.hd-status.failed,.hd-status.expired,.hd-status.tainted{color:#ff7a7a;border-color:#ff7a7a66;background:#ff7a7a14}.hd-status.pending,.hd-status.unconfirmed{color:#ffd479;border-color:#ffc40066;background:#ffc40014}.wallet-page{padding:16px;display:flex;flex-direction:column;gap:16px;height:100%;overflow-y:auto;max-width:1100px;margin:0 auto;width:100%}.wp-summary{display:grid;grid-template-columns:repeat(5,1fr);gap:16px;padding:14px 16px;align-items:center}.wp-summary-item{display:flex;flex-direction:column;gap:4px;min-width:0}.wp-summary-big{font-size:15px;font-weight:600}.wp-addr{display:inline-flex;align-items:center;gap:6px;background:none;border:none;padding:0;color:var(--text, #e5e5e5);font-size:13px;cursor:pointer}.wp-addr:hover .wp-copy{color:var(--text, #e5e5e5)}.wp-copy{font-size:11px;color:var(--text-muted, #888)}.wp-session{display:inline-flex;align-items:center;gap:6px;font-size:13px}.wp-session-dot{width:7px;height:7px;border-radius:50%;background:var(--text-muted, #888)}.wp-session.on .wp-session-dot{background:var(--green, #22ab94);box-shadow:0 0 6px var(--green, #22ab94)}.wp-session.off{color:var(--text-muted, #888)}.wp-tabs{display:flex;gap:2px;border-bottom:1px solid var(--border, #1a1a1a)}.wp-tab{background:none;border:none;border-bottom:2px solid transparent;color:var(--text-muted, #888);font-size:13px;font-weight:600;padding:8px 14px;cursor:pointer;transition:color .12s ease,border-color .12s ease}.wp-tab:hover{color:var(--text, #e5e5e5)}.wp-tab.active{color:var(--text, #e5e5e5);border-bottom-color:var(--green, #22ab94)}.wp-deposit-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:16px;align-items:start}.wp-form-grid{display:grid;grid-template-columns:minmax(320px,480px);gap:16px}.wp-card{display:flex;flex-direction:column}.wp-card-body{padding:16px;display:flex;flex-direction:column;gap:12px}.wp-hint{display:flex;justify-content:space-between;align-items:center;font-size:12px}.wp-max{background:none;border:none;padding:0;color:var(--green, #22ab94);font-size:12px;cursor:pointer}.wp-max:hover{text-decoration:underline}.wp-history{display:flex;flex-direction:column;min-height:200px}.rp-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px;align-items:start}.rp-card{display:flex;flex-direction:column}.rp-info{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;font-size:12px}.wp-deposit-info{display:flex;flex-direction:column;gap:12px}.wp-code{display:block;background:var(--bg-elevated);padding:8px;border-radius:4px;border:1px solid var(--border);font-size:11px;word-break:break-all}@media (max-width: 760px){.wp-summary{grid-template-columns:repeat(2,1fr)}}@media (max-width: 600px){.wallet-page{padding:12px;gap:12px}.wp-summary{gap:12px;padding:12px}.wp-tabs{overflow-x:auto;scrollbar-width:none}.wp-tabs::-webkit-scrollbar{display:none}.wp-tab{white-space:nowrap;padding:8px 12px}.wp-deposit-grid,.wp-form-grid,.rp-grid{grid-template-columns:1fr}.rp-info{grid-template-columns:repeat(2,1fr)}}@media (max-width: 400px){.wp-summary{grid-template-columns:1fr}}@font-face{font-family:GeneralSans;src:url(/fonts/GeneralSans-Regular.otf) format("opentype");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:GeneralSans;src:url(/fonts/GeneralSans-Medium.otf) format("opentype");font-weight:500;font-style:normal;font-display:swap}@font-face{font-family:GeneralSans;src:url(/fonts/GeneralSans-Light.otf) format("opentype");font-weight:300;font-style:normal;font-display:swap}:root{color-scheme:dark;--primary: #ee4705;--primary-hover: #ff8c42;--accent: var(--primary);--bg: #000000;--bg-subtle: #0a0a0a;--bg-panel: #0a0a0a;--bg-elevated: #141414;--bg-hover: rgba(255, 255, 255, .05);--border: rgba(255, 255, 255, .08);--border-strong: rgba(255, 255, 255, .14);--border-hover: rgba(238, 71, 5, .4);--text: #ffffff;--text-muted: #888888;--text-subtle: #a1a1aa;--green: #22c55e;--green-bg: rgba(34, 197, 94, .1);--red: #ef4444;--red-bg: rgba(239, 68, 68, .1);--yellow: #ff8c42;--blue: #17a2b8;--font-sans: "GeneralSans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;--font-mono: "JetBrains Mono", "SF Mono", Menlo, Monaco, Consolas, monospace;--header-h: 56px;--footer-h: 200px;--left-w: 220px;--right-w: 320px}*,*:before,*:after{box-sizing:border-box}html,body,#root{height:100%;background:var(--bg);color:var(--text);margin:0;padding:0;font-family:var(--font-sans);font-size:14px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{overflow:hidden}a{color:inherit;text-decoration:none}button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit;padding:0}input,select{font-family:inherit}input[type=number]::-webkit-outer-spin-button,input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--bg-elevated);border-radius:3px}::-webkit-scrollbar-thumb:hover{background:var(--border-strong)}.mono{font-family:var(--font-mono);font-variant-numeric:tabular-nums}.muted{color:var(--text-muted)}.green{color:var(--green)}.red{color:var(--red)}.row{display:flex;align-items:center}.col{display:flex;flex-direction:column}.gap-1{gap:4px}.gap-2{gap:8px}.gap-3{gap:12px}.gap-4{gap:16px}.btn{display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;font-size:12px;font-weight:500;border-radius:4px;border:1px solid transparent;transition:background-color .15s ease,opacity .15s ease;white-space:nowrap}.btn:disabled{opacity:.4;cursor:not-allowed}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover:not(:disabled){background:var(--primary-hover)}.btn-danger{background:var(--red);color:#fff}.btn-danger:hover:not(:disabled){opacity:.9}.btn-ghost{background:var(--bg-elevated);color:var(--text);border-color:var(--border)}.btn-ghost:hover:not(:disabled){background:var(--bg-hover);border-color:var(--border-hover)}.btn-sm{padding:4px 8px;font-size:11px}.btn-block{width:100%}.input{width:100%;background:var(--bg-elevated);border:1px solid var(--border);color:var(--text);font-family:var(--font-mono);font-size:12px;padding:8px 10px;border-radius:4px;outline:none}.input:focus{border-color:var(--primary);box-shadow:0 0 0 2px #ee470540}.select{background:var(--bg-elevated);border:1px solid var(--border);color:var(--text);font-size:12px;padding:6px 8px;border-radius:4px;outline:none}.panel{background:var(--bg-panel);border:1px solid var(--border)}.panel-header{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;border-bottom:1px solid var(--border);font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);font-weight:500;height:32px;flex-shrink:0}.tab{padding:6px 12px;font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);font-weight:500;cursor:pointer;border-bottom:1px solid transparent}.tab:hover{color:var(--text)}.tab.active{color:var(--text);border-bottom-color:var(--primary)}.divider{height:1px;background:var(--border)}@media (max-width: 768px){.input,.select,input,select,textarea{font-size:16px}.page-stub{padding:20px 16px}}.app{display:flex;flex-direction:column;height:100%}.app-main{flex:1;min-height:0;display:flex}.app-main>*{flex:1;min-height:0}
