:root {
  color-scheme: light;
  --bg: #f3f5f2;
  --surface: #ffffff;
  --surface-2: #eef2ef;
  --text: #121815;
  --muted: #637068;
  --line: #d8e0dc;
  --fear: #c23b35;
  --neutral: #d9a32f;
  --greed: #19895b;
  --blue: #2563eb;
  --shadow: 0 14px 38px rgba(29, 43, 35, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #050a10;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  width: 100%;
}

.topbar {
  position: static;
  background: rgba(243, 245, 242, 0.95);
  border-bottom: 1px solid var(--line);
}

.topbar-inner,
main {
  width: min(1240px, calc(100vw - 56px));
  margin: 0 auto;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  padding: 18px 0;
}

.topbar h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: 0;
}

.topbar p,
.section-head p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.section-head p:empty {
  display: none;
}

.topbar nav,
.legend,
.filters {
  display: flex;
  gap: 8px;
  align-items: center;
}

.topbar a,
.filters button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

main {
  margin-top: 24px;
  margin-bottom: 64px;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 18px;
  align-items: stretch;
}

.gauge-panel,
.summary-panel,
.section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.overview-blank {
  min-height: 430px;
}

.gauge-panel {
  min-height: 430px;
  padding: 28px 34px 24px;
}

.mode-label {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.mode-label[hidden] {
  display: none !important;
}

.gauge {
  position: relative;
  width: min(650px, 100%);
  aspect-ratio: 2 / 1.04;
  margin: 18px auto 0;
  overflow: hidden;
}

.gauge-v2 {
  overflow: visible;
}

.gauge-arc {
  position: absolute;
  inset: 0;
  border-radius: 999px 999px 0 0;
  background: conic-gradient(
    from 270deg at 50% 100%,
    var(--fear) 0deg,
    #d77738 48deg,
    var(--neutral) 90deg,
    #89a846 132deg,
    var(--greed) 180deg,
    transparent 180deg
  );
}

.gauge-arc::after {
  content: "";
  position: absolute;
  left: 9%;
  right: 9%;
  bottom: 0;
  height: 82%;
  background: var(--surface);
  border-radius: 999px 999px 0 0;
}

.gauge-needle {
  position: absolute;
  left: calc(50% - 2px);
  bottom: 0;
  width: 4px;
  height: 43%;
  background: #111;
  border-radius: 999px;
  transform-origin: bottom center;
  transform: rotate(-90deg);
  transition: transform 500ms ease;
}

.gauge-overflow-left,
.gauge-overflow-right {
  position: absolute;
  bottom: -8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.gauge-overflow-left {
  left: -8px;
}

.gauge-overflow-right {
  right: -8px;
}

.gauge-needle::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #111;
  transform: translateX(-50%);
}

.gauge-center {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  text-align: center;
}

.score {
  font-size: 104px;
  font-weight: 780;
  line-height: 0.92;
}

.band {
  margin-top: 8px;
  color: var(--muted);
  font-size: 26px;
  font-weight: 750;
}

.overflow-note {
  min-height: 18px;
  margin-top: 8px;
  color: var(--fear);
  font-size: 13px;
  font-weight: 850;
}

.scale {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.summary-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}

.v2-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric,
.formula-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 18px;
}

.metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 10px;
  font-size: 38px;
  line-height: 1;
}

.formula-box {
  grid-column: 1 / -1;
}

.formula-box strong {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
}

.formula-box p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.section {
  margin-top: 18px;
  padding: 22px;
  scroll-margin-top: 108px;
}

.compact-section {
  padding-bottom: 18px;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section h2 {
  margin: 0;
  font-size: 22px;
}

.legend span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-radius: 50%;
}

.dot.sentiment {
  background: var(--blue);
}

.dot.textonly {
  background: #a36a19;
}

.dot.sp500 {
  background: #111815;
}

.dot.spbar {
  background: linear-gradient(90deg, rgba(194, 59, 53, 0.55) 0 50%, rgba(25, 137, 91, 0.55) 50% 100%);
}

.dot.overflow {
  background: #7c3aed;
}

.dot.split {
  background: #7c3aed;
}

.v3-summary .metric strong {
  font-size: 31px;
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.analysis-callout {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.analysis-table td,
.analysis-table th {
  white-space: nowrap;
}

.chart-wrap {
  position: relative;
}

#timeline-chart {
  display: block;
  width: 100%;
  min-height: 380px;
}

.chart-tooltip {
  position: absolute;
  z-index: 5;
  min-width: 190px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 24px rgba(20, 32, 26, 0.16);
  color: var(--text);
  pointer-events: none;
  font-size: 12px;
}

.chart-tooltip strong,
.chart-tooltip span {
  display: block;
}

.chart-tooltip span {
  margin-top: 4px;
  color: var(--muted);
}

.driver-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
  align-items: start;
  gap: 8px;
}

.driver {
  height: auto;
  min-height: 0;
  align-self: start;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--surface-2);
}

.driver a {
  display: block;
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.28;
  text-decoration: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  height: 26px;
  padding: 0 9px;
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}

.pill.F {
  background: var(--fear);
}

.pill.G {
  background: var(--greed);
}

.pill.Ne {
  background: var(--neutral);
}

.filters button {
  cursor: pointer;
}

.filters button.active {
  background: #111815;
  border-color: #111815;
  color: #fff;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
}

th {
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

th:nth-child(2) {
  font-size: 13px;
}

td.num,
th.num {
  text-align: center;
}

td.title-cell {
  min-width: 520px;
  text-align: left;
  vertical-align: middle;
}

td.title-cell a {
  color: var(--text);
  font-size: 14.5px;
  font-weight: 750;
  line-height: 1.34;
  text-decoration: none;
}

.title-en {
  display: block;
  margin-top: 4px;
  color: #8a958f;
  font-size: 12.8px;
  font-weight: 650;
  line-height: 1.28;
}

.title-en:empty {
  display: none;
}

td small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .overview-grid {
    grid-template-columns: 1fr;
  }
}

body.v3-dark {
  --bg: #02050a;
  --surface: rgba(1, 12, 24, 0.9);
  --surface-2: rgba(4, 24, 44, 0.88);
  --text: #f4f8ff;
  --muted: #a9b6c6;
  --line: rgba(34, 169, 255, 0.70);
  --fear: #a51618;
  --neutral: #9b6d10;
  --greed: #11814b;
  --blue: #22aaff;
  --shadow: 0 0 22px rgba(0, 149, 255, 0.22), inset 0 0 34px rgba(0, 119, 255, 0.08);
  min-width: 1220px;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.84)),
    url("./assets/v3/page_bg.webp") center top / cover fixed,
    #02050a;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.v3-dark .topbar {
  background: transparent;
  border: 0;
}

.v3-dark .topbar-inner,
.v3-dark main {
  width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.v3-dark .topbar-inner {
  justify-content: center;
  padding: 28px 0 12px;
  text-align: center;
}

.v3-dark .topbar h1 {
  margin: 0;
  color: #f7fbff;
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 0 10px rgba(255,255,255,.42), 0 0 26px rgba(34,169,255,.26);
}

.v3-dark .topbar p {
  margin: 14px 0 0;
  color: #d7dde7;
  font-size: 19px;
  font-weight: 760;
  letter-spacing: .2px;
}

.v3-dark main {
  margin-top: 0;
  margin-bottom: 38px;
}

.v3-dark .overview-grid {
  display: grid;
  grid-template-columns: 680px 1fr;
  gap: 12px;
  align-items: stretch;
}

.v3-dark .gauge-panel,
.v3-dark .market-panel,
.v3-dark .section {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.v3-dark .gauge-panel {
  height: 430px;
  min-height: 0;
  padding: 0;
  background: url("./assets/v3/gauge_bg.png") center / 100% 100% no-repeat;
}

.v3-dark .market-panel {
  height: 430px;
  min-height: 0;
  background: url("./assets/v3/market_panel_bg.webp") center / cover no-repeat;
}

.v3-dark .gauge-panel::before,
.v3-dark .section::before,
.v3-dark .overview-blank::before,
.v3-dark .market-panel::after {
  display: none;
}

.v3-dark .panel-title {
  position: absolute;
  z-index: 4;
  left: 32px;
  top: 24px;
  display: grid;
  gap: 7px;
}

.v3-dark .panel-title strong {
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255,255,255,.22);
}

.v3-dark .mode-label {
  display: block;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #c0c9d4;
  font-size: 14px;
  font-weight: 800;
  text-transform: none;
}

.v3-dark .gauge {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  margin: 0;
  aspect-ratio: auto;
  overflow: visible;
  filter: none;
}

.v3-dark .gauge-arc {
  display: none;
}

.v3-dark .gauge-needle {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 13.8%;
  width: 9.5%;
  height: 70%;
  border: 0;
  border-radius: 0;
  background: url("./assets/v3/needle.png") center bottom / contain no-repeat;
  transform-origin: 50% 91.5%;
  transition: transform 550ms ease;
  filter: drop-shadow(0 0 14px rgba(255, 178, 28, .95));
}

.v3-dark .gauge-needle::before,
.v3-dark .gauge-needle::after {
  display: none;
}

.v3-dark .gauge-center {
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 21.5%;
  text-align: center;
}

.v3-dark .score {
  color: #ecf5ff;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 78px;
  font-weight: 900;
  line-height: .88;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(235,245,255,.95), 0 0 28px rgba(116,180,255,.48);
}

.v3-dark .band {
  margin-top: 12px;
  color: #f4f8ff;
  font-size: 27px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(255,255,255,.28);
}

.v3-dark .scale {
  position: absolute;
  z-index: 4;
  left: 55px;
  right: 32px;
  bottom: 21px;
  display: flex;
  justify-content: space-between;
  color: #e8eef6;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.v3-dark .scale span:first-child {
  color: #ff3131;
  text-shadow: 0 0 11px rgba(255,49,49,.55);
}

.v3-dark .scale span:last-child {
  color: #66ff18;
  text-shadow: 0 0 11px rgba(102,255,24,.55);
}

.v3-dark .section {
  margin-top: 14px;
  padding: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}

.v3-dark #timeline {
  height: 335px;
  background-image: url("./assets/v3/timeline_panel_bg.webp");
}

.v3-dark #audit {
  height: 560px;
  background-image: url("./assets/v3/reactions_panel_bg.webp");
}

.v3-dark .section-head {
  position: absolute;
  z-index: 4;
  left: 31px;
  right: 29px;
  top: 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
}

.v3-dark #audit .section-head {
  top: 20px;
  align-items: center;
}

.v3-dark .section h2 {
  margin: 0;
  color: #f8fbff;
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .2px;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(255,255,255,.24);
}

.v3-dark .section-head p {
  margin: 7px 0 0;
  color: #a9b6c7;
  font-size: 13px;
  font-weight: 650;
}

.v3-dark .legend {
  display: flex;
  align-items: center;
  gap: 21px;
  margin-top: 3px;
}

.v3-dark .legend span {
  color: #ecf3fb;
  font-size: 14px;
  font-weight: 800;
}

.v3-dark .dot {
  display: inline-block;
  width: 30px;
  height: 4px;
  margin-right: 8px;
  border-radius: 999px;
  vertical-align: middle;
}

.v3-dark .dot.sentiment {
  background: #f2f7ff;
  box-shadow: 0 0 8px rgba(255,255,255,.65);
}

.v3-dark .dot.sp500 {
  background: #22aaff;
  box-shadow: 0 0 9px rgba(34,170,255,.72);
}

.v3-dark .dot.spbar {
  background: linear-gradient(90deg,#00ff62 0 48%,#ff242c 52% 100%);
  box-shadow: 0 0 8px rgba(34,170,255,.36);
}

.v3-dark .chart-wrap {
  position: absolute;
  left: 58px;
  right: 57px;
  top: 78px;
  bottom: 31px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.v3-dark #timeline-chart {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.v3-dark .chart-tooltip {
  display: none;
}

.v3-dark .section-icon {
  display: inline-block;
  width: 20px;
  height: 27px;
  margin-right: 10px;
  border-radius: 50% 50% 54% 54%;
  background: linear-gradient(180deg,#ffe27a,#ff8a00 45%,#ff3b00);
  box-shadow: 0 0 18px rgba(255,144,0,.78);
  vertical-align: -4px;
}

.v3-dark .filters {
  display: flex;
  align-items: center;
  gap: 9px;
}

.v3-dark .filters button {
  min-width: 64px;
  height: 33px;
  padding: 0 14px;
  border: 1px solid rgba(72,139,211,.36);
  border-radius: 7px;
  background: rgba(3,13,28,.90);
  color: #aeb9c9;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: inset 0 0 12px rgba(34,169,255,.05);
  cursor: pointer;
}

.v3-dark .filters button.active {
  border-color: #1e9dff;
  background: linear-gradient(180deg,rgba(23,91,175,.68),rgba(5,30,78,.92));
  color: #fff;
  box-shadow: 0 0 18px rgba(34,169,255,.40), inset 0 0 18px rgba(84,165,255,.18);
}

.v3-dark .table-wrap {
  position: absolute;
  left: 20px;
  right: 18px;
  top: 59px;
  bottom: 39px;
  overflow: hidden;
  border: 1px solid rgba(34,169,255,.24);
  border-radius: 9px;
  background: rgba(0,8,19,.40);
  box-shadow: inset 0 0 22px rgba(0,0,0,.38);
}

.v3-dark table {
  width: 100%;
  height: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  color: #dce6f2;
  font-size: 14px;
}

.v3-dark th,
.v3-dark td {
  padding: 0 12px;
  border-bottom: 1px solid rgba(34,169,255,.16);
  text-align: center;
  vertical-align: middle;
}

.v3-dark th {
  height: 42px;
  background: linear-gradient(180deg,rgba(10,35,64,.88),rgba(4,19,37,.92));
  color: #a9c8ee;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .35px;
  text-transform: uppercase;
}

.v3-dark tbody tr {
  height: 41px;
}

.v3-dark th:nth-child(1),
.v3-dark td:nth-child(1) { width: 128px; }
.v3-dark th:nth-child(3),
.v3-dark td:nth-child(3) { width: 130px; }
.v3-dark th:nth-child(4),
.v3-dark td:nth-child(4),
.v3-dark th:nth-child(5),
.v3-dark td:nth-child(5),
.v3-dark th:nth-child(6),
.v3-dark td:nth-child(6) { width: 118px; }

.v3-dark td.title-cell {
  min-width: 0;
  max-width: 0;
  text-align: left;
}

.v3-dark td.title-cell a,
.v3-dark .title-en {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v3-dark td.title-cell a {
  color: #f4f8ff;
  font-size: 13.8px;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
}

.v3-dark .title-en {
  margin-top: 3px;
  color: #7f8fa3;
  font-size: 11.2px;
  font-weight: 650;
  line-height: 1.1;
}

.v3-dark .title-en:empty {
  display: none;
}

.v3-dark .pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  height: 25px;
  padding: 0 8px;
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 0 10px rgba(0,0,0,.35);
}

.v3-dark .pill.F { background: #a51618; }
.v3-dark .pill.G { background: #11814b; }
.v3-dark .pill.Ne { background: #9b6d10; }

.v3-dark .calibration-panel {
  position: fixed;
  z-index: 20;
  right: 18px;
  bottom: 18px;
  width: 300px;
  padding: 14px;
  border: 1px solid #22aaff;
  border-radius: 10px;
  background: rgba(0,10,22,.94);
  box-shadow: 0 0 24px rgba(34,169,255,.30);
  color: #eaf4ff;
}

.v3-dark .calibration-panel strong,
.v3-dark .calibration-panel label,
.v3-dark .calibration-panel input { display: block; width: 100%; }
.v3-dark .calibration-panel label { margin: 10px 0 6px; }
.v3-dark .calibration-note { margin-top: 8px; color: #9fb0c4; font-size: 12px; }

.v3-dark.calibration .gauge::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 13.8%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #00e5ff;
  box-shadow: 0 0 16px #00e5ff;
  transform: translate(-50%, 50%);
}

.v3-dark.calibration .gauge-center,
.v3-dark.calibration .gauge-needle,
.v3-dark.calibration .scale,
.v3-dark.calibration .chart-wrap,
.v3-dark.calibration .table-wrap {
  outline: 1px dashed rgba(255,238,0,.85);
  outline-offset: 2px;
}

body.v3-pro-dark {
  --bg: #071016;
  --surface: #0d1722;
  --surface-2: #111f2c;
  --text: #e9eef6;
  --muted: #8fa1b5;
  --line: #213246;
  --fear: #d24b4b;
  --neutral: #c69b3c;
  --greed: #39a76a;
  --blue: #4ea1ff;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  min-width: 1180px;
  width: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% -12%, rgba(52, 126, 255, 0.16), transparent 34%),
    radial-gradient(circle at 85% 0%, rgba(57, 167, 106, 0.10), transparent 30%),
    linear-gradient(180deg, #08131d 0%, #050a10 100%);
  color: var(--text);
  font-family: "Aptos", "Inter", "Malgun Gothic", "Apple SD Gothic Neo", "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  font-weight: 400;
}

.v3-pro-dark .topbar {
  background: rgba(5, 10, 16, 0.86);
  border-bottom: 1px solid rgba(117, 148, 186, 0.18);
}

.v3-pro-dark .topbar-inner {
  justify-content: center;
  text-align: center;
  position: relative;
}

.v3-pro-dark .topbar-inner > div {
  width: 100%;
}

.v3-pro-dark .topbar h1 {
  color: #f6f8fb;
  font-size: 34px;
  font-weight: 750;
  letter-spacing: 0;
}

.v3-pro-dark .topbar p,
.v3-pro-dark .section-head p {
  color: var(--muted);
  font-weight: 400;
}

.v3-pro-dark .topbar p {
  font-size: 15px;
  text-align: center;
}

.v3-pro-dark .feedback-link {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(124, 156, 194, 0.24);
  background: rgba(17, 31, 44, 0.46);
  color: #a9c9ee;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.v3-pro-dark .feedback-link:hover,
.v3-pro-dark .feedback-link:focus-visible {
  border-color: rgba(78, 161, 255, 0.72);
  background: rgba(20, 59, 93, 0.62);
  color: #e1f0ff;
  outline: none;
}

.v3-pro-dark .timeline-help {
  color: #8fa1b5;
  font-size: 14px;
  font-weight: 400;
  margin-left: 8px;
  vertical-align: middle;
}

.v3-pro-dark .gauge-panel,
.v3-pro-dark .summary-panel,
.v3-pro-dark .section,
.v3-pro-dark .overview-blank {
  background: linear-gradient(180deg, rgba(17, 31, 44, 0.96), rgba(10, 19, 29, 0.98));
  border: 1px solid rgba(124, 156, 194, 0.22);
  box-shadow: var(--shadow);
}

.v3-pro-dark .gauge-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 94%, rgba(78, 161, 255, 0.16), transparent 31%),
    radial-gradient(circle at 20% 36%, rgba(210, 75, 75, 0.18), transparent 28%),
    radial-gradient(circle at 82% 34%, rgba(57, 167, 106, 0.17), transparent 28%),
    linear-gradient(180deg, rgba(17, 31, 44, 0.98), rgba(8, 15, 24, 0.99));
  padding: 22px 28px 24px;
}

.v3-pro-dark .overview-blank {
  position: relative;
  overflow: hidden;
  height: 456px;
  min-height: 0;
  background:
    linear-gradient(180deg, rgba(17, 31, 44, 0.78), rgba(10, 19, 29, 0.86)),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 30px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 36px),
    #050a10;
}

.v3-pro-dark .overview-blank::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 50% 18%, rgba(78, 161, 255, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(5, 10, 16, 0.02), rgba(5, 10, 16, 0.34));
  pointer-events: none;
}

.v3-pro-dark .reaction-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: saturate(1.03) contrast(1.06);
}

.v3-pro-dark .gauge {
  width: 100%;
  height: 410px;
  margin: 0 auto;
  aspect-ratio: auto;
  border-radius: 8px;
  background: url("./assets/v3/gauge_uploaded.png") center 50% / cover no-repeat;
  box-shadow: inset 0 0 38px rgba(0, 0, 0, 0.18);
}

.v3-pro-dark .gauge-glow,
.v3-pro-dark .gauge-arc,
.v3-pro-dark .gauge-ticks,
.v3-pro-dark .gauge-zones {
  display: none;
}

.v3-pro-dark .gauge-needle {
  left: 50%;
  top: 74.2%;
  bottom: auto;
  z-index: 5;
  width: 170px;
  height: 74.5%;
  background: url("./assets/v3/needle_uploaded.png") center top / 100% 100% no-repeat;
  border-radius: 0;
  box-shadow: none;
  mix-blend-mode: screen;
  opacity: 0.98;
  pointer-events: none;
  filter:
    grayscale(1)
    saturate(0)
    brightness(2.8)
    contrast(1.08)
    drop-shadow(0 0 7px rgba(255, 255, 255, 0.92))
    drop-shadow(0 0 16px rgba(180, 220, 255, 0.45));
  -webkit-mask-image: linear-gradient(to bottom, #000 0 34%, transparent 34% 100%);
  mask-image: linear-gradient(to bottom, #000 0 34%, transparent 34% 100%);
  transform: translate(-50%, -100%) rotate(var(--needle-angle, -90deg));
  transform-origin: 50% 100%;
  transition: transform 500ms ease;
}

.v3-pro-dark .gauge-needle::after {
  display: none;
}

.v3-pro-dark .score {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  min-height: 142px;
  color: #f6f8fb;
}

.v3-pro-dark .gauge-center {
  z-index: 7;
  top: 60%;
  bottom: auto;
  transform: translateY(-50%);
  pointer-events: none;
  min-height: 205px;
}

.v3-pro-dark .seven-digit {
  position: relative;
  display: inline-block;
  width: 77px;
  height: 122px;
  filter:
    drop-shadow(0 0 7px rgba(198, 222, 255, 0.88))
    drop-shadow(0 0 22px rgba(92, 159, 255, 0.30));
}

.v3-pro-dark .seg {
  position: absolute;
  display: block;
  opacity: 0.08;
  background: linear-gradient(180deg, #ffffff 0%, #dceaff 47%, #bcd0ef 100%);
  clip-path: polygon(13% 0, 87% 0, 100% 50%, 87% 100%, 13% 100%, 0 50%);
}

.v3-pro-dark .seg.on {
  opacity: 1;
  box-shadow:
    0 0 4px rgba(255, 255, 255, 0.96),
    0 0 16px rgba(206, 226, 255, 0.72),
    inset 0 0 11px rgba(255, 255, 255, 0.28);
}

.v3-pro-dark .seg-a,
.v3-pro-dark .seg-d,
.v3-pro-dark .seg-g {
  left: 15px;
  width: 47px;
  height: 16px;
}

.v3-pro-dark .seg-a { top: 0; }
.v3-pro-dark .seg-g { top: 52px; }
.v3-pro-dark .seg-d { bottom: 0; }

.v3-pro-dark .seg-b,
.v3-pro-dark .seg-c,
.v3-pro-dark .seg-e,
.v3-pro-dark .seg-f {
  width: 16px;
  height: 45px;
  clip-path: polygon(50% 0, 100% 13%, 100% 87%, 50% 100%, 0 87%, 0 13%);
}

.v3-pro-dark .seg-b,
.v3-pro-dark .seg-c {
  right: 0;
}

.v3-pro-dark .seg-e,
.v3-pro-dark .seg-f {
  left: 0;
}

.v3-pro-dark .seg-b,
.v3-pro-dark .seg-f {
  top: 11px;
}

.v3-pro-dark .seg-c,
.v3-pro-dark .seg-e {
  top: 67px;
}

.v3-pro-dark .band-image {
  display: none !important;
  width: min(330px, 46%);
  max-height: 72px;
  object-fit: contain;
  margin: 5px auto 0;
  filter: drop-shadow(0 0 14px rgba(0, 0, 0, 0.42));
}

.v3-pro-dark .band-image[hidden] {
  display: none;
}

.v3-pro-dark .band {
  position: absolute;
  top: 148px;
  left: 0;
  right: 0;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: nowrap;
  font-size: 34px;
  font-weight: 760;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  text-shadow:
    0 0 10px currentColor,
    0 0 22px rgba(0, 0, 0, 0.72);
  opacity: 0.96;
}

.v3-pro-dark .scale {
  display: none;
}

.v3-pro-dark .gauge-panel[data-sentiment*="fear"] .band {
  color: #ff493f;
}

.v3-pro-dark .gauge-panel[data-sentiment*="greed"] .band {
  color: #55f56e;
}

.v3-pro-dark .gauge-panel[data-sentiment*="neutral"] .band {
  color: #f5d24a;
}

.v3-pro-dark .gauge-panel[data-sentiment="extreme-fear"] .band {
  color: #ff1616;
}

.v3-pro-dark .gauge-panel[data-sentiment="extreme-greed"] .band {
  color: #36ff28;
}

.v3-pro-dark .legend {
  display: none;
}

.v3-pro-dark .dot.sentiment {
  background: #4ea1ff;
}

.v3-pro-dark .dot.sp500 {
  background: #f2f5f9;
}

.v3-pro-dark .dot.spbar {
  background: linear-gradient(90deg, rgba(210, 75, 75, 0.82) 0 50%, rgba(57, 167, 106, 0.82) 50% 100%);
}

.v3-pro-dark .chart-wrap {
  border: 1px solid rgba(124, 156, 194, 0.16);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.34);
  padding: 8px;
  height: 404px;
  overflow: hidden;
}

.v3-pro-dark #timeline-chart {
  display: block;
  width: 100% !important;
  height: 388px !important;
  min-height: 0;
  max-height: 388px;
  touch-action: none;
}

.v3-pro-dark #reaction-date {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  margin-left: 8px;
  vertical-align: baseline;
}

.v3-pro-dark .chart-tooltip {
  border-color: rgba(124, 156, 194, 0.34);
  background: rgba(10, 19, 29, 0.96);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.38);
  color: var(--text);
}

.v3-pro-dark .chart-tooltip span {
  color: var(--muted);
}

.v3-pro-dark .filters button {
  background: #0b141f;
  border-color: rgba(124, 156, 194, 0.28);
  color: #b7c5d6;
}

.v3-pro-dark .filters button.active {
  background: #1d4f8f;
  border-color: #4ea1ff;
  color: #fff;
}

.v3-pro-dark .table-wrap {
  border-color: rgba(124, 156, 194, 0.20);
  background: rgba(5, 10, 16, 0.28);
}

.v3-pro-dark th {
  background: #111f2c;
  color: #9fb1c6;
  font-weight: 650;
}

.v3-pro-dark td {
  border-bottom-color: rgba(124, 156, 194, 0.14);
  font-weight: 400;
}

.v3-pro-dark th:nth-child(1),
.v3-pro-dark td:nth-child(1) {
  width: auto;
}

.v3-pro-dark th:nth-child(2),
.v3-pro-dark td:nth-child(2) {
  width: 130px;
}

.v3-pro-dark th:nth-child(3),
.v3-pro-dark td:nth-child(3),
.v3-pro-dark th:nth-child(4),
.v3-pro-dark td:nth-child(4),
.v3-pro-dark th:nth-child(5),
.v3-pro-dark td:nth-child(5) {
  width: 118px;
}

.v3-pro-dark td.title-cell {
  min-width: 600px;
}

.v3-pro-dark td.title-cell a {
  color: #edf2f8;
  font-weight: 560;
}

.v3-pro-dark .title-en {
  color: #8292a6;
  font-weight: 400;
}

.v3-pro-dark .pill.F {
  background: #b84242;
}

.v3-pro-dark .pill.G {
  background: #2f8d5b;
}

.v3-pro-dark .pill.Ne {
  background: #9c782b;
}

.v3-pro-dark .pill {
  font-weight: 400;
  letter-spacing: 0;
}

.feedback-modal[hidden] {
  display: none;
}

.feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.feedback-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(5px);
}

.feedback-dialog {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100vw - 32px));
  border: 1px solid rgba(124, 156, 194, 0.28);
  border-radius: 14px;
  background:
    radial-gradient(circle at 20% 0%, rgba(78, 161, 255, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(17, 31, 44, 0.98), rgba(8, 15, 24, 0.99));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.56);
  padding: 22px;
}

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

.feedback-head h2 {
  margin: 0;
  color: #f4f8ff;
  font-size: 20px;
  font-weight: 700;
}

.feedback-close {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(124, 156, 194, 0.22);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.54);
  color: #b9cbe0;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.feedback-dialog label {
  display: block;
  margin-top: 12px;
}

.feedback-dialog label span {
  display: block;
  margin-bottom: 7px;
  color: #9fb1c6;
  font-size: 13px;
  font-weight: 600;
}

.feedback-dialog input,
.feedback-dialog textarea {
  width: 100%;
  border: 1px solid rgba(124, 156, 194, 0.28);
  border-radius: 9px;
  background: rgba(5, 10, 16, 0.64);
  color: #edf2f8;
  font-family: inherit;
  font-size: 15px;
  padding: 11px 12px;
  outline: none;
}

.feedback-dialog textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.48;
}

.feedback-dialog input:focus,
.feedback-dialog textarea:focus {
  border-color: rgba(78, 161, 255, 0.74);
  box-shadow: 0 0 0 3px rgba(78, 161, 255, 0.12);
}

.feedback-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
}

.feedback-actions p {
  min-height: 20px;
  margin: 0;
  color: #9fb1c6;
  font-size: 13px;
}

.feedback-actions button {
  min-width: 96px;
  border: 1px solid #4ea1ff;
  border-radius: 9px;
  background: #1d4f8f;
  color: #fff;
  font-weight: 700;
  padding: 10px 14px;
  cursor: pointer;
}

.feedback-actions button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.mobile-run-break {
  display: none;
}

@media (max-width: 760px) {
  body.v3-pro-dark {
    min-width: 0;
    overflow-x: hidden;
  }

  .topbar-inner,
  main {
    width: min(100vw - 20px, 560px);
  }

  .v3-pro-dark .topbar h1 {
    font-size: 24px;
    line-height: 1.14;
  }

  .v3-pro-dark .topbar p {
    font-size: 12px;
    line-height: 1.35;
  }

  .v3-pro-dark .feedback-link {
    position: static;
    transform: none;
    margin-top: 8px;
    padding: 6px 10px;
    font-size: 11px;
  }

  .feedback-modal {
    padding: 14px;
  }

  .feedback-dialog {
    padding: 18px;
  }

  .feedback-head h2 {
    font-size: 18px;
  }

  .feedback-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .v3-pro-dark .mobile-run-break {
    display: block;
  }

  main {
    margin-top: 14px;
    margin-bottom: 36px;
  }

  .overview-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .v3-pro-dark .gauge-panel {
    padding: 12px;
    min-height: 0;
  }

  .v3-pro-dark .gauge {
    height: clamp(222px, 54vw, 304px);
    background-size: cover;
    background-position: center;
  }

  .v3-pro-dark .gauge-needle {
    top: 74.2%;
    width: clamp(55px, 13vw, 78px);
    height: 62%;
    -webkit-mask-image: linear-gradient(to bottom, #000 0 35%, transparent 35% 100%);
    mask-image: linear-gradient(to bottom, #000 0 35%, transparent 35% 100%);
  }

  .v3-pro-dark .gauge-center {
    top: 61.5%;
    min-height: 92px;
  }

  .v3-pro-dark .score {
    min-height: 52px;
    gap: 5px;
  }

  .v3-pro-dark .seven-digit {
    width: 32px;
    height: 51px;
  }

  .v3-pro-dark .seg-a,
  .v3-pro-dark .seg-d,
  .v3-pro-dark .seg-g {
    left: 7px;
    width: 20px;
    height: 7px;
  }

  .v3-pro-dark .seg-g {
    top: 22px;
  }

  .v3-pro-dark .seg-b,
  .v3-pro-dark .seg-c,
  .v3-pro-dark .seg-e,
  .v3-pro-dark .seg-f {
    width: 7px;
    height: 19px;
  }

  .v3-pro-dark .seg-b,
  .v3-pro-dark .seg-f {
    top: 5px;
  }

  .v3-pro-dark .seg-c,
  .v3-pro-dark .seg-e {
    top: 28px;
  }

  .v3-pro-dark .band {
    top: 64px;
    font-size: 18px;
  }

  .v3-pro-dark .overview-blank {
    height: clamp(220px, 66vw, 360px);
  }

  .v3-pro-dark .section {
    padding: 16px 12px;
  }

  .section-head {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
  }

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

  .v3-pro-dark .timeline-help {
    display: inline-block;
    margin: 2px 0 0;
    font-size: 0;
    line-height: 1.22;
  }

  .v3-pro-dark .timeline-help::after {
    content: "(그래프 확대/축소 가능. 움직여서 좌우 기간 조정 가능)";
    font-size: 8px;
  }

  .v3-pro-dark .chart-wrap {
    height: auto;
    width: min(100%, 306px);
    aspect-ratio: 2.45 / 1;
    min-height: 142px;
    margin: 0 auto;
    padding: 5px;
    overflow: hidden;
  }

  .v3-pro-dark #timeline-chart {
    width: 100% !important;
    height: 100% !important;
    max-height: none;
    min-height: 0;
  }

  .filters {
    width: 100%;
    justify-content: space-between;
    gap: 6px;
  }

  .filters button {
    flex: 1;
    padding: 8px 6px;
    font-size: 12px;
  }

  .table-wrap {
    overflow-x: hidden;
  }

  table {
    min-width: 0;
    width: 100%;
    table-layout: fixed;
    font-size: 8.8px;
  }

  .v3-pro-dark td.title-cell {
    min-width: 0;
    max-width: none;
  }

  .v3-pro-dark th,
  .v3-pro-dark td {
    padding: 7px 3px;
    font-size: 8.8px;
  }

  .v3-pro-dark th:nth-child(1),
  .v3-pro-dark td:nth-child(1) {
    width: 50%;
  }

  .v3-pro-dark th:nth-child(2),
  .v3-pro-dark td:nth-child(2) {
    width: 18%;
  }

  .v3-pro-dark th:nth-child(3),
  .v3-pro-dark td:nth-child(3),
  .v3-pro-dark th:nth-child(4),
  .v3-pro-dark td:nth-child(4),
  .v3-pro-dark th:nth-child(5),
  .v3-pro-dark td:nth-child(5) {
    width: 10.66%;
  }

  .v3-pro-dark td.title-cell a,
  .v3-pro-dark .title-en {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .v3-pro-dark td.title-cell a {
    font-size: 9.6px;
    line-height: 1.24;
  }

  .v3-pro-dark td.num,
  .v3-pro-dark th.num {
    font-size: 8.4px;
  }

  .v3-pro-dark .pill {
    min-width: 40px;
    height: 18px;
    padding: 0 4px;
    border-radius: 6px;
    font-size: 8.6px;
  }
}
