/* Ask (chat.js): the chat panel, laid out like Cursor's chat panel / Claude's chat. A small Ask tab on the right edge
   opens it (nav.css); from 1600px up the page moves over (body padding) and keeps working beside it, below that it
   lies over the page with the page dimmed behind it; a phone opens a full-screen sheet from the bar's Ask button.
   Near-black surfaces with hairline edges, never grey boxes: no fill here is lighter than #121214. White ink, a filled
   Buy button, green / red only for direction and P&L. Trade cards are tool-style blocks: a hairline box, a compact
   header, label / value rows. No underlined links, no bordered pills, nothing animates on data.
   Scoped to .ochat / .occ- classes. */
:root { --oc-w: 420px; }
.ochat {
  --oc-bg: #08080a;            /* the panel */
  --oc-card: #0b0b0d;          /* a trade block, one step up */
  --oc-fill: #0e0e10;          /* the composer, a user's message */
  --oc-fill2: #121214;         /* chips, the lightest fill there is */
  --oc-line: rgba(255, 255, 255, 0.07);
  --oc-line-hi: rgba(255, 255, 255, 0.12);
  --oc-line-focus: rgba(255, 255, 255, 0.24);
  --oc-ink: #f4f4f5;
  --oc-ink2: #d4d4d8;
  --oc-label: #a1a1aa;
  --oc-mute: #8b8b94;
  --oc-up: var(--ob-up, #1fd170);
  --oc-down: var(--ob-down, #ff4d5a);
  --oc-hover: rgba(255, 255, 255, 0.05);
  font-family: var(--ob-sans, "Omni Inter", Inter, -apple-system, sans-serif);
}
.ochat {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 44;
  width: var(--oc-w); max-width: 100vw; box-sizing: border-box;
  display: flex; flex-direction: column;
  background: var(--oc-bg); color: var(--oc-ink);
  border-left: 1px solid var(--oc-line-hi);
  font: 400 14px/1.5 var(--ob-sans, "Omni Inter", Inter, -apple-system, sans-serif);
  font-feature-settings: "cv01", "ss03"; -webkit-font-smoothing: antialiased;
}
.ochat[hidden], .ochat [hidden] { display: none !important; }
.ochat *, .ochat *::before, .ochat *::after { box-sizing: border-box; }
.ochat :where(button, textarea, input) { font: inherit; color: inherit; }
.ochat :where(button) { cursor: pointer; }
.ochat button:disabled { cursor: default; }
.ochat :focus-visible { outline: 2px solid var(--ob-focus, rgba(255, 255, 255, 0.6)); outline-offset: 1px; }
.ochat .num { font-variant-numeric: lining-nums tabular-nums; }
.ochat svg { display: block; width: 16px; height: 16px; flex: none; }
/* a laptop: the panel lies over the page; the page behind it dims so the edge reads (a click there closes it) */
.ochat-scrim { position: fixed; inset: 0; z-index: 43; background: rgba(0, 0, 0, 0.55); }
.ochat-scrim[hidden] { display: none; }
.ochat[data-mode="drawer"] { box-shadow: -1px 0 0 rgba(255, 255, 255, 0.04), -32px 0 64px rgba(0, 0, 0, 0.7); }
/* a wide screen: the page keeps working beside the panel */
html.ochat-push body { padding-right: var(--oc-w); }
html.ochat-resizing, html.ochat-resizing * { cursor: col-resize !important; user-select: none !important; }
/* a phone: the whole screen, and the page under it does not scroll */
.ochat[data-mode="sheet"] { width: 100vw; border-left: 0; padding-bottom: env(safe-area-inset-bottom); }
html.ochat-sheet-open, html.ochat-sheet-open body { overflow: hidden; }

/* ---- head: the chat's title, the cash, past chats, new chat, close ---- */
.ochat-grip { position: absolute; top: 0; bottom: 0; left: -4px; width: 8px; z-index: 2; cursor: col-resize; touch-action: none; }
.ochat-grip::after { content: ""; position: absolute; top: 0; bottom: 0; left: 3px; width: 2px; background: transparent; transition: background-color 120ms; }
.ochat-grip:focus-visible::after, html.ochat-resizing .ochat-grip::after { background: var(--oc-line-focus); }
@media (hover: hover) { .ochat-grip:hover::after { background: var(--oc-line-focus); } }
.ochat .ochat-grip:focus-visible { outline: 0; }
.ochat:focus { outline: 0; } /* the phone sheet takes focus when it opens (chat.js); its controls keep their rings */
.ochat[data-mode="sheet"] .ochat-grip { display: none; }
.ochat-h { flex: none; display: flex; align-items: center; gap: 2px; height: 44px; padding: 0 8px 0 16px; border-bottom: 1px solid var(--oc-line); }
.ochat-t { flex: 1 1 auto; min-width: 0; margin: 0 8px 0 0; font-size: 13px; font-weight: 600; color: var(--oc-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ochat-cash { flex: none; margin-right: 6px; color: var(--oc-label); font-size: 12.5px; font-weight: 500; }
.ochat-ib { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--oc-label); transition: background-color 120ms, color 120ms; }
.ochat-ib.on { background: var(--oc-hover); color: var(--oc-ink); }
@media (hover: hover) { .ochat-ib:hover { background: var(--oc-hover); color: var(--oc-ink); } }

/* ---- the thread ---- */
.ochat-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 16px 8px; display: flex; flex-direction: column; gap: 14px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.12) transparent; }
.ochat-msg { position: relative; display: flex; flex-direction: column; }
/* your message: a quiet bubble on the right, a hairline edge on the near-black (Claude) */
.ochat-u { flex-direction: row; justify-content: flex-end; align-items: flex-end; gap: 4px; }
.ochat-ub { max-width: 85%; padding: 8px 12px; border-radius: 14px 14px 4px 14px; background: var(--oc-fill2); box-shadow: inset 0 0 0 1px var(--oc-line); color: var(--oc-ink); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 20px; }
/* a reply: plain text, no bubble, no avatar, bright and regular (the answer is the content) */
.ochat-a { gap: 10px; max-width: 100%; }
.ochat .ochat-at { color: var(--oc-ink); font-size: 14px; line-height: 21px; font-weight: 400; overflow-wrap: anywhere; }
.ochat .ochat-a.note .ochat-at { color: var(--oc-mute); font-size: 13px; }
.ochat-at > * { margin: 0; }
.ochat-at > * + * { margin-top: 10px; }
.ochat-at strong { color: var(--oc-ink); font-weight: 600; }
.ochat-ls { padding-left: 20px; }
.ochat-ls li + li { margin-top: 2px; }
.ochat-code { padding: 1px 5px; border-radius: 4px; background: var(--oc-fill2); box-shadow: inset 0 0 0 1px var(--oc-line); color: var(--oc-ink); font: 500 12.5px/1.4 var(--ob-mono, ui-monospace, "SF Mono", Menlo, monospace); white-space: nowrap; }
/* copy / retry / time under a message: on hover, and always on the last reply */
.ochat-acts { display: flex; align-items: center; gap: 2px; height: 24px; margin-top: -4px; opacity: 0; transition: opacity 120ms; }
.ochat-u .ochat-acts { order: -1; flex: none; margin: 0; } /* beside your message, on hover: no row under it */
.ochat-msg:hover .ochat-acts, .ochat-acts:focus-within, .ochat-acts.last { opacity: 1; }
/* a touch screen has no hover: the row shows under the last reply only (long-press a message to select and copy it) */
@media (hover: none) { .ochat-acts { display: none; } .ochat-acts.last { display: flex; opacity: 1; } }
.ochat-ab { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--oc-mute); }
@media (hover: hover) { .ochat-ab:hover { background: var(--oc-hover); color: var(--oc-ink); } }
.ochat-ab svg { width: 14px; height: 14px; }
.ochat-ts { margin: 0 4px; color: var(--oc-mute); font-size: 12px; font-variant-numeric: tabular-nums; }
.ochat-wait-t { color: var(--oc-mute); font-size: 13px; }
.ochat-wait-t:empty { display: none; }
.ochat-wait { display: flex; flex-direction: column; gap: 8px; }
/* the copilot's lookups (src/copilot.js), Cursor's tool-call lines: a muted row per lookup, a hollow ring while it
   runs, a check when done, above the words they led to. No fill, no box. */
.ochat-tools { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.ochat-tool { display: flex; align-items: center; gap: 7px; color: var(--oc-mute); font-size: 12px; line-height: 17px; min-width: 0; }
.ochat-tool-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ochat-tool-i { flex: none; width: 12px; height: 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1.5px solid var(--oc-line-focus); }
.ochat-tool.done .ochat-tool-i { border: 0; color: var(--oc-label); }
.ochat-tool-i svg { width: 12px; height: 12px; }

/* ---- the empty chat: one quiet line and the starters as rows (Cursor) ---- */
.ochat-empty { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 0; }
.ochat-lead { margin: 0 0 2px; color: var(--oc-mute); font-size: 13.5px; line-height: 1.5; }
.ochat-ex { display: flex; flex-direction: column; border-top: 1px solid var(--oc-line); }
.ochat-exb { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 9px 2px; border: 0; border-bottom: 1px solid var(--oc-line); background: transparent; color: var(--oc-ink2); font-size: 14px; text-align: left; transition: color 120ms; }
.ochat-exb svg { width: 14px; height: 14px; color: var(--oc-mute); }
@media (hover: hover) { .ochat-exb:hover, .ochat-exb:hover svg { color: var(--oc-ink); } }

/* ---- past chats ---- */
.ochat-hist { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 4px 8px 8px; }
.ochat-hi-h { padding: 14px 8px 4px; color: var(--oc-mute); font-size: 11.5px; font-weight: 500; }
.ochat-hr { display: flex; align-items: center; border-radius: 6px; }
.ochat-hr:focus-within { background: var(--oc-hover); }
.ochat-hi { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 8px; border: 0; border-radius: 6px; background: transparent; color: var(--oc-ink2); font-size: 13px; text-align: left; }
.ochat-hi.cur { width: 100%; color: var(--oc-ink); }
.ochat-hi-t { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ochat-hi-d { flex: none; color: var(--oc-mute); font-size: 12px; font-variant-numeric: tabular-nums; }
.ochat-hi-x { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-right: 3px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--oc-mute); opacity: 0; }
.ochat-hr:focus-within .ochat-hi-x, .ochat-hi-x:focus-visible { opacity: 1; }
@media (hover: hover) { .ochat-hr:hover, .ochat-hi.cur:hover { background: var(--oc-hover); } .ochat-hr:hover .ochat-hi-x { opacity: 1; } .ochat-hi-x:hover { color: var(--oc-ink); background: var(--oc-hover); } }
@media (hover: none) { .ochat-hi-x { opacity: 1; } }
.ochat-hi-x svg { width: 14px; height: 14px; }
.ochat-hi-none { margin: 10px 8px; color: var(--oc-mute); font-size: 13px; }

/* ---- a trade: a tool-style block ---- */
.ochat-card { border: 1px solid var(--oc-line-hi); border-radius: 12px; background: var(--oc-card); overflow: hidden; }
/* the header: one plain line, the trade in words; the icon takes the side's colour (green up, red down) */
.occ-hd { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 9px 12px; border-bottom: 1px solid var(--oc-line); }
.ochat-card.compact { border-color: var(--oc-line); background: transparent; }
.ochat-card.compact .occ-hd { min-height: 34px; padding: 6px 12px; border-bottom: 0; }
.occ-ic { flex: none; display: inline-flex; color: var(--oc-mute); }
.occ-ic.up { color: var(--oc-up); }
.occ-ic.down { color: var(--oc-down); }
.occ-ic svg { width: 14px; height: 14px; }
.occ-trade .occ-ic.down svg { transform: scaleY(-1); }
.occ-tt { flex: 1 1 auto; min-width: 0; color: var(--oc-ink); font-size: 14px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.ochat-card.compact .occ-tt { color: var(--oc-label); font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.occ-tag { flex: none; color: var(--oc-mute); font-size: 12px; }
.occ-tag:empty { display: none; }
.ochat-card.placed .occ-tag { color: var(--oc-up); font-weight: 600; }
.occ-body { display: flex; flex-direction: column; gap: 10px; padding: 10px 12px 10px; }
.occ-sub { color: var(--oc-label); font-size: 12.5px; }
.ochat-card.old .occ-tt, .ochat-card.old .occ-v { color: var(--oc-label); }
/* what changed from the trade before it: "1 minute → 1 hour", like a diff in a tool call */
.occ-diff { display: flex; flex-wrap: wrap; gap: 6px; }
.occ-chg { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 7px; border-radius: 5px; background: var(--oc-fill2); box-shadow: inset 0 0 0 1px var(--oc-line); font-size: 12px; white-space: nowrap; }
.occ-chg s { color: var(--oc-mute); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.3); }
.occ-arr { color: var(--oc-mute); }
.occ-chg b { color: var(--oc-ink); font-weight: 500; }
/* the numbers: label / value rows */
.occ-rows { display: flex; flex-direction: column; margin: 0; }
.occ-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-height: 26px; padding: 3px 0; }
.occ-lbl { color: var(--oc-label); font-size: 13px; white-space: nowrap; }
.occ-v { margin: 0; color: var(--oc-ink); font-size: 14px; font-weight: 600; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.occ-pos .occ-rows { margin-top: -2px; }
.occ-warn { color: var(--ob-amber, #e8b04b); font-size: 12.5px; line-height: 1.45; }
.occ-warn:empty, .occ-res:empty { display: none; }
/* Buy: the one filled button, full width, the side's colour, the price in whole cents */
.occ-btns { display: flex; gap: 8px; }
.occ-place, .occ-sell.main { width: 100%; height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: #fff; color: #000; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; transition: filter 120ms; }
.occ-place[data-side="up"] { background: var(--oc-up); }
.occ-place[data-side="down"] { background: var(--oc-down); }
.occ-place.armed { background: #fff; color: #000; }
@media (hover: hover) { .occ-place:hover:not(:disabled), .occ-sell.main:hover:not(:disabled) { filter: brightness(1.08); } }
.occ-place:disabled, .occ-sell.main:disabled { background: var(--oc-fill2); box-shadow: inset 0 0 0 1px var(--oc-line); color: var(--oc-label); }
.occ-sell { flex: 1 1 auto; height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--oc-fill2); box-shadow: inset 0 0 0 1px var(--oc-line-hi); color: var(--oc-ink); font-size: 13.5px; font-weight: 500; }
.occ-sell:disabled { color: var(--oc-label); }
.occ-fit { display: flex; }
.occ-res { font-size: 13px; line-height: 1.45; color: var(--oc-ink2); }
.occ-res.ok { color: var(--oc-ink); }
.occ-res.bad { color: var(--oc-down); }
.occ-res.hint { color: var(--oc-label); }
.ochat-card.placed .occ-res.ok { font-weight: 600; }
/* the foot: Details on the left, 1-tap and Ask more agents on the right, as quiet text buttons */
.occ-foot { display: flex; align-items: center; gap: 4px; min-height: 24px; margin: -2px -6px -4px -4px; }
.occ-mb, .occ-ask { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 6px 0 4px; border: 0; border-radius: 5px; background: transparent; color: var(--oc-mute); font-size: 12.5px; white-space: nowrap; }
.occ-ask { margin-left: auto; padding: 0 6px; }
.occ-1t { margin-left: auto; padding: 0 2px; color: var(--oc-label); font-size: 12px; font-weight: 600; letter-spacing: 0.01em; }
.occ-1t:not([hidden]) + .occ-ask { margin-left: 4px; }
.occ-1t { font-weight: 500; letter-spacing: 0; }
/* the risk-against-win bar under the rows, as the Trade ticket's */
.occ-pobar { display: flex; gap: 2px; height: 6px; margin: 6px 0 4px; border-radius: 3px; overflow: hidden; }
.occ-pobar[hidden] { display: none; }
.occ-pobar > i { display: block; height: 100%; }
.occ-pobar > .pr { background: var(--oc-label, #8a8d95); opacity: 0.5; border-radius: 3px 0 0 3px; }
.occ-pobar > .pw { background: var(--ob-up, #30d158); opacity: 0.85; border-radius: 0 3px 3px 0; }
.occ-v.up { color: var(--ob-up, #30d158); }
@media (hover: hover) { .occ-mb:hover, .occ-ask:hover:not(:disabled) { color: var(--oc-ink); background: var(--oc-hover); } }
.occ-ask:disabled { color: var(--oc-mute); opacity: 0.8; }
.occ-mb svg { width: 12px; height: 12px; }
.occ-mb[aria-expanded="true"] svg { transform: rotate(90deg); }
.occ-more { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; border-top: 1px solid var(--oc-line); }
.occ-note { margin: 0; color: var(--oc-label); font-size: 12.5px; line-height: 1.5; }
.occ-dl { display: grid; gap: 5px; margin: 0; font-size: 12.5px; }
.occ-dl > div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 8px; align-items: baseline; }
.occ-dl dt { color: var(--oc-mute); }
.occ-dl dd { margin: 0; color: var(--oc-ink2); overflow-wrap: anywhere; }
.occ-switch-r dd { display: flex; align-items: center; gap: 8px; }
.occ-switch { flex: none; position: relative; width: 30px; height: 18px; padding: 0; border: 0; border-radius: 9px; background: var(--oc-fill2); box-shadow: inset 0 0 0 1px var(--oc-line-hi); }
.occ-knob { position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--oc-label); }
.occ-switch[aria-checked="true"] { background: var(--oc-up); box-shadow: none; }
.occ-switch[aria-checked="true"] .occ-knob { left: 15px; background: #000; }
.occ-switch-t { color: var(--oc-mute); font-size: 12px; line-height: 1.35; }

/* ---- suggestions over the composer ---- */
.ochat-sugbar { flex: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 12px 8px; }
.ochat-sug { min-height: 28px; padding: 4px 10px; border: 0; border-radius: 8px; background: var(--oc-fill); box-shadow: inset 0 0 0 1px var(--oc-line-hi); color: var(--oc-ink2); font-size: 12.5px; text-align: left; transition: color 120ms, box-shadow 120ms; }
@media (hover: hover) { .ochat-sug:hover { color: var(--oc-ink); box-shadow: inset 0 0 0 1px var(--oc-line-focus); } }

/* ---- composer: a box with the field on top and the market chip + send under it (Cursor) ---- */
.ochat-f { position: relative; flex: none; display: flex; flex-direction: column; gap: 6px; margin: 0 12px 12px; padding: 10px 10px 8px 12px; border: 1px solid var(--oc-line-hi); border-radius: 12px; background: var(--oc-fill); transition: border-color 120ms; }
.ochat-f:focus-within { border-color: var(--oc-line-focus); }
.ochat-in { display: block; width: 100%; min-height: 22px; max-height: 200px; margin: 0; padding: 0; border: 0; outline: 0; resize: none; background: transparent; color: var(--oc-ink); font-size: 14px; line-height: 22px; }
.ochat-in::placeholder { color: var(--oc-mute); }
.ochat .ochat-in:focus-visible { outline: 0; } /* the box shows the focus (:focus-within) */
.ochat-ff { display: flex; align-items: center; gap: 8px; min-height: 28px; }
.ochat-ctx { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 6px; }
.ochat-chip { display: inline-flex; align-items: center; max-width: 100%; height: 24px; border-radius: 6px; background: var(--oc-fill2); box-shadow: inset 0 0 0 1px var(--oc-line); color: var(--oc-ink2); font-size: 12px; }
.ochat-chip-b, .ochat-chip-add { display: inline-flex; align-items: center; gap: 3px; min-width: 0; height: 24px; padding: 0 4px 0 7px; border: 0; border-radius: 6px; background: transparent; color: inherit; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ochat-chip-add { padding: 0 8px 0 6px; color: var(--oc-mute); }
@media (hover: hover) { .ochat-chip-add:hover, .ochat-chip-b:hover { color: var(--oc-ink); } }
.ochat-atsign { color: var(--oc-mute); font-weight: 600; }
.ochat-chip-x { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-right: 2px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--oc-mute); }
@media (hover: hover) { .ochat-chip-x:hover { color: var(--oc-ink); background: var(--oc-hover); } }
.ochat-chip-x svg { width: 11px; height: 11px; }
.ochat-send { flex: none; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: var(--oc-ink); color: #000; display: inline-flex; align-items: center; justify-content: center; }
.ochat-send svg { width: 14px; height: 14px; }
.ochat-send:disabled { background: var(--oc-fill2); box-shadow: inset 0 0 0 1px var(--oc-line); color: var(--oc-mute); }
.ochat-send[data-busy="true"] { background: var(--oc-fill2); box-shadow: inset 0 0 0 1px var(--oc-line-hi); color: var(--oc-ink); }
.ochat-pop { position: absolute; left: 8px; bottom: calc(100% + 6px); z-index: 3; width: min(300px, calc(100% - 16px)); display: flex; flex-direction: column; padding: 6px; border-radius: 10px; background: #0e0e10; box-shadow: 0 0 0 1px var(--oc-line-hi), 0 16px 40px rgba(0, 0, 0, 0.7); }
.ochat-pop-q { height: 30px; margin: 0 0 4px; padding: 0 8px; border: 0; border-radius: 6px; outline: 0; background: var(--oc-fill2); box-shadow: inset 0 0 0 1px var(--oc-line); color: var(--oc-ink); font-size: 13px; }
.ochat .ochat-pop-q:focus-visible { outline: 0; box-shadow: inset 0 0 0 1px var(--oc-line-focus); }
.ochat-pop-l { max-height: 240px; overflow-y: auto; display: flex; flex-direction: column; }
.ochat-pop-i { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 30px; padding: 0 8px; border: 0; border-radius: 6px; background: transparent; color: var(--oc-ink2); font-size: 13px; text-align: left; }
.ochat-pop-i:focus-visible, .ochat-pop-i.on { background: var(--oc-hover); color: var(--oc-ink); outline: 0; }
@media (hover: hover) { .ochat-pop-i:hover { background: var(--oc-hover); color: var(--oc-ink); } }
.ochat-pop-c { color: var(--oc-mute); font-size: 12px; }
.ochat-pop-none { margin: 6px 8px; color: var(--oc-mute); font-size: 13px; }

/* ---- the way in, on a page without the bar's Ask pill ---- */
.ochat-toggle { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--ob-label, #a1a1aa); font: 510 13px/1 var(--ob-sans, Inter, sans-serif); cursor: pointer; }
.ochat-toggle[aria-pressed="true"] { background: var(--ob-hover, rgba(255, 255, 255, 0.06)); color: var(--ob-ink, #fff); }
@media (hover: hover) { .ochat-toggle:hover { background: var(--ob-hover, rgba(255, 255, 255, 0.06)); color: var(--ob-ink, #fff); } }
.ochat-toggle svg { width: 16px; height: 16px; }

@media (max-width: 700px) {
  .ochat-h { height: 52px; padding-left: 16px; }
  .ochat-ib { width: 40px; height: 40px; }
  .ochat-list { padding: 14px 14px 8px; }
  .ochat-f { margin: 0 10px 10px; }
  .ochat-in { font-size: 16px; } /* 16px: iOS does not zoom into the field */
  .occ-place, .occ-sell.main, .occ-sell { height: 44px; }
  .occ-mb, .occ-ask { height: 32px; }
  .ochat-send { width: 32px; height: 32px; }
  .ochat-toggle .ochat-tl { display: none; }
  .ochat-toggle { width: 40px; padding: 0; justify-content: center; }
}
/* touch screens (r24 phone pass): the small controls had 24-28px boxes, too small for shell.js to grow them to a
   40px tap between their neighbours (Copy and Retry 25x41, Details 66x35, the header's icons 30x44 on a tablet). The
   boxes grow; the look stays quiet. */
@media (pointer: coarse) {
  .ochat-ib { width: 40px; height: 40px; }
  .ochat-ab { width: 36px; height: 36px; }
  .ochat-acts { height: 36px; margin-top: -8px; gap: 4px; }
  .occ-mb, .occ-ask { height: 36px; }
  .ochat-sug { min-height: 36px; }
  .ochat-send { width: 40px; height: 40px; }
  .ochat-chip { height: 32px; }
  .ochat-chip-x { width: 32px; height: 32px; margin-right: 0; }
  .ochat-pop-i { height: 40px; }
  .ochat-pop-q { height: 40px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .ochat * { transition: none !important; } }

/* the 1-tap switch is cyan blue when on (vihan, 18 Nov), so it never reads as an Up/P&L green */
.occ-switch[aria-checked="true"] { background: var(--ob-onetap, #22b8f0); }

/* success is its own green (--ob-ok), separate from the P&L / Up green (vihan, 18 Nov) */
.ochat-card.placed .occ-tag { color: var(--ob-ok, #10b981); }
