/* Shared site shell and visual language, with the terminal's dense work area. */
.terminal-page{display:flex;flex-direction:column;min-height:100dvh;height:100dvh;font-family:var(--sans,'Archivo',sans-serif);font-size:14px;line-height:1.4;--green:#0a8f52;--blue:#0a8f52;--red:#c9302c}
.terminal-page:not(.light){--green:#2ef08a;--blue:#2ef08a;--red:#f06a62}.terminal-page.light{--bg:#f4f5f8;--panel:#fff;--panel-2:#e8ebf0;--text:#05070d;--border:#d9dde5;--muted:#5e6677}
.terminal-page .market-panel-head{align-items:flex-start;flex-wrap:wrap;gap:6px;padding-bottom:10px}.market-heading{display:flex;align-items:center;justify-content:space-between;width:100%;gap:8px}.terminal-page #connStatus{border:0;background:transparent;padding:0;font:11px/1.4 var(--sans,sans-serif);text-align:left;max-width:100%}.terminal-page #connStatus .dot{width:6px;height:6px}.ticket-funds{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 14px;border-bottom:1px solid var(--border);font-size:12px}.ticket-funds-label{color:var(--muted)}.ticket-funds strong{font:500 14px var(--mono,monospace)}
.terminal-research-links{display:flex;align-items:center;gap:22px;padding:9px 18px;font-size:12px;background:var(--panel);border-bottom:1px solid var(--border);flex-shrink:0}.terminal-research-links>span{color:var(--muted);margin-right:auto}.terminal-research-links a{color:var(--green);text-decoration:none;white-space:nowrap}
.terminal-page .view.active{flex:1;min-height:0;height:auto;overflow:auto;padding-bottom:calc(var(--bnavH) + 12px)}.terminal-page .layout{grid-template-columns:220px minmax(0,1fr) 330px;overflow:hidden}.terminal-page .layout .panel{min-height:0}.terminal-page .testnet-notice{font-size:11px;padding:5px 12px}.terminal-page .notice-bar{flex-shrink:0}.terminal-page .btn-primary{background:var(--green);color:var(--bg)}.terminal-page .panel{border-radius:12px}.terminal-page .coin-row.active{background:color-mix(in srgb,var(--green) 10%,transparent)}.terminal-page .view h1,.terminal-page .view h2,.terminal-page .view h3{margin:0;letter-spacing:normal}.terminal-page .modal h4{margin:0}.terminal-page .bottomnav{background:var(--panel)}.terminal-page a{color:inherit;text-decoration:none}.terminal-page .site-shell .site-shell-cta{color:var(--shell-bg)}
@media(max-width:1100px){.terminal-page .layout{grid-template-columns:170px minmax(0,1fr) 290px}.terminal-research-links>span{display:none}}
@media(max-width:850px){.terminal-research-links{overflow:auto;gap:16px}.terminal-page .layout{display:flex;flex-direction:column;overflow:auto}.terminal-page .coins-panel{max-height:155px;flex-shrink:0}.terminal-page .center-panel{min-height:350px;flex-shrink:0}.terminal-page .right-panel{min-height:550px;flex-shrink:0}}

.terminal-research-links{min-height:34px;padding:7px 14px;gap:14px;white-space:nowrap;overflow-x:auto}.terminal-research-links>span{margin-right:0}.terminal-research-links .terminal-test-badge{color:var(--gold,#b26b00);font:500 11px var(--mono,monospace);flex-shrink:0}.terminal-research-links .terminal-flow{font-size:11px}.terminal-research-links nav{display:flex;align-items:center;gap:18px;margin-left:auto}.terminal-research-links .terminal-announcement{font-size:11px;max-width:220px;overflow:hidden;text-overflow:ellipsis;flex-shrink:1}.terminal-announcement button{border:0;background:none;color:inherit;cursor:pointer;margin-left:4px}
@media(max-width:1050px){.terminal-research-links .terminal-flow{display:none}}@media(max-width:650px){.terminal-research-links{gap:12px}.terminal-research-links nav{gap:14px}}

.terminal-research-links .terminal-test-badge{display:inline-flex}.terminal-research-links .terminal-announcement{display:inline-block}.terminal-page .nile-help{display:grid;gap:10px;font-size:12px;overflow-wrap:anywhere}.terminal-page .nile-help input{width:100%;min-width:0}.terminal-page .net-tabs{flex-wrap:wrap}

.terminal-page .testnet-withdrawals .panel-title{font-size:14px;font-weight:700;margin-bottom:8px}
.terminal-page #nileWithdrawals{padding:0;min-width:0;overflow-wrap:anywhere}
.terminal-page .testnet-withdrawals .tx-row{flex-wrap:wrap;border-color:var(--border)}
.terminal-page .testnet-withdrawals .tx-main{flex-basis:220px;line-height:1.6}
.terminal-page .testnet-withdrawals .tx-row a{color:var(--green);font-size:12px;white-space:nowrap}
.terminal-page .testnet-withdrawals .tx-row a:hover{text-decoration:underline}

.terminal-page .withdrawal-review-notice{margin-top:12px;color:var(--muted);font-size:12px;line-height:1.6}

.terminal-page .trade-confirm-box{width:min(440px,calc(100vw - 32px))}.terminal-page #tradeConfirmDetails{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px 16px;margin:18px 0;font-size:13px}.terminal-page #tradeConfirmDetails dt{color:var(--muted)}.terminal-page #tradeConfirmDetails dd{text-align:right;margin:0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.terminal-page #tradeConfirmStatus{margin-top:14px;color:var(--gold);line-height:1.6}.terminal-page #tradeConfirmRequest{margin-top:8px;overflow-wrap:anywhere;font:11px/1.6 var(--mono,monospace)}.terminal-page .trade-confirm-box .modal-actions{flex-wrap:wrap}.terminal-page .trade-confirm-box button:disabled{opacity:.5;cursor:wait}

/* Let the ticket keep its full content height inside the scrolling panel. */
.terminal-page .right-panel > *{flex-shrink:0}
.terminal-page #ticketSpot .payout-preview + .directions,
.terminal-page #ticketPerp .funding-strip + .directions{margin-top:12px}
.terminal-page .ticket .directions{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
.terminal-page .ticket .dir-btn{min-width:0;min-height:64px;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
.terminal-page .ticket .dir-sub{line-height:1.4}
