/* ==========================================================================
   Tradeal Pro — institutional dark terminal
   Palette: #080D19 / #10192A / #111D30, electric blue, violet, emerald,
   red, amber.  Density is controlled by [data-density].
   ========================================================================== */

:root {
  --tp-bg: #080D19;
  --tp-bg-2: #0B1424;
  --tp-sidebar: #0A1322;
  --tp-card: #111D30;
  --tp-card-2: #0E192B;
  --tp-card-3: #16243A;
  --tp-border: rgba(148, 163, 184, 0.13);
  --tp-border-strong: rgba(148, 163, 184, 0.22);
  --tp-text: #E6EDF7;
  --tp-text-2: #A9B7CC;
  --tp-muted: #6B7C96;
  --tp-blue: #3B82F6;
  --tp-blue-2: #38BDF8;
  --tp-purple: #8B5CF6;
  --tp-green: #10B981;
  --tp-green-2: #34D399;
  --tp-red: #EF4444;
  --tp-red-2: #F87171;
  --tp-amber: #F59E0B;
  --tp-amber-2: #FBBF24;
  --tp-grey: #94A3B8;
  --tp-shadow: 0 8px 26px rgba(2, 6, 23, 0.34);
  --tp-glow-blue: 0 0 0 1px rgba(59, 130, 246, 0.16), 0 8px 28px rgba(37, 99, 235, 0.10);
  --tp-radius: 12px;
  --tp-gap: 12px;
  --tp-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tp-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --tp-header-h: 70px;
  --tp-sidebar-w: 198px;
  --tp-sidebar-collapsed: 72px;
  --tp-pad: 14px;
  --tp-row-h: 28px;
  --tp-font-sm: 11px;
}

[data-density="comfortable"] {
  --tp-pad: 18px;
  --tp-gap: 14px;
  --tp-row-h: 32px;
  --tp-font-sm: 12px;
}

[data-density="expanded"] {
  --tp-pad: 22px;
  --tp-gap: 18px;
  --tp-row-h: 38px;
  --tp-font-sm: 13px;
}

[data-theme="tradeal-light"] {
  --tp-bg: #F4F7FB;
  --tp-bg-2: #ECF2F9;
  --tp-sidebar: #FFFFFF;
  --tp-card: #FFFFFF;
  --tp-card-2: #F7FAFE;
  --tp-card-3: #EEF4FB;
  --tp-border: rgba(15, 23, 42, 0.10);
  --tp-border-strong: rgba(15, 23, 42, 0.18);
  --tp-text: #0F172A;
  --tp-text-2: #42526A;
  --tp-muted: #64748B;
  --tp-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--tp-bg);
  color: var(--tp-text);
  font-family: var(--tp-font);
  font-size: 12px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.icon { width: 16px; height: 16px; fill: currentColor; stroke: none; flex: 0 0 auto; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.hidden { display: none !important; }
.text-green { color: var(--tp-green) !important; }
.text-red { color: var(--tp-red) !important; }
.text-amber { color: var(--tp-amber) !important; }
.text-blue { color: var(--tp-blue) !important; }
.muted-cell { text-align: center; color: var(--tp-muted); padding: 18px 8px !important; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.dot-green { background: var(--tp-green); box-shadow: 0 0 0 3px rgba(16,185,129,.10); }
.dot-red { background: var(--tp-red); box-shadow: 0 0 0 3px rgba(239,68,68,.10); }
.dot-grey { background: var(--tp-grey); }
.dot-purple { background: var(--tp-purple); }
.dot-blue { background: var(--tp-blue); }
.dot-orange { background: var(--tp-amber); }

/* ── App shell ─────────────────────────────────────────────────────────── */
.tp-app { min-height: 100vh; }
.tp-header {
  position: fixed; inset: 0 0 auto 0; height: var(--tp-header-h); z-index: 60;
  display: grid; grid-template-columns: auto minmax(180px, 1fr) auto;
  align-items: center; gap: 18px; padding: 0 20px;
  background: rgba(8, 13, 25, 0.94);
  border-bottom: 1px solid var(--tp-border);
  backdrop-filter: blur(16px);
}
[data-theme="tradeal-light"] .tp-header { background: rgba(255,255,255,.94); }
.tp-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tp-logo { width: 40px; height: 34px; flex: 0 0 auto; }
.tp-logo svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 3px 8px rgba(34,197,94,.18)); }
.tp-brand-text { min-width: 0; }
.tp-brand-name {
  font-size: 20px; font-weight: 800; letter-spacing: -.035em; line-height: 1.05;
  color: #fff; white-space: nowrap;
}
.tp-brand-name span { color: var(--tp-amber); }
[data-theme="tradeal-light"] .tp-brand-name { color: #0F172A; }
.tp-brand-tag {
  color: var(--tp-muted); font-size: 8px; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; white-space: nowrap; margin-top: 3px;
}
.tp-search {
  position: relative; display: flex; align-items: center; gap: 9px;
  width: 100%; max-width: 520px; min-width: 0; box-sizing: border-box;
  height: 38px; padding: 0 12px; border: 1px solid var(--tp-border-strong);
  border-radius: 10px; background: rgba(16, 27, 46, 0.74); transition: border .16s, box-shadow .16s;
}
[data-theme="tradeal-light"] .tp-search { background: #fff; }
.tp-search:focus-within { border-color: rgba(59,130,246,.72); box-shadow: var(--tp-glow-blue); }
.tp-search > .icon { color: var(--tp-blue-2); width: 17px; height: 17px; }
.tp-search input {
  flex: 1; min-width: 0; border: 0; outline: 0; color: var(--tp-text);
  background: transparent; font-size: 12px; font-weight: 500;
}
.tp-search input::placeholder { color: #63748D; }
.tp-search kbd {
  border: 1px solid var(--tp-border-strong); border-radius: 4px; padding: 1px 5px;
  color: var(--tp-muted); font-size: 9px; font-family: var(--tp-mono);
}
.tp-search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 7px); z-index: 80;
  background: var(--tp-card); border: 1px solid var(--tp-border-strong);
  border-radius: 10px; box-shadow: var(--tp-shadow); overflow: hidden;
}
.tp-search-result {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 8px 11px; border: 0; background: transparent;
  color: var(--tp-text); text-align: left; font-size: 11px;
}
.tp-search-result:hover, .tp-search-result.active { background: var(--tp-card-3); }
.tp-search-result small { color: var(--tp-muted); }
.tp-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; min-width: 0; }
.tp-exchange {
  display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--tp-border);
  border-radius: 7px; background: var(--tp-card-2); padding: 0 6px; height: 30px;
}
.tp-exchange select {
  appearance: none; border: 0; outline: 0; background: transparent; color: var(--tp-text-2);
  font-size: 10px; font-weight: 800; padding: 0 2px; cursor: pointer;
}
.tp-exchange .icon { width: 12px; height: 12px; color: var(--tp-muted); pointer-events: none; }
.tp-live-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px;
  border-radius: 999px; border: 1px solid rgba(16,185,129,.28);
  background: rgba(16,185,129,.10); color: var(--tp-green-2);
  font-size: 10px; font-weight: 800; white-space: nowrap;
}
.tp-live-pill .dot { background: var(--tp-green); animation: tpPulse 2s infinite; }
.tp-live-pill.closed { border-color: rgba(148,163,184,.25); background: rgba(148,163,184,.08); color: var(--tp-grey); }
.tp-live-pill.closed .dot { background: var(--tp-grey); animation: none; }
.tp-clock { color: var(--tp-text-2); font-family: var(--tp-mono); font-size: 10px; font-weight: 600; white-space: nowrap; }
.tp-conn {
  display: inline-flex; align-items: center; gap: 5px; color: var(--tp-muted);
  font-size: 9px; font-weight: 700; white-space: nowrap;
}
.tp-conn-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--tp-grey); }
.tp-conn.live { color: var(--tp-green-2); }
.tp-conn.live .tp-conn-dot { background: var(--tp-green); box-shadow: 0 0 0 3px rgba(16,185,129,.1); }
.tp-conn.delayed { color: var(--tp-amber); }
.tp-conn.delayed .tp-conn-dot { background: var(--tp-amber); }
.tp-conn.offline { color: var(--tp-red-2); }
.tp-conn.offline .tp-conn-dot { background: var(--tp-red); }
.tp-icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 30px; height: 30px;
  border: 1px solid transparent; border-radius: 8px; background: transparent;
  color: var(--tp-text-2); transition: background .15s, color .15s, border-color .15s;
}
.tp-icon-btn:hover { background: var(--tp-card-3); color: var(--tp-text); border-color: var(--tp-border); }
.tp-badge {
  position: absolute; right: -3px; top: -4px; min-width: 15px; height: 15px; padding: 0 4px;
  border-radius: 999px; background: var(--tp-red); color: #fff; font-size: 8px;
  font-weight: 800; display: grid; place-items: center; border: 2px solid var(--tp-bg);
}
.tp-profile {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 7px 0 3px;
  border: 1px solid var(--tp-border); border-radius: 999px; background: var(--tp-card-2);
  color: var(--tp-text); font-size: 10px; font-weight: 700;
}
.tp-avatar {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #3b82f6); color: #fff;
  font-size: 11px; font-weight: 800;
}
.tp-profile-name { max-width: 78px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-profile .icon { width: 11px; height: 11px; color: var(--tp-muted); }

/* ── Sidebar ───────────────────────────────────────────────────────────── */
.tp-sidebar {
  position: fixed; left: 0; top: var(--tp-header-h); bottom: 0; z-index: 50;
  width: var(--tp-sidebar-w); display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--tp-sidebar) 0%, #080F1C 100%);
  border-right: 1px solid var(--tp-border); padding: 10px 9px 12px;
  transition: width .18s ease;
}
[data-theme="tradeal-light"] .tp-sidebar { background: var(--tp-sidebar); }
.tp-collapse {
  align-self: flex-end; display: grid; place-items: center; width: 22px; height: 22px;
  border: 1px solid var(--tp-border); border-radius: 6px; background: var(--tp-card-2);
  color: var(--tp-muted); margin: 0 3px 7px 0;
}
.tp-collapse svg { width: 13px; height: 13px; transition: transform .18s; }
.tp-nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; scrollbar-width: thin; }
.tp-nav::-webkit-scrollbar { width: 4px; }
.tp-nav::-webkit-scrollbar-thumb { background: var(--tp-border-strong); border-radius: 4px; }
.tp-nav-item {
  position: relative; display: flex; align-items: center; gap: 10px; width: 100%;
  height: 38px; padding: 0 11px; border: 0; border-radius: 8px; background: transparent;
  color: #8FA1BA; font-size: 11px; font-weight: 700; text-align: left; white-space: nowrap;
  transition: background .14s, color .14s, box-shadow .14s;
}
.tp-nav-item .icon { width: 17px; height: 17px; color: #7085A3; }
.tp-nav-item:hover { background: rgba(59,130,246,.08); color: var(--tp-text); }
.tp-nav-item.active {
  background: linear-gradient(90deg, #2563EB 0%, #1D4ED8 100%);
  color: #fff; box-shadow: 0 6px 16px rgba(37,99,235,.24);
}
.tp-nav-item.active .icon { color: #fff; }
.tp-nav-item.active::before {
  content: ""; position: absolute; left: -9px; top: 8px; bottom: 8px; width: 3px;
  border-radius: 0 3px 3px 0; background: #60A5FA;
}
.tp-upgrade {
  margin: auto 2px 8px; padding: 13px 11px 12px; text-align: center;
  border: 1px solid rgba(245,158,11,.35); border-radius: 11px;
  background:
    radial-gradient(circle at 20% 0%, rgba(245,158,11,.14), transparent 55%),
    linear-gradient(160deg, rgba(245,158,11,.10), rgba(17,29,48,.65));
}
.tp-crown { font-size: 21px; line-height: 1; color: var(--tp-amber-2); margin-bottom: 4px; }
.tp-upgrade-title { font-size: 12px; font-weight: 800; color: #FDE68A; }
.tp-upgrade-desc { font-size: 8.5px; color: #B9A574; margin: 3px 0 9px; }
.tp-upgrade-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 7px;
  height: 29px; border: 0; border-radius: 7px; background: var(--tp-amber);
  color: #21160A; font-size: 10px; font-weight: 800;
}
.tp-upgrade-btn:hover { background: var(--tp-amber-2); }
.tp-side-footer { display: flex; gap: 6px; padding: 0 2px; }
.tp-side-mode {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px;
  height: 30px; border: 1px solid var(--tp-border); border-radius: 8px;
  background: var(--tp-card-2); color: var(--tp-muted); font-size: 8.5px; font-weight: 700;
}
.tp-side-mode:hover { color: var(--tp-text); border-color: var(--tp-border-strong); }
.tp-mode-icon { font-size: 13px; }
.tp-side-classic { color: #7DD3FC; border-color: rgba(56,189,248,.2); }

/* Collapsed sidebar */
body.tp-sidebar-collapsed .tp-sidebar { width: var(--tp-sidebar-collapsed); padding-left: 8px; padding-right: 8px; }
body.tp-sidebar-collapsed .tp-header { grid-template-columns: auto minmax(180px, 1fr) auto; }
body.tp-sidebar-collapsed .tp-main { margin-left: var(--tp-sidebar-collapsed); }
body.tp-sidebar-collapsed .tp-brand-text,
body.tp-sidebar-collapsed .tp-nav-item span,
body.tp-sidebar-collapsed .tp-upgrade,
body.tp-sidebar-collapsed .tp-mode-label { display: none; }
body.tp-sidebar-collapsed .tp-nav-item { justify-content: center; padding: 0; }
body.tp-sidebar-collapsed .tp-collapse svg { transform: rotate(180deg); }
body.tp-sidebar-collapsed .tp-side-footer { flex-direction: column; }
body.tp-sidebar-collapsed .tp-side-mode { flex: none; width: 100%; }

/* ── Main ──────────────────────────────────────────────────────────────── */
.tp-main {
  margin-left: var(--tp-sidebar-w); padding: calc(var(--tp-header-h) + 12px) 18px 30px;
  min-height: 100vh; transition: margin-left .18s ease;
}
.tp-data-banner {
  display: flex; align-items: center; gap: 8px; min-height: 28px; padding: 6px 11px;
  border: 1px solid rgba(59,130,246,.16); border-radius: 8px;
  background: linear-gradient(90deg, rgba(59,130,246,.08), rgba(139,92,246,.04));
  color: #94A9C6; font-size: 9.5px; font-weight: 600; margin-bottom: 12px;
}
.tp-data-banner .icon { width: 13px; height: 13px; color: var(--tp-blue-2); }
.tp-data-banner.tp-banner-error {
  border-color: rgba(239,68,68,.3);
  background: linear-gradient(90deg, rgba(239,68,68,.10), rgba(245,158,11,.05));
  color: #F3C0C0;
}
.tp-data-banner.tp-banner-error .icon { color: var(--tp-red-2); }
.tp-banner-right { margin-left: auto; color: var(--tp-muted); font-size: 9px; white-space: nowrap; }
.tp-page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 0 1px 12px; }
.tp-page-head h1 { margin: 0; font-size: 19px; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; }
.tp-page-head p { margin: 3px 0 0; color: var(--tp-muted); font-size: 10px; font-weight: 500; }
.tp-page-head-actions { display: flex; align-items: center; gap: 10px; }
.tp-timestamp { color: var(--tp-muted); font-size: 9.5px; font-family: var(--tp-mono); }
.tp-ghost-btn {
  display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px;
  border: 1px solid var(--tp-border); border-radius: 7px; background: var(--tp-card-2);
  color: var(--tp-text-2); font-size: 10px; font-weight: 700;
}
.tp-ghost-btn:hover { border-color: rgba(59,130,246,.4); color: var(--tp-blue-2); }
.tp-ghost-btn .icon { width: 13px; height: 13px; }
.tp-primary-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; height: 31px; border: 0; border-radius: 7px;
  background: linear-gradient(90deg, #4F46E5, #7C3AED); color: #fff;
  font-size: 10px; font-weight: 800; box-shadow: 0 6px 14px rgba(79,70,229,.18);
}
.tp-primary-btn:hover { filter: brightness(1.09); }
.tp-link-btn { text-decoration: none; margin-top: 8px; }
.tp-text-btn { border: 0; background: transparent; color: var(--tp-blue-2); font-size: 9.5px; font-weight: 700; padding: 2px; }

/* ── Cards ─────────────────────────────────────────────────────────────── */
.tp-card {
  position: relative; min-width: 0; padding: var(--tp-pad); border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius); background: var(--tp-card); box-shadow: var(--tp-shadow);
  overflow: hidden;
}
.tp-card::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148,163,184,.12), transparent);
  pointer-events: none;
}
.tp-card-head, .tp-chain-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; margin-bottom: 10px;
}
.tp-card-title { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.tp-card-title > div { min-width: 0; }
.tp-card-title h2 {
  margin: 0; font-size: 12px; line-height: 1.15; font-weight: 800; letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tp-card-title p { margin: 2px 0 0; color: var(--tp-muted); font-size: 8.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-title-icon { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; font-size: 12px; flex: 0 0 auto; }
.tp-title-amber { color: var(--tp-amber-2); background: rgba(245,158,11,.12); }
.tp-title-blue { color: #60A5FA; background: rgba(59,130,246,.12); }
.tp-title-purple { color: #C4B5FD; background: rgba(139,92,246,.13); }
.tp-live-mini {
  border: 1px solid rgba(16,185,129,.2); border-radius: 999px; padding: 2px 7px;
  color: var(--tp-green-2); background: rgba(16,185,129,.07);
  font-size: 7.5px; font-weight: 800; white-space: nowrap;
}
.tp-mini-badge {
  border: 1px solid rgba(245,158,11,.25); border-radius: 999px; padding: 2px 6px;
  color: var(--tp-amber-2); background: rgba(245,158,11,.07); font-size: 7px; font-weight: 800; white-space: nowrap;
}
.tp-index-grid {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--tp-gap); margin-bottom: var(--tp-gap);
}
.tp-index-card { padding: 10px 12px 9px; cursor: pointer; transition: border-color .15s, transform .15s; }
.tp-index-card:hover { border-color: rgba(59,130,246,.35); transform: translateY(-1px); }
.tp-index-top { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.tp-index-name { color: #91A2BA; font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.tp-index-time { color: #5E718C; font-size: 7.5px; font-family: var(--tp-mono); }
.tp-index-value { margin-top: 4px; font-size: 19px; line-height: 1; font-weight: 800; letter-spacing: -.025em; color: #F8FAFC; }
.tp-index-change { margin-top: 3px; font-size: 10.5px; font-weight: 700; color: var(--tp-muted); }
.tp-index-change.up { color: var(--tp-green-2); }
.tp-index-change.down { color: var(--tp-red-2); }
.tp-index-meta { margin-top: 4px; color: #5C6E88; font-size: 7.8px; font-family: var(--tp-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-spark { height: 22px; margin: 3px 0 0; }
.tp-spark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.tp-account-card { border-color: rgba(139,92,246,.22); background: linear-gradient(110deg, rgba(139,92,246,.10), rgba(17,29,48,.84) 58%); }
.tp-account-card:nth-of-type(6) { border-color: rgba(59,130,246,.22); background: linear-gradient(110deg, rgba(59,130,246,.10), rgba(17,29,48,.84) 58%); }
.tp-acc-head { display: flex; align-items: center; gap: 7px; }
.tp-acc-avatar {
  display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px;
  background: rgba(139,92,246,.18); color: #C4B5FD; font-size: 9px; font-weight: 800;
}
.tp-account-card:nth-of-type(6) .tp-acc-avatar { background: rgba(59,130,246,.17); color: #93C5FD; }
.tp-acc-title { font-size: 9.5px; font-weight: 800; }
.tp-acc-sub { color: var(--tp-muted); font-size: 7.5px; margin-top: 1px; }
.tp-acc-badge { margin-left: auto; color: var(--tp-green-2); background: rgba(16,185,129,.1); border-radius: 4px; padding: 2px 4px; font-size: 7px; font-weight: 800; }
.tp-acc-value { margin-top: 7px; font-size: 18px; font-weight: 800; letter-spacing: -.03em; }
.tp-acc-change { margin-top: 2px; color: var(--tp-green-2); font-size: 9px; font-weight: 700; }

/* ── Metric deck ───────────────────────────────────────────────────────── */
.tp-metric-grid {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--tp-gap); margin-bottom: var(--tp-gap);
}
.tp-metric-card { display: flex; align-items: center; gap: 10px; min-height: 91px; padding: 10px 11px; }
.tp-ring, .tp-breadth-ring, .tp-gauge, .tp-oi-donut, .tp-portfolio-donut {
  --p: 50; --ring: var(--tp-purple);
  position: relative; flex: 0 0 auto; width: 64px; height: 64px; border-radius: 50%;
  background: conic-gradient(var(--ring) calc(var(--p) * 1%), rgba(148,163,184,.13) 0);
  display: grid; place-items: center;
}
.tp-ring::before, .tp-breadth-ring::before, .tp-oi-donut::before, .tp-portfolio-donut::before {
  content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--tp-card);
}
.tp-ring::after, .tp-breadth-ring::after, .tp-oi-donut::after, .tp-portfolio-donut::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: inset 0 0 14px rgba(0,0,0,.16); pointer-events: none;
}
.tp-ring-inner, .tp-breadth-inner, .tp-oi-donut > div, .tp-portfolio-donut > div {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 50px; height: 50px; text-align: center;
}
.tp-ring-inner strong, .tp-breadth-inner strong, .tp-oi-donut strong, .tp-portfolio-donut strong {
  font-size: 12px; line-height: 1; font-weight: 800; color: #F8FAFC;
}
.tp-ring-inner span, .tp-breadth-inner span, .tp-oi-donut span, .tp-portfolio-donut span {
  margin-top: 2px; color: #8EA2BE; font-size: 6.5px; font-weight: 700; line-height: 1.05; max-width: 44px;
}
.tp-ring-amber { --ring: var(--tp-amber); }
.tp-ring-blue { --ring: var(--tp-blue); }
.tp-metric-copy { min-width: 0; flex: 1; }
.tp-metric-label { color: #8EA1BB; font-size: 8.5px; font-weight: 800; letter-spacing: .01em; }
.tp-metric-value { margin-top: 1px; color: #F8FAFC; font-size: 17px; line-height: 1.12; font-weight: 800; letter-spacing: -.025em; }
.tp-metric-sub { margin-top: 1px; color: #657895; font-size: 7.8px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-pill {
  display: inline-flex; align-items: center; margin-top: 4px; padding: 2px 6px; border-radius: 4px;
  background: rgba(16,185,129,.10); color: var(--tp-green-2); font-size: 7.5px; font-weight: 800;
}
.tp-pill-muted { background: rgba(148,163,184,.09); color: var(--tp-text-2); }
.tp-pill-red { background: rgba(239,68,68,.10); color: var(--tp-red-2); }
.tp-gauge { width: 64px; height: 64px; background: transparent; }
.tp-gauge svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tp-gauge-track { fill: none; stroke: rgba(148,163,184,.14); stroke-width: 5; }
.tp-gauge-fill { fill: none; stroke: var(--tp-purple); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 33 132; transform: rotate(135deg); transform-origin: 50% 50%; }
.tp-gauge-needle { stroke: var(--tp-purple); stroke-width: 2; stroke-linecap: round; transform-origin: 26px 26px; }
.tp-gauge-hub { fill: var(--tp-card); stroke: var(--tp-purple); stroke-width: 1.5; }
.tp-gauge-value { position: absolute; inset: 0; display: grid; place-items: center; padding-top: 8px; font-size: 10.5px; font-weight: 800; color: #F8FAFC; z-index: 2; }
.tp-greeks-card { gap: 8px; }
.tp-mini-emblem {
  display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 auto;
  border-radius: 50%; background: rgba(139,92,246,.13); color: #C4B5FD; font-size: 19px; font-weight: 800;
}
.tp-mini-emblem-blue { background: rgba(59,130,246,.13); color: #93C5FD; }
.tp-greeks-grid {
  display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 1px 7px; margin-top: 4px;
  font-size: 7.7px; color: #71839E;
}
.tp-greeks-grid span:nth-child(even) { color: #DCE7F6; font-family: var(--tp-mono); font-weight: 600; }
.tp-greeks-grid strong { color: #DCE7F6; font-family: var(--tp-mono); font-weight: 600; }
.tp-fiidii-card { gap: 8px; }
.tp-fiidii-row { display: flex; justify-content: space-between; gap: 8px; font-size: 8.5px; color: #7E90AB; margin-top: 4px; }
.tp-fiidii-row strong { font-family: var(--tp-mono); color: #DCE7F6; font-size: 10px; }
.tp-fiidii-note { margin-top: 4px; color: #5D708C; font-size: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Option chain layout ───────────────────────────────────────────────── */
.tp-chain-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 318px;
  gap: var(--tp-gap); align-items: stretch; margin-bottom: var(--tp-gap);
}
.tp-chain-card { padding: 0; display: flex; flex-direction: column; min-height: 520px; }
.tp-chain-head { margin: 0; padding: 11px 12px 9px; border-bottom: 1px solid var(--tp-border); align-items: center; }
.tp-chain-head .tp-card-title h2 { font-size: 13px; }
.tp-chain-controls { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.tp-select-sm {
  position: relative; display: inline-flex; align-items: center; height: 27px;
  border: 1px solid var(--tp-border); border-radius: 6px; background: var(--tp-card-2); padding: 0 4px 0 7px;
}
.tp-select-sm select {
  appearance: none; border: 0; outline: 0; background: transparent; color: var(--tp-text-2);
  font-size: 9px; font-weight: 700; padding: 0 13px 0 0; max-width: 110px; cursor: pointer;
}
.tp-select-sm .icon { position: absolute; right: 4px; width: 11px; height: 11px; color: var(--tp-muted); pointer-events: none; }
.tp-feed-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--tp-muted); margin-left: 1px; }
.tp-feed-dot.live { background: var(--tp-green); box-shadow: 0 0 0 3px rgba(16,185,129,.11); }
.tp-feed-dot.stale { background: var(--tp-amber); }
.tp-feed-dot.offline { background: var(--tp-red); }
.tp-chain-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 7px 12px; border-bottom: 1px solid var(--tp-border); background: rgba(8,13,25,.24);
}
.tp-seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: 6px; background: rgba(148,163,184,.07); }
.tp-seg-btn {
  border: 0; border-radius: 5px; background: transparent; color: #788BA7;
  font-size: 8.5px; font-weight: 800; padding: 4px 8px;
}
.tp-seg-btn.active { background: var(--tp-card-3); color: var(--tp-blue-2); box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.tp-chain-tools { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.tp-chip-btn {
  height: 23px; border: 1px solid var(--tp-border); border-radius: 5px; background: var(--tp-card-2);
  color: #7E91AD; font-size: 8px; font-weight: 700; padding: 0 6px;
}
.tp-chip-btn:hover { color: var(--tp-text); border-color: var(--tp-border-strong); }
.tp-chip-btn.active { color: var(--tp-blue-2); border-color: rgba(56,189,248,.35); background: rgba(56,189,248,.08); }
.tp-chain-search {
  display: inline-flex; align-items: center; gap: 3px; height: 23px; padding: 0 5px;
  border: 1px solid var(--tp-border); border-radius: 5px; background: var(--tp-card-2);
}
.tp-chain-search .icon { width: 11px; height: 11px; color: var(--tp-muted); }
.tp-chain-search input { width: 43px; border: 0; outline: 0; background: transparent; color: var(--tp-text); font-size: 8.5px; font-family: var(--tp-mono); }
.tp-col-wrap { position: relative; }
.tp-col-menu {
  position: absolute; right: 0; top: calc(100% + 5px); z-index: 40; width: 168px;
  padding: 6px; border: 1px solid var(--tp-border-strong); border-radius: 8px;
  background: var(--tp-card); box-shadow: var(--tp-shadow);
}
.tp-col-menu label { display: flex; align-items: center; gap: 6px; padding: 4px 5px; border-radius: 4px; color: var(--tp-text-2); font-size: 9px; }
.tp-col-menu label:hover { background: var(--tp-card-3); }
.tp-col-menu input { accent-color: var(--tp-blue); }
.tp-chain-scroll { flex: 1; overflow: auto; max-height: 430px; scrollbar-width: thin; scrollbar-color: rgba(148,163,184,.25) transparent; }
.tp-chain-scroll::-webkit-scrollbar { width: 6px; height: 6px; }
.tp-chain-scroll::-webkit-scrollbar-thumb { background: rgba(148,163,184,.22); border-radius: 4px; }
.tp-chain-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: auto; font-size: 9px; }
.tp-chain-table th {
  position: sticky; top: 0; z-index: 3; background: #0D182A;
  color: #7F92AE; font-size: 7.5px; font-weight: 800; letter-spacing: .02em; text-align: right;
  padding: 6px 6px; border-bottom: 1px solid var(--tp-border-strong); white-space: nowrap;
}
/* Two sticky header rows must stack, not overlap. */
.tp-chain-table thead tr:nth-child(2) th { top: 24px; z-index: 2; }
[data-theme="tradeal-light"] .tp-chain-table th { background: #F1F6FC; color: #475569; }
.tp-chain-table th.tp-th-calls { color: #93C5FD; background: #0F1D33; }
.tp-chain-table th.tp-th-puts { color: #C4B5FD; background: #131A34; }
.tp-chain-table th.tp-th-strike { text-align: center; color: #FBBF24; background: #171D2C; }
.tp-chain-table td {
  height: var(--tp-row-h); padding: 2px 6px; text-align: right; white-space: nowrap;
  border-bottom: 1px solid rgba(148,163,184,.055); color: #C9D6E8;
  font-family: var(--tp-mono); font-size: 8.6px; font-weight: 500;
}
.tp-chain-table tbody tr:hover td { background: rgba(59,130,246,.055); }
.tp-chain-table td.tp-td-strike {
  text-align: center; color: #F8FAFC; background: #141D2F; font-weight: 800;
  border-left: 1px solid rgba(148,163,184,.09); border-right: 1px solid rgba(148,163,184,.09);
}
.tp-chain-table tr.tp-atm td { background: rgba(245,158,11,.13) !important; border-bottom-color: rgba(245,158,11,.18); }
.tp-chain-table tr.tp-atm td.tp-td-strike { background: #B8860B !important; color: #0B1220; box-shadow: inset 0 0 0 1px #FCD34D; }
.tp-chain-table tr.tp-atm td.tp-td-strike .tp-atm-tag { color: #0B1220; background: #FDE68A; }
.tp-chain-table tr.tp-itm-call td.tp-call-side { background: rgba(59,130,246,.055); }
.tp-chain-table tr.tp-itm-put td.tp-put-side { background: rgba(139,92,246,.055); }
.tp-chain-table td.tp-td-calls { background-color: transparent; }
.tp-chain-table td.tp-td-puts { background-color: transparent; }
.tp-chain-table .tp-oi-cell { position: relative; overflow: hidden; }
.tp-chain-table .tp-oi-cell .tp-oi-bar {
  position: absolute; right: 2px; top: 5px; bottom: 5px; border-radius: 2px;
  background: rgba(59,130,246,.20); z-index: 0; pointer-events: none;
}
.tp-chain-table .tp-put-side .tp-oi-cell .tp-oi-bar { background: rgba(139,92,246,.20); }
.tp-chain-table .tp-oi-cell span { position: relative; z-index: 1; }
.tp-chain-table .tp-num-pos { color: var(--tp-green-2); }
.tp-chain-table .tp-num-neg { color: var(--tp-red-2); }
.tp-chain-table .tp-num-neutral { color: #8295B0; }
.tp-chain-table .tp-bid { color: #7DD3FC; }
.tp-chain-table .tp-ask { color: #F0ABFC; }
[data-theme="tradeal-light"] .tp-chain-table td { color: #1E293B; border-bottom-color: rgba(15,23,42,.07); }
[data-theme="tradeal-light"] .tp-chain-table tbody tr:hover td { background: rgba(59,130,246,.07); }
[data-theme="tradeal-light"] .tp-chain-table td.tp-td-strike { background: #E2E8F0; color: #0F172A; border-color: rgba(15,23,42,.10); }
[data-theme="tradeal-light"] .tp-chain-table tr.tp-atm td { background: rgba(245,158,11,.18) !important; }
[data-theme="tradeal-light"] .tp-chain-table tr.tp-atm td.tp-td-strike { background: #B8860B !important; color: #0B1220; }
[data-theme="tradeal-light"] .tp-chain-table .tp-num-neutral { color: #64748B; }
[data-theme="tradeal-light"] .tp-chain-table .tp-bid { color: #0369A1; }
[data-theme="tradeal-light"] .tp-chain-table .tp-ask { color: #A21CAF; }
[data-theme="tradeal-light"] .tp-chain-table .tp-oi-cell .tp-oi-bar { background: rgba(59,130,246,.24); }
[data-theme="tradeal-light"] .tp-chain-table .tp-put-side .tp-oi-cell .tp-oi-bar { background: rgba(139,92,246,.24); }
[data-theme="tradeal-light"] .tp-chain-foot { color: #64748B; }
[data-theme="tradeal-light"] .tp-chain-foot strong { color: #0F172A; }
[data-theme="tradeal-light"] .tp-expand-row td { background: #F1F6FC !important; }
[data-theme="tradeal-light"] .tp-expand-box { color: #475569; }
[data-theme="tradeal-light"] .tp-expand-box strong { color: #0F172A; }
[data-theme="tradeal-light"] .tp-greeks-grid span:nth-child(even) { color: #0F172A; }
.tp-atm-tag { display: inline-block; margin-left: 3px; padding: 1px 3px; border-radius: 3px; background: var(--tp-amber); color: #171006; font-size: 5.5px; font-weight: 800; vertical-align: 1px; }
.tp-wall-tag { display: inline-block; margin-left: 2px; color: var(--tp-amber-2); font-size: 6px; font-weight: 800; }
.tp-expand-row td { padding: 0 !important; background: #0B1627 !important; }
.tp-expand-box { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; padding: 9px 12px; color: #8FA3BF; font-size: 8.5px; }
.tp-expand-box strong { display: block; color: #D9E5F5; font-size: 9px; font-family: var(--tp-mono); margin-top: 2px; }
.tp-chain-foot {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 7px 12px;
  border-top: 1px solid var(--tp-border); color: #70839E; font-size: 8px;
}
.tp-chain-foot strong { color: #D5E2F2; font-family: var(--tp-mono); font-weight: 600; }
.tp-foot-right { margin-left: auto; white-space: nowrap; }
.tp-empty-cell { height: 260px !important; text-align: center !important; }
.tp-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--tp-muted); }
.tp-empty strong { color: var(--tp-text-2); font-size: 10px; }
.tp-empty span { font-size: 8.5px; }

/* Right rail */
.tp-right-rail { display: flex; flex-direction: column; gap: var(--tp-gap); min-width: 0; }
.tp-overview-card { flex: 1; }
.tp-breadth-wrap { display: flex; align-items: center; gap: 14px; margin: 3px 0 8px; }
.tp-breadth-ring { width: 92px; height: 92px; }
.tp-breadth-ring::before { inset: 7px; }
.tp-breadth-inner { width: 70px; height: 70px; }
.tp-breadth-inner strong { font-size: 18px; }
.tp-breadth-inner span { font-size: 7px; max-width: 60px; }
.tp-breadth-stats { display: flex; flex-direction: column; gap: 7px; min-width: 0; flex: 1; font-size: 8.5px; color: #8496B0; }
.tp-breadth-stats div { display: flex; align-items: center; gap: 5px; }
.tp-breadth-stats strong { margin-left: auto; color: #E1EAF7; font-family: var(--tp-mono); font-size: 10px; }
.tp-breadth-hist { display: flex; align-items: flex-end; gap: 5px; height: 48px; padding: 2px 1px 0; border-bottom: 1px solid var(--tp-border); }
.tp-breadth-bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; min-width: 0; height: 100%; }
.tp-breadth-bar i { display: block; min-height: 2px; border-radius: 2px 2px 0 0; background: var(--tp-green); opacity: .78; }
.tp-breadth-bar.down i { background: var(--tp-red); }
.tp-breadth-bar span { color: #627590; font-size: 5.5px; text-align: center; white-space: nowrap; }
.tp-breadth-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; color: #617590; font-size: 7px; }
.tp-builder-card { flex: 0 0 auto; }
.tp-builder-chart { height: 72px; margin: 0 0 6px; }
.tp-builder-chart svg { width: 100%; height: 100%; }
.tp-builder-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-bottom: 8px; }
.tp-builder-metrics div { padding: 4px 5px; border-radius: 5px; background: rgba(148,163,184,.055); }
.tp-builder-metrics span { display: block; color: #71849F; font-size: 6.8px; }
.tp-builder-metrics strong { display: block; margin-top: 1px; color: #E0EAF7; font-family: var(--tp-mono); font-size: 8.5px; }

/* ── Analysis grid ─────────────────────────────────────────────────────── */
.tp-analysis-grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(240px, .8fr) minmax(240px, .8fr);
  gap: var(--tp-gap); margin-bottom: var(--tp-gap);
}
.tp-chart-card { min-height: 358px; }
.tp-tf-row { display: inline-flex; gap: 2px; padding: 2px; border-radius: 5px; background: rgba(148,163,184,.07); }
.tp-tf { border: 0; border-radius: 4px; background: transparent; color: #7488A4; font-size: 8px; font-weight: 800; padding: 3px 6px; }
.tp-tf.active { background: var(--tp-card-3); color: var(--tp-blue-2); }
.tp-chart-legend { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; color: #71859F; font-size: 7.5px; margin: -1px 0 5px; }
.tp-chart-legend .swatch { display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 3px; vertical-align: 0; }
.swatch-blue { background: var(--tp-blue-2); }
.tp-legend-toggle { border: 0; background: transparent; color: #71859F; font-size: 7.5px; font-weight: 700; padding: 0; }
.tp-legend-toggle.active { color: #A7B9D2; }
.tp-chart-quote { margin-left: auto; color: #D7E4F3; font-family: var(--tp-mono); font-size: 8.5px; }
.tp-chart-stack { display: flex; flex-direction: column; gap: 2px; }
.tp-tv-chart { width: 100%; height: 222px; }
.tp-tv-volume { height: 48px; }
.tp-tv-indicator { height: 58px; }
.tp-chart-stack::after { content: "RSI 14 · MACD 12/26/9"; position: absolute; opacity: 0; pointer-events: none; }
.tp-oi-card, .tp-iv-card { min-height: 358px; }
.tp-donut-row { display: flex; align-items: center; gap: 11px; margin-bottom: 9px; }
.tp-oi-donut { width: 75px; height: 75px; }
.tp-oi-donut::before { inset: 6px; }
.tp-oi-donut > div { width: 62px; height: 62px; }
.tp-oi-donut strong { font-size: 15px; }
.tp-oi-donut span { font-size: 6.5px; }
.tp-oi-numbers { flex: 1; display: flex; flex-direction: column; gap: 5px; font-size: 8px; color: #8598B3; }
.tp-oi-numbers div { display: flex; align-items: center; gap: 4px; }
.tp-oi-numbers strong { margin-left: auto; color: #E2EBF8; font-family: var(--tp-mono); font-size: 9.5px; }
.tp-oi-pcr { border-top: 1px solid var(--tp-border); padding-top: 4px; margin-top: 1px; }
.tp-oi-bars { position: relative; height: 148px; display: flex; align-items: flex-end; gap: 3px; padding: 6px 2px 14px; border-bottom: 1px solid var(--tp-border); overflow: hidden; }
.tp-oi-bar-group { flex: 1; display: flex; align-items: flex-end; gap: 1px; height: 100%; min-width: 2px; position: relative; z-index: 1; }
.tp-oi-bar-group i { display: block; flex: 1; min-height: 1px; border-radius: 2px 2px 0 0; }
.tp-oi-bar-group .ce { background: linear-gradient(180deg, #3B82F6, rgba(59,130,246,.35)); }
.tp-oi-bar-group .pe { background: linear-gradient(180deg, #8B5CF6, rgba(139,92,246,.3)); }
.tp-oi-bar-group span { display: none; }
.tp-oi-bars-axis {
  position: absolute; left: 2px; right: 2px; bottom: 2px; z-index: 2;
  display: flex; justify-content: space-between; color: #5D718C;
  font-size: 6px; font-family: var(--tp-mono); pointer-events: none;
}
.tp-oi-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 7px; color: #71849F; font-size: 7.5px; }
.tp-oi-foot strong { color: #D3E1F2; font-family: var(--tp-mono); font-weight: 600; }
.tp-iv-big { display: flex; align-items: baseline; gap: 6px; margin: -2px 0 2px; }
.tp-iv-big strong { color: #F8FAFC; font-size: 23px; line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.tp-iv-big span { color: #71849F; font-size: 8px; }
.tp-iv-chart { height: 88px; margin-bottom: 7px; }
.tp-iv-chart svg { width: 100%; height: 100%; }
.tp-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 8px; }
.tp-stat-grid div { display: flex; justify-content: space-between; align-items: baseline; padding-top: 4px; border-top: 1px solid var(--tp-border); }
.tp-stat-grid span { color: #71849F; font-size: 7px; }
.tp-stat-grid strong { color: #D7E3F3; font-family: var(--tp-mono); font-size: 8.5px; }
.tp-info-note { margin-top: 8px; padding: 5px 7px; border-radius: 5px; background: rgba(148,163,184,.055); color: #697D99; font-size: 6.8px; line-height: 1.42; }

/* ── Deep grid ─────────────────────────────────────────────────────────── */
.tp-deep-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: var(--tp-gap); margin-bottom: var(--tp-gap); }
.tp-greek-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 9px; }
.tp-greek-cards div { padding: 7px 7px 6px; border-radius: 6px; background: rgba(148,163,184,.055); border: 1px solid rgba(148,163,184,.055); }
.tp-greek-cards span { display: block; color: #8195B0; font-size: 7px; font-weight: 700; }
.tp-greek-cards strong { display: block; margin-top: 2px; color: #E4EDF9; font-family: var(--tp-mono); font-size: 12px; }
.tp-greek-cards small { display: block; margin-top: 1px; color: #5E728E; font-size: 6.3px; }
.tp-table-wrap { overflow: auto; border: 1px solid var(--tp-border); border-radius: 7px; max-height: 215px; }
.tp-mini-table { width: 100%; border-collapse: collapse; font-size: 8.5px; }
.tp-mini-table th { position: sticky; top: 0; z-index: 2; background: #0D182A; color: #7C90AC; font-size: 7px; font-weight: 800; text-align: right; padding: 5px 7px; border-bottom: 1px solid var(--tp-border); }
[data-theme="tradeal-light"] .tp-mini-table th { background: #F1F6FC; }
.tp-mini-table th:first-child, .tp-mini-table td:first-child { text-align: left; }
.tp-mini-table td { padding: 4px 7px; text-align: right; border-bottom: 1px solid rgba(148,163,184,.05); color: #C7D4E6; font-family: var(--tp-mono); font-size: 8px; }
.tp-mini-table tbody tr:hover td { background: rgba(59,130,246,.055); }
.tp-oi-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.tp-oi-kpis div { padding: 7px 8px; border-radius: 6px; background: rgba(148,163,184,.055); }
.tp-oi-kpis span { display: block; color: #8195B0; font-size: 7px; font-weight: 700; }
.tp-oi-kpis strong { display: block; margin-top: 2px; color: #E3ECF9; font-family: var(--tp-mono); font-size: 12px; }
.tp-oi-kpis small { display: block; margin-top: 1px; color: #617590; font-size: 6.4px; }
.tp-buildup-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px; }
.tp-buildup-row { display: flex; align-items: center; justify-content: space-between; padding: 5px 7px; border-radius: 5px; background: rgba(148,163,184,.045); color: #8699B4; font-size: 7.5px; }
.tp-buildup-row strong { font-family: var(--tp-mono); color: #D6E2F2; font-size: 8px; }
.tp-buildup-tag { padding: 1px 4px; border-radius: 3px; font-size: 6.5px; font-weight: 800; }
.buildup-long { background: rgba(16,185,129,.12); color: var(--tp-green-2); }
.buildup-short { background: rgba(239,68,68,.12); color: var(--tp-red-2); }
.buildup-cover { background: rgba(245,158,11,.12); color: var(--tp-amber-2); }
.buildup-unwind { background: rgba(148,163,184,.12); color: #A9B9CE; }
.tp-empty-inline { color: #667A96; font-size: 8px; padding: 10px 4px; }

/* ── Bottom grid ───────────────────────────────────────────────────────── */
.tp-bottom-grid {
  display: grid; grid-template-columns: minmax(0,1.15fr) minmax(260px,.85fr) minmax(260px,.85fr);
  gap: var(--tp-gap); margin-bottom: var(--tp-gap);
}
.tp-bottom-grid-2 { grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); }
.tp-strategy-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; margin-bottom: 9px; }
.tp-strategy-card {
  display: flex; align-items: center; gap: 6px; padding: 7px; border-radius: 6px;
  border: 1px solid rgba(16,185,129,.16); background: linear-gradient(135deg, rgba(16,185,129,.10), rgba(17,29,48,.35));
  min-width: 0;
}
.tp-strategy-card:nth-child(2) { border-color: rgba(239,68,68,.16); background: linear-gradient(135deg, rgba(239,68,68,.10), rgba(17,29,48,.35)); }
.tp-strategy-card:nth-child(3) { border-color: rgba(245,158,11,.16); background: linear-gradient(135deg, rgba(245,158,11,.10), rgba(17,29,48,.35)); }
.tp-strategy-card:nth-child(4) { border-color: rgba(139,92,246,.16); background: linear-gradient(135deg, rgba(139,92,246,.10), rgba(17,29,48,.35)); }
.tp-strat-icon { display: grid; place-items: center; width: 20px; height: 20px; flex: 0 0 auto; border-radius: 50%; background: rgba(16,185,129,.14); color: var(--tp-green-2); font-size: 10px; }
.tp-strategy-card:nth-child(2) .tp-strat-icon { background: rgba(239,68,68,.14); color: var(--tp-red-2); }
.tp-strategy-card:nth-child(3) .tp-strat-icon { background: rgba(245,158,11,.14); color: var(--tp-amber-2); }
.tp-strategy-card:nth-child(4) .tp-strat-icon { background: rgba(139,92,246,.14); color: #C4B5FD; }
.tp-strategy-card div { min-width: 0; }
.tp-strategy-card strong { display: block; color: #DCE7F6; font-size: 7.7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-strategy-card span { display: block; margin-top: 2px; color: #6D829E; font-size: 6.4px; }
.tp-strategy-card em { margin-left: auto; color: #C6D4E7; font-family: var(--tp-mono); font-style: normal; font-size: 7.5px; text-align: right; }
.tp-payoff-panel { border-top: 1px solid var(--tp-border); padding-top: 8px; }
.tp-payoff-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.tp-payoff-head select { border: 1px solid var(--tp-border); border-radius: 5px; background: var(--tp-card-2); color: var(--tp-text-2); font-size: 8px; font-weight: 700; padding: 3px 5px; }
.tp-payoff-head span { color: #667A96; font-size: 6.8px; }
.tp-payoff-chart { height: 92px; }
.tp-payoff-chart svg { width: 100%; height: 100%; }
.tp-payoff-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.tp-payoff-metrics div { padding: 4px 6px; border-radius: 5px; background: rgba(148,163,184,.045); }
.tp-payoff-metrics span { display: block; color: #6C809B; font-size: 6.5px; }
.tp-payoff-metrics strong { display: block; color: #DCE7F6; font-family: var(--tp-mono); font-size: 8.5px; margin-top: 1px; }
.tp-portfolio-main { display: flex; align-items: center; gap: 12px; margin: 4px 0 8px; }
.tp-portfolio-donut { width: 94px; height: 94px; }
.tp-portfolio-donut::before { inset: 7px; }
.tp-portfolio-donut > div { width: 70px; height: 70px; }
.tp-portfolio-donut strong { font-size: 11px; }
.tp-portfolio-donut span { font-size: 6.5px; }
.tp-alloc-list { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; font-size: 8px; color: #8195B0; }
.tp-alloc-list div { display: flex; align-items: center; gap: 5px; }
.tp-alloc-list strong { margin-left: auto; color: #DDE8F6; font-family: var(--tp-mono); font-size: 8.5px; }
.tp-alloc-list em { color: #667A96; font-style: normal; font-size: 7px; width: 36px; text-align: right; }
.tp-portfolio-foot { display: flex; justify-content: space-between; border-top: 1px solid var(--tp-border); padding-top: 5px; color: #667A96; font-size: 6.8px; }
.tp-select-portfolio { max-width: 120px; }
.tp-alert-tabs { display: flex; gap: 2px; margin-bottom: 7px; border-bottom: 1px solid var(--tp-border); }
.tp-alert-tabs button { border: 0; background: transparent; color: #6E829D; font-size: 7.5px; font-weight: 800; padding: 4px 5px; border-bottom: 2px solid transparent; }
.tp-alert-tabs button.active { color: var(--tp-blue-2); border-bottom-color: var(--tp-blue); }
.tp-alert-list { display: flex; flex-direction: column; gap: 5px; max-height: 172px; overflow-y: auto; }
.tp-alert-row { display: flex; align-items: flex-start; gap: 7px; padding: 5px 6px; border-radius: 5px; background: rgba(148,163,184,.045); }
.tp-alert-row .tp-alert-icon { display: grid; place-items: center; width: 16px; height: 16px; flex: 0 0 auto; border-radius: 50%; background: rgba(16,185,129,.12); color: var(--tp-green-2); font-size: 8px; }
.tp-alert-row.negative .tp-alert-icon { background: rgba(239,68,68,.12); color: var(--tp-red-2); }
.tp-alert-row.stale .tp-alert-icon { background: rgba(245,158,11,.12); color: var(--tp-amber-2); }
.tp-alert-copy { min-width: 0; flex: 1; }
.tp-alert-copy strong { display: block; color: #D5E1F1; font-size: 7.8px; font-weight: 700; }
.tp-alert-copy span { display: block; color: #6F839F; font-size: 6.7px; margin-top: 1px; }
.tp-alert-time { color: #5C708C; font-family: var(--tp-mono); font-size: 6.4px; white-space: nowrap; }
.tp-alert-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; border-top: 1px solid var(--tp-border); padding-top: 5px; color: #637793; font-size: 6.7px; }

/* ── Multi-account ─────────────────────────────────────────────────────── */
.tp-multi-account { margin-bottom: var(--tp-gap); }
.tp-account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 7px; margin-bottom: 9px; }
.tp-account-tile { padding: 9px 10px; border: 1px solid var(--tp-border); border-radius: 7px; background: rgba(148,163,184,.04); }
.tp-account-tile-head { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.tp-account-tile-head strong { font-size: 9px; }
.tp-account-tile-head span { margin-left: auto; color: var(--tp-green-2); font-size: 6.8px; font-weight: 800; }
.tp-account-tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; color: #7F93AE; font-size: 7px; }
.tp-account-tile-grid strong { display: block; color: #D9E5F4; font-family: var(--tp-mono); font-size: 9px; margin-top: 1px; }

/* ── Reports / learning ────────────────────────────────────────────────── */
.tp-report-list { display: flex; flex-direction: column; gap: 4px; max-height: 190px; overflow-y: auto; }
.tp-report-row { display: flex; align-items: center; gap: 7px; padding: 6px 7px; border-radius: 5px; background: rgba(148,163,184,.045); color: #93A6BF; font-size: 7.8px; text-decoration: none; }
.tp-report-row:hover { background: var(--tp-card-3); color: var(--tp-text); }
.tp-report-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-report-row small { margin-left: auto; color: #637793; font-family: var(--tp-mono); font-size: 6.8px; white-space: nowrap; }
.tp-learning-list details { border-bottom: 1px solid var(--tp-border); padding: 5px 0; }
.tp-learning-list summary { color: #C8D6E9; font-size: 8.5px; font-weight: 700; cursor: pointer; list-style: none; }
.tp-learning-list summary::-webkit-details-marker { display: none; }
.tp-learning-list summary::before { content: "▸"; color: var(--tp-blue-2); margin-right: 5px; }
.tp-learning-list details[open] summary::before { content: "▾"; }
.tp-learning-list p { color: #71859F; font-size: 7.5px; line-height: 1.45; margin: 4px 0 2px 13px; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.tp-footer { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 9px 2px 0; color: #526681; font-size: 7.3px; border-top: 1px solid var(--tp-border); margin-top: 6px; }

/* ── Drawers / modal / toast ───────────────────────────────────────────── */
.tp-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(2,6,23,.66); backdrop-filter: blur(2px); }
.tp-drawer {
  position: fixed; z-index: 90; top: 0; right: 0; bottom: 0; width: min(380px, 92vw);
  background: var(--tp-card); border-left: 1px solid var(--tp-border-strong);
  box-shadow: -16px 0 40px rgba(2,6,23,.34); transform: translateX(105%);
  transition: transform .2s ease; display: flex; flex-direction: column;
}
.tp-drawer.open { transform: translateX(0); }
.tp-drawer > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 14px 15px; border-bottom: 1px solid var(--tp-border); }
.tp-drawer h3 { margin: 0; font-size: 13px; font-weight: 800; }
.tp-drawer header p { margin: 2px 0 0; color: var(--tp-muted); font-size: 8px; }
.tp-drawer-body { padding: 13px 15px 22px; overflow-y: auto; }
.tp-drawer-body section { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--tp-border); }
.tp-drawer-body section:last-of-type { border-bottom: 0; }
.tp-drawer h4 { margin: 0 0 8px; color: #8EA2BE; font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.tp-seg-full { display: flex; width: 100%; }
.tp-seg-full button { flex: 1; border: 0; border-radius: 4px; background: transparent; color: #7285A1; font-size: 9px; font-weight: 700; padding: 5px; }
.tp-seg-full button.active { background: var(--tp-card-3); color: var(--tp-blue-2); }
.tp-field-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.tp-field-row label { color: #8296B1; font-size: 9px; }
.tp-field-row input, .tp-field-row select {
  width: 118px; height: 25px; border: 1px solid var(--tp-border); border-radius: 5px;
  background: var(--tp-card-2); color: var(--tp-text); font-size: 9px; padding: 0 6px; outline: none;
}
.tp-field-row input:focus, .tp-field-row select:focus { border-color: var(--tp-blue); }
.tp-note { margin-top: 7px; color: #667A96; font-size: 7.5px; line-height: 1.4; }
.tp-save-msg { margin-top: 7px; color: var(--tp-green-2); font-size: 8px; min-height: 10px; }
.tp-session-row { display: flex; align-items: center; gap: 6px; color: #B9C9DD; font-size: 9px; }
.tp-source-row { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px solid rgba(148,163,184,.05); color: #7F93AE; font-size: 8px; }
.tp-source-row strong { color: #C7D6E9; font-weight: 600; }
.tp-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(2,6,23,.7); }
.tp-modal-box { width: min(420px, 100%); border: 1px solid var(--tp-border-strong); border-radius: 12px; background: var(--tp-card); box-shadow: 0 24px 80px rgba(0,0,0,.5); }
.tp-modal-box header { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--tp-border); }
.tp-modal-box h3 { margin: 0; font-size: 12px; font-weight: 800; }
.tp-modal-body { padding: 12px 14px 16px; }
.tp-modal-body p { color: #7D91AC; font-size: 8.5px; line-height: 1.45; margin: 0 0 8px; }
.tp-toast-wrap { position: fixed; right: 16px; bottom: 16px; z-index: 110; display: flex; flex-direction: column; gap: 6px; max-width: 300px; }
.tp-toast {
  padding: 8px 10px; border: 1px solid var(--tp-border-strong); border-radius: 7px;
  background: var(--tp-card); color: #D3E0F1; font-size: 9px; box-shadow: var(--tp-shadow);
  animation: tpToastIn .2s ease;
}
.tp-toast.error { border-color: rgba(239,68,68,.35); color: #FCA5A5; }
.tp-toast.success { border-color: rgba(16,185,129,.35); color: #6EE7B7; }
@keyframes tpToastIn { from { transform: translateY(6px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes tpPulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.skeleton-card { position: relative; overflow: hidden; }
.skeleton-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(148,163,184,.06) 40%, transparent 60%); animation: tpShimmer 1.8s infinite; }
@keyframes tpShimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.tp-flash { animation: tpFlash 1s ease; }
@keyframes tpFlash {
  0% { box-shadow: 0 0 0 1px rgba(56,189,248,.7), 0 0 26px rgba(56,189,248,.18); }
  100% { box-shadow: var(--tp-shadow); }
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1520px) {
  .tp-index-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tp-account-card { grid-column: span 1; }
  .tp-metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tp-chain-table { font-size: 8.4px; }
}
@media (max-width: 1280px) {
  .tp-chain-layout { grid-template-columns: minmax(0, 1fr) 290px; }
  .tp-analysis-grid { grid-template-columns: minmax(0, 1.3fr) minmax(220px, .85fr) minmax(220px, .85fr); }
  .tp-bottom-grid { grid-template-columns: minmax(0,1.1fr) minmax(240px,.9fr); }
  .tp-alerts-card { grid-column: span 2; }
}
@media (max-width: 1120px) {
  .tp-header { grid-template-columns: 150px minmax(200px,1fr) auto; gap: 12px; padding: 0 13px; }
  .tp-brand-name { font-size: 17px; }
  .tp-brand-tag { font-size: 7px; }
  .tp-profile-name { display: none; }
  .tp-clock { display: none; }
  .tp-conn { display: none; }
  .tp-sidebar { width: var(--tp-sidebar-collapsed); padding-left: 8px; padding-right: 8px; }
  .tp-main { margin-left: var(--tp-sidebar-collapsed); }
  .tp-brand-text, .tp-nav-item span, .tp-upgrade, .tp-mode-label { display: none; }
  .tp-nav-item { justify-content: center; padding: 0; }
  .tp-side-footer { flex-direction: column; }
  .tp-side-mode { flex: none; width: 100%; }
  .tp-chain-layout { grid-template-columns: 1fr; }
  .tp-right-rail { display: grid; grid-template-columns: 1fr 1fr; }
  .tp-analysis-grid { grid-template-columns: 1fr 1fr; }
  .tp-chart-card { grid-column: span 2; }
  .tp-deep-grid { grid-template-columns: 1fr; }
  .tp-bottom-grid { grid-template-columns: 1fr 1fr; }
  .tp-alerts-card { grid-column: auto; }
}
@media (max-width: 820px) {
  .tp-header { grid-template-columns: 120px minmax(0,1fr) auto; }
  .tp-header-actions .tp-live-pill span:last-child,
  .tp-header-actions .tp-exchange { display: none; }
  .tp-live-pill { padding: 0 7px; }
  .tp-search kbd { display: none; }
  .tp-page-head { align-items: flex-start; flex-direction: column; gap: 6px; }
  .tp-index-grid { grid-template-columns: 1fr 1fr; }
  .tp-metric-grid { grid-template-columns: 1fr 1fr; }
  .tp-right-rail { grid-template-columns: 1fr; }
  .tp-analysis-grid { grid-template-columns: 1fr; }
  .tp-chart-card { grid-column: auto; }
  .tp-bottom-grid, .tp-bottom-grid-2 { grid-template-columns: 1fr; }
  .tp-alerts-card { grid-column: auto; }
  .tp-strategy-cards { grid-template-columns: 1fr 1fr; }
  .tp-chain-head { flex-direction: column; align-items: stretch; }
  .tp-chain-controls { justify-content: flex-start; }
  .tp-chain-toolbar { flex-direction: column; align-items: stretch; }
  .tp-chain-tools { justify-content: flex-start; }
  .tp-main { padding-left: 11px; padding-right: 11px; }
  .tp-data-banner { align-items: flex-start; }
  .tp-banner-right { display: none; }
  .tp-greek-cards { grid-template-columns: repeat(3,1fr); }
  .tp-oi-kpis { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .tp-header { grid-template-columns: 1fr auto; }
  .tp-search { display: none; }
  /* A dot-only status pill is ambiguous; the data banner carries the state. */
  .tp-header-actions .tp-live-pill { display: none; }
  .tp-brand-tag { display: none; }
  .tp-index-grid { grid-template-columns: 1fr; }
  .tp-metric-grid { grid-template-columns: 1fr; }
  .tp-metric-card { min-height: 78px; }
  .tp-ring, .tp-gauge { width: 56px; height: 56px; }
  .tp-chain-foot .tp-foot-right { margin-left: 0; width: 100%; }
  .tp-expand-box { grid-template-columns: 1fr 1fr; }
  .tp-account-grid { grid-template-columns: 1fr; }
}

/* ── TradeAIPro: Account Login Buttons, Top Positions & SL Switch Controls ── */
.tp-mini-login-btn {
  background: rgba(59, 130, 246, 0.16);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 7px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tp-mini-login-btn:hover { background: rgba(59, 130, 246, 0.28); color: #fff; }
.tp-mini-login-btn.connected { background: rgba(16, 185, 129, 0.16); color: #34d399; border-color: rgba(16, 185, 129, 0.4); }

.tp-guardian-top { margin-bottom: 12px; }
.tp-guardian-split {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 12px;
  margin-top: 8px;
}
@media (max-width: 1024px) {
  .tp-guardian-split { grid-template-columns: 1fr; }
}

.tp-pill-btn {
  background: rgba(148, 163, 184, 0.12);
  color: var(--tp-muted, #94a3b8);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 7px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.tp-pill-btn.active {
  background: rgba(59, 130, 246, 0.22);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.5);
}

.tp-exit-side-btn {
  border-radius: 7px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.tp-exit-long { background: rgba(14, 165, 233, 0.14); border: 1px solid rgba(56, 189, 248, 0.4); color: #38bdf8; }
.tp-exit-short { background: rgba(139, 92, 246, 0.14); border: 1px solid rgba(167, 139, 250, 0.4); color: #c4b5fd; }
.tp-exit-all-btn {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.55);
  color: #fca5a5;
  border-radius: 7px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.tp-exit-all-btn:hover { background: #ef4444; color: #fff; }

.tp-sl-switches-panel {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  padding: 10px 12px;
}
.tp-sl-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
}
.tp-switch-grid { display: flex; flex-direction: column; gap: 6px; }
.tp-switch-row {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.tp-sw-lbl { font-weight: 600; color: var(--tp-text, #e2e8f0); }
.tp-sw-input {
  width: 74px;
  padding: 3px 6px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(8, 13, 25, 0.65);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 700;
  text-align: right;
}
.tp-sw-tag { font-size: 10px; color: var(--tp-muted, #94a3b8); font-weight: 700; }

/* Pill Switch */
.tp-switch { position: relative; display: inline-block; width: 34px; height: 18px; }
.tp-switch input { opacity: 0; width: 0; height: 0; }
.tp-slider {
  position: absolute; cursor: pointer; inset: 0;
  background: rgba(148, 163, 184, 0.28);
  border-radius: 20px; transition: 0.2s;
}
.tp-slider:before {
  position: absolute; content: ""; height: 14px; width: 14px; left: 2px; bottom: 2px;
  background: #f8fafc; border-radius: 50%; transition: 0.2s;
}
.tp-switch input:checked + .tp-slider { background: #10b981; }
.tp-switch input:checked + .tp-slider:before { transform: translateX(16px); }

/* Compact Option Chain Buy/Sell Pills */
.tp-oc-ltp-cell { white-space: nowrap; }
.tp-oc-bs-wrap { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; vertical-align: middle; }
.tp-oc-b, .tp-oc-s {
  border: 1px solid transparent; border-radius: 4px; padding: 1px 5px;
  font-size: 9px; font-weight: 800; line-height: 1.3; cursor: pointer;
  transition: opacity .15s, transform .1s;
}
.tp-oc-b { background: rgba(16,185,129,.22); color: #34d399; border-color: rgba(16,185,129,.45); }
.tp-oc-b:hover { background: #10b981; color: #fff; }
.tp-oc-s { background: rgba(239,68,68,.22); color: #f87171; border-color: rgba(239,68,68,.45); }
.tp-oc-s:hover { background: #ef4444; color: #fff; }
