@font-face{font-family:Inter;src:url('/assets/inter-variable.ttf') format('truetype');font-display:swap;font-weight:100 900}
:root{--bg:#090e0b;--surface:#101913;--surface-2:#1f271f;--surface-3:#252e25;--line:#2f3c30;--line-soft:#222b22;--text:#edf0ee;--blue:#78b08a;--blue-hover:#aab8aa;--blue-soft:#78b08a20;--font:Inter,Arial,sans-serif}
*{letter-spacing:0!important}.brand img{width:122px;height:30px;object-fit:contain}.brand{text-decoration:none;color:inherit}.header-status{font-size:12px!important}.header-status i{display:none!important}.account-button{background:#dbe0dd;color:#0f1611}.preview-data-note{margin:0;padding:8px 12px;font-size:12px;color:var(--muted);border-bottom:1px solid var(--line)}.terminal-home{color:var(--text);font-size:13px;text-decoration:none;padding:8px}
@media(max-width:800px){.header-status{display:none!important}.header-brand nav{display:none}.brand img{width:115px}}
@font-face{font-family:'DM Sans';src:url('/assets/dm-sans-regular.ttf') format('truetype');font-display:swap;font-weight:400}
@font-face{font-family:'DM Sans';src:url('/assets/dm-sans-bold.ttf') format('truetype');font-display:swap;font-weight:700}
:root{--font:'DM Sans',Arial,sans-serif}

/* The terminal keeps its continuous 1px border grid and square, bordered controls; only the palette is Subliquid's. */
:root{--bg:#090e0b;--surface:#0f1712;--surface-2:#182019;--surface-3:#212a22;--line:#263027;--line-soft:#1c241d;--muted:#a1b0a1;--muted-2:#768d77;--blue:#78b08a;--blue-hover:#aab8aa;--blue-soft:#78b08a1c;--green:#39c6a0;--green-soft:#39c6a01a;--red:#ff5d73;--red-soft:#ff5d731a}
.position-tabs .position-activity{display:flex;flex:0 0 auto;align-items:center;gap:2px;padding:0 4px 0 8px;font-size:11px;text-decoration:none;white-space:nowrap}
.position-tabs .position-activity:hover{color:var(--text)}
/* More order types sit three to a row; TWAP runtime and scale count and skew sit in pairs. */
.algo-order-row{grid-template-columns:repeat(3,minmax(0,1fr))}
.ticket-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.ticket-pair .ticket-input input{width:100%}.ticket-pair .ticket-input>span{font-size:11px;font-weight:650}
.ticket-label-gap,.ticket-pair-gap{margin-top:6px}
.chart-volume-toggle{margin-left:auto;height:22px;flex:none;border-radius:4px;padding:0 8px;color:var(--muted-2);font-size:11px;font-weight:650}
.chart-volume-toggle:hover{color:var(--text)}.chart-volume-toggle.active{background:var(--surface-2);color:var(--text)}
/* The embedded reference chart fills the chart pane. */
.reference-chart{width:100%;height:100%;min-height:240px;background:var(--surface)}.reference-chart iframe{display:block;border:0}
/* Trade settings: a gear on the order form opening two switches. */
.trade-settings{position:relative}
.trade-settings>button{display:grid;width:29px;height:29px;place-items:center;border-radius:3px;color:var(--muted)}
.trade-settings>button:hover,.trade-settings>button.active{background:var(--surface-2);color:var(--text)}
.trade-settings-menu{position:absolute;top:33px;right:0;z-index:40;display:grid;width:248px;gap:2px;border:1px solid #394539;border-radius:3px;padding:5px;background:var(--surface);box-shadow:0 16px 44px rgba(0,0,0,.48)}
.trade-settings-menu button{display:flex;align-items:flex-start;gap:9px;border-radius:2px;padding:7px;text-align:left;color:var(--text)}
.trade-settings-menu button:hover{background:var(--surface-2)}
.trade-settings-menu i{display:grid;width:16px;height:16px;flex:none;place-items:center;margin-top:1px;border:1px solid #586958;border-radius:2px}
.trade-settings-menu button.checked i{border-color:var(--blue);background:var(--blue);color:#ffffff}
.trade-settings-menu span{display:grid;gap:2px}.trade-settings-menu strong{font-size:12px;font-weight:650}.trade-settings-menu small{color:var(--muted);font-size:11px}
button,a,input{transition:background-color 120ms ease-out,border-color 120ms ease-out,color 120ms ease-out}
button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--blue);outline-offset:1px}
@media(prefers-reduced-motion:reduce){button,a,input{transition:none}}

/* Exchange navigation and coin logos. */
.app-header{height:48px;padding:0 14px}
.header-brand{gap:26px}
.header-brand nav{gap:4px}
.header-brand nav a{display:flex;height:48px;align-items:center;padding:0 11px;border-bottom:2px solid transparent;color:var(--muted);font-size:13.5px;text-decoration:none}
.header-brand nav a:hover{color:var(--text)}
.header-brand nav a.active{color:var(--text);border-bottom-color:var(--blue)}
.account-button{min-width:96px;height:32px;border-radius:3px;font-size:13px}
.account-button.connected{gap:8px;padding:0 10px 0 4px;font-variant-numeric:tabular-nums}
.account-button.connected>span{background:var(--surface-3);color:var(--text)}
.layout-menu{top:48px}
.asset-icon{overflow:hidden;background:transparent}
.asset-icon img{width:100%;height:100%;display:block;border-radius:50%}
.mobile-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:var(--muted);font-size:12px;text-decoration:none}
.mobile-nav a.active{color:var(--text)}
@media(max-width:980px){.app-header{height:52px}.mobile-nav{display:grid}}

/* Portfolio, Vault and Rewards pages. */
.consumer-app.page-view{display:flex;flex-direction:column}
.page-scroll{flex:1;overflow-y:auto}
.page{width:min(1180px,calc(100% - 40px));margin:0 auto;padding:34px 0 64px;display:grid;gap:16px}
.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:8px}
.page-head h1{margin:0;font-size:30px;font-weight:500;letter-spacing:-.02em!important;color:var(--text)}
.page-lead{margin:10px 0 0;max-width:640px;color:var(--muted);font-size:15px;line-height:1.6}
.page-private{display:flex;align-items:center;gap:7px;margin:8px 0 0;color:var(--muted-2);font-size:13px}
.page-actions{display:flex;gap:8px}
.page-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:38px;padding:0 16px;border-radius:3px;background:#e1e4e2;color:#161c16;font-size:13.5px;font-weight:650}
.page-button:hover{background:#ffffff}
.page-button.quiet{background:var(--surface-2);color:var(--text)}
.page-button.quiet:hover{background:var(--surface-3)}
.page-button.wide{width:100%;height:44px}
.page-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;border-radius:4px;overflow:hidden;background:var(--line)}
.page-stat{display:grid;gap:6px;padding:18px 20px;background:var(--surface)}
.page-stat span{color:var(--muted);font-size:12.5px}
.page-stat strong{font-size:21px;font-weight:550;font-variant-numeric:tabular-nums;color:var(--text)}
.page-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(300px,1fr);gap:16px}
.page-card{border-radius:4px;padding:18px 20px;background:var(--surface);box-shadow:inset 0 1px 0 #ffffff09;min-width:0}
.card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.card-head h2{margin:0;font-size:15px;font-weight:600;color:var(--text)}
.card-head a{display:flex;align-items:center;gap:3px;color:var(--muted);font-size:12.5px;text-decoration:none}
.card-head a:hover{color:var(--text)}
.card-copy{margin:0 0 14px;color:var(--muted);font-size:13.5px;line-height:1.6}
.card-rows{display:grid;gap:0}
.card-rows>div{display:flex;justify-content:space-between;padding:11px 0;border-top:1px solid var(--line-soft);font-size:13.5px}
.card-rows span{color:var(--muted)}
.card-rows strong{font-variant-numeric:tabular-nums;color:var(--text);font-weight:550}
.range-tabs,.page-tabs{display:flex;gap:4px}
.range-tabs button,.page-tabs button{height:28px;padding:0 10px;border-radius:2px;color:var(--muted);font-size:12.5px}
.range-tabs button.active,.page-tabs button.active{background:var(--surface-2);color:var(--text)}
.page-tabs{margin-bottom:12px;border-bottom:1px solid var(--line-soft);padding-bottom:10px;overflow-x:auto;scrollbar-width:none}
.page-tabs button{flex:none;white-space:nowrap}
.page-chart{display:block;width:100%;height:220px}
.page-table{display:grid;font-size:13.5px}
.page-table>div{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:12px;align-items:center;padding:12px 4px;border-top:1px solid var(--line-soft);font-variant-numeric:tabular-nums;color:var(--text)}
.page-table>.table-head{border-top:0;padding-top:4px;color:var(--muted-2);font-size:12px}
.token-cell{display:flex;align-items:center;gap:9px}
.token-cell img{width:22px;height:22px;border-radius:50%}
.token-cell img.sub-mark{border-radius:0;object-fit:contain}
.token-cell small{color:var(--muted);font-size:12px}
.vault-form{display:flex;flex-direction:column;gap:14px}
.vault-form .page-tabs{margin-bottom:0}
.page-input{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;color:var(--muted);font-size:12.5px}
.page-input>div{display:flex;align-items:center;gap:8px;height:50px;padding:0 12px;border:1px solid #ffffff12;border-radius:3px;background:var(--bg)}
.page-input input{flex:1;min-width:0;font-size:18px;color:var(--text);font-variant-numeric:tabular-nums}
.page-input button{height:26px;padding:0 9px;border-radius:2px;background:var(--surface-2);color:var(--muted);font-size:12px}
.page-input strong{display:flex;align-items:center;gap:6px;color:var(--text);font-size:13px}
.page-input strong img{width:18px;height:18px;border-radius:50%}
.source-bars{display:grid;gap:16px}
.source-bars>div>div{display:flex;justify-content:space-between;margin-bottom:8px;font-size:13.5px}
.source-bars span{color:var(--muted)}
.source-bars strong{color:var(--text);font-weight:550;font-variant-numeric:tabular-nums}
.source-bars i,.program i{display:block;height:6px;border-radius:2px;background:var(--surface-3);overflow:hidden}
.source-bars b,.program b{display:block;height:100%;border-radius:2px;background:linear-gradient(90deg,#4f7a60,#78b08a 60%,#dee2df)}
.program{display:grid;gap:12px}
.program strong{font-size:21px;font-weight:550;color:var(--text)}
.program .card-copy{margin:0}
.page-stats.six{grid-template-columns:repeat(3,1fr)}
.page-status{display:flex;align-items:center;gap:8px;margin:0;padding:10px 14px;border-radius:4px;background:var(--surface);color:var(--muted);font-size:13px}
.page-status i{width:7px;height:7px;border-radius:50%;background:var(--muted-2)}
.page-status.down i{background:var(--red)}
.page-empty{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;min-height:96px;padding:18px 4px;color:var(--muted);font-size:13.5px;text-align:center}
.page-card>.page-empty{min-height:190px}
.page-table>.page-empty{display:flex;grid-template-columns:none;border-top:1px solid var(--line-soft)}
@media(max-width:980px){.page-stats.six{grid-template-columns:repeat(2,1fr)}}
@media(max-width:980px){.page{padding:22px 0 90px}.page-stats{grid-template-columns:repeat(2,1fr)}.page-grid{grid-template-columns:1fr}.page-head{flex-direction:column;align-items:flex-start}.page-table>div{grid-template-columns:1.2fr 1fr 1fr;}.page-table>div>:nth-child(3){display:none}}

/* Wallet choices carry each wallet's own logo. */
.wallet-options button{justify-content:flex-start;gap:12px;padding-left:16px}
.wallet-options img{width:26px;height:26px;border-radius:4px;flex:none}

/* Order form in the style of the major perps venues: filled, borderless inputs with soft corners, one segmented
   Long/Short control, text presets and filled chips instead of outlined boxes. */
.trade-ticket .ticket-input{border:0;border-radius:6px;background:var(--surface-2);box-shadow:inset 0 0 0 1px transparent;transition:box-shadow 120ms ease-out}
.trade-ticket .ticket-input:hover{box-shadow:inset 0 0 0 1px #ffffff14}
.trade-ticket .ticket-input:focus-within{box-shadow:inset 0 0 0 1px #78b08a99}
.trade-ticket .side-selector{gap:0;padding:2px;border-radius:7px;background:var(--surface-2)}
.trade-ticket .side-selector button{height:32px;border:0;border-radius:5px;color:var(--muted)}
.trade-ticket .side-selector button strong{color:inherit;font-weight:650}
.trade-ticket .side-selector button:not(.active):hover{color:var(--text)}
.trade-ticket .side-selector button.long.active{background:var(--green);color:#06130d}
.trade-ticket .side-selector button.short.active{background:var(--red);color:#1c070b}
.trade-ticket .quick-amounts button{height:22px;border:0;border-radius:4px;background:transparent;color:var(--muted-2)}
.trade-ticket .quick-amounts button:hover,.trade-ticket .quick-amounts button.active{background:var(--surface-2);color:var(--text)}
.trade-ticket .leverage-options{gap:4px}
.trade-ticket .leverage-options button{height:26px;border:0;border-radius:5px;background:var(--surface-2);color:var(--muted)}
.trade-ticket .leverage-options button:hover{color:var(--text)}
.trade-ticket .leverage-options button.active{background:#78b08a2e;color:var(--text)}
.trade-ticket .percentage-input,.trade-ticket .leverage-input{border:0;border-radius:5px;background:var(--surface-2)}
.trade-ticket .order-options button i{border-radius:4px}
.trade-ticket .account-mode-row button{border-radius:4px}
.trade-ticket .algo-order-row button{border-radius:4px}
.trade-ticket .review-button,.review-modal .confirm-button{border-radius:6px}
