/* The terminal basics (dashboard/blotter.js): the bottom panel under the chart, the status bar, the shortcuts sheet.
   The page's tokens (human.css); hairlines, 12/13px on the desk, P&L green/red. Nothing animates at rest. */
.blot { position: relative; flex: 0 0 auto; display: flex; flex-direction: column; height: 220px; margin-top: 8px; border-top: 1px solid var(--line); min-height: 0; }
.blgrip { position: absolute; left: 0; right: 0; top: -5px; height: 9px; cursor: row-resize; z-index: 3; outline: 0; }
.blgrip::after { content: ""; position: absolute; left: 50%; top: 3px; width: 32px; height: 3px; margin-left: -16px; border-radius: 2px; background: transparent; transition: background-color var(--ease); }
.blgrip:focus-visible::after, body.bl-drag .blgrip::after { background: var(--line2); }
@media (hover: hover) { .blgrip:hover::after { background: var(--line2); } }
body.bl-drag { cursor: row-resize; user-select: none; }
.blth { display: flex; gap: 2px; padding: 6px 0 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.blth::-webkit-scrollbar { display: none; }
.blth button { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 6px 10px 8px; font-size: 13px; font-weight: 510; color: var(--fg2); cursor: pointer; white-space: nowrap; flex: none; transition: color var(--ease); }
@media (hover: hover) { .blth button:hover { color: var(--fg1); } }
.blth button.on { color: var(--fg); border-bottom-color: var(--fg); }
.blth .bltn { color: var(--fg3); font-weight: 400; margin-left: -2px; }
.blth .blti { flex: none; opacity: .8; }
.blth button.on .blti { opacity: 1; }
.bltb { flex: 1 1 auto; overflow: auto; min-height: 0; }
.bltt { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 12px; }
.bltt th { position: sticky; top: 0; background: var(--bg); text-align: left; font-weight: 510; color: var(--fg3); padding: 8px 10px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.bltt td { padding: 7px 10px; border-bottom: 1px solid var(--line); color: var(--fg1); white-space: nowrap; }
.bltt td:nth-child(2) { white-space: normal; }
.bltt .r { text-align: right; }
.bltt .up { color: var(--up); }
.bltt .down { color: var(--down); }
.bltt tfoot td { color: var(--fg2); border-bottom: 0; }
.bltt .bltx { padding: 0; }
.blte { margin: 14px 10px; font-size: 12px; color: var(--fg3); }
.bltd { display: grid; grid-template-columns: 120px 1fr; gap: 6px 16px; margin: 12px 10px; font-size: 12px; }
.bltd dt { color: var(--fg3); }
.bltd dd { margin: 0; color: var(--fg1); line-height: 1.45; }
/* the panel is a desktop and tablet surface; on a phone the trades card in the column already lists positions */
@media (max-width: 700px) { .blot { display: none; } }
@media (max-height: 760px) { .blot { height: 170px; } }

/* the status bar */
.sbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; display: flex; align-items: center; gap: 16px; height: 26px; padding: 0 16px; background: var(--panel); border-top: 1px solid var(--line); font-size: 12px; color: var(--fg2); }
body.has-sbar .app { height: calc(100vh - var(--chrome, var(--hdr)) - 26px); }
.sbc { display: inline-flex; align-items: center; gap: 6px; }
.sbd { width: 6px; height: 6px; border-radius: 50%; background: var(--up); }
.sbc.off .sbd { background: var(--ob-amber, #d6a23a); }
.sbs { flex: 1; }
.sbk { background: transparent; border: 0; padding: 0; font-size: 12px; color: var(--fg2); cursor: pointer; }
@media (hover: hover) { .sbk:hover { color: var(--fg1); } }
.sbar kbd, .kbs kbd { font: inherit; font-size: 11px; padding: 1px 5px; border-radius: 4px; background: var(--chip2); color: var(--fg1); }
.sbt { color: var(--fg1); }
@media (max-width: 700px) { .sbar { display: none; } body.has-sbar .app { height: auto; } }

/* the shortcuts sheet */
.kbs { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; background: rgba(8, 8, 10, 0.55); }
.kbc { width: min(420px, calc(100vw - 32px)); padding: 16px 20px; border-radius: 12px; background: var(--panel); box-shadow: 0 0 0 1px var(--line2); }
.kbh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 14px; }
.kbh .linkbtn { padding: 0; }
.kbc dl { display: grid; grid-template-columns: 96px 1fr; gap: 8px 12px; margin: 0; font-size: 13px; }
.kbc dd { margin: 0; color: var(--fg1); }

/* the trade panel's tabs (dashboard/sidetabs.js): one way to trade on screen at a time, same look as the bottom panel */
.stabs { position: sticky; top: 0; z-index: 4; display: flex; gap: 2px; padding: 6px 12px 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.stabs[hidden] { display: none; }
.stab { flex: 1 1 0; background: transparent; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 8px 4px 9px; font: inherit; font-size: 13px; font-weight: 510; color: var(--fg2); cursor: pointer; white-space: nowrap; transition: color var(--ease); }
@media (hover: hover) { .stab:hover { color: var(--fg1); } }
.stab.on { color: var(--fg); border-bottom-color: var(--fg); }
.stab[hidden] { display: none; }
.stab:focus-visible { outline: 2px solid var(--fg3); outline-offset: -2px; border-radius: 4px; }
.side[data-tab="bs"] > [data-pane]:not([data-pane="bs"]):not([data-pane="any"]),
.side[data-tab="ud"] > [data-pane]:not([data-pane="ud"]):not([data-pane="any"]),
.side[data-tab="ask"] > [data-pane]:not([data-pane="ask"]):not([data-pane="any"]) { display: none !important; }
/* with the bottom panel on screen (wider than a phone) its Positions tab lists your trades: the column card goes */
@media (min-width: 701px) { .side[data-tab]:not([data-tab="all"]) > #pf { display: none !important; } }
@media (max-width: 700px) { .stabs { position: static; padding: 4px 8px 0; } }
/* no account could be opened (dashboard/human.js acctRefused): one plain line on top of the trade panel */
.acctban { margin: 12px 20px 0; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 8px; font-size: 13px; line-height: 1.45; color: var(--fg1); }
.acctban b { color: var(--fg); font-weight: 600; }
/* the payout switch: a segmented control, not tabs */
.stabs { gap: 2px; margin: 0 14px 12px; padding: 3px; border: 0; border-radius: 10px; background: rgba(250, 248, 240, 0.05); position: static; }
.stab { border: 0; border-radius: 8px; margin: 0; padding: 7px 4px; }
.stab.on { background: var(--ob-fill-hi, #262a30); border-bottom-color: transparent; color: var(--fg); }
@media (max-width: 700px) { .stabs { margin: 0 8px 10px; padding: 3px; } }
/* logged out (human.js loggedOut): the way back in, two plain buttons (filled, never a bordered pill) */
.acctout-acts { display: flex; gap: 8px; margin-top: 10px; }
.acctout-btn { display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 14px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, 0.08); color: var(--fg); font: 510 13px/1 var(--ob-sans, inherit); text-decoration: none; cursor: pointer; }
.acctout-btn.pri { background: var(--fg); color: #000; }
@media (hover: hover) { .acctout-btn:hover { text-decoration: none; filter: brightness(1.1); } }
.acctout-btn:disabled { opacity: 0.6; cursor: default; }
@media (max-width: 640px) { .acctout-btn { height: 44px; flex: 1; } }
