/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/.pnpm/next@14.2.35_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/.pnpm/next@14.2.35_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/globals.css ***!
  \*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --topbar-height: 52px;
  --bg: #050b12;
  --bg-2: #08121d;
  --panel: rgba(14, 28, 43, 0.82);
  --panel-2: rgba(17, 34, 51, 0.92);
  --panel-3: rgba(12, 24, 37, 0.7);
  --line: rgba(126, 172, 218, 0.17);
  --line-strong: rgba(42, 151, 255, 0.55);
  --text: #f4f8ff;
  --muted: #9dabbc;
  --faint: #66768a;
  --blue: #169bff;
  --blue-2: #226cff;
  --cyan: #21d7ff;
  --green: #21db83;
  --red: #ff4f5e;
  --orange: #ffae34;
  --purple: #a051d6;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  --page-x: clamp(16px, 1.7vw, 30px);
  --panel-radius: 8px;
  --home-viewport: calc(100dvh - var(--topbar-height));
}

html,
body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 14% -8%, rgba(20, 113, 185, 0.18), transparent 28rem),
    radial-gradient(circle at 82% 8%, rgba(33, 215, 255, 0.075), transparent 24rem),
    linear-gradient(180deg, #060f19 0%, #050910 100%);
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

button,
input,
select {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(18, 38, 58, 0.2) 0 1px, transparent 1px) 0 0 / 58px 58px,
    linear-gradient(180deg, rgba(18, 38, 58, 0.18) 0 1px, transparent 1px) 0 0 / 58px 58px;
}

.topbar {
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.5vw, 22px);
  padding: 0 var(--page-x);
  background: rgba(4, 9, 15, 0.88);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px);
          backdrop-filter: blur(18px);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  min-width: 150px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    conic-gradient(from 45deg, var(--cyan), var(--blue-2), #4b35db, var(--cyan));
  box-shadow: 0 0 22px rgba(22, 155, 255, 0.55);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: var(--bg);
}

.brand span span {
  color: var(--blue);
}

.nav {
  display: flex;
  align-items: stretch;
  gap: clamp(16px, 2.4vw, 42px);
  height: 100%;
  flex: 1 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  display: flex;
  align-items: center;
  color: #dce6f4;
  font-weight: 650;
  font-size: 13px;
  border-bottom: 3px solid transparent;
  opacity: 0.88;
  white-space: nowrap;
}

.nav a.active {
  color: #18a7ff;
  border-color: #168dff;
  text-shadow: 0 0 14px rgba(22, 155, 255, 0.45);
}

.top-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c1cad8;
  white-space: nowrap;
  flex: 0 0 auto;
  font-size: 12px;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 60% 35%, #82d7ff, transparent 25%),
    linear-gradient(135deg, #2637c2, #23cbb8);
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.page {
  padding: 20px var(--page-x) 16px;
}

.market-snapshot-page {
  min-height: var(--home-viewport);
  padding: clamp(12px, 1.7vh, 18px) var(--page-x) 10px;
  scroll-margin-top: var(--topbar-height);
}

.market-snapshot-page.embedded {
  border-top: 1px solid rgba(126, 172, 218, 0.12);
}

.home-flow-paged .market-snapshot-page.embedded {
  scroll-margin-top: 0;
}

.home-flow-paged .market-snapshot-page.embedded {
  display: flex;
  align-items: stretch;
  height: var(--home-viewport);
  min-height: 0;
  overflow: hidden;
  padding-top: clamp(8px, 1.2dvh, 12px);
  padding-bottom: clamp(8px, 1.2dvh, 12px);
}

.home-flow-paged .market-snapshot-page.embedded .market-grid {
  flex: 1 1;
  height: 100%;
  min-height: 0;
  gap: 10px;
  grid-template-columns: minmax(290px, 0.72fr) minmax(0, 1.82fr);
}

.home-flow-paged .market-snapshot-page.embedded .stack {
  gap: 8px;
  min-height: 0;
}

.home-flow-paged .market-snapshot-page.embedded .environment,
.home-flow-paged .market-snapshot-page.embedded .insight,
.home-flow-paged .market-snapshot-page.embedded .play-groups,
.home-flow-paged .market-snapshot-page.embedded .performance {
  min-height: 0;
}

.home-flow-paged .market-snapshot-page.embedded .environment,
.home-flow-paged .market-snapshot-page.embedded .insight {
  padding: 10px;
}

.home-flow-paged .market-snapshot-page.embedded .section-title {
  margin-bottom: 6px;
  font-size: clamp(15px, 2.05dvh, 18px);
}

.home-flow-paged .market-snapshot-page.embedded .heatmap {
  grid-auto-rows: clamp(42px, 6.1dvh, 54px);
  margin-top: 8px;
}

.home-flow-paged .market-snapshot-page.embedded .heatmap > div {
  padding: 4px;
  font-size: 11px;
  line-height: 1.22;
}

.home-flow-paged .market-snapshot-page.embedded .heatmap-note {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.35;
}

.home-flow-paged .market-snapshot-page.embedded .tabs {
  margin: 8px 0;
}

.home-flow-paged .market-snapshot-page.embedded .quote-large {
  font-size: clamp(18px, 2.8dvh, 22px);
}

.home-flow-paged .market-snapshot-page.embedded .insight-metrics {
  gap: 6px 10px;
  margin: 8px 0;
}

.home-flow-paged .market-snapshot-page.embedded .insight > .insight-metrics:last-of-type {
  gap: 8px 12px;
  margin-top: 8px;
  padding-top: 8px;
}

.home-flow-paged .market-snapshot-page.embedded .play-groups {
  padding: 8px 10px;
}

.home-flow-paged .market-snapshot-page.embedded .play-group {
  margin-top: 4px;
  padding: 5px 10px 4px 14px;
}

.home-flow-paged .market-snapshot-page.embedded .play-row {
  padding: 3px 0;
  font-size: 11px;
}

.home-flow-paged .market-snapshot-page.embedded .play-header h3 {
  font-size: 14px;
}

.home-flow-paged .market-snapshot-page.embedded .play-columns {
  font-size: 9px;
}

.home-flow-paged .market-snapshot-page.embedded .performance {
  padding: 7px 10px;
}

.home-flow-paged .market-snapshot-page.embedded .section-toolbar {
  margin-bottom: 8px;
}

.home-flow-paged .market-snapshot-page.embedded .performance-chart {
  min-height: clamp(132px, 19dvh, 190px);
}

.home-flow-paged .market-snapshot-page.embedded .metric-card {
  padding: 10px;
}

.home-flow-paged .market-snapshot-page.embedded .metric-card div {
  margin: 5px 0;
}

.page.full {
  padding: 0;
}

.home-flow {
  scroll-snap-type: none;
}

.home-flow-paged {
  height: var(--home-viewport);
  overflow: hidden;
  overscroll-behavior: contain;
  touch-action: none;
}

.home-slide-track {
  height: calc(var(--home-viewport) * 2);
  transform: translateY(calc(var(--home-viewport) * -1 * attr(data-active-screen number, 0)));
}

.home-flow-paged[data-active-screen="0"] .home-slide-track {
  transform: translateY(0);
}

.home-flow-paged[data-active-screen="1"] .home-slide-track {
  transform: translateY(calc(var(--home-viewport) * -1));
}

.home-slide-track {
  transition: transform 680ms cubic-bezier(0.22, 1, 0.36, 1);
}

.home-flow-paged::-webkit-scrollbar {
  display: none;
}

.home-flow > .home-hero,
.home-flow > .market-snapshot-page {
  scroll-snap-align: start;
}

.home-slide-track > .home-hero,
.home-slide-track > .market-snapshot-page {
  height: var(--home-viewport);
  min-height: 0;
}

.panel {
  background:
    linear-gradient(180deg, rgba(18, 34, 50, 0.9), rgba(8, 18, 30, 0.82));
  border: 1px solid rgba(126, 172, 218, 0.13);
  border-radius: var(--panel-radius);
  box-shadow: var(--shadow);
}

.section-title {
  margin: 0 0 8px;
  font-size: clamp(17px, 1.3vw, 21px);
  font-weight: 750;
}

.subtitle {
  margin: 0;
  color: #aeb9c9;
  line-height: 1.52;
}

.blue {
  color: var(--blue);
}

.cyan {
  color: var(--cyan);
}

.green {
  color: var(--green);
}

.red {
  color: var(--red);
}

.orange {
  color: var(--orange);
}

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

.pill,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  border: 1px solid rgba(92, 145, 199, 0.25);
  background: rgba(24, 45, 66, 0.7);
  padding: 5px 9px;
  color: #d8e4f3;
}

.tag.green {
  border-color: rgba(33, 219, 131, 0.42);
  background: rgba(12, 116, 76, 0.28);
  color: var(--green);
}

.tag.blue {
  border-color: rgba(22, 155, 255, 0.45);
  background: rgba(16, 88, 160, 0.28);
  color: #55bbff;
}

.tag.purple {
  border-color: rgba(160, 81, 214, 0.45);
  color: #cb80ff;
  background: rgba(83, 36, 122, 0.28);
}

.button {
  border: 0;
  border-radius: 7px;
  background: linear-gradient(135deg, #178bff, #1666f5);
  color: white;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 17px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(22, 135, 255, 0.25);
}

.ghost-button {
  border: 1px solid rgba(127, 165, 208, 0.24);
  background: rgba(19, 33, 48, 0.72);
  color: #d9e6f5;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
}

.data-table {
  width: 100%;
  min-width: max-content;
  border-collapse: collapse;
}

.data-table th {
  color: #b9c6d5;
  font-size: 12px;
  text-align: left;
  background: rgba(31, 50, 69, 0.62);
  padding: 6px 12px;
  white-space: nowrap;
}

.data-table td {
  padding: 5px 12px;
  border-top: 1px solid rgba(126, 172, 218, 0.13);
  color: #edf4ff;
  font-weight: 520;
  vertical-align: middle;
  line-height: 1.25;
}

.data-table small {
  display: block;
  margin-top: 4px;
  color: #91a0b1;
  font-weight: 450;
}

.spark {
  width: 128px;
  height: 28px;
}

.spark polyline {
  fill: none;
  stroke: var(--green);
  stroke-width: 2.2;
}

.spark.red polyline {
  stroke: var(--red);
}

.spark-area {
  fill: rgba(33, 219, 131, 0.08);
}

.mini-chart {
  width: 100%;
  height: 75px;
}

.recommend-card {
  min-height: clamp(392px, calc(var(--home-viewport) - clamp(150px, 21vh, 220px)), 560px);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3.3vh, 34px) clamp(15px, 1.2vw, 20px) clamp(16px, 2.3vh, 24px);
  border: 1px solid rgba(42, 151, 255, 0.52);
  border-radius: 9px;
  background:
    radial-gradient(circle at 50% 15%, rgba(25, 128, 239, 0.17), transparent 42%),
    linear-gradient(180deg, rgba(14, 29, 45, 0.96), rgba(8, 18, 30, 0.96));
}

.recommend-card.dim {
  opacity: 0.38;
}

.recommend-card:not(.dim) {
  box-shadow: 0 0 0 1px rgba(20, 153, 255, 0.2), 0 0 26px rgba(22, 139, 255, 0.24);
}

.recommend-card .badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 0 0 18px 18px;
  background: linear-gradient(135deg, #159bff, #2449e7);
  padding: 6px 22px;
  font-size: 12px;
  font-weight: 800;
}

.recommend-card h3 {
  margin: clamp(11px, 1.9vh, 18px) 0 clamp(7px, 1vh, 11px);
  font-size: clamp(20px, 2.7vh, 28px);
}

.recommend-card strong,
.recommend-card .muted {
  font-size: clamp(12px, 1.45vh, 14px);
}

.recommend-card .line {
  height: clamp(58px, 10.5vh, 104px);
  margin: clamp(12px, 2vh, 24px) 0 clamp(10px, 1.7vh, 18px);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 8px;
  gap: 8px;
  margin-bottom: clamp(10px, 1.8vh, 18px);
}

.metrics span {
  color: #8391a4;
  font-size: 13px;
}

.metrics strong {
  display: block;
  margin-top: clamp(6px, 1.1vh, 12px);
  color: var(--green);
  font-size: clamp(15px, 1.8vh, 17px);
}

.recommend-card p {
  color: #b7c3d0;
  font-size: clamp(12px, 1.45vh, 13px);
  line-height: 1.58;
  margin: 0 0 clamp(12px, 2vh, 22px);
}

.recommend-card .button {
  margin-top: auto;
  text-align: center;
}

.home-hero {
  min-height: min(var(--home-viewport), 900px);
  padding: clamp(22px, 3.8vh, 48px) clamp(22px, 3vw, 48px) clamp(44px, 7vh, 78px);
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.76fr);
  grid-gap: clamp(22px, 3vw, 44px);
  gap: clamp(22px, 3vw, 44px);
  align-items: stretch;
  align-content: stretch;
  overflow: clip;
  position: relative;
}

.home-hero::before {
  content: "";
  position: absolute;
  left: -100px;
  bottom: -160px;
  width: 700px;
  height: 330px;
  background:
    radial-gradient(circle, rgba(20, 156, 255, 0.4) 1px, transparent 2px) 0 0 / 18px 18px;
  opacity: 0.32;
  transform: rotate(8deg);
  filter: blur(0.2px);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding-top: clamp(4px, 0.8vh, 10px);
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  min-height: 100%;
}

.hero-copy h1 {
  margin: 0 0 clamp(12px, 2vh, 22px);
  font-size: clamp(32px, 4.7vh, 54px);
  line-height: 1.14;
  letter-spacing: 0;
}

.hero-copy h1 span {
  display: block;
  margin-bottom: clamp(10px, 2vh, 20px);
  background: linear-gradient(90deg, #f8fbff, #55acff);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-copy p {
  color: #b3becc;
  font-size: clamp(14px, 1.9vh, 17px);
  line-height: 1.68;
  max-width: 34rem;
}

.hero-rule {
  width: 46px;
  height: 4px;
  background: linear-gradient(90deg, #19adff, transparent);
  margin: clamp(18px, 2.4vh, 28px) 0;
  border-radius: 999px;
}

.feature-list {
  display: grid;
  grid-gap: clamp(12px, 2.25vh, 22px);
  gap: clamp(12px, 2.25vh, 22px);
}

.feature-row {
  display: grid;
  grid-template-columns: clamp(44px, 6vh, 56px) 1fr;
  grid-gap: clamp(13px, 1.45vw, 20px);
  gap: clamp(13px, 1.45vw, 20px);
  align-items: center;
}

.feature-icon {
  width: clamp(44px, 6vh, 56px);
  height: clamp(44px, 6vh, 56px);
  border: 1px solid rgba(33, 188, 255, 0.42);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  background: rgba(9, 34, 56, 0.72);
}

.feature-row strong {
  display: block;
  font-size: clamp(15px, 1.9vh, 18px);
}

.feature-row span {
  color: #9fafc1;
  font-size: clamp(12px, 1.55vh, 14px);
}

.hero-cards {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-gap: clamp(11px, 1.25vw, 18px);
  gap: clamp(11px, 1.25vw, 18px);
  align-items: stretch;
  align-content: stretch;
  min-height: 100%;
  padding-top: clamp(6px, 1vh, 14px);
}

.hero-controls {
  grid-column: 1 / -1;
  text-align: center;
  color: #dce6f2;
  margin-top: auto;
  align-self: end;
}

.pager {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  margin: clamp(8px, 1.8vh, 18px) 0 clamp(12px, 2.5vh, 26px);
}

.pager button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  display: inline-grid;
  place-items: center;
  background: rgba(25, 43, 62, 0.82);
  color: #dce8f4;
}

.pager i {
  width: 28px;
  height: 6px;
  border-radius: 999px;
  background: #758397;
  opacity: 0.5;
}

.pager i.active {
  background: var(--blue);
  opacity: 1;
}

.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #d5deea;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  position: absolute;
  left: 50%;
  bottom: clamp(12px, 2.4vh, 28px);
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
  z-index: 2;
}

.scroll-hint:hover,
.scroll-hint:focus-visible {
  color: #f4f8ff;
}

.scroll-hint span {
  display: block;
}

.market-grid {
  display: grid;
  grid-template-columns: minmax(315px, 0.76fr) minmax(0, 1.76fr);
  grid-gap: 14px;
  gap: 14px;
  align-items: stretch;
}

.market-grid .panel {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.market-grid > *,
.sidebar-layout > *,
.buzz-grid > *,
.library-layout > *,
.detail-grid > *,
.screener,
.left-rail {
  min-width: 0;
}

.stack {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  align-content: stretch;
}

.stack-left,
.stack-right {
  height: 100%;
}

.stack-left > .panel,
.stack-right > .panel,
.stack-right > .play-groups,
.stack-right > .performance {
  flex: 1 1;
}

.stack-left .environment,
.stack-left .insight,
.stack-right .play-groups,
.stack-right .performance {
  min-height: 0;
}

.environment {
  padding: 13px;
}

.heatmap {
  display: grid;
  grid-template-columns: minmax(68px, 0.82fr) repeat(3, minmax(0, 1fr));
  grid-auto-rows: clamp(54px, 6.4vh, 62px);
  align-items: stretch;
  margin-top: 13px;
}

.heatmap > div {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 6px 5px;
  border: 1px solid rgba(126, 172, 218, 0.1);
  font-weight: 800;
  font-size: 12px;
  line-height: 1.32;
}

.heatmap .head {
  background: rgba(9, 18, 29, 0.35);
}

.heatmap .yellow {
  background: linear-gradient(135deg, #8f851a, #5c6115);
}

.heatmap .redbox {
  background: linear-gradient(135deg, #7e2427, #69211e);
}

.heatmap .greenbox {
  background: linear-gradient(135deg, #356d21, #1c551e);
  color: #83ff6a;
}

.insight {
  padding: 13px;
}

.tabs {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}

.tabs button {
  flex: 1 1;
  border: 0;
  color: #c7d3e2;
  background: rgba(13, 27, 43, 0.7);
  border-radius: 7px;
  padding: 7px 9px;
}

.tabs button.active {
  background: linear-gradient(135deg, #128eff, #0d4ea7);
}

.quote-large {
  font-size: 23px;
  font-weight: 800;
}

.insight-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 7px 16px;
  gap: 7px 16px;
  margin: 10px 0 12px;
}

.insight > .insight-metrics:first-of-type {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 12px;
}

.insight > .insight-metrics:last-of-type {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(126, 172, 218, 0.12);
}

.insight > .insight-metrics:last-of-type p {
  margin: 0;
  min-width: 0;
  line-height: 1.22;
  font-size: 12px;
}

.insight > .insight-metrics:last-of-type b {
  display: block;
  margin-bottom: 2px;
  color: #edf5ff;
  font-size: 13px;
}

.insight > .insight-metrics:last-of-type b,
.insight > .insight-metrics:last-of-type span {
  overflow-wrap: anywhere;
}

.metric-mini {
  display: grid;
  grid-template-columns: minmax(68px, 1fr) minmax(42px, auto);
  grid-gap: 8px;
  gap: 8px;
  align-items: center;
  min-width: 0;
  position: relative;
  padding-right: 44px;
}

.metric-mini span,
.metric-mini b {
  min-width: 0;
  white-space: nowrap;
}

.insight .metric-mini .spark {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  min-width: 0;
  max-width: none;
  height: 16px;
  opacity: 0.78;
  pointer-events: none;
}

.play-groups {
  padding: 11px 13px;
  overflow: hidden;
}

.play-group {
  position: relative;
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  padding: 8px 13px 6px 18px;
  margin-top: 6px;
  background: rgba(9, 19, 31, 0.58);
}

.play-group.green-left {
  border-left-color: #4fc36c;
}

.play-group.purple-left {
  border-left-color: var(--purple);
}

.play-group.highlight {
  box-shadow: 0 0 22px rgba(22, 155, 255, 0.6), inset 0 0 0 1px rgba(22, 155, 255, 0.6);
}

.play-badge {
  position: absolute;
  top: -1px;
  right: 16px;
  left: auto;
  z-index: 1;
}

.play-columns,
.play-row {
  display: grid;
  grid-template-columns: minmax(118px, 0.9fr) minmax(170px, 1.5fr) 88px 72px 84px 48px;
  grid-gap: 10px;
  gap: 10px;
  align-items: center;
}

.play-header {
  color: #e6edf8;
  font-weight: 800;
  margin-bottom: 2px;
}

.play-header h3 {
  white-space: nowrap;
  margin: 0;
  font-size: 17px;
}

.play-columns {
  color: #b7c5d6;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.play-row {
  padding: 5px 0;
  color: #d8e0ea;
  border-top: 1px solid rgba(126, 172, 218, 0.1);
  font-size: 13px;
  line-height: 1.25;
}

.performance {
  padding: 10px 13px;
  overflow: hidden;
}

.performance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 240px);
  grid-gap: 12px;
  gap: 12px;
  align-items: stretch;
}

.performance-main {
  min-width: 0;
  display: flex;
}

.performance-chart {
  flex: 1 1;
  align-self: stretch;
  width: 100%;
  min-height: clamp(190px, 24vh, 250px);
  border: 1px solid rgba(126, 172, 218, 0.12);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(10, 22, 34, 0.75), rgba(7, 15, 25, 0.9));
  overflow: hidden;
}

.metric-card {
  padding: 12px;
  background: rgba(8, 17, 28, 0.48);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.metric-card div {
  display: flex;
  justify-content: space-between;
  margin: 7px 0;
}

.market-snapshot-page .play-groups {
  padding: 10px 12px;
}

.market-snapshot-page .play-group {
  padding: 7px 16px 5px 24px;
  margin-top: 5px;
}

.market-snapshot-page .play-header {
  margin-bottom: 2px;
}

.market-snapshot-page .play-header h3 {
  font-size: 17px;
}

.market-snapshot-page .play-columns {
  font-size: 10px;
}

.market-snapshot-page .play-row {
  padding: 4px 0;
  font-size: 12px;
}

.market-snapshot-page .performance {
  padding: 9px 12px;
}

.market-snapshot-page .performance-chart {
  min-height: clamp(168px, 22vh, 226px);
}

.market-snapshot-page .tabs button {
  padding: 6px 8px;
}

.tabs-wide {
  flex-wrap: nowrap;
}

.tabs-wide button {
  white-space: nowrap;
}

.sidebar-layout {
  display: grid;
  grid-template-columns: clamp(214px, 17vw, 230px) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: calc(100svh - var(--topbar-height));
}

.left-rail {
  background: linear-gradient(180deg, rgba(7, 14, 23, 0.98), rgba(5, 11, 18, 0.96));
  border-right: 1px solid rgba(126, 172, 218, 0.12);
  padding: 18px 15px 12px;
  max-height: calc(100svh - var(--topbar-height));
  overflow: hidden;
}

.rail-header,
.screener-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.rail-header span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rail-header i {
  width: 13px;
  height: 13px;
  border: 1px solid rgba(157, 171, 188, 0.55);
  border-radius: 50%;
  color: var(--muted);
  display: inline-grid;
  place-items: center;
  font-size: 9px;
  font-style: normal;
}

.watch-list {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  margin-top: 13px;
  max-height: calc(100svh - var(--topbar-height) - 82px);
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
}

.watch-item {
  display: grid;
  grid-template-columns: 15px 28px minmax(0, 1fr) 62px;
  grid-gap: 7px;
  gap: 7px;
  align-items: center;
  font-size: 12px;
  min-height: 33px;
}

.watch-item b,
.watch-item small {
  display: block;
}

.watch-item div:nth-child(3) {
  min-width: 0;
}

.watch-item div:nth-child(3) b,
.watch-item div:nth-child(3) small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watch-price {
  text-align: right;
}

.watch-price span,
.watch-price small {
  display: block;
}

.watch-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #243c74, #0eb8c8);
  font-size: 11px;
  font-weight: 900;
}

.screener {
  padding: 16px var(--page-x) 8px;
  background: linear-gradient(180deg, rgba(8, 17, 28, 0.72), rgba(5, 10, 17, 0.28));
}

.screener-header {
  align-items: flex-start;
  margin-bottom: 10px;
}

.screener-header .section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 6px;
  font-size: 20px;
}

.screener-header .tag {
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 700;
}

.screener-plan {
  display: grid;
  grid-template-columns: minmax(150px, auto) auto;
  grid-template-rows: auto auto;
  grid-column-gap: 12px;
  column-gap: 12px;
  align-items: center;
  justify-items: end;
  text-align: right;
  color: #7992ad;
  font-size: 11px;
}

.screener-plan span {
  color: #5dafff;
}

.screener-plan small {
  grid-column: 1;
  line-height: 1.32;
}

.screener-plan .button {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 104px;
  height: 30px;
  padding: 0 14px;
  font-size: 11px;
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(230px, 1.62fr) minmax(108px, 0.72fr) minmax(160px, 1.1fr) minmax(190px, 1.3fr) minmax(190px, 1.3fr) minmax(94px, 0.66fr) minmax(110px, 0.78fr);
  grid-gap: 12px;
  gap: 12px;
  align-items: end;
  margin: 0 0 10px;
  overflow: visible;
  max-width: 100%;
  min-width: 0;
}

.field label {
  display: block;
  color: #c5d0dc;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
}

.field input,
.field select {
  width: 100%;
  height: 33px;
  color: #e8f3ff;
  background: rgba(5, 12, 20, 0.86);
  border: 1px solid rgba(126, 172, 218, 0.14);
  border-radius: 6px;
  padding: 0 12px;
}

.filter-row .ghost-button,
.filter-row .button {
  height: 33px;
  padding: 0 15px;
  font-size: 12px;
}

.advanced-filter {
  border: 0;
  background: transparent;
  color: #38a9ff;
  box-shadow: none;
  justify-content: flex-start;
  padding-left: 0 !important;
}

.screener-cards {
  display: grid;
  grid-template-columns: minmax(330px, 1.5fr) minmax(230px, 1.08fr) minmax(198px, 0.9fr) minmax(210px, 0.92fr);
  grid-gap: 10px;
  gap: 10px;
  align-items: stretch;
}

.mini-panel {
  padding: 12px 14px;
  min-height: 154px;
  height: 100%;
  overflow: hidden;
}

.mini-panel .subtitle {
  font-size: 12px;
  line-height: 1.36;
}

.mini-panel .full-button {
  padding: 8px 12px;
}

.mini-panel h2,
.mini-panel h3 {
  margin: 0 0 10px;
}

.stock-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  align-items: center;
  min-height: 154px;
}

.stock-summary h2 {
  font-size: 14px;
}

.market-time {
  margin: 2px 0 0;
  font-size: 11px;
}

.stock-summary .insight-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px 9px;
  margin: 13px 0 0;
  font-size: 10px;
}

.stock-summary .insight-metrics span {
  color: #7f8fa2;
}

.stock-summary .insight-metrics b {
  display: block;
  margin-top: 4px;
  color: #dce7f5;
  font-weight: 750;
}

.percent-bars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 14px;
  gap: 14px;
  font-size: 11px;
  align-content: center;
  min-height: 154px;
}

.percent-bars span,
.percent-bars small,
.percent-bars b {
  display: block;
}

.percent-bars span {
  color: #d5dfec;
}

.percent-bars small {
  color: #8797ab;
  margin-top: 2px;
}

.percent-bars b {
  margin-top: 13px;
  font-size: 16px;
}

.bar {
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.17);
  margin-top: 13px;
}

.bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #10d6a5;
}

.bar i.orange-fill {
  background: #f0b83d;
}

.bar i.blue-fill {
  background: #2789e8;
}

.event-card h3,
.insight-card h3 {
  font-size: 13px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(126, 172, 218, 0.1);
}

.event-card .key-value {
  margin: 9px 0;
  color: #8f9eb1;
  font-size: 11px;
}

.event-card .key-value span small,
.event-card .key-value b small {
  display: block;
  margin-top: 3px;
  color: #6f7f92;
  font-weight: 550;
}

.event-card .key-value b {
  color: #dfe9f6;
  text-align: right;
  font-size: 12px;
}

.insight-card h3 {
  display: flex;
  align-items: center;
  gap: 6px;
}

.warn-strip {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 9px 0;
  padding: 8px 13px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(166, 104, 29, 0.27), rgba(91, 61, 23, 0.2));
  color: #ffc970;
  font-size: 12px;
}

.warn-strip span::before {
  content: "⚠";
  margin-right: 7px;
}

.warn-strip a {
  color: #3ca9ff;
}

.screener-bottom {
  display: grid;
  grid-template-columns: minmax(500px, 1fr) minmax(490px, 1fr);
  grid-gap: 11px;
  gap: 11px;
}

.screener-results-table {
  display: grid;
  width: 100%;
  min-width: 0;
  font-size: clamp(10px, 0.66vw, 12px);
}

.screener-results-head,
.screener-results-row {
  display: grid;
  grid-template-columns: minmax(86px, 1.15fr) minmax(34px, 0.48fr) minmax(48px, 0.62fr) minmax(50px, 0.64fr) minmax(86px, 1.08fr) minmax(60px, 0.76fr) minmax(56px, 0.7fr) minmax(92px, 1.12fr) minmax(48px, 0.58fr);
  align-items: center;
  grid-gap: 0;
  gap: 0;
}

.screener-results-head span {
  color: #aab8ca;
  font-size: clamp(9px, 0.58vw, 11px);
  font-weight: 650;
  padding: 8px 5px;
  white-space: normal;
  line-height: 1.15;
}

.screener-results-row {
  min-height: 32px;
  border-top: 1px solid rgba(126, 172, 218, 0.11);
}

.screener-results-row span {
  color: #edf4ff;
  font-weight: 520;
  padding: 7px 5px;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.screener-results-row span:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
}

.star-spacer {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
}

.screener-results-row.selected-row {
  outline: 1px solid var(--blue);
  outline-offset: -1px;
  background: rgba(22, 117, 255, 0.12);
}

.screener .chart-big {
  min-height: 330px;
}

.table-panel,
.chart-panel {
  padding: 12px;
  overflow: hidden;
}

.table-panel .table-scroll {
  max-height: 278px;
  overflow: auto;
}

.table-note,
.score-note {
  margin: 8px 0 0;
  color: #7f8fa2;
  font-size: 11px;
  text-align: center;
}

.score-note {
  text-align: left;
  margin-top: 8px;
}

.chart-big {
  min-height: 330px;
  position: relative;
}

.candles {
  width: 100%;
  height: 266px;
  background:
    linear-gradient(rgba(126, 172, 218, 0.1) 1px, transparent 1px) 0 0 / 82px 45px,
    linear-gradient(90deg, rgba(126, 172, 218, 0.1) 1px, transparent 1px) 0 0 / 82px 45px;
}

.price-chart-wrap {
  position: relative;
  min-height: 256px;
}

.chart-status {
  position: absolute;
  z-index: 2;
  top: 6px;
  left: 8px;
  font-size: 11px;
}

.lw-price-chart {
  width: 100%;
  height: 256px;
}

.screener-footer {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
  margin: 0;
  padding: 0 var(--page-x);
  border-top: 1px solid rgba(126, 172, 218, 0.1);
  background: rgba(5, 11, 18, 0.82);
  color: #6f8093;
  font-size: 11px;
}

.screener-footer nav {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.screener-footer a {
  color: #7e8fa2;
  cursor: default;
}

.market-buzz {
  padding: 22px var(--page-x) 14px;
}

.market-buzz h1 {
  margin-top: 0;
}

.buzz-grid {
  display: grid;
  grid-template-columns: minmax(355px, 0.72fr) minmax(0, 1.56fr);
  grid-gap: 14px;
  gap: 14px;
  margin-top: 18px;
  align-items: start;
}

.table-card {
  overflow: hidden;
}

.table-card header {
  padding: 17px 18px 11px;
}

.table-card-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 15px 18px;
}

.holding-value {
  display: flex;
  gap: 10px;
  align-items: center;
}

.market-buzz .data-table th,
.enhancer .data-table th {
  padding: 5px 11px;
}

.market-buzz .data-table td,
.enhancer .data-table td {
  padding: 3px 11px;
  line-height: 1.08;
}

.enhancer .data-table {
  font-size: 12px;
}

.market-buzz .data-table small {
  margin-top: 2px;
}

.market-buzz .spark,
.enhancer .spark {
  width: 106px;
  height: 23px;
}

.market-buzz .pill {
  padding: 4px 7px;
  font-size: 12px;
}

.holding-bar {
  width: clamp(90px, 12vw, 170px);
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #188eff, #2d73ff);
}

.library-layout {
  display: grid;
  grid-template-columns: clamp(250px, 21vw, 294px) minmax(0, 1fr);
  grid-gap: 14px;
  gap: 14px;
  padding: 16px var(--page-x) 12px;
  min-height: calc(100svh - var(--topbar-height));
}

.strategy-menu {
  padding: 14px 16px;
  max-height: calc(100svh - var(--topbar-height) - 30px);
  overflow: hidden;
}

.strategy-menu header {
  display: flex;
  justify-content: space-between;
  color: #aab6c7;
  margin-bottom: 16px;
}

.strategy-link {
  display: grid;
  grid-template-columns: 34px 1fr 22px;
  grid-gap: 12px;
  gap: 12px;
  align-items: center;
  padding: 8px 7px;
  border-top: 1px solid rgba(126, 172, 218, 0.1);
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  width: 100%;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.strategy-link.active {
  margin: 0 -16px;
  padding: 12px 23px;
  background: rgba(27, 67, 104, 0.55);
  border-left: 4px solid var(--blue);
}

.strategy-link b {
  display: block;
}

.strategy-link span {
  color: #92a2b4;
}

.strategy-body {
  padding: 22px 286px 12px 22px;
  position: relative;
  min-height: calc(100svh - var(--topbar-height) - 30px);
}

.strategy-favorite {
  position: absolute;
  right: 286px;
  top: 24px;
}

.strategy-summary {
  max-width: 900px;
}

.strategy-body h1 {
  margin: 0 0 12px;
  font-size: clamp(24px, 2vw, 30px);
}

.strategy-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 17px 0 18px;
}

.strategy-disclaimer {
  margin-top: 14px;
}

.library-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 14px 18px;
  gap: 14px 18px;
}

.strategy-box {
  border-top: 1px solid rgba(126, 172, 218, 0.14);
  padding-top: 14px;
}

.strategy-box h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  margin: 0 0 10px;
}

.strategy-box li {
  margin: 6px 0;
  color: #d7dfeb;
  line-height: 1.34;
}

.community {
  position: absolute;
  top: 28px;
  right: 22px;
  width: 238px;
  border: 1px solid rgba(30, 210, 215, 0.18);
  background: rgba(6, 34, 49, 0.66);
  border-radius: 8px;
  padding: 16px;
}

.qr {
  width: 142px;
  aspect-ratio: 1;
  margin: 14px auto 0;
  background:
    linear-gradient(90deg, #fff 8px, transparent 8px) 0 0 / 18px 18px,
    linear-gradient(#fff 8px, transparent 8px) 0 0 / 18px 18px,
    #060b12;
  border: 8px solid #f6f8ff;
}

.enhancer {
  min-height: calc(100svh - var(--topbar-height));
  display: flex;
  flex-direction: column;
  padding: 9px var(--page-x) 8px;
}

.enhancer-section {
  margin-bottom: 6px;
}

.enhancer-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.enhancer-title h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 720;
}

.detail-page {
  padding: 19px var(--page-x) 13px;
}

.back-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #56aeff;
  margin-bottom: 10px;
}

.detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 11px;
}

.detail-head h1 {
  margin: 0;
  font-size: clamp(26px, 2.2vw, 34px);
}

.detail-head h2 {
  margin: 4px 0 0;
  font-size: clamp(22px, 1.9vw, 29px);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.04fr) minmax(300px, 1.15fr) minmax(230px, 0.88fr) minmax(270px, 1.04fr);
  grid-gap: 11px;
  gap: 11px;
  align-items: start;
}

.detail-side {
  display: grid;
  grid-gap: 11px;
  gap: 11px;
  grid-column: 4;
  grid-row: 1 / span 2;
  align-self: start;
}

.detail-card {
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.45;
}

.detail-card h3 {
  margin: 0 0 12px;
}

.structure {
  border: 1px solid rgba(126, 172, 218, 0.3);
  border-radius: 7px;
  overflow: hidden;
}

.structure div {
  display: grid;
  grid-template-columns: 62px 34px minmax(0, 1fr) 58px 78px;
  grid-gap: 9px;
  gap: 9px;
  padding: 6px 10px;
  border-top: 1px solid rgba(126, 172, 218, 0.11);
}

.profit-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 8px;
  gap: 8px;
  margin-top: 12px;
  text-align: center;
}

.price-chart-card {
  grid-column: span 2;
  min-height: 348px;
}

.breakdown {
  grid-row: auto;
}

.detail-page .detail-card p {
  margin: 0 0 12px;
}

.detail-page ul {
  margin: 0;
  padding-left: 18px;
}

.detail-page li {
  margin: 5px 0;
}

.break-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  grid-gap: 12px;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid rgba(126, 172, 218, 0.11);
}

.break-item svg {
  color: var(--cyan);
}

.fund-list div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 10px 0;
}

.detail-link-button {
  width: 100%;
  margin-bottom: 14px;
}

.detail-link-button:last-child {
  margin-bottom: 0;
}

.disclaimer {
  margin-top: auto;
  color: #75859a;
  font-size: 12px;
}

.heatmap-note {
  text-align: center;
  margin-top: 14px;
}

.tabs-compact {
  margin: 0;
  width: 250px;
}

.tabs-wide {
  width: min(420px, 100%);
}

.tabs-chart {
  margin: 0;
  width: min(300px, 100%);
}

.quote-change {
  font-size: 16px;
}

.quote-change-small {
  font-size: 15px;
}

.inline-company {
  font-size: 16px;
}

.section-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.key-value {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.full-button {
  width: 100%;
  margin-top: 10px;
}

.community-head,
.community-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.community-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.community-note {
  text-align: center;
}

.checklist-icon {
  vertical-align: middle;
  margin-right: 10px;
}

.detail-company {
  font-size: clamp(20px, 1.8vw, 28px);
}

.enhancer .data-table {
  min-width: 1060px;
}

.market-buzz .table-card:first-child .data-table {
  min-width: 500px;
}

.market-buzz .table-card:last-child .data-table {
  min-width: 760px;
}

.hero-cards,
.play-group,
.table-card,
.chart-panel,
.strategy-body,
.detail-card {
  min-width: 0;
}

@media (max-width: 1280px) {
  :root {
    --page-x: 18px;
  }

  .topbar {
    padding: 0 var(--page-x);
  }

  .top-meta svg:nth-of-type(2),
  .top-meta svg:nth-of-type(3) {
    display: none;
  }

  .home-hero {
    grid-template-columns: minmax(282px, 0.58fr) minmax(0, 1fr);
    gap: 18px;
  }

  .market-grid,
  .buzz-grid,
  .screener-bottom {
    grid-template-columns: 1fr;
  }

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

  .recommend-card.dim {
    display: none;
  }

  .recommend-card {
    min-height: clamp(370px, calc(var(--home-viewport) - 150px), 500px);
  }

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

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

  .performance-chart {
    height: 220px;
  }

  .metric-card {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-gap: 6px 16px;
    gap: 6px 16px;
  }

  .metric-card b {
    grid-column: 1 / -1;
  }

  .metric-card div {
    margin: 2px 0;
  }

  .library-layout {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .strategy-body {
    padding-right: 24px;
  }

  .strategy-favorite {
    position: static;
    float: right;
    margin-left: 14px;
  }

  .community {
    position: static;
    width: min(100%, 560px);
    margin-top: 16px;
  }

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

  .detail-side {
    grid-column: 3;
    grid-row: 1 / span 3;
  }

  .price-chart-card {
    grid-column: span 2;
  }

  .breakdown {
    grid-row: auto;
  }
}

@media (min-width: 1101px) and (max-height: 760px) {
  .home-hero {
    padding-top: clamp(16px, 2.6vh, 24px);
    padding-bottom: clamp(34px, 5.4vh, 48px);
  }

  .hero-copy {
    justify-content: center;
  }

  .hero-copy h1 {
    font-size: clamp(30px, 4.6vh, 42px);
  }

  .hero-rule {
    margin: clamp(12px, 1.8vh, 18px) 0;
  }

  .feature-list {
    gap: clamp(8px, 1.5vh, 12px);
  }

  .feature-row {
    grid-template-columns: 40px 1fr;
  }

  .feature-icon {
    width: 40px;
    height: 40px;
  }

  .recommend-card {
    min-height: clamp(330px, calc(var(--home-viewport) - 120px), 420px);
    padding-top: 24px;
  }

  .recommend-card .line {
    height: clamp(48px, 8vh, 66px);
    margin: 10px 0;
  }

  .recommend-card p {
    line-height: 1.42;
  }

  .pager {
    margin: 8px 0 10px;
  }

  .scroll-hint svg {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 1400px) and (min-width: 1281px) {
  .market-grid {
    grid-template-columns: minmax(292px, 0.7fr) minmax(0, 1.72fr);
  }

  .play-columns,
  .play-row {
    grid-template-columns: minmax(110px, 0.9fr) minmax(150px, 1.45fr) 80px 64px 74px 42px;
    gap: 8px;
  }

  .market-snapshot-page .play-group {
    padding-left: 18px;
    padding-right: 12px;
  }
}

@media (max-width: 1100px) {
  .topbar {
    gap: 12px;
  }

  .brand {
    min-width: 140px;
    font-size: 19px;
  }

  .nav {
    gap: 18px;
  }

  .top-meta span {
    display: none;
  }

  .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    overflow: visible;
    padding-top: 34px;
  }

  .scroll-hint {
    position: static;
    transform: none;
    margin: 10px auto 0;
    white-space: normal;
  }

  .hero-copy {
    max-width: 720px;
  }

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

  .recommend-card {
    min-height: 360px;
  }

  .sidebar-layout {
    grid-template-columns: 1fr;
  }

  .left-rail {
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid rgba(126, 172, 218, 0.12);
    padding-bottom: 10px;
  }

  .watch-list {
    display: flex;
    overflow-x: auto;
    max-height: none;
    padding-bottom: 4px;
  }

  .watch-item {
    flex: 0 0 212px;
  }

  .filter-row {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
  }

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

  .library-layout,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .strategy-menu {
    max-height: none;
  }

  .strategy-menu .strategy-link:nth-of-type(n + 7) {
    display: none;
  }

  .detail-side,
  .price-chart-card {
    grid-column: auto;
    grid-row: auto;
  }

  .detail-side {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  :root {
    --topbar-height: 96px;
  }

  .topbar {
    height: auto;
    flex-wrap: wrap;
    padding: 12px 16px 10px;
  }

  .nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }

  .brand {
    min-width: 0;
  }

  .top-meta {
    margin-left: auto;
    font-size: 13px;
  }

  .page,
  .market-buzz,
  .enhancer,
  .screener,
  .detail-page {
    padding: 16px;
  }

  .home-hero {
    padding: 30px 18px;
  }

  .hero-cards,
  .screener-cards,
  .library-grid,
  .performance-grid,
  .detail-side {
    grid-template-columns: 1fr;
  }

  .filter-row {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

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

  .play-header,
  .play-row {
    grid-template-columns: minmax(140px, 1fr) minmax(120px, 1fr);
  }

  .play-columns {
    display: none;
  }

  .play-row > :nth-child(3),
  .play-row > :nth-child(4),
  .play-row > :nth-child(5),
  .play-row > :nth-child(6) {
    display: none;
  }

  .data-table {
    min-width: 760px;
  }

  .table-scroll {
    overflow-x: auto;
  }
}

@media (max-width: 640px) {
  .brand {
    font-size: 18px;
  }

  .top-meta svg:not(:last-child) {
    display: none;
  }

  .hero-copy h1 {
    font-size: 30px;
  }

  .hero-cards,
  .filter-row,
  .screener-cards,
  .market-grid,
  .buzz-grid,
  .library-layout {
    grid-template-columns: 1fr;
  }

  .recommend-card {
    min-height: 330px;
  }

  .feature-row {
    grid-template-columns: 40px 1fr;
  }

  .feature-icon {
    width: 40px;
    height: 40px;
  }

  .stock-summary,
  .percent-bars,
  .performance-grid,
  .metric-card,
  .detail-side,
  .library-grid {
    grid-template-columns: 1fr;
  }

  .warn-strip,
  .section-toolbar,
  .detail-head {
    align-items: stretch;
    flex-direction: column;
  }
}

