/* bybit.css - his own Bybit account, connected for REAL MONEY (2026-10-18).
   Real money is RED and SOLID: never the app's quiet greys, never see-through
   (a warning the page shows through is not a warning). Loaded after the theme
   files, so these win in dark and light alike. */

/* the bar that stays on every page while Bybit is connected */
.bybit-banner{ position:fixed; left:0; right:0; bottom:0; z-index:90; display:flex; align-items:center;
  flex-wrap:wrap; gap:6px 10px; padding:9px 16px; background:#9b1c2c; color:#fff;
  font-family:Inter, system-ui, sans-serif; font-size:13px; box-shadow:0 -2px 10px rgba(0,0,0,.35); }
html[data-theme="light"] .bybit-banner{ background:#8c1424; }
.bybit-banner strong{ letter-spacing:.04em; }
.bybit-banner .bb-dot{ width:8px; height:8px; border-radius:50%; background:#fff; flex:none; }
.bybit-banner .bb-sep{ opacity:.7; }
.bybit-banner .bb-kill{ margin-left:auto; background:#fff; color:#7a1422; border:0; border-radius:6px;
  padding:5px 12px; font:600 12px Inter, system-ui, sans-serif; cursor:pointer; }
.bybit-banner .bb-kill.on{ background:#ffd166; color:#3a2a00; }
body.bybit-real{ padding-bottom:44px; }

/* the trade panel and its confirm dialog say REAL MONEY in red */
html[data-theme] .fut-note.real, html[data-theme] .review-note.real{ color:#fff; background:#9b1c2c;
  border-radius:6px; padding:8px 10px; font-weight:600; }
html[data-theme] .fut-mode-fixed{ font-size:12px; color:var(--dk-muted); }
html[data-theme] .fut-actions button[disabled]{ opacity:.45; cursor:not-allowed; }

/* the connect window */
html[data-theme] .modal-card.bybit-connect{ max-width:460px; width:100%; font-family:Inter, system-ui, sans-serif; }
html[data-theme] .bybit-connect .bc-warn{ background:#9b1c2c; color:#fff; border-radius:6px; padding:8px 10px;
  font-size:13px; font-weight:600; margin:8px 0 10px; }
html[data-theme] .bybit-connect .bc-steps{ margin:0 0 12px 18px; padding:0; font-size:13px; line-height:1.5; color:var(--dk-text-2); }
html[data-theme] .bybit-connect .bc-field{ display:flex; flex-direction:column; gap:4px; font-size:12px;
  color:var(--dk-muted); margin-bottom:10px; }
html[data-theme] .bybit-connect .bc-field input{ background:var(--dk-row); color:var(--dk-text); border:1px solid var(--dk-field-line);
  border-radius:6px; padding:8px 10px; font:13px 'JetBrains Mono', ui-monospace, monospace; }
html[data-theme] .bybit-connect .bc-note{ font-size:12px; color:var(--dk-muted); line-height:1.45; margin-bottom:6px; }
html[data-theme] .bybit-connect .bc-error{ font-size:13px; color:var(--dk-red); min-height:18px; margin-bottom:6px; }
html[data-theme] .bybit-connect .modal-actions{ display:flex; justify-content:flex-end; gap:8px; }

/* the Capital box: one figure per wallet, never mixed (his order) */
html[data-theme] .cap-split{ display:flex; flex-direction:column; gap:2px; }
html[data-theme] .cap-line{ display:flex; align-items:baseline; justify-content:space-between; gap:10px; }
html[data-theme] .cap-line .cap-k{ font-size:12px; color:var(--dk-muted); white-space:nowrap; }
html[data-theme] .cap-line .cap-v{ font-size:18px; font-weight:700; font-variant-numeric:tabular-nums; }
html[data-theme] .cap-line .cap-tag{ font-size:10px; font-weight:700; color:#fff; background:#9b1c2c; border-radius:4px;
  padding:1px 5px; margin-left:6px; vertical-align:2px; }

/* a bot's trade on the chart: a quiet tag, never his own lines' colours,
   nothing to press (his choice: "not to be confused") */
html[data-theme] .tv-tag.tv-tag-bot{ background:var(--dk-blue-bg); color:var(--dk-blue);
  border:1px dashed var(--dk-blue-line); pointer-events:none; font-weight:600; }

/* the Bybit row's own label: real money is red, never the green of "connected" */
html[data-theme] .conn-real.conn-realmoney{ color:#fff; background:#9b1c2c; border-color:#9b1c2c; font-weight:700; }

/* on a phone the bar keeps to one line: the short words, the Stop button */
.bybit-banner .bb-short{ display:none; }
@media (max-width:600px){
  .bybit-banner{ flex-wrap:nowrap; padding:8px 12px; }
  .bybit-banner .bb-long{ display:none; }
  .bybit-banner .bb-short{ display:inline; white-space:nowrap; }
}

/* Bybit's TEST exchange (fake money): amber, never the red of real money */
.bybit-banner.test{ background:#8a5a00; }
html[data-theme="light"] .bybit-banner.test{ background:#7a4f00; }
html[data-theme] .fut-note.test{ color:#fff; background:#8a5a00; border-radius:6px; padding:8px 10px; font-weight:600; }
html[data-theme] .conn-real.conn-testmoney{ color:#fff; background:#8a5a00; border-color:#8a5a00; font-weight:700; }
html[data-theme] .cap-line .cap-tag.test{ background:#8a5a00; }

/* the profile while Bybit is connected (2026-10-28): the Performance title
   says whose money the figures are - real money in red, a test account in amber */
html[data-theme] .pcard-title .view-tag{ margin-left:10px; font-size:10.5px; font-weight:700; color:#fff;
  background:#9b1c2c; border-radius:4px; padding:2px 7px; letter-spacing:.02em; vertical-align:2px;
  text-transform:none; }
html[data-theme] .pcard-title .view-tag.test{ background:#8a5a00; }

/* where a bot trades: a Bybit TEST account in amber, waiting muted */
html[data-theme] .bot-chip.test{ color:#fff; background:#8a5a00; border-color:#8a5a00; font-weight:700; }
html[data-theme] .bot-chip.wait{ color:var(--dk-muted); border:1px dashed var(--dk-field-line); }

/* Bybit EU: pay with USDC or EUR; TP/SL only on limit orders */
html[data-theme] .fut-quote{ display:flex; align-items:center; gap:6px; margin:8px 0 4px; font-size:12px; color:var(--dk-muted); }
html[data-theme] .fut-quote .fut-qbtn{ padding:4px 10px; border-radius:6px; border:1px solid var(--dk-field-line);
  background:var(--dk-row); color:var(--dk-text); font:600 12px Inter, system-ui, sans-serif; cursor:pointer; }
html[data-theme] .fut-quote .fut-qbtn.on{ background:var(--dk-text); color:var(--dk-page); border-color:var(--dk-text); }
html[data-theme] .fut-tpsl-toggle.off{ opacity:.6; cursor:not-allowed; }
html[data-theme] .fut-tpsl-why{ font-size:11px; color:var(--dk-muted); }
html[data-theme] .fut-hold{ display:flex; align-items:center; justify-content:space-between; gap:8px;
  margin:6px 0; padding:6px 8px; border-radius:6px; background:var(--dk-row); font-size:12px; }
html[data-theme] .fut-hold .fut-sellall{ padding:4px 10px; border-radius:6px; border:0; cursor:pointer;
  background:var(--dk-red); color:#fff; font:600 12px Inter, system-ui, sans-serif; }

/* The stock broker's real-money bar (trademode.js, `.mode-banner`) - the same
   rule as the Bybit bar above (2026-10-23). The generated colour map had turned
   it into a 12% tint, so the page showed through it: a warning the page shows
   through is not a warning. Amber for the broker's practice account, red for
   real money, both solid, white words, in dark and light alike. */
html[data-theme] .mode-banner{ background:#8a5a00; color:#fff; border-top:0;
  font-family:Inter, system-ui, sans-serif; font-size:13px; box-shadow:0 -2px 10px rgba(0,0,0,.35); }
html[data-theme="light"] .mode-banner{ background:#7a4f00; }
html[data-theme] .mode-banner.live{ background:#9b1c2c; color:#fff; }
html[data-theme="light"] .mode-banner.live{ background:#8c1424; }
html[data-theme] .mode-banner .mb-dot, html[data-theme] .mode-banner.live .mb-dot{ background:#fff; }
html[data-theme] .mode-banner .mb-sep{ opacity:.7; }
html[data-theme] .mode-banner .mb-off, html[data-theme] .mode-banner .mb-kill{ color:#fff; border-color:#fff; }
html[data-theme] .mode-banner .mb-kill.on{ background:#ffd166; color:#3a2a00; border-color:#ffd166; }

/* a bot on PAPER money says so in a quiet chip (2026-10-23) - the connection
   now decides where a crypto bot trades, so the row always names it */
html[data-theme] .bot-chip.paper{ color:var(--dk-muted); border:1px solid var(--dk-field-line); }

/* THE REAL / PAPER SWITCH (his order, 2026-10-29) - the signed-in person's own.
   Paper is the app's quiet grey; Real money is the same solid red as the bar
   it turns on; a Bybit TEST account is amber. Without a connection the Real
   side is faint and asks to connect first. */
html[data-theme] .money-switch{ display:inline-flex; border-radius:6px; overflow:hidden;
  background:var(--dk-row, rgba(255,255,255,.06)); flex:none; }
html[data-theme] .money-switch button{ background:transparent; border:0; color:var(--dk-muted, #8c8a82);
  cursor:pointer; font:600 12px Inter, system-ui, sans-serif; padding:6px 11px; white-space:nowrap; }
html[data-theme] .money-switch button.on{ background:var(--dk-hover, rgba(255,255,255,.12)); color:var(--dk-text, #fff); }
html[data-theme] .money-switch button[data-money="real"].on{ background:#9b1c2c; color:#fff; }
html[data-theme] .money-switch button[data-money="real"].on.test{ background:#8a5a00; color:#fff; }
html[data-theme="light"] .money-switch button[data-money="real"].on{ background:#8c1424; }
html[data-theme="light"] .money-switch button[data-money="real"].on.test{ background:#7a4f00; }
html[data-theme] .money-switch.not-connected button[data-money="real"]{ opacity:.55; }
html[data-theme] .money-switch button:focus-visible{ outline:2px solid var(--dk-text, #fff); outline-offset:-2px; }
/* inside the Connections box, under the Bybit line */
html[data-theme] .conn-switch-row{ display:flex; align-items:center; flex-wrap:wrap; gap:6px 10px;
  margin-top:8px; font-size:12px; color:var(--dk-muted); }
/* said once after switching to Paper */
.money-switch-note{ position:fixed; left:50%; bottom:64px; transform:translateX(-50%); z-index:95;
  max-width:min(520px, calc(100vw - 32px)); background:var(--dk-panel, #1b1f24); color:var(--dk-text, #fff);
  box-shadow:0 0 0 1px var(--dk-line-strong, rgba(255,255,255,.2)), 0 8px 24px rgba(0,0,0,.35);
  border-radius:8px; padding:10px 14px; font:500 13px Inter, system-ui, sans-serif; text-align:center; }
@media (max-width:700px){
  html[data-theme] .money-switch button{ padding:6px 9px; font-size:11.5px; }
}
