@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --page: #f6f7f9;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.88);
  --line: rgba(28, 31, 36, 0.1);
  --line-strong: rgba(28, 31, 36, 0.18);
  --ink: #1d1d1f;
  --muted: #6e7480;
  --soft: #9aa2ad;
  --blue: #1f75fe;
  --blue-soft: #dceaff;
  --mint: #24b47e;
  --mint-soft: #ddf6ec;
  --rose: #d8527c;
  --rose-soft: #ffe5ee;
  --gold: #b98612;
  --gold-soft: #fff1ce;
  --shadow: 0 18px 60px rgba(52, 67, 94, 0.14);
  --shadow-soft: 0 10px 30px rgba(52, 67, 94, 0.1);
  --radius: 8px;
  --font-sans:
    "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --text-scale: 1;
  font-family: var(--font-sans);
  font-size: calc((18px) * var(--text-scale, 1));
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page);
  color: var(--ink);
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: clip;
  letter-spacing: 0;
  font-family: var(--font-sans);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(246, 247, 249, 0.96)),
    url("./assets/market-glass-bg.png") top center / cover fixed no-repeat;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    radial-gradient(circle at 18% 8%, rgba(31, 117, 254, 0.13), transparent 32%),
    radial-gradient(circle at 80% 4%, rgba(36, 180, 126, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.62));
}

.ambient {
  position: fixed;
  inset: -6%;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 26%, rgba(255, 255, 255, 0.35) 42%, transparent 58%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px,
      transparent 96px
    );
  mix-blend-mode: screen;
  opacity: 0.72;
  animation: ambientDrift 22s ease-in-out infinite alternate;
}

.shell {
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 64px;
}

.glass {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: end;
  min-height: 270px;
  padding: 46px 0 24px;
}

.hero-copy {
  animation: riseIn 620ms ease both;
}

.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: calc((13px) * var(--text-scale, 1));
  font-weight: 700;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 14px;
  font-size: calc((clamp(42px, 7vw, 84px)) * var(--text-scale, 1));
  line-height: 0.98;
  font-weight: 780;
}

h2 {
  margin-bottom: 0;
  font-size: calc((22px) * var(--text-scale, 1));
  line-height: 1.18;
}

.hero-subtitle {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: calc((18px) * var(--text-scale, 1));
  line-height: 1.75;
}

.status-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
  animation: riseIn 720ms 80ms ease both;
}

.status-card p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: calc((13px) * var(--text-scale, 1));
}

.status-card strong {
  font-size: calc((15px) * var(--text-scale, 1));
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 7px rgba(36, 180, 126, 0.14);
}

.warning-panel {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(185, 134, 18, 0.26);
  border-radius: var(--radius);
  background: rgba(255, 246, 225, 0.82);
  color: #704e00;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.kpi {
  min-height: 132px;
  padding: 18px;
  animation: riseIn 600ms ease both;
}

.kpi:nth-child(2) {
  animation-delay: 70ms;
}

.kpi:nth-child(3) {
  animation-delay: 140ms;
}

.kpi:nth-child(4) {
  animation-delay: 210ms;
}

.kpi span,
.kpi small {
  display: block;
  color: var(--muted);
  font-size: calc((13px) * var(--text-scale, 1));
}

.kpi strong {
  display: block;
  margin: 12px 0 6px;
  font-variant-numeric: tabular-nums;
  font-size: calc((clamp(30px, 4vw, 46px)) * var(--text-scale, 1));
  line-height: 1;
}

.control-strip {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
  padding: 18px;
}

.date-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: thin;
}

.date-tab {
  flex: 0 0 auto;
  min-width: 112px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.date-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 117, 254, 0.32);
  box-shadow: 0 8px 22px rgba(31, 117, 254, 0.12);
}

.date-tab.active {
  border-color: rgba(31, 117, 254, 0.42);
  background: rgba(31, 117, 254, 0.12);
  color: var(--ink);
}

.ranking-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.rank-card {
  position: relative;
  min-height: 288px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-soft);
  animation: cardIn 500ms ease both;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.rank-card::after {
  position: absolute;
  inset: auto -12% -28% 22%;
  height: 112px;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 117, 254, 0.16), transparent 68%);
}

.rank-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

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

.rank-badge {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.stock-code {
  color: var(--muted);
  font-size: calc((13px) * var(--text-scale, 1));
  font-weight: 700;
}

.rank-card h3 {
  margin: 0 0 10px;
  font-size: calc((22px) * var(--text-scale, 1));
  line-height: 1.2;
}

.score {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: calc((46px) * var(--text-scale, 1));
  line-height: 1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.meta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.metric {
  padding: 10px;
  border-radius: var(--radius);
  background: rgba(246, 247, 249, 0.74);
}

.metric span {
  display: block;
  margin-bottom: 4px;
  color: var(--soft);
  font-size: calc((12px) * var(--text-scale, 1));
}

.metric strong {
  color: var(--ink);
  font-size: calc((15px) * var(--text-scale, 1));
  font-variant-numeric: tabular-nums;
}

.positive {
  color: #16693f;
}

.negative {
  color: #a33a54;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.tag {
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: #0d4aa0;
  font-size: calc((12px) * var(--text-scale, 1));
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tag.alt {
  background: var(--mint-soft);
  color: #08734d;
}

.business {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: calc((13px) * var(--text-scale, 1));
  line-height: 1.55;
}

.analysis-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 16px;
  margin-bottom: 16px;
}

.panel {
  padding: 18px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.panel-pill {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  font-size: calc((12px) * var(--text-scale, 1));
  font-weight: 700;
}

.chart-panel {
  min-height: 372px;
}

.score-bars {
  display: grid;
  gap: 13px;
}

.bar-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) 72px;
  gap: 12px;
  align-items: center;
}

.bar-label {
  min-width: 0;
}

.bar-label strong {
  display: block;
  overflow: hidden;
  font-size: calc((15px) * var(--text-scale, 1));
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-label span {
  color: var(--muted);
  font-size: calc((12px) * var(--text-scale, 1));
}

.bar-track {
  position: relative;
  height: 34px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(227, 232, 240, 0.72);
}

.bar-fill {
  width: var(--bar-size);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #64a5ff);
  transform-origin: left;
  animation: barGrow 760ms ease both;
}

.bar-value {
  color: var(--ink);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

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

.industry-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.54);
}

.industry-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.industry-item span {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.direction-panel {
  grid-column: 1 / -1;
}

.topic-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic {
  max-width: min(100%, 520px);
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  font-size: calc((13px) * var(--text-scale, 1));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-panel {
  padding-bottom: 12px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.54);
}

table {
  width: 100%;
  min-width: 3080px;
  border-collapse: separate;
  border-spacing: 0;
}

th,
td {
  min-width: 104px;
  max-width: 260px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid rgba(28, 31, 36, 0.06);
  text-align: left;
  vertical-align: top;
  font-size: calc((13px) * var(--text-scale, 1));
  line-height: 1.45;
}

th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(250, 251, 253, 0.96);
  color: var(--muted);
  font-weight: 800;
  backdrop-filter: blur(18px);
}

tbody tr {
  transition: background 160ms ease;
}

tbody tr:hover {
  background: rgba(31, 117, 254, 0.05);
}

td.numeric {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

td.positive {
  color: #16693f;
}

td.negative {
  color: #a33a54;
}

th:nth-child(1),
td:nth-child(1) {
  min-width: 112px;
}

th:nth-child(2),
td:nth-child(2) {
  min-width: 74px;
}

th:nth-child(3),
td:nth-child(3),
th:nth-child(4),
td:nth-child(4) {
  min-width: 170px;
}

th:nth-child(5),
td:nth-child(5) {
  min-width: 116px;
}

th:nth-child(6),
td:nth-child(6) {
  min-width: 112px;
}

th:nth-child(17),
td:nth-child(17) {
  width: 108px;
  min-width: 108px;
  max-width: 108px;
  white-space: nowrap;
}

th:nth-child(18),
td:nth-child(18) {
  width: 300px;
  min-width: 300px;
  max-width: 300px;
}

th:nth-child(22),
td:nth-child(22) {
  min-width: 300px;
  max-width: 300px;
}

.cell-text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

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

summary {
  color: var(--ink);
  cursor: pointer;
}

details[open] .cell-text {
  display: block;
}

@keyframes ambientDrift {
  from {
    transform: translate3d(-1.5%, -1%, 0) scale(1);
  }
  to {
    transform: translate3d(1.5%, 1%, 0) scale(1.03);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes barGrow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes calendarIn {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes privacyBotFloat {
  0%,
  100% {
    transform: translateY(5px);
  }

  50% {
    transform: translateY(0);
  }
}

@keyframes privacyBotBlink {
  0%,
  92%,
  100% {
    transform: scaleY(1);
    transform-origin: center;
  }

  95% {
    transform: scaleY(0.18);
    transform-origin: center;
  }
}

@keyframes privacyEyeLook {
  0%,
  16%,
  100% {
    transform: translateX(0);
  }

  34%,
  48% {
    transform: translateX(-5px);
  }

  66%,
  80% {
    transform: translateX(5px);
  }
}

@keyframes privacyHumanEyeTurn {
  0%,
  100% {
    transform: translateX(0) rotate(0deg) scale(1);
  }

  18% {
    transform: translateX(-3px) rotate(-7deg) scale(0.99);
  }

  34% {
    transform: translateX(-1px) rotate(-3deg) scale(1);
  }

  52% {
    transform: translateX(3px) rotate(7deg) scale(0.99);
  }

  68% {
    transform: translateX(1px) rotate(3deg) scale(1);
  }

  84% {
    transform: translateX(0) rotate(0deg) scale(1);
  }
}

@media (max-width: 1080px) {
  .hero,
  .control-strip,
  .analysis-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 680px) {
  body {
    background-attachment: scroll;
  }

  .shell {
    width: min(100% - 24px, 1220px);
    padding-top: 20px;
  }

  .hero {
    min-height: auto;
    padding-top: 26px;
  }

  h1 {
    font-size: calc((44px) * var(--text-scale, 1));
  }

  .hero-subtitle {
    font-size: calc((15px) * var(--text-scale, 1));
  }

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

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

  .kpi {
    min-height: 112px;
    padding: 14px;
  }

  .bar-row {
    grid-template-columns: 1fr 66px;
  }

  .bar-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  table {
    min-width: 2860px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

/* Multi-module command center redesign */
:root {
  --page: #030914;
  --surface: rgba(9, 20, 38, 0.78);
  --surface-strong: rgba(14, 31, 58, 0.92);
  --surface-soft: rgba(11, 26, 48, 0.82);
  --ink: #f3f8ff;
  --muted: #9eb3d6;
  --muted-strong: #c5d8ff;
  --soft: #667ea8;
  --line: rgba(126, 174, 255, 0.16);
  --line-strong: rgba(160, 204, 255, 0.28);
  --blue: #7fbcff;
  --blue-soft: rgba(72, 145, 255, 0.18);
  --green: #36f0b4;
  --green-soft: rgba(54, 240, 180, 0.15);
  --red: #ff6f8d;
  --red-soft: rgba(255, 111, 141, 0.13);
  --amber: #ffd166;
  --amber-soft: rgba(255, 209, 102, 0.15);
  --shadow: 0 30px 90px rgba(0, 20, 55, 0.58);
  --shadow-soft: 0 18px 44px rgba(0, 23, 61, 0.4);
  --radius: 8px;
  --radius-large: 18px;
}

body {
  background:
    radial-gradient(ellipse at 16% -12%, rgba(20, 116, 255, 0.36), transparent 34%),
    radial-gradient(ellipse at 76% -8%, rgba(20, 219, 184, 0.22), transparent 32%),
    linear-gradient(180deg, #07162a 0%, #041022 44%, #020713 100%);
}

body::before {
  background:
    linear-gradient(180deg, rgba(114, 170, 255, 0.075), rgba(0, 10, 28, 0.02)),
    repeating-linear-gradient(
      90deg,
      rgba(132, 184, 255, 0.035) 0,
      rgba(132, 184, 255, 0.035) 1px,
      transparent 1px,
      transparent 96px
    );
}

.ambient {
  opacity: 0.32;
  mix-blend-mode: screen;
}

.shell {
  width: min(1440px, calc(100% - 40px));
  padding: 26px 0 56px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.shell > :not(.date-card) {
  grid-column: 2;
  min-width: 0;
}

.market-card,
.strategy-panel,
.details-panel,
.insight-card {
  border: 1px solid rgba(124, 178, 255, 0.18);
  border-radius: var(--radius-large);
  background:
    linear-gradient(180deg, rgba(44, 86, 143, 0.22), rgba(6, 18, 36, 0.62)),
    var(--surface);
  box-shadow:
    0 26px 72px rgba(0, 16, 45, 0.48),
    0 1px 0 rgba(185, 218, 255, 0.1) inset,
    0 0 0 1px rgba(70, 138, 255, 0.04) inset;
  backdrop-filter: blur(24px) saturate(155%);
  -webkit-backdrop-filter: blur(24px) saturate(155%);
}

.eyebrow,
.section-kicker {
  color: var(--blue);
  letter-spacing: 0;
}

.market-grid {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 170px minmax(280px, 1.15fr) minmax(230px, 0.85fr) 156px;
  gap: 12px;
  margin-bottom: 14px;
}

.market-card {
  min-width: 0;
  min-height: 116px;
  padding: 16px;
  animation: cardIn 520ms ease both;
}

.market-card span,
.summary-item span,
.market-card small,
.summary-item small {
  color: var(--muted);
  font-size: calc((12px) * var(--text-scale, 1));
}

.market-card strong,
.summary-item strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.date-card {
  position: sticky;
  top: 16px;
  z-index: 60;
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: start;
  display: grid;
  min-height: 148px;
  place-items: center;
  overflow: visible;
  text-align: center;
}

.date-card:focus-within {
  z-index: 80;
}

.privacy-toggle {
  position: absolute;
  top: -16px;
  left: 50%;
  z-index: 6;
  display: block;
  width: 62px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform: translateX(-50%);
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.32));
}

.privacy-toggle:focus-visible {
  outline: 3px solid rgba(25, 103, 255, 0.26);
  outline-offset: 2px;
  border-radius: 22px;
}

.privacy-avatar {
  display: none;
  width: 112px;
  height: 58px;
  overflow: visible;
  transform: translateY(3px);
  animation: privacyBotFloat 3.8s ease-in-out infinite;
  transition:
    filter 180ms ease,
    transform 180ms ease;
}

.privacy-toggle:hover .privacy-avatar {
  filter: saturate(1.14) drop-shadow(0 0 18px rgba(82, 170, 255, 0.28));
  transform: translateY(0) rotate(-1deg) scale(1.03);
}

.privacy-cartoon-sunglasses {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  z-index: 2;
  width: 58px;
  height: auto;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9) rotate(-1deg);
  transform-origin: center;
  filter:
    drop-shadow(0 6px 8px rgba(0, 10, 24, 0.42))
    drop-shadow(0 0 8px rgba(56, 181, 255, 0.22));
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    filter 180ms ease;
}

.privacy-human-eye {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  isolation: isolate;
}

.privacy-human-eye::before {
  position: absolute;
  inset: 5px 7px;
  z-index: -1;
  content: "";
  border: 1px solid rgba(105, 190, 255, 0.28);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 45%, rgba(112, 200, 255, 0.24), transparent 60%),
    rgba(4, 20, 44, 0.32);
  box-shadow:
    0 0 16px rgba(64, 166, 255, 0.22),
    0 1px 0 rgba(230, 248, 255, 0.14) inset;
}

.privacy-human-eye-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 54px;
  height: auto;
  transform-origin: 50% 50%;
  filter:
    drop-shadow(0 8px 12px rgba(0, 10, 24, 0.38))
    drop-shadow(0 0 10px rgba(72, 186, 255, 0.28));
  animation: privacyHumanEyeTurn 4.8s ease-in-out infinite;
}

.privacy-toggle:hover .privacy-human-eye-image {
  filter:
    drop-shadow(0 10px 14px rgba(0, 10, 24, 0.44))
    drop-shadow(0 0 14px rgba(82, 202, 255, 0.36));
  animation-duration: 3.2s;
}

.privacy-sunglasses-emoji {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  opacity: 0;
  color: #111827;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: calc((56px) * var(--text-scale, 1));
  font-weight: 400;
  line-height: 1;
  pointer-events: none;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3),
    0 0 12px rgba(79, 189, 255, 0.36),
    0 9px 14px rgba(0, 0, 0, 0.46);
  transform: translateY(-10px) rotate(-3deg) scale(0.9);
  transform-origin: center;
  transition:
    opacity 160ms ease,
    transform 180ms ease,
    filter 180ms ease;
}

.privacy-sunglasses-emoji::before {
  position: absolute;
  inset: 4px 9px;
  z-index: -1;
  content: "";
  border: 1px solid rgba(105, 190, 255, 0.28);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 38%, rgba(125, 205, 255, 0.22), transparent 58%),
    rgba(5, 21, 45, 0.28);
  box-shadow:
    0 0 14px rgba(67, 163, 255, 0.22),
    0 1px 0 rgba(230, 248, 255, 0.15) inset;
}

.privacy-toggle:hover .privacy-sunglasses-emoji {
  filter: saturate(1.12);
  transform: translateY(-10px) rotate(-4deg) scale(1.25);
}

.privacy-toggle:hover .privacy-cartoon-sunglasses {
  filter:
    drop-shadow(0 8px 10px rgba(0, 10, 24, 0.48))
    drop-shadow(0 0 12px rgba(80, 202, 255, 0.32));
}

.privacy-eye-shell {
  fill: rgba(7, 23, 48, 0.9);
  stroke: rgba(95, 185, 255, 0.72);
  stroke-width: 2;
}

.privacy-eye-line {
  fill: rgba(39, 132, 255, 0.1);
  stroke: rgba(139, 212, 255, 0.22);
  stroke-width: 1;
}

.privacy-eye-pair {
  animation: privacyEyeLook 4.6s ease-in-out infinite;
  transform-origin: 75px 35px;
  transition: opacity 160ms ease;
}

.privacy-eye-orb > circle:first-child {
  fill: #eef8ff;
  opacity: 0.95;
}

.privacy-iris {
  fill: url(#privacyIris);
}

.privacy-pupil {
  fill: #061123;
}

.privacy-eye-shine {
  fill: #ffffff;
  opacity: 0.9;
}

.privacy-sunglass-mark {
  opacity: 0;
  transform: translateY(-4px) scale(0.92);
  transform-origin: 75px 35px;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.privacy-sunglass-mark path {
  vector-effect: non-scaling-stroke;
}

.privacy-sunglass-shadow {
  fill: rgba(1, 7, 17, 0.42);
  stroke: none;
}

.privacy-sunglass-frame {
  fill: url(#privacyEyeGlass);
  stroke: url(#privacyFrameShine);
  stroke-width: 1.8;
}

.privacy-sunglass-lens {
  fill: url(#privacyLensSheen);
  stroke: rgba(204, 239, 255, 0.32);
  stroke-width: 0.75;
}

.privacy-sunglass-bridge {
  fill: none;
  stroke: rgba(1, 7, 18, 0.96);
  stroke-linecap: round;
  stroke-width: 3;
}

.privacy-sunglass-topline,
.privacy-sunglass-glint,
.privacy-sunglass-spark {
  fill: none;
  stroke-linecap: round;
}

.privacy-sunglass-topline {
  stroke: rgba(213, 245, 255, 0.42);
  stroke-width: 1.2;
}

.privacy-sunglass-glint {
  stroke: rgba(255, 255, 255, 0.58);
  stroke-width: 1.9;
}

.privacy-sunglass-spark {
  opacity: 0.34;
  stroke: rgba(182, 232, 255, 0.54);
  stroke-width: 1.15;
}

.privacy-toggle.is-masked .privacy-eye-pair {
  opacity: 0;
  animation-play-state: paused;
}

.privacy-toggle.is-masked .privacy-sunglass-mark {
  opacity: 0;
  transform: translateY(-4px) scale(0.92);
}

.privacy-toggle.is-masked .privacy-avatar {
  opacity: 0.52;
}

.privacy-toggle.is-masked .privacy-cartoon-sunglasses {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotate(-1deg);
}

.privacy-toggle.is-masked .privacy-sunglasses-emoji {
  opacity: 1;
  transform: translateY(-10px) rotate(-3deg) scale(1.18);
}

.privacy-toggle::after {
  display: none;
}

.privacy-peeker,
.privacy-peeker span {
  box-sizing: border-box;
}

.privacy-peeker {
  position: relative;
  display: block;
  width: 76px;
  height: 70px;
  transform: translateY(6px);
  transition: transform 180ms ease;
}

.privacy-toggle:hover .privacy-peeker {
  transform: translateY(2px) rotate(-1deg);
}

.privacy-face {
  position: absolute;
  top: 10px;
  left: 15px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(120, 86, 56, 0.13);
  border-radius: 46% 46% 50% 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.72) 0 10%, transparent 11%),
    linear-gradient(180deg, #ffe9d7 0%, #ffd2b2 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.84) inset,
    0 10px 18px rgba(164, 96, 48, 0.13);
}

.privacy-hair {
  position: absolute;
  top: -4px;
  left: 7px;
  width: 32px;
  height: 15px;
  border-radius: 16px 16px 10px 10px;
  background: linear-gradient(180deg, #2b2d35, #171923);
}

.privacy-hair::before,
.privacy-hair::after {
  position: absolute;
  bottom: -5px;
  width: 12px;
  height: 12px;
  content: "";
  border-radius: 50%;
  background: #1b1e28;
}

.privacy-hair::before {
  left: 0;
}

.privacy-hair::after {
  right: 1px;
}

.privacy-eye {
  position: absolute;
  top: 21px;
  width: 6px;
  height: 8px;
  border-radius: 999px;
  background: #1d2430;
  transition: opacity 140ms ease;
}

.privacy-eye-left {
  left: 14px;
}

.privacy-eye-right {
  right: 14px;
}

.privacy-sunglasses {
  position: absolute;
  top: 18px;
  left: 9px;
  width: 28px;
  height: 15px;
  opacity: 0;
  transition: opacity 140ms ease;
}

.privacy-sunglasses::before,
.privacy-sunglasses::after {
  position: absolute;
  top: 0;
  width: 14px;
  height: 12px;
  content: "";
  border: 2px solid #10131c;
  border-radius: 8px 8px 7px 7px;
  background: linear-gradient(135deg, #111827, #2f3545);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset;
}

.privacy-sunglasses::before {
  left: 0;
}

.privacy-sunglasses::after {
  left: 17px;
}

.privacy-toggle.is-masked .privacy-eye {
  opacity: 0;
}

.privacy-toggle.is-masked .privacy-sunglasses {
  opacity: 1;
}

.privacy-smile {
  position: absolute;
  right: 17px;
  bottom: 10px;
  width: 11px;
  height: 6px;
  border-bottom: 2px solid rgba(109, 67, 45, 0.72);
  border-radius: 0 0 999px 999px;
}

.privacy-hand {
  position: absolute;
  bottom: 4px;
  z-index: 1;
  width: 22px;
  height: 15px;
  border: 1px solid rgba(120, 86, 56, 0.12);
  border-radius: 999px 999px 12px 12px;
  background: linear-gradient(180deg, #ffe5d1, #ffc8a7);
}

.privacy-hand-left {
  left: 8px;
  transform: rotate(9deg);
}

.privacy-hand-right {
  right: 8px;
  transform: rotate(-9deg);
}

.date-arrow,
.report-card button {
  min-width: 32px;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.date-arrow {
  position: absolute;
  top: 50%;
  display: grid;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  place-items: center;
  padding: 0;
  font-size: calc((15px) * var(--text-scale, 1));
  font-weight: 780;
  line-height: 1;
  transform: translateY(-50%);
}

.date-arrow-prev {
  left: 14px;
}

.date-arrow-next {
  right: 14px;
}

.date-arrow:hover,
.report-card button:hover {
  transform: translateY(-1px);
  border-color: rgba(25, 103, 255, 0.32);
  box-shadow: 0 10px 24px rgba(25, 103, 255, 0.12);
}

.date-arrow:hover {
  transform: translateY(-50%) scale(1.04);
}

.exposure-card {
  display: grid;
  gap: 10px;
}

.exposure-metric {
  display: grid;
  gap: 5px;
  min-height: 0;
  align-content: center;
  padding: 12px 13px;
  border: 1px solid rgba(24, 25, 28, 0.06);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
}

.exposure-card .exposure-metric strong {
  margin: 0;
  font-size: calc((20px) * var(--text-scale, 1));
  line-height: 1.05;
}

.exposure-card .exposure-metric #marketEffect {
  display: grid;
  gap: 4px;
  max-width: 100%;
  font-size: calc((17px) * var(--text-scale, 1));
  line-height: 1.12;
  letter-spacing: 0;
}

.market-effect-line {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exposure-card .exposure-metric #marketEffect .market-effect-line,
.exposure-card .exposure-metric #marketEffect .market-effect-line.is-sub {
  color: inherit;
  font-size: calc((17px) * var(--text-scale, 1));
  font-weight: 860;
  line-height: 1.12;
}

.market-effect-line.is-sub {
  color: inherit;
  font-size: calc((1em) * var(--text-scale, 1));
  font-weight: inherit;
}

.exposure-metric.is-ready {
  border-color: rgba(78, 224, 168, 0.2);
  background: rgba(64, 214, 164, 0.08);
}

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

.market-card-head em,
.panel-pill.pending {
  border-color: rgba(183, 121, 31, 0.24);
  background: var(--amber-soft);
  color: #8b5c13;
  font-style: normal;
}

.market-card-head em.is-ready {
  border-color: rgba(78, 224, 168, 0.3);
  background: rgba(64, 214, 164, 0.12);
  color: #7df2c8;
}

.index-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.index-row strong {
  position: relative;
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 12px 10px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  text-align: center;
  overflow: hidden;
}

.index-row strong.has-heat-meter {
  padding-right: 22px;
}

.index-row strong b {
  color: var(--ink);
  font-size: calc((15px) * var(--text-scale, 1));
  line-height: 1.1;
}

.index-row strong small {
  min-height: 14px;
  color: var(--muted);
  font-size: calc((11px) * var(--text-scale, 1));
  line-height: 1.1;
}

.index-row strong small.positive {
  color: var(--positive);
}

.index-row strong small.negative {
  color: var(--negative);
}

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

.sentiment-row > span {
  position: relative;
  display: grid;
  min-height: 62px;
  min-width: 0;
  align-content: center;
  gap: 5px;
  padding: 11px 12px 10px 18px;
  border: 1px solid rgba(107, 179, 255, 0.16);
  border-radius: 14px;
  background:
    radial-gradient(circle at 18% 0%, rgba(105, 185, 255, 0.14), transparent 42%),
    linear-gradient(135deg, rgba(42, 126, 255, 0.13), rgba(22, 219, 194, 0.06)),
    var(--surface-soft);
  overflow: hidden;
  white-space: normal;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 12px 24px rgba(0, 28, 80, 0.08);
}

.sentiment-row > span::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 9px;
  width: 4px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, #7fc7ff, #32f1c1);
  box-shadow: 0 0 16px rgba(56, 218, 202, 0.2);
  opacity: 0.78;
}

.ticker {
  --ticker-duration: 14s;
  position: relative;
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.ticker-viewport {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: none;
  animation: ticker-scroll var(--ticker-duration) linear infinite;
  will-change: transform;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-right: 44px;
}

.ticker-label {
  color: var(--muted);
  font-weight: 650;
}

.ticker-value {
  color: var(--ink);
  font-weight: 780;
}

.sentiment-label {
  display: block;
  min-width: 0;
  color: var(--muted);
  font-size: calc((11px) * var(--text-scale, 1));
  font-weight: 650;
  line-height: 1.15;
}

.sentiment-value {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: calc((12px) * var(--text-scale, 1));
  font-weight: 820;
  line-height: 1.22;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
  }
}

.sentiment-row > span.is-ready {
  border: 1px solid rgba(78, 224, 168, 0.16);
  background: rgba(64, 214, 164, 0.08);
}

.sentiment-row b {
  color: var(--ink);
  font-weight: 760;
}

.global-card {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.global-card > div {
  position: relative;
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.54);
}

.global-card > div.has-heat-meter {
  padding-right: 28px;
}

.global-card > div.is-ready {
  border: 1px solid rgba(78, 224, 168, 0.16);
  background: rgba(64, 214, 164, 0.08);
}

.global-card strong {
  display: grid;
  gap: 3px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
  margin-top: 5px;
  color: var(--muted);
  font-size: calc((13px) * var(--text-scale, 1));
  line-height: 1.18;
  letter-spacing: 0;
}

.global-card strong.is-ready {
  color: var(--ink);
}

.global-index-line {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-card .global-index-line {
  color: inherit;
}

.global-card small.is-ready {
  color: var(--muted-strong);
}

.global-card small {
  display: block;
  min-width: 0;
  margin-top: 2px;
  overflow: hidden;
  font-size: calc((11px) * var(--text-scale, 1));
  line-height: 1.16;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.heat-meter {
  position: absolute;
  top: 12px;
  right: 9px;
  bottom: 12px;
  z-index: 0;
  display: block;
  width: 7px;
  overflow: hidden;
  border-radius: 999px;
  pointer-events: none;
}

.heat-meter::before,
.heat-fill {
  position: absolute;
  border-radius: 999px;
  content: "";
}

.heat-meter::before {
  inset: 0;
  border: 1px solid rgba(218, 241, 255, 0.13);
  background:
    linear-gradient(180deg, rgba(235, 248, 255, 0.12), rgba(111, 160, 210, 0.04)),
    rgba(255, 255, 255, 0.05);
  opacity: 1;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16) inset,
    0 -8px 14px rgba(8, 20, 45, 0.16) inset,
    0 0 18px rgba(61, 178, 255, 0.05);
  backdrop-filter: blur(10px) saturate(145%);
  -webkit-backdrop-filter: blur(10px) saturate(145%);
}

.heat-fill {
  top: 1px;
  right: 1px;
  bottom: 1px;
  left: 0;
  width: auto;
  background:
    linear-gradient(
      0deg,
      rgba(91, 163, 255, 0.92) 0%,
      rgba(61, 225, 255, 0.96) 22%,
      rgba(255, 238, 72, 0.98) 50%,
      rgba(255, 126, 39, 0.98) 68%,
      rgba(255, 48, 99, 0.98) 85%,
      rgba(187, 74, 255, 1) 100%
    );
  clip-path: inset(calc(100% - var(--heat-pct, 50%)) 0 0 0 round 999px);
  opacity: 0.84;
  box-shadow:
    0 -8px 18px rgba(72, 183, 255, 0.1),
    0 0 18px rgba(255, 83, 143, 0.14);
}

.heat-pin {
  display: none;
}

.report-card {
  display: grid;
  gap: 10px;
  align-content: center;
}

.report-card button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border-radius: var(--radius);
  text-align: left;
}

.report-card button span {
  color: var(--ink);
  font-size: calc((16px) * var(--text-scale, 1));
  font-weight: 800;
}

.report-card button small {
  color: var(--soft);
  font-size: calc((12px) * var(--text-scale, 1));
  font-weight: 760;
}

.report-card button.is-ready {
  border-color: rgba(25, 103, 255, 0.24);
  background: rgba(255, 255, 255, 0.82);
}

.report-card button.is-ready small {
  color: var(--blue);
}

.report-card button:disabled {
  cursor: default;
  opacity: 0.72;
}

.report-card button:disabled:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: none;
}

.workspace-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr);
  gap: 14px;
  align-items: stretch;
  min-width: 0;
}

.strategy-column,
.insight-column,
.bottom-modules {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.insight-column {
  align-self: stretch;
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
}

.bottom-modules {
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.strategy-panel,
.details-panel,
.insight-card {
  min-width: 0;
  padding: 18px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.panel-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: calc((24px) * var(--text-scale, 1));
  line-height: 1.2;
}

.panel-pill {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  font-size: calc((12px) * var(--text-scale, 1));
  font-weight: 760;
}

.calendar-picker {
  display: grid;
  flex: 0 0 auto;
  gap: 5px;
  position: relative;
  min-width: 164px;
  padding: 8px 10px;
  border: 1px solid rgba(25, 103, 255, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 22px rgba(25, 103, 255, 0.08);
}

.date-calendar-picker {
  position: relative;
  width: 172px;
  min-width: 0;
  padding: 14px 15px 18px;
  border-color: rgba(25, 103, 255, 0.18);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(244, 248, 255, 0.68));
  box-shadow:
    0 16px 34px rgba(25, 103, 255, 0.09),
    0 1px 0 rgba(255, 255, 255, 0.92) inset;
  overflow: visible;
}

.date-calendar-picker::after {
  position: absolute;
  right: auto;
  bottom: 13px;
  left: 50%;
  width: 22px;
  height: 22px;
  content: "";
  border: 2px solid rgba(154, 179, 217, 0.82);
  border-radius: 6px;
  pointer-events: none;
  opacity: 0.72;
  transform: translateX(-50%);
  background:
    linear-gradient(rgba(154, 179, 217, 0.82), rgba(154, 179, 217, 0.82)) 4px 6px / 14px 2px no-repeat,
    linear-gradient(rgba(154, 179, 217, 0.82), rgba(154, 179, 217, 0.82)) 5px 2px / 2px 6px no-repeat,
    linear-gradient(rgba(154, 179, 217, 0.82), rgba(154, 179, 217, 0.82)) 15px 2px / 2px 6px no-repeat;
  box-shadow: 0 0 18px rgba(92, 165, 255, 0.16);
}

.calendar-picker:focus-within {
  border-color: rgba(25, 103, 255, 0.4);
  box-shadow:
    0 0 0 4px rgba(25, 103, 255, 0.09),
    0 12px 26px rgba(25, 103, 255, 0.1);
}

.calendar-picker > span {
  color: var(--muted);
  font-size: calc((13px) * var(--text-scale, 1));
  font-weight: 800;
}

.calendar-picker button {
  font: inherit;
}

#datePickerButton {
  position: relative;
  display: grid;
  gap: 7px;
  width: 100%;
  min-height: 104px;
  align-content: center;
  padding: 2px 18px 34px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
  cursor: pointer;
  outline: none;
}

#datePickerButton::after {
  display: none;
}

#datePickerButton strong {
  display: grid;
  gap: 3px;
  margin: 0;
  color: var(--ink);
  line-height: 1.02;
  font-variant-numeric: tabular-nums;
}

#datePickerButton .date-year,
#datePickerButton .date-month-day {
  display: block;
}

#datePickerButton .date-year {
  font-size: calc((21px) * var(--text-scale, 1));
  font-weight: 880;
}

#datePickerButton .date-month-day {
  font-size: calc((31px) * var(--text-scale, 1));
  font-weight: 900;
}

#datePickerButton small {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: calc((14px) * var(--text-scale, 1));
  font-weight: 820;
}

.calendar-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 200;
  width: 292px;
  padding: 14px;
  border: 1px solid rgba(25, 103, 255, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 24px 60px rgba(35, 48, 67, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.62) inset;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  animation: calendarIn 160ms ease both;
}

.date-calendar-picker .calendar-popover {
  right: auto;
  left: -8px;
  margin-left: 0;
}

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

.calendar-head strong {
  color: var(--ink);
  font-size: calc((15px) * var(--text-scale, 1));
}

.calendar-head small {
  color: var(--muted);
  font-size: calc((11px) * var(--text-scale, 1));
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-weekdays {
  margin-bottom: 7px;
  color: var(--soft);
  font-size: calc((11px) * var(--text-scale, 1));
  font-weight: 800;
  text-align: center;
}

.calendar-day,
.calendar-blank {
  display: grid;
  min-width: 0;
  min-height: 34px;
  place-items: center;
  border-radius: 10px;
}

.calendar-day {
  border: 0;
  background: rgba(246, 248, 251, 0.86);
  color: var(--ink);
  font-size: calc((13px) * var(--text-scale, 1));
  font-weight: 780;
  cursor: pointer;
  outline: none;
  transition:
    background 150ms ease,
    color 150ms ease,
    transform 150ms ease,
    box-shadow 150ms ease;
}

.calendar-day:hover:not(:disabled),
.calendar-day:focus-visible:not(:disabled) {
  background: var(--blue-soft);
  color: var(--blue);
  box-shadow: 0 0 0 3px rgba(25, 103, 255, 0.1);
}

.calendar-day.active {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 20px rgba(25, 103, 255, 0.22);
}

.calendar-day.unavailable {
  background: transparent;
  color: rgba(160, 168, 179, 0.48);
  cursor: default;
}

.date-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  padding: 2px 1px 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.date-tab {
  flex: 0 0 auto;
  min-width: 84px;
  min-height: 38px;
  border-radius: 999px;
}

.leaderboard {
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  scrollbar-width: thin;
}

.leaderboard-head,
.leaderboard-row {
  display: grid;
  min-width: 1080px;
  grid-template-columns:
    62px
    minmax(96px, 0.58fr)
    minmax(126px, 0.78fr)
    92px
    82px
    86px
    118px
    minmax(96px, 0.72fr)
    minmax(210px, 1.4fr);
  gap: 0;
  align-items: center;
}

.leaderboard-head {
  min-height: 44px;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 247, 250, 0.92);
  color: var(--muted);
  font-size: calc((12px) * var(--text-scale, 1));
  font-weight: 800;
}

.strategy-two-head,
.strategy-two-row {
  min-width: 1080px;
  grid-template-columns:
    62px
    minmax(96px, 0.58fr)
    minmax(126px, 0.78fr)
    92px
    82px
    86px
    118px
    minmax(96px, 0.72fr)
    minmax(210px, 1.4fr);
}

.leaderboard-head span,
.leaderboard-row > * {
  min-width: 0;
  padding: 0 12px;
}

.leaderboard-head .sortable-head {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.sort-toggle {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(25, 103, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font: inherit;
  font-size: calc((12px) * var(--text-scale, 1));
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.sort-toggle:hover,
.sort-toggle.is-active {
  border-color: rgba(25, 103, 255, 0.34);
  background: rgba(25, 103, 255, 0.12);
  color: var(--blue);
}

.sort-toggle:hover {
  transform: translateY(-1px);
}

.leaderboard-row {
  min-height: 82px;
  border-bottom: 1px solid rgba(24, 25, 28, 0.07);
  animation: cardIn 440ms ease both;
  transition:
    background 150ms ease,
    transform 150ms ease;
}

.leaderboard-row.no-row-animation {
  animation: none;
}

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

.leaderboard-row:hover {
  background: rgba(25, 103, 255, 0.045);
}

.leaderboard-empty {
  min-width: 100%;
  padding: 28px 18px;
  color: var(--muted);
  font-size: calc((14px) * var(--text-scale, 1));
  font-weight: 760;
}

.rank-chip {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.16) 24%, transparent 42%),
    radial-gradient(circle at 70% 76%, rgba(255, 255, 255, 0.08), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.035) 52%, rgba(255, 255, 255, 0.09));
  color: rgba(248, 252, 255, 0.9);
  font-family: var(--font-sans);
  font-size: calc((17px) * var(--text-scale, 1));
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.58),
    0 0 12px rgba(255, 255, 255, 0.14);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 -10px 18px rgba(0, 0, 0, 0.1) inset,
    0 10px 18px rgba(255, 255, 255, 0.035) inset;
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.stock-cell,
.code-cell {
  display: block;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stock-cell {
  font-size: calc((17px) * var(--text-scale, 1));
  line-height: 1.25;
  font-weight: 800;
}

.code-cell {
  color: var(--muted);
  font-size: calc((14px) * var(--text-scale, 1));
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.privacy-masked {
  color: rgba(82, 96, 118, 0.58);
  letter-spacing: 0.1em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.82);
  filter: saturate(0.72);
}

.stock-cell.privacy-masked,
.code-cell.privacy-masked {
  display: block;
  max-width: 100%;
  padding: 0;
}

.performance-table-card td.privacy-masked {
  background: transparent;
  color: rgba(82, 96, 118, 0.62);
  font-weight: 780;
}

.score-cell {
  color: var(--blue);
  font-family: var(--font-sans);
  font-size: calc((16px) * var(--text-scale, 1));
  line-height: 1.2;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.open-cell,
.change-cell,
.pnl-cell {
  display: block;
  font-family: var(--font-sans);
  font-weight: 760;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.industry-cell {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-cell {
  display: grid;
  gap: 6px;
  margin: 0;
  color: var(--muted);
  font-size: calc((13px) * var(--text-scale, 1));
  line-height: 1.45;
}

.business-text {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.business-cell.is-expanded .business-text {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.business-toggle {
  justify-self: start;
  min-height: 22px;
  padding: 2px 9px;
  border: 1px solid rgba(99, 177, 255, 0.28);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(68, 150, 255, 0.18), rgba(14, 51, 106, 0.1)),
    rgba(7, 25, 53, 0.62);
  color: #8fd3ff;
  font: inherit;
  font-size: calc((11px) * var(--text-scale, 1));
  font-weight: 820;
  line-height: 1.1;
  cursor: pointer;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease,
    color 140ms ease;
}

.business-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(111, 197, 255, 0.52);
  background:
    linear-gradient(180deg, rgba(84, 171, 255, 0.24), rgba(18, 74, 142, 0.14)),
    rgba(7, 25, 53, 0.72);
  color: #d7f2ff;
}

.muted-panel {
  min-height: 178px;
  background: rgba(255, 255, 255, 0.58);
}

.empty-state {
  display: grid;
  align-content: center;
  min-height: 104px;
  padding: 18px;
  border: 1px dashed rgba(24, 25, 28, 0.18);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.7);
  color: var(--muted);
}

.empty-state strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: calc((16px) * var(--text-scale, 1));
}

.empty-state p,
.insight-card > p,
.video-placeholder p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.empty-state.compact {
  min-height: 140px;
}

.details-panel {
  margin-top: -4px;
  padding: 0;
  overflow: hidden;
}

.details-panel > details > summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 18px;
  cursor: pointer;
  list-style: none;
}

.details-panel > details > summary::-webkit-details-marker {
  display: none;
}

.details-panel > details > summary span {
  color: var(--ink);
  font-size: calc((18px) * var(--text-scale, 1));
  font-weight: 800;
}

.details-panel > details > summary small {
  color: var(--muted);
}

.table-wrap {
  margin: 0 18px 18px;
  border-radius: 14px;
}

table {
  min-width: 2380px;
}

th,
td {
  padding: 11px 12px;
  font-size: calc((12px) * var(--text-scale, 1));
}

.insight-card {
  min-height: 196px;
}

.performance-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  min-height: 252px;
  overflow: hidden;
}

.performance-chart-card,
.performance-table-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
}

.performance-chart-card {
  padding: 12px;
  margin-bottom: 12px;
}

.performance-chart-head,
.performance-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-size: calc((13px) * var(--text-scale, 1));
  font-weight: 780;
}

.performance-chart-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.chart-legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: calc((12px) * var(--text-scale, 1));
  font-weight: 680;
}

.chart-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  opacity: 0.46;
  transition:
    opacity 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.chart-toggle.is-active {
  border-color: rgba(31, 117, 254, 0.12);
  background: rgba(255, 255, 255, 0.66);
  opacity: 1;
}

.chart-toggle:hover {
  opacity: 1;
}

.chart-legend b,
.chart-toggle b {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.legend-open {
  background: #6ac9ff;
  box-shadow: 0 0 10px rgba(106, 201, 255, 0.34);
}

.legend-close {
  background: #34f5b5;
  box-shadow: 0 0 10px rgba(52, 245, 181, 0.34);
}

.performance-chart-wrap {
  position: relative;
  min-height: 196px;
  margin-top: 8px;
}

#performanceChart {
  display: block;
  width: 100%;
  height: 196px;
  overflow: visible;
}

.chart-grid line {
  stroke: rgba(17, 24, 39, 0.08);
  stroke-width: 1;
}

.chart-guide-line {
  pointer-events: none;
  stroke: rgba(206, 232, 255, 0.58);
  stroke-width: 0.55;
  transition: opacity 0.28s ease;
  vector-effect: non-scaling-stroke;
}

.chart-date-axis {
  pointer-events: none;
}

.chart-x-baseline,
.chart-x-tick {
  stroke: rgba(142, 157, 184, 0.3);
  stroke-width: 0.7;
  vector-effect: non-scaling-stroke;
}

.chart-x-tick {
  stroke: rgba(142, 157, 184, 0.46);
}

.chart-month-tick {
  stroke: rgba(161, 185, 220, 0.62);
  stroke-width: 0.9;
}

.chart-hit-area {
  fill: transparent;
  cursor: crosshair;
}

.curve-line {
  fill: none;
  pointer-events: none;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.curve-area {
  pointer-events: none;
  opacity: 0.82;
  mix-blend-mode: plus-lighter;
}

.curve-open-area {
  filter: drop-shadow(0 12px 28px rgba(106, 201, 255, 0.07));
}

.curve-close-area {
  filter: drop-shadow(0 12px 30px rgba(52, 245, 181, 0.08));
}

.curve-open {
  stroke: #7ed4ff;
  filter:
    drop-shadow(0 0 3px rgba(126, 212, 255, 0.14))
    drop-shadow(0 6px 14px rgba(61, 132, 255, 0.045));
}

.curve-close {
  stroke: #48f0bf;
  filter:
    drop-shadow(0 0 3px rgba(72, 240, 191, 0.14))
    drop-shadow(0 6px 14px rgba(52, 245, 181, 0.045));
}

.curve-point {
  pointer-events: none;
  opacity: 0;
}

.chart-hover-layer {
  pointer-events: none;
}

.chart-hover-dot {
  pointer-events: none;
  opacity: 0;
  stroke: rgba(240, 250, 255, 0.84);
  stroke-width: 1;
  transition:
    opacity 0.32s ease,
    r 0.32s ease;
  vector-effect: non-scaling-stroke;
  filter:
    drop-shadow(0 0 7px rgba(150, 220, 255, 0.24))
    drop-shadow(0 0 14px rgba(33, 235, 194, 0.12));
}

.chart-hover-dot.is-visible {
  opacity: 0.92;
}

.chart-hover-open {
  fill: rgba(113, 214, 255, 0.94);
}

.chart-hover-close {
  fill: rgba(56, 242, 190, 0.94);
}

.curve-point:hover,
.curve-point:focus {
  r: 7;
  outline: none;
  filter: drop-shadow(0 0 12px rgba(98, 216, 255, 0.36));
}

.point-open {
  fill: #6ac9ff;
}

.point-close {
  fill: #34f5b5;
}

.chart-axis-label,
.chart-empty-label {
  fill: var(--muted);
  font-size: calc((12px) * var(--text-scale, 1));
  font-weight: 700;
}

.chart-axis-label.end {
  text-anchor: end;
}

.chart-y-label {
  fill: rgba(142, 157, 184, 0.88);
  font-size: calc((11px) * var(--text-scale, 1));
  letter-spacing: 0;
}

.chart-x-label {
  fill: rgba(142, 157, 184, 0.92);
  font-size: calc((10.5px) * var(--text-scale, 1));
  letter-spacing: 0;
}

.chart-month-label {
  fill: rgba(181, 202, 232, 0.95);
  font-weight: 760;
}

.chart-empty-label {
  text-anchor: middle;
}

.chart-tooltip {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  display: grid;
  gap: 4px;
  min-width: 178px;
  padding: 10px 12px;
  border: 1px solid rgba(31, 117, 254, 0.15);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow:
    0 16px 34px rgba(16, 24, 40, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.72) inset;
  color: var(--muted);
  font-size: calc((12px) * var(--text-scale, 1));
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px) scale(0.98);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
}

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

.chart-tooltip strong,
.chart-tooltip b {
  color: var(--ink);
}

.performance-table-card {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 12px;
}

.performance-table-head {
  margin-bottom: 10px;
}

.performance-table-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.performance-table-head small {
  color: var(--muted);
  font-size: calc((12px) * var(--text-scale, 1));
  font-weight: 680;
}

.icon-action-button {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-size: calc((15px) * var(--text-scale, 1));
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.icon-action-button:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 117, 254, 0.28);
  box-shadow: 0 10px 24px rgba(31, 117, 254, 0.12);
}

.performance-table-wrap {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
}

.performance-table-wrap table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: calc((12px) * var(--text-scale, 1));
}

.performance-table-wrap th,
.performance-table-wrap td {
  max-width: 160px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  text-align: left;
  white-space: nowrap;
}

.performance-table-wrap th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(246, 248, 251, 0.96);
  color: var(--muted);
  font-weight: 780;
}

.performance-table-wrap td {
  color: var(--ink);
  font-weight: 650;
}

.performance-table-wrap td.numeric {
  font-variant-numeric: tabular-nums;
}

body.performance-expanded {
  overflow: hidden;
}

body.performance-expanded::after {
  position: fixed;
  inset: 0;
  z-index: 9000;
  content: "";
  background:
    radial-gradient(circle at 18% 12%, rgba(30, 136, 255, 0.18), transparent 34%),
    radial-gradient(circle at 82% 8%, rgba(50, 241, 193, 0.13), transparent 30%),
    rgba(2, 10, 24, 0.76);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
}

body.performance-expanded .workspace-grid {
  z-index: 9010;
}

body.performance-expanded .market-grid {
  z-index: 1;
}

.performance-card.is-expanded {
  position: fixed;
  inset: 18px;
  z-index: 9020;
  width: auto;
  height: auto;
  max-height: none;
  padding: 22px;
  border: 1px solid rgba(31, 117, 254, 0.2);
  box-shadow: 0 28px 80px rgba(16, 24, 40, 0.28);
}

.performance-card.is-expanded::before {
  content: none;
}

.performance-card.is-table-expanded > .panel-header,
.performance-card.is-table-expanded .performance-chart-card {
  display: none;
}

.performance-card.is-table-expanded .performance-table-card {
  flex: 1 1 0;
  height: 100%;
}

.performance-card.is-chart-expanded > .panel-header,
.performance-card.is-chart-expanded .performance-table-card {
  display: none;
}

.performance-card.is-chart-expanded .performance-chart-card {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-height: 0;
  margin: 0;
  padding: 18px;
}

.performance-card.is-chart-expanded .performance-chart-head {
  flex: 0 0 auto;
  margin-bottom: 10px;
  font-size: calc((15px) * var(--text-scale, 1));
}

.performance-card.is-chart-expanded .performance-chart-wrap {
  flex: 1 1 0;
  min-height: 0;
  margin-top: 0;
}

.performance-card.is-chart-expanded #performanceChart {
  height: 100%;
  min-height: calc(100vh - 126px);
}

.video-placeholder {
  display: grid;
  place-items: center;
  min-height: 196px;
  padding: 22px;
  border: 1px dashed rgba(24, 25, 28, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(25, 103, 255, 0.08), rgba(18, 166, 106, 0.07)),
    rgba(255, 255, 255, 0.58);
  text-align: center;
}

.video-placeholder span {
  display: block;
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 38%, #fff 38% 48%, transparent 48%),
    var(--blue);
  box-shadow: 0 12px 28px rgba(25, 103, 255, 0.2);
}

.video-placeholder strong {
  color: var(--ink);
  font-size: calc((17px) * var(--text-scale, 1));
}

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

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

/* Dark Apple command center finish */
html {
  background: var(--page);
}

.market-card,
.strategy-panel,
.details-panel,
.insight-card {
  border-color: rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    rgba(18, 20, 27, 0.74);
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.34),
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.market-card span,
.summary-item span,
.market-card small,
.summary-item small,
.insight-card > p,
.empty-state p,
.details-panel > details > summary small,
.performance-table-head small {
  color: var(--muted);
}

.market-card strong,
.summary-item strong,
h2,
.details-panel > details > summary span,
.video-placeholder strong,
.performance-table-head span {
  color: var(--ink);
}

.date-arrow {
  z-index: 7;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  font-size: calc((20px) * var(--text-scale, 1));
  border-color: rgba(143, 191, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(137, 191, 255, 0.24), rgba(31, 85, 172, 0.1)),
    rgba(6, 19, 39, 0.88);
  color: #eaf4ff;
  box-shadow:
    0 12px 30px rgba(0, 24, 70, 0.42),
    0 0 18px rgba(67, 137, 255, 0.12),
    0 1px 0 rgba(204, 228, 255, 0.14) inset;
}

.date-arrow-prev {
  left: -15px;
}

.date-arrow-next {
  right: -15px;
}

.date-card > .date-arrow-prev {
  left: calc(50% - 120px);
}

.date-card > .date-arrow-next {
  right: calc(50% - 120px);
}

.date-arrow:hover,
.report-card button:hover {
  border-color: rgba(111, 182, 255, 0.58);
  box-shadow:
    0 18px 38px rgba(0, 30, 84, 0.48),
    0 0 0 4px rgba(84, 154, 255, 0.11),
    0 0 26px rgba(54, 240, 180, 0.08);
}

.date-calendar-picker,
.calendar-popover {
  border-color: rgba(126, 188, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(74, 129, 218, 0.18), rgba(10, 24, 48, 0.58)),
    rgba(4, 15, 32, 0.92);
  box-shadow:
    0 26px 66px rgba(0, 20, 58, 0.52),
    0 0 32px rgba(65, 139, 255, 0.12),
    0 1px 0 rgba(210, 232, 255, 0.12) inset;
}

.calendar-picker:focus-within {
  border-color: rgba(120, 170, 255, 0.42);
  box-shadow:
    0 0 0 4px rgba(120, 170, 255, 0.1),
    0 18px 38px rgba(0, 0, 0, 0.3);
}

.date-calendar-picker::after {
  border-color: rgba(185, 195, 211, 0.72);
  background:
    linear-gradient(rgba(185, 195, 211, 0.72), rgba(185, 195, 211, 0.72)) 4px 6px / 14px 2px no-repeat,
    linear-gradient(rgba(185, 195, 211, 0.72), rgba(185, 195, 211, 0.72)) 5px 2px / 2px 6px no-repeat,
    linear-gradient(rgba(185, 195, 211, 0.72), rgba(185, 195, 211, 0.72)) 15px 2px / 2px 6px no-repeat;
}

.calendar-day {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
}

.calendar-day.is-disabled {
  color: rgba(157, 167, 183, 0.28);
}

.calendar-day.is-active {
  background: linear-gradient(145deg, #9ed0ff, #287cff 58%, #18d7c2);
  color: #fff;
  box-shadow:
    0 12px 28px rgba(40, 124, 255, 0.36),
    0 0 18px rgba(24, 215, 194, 0.2);
}

.exposure-metric,
.index-row strong,
.sentiment-row > span,
.global-card > div,
.report-card button,
.empty-state,
.video-placeholder,
.performance-chart-card,
.performance-table-card {
  border-color: rgba(128, 186, 255, 0.13);
  background:
    linear-gradient(180deg, rgba(68, 127, 214, 0.12), rgba(15, 35, 68, 0.035)),
    rgba(4, 14, 31, 0.46);
}

.market-card-head em,
.panel-pill.pending {
  border-color: rgba(215, 168, 96, 0.3);
  background: rgba(215, 168, 96, 0.12);
  color: #f0c878;
}

.panel-pill:not(.pending),
.report-card button.is-ready {
  border-color: rgba(112, 184, 255, 0.42);
  background:
    linear-gradient(180deg, rgba(65, 138, 255, 0.18), rgba(10, 44, 92, 0.1)),
    rgba(5, 18, 40, 0.78);
  color: #ddecff;
}

.leaderboard,
.detail-table-wrap,
.performance-table-wrap,
.date-tabs,
.table-wrap {
  scrollbar-width: thin;
  scrollbar-color: rgba(224, 241, 255, 0.48) rgba(20, 58, 100, 0.28);
  scrollbar-gutter: stable;
  border-color: rgba(124, 181, 255, 0.13);
  background:
    linear-gradient(180deg, rgba(10, 34, 70, 0.34), rgba(5, 14, 31, 0.42)),
    rgba(3, 10, 22, 0.5);
}

.date-tabs,
html,
body {
  scrollbar-width: thin;
  scrollbar-color: rgba(224, 241, 255, 0.48) rgba(20, 58, 100, 0.28);
}

.leaderboard::-webkit-scrollbar,
.detail-table-wrap::-webkit-scrollbar,
.performance-table-wrap::-webkit-scrollbar,
.date-tabs::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar,
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 13px;
  height: 13px;
}

.leaderboard::-webkit-scrollbar-track,
.detail-table-wrap::-webkit-scrollbar-track,
.performance-table-wrap::-webkit-scrollbar-track,
.date-tabs::-webkit-scrollbar-track,
.table-wrap::-webkit-scrollbar-track,
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  border: 1px solid rgba(180, 218, 255, 0.07);
  border-radius: 999px;
  background:
    radial-gradient(circle at 20% 35%, rgba(255, 255, 255, 0.06), transparent 32%),
    linear-gradient(90deg, rgba(78, 124, 170, 0.18), rgba(38, 84, 132, 0.1) 56%, rgba(5, 19, 44, 0.42)),
    rgba(5, 18, 39, 0.44);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 -1px 0 rgba(0, 0, 0, 0.12) inset,
    0 0 22px rgba(112, 177, 255, 0.04) inset;
}

.leaderboard::-webkit-scrollbar-thumb,
.detail-table-wrap::-webkit-scrollbar-thumb,
.performance-table-wrap::-webkit-scrollbar-thumb,
.date-tabs::-webkit-scrollbar-thumb,
.table-wrap::-webkit-scrollbar-thumb,
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  border: 3px solid rgba(5, 18, 39, 0.44);
  border-radius: 999px;
  background-color: rgba(222, 239, 255, 0.42);
  background-image:
    radial-gradient(circle at 22% 38%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.12) 28%, transparent 44%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.42), rgba(218, 238, 255, 0.28) 42%, rgba(128, 176, 223, 0.22) 100%);
  background-clip: padding-box;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 -5px 12px rgba(20, 57, 96, 0.12) inset,
    0 0 16px rgba(164, 210, 255, 0.14);
}

.leaderboard::-webkit-scrollbar-thumb:vertical,
.detail-table-wrap::-webkit-scrollbar-thumb:vertical,
.performance-table-wrap::-webkit-scrollbar-thumb:vertical,
.date-tabs::-webkit-scrollbar-thumb:vertical,
.table-wrap::-webkit-scrollbar-thumb:vertical,
html::-webkit-scrollbar-thumb:vertical,
body::-webkit-scrollbar-thumb:vertical {
  background-image:
    radial-gradient(circle at 42% 22%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.12) 28%, transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(218, 238, 255, 0.28) 42%, rgba(128, 176, 223, 0.22) 100%);
}

.leaderboard::-webkit-scrollbar-thumb:hover,
.detail-table-wrap::-webkit-scrollbar-thumb:hover,
.performance-table-wrap::-webkit-scrollbar-thumb:hover,
.date-tabs::-webkit-scrollbar-thumb:hover,
.table-wrap::-webkit-scrollbar-thumb:hover,
html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background-color: rgba(244, 250, 255, 0.62);
  background-image:
    radial-gradient(circle at 22% 38%, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.22) 30%, transparent 48%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.62), rgba(234, 246, 255, 0.42) 44%, rgba(158, 204, 246, 0.3) 100%);
  background-clip: padding-box;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16) inset,
    0 1px 0 rgba(255, 255, 255, 0.42) inset,
    0 -5px 12px rgba(20, 57, 96, 0.12) inset,
    0 0 20px rgba(188, 224, 255, 0.22);
}

.leaderboard::-webkit-scrollbar-thumb:vertical:hover,
.detail-table-wrap::-webkit-scrollbar-thumb:vertical:hover,
.performance-table-wrap::-webkit-scrollbar-thumb:vertical:hover,
.date-tabs::-webkit-scrollbar-thumb:vertical:hover,
.table-wrap::-webkit-scrollbar-thumb:vertical:hover,
html::-webkit-scrollbar-thumb:vertical:hover,
body::-webkit-scrollbar-thumb:vertical:hover {
  background-image:
    radial-gradient(circle at 42% 22%, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.22) 30%, transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(234, 246, 255, 0.42) 44%, rgba(158, 204, 246, 0.3) 100%);
}

.leaderboard::-webkit-scrollbar-corner,
.detail-table-wrap::-webkit-scrollbar-corner,
.performance-table-wrap::-webkit-scrollbar-corner,
.date-tabs::-webkit-scrollbar-corner,
.table-wrap::-webkit-scrollbar-corner,
html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner {
  background: rgba(5, 18, 39, 0.72);
}

.leaderboard-head,
.performance-table-card th,
.detail-table-wrap th {
  border-color: rgba(124, 181, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(75, 134, 221, 0.16), rgba(9, 24, 49, 0.18));
  color: #b8cced;
}

.leaderboard-row,
.performance-table-card td,
.detail-table-wrap td {
  border-color: rgba(126, 179, 255, 0.09);
  color: var(--ink);
}

.leaderboard-row:hover {
  background:
    linear-gradient(90deg, rgba(53, 129, 255, 0.12), rgba(54, 240, 180, 0.045));
}

.code-cell,
.business-cell,
.chart-axis-label,
.chart-empty-label {
  color: var(--muted);
  fill: var(--muted);
}

.stock-cell,
.industry-cell {
  color: var(--ink);
}

.chart-axis-label.chart-y-label {
  fill: rgba(162, 176, 202, 0.78);
}

.sort-toggle,
.chart-toggle,
.icon-action-button {
  border-color: rgba(139, 196, 255, 0.18);
  background: rgba(31, 90, 170, 0.12);
  color: var(--muted);
}

.sort-toggle:hover,
.sort-toggle.is-active,
.chart-toggle.is-active {
  border-color: rgba(94, 176, 255, 0.52);
  background: rgba(61, 139, 255, 0.18);
  color: var(--blue);
}

.chart-grid line {
  stroke: rgba(255, 255, 255, 0.07);
}

.chart-tooltip {
  border-color: rgba(118, 190, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(19, 45, 82, 0.78), rgba(5, 15, 34, 0.64));
  color: var(--muted);
  box-shadow:
    0 20px 46px rgba(0, 25, 70, 0.42),
    0 0 24px rgba(68, 151, 255, 0.12),
    0 1px 0 rgba(210, 234, 255, 0.1) inset;
}

.chart-tooltip strong,
.chart-tooltip b {
  color: var(--ink);
}

.video-placeholder {
  border-style: dashed;
}

.privacy-toggle {
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.35));
}

#privacyToggle .privacy-sunglasses-emoji {
  font-size: calc((56px) * var(--text-scale, 1));
  font-weight: 400;
}

.privacy-masked {
  color: rgba(168, 177, 191, 0.62);
  text-shadow: none;
}

.exposure-metric.is-ready,
.sentiment-row > span.is-ready,
.global-card > div.is-ready {
  border-color: rgba(54, 240, 180, 0.22);
  background:
    linear-gradient(180deg, rgba(38, 180, 210, 0.12), rgba(20, 117, 255, 0.055)),
    rgba(5, 24, 48, 0.64);
  box-shadow: 0 0 24px rgba(54, 240, 180, 0.055) inset;
}

.report-card button.is-ready {
  box-shadow:
    0 0 0 1px rgba(96, 170, 255, 0.08) inset,
    0 10px 26px rgba(0, 26, 72, 0.22);
}

.index-tile.is-ready {
  box-shadow:
    0 0 0 1px rgba(98, 178, 255, 0.08) inset,
    0 0 24px rgba(52, 245, 181, 0.035);
}

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

  .shell > :not(.date-card) {
    grid-column: 1;
  }

  .date-card {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
  }

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

  .index-card,
  .global-card {
    grid-column: span 2;
  }

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

  .insight-column {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 860px) {
  body {
    background-attachment: scroll;
  }

  .shell {
    width: min(100% - 24px, 1440px);
    padding-top: 16px;
  }

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

  .index-card,
  .global-card {
    grid-column: auto;
  }

  .index-row,
  .sentiment-row,
  .insight-column,
  .bottom-modules {
    grid-template-columns: 1fr;
  }

  .leaderboard {
    overflow-x: auto;
  }

  .leaderboard-head,
  .leaderboard-row {
    min-width: 1080px;
  }

  .details-panel > details > summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .calendar-picker {
    width: 100%;
  }

  .calendar-popover {
    right: auto;
    left: 0;
    width: min(292px, calc(100vw - 72px));
  }

  .performance-card.is-expanded {
    inset: 8px;
    padding: 12px;
  }
}

.font-size-control {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  font-family: var(--font-sans);
  font-size: calc((13px) * var(--text-scale, 1));
  font-weight: 600;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
}

.font-size-control button {
  width: 28px;
  height: 28px;
  padding: 0;
  font-family: var(--font-sans);
  font-size: calc((15px) * var(--text-scale, 1));
  font-weight: 700;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.font-size-control button:hover {
  background: var(--blue-soft);
  border-color: var(--blue);
}

.font-size-control button:active {
  background: var(--blue);
  color: #fff;
}

.font-size-control .font-size-label {
  min-width: 38px;
  padding: 0 4px;
  text-align: center;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  user-select: none;
}

@media (max-width: 720px) {
  .font-size-control {
    right: 12px;
    bottom: 12px;
    padding: 4px 6px;
    font-size: calc((12px) * var(--text-scale, 1));
  }

  .font-size-control button {
    width: 26px;
    height: 26px;
    font-size: calc((14px) * var(--text-scale, 1));
  }
}
