/* theSECfiles - main stylesheet */

:root {
  --bg: #eef3f8;
  --bg-soft: #e3ebf4;
  --card: #ffffff;
  --card-2: #f7fbff;
  --card-border: rgba(15, 23, 42, 0.12);
  --text: #111827;
  --muted: #64748b;
  --positive: #15803d;
  --negative: #dc2626;
  --accent: #0284c7;
  --accent-2: #2563eb;
  --warning: #f59e0b;
  --button-bg: #0f766e;
  --button-bg-hover: #115e59;
  --button-text: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --space: 16px;
  --container: 1180px;
  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 10px 28px rgba(15, 23, 42, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
}

main.main { flex: 1; }

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--card-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand__mark {
  width: 24px; height: 24px;
  display: inline-block;
  background: url("/assets/img/favicon.svg") center / contain no-repeat;
  color: transparent;
  font-size: 0;
}
.brand__name { font-size: 1.05rem; }
.brand--small { font-size: 0.9rem; }

.site-nav {
  display: flex;
  gap: 14px;
  margin-left: 12px;
}
.site-nav a {
  color: var(--muted);
  font-size: 0.92rem;
}
.site-nav a:hover { color: var(--text); text-decoration: none; }

.site-watchlist-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  font-weight: 600;
}
.site-watchlist-link:hover {
  text-decoration: none;
  border-color: rgba(15, 118, 110, 0.28);
}
.site-watchlist-link__count {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  color: #a16207;
  font-size: 0.75rem;
}

.site-search {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 4px 4px 4px 14px;
  min-width: 320px;
}
.site-search input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-size: 0.95rem;
  padding: 8px;
  min-width: 200px;
}
.site-search button {
  background: var(--button-bg);
  color: var(--button-text);
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
}
.site-search button:hover { background: var(--button-bg-hover); }

.suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--card-2);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  list-style: none;
  margin: 0; padding: 6px;
  max-height: 360px;
  overflow: auto;
  box-shadow: var(--shadow-1);
}
.suggest li { padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.suggest li:hover, .suggest li[aria-selected="true"] { background: rgba(14, 165, 233, 0.08); }
.suggest .meta { color: var(--muted); font-size: 0.8rem; margin-left: 6px; }

/* Hero */
.hero {
  padding: 64px 0 32px;
  background: radial-gradient(1200px 400px at 50% -100px, rgba(56, 189, 248, 0.12), transparent 60%),
              radial-gradient(800px 400px at 100% 0%, rgba(129, 140, 248, 0.08), transparent 60%);
  border-bottom: 1px solid var(--card-border);
}
.hero__inner { text-align: center; }
.hero__title {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.hero__subline {
  color: var(--muted);
  margin: 0 auto 24px;
  max-width: 680px;
}
.hero-search {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 6px;
  max-width: 720px;
  margin: 0 auto 12px;
  position: relative;
  box-shadow: var(--shadow-1);
}
.hero-search input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-size: 1rem;
  padding: 12px 14px;
}
.hero-search button {
  background: var(--button-bg);
  color: var(--button-text);
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
}
.hero-search button:hover,
.newsletter-form button:hover,
.form button:hover {
  background: var(--button-bg-hover);
}
.hero-search--inline { margin: 12px 0 24px; }
.hero__hint { margin-top: 16px; }
.hero__disclaimer { margin-top: 24px; color: var(--muted); }

.home-content {
  padding: 24px 0 56px;
}

/* Layout w/ ad rails */
.layout-with-rails {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, var(--container)) minmax(0, 1fr);
  gap: 24px;
  align-items: flex-start;
  padding: 24px 0 56px;
}
.content-rail { grid-column: 2; padding-top: 8px; }
.ad-slot {
  align-self: flex-start;
  margin-top: 24px;
  padding: 8px;
  border: 1px dashed var(--card-border);
  border-radius: var(--radius-sm);
  text-align: center;
  width: var(--ad-w, 160px);
  height: var(--ad-h, 600px);
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--card);
}
.ad-slot--left-rail { justify-self: end; grid-column: 1; }
.ad-slot--right-rail { justify-self: start; grid-column: 3; }
.ad-slot--in-feed { width: 100%; max-width: var(--ad-w, 728px); margin: 16px auto; }
.ad-slot--left-rail,
.ad-slot--right-rail {
  --ad-w: 160px;
  --ad-h: 600px;
}
.ad-slot--in-feed {
  --ad-w: 728px;
  --ad-h: 90px;
}
.ad-slot__label { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; }

/* Section heads */
.section-head { margin: 24px 0 16px; }
.section-head--compact { margin-top: 32px; }
.section-head h2 { margin: 0 0 4px; font-size: 1.4rem; letter-spacing: -0.01em; }
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--card-border);
  background: var(--card);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
}
.chip:hover { color: var(--text); }
.chip.is-active {
  color: var(--text);
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.12);
}

/* Entity grid */
.entity-grid {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.entity-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.entity-card a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 56px 14px 14px;
  color: var(--text);
}
.entity-card a:hover { text-decoration: none; }
.entity-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-1px);
}
.entity-card__type {
  align-self: flex-start;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(2, 132, 199, 0.08);
  color: var(--muted);
}
.entity-card__name { font-weight: 600; line-height: 1.2; }
.entity-card__meta { color: var(--muted); }

/* Type colors */
.type-institutional, .type-institution { color: var(--accent); }
.type-individual { color: var(--button-bg); }
.type-insider { color: #f0abfc; }
.type-company { color: #22d3ee; }
.type-mixed { color: #fbbf24; }
.type-unknown { color: var(--muted); }

/* Empty state */
.empty-card {
  border: 1px dashed var(--card-border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  background: var(--card);
}
.empty-card h2, .empty-card h3 { margin: 0 0 8px; }

/* Newsletter */
.newsletter-card {
  margin-top: 32px;
  padding: 24px;
  border: 1px solid var(--card-border);
  background: var(--card);
  border-radius: var(--radius);
}
.newsletter-form {
  display: flex;
  gap: 8px;
  margin: 12px 0 4px;
}
.newsletter-form input[type="email"] {
  flex: 1;
  background: #ffffff;
  border: 1px solid var(--card-border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 8px;
}
.newsletter-form button {
  background: var(--button-bg);
  color: var(--button-text);
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
}
.hp { position: absolute; left: -10000px; top: -10000px; height: 0; width: 0; }

/* Homepage top teasers */
.top-teasers {
  margin-top: 32px;
}
.top-teaser-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.top-teaser-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}
.top-teaser-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.top-teaser-card h3 {
  margin: 0;
  font-size: 0.98rem;
}
.top-teaser-card h3 a {
  color: var(--text);
}
.top-teaser-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.top-teaser-list li {
  min-width: 0;
}
.top-teaser-list__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}
.top-teaser-list a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 8px;
  color: var(--text);
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.035);
}
.top-teaser-list a:hover {
  text-decoration: none;
  background: rgba(2, 132, 199, 0.08);
}
.top-teaser-list__empty {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.025);
}
.top-teaser-list__rank {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 50%;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}
.top-teaser-list__body {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.top-teaser-list__body strong,
.top-teaser-list__body span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watch-toggle {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #94a3b8;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.watch-toggle:hover {
  border-color: rgba(245, 158, 11, 0.34);
  color: #b45309;
  transform: translateY(-1px);
}
.watch-toggle:focus-visible {
  outline: 2px solid rgba(14, 165, 233, 0.28);
  outline-offset: 2px;
}
.watch-toggle.is-active {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.38);
  color: #d4a017;
}
.watch-toggle__icon {
  font-size: 1.15rem;
  line-height: 1;
}
.entity-card > .watch-toggle {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
}
.watch-toggle--teaser {
  align-self: center;
  margin-right: 2px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--card-border);
  background: var(--bg-soft);
  padding: 40px 0 24px;
  margin-top: 32px;
}
.site-footer__inner { display: flex; flex-direction: column; gap: 24px; }
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.site-footer h3 { font-size: 0.9rem; margin: 0 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 4px 0; }
.site-footer a { color: var(--text); }
.site-footer__disclaimer { color: var(--muted); font-size: 0.85rem; max-width: 80ch; }

/* Article pages */
.article {
  max-width: 820px;
  padding-top: 40px;
  padding-bottom: 40px;
}
.article h1 { font-size: 2rem; letter-spacing: -0.02em; margin: 0 0 12px; }
.article h2 { margin-top: 28px; }
.article p, .article ul { color: #334155; }
.article .lead { font-size: 1.1rem; color: var(--text); }

/* Notices */
.notice {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 12px 0;
}
.notice--info { border-color: rgba(2,132,199,0.28); background: rgba(2,132,199,0.06); }
.notice--warning { border-color: rgba(245,158,11,0.4); background: rgba(245,158,11,0.06); }
.notice--success { border-color: rgba(34,197,94,0.4); background: rgba(34,197,94,0.06); }

/* Forms */
.form { display: flex; flex-direction: column; gap: 12px; max-width: 520px; }
.form label { display: flex; flex-direction: column; gap: 6px; }
.form input, .form textarea, .form select {
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 8px;
  font: inherit;
}
.form button {
  align-self: flex-start;
  background: var(--button-bg);
  color: var(--button-text);
  border: 0;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
}
.site-search button:disabled,
.hero-search button:disabled,
.newsletter-form button:disabled,
.form button:disabled {
  cursor: wait;
  opacity: 0.78;
}
.site-search.is-submitting,
.hero-search.is-submitting {
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14), var(--shadow-1);
}

.search-pending {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(226, 235, 244, 0.78);
  backdrop-filter: blur(8px);
}
.search-pending[hidden] { display: none; }
.search-pending__panel {
  width: min(420px, 100%);
  padding: 28px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-1);
  text-align: center;
}
.search-pending__spinner {
  width: 42px;
  height: 42px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 4px solid rgba(15, 118, 110, 0.16);
  border-top-color: var(--button-bg);
  animation: spin 0.8s linear infinite;
}
.search-pending__panel strong {
  display: block;
  font-size: 1.15rem;
}
.search-pending__panel p {
  margin: 8px 0 18px;
  color: var(--muted);
}
.search-pending__skeleton,
.loading-skeleton {
  display: grid;
  gap: 10px;
}
.search-pending__skeleton span,
.loading-skeleton span {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.08), rgba(15, 118, 110, 0.2), rgba(15, 118, 110, 0.08));
  background-size: 240% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
}
.search-pending__skeleton span:nth-child(2),
.loading-skeleton span:nth-child(2) {
  width: 82%;
  margin: 0 auto;
}
.search-pending__skeleton span:nth-child(3),
.loading-skeleton span:nth-child(3) {
  width: 62%;
  margin: 0 auto;
}

/* Loading page */
.loading-page { padding: 64px 24px; text-align: center; }
.loading-page .lead { margin-bottom: 18px; }
.progress {
  height: 8px;
  display: block;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  overflow: hidden;
  margin: 24px auto;
  max-width: 480px;
  appearance: none;
  -webkit-appearance: none;
}
.progress::-webkit-progress-bar {
  background: var(--card);
  border-radius: 999px;
}
.progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  transition: width 0.3s ease;
}
.progress::-moz-progress-bar {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
}
.loading-skeleton {
  max-width: 520px;
  margin: 28px auto 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes shimmer {
  0% { background-position: 140% 0; }
  100% { background-position: -140% 0; }
}

/* Dashboard */
.dashboard { padding: 32px 24px; }
.dashboard__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.dashboard__header h1 { font-size: 1.8rem; letter-spacing: -0.02em; margin: 6px 0; }
.dashboard__meta { display: flex; gap: 8px; flex-wrap: wrap; }
.dashboard__disclaimer { color: var(--muted); margin: 6px 0 24px; max-width: 80ch; }
.dashboard__official-filer {
  margin: 6px 0 0;
}
.dashboard__title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.watch-toggle--inline {
  width: 42px;
  height: 42px;
}
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(2,132,199,0.07);
  border: 1px solid var(--card-border);
  color: var(--muted);
}
.badge--info { color: var(--accent); border-color: rgba(56,189,248,0.4); background: rgba(56,189,248,0.08); }
.badge--type { font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.badge--new { color: var(--positive); border-color: rgba(34,197,94,0.4); background: rgba(34,197,94,0.08); }
.badge--increased { color: var(--positive); }
.badge--reduced { color: var(--warning); }
.badge--sold_out { color: var(--negative); border-color: rgba(239,68,68,0.4); background: rgba(239,68,68,0.08); }
.badge--unchanged { color: var(--muted); }
.badge--buy { color: var(--positive); }
.badge--sell { color: var(--negative); }
.badge--option_exercise, .badge--grant, .badge--gift, .badge--other { color: var(--accent); }

/* KPI grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin: 16px 0 24px;
}
.kpi {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.kpi__label { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.kpi__value { font-size: 1.4rem; font-weight: 700; }
.kpi__value--positive { color: var(--positive); }
.kpi__value--negative { color: var(--negative); }
.kpi__hint { color: var(--muted); }

/* Charts */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin: 0 0 24px;
}
@media (min-width: 1100px) {
  .charts-grid {
    grid-template-columns: minmax(320px, 0.92fr) minmax(420px, 1.08fr);
    align-items: stretch;
  }
}
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}
.chart-card--performance .chart-wrap {
  min-height: 260px;
}
.card__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 8px;
}
.card__head h2 { margin: 0; font-size: 1.1rem; }
.card__body { padding-top: 8px; }
.chart-wrap { position: relative; min-height: 220px; }
.chart-empty {
  text-align: center;
  padding: 32px 12px;
}
.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 10px;
}
.metric-strip--wide {
  margin-bottom: 14px;
}
.metric-strip span {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  background: var(--card-2);
}
.metric-strip small,
.metric-strip em {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-style: normal;
}
.metric-strip strong {
  display: block;
  margin: 2px 0;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.2;
}
.positive { color: var(--positive) !important; }
.negative { color: var(--negative) !important; }
.info-tip {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-left: 6px;
  border: 1px solid rgba(2, 132, 199, 0.22);
  border-radius: 50%;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  vertical-align: middle;
}
.chart-breakdown {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.chart-breakdown__row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  font-size: 0.84rem;
}
.chart-breakdown__swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.palette-bg-0 { background: #0ea5e9; }
.palette-bg-1 { background: #2563eb; }
.palette-bg-2 { background: #16a34a; }
.palette-bg-3 { background: #f59e0b; }
.palette-bg-4 { background: #dc2626; }
.palette-bg-5 { background: #0891b2; }
.palette-bg-6 { background: #a855f7; }
.palette-bg-7 { background: #65a30d; }
.palette-bg-8 { background: #e11d48; }
.palette-bg-9 { background: #ca8a04; }
.chart-breakdown__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}
.chart-breakdown__pct {
  color: var(--text);
  font-weight: 600;
}
.chart-breakdown__value {
  color: var(--muted);
}
.fallback-pie {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 220px;
}
.fallback-pie__graphic {
  width: min(220px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 8px solid #ffffff;
  box-shadow: var(--shadow-1);
}
.fallback-pie__graphic--static {
  display: grid;
  place-items: center;
  color: var(--muted);
  background: radial-gradient(circle, #ffffff 0 38%, rgba(14, 165, 233, 0.18) 39% 100%);
  font-weight: 700;
}
.fallback-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}
.fallback-legend li {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.86rem;
}
.fallback-legend span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.fallback-legend strong {
  min-width: 0;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fallback-legend em {
  font-style: normal;
}
.fallback-bars {
  display: grid;
  gap: 12px;
  padding: 10px 0;
}
.fallback-bars__row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 82px;
  gap: 10px;
  align-items: center;
  font-size: 0.86rem;
}
.fallback-bars__row > span {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fallback-bars__row > div {
  height: 10px;
  background: rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.fallback-bars__row progress {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
}
.fallback-bars__row progress::-webkit-progress-bar {
  background: transparent;
}
.fallback-bars__row progress::-webkit-progress-value {
  background: var(--accent);
  border-radius: 999px;
}
.fallback-bars__row progress::-moz-progress-bar {
  background: var(--accent);
  border-radius: 999px;
}
.fallback-bars__row strong {
  text-align: right;
  font-size: 0.82rem;
  color: var(--text);
}

/* Tables */
.table-wrap {
  position: relative;
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.data-table th, .data-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--card-border);
  white-space: nowrap;
}
.data-table th {
  position: sticky; top: 0;
  background: var(--card);
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
}
.data-table tbody tr:hover { background: rgba(2,132,199,0.05); }
.data-table--sticky-first .sticky-col {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--card);
}
.data-table--sticky-first thead .sticky-col {
  z-index: 6;
}
.data-table--sticky-first .sticky-col--ticker {
  min-width: 76px;
}
.data-table--sticky-first .sticky-col--edge {
  border-right: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 14px 0 18px -18px rgba(15, 23, 42, 0.45);
}
.data-table--sticky-first tbody tr:hover .sticky-col {
  background: var(--card-2);
}
.change-cell {
  display: inline-grid;
  gap: 4px;
  justify-items: start;
}
.change-cell small {
  color: var(--muted);
  font-size: 0.75rem;
}
.table-date strong,
.table-date span {
  display: block;
}
.table-date span {
  color: var(--muted);
  font-size: 0.75rem;
}

/* Toggle */
.toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}
.toggle input { accent-color: var(--accent); }

/* Buttons */
.btn {
  background: var(--card-2);
  border: 1px solid var(--card-border);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font: inherit;
}
.btn:hover { border-color: rgba(56,189,248,0.4); }
.btn--small { padding: 6px 10px; font-size: 0.85rem; }
.btn--primary {
  background: var(--button-bg);
  border-color: var(--button-bg);
  color: var(--button-text);
}
.btn--primary:hover {
  background: var(--button-bg-hover);
  border-color: var(--button-bg-hover);
}

.watchlist-page {
  max-width: 980px;
}
.watchlist-page__head {
  display: grid;
  grid-template-columns: auto minmax(320px, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 12px;
}
.watchlist-page__head h1 {
  margin-bottom: 0;
}
.watchlist-guide {
  width: 100%;
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--muted);
  resize: none;
  font: inherit;
  line-height: 1.55;
}
.watchlist-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.watchlist-toolbar__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.watchlist-entry__name {
  display: grid;
  gap: 2px;
}
.watchlist-entry__name strong {
  color: var(--text);
}
.watchlist-entry__actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}
.watchlist-entry__remove {
  background: transparent;
}
.watchlist-notify {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto;
  gap: 8px;
  min-width: 320px;
}
.watchlist-notify--global {
  align-self: start;
}
.watchlist-notify input[type="email"] {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  padding: 7px 10px;
  font: inherit;
}
.watchlist-notify input:disabled,
.watchlist-notify button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.watchlist-notify__status {
  margin-top: 6px;
  max-width: 38ch;
  grid-column: 1 / -1;
}

/* Analytics consent */
.analytics-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 92px;
  z-index: 110;
}
.analytics-consent__inner {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-1);
}
.analytics-consent p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.analytics-consent__actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* Disclaimer toast */
.disclaimer-toast {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 16px;
  z-index: 100;
  width: min(calc(100% - 32px), 1180px);
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  color: var(--text);
}
.disclaimer-toast__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  font-size: 0.92rem;
}

/* Mobile */
@media (max-width: 980px) {
  .layout-with-rails {
    grid-template-columns: 1fr;
  }
  .ad-slot--left-rail, .ad-slot--right-rail { display: none; }
  .site-search { display: none; }
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
  .charts-grid { grid-template-columns: 1fr; }
  .dashboard__header { flex-direction: column; }
}
@media (max-width: 760px) {
  .top-teaser-grid { grid-template-columns: 1fr; }
  .top-teaser-list__item { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form button { align-self: flex-start; }
  .metric-strip { grid-template-columns: 1fr; }
  .fallback-pie { grid-template-columns: 1fr; justify-items: center; }
  .fallback-legend { width: 100%; }
  .watchlist-page__head { grid-template-columns: 1fr; }
  .watchlist-notify { grid-template-columns: 1fr; min-width: 240px; }
  .analytics-consent__inner { grid-template-columns: 1fr; }
  .analytics-consent__actions { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .site-header__inner { flex-wrap: wrap; }
  .site-watchlist-link { margin-left: 0; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 24px; }
}
