/* OptionGap — design tokens + app shell (redesigned)
   ──────────────────────────────────────────────────────────────────
   Changes vs original:
   • Real type scale (--t-xs … --t-6xl) + tighter letter-spacing
   • Card depth tokens: inner-shadow + outer-shadow + hover-glow
   • Tab nav: smaller, single-line, with group separators
   • Reserved violet for interactive / active states only
   • Inter via Google Fonts, JetBrains Mono for numerics
   NOTE: transition speed vars renamed to --ani / --ani-fast / --ani-slow
         to avoid collision with the --t-* font-size scale.
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;600;700&display=swap');

:root {
  /* accent (hue swapped at runtime) */
  --accent-h: 268;
  --accent: hsl(var(--accent-h) 90% 66%);
  --accent-2: hsl(var(--accent-h) 90% 56%);
  --accent-soft: hsl(var(--accent-h) 80% 70% / 0.12);
  --accent-bd: hsl(var(--accent-h) 80% 60% / 0.35);
  --accent-glow: hsl(var(--accent-h) 90% 60% / 0.28);

  /* neutrals — dark fintech */
  --bg-0: #0a0b0f;
  --bg-1: #10131a;
  --bg-2: #161a23;
  --bg-3: #1d222d;
  --bg-card: #11151e;
  --bd-1: rgba(255,255,255,0.06);
  --bd-2: rgba(255,255,255,0.10);
  --bd-3: rgba(255,255,255,0.16);

  --fg-0: #f5f6fa;
  --fg-1: #c8ccd6;
  --fg-2: #8a91a0;
  --fg-3: #5a6273;
  --fg-4: #3a4151;

  /* P/L semantics */
  --pos: #34d399;
  --pos-soft: rgba(52, 211, 153, 0.14);
  --pos-bd: rgba(52, 211, 153, 0.30);
  --pos-glow: rgba(52, 211, 153, 0.35);
  --neg: #f87171;
  --neg-soft: rgba(248, 113, 113, 0.14);
  --neg-bd: rgba(248, 113, 113, 0.30);
  --neg-glow: rgba(248, 113, 113, 0.35);

  /* over/under priced */
  --over: #38bdf8;
  --under: #fbbf24;

  /* ── Type scale ───────────────────────────────────── */
  --t-xs:    11px;   /* tiny labels, ticker */
  --t-sm:    12px;   /* form labels, chip text */
  --t-base:  14px;   /* body */
  --t-md:    15px;   /* card title small */
  --t-lg:    16px;   /* card title / lede small */
  --t-xl:    18px;   /* sub-section */
  --t-2xl:   20px;   /* section heading */
  --t-3xl:   24px;   /* small hero */
  --t-stat:  30px;   /* stat values */
  --t-stat-lg: 36px; /* big stat values */
  --t-4xl:   36px;
  --t-5xl:   48px;
  --t-6xl:   60px;   /* hero headline */

  /* font stacks */
  --font-sans: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;

  --pad: 16px;
  --row-h: 32px;

  /* card depth — subtle inset + outer */
  --shadow-1:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 0 0 1px rgba(255,255,255,0.015) inset,
    0 1px 2px rgba(0,0,0,0.3),
    0 4px 12px rgba(0,0,0,0.18);
  --shadow-2:
    0 1px 0 rgba(255,255,255,0.05) inset,
    0 12px 40px rgba(0,0,0,0.5),
    0 4px 16px rgba(0,0,0,0.35);
  --shadow-hover:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 0 0 1px var(--accent-bd) inset,
    0 8px 24px rgba(0,0,0,0.35),
    0 0 24px var(--accent-glow);

  /* transitions — prefixed --ani-* to avoid collision with --t-* font scale */
  --ani-fast: 120ms ease;
  --ani:      150ms ease;
  --ani-slow: 220ms ease;
}

:root[data-density="compact"] { --pad: 12px; --row-h: 30px; }
:root[data-density="comfy"]   { --pad: 22px; --row-h: 44px; }
:root[data-mono="1"] { --num-feat: "tnum" 1, "lnum" 1; }

* { box-sizing: border-box; }
html, body, #root { height: 100%; margin: 0; }
body {
  background:
    radial-gradient(1200px 600px at 80% -10%, hsl(var(--accent-h) 60% 30% / 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, hsl(var(--accent-h) 60% 30% / 0.08), transparent 60%),
    var(--bg-0);
  color: var(--fg-0);
  font-family: var(--font-sans);
  font-size: var(--t-base);
  line-height: 1.5;
  font-feature-settings: "ss01" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.num, .og-num, .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-feature-settings: var(--num-feat, "tnum" 1); }

button { font: inherit; }
button:not(:disabled) { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Type utility classes ─────────────────────────────────────────── */
.t-eyebrow {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.t-label {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.t-body { font-size: var(--t-base); color: var(--fg-1); line-height: 1.6; }
.t-card-title { font-size: var(--t-md); font-weight: 600; color: var(--fg-0); letter-spacing: -0.005em; }
.t-section { font-size: var(--t-xl); font-weight: 700; color: var(--fg-0); letter-spacing: -0.01em; line-height: 1.25; }
.t-h2 { font-size: var(--t-3xl); font-weight: 700; color: var(--fg-0); letter-spacing: -0.018em; line-height: 1.18; }
.t-stat { font-family: var(--font-mono); font-size: var(--t-stat); font-weight: 700; color: var(--fg-0); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.t-stat-lg { font-family: var(--font-mono); font-size: var(--t-stat-lg); font-weight: 700; color: var(--fg-0); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

/* ── App shell ─────────────────────────────────────────────────────── */

.og-app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.og-hd {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 22px;
  border-bottom: 1px solid var(--bd-1);
  background: linear-gradient(180deg, rgba(255,255,255,0.025), transparent);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}
.og-hd-l { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.og-logo { display: block; flex-shrink: 0; }
.og-brand { line-height: 1.1; }
.og-name { font-size: var(--t-lg); font-weight: 700; letter-spacing: -0.015em; }
.og-tag  { font-size: var(--t-xs); color: var(--fg-2); margin-top: 1px; }

/* ── Tabs — grouped with separators ───────────────────────────────── */
.og-tabs {
  display: flex; align-items: center;
  flex: 1;
  gap: 2px;
  margin: 0 8px;
  position: relative;
}
.og-tab-group {
  display: flex; align-items: center;
  gap: 2px;
  padding: 0 6px;
  position: relative;
}
.og-tab-group + .og-tab-group::before {
  content: "";
  position: absolute; left: -1px; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--bd-2);
}

.og-tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 7px 13px;
  height: 34px;
  border-radius: 8px;
  color: var(--fg-2);
  font-size: var(--t-base);
  font-weight: 500;
  letter-spacing: -0.005em;
  display: inline-flex; align-items: center; gap: 6px;
  position: relative;
  transition: color var(--ani), background var(--ani);
  white-space: nowrap;
}
.og-tab:hover:not(.disabled):not(.active) {
  color: var(--fg-0);
  background: rgba(255,255,255,0.04);
}
.og-tab.active {
  color: var(--fg-0);
  background: var(--bg-2);
  font-weight: 600;
}
.og-tab.active::after {
  content: "";
  position: absolute; left: 12px; right: 12px; bottom: -11px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
  box-shadow: 0 0 8px var(--accent-glow);
}
.og-tab.disabled { color: var(--fg-3); cursor: not-allowed; }
.og-tab-emoji { font-size: 12px; opacity: 0.9; }

/* Tab tooltip (subtitle on hover) */
.og-tab[data-tip]:hover::before {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-3);
  color: var(--fg-1);
  border: 1px solid var(--bd-2);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: var(--t-xs);
  font-weight: 500;
  white-space: nowrap;
  z-index: 100;
  pointer-events: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  animation: og-tip-in 140ms ease;
}
@keyframes og-tip-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-3px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.og-hd-r { display: flex; align-items: center; gap: 8px; }
.og-auth-cta { display: flex; align-items: center; gap: 6px; }
.og-auth-cta .og-btn { padding: 6px 14px; font-size: 13px; font-weight: 600; }

/* ── Pills, dots, ticker ──────────────────────────────────────────── */
.og-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 11px;
  border: 1px solid var(--bd-2);
  border-radius: 999px;
  background: var(--bg-2);
  font-size: var(--t-xs);
  color: var(--fg-1);
  font-weight: 500;
}
.og-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--fg-3);
}
.og-dot--live {
  background: var(--pos);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: og-pulse 1.8s infinite;
}
@keyframes og-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
  70%  { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.og-pill-label { font-weight: 700; letter-spacing: 0.05em; font-size: 10.5px; }
.og-pill-time { color: var(--fg-2); font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.og-iconbtn {
  appearance: none; border: 1px solid var(--bd-1); background: var(--bg-2);
  width: 32px; height: 32px; border-radius: 8px;
  color: var(--fg-1);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--ani), color var(--ani), border-color var(--ani);
}
.og-iconbtn:hover { background: var(--bg-3); color: var(--fg-0); border-color: var(--bd-2); }

.og-avatar {
  appearance: none; border: 1px solid transparent;
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white; font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  letter-spacing: 0.02em;
  transition: border-color var(--ani), box-shadow var(--ani);
}
.og-avatar:hover {
  border-color: var(--accent-bd);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ── Main / cards ──────────────────────────────────────────────────── */

.og-main {
  flex: 1;
  padding: 24px;
  max-width: 1640px;
  width: 100%;
  margin: 0 auto;
}

.og-card {
  background: var(--bg-card);
  border: 1px solid var(--bd-1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  transition: border-color var(--ani), box-shadow var(--ani), transform var(--ani);
}
.og-card.is-hoverable:hover {
  border-color: var(--bd-2);
  box-shadow: var(--shadow-hover);
}

/* Chart card header — title on left, controls on right, separator line */
.og-card-hd {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--bd-1);
}
.og-card-hd-l { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.og-card-hd-r { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.og-card-ttl { font-size: var(--t-md); font-weight: 600; color: var(--fg-0); letter-spacing: -0.005em; }
.og-card-sub { font-size: var(--t-xs); color: var(--fg-2); font-weight: 500; }
.og-card-bd { padding: 22px; }
.og-card-bd--tight { padding: 16px 22px; }

.og-ft {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-top: 1px solid var(--bd-1);
  font-size: var(--t-xs);
  color: var(--fg-3);
  background: var(--bg-1);
}
.og-ft-sep { color: var(--fg-4); }
.og-ft-sp { flex: 1; }

/* ── Generic UI ────────────────────────────────────────────────────── */

.og-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: var(--t-xs); font-weight: 600;
  background: var(--bg-2);
  border: 1px solid var(--bd-1);
  color: var(--fg-1);
  letter-spacing: 0.01em;
}
.og-chip.accent { background: var(--accent-soft); border-color: var(--accent-bd); color: var(--accent); }
.og-chip.pos { background: var(--pos-soft); border-color: var(--pos-bd); color: var(--pos); }
.og-chip.neg { background: var(--neg-soft); border-color: var(--neg-bd); color: var(--neg); }

.og-btn {
  appearance: none;
  border: 1px solid var(--bd-2);
  background: var(--bg-2);
  color: var(--fg-0);
  padding: 0 14px;
  height: 34px;
  border-radius: 9px;
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: -0.005em;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background var(--ani), color var(--ani), border-color var(--ani), transform var(--ani-fast);
}
.og-btn:hover { background: var(--bg-3); border-color: var(--bd-3); }
.og-btn:active { transform: translateY(1px); }
.og-btn.primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-color: var(--accent-2);
  color: white;
  box-shadow: 0 4px 14px var(--accent-glow), 0 1px 0 rgba(255,255,255,0.18) inset;
}
.og-btn.primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 18px var(--accent-glow), 0 1px 0 rgba(255,255,255,0.2) inset;
}
.og-btn.ghost {
  background: transparent;
  border-color: var(--bd-2);
  color: var(--fg-1);
}
.og-btn.ghost:hover { background: rgba(255,255,255,0.04); color: var(--fg-0); }
.og-btn:disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

/* segmented control */
.og-seg {
  display: inline-flex;
  background: var(--bg-2);
  border: 1px solid var(--bd-1);
  border-radius: 9px;
  padding: 3px;
}
.og-seg button {
  appearance: none; border: 0; background: transparent;
  color: var(--fg-2);
  padding: 5px 11px;
  font-size: var(--t-sm); font-weight: 600;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
  transition: color var(--ani), background var(--ani);
}
.og-seg button:hover { color: var(--fg-0); }
.og-seg button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.og-seg button.on {
  background: var(--bg-3);
  color: var(--fg-0);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 1px 2px rgba(0,0,0,0.25);
}

/* Provider / IV-source switchers (Index + Stock Options header) */
.opt-src-seg { width: 100%; gap: 2px; }
.opt-src-seg button {
  flex: 1;
  padding: 5px 6px;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.opt-src-seg button:not(.on):not(:disabled):hover {
  background: rgba(255, 255, 255, 0.05);
}
.opt-src-seg button.on {
  background: linear-gradient(180deg, var(--accent-soft), hsl(var(--accent-h) 80% 60% / 0.06));
  color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-bd) inset, 0 1px 6px var(--accent-glow);
}
.opt-iv-seg { align-items: center; }
.opt-iv-seg button { font-size: 10.5px; padding: 4px 5px; }
.opt-iv-tag {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--fg-2);
  padding: 0 4px 0 6px;
  user-select: none;
}

.og-input {
  appearance: none;
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--bd-1);
  background: var(--bg-2);
  color: var(--fg-0);
  font-size: var(--t-sm);
  outline: none;
  transition: border-color var(--ani), background var(--ani);
}
.og-input:focus { border-color: var(--accent-bd); background: var(--bg-3); box-shadow: 0 0 0 3px var(--accent-soft); }

/* Stat block */
.og-kv { display: flex; flex-direction: column; gap: 4px; }
.og-kv-k {
  font-size: 10.5px;
  color: var(--fg-2);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 600;
}
.og-kv-v {
  font-family: var(--font-mono);
  font-size: var(--t-2xl);
  color: var(--fg-0);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.og-kv-sub { font-size: var(--t-xs); color: var(--fg-2); font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.up { color: var(--pos); }
.dn { color: var(--neg); }

/* ── Profile dropdown (unchanged) ──────────────────────────────────── */
.og-profile-menu { position: relative; }
.og-profile-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 260px;
  background: var(--bg-2);
  border: 1px solid var(--bd-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  z-index: 200;
  overflow: hidden;
}
.og-profile-header { padding: 16px; border-bottom: 1px solid var(--bd-1); }
.og-profile-name { font-size: var(--t-md); font-weight: 700; color: var(--fg-0); }
.og-profile-subtitle { font-size: var(--t-xs); color: var(--fg-2); margin-top: 3px; }
.og-profile-section { padding: 12px 16px; border-bottom: 1px solid var(--bd-1); display: flex; flex-direction: column; gap: 10px; }
.og-profile-section-title { font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--fg-3); }
.og-setting-group { display: flex; flex-direction: column; gap: 6px; }
.og-setting-label { font-size: var(--t-xs); color: var(--fg-2); font-weight: 500; }
.og-accent-picker { display: flex; gap: 8px; }
.og-accent-swatch {
  appearance: none; border: 2px solid transparent;
  width: 20px; height: 20px; border-radius: 50%;
  transition: transform var(--ani), border-color var(--ani);
}
.og-accent-swatch:hover { transform: scale(1.15); }
.og-accent-swatch.active { border-color: white; transform: scale(1.15); }
.og-density-picker { display: flex; gap: 6px; }
.og-density-btn {
  appearance: none; border: 1px solid var(--bd-1); background: var(--bg-3);
  color: var(--fg-2); border-radius: 6px; padding: 4px 10px;
  font-size: var(--t-xs); font-weight: 600;
  transition: background var(--ani), color var(--ani), border-color var(--ani);
}
.og-density-btn.active, .og-density-btn:hover { background: var(--bg-3); color: var(--fg-0); border-color: var(--bd-2); }
.og-density-btn.active { border-color: var(--accent-bd); color: var(--accent); }
.og-toggle-label { display: flex; align-items: center; gap: 8px; font-size: var(--t-xs); color: var(--fg-1); cursor: pointer; }
.og-toggle-label input[type="checkbox"] { accent-color: var(--accent); }
.og-slider { width: 100%; accent-color: var(--accent); }
.og-slider-value { font-size: var(--t-xs); color: var(--fg-2); font-family: var(--font-mono); }
.og-profile-footer { padding: 12px 16px; }
.og-logout-btn {
  appearance: none; border: 1px solid var(--bd-2); background: var(--bg-3);
  color: var(--neg); width: 100%; padding: 7px; border-radius: 8px;
  font-size: var(--t-sm); font-weight: 600; cursor: pointer;
  transition: background var(--ani), border-color var(--ani);
}
.og-logout-btn:hover { background: var(--neg-soft); border-color: var(--neg-bd); }

/* ── Ticker tape ────────────────────────────────────────────────────── */
.og-ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--bd-1);
  background: linear-gradient(180deg, rgba(255,255,255,0.015), transparent);
  height: 30px;
}
.og-ticker-track {
  display: flex; align-items: center;
  white-space: nowrap;
  animation: og-tick-scroll 60s linear infinite;
  height: 100%;
}
@keyframes og-tick-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.og-tick {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 0 24px;
  font-size: 11.5px;
  border-right: 1px solid var(--bd-1);
}
.og-tick-sym { font-weight: 700; color: var(--fg-1); letter-spacing: 0.02em; }
.og-tick-px  { font-family: var(--font-mono); color: var(--fg-0); font-weight: 600; font-variant-numeric: tabular-nums; }
.og-tick-chg { font-family: var(--font-mono); font-size: 11px; font-variant-numeric: tabular-nums; }
.og-tick-pct { opacity: 0.75; }

/* ── Mobile responsive ─────────────────────────────────────────────── */

/* Tablet — start collapsing tab subtitles + keep nav scrollable */
@media (max-width: 980px) {
  .og-tabs {
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .og-tabs::-webkit-scrollbar { display: none; }
  .og-tab-group { flex-shrink: 0; flex-wrap: nowrap; }
}

/* Mobile — header reflows to 2 rows: brand row + scrolling tab strip */
@media (max-width: 768px) {
  .og-hd {
    flex-wrap: wrap;
    padding: 10px 14px 0;
    gap: 8px;
    align-items: center;
  }
  .og-hd-l {
    min-width: 0;
    flex: 1 1 auto;     /* take remaining space on row 1 */
    gap: 8px;
  }
  .og-hd-r {
    flex: 0 0 auto;     /* avatar block stays right */
    gap: 6px;
  }
  .og-pill { display: none; }
  .og-name { font-size: 14px; }
  .og-tag  { display: none; }
  .og-logo { width: 26px; height: 26px; }

  /* Tab strip — full width, second row, horizontal scroll */
  .og-tabs {
    order: 3;
    flex: 1 0 100%;
    width: 100%;
    margin: 4px -14px 0;       /* bleed to screen edges */
    padding: 0 10px 8px;
    border-top: 1px solid var(--bd-1);
    border-bottom: 1px solid var(--bd-1);
    background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  }
  .og-tab-group {
    padding: 6px 4px 4px;
    gap: 4px;
  }
  /* Hide the inter-group dividers on mobile — they break in a scroll strip */
  .og-tab-group + .og-tab-group::before { display: none; }
  /* Add a subtle pipe instead, with proper margin */
  .og-tab-group + .og-tab-group {
    margin-left: 6px;
    border-left: 1px solid var(--bd-1);
    padding-left: 10px;
  }

  .og-tab {
    height: 32px;
    padding: 6px 11px;
    font-size: 13px;
    border-radius: 7px;
  }
  /* Replace bottom underline with a soft background fill — cleaner in scroll */
  .og-tab.active { background: var(--accent-soft); color: var(--accent); }
  .og-tab.active::after { display: none; }
  /* Disable hover tooltips on touch — they sit weirdly on tap */
  .og-tab[data-tip]:hover::before { display: none; }

  /* Main column padding tighter */
  .og-main { padding: 12px; }

  /* Card headers & bodies tighter */
  .og-card-hd { padding: 14px 16px; flex-wrap: wrap; gap: 10px; }
  .og-card-bd { padding: 16px; }
  .og-card-hd-r { margin-left: 0; }

  /* Footer — let it wrap nicely */
  .og-ft {
    padding: 10px 14px;
    font-size: 10.5px;
    flex-wrap: wrap;
    gap: 6px;
  }
  .og-ft-sp { display: none; }

  /* Profile dropdown — pin to viewport, not the avatar */
  .og-profile-dropdown {
    position: fixed;
    top: auto;
    bottom: 12px;
    right: 12px;
    left: 12px;
    width: auto;
    max-height: 70vh;
    overflow-y: auto;
  }
}

/* Small phones */
@media (max-width: 380px) {
  .og-hd { padding: 8px 10px 0; }
  .og-name { font-size: 13px; }
  .og-tab { padding: 5px 9px; font-size: 12.5px; height: 30px; }
  .og-main { padding: 10px; }
}
