: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: #9a9b93;
  --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: "IBM Plex 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);
}

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);
}

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

h1,
h2,
h3 {
  text-wrap: balance;
  font-weight: 400;
}

.font-display {
  font-family: var(--ag-display);
  font-style: italic;
}

.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.5rem;
  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);
}

.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-ghost:disabled,
.btn-ag.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);
  }
}

.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: transparent;
  color: var(--ag-muted);
  box-shadow: inset 0 0 0 1px var(--ag-border);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.model-book-mark-in {
  color: color-mix(in oklab, var(--ag-primary) 70%, var(--ag-fg));
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ag-primary) 35%, var(--ag-border));
}

.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,
.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: color-mix(in oklab, var(--ag-bg) 95%, transparent);
  backdrop-filter: blur(8px);
}

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

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

.mark-sm {
  height: 2rem;
  width: auto;
}

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

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

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

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

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

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

@media (max-width: 575.98px) {
  .house-header .container-ag {
    gap: 0.5rem;
  }
  .house-nav a {
    padding: 0 0.5rem;
  }
  .house-nav a.btn-ag {
    padding: 0 0.75rem;
  }
}

.house-grain {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.house-grain::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../texture-graphite.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
}

.house-grain::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 40%;
  background: linear-gradient(to bottom, transparent, var(--ag-bg));
  pointer-events: none;
  z-index: 0;
}

.house-grain > * {
  position: relative;
  z-index: 1;
}

.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;
  gap: 1.75rem;
}

@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 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-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;
  padding-bottom: 0.25rem;
}

.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;
}

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

.desk-sidebar {
  position: sticky;
  top: 0;
  display: none;
  width: 15rem;
  height: 100dvh;
  flex-shrink: 0;
  flex-direction: column;
  padding: 1.25rem 1rem;
  border-right: 1px solid var(--ag-border);
}

@media (min-width: 992px) {
  .desk-sidebar {
    display: flex;
  }
}

.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-muted);
  line-height: 1.2;
}

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

.desk-nav a.active {
  background: color-mix(in oklab, var(--ag-primary) 15%, transparent);
  color: var(--ag-fg);
}

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

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

.desk-topbar {
  height: auto;
  padding: 0.75rem 1rem;
}

@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;
  grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid var(--ag-border);
  background: var(--ag-card);
  padding-bottom: env(safe-area-inset-bottom);
}

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

.desk-bottom a {
  display: flex;
  min-height: 3.75rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.35rem 0.15rem;
  font-size: 0.62rem;
  color: var(--ag-muted);
}

.desk-bottom a span {
  text-align: center;
  line-height: 1.15;
  max-width: 4.6rem;
}

.desk-bottom a.active {
  color: var(--ag-primary);
}

.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.25rem;
  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;
}

.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;
}

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

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

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

.search-status {
  padding: 0.9rem 1rem;
  font-size: 0.875rem;
  color: var(--ag-muted, #9aa3ad);
}

.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: 2rem;
  height: 2rem;
  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: linear-gradient(90deg, var(--ag-primary), #6fbf93);
  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;
}

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

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

.ag-load-skels span {
  display: block;
  height: 0.5rem;
  border-radius: 99px;
  background: linear-gradient(
    90deg,
    rgb(255 255 255 / 0.04) 0%,
    rgb(255 255 255 / 0.12) 50%,
    rgb(255 255 255 / 0.04) 100%
  );
  background-size: 200% 100%;
  animation: ag-shimmer 1.25s ease infinite;
}

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

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

.ag-load-skels 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 {
    animation: none;
  }

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

@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: color-mix(in oklab, var(--ag-card) 55%, transparent);
}

.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;
}

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

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

.reg-prose h2,
.reg-prose h3 {
  font-family: var(--ag-display);
  font-style: italic;
  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-wrap: wrap;
  gap: 0.5rem 0.85rem;
  font-size: 0.8rem;
}

.reg-admin-nav a {
  color: var(--ag-muted);
}

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

.reg-page .form-control,
.reg-page select.form-control,
.reg-page textarea.form-control {
  background: var(--ag-secondary);
  color: var(--ag-fg);
  border: 0;
}

.testing-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1080;
  background: #3a2a12;
  color: #f6e2b8;
  border-bottom: 1px solid #c9a45c;
  box-shadow: 0 10px 28px rgb(0 0 0 / 0.35);
}

.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.68rem;
  font-weight: 600;
  text-transform: uppercase;
  background: #e0b15a;
  color: #1a1408;
  padding: 0.18rem 0.5rem;
  border-radius: 0.25rem;
  line-height: 1.2;
}

.testing-banner-title {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f0d090;
}

.testing-banner-msg {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #f6e2b8;
  max-width: 52rem;
}

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-sidebar {
  top: var(--ag-testing-h);
  height: calc(100dvh - var(--ag-testing-h));
}

.reg-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--ag-muted);
}

.reg-check input {
  margin-top: 0.2rem;
}

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

.desk-sidebar .reg-side-link {
  font-size: 0.75rem;
  color: var(--ag-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.25rem;
}

.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%,
    #c9894a 28%,
    #8b8d86 50%,
    #6fbf93 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-leaders {
    display: none;
  }
}

.hl-tape {
  overflow: hidden;
  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 48s 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 {
  background: color-mix(in oklab, var(--ag-fg) 5%, var(--ag-card));
}

.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: 1px solid color-mix(in oklab, var(--ag-border) 85%, transparent);
  color: inherit;
  text-decoration: none;
}

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

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

.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;
  }
}

@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.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--ag-border);
  border-radius: 0.65rem;
  background: transparent;
  color: var(--ag-fg);
  text-decoration: none;
  flex: 0 0 auto;
}
.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-select {
  max-width: 16rem;
}

.house-world-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-inline: -0.25rem;
  padding-inline: 0.25rem;
}

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

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

@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 {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
}

.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);
}



