/* Google Finance–inspired theme (Material Design 3 tokens) */

:root {
  --gf-primary: #1a73e8;
  --gf-on-surface: #202124;
  --gf-on-surface-variant: #5f6368;
  --gf-surface: #ffffff;
  --gf-surface-container: #f8f9fa;
  --gf-surface-container-high: #f1f3f4;
  --gf-outline: #dadce0;
  --gf-outline-variant: #e8eaed;
  --gf-positive: #188038;
  --gf-negative: #d93025;
  --gf-positive-bg: #e6f4ea;
  --gf-negative-bg: #fce8e6;
  --gf-hover: #f1f3f4;
  --gf-pressed: #e8eaed;
  --gf-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
  --gf-radius: 8px;
  --gf-radius-full: 9999px;
  --gf-font: "Google Sans", "Roboto", system-ui, sans-serif;
  --gf-page-gutter: 16px;
  --gf-header-height: 56px;
  --gf-touch-min: 48px;
  --gf-safe-top: env(safe-area-inset-top, 0px);
  --gf-safe-bottom: env(safe-area-inset-bottom, 0px);
}

html {
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --gf-primary: #76adff;
  --gf-on-surface: #e8eef8;
  --gf-on-surface-variant: #9aabc1;
  --gf-surface: #07111f;
  --gf-surface-container: #0c1727;
  --gf-surface-container-high: #132035;
  --gf-outline: #2a3a52;
  --gf-outline-variant: #1f2e43;
  --gf-positive: #49d68b;
  --gf-negative: #ff7b87;
  --gf-positive-bg: #102c24;
  --gf-negative-bg: #331821;
  --gf-hover: #15243a;
  --gf-pressed: #1c2d45;
  --gf-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

@media (min-width: 640px) {
  :root {
    --gf-page-gutter: 20px;
  }
}

@media (min-width: 1024px) {
  :root {
    --gf-page-gutter: 28px;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--gf-font);
  color: var(--gf-on-surface);
  background: var(--gf-surface);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

.gf-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: var(--gf-page-gutter);
  padding-right: var(--gf-page-gutter);
  box-sizing: border-box;
}

.gf-main {
  padding-bottom: 48px;
}

.gf-header {
  border-bottom: 1px solid var(--gf-outline);
  background: var(--gf-surface);
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: var(--gf-safe-top);
}

.gf-header-inner {
  width: 100%;
  padding-top: 10px;
  padding-bottom: 10px;
}

.gf-header-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gf-header-nav {
  display: flex;
  gap: 1px;
  border-top: 1px solid var(--gf-outline-variant);
  overflow: visible;
}

.gf-header-nav::-webkit-scrollbar {
  display: none;
}

.gf-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  text-decoration: none;
  min-height: var(--gf-touch-min);
  align-items: center;
}

.gf-logo-brand {
  color: var(--gf-primary);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.4px;
}

.gf-logo-product {
  color: var(--gf-on-surface);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.4px;
}

.gf-header-search {
  position: relative;
  flex: 1;
  min-width: 0;
}

.gf-search-wrap {
  position: relative;
  width: 100%;
}

.gf-header-search--desktop {
  display: block;
}

.gf-header-search--mobile {
  display: none;
  margin-top: 8px;
}

.gf-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gf-on-surface-variant);
  font-size: 22px !important;
  pointer-events: none;
}

@media (min-width: 768px) {
  .gf-header-inner {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .gf-logo-brand,
  .gf-logo-product {
    font-size: 22px;
  }
}

.gf-search {
  background: var(--gf-surface-container-high);
  border: none;
  border-radius: var(--gf-radius-full);
  padding: 12px 16px 12px 46px;
  font-size: 16px;
  width: 100%;
  max-width: none;
  outline: none;
  font-family: inherit;
  color: var(--gf-on-surface);
  min-height: var(--gf-touch-min);
  -webkit-appearance: none;
  appearance: none;
}

.gf-search:focus {
  background: var(--gf-surface);
  box-shadow: var(--gf-shadow);
}

.gf-search-suggestions {
  position: fixed;
  z-index: 70;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: var(--gf-surface);
  border: 1px solid var(--gf-outline);
  border-radius: var(--gf-radius);
  box-shadow: var(--gf-shadow);
  max-height: min(360px, calc(100vh - 120px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.gf-search-suggestions[hidden] {
  display: none !important;
}

.gf-search-suggestion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.gf-search-suggestion:hover,
.gf-search-suggestion.is-active {
  background: var(--gf-hover);
}

.gf-search-suggestion-main {
  min-width: 0;
  flex: 1;
}

.gf-search-suggestion-symbol {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--gf-on-surface);
}

.gf-search-suggestion-name {
  display: block;
  font-size: 12px;
  color: var(--gf-on-surface-variant);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gf-search-suggestion-kind {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gf-on-surface-variant);
  padding: 2px 6px;
  border-radius: var(--gf-radius-full);
  background: var(--gf-surface-container-high);
}

.gf-search-suggestion mark {
  background: transparent;
  color: var(--gf-primary);
  font-weight: 600;
}

.gf-nav-tab {
  color: var(--gf-on-surface-variant);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 16px;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  display: inline-block;
}

.gf-nav-tab.active {
  color: var(--gf-primary);
  border-bottom-color: var(--gf-primary);
}

.gf-market-nav-row {
  display: none;
}

.gf-theme-toggle {
  display: inline-flex;
  min-width: var(--gf-touch-min);
  min-height: var(--gf-touch-min);
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--gf-outline);
  border-radius: var(--gf-radius-full);
  background: var(--gf-surface-container);
  color: var(--gf-on-surface);
  padding: 0 14px;
  font: 500 13px/1 var(--gf-font);
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.gf-theme-toggle:hover { background: var(--gf-hover); }
.gf-theme-toggle:focus-visible { outline: 3px solid color-mix(in srgb, var(--gf-primary), transparent 65%); outline-offset: 2px; }
.gf-theme-toggle-icon::before { content: "☾"; display: block; font-size: 19px; line-height: 1; }
html[data-theme="dark"] .gf-theme-toggle-icon::before { content: "☀"; }

@media (max-width: 639px) {
  .gf-theme-toggle { padding: 0; }
  .gf-theme-toggle-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
}

.gf-market-sources-nav {
  display: flex;
  min-width: 0;
  flex: 1;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
}

.gf-market-sources-nav::-webkit-scrollbar {
  display: none;
}

.gf-market-source-tab {
  flex: 0 0 auto;
  color: var(--gf-on-surface-variant);
  font-size: 13px;
  font-weight: 500;
  padding: 12px 14px;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  scroll-snap-align: nearest;
}

.gf-market-source-tab.active {
  color: var(--gf-primary);
  border-bottom-color: var(--gf-primary);
}

.gf-nav-dropdown {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
}

.gf-nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  background: transparent;
  font: inherit;
  border: none;
  border-bottom: 2px solid transparent;
  margin: 0;
}

.gf-nav-dropdown-trigger .gf-nav-dropdown-chevron {
  font-size: 18px;
  line-height: 1;
  transition: transform 0.15s ease;
}

.gf-nav-dropdown.is-open .gf-nav-dropdown-trigger {
  color: var(--gf-primary);
  border-bottom-color: var(--gf-primary);
}

.gf-nav-dropdown.is-open .gf-nav-dropdown-chevron {
  transform: rotate(180deg);
}

.gf-nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  z-index: 200;
  min-width: 200px;
  max-height: min(360px, 70vh);
  overflow-y: auto;
  background: var(--gf-surface);
  border: 1px solid var(--gf-outline);
  border-radius: var(--gf-radius);
  box-shadow: var(--gf-shadow);
  padding: 6px 0;
}

.gf-nav-dropdown-menu[hidden] {
  display: none !important;
}

.gf-nav-dropdown.is-open .gf-nav-dropdown-menu {
  display: block;
}

.gf-nav-dropdown-item {
  display: block;
  padding: 10px 16px;
  color: var(--gf-on-surface);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
}

.gf-nav-dropdown-item:hover,
.gf-nav-dropdown-item:focus-visible {
  background: var(--gf-hover);
  outline: none;
}

.gf-analysis-board-heading {
  font-size: 16px;
  font-weight: 500;
  color: var(--gf-on-surface);
  margin: 0 0 12px;
}

.gf-analysis-board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 640px) {
  .gf-analysis-board-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
}

.gf-analysis-board-card {
  border: 1px solid var(--gf-outline-variant);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--gf-surface);
}

.gf-analysis-board-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.gf-analysis-board-name {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--gf-on-surface);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gf-analysis-board-signal .material-symbols-outlined {
  font-size: 18px !important;
  color: inherit;
}

.gf-analysis-board-price {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.2px;
  color: var(--gf-on-surface);
}

.gf-analysis-board-change {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 500;
}

.gf-analysis-board-pct {
  margin-left: 4px;
}

.gf-index-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 0 12px;
  margin-left: calc(-1 * var(--gf-page-gutter));
  margin-right: calc(-1 * var(--gf-page-gutter));
  padding-left: var(--gf-page-gutter);
  padding-right: var(--gf-page-gutter);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gf-page-gutter);
}

.gf-index-scroll::before,
.gf-index-scroll::after {
  content: "";
  flex: 1 0 0;
}

@media (min-width: 1024px) {
  .gf-index-scroll::before,
  .gf-index-scroll::after {
    content: none;
  }
}

.gf-index-scroll::-webkit-scrollbar {
  height: 6px;
}

.gf-index-scroll::-webkit-scrollbar-thumb {
  background: var(--gf-outline);
  border-radius: 3px;
}

.gf-index-card {
  --promo-accent: var(--gf-primary);
  --gf-index-logo-size: 32px;
  flex: 0 0 min(88vw, 320px);
  min-width: min(88vw, 300px);
  max-width: 320px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  cursor: pointer;
  scroll-snap-align: center;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  flex-direction: column;
}

.gf-index-card--sponsored {
  padding: 0;
  border-color: var(--gf-outline-variant);
  background: var(--gf-surface);
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08);
  min-height: 0;
}

@media (min-width: 640px) {
  .gf-index-card {
    flex-basis: 300px;
    min-width: 300px;
    padding: 12px 16px;
  }

  .gf-index-card--sponsored {
    padding: 0;
    --gf-index-logo-size: 36px;
  }
}

@media (max-width: 767px) {
  .gf-index-scroll::before,
  .gf-index-scroll::after {
    content: none;
    flex: 0 0 0;
  }

  .gf-index-scroll {
    gap: 12px;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: max(var(--gf-page-gutter), calc((100% - min(86vw, 300px)) / 2));
    padding-inline: max(var(--gf-page-gutter), calc((100% - min(86vw, 300px)) / 2));
  }

  .gf-index-card {
    flex: 0 0 min(86vw, 300px);
    min-width: min(86vw, 300px);
    max-width: 300px;
    scroll-snap-align: center;
    min-height: 88px;
    padding: 10px 12px;
  }

  .gf-index-card--sponsored {
    --gf-index-logo-size: 28px;
    min-height: 0;
  }

  .gf-index-card-head {
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
  }

  .gf-index-card-branding {
    align-items: center;
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
  }

  .gf-index-card-brand {
    flex: 1 1 0;
    min-width: 0;
    font-size: 12px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: normal;
    word-wrap: normal;
    hyphens: none;
  }

  .gf-index-card-sponsored {
    flex-shrink: 0;
    margin-top: 0;
    font-size: 8px;
    letter-spacing: 0.05em;
  }

  .gf-index-card--sponsored .gf-index-card-symbol {
    padding: 10px 10px 8px;
  }

  .gf-index-card-promo {
    padding: 8px 10px 10px;
  }

  .gf-index-card-promo-message {
    font-size: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .gf-index-name {
    font-size: 13px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .gf-index-price {
    font-size: 17px;
    line-height: 1.2;
  }

  .gf-index-change {
    font-size: 11px;
    gap: 2px;
    line-height: 1.3;
    flex-wrap: nowrap;
  }

  .gf-index-change .material-symbols-outlined {
    font-size: 14px !important;
  }
}

@media (max-width: 639px) {
  .gf-header-inner {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .gf-header-search--mobile {
    margin-top: 6px;
  }

  .gf-market-source-tab {
    padding: 10px 12px;
    font-size: 12px;
  }

  .gf-bottom-nav-item span:last-child {
    font-size: 10px;
  }
}

@media (min-width: 1024px) {
  .gf-index-card {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
  }
}

.gf-index-card:hover {
  background: var(--gf-hover);
}

.gf-index-card--sponsored:hover {
  background: var(--gf-surface);
  border-color: color-mix(in srgb, var(--promo-accent), var(--gf-outline-variant) 72%);
  box-shadow: 0 2px 8px rgba(60, 64, 67, 0.12);
}

.gf-index-card.active {
  background: #e8f0fe;
  border-color: #d2e3fc;
}

.gf-index-card--sponsored.active {
  background: var(--gf-surface);
  border-color: color-mix(in srgb, var(--promo-accent), #d2e3fc 55%);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--promo-accent), transparent 78%),
    0 2px 8px rgba(26, 115, 232, 0.12);
}

.gf-index-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--gf-outline-variant);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--promo-accent), white 94%) 0%,
    var(--gf-surface) 100%
  );
}

.gf-index-card-branding {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.gf-index-card-branding--link {
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  padding: 2px 4px 2px 2px;
  margin: -2px -4px -2px -2px;
  transition: background 0.15s;
}

.gf-index-card-branding--link:hover {
  background: color-mix(in srgb, var(--promo-accent), white 88%);
}

.gf-index-card-branding--link:focus-visible {
  outline: 2px solid var(--promo-accent);
  outline-offset: 2px;
}

.gf-index-card-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  text-decoration: none;
  color: inherit;
}

.gf-index-card-logo {
  flex: 0 0 var(--gf-index-logo-size);
  width: var(--gf-index-logo-size);
  height: var(--gf-index-logo-size);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--promo-accent), white 72%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

.gf-index-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.gf-index-card-brand {
  color: var(--gf-on-surface);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

.gf-index-card-sponsored {
  flex: 0 0 auto;
  align-self: flex-start;
  margin-top: 2px;
  color: var(--promo-accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .gf-index-card-sponsored {
    font-size: 10px;
    letter-spacing: 0.08em;
  }
}

.gf-index-card-symbol {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 14px;
}

.gf-index-card--sponsored .gf-index-card-symbol {
  padding: 12px 12px 10px;
}

.gf-index-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--gf-on-surface);
  margin-bottom: 4px;
}

.gf-index-price {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.3px;
  overflow-wrap: break-word;
}

.gf-index-change {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 4px;
  font-size: 12px;
  margin-top: 2px;
  line-height: 1.35;
}

@media (min-width: 640px) {
  .gf-index-card--sponsored .gf-index-card-symbol {
    padding: 14px 14px 12px;
  }

  .gf-index-price {
    font-size: 20px;
  }

  .gf-index-change {
    font-size: 13px;
  }
}

.gf-index-card-promo {
  margin-top: auto;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--gf-outline-variant);
  background: color-mix(in srgb, var(--promo-accent), white 92%);
}

.gf-index-card-promo--link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.gf-index-card-promo--link:hover {
  background: color-mix(in srgb, var(--promo-accent), white 88%);
}

.gf-index-card-promo--link:focus-visible {
  outline: 2px solid var(--promo-accent);
  outline-offset: -2px;
}

.gf-index-card-promo-message {
  margin: 0;
  color: var(--gf-on-surface-variant);
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
  text-wrap: pretty;
}

@media (min-width: 640px) {
  .gf-index-card-promo-message {
    font-size: 12px;
    line-height: 1.5;
  }
}

.gf-positive {
  color: var(--gf-positive);
}

.gf-negative {
  color: var(--gf-negative);
}

/* Mobile stock list — Google Finance compact rows */
.gf-stock-list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--gf-outline);
  border-radius: 12px;
  overflow: hidden;
  background: var(--gf-surface);
}

.gf-stock-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--gf-touch-min);
  padding: 10px 14px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--gf-outline-variant);
  transition: background 0.12s;
}

.gf-stock-list-item:last-child {
  border-bottom: none;
}

.gf-stock-list-item:active {
  background: var(--gf-pressed);
}

@media (hover: hover) {
  .gf-stock-list-item:hover {
    background: var(--gf-hover);
  }
}

.gf-stock-list-main {
  min-width: 0;
  flex: 1;
}

.gf-stock-list-symbol {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--gf-on-surface);
  line-height: 1.3;
}

.gf-stock-list-name {
  display: block;
  font-size: 12px;
  color: var(--gf-on-surface-variant);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gf-stock-list-quote {
  flex-shrink: 0;
  text-align: right;
}

.gf-stock-list-price {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--gf-on-surface);
  line-height: 1.3;
}

.gf-stock-list-change {
  display: block;
  margin-top: 4px;
}

.gf-stock-list-change .gf-badge {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: var(--gf-radius-full);
}

.gf-stock-list-change .material-symbols-outlined {
  font-size: 14px !important;
}

/* Desktop-first: table + sidebar visible; mobile overrides below */
.gf-table-wrap--desktop {
  display: block;
}

.gf-table-col-optional {
  display: table-cell;
}

.gf-table-col-wide {
  display: table-cell;
}

@media (max-width: 1023px) {
  .gf-table-col-wide {
    display: none;
  }
}

@media (max-width: 767px) {
  .gf-stock-list {
    display: block;
  }

  .gf-table-wrap--desktop {
    display: none;
  }

  .gf-table-col-optional {
    display: none;
  }
}

.gf-table-wrap {
  border: 1px solid var(--gf-outline);
  border-radius: var(--gf-radius);
  overflow-x: auto;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

.gf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.gf-table thead {
  background: var(--gf-surface-container);
  border-bottom: 1px solid var(--gf-outline);
}

.gf-table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 500;
  color: var(--gf-on-surface-variant);
  font-size: 12px;
  white-space: nowrap;
}

.gf-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gf-outline);
  vertical-align: middle;
}

.gf-table tbody tr:hover {
  background: var(--gf-hover);
}

.gf-table tbody tr:last-child td {
  border-bottom: none;
}

.gf-symbol-link {
  color: var(--gf-on-surface);
  text-decoration: none;
  font-weight: 500;
}

.gf-symbol-link:hover {
  color: var(--gf-primary);
}

.gf-company-name {
  color: var(--gf-on-surface-variant);
  font-size: 12px;
  margin-top: 2px;
}

.gf-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.gf-badge.up {
  background: var(--gf-positive-bg);
  color: var(--gf-positive);
}

.gf-badge.down {
  background: var(--gf-negative-bg);
  color: var(--gf-negative);
}

.gf-index-panel[hidden] {
  display: none !important;
}

.gf-index-panel--lazy {
  min-height: 240px;
}

.gf-panel-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 200px;
  padding: 32px 16px;
  color: var(--gf-text-secondary, #5f6368);
  font-size: 14px;
}

.gf-panel-loading .material-symbols-outlined {
  font-size: 22px;
  color: var(--gf-primary, #1a73e8);
}

.gf-home-layout {
  display: block;
  width: 100%;
}

.gf-promo-placement {
  position: relative;
}

.gf-promo-slide {
  display: none;
}

.gf-promo-slide.is-active {
  display: block;
}

.gf-promo-ad {
  --promo-accent: var(--gf-primary);
  border: 1px solid color-mix(in srgb, var(--promo-accent), var(--gf-outline-variant) 72%);
  border-radius: var(--gf-radius);
  background: var(--gf-surface);
  overflow: hidden;
}

.gf-promo-ad-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--gf-outline-variant);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--promo-accent), white 94%) 0%,
    var(--gf-surface) 100%
  );
}

.gf-promo-ad-branding {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.gf-promo-ad-branding--link {
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  padding: 2px 4px 2px 2px;
  margin: -2px -4px -2px -2px;
  transition: background 0.15s;
}

.gf-promo-ad-branding--link:hover {
  background: color-mix(in srgb, var(--promo-accent), white 88%);
}

.gf-promo-ad-branding--link:focus-visible {
  outline: 2px solid var(--promo-accent);
  outline-offset: 2px;
}

.gf-promo-logo {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--promo-accent), white 72%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.gf-promo-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.gf-promo-brand {
  color: var(--gf-on-surface);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.gf-promo-sponsored {
  flex: 0 0 auto;
  align-self: flex-start;
  margin-top: 2px;
  color: var(--promo-accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.gf-promo-ad-body {
  padding: 10px 12px 12px;
  background: color-mix(in srgb, var(--promo-accent), white 92%);
}

.gf-promo-ad-body--link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.gf-promo-ad-body--link:hover {
  background: color-mix(in srgb, var(--promo-accent), white 88%);
}

.gf-promo-ad-body--link:focus-visible {
  outline: 2px solid var(--promo-accent);
  outline-offset: -2px;
}

.gf-promo-ad-message {
  margin: 0;
  color: var(--gf-on-surface-variant);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

.gf-promo-placement--sidebar {
  margin-bottom: 0;
  border-bottom: 1px solid var(--gf-outline);
}

.gf-promo-placement--inline {
  margin-bottom: 12px;
}

.gf-promo-ad--inline .gf-promo-ad-head {
  padding: 8px 12px;
}

.gf-promo-ad--inline .gf-promo-ad-body {
  padding: 8px 12px 10px;
}

.gf-promo-ad--banner {
  border-left: none;
  border-right: none;
  border-radius: 0;
}

.gf-promo-placement--banner {
  margin-bottom: 0;
}

.gf-home-market-section .gf-promo-placement--banner .gf-promo-ad--banner {
  border-top: 1px solid var(--gf-outline);
  border-bottom: 1px solid var(--gf-outline-variant);
  border-left: none;
  border-right: none;
}

.gf-promo-ad--banner .gf-promo-ad-head,
.gf-promo-ad--banner .gf-promo-ad-body {
  padding-left: var(--gf-page-gutter);
  padding-right: var(--gf-page-gutter);
}

@media (min-width: 640px) {
  .gf-promo-ad--banner {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: stretch;
  }

  .gf-promo-ad--banner .gf-promo-ad-head {
    border-bottom: none;
    border-right: 1px solid var(--gf-outline-variant);
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .gf-promo-ad--banner .gf-promo-ad-body {
    display: flex;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

@media (min-width: 640px) {
  .gf-promo-ad--inline {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: stretch;
  }

  .gf-promo-ad--inline .gf-promo-ad-head {
    border-bottom: none;
    border-right: 1px solid var(--gf-outline-variant);
    align-items: center;
    padding: 10px 14px;
  }

  .gf-promo-ad--inline .gf-promo-ad-body {
    display: flex;
    align-items: center;
    padding: 10px 14px;
  }
}

.gf-quote-sidebar .gf-promo-placement--sidebar {
  margin: -16px -16px 16px;
  border-bottom: 1px solid var(--gf-outline);
  border-radius: var(--gf-radius) var(--gf-radius) 0 0;
  overflow: hidden;
}

.gf-home-market-section {
  margin-left: calc(-1 * var(--gf-page-gutter));
  margin-right: calc(-1 * var(--gf-page-gutter));
  width: calc(100% + 2 * var(--gf-page-gutter));
}

.gf-home-market-section .gf-table-wrap {
  border-left: none;
  border-right: none;
  border-radius: 0;
}

.gf-home-market-section .gf-panel-header,
.gf-home-market-section .gf-stock-list {
  padding-left: var(--gf-page-gutter);
  padding-right: var(--gf-page-gutter);
}

.gf-data-refresh-stamp {
  position: fixed;
  right: max(12px, env(safe-area-inset-right, 0px));
  bottom: calc(16px + var(--gf-safe-bottom));
  z-index: 40;
  font-size: 11px;
  line-height: 1.3;
  color: var(--gf-on-surface-variant);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--gf-outline-variant);
  border-radius: 4px;
  padding: 4px 8px;
  pointer-events: none;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.12);
}

.gf-data-refresh-stamp--empty {
  display: none;
}

.gf-symbol-sidebar {
  position: sticky;
  top: 72px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gf-outline);
  border-radius: var(--gf-radius);
  background: var(--gf-surface);
  overflow: hidden;
  max-height: calc(100vh - 96px);
}

.gf-symbol-sidebar-header {
  flex-shrink: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--gf-outline);
  background: var(--gf-surface-container);
}

.gf-symbol-sidebar-title {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--gf-on-surface);
}

.gf-symbol-sidebar-sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--gf-on-surface-variant);
}

.gf-symbol-sidebar-list {
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
}

.gf-symbol-sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--gf-outline);
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
}

.gf-symbol-sidebar-item:last-child {
  border-bottom: none;
}

.gf-symbol-sidebar-item:hover {
  background: var(--gf-hover);
}

.gf-symbol-sidebar-meta {
  min-width: 0;
  flex: 1;
}

.gf-symbol-sidebar-symbol {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--gf-on-surface);
}

.gf-symbol-sidebar-name {
  display: block;
  font-size: 11px;
  color: var(--gf-on-surface-variant);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.gf-symbol-sidebar-quote {
  text-align: right;
  flex-shrink: 0;
}

.gf-symbol-sidebar-price {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--gf-on-surface);
}

.gf-symbol-sidebar-pct {
  display: block;
  font-size: 11px;
  font-weight: 500;
  margin-top: 2px;
}

.gf-symbol-sidebar--desktop {
  display: flex;
}

@media (max-width: 1023px) {
  .gf-symbol-sidebar--desktop {
    display: none;
  }
}

.gf-panel-header {
  gap: 8px;
}

.gf-panel-header-text {
  min-width: 0;
  flex: 1;
}

.gf-panel-subtitle {
  font-size: 13px;
  color: var(--gf-on-surface-variant);
  margin: -6px 0 0;
}

.gf-market-toolbar {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gf-outline-variant);
}

.gf-market-toolbar-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: auto;
}

@media (max-width: 639px) {
  .gf-market-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .gf-market-toolbar-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
}

.gf-btn-block-mobile {
  width: auto;
  justify-content: flex-start;
}

@media (max-width: 639px) {
  .gf-data-refresh-stamp {
    bottom: calc(64px + var(--gf-safe-bottom));
  }

  .gf-btn-block-mobile {
    width: 100%;
    justify-content: center;
  }
}

.gf-btn-label--short {
  display: none;
}

.gf-btn-label--long {
  display: inline;
}

@media (max-width: 479px) {
  .gf-btn-label--short {
    display: inline;
  }

  .gf-btn-label--long {
    display: none;
  }
}

.gf-section-title {
  font-size: 18px;
  font-weight: 400;
  margin: 24px 0 12px;
}

.gf-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.gf-chip {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 16px;
  background: var(--gf-surface-container-high);
  color: var(--gf-on-surface-variant);
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  font-size: 20px;
  vertical-align: middle;
}

.htmx-indicator {
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
  opacity: 1;
}

/* Buttons with inline loading spinner */
.gf-btn-has-loader,
.gf-btn-refresh {
  position: relative;
  min-width: 5.5rem;
}

.gf-btn-spinner {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.htmx-request.gf-btn-has-loader .gf-btn-spinner,
.htmx-request.gf-btn-refresh .gf-btn-spinner {
  display: inline-flex;
}

.htmx-request.gf-btn-has-loader .gf-btn-content,
.htmx-request.gf-btn-refresh .gf-btn-content {
  opacity: 0.35;
}

.gf-busy .gf-btn-has-loader {
  pointer-events: none;
  opacity: 0.85;
}

.gf-busy .gf-btn-has-loader .gf-btn-content {
  opacity: 0.35;
}

.gf-busy .gf-btn-has-loader .gf-btn-spinner {
  display: inline-flex;
}

.gf-inline-loading {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--gf-primary);
  padding: 8px 12px;
  border-radius: var(--gf-radius);
  background: #e8f0fe;
}

.gf-inline-loading--panel {
  padding: 12px 16px;
  border: 1px solid #d2e3fc;
}

.htmx-request.gf-inline-loading,
.gf-inline-loading.htmx-request,
#table-loading.htmx-request,
#cards-loading.htmx-request,
#chart-demo-loading.htmx-request,
#chart-capture-loading.htmx-request {
  display: flex;
}

#table-loading.htmx-indicator,
#cards-loading.htmx-indicator,
#chart-demo-loading.htmx-indicator {
  display: none;
}

.gf-global-status {
  position: fixed;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 61;
  margin: 0;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gf-primary);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow: var(--gf-shadow);
  max-width: min(90vw, 420px);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.gf-global-status:empty {
  display: none;
}

.htmx-request.gf-global-status {
  display: block;
}

.gf-refresh-status {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-width: 0;
  max-width: none;
  font-size: 13px;
  line-height: 1.45;
}

@media (min-width: 640px) {
  .gf-refresh-status {
    min-width: min(100%, 320px);
    max-width: 420px;
    width: auto;
  }
}

.gf-refresh-status__active {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gf-progress {
  width: 100%;
}

.gf-progress-track {
  height: 6px;
  border-radius: 3px;
  background: var(--gf-surface-container-high);
  overflow: hidden;
}

.gf-progress-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--gf-primary);
  transition: width 0.35s ease;
}

.gf-progress-label {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--gf-on-surface-variant);
}

.gf-op-banner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--gf-radius);
  font-size: 13px;
  line-height: 1.4;
}

.gf-op-banner--success {
  background: var(--gf-positive-bg);
  color: var(--gf-positive);
}

.gf-op-banner--error {
  background: var(--gf-negative-bg);
  color: var(--gf-negative);
}

.gf-op-banner--info {
  background: #e8f0fe;
  color: var(--gf-primary);
}

.gf-index-card {
  position: relative;
}

.gf-index-card-spinner {
  display: none;
  position: absolute;
  top: 8px;
  right: 8px;
  color: var(--gf-primary);
}

.htmx-request.gf-index-card .gf-index-card-spinner {
  display: inline-flex;
}

.htmx-request.gf-index-card {
  opacity: 0.72;
  pointer-events: none;
}

.gf-loading-bar {
  height: 3px;
  background: var(--gf-primary);
  width: 0;
  transition: width 0.3s;
}

.htmx-request .gf-loading-bar {
  width: 100%;
  animation: gf-pulse 1s ease-in-out infinite;
}

@keyframes gf-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.gf-bottom-nav {
  display: none;
}

@media (max-width: 1023px) {
  body {
    padding-bottom: calc(56px + var(--gf-safe-bottom));
    touch-action: manipulation;
  }

  .gf-main {
    padding-bottom: calc(32px + 56px + var(--gf-safe-bottom));
  }

  .gf-bottom-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    height: calc(56px + var(--gf-safe-bottom));
    padding-bottom: var(--gf-safe-bottom);
    background: var(--gf-surface);
    border-top: 1px solid var(--gf-outline);
    box-shadow: 0 -1px 3px rgba(60, 64, 67, 0.08);
    justify-content: space-around;
    align-items: stretch;
  }

  .gf-bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: var(--gf-touch-min);
    text-decoration: none;
    color: var(--gf-on-surface-variant);
    font-size: 11px;
    font-weight: 500;
    transition: color 0.15s;
  }

  .gf-bottom-nav-item .material-symbols-outlined {
    font-size: 22px !important;
  }

  .gf-bottom-nav-item.active {
    color: var(--gf-primary);
  }

  .gf-bottom-nav-item:active {
    background: var(--gf-hover);
  }

  .gf-footer {
    padding-bottom: calc(16px + 56px);
  }
}

.gf-footer {
  border-top: 1px solid var(--gf-outline);
  padding: 20px var(--gf-page-gutter);
  margin-top: 32px;
  font-size: 12px;
  color: var(--gf-on-surface-variant);
}

@media (min-width: 640px) {
  .gf-footer {
    padding: 24px var(--gf-page-gutter);
    margin-top: 48px;
  }
}

.gf-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}

.gf-btn-primary {
  background: var(--gf-primary);
  color: white;
}

.gf-btn-primary:hover {
  background: #1765cc;
}

.gf-btn-text {
  background: transparent;
  color: var(--gf-primary);
}

.gf-btn-text:hover {
  background: #e8f0fe;
}

.gf-quote-hero-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gf-quote-title {
  font-size: 22px;
  font-weight: 400;
  color: var(--gf-on-surface);
  margin: 0;
  line-height: 1.25;
}

.gf-quote-exchange {
  font-size: 13px;
  color: var(--gf-on-surface-variant);
  margin: 4px 0 0;
}

.gf-quote-hero-price {
  text-align: left;
}

.gf-quote-price {
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.8px;
  line-height: 1.1;
}

.gf-quote-change {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 15px;
  margin-top: 6px;
}

.gf-quote-change .material-symbols-outlined {
  font-size: 18px !important;
}

.gf-quote-currency {
  font-size: 12px;
  color: #80868b;
  margin: 6px 0 0;
}

@media (min-width: 640px) {
  .gf-quote-hero-grid {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
  }

  .gf-quote-hero-price {
    text-align: right;
    flex-shrink: 0;
  }

  .gf-quote-title {
    font-size: 24px;
  }

  .gf-quote-price {
    font-size: 48px;
    letter-spacing: -1px;
  }

  .gf-quote-change {
    font-size: 18px;
    justify-content: flex-end;
  }
}

.gf-chart-img {
  max-width: 100%;
  border-radius: var(--gf-radius);
  border: 1px solid var(--gf-outline);
}

.gf-chart-preview {
  margin: 0;
  padding: 0;
  border: 1px solid var(--gf-outline);
  border-radius: var(--gf-radius);
  overflow: hidden;
  background: var(--gf-surface);
}

.gf-chart-preview .gf-chart-img {
  border: none;
  border-radius: 0;
  display: block;
}

.gf-chart-preview figcaption {
  padding: 8px 12px;
  background: var(--gf-surface-container);
  border-top: 1px solid var(--gf-outline);
}

.gf-row-link {
  cursor: pointer;
}

.gf-row-link:hover {
  background: var(--gf-hover);
}

.gf-quote-header {
  border-bottom: 1px solid var(--gf-outline);
  padding-bottom: 20px;
}

.gf-quote-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 1024px) {
  .gf-quote-layout {
    grid-template-columns: 1fr 280px;
  }
}

.gf-chart-toolbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 12px;
}

@media (min-width: 640px) {
  .gf-chart-toolbar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
}

.gf-chart-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--gf-outline);
}

.gf-chart-tab {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gf-on-surface-variant);
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.gf-chart-tab.active {
  color: var(--gf-primary);
  border-bottom-color: var(--gf-primary);
}

.gf-chart-range {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.gf-chart-range::-webkit-scrollbar {
  display: none;
}

.gf-range-pill {
  font-size: 12px;
  padding: 8px 12px;
  border-radius: var(--gf-radius-full);
  color: var(--gf-on-surface-variant);
  background: var(--gf-surface-container-high);
  flex-shrink: 0;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.gf-range-pill.active {
  background: #e8f0fe;
  color: var(--gf-primary);
}

.gf-studies-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.gf-study-chip {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--gf-surface-container);
  color: var(--gf-on-surface-variant);
  border: 1px solid var(--gf-outline);
}

.gf-chart-frame {
  background: var(--gf-surface);
  border: 1px solid var(--gf-outline);
  border-radius: var(--gf-radius);
  overflow: hidden;
  min-height: 220px;
}

@media (min-width: 640px) {
  .gf-chart-frame {
    min-height: 360px;
  }
}

.gf-chart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}

.gf-stat-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 16px;
  font-size: 13px;
}

.gf-stat-grid dt {
  color: var(--gf-on-surface-variant);
}

.gf-stat-grid dd {
  margin: 0;
  font-weight: 500;
  text-align: right;
}

.gf-quote-sidebar {
  background: var(--gf-surface-container);
  border: 1px solid var(--gf-outline);
  border-radius: var(--gf-radius);
  padding: 16px;
  height: fit-content;
}

.gf-blog-content {
  font-size: 15px;
  line-height: 1.6;
  color: var(--gf-on-surface);
}

.gf-blog-content h2 {
  font-size: 20px;
  font-weight: 500;
  margin: 24px 0 12px;
}

.gf-blog-content h3 {
  font-size: 16px;
  font-weight: 500;
  margin: 20px 0 10px;
}

.gf-blog-content p {
  margin: 0 0 12px;
  color: var(--gf-on-surface-variant);
}

.gf-blog-content ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

.gf-blog-content li {
  margin-bottom: 8px;
}

.gf-blog-content strong {
  color: var(--gf-on-surface);
}

#chart-capture-loading.htmx-indicator {
  display: none;
}

.gf-dev-section .border {
  padding: 16px !important;
}

@media (max-width: 1023px) {
  .gf-header-nav {
    display: none;
  }

  .gf-market-nav-row {
    display: flex;
    align-items: stretch;
    border-top: 1px solid var(--gf-outline-variant);
    border-bottom: 1px solid var(--gf-outline-variant);
  }

  .gf-market-nav-row > .gf-nav-dropdown {
    border-left: 1px solid var(--gf-outline-variant);
    background: var(--gf-surface);
    box-shadow: -6px 0 10px rgba(60, 64, 67, 0.06);
  }

  .gf-header-search--desktop {
    display: none;
  }

  .gf-header-search--mobile {
    display: block;
  }
}

@media (max-width: 639px) {
  .gf-dev-section {
    display: none;
  }

  .gf-section-title {
    font-size: 16px;
    margin: 16px 0 8px;
  }

  .gf-global-status {
    top: calc(6px + var(--gf-safe-top));
    font-size: 11px;
    max-width: min(92vw, 360px);
  }

  .gf-chip {
    flex-shrink: 0;
  }

  .gf-table th,
  .gf-table td {
    padding: 12px 12px;
  }

  .gf-btn {
    min-height: var(--gf-touch-min);
    padding: 10px 18px;
  }

  .gf-nav-tab {
    padding: 14px 16px;
    white-space: nowrap;
  }
}

/* ---- Rich analysis (probability, ratings, levels, signals) ---- */

.gf-analysis-scorecard {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 16px 0 8px;
  padding: 16px;
  background: var(--gf-surface-container);
  border: 1px solid var(--gf-outline);
  border-radius: var(--gf-radius);
}

@media (min-width: 720px) {
  .gf-analysis-scorecard {
    grid-template-columns: 1fr 1fr;
  }
}

.gf-probability-block h4,
.gf-ratings-block h4 {
  font-size: 14px;
  font-weight: 500;
  color: var(--gf-on-surface);
  margin: 0 0 12px;
}

.gf-probability-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gf-prob-row {
  display: grid;
  grid-template-columns: 64px 1fr 48px;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.gf-prob-label {
  color: var(--gf-on-surface-variant);
}

.gf-prob-track {
  height: 8px;
  border-radius: var(--gf-radius-full);
  background: var(--gf-outline-variant);
  overflow: hidden;
}

.gf-prob-fill {
  height: 100%;
  border-radius: var(--gf-radius-full);
  transition: width 200ms ease-out;
}

.gf-prob-bull { background: var(--gf-positive); }
.gf-prob-neutral { background: var(--gf-on-surface-variant); }
.gf-prob-bear { background: var(--gf-negative); }

.gf-prob-pct {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  text-align: right;
  color: var(--gf-on-surface);
}

.gf-prob-summary {
  font-size: 12px;
  color: var(--gf-on-surface-variant);
  margin: 10px 0 0;
}

.gf-ratings-grid {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px 12px;
  margin: 0;
  font-size: 13px;
}

.gf-ratings-grid dt {
  color: var(--gf-on-surface-variant);
  align-self: center;
}

.gf-ratings-grid dd {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.gf-stars {
  letter-spacing: 1px;
  font-size: 15px;
  line-height: 1;
  color: var(--gf-outline);
}

.gf-star-on {
  color: var(--gf-primary);
}

.gf-rating-label {
  font-size: 12px;
  color: var(--gf-on-surface-variant);
}

.gf-section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--gf-on-surface);
  margin: 20px 0 8px;
}

.gf-section-verdict {
  font-size: 12px;
  font-weight: 500;
  color: var(--gf-primary);
  background: var(--gf-surface-container);
  border: 1px solid var(--gf-outline);
  border-radius: var(--gf-radius-full);
  padding: 2px 10px;
}

.gf-levels-table {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 8px 0 12px;
}

.gf-level-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: var(--gf-radius-full);
  border: 1px solid var(--gf-outline);
  background: var(--gf-surface);
  font-variant-numeric: tabular-nums;
}

.gf-level-resistance {
  background: var(--gf-negative-bg);
  border-color: var(--gf-negative);
  color: var(--gf-negative);
}

.gf-level-support {
  background: var(--gf-positive-bg);
  border-color: var(--gf-positive);
  color: var(--gf-positive);
}

.gf-level-kind {
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 10px;
}

.gf-signals-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gf-signal {
  display: grid;
  grid-template-columns: 1fr auto 2fr;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  padding: 8px 10px;
  background: var(--gf-surface-container);
  border: 1px solid var(--gf-outline-variant);
  border-radius: var(--gf-radius);
}

@media (max-width: 639px) {
  .gf-signal {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.gf-signal-tag {
  font-weight: 500;
  color: var(--gf-on-surface);
}

.gf-signal-dir {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: var(--gf-radius-full);
  background: var(--gf-surface);
  border: 1px solid var(--gf-outline);
}

.gf-signal-bullish .gf-signal-dir { color: var(--gf-positive); border-color: var(--gf-positive); background: var(--gf-positive-bg); }
.gf-signal-bearish .gf-signal-dir { color: var(--gf-negative); border-color: var(--gf-negative); background: var(--gf-negative-bg); }
.gf-signal-neutral .gf-signal-dir { color: var(--gf-on-surface-variant); }

.gf-signal-note {
  color: var(--gf-on-surface-variant);
}

/* Investor intelligence homepage */
.gf-intelligence-home {
  --intel-blue-soft: #eef5ff;
  --intel-purple: #7c3aed;
  --intel-warning: #b45309;
  max-width: 1560px;
  margin: 0 auto;
  padding: 32px 0 72px;
}

.gf-intel-section {
  scroll-margin-top: 150px;
  margin-bottom: 30px;
}

.gf-intel-hero {
  padding: 28px;
  border: 1px solid #dbe7f7;
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 8%, rgba(26, 115, 232, 0.11), transparent 28%),
    linear-gradient(145deg, #ffffff 20%, #f6f9fe 100%);
}

.gf-intel-title-row,
.gf-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.gf-intel-title-row h1,
.gf-section-heading h2 {
  margin: 3px 0 4px;
  color: #172033;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.gf-intel-title-row h1 { font-size: clamp(28px, 3vw, 42px); }
.gf-section-heading h2 { font-size: clamp(23px, 2.3vw, 30px); }
.gf-intel-title-row p:not(.gf-intel-eyebrow),
.gf-section-heading p:not(.gf-intel-eyebrow),
.gf-card-intro { margin: 0; color: #657083; font-size: 15px; }

.gf-intel-eyebrow,
.gf-card-kicker {
  margin: 0;
  color: #2766b1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1.4;
  text-transform: uppercase;
}

.gf-intel-link,
.gf-row-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid #b9d2f5;
  border-radius: 999px;
  background: #fff;
  color: #0b57d0;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.gf-intel-link:hover,
.gf-row-action:hover { background: #edf4ff; border-color: #8ab4f8; }

.gf-intel-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.9fr);
  gap: 18px;
}

.gf-market-score-card,
.gf-intel-card,
.gf-market-signal-card {
  border: 1px solid #e0e6ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(30, 64, 118, 0.06);
}

.gf-market-score-card { padding: 24px; }
.gf-market-score-main,
.gf-featured-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.gf-market-score-value {
  margin: 3px 0 0;
  color: #172033;
  font-size: clamp(46px, 6vw, 76px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
}

.gf-market-score-value span { margin-left: 5px; color: #7a8597; font-size: 19px; letter-spacing: 0; }
.gf-status-badge,
.gf-data-badge,
.gf-direction-label,
.gf-trend-chip,
.gf-strategy-direction {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #d5dce6;
  border-radius: 999px;
  padding: 6px 10px;
  background: #f7f9fc;
  color: #566174;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

.gf-status-bullish,
.gf-direction-up,
.gf-trend-chip.is-positive,
.gf-strategy-direction.is-positive { border-color: #a8d8b5; background: #ecf8ef; color: #137333; }
.gf-status-bearish,
.gf-direction-down,
.gf-trend-chip.is-negative,
.gf-strategy-direction.is-negative { border-color: #f1b8b3; background: #fff0ef; color: #b3261e; }
.gf-status-badge .material-symbols-outlined { font-size: 17px; }
.gf-score-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 24px 0 18px; }
.gf-score-facts div { border-radius: 12px; background: #f6f8fb; padding: 12px; }
.gf-score-facts dt { color: #6b7587; font-size: 11px; }
.gf-score-facts dd { margin: 4px 0 0; color: #243047; font-size: 14px; font-weight: 700; }
.gf-score-facts small { display: block; color: #7a8597; font-weight: 400; }
.gf-market-score-explanation { margin: 0; color: #344054; font-size: 16px; line-height: 1.55; }
.gf-methodology { margin-top: 17px; color: #657083; font-size: 12px; }
.gf-methodology summary { width: fit-content; cursor: pointer; color: #356aa5; font-weight: 700; }
.gf-methodology p { margin: 8px 0 0; }

.gf-market-signal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gf-market-signal-card { min-height: 132px; padding: 16px; box-shadow: none; }
.gf-market-signal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gf-market-signal-head h2 { margin: 0; color: #354052; font-size: 13px; font-weight: 700; }
.gf-market-signal-price { margin: 21px 0 3px; color: #172033; font-size: 22px; font-weight: 700; letter-spacing: -0.025em; }
.gf-market-signal-card > p:last-child { margin: 0; font-size: 12px; }
.gf-market-signal-card--pending { border-style: dashed; background: rgba(255,255,255,.55); }
.gf-muted { color: #7b8493; font-size: 12px; line-height: 1.4; }

.gf-section-heading { margin-bottom: 14px; padding: 0 2px; }
.gf-data-badge { border-color: #b9d2f5; background: #edf4ff; color: #185abc; }
.gf-radar-table-wrap { overflow-x: auto; border: 1px solid #e0e6ef; border-radius: 18px; background: #fff; box-shadow: 0 8px 28px rgba(30,64,118,.045); }
.gf-radar-table { width: 100%; min-width: 1030px; border-collapse: collapse; font-size: 13px; }
.gf-radar-table th,
.gf-radar-table td { padding: 14px 13px; border-bottom: 1px solid #edf0f5; text-align: left; vertical-align: middle; }
.gf-radar-table thead th { background: #f7f9fc; color: #687385; font-size: 10px; letter-spacing: .075em; text-transform: uppercase; }
.gf-radar-table tbody tr:last-child > * { border-bottom: 0; }
.gf-radar-table tbody tr { transition: background .15s ease; }
.gf-radar-table tbody tr:hover,
.gf-radar-table tbody tr.is-selected { background: #f1f6fe; }
.gf-radar-table tbody tr.is-selected { box-shadow: inset 3px 0 #1a73e8; }
.gf-radar-table tbody th a { color: #172033; font-size: 14px; font-weight: 700; text-decoration: none; }
.gf-radar-table tbody th a:hover { color: #0b57d0; text-decoration: underline; }
.gf-radar-table tbody th small { display: block; max-width: 150px; margin-top: 3px; overflow: hidden; color: #7a8495; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.gf-unavailable { color: #7c8695; font-size: 11px; }
.gf-row-action { min-height: 34px; padding: 0 12px; cursor: pointer; }
.gf-source-note { margin: 10px 2px 0; color: #7a8494; font-size: 11px; line-height: 1.45; }

.gf-home-sponsor { margin: 8px 0 30px; }
.gf-home-sponsor .gf-promo-placement { margin: 0; }
.gf-home-sponsor .gf-promo-ad { box-shadow: none; }

.gf-decision-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 16px; }
.gf-intel-card { padding: 22px; }
.gf-featured-header h3 { margin: 4px 0 0; color: #172033; font-size: 28px; }
.gf-featured-header h3 small { display: block; margin-top: 2px; color: #6b7587; font-size: 13px; font-weight: 500; }
.gf-featured-price { display: flex; flex-direction: column; align-items: flex-end; }
.gf-featured-price strong { color: #172033; font-size: 26px; }
.gf-featured-price span { font-size: 13px; font-weight: 700; }
.gf-decision-brief { margin: 20px 0; border: 1px solid #d8e7fb; border-radius: 14px; background: #f4f8fe; padding: 17px; }
.gf-decision-brief-title,
.gf-card-icon-title { display: flex; align-items: center; gap: 11px; }
.gf-decision-brief-title > .material-symbols-outlined,
.gf-card-icon-title > .material-symbols-outlined,
.gf-decision-brief-title > .gf-icon-tile,
.gf-card-icon-title > .gf-icon-tile { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 11px; background: #e8f1fd; color: #185abc; font-size: 18px; font-weight: 700; }
.gf-decision-brief h4 { margin: 2px 0 0; color: #172033; font-size: 18px; }
.gf-decision-brief > p { margin: 14px 0; color: #48556a; font-size: 14px; line-height: 1.5; }
.gf-decision-confidence { display: flex; gap: 28px; margin: 0; }
.gf-decision-confidence dt { color: #718096; font-size: 10px; text-transform: uppercase; }
.gf-decision-confidence dd { margin: 2px 0 0; color: #27364d; font-size: 12px; font-weight: 700; }
.gf-key-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.gf-key-levels > div { border: 1px solid #e5e9f0; border-radius: 12px; padding: 12px; }
.gf-key-levels span,
.gf-key-levels small { display: block; color: #748095; font-size: 10px; }
.gf-key-levels strong { display: block; margin: 3px 0; color: #253149; font-size: 15px; }
.gf-card-icon-title h2,
.gf-card-icon-title h3 { margin: 0; color: #172033; font-size: 20px; font-weight: 700; }
.gf-purple { background: #f2ebff !important; color: var(--intel-purple) !important; }
.gf-warning { background: #fff4df !important; color: var(--intel-warning) !important; }
.gf-empty-comparison { margin: 20px 0; border: 1px dashed #cfd7e2; border-radius: 14px; background: #fafbfc; padding: 18px; color: #667185; text-align: center; }
.gf-empty-comparison > .material-symbols-outlined { color: #8b95a4; }
.gf-empty-comparison p { margin: 5px 0; font-size: 12px; line-height: 1.45; }
.gf-current-snapshot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gf-current-snapshot > p { grid-column: 1 / -1; }
.gf-current-snapshot > div { border-radius: 10px; background: #f6f8fb; padding: 10px; }
.gf-current-snapshot span { display: block; color: #788397; font-size: 10px; }
.gf-current-snapshot strong { display: block; margin-top: 4px; color: #2e3a50; font-size: 12px; }

.gf-options-risk-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(290px, 1fr); gap: 16px; margin-top: 16px; }
.gf-options-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-top: 18px; }
.gf-option-metric { min-height: 125px; border: 1px solid #e6eaf0; border-radius: 12px; padding: 13px; }
.gf-option-metric-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #637086; font-size: 11px; font-weight: 700; }
.gf-option-metric strong { display: block; margin: 8px 0; color: #1f2b41; font-size: 17px; overflow-wrap: anywhere; }
.gf-option-metric p { margin: 0; color: #7a8495; font-size: 10px; line-height: 1.4; }
.gf-help { width: 22px; height: 22px; border: 1px solid #d7dde7; border-radius: 50%; background: #f8fafc; color: #677386; cursor: help; font-size: 11px; font-weight: 700; }
.gf-skeleton-text { position: relative; color: transparent !important; border-radius: 5px; background: linear-gradient(90deg, #eef1f5 25%, #f8fafc 50%, #eef1f5 75%); background-size: 200% 100%; animation: gf-intel-shimmer 1.35s infinite; }
@keyframes gf-intel-shimmer { to { background-position: -200% 0; } }
.gf-risk-unscored { margin: 20px 0 14px; border-radius: 14px; background: #fff7e8; padding: 16px; }
.gf-risk-unscored strong { color: #8a4c08; font-size: 17px; }
.gf-risk-unscored p { margin: 5px 0 0; color: #785b38; font-size: 12px; line-height: 1.45; }
.gf-risk-inputs { margin: 0; }
.gf-risk-inputs div { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px solid #edf0f4; padding: 12px 2px; }
.gf-risk-inputs dt { color: #6c7789; font-size: 12px; }
.gf-risk-inputs dd { margin: 0; color: #27344a; font-size: 12px; font-weight: 700; text-align: right; }

.gf-strategy-brief-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gf-strategy-list { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 17px; }
.gf-strategy-list > a { display: grid; grid-template-columns: auto 1fr; gap: 5px 9px; align-items: center; border: 1px solid #e4e8ef; border-radius: 13px; padding: 13px; color: inherit; text-decoration: none; }
.gf-strategy-list > a:hover { border-color: #a8c7fa; background: #f6f9fe; }
.gf-strategy-list strong { color: #263249; font-size: 13px; }
.gf-strategy-list small { grid-column: 1 / -1; color: #768195; font-size: 10px; }
.gf-legal-note { margin: 15px 0 0; color: #788294; font-size: 10px; line-height: 1.45; }
.gf-investor-brief { background: linear-gradient(150deg, #fff 25%, #faf7ff 100%); }
.gf-investor-brief dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 19px 0 0; }
.gf-investor-brief dl div { border-left: 3px solid #d8c8f6; padding-left: 12px; }
.gf-investor-brief dl div:last-child { grid-column: 1 / -1; }
.gf-investor-brief dt { color: #7459a5; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.gf-investor-brief dd { margin: 4px 0 0; color: #3c4659; font-size: 12px; line-height: 1.5; }

.gf-index-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gf-index-strip-card { display: grid; grid-template-columns: 1fr auto; gap: 5px; border: 1px solid #e1e6ee; border-radius: 14px; background: #fff; padding: 16px; color: inherit; text-decoration: none; }
.gf-index-strip-card:hover,
.gf-index-strip-card.is-active { border-color: #a8c7fa; background: #f5f9ff; }
.gf-index-strip-card span { color: #657187; font-size: 12px; }
.gf-index-strip-card strong { grid-row: 2; color: #1d293d; font-size: 19px; }
.gf-index-strip-card small { grid-column: 2; grid-row: 2; align-self: center; font-size: 11px; font-weight: 700; }
.gf-components-disclosure { margin-top: 12px; border: 1px solid #e0e6ef; border-radius: 16px; background: #fff; overflow: hidden; }
.gf-components-disclosure > summary { display: flex; min-height: 54px; align-items: center; justify-content: space-between; padding: 0 18px; color: #344158; cursor: pointer; font-size: 13px; font-weight: 700; list-style: none; }
.gf-components-disclosure > summary::-webkit-details-marker { display: none; }
.gf-components-disclosure[open] > summary { border-bottom: 1px solid #e7ebf1; }
.gf-components-disclosure[open] > summary .material-symbols-outlined { transform: rotate(180deg); }
.gf-components-content { padding: 0 16px 16px; }
.gf-empty-state { border: 1px dashed #cbd5e1; border-radius: 16px; background: #f8fafc; padding: 24px; color: #657083; font-size: 13px; text-align: center; }

@media (min-width: 1600px) {
  .gf-shell { max-width: 1600px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 1023px) {
  .gf-intel-hero-grid,
  .gf-decision-grid,
  .gf-options-risk-grid { grid-template-columns: 1fr; }
  .gf-market-signal-grid { grid-template-columns: repeat(4, 1fr); }
  .gf-market-signal-card { min-height: 120px; }
  .gf-index-strip { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .gf-intelligence-home { padding-top: 20px; }
  .gf-intel-hero { padding: 20px; border-radius: 19px; }
  .gf-intel-title-row,
  .gf-section-heading { align-items: flex-start; flex-direction: column; gap: 13px; }
  .gf-intel-link { min-height: 40px; }
  .gf-market-signal-grid { grid-template-columns: 1fr 1fr; }
  .gf-score-facts { grid-template-columns: 1fr; }
  .gf-strategy-brief-grid { grid-template-columns: 1fr; }
  .gf-options-metrics { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .gf-intelligence-home { padding-bottom: 32px; }
  .gf-intel-section { margin-bottom: 23px; }
  .gf-market-score-card,
  .gf-intel-card { padding: 17px; border-radius: 15px; }
  .gf-market-score-main,
  .gf-featured-header { align-items: flex-start; flex-direction: column; }
  .gf-featured-price { align-items: flex-start; }
  .gf-market-signal-grid,
  .gf-options-metrics,
  .gf-strategy-list,
  .gf-index-strip,
  .gf-investor-brief dl { grid-template-columns: 1fr; }
  .gf-investor-brief dl div:last-child { grid-column: auto; }
  .gf-key-levels { grid-template-columns: 1fr 1fr; }
  .gf-current-snapshot { grid-template-columns: 1fr; }
  .gf-decision-confidence { flex-direction: column; gap: 8px; }
  .gf-option-metric { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .gf-skeleton-text { animation: none; }
}

/* Indexable trust, methodology, and policy pages */
.gf-trust-page {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 30px 0 72px;
}

.gf-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #737e90;
  font-size: 12px;
}

.gf-breadcrumbs a { color: #185abc; text-decoration: none; }
.gf-breadcrumbs a:hover { text-decoration: underline; }

.gf-trust-hero {
  border: 1px solid #dce7f5;
  border-radius: 22px;
  background: linear-gradient(145deg, #fff 30%, #f2f7ff 100%);
  padding: clamp(24px, 5vw, 46px);
}

.gf-trust-hero h1 {
  margin: 7px 0 12px;
  color: #152036;
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.08;
}

.gf-trust-hero > p:last-child {
  max-width: 720px;
  margin: 0;
  color: #526078;
  font-size: 17px;
  line-height: 1.65;
}

.gf-trust-sections {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.gf-trust-sections section {
  border: 1px solid #e1e7ef;
  border-radius: 16px;
  background: #fff;
  padding: clamp(20px, 4vw, 30px);
  box-shadow: 0 8px 28px rgba(30, 64, 118, .04);
}

.gf-trust-sections h2 {
  margin: 0 0 10px;
  color: #1f2b42;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.gf-trust-sections p,
.gf-trust-sections li {
  color: #556176;
  font-size: 14px;
  line-height: 1.7;
}

.gf-trust-sections p { margin: 0 0 10px; }
.gf-trust-sections p:last-child { margin-bottom: 0; }
.gf-trust-sections ul { margin: 13px 0 0; padding-left: 21px; }
.gf-trust-sections li + li { margin-top: 6px; }

.gf-trust-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 18px;
  border-radius: 15px;
  background: #eef5ff;
  padding: 18px 20px;
  color: #31415a;
  font-size: 13px;
}

.gf-trust-callout strong { margin-right: auto; }
.gf-trust-callout a { color: #0b57d0; font-weight: 700; text-decoration: none; }
.gf-trust-callout a:hover { text-decoration: underline; }

@media (max-width: 639px) {
  .gf-trust-page { padding-top: 20px; }
  .gf-trust-hero { border-radius: 18px; }
  .gf-trust-callout { align-items: flex-start; flex-direction: column; }
}

/* Dark theme: shared chrome, investor intelligence, and indexable content. */
html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 50% -10%, rgba(48, 112, 198, .13), transparent 34rem),
    var(--gf-surface);
}

html[data-theme="dark"] .gf-header,
html[data-theme="dark"] .gf-bottom-nav,
html[data-theme="dark"] .gf-search-suggestions,
html[data-theme="dark"] .gf-nav-dropdown-menu {
  background: rgba(7, 17, 31, .96);
  border-color: var(--gf-outline);
  box-shadow: var(--gf-shadow);
}

html[data-theme="dark"] .gf-footer,
html[data-theme="dark"] .gf-footer p,
html[data-theme="dark"] .gf-footer span { color: var(--gf-on-surface-variant) !important; }
html[data-theme="dark"] .gf-footer a { color: var(--gf-primary) !important; }

html[data-theme="dark"] .gf-intelligence-home {
  --intel-blue-soft: #12233a;
  --intel-purple: #b69cff;
  --intel-warning: #f3c969;
}

html[data-theme="dark"] .gf-intel-hero {
  border-color: #263954;
  background:
    radial-gradient(circle at 92% 8%, rgba(100, 167, 255, .16), transparent 30%),
    linear-gradient(145deg, #0d1a2b 20%, #091524 100%);
}

html[data-theme="dark"] .gf-intel-title-row h1,
html[data-theme="dark"] .gf-section-heading h2,
html[data-theme="dark"] .gf-market-score-value,
html[data-theme="dark"] .gf-market-signal-price,
html[data-theme="dark"] .gf-featured-header h3,
html[data-theme="dark"] .gf-featured-price strong,
html[data-theme="dark"] .gf-card-icon-title h2,
html[data-theme="dark"] .gf-card-icon-title h3,
html[data-theme="dark"] .gf-decision-brief h4 { color: #edf4ff; }

html[data-theme="dark"] .gf-intel-title-row p:not(.gf-intel-eyebrow),
html[data-theme="dark"] .gf-section-heading p:not(.gf-intel-eyebrow),
html[data-theme="dark"] .gf-card-intro,
html[data-theme="dark"] .gf-market-score-value span,
html[data-theme="dark"] .gf-methodology,
html[data-theme="dark"] .gf-featured-header h3 small,
html[data-theme="dark"] .gf-muted,
html[data-theme="dark"] .gf-source-note,
html[data-theme="dark"] .gf-legal-note { color: #91a2b9; }

html[data-theme="dark"] .gf-intel-eyebrow,
html[data-theme="dark"] .gf-card-kicker,
html[data-theme="dark"] .gf-methodology summary { color: #83b5ff; }

html[data-theme="dark"] .gf-market-score-card,
html[data-theme="dark"] .gf-intel-card,
html[data-theme="dark"] .gf-market-signal-card,
html[data-theme="dark"] .gf-radar-table-wrap,
html[data-theme="dark"] .gf-index-strip-card,
html[data-theme="dark"] .gf-components-disclosure {
  border-color: #263750;
  background: #0e1a2b;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .22);
}

html[data-theme="dark"] .gf-market-signal-card--pending { background: rgba(14, 26, 43, .68); }
html[data-theme="dark"] .gf-market-signal-head h2,
html[data-theme="dark"] .gf-market-score-explanation { color: #c8d5e7; }

html[data-theme="dark"] .gf-score-facts div,
html[data-theme="dark"] .gf-current-snapshot > div { background: #111f33; }
html[data-theme="dark"] .gf-score-facts dt,
html[data-theme="dark"] .gf-score-facts small,
html[data-theme="dark"] .gf-current-snapshot span { color: #8fa1ba; }
html[data-theme="dark"] .gf-score-facts dd,
html[data-theme="dark"] .gf-current-snapshot strong { color: #e2ebf8; }

html[data-theme="dark"] .gf-intel-link,
html[data-theme="dark"] .gf-row-action {
  border-color: #36587f;
  background: #101f33;
  color: #83b5ff;
}
html[data-theme="dark"] .gf-intel-link:hover,
html[data-theme="dark"] .gf-row-action:hover { border-color: #6097d8; background: #162a43; }

html[data-theme="dark"] .gf-status-badge,
html[data-theme="dark"] .gf-data-badge,
html[data-theme="dark"] .gf-direction-label,
html[data-theme="dark"] .gf-trend-chip,
html[data-theme="dark"] .gf-strategy-direction {
  border-color: #34445b;
  background: #142237;
  color: #b6c4d7;
}
html[data-theme="dark"] .gf-status-bullish,
html[data-theme="dark"] .gf-direction-up,
html[data-theme="dark"] .gf-trend-chip.is-positive,
html[data-theme="dark"] .gf-strategy-direction.is-positive { border-color: #245c46; background: #102c25; color: #49d68b; }
html[data-theme="dark"] .gf-status-bearish,
html[data-theme="dark"] .gf-direction-down,
html[data-theme="dark"] .gf-trend-chip.is-negative,
html[data-theme="dark"] .gf-strategy-direction.is-negative { border-color: #713643; background: #321a23; color: #ff8290; }
html[data-theme="dark"] .gf-data-badge { border-color: #36587f; background: #12233a; color: #83b5ff; }

html[data-theme="dark"] .gf-radar-table th,
html[data-theme="dark"] .gf-radar-table td { border-color: #203149; }
html[data-theme="dark"] .gf-radar-table thead th { background: #111f33; color: #93a4ba; }
html[data-theme="dark"] .gf-radar-table tbody tr:hover,
html[data-theme="dark"] .gf-radar-table tbody tr.is-selected { background: #12243a; }
html[data-theme="dark"] .gf-radar-table tbody th a { color: #e8f0fc; }
html[data-theme="dark"] .gf-radar-table tbody th a:hover { color: #83b5ff; }
html[data-theme="dark"] .gf-radar-table tbody th small,
html[data-theme="dark"] .gf-unavailable { color: #8fa1ba; }

html[data-theme="dark"] .gf-decision-brief {
  border-color: #29486c;
  background: #102139;
}
html[data-theme="dark"] .gf-decision-brief-title > .material-symbols-outlined,
html[data-theme="dark"] .gf-card-icon-title > .material-symbols-outlined,
html[data-theme="dark"] .gf-decision-brief-title > .gf-icon-tile,
html[data-theme="dark"] .gf-card-icon-title > .gf-icon-tile { background: #172d49; color: #83b5ff; }
html[data-theme="dark"] .gf-decision-brief > p { color: #b1bfd2; }
html[data-theme="dark"] .gf-decision-confidence dt,
html[data-theme="dark"] .gf-key-levels span,
html[data-theme="dark"] .gf-key-levels small { color: #8fa1ba; }
html[data-theme="dark"] .gf-decision-confidence dd,
html[data-theme="dark"] .gf-key-levels strong { color: #dce7f5; }
html[data-theme="dark"] .gf-key-levels > div,
html[data-theme="dark"] .gf-option-metric { border-color: #293a52; background: #0c1829; }

html[data-theme="dark"] .gf-empty-comparison,
html[data-theme="dark"] .gf-empty-state { border-color: #3a4b63; background: #0b1727; color: #95a6bc; }
html[data-theme="dark"] .gf-option-metric-head,
html[data-theme="dark"] .gf-option-metric p,
html[data-theme="dark"] .gf-risk-inputs dt { color: #91a2b9; }
html[data-theme="dark"] .gf-option-metric strong,
html[data-theme="dark"] .gf-risk-inputs dd { color: #e2ebf8; }
html[data-theme="dark"] .gf-help { border-color: #34465f; background: #132238; color: #aab9cc; }
html[data-theme="dark"] .gf-skeleton-text { background: linear-gradient(90deg, #17253a 25%, #22334b 50%, #17253a 75%); background-size: 200% 100%; }
html[data-theme="dark"] .gf-risk-unscored { background: #2b2415; }
html[data-theme="dark"] .gf-risk-unscored strong { color: #f3c969; }
html[data-theme="dark"] .gf-risk-unscored p { color: #c9b485; }
html[data-theme="dark"] .gf-risk-inputs div { border-color: #26364c; }

html[data-theme="dark"] .gf-strategy-list > a { border-color: #293a52; background: #0c1829; }
html[data-theme="dark"] .gf-strategy-list > a:hover { border-color: #5e8fc8; background: #12233a; }
html[data-theme="dark"] .gf-strategy-list strong { color: #dce7f5; }
html[data-theme="dark"] .gf-strategy-list small { color: #91a2b9; }
html[data-theme="dark"] .gf-investor-brief { background: linear-gradient(150deg, #0e1a2b 25%, #18162b 100%); }
html[data-theme="dark"] .gf-investor-brief dl div { border-color: #66518f; }
html[data-theme="dark"] .gf-investor-brief dt { color: #b69cff; }
html[data-theme="dark"] .gf-investor-brief dd { color: #bdc9da; }

html[data-theme="dark"] .gf-index-strip-card:hover,
html[data-theme="dark"] .gf-index-strip-card.is-active { border-color: #557fab; background: #12243a; }
html[data-theme="dark"] .gf-index-strip-card span { color: #95a6bc; }
html[data-theme="dark"] .gf-index-strip-card strong { color: #e5edf8; }
html[data-theme="dark"] .gf-components-disclosure > summary { color: #c8d5e7; }
html[data-theme="dark"] .gf-components-disclosure[open] > summary { border-color: #263750; }

html[data-theme="dark"] .gf-breadcrumbs { color: #91a2b9; }
html[data-theme="dark"] .gf-breadcrumbs a { color: #83b5ff; }
html[data-theme="dark"] .gf-trust-hero {
  border-color: #29405f;
  background: linear-gradient(145deg, #0e1a2b 30%, #10233b 100%);
}
html[data-theme="dark"] .gf-trust-hero h1,
html[data-theme="dark"] .gf-trust-sections h2 { color: #edf4ff; }
html[data-theme="dark"] .gf-trust-hero > p:last-child,
html[data-theme="dark"] .gf-trust-sections p,
html[data-theme="dark"] .gf-trust-sections li { color: #aebdd0; }
html[data-theme="dark"] .gf-trust-sections section { border-color: #263750; background: #0e1a2b; box-shadow: var(--gf-shadow); }
html[data-theme="dark"] .gf-trust-callout { background: #11243b; color: #bdcadb; }
html[data-theme="dark"] .gf-trust-callout a { color: #83b5ff; }

@media (prefers-reduced-motion: no-preference) {
  body,
  .gf-header,
  .gf-bottom-nav,
  .gf-intel-hero,
  .gf-intel-card,
  .gf-market-score-card,
  .gf-market-signal-card { transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
}

/* Reference investor dashboard */
.dx-home {
  --dx-page: #f5f8fc;
  --dx-panel: #ffffff;
  --dx-panel-2: #f4f7fb;
  --dx-border: #d9e2ef;
  --dx-text: #172033;
  --dx-muted: #657083;
  --dx-green: #188038;
  --dx-red: #d93025;
  --dx-yellow: #9a6700;
  --dx-blue: #1a73e8;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 24px 0 60px;
  color: var(--dx-text);
}

html[data-theme="dark"] .dx-home {
  --dx-page: #07101d;
  --dx-panel: #0e1828;
  --dx-panel-2: #111e31;
  --dx-border: #24324a;
  --dx-text: #eaf2ff;
  --dx-muted: #8fa1ba;
  --dx-green: #26d07c;
  --dx-red: #ff6275;
  --dx-yellow: #f3c969;
  --dx-blue: #64a7ff;
}

.dx-tickerbar {
  margin: -24px calc(var(--gf-page-gutter) * -1) 24px;
  border-bottom: 1px solid var(--dx-border);
  background: var(--dx-panel-2);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
}
.dx-tickers { display: flex; width: max-content; min-width: 100%; gap: 28px; padding: 9px max(var(--gf-page-gutter), calc((100vw - 1500px) / 2)); font-size: 13px; }
.dx-tickers a { color: inherit; text-decoration: none; }
.dx-tickers a:hover span { color: var(--dx-blue); }
.dx-tickers .dx-index-value { margin-left: 4px; font-weight: 650; color: var(--dx-text); }
.dx-delay-badge {
  border: 1px solid color-mix(in srgb, var(--dx-yellow), var(--dx-border) 45%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--dx-yellow), transparent 86%);
  padding: 2px 8px;
  color: var(--dx-yellow);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
}
.dx-up { color: var(--dx-green) !important; }
.dx-down { color: var(--dx-red) !important; }
.dx-yellow { color: var(--dx-yellow) !important; }

.dx-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(360px, .65fr); gap: 18px; margin-bottom: 18px; }
.dx-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.dx-col8 { grid-column: span 8; }
.dx-col6 { grid-column: span 6; }
.dx-col4 { grid-column: span 4; }
.dx-col12 { grid-column: span 12; }
.dx-card {
  min-width: 0;
  border: 1px solid var(--dx-border);
  border-radius: 16px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--dx-panel-2), var(--dx-panel) 35%), var(--dx-panel));
  padding: 18px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .08);
}
html[data-theme="dark"] .dx-card { box-shadow: 0 14px 34px rgba(0, 0, 0, .16); }
.dx-label { margin: 0; color: var(--dx-muted); font-size: 11px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.dx-symbol-row { display: flex; align-items: center; gap: 13px; margin-top: 5px; }
.dx-symbol-row h1 { margin: 0; color: var(--dx-text); font-size: 34px; font-weight: 900; letter-spacing: -1px; }
.dx-symbol-row p { margin: 1px 0 0; color: var(--dx-muted); }
.dx-price-block { margin-left: auto; text-align: right; }
.dx-price-block strong { display: block; color: var(--dx-text); font-size: 25px; font-weight: 800; }
.dx-price-block span { display: block; margin-top: 2px; font-size: 13px; font-weight: 700; }
.dx-actionbox { margin-top: 17px; border: 1px solid color-mix(in srgb, var(--dx-green), var(--dx-border) 62%); border-radius: 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--dx-green), var(--dx-panel) 88%), color-mix(in srgb, var(--dx-blue), var(--dx-panel) 91%)); padding: 18px; }
.dx-action-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dx-action-title h2 { margin: 4px 0 0; color: var(--dx-text); font-size: 25px; line-height: 1.2; }
.dx-confidence { flex: 0 0 auto; text-align: center; }
.dx-confidence strong { display: block; color: var(--dx-green); font-size: 31px; font-weight: 900; }
.dx-confidence small { color: var(--dx-muted); }
.dx-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 13px; }
.dx-metric, .dx-level { border: 1px solid var(--dx-border); border-radius: 12px; background: var(--dx-panel); padding: 12px; }
.dx-metric strong, .dx-level strong { display: block; margin-top: 5px; color: var(--dx-text); font-size: 18px; }
.dx-reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 13px; }
.dx-reasons span { color: color-mix(in srgb, var(--dx-text), var(--dx-muted) 28%); font-size: 13px; }
.dx-reasons span::before { content: "●"; margin-right: 8px; color: var(--dx-green); }

.dx-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.dx-title h2 { margin: 0; color: var(--dx-text); font-size: 17px; font-weight: 700; }
.dx-title a { color: var(--dx-blue); font-size: 13px; font-weight: 600; text-decoration: none; }
.dx-title a:hover { text-decoration: underline; }
.dx-tag { border: 1px solid var(--dx-border); border-radius: 7px; background: transparent; color: var(--dx-muted); padding: 5px 8px; font: inherit; font-size: 11px; cursor: default; }
button.dx-tag { cursor: pointer; }
button.dx-tag:hover { color: var(--dx-blue); border-color: var(--dx-blue); }
.dx-score-wrap { display: flex; align-items: center; gap: 20px; margin-top: 13px; }
.dx-gauge { display: grid; width: 138px; height: 138px; flex: 0 0 138px; place-items: center; border-radius: 50%; background: conic-gradient(var(--dx-green) 0 calc(var(--score) * 1%), color-mix(in srgb, var(--dx-border), transparent 15%) calc(var(--score) * 1%) 100%); position: relative; }
.dx-gauge::after { content: ""; width: 105px; height: 105px; border-radius: 50%; background: var(--dx-panel); position: absolute; }
.dx-gauge div { z-index: 1; text-align: center; }
.dx-gauge b { display: block; font-size: 30px; }
.dx-gauge small { color: var(--dx-muted); }
.dx-score-list { flex: 1; min-width: 0; }
.dx-bar { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; margin: 10px 0; font-size: 13px; }
.dx-bar > div { grid-column: 1 / -1; height: 7px; border-radius: 20px; background: color-mix(in srgb, var(--dx-border), transparent 15%); overflow: hidden; }
.dx-bar i { display: block; height: 100%; border-radius: 20px; background: linear-gradient(90deg, var(--dx-blue), var(--dx-green)); transition: width .3s ease; }
.dx-score-note { margin: 12px 0 0; color: var(--dx-muted); font-size: 12px; line-height: 1.5; }

.dx-levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.dx-level { padding: 14px; }
.dx-level strong { font-size: 20px; }
.dx-support strong { color: var(--dx-green); }
.dx-resistance strong { color: var(--dx-red); }
.dx-chart { height: 218px; margin-top: 12px; border: 1px solid var(--dx-border); border-radius: 12px; background: linear-gradient(color-mix(in srgb, var(--dx-border), transparent 52%) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--dx-border), transparent 52%) 1px, transparent 1px); background-size: 100% 44px, 70px 100%; overflow: hidden; position: relative; }
.dx-chart svg { width: 100%; height: 100%; position: absolute; inset: 0; }
.dx-chart polyline { stroke: var(--dx-blue); stroke-width: 4; vector-effect: non-scaling-stroke; }
.dx-chart line { stroke-width: 1.5; stroke-dasharray: 7 7; vector-effect: non-scaling-stroke; }
.dx-chart [data-support-line] { stroke: var(--dx-green); }
.dx-chart [data-resistance-line] { stroke: var(--dx-red); }
.dx-chart-status { position: absolute; inset: 0; display: grid; place-items: center; color: var(--dx-muted); font-size: 12px; pointer-events: none; }
.dx-change { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--dx-border); padding: 11px 0; font-size: 13px; }
.dx-change:last-child { border-bottom: 0; }
.dx-change b { text-align: right; }
.dx-alert { border-left: 3px solid var(--dx-yellow); border-radius: 8px; background: color-mix(in srgb, var(--dx-yellow), var(--dx-panel) 89%); padding: 10px 12px; font-size: 13px; line-height: 1.5; }

.dx-table-wrap { overflow-x: auto; }
.dx-table { width: 100%; min-width: 650px; border-collapse: collapse; font-size: 13px; }
.dx-table th, .dx-table td { border-bottom: 1px solid var(--dx-border); padding: 11px 8px; text-align: left; }
.dx-table thead th { color: var(--dx-muted); font-weight: 600; }
.dx-table tbody tr:last-child td { border-bottom: 0; }
.dx-badge { display: inline-flex; border-radius: 999px; background: color-mix(in srgb, var(--dx-blue), var(--dx-panel) 84%); padding: 4px 7px; font-size: 11px; font-weight: 700; }
.dx-source { margin: 10px 0 0; color: var(--dx-muted); font-size: 11px; line-height: 1.45; }
.dx-trade { display: block; margin-top: 10px; border: 1px solid var(--dx-border); border-radius: 12px; background: var(--dx-panel); padding: 14px; color: inherit; text-decoration: none; }
.dx-trade:hover { border-color: var(--dx-blue); }
.dx-trade > div { display: flex; justify-content: space-between; gap: 12px; }
.dx-trade > div span { font-weight: 700; }
.dx-trade p { margin: 8px 0; color: var(--dx-muted); font-size: 12px; }
.dx-trade dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; font-size: 12px; }
.dx-trade dl div { border-radius: 8px; background: var(--dx-panel-2); padding: 8px; }
.dx-trade dt { color: var(--dx-muted); }
.dx-trade dd { margin: 2px 0 0; font-weight: 700; }
.dx-brief { min-height: 104px; margin: 0 0 16px; color: color-mix(in srgb, var(--dx-text), var(--dx-muted) 22%); font-size: 14px; line-height: 1.65; }
.dx-radar { min-width: 900px; }
.dx-radar tbody tr { cursor: pointer; }
.dx-radar tbody tr:hover, .dx-radar tbody tr.is-selected { background: color-mix(in srgb, var(--dx-blue), var(--dx-panel) 92%); }
.dx-radar tbody tr.is-selected { box-shadow: inset 3px 0 var(--dx-blue); }
.dx-radar button { border: 0; background: transparent; color: var(--dx-text); padding: 0; text-align: left; cursor: pointer; }
.dx-radar button b, .dx-radar button small { display: block; }
.dx-radar button small { max-width: 170px; margin-top: 2px; overflow: hidden; color: var(--dx-muted); text-overflow: ellipsis; white-space: nowrap; }
.dx-footer-note { margin: 26px 0 0; color: var(--dx-muted); font-size: 12px; text-align: center; }
.dx-empty { text-align: center; color: var(--dx-muted); }

@media (max-width: 1000px) {
  .dx-hero { grid-template-columns: 1fr; }
  .dx-col8, .dx-col6, .dx-col4 { grid-column: span 12; }
}
@media (max-width: 650px) {
  .dx-home { padding-top: 16px; }
  .dx-tickerbar { margin-top: -16px; margin-bottom: 16px; }
  .dx-card { padding: 14px; border-radius: 13px; }
  .dx-symbol-row, .dx-action-title { align-items: flex-start; }
  .dx-action-title h2 { font-size: 20px; }
  .dx-price-block strong { font-size: 21px; }
  .dx-three, .dx-levels, .dx-reasons { grid-template-columns: 1fr 1fr; }
  .dx-score-wrap { align-items: flex-start; flex-direction: column; }
  .dx-score-list { width: 100%; }
  .dx-gauge { align-self: center; }
  .dx-grid, .dx-hero { gap: 12px; }
}
