@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Instrument+Serif:ital@0;1&display=swap");
:root {
  --ag-bg: #0b0c0e;
  --ag-fg: #ecece8;
  --ag-card: #131417;
  --ag-popover: #16181c;
  --ag-primary: #3e72af;
  --ag-primary-fg: #f4f7fb;
  --ag-secondary: #1c1e22;
  --ag-muted: #8b8d86;
  --ag-border: #2a2c31;
  --ag-up: #6fbf93;
  --ag-down: #d46a6a;
  --ag-hold: #d97706;
  --ag-notice: #c4b5fd;
  --ag-focus: #93c5fd;
  --ag-chart-1: #93c5fd;
  --ag-chart-2: #6fbf93;
  --ag-chart-3: #fbbf24;
  --ag-chart-4: #c4b5fd;
  --ag-chart-5: #67e8f9;
  --ag-shadow: 0 0 0 1px rgb(255 255 255 / 0.08);
  --ag-shadow-hover: 0 0 0 1px rgb(255 255 255 / 0.14);
  --ag-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --ag-display: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --ag-radius: 0.75rem;
  --ag-max: 72rem;
  --bs-body-bg: var(--ag-bg);
  --bs-body-color: var(--ag-fg);
  --bs-primary: var(--ag-primary);
  --bs-primary-rgb: 62, 114, 175;
  --bs-border-color: var(--ag-border);
  --bs-secondary-bg: var(--ag-secondary);
  --bs-font-sans-serif: var(--ag-sans);
  --bs-body-font-family: var(--ag-sans);
  --bs-body-font-size: 1rem;
  --bs-link-color: var(--ag-primary);
  --bs-link-hover-color: var(--ag-fg);
  --ag-bar: #f4f3ef;
  --ag-bar-fg: #16171a;
  --ag-bar-muted: #5c5e58;
  --ag-bar-border: #d7d3cb;
}

html[data-theme="light"] {
  --ag-bg: #f8fafc;
  --ag-fg: #1e293b;
  --ag-card: #ffffff;
  --ag-popover: #ffffff;
  --ag-primary: #3e72af;
  --ag-primary-fg: #ffffff;
  --ag-secondary: #f1f5f9;
  --ag-muted: #64748b;
  --ag-border: #e2e8f0;
  --ag-up: #047857;
  --ag-down: #e11d48;
  --ag-hold: #b45309;
  --ag-notice: #7c3aed;
  --ag-focus: #3e72af;
  --ag-chart-1: #3e72af;
  --ag-chart-2: #047857;
  --ag-chart-3: #b45309;
  --ag-chart-4: #7c3aed;
  --ag-chart-5: #0e7490;
  --ag-shadow: 0 0 0 1px rgb(226 232 240), 0 10px 30px -14px rgb(15 23 42 / 0.12);
  --ag-shadow-hover: 0 0 0 1px rgb(62 114 175 / 0.45), 0 12px 28px -12px rgb(62 114 175 / 0.25);
  --ag-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --ag-bar: #ffffff;
  --ag-bar-fg: #0f172a;
  --ag-bar-muted: #64748b;
  --ag-bar-border: #e2e8f0;
  --bs-body-bg: var(--ag-bg);
  --bs-body-color: var(--ag-fg);
  --bs-primary: var(--ag-primary);
  --bs-primary-rgb: 62, 114, 175;
  --bs-secondary-bg: var(--ag-secondary);
  --bs-border-color: var(--ag-border);
  --bs-link-color: var(--ag-primary);
  --bs-link-hover-color: var(--ag-fg);
  --bs-font-sans-serif: var(--ag-sans);
  --bs-body-font-family: var(--ag-sans);
}

/* Exactly one contrast surface.
   Logged out: the top header only.
   Logged in, desktop: the left rail only.
   Logged in, phone: the bottom bar only.
   The other chrome stays on the page background. */
html[data-theme="light"] body:not(.has-app-nav) .house-header {
  --ag-bar: #0f172a;
  --ag-bar-fg: #f8fafc;
  --ag-bar-muted: #cbd5e1;
  --ag-bar-border: #1e293b;
  background: #0f172a;
  color: #f8fafc;
  border-bottom-color: #1e293b;
}

html[data-theme="dark"] body:not(.has-app-nav) .house-header {
  --ag-bar: #f8fafc;
  --ag-bar-fg: #0f172a;
  --ag-bar-muted: #475569;
  --ag-bar-border: #e2e8f0;
  background: #f8fafc;
  color: #0f172a;
  border-bottom-color: #e2e8f0;
}

@media (min-width: 1024px) {
  html[data-theme="light"] .desk-sidebar {
    --ag-bar: #0f172a;
    --ag-bar-fg: #f8fafc;
    --ag-bar-muted: #cbd5e1;
    --ag-bar-border: #1e293b;
    background: #0f172a;
    color: #f8fafc;
    border-color: #1e293b;
  }

  html[data-theme="dark"] .desk-sidebar {
    --ag-bar: #f8fafc;
    --ag-bar-fg: #0f172a;
    --ag-bar-muted: #475569;
    --ag-bar-border: #e2e8f0;
    background: #f8fafc;
    color: #0f172a;
    border-color: #e2e8f0;
  }
}

@media (max-width: 1023.98px) {
  html[data-theme="light"] .desk-bottom {
    --ag-bar: #0f172a;
    --ag-bar-fg: #f8fafc;
    --ag-bar-muted: #cbd5e1;
    --ag-bar-border: #1e293b;
    background: #0f172a;
    color: #f8fafc;
    border-color: #1e293b;
  }

  html[data-theme="dark"] .desk-bottom {
    --ag-bar: #f8fafc;
    --ag-bar-fg: #0f172a;
    --ag-bar-muted: #475569;
    --ag-bar-border: #e2e8f0;
    background: #f8fafc;
    color: #0f172a;
    border-color: #e2e8f0;
  }
}

/* After login the top bar is not the menu, so it matches the page. */
body.has-app-nav .house-header,
.desk-topbar {
  background: var(--ag-bg);
  color: var(--ag-fg);
  border-bottom-color: var(--ag-border);
  --ag-bar: var(--ag-bg);
  --ag-bar-fg: var(--ag-fg);
  --ag-bar-muted: var(--ag-muted);
  --ag-bar-border: var(--ag-border);
}

html.way-guided #charts {
  display: none;
}

html {
  background: var(--ag-bg);
  color: var(--ag-fg);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100dvh;
  background: var(--ag-bg);
  color: var(--ag-fg);
  font-family: var(--ag-sans);
  overflow-x: hidden;
}

.container-ag .row {
  --bs-gutter-x: 1.5rem;
  margin-left: 0;
  margin-right: 0;
}

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

a:hover {
  color: var(--ag-fg);
}

a.ag-tap {
  color: var(--ag-primary);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a.ag-tap:hover {
  color: var(--ag-fg);
}

a.ag-tap .text-muted-ag {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  text-wrap: balance;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.font-display {
  font-family: var(--ag-sans);
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.page-title {
  font-family: var(--ag-sans);
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.75rem;
  line-height: 1.15;
}

@media (min-width: 1280px) {
  .page-title {
    font-size: 2.25rem;
  }
}

body[data-page="house"] .font-display,
body[data-page="products"] .font-display {
  font-family: var(--ag-display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

.container-ag {
  width: 100%;
  max-width: var(--ag-max);
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 576px) {
  .container-ag {
    padding-inline: 1.5rem;
  }
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ag-muted);
}

.text-muted-ag {
  color: var(--ag-muted);
}

.text-up {
  color: var(--ag-up);
}

.text-down {
  color: var(--ag-down);
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.card-ag {
  background: var(--ag-card);
  border-radius: 0.75rem;
  box-shadow: var(--ag-shadow);
}

.btn-ag,
.btn-ag-outline,
.btn-ag-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.btn-ag {
  background: var(--ag-primary);
  color: var(--ag-primary-fg);
}

.btn-ag:hover {
  background: color-mix(in oklab, var(--ag-primary) 90%, black);
  color: var(--ag-primary-fg);
}

button.build-cta {
  height: auto;
  min-height: 2.75rem;
  max-width: 18rem;
  padding: 0.65rem 0.9rem;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}

.btn-ag-outline {
  background: transparent;
  color: var(--ag-fg);
  box-shadow: var(--ag-shadow);
}

.btn-ag-outline:hover {
  background: var(--ag-secondary);
  box-shadow: var(--ag-shadow-hover);
  color: var(--ag-fg);
}

.btn-ag-ghost {
  background: transparent;
  color: var(--ag-muted);
}

.btn-ag-ghost:hover {
  background: var(--ag-secondary);
  color: var(--ag-fg);
}

.btn-ag-lg {
  height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: 0.75rem;
}

.btn-ag:active:not(:disabled),
.btn-ag-outline:active:not(:disabled) {
  transform: scale(0.96);
}

.btn-ag:disabled,
.btn-ag-outline:disabled,
.btn-ag-ghost:disabled,
.btn-ag.is-busy,
.btn-ag-outline.is-busy,
.btn-ag-ghost.is-busy,
button.is-busy,
select.is-busy {
  opacity: 0.72;
  cursor: wait;
  pointer-events: none;
}

.btn-spinner {
  width: 0.9rem;
  height: 0.9rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: ag-spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes ag-spin {
  to {
    transform: rotate(360deg);
  }
}

.hold-drop {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  color: var(--ag-down);
}

.hold-drop:hover {
  color: var(--ag-down);
  background: color-mix(in oklab, var(--ag-down) 12%, transparent);
}

.badge-ag {
  display: inline-flex;
  align-items: center;
  height: 1.5rem;
  padding: 0 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  box-shadow: var(--ag-shadow);
  color: var(--ag-fg);
}

.badge-hint {
  cursor: help;
}

.badge-up {
  background: color-mix(in oklab, var(--ag-up) 18%, var(--ag-card));
  color: var(--ag-up);
  box-shadow: none;
}

.badge-down {
  background: color-mix(in oklab, var(--ag-down) 18%, var(--ag-card));
  color: var(--ag-down);
  box-shadow: none;
}

.badge-hold {
  background: color-mix(in oklab, var(--ag-hold) 18%, var(--ag-card));
  color: var(--ag-hold);
  box-shadow: none;
}

.model-book-mark {
  background: color-mix(in oklab, var(--ag-fg) 6%, var(--ag-card));
  color: var(--ag-muted);
  box-shadow: none;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  height: auto;
  min-height: 1.5rem;
  max-width: 100%;
  white-space: normal;
  line-height: 1.25;
  padding: 0.2rem 0.5rem;
}

.model-book-mark-in {
  background: color-mix(in oklab, var(--ag-primary) 12%, var(--ag-card));
  color: color-mix(in oklab, var(--ag-primary) 70%, var(--ag-fg));
  box-shadow: none;
}

.model-book-mark-out {
  color: var(--ag-muted);
  opacity: 0.9;
}

.market-badge {
  height: 1.25rem;
  padding: 0 0.4rem;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  box-shadow: none;
}

.market-in {
  background: color-mix(in oklab, var(--ag-primary) 18%, var(--ag-card));
  color: color-mix(in oklab, var(--ag-primary) 80%, var(--ag-fg));
}

.market-us {
  background: color-mix(in oklab, var(--ag-fg) 10%, var(--ag-card));
  color: var(--ag-fg);
}

.eyebrow a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.house-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  height: 4rem;
  border-bottom: 1px solid var(--ag-bar-border);
  background: var(--ag-bar);
  color: var(--ag-bar-fg);
  backdrop-filter: blur(8px);
}

.desk-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  height: 4rem;
  border-bottom: 1px solid var(--ag-border);
  background: var(--ag-bg);
  color: var(--ag-fg);
  --ag-bar: var(--ag-bg);
  --ag-bar-fg: var(--ag-fg);
  --ag-bar-muted: var(--ag-muted);
  --ag-bar-border: var(--ag-border);
}

.house-header .container-ag,
.desk-topbar-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.wordmark {
  height: 1.75rem;
  width: auto;
}

.mark-sm {
  display: block;
  height: 1.75rem;
  width: 1.75rem;
  max-width: none;
  flex: 0 0 auto;
}

.house-nav a {
  display: inline-flex;
  align-items: center;
  height: 2.75rem;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  color: var(--ag-bar-muted);
  white-space: nowrap;
}

.house-nav a:hover {
  color: var(--ag-bar-fg);
}

.house-nav a.btn-ag {
  color: var(--ag-primary-fg);
}

.house-nav a.btn-ag:hover {
  color: var(--ag-primary-fg);
}

.house-nav.is-in .house-nav-guest {
  display: none !important;
}

.house-nav.is-in .house-nav-app {
  display: inline-flex;
}

.house-nav .house-account {
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1199.98px) {
  .house-nav.is-in a.house-nav-wide {
    display: none !important;
  }
}

@media (max-width: 575.98px) {
  .house-nav.is-in a.house-nav-app:not(.house-nav-core) {
    display: none !important;
  }
}

.house-nav a.house-nav-more {
  display: none;
}

@media (min-width: 576px) {
  .house-nav a.house-nav-more {
    display: inline-flex;
  }
}

@media (max-width: 767.98px) {
  body:not(.has-app-nav) .house-nav > :not(.house-keep):not(.testing-chips) {
    display: none !important;
  }
  body[data-page="house"] .hero .btn-ag,
  body[data-page="house"] .hero .btn-ag-outline,
  body[data-page="house"] .hero .house-products-card,
  body[data-page="products"] #plan .btn-ag {
    width: 100%;
    max-width: none;
  }
  body:not(.has-app-nav) .house-nav {
    margin-left: auto;
    gap: 0.25rem;
    min-width: 0;
    flex-wrap: nowrap;
  }
  body:not(.has-app-nav) .house-nav a.house-keep,
  body:not(.has-app-nav) .house-nav .house-help-btn.house-keep {
    height: 2.5rem;
    min-height: 2.5rem;
    padding: 0 0.55rem;
    font-size: 0.8rem;
    line-height: 1;
    white-space: nowrap;
  }
  body[data-page="house"] .house-brand-text {
    display: none;
  }
  body[data-page="house"] .house-trial-full {
    display: none;
  }
  body[data-page="house"] .house-trial-short {
    display: inline;
  }
}

.house-trial-short {
  display: none;
}

@media (min-width: 768px) {
  body[data-page="house"] .house-trial-full {
    display: inline;
  }
  body[data-page="house"] .house-trial-short {
    display: none;
  }
}

@media (max-width: 360px) {
  body:not(.has-app-nav) .house-nav a.house-keep,
  body:not(.has-app-nav) .house-nav .house-help-btn.house-keep {
    padding: 0 0.4rem;
    font-size: 0.75rem;
  }
}

.house-grain {
  background: var(--ag-bg);
}

.hero h1 {
  max-width: 48rem;
  font-family: var(--ag-display);
  font-style: italic;
  font-size: 2.25rem;
  line-height: 1.15;
}

@media (min-width: 576px) {
  .hero h1 {
    font-size: 3.25rem;
  }
}

.house-lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 992px) {
  .house-lead-grid:has(#house-world:not([hidden])) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.25rem;
    align-items: start;
  }
}

.house-tape,
.house-world,
.house-lead {
  min-width: 0;
}

/* .house-lead is on .container-ag. max-width:100% here would beat --ag-max
   and stretch Today's tape across a wide monitor. */
.house-tape,
.house-world {
  max-width: 100%;
}

.house-tape h2,
.house-tape #tape-brief,
.hero p {
  overflow-wrap: break-word;
}

.house-tape h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
  line-height: 1.2;
}

.house-tape #tape-brief {
  max-width: 36rem;
  font-size: 0.875rem;
}

.house-products-card {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  width: 100%;
  max-width: 28rem;
  margin-top: 0;
  padding: 1rem 1.15rem 1.05rem;
  border-radius: 1.05rem;
  text-decoration: none;
  color: var(--ag-primary-fg);
  background:
    radial-gradient(90% 80% at 100% 0%, color-mix(in oklab, var(--ag-primary) 45%, transparent), transparent 58%),
    linear-gradient(145deg, var(--ag-primary), color-mix(in oklab, var(--ag-primary) 55%, black) 62%, color-mix(in oklab, var(--ag-primary) 28%, black));
  border: 1px solid color-mix(in oklab, var(--ag-primary) 45%, white);
  box-shadow: var(--ag-shadow);
  animation: house-products-glow 2.6s ease-in-out infinite;
}

.house-products-card:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.house-products-kicker {
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in oklab, white 78%, var(--ag-primary-fg));
}

.house-products-title {
  font-size: clamp(1.35rem, 4.5vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.house-products-note {
  margin-top: 0.2rem;
  font-size: 0.85rem;
  line-height: 1.35;
  color: color-mix(in oklab, white 88%, var(--ag-primary-fg));
}

@keyframes house-products-glow {
  0%,
  100% {
    box-shadow: 0 0 0 1px color-mix(in oklab, var(--ag-primary) 35%, transparent), 0 0 16px color-mix(in oklab, var(--ag-primary) 28%, transparent);
  }
  50% {
    box-shadow: 0 0 0 1px color-mix(in oklab, var(--ag-primary) 70%, white), 0 0 32px color-mix(in oklab, var(--ag-primary) 45%, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .house-products-card {
    animation: none;
  }
}

.house-help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in oklab, var(--ag-bar-fg) 28%, transparent);
  background: transparent;
  color: var(--ag-bar-muted);
  border-radius: 999px;
  padding: 0 0.85rem;
  height: 2.75rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.house-help-btn:hover,
.house-help-btn[aria-expanded="true"] {
  color: var(--ag-bar-fg);
  border-color: var(--ag-bar-fg);
  background: color-mix(in oklab, var(--ag-bar-fg) 8%, transparent);
}

.house-help-panel {
  position: fixed;
  top: var(--ag-help-top, 4rem);
  left: 0;
  right: 0;
  z-index: 29;
  border-bottom: 1px solid var(--ag-border);
  background: color-mix(in oklab, var(--ag-bg) 94%, var(--ag-secondary));
  box-shadow: 0 12px 28px color-mix(in oklab, black 18%, transparent);
  font-size: 1rem;
  color: var(--ag-fg);
  line-height: 1.55;
}

.house-help-panel[hidden] {
  display: none;
}

.house-help-panel .howto-lede {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ag-fg);
}

.house-help-panel .howto-list {
  padding-left: 1.4rem;
}

.house-help-panel .howto-list li + li {
  margin-top: 0.45rem;
}

.house-help-panel .howto-dont {
  margin-top: 0.95rem;
}

.house-help-panel .howto-dont strong {
  font-weight: 700;
}

.house-help-panel a {
  color: var(--ag-primary);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

.house-help-panel a:hover {
  color: color-mix(in oklab, var(--ag-primary) 78%, black);
}

.house-help-panel a.howto-soft {
  font-style: italic;
  font-weight: 600;
}

.house-help-panel em {
  font-style: italic;
  font-weight: 600;
  color: color-mix(in oklab, var(--ag-primary) 62%, var(--ag-fg));
}

.house-help-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.house-help-close {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  margin: -0.55rem -0.65rem -0.55rem 0;
  border: 0;
  border-radius: 0.65rem;
  background: transparent;
  color: var(--ag-fg);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.house-help-close:hover {
  background: color-mix(in oklab, var(--ag-secondary) 85%, transparent);
}

body.house-help-open::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 28;
  background: color-mix(in oklab, black 28%, transparent);
}

.house-book-cta {
  font-size: 0.875rem;
  color: var(--ag-primary);
  text-decoration: none;
}

.house-book-cta:hover {
  color: var(--ag-fg);
}

.house-lead-cta {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid color-mix(in oklab, var(--ag-border) 80%, transparent);
}

.index-strip {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  max-width: 100%;
  min-width: 0;
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
}

.index-card {
  min-width: 10rem;
  flex: 0 0 auto;
  padding: 1rem;
  background: var(--ag-card);
  border-radius: 0.75rem;
  box-shadow: var(--ag-shadow);
}

@media (min-width: 992px) {
  .index-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    overflow: visible;
  }

  .index-card {
    min-width: 0;
  }
}

.index-returns-grid .index-return-card {
  min-width: 11.5rem;
}

.index-returns-grid .stock-chart-wrap {
  height: 96px;
  margin-top: 0.65rem;
}

.index-returns-grid .spark {
  height: 96px;
  width: 100%;
  max-height: none;
}

@media (max-width: 991.98px) {
  #index-returns .index-returns-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow: visible;
  }

  #index-returns .index-return-card {
    min-width: 0;
    width: 100%;
    flex: 0 0 auto;
  }
}

.desk-shell {
  display: flex;
  align-items: stretch;
  min-height: 100dvh;
  background: var(--ag-bg);
}

.desk-sidebar {
  display: none;
  width: 15rem;
  flex-shrink: 0;
  align-self: stretch;
  border-right: 1px solid var(--ag-bar-border);
  background: var(--ag-bar);
  color: var(--ag-bar-fg);
}

.desk-sidebar-stick {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-height: 100dvh;
  padding: 1.25rem 1rem;
  overflow: auto;
}

@media (min-width: 1024px) {
  .desk-shell {
    padding-left: var(--ag-rail, 15rem);
  }

  .desk-sidebar,
  body.has-app-nav > .app-side {
    display: flex;
    flex-direction: column;
  }

  .desk-shell > .desk-sidebar,
  body.has-app-nav > .app-side {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    width: var(--ag-rail, 15rem);
    height: auto;
    max-height: none;
  }

  .desk-shell > .desk-sidebar .desk-sidebar-stick,
  body.has-app-nav > .app-side .desk-sidebar-stick {
    position: relative;
    top: 0;
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    max-height: none;
  }
}

.desk-sidebar .btn-ag-ghost {
  height: auto;
  min-height: 2.75rem;
  justify-content: flex-start;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  color: var(--ag-bar-muted);
}

.desk-sidebar .btn-ag-ghost:hover {
  background: color-mix(in oklab, var(--ag-bar-fg) 8%, transparent);
  color: var(--ag-bar-fg);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: 0.15rem;
  padding: 0;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--ag-muted);
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--ag-secondary);
  color: var(--ag-fg);
}

.icon-btn.danger:hover {
  background: color-mix(in oklab, var(--ag-down) 14%, transparent);
  color: var(--ag-down);
}

.desk-nav-group {
  margin: 0.85rem 0 0.25rem;
  padding: 0 0.75rem;
  color: var(--ag-bar-muted);
}

.desk-nav-group:first-child {
  margin-top: 0;
}

.today-desk-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 992px) {
  .today-desk-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
  }
}

.today-action .page-title {
  max-width: 28rem;
}

.start-guide {
  max-width: 44rem;
}

.start-steps {
  list-style: none;
  counter-reset: start;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.start-steps > li {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.start-steps > li::before {
  content: counter(start);
  counter-increment: start;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: var(--ag-secondary);
  color: var(--ag-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 600;
}

.start-steps h2 {
  margin: 0.15rem 0 0.35rem;
  font-size: 1.05rem;
}

.start-steps p {
  margin: 0 0 0.5rem;
  color: var(--ag-muted);
  font-size: 0.875rem;
  max-width: 38rem;
}

.start-steps p:last-child {
  margin-bottom: 0;
}

.today-movers-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .today-movers-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

#briefing,
#desk-notes,
#rel-value,
#market-pulse,
#index-returns,
#book-in,
#book-us,
#market-highlights,
#today-deep-dive,
#today-holdings-movers {
  scroll-margin-top: 4.75rem;
}

.model-decision-head .model-decision-cta {
  flex: 0 0 auto;
}

.model-decision .amount-step {
  max-width: 20rem;
}

.analysis-prose p:last-child {
  margin-bottom: 0;
}

.desk-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  height: auto;
  padding: 0.55rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  color: var(--ag-bar-muted);
  line-height: 1.2;
}

.desk-nav a:hover {
  background: color-mix(in oklab, var(--ag-bar-fg) 8%, transparent);
  color: var(--ag-bar-fg);
}

.desk-nav a .nav-label {
  min-width: 0;
  white-space: normal;
  line-height: 1.2;
}

.desk-main {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  padding-bottom: 6rem;
}

@media (min-width: 1024px) {
  .desk-main {
    padding-bottom: 0;
  }
}

.desk-topbar-inner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  min-width: 0;
}

.desk-topbar {
  height: auto;
  min-height: 3.5rem;
  padding: 0.55rem 0.75rem;
}

.desk-topbar-inner > a {
  flex: 0 0 auto;
}

@media (max-width: 1023.98px) {
  .desk-topbar-inner > a span {
    display: none;
  }
}

@media (min-width: 576px) {
  .desk-topbar {
    padding-inline: 1.5rem;
  }
}

.desk-content {
  width: 100%;
  max-width: var(--ag-max);
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem;
}

@media (min-width: 576px) {
  .desk-content {
    padding: 2rem 1.5rem;
  }
}

.desk-bottom {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  display: grid;
  width: auto;
  max-width: 100%;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--ag-bar-border);
  background: var(--ag-bar);
  padding-bottom: env(safe-area-inset-bottom);
  overflow: hidden;
}

@media (min-width: 1024px) {
  .desk-bottom {
    display: none;
  }
}

.desk-bottom a,
.desk-bottom button {
  display: flex;
  min-height: 3.25rem;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0.35rem 0.1rem 0.4rem;
  overflow: hidden;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.6875rem;
  line-height: 1.1;
  color: var(--ag-bar-muted);
  white-space: nowrap;
  cursor: pointer;
}

.desk-bottom a span,
.desk-bottom a .nav-label,
.desk-bottom button .nav-label {
  display: block;
  width: 100%;
  max-width: 100%;
  text-align: center;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.desk-bottom a.active,
.desk-bottom button.active,
.desk-bottom button[aria-expanded="true"] {
  color: var(--ag-bar-fg);
}

.desk-search {
  margin-left: auto;
  flex: 0 0 auto;
}

@media (max-width: 1023.98px) {
  .desk-phone-mark {
    display: flex;
  }
  .desk-search {
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
  }
  .desk-search-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .desk-topbar .desk-account {
    display: none !important;
  }
  .desk-topbar-inner > .way-toggle,
  .desk-topbar-inner > .theme-toggle,
  body.has-app-nav .house-nav > :not(.house-search):not(.testing-chips) {
    display: none !important;
  }
  .house-search {
    width: 2.75rem;
    height: 2.75rem;
    margin-left: auto;
    padding: 0;
  }
}

@media (min-width: 1024px) {
  body.has-app-nav .house-nav > :not(.house-search):not(.desk-account):not(.testing-chips) {
    display: none !important;
  }
  body.has-app-nav .house-search {
    margin-left: auto;
  }
}

@media (min-width: 1024px) {
  .desk-phone-mark {
    display: none !important;
  }
  .desk-account {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    margin-left: 0.5rem;
    padding: 0;
    border: 1px solid var(--ag-border);
    border-radius: 0.5rem;
    background: transparent;
    color: var(--ag-fg);
  }
  .desk-account svg {
    width: 1.15rem;
    height: 1.15rem;
  }
  .desk-account:hover {
    background: var(--ag-secondary);
    color: var(--ag-fg);
  }
  .more-dest,
  .more-phone-only {
    display: none !important;
  }
  .more-sheet-body > .more-label:first-of-type {
    margin-top: 0.25rem;
  }
}

.desk-rail-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.75rem;
  margin-top: 0.75rem;
  border: 1px solid var(--ag-bar-border);
  border-radius: 0.75rem;
  background: transparent;
  color: var(--ag-bar-muted);
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
}

html[data-rail="icons"] {
  --ag-rail: 4.5rem;
}

html[data-rail="icons"] .desk-nav a {
  justify-content: center;
  gap: 0;
  padding-inline: 0;
}

html[data-rail="icons"] .desk-nav a .nav-label,
html[data-rail="icons"] .desk-sidebar .reg-side-link,
html[data-rail="icons"] #desk-user,
html[data-rail="icons"] .desk-rail-meta,
html[data-rail="icons"] .desk-rail-toggle span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.more-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgb(0 0 0 / 0.35);
}

.more-backdrop[hidden],
.more-sheet[hidden] {
  display: none !important;
}

.more-sheet {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  max-height: min(85dvh, 40rem);
  padding: 0;
  overflow: hidden;
  background: var(--ag-card);
  color: var(--ag-fg);
  border-radius: 0.75rem 0.75rem 0 0;
  box-shadow: var(--ag-shadow);
}

.more-sheet-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex: 0 0 auto;
  min-height: 2.75rem;
  padding: 0.35rem 0.5rem 0.35rem 1rem;
  background: var(--ag-card);
  border-bottom: 1px solid var(--ag-border);
}

.more-sheet-head .icon-btn {
  margin-left: 0;
  flex: 0 0 auto;
}

.more-sheet-body {
  flex: 1 1 auto;
  overflow: auto;
  padding: 0.5rem 1rem calc(1rem + env(safe-area-inset-bottom));
}

.more-sheet .more-label {
  margin: 0.85rem 0 0.25rem;
}

.more-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-height: 2.75rem;
  margin: 0;
  padding: 0.4rem 0.15rem;
  border: 0;
  border-bottom: 1px solid var(--ag-border);
  background: transparent;
  color: var(--ag-fg);
  font: inherit;
  font-size: 0.9375rem;
  line-height: 1.3;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.more-row .ag-tick {
  visibility: hidden;
  color: var(--ag-primary);
  font-weight: 700;
}

.more-row.is-on .ag-tick {
  visibility: visible;
}

.more-sheet form {
  margin: 0;
}

@media (min-width: 1024px) {
  .more-backdrop {
    background: rgb(0 0 0 / 0.2);
  }
  .more-sheet {
    top: 4.75rem;
    right: 1rem;
    bottom: auto;
    left: auto;
    width: 22rem;
    max-height: min(70vh, 36rem);
    border: 1px solid var(--ag-border);
    border-radius: 0.75rem;
  }
  .more-sheet-body {
    padding: 0.35rem 0.85rem 0.6rem;
  }
  .more-sheet-head {
    padding: 0.25rem 0.35rem 0.25rem 0.85rem;
  }
}

.ag-seg {
  display: flex;
  gap: 0.35rem;
  margin: 0 0 1rem;
  padding: 0.25rem;
  border: 1px solid var(--ag-border);
  border-radius: 999px;
  background: var(--ag-card);
}

.ag-seg a {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  color: var(--ag-muted);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.ag-seg a.is-on {
  background: var(--ag-primary);
  color: var(--ag-primary-fg);
}

@media (min-width: 1024px) {
  .ag-seg {
    display: none;
  }
}

@media (max-height: 500px) and (max-width: 1023.98px) {
  .desk-bottom a,
  .desk-bottom button {
    height: 2.75rem;
    min-height: 2.75rem;
    padding: 0;
  }
  .desk-bottom .nav-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .desk-main {
    padding-bottom: calc(2.75rem + env(safe-area-inset-bottom));
  }
}

.search-panel {
  position: fixed;
  inset: 0;
  z-index: 80;
}

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

.search-panel-backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in oklab, black 34%, transparent);
}

.search-panel-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  background: var(--ag-card);
  color: var(--ag-fg);
  box-shadow: var(--ag-shadow);
  overflow: hidden;
}

.search-panel.is-desktop .search-panel-card {
  border-radius: 1rem;
  border: 1px solid var(--ag-border);
  max-height: min(42rem, calc(100vh - 1.5rem));
}

.search-panel.is-mobile .search-panel-card {
  inset: 0;
  border-radius: 0;
  max-height: none;
  height: 100%;
}

.search-panel.is-mobile .search-panel-back {
  display: inline-flex;
}

.search-panel.is-desktop .search-panel-back {
  display: none;
}

.search-panel-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--ag-border);
}

.search-panel-ico {
  display: inline-flex;
  flex: 0 0 auto;
}

.search-panel-input {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  min-width: 0;
}

.search-panel-back,
.search-panel-x {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 0.55rem;
  background: transparent;
  color: var(--ag-fg);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.search-panel-back:hover,
.search-panel-x:hover {
  background: var(--ag-secondary);
}

.search-panel-filters {
  display: flex;
  flex-wrap: wrap;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.65rem 0.85rem;
  overflow: visible;
  border-bottom: 1px solid color-mix(in oklab, var(--ag-border) 80%, transparent);
}

.search-panel.is-mobile .search-panel-filters {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.search-pill {
  flex: 0 0 auto;
  height: 2rem;
  padding: 0 0.8rem;
  border: 1px solid var(--ag-border);
  border-radius: 999px;
  background: transparent;
  color: var(--ag-muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.search-pill.is-on,
.search-pill[aria-selected="true"] {
  background: color-mix(in oklab, var(--ag-primary) 16%, transparent);
  border-color: color-mix(in oklab, var(--ag-primary) 45%, var(--ag-border));
  color: var(--ag-fg);
}

.search-panel-hits {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.search-slab-5 {
  min-height: 16.25rem;
  max-height: 16.25rem;
}

.search-slab-10 {
  min-height: 24rem;
  max-height: min(32.5rem, calc(100vh - 14rem));
}

.search-panel.is-mobile .search-slab-5,
.search-panel.is-mobile .search-slab-10 {
  min-height: 0;
  max-height: none;
}

.search-hit {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0.55rem 1rem;
  background: transparent;
  border: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}

.search-hit:hover,
.search-hit.active {
  background: var(--ag-secondary);
}

.search-hit-title {
  font-size: 0.875rem;
}

.search-hit-sub {
  font-size: 0.75rem;
}

.search-hit-quote {
  flex: 0 0 auto;
  min-width: 4.5rem;
  text-align: right;
}

.search-hit-price {
  font-size: 0.875rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.search-hit-pct {
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: var(--ag-muted);
}

.search-hit-pct.is-up {
  color: var(--ag-up);
}

.search-hit-pct.is-down {
  color: var(--ag-down);
}

.search-hit mark {
  background: color-mix(in oklab, var(--ag-hold) 38%, transparent);
  color: inherit;
  padding: 0 0.08em;
  border-radius: 0.15rem;
}

.search-status {
  display: flex;
  align-items: center;
  min-height: 3.25rem;
  padding: 0.9rem 1rem;
  font-size: 0.875rem;
  color: var(--ag-muted, #9aa3ad);
}

body.search-open {
  overflow: hidden;
}

.desk-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--ag-border);
  border-radius: 999px;
  background: transparent;
  color: var(--ag-fg);
  cursor: pointer;
}

.desk-menu-pop {
  position: absolute;
  z-index: 40;
  top: calc(100% + 0.45rem);
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: min(17rem, calc(100vw - 1.25rem));
  padding: 0.7rem;
  background: var(--ag-card);
  color: var(--ag-fg);
  border: 1px solid var(--ag-border);
  border-radius: 0.9rem;
  box-shadow: var(--ag-shadow);
}

.desk-menu-pop[hidden] {
  display: none !important;
}

.desk-menu-row,
.desk-menu-models {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 2.75rem;
  margin: 0;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--ag-border);
  border-radius: 0.75rem;
  background: transparent;
  color: var(--ag-fg);
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.desk-menu-models {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
}

.desk-menu-models .eyebrow {
  margin: 0;
}

p.desk-menu-models {
  cursor: default;
}

.desk-menu-pop .way-toggle {
  display: flex;
  width: 100%;
}

.desk-menu-pop .way-toggle button {
  flex: 1 1 0;
  white-space: normal;
  line-height: 1.15;
  text-align: center;
  padding: 0.5rem 0.35rem;
}

@media (max-width: 991.98px) {
  .desk-menu {
    display: block;
  }

  .desk-topbar-inner > .way-toggle,
  .desk-topbar-inner > .theme-toggle,
  body.has-app-nav .house-nav > .way-toggle,
  body.has-app-nav .house-nav > .theme-toggle,
  body.has-app-nav .house-account {
    display: none !important;
  }

  .desk-topbar-inner > .btn-ag-outline.d-sm-none {
    margin-left: auto;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .desk-topbar-inner > .btn-ag-outline.d-none {
    margin-left: auto;
  }
}

.way-toggle {
  display: inline-flex;
  flex-shrink: 0;
  border: 1px solid var(--ag-bar-border);
  border-radius: 999px;
  overflow: hidden;
}

.way-toggle button {
  border: 0;
  background: transparent;
  color: var(--ag-bar-muted);
  font-size: 0.75rem;
  line-height: 1;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  white-space: nowrap;
}

.way-toggle button.is-on {
  background: var(--ag-bar-fg);
  color: var(--ag-bar);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  border: 1px solid var(--ag-bar-border);
  background: transparent;
  color: var(--ag-bar-fg);
  border-radius: 999px;
  font-size: 0.75rem;
  line-height: 1;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}

.desk-topbar .way-toggle,
.desk-topbar .theme-toggle {
  border-color: var(--ag-border);
}

.desk-topbar .way-toggle {
  margin-left: auto;
}

.desk-topbar .way-toggle button {
  color: var(--ag-muted);
}

.desk-topbar .way-toggle button.is-on {
  background: var(--ag-fg);
  color: var(--ag-bg);
}

.desk-topbar .theme-toggle {
  color: var(--ag-fg);
}

.desk-topbar .eyebrow,
.desk-topbar p {
  color: var(--ag-muted);
}

.desk-sidebar .reg-side-link,
#desk-user,
#desk-user a {
  color: var(--ag-bar-muted);
}

.desk-sidebar .reg-side-link:hover,
#desk-user a:hover {
  color: var(--ag-bar-fg);
}

.dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 99px;
  background: var(--ag-muted);
}

.dot.open {
  background: var(--ag-up);
}

.stock-row {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
}

.stock-row:hover {
  background: color-mix(in oklab, var(--ag-secondary) 70%, transparent);
}

.seg {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-self: flex-start;
  flex: 0 0 auto;
  gap: 0.25rem;
  width: fit-content;
  height: fit-content;
  padding: 0.25rem;
  background: var(--ag-secondary);
  border-radius: 0.75rem;
}

.seg button,
.seg a {
  height: 2.75rem;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--ag-muted);
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.seg button.active,
.seg a.active {
  background: var(--ag-card);
  color: var(--ag-fg);
  box-shadow: var(--ag-shadow);
}

.heat-cell {
  display: block;
  padding: 0.75rem;
  border-radius: 0.75rem;
  box-shadow: var(--ag-shadow);
  transition: box-shadow 0.15s ease;
}

.heat-cell:hover {
  box-shadow: var(--ag-shadow-hover);
}

.tape-book-grid-next {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ag-border);
}

.table-ag {
  width: 100%;
  text-align: left;
  font-size: 0.875rem;
}

.table-ag th {
  padding: 0.75rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ag-muted);
  border-bottom: 1px solid var(--ag-border);
}

.table-ag td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--ag-border);
  vertical-align: middle;
}

.table-ag th.sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.table-ag th.sortable:hover {
  color: var(--ag-fg);
}

.table-ag th.sortable.is-sorted {
  color: var(--ag-fg);
}

.table-ag th.sortable span {
  border-bottom: 1px dotted color-mix(in oklab, currentColor 55%, transparent);
}

.factor {
  display: grid;
  grid-template-columns: 5.5rem 1fr 2rem;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
}

.factor-track {
  height: 0.375rem;
  overflow: hidden;
  background: var(--ag-secondary);
  border-radius: 99px;
}

.factor-fill {
  height: 100%;
  background: var(--ag-fg);
  border-radius: 99px;
}

.metric-grid {
  display: grid;
  gap: 0.75rem;
}

.metric-grid-2 {
  grid-template-columns: 1fr 1fr;
}

.metric-grid-5 {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .metric-grid-5 {
    grid-template-columns: repeat(5, 1fr);
  }
}

.metric-grid-3 {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 576px) {
  .metric-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.metric-tile {
  padding: 0.85rem 0.9rem;
  background: var(--ag-secondary);
  border-radius: 0.75rem;
}

.metric-tile-sm {
  padding: 0.45rem 0.6rem;
}

.metric-tile-sm .metric-val {
  font-size: 1rem;
}

.metric-tile-sm .eyebrow {
  margin-bottom: 0.15rem;
}

.metric-val {
  font-size: 1.25rem;
  font-weight: 500;
}

.season-table {
  min-width: 44rem;
}

.season-table th,
.season-table td {
  text-align: center;
  padding: 0.4rem 0.28rem;
  font-size: 0.7rem;
}

.season-table th:first-child,
.season-table td:first-child,
.season-table th:last-child,
.season-table td:last-child {
  text-align: left;
}

.season-cell {
  border-radius: 0.25rem;
  white-space: nowrap;
}

.rank-z {
  grid-column: 1 / -1;
  margin-top: 0.15rem;
  padding-top: 0.65rem;
  border-top: 1px solid color-mix(in oklab, var(--ag-border) 70%, transparent);
}

.rank-z .z-range {
  gap: 0.55rem;
}

.rank-z .rank-bar {
  width: 100%;
  height: 0.62rem;
}

.rank-row.has-z {
  grid-template-columns: 2.1rem minmax(7rem, 1.6fr) 3.7rem auto minmax(5.5rem, 0.9fr);
}

.spark {
  width: 100%;
  height: auto;
  max-height: 180px;
}

.stock-price-svg {
  display: block;
  width: 100%;
  height: 180px;
  max-height: 200px;
}

.chart-return {
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.1;
}

.modal-ag .modal-content {
  background: var(--ag-popover);
  color: var(--ag-fg);
  border: 0;
  box-shadow: var(--ag-shadow);
}

.modal-ag .form-control {
  background: var(--ag-bg);
  border: 0;
  color: var(--ag-fg);
  box-shadow: none;
}

.modal-ag .form-control:focus {
  background: var(--ag-bg);
  color: var(--ag-fg);
  box-shadow: none;
}

#ag-dialog .btn-ag.is-danger {
  background: var(--ag-down);
  color: var(--ag-primary-fg);
}

.hold-edit {
  width: 100%;
  min-width: 0;
  max-width: 8.75rem;
  background: var(--ag-secondary);
  color: var(--ag-fg);
  border: 0;
  border-radius: 0.4rem;
  padding: 0.28rem 0.4rem;
  font-size: 0.8rem;
}

.hold-edit[type="date"] {
  max-width: 9.5rem;
}

html[data-theme="light"] .hold-edit,
html[data-theme="light"] #ag-dialog .form-control {
  color-scheme: light;
}

html:not([data-theme="light"]) .hold-edit,
html:not([data-theme="light"]) #ag-dialog .form-control {
  color-scheme: dark;
}

.flow-col {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.flow-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.15rem;
  height: 6rem;
}

.flow-bar {
  width: 0.7rem;
  border-radius: 3px 3px 0 0;
}

.range-track {
  position: relative;
  height: 0.375rem;
  overflow: hidden;
  background: var(--ag-secondary);
  border-radius: 99px;
}

.range-knob {
  position: absolute;
  top: 50%;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 99px;
  background: var(--ag-fg);
  transform: translate(-50%, -50%);
}

.watch-pin {
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 0.375rem;
  background: transparent;
  color: var(--ag-muted);
  box-shadow: var(--ag-shadow);
  cursor: pointer;
}

.watch-pin.on {
  color: var(--ag-primary);
}

.data-loading {
  opacity: 0.7;
}

body.is-loading {
  overflow: hidden;
}

.ag-page-loader {
  position: fixed;
  inset: var(--ag-testing-h, 0px) 0 0 0;
  z-index: 90;
  background: var(--ag-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.22s ease;
}

.ag-page-loader.is-done {
  opacity: 0;
  pointer-events: none;
}

.ag-load-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  overflow: hidden;
  background: rgb(255 255 255 / 0.06);
}

.ag-load-bar span {
  display: block;
  height: 100%;
  width: 34%;
  background: var(--ag-primary);
  animation: ag-load-slide 1.15s ease-in-out infinite;
}

.ag-load-panel {
  text-align: center;
  max-width: 22rem;
  padding: 0 1.25rem;
}

.ag-load-mark {
  height: 1.35rem;
  width: auto;
  margin-bottom: 1rem;
  opacity: 0.88;
  animation: none;
  transform: none;
}

.ag-load-copy {
  font-size: 1rem;
  color: var(--ag-muted);
}

.ag-load-skels,
.ag-region-skel {
  display: grid;
  gap: 0.65rem;
  margin: 1.4rem auto 0;
  max-width: 16rem;
}

.ag-region-skel {
  margin: 1.25rem 0 0;
  max-width: 36rem;
}

.ag-load-skels span,
.ag-region-skel span {
  display: block;
  height: 0.75rem;
  border-radius: 99px;
  background: linear-gradient(
    90deg,
    color-mix(in oklab, var(--ag-fg) 10%, var(--ag-border)) 0%,
    color-mix(in oklab, var(--ag-fg) 28%, var(--ag-card)) 50%,
    color-mix(in oklab, var(--ag-fg) 10%, var(--ag-border)) 100%
  );
  background-size: 200% 100%;
  animation: ag-shimmer 1.25s ease infinite;
}

.ag-load-skels span:nth-child(1),
.ag-region-skel span:nth-child(1) {
  width: 100%;
}

.ag-load-skels span:nth-child(2),
.ag-region-skel span:nth-child(2) {
  width: 78%;
}

.ag-load-skels span:nth-child(3),
.ag-region-skel span:nth-child(3) {
  width: 52%;
}

@keyframes ag-load-slide {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(380%);
  }
}

@keyframes ag-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ag-load-bar span,
  .ag-load-skels span,
  .ag-region-skel span,
  .btn-spinner,
  .ag-load-mark,
  .wordmark {
    animation: none !important;
    transform: none !important;
  }

  .ag-load-bar span {
    width: 42%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.house-nav .dropdown {
  display: none;
}

@media (min-width: 576px) {
  .house-nav .dropdown {
    display: block;
  }
}

.house-nav .dropdown-menu a,
.house-nav .dropdown-ag .dropdown-item {
  display: block;
  height: auto;
  padding: 0.4rem 1rem;
  color: var(--ag-fg);
}

.dropdown-ag {
  background: var(--ag-popover);
  border: 1px solid var(--ag-border);
  box-shadow: var(--ag-shadow);
  min-width: 16rem;
}

.dropdown-ag .dropdown-item:hover,
.dropdown-ag .dropdown-item:focus {
  background: var(--ag-secondary);
  color: var(--ag-fg);
}

.reg-footer {
  background: var(--ag-bg);
  color: var(--ag-fg);
}

.desk-main > .reg-footer {
  margin-top: auto;
  width: 100%;
}

.reg-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem 1.5rem;
  font-size: 0.8rem;
}

@media (min-width: 576px) {
  .reg-footer-links {
    grid-template-columns: 1fr 1fr;
  }
}

.reg-footer-links a {
  color: var(--ag-muted);
}

.reg-footer-links a:hover {
  color: var(--ag-fg);
  text-decoration: underline;
}

.reg-short {
  color: var(--ag-muted);
  max-width: 48rem;
}

body[data-page="products"] .reg-short {
  width: min(100%, var(--ag-max));
  max-width: var(--ag-max);
  margin: 0.5rem auto 1.25rem;
  padding: 0 1rem 1.25rem;
}

@media (min-width: 576px) {
  body[data-page="products"] .reg-short {
    padding-inline: 1.5rem;
  }
}

.reg-page ul {
  max-width: 48rem;
}

.reg-prose {
  max-width: 40rem;
  font-size: 1rem;
  line-height: 1.55;
}

.reg-prose h2,
.reg-prose h3 {
  font-family: var(--ag-sans);
  font-style: normal;
  font-weight: 700;
  font-size: 1.25rem;
  margin-top: 1.75rem;
}

.reg-table {
  color: var(--ag-fg);
  --bs-table-bg: transparent;
  --bs-table-color: var(--ag-fg);
  --bs-table-border-color: var(--ag-border);
}

.reg-table th {
  color: var(--ag-muted);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.reg-admin-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.reg-admin-nav a,
.admin-rows a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ag-fg);
  text-decoration: none;
}

.admin-rows > li {
  min-height: 2.75rem;
  border-bottom: 1px solid var(--ag-border);
}

.reg-admin-nav a {
  border-bottom: 1px solid var(--ag-border);
  padding: 0 0.15rem;
}

.reg-admin-nav a:hover,
.admin-rows a:hover {
  color: var(--ag-primary);
  text-decoration: none;
}

.account-col {
  width: min(100%, 32rem);
  margin-inline: auto;
}

body[data-page="login"] .account-link {
  color: var(--ag-primary);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

body[data-page="login"] .account-link:hover {
  color: color-mix(in oklab, var(--ag-primary) 80%, var(--ag-fg));
}

body[data-page="login"] .login-password-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.5rem;
}

body[data-page="login"] .login-password-head .field-label {
  margin: 0;
}

body[data-page="login"] .login-forgot {
  font-size: 0.8125rem;
  white-space: nowrap;
}

.field-label {
  display: block;
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ag-fg);
}

.field-error {
  color: var(--ag-down);
  font-size: 0.875rem;
  margin: 0.75rem 0 0;
}

.account-col .form-control,
.reg-page .form-control,
.reg-page select.form-control,
.reg-page textarea.form-control {
  background: var(--ag-secondary);
  color: var(--ag-fg);
  border: 0;
  border-radius: 0.5rem;
  font-size: 1rem;
  min-height: 2.75rem;
}

.account-col .form-control:disabled {
  color: var(--ag-muted);
}

.choice-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.choice-row .btn-ag,
.choice-row .btn-ag-outline {
  width: 100%;
}

@media (min-width: 768px) {
  .choice-row {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .choice-row .btn-ag,
  .choice-row .btn-ag-outline {
    width: auto;
  }
}

@media (max-width: 767.98px) {
  .account-col .btn-ag,
  .account-col .btn-ag-outline,
  .account-col .btn-ag-ghost,
  .reg-page form .btn-ag,
  .reg-page form .btn-ag-outline {
    width: 100%;
  }
}

body[data-page="regulatory"] main.reg-page {
  max-width: 40rem;
}

body[data-page="regulatory"] main.reg-page:has(table) {
  max-width: var(--ag-max);
}

body[data-page="regulatory"] .reg-page p,
body[data-page="regulatory"] .reg-page li,
body[data-page="regulatory"] .reg-prose,
body[data-page="regulatory"] .reg-prose p {
  font-size: 1rem;
}

body[data-page="regulatory"] .reg-page h2,
body[data-page="regulatory"] .section-title {
  font-family: var(--ag-sans);
  font-style: normal;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.testing-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1080;
  background: color-mix(in oklab, var(--ag-notice) 16%, var(--ag-bg));
  color: var(--ag-fg);
  border-bottom: 1px solid var(--ag-notice);
}

.testing-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.65rem 0;
}

@media (min-width: 768px) {
  .testing-banner-inner {
    flex-direction: row;
    align-items: baseline;
    gap: 1rem;
    padding: 0.7rem 0;
  }
}

.testing-banner-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  flex-shrink: 0;
}

.testing-banner-label {
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  background: var(--ag-notice);
  color: var(--ag-bg);
  padding: 0.18rem 0.5rem;
  border-radius: 0.25rem;
  line-height: 1.2;
}

.testing-banner-title {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ag-notice);
}

.testing-banner-msg {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--ag-fg);
  max-width: 52rem;
}

.testing-chips {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
  flex: 0 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.testing-chips + .desk-search,
.testing-chips + .house-search {
  margin-left: 0;
}

.testing-chips .testing-banner-label,
.testing-chips .testing-banner-title {
  white-space: nowrap;
}

.testing-chips .testing-banner-label {
  font-size: 0.625rem;
  letter-spacing: 0.08em;
}

.testing-chips .testing-banner-title {
  font-size: 0.6875rem;
}

.testing-chips:focus-visible {
  outline: 2px solid var(--ag-notice);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

@media (max-width: 639.98px) {
  .testing-chip-title {
    display: none;
  }
}

html.ag-testing {
  --ag-testing-h: 4.75rem;
}

html.ag-testing body {
  padding-top: var(--ag-testing-h);
}

html.ag-testing .house-header,
html.ag-testing .desk-topbar {
  top: var(--ag-testing-h);
}

html.ag-testing .desk-shell {
  min-height: calc(100dvh - var(--ag-testing-h));
}

html.ag-testing .desk-shell > .desk-sidebar,
html.ag-testing body.has-app-nav > .app-side {
  top: var(--ag-testing-h);
}

html.ag-testing .desk-sidebar-stick {
  top: 0;
  height: 100%;
  max-height: 100%;
}

.reg-check {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  font-size: 0.875rem;
  color: var(--ag-fg);
  cursor: pointer;
}

.reg-check input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  flex: 0 0 auto;
}

.reg-check a {
  text-decoration: underline;
}

.desk-sidebar .reg-side-link {
  font-size: 0.75rem;
  color: var(--ag-bar-muted);
  margin-top: 0.75rem;
  display: block;
}

.desk-sidebar .reg-side-link + .reg-side-link {
  margin-top: 0.35rem;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.rel-chart {
  padding: 0.25rem 0.15rem;
}

.rel-chart .stock-chart-wrap {
  height: 148px;
  margin-top: 0.75rem;
}

.rel-chart .spark {
  margin-top: 0;
  max-height: none;
  height: 148px;
  width: 100%;
}

.howto-btn {
  border: 0;
  background: transparent;
  color: var(--ag-muted);
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
  padding: 0.2rem 0.1rem;
  white-space: nowrap;
}

.howto-btn:hover,
.howto-btn[aria-expanded="true"] {
  color: var(--ag-fg);
}

.howto-panel {
  margin: 0 0 1rem;
  padding: 0.9rem 1.05rem;
  background: color-mix(in oklab, var(--ag-secondary) 78%, transparent);
  border-radius: 0.75rem;
  font-size: 0.8rem;
  color: var(--ag-muted);
  line-height: 1.45;
}

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

.howto-lede {
  color: var(--ag-fg);
  font-size: 0.85rem;
}

.howto-list {
  padding-left: 1.15rem;
  margin: 0;
}

.howto-list li + li {
  margin-top: 0.25rem;
}

.howto-kicker {
  color: var(--ag-fg);
  font-weight: 500;
}

.rel-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.55rem;
  font-size: 0.7rem;
  color: var(--ag-muted);
}

.rel-swatch {
  display: inline-block;
  width: 0.9rem;
  height: 2px;
  margin-right: 0.35rem;
  vertical-align: middle;
  background: var(--ag-fg);
}

.rel-swatch.dma {
  background: repeating-linear-gradient(
    90deg,
    var(--ag-muted) 0 4px,
    transparent 4px 7px
  );
}

.pulse-metric + .pulse-metric {
  margin-top: 1.05rem;
}

.pulse-counts {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.15rem 0.2rem;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: var(--ag-muted);
}

.pulse-chip {
  color: var(--ag-fg);
  font-weight: 500;
  border-bottom: 1px solid transparent;
}

a.pulse-chip:hover {
  border-bottom-color: var(--ag-fg);
  color: var(--ag-fg);
}

.pulse-chip.is-mid {
  color: var(--ag-muted);
  font-weight: 400;
}

.pulse-dot {
  color: var(--ag-muted);
  padding: 0 0.15rem;
}

.pulse-bar {
  display: flex;
  gap: 3px;
  height: 0.7rem;
  align-items: stretch;
}

.pulse-seg {
  display: block;
  min-width: 0.45rem;
  border-radius: 99px;
  position: relative;
}

a.pulse-seg::after {
  content: "";
  position: absolute;
  inset: -14px 0;
}

.pulse-seg-hot {
  background: var(--ag-primary);
}

.pulse-seg-cool {
  background: #5a5c56;
}

.pulse-seg-mid {
  background: #2e3136;
}

.pulse-seg-up {
  background: var(--ag-up);
}

.pulse-seg-down {
  background: var(--ag-down);
}

a.pulse-seg:hover {
  filter: brightness(1.18);
}

@media (min-width: 992px) {
  .pulse-board > .col-lg-6 + .col-lg-6 {
    border-left: 1px solid var(--ag-border);
    padding-left: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  a.pulse-seg:hover {
    filter: none;
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.25);
  }
}

.related-card {
  overflow: hidden;
  min-width: 0;
  width: 100%;
}

.related-card-name {
  font-size: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.related-card-sector {
  font-size: 0.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-rho,
.related-meta {
  font-size: 0.75rem;
  color: var(--ag-muted);
  white-space: nowrap;
}

.stock-chart-wrap {
  position: relative;
  cursor: crosshair;
}

.stock-chart-tip {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  background: var(--ag-popover);
  color: var(--ag-fg);
  border: 1px solid var(--ag-border);
  border-radius: 0.5rem;
  padding: 0.3rem 0.55rem;
  box-shadow: var(--ag-shadow);
  font-size: 0.75rem;
  line-height: 1.25;
  white-space: nowrap;
  transform: translate(-50%, calc(-100% - 12px));
}

.stock-chart-tip .tip-px {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.stock-chart-tip .tip-dt {
  color: var(--ag-muted);
}

.chart-hover-x {
  stroke: var(--ag-muted);
  stroke-opacity: 0.55;
}

.geo-select {
  max-width: 16rem;
  background: var(--ag-secondary);
  color: var(--ag-fg);
  border: 0;
}

.geo-card:hover {
  box-shadow: var(--ag-shadow-hover);
}

.geo-swatch {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 99px;
  vertical-align: middle;
  margin-right: 0.25rem;
}

.geo-compare .btn-ag {
  height: 2.75rem;
}

.macro-summary p:last-child {
  margin-bottom: 0;
}

.macro-briefing {
  max-width: 46rem;
}

.thesis-head {
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.thesis-body {
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 46rem;
  color: color-mix(in oklab, var(--ag-fg) 90%, var(--ag-muted));
}

.thesis-detail {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 46rem;
  color: var(--ag-muted);
}

.macro-lead {
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 42rem;
}

.macro-notes li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--ag-border);
  font-size: 0.9rem;
  line-height: 1.5;
}

.macro-notes li:first-child {
  padding-top: 0;
}

.macro-notes li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.macro-why {
  border-top: 1px solid var(--ag-border);
}

.macro-star {
  font-size: 0.55em;
  font-style: normal;
  font-weight: 400;
  vertical-align: super;
  margin-left: 0.15em;
  color: var(--ag-muted);
}

.macro-foot {
  font-size: 0.7rem;
  line-height: 1.45;
  color: var(--ag-muted);
  max-width: 48rem;
}

.z-range {
  display: grid;
  gap: 0.85rem;
}

.z-row {
  display: grid;
  grid-template-columns: 6.25rem minmax(0, 1fr) 9.25rem;
  gap: 0.4rem 0.85rem;
  align-items: center;
}

a.z-row {
  color: inherit;
  text-decoration: none;
  border-radius: 0.5rem;
  margin: 0 -0.35rem;
  padding: 0.15rem 0.35rem;
}

a.z-row:hover .z-label {
  color: var(--ag-fg);
}

a.z-row:hover .z-track {
  filter: brightness(1.12);
}

.z-label {
  font-size: 0.8rem;
  line-height: 1.2;
  color: var(--ag-muted);
}

.z-track-wrap {
  min-width: 0;
}

.z-track {
  position: relative;
  height: 0.62rem;
  border-radius: 99px;
  background: linear-gradient(
    90deg,
    var(--ag-down) 0%,
    color-mix(in oklab, var(--ag-hold) 70%, var(--ag-down)) 28%,
    var(--ag-muted) 50%,
    color-mix(in oklab, var(--ag-up) 70%, var(--ag-muted)) 74%,
    var(--ag-up) 100%
  );
}

.z-zero {
  position: absolute;
  left: 50%;
  top: -4px;
  bottom: -4px;
  width: 1px;
  background: rgb(255 255 255 / 0.3);
  transform: translateX(-50%);
}

.z-tick {
  position: absolute;
  top: 50%;
  width: 3px;
  height: 1.05rem;
  background: var(--ag-fg);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2px var(--ag-card);
}

.z-state {
  font-size: 0.78rem;
  font-weight: 500;
  text-align: right;
  line-height: 1.25;
  white-space: nowrap;
}

.z-state-miss {
  color: var(--ag-down);
  font-weight: 400;
}

.z-sigma {
  display: inline;
  margin-left: 0.4rem;
  font-weight: 400;
  color: var(--ag-muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.72rem;
}

.z-scale {
  display: grid;
  grid-template-columns: 6.25rem minmax(0, 1fr) 9.25rem;
  gap: 0.4rem 0.85rem;
  margin-top: 0.35rem;
  font-size: 0.65rem;
  color: var(--ag-muted);
  align-items: start;
}

.z-scale-axis {
  grid-column: 2;
  position: relative;
  height: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.z-scale-axis span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  line-height: 1;
  white-space: nowrap;
}

.z-scale-axis span:nth-child(1) {
  left: 0;
}

.z-scale-axis span:nth-child(2) {
  left: 50%;
}

.z-scale-axis span:nth-child(3) {
  left: 100%;
}

@media (max-width: 575.98px) {
  .z-row,
  .z-scale {
    grid-template-columns: 4.5rem minmax(0, 1fr);
  }

  .z-state {
    grid-column: 1 / -1;
    text-align: left;
    white-space: normal;
  }
}

.rank-list {
  border: 1px solid var(--ag-border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--ag-card);
}

.rank-row {
  display: grid;
  grid-template-columns: 2.1rem minmax(7rem, 1.4fr) minmax(5.5rem, 1fr) 3.7rem auto minmax(5.5rem, 0.9fr);
  gap: 0.55rem 0.85rem;
  align-items: center;
  padding: 0.55rem 0.95rem;
  border-bottom: 1px solid color-mix(in oklab, var(--ag-border) 85%, transparent);
  color: inherit;
  text-decoration: none;
  min-height: 2.8rem;
}

.rank-row:last-child {
  border-bottom: 0;
}

a.rank-row:hover {
  background: color-mix(in oklab, var(--ag-fg) 4%, var(--ag-card));
}

.rank-row.is-buy {
  box-shadow: inset 3px 0 0 var(--ag-up);
}

.rank-row.is-hold {
  box-shadow: inset 3px 0 0 var(--ag-hold);
}

.rank-row.is-sell {
  box-shadow: inset 3px 0 0 var(--ag-down);
}

.rank-n {
  font-variant-numeric: tabular-nums;
  color: var(--ag-muted);
  font-size: 0.75rem;
  text-align: right;
}

.rank-name {
  min-width: 0;
}

.rank-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-sub {
  display: block;
  font-size: 0.7rem;
  color: var(--ag-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-bar {
  position: relative;
  display: block;
  height: 6px;
  border-radius: 99px;
  background: color-mix(in oklab, var(--ag-muted) 22%, transparent);
}

.rank-bar-zero {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 1px;
  background: var(--ag-muted);
  opacity: 0.75;
  transform: translateX(-50%);
}

.rank-bar-fill {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 99px;
}

.rank-bar-up {
  background: var(--ag-up);
}

.rank-bar-hold {
  background: #c4a35a;
}

.rank-bar-down {
  background: var(--ag-down);
}

.rank-score {
  font-size: 0.875rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.rank-leaders {
  font-size: 0.7rem;
  color: var(--ag-muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}

.rank-more {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--ag-border);
  background: color-mix(in oklab, var(--ag-secondary) 80%, var(--ag-card));
  color: var(--ag-muted);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 0.95rem;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
}

.rank-more:hover {
  color: var(--ag-fg);
}

.rank-list:not(.is-open) .rank-mid {
  display: none;
}

@media (max-width: 720px) {
  .rank-row {
    grid-template-columns: 1.75rem minmax(0, 1fr) minmax(4.2rem, 0.75fr) 3.3rem auto;
  }

  .rank-row.has-z {
    grid-template-columns: 1.75rem minmax(0, 1fr) 3.3rem auto;
  }

  .rank-leaders {
    display: none;
  }
}

.hl-tape {
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
  mask-image: linear-gradient(to right, transparent, #000 1.25rem, #000 calc(100% - 1.25rem), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 1.25rem, #000 calc(100% - 1.25rem), transparent);
}

.hl-tape-track {
  display: flex;
  gap: 0.65rem;
  width: max-content;
  padding: 0.15rem 0;
  animation: hl-scroll var(--hl-pass, 96s) linear infinite;
}

.hl-tape:hover .hl-tape-track,
.hl-tape:focus-within .hl-tape-track,
.hl-tape.is-static .hl-tape-track {
  animation-play-state: paused;
}

@keyframes hl-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.hl-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.85rem;
  border: 1px solid var(--ag-border);
  border-radius: 999px;
  background: color-mix(in oklab, var(--ag-secondary) 70%, var(--ag-card));
  color: inherit;
  text-decoration: none;
  font-size: 0.78rem;
  white-space: nowrap;
  box-shadow: inset 3px 0 0 var(--ag-hold);
}

a.hl-chip:hover,
button.hl-chip:hover {
  background: color-mix(in oklab, var(--ag-fg) 5%, var(--ag-card));
}

button.hl-chip {
  font-family: inherit;
  cursor: pointer;
}

.hl-chip.is-up {
  box-shadow: inset 3px 0 0 var(--ag-up);
}

.hl-chip.is-down {
  box-shadow: inset 3px 0 0 var(--ag-down);
}

.hl-row {
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr) minmax(6.5rem, 9.5rem);
  gap: 0.55rem 1rem;
  align-items: start;
  padding: 0.85rem 0.95rem;
  border-bottom: 0;
  color: inherit;
  text-decoration: none;
}

.hl-list > .hl-row,
.hl-list > .hl-item {
  border-bottom: 1px solid color-mix(in oklab, var(--ag-border) 85%, transparent);
}

.hl-list > .hl-row:last-child,
.hl-list > .hl-item:last-child {
  border-bottom: 0;
}

button.hl-row {
  width: 100%;
  margin: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

a.hl-row:hover,
button.hl-row:hover,
.hl-item.is-open > .hl-row {
  background: color-mix(in oklab, var(--ag-fg) 4%, var(--ag-card));
}

.hl-chart {
  padding: 0.15rem 0.95rem 1rem;
}

.hl-chart[hidden] {
  display: none !important;
}

.hl-see {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--ag-primary);
  text-decoration: none;
}

.hl-see:hover {
  text-decoration: underline;
}

.hl-figure-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.35rem 1rem;
  margin-bottom: 0.55rem;
}

.hl-figure-names {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
}

.hl-figure-name {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ag-fg);
}

.hl-figure-unit {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ag-muted);
}

.hl-figure-plot,
.hl-figure-x {
  display: grid;
  grid-template-columns: 4.4rem minmax(0, 1fr);
  gap: 0.45rem;
  align-items: stretch;
}

.hl-figure-y {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 200px;
  box-sizing: border-box;
  padding: 0.7rem 0;
  font-size: 0.68rem;
  line-height: 1;
  text-align: right;
  color: var(--ag-muted);
}

.hl-chart .stock-price-svg {
  height: 200px;
  max-height: none;
}

.hl-figure-xlabels {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  color: var(--ag-muted);
}

.hl-figure-xlabels span:nth-child(2) {
  text-align: center;
}

.hl-figure-xlabels span:last-child {
  text-align: right;
}

.hl-figure-axis {
  margin: 0.55rem 0 0;
  font-size: 0.75rem;
  color: var(--ag-muted);
}

.hl-row.is-up {
  box-shadow: inset 3px 0 0 var(--ag-up);
}

.hl-row.is-hold {
  box-shadow: inset 3px 0 0 var(--ag-hold);
}

.hl-row.is-down {
  box-shadow: inset 3px 0 0 var(--ag-down);
}

.hl-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  text-align: right;
}

.hl-kicker {
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
}

.hl-chips {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ag-muted);
}

.hl-chips.is-against {
  color: color-mix(in oklab, var(--ag-hold) 35%, var(--ag-fg));
}

.hl-clause {
  display: none;
}

.hl-headline {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.45;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  color: var(--ag-fg);
}

.hl-list .rank-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ag-muted);
}

.hlc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 900px) {
  .hlc-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hlc-card {
  padding: 1.15rem 1.2rem 1.25rem;
  border: 1px solid var(--ag-border);
  border-radius: 1rem;
  background: var(--ag-card);
  min-width: 0;
}

.hlc-last {
  font-size: 1.15rem;
  font-weight: 500;
}

.hlc-mark {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ag-muted);
}

.hlc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  font-size: 0.75rem;
  color: var(--ag-muted);
}

.hlc-swatch {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  margin-right: 0.4rem;
  vertical-align: middle;
}

.hlc-bars {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.2rem 0 0.1rem;
}

.hlc-bar-row {
  display: grid;
  grid-template-columns: minmax(5.5rem, 0.9fr) minmax(0, 1.6fr) 3.6rem;
  gap: 0.55rem;
  align-items: center;
}

.hlc-bar-name {
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hlc-bar-track {
  height: 0.45rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--ag-border) 70%, transparent);
  overflow: hidden;
}

.hlc-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--ag-hold);
}

.hlc-bar-fill.is-up {
  background: var(--ag-up);
}

.hlc-bar-fill.is-down {
  background: var(--ag-down);
}

.hlc-bar-val {
  font-size: 0.78rem;
  text-align: right;
}

@media (max-width: 720px) {
  .hl-row {
    grid-template-columns: 1.75rem minmax(0, 1fr);
  }

  .hl-meta {
    grid-column: 2;
    align-items: flex-start;
    text-align: left;
    min-width: 0;
  }

  .hl-kicker {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hl-tape {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .hl-tape-track {
    animation: none;
  }
}

.geo-swap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--ag-border);
  border-radius: 0.65rem;
  background: var(--ag-card);
  color: var(--ag-fg);
  text-decoration: none;
  flex: 0 0 auto;
  cursor: pointer;
}
.geo-swap svg {
  width: 18px;
  height: 18px;
}

.geo-swap:hover,
.geo-swap:focus-visible {
  background: var(--ag-secondary);
  color: inherit;
}

a.geo-swap {
  vertical-align: middle;
}

.geo-flag {
  display: inline-block;
  width: 1.15rem;
  height: 0.86rem;
  margin-right: 0.4rem;
  object-fit: cover;
  vertical-align: -0.12em;
  border-radius: 2px;
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--ag-fg) 16%, transparent);
  flex: 0 0 auto;
}

.page-title .geo-flag {
  width: 1.7rem;
  height: 1.28rem;
  margin-right: 0.55rem;
  vertical-align: -0.18em;
}

.geo-country {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
}

.geo-country .geo-flag {
  margin-right: 0;
}

.geo-select {
  max-width: 16rem;
}

.house-world-frame {
  position: relative;
  max-width: 100%;
  min-width: 0;
}

.house-world-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-inline: 0;
  padding-inline: 0;
  max-width: 100%;
  min-width: 0;
  scrollbar-width: thin;
}

.house-world-frame::before,
.house-world-frame::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1.75rem;
  pointer-events: none;
  opacity: 0;
  z-index: 2;
  transition: opacity 0.2s ease;
}

.house-world-frame::before {
  left: 0;
  background: linear-gradient(to right, var(--ag-bg), transparent);
}

.house-world-frame::after {
  right: 0;
  background: linear-gradient(to left, var(--ag-bg), transparent);
}

.house-world-frame.is-overflow::after {
  opacity: 1;
}

.house-world-frame.is-overflow.is-scrolled::before {
  opacity: 1;
}

.house-world-frame.is-overflow.is-end::after {
  opacity: 0;
}

.house-world-swipe {
  position: absolute;
  right: 0.65rem;
  bottom: 0.55rem;
  z-index: 3;
  margin: 0;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--ag-bg) 88%, transparent);
  border: 1px solid color-mix(in oklab, var(--ag-border) 85%, transparent);
  color: var(--ag-fg);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  pointer-events: none;
  animation: house-world-swipe-pulse 1.6s ease-in-out infinite;
}

.house-world-swipe[hidden] {
  display: none;
}

@keyframes house-world-swipe-pulse {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.85;
  }
  50% {
    transform: translateX(4px);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .house-world-swipe {
    animation: none;
  }
}

.house-world-stage {
  position: relative;
  width: 100%;
  min-width: 34rem;
  aspect-ratio: 2 / 1;
}

@media (min-width: 768px) {
  .house-world-stage {
    min-width: 0;
  }

  .house-world-frame::before,
  .house-world-frame::after,
  .house-world-swipe {
    display: none;
  }
}

@media (min-width: 992px) {
  .house-lead .house-world-scroll {
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
  }

  .house-lead .house-world-pin .hub-name {
    font-size: 0.7rem;
  }

  .house-lead .house-world-pin .hub-ret {
    font-size: 0.65rem;
  }
}

.house-world-land {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
}

.house-world-land.is-light {
  display: none;
}

html[data-theme="light"] .house-world-land.is-dark {
  display: none;
}

html[data-theme="light"] .house-world-land.is-light {
  display: block;
}

html[data-theme="light"] .house-world-pin .hub-label {
  background: color-mix(in oklab, var(--ag-bg) 88%, transparent);
  border-radius: 0.28rem;
  padding: 0.05rem 0.28rem 0.08rem;
}

.house-world-pins {
  position: absolute;
  inset: 0;
}

.house-world-pin {
  position: absolute;
  width: 14px;
  height: 14px;
  margin: 0;
  transform: translate(-50%, -50%);
  color: inherit;
}

.house-world-pin .hub-dot {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 7px color-mix(in oklab, currentColor 28%, transparent);
}

.house-world-pin.is-up {
  color: var(--ag-up);
}

.house-world-pin.is-down {
  color: var(--ag-down);
}

.house-world-pin .hub-label {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  white-space: nowrap;
  line-height: 1.15;
  pointer-events: none;
}

.house-world-pin .hub-name {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ag-fg);
}

.house-world-pin .hub-ret {
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  color: currentColor;
}

.house-world-pin.is-n .hub-label {
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  text-align: center;
}

.house-world-pin.is-s .hub-label {
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  text-align: center;
}

.house-world-pin.is-e .hub-label {
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  text-align: left;
}

.house-world-pin.is-se .hub-label {
  left: calc(100% + 8px);
  top: calc(100% + 2px);
  text-align: left;
}

.house-world-pin.is-ne .hub-label {
  left: calc(100% + 8px);
  bottom: calc(100% + 2px);
  text-align: left;
}

.house-world-pin:hover .hub-name,
.house-world-pin:focus-visible .hub-name {
  color: var(--ag-fg);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.house-world-pin:focus-visible {
  outline: none;
}

.house-world-pin:focus-visible .hub-dot {
  box-shadow:
    0 0 0 7px color-mix(in oklab, currentColor 28%, transparent),
    0 0 0 2px var(--ag-bg),
    0 0 0 4px var(--ag-fg);
}

.house-world-pin:hover .hub-dot {
  transform: scale(1.12);
}

html.is-intro {
  overflow: hidden;
}

html.is-intro main {
  visibility: hidden;
}

html.is-intro .house-header,
html.is-globe .house-header,
html.is-globe-fit .house-header {
  top: 0;
  height: 3.5rem;
  min-height: 3.5rem;
  max-height: 3.5rem;
  overflow: hidden;
}

.house-intro {
  position: fixed;
  z-index: 25;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5.25rem 1.5rem 2.5rem;
  background: var(--ag-bg);
}

.house-intro[hidden] {
  display: none !important;
}

.house-intro-line,
.house-intro-ratings {
  max-width: 16em;
  margin: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.9s ease, transform 0.9s ease;
  text-align: center;
}

.house-intro.is-on .house-intro-line,
.house-intro.is-on .house-intro-ratings {
  opacity: 1;
  transform: none;
}

.house-intro-line {
  font-family: var(--ag-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.05rem, 5.2vw, 3.75rem);
  line-height: 1.18;
  color: var(--ag-fg);
}

.house-intro-line[hidden] {
  display: none !important;
}

.house-intro-ratings {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.75rem;
  max-width: none;
  font-family: var(--ag-display);
  font-style: italic;
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  line-height: 1;
}

.house-intro-ratings[hidden] {
  display: none !important;
}

.house-intro-ratings .is-buy {
  color: var(--ag-up);
}

.house-intro-ratings .is-hold {
  color: var(--ag-hold);
}

.house-intro-ratings .is-sell {
  color: var(--ag-down);
}

html.is-globe {
  overflow: hidden;
}

html.is-globe .hero > :not(h1),
html.is-globe .house-tape,
html.is-globe .house-world > .eyebrow,
html.is-globe #house-world-note,
html.is-globe .house-world-swipe,
html.is-globe .house-help-panel,
html.is-globe .house-lead-cta,
html.is-globe #today-tape ~ section {
  opacity: 0;
}

html.is-globe .hero h1,
html.is-globe .house-world-stage {
  position: relative;
  z-index: 20;
}

html.is-globe .hero h1 {
  z-index: 21;
}

html.is-globe .house-world-stage,
html.is-globe-fit .house-world-stage {
  min-width: 0;
}

html.is-globe .house-world-scroll,
html.is-globe-fit .house-world-scroll {
  overflow: visible;
}

html.is-globe .house-world-pin {
  pointer-events: none;
  animation: hub-in 0.7s ease var(--pin-d, 0s) both;
}

html.is-globe .house-world-pin .hub-dot {
  animation: hub-pulse 0.7s ease var(--pin-d, 0s) both;
}

@keyframes hub-in {
  0% { opacity: 0; }
  35% { opacity: 1; }
  100% { opacity: 1; }
}

@keyframes hub-pulse {
  0% { transform: scale(0.35); }
  55% { transform: scale(1.45); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  html.is-intro {
    overflow: auto;
  }

  .house-intro {
    display: none !important;
  }
}

/* Keep the map from stretching the phone. Do not cap .container-ag or
   .desk-content here — those stay at --ag-max (72rem) on a wide monitor. */
.house-grain,
.desk-shell,
.desk-main,
main {
  min-width: 0;
}

.container-ag,
.desk-content {
  min-width: 0;
}

#indices .index-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: visible;
}

#indices .index-card {
  min-width: 0;
}

.amount-step {
  display: flex;
  align-items: stretch;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.amount-step input {
  flex: 1;
  min-width: 0;
  background: var(--ag-secondary);
  color: var(--ag-fg);
  caret-color: var(--ag-fg);
  border: 0;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font: inherit;
  font-variant-numeric: tabular-nums;
  pointer-events: auto;
  user-select: text;
}

.amount-step input[readonly] {
  cursor: default;
  pointer-events: none;
  user-select: none;
}

.amount-step button {
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 2.75rem;
  border: 0;
  border-radius: 0.5rem;
  background: var(--ag-secondary);
  color: var(--ag-fg);
  font-size: 1.2rem;
  line-height: 1;
}

.amount-step button:hover {
  background: color-mix(in oklab, var(--ag-fg) 10%, var(--ag-secondary));
}

.help-icon {
  position: relative;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  border: 1px solid var(--ag-border);
  background: transparent;
  color: var(--ag-muted);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  padding: 0;
}

.help-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2.75rem;
  height: 2.75rem;
  transform: translate(-50%, -50%);
}

.help-icon:hover,
.help-icon[aria-expanded="true"] {
  color: var(--ag-fg);
  border-color: var(--ag-fg);
}

.model-help {
  background: var(--ag-secondary);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  margin-bottom: 0.9rem;
}

.model-help p {
  font-size: 0.8rem;
  margin: 0 0 0.65rem;
}

.model-help p:last-child {
  margin-bottom: 0;
}

#book-taste,
#book-taste li,
#book-taste a,
.hl-list,
.hl-row,
.hl-meta,
.hl-tape,
.rank-name,
.stock-row,
.card-ag,
.house-tape {
  min-width: 0;
  max-width: 100%;
}

.house-lead {
  min-width: 0;
}

.stock-row > .d-flex {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 767.98px) {
  .idea-card,
  .idea-card .idea-row,
  .idea-card .idea-row > .d-flex {
    min-width: 0;
    max-width: 100%;
  }

  .idea-card {
    overflow: hidden;
  }

  .idea-card .idea-row > .d-flex {
    flex-wrap: wrap;
    align-items: flex-start;
    row-gap: 0.4rem;
  }

  .idea-card .idea-row > .d-flex > .flex-grow-1 {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .idea-card .idea-spark {
    flex: 0 0 auto;
    width: 4.75rem;
    max-width: 28%;
  }

  .idea-card .idea-spark .spark {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .idea-card .idea-price {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
  }

  .desk-shell,
  .desk-main,
  .desk-content,
  #page-root {
    overflow-x: clip;
    max-width: 100%;
  }
}

@media (max-width: 575.98px) {
  #book-taste a,
  .stock-row,
  .hl-headline,
  .hl-kicker {
    overflow-wrap: anywhere;
  }
}

#indices .index-card p {
  overflow-wrap: anywhere;
}

@media (min-width: 576px) and (max-width: 991.98px) {
  #indices .index-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  #indices .index-strip {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .hero h1 {
    font-size: 1.85rem;
  }

  .house-tape h2 {
    font-size: 1.35rem;
  }

  .house-header,
  .desk-topbar {
    height: auto;
    min-height: 3.5rem;
  }
}

@media (max-width: 420px) {
  .rank-row,
  .rank-row.has-z {
    grid-template-columns: 1.5rem minmax(0, 1fr);
    align-items: start;
  }

  .rank-row .rank-bar,
  .rank-row .rank-score,
  .rank-row > .badge-ag {
    grid-column: 2;
  }

  .rank-score {
    text-align: left;
  }

  .rank-title,
  .rank-sub {
    white-space: normal;
  }
}

@media (max-width: 991.98px) {
  .table-responsive,
  .reg-page,
  .card-ag,
  .stock-row,
  .modal-ag .modal-dialog {
    max-width: 100%;
  }
}

.table-responsive {
  -webkit-overflow-scrolling: touch;
}

/* Dense tables: edge fade + swipe cue (phone only), same idea as the house map. */
.ag-hscroll {
  position: relative;
  max-width: 100%;
  min-width: 0;
}

.ag-hscroll-scroller {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  min-width: 0;
  scrollbar-width: thin;
}

.ag-hscroll::before,
.ag-hscroll::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1.5rem;
  pointer-events: none;
  opacity: 0;
  z-index: 2;
  transition: opacity 0.2s ease;
}

.ag-hscroll::before {
  left: 0;
  background: linear-gradient(to right, var(--ag-card), transparent);
}

.ag-hscroll::after {
  right: 0;
  background: linear-gradient(to left, var(--ag-card), transparent);
}

.ag-hscroll.is-overflow::after {
  opacity: 1;
}

.ag-hscroll.is-overflow.is-scrolled::before {
  opacity: 1;
}

.ag-hscroll.is-overflow.is-end::after {
  opacity: 0;
}

.ag-hscroll-cue {
  position: absolute;
  right: 0.55rem;
  bottom: 0.45rem;
  z-index: 3;
  margin: 0;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--ag-card) 92%, transparent);
  border: 1px solid color-mix(in oklab, var(--ag-border) 85%, transparent);
  color: var(--ag-fg);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  pointer-events: none;
  animation: ag-hscroll-cue-pulse 1.6s ease-in-out infinite;
}

.ag-hscroll-cue[hidden] {
  display: none;
}

@keyframes ag-hscroll-cue-pulse {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.85;
  }
  50% {
    transform: translateX(4px);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ag-hscroll-cue {
    animation: none;
  }
}

@media (min-width: 768px) {
  .ag-hscroll::before,
  .ag-hscroll::after,
  .ag-hscroll-cue {
    display: none;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .desk-bottom a {
    min-height: 2.7rem;
    padding-block: 0.2rem;
  }

  .desk-main {
    padding-bottom: 3.1rem;
  }

  .testing-banner-inner {
    flex-direction: row;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.4rem 0;
  }
}

/* Products page (data-page="products") */
body[data-page="products"] .path-hero {
  padding-block: 3rem 1.5rem;
  text-align: center;
}

body[data-page="products"] .path-hero h1 {
  margin-top: 0;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

@media (min-width: 1280px) {
  body[data-page="products"] .path-hero h1 {
    font-size: 2.25rem;
  }
}

body[data-page="products"] .path-sub {
  margin: 0.75rem auto 0;
  max-width: 40rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ag-fg);
}

body[data-page="products"] .path-lead,
body[data-page="products"] .path-lead-2 {
  max-width: 40rem;
  margin: 0.75rem auto 0;
  font-size: 1rem;
  line-height: 1.55;
}

body[data-page="products"] .path-lead-2 {
  margin-bottom: 1.5rem;
}

.path-video {
  scroll-margin-top: 5rem;
  padding-bottom: 2.5rem;
  text-align: center;
}

.path-video h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.path-video p {
  max-width: 36rem;
  margin: 0.5rem auto 1rem;
}

.path-video-frame {
  position: relative;
  max-width: 48rem;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--ag-radius);
  background: var(--ag-card);
}

.path-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.path-switch {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.35rem;
  border: 1px solid var(--ag-border);
  border-radius: var(--ag-radius);
  background: var(--ag-card);
}

.path-switch button {
  min-height: 2.75rem;
  border: 0;
  background: transparent;
  color: var(--ag-muted);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: calc(var(--ag-radius) - 0.15rem);
  padding: 0.65rem 1.1rem;
  cursor: pointer;
}

.path-switch button:focus-visible {
  outline: 2px solid var(--ag-focus);
  outline-offset: 2px;
}

.path-switch button.is-on[data-way="MODEL"],
.path-switch button.is-on[data-way="RESEARCH"] {
  background: var(--ag-primary);
  color: var(--ag-primary-fg);
}

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

.path-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--ag-radius);
  padding: 1.5rem;
  border: 1px solid var(--ag-border);
}

@media (min-width: 768px) {
  .path-banner {
    padding: 2rem 2.25rem;
  }
}

.path-banner h2 {
  margin: 0.85rem 0 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  max-width: 22ch;
}

@media (min-width: 1280px) {
  .path-banner h2 {
    font-size: 1.75rem;
  }
}

.path-banner > p {
  margin: 1rem 0 0;
  max-width: 40rem;
  font-size: 1rem;
  line-height: 1.6;
}

.path-banner.is-guided {
  color: var(--ag-fg);
  background:
    radial-gradient(120% 80% at 100% 0%, color-mix(in oklab, var(--ag-primary) 18%, transparent), transparent 55%),
    linear-gradient(160deg, color-mix(in oklab, var(--ag-primary) 8%, var(--ag-card)), var(--ag-bg) 70%);
  border-color: color-mix(in oklab, var(--ag-primary) 28%, var(--ag-border));
}

.path-banner.is-active {
  color: var(--ag-primary-fg);
  background:
    radial-gradient(90% 80% at 100% 0%, color-mix(in oklab, var(--ag-primary) 45%, transparent), transparent 50%),
    linear-gradient(165deg, var(--ag-primary), color-mix(in oklab, var(--ag-primary) 45%, #0b0c0e) 72%);
  border-color: color-mix(in oklab, var(--ag-primary) 40%, transparent);
}

.path-banner.is-active h2,
.path-banner.is-active > p {
  color: var(--ag-primary-fg);
}

.path-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.path-banner.is-guided .path-pill {
  color: var(--ag-primary);
  background: var(--ag-card);
  border: 1px solid color-mix(in oklab, var(--ag-primary) 30%, var(--ag-border));
}

.path-banner.is-active .path-pill {
  color: var(--ag-primary-fg);
  background: color-mix(in oklab, white 18%, transparent);
  border: 1px solid color-mix(in oklab, white 35%, transparent);
}

.path-banner .path-enter {
  margin-top: 1.35rem;
}

.path-banner.is-active .path-enter {
  background: var(--ag-card);
  color: var(--ag-primary);
}

.path-banner.is-active .path-enter:hover {
  background: color-mix(in oklab, var(--ag-card) 92%, var(--ag-primary));
  color: var(--ag-primary);
}

.path-band {
  background: color-mix(in oklab, var(--ag-card) 72%, transparent);
  border-top: 1px solid var(--ag-border);
  border-bottom: 1px solid var(--ag-border);
}

.path-intro {
  max-width: 40rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.path-intro h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.path-intro p {
  margin: 0.75rem 0 0;
  color: var(--ag-muted);
  font-size: 1rem;
}

.path-compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
}

@media (min-width: 800px) {
  .path-compare {
    grid-template-columns: 1fr 1fr;
  }
}

.path-old,
.path-new {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 100%;
  border-radius: var(--ag-radius);
  padding: 1.35rem 1.25rem;
}

.path-old {
  background: color-mix(in oklab, var(--ag-down) 7%, var(--ag-card));
  border: 1px solid color-mix(in oklab, var(--ag-down) 22%, var(--ag-border));
}

.path-new {
  background: color-mix(in oklab, var(--ag-up) 8%, var(--ag-card));
  border: 1px solid color-mix(in oklab, var(--ag-up) 28%, var(--ag-border));
}

.path-card-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.path-card-head h3 {
  margin: 0;
  font-size: 1.125rem;
}

.path-old .path-card-head h3 {
  color: var(--ag-down);
}

.path-new .path-card-head h3 {
  color: var(--ag-up);
}

.path-card-head p {
  margin: 0.1rem 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ag-muted);
}

.path-mark {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: calc(var(--ag-radius) - 0.1rem);
  font-size: 1.15rem;
  font-weight: 800;
  flex: 0 0 auto;
}

.path-mark.is-warn {
  color: var(--ag-down);
  background: color-mix(in oklab, var(--ag-down) 14%, var(--ag-card));
}

.path-mark.is-grow {
  color: var(--ag-primary-fg);
  background: var(--ag-primary);
}

.path-points {
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
}

.path-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0 0 0.85rem;
  font-size: 1rem;
  line-height: 1.5;
}

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

.path-x,
.path-ok {
  flex: 0 0 auto;
  font-weight: 800;
  line-height: 1.45;
}

.path-x {
  color: var(--ag-down);
}

.path-ok {
  color: var(--ag-up);
}

.path-result {
  margin: 0;
  border-radius: calc(var(--ag-radius) - 0.15rem);
  padding: 0.85rem 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.45;
  background: var(--ag-card);
  border: 1px solid var(--ag-border);
}

.path-result.is-warn {
  color: var(--ag-down);
  border-color: color-mix(in oklab, var(--ag-down) 25%, var(--ag-border));
}

.path-result.is-grow {
  color: var(--ag-up);
  border-color: color-mix(in oklab, var(--ag-up) 30%, var(--ag-border));
}

.path-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 700px) {
  .path-grid {
    grid-template-columns: 1fr 1fr;
  }

  .path-grid:not(.path-grid-pro) {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (min-width: 1020px) {
  .path-grid-pro {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.path-tile {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: var(--ag-radius);
  padding: 1.25rem 1.2rem 1.1rem;
  background: var(--ag-card);
  border: 1px solid var(--ag-border);
}

.path-tile h3 {
  margin: 0;
  font-size: 1.125rem;
}

.path-tile > p {
  margin: 0.45rem 0 0;
  color: var(--ag-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.path-for {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--ag-border);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ag-primary);
}

body[data-page="products"] .path-plan {
  max-width: 32rem;
}

body[data-page="products"] .path-price {
  font-variant-numeric: tabular-nums;
  font-size: 1.125rem;
  font-weight: 700;
}

body[data-page="products"] #plan .btn-ag,
body[data-page="products"] .path-banner .path-enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
}

@media (max-width: 767.98px) {
  body[data-page="products"] #plan .btn-ag,
  body[data-page="products"] .path-banner .path-enter {
    width: 100%;
  }
}

.mine-balance {
  display: block;
  margin-top: 0.85rem;
  padding: 0.8rem 0.95rem;
  border-radius: 0.9rem;
  font-size: 0.92rem;
  line-height: 1.4;
}

.mine-balance.is-ok {
  color: var(--ag-up);
  background: color-mix(in oklab, var(--ag-up) 12%, var(--ag-card));
  border: 1px solid color-mix(in oklab, var(--ag-up) 35%, var(--ag-border));
}

.mine-balance.is-off,
.mine-balance.is-open {
  text-decoration: none;
}

.mine-balance.is-off {
  color: var(--ag-hold);
  background: color-mix(in oklab, var(--ag-hold) 16%, var(--ag-card));
  border: 1px solid color-mix(in oklab, var(--ag-hold) 42%, var(--ag-border));
}

.mine-balance.is-open {
  color: var(--ag-fg);
  background: var(--ag-card);
  border: 1px solid var(--ag-border);
}

html[data-theme="dark"] .mine-balance.is-ok {
  color: var(--ag-up);
}

html[data-theme="dark"] .mine-balance.is-off {
  color: var(--ag-hold);
}

.mine-ticker {
  font-weight: 650;
  letter-spacing: 0.01em;
}

.mine-act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 15rem;
  height: 2.75rem;
  padding: 0 0.65rem;
  border: 0;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.15;
  white-space: normal;
  text-align: center;
  color: var(--ag-primary-fg);
  cursor: pointer;
}

.mine-act.is-buy {
  background: var(--ag-primary);
}

.mine-act.is-sell {
  background: var(--ag-down);
}

.mine-act:hover {
  filter: brightness(0.92);
}

.mine-act:disabled,
.mine-act.is-busy {
  opacity: 0.72;
  cursor: wait;
  pointer-events: none;
}

body.has-app-nav .house-nav-guest,
body.has-app-nav .house-top-extra,
body.has-app-nav .house-nav-app {
  display: none !important;
}

body.has-app-nav > .app-side {
  position: fixed;
  z-index: 35;
  top: 0;
  bottom: 0;
  left: 0;
}

html.ag-testing body.has-app-nav > .app-side {
  top: var(--ag-testing-h);
}

body.has-app-nav > .app-side .desk-sidebar-stick,
html.ag-testing body.has-app-nav > .app-side .desk-sidebar-stick {
  top: 0;
  height: 100%;
  max-height: 100%;
}

@media (max-width: 1023.98px) {
  body.has-app-nav {
    padding-bottom: calc(3.25rem + env(safe-area-inset-bottom));
  }
}

@media (max-height: 500px) and (max-width: 1023.98px) {
  body.has-app-nav {
    padding-bottom: calc(2.75rem + env(safe-area-inset-bottom));
  }
}

@media (min-width: 1024px) {
  body.has-app-nav {
    padding-left: var(--ag-rail, 15rem);
  }

  body.has-app-nav .house-header a.d-none.d-sm-block {
    display: none !important;
  }
}



.mine-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  margin-top: 0;
}

.mine-name {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.mine-asof,
.mine-sub,
.mine-caption,
.mine-note,
.mine-work-lead {
  margin: 0.35rem 0 0;
  color: var(--ag-muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.mine-kicker {
  margin: 0;
  color: var(--ag-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mine-strips {
  margin-top: 1.25rem;
}

.mine-strip {
  display: grid;
  gap: 1rem;
  padding: 1rem 0 1.15rem;
  border-bottom: 1px solid var(--ag-border);
}

.mine-value {
  margin: 0.15rem 0 0;
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  white-space: nowrap;
}

.mine-strip-main {
  min-width: 0;
  max-width: 100%;
}

.mine-sub {
  max-width: 100%;
}

.mine-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  margin: 0;
}

.mine-facts dt {
  color: var(--ag-muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.mine-facts dd {
  margin: 0.1rem 0 0;
  font-size: 1rem;
  font-weight: 650;
}

.mine-fact-note {
  display: block;
  margin-top: 0.1rem;
  color: var(--ag-muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.mine-cash {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.mine-ledger {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
}

.mine-strip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mine-curves {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.mine-curve {
  padding: 1rem 1rem 0.85rem;
}

.mine-curve-top,
.mine-curve-controls,
.mine-legend,
.mine-hold-head,
.mine-work-actions,
.mine-compare-open {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: flex-start;
  justify-content: space-between;
}

.mine-curve-lead {
  min-width: 0;
  flex: 1 1 18rem;
}

.mine-range {
  max-width: 100%;
}

.mine-curve-controls {
  align-items: center;
  justify-content: flex-end;
}

.mine-curve-controls select {
  width: auto;
  background: var(--ag-secondary);
  color: var(--ag-fg);
  border: 0;
}

.mine-legend {
  justify-content: flex-start;
  margin-top: 0.35rem;
  font-size: 0.875rem;
}

.mine-key {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.mine-key i {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 99px;
}

.mine-caption {
  max-width: 46rem;
}

.mine-view-data {
  margin-top: 0.35rem;
}

.mine-data {
  margin-top: 0.75rem;
}

.mine-work {
  margin-top: 1.5rem;
  padding-top: 0.25rem;
}

.mine-work h2,
.mine-hold-head h2,
.mine-section {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mine-work.is-off h2 {
  color: var(--ag-hold);
}

.mine-work-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1rem;
}

.mine-work-actions,
.mine-hold-head,
.mine-compare-open {
  align-items: center;
  margin-top: 1rem;
}

.mine-hold {
  margin-top: 0.75rem;
}

.mine-note {
  max-width: 46rem;
  margin-top: 0.85rem;
}

.mine-foot {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ag-border);
}

.mine-balance {
  margin-top: 1.25rem;
}

@media (min-width: 700px) {
  .mine-facts {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .mine-strip {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    column-gap: 1.5rem;
  }

  .mine-strip-main {
    grid-column: 1;
    grid-row: 1;
  }

  .mine-strip-actions {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
  }

  .mine-facts {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 0.85rem;
  }

  .mine-name {
    font-size: 1.75rem;
  }
}

@media (max-width: 767.98px) {
  .mine-act {
    width: 100%;
    max-width: 100%;
  }

  .mine-work-actions .btn-ag,
  .mine-work-actions .btn-ag-outline,
  .mine-strip-actions .btn-ag-outline {
    width: 100%;
  }
}

.testing-inline {
  font-size: 0.8125rem;
  color: var(--ag-hold);
}

.ag-busy-host {
  position: relative;
  display: inline-block;
  max-width: 100%;
  vertical-align: middle;
}

.mine-actions > .ag-busy-host {
  display: block;
  grid-column: 1 / -1;
}

.mine-actions > .ag-busy-host > select {
  width: 100%;
}

.btn-spinner.ag-busy-float {
  position: absolute;
  z-index: 2;
  top: calc(50% - 0.45rem);
  right: 0.7rem;
  pointer-events: none;
}

.mine-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.mine-actions select {
  grid-column: 1 / -1;
  width: 100%;
}

.mine-stack {
  display: grid;
  gap: 0.75rem;
}

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

.mine-curve svg text {
  font-family: var(--ag-sans);
}

.mine-curve .seg[hidden] {
  display: none;
}

.mine-industry .mine-section {
  margin-bottom: 0.85rem;
}

.mine-ind-book + .mine-ind-book {
  margin-top: 1.25rem;
}

.mine-ind-body {
  display: grid;
  gap: 1rem;
  align-items: center;
}

.mine-donut-wrap {
  position: relative;
  width: 9.5rem;
  height: 9.5rem;
  margin: 0 auto;
}

.mine-donut {
  display: block;
  width: 100%;
  height: 100%;
}

.mine-donut-slice.is-hot {
  stroke-width: 20;
}

.mine-donut-tip {
  position: fixed;
  z-index: 20;
  width: max-content;
  max-width: none;
  white-space: nowrap;
}

.mine-ind-row.is-hot {
  border-radius: 0.25rem;
  box-shadow: inset 0 0 0 999px color-mix(in oklab, var(--ag-fg) 7%, transparent);
}

.mine-ind-row {
  display: grid;
  grid-template-columns: 0.7rem minmax(0, 1fr) 3.2rem;
  gap: 0.4rem 0.65rem;
  align-items: center;
  margin-bottom: 0.4rem;
  font-size: 0.8125rem;
}

.mine-ind-row i {
  display: block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 99px;
}

.mine-ind-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mine-ind-pct {
  white-space: nowrap;
  text-align: right;
}

@media (min-width: 700px) {
  .mine-ind-body {
    grid-template-columns: 9.5rem minmax(0, 1fr);
  }

  .mine-donut-wrap {
    margin: 0;
  }
}

.mine-movers {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.mine-mover {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--ag-border);
  font-size: 0.9rem;
}

.mine-cash-form {
  display: grid;
  gap: 0.5rem;
}

.mine-flows {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.mine-flows li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0;
  border-top: 1px solid var(--ag-border);
  font-size: 0.8rem;
}

.mine-flows li span:first-child {
  min-width: 0;
}

@media (min-width: 576px) {
  .mine-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .mine-actions select {
    width: auto;
    grid-column: auto;
  }

  .mine-movers,
  .mine-cash-form {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .mine-cash-form {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto auto;
  }
}

@media (min-width: 768px) {
  .mine-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .mine-stack {
    grid-template-columns: 1fr 1fr;
  }

  .mine-foot.is-split {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .mine-work-grid.is-split {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

@media (min-width: 1280px) {
  body[data-page="mine"] .desk-content {
    max-width: min(90rem, calc(100% - 3rem));
  }
}


@media (max-width: 767.98px) {
  #geo-regions.seg {
    width: 100%;
    max-width: 100%;
  }

  .geo-compare .d-flex {
    flex-direction: column;
    align-items: stretch;
  }

  .geo-compare .geo-select,
  .geo-compare .btn-ag {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .geo-compare .geo-swap {
    align-self: center;
  }

  .geo-sort-hint {
    display: none;
  }

  .table-responsive:has(.mine-table) {
    overflow: visible;
  }

  .mine-table thead {
    display: none;
  }

  .mine-table,
  .mine-table tbody,
  .mine-table tr,
  .mine-table td {
    display: block;
    width: 100%;
  }

  .mine-table tr {
    margin-bottom: 0.7rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--ag-border);
    border-radius: 12px;
    background: var(--ag-card);
  }

  .mine-table td {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.18rem 0;
    border: 0;
    text-align: right;
  }

  .mine-table td:first-child {
    display: block;
    padding-bottom: 0.35rem;
    text-align: left;
  }

  .mine-table td::before {
    content: attr(data-label);
    color: var(--ag-muted);
    font-size: 0.72rem;
    text-align: left;
  }

  .mine-table td:first-child::before,
  .mine-table td[data-label=""]::before {
    content: none;
  }

  .mine-table td[data-label=""] {
    justify-content: flex-end;
    padding-top: 0.45rem;
  }
}






button.is-busy > .btn-spinner {
  margin-left: 0.45rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.ag-asof {
  font-size: 0.8125rem;
  color: var(--ag-muted);
  margin: 0.35rem 0 0;
}

.ag-stale {
  color: var(--ag-notice);
  font-weight: 650;
}

.ag-disclose {
  font-size: 0.75rem;
  color: var(--ag-muted);
  margin: 0.75rem 0 0;
  max-width: 40rem;
}

.stock-px {
  font-size: 1.75rem;
  font-weight: 500;
}

.measure {
  max-width: 40rem;
}

body[data-page="stock"] .font-display,
body[data-page="stock"] .stock-name-hero,
body[data-page="stock"] .stock-thesis-head,
body[data-page="stock"] .stock-section-display {
  font-family: var(--ag-display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.stock-page {
  position: relative;
  padding-bottom: 1rem;
}

.stock-name-hero {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.12;
  margin: 0;
}

.stock-identity {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stock-identity-quote {
  text-align: left;
}

@media (min-width: 768px) {
  .stock-identity {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .stock-identity-quote {
    text-align: right;
    flex: 0 0 auto;
    min-width: 9rem;
  }
}

.stock-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  overflow-x: hidden;
  margin: 0.85rem 0 0.25rem;
  padding-bottom: 0;
}

.stock-jump-link {
  flex: 1 1 auto;
  justify-content: center;
  font-size: 0.75rem;
  line-height: 1;
  padding: 0.55rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--ag-border);
  background: var(--ag-card);
  color: var(--ag-fg);
  text-decoration: none;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

.stock-jump-link:hover,
.stock-jump-link:focus-visible {
  border-color: var(--ag-primary);
  outline: none;
}

@media (min-width: 1280px) {
  .stock-jump {
    display: none;
  }
}

.stock-sticky-quote {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding: 0.55rem 0.75rem;
  margin: 0 -0.25rem 0.5rem;
  background: color-mix(in oklab, var(--ag-card) 92%, transparent);
  border: 1px solid var(--ag-border);
  border-radius: var(--ag-radius);
  backdrop-filter: blur(8px);
}

.stock-sticky-quote[hidden] {
  display: none !important;
}

.stock-sticky-sym {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stock-sticky-px {
  font-weight: 600;
}

@media (min-width: 1280px) {
  .stock-sticky-quote {
    display: none !important;
  }
}

.stock-desk {
  display: flex;
  flex-direction: column;
}

.stock-area-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 768px) {
  .stock-area-pair {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    align-items: stretch;
  }
}

.stock-chart-z .ag-region-skel {
  margin-top: 0.5rem;
}

.stock-chart-plot {
  position: relative;
  height: 12.5rem;
  cursor: crosshair;
}

#geo-rel-plot,
#stock-chart-plot {
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

#geo-rel-plot:active,
#stock-chart-plot:active {
  cursor: grabbing;
}

#geo-rel-plot text,
#stock-chart-plot text {
  pointer-events: none;
}

.stock-chart-plot .stock-price-svg {
  width: 100%;
  height: 100%;
  max-height: none;
}

@media (min-width: 1280px) {
  .stock-chart-plot {
    height: 24rem;
  }
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
}

.chart-legend i {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 99px;
  margin-right: 0.35rem;
  vertical-align: -0.05rem;
}

.chart-data {
  max-height: 16rem;
  overflow: auto;
  margin-top: 0.75rem;
}

.ag-card-fail {
  border: 1px solid color-mix(in oklab, var(--ag-down) 50%, var(--ag-border));
}

.th-sort {
  appearance: none;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  padding: 0;
  min-height: 2.75rem;
  cursor: pointer;
}

.table-ag th.num,
.table-ag td.num {
  text-align: right;
}

.screener-sort {
  display: none;
}

.sector-sort {
  display: flex;
  margin-left: auto;
}

.screener-sort-chip {
  min-height: 2.75rem;
}

.screener-sort-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgb(0 0 0 / 0.35);
}

.screener-sort-backdrop[hidden],
.screener-sort-sheet[hidden] {
  display: none !important;
}

.screener-sort-sheet {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  max-height: min(85dvh, 40rem);
  overflow: hidden;
  background: var(--ag-card);
  color: var(--ag-fg);
  border-radius: 0.75rem 0.75rem 0 0;
  box-shadow: var(--ag-shadow);
}

.screener-sort-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.75rem;
  padding: 0.35rem 0.5rem 0.35rem 1rem;
  background: var(--ag-card);
  border-bottom: 1px solid var(--ag-border);
}

.screener-sort-head .icon-btn {
  margin-left: 0;
  font-size: 1.35rem;
  line-height: 1;
}

.screener-sort-body {
  overflow: auto;
  padding: 0.25rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
}

.screener-sort-mark {
  min-width: 1rem;
  text-align: right;
}

.screener-sort-sheet .more-row.is-on {
  font-weight: 650;
}

@media (max-width: 767.98px) {
  .screener-sort {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.75rem;
  }
}


.mine-undo {
  margin-top: 0.75rem;
  font-size: 0.875rem;
}

.form-control,
.form-select {
  min-height: 2.75rem;
}

textarea.form-control {
  min-height: 6.5rem;
}

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

.modal-ag .form-control:focus,
.modal-ag .form-control:focus-visible {
  outline: 2px solid var(--ag-focus);
  outline-offset: 2px;
}
