/* =====================================================================================================================
   BASED · the Rivect design system (ui-gauntlet/rivect review, rebranded). Loaded LAST in index.html: it re-points the
   Style 2 tokens (--s2-*) and the legacy tokens to the Rivect palette, so every existing screen inherits the new grounds,
   ink, accent and radii, then restyles the shared components (buttons, inputs, segmented pills, chips, tables, cards,
   modals, tooltips, toasts) and draws the app shell (64px icon rail + launches column, page top bars, market bar).

   Every value below was measured on the 1440x900 Rivect captures (rivect/src/*.jpg) with PIL: grounds and surfaces as the
   median of flat areas, text tiers as the core pixels of glyphs, type sizes from cap heights + ink widths rendered in
   Inter (the face of the captures: single-storey g, flat-topped t, round dots), radii and control heights from edges.
   CSP: classes only (no inline style attributes); dynamic sizes go through el.style.setProperty in JS.
   ===================================================================================================================== */

/* ---------------------------------------------------------------- 1 · tokens */
:root {
  /* grounds (darkest to lightest) */
  --rv-body: #020305;          /* under the shell (below the launches column) */
  --rv-side: #030406;          /* launches column, brand cell */
  --rv-ground: #08090b;        /* page canvas */
  --rv-top: #090a0e;           /* workspace top bar */
  --rv-rail: #0c0c0e;          /* 64px icon rail */
  --rv-bar: #121214;           /* launch step bar, market bar */
  /* surfaces */
  --rv-card: #0b0e13;          /* card */
  --rv-card-2: #0d1017;        /* raised card (balances, KPI) */
  --rv-raise: #10151b;         /* secondary button, kbd */
  --rv-field: #0e0e10;         /* input fill */
  --rv-field-2: #0f1015;       /* search / funder fill */
  --rv-zebra: #0e1118;         /* even table row, hover */
  --rv-head: #0a0d12;          /* table head */
  --rv-sel: #081327;           /* selected list row */
  --rv-sel-2: #0f1830;         /* selected nav item */
  --rv-accent-soft: #1c2540;   /* selected segment / pill */
  --rv-pill: #1e2537;          /* neutral status pill */
  /* lines */
  --rv-line: #242529;          /* top bar / section rules */
  --rv-line-2: #282b32;        /* card border */
  --rv-line-3: #333436;        /* field border */
  --rv-line-4: #3a3d45;        /* hover border */
  --rv-line-soft: #191a1e;     /* tab rail */
  --rv-line-row: #202328;      /* table row rule */
  --rv-line-blue: #333e52;     /* selected row / create pill border */
  --rv-divider: #2d2e32;       /* shell column divider */
  /* ink */
  --rv-text: #f8fafc;
  --rv-text-2: #9ca3af;
  --rv-text-3: #8a8d95;
  --rv-text-4: #6b7079;
  /* accents */
  --rv-accent: #526efc;
  --rv-accent-hi: #6680ff;
  --rv-accent-ink: #ffffff;
  --rv-accent-line: #718de3;   /* tab underline */
  --rv-accent-text: #aab7df;   /* accent text on dark (badges) */
  --rv-success: #21dbaa;       /* buy fills */
  --rv-success-ink: #46d8ab;   /* positive figures */
  --rv-success-dot: #3fc3a0;
  --rv-danger: #e5507a;        /* sell fills */
  --rv-danger-ink: #de557d;    /* negative figures */
  --rv-warn: #f2a93b;
  --rv-warn-ink: #f5b25a;
  /* radii */
  --rv-r-xs: 4px;              /* kbd, tiny tags */
  --rv-r-sm: 6px;              /* status pill, segment inner */
  --rv-r: 8px;                 /* inputs in panels, network chip, segmented group */
  --rv-r-md: 10px;             /* buttons, list rows, search */
  --rv-r-lg: 12px;             /* nav item, small cards */
  --rv-r-xl: 14px;             /* cards, dialogs */
  --rv-r-pill: 999px;
  /* control heights */
  --rv-h-xs: 24px; --rv-h-sm: 30px; --rv-h: 34px; --rv-h-md: 38px; --rv-h-lg: 40px;
  /* type scale (Inter) */
  --rv-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --rv-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --rv-fs-2xs: 10px; --rv-fs-xs: 11px; --rv-fs-sm: 12px; --rv-fs: 13px; --rv-fs-md: 14px; --rv-fs-lg: 15px;
  --rv-fs-xl: 26px; --rv-fs-2xl: 28px; --rv-fs-3xl: 31px;
  /* spacing */
  --rv-pad: 28px;              /* page side padding */
  --rv-gap: 18px;              /* grid gap between cards */
  --rv-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  --rv-ease: cubic-bezier(.2, .7, .2, 1);

  /* Style 2 tokens re-pointed (every s2-*.css screen inherits the Based look) */
  --s2-ground: var(--rv-ground);
  --s2-surface: var(--rv-card);
  --s2-raised: var(--rv-raise);
  --s2-border: var(--rv-line-2);
  --s2-rule: var(--rv-line-row);
  --s2-control: var(--rv-line-3);
  --s2-control-hi: var(--rv-line-4);
  --s2-text: var(--rv-text);
  --s2-secondary: var(--rv-text-2);
  --s2-muted: var(--rv-text-3);
  --s2-accent: var(--rv-accent);
  --s2-positive: var(--rv-success-ink);
  --s2-negative: var(--rv-danger-ink);
  --s2-warning: var(--rv-warn);
  --s2-pill-pos-bg: #0f2a24; --s2-pill-pos-ink: var(--rv-success-ink);
  --s2-pill-neg-bg: #2c1420; --s2-pill-neg-ink: var(--rv-danger-ink);
  --s2-pill-warn-bg: #2b2213; --s2-pill-warn-ink: var(--rv-warn-ink);
  --s2-pill-neu-bg: var(--rv-pill); --s2-pill-neu-ink: var(--rv-accent-text);
  --s2-float-shadow: var(--rv-shadow);
  --s2-r-card: var(--rv-r-xl);
  --s2-r-control: var(--rv-r-md);
  --s2-r-field: var(--rv-r-md);
  --s2-r-frame: var(--rv-r-xl);
  --s2-font: var(--rv-font);
  --s2-status-h: 32px;
  --accent: var(--rv-accent); --accent-2: var(--rv-accent-hi); --accent-soft: var(--rv-accent-soft); --accent-line: var(--rv-line-blue);
  --mk-acc: var(--rv-accent); --mk-acc2: var(--rv-accent-hi); --mk-acc-ink: var(--rv-accent-ink); --mk-acc-soft: var(--rv-accent-soft); --mk-acc-line: var(--rv-line-blue);
}
.hl, .hl.mk-hl, .hlw-form, .hlw-confirm { --hl-acc: var(--rv-accent); --hl-acc2: var(--rv-accent-hi); --hl-acc-ink: var(--rv-accent-ink); --hl-acc-soft: var(--rv-accent-soft); --hl-acc-line: var(--rv-line-blue); --accent: var(--rv-accent); --accent-2: var(--rv-accent-hi); --accent-soft: var(--rv-accent-soft); }
.hll { --buy: var(--rv-success); --buy-ink: #04140f; --sell: var(--rv-danger); --sell-ink: #ffffff; }

/* ---------------------------------------------------------------- 2 · base */
html, body { background: var(--rv-body); }
body { font: 400 13px/1.45 var(--rv-font); color: var(--rv-text); font-feature-settings: "cv11" 0; -webkit-font-smoothing: antialiased; }
::selection { background: rgba(82, 110, 252, 0.35); }
* { scrollbar-color: #343a44 transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #343a44; border: 2px solid transparent; border-radius: 6px; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: #444b57; }
.rv-dlg, .rv-dlg * { scrollbar-color: #363f55 transparent; }
/* drawn scrollbars (rv-sb.js) where the system hides its own (html.rv-noscroll: overlay scrollbars, headless): the
   container keeps the gutter (--rv-sbg = the 10px thin track) and the bar is drawn into it, measured on the Rivect
   captures: thin = 10px track, 6px thumb 2px in, arrows 3px from the ends, thumb from 12px; wide = 15px / 9px / 5px / 19px */
:root { --rv-sbg: 0px; --rv-sbg-w: 0px; }
:root.rv-noscroll { --rv-sbg: 10px; --rv-sbg-w: 15px; }
.rv-sb { position: absolute; right: 0; z-index: 3; width: 10px; pointer-events: auto; --sb: #343d46; }
.rv-sb > i { position: absolute; left: 2px; display: block; }
.rv-sb-t { width: 6px; border-radius: 3px; background: var(--sb); }
.rv-sb-u, .rv-sb-d { width: 0; height: 0; border: 0 solid transparent; }
.rv-sb-u { top: 3px; border-width: 0 3px 4px; border-bottom-color: var(--sb); }
.rv-sb-d { bottom: 3px; border-width: 4px 3px 0; border-top-color: var(--sb); }
.rv-sb-wide { width: 15px; }
.rv-sb-wide > i { left: 3px; }
.rv-sb-wide .rv-sb-t { width: 9px; border-radius: 4.5px; }
.rv-sb-wide .rv-sb-u { top: 5px; border-width: 0 4.5px 6px; }
.rv-sb-wide .rv-sb-d { bottom: 5px; border-width: 6px 4.5px 0; }
.rv-dlg .rv-sb { --sb: #363f55; }
.rv-sb:hover, .rv-sb.drag { --sb: #444b57; }
:focus-visible { outline: 2px solid var(--rv-accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.rv-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; display: block; }
.rv-num { font-variant-numeric: tabular-nums; }
.rv-dim { color: var(--rv-text-2); } .rv-faint { color: var(--rv-text-3); }
.rv-pos { color: var(--rv-success-ink); } .rv-neg { color: var(--rv-danger-ink); } .rv-warn { color: var(--rv-warn); }
.rv-i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.rv-i.sm { width: 14px; height: 14px; } .rv-i.xs { width: 12px; height: 12px; } .rv-i.lg { width: 18px; height: 18px; } .rv-i.xl { width: 22px; height: 22px; }
.rv-ib { display: inline-block; }
/* the Solana mark (gradient symbol, assets/ui.js sprite "rv-sol") */
.rv-sol { width: 16px; height: 14px; flex: none; }
.rv-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.rv-nay { color: var(--rv-text-3); font-weight: 500; }

/* ---------------------------------------------------------------- 3 · components */
/* buttons: primary = accent fill; secondary = raised fill + 1px line; ghost = text; icon = square/round */
.rv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--rv-h-md); padding: 0 16px; border: 1px solid var(--rv-line-2); border-radius: var(--rv-r-md); background: var(--rv-raise); color: var(--rv-text); font: 600 13px/1 var(--rv-font); letter-spacing: -0.005em; white-space: nowrap; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
.rv-btn:hover:not(:disabled) { border-color: var(--rv-line-4); background: #141a22; }
.rv-btn .rv-i { width: 15px; height: 15px; }
.rv-btn.primary { background: var(--rv-accent); border-color: var(--rv-accent); color: var(--rv-accent-ink); }
.rv-btn.primary:hover:not(:disabled) { background: var(--rv-accent-hi); border-color: var(--rv-accent-hi); }
.rv-btn.ghost { background: transparent; border-color: transparent; padding: 0 4px; }
.rv-btn.ghost:hover:not(:disabled) { background: transparent; color: #fff; }
.rv-btn.danger { background: #1b1018; border-color: #3a1d2b; color: var(--rv-danger-ink); }
.rv-btn.sm { height: var(--rv-h-sm); padding: 0 12px; font-size: 12px; border-radius: var(--rv-r); }
.rv-btn.lg { height: var(--rv-h-lg); padding: 0 20px; font-size: 14px; }
.rv-btn.block { width: 100%; }
.rv-btn:disabled, .rv-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.rv-ibtn { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--rv-line-2); border-radius: var(--rv-r-pill); background: transparent; color: var(--rv-text-2); cursor: pointer; }
.rv-ibtn:hover:not(:disabled) { color: var(--rv-text); border-color: var(--rv-line-4); }
.rv-link { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--rv-text); font: 600 13px/1.2 var(--rv-font); cursor: pointer; text-decoration: none; }
.rv-link:hover { color: #fff; }
.rv-link .rv-i { width: 14px; height: 14px; }
.rv-kbd { display: inline-flex; align-items: center; gap: 3px; height: 18px; padding: 0 5px; border: 1px solid #2c2e36; border-radius: var(--rv-r-xs); background: var(--rv-field-2); color: var(--rv-text-2); font: 500 10px/1 var(--rv-font); }

/* inputs */
.rv-input { display: flex; align-items: center; gap: 8px; height: var(--rv-h-md); padding: 0 12px; border: 1px solid var(--rv-line-3); border-radius: var(--rv-r-md); background: var(--rv-field); color: var(--rv-text); }
.rv-input:focus-within { border-color: var(--rv-accent); box-shadow: 0 0 0 3px rgba(82, 110, 252, .18); }
.rv-input > input, .rv-input > select { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: none; background: transparent; color: inherit; font: 400 13px/1 var(--rv-font); }
.rv-input > input::placeholder { color: var(--rv-text-2); opacity: 1; }
.rv-input > .rv-i { color: var(--rv-text-2); }
.rv-field { display: grid; gap: 6px; }
.rv-field > label, .rv-label { color: var(--rv-text-2); font: 500 12px/1.3 var(--rv-font); }
.rv-text-in { width: 100%; height: var(--rv-h-md); padding: 0 12px; border: 1px solid var(--rv-line-3); border-radius: var(--rv-r-md); background: var(--rv-field); color: var(--rv-text); font: 400 13px/1 var(--rv-font); outline: none; }
.rv-text-in:focus { border-color: var(--rv-accent); box-shadow: 0 0 0 3px rgba(82, 110, 252, .18); }
.rv-text-in::placeholder { color: var(--rv-text-3); }
.rv-select { appearance: none; height: var(--rv-h-md); padding: 0 34px 0 14px; border: 1px solid var(--rv-line-3); border-radius: var(--rv-r-md); background: var(--rv-ground) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23f8fafc' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 10px 6px; color: var(--rv-text); font: 500 13px/1 var(--rv-font); cursor: pointer; }
.rv-select option { background: var(--rv-card); color: var(--rv-text); }

/* segmented pills: one group with a 1px line; the selected segment fills accent-soft */
.rv-seg { display: inline-flex; align-items: stretch; gap: 2px; height: var(--rv-h); padding: 3px; border: 1px solid var(--rv-line-2); border-radius: var(--rv-r); background: transparent; }
.rv-seg > button { display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border: 0; border-radius: var(--rv-r-sm); background: transparent; color: var(--rv-text-2); font: 500 12px/1 var(--rv-font); cursor: pointer; }
.rv-seg > button:hover:not(:disabled) { color: var(--rv-text); }
.rv-seg > button[aria-pressed="true"], .rv-seg > button.on, .rv-seg > button[aria-selected="true"] { background: var(--rv-accent-soft); color: var(--rv-text); font-weight: 600; }
.rv-seg > button:disabled { opacity: .45; cursor: not-allowed; }

/* chips + status pills */
.rv-chip { display: inline-flex; align-items: center; gap: 6px; height: var(--rv-h-sm); padding: 0 12px; border: 1px solid var(--rv-line-2); border-radius: var(--rv-r-pill); background: var(--rv-raise); color: var(--rv-text); font: 500 12px/1 var(--rv-font); cursor: pointer; }
.rv-chip.on { border-color: var(--rv-accent); background: var(--rv-accent-soft); }
.rv-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: var(--rv-r-xs); background: var(--rv-pill); color: var(--rv-accent-text); font: 500 10.5px/1 var(--rv-font); white-space: nowrap; }
.rv-tag.ok { background: #0f2a24; color: var(--rv-success-ink); }
.rv-tag.warn { background: #2b2213; color: var(--rv-warn-ink); }
.rv-tag.err { background: #2c1420; color: var(--rv-danger-ink); }
.rv-tag.soon { background: transparent; border: 1px solid var(--rv-line-2); color: var(--rv-text-3); }
.rv-badge { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: var(--rv-r-xs); background: var(--rv-accent-soft); color: var(--rv-accent-text); font: 500 10px/1 var(--rv-font); }
.rv-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--rv-text-3); flex: none; }
.rv-dot.ok { background: var(--rv-success-dot); } .rv-dot.warn { background: var(--rv-warn); } .rv-dot.err { background: var(--rv-danger); } .rv-dot.acc { background: var(--rv-accent-line); }

/* cards */
.rv-card { position: relative; border: 1px solid var(--rv-line-2); border-radius: var(--rv-r-xl); background: var(--rv-card); }
.rv-card.raised { background: var(--rv-card-2); }
.rv-card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rv-card-t { margin: 0; color: var(--rv-text); font: 600 13px/1.3 var(--rv-font); letter-spacing: -0.005em; }
.rv-empty { display: grid; justify-items: center; gap: 6px; text-align: center; color: var(--rv-text-2); }
.rv-empty-ico { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 8px; color: #8fa2ff; }
.rv-empty-ico .rv-i { width: 30px; height: 30px; stroke-width: 1.6; }
.rv-empty b { color: var(--rv-text); font: 600 12px/1.4 var(--rv-font); }
.rv-empty p { margin: 0; max-width: 250px; font: 400 11px/19px var(--rv-font); color: var(--rv-text-2); }

/* tables: 36px head on the head fill, 56px rows, zebra on the even rows, 1px rules */
.rv-table { width: 100%; border-collapse: collapse; font: 400 13px/1.3 var(--rv-font); }
.rv-table th { height: 36px; padding: 0 10px; border-bottom: 1px solid #2c2d32; background: var(--rv-head); color: var(--rv-text-2); font: 400 11px/1 var(--rv-font); text-align: left; white-space: nowrap; position: sticky; top: 0; z-index: 1; }
.rv-table td { height: 55px; padding: 0 10px; border-bottom: 1px solid var(--rv-line-row); color: var(--rv-text); vertical-align: middle; }
.rv-table tbody tr:nth-child(even) td { background: var(--rv-zebra); }
.rv-table tbody tr:hover td { background: #11151d; }
.rv-table tbody tr { cursor: pointer; }

/* tooltips (data-tip) */
[data-rv-tip] { position: relative; }
[data-rv-tip]:hover::after, [data-rv-tip]:focus-visible::after { content: attr(data-rv-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); z-index: 60; width: max-content; max-width: 260px; padding: 7px 10px; border: 1px solid var(--rv-line-3); border-radius: var(--rv-r); background: #15171d; color: var(--rv-text); font: 500 11px/1.4 var(--rv-font); white-space: normal; text-align: left; pointer-events: none; box-shadow: var(--rv-shadow); }

/* toasts (ui.js toast) */
.toasts { position: fixed; z-index: 90; left: 50%; right: auto; bottom: 44px; top: auto; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; min-height: 40px; max-width: 460px; padding: 10px 16px; border: 1px solid #3a3d47; border-radius: var(--rv-r-lg); background: #1a1c22; color: var(--rv-text); font: 500 13px/1.35 var(--rv-font); box-shadow: var(--rv-shadow); pointer-events: auto; animation: rv-toast-in .2s var(--rv-ease); }
.toast .i { width: 16px; height: 16px; flex: none; }
.toast.ok .i { color: var(--rv-success-ink); } .toast.err .i, .toast.warn .i { color: var(--rv-warn); } .toast.err .i { color: var(--rv-danger-ink); } .toast.info .i { color: var(--rv-accent-text); }
.toast .cid { display: block; margin-top: 2px; color: var(--rv-text-3); font: 400 11px/1.3 var(--rv-mono); }
.toast.out { opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
@keyframes rv-toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* modals: every dialog (ui.js modal + the Based dialogs) — 14px frame, header with an icon tile, 32px round close */
/* scrim measured on the Rivect modal captures (least-squares fit of target = page blurred * t + c over the backdrop of
   modals/buy-settings + modals/find-token vs pages/11-live-token): Gaussian sigma 6px, transmission 0.275, ink #020307 */
.scrim, .rv-scrim { position: fixed; inset: 0; z-index: 70; background: rgba(2, 3, 7, 0.725); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-wrap, .rv-dlg-wrap { position: fixed; inset: 0; z-index: 71; display: grid; place-items: center; padding: 24px; overflow: auto; }
.modal { border: 1px solid #2b2e36; border-radius: var(--rv-r-xl); background: #0d0f14; color: var(--rv-text); box-shadow: var(--rv-shadow); }
.modal .modal-h { position: relative; min-height: 76px; padding: 22px 64px 20px 24px; border-bottom: 1px solid var(--rv-line); }
.modal .modal-h h3 { margin: 0; color: var(--rv-text); font: 700 17px/1.25 var(--rv-font); letter-spacing: -0.01em; }
.modal .modal-h p { margin: 6px 0 0; color: var(--rv-text-2); font: 400 12px/1.5 var(--rv-font); }
.modal .s2-x, .rv-x { position: absolute; top: 22px; right: 24px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid #343741; border-radius: 50%; background: transparent; color: var(--rv-text); cursor: pointer; }
.modal .s2-x:hover, .rv-x:hover { border-color: #4a4e5a; background: #161a22; }
.modal .s2-x .i, .rv-x .rv-i { width: 14px; height: 14px; }
.modal .modal-b { padding: 20px 24px; }
.modal .modal-f { display: flex; justify-content: flex-end; gap: 10px; padding: 0 24px 22px; }
.modal .modal-f:empty { display: none; }
.modal .btn { height: var(--rv-h-md); border-radius: var(--rv-r-md); }

/* the Based dialog frame (Workspace tools, Find a token): 620px, header 76px = 32px icon tile + 17px title + close */
.rv-dlg { position: relative; display: flex; flex-direction: column; width: 620px; max-width: calc(100vw - 32px); max-height: calc(100vh - 48px); border: 1px solid #2b2e36; border-radius: 16px; background: #0d0f14; color: var(--rv-text); box-shadow: var(--rv-shadow); }
.rv-dlg-h { display: flex; align-items: center; gap: 22px; flex: none; height: 76px; padding: 0 24px; border-bottom: 1px solid var(--rv-line); }
.rv-dlg-h h2 { display: flex; align-items: center; gap: 22px; margin: 0; color: var(--rv-text); font: 700 17px/1 var(--rv-font); letter-spacing: -0.015em; }
.rv-dlg-ico { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #2c3550; border-radius: 9px; background: #121a30; color: #9fb0ff; }
.rv-dlg-ico .rv-i { width: 16px; height: 16px; }
.rv-dlg-h .rv-x { position: static; margin-left: auto; }
.rv-dlg-b { flex: 1; min-height: 0; overflow: auto; padding: 0 20px 20px; }

/* Style 2 / legacy components re-skinned (screens not yet rebuilt keep working, in the Based look) */
.btn, .s2-btn { border-radius: var(--rv-r-md); border-color: var(--rv-line-2); background: var(--rv-raise); color: var(--rv-text); font-family: var(--rv-font); }
.btn:hover:not(:disabled), .s2-btn:hover:not(:disabled) { border-color: var(--rv-line-4); background: #141a22; }
.btn.primary, .btn.go, .s2-btn.primary { background: var(--rv-accent); border-color: var(--rv-accent); color: #fff; }
.btn.primary .i, .btn.go .i, .s2-btn.primary .i { color: #fff; }
.btn.primary:hover:not(:disabled), .btn.go:hover:not(:disabled), .s2-btn.primary:hover:not(:disabled) { background: var(--rv-accent-hi); border-color: var(--rv-accent-hi); }
.btn.primary:disabled, .btn.go:disabled, .s2-btn.primary:disabled { background: #1c2540; border-color: #1c2540; color: #7f8bb5; }
.input, select.input, textarea.input, .s2-input { border-color: var(--rv-line-3); border-radius: var(--rv-r-md); background: var(--rv-field); }
.input:focus, .s2-input:focus { border-color: var(--rv-accent); background: var(--rv-field); }
.pill, .s2-pill { border-radius: var(--rv-r-xs); }
.panel { border-color: var(--rv-line-2); border-radius: var(--rv-r-xl); background: var(--rv-card); }
.s2-pop { border: 1px solid #2b2e36; border-radius: var(--rv-r-lg); background: #111318; box-shadow: var(--rv-shadow); }
.s2-mi { border-radius: var(--rv-r); }
.tbl th { background: var(--rv-head); }

/* ---------------------------------------------------------------- 4 · the app shell
   1440x900: the left block is 272px (brand cell 66px tall over a 64px icon rail + the 207px launches column, then the 1px
   divider); the page column holds the top bar (56px workspace bar / 66px launch step bar) over the scrolling page; the
   market bar (32px) closes the page column. Collapsed (the live token view): the rail only, the market bar spans all. */
.rv-app { display: grid; grid-template-columns: 272px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 32px; width: 100%; height: 100vh; min-height: 0; overflow: hidden; background: var(--rv-body); color: var(--rv-text); font-family: var(--rv-font); }
.rv-app.rv-collapsed { grid-template-columns: 64px minmax(0, 1fr); }
.rv-app > .rv-side { grid-row: 1; grid-column: 1; }
.rv-app > .rv-main { grid-row: 1; grid-column: 2; }
.rv-app > .rv-foot { grid-row: 2; grid-column: 2; }
.rv-app.rv-collapsed > .rv-foot { grid-column: 1 / -1; }
/* the launch setup pages (Chain & launchpad … Funding & launch) close the window with the bar across it, under the left
   block too (every review capture of those pages: 'Local preview' at x 14); the workspace pages keep it in the page column */
.rv-app:has(.rv-lbar-top) > .rv-foot { grid-column: 1 / -1; }

/* left block: brand / (rail | column) */
.rv-side { position: relative; display: grid; grid-template-columns: 64px 207px; grid-template-rows: 66px auto auto auto minmax(0, 1fr) auto; grid-template-areas: "brand brand" "nav acts" "nav find" "nav lh" "nav list" "nav fund"; min-height: 0; border-right: 1px solid var(--rv-divider); background: var(--rv-side); }
.rv-collapsed .rv-side { grid-template-columns: 64px; grid-template-rows: 66px minmax(0, 1fr) auto; grid-template-areas: "brand" "nav" "acts"; border-right: 0; }
.rv-brand { grid-area: brand; position: relative; display: block; width: 100%; height: 66px; padding: 0; border: 0; border-bottom: 1px solid #262729; background: var(--rv-side); color: var(--rv-text); text-align: left; cursor: pointer; }
.rv-brand .rv-mark { position: absolute; left: 21.1px; top: 20.5px; width: 24px; height: 24px; }
.rv-brand .rv-wm { position: absolute; left: 58.6px; top: 18px; display: block; font: 700 24px/29px var(--rv-font); letter-spacing: -0.05em; color: #f8fafc; }
.rv-brand .rv-tagline { position: absolute; left: 206.4px; top: 24.6px; display: block; width: 54px; font: 600 8px/12px var(--rv-font); letter-spacing: 0.15em; color: #8a8d95; text-transform: uppercase; }
.rv-collapsed .rv-brand { border-right: 1px solid #2a2a2c; }
.rv-collapsed .rv-brand .rv-mark { left: 20px; }
.rv-collapsed .rv-brand .rv-wm, .rv-collapsed .rv-brand .rv-tagline { display: none; }
/* wide screens (rivect responsive/*-1920): the left block takes 15.1vw (272 → 290 at 1920), the launches column the rest */
@media (min-width: 1441px) {
  .rv-app { grid-template-columns: max(272px, 15.1vw) minmax(0, 1fr); }
  .rv-side { grid-template-columns: 64px minmax(0, 1fr); }
  .rv-brand .rv-tagline { left: auto; right: 10.6px; }
}
/* narrow windows (rivect responsive/token-details-800): a 248px left block with the brand mark, Create launch, the launches
   header and the funder (the search and the list step back), the market bar across the window with the three quotes only */
@media (max-width: 1000px) {
  .rv-app { grid-template-columns: 248px minmax(0, 1fr); }
  .rv-side { grid-template-columns: 64px minmax(0, 1fr); }
  .rv-brand .rv-wm { display: none; }
  .rv-brand .rv-tagline { left: auto; right: 10.6px; }
  .rv-side .rv-find, .rv-side .rv-list { visibility: hidden; }
  .rv-foot .rv-mkt .rv-q + .rv-q { display: inline-flex; }
  .rv-foot .rv-mkt .rv-qc, .rv-foot .rv-mkt .rv-upd { display: none; }
  .rv-app .s2-hl > .s2-top.rv-lbar-top { padding: 0 21px 0 17px; }
  .rv-app .rv-lbar-top .rv-steps { flex: 0 1 auto; min-width: 0; gap: 4px; overflow: hidden; }
  .rv-app .rv-lbar-top .s2-top-r { flex: none; padding-left: 12px; }
}

/* icon rail: 52x64 items on a 69px pitch from y=80; the current one = navy fill + blue-grey line, accent icon */
.rv-nav { grid-area: nav; display: flex; flex-direction: column; align-items: center; gap: 5px; min-height: 0; padding-top: 14px; border-right: 1px solid #2a2a2c; background: var(--rv-rail); }
.rv-nv { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; width: 52px; height: 64px; padding-top: 13px; border: 1px solid transparent; border-radius: 13px; color: #a9aaad; text-decoration: none; cursor: pointer; }
.rv-nv .rv-i { width: 18px; height: 18px; stroke-width: 1.6; color: #a4a6ad; }
.rv-nv > span { margin-top: 6px; font: 500 11px/14px var(--rv-font); letter-spacing: -0.01em; white-space: nowrap; }
.rv-nv:hover { color: var(--rv-text); }
.rv-nv:hover .rv-i { color: var(--rv-text); }
.rv-nv.on { border-color: #333b4d; background: linear-gradient(180deg, #101a33 0%, #0e1729 100%); color: var(--rv-text); }
.rv-nv.on .rv-i { color: #8fa2ff; }
.rv-nv.on > span { font-weight: 600; }
.rv-nv .rv-new { position: absolute; top: 9px; right: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--rv-accent); }

/* launches column */
.rv-acts { grid-area: acts; display: flex; gap: 6px; padding: 14px 12px 0; }
.rv-create { display: flex; flex: 1 1 auto; align-items: center; justify-content: center; gap: 6px; height: 38px; min-width: 0; padding: 1px 14px 0; border: 1px solid var(--rv-line-blue); border-radius: var(--rv-r-pill); background: linear-gradient(180deg, #0a1730 0%, #071228 100%); color: var(--rv-text); font: 600 12.5px/1 var(--rv-font); letter-spacing: -0.01em; white-space: nowrap; cursor: pointer; }
.rv-create .rv-i { width: 17px; height: 17px; stroke-width: 2.1; margin-top: -1px; }
.rv-create:hover { border-color: #46557a; }
.rv-import { display: grid; flex: 0 0 34px; place-items: center; width: 34px; height: 38px; padding: 0; border: 1px solid #2c303c; border-radius: 50%; background: #070b12; color: #c5cad0; cursor: pointer; }
.rv-import .rv-i { width: 15px; height: 15px; stroke-width: 2; }
.rv-import:hover { color: var(--rv-text); border-color: #3c4152; }
.rv-collapsed .rv-acts { align-self: end; justify-content: center; padding: 0 0 14px; border-right: 1px solid #2a2a2c; background: var(--rv-rail); }
.rv-collapsed .rv-create { flex: none; width: 40px; height: 40px; padding: 0; border-radius: 50%; }
.rv-collapsed .rv-create > span, .rv-collapsed .rv-import, .rv-collapsed .rv-find, .rv-collapsed .rv-lh, .rv-collapsed .rv-list, .rv-collapsed .rv-funder { display: none; }
.rv-find { grid-area: find; display: flex; align-items: center; gap: 4.5px; height: 38px; margin: 12px 12px 0; padding: 0 8.5px; border: 1px solid #313234; border-radius: var(--rv-r-pill); background: var(--rv-field); color: #999da7; cursor: text; }
.rv-find .rv-i { width: 18px; height: 18px; stroke-width: 1.6; color: #a4a7ad; }
.rv-find input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: none; background: transparent; color: var(--rv-text); font: 400 11px/1 var(--rv-font); }
.rv-find input::placeholder { color: #999da7; opacity: 1; }
.rv-find:focus-within { border-color: var(--rv-accent); }
.rv-lh { grid-area: lh; display: flex; align-items: center; justify-content: space-between; height: 16px; margin: 14px 16px 10px; }
.rv-lh > :first-child { color: #f1f6f8; font: 600 9.5px/1 var(--rv-font); text-decoration: none; }
.rv-lh > span:last-child { color: #999895; font: 400 10.5px/1 var(--rv-font); font-variant-numeric: tabular-nums; }
.rv-list { grid-area: list; display: flex; flex-direction: column; gap: 4px; min-height: 0; padding: 0 10px 8px 9px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.rv-list::-webkit-scrollbar { display: none; }
.rv-lrow { position: relative; display: flex; flex: none; align-items: center; gap: 9px; height: 54px; padding: 0 10px 0 10px; border: 1px solid transparent; border-radius: 11px; color: var(--rv-text); text-decoration: none; cursor: pointer; }
.rv-lrow:hover { background: #0b0f18; }
.rv-lrow.on { border-color: var(--rv-line-blue); background: var(--rv-sel); box-shadow: inset 2px 0 0 #5b75d6; }
.rv-av { display: grid; place-items: center; width: 32px; height: 32px; flex: none; overflow: hidden; border-radius: 50%; background: #1a1d24; color: #c9ccd3; font: 600 13px/1 var(--rv-font); }
.rv-av img { width: 100%; height: 100%; object-fit: cover; }
.rv-av.ini { border: 1px solid #3a3d44; background: #26282d; }
.rv-lrow-t { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.rv-lrow-n { overflow: hidden; color: var(--rv-text); font: 600 13.5px/15px var(--rv-font); letter-spacing: -0.01em; white-space: nowrap; text-overflow: ellipsis; }
.rv-lrow-s { overflow: hidden; color: #a8aebf; font: 400 10.5px/12px var(--rv-font); white-space: nowrap; text-overflow: ellipsis; }
.rv-lrow-st { flex: none; margin-top: 1px; color: #a2a4b0; font: 400 10px/1 var(--rv-font); white-space: nowrap; }
.rv-lrow-st.live { color: #b8bcc8; }
.rv-lrow-tg { display: grid; place-items: center; width: 22px; height: 22px; margin-left: -4px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--rv-text-2); cursor: pointer; }
.rv-tree-kids { display: flex; flex-direction: column; gap: 4px; margin-left: 14px; padding-left: 6px; border-left: 1px solid #1d2230; }
.rv-tree-kids .rv-lrow { height: 46px; }
.rv-list .rv-none { padding: 14px 12px; color: var(--rv-text-3); font: 400 11px/1.4 var(--rv-font); }
.rv-skrow { display: flex; align-items: center; gap: 9px; height: 54px; padding: 0 10px; }
.rv-skrow i { width: 32px; height: 32px; border-radius: 50%; background: #12151b; }
.rv-skrow b { width: 90px; height: 10px; border-radius: 4px; background: #12151b; }
.rv-allm { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; color: var(--rv-text-2); font: 500 11px/1 var(--rv-font); text-decoration: none; }
.rv-funder { grid-area: fund; display: flex; align-items: center; gap: 5px; height: 34px; margin: 0 11px 13px 11px; padding: 0 9px 0 23px; border: 1px solid #2b2c30; border-radius: var(--rv-r-pill); background: #0f1015; color: var(--rv-text); font: 600 11px/1 var(--rv-font); cursor: pointer; }
.rv-funder > .rv-i { width: 14px; height: 14px; stroke-width: 1.9; color: #c8cacf; }
.rv-funder > span:first-of-type { margin-right: auto; }
.rv-funder-v { display: inline-flex; align-items: center; gap: 5px; }
.rv-funder .rv-sol { width: 12px; height: 11px; }
.rv-funder strong { font: 700 12.3px/1 var(--rv-font); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.rv-funder .rv-chev { width: 11px; height: 11px; margin-left: 2px; color: #b8b9be; stroke-width: 2.2; }
.rv-funder:hover { border-color: #3a3c44; }
.rv-funder .rv-bar { display: inline-block; width: 46px; height: 8px; border-radius: 3px; background: #1d2027; }
.rv-funder-e { color: var(--rv-text-2); font-weight: 500; }

/* page column */
.rv-main { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--rv-ground); }
.rv-top { display: flex; flex: none; align-items: center; gap: 12px; height: 56px; padding: 0 28px; border-bottom: 1px solid var(--rv-line); background: var(--rv-top); }
.rv-crumbs { display: flex; align-items: center; gap: 12px; min-width: 0; font: 400 12px/1 var(--rv-font); color: #a0a5af; }
.rv-crumbs #tb-title { color: var(--rv-text); font-weight: 600; }
.rv-crumbs #tb-crumb:not([hidden]) { color: var(--rv-text); font-weight: 600; }
.rv-crumbs:has(#tb-crumb:not([hidden])) #tb-title { color: #a0a5af; font-weight: 400; }
.rv-crumbs > .rv-cs { color: #b6b8b7; }
.rv-top-sp { flex: 1; }
.rv-search { display: flex; align-items: center; gap: 10px; width: 204px; height: 34px; margin-right: 8px; padding: 0 11px 0 9px; border: 1px solid #27282d; border-radius: var(--rv-r-md); background: var(--rv-field-2); color: #dfe3ea; font: 400 13px/1 var(--rv-font); cursor: pointer; }
.rv-search .rv-i { width: 14px; height: 14px; stroke-width: 2; color: #c8ccd4; }
.rv-search > span { flex: 1; text-align: left; letter-spacing: -0.005em; }
.rv-search kbd { display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 18px; padding: 0 5px; border: 1px solid #383b44; border-radius: var(--rv-r-xs); background: transparent; color: #b8bcc6; font: 500 9.5px/1 var(--rv-font); }
.rv-search:hover { border-color: #353741; }
.rv-net { display: flex; align-items: center; justify-content: center; gap: 8px; width: 82px; height: 34px; margin-left: 0; padding: 0; border: 1px solid #363739; border-radius: var(--rv-r); background: linear-gradient(180deg, #1e1f22 0%, #19191b 100%); color: var(--rv-text); font: 600 11.5px/1 var(--rv-font); cursor: pointer; }
.rv-net .rv-sol { width: 17px; height: 15px; }
.rv-net:hover { border-color: #45474b; }
.rv-main > .content, .rv-content { position: relative; flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; }
/* hidden / overlay scrollbars (headless captures, macOS): .rv-app gets .rv-noscroll and a page that scrolls as a whole
   keeps the 10px gutter of the classic scrollbar (e.g. .rv-noscroll .rv-page { padding-right: 38px }), so the page
   geometry is the same everywhere; the project pages scroll inside their own panels and keep their full width */
.rv-app { --rv-gutter: 0px; }
.rv-app.rv-noscroll { --rv-gutter: 10px; }

/* launch step bar (project pages: hl-shell.js): Chain & launchpad · Token details · Launch settings · Funding & launch as
   34px pills (the current one filled navy), the project chip at the right (it opens More actions). 66px on #121214. */
.rv-app.on-hyper .rv-top { display: none; }
.s2-hl > .s2-top.rv-lbar-top { position: relative; z-index: 30; display: flex; align-items: center; height: 66px; padding: 0 28px 0 28px; border-bottom: 1px solid #2d2c32; background: var(--rv-bar); }
.rv-lbar-top .rv-steps { display: flex; align-items: center; justify-content: flex-start; gap: 7px; height: auto; margin: 0; padding: 0; list-style: none; }
.rv-lbar-top .rv-steps > li { display: flex; align-items: center; }
/* the review's step bar: every step that is not the current one reads the same (done / not reached alike), the current
   one keeps its navy pill under the pointer too (launch-pages fix pass, fitted on the captures) */
.rv-lbar-top .s2-step.rv-step { display: inline-flex; align-items: center; height: 34px; padding: 0 15px; border: 0; border-radius: var(--rv-r-pill); background: transparent; color: #8e939d; font: 500 12.4px/1 var(--rv-font); letter-spacing: -0.005em; white-space: nowrap; cursor: pointer; }
.rv-lbar-top .s2-step.rv-step:hover:not([aria-disabled="true"]):not(.on) { background: #191b21; color: var(--rv-text); }
.rv-lbar-top .s2-step.rv-step.on { background: #14203a; color: #fff; font-weight: 600; }
.rv-lbar-top .s2-step.rv-step.done { color: #8e939d; }
.rv-lbar-top .s2-step.rv-step[aria-disabled="true"] { color: #8e939d; cursor: default; }
.rv-lbar-top .s2-step .s2-l { position: relative; top: 1px; }
.rv-lbar-top .s2-step .s2-l::after { content: none !important; }
.rv-lbar-top .rv-step .rv-live { width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--rv-success-dot); }
.rv-lbar-top .rv-steps-sub { margin-left: 6px; }
.rv-lbar-top .s2-top-r { display: flex; align-items: center; gap: 10px; height: auto; margin-left: auto; padding: 0; border-left: 0 !important; }
.rv-proj-w { min-width: 160px; }
.rv-proj { display: flex; align-items: center; gap: 11px; height: 44px; margin-left: 0; padding: 0 8px 0 0; border: 0; border-radius: var(--rv-r-md); background: transparent; color: var(--rv-text); text-align: left; cursor: pointer; }
.rv-proj:hover, .rv-proj[aria-expanded="true"] { background: #17181c; }
.rv-proj .rv-av { width: 34px; height: 34px; background: #1d2846; color: #8fa2ff; font-size: 14px; }
.rv-proj-t { display: flex; flex-direction: column; gap: 5px; color: #fff; font: 700 12px/13px var(--rv-font); letter-spacing: -0.01em; white-space: nowrap; }
.rv-proj-s { display: block; color: #a3a8b4; font: 400 10px/11px var(--rv-font); letter-spacing: 0; }
.rv-proj-w .s2-topmenu { right: 0; left: auto; top: calc(100% + 8px); }

/* collapsed (the live token view): the 64px rail only; the brand cell shows the mark; Create launch = the round + at
   the bottom of the rail */
.rv-collapsed .rv-brand { border-right: 1px solid #2d2e33; }
.rv-collapsed .rv-nav { border-right: 1px solid #2d2e33; }
.rv-collapsed .rv-acts { padding: 0 0 13px; border-right: 1px solid #2d2e33; }
.rv-collapsed .rv-create { width: 41px; height: 39px; border-color: #3d4458; background: #070d1d; }
.rv-collapsed .rv-create .rv-i { width: 13px; height: 13px; stroke-width: 2.3; }

/* market bar */
.rv-foot { display: flex; align-items: center; gap: 0; min-width: 0; height: 32px; padding: 0 16px 0 13px; border-top: 1px solid #2d3134; background: var(--rv-bar); color: #9b9c9f; font: 500 11px/1 var(--rv-font); white-space: nowrap; }
.rv-health { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 2px; border: 0; background: transparent; color: #88898c; font: 500 10.5px/1 var(--rv-font); cursor: pointer; }
.rv-health .rv-dot { width: 5px; height: 5px; background: #65706d; }
.rv-health.ok .rv-dot { background: #3f9e86; }
.rv-health.warn .rv-dot { background: var(--rv-warn); } .rv-health.down .rv-dot { background: var(--rv-danger); }
.rv-health:hover { color: var(--rv-text); }
.rv-foot .cmds { display: flex; gap: 6px; margin-left: 10px; }
.rv-mkt { display: flex; flex: 1; align-items: center; justify-content: center; gap: 0; min-width: 0; }
.rv-q { display: inline-flex; align-items: center; gap: 0; height: 32px; padding: 0 9px; }
.rv-q + .rv-q { margin-left: 0; }
.rv-q .rv-qi { width: 16px; height: 14px; margin-right: 6px; }
.rv-q svg.rv-sol.rv-qi { width: 16px; height: 12px; }
.rv-q .rv-qs { color: #a6a9aa; font-weight: 500; margin-right: 15px; }
.rv-q .rv-qp { color: #9b9c9f; font-weight: 500; font-variant-numeric: tabular-nums; margin-right: 15px; }
.rv-q .rv-qc { font-weight: 500; font-variant-numeric: tabular-nums; }
.rv-q .rv-qc.up { color: #74c8a8; } .rv-q .rv-qc.dn { color: #dc6f8a; }
.rv-q .rv-nay { margin-right: 0; color: #7d8086; }
.rv-q-sep { width: 1px; height: 14px; margin: 0 14px 0 6px; background: #2c2f33; }
.rv-dex { display: inline-flex; align-items: center; gap: 15px; padding: 0 9px; color: #b1b5bc; text-decoration: none; }
.rv-dex > span:last-child { color: #8f9196; }
.rv-upd { padding: 0 9px 0 24px; color: #9b9da5; }
.rv-upd.stale { color: var(--rv-warn); }
.rv-foot-r { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.rv-user { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 1px solid #34373d; border-radius: 50%; background: #191b20; color: #b8bbc2; font: 600 9.5px/1 var(--rv-font); cursor: pointer; }
.rv-user:hover, .rv-user[aria-expanded="true"] { border-color: #4b4f58; color: var(--rv-text); }
.rv-user.warn { border-color: var(--rv-warn); color: var(--rv-warn); }
.rv-wordmark { color: #8a8c8d; font: 600 9.5px/1 var(--rv-font); letter-spacing: 0.06em; }
.rv-foot .rv-q-err { display: inline-flex; align-items: center; gap: 8px; color: var(--rv-text-2); }
.rv-mkt { overflow: hidden; }
/* narrow windows keep the served quote (SOL) and the freshness; the quotes without a source step back first */
@media (max-width: 1380px) { .rv-mkt .rv-q + .rv-q, .rv-mkt .rv-q-sep, .rv-mkt .rv-dex { display: none; } }

/* the shell's popovers (services, session, network, funder) */
.rv-pop { min-width: 220px; padding: 8px; }
.rv-pop .s2-mi, .rv-mi { display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 10px; border: 0; border-radius: var(--rv-r); background: transparent; color: var(--rv-text); font: 500 12.5px/1 var(--rv-font); text-align: left; text-decoration: none; cursor: pointer; }
.rv-pop .s2-mi:hover, .rv-mi:hover, .rv-mi:focus-visible { background: #1a1d24; }
.rv-mi[aria-disabled="true"], .rv-mi:disabled { color: var(--rv-text-3); cursor: not-allowed; }
.rv-mi .rv-l { flex: 1; }
.rv-mi small { color: var(--rv-text-3); font-size: 11px; font-weight: 400; }
.rv-pop-h { display: grid; gap: 4px; padding: 8px 10px 10px; }
.rv-pop-h b { font: 600 13px/1.2 var(--rv-font); }
.rv-pop-h span { color: var(--rv-text-2); font: 400 11.5px/1.3 var(--rv-font); }
.rv-pop-sep { height: 1px; margin: 6px 4px; background: var(--rv-line); }

/* ---------------------------------------------------------------- 5 · shared page head (Based pages) */
.rv-page { padding: 28px 28px 32px 28px; }
.rv-ph { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.rv-ph h1 { margin: 0; color: #fff; font: 700 26px/32px var(--rv-font); letter-spacing: -0.025em; }
.rv-ph p { margin: 4px 0 0; color: #9da3ad; font: 400 12px/18px var(--rv-font); letter-spacing: -0.005em; }
.rv-ph .rv-btn.primary { margin-top: 8px; height: 38px; padding: 0 13px 0 14px; gap: 10px; font-size: 13.5px; border-radius: 10px; }
.rv-tabs { display: flex; align-items: center; gap: 0; height: 42px; margin-top: 29px; border-bottom: 1px solid var(--rv-line-soft); }
.rv-tab { position: relative; display: inline-flex; align-items: center; gap: 9px; height: 42px; margin-right: 23px; padding: 0; border: 0; background: transparent; color: #9ca5b1; font: 500 12px/1 var(--rv-font); cursor: pointer; }
.rv-tab[aria-selected="true"] { color: var(--rv-text); font-weight: 600; }
.rv-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--rv-accent-line); }
.rv-tabs-r { margin-left: auto; color: #838896; font: 400 10.5px/1 var(--rv-font); }

/* "Not available yet": every Rivect-only control without a SINNER backend */
[data-rv-na] { cursor: not-allowed !important; }
.rv-na-note { color: var(--rv-text-3); font: 500 11px/1.3 var(--rv-font); }
