/* Pancake Finance -- design system replicating valuesnapshot.io: cool-gray
   neutrals on an off-white page (light is the default theme, as on the
   reference), Inter at heavy display weights with tight tracking, white
   rounded cards with soft shadows, pill tabs with line icons, small
   uppercase labels, and a left icon rail.

   Color: green (gains/up) and red (losses/down) keep their meaning and
   always travel with a ▲/▼ glyph or a +/- sign (see deltaMarkup in
   common.js). Following the reference, financial-metric charts (Charts
   tab) each get their own hue from the --chart-* set below -- those hues
   identify the metric only, never direction.

   Numbers are Inter with tabular figures; the mono face is only for
   ticker symbols. Text colors clear WCAG AA (4.5:1) on their surfaces in
   both themes; the brighter --accent-up-mark is for chart marks only. */

:root {
  color-scheme: light;
  --bg: hsl(0 0% 98%);
  --surface-1: hsl(0 0% 100%);
  --surface-2: hsl(220 10% 95%);
  --surface-raised: hsl(0 0% 100%);
  --ink: hsl(220 15% 15%);
  --ink-secondary: hsl(220 9% 38%);
  --ink-muted: hsl(220 8% 46%);
  --hairline: hsl(220 10% 91%);
  --border: hsl(220 10% 85%);
  --border-strong: hsl(220 10% 70%);
  --primary: hsl(220 12% 33%);
  --primary-ink: hsl(0 0% 100%);
  --accent-up: hsl(160 84% 27%);
  --accent-up-mark: hsl(160 84% 39%);
  --accent-up-wash: hsl(160 70% 40% / 0.11);
  --accent-down: hsl(0 72% 45%);
  --accent-down-mark: hsl(0 72% 51%);
  --accent-down-wash: hsl(0 72% 51% / 0.08);
  --chart-blue: hsl(217 91% 60%);
  --chart-purple: hsl(271 81% 63%);
  --chart-orange: hsl(25 95% 53%);
  --chart-pink: hsl(336 80% 58%);
  --chart-rose: hsl(346 77% 56%);
  --chart-cyan: hsl(189 94% 43%);
  --chart-yellow: hsl(45 93% 47%);
  --chart-violet: hsl(258 90% 66%);
  --chart-teal: hsl(173 80% 36%);
  --chart-indigo: hsl(239 70% 60%);
  --chart-sky: hsl(199 89% 48%);
  --chart-slate: hsl(215 20% 50%);
  --chart-emerald: hsl(152 69% 38%);
  --chart-amber: hsl(38 92% 48%);
  --chart-fuchsia: hsl(292 70% 55%);
  --shadow-card: 0 1px 2px hsl(220 10% 50% / 0.06), 0 4px 16px hsl(220 10% 50% / 0.07);
  --shadow-pop: 0 12px 40px hsl(220 10% 30% / 0.16);
  --rail-width: 72px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-num: var(--font-sans);
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: hsl(240 20% 2%);
  --surface-1: hsl(240 15% 4%);
  --surface-2: hsl(240 12% 7%);
  --surface-raised: hsl(240 12% 9%);
  --ink: hsl(220 5% 97%);
  --ink-secondary: hsl(220 5% 72%);
  --ink-muted: hsl(220 5% 62%);
  --hairline: hsl(220 10% 12%);
  --border: hsl(220 8% 18%);
  --border-strong: hsl(220 8% 30%);
  --primary: hsl(220 8% 82%);
  --primary-ink: hsl(0 0% 5%);
  --accent-up: hsl(160 84% 45%);
  --accent-up-mark: hsl(160 84% 42%);
  --accent-up-wash: hsl(160 84% 45% / 0.12);
  --accent-down: hsl(0 84% 66%);
  --accent-down-mark: hsl(0 84% 60%);
  --accent-down-wash: hsl(0 84% 66% / 0.12);
  --chart-blue: hsl(217 91% 64%);
  --chart-purple: hsl(271 81% 68%);
  --chart-orange: hsl(25 95% 58%);
  --chart-pink: hsl(336 80% 64%);
  --chart-rose: hsl(346 77% 62%);
  --chart-cyan: hsl(189 94% 48%);
  --chart-yellow: hsl(45 93% 52%);
  --chart-violet: hsl(258 90% 72%);
  --chart-teal: hsl(173 70% 45%);
  --chart-indigo: hsl(239 80% 72%);
  --chart-sky: hsl(199 89% 58%);
  --chart-slate: hsl(215 20% 62%);
  --chart-emerald: hsl(152 60% 48%);
  --chart-amber: hsl(38 92% 56%);
  --chart-fuchsia: hsl(292 70% 66%);
  --shadow-card: 0 1px 2px hsl(0 0% 0% / 0.4), 0 4px 16px hsl(0 0% 0% / 0.3);
  --shadow-pop: 0 12px 40px hsl(0 0% 0% / 0.55);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.45;
}

button,
input {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--ink-muted);
  outline-offset: 2px;
}

.preview-banner {
  border-bottom: 1px solid var(--hairline);
  color: var(--ink-muted);
  font-size: 12px;
  text-align: center;
  padding: 7px 12px;
}

.preview-banner.warning {
  color: var(--accent-down);
  background: var(--accent-down-wash);
  border-bottom-color: transparent;
}

/* Shared card surface -- the reference's main container for every
   grouped block (tables, stat tiles, charts, lists). */

.card,
.analysis-card,
.market-news,
.ticker-list {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* Small uppercase eyebrow pill above a display heading (reference:
   "30+ years of financial history", "Inside the workspace"). */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 12px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-muted);
}

/* Filled pill button -- the reference's primary CTA ("Analyze", "View AI
   Analysis"): slate on light, pale gray on dark. */
.btn-primary {
  border: none;
  background: var(--primary);
  color: var(--primary-ink);
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: default;
}

/* ---------------------------------------------------------------- topbar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 24px;
  border-bottom: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* The rail carries the logo on desktop; the topbar brand only shows once
   the rail has collapsed into the bottom bar. */
.brand {
  display: none;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  text-decoration: none;
  color: inherit;
}

/* Rounded-square app tile, like the reference's logo mark. */
@media (max-width: 760px) {
  .brand {
    display: flex;
  }
  .brand-name {
    display: none;
  }
  .topbar {
    gap: 12px;
    padding: 10px 16px;
  }
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex: none;
  object-fit: contain;
}

.brand-name {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.search {
  position: relative;
  flex: 1;
  max-width: 580px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 14px;
  transition: border-color 0.2s, background 0.2s;
}

.search:focus-within {
  background: var(--surface-1);
  border-color: var(--border-strong);
}

.search-icon {
  display: flex;
  color: var(--ink-muted);
}

.search-icon svg {
  width: 16px;
  height: 16px;
}

.search input {
  border: none;
  background: none;
  outline: none;
  color: var(--ink);
  font-size: 14px;
  flex: 1;
  min-width: 0;
}

.search input::placeholder {
  color: var(--ink-muted);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.icon-btn {
  border: 1px solid var(--border);
  background: var(--surface-1);
  cursor: pointer;
  font-size: 14px;
  color: var(--ink-secondary);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}

.icon-btn:hover:not(:disabled) {
  border-color: var(--border-strong);
  color: var(--ink);
}

.icon-btn:disabled {
  cursor: default;
  opacity: 0.4;
}

.icon-btn.spinning {
  animation: icon-btn-spin 0.8s linear infinite;
}

@keyframes icon-btn-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.icon-btn.small {
  width: 22px;
  height: 22px;
  font-size: 13px;
  border-color: transparent;
  background: none;
}

.icon-btn.small:hover:not(:disabled) {
  background: var(--surface-2);
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

/* ------------------------------------------------------------- app shell
   Fixed left icon rail + content column (reference: valuesnapshot.io's
   sidebar). Below 760px the rail collapses into a bottom tab bar. */

.rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: var(--rail-width);
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg);
  border-right: 1px solid var(--hairline);
}

.rail-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 18px 0 18px;
  text-decoration: none;
}

/* The pancake-stack logo (logo.png, transparent), no tile behind it. */
.rail-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.rail-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}

.rail-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--ink-secondary);
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s;
}

.rail-link .icon {
  width: 18px;
  height: 18px;
}

.rail-link:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.rail-link.active {
  color: var(--ink);
  background: var(--surface-2);
  border-color: var(--border);
}

.rail-link {
  position: relative;
  text-decoration: none;
}

.rail-link:active {
  transform: scale(0.94);
}

.rail-link:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* Instant name tooltip to the right of each icon (the native title tooltip
   took ~1s to appear, so icons felt dead). On phones it becomes a caption
   under the icon in the bottom bar. */
.rail-label {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translate(-4px, -50%);
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s, transform 0.12s;
  z-index: 60;
}

.rail-link:hover .rail-label,
.rail-link:focus-visible .rail-label {
  opacity: 1;
  transform: translate(0, -50%);
}

/* Home-page sections the rail jumps to: land below the sticky top bar,
   scroll there smoothly, and flash briefly so it's clear where you are. */
#watchlist,
#news {
  scroll-margin-top: 76px;
}

:target {
  animation: target-flash 1.4s ease-out;
}

@keyframes target-flash {
  0%, 30% { box-shadow: 0 0 0 3px var(--accent-up-mark); }
  100% { box-shadow: 0 0 0 3px transparent; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

.app {
  margin-left: var(--rail-width);
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app > main {
  flex: 1;
}

.icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

/* Sign out: pinned to the bottom of the rail (desktop). */
.rail-signout {
  margin-top: auto;
  margin-bottom: 16px;
  background: none;
  cursor: pointer;
  font: inherit;
}
.rail-signout[hidden] {
  display: none;
}

@media (max-width: 760px) {
  .rail-signout {
    display: none;
  }
  .rail {
    inset: auto 0 0 0;
    width: auto;
    height: 60px;
    flex-direction: row;
    justify-content: center;
    border-right: none;
    border-top: 1px solid var(--hairline);
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
  .rail-logo {
    display: none;
  }
  .rail-nav {
    flex-direction: row;
    justify-content: space-around;
    padding: 0 16px;
    border-top: none;
  }
  .rail-link {
    flex-direction: column;
    gap: 2px;
    width: 64px;
    height: 48px;
  }
  .rail-label {
    position: static;
    transform: none;
    padding: 0;
    background: none;
    color: inherit;
    font-size: 10px;
    font-weight: 600;
    opacity: 1;
  }
  .rail-link:hover .rail-label {
    transform: none;
  }
  .app {
    margin-left: 0;
    padding-bottom: 60px;
  }
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  margin-top: 56px;
  padding: 40px 32px 28px;
  border-top: 1px solid var(--hairline);
  color: var(--ink-muted);
  font-size: 14px;
}

.footer-top,
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 32px 48px;
  flex-wrap: wrap;
  padding-bottom: 32px;
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.footer-logo .brand-mark {
  width: 32px;
  height: 32px;
}

.footer-brand p {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 160px));
  gap: 24px 48px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-heading {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 4px;
}

.footer-col a {
  color: var(--ink-secondary);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px 32px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}

.footer-note,
.footer-copy {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}

.footer-note {
  max-width: 760px;
}

.footer-note a {
  color: var(--ink-secondary);
}

.footer-copy {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .site-footer {
    padding: 32px 16px 24px;
  }
  .footer-cols {
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .footer-bottom {
    flex-direction: column;
  }
}

/* ------------------------------------------------------------- home: hero */

.home {
  padding: 0 32px;
}

.hero {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 0 36px;
  text-align: center;
}

.eyebrow-dot.live {
  background: var(--accent-up-mark);
  box-shadow: 0 0 0 3px var(--accent-up-wash);
}

.hero-title {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 18px 0 18px;
}

.hero-accent {
  color: var(--accent-up-mark);
}

.hero-subtitle {
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-muted);
}

.hero-search-card {
  text-align: left;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  box-shadow: var(--shadow-card), 0 0 60px hsl(160 84% 39% / 0.08);
  padding: 24px 28px 20px;
}

.hero-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  padding: 10px 10px 10px 18px;
  background: var(--surface-1);
}

.hero-search .search-icon svg {
  width: 20px;
  height: 20px;
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: none;
  color: var(--ink);
  font-size: 17px;
}

.hero-search input::placeholder {
  color: var(--ink-muted);
}

.hero-search-btn {
  border-radius: 10px;
  padding: 11px 20px;
  font-size: 15px;
}

.quick-picks {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
}

.quick-picks-label {
  flex: 0 0 auto;
  padding-top: 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.quick-picks-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-pick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px 4px 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.quick-pick:hover {
  border-color: var(--border-strong);
  background: var(--surface-1);
}

.quick-pick-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--accent-up-wash);
  color: var(--accent-up);
  font-size: 11px;
}

.hero .preview-banner {
  margin-top: 16px;
  border: none;
  padding: 0;
  font-size: 12px;
}

.hero .preview-banner.warning {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
}

/* --------------------------------------------------------- home: dashboard */

.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
  align-items: start;
}

.dashboard-main,
.dashboard-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-title {
  font-size: 24px !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  text-transform: none !important;
  color: var(--ink) !important;
  margin: 0 !important;
}

.section-subtitle {
  font-size: 14px;
  color: var(--ink-muted);
  margin: 4px 0 0;
}

.side-card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 16px;
}

.side-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.home .side-card-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink);
}

.side-card .sidebar-list {
  box-shadow: none;
}

@media (max-width: 1080px) {
  .dashboard {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .home {
    padding: 0 16px;
  }
  .hero {
    padding-top: 40px;
  }
  .hero-search-card {
    padding: 16px;
  }
  .hero-search {
    flex-wrap: wrap;
    padding: 10px 12px;
  }
  .hero-search-btn {
    width: 100%;
  }
  .quick-picks {
    flex-direction: column;
    gap: 6px;
  }
}

.ghost-btn {
  width: 100%;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: none;
  padding: 10px;
  font-size: 13px;
  color: var(--ink-muted);
  cursor: not-allowed;
}

.empty-note {
  font-size: 13px;
  color: var(--ink-muted);
  margin: 0;
}

/* Price delta as a tinted pill (reference: "+34%" badge) -- still the two
   status colors only, and still carrying the ▲/▼ glyph. */
.delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  border-radius: 999px;
  padding: 2px 8px;
}

.delta.up {
  color: var(--accent-up);
  background: var(--accent-up-wash);
}

.delta.down {
  color: var(--accent-down);
  background: var(--accent-down-wash);
}

/* ------------------------------------------------------------- pill tabs
   Region tabs (home) and section tabs (ticker page) share the reference's
   tab-bar look: borderless pills, active one filled. */

.region-tabs,
.section-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.region-tab,
.section-tab {
  border: 1px solid transparent;
  background: none;
  color: var(--ink-muted);
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.region-tab:hover,
.section-tab:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.region-tab.active,
.section-tab.active {
  color: var(--ink);
  background: var(--surface-2);
  border-color: var(--border);
  font-weight: 600;
}

/* --------------------------------------------------------------- tickers */

.ticker-list {
  margin-bottom: 32px;
  overflow: hidden;
}

.ticker-list-head,
.ticker-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px 110px;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
}

.ticker-list-head {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  padding-top: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
}

.ticker-list-head span:not(:first-child) {
  text-align: right;
}

.ticker-row {
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.ticker-row:last-child {
  border-bottom: none;
}

.ticker-row:hover {
  background: var(--surface-2);
}

.ticker-row-name {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

/* Rounded-square symbol tile standing in for a logo (reference: the
   "NVDA" tile beside each Live Verdicts row). */
.symbol-tile {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-secondary);
  overflow: hidden;
}

.ticker-row-text {
  min-width: 0;
}

.ticker-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticker-meta {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 2px;
  font-weight: 400;
}

.ticker-symbol {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

.ticker-value {
  font-family: var(--font-num);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  text-align: right;
}

.ticker-delta {
  text-align: right;
}

.empty-state {
  color: var(--ink-muted);
  font-size: 13px;
  text-align: center;
  padding: 28px 20px;
  margin: 0;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
}

.ticker-list > .empty-state {
  border: none;
  border-radius: 0;
}

@media (max-width: 640px) {
  .ticker-list-head,
  .ticker-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding: 12px 14px;
  }
  .symbol-tile {
    display: none;
  }
}

/* -------------------------------------------------------------- news list */

.home h2,
.ticker-page h2 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin: 0 0 12px;
}

.market-news {
  overflow: hidden;
}

.ticker-page .market-news {
  margin-top: 32px;
}

.market-news h2,
.ticker-page .market-news h2 {
  margin: 0;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--hairline);
}

.news-item {
  display: block;
  padding: 14px 20px;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.news-item:last-child {
  border-bottom: none;
}

.news-item:hover {
  background: var(--surface-2);
}

.news-item .headline {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
  color: var(--ink);
}

.news-item .byline {
  font-size: 12px;
  color: var(--ink-muted);
}

.market-news .empty-state {
  border: none;
  border-radius: 0;
}

.coming-soon-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 10px;
}

.research-greeting {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 18px;
}

.research-suggestions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.suggestion-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 12px 14px;
  font-size: 13px;
  cursor: not-allowed;
  color: var(--ink-secondary);
}

.explore-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: auto;
}

.explore-pill {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-secondary);
  cursor: not-allowed;
}

.ask-box {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-1);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 8px 8px 8px 16px;
}

.ask-box input {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  outline: none;
  font-size: 13px;
  color: var(--ink-muted);
}

/* ---------------------------------------------- sidebar ticker rows -----
   Shared by the Equity sectors list and the Watchlist -- a compact row
   variant of .ticker-row for the narrow sidebar column. */

.sidebar-list {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.sidebar-list:has(> .empty-note) {
  padding: 12px 14px;
}

.sidebar-ticker-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.sidebar-ticker-row:last-child {
  border-bottom: none;
}

.sidebar-ticker-row:hover {
  background: var(--surface-2);
}

.sidebar-ticker-name {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}

/* Plain ink, not a third hue -- see the file header. */
.signal-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-secondary);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 1px 7px;
  white-space: nowrap;
}

.watchlist-remove {
  border: none;
  background: none;
  color: var(--ink-muted);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 0 0 0 2px;
}

.watchlist-remove:hover {
  color: var(--ink);
}

.watchlist-add-form {
  margin-bottom: 10px;
}

.watchlist-add-form input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-1);
  outline: none;
  color: var(--ink);
  font-size: 13px;
  padding: 8px 10px;
}

.watchlist-add-form input:focus {
  border-color: var(--border-strong);
}

.watchlist-add-form input::placeholder {
  color: var(--ink-muted);
}

/* ---------------------------------------------------------- ticker page */

.ticker-page h2 {
  margin: 32px 0 12px;
}

.page-pad {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 32px 0;
}

/* Header band: logo tile + name + mono symbol + sector pill, a price /
   change / market-cap line, heart on the right, then the icon tab row on
   a hairline (reference stock-page header). */
.stock-header {
  padding: 20px 32px 0;
  border-bottom: 1px solid var(--hairline);
}

.stock-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto 14px;
}

.ticker-detail-name-group {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.ticker-logo {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  background: hsl(150 40% 97%);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ticker-logo--sm {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.ticker-logo-fallback {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: hsl(160 84% 24%);
}

.ticker-logo--sm .ticker-logo-fallback {
  font-size: 9px;
}

.ticker-logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  background: #ffffff;
  box-sizing: border-box;
}

.ticker-detail-title {
  min-width: 0;
}

.stock-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.ticker-detail-name {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

.stock-symbol {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.sector-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 1px 9px;
}

.stock-sub {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-muted);
}

.stock-sub-price {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stock-sub-change {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.stock-sub-change.up {
  color: var(--accent-up);
}

.stock-sub-change.down {
  color: var(--accent-down);
}

.heart-btn {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: none;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.heart-btn .icon {
  width: 20px;
  height: 20px;
}

.heart-btn:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.heart-btn.in-list {
  color: var(--accent-down-mark);
}

.heart-btn.in-list .icon {
  fill: currentColor;
}

/* Icon tabs (reference: Overview / Charts / Financials ...). */
.stock-header .section-tabs {
  max-width: 1280px;
  margin: 0 auto;
  padding-bottom: 12px;
  border-bottom: none;
}

.section-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.section-tab .icon {
  width: 15px;
  height: 15px;
}

/* Cards used throughout the Overview (reference: Valuation Snapshot, Key
   Financials, About...). */
.price-card,
.overview-card {
  padding: 20px 20px 18px;
  margin-bottom: 20px;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.card-subtitle {
  font-size: 12px;
  color: var(--ink-muted);
  margin: 4px 0 0;
}

.card-footnote {
  font-size: 12px;
  color: var(--ink-muted);
  margin: 14px 0 0;
}

.link-btn {
  border: none;
  background: none;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}

.link-btn:hover {
  text-decoration: underline;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 999px;
  padding: 3px 10px;
  border: 1px solid currentColor;
  white-space: nowrap;
}

.badge-pill .icon {
  width: 12px;
  height: 12px;
}

.badge-pill.up {
  color: var(--accent-up);
  background: var(--accent-up-wash);
}

.badge-pill.down {
  color: var(--accent-down);
  background: var(--accent-down-wash);
}

/* Price card head (logo + venue + name, day change top-right). */
.price-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.price-card-id {
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-card-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.price-card-name {
  font-size: 14px;
  font-weight: 600;
}

.price-since {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.ticker-detail-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 24px;
}

.ticker-detail-price-group--secondary {
  padding-left: 24px;
  border-left: 1px solid var(--hairline);
}

.ticker-detail-price {
  font-family: var(--font-num);
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.ticker-detail-price--secondary {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-secondary);
}

.ticker-detail-change {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.ticker-detail-today {
  font-size: 13px;
  color: var(--ink-muted);
}

/* The HTML hidden attribute's UA rule doesn't apply to SVG elements in
   Chromium, so the chart's crosshair/ring/dot (toggled via .hidden in
   attachChartHover) would otherwise sit visible at the plot's corner. */
svg [hidden] {
  display: none;
}

/* Plot + right-hand price labels. The SVG and its tooltip live in
   .chart-plot-inner so the tooltip's %-based left/right (attachChartHover)
   is relative to the plot's own width, not the label gutter. */
.chart-plot {
  position: relative;
  padding-right: 64px;
}

.chart-plot-inner {
  position: relative;
}

.price-chart {
  display: block;
  width: 100%;
  height: 240px;
  color: var(--ink);
  cursor: crosshair;
}

.price-chart.up {
  color: var(--accent-up-mark);
}

.price-chart.down {
  color: var(--accent-down-mark);
}

.chart-line {
  stroke-width: 2;
  stroke-linejoin: round;
}

.prev-close-line {
  stroke: var(--ink-muted);
  stroke-width: 1;
  stroke-dasharray: 4 3;
  vector-effect: non-scaling-stroke;
}

/* Pre/post-market portion of the 1D/5D chart -- dashed and dimmer rather
   than a new hue, so color stays reserved for up/down (see common.js's
   deltaMarkup comment). */
.chart-line-extended {
  stroke-dasharray: 3 3;
  opacity: 0.5;
}

/* Mountain view: same currentColor as the line (green/red for the whole
   period's direction), just a low-opacity fill under it down to the
   chart's bottom edge -- the reference's soft area-chart look. */
.chart-area {
  fill: url(#chart-fill-grad);
}

.chart-area-extended {
  opacity: 0.45;
}

/* Candle view: colored per-candle by that candle's own open/close, not the
   whole period's direction -- explicit accent colors rather than
   currentColor, since a single chart can (and usually does) mix both. */
.chart-candle-wick {
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.chart-candle-wick-up {
  stroke: var(--accent-up-mark);
}

.chart-candle-wick-down {
  stroke: var(--accent-down-mark);
}

.chart-candle-body-up {
  fill: var(--accent-up-mark);
}

.chart-candle-body-down {
  fill: var(--accent-down-mark);
}

.chart-candle-extended {
  opacity: 0.55;
}

.chart-session-boundary {
  stroke: var(--border);
  stroke-width: 1;
  stroke-dasharray: 2 2;
  vector-effect: non-scaling-stroke;
}

.chart-crosshair {
  stroke: var(--ink-muted);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.chart-hover-ring {
  fill: var(--surface-1);
  pointer-events: none;
}

.chart-hover-dot {
  fill: currentColor;
  pointer-events: none;
}

.chart-tooltip {
  position: absolute;
  top: 8px;
  pointer-events: none;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-pop);
  padding: 8px 10px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 5;
}

.chart-tooltip-date {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.chart-tooltip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.chart-tooltip-row span:first-child {
  color: var(--ink-secondary);
}

.chart-tooltip-value {
  font-family: var(--font-num);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

/* Segmented control (reference: Quarterly / TTM / Annual) -- a gray track
   with the active segment filled. Shared by the chart's timeframe tabs,
   the Financials statement switch and the Earnings Annual/Quarterly
   toggle. */
.chart-period-tabs,
.statement-tabs,
.rve-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.statement-tabs {
  margin-bottom: 14px;
}

.chart-period-tab,
.statement-tab,
.rve-toggle-btn {
  border: none;
  background: none;
  color: var(--ink-muted);
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.chart-period-tab:hover,
.statement-tab:hover,
.rve-toggle-btn:hover {
  color: var(--ink);
}

.chart-period-tab.active,
.statement-tab.active,
.rve-toggle-btn.active {
  color: var(--primary-ink);
  background: var(--primary);
}

/* Inline with the price row (see .ticker-detail-price-row), pushed to the
   far right regardless of whether the after-hours secondary price group
   is present. align-self overrides the row's baseline alignment, which
   would otherwise sit the button oddly against the large price digits. */
.chart-type-dropdown {
  position: relative;
  margin-left: auto;
  align-self: center;
}

.chart-type-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-1);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  cursor: pointer;
}

.chart-type-dropdown-toggle:hover {
  border-color: var(--border-strong);
}

.chart-type-dropdown-caret {
  color: var(--ink-muted);
  font-size: 10px;
}

.chart-type-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  padding: 4px;
  min-width: 140px;
  z-index: 20;
}

.chart-type-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: none;
  border-radius: 6px;
  background: none;
  padding: 7px 10px;
  font-size: 13px;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}

.chart-type-option:hover {
  background: var(--surface-2);
}

.chart-type-option.active {
  font-weight: 600;
}

/* Section tab bar sits on a hairline, like the reference's tab row. */
.section-tabs {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 24px;
}

@media (max-width: 640px) {
  .ticker-page {
    padding: 16px 16px 48px;
  }
  .ticker-detail-name {
    font-size: 24px;
    white-space: normal;
  }
  .ticker-logo {
    width: 44px;
    height: 44px;
  }
  
  .chart-period-tab {
    padding: 5px 8px;
  }
  .ticker-detail-price-group--secondary {
    padding-left: 0;
    border-left: none;
  }
}



/* Deliberately plain ink, not a third accent color -- status color (green/
   red) is reserved exclusively for price deltas (see file header). */
.verdict-badge {
  flex: none;
  background: var(--primary);
  color: var(--primary-ink);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 999px;
  padding: 5px 14px;
}

.verdict-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.verdict-point-icon {
  margin-top: 3px;
}

.verdict-points {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.5;
}

.verdict-points li {
  margin-bottom: 10px;
}

.verdict-points li:last-child {
  margin-bottom: 0;
}

/* Step-by-step "work in progress" list shown while the first AI Verdict of
   the day is generating -- see renderAiVerdictProgress in ticker.js. Plain
   ink states only (done/active/pending via opacity+weight), no new color,
   same convention as the verdict badge above. */
.verdict-progress {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.verdict-progress-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-muted);
}

.verdict-progress-step.verdict-progress-done {
  color: var(--ink-secondary);
}

.verdict-progress-step.verdict-progress-active {
  color: var(--ink);
  font-weight: 600;
}

.verdict-progress-marker {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--ink-muted);
  background: transparent;
}

.verdict-progress-done .verdict-progress-marker {
  background: var(--ink-secondary);
  border-color: var(--ink-secondary);
}

.verdict-progress-active .verdict-progress-marker {
  background: var(--ink);
  border-color: var(--ink);
  animation: verdict-progress-pulse 1s ease-in-out infinite;
}

@keyframes verdict-progress-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* --------------------------------------------------------------- stats grid
   Stat tiles (reference: the Financial Charts tiles) -- small muted label
   over a bold value, each its own rounded tile. */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}

@media (max-width: 800px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.stat-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 12px 14px;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.stat-cell-empty {
  display: none;
}

.stat-label {
  font-size: 12px;
  color: var(--ink-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-value {
  font-family: var(--font-num);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

/* ---------------------------------------------------------- related stocks */

.related-stocks-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.related-stock-card {
  display: block;
  min-width: 0;
  padding: 14px;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.related-stock-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-pop);
}

.related-stock-ticker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-secondary);
  background: var(--surface-2);
  border-radius: 6px;
  padding: 1px 6px;
}

.related-stock-name {
  font-size: 13px;
  font-weight: 600;
  margin: 6px 0 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-stock-price {
  font-family: var(--font-num);
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}

.sparkline {
  display: block;
  width: 100%;
  height: 36px;
  color: var(--ink-secondary);
  margin-top: 10px;
}

.sparkline.up {
  color: var(--accent-up);
}

.sparkline.down {
  color: var(--accent-down);
}

/* ---------------------------------------------------------------- tables
   Card tables (reference: the portfolio table) -- rounded card, uppercase
   header row, roomy rows on hairlines. border-collapse: separate is what
   lets the table itself carry the rounded border. */

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  margin-bottom: 8px;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.data-table th {
  text-align: right;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  padding: 12px 16px 10px;
  border-bottom: 1px solid var(--hairline);
  white-space: nowrap;
}

.data-table th:first-child,
.data-table td:first-child {
  text-align: left;
  padding-left: 20px;
}

.data-table th:last-child,
.data-table td:last-child {
  padding-right: 20px;
}

.data-table td {
  text-align: right;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
  white-space: nowrap;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover td {
  background: var(--surface-2);
}

.data-table td:first-child {
  font-family: var(--font-sans);
  font-weight: 500;
  white-space: normal;
}

/* Wide tables (Holdings, Financials) scroll inside the card on narrow
   screens instead of blowing out the page width. */
@media (max-width: 800px) {
  .data-table {
    display: block;
    overflow-x: auto;
  }
}

/* Financial-statement line items: indentation + weight + rules communicate
   the roll-up hierarchy (detail line -> subtotal -> headline total) the
   same way a printed statement would, instead of every row looking
   identical regardless of what it means. */

.statement-table tr.stmt-indent td:first-child {
  padding-left: 40px;
  font-weight: 400;
  color: var(--ink-secondary);
}

/* The rule above a subtotal/total is drawn as the *preceding* row's
   bottom border (via :has), not the row's own border-top -- in a
   separate-borders table that would stack under the hairline already
   there and read as a double rule. */
.statement-table tr.stmt-subtotal td {
  font-weight: 600;
}

.statement-table tr:has(+ tr.stmt-subtotal) td {
  border-bottom-color: var(--border);
}

.statement-table tr.stmt-total td {
  font-weight: 700;
  background: color-mix(in srgb, var(--surface-2) 60%, transparent);
}

.statement-table tr:has(+ tr.stmt-total) td {
  border-bottom-color: var(--border-strong);
}

.statement-table tr.stmt-supplementary td,
.statement-table tr.stmt-supplementary-start td {
  color: var(--ink-secondary);
  font-weight: 400;
}

.statement-table tr:has(+ tr.stmt-supplementary-start) td {
  border-bottom: 1px dashed var(--border-strong);
}

@media (max-width: 640px) {
  .statement-table td:first-child {
    min-width: 170px;
  }
  .statement-table tr.stmt-indent td:first-child {
    padding-left: 24px;
  }
}

.stmt-period-end {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-muted);
}

/* Section label rows ("Assets", "Liabilities") on the balance sheet. */
.statement-table tr.stmt-header td {
  padding-top: 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: none;
}

.statement-table tr.stmt-header:first-child td {
  padding-top: 10px;
}

/* ------------------------------------------------------------- analysis */

.analysis-top-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 8px;
}

@media (max-width: 640px) {
  .analysis-top-row {
    grid-template-columns: 1fr;
  }
}

.analysis-card {
  padding: 20px;
}

.analysis-card h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

.consensus-ring-block {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 16px;
}

.consensus-ring {
  width: 120px;
  height: 120px;
}

.consensus-ring-track {
  fill: none;
  stroke: var(--surface-2);
  stroke-width: 12;
}

.consensus-ring-arc {
  fill: none;
  stroke-width: 12;
  stroke-linecap: butt;
}

.consensus-ring-arc.up {
  stroke: var(--accent-up);
}

.consensus-ring-arc.hold {
  stroke: var(--ink-muted);
}

.consensus-ring-arc.down {
  stroke: var(--accent-down);
}

.consensus-ring-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-align: center;
  max-width: 64px;
}

.consensus-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.consensus-legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.consensus-legend-row span:nth-child(2) {
  flex: 1;
  color: var(--ink-secondary);
}

.consensus-legend-value {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}

.consensus-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.consensus-dot.up {
  background: var(--accent-up);
}

.consensus-dot.hold {
  background: var(--ink-muted);
}

.consensus-dot.down {
  background: var(--accent-down);
}

.forecast-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.forecast-bar-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.forecast-bar-label {
  color: var(--ink-muted);
}

.forecast-bar-track {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.forecast-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--primary);
}

.forecast-bar-value {
  font-family: var(--font-num);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
}

.forecast-current {
  margin-top: 16px;
  font-size: 12px;
  color: var(--ink-muted);
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------- earnings */

.eps-legend-item,
.rve-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--ink-secondary);
  margin-bottom: 8px;
}

.eps-trend-legend {
  display: flex;
  gap: 20px;
  margin-bottom: 4px;
}

.eps-legend-item {
  gap: 6px;
  margin-bottom: 0;
}

.eps-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
  border: 1.5px solid var(--ink-muted);
}

.eps-legend-dot.actual {
  background: var(--ink-secondary);
  border-color: var(--ink-secondary);
}

.eps-trend-chart {
  display: block;
  width: 100%;
  height: 190px;
}

.chart-gridline {
  stroke: var(--hairline);
  stroke-width: 1;
}

.eps-connector {
  stroke: var(--ink-muted);
  stroke-width: 1;
  stroke-dasharray: 2 2;
}

.eps-dot-estimate {
  fill: var(--surface-1);
  stroke: var(--ink-muted);
  stroke-width: 1.5;
}

.eps-dot-ring {
  fill: var(--surface-1);
}

.eps-dot-actual.up {
  fill: var(--accent-up);
}

.eps-dot-actual.down {
  fill: var(--accent-down);
}

.eps-trend-labels {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.eps-trend-label {
  text-align: center;
  font-size: 11px;
}

.eps-trend-date {
  color: var(--ink-muted);
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}

.eps-trend-status {
  font-weight: 600;
  color: var(--ink-secondary);
}

.eps-trend-status.up {
  color: var(--accent-up);
}

.eps-trend-status.down {
  color: var(--accent-down);
}

.eps-trend-diff {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
}

.rve-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.rve-card-header h3 {
  margin: 0;
}

.rve-legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex: 0 0 auto;
}

.rve-legend-swatch.revenue {
  background: var(--chart-blue);
}

.rve-legend-swatch.earnings {
  background: var(--chart-purple);
}

.rve-chart {
  display: block;
  width: 100%;
  height: 190px;
}

.rve-bar.revenue {
  fill: var(--chart-blue);
}

.rve-bar.earnings {
  fill: var(--chart-purple);
}

.rve-labels {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.rve-label {
  text-align: center;
}

.rve-period {
  font-size: 11px;
  color: var(--ink-muted);
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}

.rve-values {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}

.rve-value.revenue {
  color: var(--ink);
}

.rve-value.earnings {
  color: var(--ink-secondary);
}

/* ----------------------------------------------------------------- search */

.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  max-height: 360px;
  overflow-y: auto;
  padding: 6px;
  z-index: 40;
}

.search-result-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: none;
  border-radius: var(--radius-sm);
  background: none;
  padding: 9px 10px;
  font-size: 13px;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}

.search-result-row:hover {
  background: var(--surface-2);
}

.search-result-ticker {
  flex: 0 0 auto;
  min-width: 56px;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 700;
}

.search-result-name {
  flex: 1;
  min-width: 0;
  color: var(--ink-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-exchange {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 1px 8px;
}

.search-result-empty {
  padding: 12px 10px;
  font-size: 13px;
  color: var(--ink-muted);
}

/* ===================================================================
   valuesnapshot.io stock-page components
   =================================================================== */

/* ------------------------------------------------- price card internals */

.chart-loading {
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  font-size: 13px;
}

/* Period change row above the plot: change pill left, period label right. */
.chart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 14px;
}

.delta.delta-lg {
  font-size: 15px;
  padding: 4px 10px;
}

.chart-summary-label {
  font-size: 13px;
  color: var(--ink-muted);
}

.chart-gridline-dashed {
  stroke: var(--border);
  stroke-width: 1;
  stroke-dasharray: 3 4;
  vector-effect: non-scaling-stroke;
}

.chart-y-labels {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 60px;
  pointer-events: none;
}

.chart-y-label {
  position: absolute;
  right: 0;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.chart-x-labels {
  padding-right: 64px;
  margin-top: 8px;
}

.chart-x-labels-inner {
  position: relative;
  height: 16px;
}

.chart-x-label {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--ink-muted);
  white-space: nowrap;
}

.chart-x-label.first {
  transform: none;
}

.chart-x-label.last {
  transform: translateX(-100%);
}

/* Under the plot: period high/low on the left, timeframe pills + chart
   type on the right. */
.chart-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.chart-hilo {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--ink-muted);
}

.chart-hilo strong {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.hilo-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  vertical-align: 1px;
}

.hilo-dot.up {
  background: var(--accent-up-mark);
}

.hilo-dot.down {
  background: var(--accent-down-mark);
}

.chart-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.chart-controls .chart-type-dropdown {
  margin-left: 0;
}

/* Timeframe pills: borderless, active one is a filled dark pill
   (reference: 7D 1M 3M [6M] YTD ...). */
.price-card .chart-period-tabs {
  background: none;
  border: none;
  padding: 0;
  gap: 4px;
}

.price-card .chart-period-tab {
  min-width: 38px;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--ink-secondary);
}

.price-card .chart-period-tab.active {
  background: var(--ink);
  color: var(--bg);
}

/* 52-week range bar + performance row. */
.range-block {
  margin-top: 24px;
}

.range-head,
.range-ends {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.range-label,
.range-note,
.perf-label,
.value-box-label,
.value-scale-labels {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.range-track {
  position: relative;
  height: 6px;
  margin: 10px 0 8px;
  border-radius: 999px;
  background: var(--surface-2);
}

.range-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
  background: linear-gradient(90deg, hsl(0 72% 51% / 0.55), hsl(220 10% 60% / 0.5), hsl(160 84% 39% / 0.75));
}

.range-marker {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--ink);
  border: 2px solid var(--surface-1);
  transform: translate(-50%, -50%);
}

.perf-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}

.perf-value {
  margin-top: 4px;
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.perf-value.up,
.kf-value.up,
.value-box-value.up {
  color: var(--accent-up);
}

.perf-value.down,
.kf-value.down,
.value-box-value.down {
  color: var(--accent-down);
}

/* Grey banner under the price card (reference: "ValueSnapshot verdict");
   Pancake uses it for the insider signal and the AI verdict. */
.verdict-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  padding: 16px 22px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  box-shadow: var(--shadow-card);
  font-size: 14px;
}

.verdict-banner p {
  margin: 2px 0 0;
  color: var(--ink-secondary);
}

.verdict-banner strong {
  color: var(--ink);
  font-weight: 600;
}

.verdict-banner-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--ink-muted);
}

.verdict-banner-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-secondary);
}

.verdict-banner--ai {
  align-items: center;
  border-radius: var(--radius-lg);
  padding: 18px 22px;
}

.verdict-banner-note {
  font-size: 12px;
  color: var(--ink-muted) !important;
}

/* Price-target snapshot (reference: Valuation Snapshot). */
.value-boxes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.value-boxes--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

.value-box {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-1);
}

.value-box--muted {
  background: var(--surface-2);
}

.value-box-value {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 19px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.value-scale {
  position: relative;
  height: 8px;
  margin: 24px 0 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, hsl(160 70% 42%), hsl(80 60% 50%) 35%, hsl(45 93% 52%) 60%, hsl(20 90% 55%) 80%, hsl(0 72% 51%));
}

.value-scale-marker {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface-1);
  border: 2px solid var(--ink);
  transform: translate(-50%, -50%);
}

.value-scale-labels {
  display: flex;
  justify-content: space-between;
}

/* Key financials: two columns of label/value rows on hairlines. */
.kf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
}

.kf-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 13px;
}

.kf-label {
  color: var(--ink-secondary);
}

.kf-value {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.about-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.overview-card .stats-grid {
  margin-bottom: 0;
}

.overview-card .stat-cell {
  box-shadow: none;
  background: var(--surface-2);
  border-color: transparent;
}

.block-title,
.ticker-page .related-stocks-section h2 {
  font-size: 17px !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  text-transform: none !important;
  color: var(--ink) !important;
  margin: 8px 0 12px !important;
}

@media (max-width: 760px) {
  .page-pad {
    padding: 16px 16px 0;
  }
  .stock-header {
    padding: 16px 16px 0;
  }
  .ticker-detail-name {
    font-size: 21px;
  }
  .ticker-detail-price {
    font-size: 38px;
  }
  .ticker-detail-price.ticker-detail-price--secondary {
    font-size: 20px;
  }
  .kf-grid,
  .value-boxes,
  .value-boxes--two,
  .perf-row {
    grid-template-columns: 1fr;
  }
  .chart-plot,
  .chart-x-labels {
    padding-right: 52px;
  }
  .verdict-banner {
    border-radius: var(--radius-lg);
  }
}

/* -------------------------------------------------------------- Charts tab
   Reference: "Financial Charts" grid -- 4 across, uppercase metric label,
   bold latest value, per-metric hue (identity, not direction). */

.charts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.charts-title {
  font-size: 19px !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  text-transform: none !important;
  color: var(--ink) !important;
  margin: 0 !important;
}

.charts-range {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-muted);
}

.charts-range-label {
  font-weight: 600;
  color: var(--primary-ink);
  background: var(--primary);
  border-radius: 8px;
  padding: 6px 12px;
}

.chart-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 1100px) {
  .chart-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .chart-tiles {
    grid-template-columns: 1fr;
  }
}

.chart-tile {
  padding: 14px 12px 10px;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  min-width: 0;
}

.chart-tile-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-secondary);
}

.chart-tile-value {
  margin: 2px 0 8px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.tile-chart {
  display: block;
  width: 100%;
  height: auto;
}

.tile-grid {
  stroke: var(--border);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

.tile-axis {
  font-size: 10px;
  fill: var(--ink-muted);
  font-family: var(--font-sans);
}

.tile-bar {
  fill: currentColor;
}

.tile-bar-neg {
  opacity: 0.55;
}

.tile-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
}

.tile-dot {
  fill: currentColor;
}

.tile-x {
  display: grid;
  text-align: center;
  font-size: 10px;
  color: var(--ink-muted);
}

.tile-empty {
  padding: 40px 0;
  text-align: center;
}

.tone-blue { color: var(--chart-blue); }
.tone-purple { color: var(--chart-purple); }
.tone-orange { color: var(--chart-orange); }
.tone-pink { color: var(--chart-pink); }
.tone-rose { color: var(--chart-rose); }
.tone-cyan { color: var(--chart-cyan); }
.tone-yellow { color: var(--chart-yellow); }
.tone-violet { color: var(--chart-violet); }
.tone-teal { color: var(--chart-teal); }
.tone-indigo { color: var(--chart-indigo); }
.tone-sky { color: var(--chart-sky); }
.tone-slate { color: var(--chart-slate); }
.tone-emerald { color: var(--chart-emerald); }
.tone-amber { color: var(--chart-amber); }
.tone-fuchsia { color: var(--chart-fuchsia); }

/* The hue only colors the marks -- labels and values stay ink. */
.chart-tile .chart-tile-value {
  color: var(--ink);
}

/* --------------------------------------------------------- AI Analysis tab
   Bull / bear / risk cards (reference: tinted case cards with an icon
   tile, small uppercase title, iconed bullets). */

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 760px) {
  .case-grid {
    grid-template-columns: 1fr;
  }
}

.case-card {
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-1);
  box-shadow: var(--shadow-card);
}

.case-card--bull {
  border-color: hsl(160 60% 45% / 0.4);
  background: linear-gradient(160deg, hsl(160 70% 40% / 0.08), var(--surface-1) 60%);
}

.case-card--bear {
  border-color: hsl(0 72% 51% / 0.35);
  background: linear-gradient(160deg, hsl(0 72% 51% / 0.07), var(--surface-1) 60%);
}

.case-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.case-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid currentColor;
  color: var(--ink-secondary);
  background: var(--surface-2);
}

.case-card--bull .case-card-icon,
.case-card--bull .case-card-title,
.case-card--bull .verdict-point-icon {
  color: var(--accent-up);
}

.case-card--bull .case-card-icon {
  background: var(--accent-up-wash);
}

.case-card--bear .case-card-icon,
.case-card--bear .case-card-title,
.case-card--bear .verdict-point-icon {
  color: var(--accent-down);
}

.case-card--bear .case-card-icon {
  background: var(--accent-down-wash);
}

.case-card-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-card-subtitle {
  font-size: 12px;
  color: var(--ink-muted);
}

.case-card .verdict-points {
  padding-left: 0;
  list-style: none;
}

.verdict-point-icon {
  color: var(--ink-muted);
}

/* No extra gap above a tab's first section heading. */
#panel-container > h2:first-child {
  margin-top: 0;
}

/* -------------------------------------------------------- Financial trends
   Reference: valuesnapshot.io's "Financial trends" grid -- six roomy cards,
   3 across, with a TTM / Annual / Quarterly switch. Bars are a pale tint
   of the up color with the latest period solid; values and deltas use the
   usual green/red-with-sign convention. */

.trends-section {
  margin: 8px 0 20px;
}

.trends-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.trends-heading {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
}

.trends-switch {
  display: inline-flex;
  gap: 2px;
}

.trends-switch-btn {
  border: none;
  background: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 10px;
  cursor: pointer;
}

.trends-switch-btn:hover {
  background: var(--surface-2);
}

.trends-switch-btn.active {
  background: var(--surface-2);
  font-weight: 600;
}

.trends-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1100px) {
  .trends-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .trends-grid {
    grid-template-columns: 1fr;
  }
}

.trend-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px 20px 16px;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

.trend-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}

.trend-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.trend-card-sub {
  margin: 3px 0 0;
  font-size: 13px;
  color: var(--ink-muted);
}

.trend-card-chevron {
  color: var(--ink-muted);
  font-size: 18px;
  line-height: 1;
}

.trend-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-secondary);
}

.trend-value {
  margin: 4px 0 4px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.trend-value.up {
  color: var(--accent-up-mark);
}

.trend-value.down {
  color: var(--accent-down);
}

.trend-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
  font-variant-numeric: tabular-nums;
}

.trend-meta .up {
  color: var(--accent-up);
}

.trend-meta .down {
  color: var(--accent-down);
}

.trend-dot {
  color: var(--ink-muted);
}

.trend-chart {
  margin-top: auto;
  padding-top: 18px;
  color: var(--accent-up-mark);
}

.trend-chart.down {
  color: var(--accent-down-mark);
}

.trend-svg {
  display: block;
  width: 100%;
  height: 120px;
}

.trend-bar {
  fill: currentColor;
  opacity: 0.28;
}

.trend-bar.latest {
  opacity: 1;
}

.trend-bar.neg {
  fill: var(--accent-down-mark);
}

.trend-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.trend-x {
  position: relative;
  height: 16px;
  margin-top: 8px;
}

.trend-x span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--ink-muted);
  white-space: nowrap;
}

.trend-x span:first-child {
  transform: translateX(-30%);
}

.trend-x span:last-child {
  transform: translateX(-70%);
}

.trend-note {
  margin: 28px 0 0;
  font-size: 13px;
  color: var(--ink-muted);
}

.trend-empty {
  padding: 40px 0;
  text-align: center;
  font-size: 12px;
  color: var(--ink-muted);
}

.trend-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--ink-secondary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trend-badge.up {
  color: var(--accent-up);
  background: var(--accent-up-wash);
  border-color: transparent;
}

.trend-badge.down {
  color: var(--accent-down);
  background: var(--accent-down-wash);
  border-color: transparent;
}

.trend-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.margin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.margin-tile {
  min-width: 0;
  padding: 12px 12px 8px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--surface-1);
}

.margin-tile-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-secondary);
}

.margin-tile-value {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.margin-tile-change {
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.margin-tile-change.up {
  color: var(--accent-up);
}

.margin-tile-change.down {
  color: var(--accent-down);
}

.margin-spark {
  margin-top: 6px;
  color: var(--accent-up-mark);
}

.margin-spark.down {
  color: var(--accent-down-mark);
}

.margin-spark .trend-svg {
  height: 28px;
}

.margin-spark .trend-line {
  stroke-width: 1.5;
}

/* Bull / bear highlight boxes: tag pill before each point. */
.highlights-grid {
  margin-bottom: 6px;
}

.highlight-points li {
  line-height: 1.7;
}

.highlight-tag {
  display: inline-block;
  margin-right: 8px;
  padding: 0 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 18px;
  text-transform: uppercase;
  vertical-align: 1px;
}

.case-card--bull .highlight-tag {
  color: var(--accent-up);
  background: var(--accent-up-wash);
}

.case-card--bear .highlight-tag {
  color: var(--accent-down);
  background: var(--accent-down-wash);
}

.highlights-footnote {
  margin: 0 0 20px;
}

/* ------------------------------------------------- Charts tab: toolbar */

.charts-source {
  font-size: 12px;
  color: var(--ink-muted);
}

.charts-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.charts-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-1);
  color: var(--ink-muted);
}

.charts-search:focus-within {
  border-color: var(--border-strong);
}

.charts-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: none;
  color: var(--ink);
  font-size: 14px;
}

.charts-subbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.charts-range-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-secondary);
}

.charts-range-title .icon {
  width: 14px;
  height: 14px;
}

.charts-range-years {
  margin-left: auto;
  font-size: 12px;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.charts-subbar .statement-tabs,
.charts-toolbar .statement-tabs {
  margin-bottom: 0;
}

.statement-tab:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.charts-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--hairline);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: none;
  color: var(--ink-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.chip:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.chip.active {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--ink);
  font-weight: 600;
}

.chip-count {
  min-width: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
  text-align: center;
}

.chip.active .chip-count {
  background: var(--surface-1);
}

/* ---------------------------------------------- Charts tab: tile chrome */

.chart-tile.pinned {
  border-color: var(--border-strong);
}

.chart-tile-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.tile-actions {
  display: flex;
  gap: 2px;
  margin: -4px -4px 0 0;
}

.tile-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 7px;
  background: none;
  color: var(--ink-muted);
  cursor: pointer;
}

.tile-action .icon {
  width: 15px;
  height: 15px;
}

.tile-action:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.tile-action.active {
  color: var(--ink);
}

.tile-action.active .icon {
  fill: currentColor;
}

.chart-tile-value-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 2px 0 8px;
}

.chart-tile-value-row .chart-tile-value {
  margin: 0;
}

.tile-change {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-secondary);
  background: var(--surface-2);
}

.tile-change.up {
  color: var(--accent-up);
  background: var(--accent-up-wash);
}

.tile-change.down {
  color: var(--accent-down);
  background: var(--accent-down-wash);
}

.tile-bar-past {
  opacity: 0.85;
}

.tile-x-ends {
  display: flex;
  justify-content: space-between;
  padding: 0 15% 0 2%;
  font-size: 10px;
  color: var(--ink-muted);
}

/* ------------------------------------------------------------- modals */

body.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: hsl(220 15% 10% / 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: modal-fade 0.15s ease-out;
}

@keyframes modal-fade {
  from {
    opacity: 0;
  }
}

.modal {
  position: relative;
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-pop);
  color: var(--ink);
}

.modal--info {
  width: min(560px, 100%);
  padding: 32px 36px 28px;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--border-strong);
  border-radius: 50%;
  background: none;
  color: var(--ink-secondary);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--ink);
}

.info-title {
  margin: 0 40px 14px 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.info-heading {
  margin: 22px 0 6px;
  font-size: 16px;
  font-weight: 700;
}

.info-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.info-text .good {
  color: var(--accent-up-mark);
}

.info-tips {
  margin: 0;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 200;
  transform: translateX(-50%);
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-pop);
  animation: modal-fade 0.15s ease-out;
}

/* ------------------------------------------------------ expanded chart */

.modal--expanded {
  width: min(1400px, 100%);
}

.expanded-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--hairline);
}

.expanded-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface-2);
}

.expanded-icon .icon {
  width: 18px;
  height: 18px;
}

.expanded-title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.expanded-sub {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--ink-muted);
}

.expanded-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.expanded-tools .statement-tabs {
  margin: 0 6px 0 0;
}

.modal-close-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  padding: 6px 10px;
  border: none;
  border-radius: 8px;
  background: none;
  color: var(--ink-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.modal-close-text:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.expanded-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid var(--hairline);
}

.expanded-stat {
  padding: 16px 20px;
  border-right: 1px solid var(--hairline);
}

.expanded-stat:last-child {
  border-right: none;
}

.expanded-stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-secondary);
}

.expanded-stat-value {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.expanded-stat-value.up {
  color: var(--accent-up-mark);
}

.expanded-stat-value.down {
  color: var(--accent-down);
}

.expanded-stat-note {
  margin-top: 2px;
  font-size: 11px;
  color: var(--ink-muted);
}

.expanded-chart {
  position: relative;
  padding: 16px 20px 0;
}

.big-chart {
  display: block;
  max-width: 100%;
  height: auto;
}

.big-grid {
  stroke: var(--border);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

.big-axis {
  font-size: 12px;
  fill: var(--ink-muted);
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
}

.big-axis-x {
  font-size: 13px;
  fill: var(--ink-secondary);
}

.big-bar {
  fill: currentColor;
}

.big-bar-neg {
  opacity: 0.6;
}

.big-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linejoin: round;
}

.big-dot {
  fill: currentColor;
}

.big-value {
  font-size: 11px;
  font-weight: 700;
  fill: var(--ink);
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
}

.big-crosshair {
  stroke: var(--ink-muted);
  stroke-width: 1;
}

.big-tooltip {
  position: absolute;
  top: 24px;
  z-index: 3;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  box-shadow: var(--shadow-pop);
  pointer-events: none;
  white-space: nowrap;
}

.expanded-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 14px 20px;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  color: var(--ink-muted);
}

.expanded-legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-secondary);
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}

.expanded-source {
  margin-left: auto;
}

@media (max-width: 760px) {
  .charts-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }
  .modal {
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
  }
  .modal--info {
    padding: 26px 22px 22px;
  }
  .expanded-head {
    flex-wrap: wrap;
  }
  .expanded-tools {
    margin-left: 0;
    width: 100%;
    flex-wrap: wrap;
  }
  .expanded-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .expanded-stat {
    border-bottom: 1px solid var(--hairline);
  }
}

/* ---------------------------------------------------------- Analyst tab
   Layout after the reference's Analyst tab. Every color is a token, so both
   themes come from the :root blocks above. Rating buckets run green (buy)
   through amber (hold) to red (sell) -- always labeled, never color alone. */
.analyst-card {
  padding: 20px 20px 18px;
  margin-bottom: 20px;
}

.analyst-head-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-raised);
  color: var(--ink-secondary);
  font: 600 12px var(--font-sans);
  cursor: pointer;
  white-space: nowrap;
}

.pill-btn:hover {
  color: var(--ink);
  border-color: var(--border-strong);
}

.pill-btn .icon {
  width: 14px;
  height: 14px;
}

/* Price target scale */
.pt-scale {
  position: relative;
  height: 54px;
  margin: 8px 12px 0;
}

.pt-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-down-wash), var(--hairline) 50%, var(--accent-up-wash));
  border: 1px solid var(--border);
}

.pt-dot {
  position: absolute;
  bottom: 6px;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-radius: 50%;
  border: 3px solid var(--surface-raised);
  box-shadow: 0 0 0 1px var(--border);
}

.pt-dot--low { background: var(--accent-down-mark); }
.pt-dot--high { background: var(--accent-up-mark); }
.pt-dot--mean {
  background: var(--ink);
  width: 20px;
  height: 20px;
  margin-left: -10px;
  bottom: 4px;
}

.pt-current {
  position: absolute;
  bottom: 2px;
  width: 2px;
  height: 24px;
  margin-left: -1px;
  background: var(--ink-muted);
  border-radius: 1px;
}

.pt-current-label {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--surface-raised);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pt-labels {
  position: relative;
  height: 40px;
  margin: 6px 12px 0;
}

.pt-label {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
  color: var(--ink-muted);
  white-space: nowrap;
}

.pt-label strong {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.pt-label strong.up { color: var(--accent-up); }
.pt-label strong.down { color: var(--accent-down); }
.pt-label--low { transform: none; align-items: flex-start; margin-left: -12px; }
.pt-label--high { transform: translateX(-100%); align-items: flex-end; margin-left: 12px; }

.pt-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.pt-box {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.pt-box--main {
  border-color: var(--border-strong);
  background: var(--bg);
}

.pt-box-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.pt-box-value {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.pt-box-value.up,
.pt-note .up { color: var(--accent-up); }
.pt-box-value.down,
.pt-note .down { color: var(--accent-down); }

.pt-box-value .icon {
  width: 18px;
  height: 18px;
}

.pt-note {
  margin: 14px 0 0;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 13px;
  color: var(--ink-secondary);
}

/* Forward estimates */
.fc-block + .fc-block {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}

.fc-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.fc-title {
  font-size: 14px;
  font-weight: 700;
}

.fc-meta {
  font-size: 11px;
  color: var(--ink-muted);
}

.fc-svg {
  display: block;
  width: 100%;
  height: auto;
}

.fc-axis,
.fc-x {
  font: 12px var(--font-sans);
  font-variant-numeric: tabular-nums;
  fill: var(--ink-muted);
}

.fc-x { fill: var(--ink-secondary); font-weight: 600; }

.fc-growth {
  font: 600 11px var(--font-sans);
  font-variant-numeric: tabular-nums;
}

.fc-growth.up { fill: var(--accent-up); }
.fc-growth.down { fill: var(--accent-down); }

.fc-bar { fill: var(--chart-blue); }
.fc-bar--est { fill: var(--chart-blue); fill-opacity: 0.35; stroke: var(--chart-blue); stroke-dasharray: 4 3; }
.fc-whisker { stroke: var(--ink-secondary); stroke-width: 1.5; }

.fc-line {
  fill: none;
  stroke: var(--chart-orange);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.fc-line--est { stroke-dasharray: 6 5; }
.fc-line--high,
.fc-line--low { stroke-width: 1.5; stroke-dasharray: 3 4; stroke: var(--ink-muted); }
.fc-dot { fill: var(--chart-orange); stroke: var(--surface-raised); stroke-width: 2; }
.fc-dot--est { fill: var(--surface-raised); stroke: var(--chart-orange); }

.fc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-muted);
}

.fc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { display: inline-block; width: 18px; height: 0; border-top: 2.5px solid var(--chart-orange); }
.lg--est { border-top-style: dashed; }
.lg--high,
.lg--low { border-top: 1.5px dotted var(--ink-muted); }

/* Rating distribution */
.rd-consensus {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
}

.rd-bar {
  display: flex;
  gap: 2px;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--hairline);
}

.rd-seg { display: block; height: 100%; }
.rd--sbuy { background: var(--accent-up); }
.rd--buy { background: var(--accent-up-mark); opacity: 0.6; }
.rd--hold { background: var(--chart-amber); }
.rd--sell { background: var(--chart-orange); }
.rd--ssell { background: var(--accent-down-mark); }

.rd-cells {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.rd-cell {
  padding: 10px 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.rd-cell-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
}

.rd-cell-count {
  margin-top: 2px;
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.rd-text--sbuy,
.rd-text--buy { color: var(--accent-up); }
.rd-text--hold { color: var(--ink); }
.rd-text--sell,
.rd-text--ssell { color: var(--accent-down); }

.rd-cell-pct {
  font-size: 12px;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

/* Recent target changes / analyst actions */
.analyst-list {
  margin-bottom: 20px;
}

.analyst-list-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.analyst-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-raised);
}

.analyst-row-main {
  flex: 1;
  min-width: 0;
  font-size: 14px;
}

.analyst-row-date {
  margin-left: 8px;
  font-size: 12px;
  color: var(--ink-muted);
}

.analyst-row-main > .analyst-row-date { margin-left: 0; }

.analyst-row-text {
  margin-top: 2px;
  font-size: 13px;
  color: var(--ink-secondary);
}

.analyst-row-side {
  text-align: right;
  flex-shrink: 0;
}

.analyst-row-value {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.analyst-row-sub {
  font-size: 12px;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.analyst-row-sub .up { color: var(--accent-up); }
.analyst-row-sub .down { color: var(--accent-down); }

.action-glyph {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink-muted);
  font-size: 12px;
}

.action-glyph.up { background: var(--accent-up-wash); color: var(--accent-up); }
.action-glyph.down { background: var(--accent-down-wash); color: var(--accent-down); }

.action-pill {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink-secondary);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  vertical-align: 1px;
}

.action-pill.up { background: var(--accent-up-wash); color: var(--accent-up); }
.action-pill.down { background: var(--accent-down-wash); color: var(--accent-down); }

.fc-scroll {
  overflow-x: auto;
}

@media (max-width: 640px) {
  .analyst-card { padding: 16px 14px; }
  .fc-svg { width: 600px; max-width: none; }
  .analyst-card > .card-head { flex-direction: column; }
  .analyst-head-tools { justify-content: flex-start; }
  .pt-boxes { gap: 8px; }
  .pt-box { padding: 10px 6px; }
  .pt-box-value { font-size: 17px; }
  .rd-cells { grid-template-columns: repeat(3, 1fr); }
  .rd-cell-label { font-size: 10px; }
  .analyst-row { padding: 10px 12px; align-items: flex-start; }
  .analyst-row-date { display: block; margin-left: 0; }
}

/* -------------------------------------------------------- Financials tab
   Quick insights tiles (metric hue = identity, as on the Charts tab; the
   delta keeps green/red + ▲/▼ for direction) and the scrollable statement
   table with a sticky label column. */
.fin-card {
  padding: 20px 20px 18px;
  margin-bottom: 20px;
}

.fin-head {
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.fin-note {
  margin: 0 0 12px;
}

.qi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.qi-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-raised);
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.qi-tile:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}

.qi-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
}

.qi-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* The tile's tone-* class colors the dot and sparkline only (.qi-tile's
   own color, declared after the generic .tone-* rules, keeps text ink). */
.qi-tile.tone-blue .qi-dot, .qi-tile.tone-blue .qi-spark { color: var(--chart-blue); }
.qi-tile.tone-purple .qi-dot, .qi-tile.tone-purple .qi-spark { color: var(--chart-purple); }
.qi-tile.tone-orange .qi-dot, .qi-tile.tone-orange .qi-spark { color: var(--chart-orange); }
.qi-tile.tone-pink .qi-dot, .qi-tile.tone-pink .qi-spark { color: var(--chart-pink); }
.qi-tile.tone-rose .qi-dot, .qi-tile.tone-rose .qi-spark { color: var(--chart-rose); }
.qi-tile.tone-cyan .qi-dot, .qi-tile.tone-cyan .qi-spark { color: var(--chart-cyan); }
.qi-tile.tone-yellow .qi-dot, .qi-tile.tone-yellow .qi-spark { color: var(--chart-yellow); }
.qi-tile.tone-violet .qi-dot, .qi-tile.tone-violet .qi-spark { color: var(--chart-violet); }
.qi-tile.tone-teal .qi-dot, .qi-tile.tone-teal .qi-spark { color: var(--chart-teal); }
.qi-tile.tone-indigo .qi-dot, .qi-tile.tone-indigo .qi-spark { color: var(--chart-indigo); }
.qi-tile.tone-sky .qi-dot, .qi-tile.tone-sky .qi-spark { color: var(--chart-sky); }
.qi-tile.tone-slate .qi-dot, .qi-tile.tone-slate .qi-spark { color: var(--chart-slate); }
.qi-tile.tone-emerald .qi-dot, .qi-tile.tone-emerald .qi-spark { color: var(--chart-emerald); }
.qi-tile.tone-amber .qi-dot, .qi-tile.tone-amber .qi-spark { color: var(--chart-amber); }
.qi-tile.tone-fuchsia .qi-dot, .qi-tile.tone-fuchsia .qi-spark { color: var(--chart-fuchsia); }

.qi-value {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.qi-value.up { color: var(--accent-up); }
.qi-value.down { color: var(--accent-down); }

.qi-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  min-height: 18px;
}

.qi-delta {
  padding: 1px 6px;
  border-radius: 999px;
  font-weight: 600;
}

.qi-delta.up { background: var(--accent-up-wash); color: var(--accent-up); }
.qi-delta.down { background: var(--accent-down-wash); color: var(--accent-down); }

.qi-note {
  color: var(--ink-muted);
}

.qi-spark {
  height: 28px;
  margin-top: 2px;
}

.qi-spark .sparkline {
  display: block;
  width: 100%;
  height: 28px;
  color: inherit;
}

/* Statement table */
.fin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.fin-table.data-table {
  display: table;
  width: max-content;
  min-width: 100%;
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.fin-table th:first-child,
.fin-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 220px;
  background: var(--surface-1);
  box-shadow: 1px 0 0 var(--hairline);
}

.fin-table td {
  vertical-align: top;
  padding-top: 9px;
  padding-bottom: 9px;
  min-width: 96px;
}

.fin-table th {
  vertical-align: bottom;
}

.fin-val {
  display: block;
}

.fin-yoy {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-muted);
}

.fin-yoy.up { color: var(--accent-up); }
.fin-yoy.down { color: var(--accent-down); }

.fin-table tr.stmt-total td:first-child {
  background: color-mix(in srgb, var(--surface-2) 60%, var(--surface-1));
}

.fin-table tr.stmt-header td {
  background: var(--surface-1);
}

@media (max-width: 640px) {
  .fin-card { padding: 16px 12px; }
  .fin-head { flex-direction: column; align-items: flex-start; }
  .qi-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .qi-value { font-size: 18px; }
  .fin-table th:first-child,
  .fin-table td:first-child { min-width: 150px; max-width: 150px; white-space: normal; }
  .fin-table td { min-width: 84px; }
}

a.pill-btn {
  text-decoration: none;
}

/* ------------------------------------------------- home: feature strip */
.feature-strip {
  margin-top: 20px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  text-align: left;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface-1);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.feature-item:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink-secondary);
}

.feature-icon .icon {
  width: 16px;
  height: 16px;
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--ink-muted);
}

.feature-text strong {
  font-size: 13px;
  color: var(--ink);
}

.feature-about {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
  text-decoration: none;
}

.feature-about:hover {
  color: var(--ink);
  text-decoration: underline;
}

.feature-about .icon {
  width: 14px;
  height: 14px;
}

@media (max-width: 760px) {
  .feature-list { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------------------------------------------------- about page */
.topbar-spacer {
  flex: 1;
}

.about {
  width: 100%;
  box-sizing: border-box;
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 32px 24px;
}

.about-hero {
  margin-bottom: 36px;
}

.about-title {
  margin: 14px 0 12px;
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.about-lead {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.about-section {
  margin-bottom: 36px;
  scroll-margin-top: 80px;
}

.about-heading {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}

.about-card {
  padding: 14px 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface-1);
  box-shadow: var(--shadow-card);
}

.about-card strong {
  font-size: 14px;
}

.about-card p {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-muted);
}

.about-table-wrap {
  overflow-x: auto;
}

.about-table td,
.about-table th {
  text-align: left;
  white-space: normal;
  vertical-align: top;
  line-height: 1.5;
}

.about-table td:first-child {
  font-weight: 600;
  white-space: nowrap;
}

.about-table td:nth-child(3) {
  color: var(--ink-muted);
  min-width: 180px;
}

.about-note {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--ink-muted);
}

.about-list {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.about-list li + li {
  margin-top: 6px;
}

.about-list strong {
  color: var(--ink);
}

.about-disclaimer {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.about-disclaimer strong {
  color: var(--ink);
}

.about-back {
  margin: 8px 0 24px;
}

.about-back .btn-primary {
  display: inline-block;
  text-decoration: none;
}

@media (max-width: 640px) {
  .about { padding: 28px 16px 16px; }
  .about-table td:first-child { white-space: normal; }
}

/* ---------------------------------------------------------- Valuation tab
   Each model keeps one identity hue (like the Charts tab's metric hues);
   green/red stay for up/down and always travel with ▲/▼ or a sign. */
.vm-intro {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.vm-intro-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface-1);
  box-shadow: var(--shadow-card);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s;
}

.vm-intro-card:hover { border-color: var(--border-strong); }

.vm-intro-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vm-intro-head strong { display: block; font-size: 15px; }
.vm-intro-head small { display: block; font-size: 11px; color: var(--ink-muted); }

.vm-intro-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, currentColor 14%, transparent);
}

.vm-intro-icon .icon { width: 16px; height: 16px; }

.vm-intro-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-secondary);
}

.vm-best { font-size: 11px; color: var(--ink-muted); }

.tone-blue .vm-intro-icon, .tone-blue.vm-card .vm-card-head h3 { color: var(--chart-blue); }
.tone-purple .vm-intro-icon, .tone-purple.vm-card .vm-card-head h3 { color: var(--chart-purple); }
.tone-amber .vm-intro-icon, .tone-amber.vm-card .vm-card-head h3 { color: var(--chart-amber); }
.tone-cyan .vm-intro-icon, .tone-cyan.vm-card .vm-card-head h3 { color: var(--chart-cyan); }
.vm-intro-card.tone-blue, .vm-intro-card.tone-purple, .vm-intro-card.tone-amber, .vm-intro-card.tone-cyan { color: var(--ink); }

.vm-hist {
  padding: 14px 20px;
  margin-bottom: 16px;
}

.vm-hist-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.vm-hist-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.vm-hist-cell span { display: block; font-size: 12px; color: var(--ink-muted); }
.vm-hist-cell strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.vm-hist-cell .up { color: var(--accent-up); }
.vm-hist-cell .down { color: var(--accent-down); }

.vm-summary {
  padding: 20px;
  margin-bottom: 16px;
  border-left: 4px solid var(--border-strong);
}

.vm-summary--up { border-left-color: var(--accent-up-mark); }
.vm-summary--down { border-left-color: var(--accent-down-mark); }

.vm-summary-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
}

.vm-verdict-label { font-size: 12px; color: var(--ink-muted); }

.vm-verdict-value {
  margin: 4px 0 6px;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.vm-verdict-value.up { color: var(--accent-up); }
.vm-verdict-value.down { color: var(--accent-down); }

.vm-counts {
  display: flex;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.vm-counts .up { color: var(--accent-up); }
.vm-counts .down { color: var(--accent-down); }
.vm-counts .sep { color: var(--border-strong); }

.vm-blended {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-secondary);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.vm-signals {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.vm-signal {
  display: flex;
  gap: 8px;
  align-items: baseline;
  color: var(--ink-secondary);
}

.vm-signal-glyph { width: 14px; flex-shrink: 0; font-size: 11px; text-align: center; color: var(--ink-muted); }
.vm-signal--bull .vm-signal-glyph { color: var(--accent-up); }
.vm-signal--bear .vm-signal-glyph { color: var(--accent-down); }

.vm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}

.vm-card {
  padding: 18px 20px;
  scroll-margin-top: 80px;
  display: flex;
  flex-direction: column;
}

.vm-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.vm-card-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.vm-card-head h3 small {
  margin-left: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
}

/* .tone-* sets `color` on the card (shared Charts-tab classes): keep the
   card's text ink, and use the hue only for the heading, icon and bars. */
.vm-card { color: var(--ink); }
.vm-card .vm-intro-icon { color: inherit; }
.vm-card.tone-blue .vm-intro-icon { color: var(--chart-blue); }
.vm-card.tone-purple .vm-intro-icon { color: var(--chart-purple); }
.vm-card.tone-amber .vm-intro-icon { color: var(--chart-amber); }
.vm-card.tone-cyan .vm-intro-icon { color: var(--chart-cyan); }

.vm-result { flex: 1; }

.vm-big {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 12px;
}

.vm-big > div:last-child { text-align: right; }
.vm-big-label { display: block; font-size: 12px; color: var(--ink-muted); margin-bottom: 2px; }

.vm-big strong {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.vm-big .up { color: var(--accent-up); }
.vm-big .down { color: var(--accent-down); }

.vm-rating { font-size: 15px; font-weight: 700; }
.vm-rating.up { color: var(--accent-up); }
.vm-rating.down { color: var(--accent-down); }

.vm-na {
  margin: 8px 0 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 13px;
  color: var(--ink-muted);
}

.vm-proj-title {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
}

.vm-card.tone-blue .vm-bar { fill: var(--chart-blue); }
.vm-card.tone-purple .vm-bar { fill: var(--chart-purple); }

.vm-svg { display: block; width: 100%; height: auto; margin: 6px 0 4px; }
.vm-axis { font: 11px var(--font-sans); fill: var(--ink-muted); }

.vm-facts {
  margin: 8px 0 0;
  display: grid;
  gap: 4px;
  font-size: 13px;
}

.vm-facts div { display: flex; justify-content: space-between; gap: 12px; }
.vm-facts dt { color: var(--ink-muted); }
.vm-facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.vm-facts small { font-weight: 500; color: var(--ink-muted); }

.vm-r40 { margin-top: 6px; }

.vm-r40-bar {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: visible;
}

.vm-r40-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
  background: var(--chart-amber);
}

.vm-r40-mark {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: var(--ink);
}

.vm-r40-mark em {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
}

.vm-r40-parts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-muted);
}

.vm-r40-parts strong { color: var(--ink); }

.vm-peg-scale {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  height: 26px;
  border-radius: 999px;
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
}

.vm-peg-scale .z { display: grid; place-items: center; }
.vm-peg-scale .z1 { background: var(--accent-up-wash); color: var(--accent-up); }
.vm-peg-scale .z2 { background: var(--surface-2); color: var(--ink-secondary); }
.vm-peg-scale .z3 { background: var(--accent-down-wash); color: var(--accent-down); }

.vm-peg-dot {
  position: absolute;
  top: 3px;
  width: 20px;
  height: 20px;
  margin-left: -10px;
  border-radius: 50%;
  background: var(--chart-cyan);
  border: 3px solid var(--surface-1);
  box-shadow: 0 0 0 1px var(--border-strong);
}

.vm-peg-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 11px;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.vm-peg-note { margin: 8px 0 0; font-size: 13px; color: var(--ink-muted); }

.vm-adjust {
  margin-top: 14px;
  border-top: 1px solid var(--hairline);
  padding-top: 10px;
}

.vm-adjust-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border: none;
  background: none;
  color: var(--ink-secondary);
  font: 600 13px var(--font-sans);
  cursor: pointer;
}

.vm-adjust-toggle:hover { color: var(--ink); }
.vm-adjust-toggle .icon { width: 15px; height: 15px; }

.vm-adjust-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  padding-top: 8px;
}

.vm-adjust-body[hidden] { display: none; }

.vm-input {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--ink-secondary);
}

.vm-input small { color: var(--ink-muted); font-size: 11px; }

.vm-input-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-1);
  padding: 0 10px;
}

.vm-input-box:focus-within { border-color: var(--ink); }

.vm-input-box input {
  flex: 1;
  min-width: 0;
  height: 34px;
  border: none;
  outline: none;
  background: none;
  color: var(--ink);
  font: 600 14px var(--font-sans);
  font-variant-numeric: tabular-nums;
}

.vm-input-box em { font-style: normal; color: var(--ink-muted); }

.vm-adjust-body .link-btn { grid-column: 1 / -1; justify-self: start; }

@media (max-width: 900px) {
  .vm-intro { grid-template-columns: repeat(2, 1fr); }
  .vm-hist-grid { grid-template-columns: repeat(3, 1fr); }
  .vm-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .vm-summary-body { grid-template-columns: 1fr; gap: 14px; }
  .vm-intro-card p { font-size: 12px; }
  .vm-big strong { font-size: 24px; }
}

/* ------------------------------------------------------------- trending */
.trending {
  width: 100%;
  box-sizing: border-box;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 32px 16px;
}

.trending-title {
  margin: 12px 0 8px;
  font-size: clamp(30px, 4.5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.trending-lead {
  margin: 0 0 24px;
  max-width: 640px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-secondary);
}

.trending-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.trending-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-1);
  color: var(--ink-secondary);
  font: 600 13px var(--font-sans);
  cursor: pointer;
}

.trending-tab:hover { color: var(--ink); border-color: var(--border-strong); }

.trending-tab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.trending-tab .icon { width: 15px; height: 15px; }

.trending-tab em {
  font-style: normal;
  font-size: 11px;
  opacity: 0.7;
}

.trending-explainer {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--ink-muted);
}

.tr-table tbody tr { cursor: pointer; }
.tr-table td { vertical-align: middle; }
.tr-rank { color: var(--ink-muted); width: 32px; }
.tr-table th:nth-child(2), .tr-table td:nth-child(2) { text-align: left; }

.tr-stock {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.tr-stock strong { display: block; font-family: var(--font-mono); font-size: 13px; }

.tr-stock small {
  display: block;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--ink-muted);
}

.tr-logo {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font: 700 12px var(--font-mono);
  color: var(--ink-secondary);
}

.tr-vol { font-weight: 700; }
.tr-vol.hot { color: var(--chart-orange); }
.tr-table td small { display: block; font-size: 11px; color: var(--ink-muted); }
.tr-table .up { color: var(--accent-up); font-weight: 600; }
.tr-table .down { color: var(--accent-down); font-weight: 600; }

@media (max-width: 640px) {
  .trending { padding: 24px 16px 8px; }
  .tr-cap, .tr-rank { display: none; }
  .tr-stock small { max-width: 120px; }
  .trending-tab { padding: 6px 11px; font-size: 12px; }
}

/* AI Analysis failure: neutral card (not red -- red means "down") with a
   retry button. Tokens only, so both themes are covered. */
.ai-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 32px 20px;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
}
.ai-error-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-muted);
}
.ai-error-icon svg { width: 20px; height: 20px; }
.ai-error-title { font-size: 15px; font-weight: 600; color: var(--ink); }
.ai-error-text { margin: 0 0 6px; max-width: 420px; font-size: 13px; color: var(--ink-secondary); }

/* ---------------------------------------------------- legal pages (draft)
   Terms / Privacy / Disclaimer reuse the About page layout (.about). */
.legal-updated {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--ink-muted);
}
.legal-draft,
.legal-summary {
  margin-bottom: 32px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-secondary);
}
.legal-draft strong,
.legal-summary strong {
  color: var(--ink);
}
.legal-summary strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}
.legal-section {
  margin-bottom: 28px;
}
.legal-section h2 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.legal-section p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-secondary);
}
.legal-section a {
  color: var(--ink);
}
.legal-section .about-list,
.legal-section .about-table-wrap {
  margin-bottom: 10px;
}
.legal-todo {
  padding: 0 4px;
  border-radius: 4px;
  background: var(--surface-2);
  border: 1px dashed var(--border-strong);
  color: var(--ink);
}

.about-disclaimer a {
  color: var(--ink);
}

/* Charts-tab tile hover: band behind the hovered period + tooltip. The
   value line takes the tile's metric hue (currentColor); the change is the
   usual green/red with a +/- sign. */
.chart-tile {
  position: relative;
}
.tile-chart {
  touch-action: pan-y;
}
.tile-hover-band {
  fill: var(--ink);
  opacity: 0.1;
}
.tile-hover-ring {
  fill: var(--surface-1);
  stroke: currentColor;
  stroke-width: 2.5;
}
.tile-tooltip {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  max-width: calc(100% - 16px);
  padding: 8px 10px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-pop);
}
.tile-tooltip-period {
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.tile-tooltip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 6px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.tile-tooltip-value {
  color: currentColor;
  font-weight: 600;
}
.tile-tooltip-change.up { color: var(--accent-up); }
.tile-tooltip-change.down { color: var(--accent-down); }

/* ------------------------------------------------------------- News tab
   Sentiment reuses the up/down tokens with a glyph + label (▲ Positive /
   ● Neutral / ▼ Negative), never colour alone. */
.market-news-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--hairline);
}
.market-news .market-news-head h2,
.ticker-page .market-news .market-news-head h2 {
  padding: 0;
  border-bottom: none;
}
.market-news-head .link-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.market-news-head .link-btn svg {
  width: 14px;
  height: 14px;
}

.news-summary {
  margin-bottom: 14px;
  padding: 16px 18px;
}
.news-summary-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.news-summary-head h2 {
  margin: 0;
}
.news-summary-note {
  font-size: 12px;
  color: var(--ink-muted);
}
.news-bar {
  display: flex;
  gap: 2px;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface-2);
}
.news-bar-seg.up { background: var(--accent-up-mark); }
.news-bar-seg.down { background: var(--accent-down-mark); }
.news-bar-seg.neutral { background: var(--border-strong); }
.news-summary-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 10px;
  font-size: 13px;
}
.news-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

.news-sentiment {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.news-sentiment.up { color: var(--accent-up); background: var(--accent-up-wash); }
.news-sentiment.down { color: var(--accent-down); background: var(--accent-down-wash); }
.news-sentiment.neutral { color: var(--ink-secondary); background: var(--surface-2); }

.news-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.news-card {
  display: flex;
  gap: 16px;
  padding: 14px;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  min-width: 0;
}
.news-thumb {
  flex: 0 0 148px;
  height: 100px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-2);
}
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-body {
  flex: 1;
  min-width: 0;
}
.news-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  font-size: 12px;
  color: var(--ink-muted);
}
.news-publisher-icon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  object-fit: contain;
}
.news-title {
  display: block;
  margin: 6px 0 4px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
  color: var(--ink);
  text-decoration: none;
}
.news-title:hover {
  text-decoration: underline;
}
.news-summary-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-reason {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-muted);
}
.news-reason strong {
  color: var(--ink-secondary);
  font-weight: 600;
}

@media (max-width: 640px) {
  .news-card {
    flex-direction: column;
    gap: 10px;
  }
  .news-thumb {
    flex-basis: auto;
    width: 100%;
    height: 150px;
  }
}

/* Feed freshness note (News / Social): the last refresh failed. */
.feed-stale {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 12px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-secondary);
  background: var(--surface-2);
  border-radius: var(--radius-sm);
}
.feed-stale svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

/* ------------------------------------------------------------ Social tab
   Posts by everyday investors (eToro, StockTwits, Reddit). Source names are
   plain text labels, not brand colours; no sentiment colours at all. */
.social-intro {
  margin: -4px 0 14px;
  font-size: 14px;
  color: var(--ink-secondary);
}
.social-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.social-controls .charts-chips {
  margin: 0;
  padding: 0;
  border: 0;
}
.social-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.social-card {
  padding: 14px 16px;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  min-width: 0;
}
.social-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.social-avatar {
  position: relative;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-secondary);
  background: var(--surface-2);
}
.social-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.social-who {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.social-author {
  font-size: 14px;
  font-weight: 650;
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
a.social-author:hover {
  text-decoration: underline;
}
.social-meta {
  font-size: 12px;
  color: var(--ink-muted);
}
.social-source {
  font-weight: 600;
  color: var(--ink-secondary);
}
.social-title {
  margin: 10px 0 0;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
  color: var(--ink);
}
.social-text {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-secondary);
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.social-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-muted);
}
.social-counts {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-variant-numeric: tabular-nums;
}
.social-counts svg {
  width: 14px;
  height: 14px;
}
.social-counts span + svg {
  margin-left: 10px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--ink-secondary);
  text-decoration: none;
  white-space: nowrap;
}
.social-link:hover {
  color: var(--ink);
}
.social-link svg {
  width: 14px;
  height: 14px;
}

/* In-panel "go to tab" links scroll the tab bar into view below the sticky top bar. */
.section-tabs {
  scroll-margin-top: 72px;
}

/* ------------------------------------------------------- sign-in + account
   Invite-only family sign-in (Supabase). Tokens only, so both themes work. */
.signin {
  min-height: 100vh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 32px 16px;
  background: var(--bg);
}
.signin-card {
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
  padding: 28px 28px 24px;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.signin-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}
.signin-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.signin-lead {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-secondary);
}
.signin-lead strong {
  color: var(--ink);
}
.signin-loading {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
}
.signin-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.signin-form label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
}
.signin-form input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
}
.signin-form input:focus {
  border-color: var(--border-strong);
  background: var(--surface-1);
}
.signin-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
  padding: 11px 16px;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
}
.signin-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
}
.signin-google:hover {
  border-color: var(--border-strong);
}
.signin-or {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  font-size: 12px;
  color: var(--ink-muted);
}
.signin-or::before,
.signin-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline);
}
.signin-msg {
  margin: 0 0 14px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--ink-secondary);
}
.signin-msg.error {
  color: var(--accent-down);
  background: var(--accent-down-wash);
}
.signin-note {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-muted);
}
.signin-note .link-btn,
.signin-switch {
  font-size: 12px;
  color: var(--ink-secondary);
  text-decoration: underline;
}
.signin-switch {
  display: block;
  margin: 12px auto 0;
}
.signin-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 12px;
  color: var(--ink-muted);
}
.signin-foot a {
  color: var(--ink-muted);
}

.account {
  position: relative;
}
.account-btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.account-signin {
  display: inline-block;
  text-decoration: none;
}
.account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  min-width: 220px;
  padding: 12px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
}
.account-menu-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.account-menu-email {
  margin: 2px 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  word-break: break-all;
}
.account-menu-item {
  width: 100%;
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  text-align: left;
  color: var(--ink);
  background: var(--surface-2);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.account-menu-item:hover {
  background: var(--border);
}

/* ---------------------------------------------------- AI Analysis allowance
   Explainer + Run button (the tab never runs the AI by itself) and the
   allowance pill. Neutral ink, like the verdict badge -- not up/down colours. */
.ai-intro {
  padding: 22px 24px;
}
.ai-intro-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.ai-intro-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--ink);
}
.ai-intro-icon svg {
  width: 20px;
  height: 20px;
}
.ai-intro-head > div {
  padding-top: 2px;
}
.ai-intro-title {
  margin: 0 0 4px !important;
  padding: 0 !important;
  line-height: 1.3 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
  color: var(--ink) !important;
}
.ai-intro-lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-secondary);
}
.ai-intro-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
}
.ai-intro-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-secondary);
}
.ai-intro-list li strong {
  color: var(--ink);
}
.ai-intro-list svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--ink-muted);
}
.ai-intro-note {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-muted);
}
.ai-intro-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}
.ai-intro-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}
.ai-run-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
}
.ai-run-btn svg {
  width: 16px;
  height: 16px;
}
.ai-intro-cost {
  font-size: 12px;
  color: var(--ink-muted);
}
.ai-intro-limit {
  margin: 0;
  max-width: 520px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-secondary);
}
.ai-quota {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 12px;
  color: var(--ink-secondary);
  font-variant-numeric: tabular-nums;
}
.ai-quota strong {
  color: var(--ink);
}
.ai-quota svg {
  width: 14px;
  height: 14px;
  color: var(--ink-muted);
}
.ai-quota.empty strong {
  color: var(--ink-muted);
}
.ai-quota-reset {
  color: var(--ink-muted);
}
.ai-result-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}
@media (max-width: 640px) {
  .ai-intro {
    padding: 18px 16px;
  }
  .ai-intro-list {
    grid-template-columns: 1fr;
  }
  .ai-result-bar {
    justify-content: flex-start;
  }
}

/* ------------------------------------------- request access + Manage access */
.signin-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-up);
  background: var(--accent-up-wash);
}
.signin-badge svg {
  width: 14px;
  height: 14px;
}
.account-btn {
  position: relative;
}
.account-dot {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-down);
  border: 2px solid var(--bg);
}
.account-dot[hidden] {
  display: none;
}
a.account-menu-item {
  display: block;
  box-sizing: border-box;
  margin-bottom: 6px;
  text-decoration: none;
}
/* display:block above would otherwise beat the hidden attribute (the
   owner-only Manage access link showed for everyone). */
.account-menu [hidden] {
  display: none !important;
}
.admin-section {
  margin-bottom: 16px;
  padding: 18px 20px;
}
.admin-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
  color: var(--ink) !important;
}
.admin-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 16px;
  padding: 12px 0;
  border-top: 1px solid var(--hairline);
}
.admin-row:first-child {
  border-top: none;
}
.admin-person {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.admin-avatar {
  flex: 0 0 34px;
}
.admin-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  word-break: break-all;
}
.admin-email {
  font-size: 12px;
  color: var(--ink-muted);
  word-break: break-all;
}
.admin-tag {
  margin-left: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-secondary);
  background: var(--surface-2);
}
.admin-meta {
  font-size: 12px;
  color: var(--ink-muted);
}
.admin-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.admin-approve {
  color: var(--primary-ink);
  background: var(--primary);
  border-color: var(--primary);
}
.admin-empty {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
}
@media (max-width: 640px) {
  .admin-row {
    grid-template-columns: 1fr;
  }
  .admin-actions {
    justify-content: flex-start;
  }
}

/* ------------------------------------------- request form, welcome, account
   The one-time request form on the sign-in page, the "pick a few stocks"
   welcome page and My account. Existing tokens only (both themes). */
.signin-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  resize: vertical;
}
.signin-form textarea:focus {
  border-color: var(--border-strong);
  background: var(--surface-1);
}
.signin-form label:not(:first-child) {
  margin-top: 6px;
}
.signin-optional {
  font-weight: 500;
  color: var(--ink-muted);
}
.account-menu-name {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.account-menu-name + .account-menu-email {
  margin-top: 0;
  font-weight: 500;
  color: var(--ink-secondary);
}
.account-menu .account-menu-item + .account-menu-item {
  margin-top: 4px;
}
.admin-note {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-secondary);
  word-break: break-word;
}

/* welcome.html */
.welcome-card,
.account-card {
  margin-bottom: 16px;
  padding: 20px 22px;
}
.welcome-heading,
.account-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
  color: var(--ink) !important;
}
.welcome-heading:not(:first-child) {
  margin-top: 24px !important;
}
.welcome-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
}
.welcome-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font: inherit;
  text-align: left;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.welcome-pick:hover {
  border-color: var(--border-strong);
}
.welcome-pick.on {
  background: var(--surface-1);
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.welcome-pick-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.welcome-pick-ticker {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}
.welcome-pick-name {
  overflow: hidden;
  font-size: 12px;
  color: var(--ink-muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.welcome-pick-mark {
  display: flex;
  color: var(--ink-muted);
}
.welcome-pick.on .welcome-pick-mark {
  color: var(--ink);
}
.welcome-pick-mark .icon {
  width: 16px;
  height: 16px;
}
.welcome-search {
  max-width: none;
}
.welcome-picked {
  margin-top: 24px;
}
.welcome-picked-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.welcome-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 4px 3px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
}
.welcome-chip-ticker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}
.welcome-chip-remove {
  width: 22px;
  height: 22px;
  padding: 0;
  font-size: 16px;
  line-height: 1;
  color: var(--ink-muted);
  background: none;
  border: none;
  border-radius: 999px;
  cursor: pointer;
}
.welcome-chip-remove:hover {
  color: var(--ink);
  background: var(--border);
}
.welcome-empty {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
}
.welcome-msg {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--accent-down);
}
.welcome-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}
.welcome-actions .btn-primary {
  padding: 10px 20px;
  font-size: 14px;
}

/* account.html */
.account-form label,
.account-facts dt {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
}
.account-inline {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.account-inline input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
}
.account-inline input:focus {
  border-color: var(--border-strong);
  background: var(--surface-1);
}
.account-msg {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--ink-secondary);
}
.account-msg.error {
  color: var(--accent-down);
}
.account-facts {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}
.account-facts dd {
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--ink);
  word-break: break-word;
}
.account-facts a {
  color: var(--ink-secondary);
}
.account-muted {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-muted);
}
.account-big {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.account-big span {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
}
.account-meter {
  height: 8px;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.account-meter span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--ink);
}
.account-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.account-row-actions .pill-btn {
  text-decoration: none;
}
.account-theme {
  margin-top: 14px;
}
.account-theme .statement-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 13px;
}
.account-theme .icon {
  width: 14px;
  height: 14px;
}
.account-delete {
  color: var(--accent-down);
}
.account-delete:hover {
  color: var(--accent-down);
  border-color: var(--accent-down);
}
.account-confirm {
  width: 100%;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

/* ---------------------------------------------------------- landing page
   landing.html + landing.js: what a signed-out visitor sees. Live sample
   demos (made-up companies, labelled), motion via CSS transitions driven by
   classes JS adds when things scroll into view. Existing tokens only, so
   both themes come for free. prefers-reduced-motion gets the still version. */
.lp-body [hidden] {
  display: none !important;
}
.lp-body {
  background: var(--bg);
  overflow-x: hidden;
}
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 32px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}
.lp-nav.scrolled {
  border-bottom-color: var(--hairline);
}
.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.lp-links {
  display: flex;
  gap: 22px;
  margin-left: 12px;
}
.lp-links a,
.lp-signin {
  color: var(--ink-secondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}
.lp-links a:hover,
.lp-signin:hover {
  color: var(--ink);
}
.lp-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}
.lp-cta-sm {
  text-decoration: none;
}
/* Buttons: a soft spring on hover / press. */
.lp-press {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
}
.lp-press:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -8px hsl(220 30% 20% / 0.45);
}
.lp-press:active {
  transform: scale(0.97);
}
.lp-arrow {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.lp-press:hover .lp-arrow {
  transform: translateX(3px);
}
.lp {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Scroll reveal */
.lp-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.lp-reveal.in {
  opacity: 1;
  transform: none;
}

/* Cards with a cursor spotlight */
.lp-card {
  position: relative;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}
.lp-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--ink) 6%, transparent), transparent 60%);
}
.lp-card:hover::before {
  opacity: 1;
}

/* Hero */
.lp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 56px;
  padding: 72px 0 40px;
}
.lp-title {
  margin: 20px 0 18px;
  font-size: clamp(40px, 5.4vw, 66px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
}
.lp-lead {
  max-width: 520px;
  margin: 0 0 30px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-secondary);
}
.lp-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
.lp-cta {
  padding: 13px 24px;
  font-size: 15px;
  text-decoration: none;
}
.lp-cta-ghost {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--border-strong);
}
.lp-fine {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--ink-muted);
}
.lp-stage {
  position: relative;
  padding: 28px 0 40px;
  transition-delay: 0.12s;
}
.lp-stock {
  padding: 22px 22px 18px;
  transition: opacity 0.22s, transform 0.22s;
}
.lp-stock.swap {
  opacity: 0.25;
  transform: scale(0.985);
}
.lp-stock-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lp-stock-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-weight: 800;
  color: var(--accent-up);
  background: var(--accent-up-wash);
}
.lp-stock.is-down .lp-stock-logo {
  color: var(--accent-down);
  background: var(--accent-down-wash);
}
.lp-stock-name {
  font-size: 16px;
  font-weight: 700;
}
.lp-stock-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--ink-muted);
}
.lp-ticker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 6px;
  color: var(--ink-secondary);
  background: var(--surface-2);
}
.lp-sample {
  align-self: center;
  margin-left: auto;
  white-space: nowrap;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
  border: 1px dashed var(--border-strong);
}
.lp-sample.live {
  border-style: solid;
  color: var(--ink-secondary);
}
.lp-sample.live::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--accent-up-mark);
  vertical-align: 1px;
}
.lp-stock-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 16px 0 6px;
}
.lp-price {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.lp-stock-chart {
  display: block;
  width: 100%;
  height: 170px;
  overflow: visible;
}
.lp-grid line {
  stroke: var(--hairline);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}
.lp-line {
  fill: none;
  stroke: var(--accent-up-mark);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.lp-area,
.lp-dot {
  opacity: 0;
  transition: opacity 0.6s;
}
.lp-dot {
  fill: var(--accent-up-mark);
  stroke: var(--surface-1);
  stroke-width: 3;
}
.lp-stock.drawn .lp-area,
.lp-stock.drawn .lp-dot {
  opacity: 1;
}
.lp-stock.is-down .lp-line {
  stroke: var(--accent-down);
}
.lp-stock.is-down .lp-dot {
  fill: var(--accent-down);
}
.lp-stock.is-down #lp-area stop {
  stop-color: var(--accent-down);
}
.lp-stock-range {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 14px;
  font-size: 11px;
  color: var(--ink-muted);
  white-space: nowrap;
}
.lp-range-track {
  position: relative;
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-down-wash), var(--accent-up-wash));
}
.lp-range-dot {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--ink);
  transition: left 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.lp-stock-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--hairline);
}
.lp-stock-stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  background: var(--surface-2);
}
.lp-stock-stats span,
.lp-float-label,
.lp-val-label {
  font-size: 11px;
  color: var(--ink-muted);
}
.lp-stock-stats strong {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.lp-float {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  box-shadow: var(--shadow-pop);
  animation: lp-bob 6s ease-in-out infinite;
}
.lp-float strong {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.lp-float .delta {
  align-self: flex-start;
}
.lp-float-a {
  top: 0;
  right: -22px;
}
.lp-float-b {
  top: 46%;
  left: -40px;
  animation-delay: -3s;
}
.lp-verdict {
  align-self: flex-start;
  padding: 2px 10px;
  border-radius: 8px;
  font-size: 15px !important;
  letter-spacing: 0.04em !important;
  color: var(--primary-ink);
  background: var(--primary);
}
.lp-float-b strong:not(.lp-verdict) {
  font-size: 15px;
}
.lp-float-sub {
  font-size: 11px;
  color: var(--ink-muted);
}
@keyframes lp-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Facts */
.lp-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 40px 0 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--border);
}
.lp-facts div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 24px;
  background: var(--surface-1);
}
.lp-facts strong {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.lp-facts span:not([data-count]) {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-muted);
}
.lp-section-head {
  max-width: 680px;
  margin: 0 auto 44px;
  text-align: center;
}
.lp-h2 {
  margin: 16px 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-transform: none;
  color: var(--ink);
}
.lp-sub {
  margin: 0 auto;
  max-width: 600px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

/* Bento grid */
.lp-features {
  padding-top: 112px;
}
.lp-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.lp-span-7 { grid-column: span 7; }
.lp-span-5 { grid-column: span 5; }
.lp-span-4 { grid-column: span 4; }
.lp-tile {
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow: hidden;
}
.lp-bento .lp-tile:nth-child(2) { transition-delay: 0.08s; }
.lp-bento .lp-tile:nth-child(4) { transition-delay: 0.08s; }
.lp-bento .lp-tile:nth-child(6) { transition-delay: 0.08s; }
.lp-bento .lp-tile:nth-child(7) { transition-delay: 0.16s; }
.lp-tile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lp-kicker {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-up);
}
.lp-tile h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.lp-tile p {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-secondary);
}
.lp-seg {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
}
.lp-seg button,
.lp-mini-btn {
  padding: 4px 10px;
  border: none;
  border-radius: 7px;
  font: 600 12px var(--font-sans);
  color: var(--ink-muted);
  background: none;
  cursor: pointer;
}
.lp-seg button.active {
  color: var(--primary-ink);
  background: var(--primary);
}
.lp-mini-btn {
  margin-bottom: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink-secondary);
  background: var(--surface-raised);
}

/* Charts demo */
.lp-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 190px;
  margin-top: auto;
  padding-top: 8px;
}
.lp-bar {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  height: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}
.lp-bar-fill {
  display: block;
  width: 100%;
  max-width: 44px;
  height: 0;
  margin: 0 auto;
  border-radius: 6px 6px 0 0;
  background: var(--chart-blue);
  opacity: 0.85;
  transition: height 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s;
}
.lp-bars.grown .lp-bar-fill {
  height: var(--h);
}
.lp-bar:nth-child(2) .lp-bar-fill { transition-delay: 0.05s, 0s; }
.lp-bar:nth-child(3) .lp-bar-fill { transition-delay: 0.1s, 0s; }
.lp-bar:nth-child(4) .lp-bar-fill { transition-delay: 0.15s, 0s; }
.lp-bar:nth-child(5) .lp-bar-fill { transition-delay: 0.2s, 0s; }
.lp-bar:nth-child(6) .lp-bar-fill { transition-delay: 0.25s, 0s; }
.lp-bar:nth-child(7) .lp-bar-fill { transition-delay: 0.3s, 0s; }
.lp-bar:nth-child(8) .lp-bar-fill { transition-delay: 0.35s, 0s; }
.lp-bar.hot .lp-bar-fill,
.lp-bar:focus-visible .lp-bar-fill {
  opacity: 1;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--chart-blue) 25%, transparent);
}
.lp-bar-label {
  font-size: 11px;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}
.lp-bars-tip {
  position: absolute;
  z-index: 2;
  width: 180px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.5;
  background: var(--surface-raised);
  box-shadow: var(--shadow-pop);
  pointer-events: none;
}
.lp-bars-tip .up { color: var(--accent-up); font-weight: 700; }
.lp-bars-tip .down { color: var(--accent-down); font-weight: 700; }

/* Valuation demo */
.lp-val {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: auto;
  padding: 16px;
  border-radius: 14px;
  background: var(--surface-2);
}
.lp-val-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.lp-val-row > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lp-val-right {
  align-items: flex-end;
}
.lp-val-num {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.lp-val-slider {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-secondary);
}
.lp-val-slider input {
  width: 100%;
  accent-color: var(--chart-purple);
  cursor: pointer;
}
.lp-val-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-down-wash), var(--surface-raised) 50%, var(--accent-up-wash));
  border: 1px solid var(--border);
}
.lp-val-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--surface-1);
  box-shadow: 0 1px 4px hsl(0 0% 0% / 0.25);
  transition: left 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.lp-val-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  color: var(--ink-muted);
}

/* AI demo */
.lp-ai {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}
.lp-ai-col {
  min-height: 132px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.lp-ai-col.up { background: var(--accent-up-wash); border-color: transparent; }
.lp-ai-col.down { background: var(--accent-down-wash); border-color: transparent; }
.lp-ai-title {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
}
.lp-ai-col.up .lp-ai-title { color: var(--accent-up); }
.lp-ai-col.down .lp-ai-title { color: var(--accent-down); }
.lp-ai ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0 0 0 16px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink);
}
.lp-ai.thinking .lp-ai-col {
  background-image: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ink) 6%, transparent), transparent);
  background-size: 200% 100%;
  animation: lp-shimmer 1s linear infinite;
}
@keyframes lp-shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}
.lp-ai-verdict {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--ink-secondary);
  opacity: 0;
  transform: translateY(6px) scale(0.98);
  transition: opacity 0.35s, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.lp-ai-verdict strong {
  padding: 2px 12px;
  border-radius: 8px;
  letter-spacing: 0.04em;
  color: var(--primary-ink);
  background: var(--primary);
}
.lp-ai.done .lp-ai-verdict {
  opacity: 1;
  transform: none;
}

/* Financials demo */
.lp-fin {
  width: 100%;
  margin-top: auto;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.lp-fin th,
.lp-fin td {
  padding: 8px 10px;
  text-align: right;
  border-bottom: 1px solid var(--hairline);
}
.lp-fin thead th {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
}
.lp-fin tbody th {
  text-align: left;
  font-weight: 500;
  color: var(--ink-secondary);
}
.lp-fin tbody tr.strong th,
.lp-fin tbody tr.strong .lp-fin-v {
  font-weight: 700;
  color: var(--ink);
}
.lp-fin tbody tr {
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.4s, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d);
}
.lp-fin.in tbody tr {
  opacity: 1;
  transform: none;
}
.lp-fin-v {
  display: block;
}
.lp-fin-y {
  display: block;
  font-size: 11px;
  font-weight: 600;
}
.lp-fin-y.up { color: var(--accent-up); }
.lp-fin-y.down { color: var(--accent-down); }

/* News demo */
.lp-news {
  display: grid;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.lp-news li {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-2);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: var(--d);
}
.lp-news.in li {
  opacity: 1;
  transform: none;
}
.lp-chip {
  justify-self: start;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.lp-chip.up { color: var(--accent-up); background: var(--accent-up-wash); }
.lp-chip.down { color: var(--accent-down); background: var(--accent-down-wash); }
.lp-chip.flat { color: var(--ink-secondary); background: var(--surface-raised); border: 1px solid var(--border); }
.lp-news-t {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}
.lp-news-src {
  font-size: 11px;
  color: var(--ink-muted);
}

/* Trending demo */
.lp-marquee {
  margin: 0 -24px 10px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.lp-marquee:first-of-type {
  margin-top: auto;
}
.lp-marquee-track {
  display: flex;
  gap: 8px;
  width: max-content;
  animation: lp-marquee 26s linear infinite;
}
.lp-marquee-rev .lp-marquee-track {
  animation-direction: reverse;
  animation-duration: 30s;
}
.lp-marquee:hover .lp-marquee-track {
  animation-play-state: paused;
}
@keyframes lp-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.lp-pill {
  padding: 7px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.lp-pill.up { color: var(--accent-up); background: var(--accent-up-wash); }
.lp-pill.down { color: var(--accent-down); background: var(--accent-down-wash); }

.lp-lists {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.lp-lists li {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
  border: 1px solid var(--border);
  background: var(--surface-2);
}

/* Watchlist demo */
.lp-watch {
  position: relative;
  margin-top: auto;
}
.lp-watch-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lp-watch-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 13px;
}
.lp-watch-list li.new {
  animation: lp-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes lp-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
.lp-watch-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--ink-secondary);
}
.lp-sync {
  position: absolute;
  top: -34px;
  right: 0;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-secondary);
  border: 1px solid var(--border);
  background: var(--surface-raised);
}
.lp-sync::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--accent-up-mark);
  vertical-align: 1px;
}
.lp-sync.pulse {
  animation: lp-sync 1.2s ease;
}
@keyframes lp-sync {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-up-mark) 45%, transparent); }
  100% { box-shadow: 0 0 0 10px transparent; }
}

/* How it works: a line fills across the three steps */
.lp-how {
  padding: 112px 0 96px;
}
.lp-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lp-steps::before,
.lp-steps::after {
  content: "";
  position: absolute;
  top: 42px;
  left: 16%;
  right: 16%;
  height: 2px;
  background: var(--border);
}
.lp-steps::after {
  right: auto;
  width: 0;
  background: var(--accent-up-mark);
  transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}
.lp-steps.in::after {
  width: 68%;
}
.lp-steps li {
  position: relative;
  z-index: 1;
  padding: 26px 24px;
  text-align: center;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 20px;
}
.lp-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  font-weight: 800;
  color: var(--primary-ink);
  background: var(--primary);
}
.lp-steps h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
}
.lp-steps p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-secondary);
}
.lp-faq {
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 96px;
}
.lp-faq details {
  border-bottom: 1px solid var(--hairline);
}
.lp-faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 2px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  cursor: pointer;
}
.lp-faq summary::-webkit-details-marker {
  display: none;
}
.lp-faq summary::after {
  content: "+";
  font-size: 20px;
  line-height: 1;
  color: var(--ink-muted);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.lp-faq details[open] summary::after {
  transform: rotate(45deg);
}
.lp-faq details p {
  margin: 0 0 18px;
  padding-right: 32px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-secondary);
}
.lp-faq details[open] p {
  animation: lp-pop 0.35s ease;
}
.lp-faq a {
  color: var(--ink);
}
.lp-final {
  padding: 72px 32px;
  margin-bottom: 24px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    radial-gradient(600px 240px at 50% 0%, var(--accent-up-wash), transparent 70%),
    var(--surface-1);
}
.lp-final .lp-sub {
  margin-bottom: 28px;
}
.lp-final .lp-hero-ctas {
  justify-content: center;
}
.lp-footer {
  margin-top: 40px;
}

/* Cards: a border glow that follows the cursor (pairs with the spotlight
   fill in .lp-card::before). Drawn as a 1px ring by masking out the
   middle of a gradient. */
.lp-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent-up-mark) 85%, transparent), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity 0.3s;
}
.lp-card:hover::after {
  opacity: 1;
}
/* The hero card: a slow shine travelling round its border. */
@property --lp-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
.lp-stock::after {
  background: conic-gradient(from var(--lp-angle), transparent 0deg 250deg, color-mix(in srgb, var(--accent-up-mark) 90%, transparent) 320deg, transparent 360deg);
  opacity: 1;
  animation: lp-spin 7s linear infinite;
}
@keyframes lp-spin {
  to { --lp-angle: 360deg; }
}

/* Hero backdrop: a fading dot grid and a soft glow behind the card. */
.lp-hero {
  position: relative;
  isolation: isolate;
}
.lp-hero::before {
  content: "";
  position: absolute;
  inset: -40px 0 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 16%, transparent) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 45% 60% at 50% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 45% 60% at 50% 45%, #000 20%, transparent 75%);
}
.lp-stage::before {
  content: "";
  position: absolute;
  inset: 12% 8%;
  z-index: -1;
  border-radius: 50%;
  background: var(--accent-up-wash);
  filter: blur(60px);
  pointer-events: none;
}

/* Data flow: sources -> Pancake -> what you get */
.lp-flow-section {
  padding: 24px 0 104px;
}
.lp-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 72px;
  padding: 44px 40px;
  overflow: hidden;
  background:
    radial-gradient(color-mix(in srgb, var(--ink) 9%, transparent) 1px, transparent 1.4px) 0 0 / 20px 20px,
    var(--surface-1);
}
.lp-flow-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.lp-flow-base {
  fill: none;
  stroke: var(--border-strong);
  stroke-width: 1.25;
  opacity: 0.7;
}
.lp-flow-beam {
  fill: none;
  stroke: var(--accent-up-mark);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 14 186;
  stroke-dashoffset: 14;
  filter: drop-shadow(0 0 4px color-mix(in srgb, var(--accent-up-mark) 70%, transparent));
  animation: lp-beam 2.6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@keyframes lp-beam {
  from { stroke-dashoffset: 14; }
  to { stroke-dashoffset: -100; }
}
.lp-flow-col {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lp-node {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s;
}
.lp-node:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}
.lp-node-icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-secondary);
  background: var(--surface-2);
}
.lp-flow-outputs .lp-node-icon {
  font-size: 15px;
  color: var(--accent-up);
  background: var(--accent-up-wash);
}
.lp-node strong {
  display: block;
  font-size: 14px;
}
.lp-node small {
  display: block;
  font-size: 12px;
  color: var(--ink-muted);
}
.lp-flow-hub {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 170px;
  padding: 22px 16px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--surface-raised);
  box-shadow: var(--shadow-pop);
}
.lp-flow-hub img {
  width: 58px;
  height: 58px;
  margin-bottom: 4px;
}
.lp-flow-hub strong {
  font-size: 17px;
  font-weight: 800;
}
.lp-flow-hub small {
  font-size: 12px;
  color: var(--ink-muted);
}
.lp-hub-ring {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 2px solid var(--accent-up-mark);
  opacity: 0;
  animation: lp-ring 2.6s ease-out infinite;
}
@keyframes lp-ring {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.18); opacity: 0; }
}
.lp-flow-more {
  margin: 18px 0 0;
  text-align: center;
  font-size: 14px;
}
.lp-flow-more a {
  color: var(--ink-secondary);
}
@media (max-width: 760px) {
  .lp-flow {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 28px 18px;
  }
  .lp-flow-sources {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .lp-flow-sources .lp-node {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px;
  }
  .lp-flow-hub {
    justify-self: center;
  }
}

@media (max-width: 980px) {
  .lp-links {
    display: none;
  }
  .lp-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 48px;
  }
  .lp-float-a { right: 8px; }
  .lp-float-b { left: 8px; }
  .lp-span-7,
  .lp-span-5 { grid-column: span 12; }
  .lp-span-4 { grid-column: span 6; }
  .lp-bento .lp-tile:last-child { grid-column: span 12; }
  .lp-facts {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 620px) {
  .lp-nav {
    gap: 10px;
    padding: 10px 16px;
  }
  .lp-signin {
    display: none;
  }
  .lp {
    padding: 0 16px;
  }
  .lp-lead {
    font-size: 16px;
  }
  .lp-stage {
    padding: 56px 0 64px;
  }
  .lp-float {
    padding: 9px 11px;
  }
  .lp-float strong {
    font-size: 16px;
  }
  .lp-float-a { top: 0; right: 0; }
  .lp-float-b { top: auto; bottom: 0; left: 0; }
  .lp-price {
    font-size: 32px;
  }
  .lp-stock-chart {
    height: 130px;
  }
  .lp-span-4 { grid-column: span 12; }
  .lp-facts {
    grid-template-columns: 1fr;
  }
  .lp-steps {
    grid-template-columns: 1fr;
  }
  .lp-steps::before,
  .lp-steps::after {
    display: none;
  }
  .lp-tile {
    padding: 20px;
  }
  .lp-ai {
    grid-template-columns: 1fr;
  }
  .lp-fin th,
  .lp-fin td {
    padding: 7px 6px;
  }
  .lp-final {
    padding: 48px 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lp-reveal,
  .lp-fin tbody tr,
  .lp-news li,
  .lp-ai-verdict {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .lp-float,
  .lp-marquee-track,
  .lp-sync.pulse,
  .lp-watch-list li.new,
  .lp-hub-ring,
  .lp-stock::after {
    animation: none !important;
  }
  .lp-flow-beam {
    display: none;
  }
  .lp-marquee-track {
    flex-wrap: wrap;
    width: auto;
  }
  .lp-bar-fill,
  .lp-steps::after,
  .lp-range-dot,
  .lp-val-marker {
    transition: none !important;
  }
}
