:root {
  --bg: #eef3f7;
  --panel: rgba(255, 255, 255, 0.76);
  --panel-solid: rgba(255, 255, 255, 0.94);
  --panel-soft: rgba(247, 250, 252, 0.88);
  --text: #132235;
  --muted: #697b91;
  --line: rgba(19, 34, 53, 0.08);
  --shadow: 0 20px 60px rgba(25, 42, 70, 0.12);
  --accent: #2f6bff;
  --accent-2: #1f5fff;
  --amber: #ffb020;
  --danger: #1fa971;
  --ok-bg: rgba(47, 107, 255, 0.12);
  --warn-bg: rgba(255, 176, 32, 0.16);
  --soft-fill: rgba(19, 34, 53, 0.04);
  --soft-fill-strong: rgba(19, 34, 53, 0.07);
  --tooltip-bg: rgba(255, 255, 255, 0.98);
  --overlay-backdrop: rgba(9, 18, 31, 0.34);
}

body.dark {
  --bg: #08111d;
  --panel: rgba(10, 21, 35, 0.8);
  --panel-solid: rgba(12, 24, 39, 0.95);
  --panel-soft: rgba(17, 31, 49, 0.92);
  --text: #edf4ff;
  --muted: #8da1be;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 72px rgba(0, 0, 0, 0.34);
  --accent: #4c82ff;
  --accent-2: #7aa7ff;
  --amber: #ffbf47;
  --danger: #39c984;
  --ok-bg: rgba(76, 130, 255, 0.16);
  --warn-bg: rgba(255, 191, 71, 0.18);
  --soft-fill: rgba(255, 255, 255, 0.04);
  --soft-fill-strong: rgba(255, 255, 255, 0.07);
  --tooltip-bg: rgba(9, 19, 32, 0.96);
  --overlay-backdrop: rgba(4, 10, 18, 0.68);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Avenir Next", "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(47, 212, 169, 0.14), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(102, 164, 255, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    var(--bg);
  transition: background 0.25s ease, color 0.25s ease;
}

body.locked {
  overflow: hidden;
}

.ambient {
  position: fixed;
  border-radius: 999px;
  filter: blur(90px);
  z-index: 0;
  opacity: 0.5;
}

.ambient-a {
  width: 320px;
  height: 320px;
  top: 60px;
  left: 40px;
  background: rgba(47, 212, 169, 0.18);
}

.ambient-b {
  width: 360px;
  height: 360px;
  right: 20px;
  bottom: 40px;
  background: rgba(102, 164, 255, 0.14);
}

.page-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
}

body.locked .page-shell,
body.locked .site-footer {
  filter: blur(18px);
  pointer-events: none;
  user-select: none;
}

.license-gate {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--overlay-backdrop);
  backdrop-filter: blur(14px);
}

.license-gate.visible {
  display: flex;
}

.license-panel {
  width: min(560px, calc(100vw - 32px));
  padding: 30px;
  border-radius: 30px;
  background: var(--panel-solid);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.license-title {
  max-width: none;
  margin-bottom: 12px;
}

.license-copy {
  margin-bottom: 18px;
}

.license-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.license-plan-card {
  padding: 16px;
  border-radius: 18px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.license-plan-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.license-plan-card strong {
  display: block;
  font-size: 1.08rem;
}

.license-message {
  margin-top: 14px;
  line-height: 1.7;
}

.license-message.error {
  color: #ff9ca8;
}

.license-message.success {
  color: #7ee3ac;
}

.card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  border-radius: 28px;
}

.inset {
  background: var(--panel-soft);
  border-radius: 22px;
}

.side-panel {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 24px;
  height: calc(100vh - 48px);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.side-panel::-webkit-scrollbar {
  display: none;
}

.side-panel > section.card.inset {
  padding: 22px;
}

.brand-block {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 8px 6px 12px;
}

.license-countdown {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(76, 130, 255, 0.08);
  border: 1px solid var(--line);
  line-height: 1.65;
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 0 24px 24px;
}

.footer-inner {
  margin-left: calc(320px + 24px);
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel-solid);
  color: var(--muted);
}

.footer-inner p:first-child {
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

h2 {
  font-size: clamp(2rem, 2.1vw + 1rem, 3.3rem);
  line-height: 1.02;
  max-width: 11ch;
}

h3 {
  font-size: 1.18rem;
}

.micro-copy {
  margin-bottom: 8px;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.muted-text {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.section-head,
.panel-head,
.hero-title-row,
.tag-row,
.legend-row,
.market-strip,
.hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-head,
.panel-head {
  justify-content: space-between;
  padding: 0 2px;
}

.section-head {
  margin-bottom: 16px;
  padding: 0 2px;
}

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

.section-head span:first-child {
  font-weight: 700;
}

.market-switch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.compact-switch {
  margin-bottom: 14px;
}

.market-btn,
.primary-btn,
.ghost-btn,
.example-chip {
  border: 0;
  border-radius: 16px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.market-btn {
  color: var(--text);
  background: var(--panel-solid);
  border: 1px solid var(--line);
}

.market-btn.active,
.primary-btn {
  color: white;
  background: linear-gradient(145deg, var(--accent), #154fd1);
}

.primary-btn {
  width: 100%;
}

.ghost-btn {
  background: var(--ok-bg);
  color: var(--accent);
  border: 1px solid rgba(76, 130, 255, 0.28);
}

.search-box input {
  width: 100%;
  padding: 18px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel-solid);
  color: var(--text);
  font-size: 1.06rem;
  margin-bottom: 14px;
}

.search-box {
  position: relative;
}

.search-suggestions {
  display: none;
  gap: 8px;
  margin: -4px 0 14px;
  padding: 8px;
  border-radius: 18px;
  background: var(--panel-solid);
  border: 1px solid var(--line);
}

.search-suggestions.visible {
  display: grid;
}

.mobile-quick-bar {
  position: fixed;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 18;
  display: none;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, -8px, 0);
  transition: opacity 0.22s ease, transform 0.28s ease;
}

.mobile-quick-bar.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

.mobile-quick-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 10px;
  padding: 10px;
  border-radius: 22px;
  background: var(--panel-solid);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translate3d(0, -2px, 0);
  transform-origin: top center;
  transition: transform 0.28s ease;
}

.mobile-quick-bar.visible .mobile-quick-inner {
  transform: translate3d(0, 0, 0);
}

.mobile-quick-search input {
  margin-bottom: 0;
  padding: 14px 16px;
  font-size: 0.98rem;
}

.mobile-quick-btn {
  width: 100%;
  padding: 14px 12px;
}

.mobile-quick-suggestions {
  margin-top: 8px;
  box-shadow: var(--shadow);
}

.suggestion-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--soft-fill);
  border: 1px solid transparent;
  color: var(--text);
  cursor: pointer;
}

.suggestion-item:hover {
  border-color: var(--line);
  background: var(--soft-fill-strong);
}

.suggestion-item span:last-child {
  color: var(--muted);
  font-size: 0.86rem;
}

.search-card {
  padding: 20px;
}

.entry-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  border-radius: 18px;
  background: var(--soft-fill);
  border: 1px solid var(--line);
  margin-bottom: 16px;
}

.entry-tab {
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  background: transparent;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}

.entry-tab.active {
  color: white;
  background: linear-gradient(145deg, var(--accent), #154fd1);
  box-shadow: 0 10px 24px rgba(47, 107, 255, 0.22);
}

.entry-panel {
  display: none;
}

.entry-panel.active {
  display: block;
}

.example-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 4px 2px 0;
}

.example-chip {
  background: var(--panel-solid);
  color: var(--text);
  border: 1px solid var(--line);
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--soft-fill);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  white-space: normal;
  word-break: break-word;
  max-width: 100%;
}

.pill.strong {
  background: linear-gradient(145deg, rgba(47, 212, 169, 0.18), rgba(102, 164, 255, 0.12));
  font-weight: 800;
}

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

.note-list,
.signal-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.6;
}

.quick-notes .note-list {
  padding-left: 22px;
}

.ipo-card {
  padding: 22px;
}

.ipo-note {
  margin-bottom: 12px;
}

.ipo-list {
  display: grid;
  gap: 10px;
}

.ipo-item {
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--soft-fill);
  border: 1px solid var(--line);
}

.ipo-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.96rem;
}

.ipo-item span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.main-panel {
  display: grid;
  gap: 22px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 20px;
  padding: 28px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(120deg, rgba(47, 212, 169, 0.08), transparent 30%),
    linear-gradient(320deg, rgba(102, 164, 255, 0.08), transparent 28%);
  pointer-events: none;
  transform: translate3d(0, var(--hero-glow-shift, 0px), 0);
  transition: transform 0.16s linear;
}

.hero {
  position: relative;
}

.hero-copy,
.hero-score {
  position: relative;
  z-index: 1;
}

.hero-copy {
  transform: translate3d(0, var(--hero-copy-shift, 0px), 0);
  transition: transform 0.16s linear;
}

.hero-score {
  transform: translate3d(0, var(--hero-score-shift, 0px), 0);
  transition: transform 0.16s linear;
}

.hero-title-row {
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.hero-subtitle {
  margin-top: 16px;
  max-width: 70ch;
  color: var(--muted);
  line-height: 1.82;
}

.hero-meta {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  max-width: 100%;
}

.market-strip {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.hero-quotes {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.strip-item {
  padding: 18px 6px 12px 0;
  border-top: 1px solid var(--line);
  min-width: 0;
}

.strip-item span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  margin-bottom: 6px;
}

.strip-item strong {
  font-size: 1.05rem;
  display: block;
  line-height: 1.5;
  white-space: normal;
  word-break: break-word;
  max-height: 128px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-right: 6px;
}

.strip-item strong::-webkit-scrollbar {
  display: none;
}

.trend-strip-item {
  grid-column: 1 / -1;
  padding-right: 0;
}

.trend-strip-item strong {
  font-size: 0.98rem;
  line-height: 1.72;
  max-height: 116px;
  padding-right: 2px;
}

.hero-score {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.score-kicker {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ring-wrap {
  position: relative;
  width: 120px;
  height: 120px;
}

.ring-wrap svg {
  width: 120px;
  height: 120px;
  transform: rotate(-90deg);
}

.ring-bg,
.ring-value {
  fill: none;
  stroke-width: 10;
}

.ring-bg {
  stroke: var(--line);
}

.ring-value {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: 289;
  stroke-dashoffset: 289;
}

.ring-value.score-high {
  stroke: #2fcb78;
}

.ring-value.score-mid-high {
  stroke: #4c82ff;
}

.ring-value.score-mid-low {
  stroke: #ffb347;
}

.ring-value.score-low {
  stroke: #ff5d6c;
}

.ring-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.ring-text strong {
  font-size: 1.9rem;
}

.ring-caption,
.score-label {
  color: var(--muted);
}

.ring-caption {
  margin-top: 10px;
  font-size: 0.92rem;
}

.score-label {
  margin-top: 10px;
  font-weight: 700;
}

.score-refresh-time {
  margin-top: 6px;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.score-plain {
  margin-top: 10px;
  text-align: center;
  color: var(--muted);
  line-height: 1.6;
}

.score-reason-list {
  margin: 14px 0 0;
  padding-left: 18px;
  line-height: 1.55;
}

.score-report-btn {
  width: 100%;
  margin-top: 14px;
}

.report-dialog-card {
  width: min(960px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.report-dialog-card::-webkit-scrollbar {
  display: none;
}

.report-summary-box {
  margin: 18px 0 16px;
  padding: 18px 20px;
  border-radius: 22px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.report-summary-box strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.report-summary-box p {
  color: var(--muted);
  line-height: 1.7;
}

.report-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.report-breakdown-item,
.report-section {
  padding: 18px 20px;
  border-radius: 22px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.report-breakdown-item span,
.report-section span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  margin-bottom: 8px;
}

.report-breakdown-item strong,
.report-section strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.06rem;
}

.report-breakdown-item p,
.report-section p,
.report-section li {
  color: var(--text);
  line-height: 1.7;
}

.report-sections {
  display: grid;
  gap: 14px;
}

.report-section ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.hero-detail-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 22px;
}

.mini-trend-panel,
.quick-brief-panel {
  padding: 24px;
}

#heroTrendChart {
  height: 180px;
}

.brief-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
}

.brief-item {
  padding: 16px;
  border-radius: 20px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.brief-item.wide {
  grid-column: span 2;
}

.brief-item span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  margin-bottom: 8px;
}

.brief-item p {
  line-height: 1.65;
}

.quote-card {
  padding: 20px;
  min-height: 132px;
  border-radius: 24px;
}

.quote-card .label {
  display: block;
  color: var(--muted);
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.quote-card .value {
  display: block;
  font-size: 1.72rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.quote-card .detail {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.positive {
  color: #e25563;
}

.negative {
  color: #31b26f;
}

.insight-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
}

.analysis-panel,
.indicators-panel,
.chart-panel {
  padding: 24px;
}

.analysis-copy {
  margin: 18px 0 22px;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text);
}

.status-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--ok-bg);
  color: var(--text);
  font-weight: 700;
}

.status-tag.warn {
  background: var(--warn-bg);
}

.dual-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.mini-title {
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

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

.advice-grid {
  display: grid;
}

.advice-panel {
  padding: 24px;
}

.advice-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.advice-item {
  padding: 18px;
  border-radius: 20px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.advice-item.wide {
  grid-column: span 2;
}

.advice-item span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  margin-bottom: 8px;
}

.advice-item strong {
  font-size: 1.08rem;
}

.advice-item p {
  line-height: 1.65;
  color: var(--text);
}

.advice-disclaimer {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.news-grid {
  display: grid;
}

.news-panel {
  padding: 24px;
}

.theme-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

.theme-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--ok-bg);
  border: 1px solid var(--line);
}

.news-summary-box {
  padding: 16px;
  border-radius: 20px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.news-summary-box strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.04rem;
}

.news-summary-box p {
  color: var(--muted);
  line-height: 1.65;
}

.news-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.news-item {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.news-item a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.55;
}

.news-item span {
  color: var(--muted);
  font-size: 0.88rem;
}

.holding-dialog {
  border: 0;
  padding: 0;
  background: transparent;
}

.holding-dialog::backdrop {
  background: var(--overlay-backdrop);
  backdrop-filter: blur(8px);
}

.holding-dialog-card {
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 24px;
  border-radius: 28px;
  background: var(--panel-solid);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--text);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.holding-dialog-card::-webkit-scrollbar {
  display: none;
}

.holding-dialog-card h3,
.holding-dialog-card p,
.holding-dialog-card label,
.holding-dialog-card li,
.holding-dialog-card strong,
.holding-dialog-card button {
  color: var(--text);
}

.holding-input-group {
  display: grid;
  gap: 8px;
  margin: 16px 0 14px;
}

.holding-input-group span {
  color: var(--muted);
  font-size: 0.92rem;
}

.holding-input-group input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--text);
  font-size: 1rem;
}

.holding-result {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.holding-result-card {
  padding: 18px;
  border-radius: 20px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.holding-result-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 10px;
}

.holding-result-card strong {
  display: block;
  font-size: 1.14rem;
  margin-bottom: 8px;
}

.holding-result-card p,
.holding-result-card li {
  line-height: 1.65;
  color: var(--text);
}

.holding-result-card ul {
  margin: 0;
  padding-left: 18px;
}

.indicator-card {
  padding: 18px;
  border-radius: 20px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.indicator-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.indicator-card span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  margin-bottom: 8px;
}

.indicator-card strong {
  display: block;
  font-size: 1.12rem;
}

.indicator-help {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--ok-bg);
  color: var(--accent);
  border: 1px solid rgba(76, 130, 255, 0.24);
  font-size: 0.74rem;
  font-weight: 800;
  cursor: help;
  flex: 0 0 auto;
}

.indicator-help::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  width: 210px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--tooltip-bg);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 0.8rem;
  line-height: 1.55;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  z-index: 8;
}

.indicator-help:hover::after,
.indicator-help:focus-visible::after {
  opacity: 1;
}

.chart-stack,
.chart-split {
  display: grid;
  gap: 22px;
}

.chart-split {
  grid-template-columns: 1fr 1fr;
}

.legend-row {
  flex-wrap: wrap;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 0.88rem;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.legend-dot.accent {
  background: var(--accent);
}

.legend-dot.amber {
  background: var(--amber);
}

.legend-dot.blue {
  background: var(--accent-2);
}

.legend-dot.soft {
  background: var(--muted);
}

canvas {
  width: 100%;
  height: auto;
  border-radius: 22px;
  background: linear-gradient(180deg, var(--soft-fill-strong), var(--soft-fill));
}

.chart-wrap {
  position: relative;
}

.chart-tooltip {
  position: fixed;
  z-index: 30;
  min-width: 180px;
  max-width: 320px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--tooltip-bg);
  color: var(--text);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.chart-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.chart-tooltip strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.chart-tooltip p {
  margin: 2px 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.86rem;
}

@media (max-width: 1280px) {
  .page-shell,
  .hero,
  .hero-detail-grid,
  .insight-grid,
  .chart-split {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .footer-inner {
    margin-left: 0;
  }

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

@media (max-width: 760px) {
  .page-shell {
    padding: 14px;
  }

  .hero-quotes,
  .indicator-grid,
  .dual-list,
  .market-strip,
  .advice-cards,
  .brief-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-title-row,
  .panel-head,
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-meta,
  .legend-row {
    justify-content: flex-start;
  }
}

@media (max-width: 540px) {
  .hero-quotes,
  .indicator-grid,
  .dual-list,
  .market-strip,
  .advice-cards,
  .brief-grid {
    grid-template-columns: 1fr;
  }

  .advice-item.wide {
    grid-column: auto;
  }

  .brief-item.wide {
    grid-column: auto;
  }
}

body.mobile-device .page-shell {
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 12px;
}

body.mobile-device #analysisHero {
  scroll-margin-top: 90px;
}

body.mobile-device .side-panel {
  position: static;
  top: auto;
  height: auto;
  max-height: none;
  overflow: visible;
  gap: 12px;
  padding: 16px;
}

body.mobile-device .mobile-quick-bar {
  display: block;
}

body.mobile-device .side-panel > section.card.inset,
body.mobile-device .search-card,
body.mobile-device .ipo-card,
body.mobile-device .analysis-panel,
body.mobile-device .indicators-panel,
body.mobile-device .advice-panel,
body.mobile-device .news-panel,
body.mobile-device .chart-panel,
body.mobile-device .mini-trend-panel,
body.mobile-device .quick-brief-panel,
body.mobile-device .hero,
body.mobile-device .hero-score {
  padding: 18px;
}

body.mobile-device .brand-block {
  padding: 2px 2px 8px;
}

body.mobile-device .license-countdown {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
}

body.mobile-device h1 {
  font-size: 1.32rem;
}

body.mobile-device h2 {
  max-width: none;
  font-size: clamp(1.85rem, 8vw, 2.55rem);
  line-height: 1.08;
}

body.mobile-device .main-panel,
body.mobile-device .chart-stack,
body.mobile-device .chart-split,
body.mobile-device .hero-detail-grid,
body.mobile-device .insight-grid {
  gap: 16px;
}

body.mobile-device .hero {
  grid-template-columns: 1fr;
  gap: 16px;
}

body.mobile-device .hero-title-row,
body.mobile-device .panel-head,
body.mobile-device .section-head {
  flex-direction: column;
  align-items: flex-start;
}

body.mobile-device .hero-subtitle {
  margin-top: 12px;
  max-width: none;
  line-height: 1.72;
  font-size: 0.95rem;
}

body.mobile-device .hero-meta,
body.mobile-device .legend-row {
  justify-content: flex-start;
}

body.mobile-device .hero-meta {
  gap: 8px;
}

body.mobile-device .pill {
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
}

body.mobile-device .market-switch,
body.mobile-device .entry-toggle,
body.mobile-device .market-strip,
body.mobile-device .hero-quotes,
body.mobile-device .brief-grid,
body.mobile-device .dual-list,
body.mobile-device .indicator-grid,
body.mobile-device .advice-cards,
body.mobile-device .report-breakdown {
  grid-template-columns: 1fr;
}

body.mobile-device .market-strip {
  margin-top: 16px;
}

body.mobile-device .strip-item {
  padding: 14px 0 12px;
}

body.mobile-device .quote-card {
  min-height: auto;
  padding: 18px;
}

body.mobile-device .quote-card .value {
  font-size: 1.5rem;
}

body.mobile-device .hero-score {
  align-items: stretch;
}

body.mobile-device .score-kicker,
body.mobile-device .ring-caption,
body.mobile-device .score-label {
  text-align: center;
}

body.mobile-device .score-reason-list {
  margin-top: 12px;
}

body.mobile-device .advice-grid,
body.mobile-device .news-grid,
body.mobile-device .chart-stack {
  scroll-margin-top: 88px;
}

body.mobile-device #heroTrendChart {
  height: 160px;
}

body.mobile-device canvas {
  border-radius: 18px;
}

body.mobile-device .chart-tooltip {
  min-width: 152px;
  max-width: min(260px, calc(100vw - 24px));
  padding: 9px 10px;
}

body.mobile-device .report-dialog-card,
body.mobile-device .holding-dialog-card {
  width: min(100vw - 16px, 720px);
  max-height: calc(100vh - 20px);
  padding: 18px;
  border-radius: 22px;
}

body.mobile-device .holding-result,
body.mobile-device .report-sections {
  gap: 12px;
}

body.mobile-device .report-breakdown-item,
body.mobile-device .report-section,
body.mobile-device .holding-result-card,
body.mobile-device .brief-item,
body.mobile-device .advice-item,
body.mobile-device .indicator-card,
body.mobile-device .news-item,
body.mobile-device .news-summary-box,
body.mobile-device .report-summary-box {
  padding: 16px;
  border-radius: 18px;
}

body.mobile-device .advice-item:nth-child(odd),
body.mobile-device .news-item:nth-child(odd) {
  transform: translate3d(-6px, 10px, 0);
}

body.mobile-device .advice-item:nth-child(even),
body.mobile-device .news-item:nth-child(even) {
  transform: translate3d(6px, 10px, 0);
}

body.mobile-device .motion-card.in-view.advice-item:nth-child(odd),
body.mobile-device .motion-card.in-view.news-item:nth-child(odd),
body.mobile-device .motion-card.in-view.advice-item:nth-child(even),
body.mobile-device .motion-card.in-view.news-item:nth-child(even) {
  transform: translate3d(0, 0, 0);
}

body.mobile-device .chart-stack {
  scroll-snap-type: none;
}

body.mobile-device .chart-panel {
  scroll-snap-align: none;
  scroll-snap-stop: normal;
}

body.mobile-device .chart-panel.motion-card {
  transform: translate3d(0, 12px, 0);
}

body.mobile-device .chart-panel.motion-card.in-view {
  transform: translate3d(0, 0, 0);
  box-shadow: var(--shadow);
}

body.mobile-device .site-footer {
  padding: 0 12px 12px;
}

body.mobile-device .footer-inner {
  margin-left: 0;
  padding: 18px;
  border-radius: 18px;
}

body.mobile-device .license-panel {
  padding: 22px;
  border-radius: 24px;
}

body.mobile-device .license-plan-grid {
  grid-template-columns: 1fr;
}

body.mobile-device .indicator-help::after {
  width: 180px;
  left: auto;
  right: 0;
  transform: none;
}

body.mobile-device .motion-card {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition:
    opacity 0.34s ease,
    transform 0.4s ease;
  transition-delay: var(--motion-delay, 0ms);
  will-change: transform, opacity;
}

body.mobile-device .motion-card.in-view {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

body.mobile-device .motion-card.motion-soft {
  transform: translate3d(0, 8px, 0);
}

body.mobile-device .motion-card.motion-soft.in-view {
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .mobile-quick-bar,
  .mobile-quick-inner,
  .hero::before,
  .hero-copy,
  .hero-score,
  body.mobile-device .motion-card {
    transition: none !important;
    transform: none !important;
  }

  body.mobile-device .motion-card {
    opacity: 1 !important;
  }
}
