:root {
  --bg: #0f172a;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --text: #0f172a;
  --muted: #52627a;
  --line: #d7e0ea;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --danger: #dc2626;
  --button-text: #ffffff;
  --radius: 14px;
}

:root[data-theme="summer"] {
  --bg: #fff7ed;
  --surface: #ffffff;
  --surface-alt: #ffedd5;
  --text: #7c2d12;
  --muted: #9a5b31;
  --line: #fed7aa;
  --accent: #ea580c;
  --accent-strong: #c2410c;
  --danger: #dc2626;
  --button-text: #ffffff;
}

:root[data-theme="winter"] {
  --bg: #eef6ff;
  --surface: #ffffff;
  --surface-alt: #e0f2fe;
  --text: #12324a;
  --muted: #55718a;
  --line: #cfe0ef;
  --accent: #0284c7;
  --accent-strong: #0369a1;
  --danger: #e11d48;
  --button-text: #ffffff;
}

:root[data-theme="snow"] {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-alt: #edf2f7;
  --text: #17324d;
  --muted: #5d7893;
  --line: #d9e2ec;
  --accent: #4f9cf9;
  --accent-strong: #2563eb;
  --danger: #dc2626;
  --button-text: #ffffff;
}

:root[data-theme="green"] {
  --bg: #f2fbf4;
  --surface: #ffffff;
  --surface-alt: #e3f7e8;
  --text: #123524;
  --muted: #4c6d5c;
  --line: #cfe6d7;
  --accent: #16a34a;
  --accent-strong: #15803d;
  --danger: #dc2626;
  --button-text: #ffffff;
}

:root[data-theme="orange"] {
  --bg: #fff6ef;
  --surface: #ffffff;
  --surface-alt: #ffe8d6;
  --text: #7c2d12;
  --muted: #99582a;
  --line: #ffd2b3;
  --accent: #f97316;
  --accent-strong: #ea580c;
  --danger: #dc2626;
  --button-text: #ffffff;
}

:root[data-theme="galaxy"] {
  --bg: #0b1220;
  --surface: #111c2f;
  --surface-alt: #162338;
  --text: #e5edf7;
  --muted: #9eb0c8;
  --line: #23324b;
  --accent: #38bdf8;
  --accent-strong: #0ea5e9;
  --danger: #fb7185;
  --button-text: #08111d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.site-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 0 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--button-text);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy small,
.nav a,
.hero-text,
.card p,
.playbook-item p,
.pricing-card li,
.join-card p,
.footer,
.section-note {
  color: var(--muted);
}

.nav,
.toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav {
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
}

.nav-group {
  position: relative;
  min-width: 0;
}

.nav-dropdown {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.nav-group-toggle {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 180px;
  padding: 10px 12px;
  cursor: pointer;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-group-toggle:hover,
.nav-group-toggle:focus-visible {
  color: var(--accent-strong);
  background: var(--surface-alt);
}

.nav-group-toggle::-webkit-details-marker {
  display: none;
}

.nav-group-toggle::after {
  content: "+";
  color: var(--accent-strong);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.nav-dropdown[open] .nav-group-toggle::after {
  content: "-";
}

.nav-group-links {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  display: grid;
  min-width: 200px;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.nav-dropdown:not([open]) .nav-group-links {
  display: none;
}

.nav a {
  font-size: 0.94rem;
  font-weight: 500;
}

.nav-group-links a {
  padding: 6px 8px;
  border-radius: 8px;
}

.nav-group-links a:hover,
.nav-group-links a:focus-visible {
  background: var(--surface-alt);
  color: var(--accent-strong);
}

.toolbar {
  gap: 12px;
}

.theme-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.theme-picker span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.theme-picker select {
  border: 0;
  background: transparent;
  color: var(--text);
  outline: none;
}

.theme-picker option {
  color: #0f172a;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: var(--button-text);
  font-weight: 600;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button-secondary,
.button-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}

.button-spotlight {
  padding: 0 20px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.button-secondary:hover,
.button-secondary:focus-visible,
.button-ghost:hover,
.button-ghost:focus-visible {
  background: var(--surface-alt);
  color: var(--accent-strong);
  border-color: var(--accent);
}

.join-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.hero {
  padding: 8px 0 20px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
}

h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.12;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

h4 {
  margin: 18px 0 10px;
  font-size: 0.9rem;
}

.hero-text {
  max-width: none;
  margin-bottom: 22px;
  font-size: 1rem;
}

.site-search {
  display: grid;
  gap: 0;
  max-width: 940px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.site-search-header {
  display: flex;
  align-items: stretch;
}

.site-search.is-floating {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 40;
  width: min(940px, calc(100% - 32px));
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16);
  transform: translateX(-50%);
}

.site-search.is-docked {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  width: min(420px, calc(100% - 24px));
  margin-bottom: 0;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16);
}

.site-search-toggle {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.site-search-dismiss {
  display: none;
  align-items: center;
  justify-content: center;
  width: 54px;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.site-search-dismiss:hover,
.site-search-dismiss:focus-visible {
  background: var(--surface-alt);
  color: var(--accent-strong);
}

.site-search.is-open .site-search-dismiss {
  display: inline-flex;
}

.site-search-toggle::after {
  content: "+";
  color: var(--accent-strong);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
}

.site-search.is-open .site-search-toggle::after {
  content: "-";
}

.site-search.is-open .site-search-toggle {
  border-bottom: 1px solid var(--line);
}

.site-search.is-open .site-search-dismiss {
  border-bottom: 1px solid var(--line);
}

.site-search-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.site-search-panel[hidden] {
  display: none;
}

.site-search-form {
  display: grid;
  gap: 12px;
}

.site-search-label {
  font-size: 0.92rem;
  font-weight: 700;
}

.site-search-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
}

.site-search-controls input {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-alt);
  color: var(--text);
}

.site-search-controls input::placeholder {
  color: #7f93ac;
}

.site-search-controls input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.site-search-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-search-status.is-active {
  color: var(--accent-strong);
  font-weight: 600;
}

.site-search-status.is-empty {
  color: var(--danger);
}

.site-search-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.site-search-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.site-search-nav[hidden] {
  display: none;
}

.site-search-position {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.floating-action {
  position: fixed;
  bottom: 16px;
  z-index: 39;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--button-text);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.floating-action:hover,
.floating-action:focus-visible {
  transform: translateY(-1px);
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.22);
}

.floating-action[hidden] {
  display: none;
}

.floating-action svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.site-search-launcher {
  right: 16px;
}

.scroll-top-launcher {
  right: 84px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.channel-live-status {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.channel-live-indicator {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--muted);
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.08);
}

.channel-live-copy {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
}

.channel-live-link {
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 700;
}

.channel-live-status.is-live {
  border-color: rgba(22, 163, 74, 0.28);
  background: #f0fdf4;
}

.channel-live-status.is-live .channel-live-indicator {
  background: #16a34a;
  box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.14);
}

.channel-live-status.is-offline .channel-live-indicator {
  background: var(--muted);
}

.channel-live-status.is-error .channel-live-indicator {
  background: var(--danger);
  box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.12);
}

.hero-metrics,
.grid,
.playbook,
.join-form {
  display: grid;
  gap: 16px;
}

.hero-metrics {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-metrics li,
.card,
.playbook-item,
.pricing-card,
.join-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-metrics li,
.card,
.pricing-card,
.join-card {
  padding: 20px;
}

.hero-metrics li {
  padding: 14px 16px;
}

.firm-card {
  display: flex;
  flex-direction: column;
}

.firm-meta {
  margin-bottom: 10px;
  font-size: 0.92rem;
}

.firm-meta strong {
  color: var(--text);
}

.playbook-fit {
  margin-bottom: 12px;
  font-size: 0.92rem;
}

.playbook-fit strong {
  color: var(--text);
}

.hero-metrics strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.08rem;
}

.hero-metrics span {
  font-size: 0.88rem;
  line-height: 1.4;
}

.hero-live-time {
  display: block;
  margin-top: 8px;
  color: var(--accent-strong);
  font-weight: 600;
}

.section {
  padding: 28px 0;
}

.section-heading {
  margin-bottom: 18px;
}

.section.is-collapsible {
  padding: 0;
  overflow: hidden;
}

.section-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.section-toggle .section-heading {
  margin: 0;
}

.section-toggle h2 {
  max-width: none;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.18;
}

.section-toggle .eyebrow {
  margin-bottom: 6px;
  font-size: 0.72rem;
}

.section-toggle::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--accent-strong);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.section.is-open .section-toggle::after {
  content: "-";
}

.section-content {
  padding-bottom: 28px;
}

.section-content[hidden] {
  display: none;
}

.search-match {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.16), 0 14px 32px rgba(15, 23, 42, 0.08);
  scroll-margin-top: 140px;
}

.search-current {
  border-color: var(--accent-strong) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.28), 0 18px 40px rgba(15, 23, 42, 0.12);
}

.search-dim {
  opacity: 0.5;
}

.cards-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-list,
.pricing-card ul {
  padding-left: 18px;
  margin: 0;
  color: var(--muted);
}

.product-list li + li,
.pricing-card li + li {
  margin-top: 8px;
}

.firm-actions {
  margin-top: auto;
  padding-top: 16px;
}

.section-note {
  margin-top: 16px;
  font-size: 0.92rem;
}

.tag,
.plan,
.playbook-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--accent-strong);
  font-weight: 700;
}

.tag,
.plan {
  margin-bottom: 12px;
  padding: 6px 10px;
  font-size: 0.78rem;
}

.feature-card {
  min-height: 170px;
}

.playbook-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

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

.live-chart-card {
  display: block;
  padding: 0;
  overflow: hidden;
}

.live-chart-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.live-chart-toggle::after {
  content: "+";
  color: var(--accent-strong);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
}

.live-chart-card.is-open .live-chart-toggle::after {
  content: "-";
}

.live-chart-card.is-open .live-chart-toggle {
  border-bottom: 1px solid var(--line);
}

.live-chart-toggle-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.live-chart-toggle-copy h3 {
  margin: 0;
}

.live-chart-content {
  padding: 20px;
}

.live-chart-content[hidden] {
  display: none;
}

.live-chart-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.live-chart-copy h3,
.live-chart-copy p {
  margin: 0;
}

.playbook-item {
  display: block;
  padding: 0;
  overflow: hidden;
}

.playbook-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.playbook-toggle h3 {
  margin: 0;
}

.playbook-toggle::after {
  content: "+";
  color: var(--accent-strong);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
}

.playbook-item.is-open .playbook-toggle::after {
  content: "-";
}

.playbook-item.is-open .playbook-toggle {
  border-bottom: 1px solid var(--line);
}

.playbook-content {
  min-width: 0;
  padding: 18px 18px 18px 74px;
}

.playbook-content[hidden] {
  display: none;
}

.playbook-index {
  width: 40px;
  height: 40px;
  font-size: 0.85rem;
}

.playbook-chart {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-alt);
}

.tv-chart-shell {
  margin-top: 0;
  min-height: 420px;
}

.tv-chart-stack {
  position: relative;
  min-height: 420px;
}

.tv-chart {
  display: grid;
  min-height: 420px;
  place-items: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.tv-chart-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tv-overlay-line,
.tv-overlay-zone,
.tv-overlay-marker {
  position: absolute;
}

.tv-overlay-line {
  left: 4%;
  right: 4%;
  border-top: 2px dashed rgba(40, 116, 240, 0.85);
}

.tv-overlay-line-pdh {
  border-top-color: rgba(98, 76, 255, 0.9);
}

.tv-overlay-line-vwap {
  border-top-color: rgba(40, 116, 240, 0.85);
}

.tv-overlay-zone {
  border: 1px solid rgba(40, 116, 240, 0.45);
  border-radius: 10px;
  background: rgba(40, 116, 240, 0.12);
}

.tv-overlay-marker {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.tv-overlay-marker-entry {
  background: var(--accent-strong);
}

.tv-overlay-marker-stop {
  background: var(--danger);
}

.tv-overlay-marker-target {
  background: rgba(98, 76, 255, 0.95);
}

.tv-overlay-label {
  position: absolute;
  top: -24px;
  left: 0;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.tv-overlay-zone .tv-overlay-label {
  top: 10px;
  left: 10px;
}

.tv-overlay-marker .tv-overlay-label {
  top: -30px;
  left: 10px;
}

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

.chart-grid {
  stroke: var(--line);
  stroke-width: 1;
  opacity: 0.7;
}

.chart-price {
  fill: none;
  stroke: var(--text);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-level {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 6 6;
}

.chart-level-fib {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  opacity: 0.75;
}

.chart-marker {
  fill: none;
  stroke: var(--danger);
  stroke-width: 2;
  stroke-dasharray: 4 4;
}

.chart-zone {
  fill: var(--accent);
  opacity: 0.14;
}

.chart-zone-danger {
  fill: var(--danger);
  opacity: 0.12;
}

.chart-entry {
  fill: var(--accent-strong);
}

.chart-stop {
  fill: var(--danger);
}

.chart-label {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 700;
  font-family: system-ui, sans-serif;
}

.chart-label-fib {
  fill: var(--muted);
  font-size: 10px;
  font-weight: 700;
  font-family: system-ui, sans-serif;
  text-anchor: end;
  dominant-baseline: middle;
}

.pricing-card.featured {
  border-color: var(--accent);
}

.pricing-card h3 {
  margin-bottom: 18px;
  font-size: 2.4rem;
}

.pricing-card h3 span {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
}

.join-card {
  padding: 24px;
}

.join-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.join-form input {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-alt);
  color: var(--text);
}

.join-form input::placeholder {
  color: #7f93ac;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-status.is-success {
  color: var(--accent-strong);
}

.form-status.is-error {
  color: var(--danger);
}

.footer {
  padding: 28px 0 0;
  font-size: 0.92rem;
  text-align: center;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.52);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  width: min(920px, 100%);
  max-height: min(88vh, 960px);
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.16);
}

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

.modal-header .eyebrow {
  margin-bottom: 8px;
}

.modal-body {
  display: grid;
  gap: 18px;
}

.modal-copy,
.modal-section {
  display: grid;
  gap: 12px;
}

.modal-copy > p {
  color: var(--muted);
}

.modal-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.modal-list li + li {
  margin-top: 8px;
}

.config-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.config-table th,
.config-table td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.config-table th {
  background: var(--surface-alt);
  color: var(--text);
}

.modal-copy a {
  color: var(--accent-strong);
}

@media (max-width: 1080px) {
  .cards-4,
  .cards-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .live-chart-grid {
    grid-template-columns: 1fr;
  }

  .live-chart-card {
    grid-template-columns: 1fr;
  }

  .tv-overlay-label {
    font-size: 0.7rem;
  }

  .join-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 24px, 1120px);
  }

  .topbar {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .nav {
    order: 3;
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .nav-group {
    width: 100%;
  }

  .nav-group-toggle {
    width: 100%;
    min-width: 0;
  }

  .nav-group-links {
    position: static;
    min-width: 0;
    margin-top: 0;
    box-shadow: none;
  }

  .toolbar {
    width: 100%;
    justify-content: space-between;
  }

  .theme-picker {
    flex: 1;
    justify-content: space-between;
  }

  .site-search-controls {
    grid-template-columns: 1fr;
  }

  .site-search.is-floating {
    top: 10px;
    width: calc(100% - 24px);
  }

  .site-search.is-docked,
  .site-search-launcher {
    right: 12px;
    bottom: 12px;
  }

  .scroll-top-launcher {
    right: 80px;
    bottom: 12px;
  }

  .site-search-meta,
  .site-search-nav {
    align-items: stretch;
  }

  .site-search-nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero-metrics,
  .cards-2,
  .cards-3,
  .cards-4 {
    grid-template-columns: 1fr;
  }

  .playbook-item {
    grid-template-columns: 1fr;
  }

  .tv-overlay-label {
    max-width: 110px;
    white-space: normal;
  }

  .modal {
    padding: 18px;
  }

  .modal-header {
    flex-direction: column;
  }

  .config-table,
  .config-table thead,
  .config-table tbody,
  .config-table tr,
  .config-table th,
  .config-table td {
    display: block;
  }

  .config-table thead {
    display: none;
  }

  .config-table td {
    border-top: 0;
  }

  .config-table tr {
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
  }

  h1 {
    font-size: 2.4rem;
  }

  h2 {
    font-size: 1.9rem;
  }

  .section-toggle h2 {
    font-size: 1.2rem;
  }
}
