/* Trading terminal visual layer. Scopes are explicit body classes so iframe and unthemed layouts
   stay untouched: .terminal-public (top-level marketing / SEO / legal / guides), .terminal-auth
   (auth pages) and .terminal-app (#2149: the logged-in shell views/home.ejs and the
   /profile-portfolio-positions page, see the "Logged-in app shell" section near the end). The
   marketplace is themed in public contexts and, since #2149, inside the logged-in shell's embed,
   see the marketplace block below. Other /profile pages and the module iframes are NOT themed yet.
   Business/status colours (P&L red/green, status chips, badges that carry meaning) remain owned by
   pages.
   Shared components (#2151): the trust banner (partials/trust-banner.ejs, also rendered on
   UNTHEMED anonymous pages, which keep their own look), the public footer colours, the
   skip-link focus state and the mobile nav panel are themed in the "Shared components" section
   near the end of this file, scoped to the body classes so unthemed includers are untouched. */
body:is(.terminal-public,.terminal-auth,.terminal-app) {
  --terminal-bg:#0c0e11; --terminal-panel:#14171c; --terminal-raised:#1b1f25;
  --terminal-line:#2a2f38; --terminal-text:#e8eaed; --terminal-muted:#a2a9b4;
  --terminal-accent:#e5b567;
  /* Form-control border: >=3:1 non-text contrast against the panel/input fills (WCAG 1.4.11). */
  --terminal-control-border:#6b7482;
  background:var(--terminal-bg) !important; color:var(--terminal-text);
  font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  font-variant-numeric:tabular-nums; color-scheme:dark;
}
body:is(.terminal-public,.terminal-auth,.terminal-app) :is(a,button,input,select,textarea):focus-visible {
  outline:2px solid var(--terminal-accent); outline-offset:3px;
}
/* Public site: same materials, generous reading rhythm. No invented market data. */
body.terminal-public {
  --bg:#0c0e11; --surface:#14171c; --surface-2:#1b1f25; --text:#e8eaed;
  --muted:#a2a9b4; --line:#2a2f38;
  --primary:#e5b567; --primary-rgb:229,181,103; --accent:#e5b567; --accent-rgb:229,181,103;
}
.terminal-public .topbar { background:#101318; border-bottom-color:var(--line); backdrop-filter:none; }
.terminal-public .brand { letter-spacing:.02em; }
.terminal-public .brand-mark { background:#e5b567; color:#18140d; border-radius:4px; box-shadow:none; }
.terminal-public :is(.cta,.btn) { border-radius:4px; box-shadow:none; }
.terminal-public .cta-primary { background:#e5b567; color:#18140d; border-color:#e5b567; box-shadow:none; }
.terminal-public .cta-ghost { background:transparent; border-color:#414854; color:var(--text); }
.terminal-public :is(.hero,.section-alt) { background:var(--bg); }
.terminal-public .hero-bg { background:radial-gradient(ellipse at 80% 10%,rgba(229,181,103,.06),transparent 65%); opacity:1; }
.terminal-public .hero-copy h1 { font-size:clamp(2rem,3.7vw,3.6rem); line-height:1.15; letter-spacing:-.04em; font-weight:600; }
.terminal-public .hero-copy .sub { color:var(--muted); line-height:1.8; }
.terminal-public :is(.pain-card,.cap-card,.contrast-card,.audience-card,.step-card,.faq-item,.hero-screenshot,.evidence-chip) { background:var(--surface); border-color:var(--line); border-radius:5px; box-shadow:none; }
.terminal-public .hero-screenshot { border-top:2px solid #5a4930; }
.terminal-public .section-title { font-weight:600; letter-spacing:-.025em; }
.terminal-public section { border-color:var(--line); }
.terminal-public :is(.cta-section,.final-cta) { background:var(--surface); border-color:var(--line); border-radius:5px; box-shadow:none; }
.terminal-public footer { background:#101318; border-top-color:var(--line); color:#a2a9b4; }
.terminal-public :is(input,textarea,select) { border-color:var(--terminal-control-border); }
/* Nav colours only; layout/breakpoints live in public-base.css so every page that includes the
   nav partial (themed or not) gets the same link tree and the same 1100px switch. */
.terminal-public .public-navigation .nav-dropdown-panel { background:#14171c; border:1px solid var(--line); border-radius:5px; box-shadow:0 12px 32px #0005; }
/* Authentication: quiet surfaces; leave validation and busy states untouched. */
.terminal-auth :is(.auth-container,.reset-card) { background:#14171c; border:1px solid #353b45; border-radius:6px; box-shadow:0 16px 48px #0004; backdrop-filter:none; }
.terminal-auth .auth-container::before,.terminal-auth .auth-container::after { background:none; }
.terminal-auth :is(.auth-header h2,.reset-header h2) { color:#e8eaed; background:none; -webkit-text-fill-color:#e8eaed; }
.terminal-auth .form-group input { background:#0e1116; border-color:var(--terminal-control-border); border-radius:4px; box-shadow:none; }
.terminal-auth .form-group input:focus { border-color:#e5b567; box-shadow:0 0 0 2px #e5b56720; }
.terminal-auth :is(.submit-btn,.auth-btn,.reset-btn) { background:#e5b567; color:#18140d; border-radius:4px; box-shadow:none; }
.terminal-auth .btn { background:#e5b567; color:#18140d; border-radius:4px; box-shadow:none; }
.terminal-auth .btn:hover { background:#f0c780; transform:none; box-shadow:none; }
.terminal-auth .btn::before { background:none; }
.terminal-auth .logo { background:#24221e; border:1px solid #554732; border-radius:6px; box-shadow:none; }
.terminal-auth .logo::before,.terminal-auth .logo::after { background:none; }
/* Decorative layers animate opacity in the original login sheet. Remove the
   layers themselves so animations cannot revive gradients or cause overflow. */
.terminal-auth :is(.tech-background,.grid-background,.particles,.floating-elements) { display:none; animation:none; }
.terminal-auth::before { background:none; pointer-events:none; }
.terminal-auth .login-container { justify-content:center; padding-left:0; }
.terminal-auth .auth-section { width:100%; max-width:540px; padding:40px 24px; }
@media(max-width:767px) {
  .terminal-public .hero-copy h1 { font-size:2rem; }
}
/* Marketplace: top-level /marketplace in a PUBLIC context (body.terminal-market, set only when
   the public chrome renders) and the catalogue embedded in /market OR in the logged-in /home
   shell (html.terminal-market-embed, added before first paint by the head script in
   views/marketplace.ejs after checking the parent is /market or /home). /marketplace?embed=1
   with no known parent keeps the old palette. dark-theme.css declares these tokens on :root and
   uses !important on buttons. */
:is(body.terminal-market, html.terminal-market-embed) {
  --primary-color:#e5b567; --bg-card:#14171c; --border-color:#2a2f38;
  --text-primary:#e8eaed; --text-secondary:#a2a9b4;
}
html.terminal-market-embed body, body.terminal-market {
  background:#0c0e11 !important; color:#e8eaed !important; color-scheme:dark;
}
:is(body.terminal-market, html.terminal-market-embed) :is(.btn-primary,.btn-primary1) {
  background:#e5b567 !important; border-color:#e5b567 !important; color:#18140d !important; box-shadow:none;
}
:is(body.terminal-market, html.terminal-market-embed) :is(.btn-primary,.btn-primary1):is(:hover,:focus) {
  background:#f0c780 !important; border-color:#f0c780 !important; color:#18140d !important;
}
:is(body.terminal-market, html.terminal-market-embed) .progress-bar { background:#e5b567 !important; }
:is(body.terminal-market, html.terminal-market-embed) .modal-footer .btn-primary:hover { background:#f0c780 !important; border-color:#f0c780 !important; }
/* Login: the original sheet still carries blue/violet hover, link and gradient accents that the
   rules above do not reach. Amber / text colour only. */
.terminal-auth .fallback-hero h3 { background:none; color:#e8eaed; -webkit-text-fill-color:#e8eaed; }
.terminal-auth :is(.switch-form a,.link-btn,.login-inline-forgot a):hover { color:#e5b567; }
.terminal-auth .switch-form a::after { background:#e5b567; }
:is(body.terminal-market, html.terminal-market-embed) :is(.card,.modal-content) { background:#14171c !important; border-color:#2a2f38 !important; }
:is(body.terminal-market, html.terminal-market-embed) .page-title-buttons-section .title-section span { background:none; color:#e8eaed; -webkit-text-fill-color:#e8eaed; }
:is(body.terminal-market, html.terminal-market-embed) :is(.modal-header,.add-new-ingestion-btn,.page-btn.active,.page-btn:hover:not(.disabled)) { background:#1b1f25; background-image:none; }
:is(body.terminal-market, html.terminal-market-embed) .btn-outline-primary { color:#e5b567 !important; border-color:#e5b567 !important; }
:is(body.terminal-market, html.terminal-market-embed) .btn-outline-primary:is(:hover,:focus) { background:#e5b567 !important; color:#18140d !important; }
:is(body.terminal-market, html.terminal-market-embed) .btn-outline-info { color:#e8eaed !important; border-color:#6b7482 !important; }
:is(body.terminal-market, html.terminal-market-embed) .btn-outline-info:is(:hover,:focus) { background:#1b1f25 !important; color:#e8eaed !important; }
:is(body.terminal-market, html.terminal-market-embed) :is(.form-control,.form-select,input,textarea,select):focus { border-color:#e5b567 !important; }
:is(body.terminal-market, html.terminal-market-embed) :is(.text-primary,.btn-link) { color:#e5b567 !important; }
:is(body.terminal-market, html.terminal-market-embed) .badge.bg-primary { background:#e5b567 !important; color:#18140d; }
:is(body.terminal-market, html.terminal-market-embed) .right-main-content { background:#0c0e11 !important; }
:is(body.terminal-market, html.terminal-market-embed) .search-section.toolbar-search { background:#0e1116 !important; border-color:#6b7482 !important; }
:is(body.terminal-market, html.terminal-market-embed) .toolbar-search ::placeholder, :is(body.terminal-market, html.terminal-market-embed) .toolbar-search-input::placeholder { color:#a2a9b4 !important; opacity:1; }
:is(body.terminal-market, html.terminal-market-embed) :is(.btn:focus,.btn:active:focus,.btn.active:focus) { box-shadow:none !important; }
:is(body.terminal-market, html.terminal-market-embed) :is(a,button,input,select,textarea,[tabindex]):focus-visible { outline:2px solid #e5b567 !important; outline-offset:3px; }
:is(body.terminal-market, html.terminal-market-embed) .search-section.toolbar-search svg path { fill:#a2a9b4; }
:is(body.terminal-market, html.terminal-market-embed) .search-section.toolbar-search:focus-within { border-color:#e5b567 !important; box-shadow:0 0 0 2px #e5b56720; }
.terminal-auth .switch-form { border-top-color:#2a2f38; }
.terminal-auth .message.info { background:#1b1f25; color:#e8eaed; border-color:#414854; box-shadow:none; }
/* Shared components (#2151). partials/trust-banner.ejs carries an inline <style> in <body>, after
   the head link to this file, with (0,1,0) selectors; the :is(...) prefix makes these (0,2,0) so
   they win on specificity, not source order or !important. The partial also renders on unthemed
   anonymous pages (no body class), which therefore keep the old gradient. `background` is the
   shorthand on purpose: it resets the partial's background-image gradient. Layout and padding are
   not touched (banner-safe-height guards pin them). */
:is(.terminal-public,.terminal-auth) .lg-trust-banner { background:#14171c; color:#e8eaed; border-bottom:1px solid #2a2f38; }
:is(.terminal-public,.terminal-auth) .lg-trust-banner__cta-primary { background:#e5b567; color:#18140d; }
:is(.terminal-public,.terminal-auth) .lg-trust-banner__cta-primary:hover { background:#f0c780; }
:is(.terminal-public,.terminal-auth) .lg-trust-banner__cta-secondary { color:#a2a9b4; }
:is(.terminal-public,.terminal-auth) .lg-trust-banner__cta-secondary:hover { color:#e8eaed; }
:is(.terminal-public,.terminal-auth) .lg-trust-banner__close { color:#a2a9b4; }
:is(.terminal-public,.terminal-auth) .lg-trust-banner .lg-trust-banner__close:hover { color:#e8eaed; }
/* Footer: per-page `.footer-risk` copies are pinned byte-identical (public-css-footer-risk-guard),
   so the override lives here at (0,2,1) rather than in those copies. */
.terminal-public footer .footer-risk { color:#a2a9b4; }
.terminal-public footer .footer-card h3 { color:#e8eaed; }
.terminal-public footer .footer-links a { color:#e5b567; }
.terminal-public footer .footer-links a:hover { color:#f0c780; }
/* The per-page inline `.skip-link:focus` is white on --primary, which is amber under this theme (~1.9:1). */
.terminal-public .skip-link:focus { background:#e5b567; color:#18140d; }
/* Mobile nav panel (public-base.css sets #0f131f at <1100px). */
.terminal-public .public-navigation[open] > .top-links { background:#14171c; }
/* end Shared components (#2151) */
/* Logged-in app shell (#2149). body.terminal-app is set statically by views/home.ejs (merged with
   the chat-home gate class) and views/profile-portfolio-positions.ejs. The tokens, body background
   and :focus-visible outline come from the shared blocks at the top of this file; this section only
   restyles shell chrome. Every selector is prefixed .terminal-app, so it wins on specificity (not
   !important or source order) over the page's inline <style> (0,1,0), the rules public/js/home-content.js
   injects at runtime (0,1,0) and public/css/home-chat.css (0,1,0), which loads AFTER this file
   (hence `body.terminal-app` on the .hchat-* rules, which are (0,2,0) for :hover/:disabled).
   Login-only (.terminal-auth) and public-chrome (.terminal-public) rules are not reused. Business
   colours stay page-owned and are deliberately not restyled here: the P&L red/green classes, the
   job-health success/failed/running cells, alert and failed-state badges, owner/subscriber badges,
   error text, completed checklist ticks and segments, the logout button, the unread marker.
   NOT covered: dark-theme.css (loaded by profile-portfolio-positions) declares form controls,
   .btn-primary, .modal-content and tables with !important, so those stay on its palette until that
   file is themed; the voice-assistant panel (voice-assistant.css). */
/* Sidebar, incl. the collapsed 70px rail (same element, .collapsed only changes width/opacity). */
.terminal-app .sidebar { background:var(--terminal-panel); color:var(--terminal-text); border-right-color:var(--terminal-line); backdrop-filter:none; }
.terminal-app .sidebar-header { background:#101318; border-bottom-color:var(--terminal-line); }
.terminal-app .sidebar-title { background:none; color:var(--terminal-accent); -webkit-text-fill-color:var(--terminal-accent); }
.terminal-app .sidebar-subtitle { color:var(--terminal-muted); }
.terminal-app .user-info { background:var(--terminal-panel); border-bottom-color:var(--terminal-line); }
.terminal-app .user-avatar { background:var(--terminal-accent); color:#18140d; }
.terminal-app .user-name { color:var(--terminal-text); }
.terminal-app .sidebar-menu { scrollbar-color:#414854 transparent; }
.terminal-app .sidebar-menu::-webkit-scrollbar-thumb { background:#414854; }
.terminal-app .menu-item { color:var(--terminal-muted); }
.terminal-app .menu-item::before { background:var(--terminal-accent); }
.terminal-app .menu-item:hover { background:var(--terminal-raised); color:var(--terminal-text); border-color:var(--terminal-line); }
.terminal-app .menu-item.active { background:var(--terminal-raised); color:var(--terminal-text); border-color:#5a4930; }
.terminal-app .menu-item.va-nav-entry { border-top-color:var(--terminal-line); }
.terminal-app .menu-arrow { color:var(--terminal-muted); }
.terminal-app .menu-item:hover .menu-arrow { color:var(--terminal-text); }
.terminal-app .submenu.show ~ .menu-item .menu-arrow,
.terminal-app .menu-item:has(+ .submenu.show) .menu-arrow { color:var(--terminal-accent); }
.terminal-app .submenu { background:#101318; border-left-color:var(--terminal-line); backdrop-filter:none; }
.terminal-app .submenu-item { color:var(--terminal-muted); }
.terminal-app .submenu-item::before { background:#414854; }
.terminal-app .submenu-item:hover { background:var(--terminal-raised); color:var(--terminal-text); }
.terminal-app .submenu-item:hover::before { background:var(--terminal-accent); }
.terminal-app .submenu-item.active { background:var(--terminal-raised); color:var(--terminal-text); border-left-color:var(--terminal-accent); }
.terminal-app .submenu-item.active::before { background:var(--terminal-accent); }
.terminal-app .sidebar-toggle { background:var(--terminal-accent); color:#18140d; box-shadow:none; }
.terminal-app .sidebar-toggle:hover { background:#f0c780; box-shadow:none; }
.terminal-app .content-area { background:var(--terminal-bg); border-color:var(--terminal-line); box-shadow:none; }
/* Home overview cards and panels (public/js/home-content.js). */
.terminal-app :is(.hc-stat-card,.hc-section,.hc-checklist-section,.hc-scenario-card,.hc-quick-tile,.hc-panel,.hc-skel-panel) { background:var(--terminal-panel); border-color:var(--terminal-line); border-radius:6px; }
.terminal-app .hc-stat-card--clickable:hover { background:var(--terminal-raised); border-color:var(--terminal-accent); }
.terminal-app :is(.hc-quick-tile,.hc-scenario-card):hover { border-color:var(--terminal-accent); }
.terminal-app :is(.hc-stat-card--clickable,.hc-quick-tile,.hc-scenario-cta-btn):focus { outline-color:var(--terminal-accent); }
.terminal-app .hc-skel-block { background:linear-gradient(90deg,#1b1f25 25%,#242a32 37%,#1b1f25 63%); background-size:400% 100%; }
.terminal-app :is(.hc-welcome,.hc-stat-value,.hc-section-title,.hc-panel-title,.hc-jh-num,.hc-scenario-title,.hc-modal-title,.hc-db-title,.hc-panel-item-title,.hc-activity-name,.hc-cl-label,.hc-stat-breakdown-count,.hc-quick-tile) { color:var(--terminal-text); }
.terminal-app :is(.hc-stat-label,.hc-stat-arrow,.hc-stat-empty,.hc-stat-breakdown,.hc-stat-breakdown-link,.hc-stat-breakdown-sep,.hc-empty-state,.hc-activity-item,.hc-activity-subname,.hc-activity-time,.hc-db-time,.hc-panel-empty,.hc-panel-item-meta,.hc-panel-op,.hc-panel-time,.hc-jh-label,.hc-checklist-progress-label,.hc-cl-done-link,.hc-cl-todo-icon,.hc-newuser-intro,.hc-scenario-subtitle,.hc-scenario-timing,.hc-modal-intro,.hc-modal-tip,.hc-modal-close,.hc-checklist-item--done .hc-cl-label,.hc-card-confirm-list) { color:var(--terminal-muted); }
.terminal-app :is(.hc-stat-icon,.hc-activity-icon,.hc-cl-step-icon,.hc-quick-icon,.hc-scenario-icon,.hc-panel-title i,.hc-cta-link,.hc-view-all,.hc-modal-link,.hc-cl-cta-btn) { color:var(--terminal-accent); }
.terminal-app .hc-cl-cta-btn { border-color:#5a4930; }
.terminal-app .hc-cl-cta-btn:hover { background:rgba(229,181,103,.12); }
.terminal-app .hc-stat-breakdown-link:hover { color:var(--terminal-accent); background:rgba(229,181,103,.08); }
.terminal-app .hc-stat-breakdown-link:hover .hc-stat-breakdown-count { color:var(--terminal-accent); }
.terminal-app .hc-cl-done-link:hover { color:var(--terminal-text); background:var(--terminal-raised); }
.terminal-app :is(.hc-activity-item,.hc-dashboard-item,.hc-checklist-item,.hc-panel-item) { border-bottom-color:var(--terminal-line); }
.terminal-app .hc-panel-footer { border-top-color:var(--terminal-line); }
.terminal-app :is(.hc-dashboard-item,.hc-panel-item):hover { background:var(--terminal-raised); }
.terminal-app .hc-progress-seg:not(.hc-progress-seg--done) { background:var(--terminal-line); }
.terminal-app :is(.hc-scenario-cta-btn,.hc-modal-btn--primary,.hc-modal-copy-btn:not(.hc-modal-copy-btn--done)) { background:var(--terminal-accent); color:#18140d; }
.terminal-app :is(.hc-scenario-cta-btn,.hc-modal-btn--primary,.hc-modal-copy-btn:not(.hc-modal-copy-btn--done)):hover:not(:disabled) { background:#f0c780; opacity:1; }
.terminal-app .hc-modal-btn--secondary { border-color:var(--terminal-line); color:var(--terminal-muted); }
.terminal-app .hc-modal-btn--secondary:hover { color:var(--terminal-text); border-color:var(--terminal-accent); }
.terminal-app .hc-modal-dialog { background:var(--terminal-panel); border-color:var(--terminal-line); border-radius:6px; }
.terminal-app .hc-modal-header { border-bottom-color:var(--terminal-line); }
.terminal-app .hc-modal-close:hover { color:var(--terminal-text); background:var(--terminal-raised); }
.terminal-app .hc-modal-cmd { background:var(--terminal-bg); border-color:var(--terminal-line); }
/* Chat home (public/css/home-chat.css): `body.terminal-app` so these beat its (0,2,0) :hover/:disabled. */
body.terminal-app .hchat { color:var(--terminal-text); }
body.terminal-app .hchat-greeting { color:var(--terminal-text); }
body.terminal-app .hchat-subtitle { color:var(--terminal-muted); }
body.terminal-app :is(.hchat-summary-chip,.hchat-chip,.hchat-card) { background:var(--terminal-panel); border-color:var(--terminal-line); color:var(--terminal-text); }
body.terminal-app .hchat-banner-reload { background:var(--terminal-raised); border-color:var(--terminal-line); color:var(--terminal-text); }
body.terminal-app :is(.hchat-summary-chip,.hchat-chip):hover { border-color:var(--terminal-accent); }
body.terminal-app .hchat-card:hover { background:var(--terminal-raised); border-color:var(--terminal-accent); }
body.terminal-app .hchat-card--connect { border-color:var(--terminal-accent); }
body.terminal-app .hchat-card-arrow { color:var(--terminal-accent); }
body.terminal-app .hchat-card:disabled { background:var(--terminal-raised); border-color:#414854; color:var(--terminal-muted); }
/* Product tour overlay (home.ejs inline <style>, all (0,1,0)-(0,2,0); the quiet button variant needs (0,3,0)).
   The success/warn status lines (.tour-tooltip-status) are status colours and stay page-owned. */
.terminal-app .tour-highlight-box { box-shadow:0 0 0 4000px rgba(0,0,0,.7), 0 0 0 3px var(--terminal-accent); }
.terminal-app :is(.tour-tooltip,.tour-end-callout) { background:var(--terminal-panel); border-color:var(--terminal-line); border-radius:6px; box-shadow:0 20px 50px rgba(0,0,0,.5); }
.terminal-app .tour-tooltip-arrow { background:var(--terminal-panel); border-color:var(--terminal-line); }
.terminal-app :is(.tour-tooltip-title,.tour-end-callout-title) { color:var(--terminal-text); }
.terminal-app :is(.tour-tooltip-content,.tour-end-callout-desc,.tour-tooltip-progress) { color:var(--terminal-muted); }
.terminal-app :is(.tour-btn-next:not(.tour-btn-quiet),.tour-btn-primary,.tour-end-callout-cta) { background:var(--terminal-accent); color:#18140d; box-shadow:none; }
.terminal-app :is(.tour-btn-next:not(.tour-btn-quiet),.tour-btn-primary):hover:not(:disabled) { background:#f0c780; box-shadow:none; transform:none; }
.terminal-app .tour-btn.tour-btn-quiet { background:var(--terminal-raised); color:var(--terminal-text); border-color:var(--terminal-line); }
.terminal-app .tour-btn-prev { background:var(--terminal-raised); color:var(--terminal-muted); border-color:var(--terminal-line); }
.terminal-app .tour-btn-prev:hover { color:var(--terminal-text); border-color:#414854; }
.terminal-app :is(.tour-btn-skip,.tour-end-callout-dismiss) { color:var(--terminal-muted); }
.terminal-app :is(.tour-btn-skip,.tour-end-callout-dismiss):hover { color:var(--terminal-text); }
.terminal-app .tour-btn:disabled { background:var(--terminal-raised); color:var(--terminal-muted); border-color:#6b7482; }
/* /profile-portfolio-positions: page-owned (no !important) chrome. Controls, buttons, modals and
   tables are dark-theme.css territory, see the NOT-covered note above. */
.terminal-app .page .panel { background:var(--terminal-panel); border-color:var(--terminal-line); border-radius:6px; }
.terminal-app .asset-tab-bar { border-bottom-color:var(--terminal-line); }
.terminal-app .asset-tab { color:var(--terminal-muted); }
.terminal-app .asset-tab:hover { color:var(--terminal-text); }
.terminal-app .asset-tab.active { color:var(--terminal-accent); border-bottom-color:var(--terminal-accent); }
.terminal-app :is(.kpi-card,.kpi-empty-banner) { background:var(--terminal-panel); border-color:var(--terminal-line); border-radius:6px; }
.terminal-app :is(.kpi-label,.kpi-sub,.kpi-empty-desc,.alloc-labels,.type-summary-label) { color:var(--terminal-muted); }
.terminal-app .kpi-empty-title { color:var(--terminal-text); }
.terminal-app .kpi-value:not(.pnl-positive):not(.pnl-negative) { color:var(--terminal-text); }
.terminal-app .type-summary-value:not(.pnl-positive):not(.pnl-negative):not(.pnl-neutral) { color:var(--terminal-text); }
.terminal-app .type-summary-strip { border-top-color:var(--terminal-line); }
.terminal-app :is(.attribution-section,.nav-history-section):not(.attribution-section--slim) { background:var(--terminal-raised); }
.terminal-app .attribution-tier1 .attr-return-cell.alpha-cell { border-left-color:var(--terminal-accent); background:rgba(229,181,103,.08); }
.terminal-app :is(.metric-help,.attribution-toggle):focus-visible { outline-color:var(--terminal-accent); }
/* end Logged-in app shell (#2149) */
