/* Omnibook design language for every agent-exchange page. One source of truth: pages map their own variables onto
   these. White ink on a pure black ground, neutral low-alpha hairlines, readable grey for secondary text (4.5:1 or
   better), white for primary actions that do not trade, green/red only for up/down and profit/loss (no teal accent).
   Inter with tabular numbers; three sizes carry a page: the big price, ~20px section titles, 14-15px body.
   Pill buttons (999px) for actions, filled only. Nothing animates at rest. */
/* Omni Inter: the latin subset, and the full face for everything outside it (disjoint ranges, so a latin page loads
   one file and document.fonts.check('13px "Omni Inter"') is true once it has) */
@font-face { font-family: "Omni Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/dashboard/fonts/InterVariable-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* the full Inter file (352 KB) only for other scripts: arrows, maths signs (≈ ≤ ≥), ₿, ⌘, shapes and ticks (✓ ✗) come from
   the system font, since one "≈" on the Trade page had pulled in the whole file on every first visit */
@font-face { font-family: "Omni Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/dashboard/fonts/InterVariable.woff2") format("woff2"); unicode-range: U+0100-0130, U+0132-0151, U+0154-02BA, U+02BD-02C5, U+02C7-02D9, U+02DB, U+02DD-0303, U+0305-0307, U+0309-0328, U+032A-1FFF, U+2070-20AB, U+20AD-20BE, U+20C0-2121, U+2123-218F, U+2800-FEFE, U+FF00-FFFC, U+FFFE-10FFFF; }
@font-face { font-family: "Omni Code"; font-weight: 400; font-display: swap; src: url("/dashboard/fonts/IoskeleyMono-Regular.woff2") format("woff2"); }
@font-face { font-family: "Omni Code"; font-weight: 500; font-display: swap; src: url("/dashboard/fonts/IoskeleyMono-Medium.woff2") format("woff2"); }
@font-face { font-family: "Omni Code"; font-weight: 600; font-display: swap; src: url("/dashboard/fonts/IoskeleyMono-SemiBold.woff2") format("woff2"); }

:root {
  /* one type scale and one set of control sizes for every page (r18): page title, section title, card title; the order
     button, a secondary pill, a filter chip, a select */
  --ob-h1: 28px; --ob-h2: 20px; --ob-h3: 15px;
  --ob-r-btn: 6px; --ob-r-pill: 999px; --ob-h-btn: 44px; --ob-h-ctl: 32px; --ob-h-chip: 28px;
  /* ground and surfaces, darkest to lightest */
  --ob-ground: #000;      /* page */
  --ob-panel: #0a0a0b;       /* panels, sidebars */
  --ob-card: #0d0d0f;        /* cards */
  --ob-muted: #101012;       /* quiet fills, secondary buttons */
  --ob-raise: #151517;       /* hovered / raised */
  --ob-fill: #1c1c20;        /* inputs, chips, segmented controls */
  --ob-fill-hi: #2a2a30;     /* selected chip, pressed */
  --ob-popover: #0d0d0f;
  /* ink */
  --ob-ink: #fff;            /* primary text: white on the black ground */
  --ob-ink-2: #d4d4d8;       /* secondary text, body copy */
  --ob-label: #a1a1aa;       /* labels, captions, inactive nav: 7.7:1 on black */
  --ob-mute: #8b8b94;        /* least important text: still 5.9:1 on black */
  --ob-dim: #52525b;         /* disabled */
  /* hairlines: cream at low alpha, never grey */
  --ob-line-lo: rgba(255, 255, 255, 0.05);
  --ob-line: rgba(255, 255, 255, 0.09);
  --ob-line-hi: rgba(255, 255, 255, 0.14);
  /* brand: the Omnibook teal, for the primary action, focus and live values only */
  --ob-brand: #fff;
  --ob-brand-2: #e4e4e7;
  --ob-brand-dim: rgba(255, 255, 255, 0.14);
  --ob-on-brand: #000;
  /* up / down, profit / loss: always these, never the brand */
  --ob-up: #1fd170;
  /* "done / OK" is its own green, never the P&L or Up green (vihan, 18 Nov): the placed tick, toasts that say it worked, saved */
  --ob-ok: #10b981;
  --ob-ok-bg: rgba(16, 185, 129, 0.16);
  /* the 1-tap switch when on: cyan blue (vihan, 18 Nov) */
  --ob-onetap: #22b8f0;
  /* a contract's end on the chart: one calm blue vertical line (vihan, 20 Nov); never the 1-tap cyan or the teal */
  --ob-expiry: #6b8cff;
  --ob-up-soft: #a6f0c6;
  --ob-up-bg: rgba(31, 209, 112, 0.12);
  --ob-on-up: #000;
  --ob-down: #ff4d5a;
  --ob-down-soft: #ffb5b0;
  --ob-down-bg: rgba(255, 77, 90, 0.12);
  --ob-on-down: #000;
  --ob-amber: #e8b04b;       /* warnings, closed markets */
  /* states and materials (fe-ship lab.css) */
  --ob-hover: rgba(255, 255, 255, 0.06);            /* hovered row, link, ghost button */
  --ob-track: #0d0d0f;           /* segmented track, field fill */
  --ob-track-edge: 0 0 0 0 transparent;
  --ob-thumb: #2a2a30;                              /* a segmented control's selected segment */
  --ob-shadow-thumb: 0 0 0 0 transparent;
  --ob-material: rgba(24, 24, 27, 0.94);            /* every menu, popover, toast */
  --ob-material-blur: saturate(180%) blur(24px);
  --ob-shadow-pop: inset 0 0 0 1px rgba(255, 255, 255, 0.09), 0 0 0 1px rgba(0, 0, 0, 0.55), 0 12px 32px rgba(0, 0, 0, 0.5);
  --ob-focus: rgba(255, 255, 255, 0.6);             /* focus: outline 3px solid var(--ob-focus), offset 0 */
  /* shape */
  --ob-r-panel: 2px;
  --ob-r-sm: 5px;
  --ob-r: 6px;
  --ob-r-btn: 10px;          /* the big Up / Down buttons */
  --ob-r-card: 10px;         /* menus, popovers, page panels, primary phone buttons */
  /* sizes: control, row, table row, panel head (phones: control 44, table row 48) */
  --ob-ctl: 32px;
  --ob-row: 28px;
  --ob-trow: 40px;
  --ob-head: 36px;
  /* type */
  --ob-sans: "Omni Inter", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ob-code: "Omni Code", ui-monospace, "SF Mono", Menlo, monospace;
  --ob-w-medium: 510;        /* labels, nav, buttons */
  --ob-w-semi: 600;          /* numbers that matter, headings */
}

html { background: var(--ob-ground); }
body { font-family: var(--ob-sans); font-feature-settings: "cv01", "ss03"; font-variant-numeric: lining-nums tabular-nums; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; color: var(--ob-ink); background: var(--ob-ground); }
:focus-visible { outline: 3px solid var(--ob-focus); outline-offset: 0; }
@media (max-width: 640px) { :root { --ob-ctl: 44px; --ob-trow: 48px; } }
::selection { background: var(--ob-brand-dim); }

/* ---------- the calm layout every page shares: raised panels on the darker page, one quiet section header style,
   and one small badge for the makers Omnibook runs (never a sentence appended to a name) ---------- */
:root {
  --ob-surface: #0d0d0f;                        /* a raised panel on the page ground */
  --ob-surface-line: rgba(255, 255, 255, 0.08); /* its edge */
  --ob-r-panel: 20px;
  --ob-gap: 8px;                                /* between panels */
}
.ob-panel { background: var(--ob-surface); border: 1px solid var(--ob-surface-line); border-radius: var(--ob-r-panel); }
.ob-sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.ob-sechead h2 { margin: 0; font-size: 20px; font-weight: 600; color: var(--ob-ink); letter-spacing: -0.005em; }
.ob-sechead .ob-sub { font-size: 14px; color: var(--ob-label); }
/* a maker Omnibook runs, in a list: the logo at 12px, grey, beside the name (never a word chip) */
.ob-mark { display: inline-flex; align-items: center; flex: none; margin-left: 6px; color: var(--ob-label); vertical-align: 0; }
.ob-mark svg { display: block; }
.ob-badge { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; margin-left: 6px; border-radius: 5px; background: rgba(250, 248, 240, 0.06); color: var(--ob-label); font-size: 11px; font-weight: 510; letter-spacing: 0.01em; vertical-align: 1px; white-space: nowrap; }

/* ---------- the shared look (2026-11 restyle): pill actions, one type scale ---------- */
:root {
  --ob-pill: 999px;             /* every action button and chip */
  --ob-t-hero: 40px;            /* the one big number on a screen (34px on phones): Robinhood-sized, never 52-64px */
  --ob-t-title: 20px;           /* section titles */
  --ob-t-body: 15px;            /* body */
  --ob-t-small: 13px;           /* captions, table heads */
}
@media (max-width: 640px) { :root { --ob-t-hero: 34px; } }
/* the short names page stylesheets use, one place (a page's own :root, loaded after this file, can still override one) */
:root {
  --bg: var(--ob-ground); --fg: var(--ob-ink); --ink2: var(--ob-ink-2); --fg2: var(--ob-label); --fg3: var(--ob-mute);
  --up: var(--ob-up); --down: var(--ob-down); --cyan: var(--ob-brand); --amber: var(--ob-amber); --raise2: var(--ob-fill);
  --sans: var(--ob-sans); --mono: var(--ob-code); --ease: 160ms cubic-bezier(.2, .8, .2, 1);
}

/* ---------- overlays (overlay.js): the page behind holds still while a sheet or dialog is open ---------- */
html.ov-lock, html.ov-lock body { overflow: hidden !important; overscroll-behavior: none; }
html.ov-lock body { padding-right: var(--ov-sb, 0px); }
/* the body clips instead of becoming its own scroller (r15: a sheet opened on a scrolled page took the sticky header off
   the top, since header.top then stuck to the body's unscrolled box); browsers without clip keep hidden */
html.ov-lock body { overflow: clip !important; }
/* a bottom sheet's grab handle and header: a downward drag moves the sheet, not the page */
.ov-grab { touch-action: none; }
.ov-strip { position: absolute; z-index: 2; top: 0; left: 0; right: 0; height: 28px; touch-action: none; cursor: grab; }
.ov-dragging { will-change: transform; }
/* scrims never scroll the page under them; sheets keep their own scroll to themselves */
.rhback, .tks-back, .hks-back, .tk-mback, .tgc-back, .ob-back, .ochat-scrim, #scrim { touch-action: none; overscroll-behavior: contain; }
.rhc, .tks-card, .tgc, .bsheet, .ochat, .oacct-menu, .ob-card { overscroll-behavior: contain; }
/* every phone bottom sheet shows the same 36x4 grab handle (rh.css .rhc-h::before); a downward drag on the sheet's top
   strip closes it (overlay.js) */
.tgc.tgc-phone::before, .bsheet.phone::before { content: ""; display: block; width: 36px; height: 4px; margin: -8px auto 12px; border-radius: 2px; background: rgba(255, 255, 255, 0.22); }
@media (max-width: 700px), (max-height: 500px) {
  /* the picker's header is its grab strip: it reaches the sheet's top edge, with the handle drawn in it (a phone on its
     side too, r24) */
  .tks .tks-head { position: relative; margin-top: -18px; padding-top: 30px; }
  .tks .tks-head::before { content: ""; position: absolute; top: 8px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: rgba(255, 255, 255, 0.22); }
}

/* ---------- touch and press, every page (UX-12, UX-14, UX-74) ----------
   No grey tap flash over a whole row or a green button: the control's own pressed state says the tap landed. A double
   tap never zooms the page (rapid 1-tap Up / Down). Everything clickable dims a touch and gives a little while held;
   :where() keeps these at zero specificity, so a control with its own :active or transform keeps it. */
html { -webkit-tap-highlight-color: transparent; }
:where(button, a, [role="button"], [role="switch"], [role="tab"], [role="link"], summary, label, select, input[type="checkbox"], input[type="radio"], .mrow) { touch-action: manipulation; }
:where(button:not(:disabled):not([aria-disabled="true"]), [role="button"]:not([aria-disabled="true"]), [role="switch"], [role="tab"]):active { transform: scale(0.97); filter: brightness(0.88); }
:where(a[href]):active { opacity: 0.72; }
:where(button, [role="button"], [role="switch"], [role="tab"]) { transition: transform 0.08s ease, filter 0.08s ease; }
:where(.mrow[data-href], tr[data-href], .row-link):active { background-color: rgba(255, 255, 255, 0.04); }
@media (prefers-reduced-motion: reduce) { :where(button, [role="button"], [role="switch"], [role="tab"]):active { transform: none; } }

/* ---------- phone fields: 16px or more, so iOS never zooms in on focus and stays zoomed (UX-22) ---------- */
@media (pointer: coarse), (max-width: 767px) {
  :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea) { font-size: max(16px, 1em); }
  .ain, select.ain, input.ain, .ain[type="date"], #fMkt, #fKind, #fFrom, #fTo, #sSlip, #fbKind, #fbText, .ochat-pop-q, .ochat-in textarea, .hsearch input, #msearch { font-size: 16px !important; }
}

/* a row that opens a page (shell.js rowLinks): a pointer, a hover tint no lighter than the panels, a focus ring */
[data-href] { cursor: pointer; }
@media (hover: hover) { tr[data-href]:hover > td { background-color: rgba(255, 255, 255, 0.03); } }
tr[data-href]:focus-visible { outline: 2px solid var(--ob-focus); outline-offset: -2px; }

/* ---------- loading placeholders (UX-35, UX-36): near-black blocks the size of what is coming, never the word
   "Loading" or a fake $0.00; static, so nothing flashes or pulses. fmt.js skel(n) draws rows of them ---------- */
.skel { display: inline-block; height: 0.9em; min-width: 3ch; border-radius: 6px; background: #121214; vertical-align: middle; color: transparent !important; }
.skel-rows { display: grid; gap: 0; padding: 4px 0; }
.skel-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 48px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.skel-row > span { display: block; height: 12px; border-radius: 6px; background: #121214; }
.skel-row > span:first-child { width: 42%; }
.skel-row > span:last-child { width: 16%; }
/* a read that failed: one plain line and a Retry text button (never a bordered pill) */
.ob-err { margin: 12px 0; font-size: 14px; color: var(--ob-label); }
.ob-err button { margin-left: 6px; padding: 0; border: 0; background: none; color: var(--ob-ink); font: inherit; font-weight: 510; cursor: pointer; }
@media (pointer: coarse) { .ob-err button { min-height: 44px; } }
/* a whole list or paragraph still loading: rows of bars (static) */
p.skel:not(.vh), td.skel, div.skel { display: block; width: 100%; min-width: 0; height: 40px; border-radius: 0; background: repeating-linear-gradient(to bottom, #121214 0 12px, transparent 12px 22px) left 4px / 70% 34px no-repeat; }
/* a list still loading (its "Loading" was the list's empty line): rows of bars */
p.empty.skel, td.skel, div.skel, .tscroll > p.skel { height: 132px; background: repeating-linear-gradient(to bottom, #121214 0 12px, transparent 12px 44px) left 6px / 60% 132px no-repeat; }
td.skel { display: table-cell; }
code.skel { min-width: 16ch; }
.v.skel, b.skel { min-width: 5ch; }

/* an amount-per-tap menu's Custom row (one-tap.js custom, UX-64): the word, then a small $ field */
.otc { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; padding: 4px 4px 2px 10px; border-top: 1px solid rgba(255, 255, 255, 0.06); font-size: 13px; color: var(--ob-label); cursor: text; }
.otc-f { display: inline-flex; align-items: center; gap: 2px; height: 32px; padding: 0 8px; border-radius: 8px; background: #121214; color: var(--ob-label); }
.otc-f:focus-within { box-shadow: 0 0 0 2px var(--ob-focus); }
.otc input { width: 6ch; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ob-ink); font: inherit; font-size: 14px; text-align: right; }
.otc[data-err] .otc-f { box-shadow: 0 0 0 1px var(--ob-down); }
/* touch (r24 phone pass): the custom amount field is a 40px tap, and 16px text so iOS does not zoom into it */
@media (pointer: coarse) { .otc-f { height: 40px; } .otc input { height: 100%; font-size: 16px; } }
.otc[data-err]::after { content: attr(data-err); position: absolute; margin-top: 52px; font-size: 12px; color: var(--ob-down-soft); }
@media (pointer: coarse), (max-width: 767px) { .otc-f { height: 44px; } .otc input { font-size: 16px; } }

/* a control a script focused after a tap or click (fmt.js .ptr-focus, UX-60): no ring until a key is pressed */
.ptr-focus:focus-visible { outline: none !important; box-shadow: none !important; }

/* The quote and the action occupy separate rows in each direction's column. */
.firm-caption {
  grid-row: 2; min-width: 0; align-self: start; text-align: center;
  font-size: 12px; line-height: 16px; color: var(--ob-ink-2, #d4d4d8);
  font-variant-numeric: tabular-nums;
}
.firm-caption[hidden] { display: none; }
.firm-up { grid-column: 1; }
.firm-down { grid-column: 2; }
.firm-caption summary { cursor: pointer; }
.firm-caption > summary + span { display: block; margin-top: 4px; overflow-wrap: anywhere; }

/* ---------- r27 design pass (founder: "these minor things you should do yourself"): one link style, real hovers,
   one page-title size, one hero-number size, pills for every primary. ---------- */
/* text links: secondary ink with a chevron, white + underline on hover; never styled like a heading */
.rhlink, html.rh .tk-hist, html.rh #pf .csv, .tk-morelink, .rhtx { color: var(--ob-ink-2) !important; font-weight: 500 !important; }
.tk-morelink::after, .rhtx::after { content: "\00a0\203A"; }
@media (hover: hover) {
  .rhlink:hover, html.rh .tk-hist:hover, html.rh #pf .csv:hover, .tk-morelink:hover, .rhtx:hover { color: var(--ob-ink) !important; text-decoration: underline; text-underline-offset: 3px; }
  details.firm-caption > summary:hover, .rhterms summary:hover, a.mv-quiet:hover { color: var(--ob-ink); }
  .sl-t:hover { background: var(--ob-raise, rgba(255, 255, 255, 0.06)); }
}
.hhead .hlink { color: var(--h-t2, var(--ob-label)); }
@media (hover: hover) { .hhead .hlink:hover { color: var(--ob-ink); } }
/* chart ranges in sentence case */
html.rh .chfoot .rng button, html.rh.tk-simple .chfoot .rng button, html.rh.tk-simple .chfoot .rng button.on { letter-spacing: 0 !important; font-size: 13px; font-weight: 500; }
/* every primary is a pill */
.ob-pri { border-radius: 999px; }
/* body-copy links read as links */
.stnote a, .inrow ~ p a, #invBox p a { color: var(--ob-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.35); }
/* one page-title size and one hero-number size on every page (titles were 20-30px, heroes 36-40px at 400-600) */
.mv-head h1, .head h1, .vb-h1, main > header h1:not(.vh), .pfhead h1 { font-size: var(--ob-h1, 28px); }
#acV, #tBal, #mPx { font-size: 36px !important; font-weight: 500 !important; }
@media (max-width: 640px) { #acV, #tBal, #mPx { font-size: 30px !important; } }
/* section headings one style on every page (Home's "Live trades" was 16/600 white, Markets' 15/600 grey) */
.hhead h2, .ob-sechead h2 { font-size: 16px !important; font-weight: 600; color: var(--ob-ink) !important; }
/* "See all" is a quiet text link everywhere (Markets had it as a filled pill) */
button.more.tmore { background: transparent !important; box-shadow: none !important; border: 0 !important; color: var(--ob-ink-2) !important; font-weight: 500; padding: 8px 0; }
button.more.tmore::after { content: "\00a0\203A"; }
@media (hover: hover) { button.more.tmore:hover { color: var(--ob-ink) !important; text-decoration: underline; text-underline-offset: 3px; } }
/* a 1-tap button whose firm price for the current amount is still loading (firm-digital.js) */
.firm-busy { opacity: 0.6; cursor: progress; transition: opacity 120ms ease; }
/* the Exchange and Maker views' header links read like the app's top-bar links (they were 12px links and outlined pills) */
a.xv-link, a.mv-other { display: inline-block; height: 36px; line-height: 36px; padding: 0 10px; border: 0 !important; border-radius: 8px; background: transparent !important; box-shadow: none !important; color: var(--ob-label) !important; font-size: 15px !important; font-weight: 500 !important; text-decoration: none !important; }
@media (hover: hover) { a.xv-link:hover, a.mv-other:hover { color: var(--ob-ink) !important; } }
@media (pointer: coarse) { a.xv-link, a.mv-other { height: 44px; line-height: 44px; } }
/* on a phone the views' header keeps to the screen: smaller links, tighter, Proof and the operator link move to the
   footer / account (critic: the Exchange view was 560px wide at 390) */
@media (max-width: 640px) {
  a.xv-link, a.mv-other, button.xv-link { font-size: 14px !important; padding: 0 6px !important; }
  a.xv-link.xv-proof-h, .xv-op { display: none !important; }
  .xv-top .xv-status .lg { display: none; }
}
/* every primary is a pill: Settings' "Continue with Google" was the last 6px one */
.stkeep-btn { border-radius: 999px !important; }
