:root {
  --bg: #071019;
  --bg-deep: #040a11;
  --panel: #0c1823;
  --panel-2: #101f2c;
  --line: rgba(148, 176, 198, 0.16);
  --line-strong: rgba(148, 176, 198, 0.3);
  --text: #e9f1f7;
  --muted: #8da3b3;
  --dim: #657b8b;
  --cyan: #27d7e8;
  --blue: #55b9ff;
  --purple: #c084ff;
  --red: #ff6575;
  --orange: #ff9a55;
  --green: #51d69c;
  --gold: #e9c46a;
  --radius: 18px;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg-deep);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 12% -10%, rgba(39, 215, 232, 0.12), transparent 34rem),
    radial-gradient(circle at 88% 4%, rgba(192, 132, 255, 0.09), transparent 32rem),
    linear-gradient(180deg, #091520 0, var(--bg) 28rem, var(--bg-deep) 100%);
  

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
}

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

button,
input {
  font: inherit;
}

.site-header {
  width: min(1440px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 20px;
}

.header-main,
.stock-title-row,
.stock-meta,
.chart-toolbar,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  user-select: none;
}

.brand-glyph {
  flex: 0 0 auto;
  filter: drop-shadow(0 4px 14px rgba(39, 215, 232, 0.22));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.brand:hover .brand-glyph {
  transform: translateY(-1px);
  filter: drop-shadow(0 6px 18px rgba(168, 85, 247, 0.38));
}

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

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  font-family:
    "Segoe UI Black",
    "Arial Black",
    "Montserrat",
    "Inter",
    system-ui,
    sans-serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand-ai {
  background: linear-gradient(135deg, #27d7e8 15%, #c084ff 95%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-lh {
  color: #ffffff;
}

.brand-tld {
  margin-left: 1.5px;
  padding: 0;
  color: #27d7e8;
  background: none;
  border: 0;
  font-family:
    "Segoe UI Black",
    "Arial Black",
    "Montserrat",
    "Inter",
    system-ui,
    sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.03em;
  transform: none;
}

.brand-divider {
  width: 1.5px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(39, 215, 232, 0.2), rgba(39, 215, 232, 0.95) 50%, rgba(192, 132, 255, 0.35));
  box-shadow: 0 0 8px rgba(39, 215, 232, 0.45);
}

.brand-cn {
  display: inline-flex;
  align-items: center;
  color: #f1f5f9;
  font-family:
    "PingFang SC",
    "HarmonyOS Sans SC",
    "Microsoft YaHei UI",
    sans-serif;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: 0.03em;
  line-height: 1;
}

.brand-cn-ai {
  margin-right: 3px;
  color: #27d7e8;
  font-family:
    "Segoe UI Black",
    "Arial Black",
    "Montserrat",
    "Inter",
    sans-serif;
  font-size: 16.5px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.data-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(12, 24, 35, 0.72);
  font-size: 12px;
}

.data-badge strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.compliance-line {
  margin: 16px 0 20px;
  color: var(--muted);
  font-size: 13px;
}

.search-shell {
  position: relative;
  max-width: 760px;
}

.search-shell > label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.search-input-wrap {
  position: relative;
}

.search-input-wrap input {
  width: 100%;
  min-height: 54px;
  padding: 0 48px 0 17px;
  color: var(--text);
  background: linear-gradient(180deg, rgba(17, 34, 48, 0.96), rgba(9, 22, 33, 0.96));
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  outline: none;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-input-wrap input:focus {
  border-color: rgba(39, 215, 232, 0.66);
  box-shadow: 0 0 0 4px rgba(39, 215, 232, 0.09);
}

.search-input-wrap input::placeholder {
  color: #607786;
}

.search-hint {
  position: absolute;
  right: 18px;
  top: 50%;
  color: var(--cyan);
  font-size: 26px;
  transform: translateY(-52%);
}

.search-results {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  width: 100%;
  max-height: 370px;
  overflow: auto;
  padding: 7px;
  background: #0b1823;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.search-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
}

.search-result:hover,
.search-result:focus {
  background: rgba(39, 215, 232, 0.09);
  outline: none;
}

.search-result small {
  color: var(--muted);
}

.page-shell {
  width: min(1440px, calc(100% - 28px));
  margin: 0 auto 50px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}

.metric-card {
  min-height: 124px;
  padding: 17px;
  background:
    linear-gradient(135deg, rgba(19, 40, 55, 0.94), rgba(8, 20, 30, 0.94));
  border: 1px solid var(--line);
  border-radius: 16px;
}

.metric-card > span,
.metric-card small {
  display: block;
  color: var(--muted);
}

.metric-card > span {
  margin-bottom: 8px;
  font-size: 12px;
}

.metric-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.metric-card small {
  font-size: 11px;
}

.alert-card.purple {
  border-color: rgba(192, 132, 255, 0.28);
}

.alert-card.blue {
  border-color: rgba(85, 185, 255, 0.28);
}

.alert-card.red {
  border-color: rgba(255, 101, 117, 0.28);
}

.alert-card.orange {
  border-color: rgba(255, 154, 85, 0.28);
}

.radar-panel,
.chart-panel,
.detail-card,
.history-strip {
  margin-bottom: 18px;
  background: rgba(9, 21, 31, 0.84);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.radar-panel,
.chart-panel,
.history-strip {
  padding: 18px;
}

.section-heading {
  align-items: flex-end;
  margin-bottom: 17px;
}

.section-heading.compact {
  margin-bottom: 12px;
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.16em;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
}

.radar-panel h1 {
  font-size: clamp(22px, 3vw, 30px);
}

.section-heading h2 {
  font-size: 20px;
}

.section-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.tab-list {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 1px 1px 11px;
  scrollbar-width: thin;
}

.tab-button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 13px;
  color: var(--muted);
  background: rgba(15, 31, 44, 0.9);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.tab-button.active {
  color: #071019;
  background: var(--cyan);
  border-color: var(--cyan);
  font-weight: 750;
}

.radar-content {
  min-height: 170px;
}

.radar-list {
  display: grid;
  gap: 9px;
}

.radar-row {
  display: grid;
  grid-template-columns: minmax(130px, 1.1fr) minmax(88px, 0.55fr) minmax(0, 2.2fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: linear-gradient(120deg, rgba(15, 31, 44, 0.88), rgba(8, 19, 28, 0.73));
  border: 1px solid transparent;
  border-radius: 13px;
  transition: border-color 150ms ease, transform 150ms ease;
}

.radar-row:hover {
  border-color: rgba(39, 215, 232, 0.34);
  transform: translateY(-1px);
}

.stock-identity strong {
  display: block;
  font-size: 15px;
}

.stock-identity small,
.row-meta,
.row-copy small {
  color: var(--muted);
  font-size: 11px;
}

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

.quote-cell strong {
  display: block;
  font-size: 17px;
}

.positive {
  color: var(--red) !important;
}

.negative {
  color: var(--green) !important;
}

.row-copy p {
  display: -webkit-box;
  margin: 0 0 4px;
  overflow: hidden;
  color: #c8d8e3;
  font-size: 12px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.empty-state {
  display: grid;
  min-height: 150px;
  place-items: center;
  padding: 22px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 13px;
}

.stock-header {
  padding-bottom: 18px;
}

.back-link {
  padding: 8px 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
}

.back-link:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.stock-title-row {
  align-items: flex-end;
  margin-top: 28px;
}

.stock-code {
  margin: 0 0 3px;
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.stock-title-row h1 {
  font-size: clamp(26px, 5vw, 42px);
}

.price-block {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.price-block strong {
  display: block;
  font-size: clamp(30px, 6vw, 46px);
  line-height: 1.1;
}

.price-block span {
  color: var(--muted);
}

.stock-meta {
  justify-content: flex-start;
  margin-top: 13px;
  color: var(--muted);
  font-size: 12px;
}

.stock-meta span {
  padding: 5px 9px;
  background: rgba(15, 31, 44, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.recent-five {
  display: grid;
  grid-auto-columns: minmax(156px, 1fr);
  grid-auto-flow: column;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-width: thin;
}

.history-card {
  position: relative;
  min-height: 112px;
  padding: 12px;
  text-align: left;
  color: var(--text);
  background: linear-gradient(150deg, rgba(18, 38, 53, 0.98), rgba(8, 19, 29, 0.96));
  border: 1px solid var(--line);
  border-radius: 13px;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease;
}

.history-card:hover,
.history-card:focus {
  border-color: rgba(39, 215, 232, 0.5);
  outline: none;
  transform: translateY(-1px);
}

.history-date {
  color: var(--muted);
  font-size: 11px;
}

.history-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.history-main strong {
  font-size: 15px;
}

.history-tag {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 7px;
  color: #bcd0dd;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 7px;
  font-size: 11px;
}

.history-icons {
  position: absolute;
  right: 10px;
  bottom: 9px;
  display: flex;
  gap: 4px;
}

.mini-icon {
  display: inline-grid;
  width: 13px;
  height: 13px;
  place-items: center;
  color: #061019;
  border-radius: 50%;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}

.mini-icon.probe {
  background: var(--purple);
}

.mini-icon.short {
  background: var(--red);
}

.mini-icon.lure {
  color: var(--orange);
  background: transparent;
  font-size: 16px;
}

.chart-toolbar {
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.legend-guide {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  color: var(--muted);
  font-size: 11px;
}

.legend-guide span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.legend-dot.purple {
  background: var(--purple);
  box-shadow: 0 0 9px var(--purple);
}

.legend-dot.blue {
  background: var(--blue);
  box-shadow: 0 0 7px var(--blue);
}

.legend-dot.red {
  width: 0;
  height: 0;
  border-right: 6px solid transparent;
  border-bottom: 10px solid var(--red);
  border-left: 6px solid transparent;
  border-radius: 0;
  transform: rotate(180deg);
}

.legend-cross {
  display: inline-flex;
  width: 12px;
  height: 12px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--orange);
  font-size: 16px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}

.history-mobile-signal {
  display: none;
}

.legend-market {
  display: inline-block;
  width: 9px;
  height: 12px;
  background:
    linear-gradient(
      90deg,
      rgba(255, 138, 128, 0.28) 0 42%,
      transparent 42% 58%,
      rgba(38, 166, 154, 0.26) 58% 100%
    );
  border: 1px solid rgba(148, 176, 198, 0.24);
  border-radius: 2px;
}

.toggle-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
}

.toggle-control input {
  accent-color: var(--cyan);
}

.stock-chart {
  width: 100%;
  height: min(62vh, 640px);
  min-height: 470px;
}

.chart-tip {
  margin: 3px 0 0;
  color: var(--dim);
  font-size: 11px;
}

.detail-card {
  padding: 18px;
}

.detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.detail-head h2 {
  margin-bottom: 4px;
  font-size: 22px;
}

.detail-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.detail-pct {
  flex: 0 0 auto;
  font-size: 24px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.detail-section {
  padding-top: 16px;
}

.detail-section h3 {
  margin: 0 0 9px;
  font-size: 14px;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 11px;
}

.fact-grid span {
  padding: 8px 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 8px;
  font-size: 11px;
}

.fact-grid strong {
  float: right;
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.plain-paragraph {
  margin: 0;
  color: #c8d8e3;
  font-size: 13px;
}

.alert-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.alert-detail {
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.alert-detail strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.alert-detail p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.similar-grid {
  display: grid;
  gap: 8px;
}

.similar-card {
  width: 100%;
  padding: 12px;
  color: var(--text);
  text-align: left;
  background: rgba(15, 31, 44, 0.72);
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
}

.similar-card:hover,
.similar-card:focus {
  border-color: rgba(85, 185, 255, 0.45);
  outline: none;
}

.similar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.similar-top strong {
  font-size: 13px;
}

.similar-top span {
  color: var(--cyan);
  font-size: 12px;
}

.similar-card p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 11px;
}

.history-summary {
  margin: 10px 0 0;
  padding: 10px 12px;
  color: #d1e3ee;
  background: rgba(39, 215, 232, 0.06);
  border-left: 2px solid var(--cyan);
  font-size: 12px;
}

.site-footer {
  width: min(1440px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 32px;
  color: var(--dim);
  border-top: 1px solid var(--line);
  font-size: 11px;
}

.site-footer p {
  margin: 4px 0;
}

@media (min-width: 760px) {
  .site-header,
  .page-shell,
  .site-footer {
    width: min(1440px, calc(100% - 44px));
  }

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

  .radar-row {
    grid-template-columns: minmax(170px, 0.75fr) minmax(110px, 0.42fr) minmax(0, 2fr);
  }

  .recent-five {
    grid-auto-flow: initial;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: visible;
  }
}

@media (min-width: 1120px) {
  .site-header {
    display: grid;
    grid-template-columns: 1.1fr 1.8fr;
    column-gap: 42px;
    align-items: end;
  }

  .header-main,
  .compliance-line {
    grid-column: 1;
  }

  .search-shell {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: end;
  }

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

  .stock-header {
    display: block;
  }

  .detail-section.history {
    padding-bottom: 4px;
  }
}

@media (max-width: 640px) {
  .site-header,
  .page-shell,
  .site-footer {
    width: calc(100% - 20px);
  }

  .site-header {
    padding-top: 17px;
  }

  .header-main {
    gap: 8px;
  }

  .brand {
    font-size: 16px;
  }

  .data-badge {
    padding: 5px 9px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .section-note {
    text-align: left;
  }

  .radar-panel,
  .chart-panel,
  .detail-card,
  .history-strip {
    padding: 13px;
    border-radius: 14px;
  }

  .radar-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .row-copy {
    grid-column: 1 / -1;
  }

  .stock-chart {
    height: 510px;
    min-height: 510px;
  }

  .fact-grid {
    grid-template-columns: 1fr;
  }

  .detail-head {
    gap: 10px;
  }

  .detail-head h2 {
    font-size: 19px;
  }
}

/* Stock hologram immersive layout and rich tooltip */
body[data-page="stock"] .stock-header {
  width: 100%;
  max-width: none;
  padding: 10px 16px 8px;
}

body[data-page="stock"] .stock-shell {
  width: 100%;
  max-width: none;
  margin: 0 auto 24px;
  padding: 10px 16px;
}

body[data-page="stock"] .site-footer {
  width: 100%;
  max-width: none;
  padding: 12px 16px 24px;
}

body[data-page="stock"] .stock-title-row {
  margin-top: 2px;
}

body[data-page="stock"] .stock-title-row h1 {
  font-size: clamp(27px, 3vw, 38px);
}

body[data-page="stock"] .stock-meta {
  margin-top: 4px;
}

body[data-page="stock"] .history-strip {
  padding: 8px 10px;
  margin-bottom: 10px;
}

body[data-page="stock"] .section-heading {
  margin-bottom: 6px;
}

body[data-page="stock"] .history-strip .eyebrow {
  display: none;
}

body[data-page="stock"] .history-strip .section-heading h2 {
  font-size: 18px;
}

body[data-page="stock"] .chart-panel {
  padding: 10px 12px 8px;
  margin-bottom: 10px;
}

body[data-page="stock"] .chart-toolbar {
  margin-bottom: 0;
}

body[data-page="stock"] .legend-guide {
  gap: 6px 14px;
}

.chart-usage {
  color: var(--dim);
  font-size: 10px;
}

.legend-volume {
  display: inline-block;
  width: 7px;
  height: 13px;
  border-radius: 2px;
}

.legend-volume.green {
  background: #00e676;
  border: 1px solid #69f0ae;
  box-shadow: 0 0 7px rgba(0, 230, 118, 0.75);
}

.legend-volume.gold {
  background: #ffd700;
  border: 1px solid #ffe57f;
  box-shadow: 0 0 7px rgba(255, 215, 0, 0.75);
}

body[data-page="stock"] .stock-chart {
  height: calc(100vh - 235px);
  min-height: 600px;
}

body[data-page="stock"] .recent-five {
  display: grid;
  grid-auto-flow: initial;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
  overflow-x: auto;
  padding: 3px 3px 6px;
  margin: -3px -3px 0;
  scrollbar-width: thin;
}

body[data-page="stock"] .history-card {
  display: flex;
  height: 100%;
  position: relative;
  min-width: 0;
  min-height: 112px;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 12px 9px;
  overflow: visible;
  background:
    radial-gradient(circle at 100% 0, rgba(39, 215, 232, 0.08), transparent 9rem),
    linear-gradient(145deg, rgba(20, 42, 58, 0.98), rgba(8, 20, 30, 0.97));
  border-color: rgba(129, 164, 185, 0.18);
  border-radius: 13px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

body[data-page="stock"] .history-card.active {
  border-color: rgba(39, 215, 232, 0.68);
  box-shadow:
    inset 0 0 0 1px rgba(39, 215, 232, 0.6),
    0 0 0 2px rgba(39, 215, 232, 0.09);
}

.history-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.history-topline {
  color: #a8bac6;
  font-size: 12px;
}

.history-topline > span {
  color: #a8bac6;
}

.history-date-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.history-date {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  padding: 2px 8px;
  color: #f0f6f9;
  background: rgba(84, 119, 142, 0.18);
  border: 1px solid rgba(144, 178, 199, 0.13);
  border-radius: 7px;
  font-size: 17px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.history-topline strong {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.history-title {
  display: block;
  margin: 10px 0 7px;
  overflow: hidden;
  color: #f0f6fa;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-data {
  display: block;
  min-height: 28px;
  overflow: hidden;
  color: #e9c46a;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
  white-space: normal;
}

.story-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

.story-pill {
  display: inline-flex;
  max-width: 100%;
  padding: 2px 6px;
  overflow: hidden;
  color: #afc9d8;
  background: rgba(85, 185, 255, 0.09);
  border: 1px solid rgba(85, 185, 255, 0.14);
  border-radius: 999px;
  font-size: 9px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-pill:nth-child(2n) {
  color: #dec88d;
  background: rgba(233, 196, 106, 0.08);
  border-color: rgba(233, 196, 106, 0.14);
}

.story-pill:nth-child(3n) {
  color: #c9b6ef;
  background: rgba(192, 132, 255, 0.08);
  border-color: rgba(192, 132, 255, 0.14);
}

body[data-page="stock"] .detail-card {
  padding: 16px;
}

.similar-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 13px;
}

.similar-section-head > div > span {
  color: var(--cyan);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.similar-section-head h2 {
  margin-top: 2px;
  font-size: 20px;
}

.similar-section-head > p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.similar-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body[data-page="stock"] .similar-card {
  position: relative;
  display: block;
  min-width: 0;
  padding: 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 0, rgba(39, 215, 232, 0.07), transparent 13rem),
    linear-gradient(150deg, rgba(18, 38, 53, 0.96), rgba(7, 18, 28, 0.97));
  border: 1px solid rgba(129, 164, 185, 0.18);
  border-radius: 14px;
}

body[data-page="stock"] .similar-card:hover {
  border-color: rgba(39, 215, 232, 0.52);
  transform: translateY(-2px);
}

.similar-header,
.similarity-caption,
.similar-day,
.tooltip-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rank-badge {
  padding: 2px 8px;
  color: #07131c;
  background: linear-gradient(90deg, #27d7e8, #7fe7ef);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.similar-header strong {
  color: #d8e6ef;
  font-size: 12px;
}

.similarity-line {
  height: 5px;
  margin: 13px 0 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.055);
  border-radius: 999px;
}

.similarity-line span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #27d7e8, #83e9f1);
  border-radius: inherit;
  box-shadow: 0 0 12px rgba(39, 215, 232, 0.42);
}

.similarity-caption {
  color: var(--muted);
  font-size: 10px;
}

.similarity-caption b {
  color: var(--cyan);
  font-size: 12px;
}

.similar-day {
  justify-content: flex-start;
  margin: 14px 0 8px;
}

.similar-day strong {
  font-size: 25px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.similar-day span {
  color: #e5edf2;
  font-size: 13px;
  font-weight: 700;
}

.similar-summary {
  min-height: 36px;
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 11px;
}

.similar-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 25px;
  margin-bottom: 10px;
}

.similar-reasons span {
  padding: 2px 6px;
  color: #b9d7e5;
  background: rgba(85, 185, 255, 0.08);
  border: 1px solid rgba(85, 185, 255, 0.13);
  border-radius: 999px;
  font-size: 9px;
}

.after-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.after-cell {
  padding: 7px 5px;
  text-align: center;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 8px;
}

.after-cell small {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 9px;
}

.after-cell strong {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.locate-history {
  display: block;
  margin-top: 10px;
  color: var(--cyan);
  font-size: 10px;
  text-align: right;
}

.similar-summary-bar {
  margin-top: 10px;
  padding: 9px 12px;
  color: #b7cad7;
  background: rgba(39, 215, 232, 0.045);
  border: 1px solid rgba(39, 215, 232, 0.1);
  border-radius: 9px;
  font-size: 10px;
  text-align: center;
}

/* ECharts rich tooltip */
.tooltip-shell {
  width: min(470px, calc(100vw - 64px));
  max-height: min(700px, calc(100vh - 360px));
  overflow-x: hidden;
  overflow-y: auto;
  color: #e9f1f7;
  pointer-events: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(39, 215, 232, 0.36) transparent;
  scrollbar-width: thin;
  white-space: normal;
}

.tooltip-shell::-webkit-scrollbar {
  width: 7px;
}

.tooltip-shell::-webkit-scrollbar-thumb {
  background: rgba(39, 215, 232, 0.34);
  border-radius: 999px;
}

.tooltip-head {
  position: sticky;
  z-index: 3;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 15px 11px;
  background:
    linear-gradient(110deg, rgba(39, 215, 232, 0.14), rgba(192, 132, 255, 0.07)),
    rgba(8, 19, 29, 0.96);
  border-bottom: 1px solid rgba(129, 164, 185, 0.14);
  backdrop-filter: blur(18px);
}

.tooltip-head small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.tooltip-head strong {
  font-size: 16px;
}

.tooltip-head > div:last-child {
  text-align: right;
}

.tooltip-head > div:last-child span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.tooltip-head > div:last-child b {
  font-size: 19px;
}

.tooltip-section {
  padding: 9px 15px 10px;
  border-bottom: 1px solid rgba(129, 164, 185, 0.11);
}

.tooltip-section:nth-of-type(2n) {
  background: rgba(255, 255, 255, 0.012);
}

.tooltip-section:last-child {
  border-bottom: 0;
}

.tooltip-section h4 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  color: #9df2f7;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.tooltip-section h4::before {
  width: 3px;
  height: 11px;
  content: "";
  background: linear-gradient(180deg, var(--cyan), var(--purple));
  border-radius: 99px;
  box-shadow: 0 0 8px rgba(39, 215, 232, 0.4);
}

.tooltip-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.tooltip-facts > span {
  padding: 6px 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.032);
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 7px;
  font-size: 9px;
}

.tooltip-facts b {
  float: right;
  color: #e9f1f7;
  font-size: 10px;
}

.tooltip-ignition {
  padding: 2px 6px;
  color: #061018;
  background: #00e676;
  border-radius: 999px;
  font-weight: 800;
}

.tooltip-support {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}

.tooltip-support-row {
  display: grid;
  grid-template-columns: 102px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 5px 7px;
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: 7px;
  font-size: 9px;
}

.tooltip-support-row span {
  color: #91a9b8;
}

.tooltip-support-row strong {
  color: #c8d9e4;
  font-weight: 500;
}

.tooltip-support-row.support-market {
  border-left: 2px solid #7da8c7;
}

.tooltip-support-row.support-flow {
  border-left: 2px solid #ff8a80;
}

.tooltip-support-row.support-active {
  border-left: 2px solid #55b9ff;
}

.tooltip-support-row.support-support {
  border-left: 2px solid #c084ff;
}

.tooltip-support-row.support-volume {
  border-left: 2px solid #e9c46a;
}

.tooltip-title {
  margin: 2px 0 5px;
  color: #f3f7fa;
  font-size: 14px;
  font-weight: 750;
}

.tooltip-summary {
  margin: 0;
  color: #b9cdd9;
  font-size: 10px;
  line-height: 1.5;
}

.tooltip-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 7px;
}

.tooltip-pills span {
  padding: 2px 6px;
  color: #b9d8e5;
  background: rgba(85, 185, 255, 0.085);
  border: 1px solid rgba(85, 185, 255, 0.13);
  border-radius: 999px;
  font-size: 8px;
}

.tooltip-alert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.tooltip-alert {
  padding: 8px 9px;
  background: linear-gradient(120deg, rgba(255,255,255,.04), rgba(255,255,255,.018));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left-width: 3px;
  border-radius: 7px;
}

.tooltip-alert.tone-probe {
  border-left-color: #c084ff;
}

.tooltip-alert.tone-short {
  border-left-color: #ff6575;
}

.tooltip-alert.tone-lure {
  border-left-color: #ff9a55;
}

.tooltip-alert.tone-ignition {
  border-left-color: #00e676;
}

.tooltip-alert strong {
  display: block;
  margin-bottom: 2px;
  font-size: 10px;
}

.tooltip-alert p {
  margin: 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
}

.tooltip-empty {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.tooltip-history-list {
  display: grid;
  gap: 5px;
}

.tooltip-history-row {
  padding: 7px 8px;
  background: rgba(255, 255, 255, 0.026);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
}

.tooltip-history-head strong {
  font-size: 10px;
}

.tooltip-history-head span {
  color: var(--cyan);
  font-size: 9px;
}

.tooltip-history-meta {
  display: flex;
  gap: 7px;
  margin: 2px 0;
  font-size: 9px;
}

.tooltip-history-row p {
  margin: 0 0 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tooltip-horizon {
  display: flex;
  gap: 8px;
  font-size: 8px;
}

.tooltip-horizon b {
  margin-left: 3px;
}

.tooltip-note {
  margin: 6px 0 0;
  color: #728b9a;
  font-size: 8px;
}

@media (max-width: 760px) {
  body[data-page="stock"] .stock-header {
    padding: 9px 10px 7px;
  }

  body[data-page="stock"] .stock-shell {
    padding: 8px 10px 16px;
  }

  body[data-page="stock"] .history-strip {
    overflow: hidden;
  }

  body[data-page="stock"] .recent-five {
    display: flex;
    overflow-x: auto;
    gap: 24px;
  }

  body[data-page="stock"] .history-card {
    flex: 0 0 218px;
  }

  body[data-page="stock"] .stock-chart {
    height: 640px;
    min-height: 600px;
  }

  .similar-cards {
    grid-template-columns: 1fr;
  }

  .similar-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

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

  .tooltip-support-row {
    grid-template-columns: 88px minmax(0, 1fr);
  }
}

/* Three-card day panel and mobile workspace */
body[data-page="stock"] .hologram-workspace {
  grid-template-columns: minmax(0, 1fr) 370px;
}

body[data-page="stock"] .hologram-workspace .chart-panel {
  position: relative;
  background: #060e16;
  border-color: rgba(72, 118, 145, 0.2);
}

.history-unlock-pill {
  display: inline-flex;
  padding: 3px 7px;
  color: #d7f8ff;
  background: rgba(39, 215, 232, 0.09);
  border: 1px solid rgba(39, 215, 232, 0.26);
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(39, 215, 232, 0.08);
  font-size: 10.5px;
  font-style: normal;
  font-weight: 750;
  line-height: 1.35;
}

body[data-page="stock"] .day-panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 8px;
  background: #0e1d2b;
  border: 1px solid rgba(56, 189, 248, 0.22);
  box-shadow:
    -14px 0 34px rgba(1, 8, 14, 0.3),
    0 18px 50px rgba(0, 0, 0, 0.24);
  scrollbar-color: rgba(56, 189, 248, 0.32) transparent;
  scrollbar-width: thin;
  overscroll-behavior: contain;
}

.day-card {
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
  padding: 9px 10px;
  background:
    linear-gradient(145deg, rgba(19, 40, 56, 0.94), rgba(10, 25, 38, 0.96));
  border: 1px solid rgba(129, 164, 185, 0.13);
  border-radius: 13px;
}

.day-overview-card {
  background:
    radial-gradient(circle at 100% 0, rgba(39, 215, 232, 0.1), transparent 14rem),
    linear-gradient(145deg, rgba(20, 43, 60, 0.96), rgba(10, 26, 39, 0.97));
}

.day-card-top,
.panel-date-wrap,
.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.panel-date-wrap {
  justify-content: flex-start;
}

.panel-latest {
  padding: 2px 7px;
  color: #031018;
  background: #7ff4ff;
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.panel-title-row {
  margin: 6px 0 5px;
}

.panel-title-row h2 {
  margin: 0;
  color: #f3f8fb;
  font-size: 18px;
  line-height: 1.3;
}

.panel-title-row > strong {
  flex: 0 0 auto;
  font-size: 24px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.panel-summary {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #c3d4df;
  font-size: 12px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.day-card h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  color: #9ceef4;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.day-card h3::before {
  width: 3px;
  height: 11px;
  content: "";
  background: linear-gradient(180deg, var(--cyan), var(--purple));
  border-radius: 999px;
}

.panel-quote-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-bottom: 5px;
  color: #8da7b7;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.panel-quote-strip b {
  color: #e6f0f5;
}

.panel-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.matrix-cell {
  min-width: 0;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 9px;
}

.matrix-cell small {
  display: block;
  margin-bottom: 2px;
  color: #8298a7;
  font-size: 11.5px;
}

.matrix-cell strong {
  display: block;
  color: #ecf5f9;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.matrix-cell p {
  margin: 2px 0 0;
  color: #8198a7;
  font-size: 11px;
  line-height: 1.45;
}

.day-alert-card .panel-alerts {
  max-height: 100%;
}

.day-alert-card .panel-alert {
  padding: 7px 9px;
}

.day-alert-card .panel-alert p {
  display: block;
}

.similar-card {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.similar-cards {
  align-items: stretch;
}

.similar-card .after-grid {
  margin-top: auto;
}

@media (max-width: 960px) {
  body[data-page="stock"] .stock-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1px 10px;
    padding: 4px 10px 3px;
  }

  body[data-page="stock"] .stock-header .header-main {
    grid-column: 1 / -1;
    min-height: 18px;
  }

  body[data-page="stock"] .stock-header .back-link {
    padding: 3px 7px;
    font-size: 10px;
  }

  body[data-page="stock"] .stock-title-row {
    grid-column: 1;
    margin: 0;
  }

  body[data-page="stock"] .stock-title-row h1 {
    font-size: 22px;
    line-height: 1.15;
  }

  body[data-page="stock"] .stock-code {
    margin-bottom: 0;
    font-size: 9px;
  }

  body[data-page="stock"] .price-block {
    grid-column: 2;
    grid-row: 2;
  }

  body[data-page="stock"] .price-block strong {
    font-size: 22px;
  }

  body[data-page="stock"] .price-block span {
    font-size: 11px;
  }

  body[data-page="stock"] .stock-meta {
    display: none;
  }

  body[data-page="stock"] .stock-meta span {
    padding: 1px 6px;
  }

  body[data-page="stock"] .stock-shell {
    padding: 6px 10px 14px;
  }

  body[data-page="stock"] .history-strip {
    padding: 8px;
  }

  body[data-page="stock"] .recent-five {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  body[data-page="stock"] .recent-five::-webkit-scrollbar {
    display: none;
  }

  body[data-page="stock"] .history-card {
    flex: 0 0 clamp(62vw, 220px, 220px);
    min-height: 112px;
    scroll-snap-align: end;
  }

  body[data-page="stock"] .hologram-workspace {
    display: flex;
    height: auto;
    flex-direction: column;
  }

  body[data-page="stock"] .hologram-workspace .chart-panel {
    flex: none;
    height: 420px;
    min-height: 390px;
  }

  body[data-page="stock"] .hologram-workspace .stock-chart {
    height: auto;
    min-height: 0;
  }

  body[data-page="stock"] .day-panel {
    display: flex;
    height: auto;
    overflow: visible;
    flex-direction: column;
  }

  .day-card {
    overflow: visible;
  }

  .panel-summary {
    -webkit-line-clamp: unset;
  }

  .similar-cards {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .similar-cards::-webkit-scrollbar {
    display: none;
  }

  body[data-page="stock"] .similar-card {
    flex: 0 0 84vw;
    scroll-snap-align: start;
  }
}

@media (min-width: 1100px) {
  body[data-page="stock"] .hologram-workspace {
    height: calc(100vh - 370px);
    min-height: 520px;
  }
}

@media (max-width: 760px) {
  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-input-wrap input {
    font-size: 16px;
  }

  .tab-list {
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .tab-list::-webkit-scrollbar {
    display: none;
  }

  .radar-row {
    min-height: 54px;
  }
}

@media (max-width: 768px) {
  body[data-page="stock"] .recent-five {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: visible;
    padding-bottom: 0;
    scroll-snap-type: none;
    scrollbar-width: none;
  }

  body[data-page="stock"] .history-card {
    display: grid;
    width: 100%;
    height: auto;
    min-height: 0;
    flex: none;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 2px 10px;
    align-content: center;
    align-items: center;
    padding: 9px 11px;
    scroll-snap-align: none;
  }

  body[data-page="stock"] .history-topline {
    display: contents;
  }

  body[data-page="stock"] .history-date-wrap {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  body[data-page="stock"] .history-date {
    min-height: 24px;
    padding: 1px 7px;
    font-size: 15px;
  }

  body[data-page="stock"] .latest-badge {
    padding: 2px 6px;
    font-size: 10px;
  }

  body[data-page="stock"] .history-mobile-signal {
    display: inline-grid;
    width: 19px;
    height: 19px;
    place-items: center;
    color: #071019;
    background: var(--cyan);
    border-radius: 50%;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
  }

  body[data-page="stock"] .history-mobile-signal.signal-probe {
    background: var(--purple);
  }

  body[data-page="stock"] .history-mobile-signal.signal-short {
    color: #fff;
    background: var(--red);
  }

  body[data-page="stock"] .history-mobile-signal.signal-lure {
    background: var(--orange);
  }

  body[data-page="stock"] .history-mobile-signal.signal-ignition {
    background: #69f0ae;
  }

  body[data-page="stock"] .history-topline > strong {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
    font-size: 15px;
  }

  body[data-page="stock"] .history-body {
    grid-column: 2;
    grid-row: 1;
    padding: 0;
  }

  body[data-page="stock"] .history-title {
    font-size: 14px;
  }

  body[data-page="stock"] .history-clue {
    display: none;
  }

  body[data-page="stock"] .story-pills {
    grid-column: 2;
    grid-row: 2;
    flex-wrap: nowrap;
    margin-top: 2px;
    overflow: hidden;
  }

  body[data-page="stock"] .story-pill.signal-probe,
  body[data-page="stock"] .story-pill.signal-short,
  body[data-page="stock"] .story-pill.signal-lure,
  body[data-page="stock"] .story-pill.signal-ignition,
  body[data-page="stock"] .story-pill:nth-child(n + 2) {
    display: none;
  }

  body[data-page="stock"] .story-pill {
    font-size: 10px;
  }
}

/* L1/L2 micro-observation workbench. */
@media (min-width: 1100px) {
  body[data-page="stock"] .hologram-workspace {
    grid-template-columns: minmax(0, 1fr) 430px;
    height: calc(100vh - 250px);
    min-height: 620px;
  }
}

body[data-page="stock"] .day-panel {
  gap: 8px;
  padding: 8px;
  background:
    radial-gradient(circle at 92% 3%, rgba(39, 215, 232, 0.08), transparent 15rem),
    linear-gradient(165deg, #102334 0%, #0b1926 58%, #091521 100%);
}

.quant-module-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}

.quant-module-head span {
  display: block;
  margin-bottom: 2px;
  color: #59d7e4;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.quant-module-head h3 {
  margin: 0;
  color: #edf7fb;
  font-size: 13.5px;
  line-height: 1.2;
}

.quant-module-head > i {
  flex: 0 0 auto;
  padding: 2px 6px;
  color: #82a2b5;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(148, 176, 198, 0.13);
  border-radius: 999px;
  font-size: 9.5px;
  font-style: normal;
}

.quant-funding-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.quant-funding-cell {
  min-width: 0;
  min-height: 92px;
  padding: 8px 9px;
  background:
    linear-gradient(145deg, rgba(52, 106, 132, 0.12), rgba(255, 255, 255, 0.018));
  border: 1px solid rgba(111, 159, 183, 0.14);
  border-radius: 9px;
}

.quant-funding-cell.metric-main {
  border-color: rgba(39, 215, 232, 0.22);
}

.quant-funding-cell.metric-active {
  border-color: rgba(85, 185, 255, 0.19);
}

.quant-funding-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.quant-funding-top span {
  color: #9ab1c0;
  font-size: 10.5px;
  line-height: 1.25;
}

.quant-funding-top strong {
  flex: 0 0 auto;
  color: #eef8fb;
  font-size: 15.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.quant-funding-detail {
  margin-top: 4px;
  color: #87a1b1;
  font-size: 9.8px;
  line-height: 1.35;
}

.quant-funding-cell p {
  margin: 5px 0 0;
  color: #c9d8e1;
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.35;
}

.quant-observation-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.quant-observation-group + .quant-observation-group {
  padding-top: 7px;
  border-top: 1px solid rgba(148, 176, 198, 0.11);
}

.quant-group-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.quant-group-title b {
  color: #dfeaf0;
  font-size: 11.5px;
}

.quant-group-title span {
  color: #718b9b;
  font-size: 9.5px;
}

.quant-observation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.quant-observation-item {
  min-width: 0;
  padding: 7px 8px;
  background: rgba(255, 255, 255, 0.024);
  border: 1px solid rgba(148, 176, 198, 0.105);
  border-radius: 8px;
}

.quant-observation-item.is-strong {
  background: rgba(39, 215, 232, 0.055);
  border-color: rgba(39, 215, 232, 0.21);
}

.quant-observation-item.is-safe {
  background: rgba(81, 214, 156, 0.05);
  border-color: rgba(81, 214, 156, 0.2);
}

.quant-observation-item.is-warning {
  background: rgba(255, 101, 117, 0.06);
  border-color: rgba(255, 101, 117, 0.24);
}

.quant-observation-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: baseline;
  gap: 5px;
}

.quant-observation-head span {
  overflow: hidden;
  color: #9fb5c3;
  font-size: 9.8px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quant-observation-head strong {
  color: #edf7fb;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.quant-observation-head i {
  padding: 1px 4px;
  color: #a8bdc9;
  background: rgba(255, 255, 255, 0.045);
  border-radius: 999px;
  font-size: 8.5px;
  font-style: normal;
  white-space: nowrap;
}

.quant-observation-item.is-strong .quant-observation-head i {
  color: #7ceefa;
}

.quant-observation-item.is-safe .quant-observation-head i {
  color: #79e8b4;
}

.quant-observation-item.is-warning .quant-observation-head i {
  color: #ff99a4;
}

.quant-strength-track {
  height: 3px;
  margin: 5px 0 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.055);
  border-radius: 999px;
}

.quant-strength-track > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #3c7c94, #46d4e2);
  border-radius: inherit;
}

.quant-observation-item.is-warning .quant-strength-track > span {
  background: linear-gradient(90deg, #b45a69, #ff7787);
}

.quant-observation-item.is-safe .quant-strength-track > span {
  background: linear-gradient(90deg, #337c63, #62dfaa);
}

.quant-observation-item p {
  display: -webkit-box;
  min-height: 25px;
  margin: 0;
  overflow: hidden;
  color: #c5d5de;
  font-size: 9.6px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.quant-observation-item small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #718b9b;
  font-size: 9px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-empty {
  grid-column: 1 / -1;
  min-height: 70px;
}

@media (max-width: 768px) {
  body[data-page="stock"] .day-panel {
    gap: 7px;
    padding: 7px;
  }

  .quant-funding-grid,
  .quant-observation-grid {
    gap: 6px;
  }

  .quant-funding-cell {
    min-height: 88px;
    padding: 7px;
  }

  .quant-funding-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 1px;
  }

  .quant-funding-top strong {
    font-size: 15px;
  }

  .quant-observation-item {
    padding: 7px;
  }

  .quant-observation-head {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .quant-observation-head i {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (min-width: 769px) {
  body[data-page="stock"] .history-strip {
    padding: 8px 12px;
    margin-bottom: 8px;
  }

  body[data-page="stock"] .history-strip .section-heading {
    margin-bottom: 6px;
  }

  body[data-page="stock"] .recent-five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    gap: 10px;
    overflow: visible;
    padding: 3px 2px 4px;
    margin: -3px -2px 0;
  }

  body[data-page="stock"] .history-card {
    display: flex;
    height: 100%;
    min-height: 0;
    flex-direction: column;
    gap: 4px;
    justify-content: flex-start;
    padding: 8px 11px;
  }

  body[data-page="stock"] .history-date {
    min-height: 0;
    padding: 0;
    color: #f3f8fb;
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: 15px;
  }

  body[data-page="stock"] .latest-badge {
    padding: 1px 5px;
    font-size: 9px;
  }

  body[data-page="stock"] .history-topline strong {
    font-size: 15px;
  }

  body[data-page="stock"] .history-body {
    gap: 1px;
    padding: 1px 0;
  }

  body[data-page="stock"] .history-title {
    font-size: 13.5px;
  }

  body[data-page="stock"] .history-clue {
    font-size: 11px;
  }

  body[data-page="stock"] .story-pills {
    gap: 3px;
    margin-top: auto;
    padding-top: 2px;
  }

  body[data-page="stock"] .story-pill {
    padding: 1px 6px;
    font-size: 10px;
  }
}

/* Fifteen-session protected retail experience. */
.chart-lock-toolbar-row {
  display: flex;
  flex: 1 0 100%;
  justify-content: flex-end;
  margin-top: 6px;
}

.chart-lock-toolbar-row:has(.chart-signal-hidden-note[hidden]) {
  display: none;
}

.chart-signal-hidden-note {
  position: static;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  max-width: 100%;
  padding: 10px 17px;
  color: #e8fcff;
  background:
    linear-gradient(135deg, rgba(8, 27, 40, 0.95), rgba(7, 20, 32, 0.91)) padding-box,
    linear-gradient(
      90deg,
      rgba(192, 132, 255, 0.94),
      rgba(85, 185, 255, 0.92),
      rgba(0, 230, 118, 0.82),
      rgba(255, 213, 79, 0.86)
    ) border-box;
  border: 2px solid transparent;
  border-radius: 999px;
  box-shadow:
    0 0 0 1px rgba(192, 132, 255, 0.18),
    0 10px 32px rgba(39, 215, 232, 0.18),
    0 0 28px rgba(192, 132, 255, 0.14);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.015em;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  transition: box-shadow 160ms ease, transform 160ms ease, filter 160ms ease;
}

.chart-signal-hidden-note:hover,
.chart-signal-hidden-note:focus-visible {
  filter: saturate(1.18) brightness(1.08);
  box-shadow:
    0 0 0 1px rgba(192, 132, 255, 0.24),
    0 12px 38px rgba(39, 215, 232, 0.25),
    0 0 34px rgba(192, 132, 255, 0.2);
  outline: none;
  transform: translateY(-1px);
}

.chart-signal-hidden-note[hidden] {
  display: none;
}

body[data-page="stock"] .history-card.history-locked-card {
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(39, 215, 232, 0.075), transparent 72%),
    linear-gradient(155deg, rgba(12, 27, 39, 0.96), rgba(6, 16, 25, 0.98));
  border-color: rgba(89, 145, 165, 0.2);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

body[data-page="stock"] .history-card.history-locked-card:hover,
body[data-page="stock"] .history-card.history-locked-card:focus {
  border-color: rgba(85, 210, 225, 0.46);
  box-shadow:
    inset 0 0 0 1px rgba(39, 215, 232, 0.08),
    0 8px 24px rgba(6, 29, 42, 0.24);
}

body[data-page="stock"] .history-card.history-latest-locked-card {
  background:
    radial-gradient(circle at 50% 0%, rgba(39, 215, 232, 0.16), transparent 76%),
    linear-gradient(155deg, rgba(12, 38, 52, 0.98), rgba(6, 18, 28, 0.99));
  border-color: rgba(79, 224, 240, 0.68);
  box-shadow:
    inset 0 0 0 1px rgba(73, 221, 237, 0.23),
    0 0 26px rgba(39, 215, 232, 0.1);
}

body[data-page="stock"] .history-card.history-locked-card .history-unlock-pill {
  max-width: 100%;
  padding: 5px 9px;
  overflow: hidden;
  color: #d9fbff;
  background: rgba(39, 215, 232, 0.1);
  border: 1px solid rgba(75, 213, 229, 0.19);
  border-radius: 7px;
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

body[data-page="stock"] .history-card.history-latest-locked-card .history-unlock-pill {
  color: #effeff;
  background: rgba(39, 215, 232, 0.15);
  border-color: rgba(83, 229, 242, 0.43);
  box-shadow: 0 0 18px rgba(39, 215, 232, 0.12);
}

body[data-page="stock"] .history-card.history-locked-card .story-pill.locked-placeholder {
  color: rgba(191, 214, 224, 0.62);
  background: rgba(159, 190, 204, 0.055);
  border: 1px solid rgba(143, 178, 194, 0.08);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.locked-teaser-kicker {
  display: block;
  color: #62dce8;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.15em;
}

.locked-similar-card.is-hook {
  opacity: 0.9;
  border-color: rgba(79, 216, 232, 0.36);
  box-shadow:
    inset 0 0 0 1px rgba(39, 215, 232, 0.08),
    0 0 24px rgba(39, 215, 232, 0.06);
}

.locked-similar-card.is-hook .locked-similar-card-head b,
.locked-similar-card.is-hook .locked-similar-ring b {
  color: #8bf7ff;
}

@media (max-width: 760px) {
  .chart-lock-toolbar-row {
    justify-content: stretch;
    margin-top: 7px;
  }

  .chart-signal-hidden-note {
    width: 100%;
    max-width: 100%;
    min-height: 38px;
    padding: 9px 12px;
    font-size: 9.5px;
  }

  body[data-page="stock"] .history-card.history-locked-card .history-unlock-pill {
    padding: 4px 7px;
    font-size: 10.5px;
  }

  body[data-page="stock"] .history-card.history-locked-card .story-pill.locked-placeholder {
    display: inline-flex;
  }
}

/* Institutional dark terminal landing page and shared global chrome. */
body[data-page="home"] {
  background:
    linear-gradient(rgba(39, 215, 232, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 215, 232, 0.018) 1px, transparent 1px),
    radial-gradient(circle at 50% -12%, rgba(39, 215, 232, 0.18), transparent 34rem),
    radial-gradient(circle at 85% 18%, rgba(192, 132, 255, 0.1), transparent 32rem),
    linear-gradient(180deg, #08131e 0%, #050c13 52%, #04090f 100%);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
}

body[data-page="home"] .global-header,
body[data-page="stock"] .global-header {
  position: sticky;
  z-index: 60;
  top: 0;
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 18px 16px 15px;
  background: rgba(7, 16, 25, 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(148, 176, 198, 0.11);
}

.global-header .header-main {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-inline: auto;
}

.header-nav a {
  padding: 7px 12px;
  color: #8fa6b4;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 650;
  transition: color 160ms ease, background 160ms ease;
}

.header-nav a:hover,
.header-nav a:focus-visible {
  color: #dffbff;
  background: rgba(39, 215, 232, 0.07);
}

body[data-page="stock"] .stock-header.global-header {
  display: flex;
  height: 54px;
  align-items: center;
  padding: 8px 16px;
}

body[data-page="stock"] .stock-header .header-main {
  display: grid;
  width: 100%;
  min-height: 38px;
  align-items: center;
  grid-template-columns: auto minmax(260px, 340px) auto;
  gap: 16px;
}

body[data-page="stock"] .header-status {
  flex-wrap: nowrap;
  gap: 6px;
}

.stock-switch-search {
  position: relative;
  width: 100%;
  max-width: 340px;
}

.stock-switch-search input {
  width: 100%;
  height: 34px;
  padding: 0 30px 0 32px;
  color: #eef7fb;
  background: rgba(7, 21, 32, 0.86);
  border: 1px solid rgba(86, 161, 184, 0.26);
  border-radius: 9px;
  outline: none;
  font-size: 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.stock-switch-search input:focus {
  border-color: rgba(39, 215, 232, 0.62);
  box-shadow: 0 0 0 3px rgba(39, 215, 232, 0.07);
}

.stock-switch-icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 10px;
  color: #4fdce7;
  font-size: 17px;
  transform: translateY(-53%);
}

.stock-switch-results {
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  max-height: 330px;
  padding: 6px;
  background: rgba(7, 20, 31, 0.98);
  border: 1px solid rgba(91, 159, 181, 0.28);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}

.header-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.status-ready,
.status-date,
.header-home-link {
  display: inline-flex;
  min-height: 29px;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  color: #9bb0bd;
  background: rgba(9, 23, 34, 0.72);
  border: 1px solid rgba(148, 176, 198, 0.14);
  border-radius: 999px;
  font-size: 11px;
  white-space: nowrap;
}

.status-ready {
  color: #98e9cb;
  border-color: rgba(81, 214, 156, 0.24);
}

.status-ready i {
  width: 6px;
  height: 6px;
  background: #51d69c;
  border-radius: 50%;
  box-shadow: 0 0 11px rgba(81, 214, 156, 0.9);
}

.status-date b {
  color: #e8f2f7;
  font-variant-numeric: tabular-nums;
}

.header-home-link {
  color: #75dce5;
}

.landing-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 84px;
}

.hero-section {
  display: flex;
  min-height: 485px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 68px 20px 48px;
  text-align: center;
}

.hero-kicker {
  margin: 0 0 14px;
  color: #56dbe6;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.hero-section h1 {
  max-width: 1050px;
  color: #f4f9fc;
  background: linear-gradient(96deg, #ffffff 8%, #d7f7f8 52%, #8fdde8 100%);
  background-clip: text;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 780;
  letter-spacing: -0.045em;
  line-height: 1.14;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lede {
  max-width: 780px;
  margin: 24px auto 0;
  color: #94a9b7;
  font-size: 15px;
  line-height: 1.85;
}

.hero-search {
  position: relative;
  width: min(720px, 100%);
  margin-top: 38px;
}

.hero-search > label {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
}

.hero-search-field {
  position: relative;
  display: flex;
  min-height: 68px;
  align-items: center;
  padding: 2px;
  isolation: isolate;
  background: linear-gradient(100deg, #27d7e8 0%, #55b9ff 46%, #c084ff 100%);
  border-radius: 20px;
  box-shadow:
    0 10px 40px rgba(39, 215, 232, 0.22),
    0 0 0 1px rgba(194, 235, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: box-shadow 180ms ease, transform 180ms ease, filter 180ms ease;
}

.hero-search-field::before {
  position: absolute;
  z-index: -1;
  inset: -7px;
  background: linear-gradient(90deg, rgba(39, 215, 232, 0.48), rgba(192, 132, 255, 0.36));
  border-radius: 26px;
  content: "";
  filter: blur(17px);
  opacity: 0.45;
}

.hero-search-field:focus-within {
  box-shadow:
    0 16px 54px rgba(39, 215, 232, 0.3),
    0 0 0 4px rgba(39, 215, 232, 0.08),
    0 0 34px rgba(192, 132, 255, 0.2);
  transform: translateY(-1px);
}

.hero-search-field input {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 64px;
  min-height: 64px;
  padding: 0 158px 0 56px;
  color: #f3f8fb;
  background:
    radial-gradient(circle at 20% -60%, rgba(39, 215, 232, 0.12), transparent 16rem),
    linear-gradient(180deg, rgba(12, 29, 43, 0.98), rgba(5, 15, 24, 0.98));
  border: 0;
  border-radius: 18px;
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -18px 38px rgba(0, 0, 0, 0.12);
  font-size: 16px;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.hero-search-field input:focus {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 32px rgba(39, 215, 232, 0.055);
}

.hero-search-icon {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 20px;
  color: #4fdce7;
  font-size: 28px;
  text-shadow: 0 0 16px rgba(39, 215, 232, 0.72);
  transform: translateY(-53%);
}

.hero-search-submit {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: 6px;
  display: inline-flex;
  min-width: 138px;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 18px;
  color: #04131d;
  background: linear-gradient(100deg, #3fe1eb, #4cc8ff 56%, #a978ff);
  border: 0;
  border-radius: 14px;
  box-shadow:
    0 8px 24px rgba(39, 215, 232, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.48);
  font-size: 15px;
  font-weight: 820;
  letter-spacing: 0.01em;
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.hero-search-submit span {
  font-size: 18px;
  line-height: 1;
}

.hero-search-submit:hover {
  box-shadow:
    0 11px 30px rgba(39, 215, 232, 0.38),
    0 0 24px rgba(192, 132, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
  filter: saturate(1.12) brightness(1.04);
  transform: translateY(-50%) scale(1.015);
}

.hero-search-submit:active {
  transform: translateY(-50%) scale(0.985);
}

.hero-search-results {
  z-index: 8;
  top: calc(100% + 10px);
  right: 2px;
  left: 2px;
  max-height: 390px;
  padding: 8px;
  background:
    linear-gradient(160deg, rgba(12, 29, 42, 0.98), rgba(5, 15, 24, 0.99));
  border-color: rgba(78, 175, 196, 0.3);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  text-align: left;
}

.hero-search-results .search-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 14px;
  padding: 11px 12px;
  border-bottom: 1px solid rgba(148, 176, 198, 0.08);
}

.hero-search-results .search-result:last-child {
  border-bottom: 0;
}

.hero-search-results .search-result:hover,
.hero-search-results .search-result:focus,
.hero-search-results .search-result.is-active {
  background: linear-gradient(90deg, rgba(39, 215, 232, 0.11), rgba(192, 132, 255, 0.045));
}

.search-result-main {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 9px;
}

.search-result-main strong {
  overflow: hidden;
  color: #f1f8fb;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-main small {
  color: #778e9d;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.search-result-change {
  align-self: center;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.search-result-summary {
  grid-column: 1 / -1;
  overflow: hidden;
  color: #9db2bf;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-empty {
  padding: 20px 14px;
  color: #839aa8;
  font-size: 12px;
  text-align: center;
}

.hero-search-note {
  margin: 12px 0 0;
  color: #617987;
  font-size: 10.5px;
}

.hero-sample-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
  color: #637b89;
  font-size: 11px;
}

.hero-sample-links a {
  padding: 5px 10px;
  color: #a9c0cc;
  background: rgba(12, 31, 45, 0.7);
  border: 1px solid rgba(103, 158, 181, 0.2);
  border-radius: 999px;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.hero-sample-links a:hover,
.hero-sample-links a:focus-visible {
  color: #e8fbff;
  background: rgba(39, 215, 232, 0.08);
  border-color: rgba(39, 215, 232, 0.42);
  transform: translateY(-1px);
}

.hologram-showcase {
  position: relative;
  overflow: hidden;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(39, 215, 232, 0.08), transparent 24rem),
    linear-gradient(155deg, rgba(10, 26, 39, 0.97), rgba(5, 14, 22, 0.98));
  border: 1px solid rgba(94, 175, 195, 0.22);
  border-radius: 22px;
  box-shadow:
    0 0 0 1px rgba(39, 215, 232, 0.025),
    0 30px 90px rgba(0, 0, 0, 0.45);
}

.hologram-showcase::before {
  position: absolute;
  top: 0;
  right: 10%;
  left: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(39, 215, 232, 0.72), rgba(192, 132, 255, 0.4), transparent);
  content: "";
}

.showcase-head,
.showcase-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.showcase-head .hero-kicker,
.showcase-head .module-kicker {
  margin-bottom: 4px;
}

.showcase-head h2 {
  margin: 0;
  color: #f2f8fb;
  font-size: clamp(20px, 2.4vw, 28px);
}

.showcase-head > a {
  flex: 0 0 auto;
  padding: 7px 10px;
  color: #75dce5;
  border: 1px solid rgba(39, 215, 232, 0.2);
  border-radius: 999px;
  font-size: 11px;
}

.showcase-note {
  margin: 12px 0 10px;
  color: #839ba9;
  font-size: 11px;
}

.showcase-note b {
  color: #e7f4f7;
}

.showcase-frame {
  height: 640px;
  overflow: hidden;
  background: #060e16;
  border: 1px solid rgba(117, 164, 185, 0.17);
  border-radius: 15px;
}

.showcase-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  background: #060e16;
  border: 0;
}

.value-section {
  padding: 76px 0 0;
}

.section-center-head {
  margin-bottom: 24px;
  text-align: center;
}

.section-center-head h2 {
  color: #edf5f8;
  font-size: clamp(24px, 3vw, 34px);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.value-card {
  min-height: 250px;
  padding: 26px 24px;
  background:
    radial-gradient(circle at 90% 0%, rgba(39, 215, 232, 0.07), transparent 14rem),
    linear-gradient(155deg, rgba(13, 30, 43, 0.9), rgba(7, 17, 26, 0.94));
  border: 1px solid rgba(148, 176, 198, 0.14);
  border-radius: 18px;
}

.value-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  place-items: center;
  background: rgba(39, 215, 232, 0.07);
  border: 1px solid rgba(39, 215, 232, 0.16);
  border-radius: 12px;
  font-size: 21px;
}

.value-card h3 {
  margin: 0 0 13px;
  color: #eaf4f8;
  font-size: 19px;
}

.value-card p {
  margin: 0;
  color: #8ca3b1;
  font-size: 13px;
  line-height: 1.8;
}

body[data-page="home"] .quant-value-module {
  width: 100%;
  margin: 0 auto;
  padding: 58px 0 0;
}

body[data-page="home"] .core-architecture {
  padding-top: 30px;
}

.module-heading {
  margin-bottom: 26px;
  text-align: center;
}

.module-kicker {
  margin: 0 0 10px;
  color: #51dce8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.tactical-insights .module-kicker {
  color: #d2a8ff;
}

.module-heading h2 {
  margin: 0;
  color: #f1f7fa;
  font-size: clamp(25px, 3.2vw, 38px);
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.quant-value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

body[data-page="home"] .quant-value-card {
  position: relative;
  display: flex;
  min-height: 215px;
  flex-direction: column;
  padding: 24px 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(39, 215, 232, 0.07), transparent 13rem),
    linear-gradient(160deg, rgba(20, 42, 62, 0.72), rgba(8, 19, 30, 0.88));
  border-color: rgba(110, 158, 181, 0.2);
  border-radius: 20px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    inset 0 -30px 60px rgba(3, 11, 18, 0.16),
    0 20px 48px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

body[data-page="home"] .architecture-card::before {
  position: absolute;
  top: 0;
  right: 14px;
  left: 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--card-accent), transparent);
  content: "";
  opacity: 0.58;
}

body[data-page="home"] .quant-value-card:hover {
  border-color: color-mix(in srgb, var(--card-accent, #27d7e8) 44%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 30px color-mix(in srgb, var(--card-accent, #27d7e8) 12%, transparent),
    0 24px 54px rgba(0, 0, 0, 0.28);
  transform: translateY(-4px);
}

.architecture-cyan {
  --card-accent: #27d7e8;
  --card-accent-soft: rgba(39, 215, 232, 0.12);
  --card-accent-line: rgba(39, 215, 232, 0.34);
}

.architecture-purple {
  --card-accent: #c084ff;
  --card-accent-soft: rgba(192, 132, 255, 0.12);
  --card-accent-line: rgba(192, 132, 255, 0.34);
}

.architecture-gold {
  --card-accent: #e9c46a;
  --card-accent-soft: rgba(233, 196, 106, 0.11);
  --card-accent-line: rgba(233, 196, 106, 0.32);
}

.architecture-green {
  --card-accent: #51d69c;
  --card-accent-soft: rgba(81, 214, 156, 0.11);
  --card-accent-line: rgba(81, 214, 156, 0.32);
}

.card-index-watermark {
  position: absolute;
  top: 13px;
  right: 15px;
  color: rgba(255, 255, 255, 0.04);
  font-size: 46px;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
  pointer-events: none;
}

.architecture-card .value-icon {
  position: relative;
  z-index: 1;
  width: 43px;
  height: 43px;
  margin-bottom: 17px;
  color: var(--card-accent);
  background: var(--card-accent-soft);
  border-color: var(--card-accent-line);
  box-shadow:
    0 0 26px color-mix(in srgb, var(--card-accent) 16%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.architecture-card .value-icon svg {
  width: 23px;
  height: 23px;
}

.value-distill {
  margin: 0 0 8px !important;
  color: var(--card-accent, #69d8e2) !important;
  font-size: 12px !important;
  font-weight: 750;
  letter-spacing: 0.035em;
}

.quant-value-card h3 {
  margin: 0 0 11px;
  color: #f0f7fa;
  font-size: 18px;
  line-height: 1.35;
}

.quant-value-card > p:last-child {
  margin: 0;
  color: #91a8b6;
  font-size: 13.5px;
  line-height: 1.7;
}

.hologram-showcase {
  margin-top: 58px;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

body[data-page="home"] .insight-card {
  display: grid;
  min-height: 238px;
  grid-template-columns: minmax(130px, 0.7fr) minmax(0, 1.55fr);
  align-items: center;
  gap: 22px;
  padding: 30px;
  background:
    radial-gradient(circle at 18% 45%, var(--insight-glow), transparent 16rem),
    linear-gradient(155deg, rgba(18, 37, 54, 0.82), rgba(7, 17, 27, 0.92));
  border-color: color-mix(in srgb, var(--insight-accent) 24%, transparent);
  border-radius: 22px;
}

body[data-page="home"] .insight-card::before {
  position: absolute;
  top: 0;
  right: 24px;
  left: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--insight-accent), transparent);
  content: "";
  opacity: 0.48;
}

.insight-probe {
  --insight-accent: #c084ff;
  --insight-glow: rgba(192, 132, 255, 0.14);
}

.insight-overheat {
  --insight-accent: #ff6575;
  --insight-glow: rgba(255, 101, 117, 0.13);
  background:
    radial-gradient(circle at 18% 45%, var(--insight-glow), transparent 16rem),
    linear-gradient(155deg, rgba(37, 27, 39, 0.84), rgba(9, 17, 26, 0.93));
}

.insight-lure {
  --insight-accent: #ff9a55;
  --insight-glow: rgba(255, 154, 85, 0.13);
  background:
    radial-gradient(circle at 18% 45%, var(--insight-glow), transparent 16rem),
    linear-gradient(155deg, rgba(39, 31, 31, 0.84), rgba(10, 18, 27, 0.93));
}

.insight-absorb {
  --insight-accent: #00e676;
  --insight-glow: rgba(0, 230, 118, 0.12);
  background:
    radial-gradient(circle at 18% 45%, var(--insight-glow), transparent 16rem),
    linear-gradient(155deg, rgba(19, 40, 41, 0.84), rgba(7, 19, 27, 0.93));
}

.insight-visual {
  position: relative;
  display: flex;
  min-height: 150px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 11px;
  isolation: isolate;
}

.insight-visual::before {
  position: absolute;
  z-index: -1;
  width: 184px;
  height: 158px;
  background: radial-gradient(circle, var(--insight-glow), transparent 70%);
  border-radius: 50%;
  content: "";
  filter: blur(9px);
}

.insight-svg-chart {
  position: relative;
  z-index: 1;
  display: block;
  width: 96px;
  height: 56px;
  overflow: visible;
  filter: drop-shadow(0 0 8px rgba(93, 205, 237, 0.18));
}

.insight-bubble {
  position: relative;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid;
  border-radius: 999px;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
  backdrop-filter: blur(12px);
}

.bubble-probe {
  color: #e5ccff;
  background: rgba(192, 132, 255, 0.13);
  border-color: rgba(192, 132, 255, 0.5);
  box-shadow: 0 0 24px rgba(192, 132, 255, 0.16);
}

.bubble-ignition {
  color: #a8f3ff;
  background: rgba(39, 215, 232, 0.11);
  border-color: rgba(39, 215, 232, 0.45);
  box-shadow: 0 0 24px rgba(39, 215, 232, 0.13);
}

.bubble-overheat {
  color: #ffc2c9;
  background: rgba(255, 101, 117, 0.12);
  border-color: rgba(255, 101, 117, 0.48);
  box-shadow: 0 0 24px rgba(255, 101, 117, 0.15);
}

.bubble-lure {
  color: #ffd2aa;
  background: rgba(255, 154, 85, 0.12);
  border-color: rgba(255, 154, 85, 0.48);
  box-shadow: 0 0 24px rgba(255, 154, 85, 0.14);
}

.bubble-absorb {
  color: #a7f3ca;
  background: rgba(0, 230, 118, 0.1);
  border-color: rgba(0, 230, 118, 0.43);
  box-shadow: 0 0 24px rgba(0, 230, 118, 0.13);
}

.insight-copy {
  position: relative;
  z-index: 1;
}

.insight-copy h3 {
  margin: 0 0 7px;
  color: #f2f8fb;
  font-size: 19px;
  font-weight: 780;
  line-height: 1.35;
}

.insight-subtitle {
  margin: 0 0 10px;
  color: var(--insight-accent);
  font-size: 13px;
  font-weight: 750;
}

.insight-description {
  margin: 0;
  color: #9fb3bf;
  font-size: 13.5px;
  line-height: 1.7;
}

.insight-card:hover {
  border-color: color-mix(in srgb, var(--insight-accent) 52%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 34px color-mix(in srgb, var(--insight-accent) 11%, transparent),
    0 24px 54px rgba(0, 0, 0, 0.28);
}

.faq-section {
  position: relative;
  width: 100%;
  padding-top: 64px;
  margin-top: 50px;
}

.faq-section::before {
  position: absolute;
  top: 30px;
  left: 50%;
  width: min(720px, 82%);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(39, 215, 232, 0.5) 16%,
    rgba(192, 132, 255, 0.38) 84%,
    transparent
  );
  box-shadow: 0 0 12px rgba(39, 215, 232, 0.16);
  content: "";
  transform: translateX(-50%);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
}

.faq-item {
  height: 100%;
  padding: 0 17px;
  background:
    linear-gradient(145deg, rgba(14, 33, 48, 0.74), rgba(6, 18, 28, 0.9));
  border: 1px solid rgba(101, 154, 177, 0.17);
  border-radius: 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.faq-item summary {
  position: relative;
  padding: 15px 28px 15px 0;
  color: #dceaf1;
  font-size: 13.5px;
  font-weight: 720;
  line-height: 1.55;
  cursor: pointer;
  list-style: none;
  outline: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:focus-visible {
  border-radius: 7px;
  outline: 1px solid rgba(39, 215, 232, 0.62);
  outline-offset: -2px;
}

.faq-item summary::after {
  position: absolute;
  top: 14px;
  right: 1px;
  color: #57dce7;
  content: "+";
  font-size: 18px;
  font-weight: 500;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: -3px 0 15px;
  color: #89a1af;
  font-size: 12.5px;
  line-height: 1.7;
}

@media (max-width: 1020px) {
  .quant-value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body[data-page="home"] .quant-value-module {
    width: 100%;
    padding-top: 44px;
  }

  body[data-page="home"] .core-architecture {
    padding-top: 24px;
  }

  .quant-value-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body[data-page="home"] .quant-value-card {
    min-height: 0;
    padding: 20px;
  }

  .card-index-watermark {
    top: 10px;
    right: 13px;
    font-size: 40px;
  }

  .hologram-showcase {
    margin-top: 44px;
  }

  .faq-section {
    padding-top: 50px;
  }

  .faq-section::before {
    top: 16px;
    width: 78%;
  }

  body[data-page="home"] .insight-card {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 17px;
    padding: 22px 20px;
  }

  .insight-visual {
    min-height: 106px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .insight-visual::before {
    width: 230px;
    height: 120px;
  }

  .insight-probe .insight-bubble:nth-child(2) {
    margin-left: 0;
  }

  .insight-bubble {
    min-height: 35px;
    padding: 7px 11px;
    font-size: 11.5px;
  }

  .insight-copy h3 {
    font-size: 18px;
  }

  .insight-description {
    font-size: 13px;
  }
}

body[data-page="home"] .global-footer,
body[data-page="stock"] .global-footer {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 42px 18px 32px;
  color: #718897;
  background:
    radial-gradient(circle at 50% 100%, rgba(39, 215, 232, 0.035), transparent 34rem),
    rgba(3, 10, 16, 0.28);
  border-top: 1px solid rgba(148, 176, 198, 0.08);
  text-align: center;
}

.footer-inner {
  width: min(1180px, calc(100% - 4px));
  margin: 0 auto;
}

.footer-research-note {
  display: flex;
  width: fit-content;
  max-width: min(100%, 960px);
  align-items: flex-start;
  gap: 14px;
  margin-inline: auto;
  padding: 14px 18px;
  color: #91a7b5;
  background:
    linear-gradient(105deg, rgba(10, 28, 41, 0.86), rgba(6, 18, 28, 0.78));
  border: 1px solid rgba(101, 151, 174, 0.24);
  border-radius: 10px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 12px 35px rgba(0, 0, 0, 0.12);
  text-align: left;
}

.footer-research-note p {
  margin: 0;
  font-size: 12px;
  line-height: 1.75;
}

.footer-research-note strong {
  color: #d6e5ed;
  font-weight: 750;
}

.footer-info-icon {
  display: inline-grid;
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  margin-top: 1px;
  place-items: center;
  color: #42c8f5;
  border: 1.5px solid #42c8f5;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.footer-laboratory {
  position: relative;
  margin-top: 30px;
  padding-top: 29px;
}

.footer-laboratory::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148, 176, 198, 0.2) 12%, rgba(148, 176, 198, 0.2) 88%, transparent);
  content: "";
}

.footer-lab-name {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  color: #9fb2be;
  font-size: 13px;
  font-weight: 520;
  letter-spacing: 0.02em;
}

.footer-lab-name span {
  color: #6fe5ef;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.footer-lab-name i {
  color: #667e8d;
  font-style: normal;
}

.footer-lab-name strong {
  color: #dce9ef;
  font-weight: 720;
}

.footer-mission {
  padding-top: 10px;
  margin: 9px 0 12px;
  color: #c8d8e1;
  font-size: 13px;
  font-weight: 650;
}

.footer-disclaimer {

  margin: 0 auto;
  color: #637987;
  font-size: 11px;
  line-height: 1.8;
}

.stock-header.global-header .header-main {
  flex-wrap: wrap;
}

.stock-header.global-header .stock-title-row {
  margin-top: 20px;
}

body[data-page="stock"] .stock-summary-bar {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 13px;
  margin-bottom: 8px;
  background:
    linear-gradient(120deg, rgba(13, 34, 49, 0.82), rgba(7, 20, 30, 0.92));
  border: 1px solid rgba(96, 157, 180, 0.18);
  border-radius: 14px;
}

.stock-summary-main {
  min-width: 0;
}

.stock-name-line {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.stock-name-line h1 {
  margin: 0;
  color: #f4f9fc;
  font-size: 24px;
  line-height: 1.15;
}

body[data-page="stock"] .stock-code {
  margin: 0;
  padding: 2px 6px;
  color: #65e2ec;
  background: rgba(39, 215, 232, 0.07);
  border: 1px solid rgba(39, 215, 232, 0.18);
  border-radius: 5px;
  font-size: 10px;
  letter-spacing: 0.08em;
}

body[data-page="stock"] .stock-meta {
  gap: 5px;
  margin-top: 5px;
  font-size: 10px;
}

body[data-page="stock"] .stock-meta span {
  padding: 2px 7px;
}

body[data-page="stock"] .stock-summary-bar .price-block {
  display: flex;
  align-items: baseline;
  gap: 9px;
  white-space: nowrap;
}

body[data-page="stock"] .stock-summary-bar .price-block strong {
  display: inline;
  font-size: 27px;
  line-height: 1;
}

body[data-page="stock"] .stock-summary-bar .price-block span {
  font-size: 14px;
  font-weight: 750;
}

.user-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.user-pill,
.share-stock-button {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  color: #a9bfcb;
  background: rgba(12, 31, 45, 0.72);
  border: 1px solid rgba(109, 160, 181, 0.2);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.user-trial,
.user-vip-pill {
  color: #a5f1ff;
  border-color: rgba(39, 215, 232, 0.28);
}

.points-pill {
  color: #ffe8a3;
  border-color: rgba(233, 196, 106, 0.25);
}

.user-status-badge {
  padding: 3px 7px;
  color: #a7efc9;
  background: rgba(81, 214, 156, 0.07);
  border-radius: 999px;
  font-size: 9.5px;
  white-space: nowrap;
}

.share-stock-button {
  min-height: 30px;
  color: #8cebf2;
  border-color: rgba(39, 215, 232, 0.28);
}

.commerce-modal {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 8, 14, 0.76);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.commerce-modal[hidden],
.commerce-toast[hidden] {
  display: none !important;
}

.commerce-modal-open {
  overflow: hidden;
}

.commerce-dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: min(88vh, 900px);
  padding: 28px;
  overflow-y: auto;
  color: #e9f3f8;
  background:
    radial-gradient(circle at 92% 0%, rgba(39, 215, 232, 0.09), transparent 20rem),
    linear-gradient(155deg, #102536, #091722 70%);
  border: 1px solid rgba(86, 176, 202, 0.3);
  border-radius: 20px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

.membership-dialog {
  width: min(980px, 100%);
}

.commerce-close {
  position: absolute;
  top: 13px;
  right: 14px;
  width: 30px;
  height: 30px;
  color: #8daab9;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(148, 176, 198, 0.16);
  border-radius: 50%;
  cursor: pointer;
}

.commerce-dialog h2 {
  margin: 0;
  color: #f5fafc;
  font-size: 26px;
}

.commerce-lede {
  margin: 8px 0 18px;
  color: #89a2b1;
  font-size: 12px;
}

.membership-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 18px;
  padding: 11px 14px;
  color: #e8fbff;
  background:
    linear-gradient(110deg, rgba(39, 215, 232, 0.12), rgba(192, 132, 255, 0.09)),
    rgba(8, 25, 37, 0.82);
  border: 1px solid rgba(79, 210, 228, 0.28);
  border-radius: 11px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}

.membership-status-primary,
.membership-status-points {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.membership-status-primary i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  background: #38e8c6;
  border-radius: 50%;
  box-shadow: 0 0 9px rgba(56, 232, 198, 0.8);
}

.membership-status-bar small {
  color: #7899a8;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.membership-status-bar strong {
  color: #f1fdff;
  font-size: 13px;
}

.membership-status-points {
  padding: 4px 9px;
  background: rgba(192, 132, 255, 0.09);
  border: 1px solid rgba(192, 132, 255, 0.16);
  border-radius: 999px;
}

.membership-status-points strong {
  color: #dcb8ff;
}

.commerce-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.membership-dialog .commerce-title-row {
  align-items: center;
  padding-right: 46px;
}

.membership-dialog .commerce-title-row #logoutButton {
  flex: 0 0 auto;
  white-space: nowrap;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  display: grid;
  gap: 6px;
  color: #91a9b7;
  font-size: 11px;
}

.auth-form input,
.voucher-row input,
.points-purchase-row input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  color: #f2f8fb;
  background: rgba(5, 16, 25, 0.82);
  border: 1px solid rgba(102, 160, 182, 0.24);
  border-radius: 9px;
  outline: none;
  font-size: 16px;
}

.auth-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.auth-code-row #sendCodeButton {
  min-width: 96px;
  white-space: nowrap;
}

.auth-code-row #sendCodeButton[aria-busy="true"] {
  color: #7fa8b5;
  background: rgba(148, 176, 198, 0.08);
  border-color: rgba(148, 176, 198, 0.15);
  cursor: wait;
}

.auth-form .auth-remember-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(39, 215, 232, 0.045);
  border: 1px solid rgba(82, 165, 188, 0.16);
  border-radius: 9px;
  cursor: pointer;
}

.auth-form .auth-remember-option input {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin: 1px 0 0;
  padding: 0;
  accent-color: #27d7e8;
}

.auth-remember-option > span {
  display: grid;
  gap: 3px;
}

.auth-remember-option strong {
  color: #dff9fc;
  font-size: 11.5px;
  font-weight: 750;
}

.auth-remember-option small {
  color: #7892a1;
  font-size: 10px;
  line-height: 1.5;
}

.button-primary,
.button-secondary,
.button-quiet,
.plan-button {
  min-height: 36px;
  padding: 7px 13px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.button-primary {
  color: #04141d;
  background: linear-gradient(110deg, #42dce6, #6cc7ff, #b887ff);
  border: 0;
}

.button-secondary {
  color: #a6edf4;
  background: rgba(39, 215, 232, 0.08);
  border: 1px solid rgba(39, 215, 232, 0.27);
}

.button-quiet {
  color: #839ba9;
  background: transparent;
  border: 1px solid rgba(148, 176, 198, 0.14);
}

.commerce-message {
  min-height: 18px;
  margin: 0;
  color: #8fa7b5;
  font-size: 11px;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.plan-card {
  position: relative;
  display: flex;
  min-height: 292px;
  flex-direction: column;
  padding: 20px 17px;
  background: rgba(9, 25, 37, 0.72);
  border: 1px solid rgba(95, 151, 173, 0.2);
  border-radius: 15px;
}

.plan-featured {
  background:
    radial-gradient(circle at 85% 0%, rgba(192, 132, 255, 0.15), transparent 14rem),
    rgba(13, 27, 43, 0.9);
  border-color: rgba(192, 132, 255, 0.48);
  box-shadow: 0 0 28px rgba(168, 85, 247, 0.14);
}

.plan-badge {
  position: absolute;
  top: -10px;
  right: 10px;
  padding: 4px 8px;
  color: #f5e9ff;
  background: linear-gradient(110deg, #8b5cf6, #27d7e8);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
}

.plan-card h3 {
  margin: 0 0 13px;
  color: #eef7fb;
  font-size: 16px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.plan-price strong {
  color: #fff;
  font-size: 31px;
}

.plan-price del {
  color: #657e8d;
  font-size: 12px;
}

.plan-points {
  margin: 10px 0 5px;
  color: #9bb0bc;
  font-size: 12px;
  line-height: 1.6;
}

.plan-note {
  margin: 0 0 16px;
  color: #6fdde7;
  font-size: 10.5px;
  line-height: 1.55;
}

.plan-button {
  margin-top: auto;
  color: #07141d;
  background: #67dfE9;
  border: 0;
}

.plan-button:disabled {
  color: #667d8b;
  background: rgba(148, 176, 198, 0.09);
  cursor: not-allowed;
}

.plan-actions {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.plan-actions .plan-button {
  width: 100%;
  margin-top: 0;
  white-space: nowrap;
}

.plan-pay-button {
  color: #c8f8fd;
  background: rgba(39, 215, 232, 0.07);
  border: 1px solid rgba(79, 210, 228, 0.3);
}

.plan-pay-button:hover,
.plan-pay-button:focus-visible {
  color: #effeff;
  background: rgba(39, 215, 232, 0.12);
  border-color: rgba(79, 210, 228, 0.52);
  outline: none;
}

.voucher-panel,
.points-shop-panel,
.referral-panel {
  margin-top: 18px;
  padding: 17px;
  background: rgba(7, 20, 30, 0.56);
  border: 1px solid rgba(95, 151, 173, 0.17);
  border-radius: 14px;
}

.voucher-panel h3,
.points-shop-panel h3,
.referral-panel h3 {
  margin: 0 0 9px;
  color: #dcebf1;
  font-size: 14px;
}

.point-log-heading {
  margin: 13px 0 7px;
  color: #6f8997;
  font-size: 9.5px;
  letter-spacing: 0.03em;
}

.voucher-panel p,
.points-shop-panel p,
.referral-panel p {
  margin: 0;
  color: #829ba9;
  font-size: 11px;
}

.points-purchase-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  margin-top: 12px;
}

.points-purchase-row label {
  display: grid;
  gap: 5px;
  color: #819aa8;
  font-size: 10px;
}

.points-purchase-row input {
  height: 38px;
  font-size: 16px;
}

.points-purchase-row button {
  min-width: 156px;
  align-self: end;
  white-space: nowrap;
}

.referral-cap-notice {
  margin: 9px 0 0 !important;
  padding: 8px 10px;
  color: #ffd48c !important;
  background: rgba(255, 193, 7, 0.07);
  border: 1px solid rgba(255, 193, 7, 0.16);
  border-radius: 8px;
  font-size: 10.5px !important;
}

.referral-panel .point-log-heading {
  margin: 13px 0 7px;
  color: #6f8997;
  font-size: 9.5px;
  letter-spacing: 0.03em;
}

.voucher-panel .voucher-type-hint {
  margin: 7px 0 0;
  color: #647f8d;
  font-size: 9.5px;
  line-height: 1.55;
}

.voucher-panel .voucher-type-hint.is-detected {
  color: #71e5ed;
}

.voucher-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 10px;
}

.referral-stats {
  display: flex;
  gap: 18px;
  margin: 10px 0 0;
  color: #8ba3b1;
  font-size: 11px;
}

.referral-stats b {
  color: #73e5ed;
}

.point-logs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
  color: #758d9b;
  font-size: 10px;
}

.point-log-entry {
  display: grid;
  gap: 3px;
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid rgba(118, 157, 175, 0.08);
  border-radius: 7px;
}

.point-log-main {
  color: #9bb2be;
}

.point-log-entry small {
  overflow: hidden;
  color: #607b89;
  font-size: 9.5px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .point-logs {
    grid-template-columns: 1fr;
  }

  .points-purchase-row {
    grid-template-columns: 1fr;
  }

  .points-purchase-row button {
    width: 100%;
  }
}

.commerce-toast {
  position: fixed;
  z-index: 140;
  top: 16px;
  left: 50%;
  max-width: min(520px, calc(100% - 24px));
  padding: 10px 15px;
  color: #dffbff;
  background: rgba(7, 29, 42, 0.96);
  border: 1px solid rgba(39, 215, 232, 0.35);
  border-radius: 10px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.4);
  font-size: 12px;
  transform: translateX(-50%);
}

.locked-experience {
  position: relative;
  display: grid;
  min-height: 100%;
  overflow: hidden;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 70% 20%, rgba(39, 215, 232, 0.08), transparent 18rem),
    linear-gradient(145deg, rgba(16, 38, 54, 0.42), rgba(5, 16, 25, 0.76));
  border: 1px solid rgba(86, 166, 188, 0.14);
  border-radius: 13px;
  -webkit-backdrop-filter: blur(12px) saturate(0.7);
  backdrop-filter: blur(12px) saturate(0.7);
}

.locked-skeleton {
  position: absolute;
  inset: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  opacity: 0.25;
  filter: blur(10px);
}

.locked-skeleton i {
  min-height: 72px;
  background: linear-gradient(145deg, rgba(55, 103, 128, 0.3), rgba(19, 48, 67, 0.2));
  border-radius: 12px;
}

.locked-skeleton i:nth-child(2) {
  transform: translateY(13px);
}

.locked-skeleton i:nth-child(3) {
  transform: translateY(-8px);
}

.locked-skeleton i:nth-child(4) {
  transform: translateY(7px);
}

.unlock-card {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(360px, 100%);
  gap: 9px;
  padding: 22px;
  text-align: center;
  background: rgba(9, 25, 37, 0.9);
  border: 1px solid rgba(39, 215, 232, 0.25);
  border-radius: 16px;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(16px) saturate(0.85);
  backdrop-filter: blur(16px) saturate(0.85);
}

.unlock-card h3 {
  margin: 0;
  color: #f2f8fb;
  font-size: 18px;
}

.unlock-card p {
  margin: 0 0 5px;
  color: #91a9b7;
  font-size: 12px;
  line-height: 1.65;
}

.suspended-account-notice {
  width: 100%;
  padding: 10px 12px;
  color: #ffb0b8;
  background: rgba(255, 101, 117, 0.08);
  border: 1px solid rgba(255, 101, 117, 0.18);
  border-radius: 9px;
  font-size: 11px;
  font-weight: 750;
  text-align: center;
}

.locked-detail {
  min-height: 260px;
}

.locked-detail-lock {
  position: relative;
  z-index: 2;
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  color: #73e5ef;
  background: rgba(7, 24, 36, 0.55);
  border: 1px solid rgba(74, 198, 220, 0.22);
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.locked-detail-lock svg {
  width: 36px;
  height: 36px;
}

.locked-dashboard-shell {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: rgba(6, 18, 28, 0.7);
  border: 1px solid rgba(82, 152, 174, 0.14);
  border-radius: 13px;
}

.locked-dashboard {
  min-height: 100%;
  padding: 10px;
  overflow: hidden;
  opacity: 0.62;
}

.locked-dashboard-skeleton {
  display: grid;
  gap: 8px;
}

.locked-dashboard-head,
.locked-observation-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 4px;
}

.locked-dashboard-head span,
.locked-observation-title span {
  color: #55dce7;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.locked-dashboard-head h3,
.locked-observation-title h3 {
  margin: 0;
  color: #d9e8ef;
  font-size: 12px;
}

.locked-funding-grid,
.locked-observation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.locked-metric-card {
  min-height: 82px;
  padding: 8px;
  background: rgba(12, 30, 43, 0.78);
  border: 1px solid rgba(93, 151, 172, 0.13);
  border-radius: 9px;
}

.locked-metric-card > span {
  display: block;
  color: #8ea6b4;
  font-size: 9px;
}

.locked-metric-card > strong {
  display: block;
  margin-top: 4px;
  color: #a9bec9;
  font-size: 14px;
}

.locked-metric-card > i {
  display: block;
  height: 3px;
  margin-top: 7px;
  overflow: hidden;
  background: rgba(148, 176, 198, 0.09);
  border-radius: 999px;
}

.locked-metric-card > i b {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, rgba(39, 215, 232, 0.3), rgba(192, 132, 255, 0.32));
}

.locked-metric-card small {
  display: block;
  margin-top: 5px;
  color: #607785;
  font-size: 8px;
}

.locked-dashboard-frost {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: rgba(6, 18, 28, 0.22);
  -webkit-backdrop-filter: blur(3px) saturate(0.7);
  backdrop-filter: blur(3px) saturate(0.7);
  pointer-events: none;
}

.locked-dashboard-shell > .unlock-card {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  width: min(340px, calc(100% - 26px));
  transform: translate(-50%, -50%);
}

.locked-similar-teaser {
  position: relative;
  min-height: 330px;
  padding: 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(39, 215, 232, 0.06), transparent 26rem),
    rgba(6, 18, 28, 0.6);
  border: 1px solid rgba(83, 154, 176, 0.15);
  border-radius: 14px;
}

.locked-similar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  opacity: 0.52;
  filter: blur(1px);
}

.locked-similar-card {
  min-height: 255px;
  padding: 14px;
  background: rgba(11, 29, 42, 0.72);
  border: 1px solid rgba(92, 154, 175, 0.14);
  border-radius: 12px;
}

.locked-similar-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  color: #8fa6b4;
  font-size: 10px;
}

.locked-similar-card-head strong {
  color: #d5e6ed;
}

.locked-similar-card-head b {
  color: #6cd9e3;
}

.locked-similar-ring {
  position: relative;
  display: flex;
  width: 100px;
  height: 100px;
  align-items: baseline;
  justify-content: center;
  margin: 17px auto;
  padding-top: 31px;
  background: conic-gradient(rgba(39, 215, 232, 0.4), rgba(39, 215, 232, 0.06));
  border-radius: 50%;
}

.locked-similar-ring i {
  position: absolute;
}

.locked-similar-ring b {
  color: #cae7ed;
  font-size: 19px;
}

.locked-gene-lines {
  display: grid;
  gap: 6px;
  color: #7d96a4;
  font-size: 9px;
}

.locked-gene-lines span {
  padding: 5px 7px;
  background: rgba(255, 255, 255, 0.025);
  border-radius: 6px;
}

.locked-after-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-top: 13px;
}

.locked-after-grid span {
  padding: 7px 5px;
  color: #78909e;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  font-size: 9px;
  text-align: center;
}

.locked-similar-actionbar {
  position: absolute;
  z-index: 4;
  top: 53%;
  left: 50%;
  display: flex;
  width: min(760px, calc(100% - 32px));
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px;
  background: rgba(8, 24, 36, 0.84);
  border: 1px solid rgba(39, 215, 232, 0.23);
  border-radius: 13px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transform: translate(-50%, -50%);
}

.locked-similar-actionbar strong {
  width: 100%;
  color: #d9ebf1;
  font-size: 12px;
  text-align: center;
}

.locked-similar-actionbar .button-primary,
.locked-similar-actionbar .button-secondary,
.locked-similar-actionbar .button-quiet {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  font-size: 10.5px;
  white-space: nowrap;
}

.locked-chart-tooltip {
  position: relative;
  min-width: 200px;
  min-height: 82px;
  overflow: hidden;
}

.locked-tooltip-real {
  opacity: 0.56;
  filter: blur(5px);
  user-select: none;
}

.locked-tooltip-lock {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(8, 23, 35, 0.25);
  border-radius: 12px;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  font-size: 22px;
}

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

  .locked-similar-grid {
    grid-template-columns: 1fr;
  }

  .locked-similar-teaser {
    padding-bottom: 160px;
  }

  .locked-similar-actionbar {
    position: relative;
    top: auto;
    left: auto;
    margin-top: 12px;
    transform: none;
  }
}

@media (max-width: 560px) {
  .membership-status-bar {
    align-items: flex-start;
    flex-direction: column;
  }
}

body.is-embedded {
  background: #060e16;
}

html:has(body.is-embedded),
body.is-embedded {
  height: 100vh;
  margin: 0;
  overflow: hidden;
}

body.is-embedded .global-header,
body.is-embedded .global-footer {
  display: none;
}

body.is-embedded .stock-header.global-header {
  display: none;
}

body.is-embedded .stock-shell {
  display: flex;
  width: 100%;
  height: 100vh;
  flex-direction: column;
  margin: 0;
  padding: 8px 10px;
  overflow: hidden;
}

body.is-embedded .stock-summary-bar {
  display: none;
}

body.is-embedded .history-strip {
  flex: 0 0 auto;
  padding: 8px 10px;
  margin-bottom: 8px;
}

body.is-embedded .hologram-workspace {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  margin-bottom: 0;
}

body.is-embedded #detailCard {
  display: none;
}

@media (max-width: 960px) {
  .value-grid {
    grid-template-columns: 1fr;
  }

  .value-card {
    min-height: 0;
  }

  body.is-embedded .hologram-workspace {
    height: auto;
  }
}

@media (max-width: 768px) {
  body[data-page="home"] .global-header,
  body[data-page="stock"] .global-header {
    width: 100%;
    padding: 13px 10px 11px;
  }

  .global-header .header-main {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .header-nav {
    display: none;
  }

  body[data-page="stock"] .stock-header.global-header {
    height: 54px;
    padding: 7px 10px;
  }

  body[data-page="stock"] .stock-header .header-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    flex-direction: row;
  }

  body[data-page="stock"] .stock-header .header-status {
    display: flex;
    flex-wrap: nowrap;
  }

  body[data-page="stock"] .stock-header .status-ready,
  body[data-page="stock"] .stock-header .status-date,
  body[data-page="stock"] .stock-header .header-home-link {
    display: none;
  }

  body[data-page="stock"] .user-status {
    flex-wrap: nowrap;
  }

  body[data-page="stock"] .user-status .user-pill:not(:first-child),
  body[data-page="stock"] .user-status-badge {
    display: none;
  }

  body[data-page="stock"] .stock-header .brand-lockup {
    display: none;
  }

  body[data-page="stock"] .stock-header .brand-divider,
  body[data-page="stock"] .stock-header .brand-cn {
    display: none;
  }

  body[data-page="stock"] .stock-header .brand-wordmark {
    font-size: 18px;
  }

  .stock-switch-search {
    max-width: none;
  }

  .stock-switch-search input {
    height: 36px;
    font-size: 16px;
  }

  body[data-page="stock"] .stock-summary-bar {
    display: grid;
    min-height: 62px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 9px;
    padding: 8px 10px;
  }

  .stock-name-line {
    gap: 6px;
  }

  .stock-name-line h1 {
    font-size: 20px;
  }

  body[data-page="stock"] .stock-meta {
    flex-wrap: wrap;
    gap: 4px;
  }

  body[data-page="stock"] .stock-summary-bar .price-block {
    align-items: flex-end;
    flex-direction: column;
    gap: 2px;
  }

  body[data-page="stock"] .stock-summary-bar .price-block strong {
    font-size: 22px;
  }

  body[data-page="stock"] .stock-summary-bar .price-block span {
    font-size: 11px;
  }

  .header-status {
    width: 100%;
    justify-content: flex-start;
  }

  .status-ready,
  .status-date,
  .header-home-link {
    min-height: 26px;
    padding: 4px 8px;
    font-size: 9px;
  }

  .landing-shell {
    width: calc(100% - 20px);
    margin-bottom: 58px;
  }

  .hero-section {
    min-height: 440px;
    padding: 48px 2px 40px;
  }

  .hero-section h1 {
    font-size: clamp(32px, 10vw, 43px);
    letter-spacing: -0.04em;
  }

  .hero-lede {
    margin-top: 18px;
    font-size: 13px;
    line-height: 1.75;
  }

  .hero-search {
    width: 100%;
    margin-top: 27px;
  }

  .hero-search-field {
    min-height: 68px;
    border-radius: 18px;
  }

  .hero-search-field input {
    height: 64px;
    min-height: 64px;
    padding: 0 136px 0 48px;
    border-radius: 16px;
    font-size: 16px;
  }

  .hero-search-icon {
    left: 16px;
    font-size: 24px;
  }

  .hero-search-submit {
    right: 5px;
    min-width: 116px;
    min-height: 54px;
    gap: 5px;
    padding: 0 11px;
    border-radius: 13px;
    font-size: 13.5px;
  }

  .hero-search-submit span {
    font-size: 16px;
  }

  .hologram-showcase {
    padding: 12px;
    border-radius: 17px;
  }

  .showcase-head,
  .showcase-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .showcase-head > a {
    padding: 5px 8px;
  }

  .showcase-note span:last-child {
    display: none;
  }

  .showcase-frame {
    height: 680px;
    border-radius: 12px;
  }

  .value-section {
    padding-top: 52px;
  }

  .value-card {
    padding: 22px 20px;
  }

  body[data-page="home"] .global-footer,
  body[data-page="stock"] .global-footer {
    width: 100%;
    padding: 30px 12px 28px;
  }

  .footer-inner {
    width: 100%;
  }

  .footer-research-note {
    width: fit-content;
    max-width: 100%;
    gap: 10px;
    margin-inline: auto;
    padding: 12px 13px;
  }

  .footer-research-note p {
    font-size: 11.5px;
    line-height: 1.7;
  }

  .footer-laboratory {
    margin-top: 25px;
    padding-top: 24px;
  }

  .footer-lab-name {
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
  }

  .footer-lab-name i {
    display: none;
  }

  .footer-mission {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.65;
  }

  .footer-disclaimer {
    font-size: 10.5px;
    line-height: 1.75;
    text-align: center;
  }

  .stock-header.global-header .stock-title-row {
    margin-top: 16px;
  }
}

/* Final high-density panel overrides. */
@media (min-width: 1100px) {
  body[data-page="stock"] .hologram-workspace {
    grid-template-columns: minmax(0, 1fr) 440px;
    height: calc(100vh - 250px);
    min-height: 620px;
  }
}

.quant-funding-top span {
  font-size: 11px;
}

.quant-funding-detail {
  font-size: 10.1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quant-funding-cell p {
  font-size: 10.8px;
}

.quant-guide {
  margin: -1px 0 7px;
  color: #7f98a8;
  font-size: 9.8px;
  line-height: 1.45;
}

.quant-observation-head span {
  font-size: 10.2px;
}

.quant-observation-head strong {
  font-size: 13.5px;
}

.quant-observation-item p {
  font-size: 10.1px;
}

.quant-observation-item small {
  font-size: 9.5px;
}

@media (max-width: 768px) {
  body[data-page="stock"] .history-strip {
    padding: 7px 12px;
    margin-bottom: 8px;
  }

  body[data-page="stock"] .history-strip .section-heading {
    margin-bottom: 5px;
  }

  body[data-page="stock"] .recent-five {
    flex-direction: column;
    gap: 5px;
    overflow: visible;
    padding: 2px 0 3px;
    margin: 0;
  }

  body[data-page="stock"] .history-card {
    width: 100%;
    height: auto;
    min-height: 0;
    flex: 0 0 auto;
    padding: 6px 9px;
  }

  body[data-page="stock"] .history-date {
    font-size: 14.5px;
  }

  body[data-page="stock"] .history-topline strong {
    font-size: 14.5px;
  }

  body[data-page="stock"] .history-title {
    font-size: 13.5px;
  }

  body[data-page="stock"] .story-pill {
    padding: 1px 5px;
    font-size: 9.5px;
  }
}

@media (min-width: 769px) {
  body[data-page="stock"] .history-card {
    gap: 4px;
    padding: 5px 10px;
  }

  body[data-page="stock"] .history-body {
    gap: 0;
    padding: 0;
  }

  body[data-page="stock"] .history-title {
    font-size: 13px;
    line-height: 1.2;
  }

  body[data-page="stock"] .history-clue {
    font-size: 11px;
    line-height: 1.15;
  }

  body[data-page="stock"] .story-pills {
    padding-top: 0;
  }
}

@media (min-width: 1100px) {
  body[data-page="stock"] .hologram-workspace {
    height: calc(100vh - 325px);
    min-height: 540px;
  }
}

/* Professional dual-pane workspace */
.hologram-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 10px;
  min-height: 600px;
  height: calc(100vh - 235px);
  margin-bottom: 10px;
}

.hologram-workspace .chart-panel {
  display: flex;
  min-width: 0;
  min-height: 0;
  margin: 0;
  flex-direction: column;
}

body[data-page="stock"] .hologram-workspace .stock-chart {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
}

.day-panel {
  height: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 15px 15px;
  background:
    radial-gradient(circle at 100% 0, rgba(39, 215, 232, 0.095), transparent 18rem),
    linear-gradient(160deg, rgba(15, 33, 46, 0.97), rgba(7, 18, 28, 0.98));
  border: 1px solid rgba(129, 164, 185, 0.18);
  border-radius: 16px;
  box-shadow: var(--shadow);
  scrollbar-color: rgba(39, 215, 232, 0.34) transparent;
  scrollbar-width: thin;
}

.day-panel-head {
  position: sticky;
  z-index: 4;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0 -15px;
  padding: 14px 15px 12px;
  background:
    linear-gradient(120deg, rgba(39, 215, 232, 0.13), rgba(192, 132, 255, 0.06)),
    rgba(9, 21, 31, 0.97);
  border-bottom: 1px solid rgba(129, 164, 185, 0.14);
  backdrop-filter: blur(14px);
}

.day-panel-head h2 {
  margin: 3px 0 0;
  font-size: 16px;
}

.panel-date {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.panel-date i {
  display: inline-flex;
  margin-left: 6px;
  padding: 1px 6px;
  color: #06121b;
  background: var(--cyan);
  border-radius: 999px;
  font-size: 9px;
  font-style: normal;
}

.latest-day-button {
  flex: 0 0 auto;
  padding: 6px 9px;
  color: #aee8ef;
  background: rgba(39, 215, 232, 0.08);
  border: 1px solid rgba(39, 215, 232, 0.22);
  border-radius: 999px;
  cursor: pointer;
  font-size: 10px;
}

.latest-day-button:disabled {
  opacity: 0.35;
  cursor: default;
}

.panel-quote {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 13px 0 11px;
  border-bottom: 1px solid rgba(129, 164, 185, 0.12);
}

.panel-quote strong {
  font-size: 28px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.panel-quote span {
  color: var(--muted);
  font-size: 12px;
}

.panel-block {
  padding: 13px 0 3px;
}

.panel-block + .panel-block {
  border-top: 1px solid rgba(129, 164, 185, 0.12);
}

.panel-block h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 9px;
  color: #a7f0f4;
  font-size: 11px;
  letter-spacing: 0.05em;
}

.panel-block h3::before {
  width: 3px;
  height: 12px;
  content: "";
  background: linear-gradient(180deg, var(--cyan), var(--purple));
  border-radius: 99px;
}

.panel-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.panel-facts span {
  padding: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.033);
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 8px;
  font-size: 12px;
}

.panel-facts b {
  float: right;
  color: var(--text);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.panel-support {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}

.panel-support-row {
  padding: 8px 9px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-left: 3px solid #7d95a5;
  border-radius: 8px;
}

.panel-support-row span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
}

.panel-support-row p {
  margin: 0;
  color: #d0dfe8;
  font-size: 12px;
  line-height: 1.55;
}

.panel-support-row.support-flow {
  border-left-color: #ff8a80;
}

.panel-support-row.support-active {
  border-left-color: #55b9ff;
}

.panel-support-row.support-support {
  border-left-color: #c084ff;
}

.panel-support-row.support-volume {
  border-left-color: #e9c46a;
}

.panel-block h4 {
  margin: 0 0 6px;
  font-size: 16px;
}

.panel-block > p {
  margin: 0;
  color: #bed0db;
  font-size: 13px;
  line-height: 1.7;
}

.panel-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

.panel-pills span {
  padding: 4px 7px;
  color: #b9d9e7;
  background: rgba(85, 185, 255, 0.09);
  border: 1px solid rgba(85, 185, 255, 0.14);
  border-radius: 999px;
  font-size: 11px;
}

.panel-alerts {
  display: grid;
  gap: 6px;
}

.panel-alert {
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 3px solid #8da3b3;
  border-radius: 8px;
}

.panel-alert.alert-probe {
  border-left-color: var(--purple);
}

.panel-alert.alert-short {
  border-left-color: var(--red);
}

.panel-alert.alert-lure {
  border-left-color: var(--orange);
}

.panel-alert.alert-ignition {
  border-left-color: #00e676;
}

.panel-alert strong {
  display: block;
  margin-bottom: 3px;
  font-size: 12px;
}

.panel-alert p,
.panel-empty {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

/* Compact chart-only tooltip */
.chart-light-tooltip {
  width: 306px;
  padding: 10px 12px;
  box-sizing: border-box;
  color: #e9f1f7;
  font-size: 12px;
}

.light-tooltip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
  font-size: 12px;
}

.light-tooltip-head strong {
  font-size: 13px;
}

.light-tooltip-date {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(129, 164, 185, 0.13);
}

.light-tooltip-date span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.light-tooltip-date strong {
  color: #eff8fc;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.light-tooltip-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.light-tooltip-metrics span {
  padding: 4px 7px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 6px;
  font-size: 11px;
}

.light-tooltip-metrics b {
  margin-left: 3px;
  color: #edf4f7;
  font-variant-numeric: tabular-nums;
}

.light-tooltip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.light-tooltip-grid span {
  padding: 4px 6px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 5px;
}

.light-tooltip-grid b {
  float: right;
  color: var(--text);
}

.light-tooltip-summary {
  margin-bottom: 7px;
  color: #e6f0f5;
  font-size: 14px;
  font-weight: 750;
}

.light-tooltip-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}

.light-tooltip-badges:empty {
  display: none;
}

.light-tooltip-badges span {
  padding: 2px 5px;
  color: #b7d5e3;
  background: rgba(85, 185, 255, 0.09);
  border-radius: 999px;
  font-size: 10px;
}

.light-tooltip-special {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}

.light-special-alert {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px;
}

.special-icon {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: #06131d;
  background: var(--cyan);
  border-radius: 50%;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 0 12px rgba(39, 215, 232, 0.45);
}

.light-special-alert strong {
  display: block;
  font-size: 11px;
}

.light-special-alert p {
  display: -webkit-box;
  margin: 2px 0 0;
  overflow: hidden;
  color: #9fb5c2;
  font-size: 10px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rank-index {
  display: inline-grid;
  width: 28px;
  height: 24px;
  place-items: center;
  color: var(--cyan);
  background: rgba(39, 215, 232, 0.08);
  border: 1px solid rgba(39, 215, 232, 0.2);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
}

.gene-card-title {
  color: #dce9f0 !important;
  font-size: 13px !important;
}

.similar-header time {
  margin-left: auto;
  color: #d7e5ed;
  font-size: 15px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.gene-score-wrap {
  display: grid;
  place-items: center;
  padding: 12px 0 8px;
}

.gene-score-ring {
  position: relative;
  display: grid;
  width: 94px;
  height: 94px;
  place-items: center;
  background:
    conic-gradient(
      from -90deg,
      #27d7e8 calc(var(--score) * 1%),
      rgba(255, 255, 255, 0.065) 0
    );
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(39, 215, 232, 0.13);
}

.gene-score-ring::before {
  position: absolute;
  inset: 7px;
  content: "";
  background: #0a1a25;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 50%;
}

.gene-score-ring > div {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  color: #f2fbfd;
  font-variant-numeric: tabular-nums;
}

.gene-score-ring strong {
  font-size: 28px;
  line-height: 1;
}

.gene-score-ring small {
  margin-left: 2px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 750;
}

.gene-data-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 3px 0 6px;
  color: var(--muted);
  font-size: 10px;
}

.gene-data-head b {
  color: #a9c3d1;
  font-weight: 600;
}

.gene-data-list {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 4px;
  height: 86px;
  margin-bottom: 11px;
}

.gene-data-list span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 7px;
  color: #bcd5e2;
  background: rgba(39, 215, 232, 0.045);
  border: 1px solid rgba(39, 215, 232, 0.08);
  border-radius: 7px;
  font-size: 11px;
  line-height: 1.35;
  overflow: hidden;
}

.gene-data-list i {
  display: inline-grid;
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  place-items: center;
  color: #06131c;
  background: var(--cyan);
  border-radius: 50%;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.light-special-alert.special-probe {
  background: linear-gradient(120deg, rgba(192, 132, 255, 0.15), rgba(85, 185, 255, 0.04));
  border-color: rgba(192, 132, 255, 0.35);
}

.light-special-alert.special-probe .special-icon {
  background: var(--purple);
  box-shadow: 0 0 16px rgba(192, 132, 255, 0.7);
}

.light-special-alert.special-short {
  background: linear-gradient(120deg, rgba(255, 101, 117, 0.15), rgba(255, 101, 117, 0.035));
  border-color: rgba(255, 101, 117, 0.34);
}

.light-special-alert.special-short .special-icon {
  color: #fff;
  background: var(--red);
  box-shadow: 0 0 16px rgba(255, 101, 117, 0.65);
}

.light-special-alert.special-lure {
  background: linear-gradient(120deg, rgba(255, 154, 85, 0.15), rgba(255, 154, 85, 0.035));
  border-color: rgba(255, 154, 85, 0.34);
}

.light-special-alert.special-lure .special-icon {
  color: #1b0b00;
  background: var(--orange);
  box-shadow: 0 0 16px rgba(255, 154, 85, 0.65);
}

.light-special-alert.special-ignition {
  background: linear-gradient(120deg, rgba(0, 230, 118, 0.15), rgba(255, 215, 0, 0.055));
  border-color: rgba(0, 230, 118, 0.36);
}

.light-special-alert.special-ignition .special-icon {
  color: #02140a;
  background: #69f0ae;
  box-shadow: 0 0 18px rgba(0, 230, 118, 0.75);
}

.light-special-alert.special-tier-ignition_refuel {
  background: linear-gradient(120deg, rgba(255, 215, 0, 0.15), rgba(255, 161, 0, 0.04));
  border-color: rgba(255, 193, 7, 0.38);
}

.light-special-alert.special-tier-ignition_refuel .special-icon {
  background: #ffe57f;
  box-shadow: 0 0 18px rgba(255, 193, 7, 0.72);
}

body[data-page="stock"] .recent-five {
  gap: 10px;
}

body[data-page="stock"] .history-card {
  min-height: 112px;
  padding: 10px 11px;
}

.history-topline > span {
  font-size: 16px;
  line-height: 1.15;
}

.latest-badge {
  padding: 3px 7px;
  color: #031018;
  background: #7ff4ff;
  border: 1px solid #c9fbff;
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(39, 215, 232, 0.55);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

body[data-page="stock"] .history-card.is-latest {
  border-color: rgba(93, 232, 244, 0.82);
  box-shadow:
    inset 0 0 0 1px rgba(93, 232, 244, 0.76),
    0 0 0 2px rgba(39, 215, 232, 0.11),
    0 0 24px rgba(39, 215, 232, 0.12);
}

.history-topline strong {
  color: inherit;
  font-size: 16px;
  font-weight: 800;
}

.history-title {
  margin: 0;
  color: #f1f7fa;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.history-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
  padding: 8px 0 7px;
}

.history-clue {
  overflow: hidden;
  color: #8da3b3;
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  font-weight: 650;
}

.history-metrics i {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  font-style: normal;
}

.history-metrics small {
  color: #d6bd78;
  font-size: 10px;
}

.history-metrics b {
  color: #e9c46a;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.history-metrics i:last-child b {
  color: #edf4f7;
}

.history-metrics i:last-child {
  color: #e9c46a;
}

.story-pill {
  font-size: 11px;
}

.story-pill.signal-probe,
.story-pill.signal-short,
.story-pill.signal-lure,
.story-pill.signal-ignition {
  color: #e8f7ff;
  background: rgba(85, 185, 255, 0.12);
  border-color: rgba(85, 185, 255, 0.32);
}

.story-pill.signal-probe {
  background: rgba(192, 132, 255, 0.13);
  border-color: rgba(192, 132, 255, 0.36);
}

.story-pill.signal-short {
  background: rgba(255, 101, 117, 0.13);
  border-color: rgba(255, 101, 117, 0.34);
}

.story-pill.signal-lure {
  background: rgba(255, 154, 85, 0.13);
  border-color: rgba(255, 154, 85, 0.34);
}

.story-pill.signal-ignition {
  background: rgba(0, 230, 118, 0.11);
  border-color: rgba(0, 230, 118, 0.3);
}

.story-pill.neutral-badge {
  color: #8499a7;
  background: rgba(132, 153, 167, 0.07);
  border-color: rgba(132, 153, 167, 0.13);
}

/* Signal-led history cards and top-priority alert panel. */
body[data-page="stock"] .history-card.has-signal {
  --signal-color: #27d7e8;
  --signal-glow: rgba(39, 215, 232, 0.28);
  border-width: 1.5px;
  border-color: color-mix(in srgb, var(--signal-color) 62%, transparent);
  background:
    radial-gradient(
      circle at 50% 0%,
      color-mix(in srgb, var(--signal-color) 17%, transparent),
      transparent 74%
    ),
    linear-gradient(150deg, rgba(12, 28, 40, 0.98), rgba(7, 17, 27, 0.98));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--signal-color) 16%, transparent),
    0 8px 24px color-mix(in srgb, var(--signal-glow) 65%, transparent);
}

body[data-page="stock"] .history-card.has-signal.active {
  border-color: var(--signal-color);
  box-shadow:
    0 0 0 1px var(--signal-color),
    0 0 24px var(--signal-glow);
}

.signal-theme-probe-extreme {
  --signal-color: #c084ff;
  --signal-glow: rgba(192, 132, 255, 0.46);
}

.signal-theme-probe-strong {
  --signal-color: #55b9ff;
  --signal-glow: rgba(85, 185, 255, 0.42);
}

.signal-theme-ignition-charge {
  --signal-color: #00e676;
  --signal-glow: rgba(0, 230, 118, 0.4);
}

.signal-theme-ignition-refuel {
  --signal-color: #ffd54f;
  --signal-glow: rgba(255, 213, 79, 0.4);
}

.signal-theme-short {
  --signal-color: #ff6575;
  --signal-glow: rgba(255, 101, 117, 0.44);
}

.signal-theme-lure {
  --signal-color: #ff9a55;
  --signal-glow: rgba(255, 154, 85, 0.44);
}

body[data-page="stock"] .history-card.has-signal .story-pill {
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
  border-width: 1px;
  box-shadow: inset 0 0 12px color-mix(
    in srgb,
    var(--signal-color) 9%,
    transparent
  );
}

body[data-page="stock"] .day-overview-card.signal-context-card .panel-summary {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.story-pill.signal-probe.tier-extreme {
  color: #e1c4ff;
  background: rgba(192, 132, 255, 0.18);
  border-color: rgba(192, 132, 255, 0.58);
}

.story-pill.signal-probe.tier-strong {
  color: #b8e2ff;
  background: rgba(85, 185, 255, 0.16);
  border-color: rgba(85, 185, 255, 0.52);
}

.story-pill.signal-ignition.tier-ignition_charge {
  color: #9dffc7;
  background: rgba(0, 230, 118, 0.16);
  border-color: rgba(0, 230, 118, 0.5);
}

.story-pill.signal-ignition.tier-ignition_refuel {
  color: #ffe894;
  background: rgba(255, 213, 79, 0.16);
  border-color: rgba(255, 213, 79, 0.5);
}

.story-pill.signal-short {
  color: #ffb1ba;
  background: rgba(255, 101, 117, 0.16);
  border-color: rgba(255, 101, 117, 0.5);
}

.story-pill.signal-lure {
  color: #ffc799;
  background: rgba(255, 154, 85, 0.16);
  border-color: rgba(255, 154, 85, 0.5);
}

body[data-page="stock"] .day-alert-card {
  position: relative;
  border-width: 1.5px;
  border-color: color-mix(in srgb, var(--signal-color) 62%, transparent);
  background:
    radial-gradient(
      circle at 88% 0%,
      color-mix(in srgb, var(--signal-color) 20%, transparent),
      transparent 72%
    ),
    linear-gradient(
      140deg,
      color-mix(in srgb, var(--signal-color) 9%, #0d1d2a),
      #091520 72%
    );
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--signal-color) 15%, transparent),
    0 10px 30px color-mix(in srgb, var(--signal-glow) 52%, transparent);
  animation: alert-breathe 3.8s ease-in-out infinite;
}

.day-alert-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}

.day-alert-head span {
  display: block;
  margin-bottom: 2px;
  color: var(--signal-color);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.day-alert-head h3 {
  margin: 0;
  color: #f5fbff;
  font-size: 15px;
}

.day-alert-head > b {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--signal-color);
  background: color-mix(in srgb, var(--signal-color) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--signal-color) 42%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 16px var(--signal-glow);
  font-size: 17px;
}

body[data-page="stock"] .day-alert-card .panel-alerts {
  display: grid;
  gap: 7px;
}

body[data-page="stock"] .day-alert-card .panel-alert {
  padding: 8px 10px;
  background: rgba(4, 13, 21, 0.42);
  border-color: color-mix(in srgb, var(--signal-color) 32%, transparent);
}

body[data-page="stock"] .day-alert-card .panel-alert strong {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #f4fbff;
  font-size: 13px;
}

body[data-page="stock"] .day-alert-card .panel-alert strong i {
  color: var(--signal-color);
  font-size: 15px;
  font-style: normal;
}

body[data-page="stock"] .day-alert-card .panel-alert p {
  margin-top: 3px;
  color: #b8cbd6;
  font-size: 11.5px;
  line-height: 1.5;
}

@keyframes alert-breathe {
  0%,
  100% {
    box-shadow:
      0 0 0 1px color-mix(in srgb, var(--signal-color) 15%, transparent),
      0 8px 24px color-mix(in srgb, var(--signal-glow) 42%, transparent);
  }
  50% {
    box-shadow:
      0 0 0 1px color-mix(in srgb, var(--signal-color) 28%, transparent),
      0 12px 34px color-mix(in srgb, var(--signal-glow) 72%, transparent);
  }
}

@media (max-width: 768px) {
  body[data-page="stock"] .history-card.has-signal {
    border-left-width: 4px;
    border-left-color: var(--signal-color);
    background:
      linear-gradient(
        90deg,
        color-mix(in srgb, var(--signal-color) 12%, transparent),
        transparent 40%
      ),
      linear-gradient(150deg, rgba(12, 28, 40, 0.98), rgba(7, 17, 27, 0.98));
  }

  body[data-page="stock"] .history-card.has-signal .story-pill {
    font-size: 10.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="stock"] .day-alert-card {
    animation: none;
  }
}

.after-cell.after-up {
  background: rgba(255, 101, 117, 0.085);
  border-color: rgba(255, 101, 117, 0.13);
}

.after-cell.after-down {
  background: rgba(81, 214, 156, 0.08);
  border-color: rgba(81, 214, 156, 0.13);
}

@media (max-width: 1099px) {
  .hologram-workspace {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    min-height: 0;
  }

  .hologram-workspace .chart-panel {
    height: calc(100vh - 235px);
    min-height: 600px;
  }

  .day-panel {
    height: auto;
    max-height: none;
  }
}

@media (max-width: 760px) {
  .hologram-workspace .chart-panel {
    height: 640px;
    min-height: 600px;
  }

  body[data-page="stock"] .recent-five {
    gap: 10px;
  }

  body[data-page="stock"] .history-card {
    height: auto;
    min-height: 0;
    flex: 0 0 auto;
    padding: 7px 10px;
  }

  body[data-page="stock"] .hologram-workspace .stock-chart {
    height: auto;
    min-height: 0;
  }
}

/* Final intent-strip density and day-panel typography overrides. */
body[data-page="stock"] .history-strip {
  padding: 8px 12px;
  margin-bottom: 8px;
}

body[data-page="stock"] .history-strip .section-heading {
  margin-bottom: 6px;
}

body[data-page="stock"] .recent-five {
  gap: 10px;
  padding: 3px 2px 4px;
  margin: -3px -2px 0;
}

body[data-page="stock"] .history-card {
  display: flex;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  gap: 4px;
  justify-content: flex-start;
  padding: 8px 11px;
}

body[data-page="stock"] .history-date {
  min-height: 0;
  padding: 0;
  color: #f3f8fb;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 15px;
}

body[data-page="stock"] .latest-badge {
  padding: 1px 5px;
  font-size: 9px;
}

body[data-page="stock"] .history-topline strong {
  font-size: 15px;
}

body[data-page="stock"] .history-body {
  gap: 1px;
  padding: 1px 0;
}

body[data-page="stock"] .history-title {
  font-size: 13.5px;
}

body[data-page="stock"] .story-pills {
  gap: 3px;
  margin-top: auto;
  padding-top: 2px;
}

body[data-page="stock"] .story-pill {
  padding: 1px 6px;
  font-size: 10px;
}

body[data-page="stock"] .day-panel {
  gap: 6px;
  padding: 8px;
  overflow-x: hidden;
  overflow-y: auto;
}

body[data-page="stock"] .day-card {
  flex: 0 0 auto;
  padding: 9px 10px;
  overflow: visible;
}

.panel-summary {
  overflow: hidden;
  font-size: 12px;
  line-height: 1.5;
  -webkit-line-clamp: 2;
}

.panel-title-row {
  margin: 6px 0 5px;
}

.day-card h3 {
  font-size: 12px;
}

.panel-quote-strip {
  margin-bottom: 5px;
  font-size: 11.5px;
}

.panel-matrix {
  gap: 5px;
}

.matrix-cell {
  padding: 6px 8px;
}

.matrix-cell small {
  font-size: 11.5px;
}

.matrix-cell strong {
  font-size: 17px;
}

.matrix-cell p {
  overflow: visible;
  font-size: 11px;
  line-height: 1.45;
  white-space: normal;
}

.panel-matrix {
  grid-template-columns: 1fr;
  gap: 8px;
}

.matrix-cell {
  padding: 9px 12px;
}

.matrix-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.matrix-cell small {
  margin: 0;
  font-size: 12px;
}

.matrix-cell strong {
  font-size: 17px;
  white-space: nowrap;
}

.matrix-detail {
  margin: 4px 0 0;
  color: #91a7b5;
  font-size: 11.5px;
  line-height: 1.45;
  white-space: normal;
}

@media (min-width: 769px) {
  body[data-page="stock"] .history-strip {
    padding: 8px 12px;
    margin-bottom: 8px;
  }

  body[data-page="stock"] .history-strip .section-heading {
    margin-bottom: 6px;
  }

  body[data-page="stock"] .recent-five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    gap: 10px;
    overflow: visible;
    padding: 2px 2px 3px;
    margin: -2px -2px 0;
  }

  body[data-page="stock"] .history-card {
    display: flex;
    height: 100%;
    min-height: 0;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    padding: 10px 13px;
  }

  body[data-page="stock"] .history-date {
    min-height: 0;
    padding: 0;
    color: #f3f8fb;
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: 15.5px;
  }

  body[data-page="stock"] .latest-badge {
    padding: 1px 5px;
    font-size: 10px;
  }

  body[data-page="stock"] .history-topline strong {
    font-size: 15.5px;
  }

  body[data-page="stock"] .history-body {
    gap: 0;
    padding: 0;
  }

  body[data-page="stock"] .history-title {
    font-size: 15.5px;
    line-height: 1.35;
  }

  body[data-page="stock"] .history-clue {
    display: none;
  }

  body[data-page="stock"] .story-pills {
    gap: 6px;
    margin-top: auto;
    padding-top: 2px;
  }

  body[data-page="stock"] .story-pill {
    padding: 3px 8px;
    font-size: 11px;
  }
}

@media (max-width: 768px) {
  body[data-page="stock"] .history-strip {
    padding: 7px 12px;
    margin-bottom: 8px;
  }

  body[data-page="stock"] .history-strip .section-heading {
    margin-bottom: 5px;
  }

  body[data-page="stock"] .recent-five {
    display: flex;
    flex-direction: column;
    gap: 5px;
    overflow: visible;
    padding: 2px 0 3px;
    margin: 0;
    scroll-snap-type: none;
  }

  body[data-page="stock"] .history-card {
    display: grid;
    width: 100%;
    height: auto;
    min-height: 0;
    flex: 0 0 auto;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 2px 10px;
    align-items: center;
    padding: 8px 11px;
    scroll-snap-align: none;
  }

  body[data-page="stock"] .history-topline {
    display: contents;
  }

  body[data-page="stock"] .history-date-wrap {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  body[data-page="stock"] .history-date {
    font-size: 15px;
  }

  body[data-page="stock"] .latest-badge {
    padding: 1px 5px;
    font-size: 9.5px;
  }

  body[data-page="stock"] .history-topline > strong {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
    font-size: 15px;
  }

  body[data-page="stock"] .history-body {
    grid-column: 2;
    grid-row: 1;
    padding: 0;
  }

  body[data-page="stock"] .history-title {
    font-size: 14.5px;
  }

  body[data-page="stock"] .history-clue {
    display: none;
  }

  body[data-page="stock"] .story-pills {
    grid-column: 2;
    grid-row: 2;
    flex-wrap: nowrap;
    margin-top: 0;
    overflow: hidden;
    padding-top: 0;
  }

  body[data-page="stock"] .story-pill.signal-probe,
  body[data-page="stock"] .story-pill.signal-short,
  body[data-page="stock"] .story-pill.signal-lure,
  body[data-page="stock"] .story-pill.signal-ignition,
  body[data-page="stock"] .story-pill:nth-child(n + 2) {
    display: none;
  }

  body[data-page="stock"] .story-pill {
    padding: 1px 6px;
    font-size: 10px;
  }
}
