:root {
  --bg: #0b0b0c;
  --card: #141416;
  --line: #2a2a2e;
  --text: #f5f5f7;
  --muted: #86868b;
  --brand: #3ddc47;
  --buy: #30d158;
  --wait: #ffd60a;
  --overheat: #ff453a;
  --watch: #64d2ff;
  --ignition: #ff9f0a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang TC", "Noto Sans TC", sans-serif;
  padding: 32px 28px 64px;
}

#app {
  max-width: 1120px;
  margin: 0 auto;
}

.boot {
  margin: 36vh auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

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

.top-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.top-brand .brand {
  margin: 0;
  align-items: flex-start;
  text-align: left;
}

.top-meta {
  margin: 0;
  font-size: 12px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: fit-content;
  margin: 0 0 8px;
  color: inherit;
  text-decoration: none;
  text-align: center;
}

a.brand:hover .brand-product {
  color: #fff;
}

a.brand:hover .brand-maker {
  color: rgba(245, 245, 247, 0.62);
}

.brand-product {
  font-family: "Space Grotesk", "Avenir Next", "Futura", sans-serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 0.9;
  color: var(--text);
}

.brand-maker {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(245, 245, 247, 0.38);
  line-height: 1;
}

h1,
h2,
h3 {
  margin: 0 0 8px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 22px;
  margin: 0;
}

h3 {
  font-size: 20px;
}

.muted,
.disclaimer,
.price-meta,
.status-meta,
.asset-sub,
.headline {
  color: var(--muted);
}

.gate,
.card,
.feed,
.disclaimer {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
}

.gate {
  max-width: 440px;
  margin: 8vh auto 0;
  padding: 0 0 28px;
  overflow: hidden;
  text-align: center;
}

.gate-hero {
  margin: 0 0 8px;
}

.gate-hero img {
  display: block;
  width: 100%;
  height: auto;
}

.gate .brand {
  margin: 10px auto 2px;
  gap: 8px;
}

.gate .brand-product {
  font-size: 64px;
  letter-spacing: 0.02em;
}

.gate .brand-maker {
  font-size: 11px;
}

.fomo-kicker {
  margin: 16px 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.gate h1 {
  font-size: 28px;
  letter-spacing: -0.04em;
  margin: 0 24px 10px;
  color: var(--brand);
}

.fomo-line {
  margin: 0 28px 22px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
}

.gate-shop {
  margin: 28px 28px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.gate-shop a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.gate-shop span {
  color: var(--muted);
  font-size: 12px;
}

.gate #google-btn {
  display: flex;
  justify-content: center;
  margin: 0 24px 8px;
}

.gate form {
  margin: 12px 24px 0;
}

.mail {
  font-size: 22px;
  font-weight: 600;
  word-break: break-all;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.ticks {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--card);
}

.tick {
  display: grid;
  grid-template-columns: 32px minmax(140px, 1.05fr) minmax(7.5rem, 0.95fr) 5.75rem repeat(4, minmax(4.5rem, 0.62fr)) 3.25rem;
  grid-template-areas: "logo id px flags rsi ign vol heat cal";
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  white-space: nowrap;
}

.tick .logo { grid-area: logo; }
.tick-id { grid-area: id; }
.tick-px { grid-area: px; }
.tick-flags { grid-area: flags; }
.tick .term-stat[data-term="rsi"] { grid-area: rsi; }
.tick-cell.ign-link { grid-area: ign; }
.tick .term-stat[data-term="vol"] { grid-area: vol; }
.tick .term-stat[data-term="heat"] { grid-area: heat; }
.tick-cal { grid-area: cal; }

.tick:first-child,
.tick-head {
  border-top: 0;
}

.tick-head {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding-top: 8px;
  padding-bottom: 8px;
}

.tick-id {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.tick-id strong {
  display: inline;
  font-size: 15px;
}

.tick-id em {
  display: inline;
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
}

.tick .logo {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  overflow: hidden;
  display: block;
}

.tick .logo svg {
  width: 28px;
  height: 28px;
  display: block;
}

.tick-px {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

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

.tick-px .chg {
  margin-left: 0;
  font-size: 12px;
  font-weight: 600;
}

.tick-flags {
  display: grid;
  grid-template-columns: 2.4rem 2.4rem;
  gap: 4px;
  justify-content: start;
  justify-items: start;
  align-items: center;
  flex-wrap: nowrap;
}

.tick .badge {
  padding: 3px 8px;
  font-size: 11px;
  min-width: 2.4rem;
  box-sizing: border-box;
  text-align: center;
}

.tick .badge.payday.is-empty {
  visibility: hidden;
}

.tick-head .tick-flags {
  display: block;
}

.tick-cell {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  text-decoration: none;
  min-width: 0;
  text-align: left;
}

.tick-cell span {
  display: none;
}

.tick-cell.ign-link.on strong {
  color: var(--ignition);
}

button.tick-cell.term-stat span {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}

.tick-stats {
  display: contents;
}

.tick-toggle {
  display: none;
}

.tick-cal {
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
  text-align: left;
}

.tick-note {
  display: block;
  color: var(--wait);
  font-size: 10px;
}

.desk {
  margin-top: 28px;
}

.desk-split {
  margin-top: 28px;
}

.desk-row {
  display: grid;
  grid-template-columns: 28px 64px 1fr auto auto;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.desk-row.news {
  grid-template-columns: 64px 1fr auto;
}

.desk-mark {
  width: 28px;
  height: 28px;
  margin-top: 1px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 245, 247, 0.06);
  color: var(--muted);
}

.desk-mark svg {
  width: 15px;
  height: 15px;
  display: block;
}

.desk-mark.fed {
  background: rgba(100, 210, 255, 0.12);
  color: var(--watch);
}

.desk-row.upcoming {
  background: linear-gradient(90deg, rgba(61, 220, 71, 0.06), transparent);
  margin: 0 -12px;
  padding-left: 12px;
  padding-right: 12px;
  border-radius: 10px;
  border-top-color: transparent;
}

.desk-clock {
  display: block;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.desk-day {
  color: var(--muted);
  font-size: 12px;
}

.desk-title {
  margin: 0;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

a.desk-row {
  color: inherit;
  text-decoration: none;
}

a.desk-row:hover .desk-title {
  color: var(--brand);
}

.desk-body .muted {
  margin: 4px 0 0;
}

.stars {
  letter-spacing: 2px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.stars.s3 {
  color: var(--overheat);
}

.stars.s2 {
  color: var(--ignition);
}

.stars.past {
  color: #d2d2d7;
}

.desk-eta {
  color: var(--wait);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.desk-tag {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.print-back {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--muted);
  text-decoration: none;
}

.print-back:hover {
  color: var(--text);
}

.print-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.print-title h1 {
  margin: 0;
  font-size: 28px;
}

.print-facts {
  display: flex;
  gap: 28px;
  margin: 18px 0 22px;
}

.print-facts strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.print-block h2 {
  margin: 22px 0 8px;
  font-size: 16px;
}

.bias-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.bias-table th,
.bias-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.bias-table th:first-child,
.bias-table td:first-child {
  text-align: left;
}

.bias-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.bias.good {
  color: var(--buy);
  font-weight: 600;
}

.bias.bad {
  color: var(--overheat);
  font-weight: 600;
}

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

.print-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.cal-cell.hot {
  box-shadow: inset 0 -2px 0 var(--overheat);
}

.cal-cell.mid {
  box-shadow: inset 0 -2px 0 var(--ignition);
}

.cal-cell .stars {
  display: block;
  font-size: 9px;
  letter-spacing: 0;
}

.card-head,
.feed-head,
.item-top,
.asset-id {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.asset-id,
.item-top {
  justify-content: flex-start;
}

.logo {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  overflow: hidden;
  display: block;
}

.logo svg {
  display: block;
  width: 40px;
  height: 40px;
}

.asset-sub,
.price-meta,
.status-meta {
  margin: 0;
  font-size: 13px;
}

.chg {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  margin-left: 8px;
}

.chg.up {
  color: var(--buy);
}

.chg.down {
  color: var(--overheat);
}

.live-flag {
  letter-spacing: 0.04em;
}

.price {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.05em;
  margin: 18px 0 4px;
  font-variant-numeric: tabular-nums;
}

.headline {
  margin: 14px 0 0;
  min-height: 44px;
}

.countdown {
  color: var(--wait);
  font-weight: 600;
  margin: 12px 0 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 14px;
  margin-left: auto;
}

.nav a,
.nav button,
.nav-disabled {
  white-space: nowrap;
}

.nav a,
.nav-current,
.nav-disabled,
.more,
.pager a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
}

.nav-current,
.more {
  color: var(--text);
  font-weight: 600;
}

.nav-disabled {
  color: var(--muted);
  cursor: default;
}

.feed {
  margin-top: 20px;
}

.feed-wide {
  margin-top: 0;
}

.feed-head {
  margin-bottom: 8px;
}

.item {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.item:first-of-type {
  border-top: 0;
}

.item p {
  margin: 8px 0 0;
}

.card {
  color: inherit;
}

.card:hover {
  border-color: #3a3a40;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: 58%;
}

.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.card .badge {
  padding: 6px 12px;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.payday {
  background: rgba(245, 245, 247, 0.1);
  color: var(--text);
}

.official {
  background: rgba(48, 209, 88, 0.14);
  color: var(--buy);
}
.observe {
  background: rgba(100, 210, 255, 0.14);
  color: var(--watch);
}
.wait {
  background: rgba(255, 214, 10, 0.14);
  color: var(--wait);
}
.risk {
  background: rgba(255, 69, 58, 0.14);
  color: var(--overheat);
}
.money {
  background: rgba(245, 245, 247, 0.08);
  color: var(--text);
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.stat {
  border-top: 1px solid var(--line);
  padding: 12px 0 0;
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.stat strong {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

a.stat.ign-link,
button.term-stat {
  color: inherit;
  text-decoration: none;
}

a.stat.ign-link:hover strong {
  color: var(--ignition);
}

button.term-stat {
  width: 100%;
  margin: 0;
  padding: 12px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: none;
  text-align: left;
}

button.term-stat span {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

button.term-stat:hover span,
button.term-stat:focus-visible span {
  color: var(--text);
}

.tick button.tick-cell {
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  text-align: left;
}

.term-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.58);
}

.term-dialog {
  position: relative;
  width: min(400px, 100%);
  background: #161618;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 22px 20px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
}

.term-dialog h2 {
  margin: 0 28px 12px 0;
  font-size: 22px;
}

.term-dialog p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.term-more {
  display: inline-block;
  margin-top: 6px;
  color: var(--watch);
  text-decoration: none;
}

.term-more:hover {
  text-decoration: underline;
}

.term-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}

.term-close:hover,
.term-close:focus-visible {
  color: var(--text);
  background: rgba(245, 245, 247, 0.08);
}

.ign-icon {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ignition);
  margin-right: 6px;
  vertical-align: 1px;
}

.ign-text {
  color: var(--ignition);
  text-decoration: none;
}

.ign-text:hover {
  text-decoration: underline;
}

.board-note {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
}

.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 8px;
  color: var(--muted);
}

button,
.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 980px;
  padding: 8px 14px;
  cursor: pointer;
}

form button {
  background: #f5f5f7;
  color: #111;
  border-color: #f5f5f7;
  font-weight: 600;
}

input {
  width: 100%;
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0f0f10;
  color: var(--text);
}

input:focus {
  outline: none;
  border-color: #6e6e73;
}

.pending {
  color: var(--wait);
}

.disclaimer {
  margin: 0 0 20px;
  font-size: 13px;
}

.test-flag {
  margin: 0 0 12px;
  color: var(--wait);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.card-links {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.cal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 245, 247, 0.82);
  color: #111;
  border-radius: 980px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.cal-btn:hover {
  background: rgba(245, 245, 247, 0.92);
  color: #111;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
}

.card-link:hover {
  color: var(--text);
}

.link-arrow {
  font-size: 15px;
  line-height: 1;
  transform: translateY(-0.5px);
}

.page-links {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.research h1 {
  font-size: 40px;
  margin: 4px 0 12px;
}

.headline-lg {
  font-size: 18px;
  line-height: 1.5;
  max-width: 720px;
  margin: 0 0 18px;
}

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

.research-tabs {
  display: flex;
  gap: 32px;
  margin: 4px 0 28px;
  border-bottom: 1px solid var(--line);
}

.research-tabs a {
  color: var(--muted);
  text-decoration: none;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.04em;
  padding: 8px 0 14px;
}

.research-tabs a.on {
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--text);
}

.research-tabs a.tab-signal {
  color: #248a3d;
}

.research-tabs a.tab-signal.on {
  color: var(--buy);
  box-shadow: inset 0 -2px 0 var(--buy);
}

.research-tabs a.tab-heat {
  color: #9b2d28;
}

.research-tabs a.tab-heat.on {
  color: var(--overheat);
  box-shadow: inset 0 -2px 0 var(--overheat);
}

.research-tabs a.tab-ignition {
  color: #c77d12;
}

.research-tabs a.tab-ignition.on {
  color: var(--ignition);
  box-shadow: inset 0 -2px 0 var(--ignition);
}

.pane-title.tab-signal {
  color: var(--buy);
}

.pane-title.tab-heat {
  color: var(--overheat);
}

.pane-title.tab-ignition {
  color: var(--ignition);
}

.pane {
  display: none;
}

.pane.show {
  display: block;
}

.pane-title {
  display: none;
}

.chart-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 8px 0 20px;
  align-items: start;
}

.chart-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
}

.chart-wrap h3 {
  margin-bottom: 4px;
}

.chart-wrap .muted {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.45;
}

.heat-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.heat-list li + li {
  margin-top: 4px;
}

.heat-chart {
  position: relative;
}

.heat-mark {
  cursor: pointer;
  outline: none;
}

.heat-hit {
  pointer-events: auto;
}

.heat-tip {
  position: absolute;
  transform: translate(-50%, -100%);
  background: #1c1c1e;
  border: 1px solid #3a3a3c;
  border-radius: 12px;
  padding: 10px 12px;
  min-width: 132px;
  pointer-events: none;
  z-index: 4;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.heat-tip.below {
  transform: translate(-50%, 8px);
}

.heat-tip[hidden] {
  display: none;
}

.heat-tip strong {
  display: block;
  color: var(--text);
  font-size: 18px;
  letter-spacing: -0.03em;
}

.heat-tip span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.chart .highline {
  stroke: #86868b;
  stroke-dasharray: 5 5;
  stroke-width: 1;
}

.dot-swatch {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  background: #ff453a;
  vertical-align: middle;
}

.dot-swatch.ign-swatch {
  background: var(--ignition);
}

.fwd-block {
  margin-top: 28px;
}

.fwd-wrap {
  overflow-x: auto;
  margin-top: 8px;
}

.fwd-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
}

.fwd-table th,
.fwd-table td {
  padding: 10px 12px;
  text-align: right;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.fwd-table thead th {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
}

.fwd-table tbody th {
  text-align: left;
  font-weight: 600;
  white-space: normal;
}

.cal-leg {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.cal-leg:hover {
  color: var(--text);
}

.chart {
  width: 100%;
  height: auto;
  display: block;
}

.chart .gridline {
  stroke: #2a2a2e;
  stroke-width: 1;
}

.chart .axis {
  fill: #86868b;
  font-size: 11px;
}

.legend {
  display: flex;
  gap: 18px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.swatch {
  display: inline-block;
  width: 18px;
  height: 2px;
  margin-right: 8px;
  vertical-align: middle;
  background: #6e6e73;
}

.swatch.on {
  background: #f5f5f7;
}

.swatch.alt {
  background: #64d2ff;
}

.kpi {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.kpi div {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.kpi span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}

.kpi strong {
  font-size: 22px;
  letter-spacing: -0.03em;
}

.copy p {
  color: var(--muted);
  line-height: 1.6;
  max-width: 760px;
}

.principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0 40px;
}

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

.principle h4 {
  margin: 0 0 8px;
  font-size: 16px;
}

.principle p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.billing-banner {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  border: 1px solid var(--line);
}

.billing-banner.trial {
  border-color: #3ddc47;
  color: #c8f7cc;
}

.billing-banner.paid {
  border-color: var(--watch);
}

.billing-banner.expired {
  border-color: var(--overheat);
}

.billing-banner a {
  color: var(--brand);
}

.pay-page h1 {
  font-size: 34px;
  margin: 0 0 8px;
}

.pay-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}

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

.pay-card-off {
  opacity: 0.72;
}

.pay-badge {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--brand);
  letter-spacing: 0.04em;
}

.pay-price {
  font-size: 32px;
  font-weight: 700;
  margin: 8px 0 12px;
}

.pay-go {
  margin-top: 12px;
  background: var(--brand);
  color: #0b0b0c;
  border: none;
  font-weight: 700;
  width: 100%;
}

.pay-soon {
  display: inline-block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.pay-foot {
  max-width: 640px;
}

.pay-order-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 20px;
  max-width: 520px;
}

.pay-due strong {
  font-size: 28px;
  color: var(--brand);
}

.pay-qr {
  margin: 16px 0;
}

.pay-qr img {
  border-radius: 12px;
  background: #fff;
}

.pay-addr code {
  word-break: break-all;
  font-size: 13px;
}

.tx-form {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.pending {
  color: var(--wait);
}

.paid-msg {
  color: var(--buy);
}

.pay-admin-row .confirm-order {
  margin-top: 10px;
  background: var(--brand);
  color: #0b0b0c;
  border: none;
  font-weight: 600;
}

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

@media (max-width: 860px) {
  body {
    padding: 16px 14px 48px;
  }
  .grid,
  .stats,
  .feed-head,
  .kpi,
  .principles,
  .research-top,
  .chart-row {
    grid-template-columns: 1fr;
    display: grid;
  }
  .ticks {
    overflow: hidden;
  }
  .tick-head {
    display: grid;
    grid-template-areas: "logo id px flags ign toggle";
    padding-top: 8px;
    padding-bottom: 6px;
  }
  .tick-head .tick-stats {
    display: none;
  }
  .tick-head .tick-toggle {
    visibility: hidden;
    pointer-events: none;
    border-color: transparent;
    background: transparent;
  }
  .tick {
    display: grid;
    grid-template-columns: 28px minmax(3.25rem, 1fr) 6.6rem 5.1rem 2.2rem 36px;
    grid-template-areas:
      "logo id px flags ign toggle"
      "more more more more more more";
    min-width: 0;
    gap: 6px;
    padding: 12px 10px;
    white-space: normal;
    align-items: center;
  }
  .tick.tick-head {
    grid-template-areas: "logo id px flags ign toggle";
    grid-template-rows: auto;
    padding-top: 8px;
    padding-bottom: 6px;
  }
  .tick .logo { grid-area: logo; }
  .tick-id {
    grid-area: id;
    flex-wrap: wrap;
    min-width: 0;
  }
  .tick-id em {
    display: none;
  }
  .tick-px {
    grid-area: px;
    align-items: flex-start;
    justify-self: start;
    text-align: left;
    min-width: 0;
  }
  .tick-flags {
    grid-area: flags;
    flex-wrap: nowrap;
    justify-content: start;
    max-width: none;
  }
  .tick-cell.ign-link {
    grid-area: ign;
    text-align: left;
    min-width: 36px;
  }
  .tick-cell.ign-link span {
    display: block;
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 0.04em;
    text-decoration: none;
  }
  .tick-cell.ign-link strong {
    font-size: 13px;
  }
  .tick-toggle {
    display: flex;
    grid-area: toggle;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--text);
    background: rgba(245, 245, 247, 0.06);
  }
  .tick-toggle svg {
    width: 18px;
    height: 18px;
    display: block;
    transition: transform 0.16s ease;
  }
  .tick.is-open .tick-toggle {
    border-color: var(--brand);
    color: var(--brand);
  }
  .tick.is-open .tick-toggle svg {
    transform: rotate(180deg);
  }
  .tick-stats {
    display: none;
    grid-area: more;
    grid-column: 1 / -1;
  }
  .tick .term-stat[data-term="rsi"],
  .tick .term-stat[data-term="vol"],
  .tick .term-stat[data-term="heat"],
  .tick .tick-cal {
    grid-area: auto;
    grid-column: auto;
    grid-row: auto;
  }
  .tick.is-open .tick-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 16px 20px;
    margin-top: 6px;
    padding: 16px 4px 8px;
    border-top: 1px solid var(--line);
    min-height: 7.5rem;
    white-space: normal;
  }
  .tick.is-open .tick-stats .term-stat,
  .tick.is-open .tick-stats .tick-cal {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    grid-area: auto;
    grid-column: auto;
    grid-row: auto;
  }
  .tick-cell {
    text-align: left;
    min-width: 0;
  }
  .tick-cell span {
    display: block;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.04em;
    text-decoration: none;
  }
  .tick-cell strong {
    font-size: 16px;
  }
  .tick.is-open .tick-stats .tick-cal {
    padding: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--brand);
  }
  .desk-row {
    grid-template-columns: 28px 56px 1fr;
  }
  .desk-row.news {
    grid-template-columns: 56px 1fr;
  }
  .desk-row.news .desk-tag {
    grid-column: 2;
  }
  .stars, .desk-eta, .desk-tag {
    grid-column: 3;
  }
  .top {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .top-brand,
  .nav {
    width: 100%;
  }
  .nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-left: 0;
    gap: 8px 14px;
  }
  .price {
    font-size: 36px;
  }
  .research-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    position: sticky;
    top: 0;
    z-index: 4;
    margin: 0 0 18px;
    padding-top: 4px;
    background: var(--bg);
  }
  .research-tabs a {
    text-align: center;
    font-size: 18px;
    padding: 12px 4px 12px;
  }
}

.calendar h1 {
  font-size: 40px;
  margin: 4px 0 12px;
}

.cal-assets {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0 0 12px;
}

.cal-assets a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.cal-assets a.on {
  color: var(--text);
  font-weight: 600;
}

.cal-note {
  margin: 0 0 18px;
}

.cal-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.cal-pair.solo {
  grid-template-columns: 1fr;
  max-width: 480px;
}

.cal-board {
  background: #dcdce2;
  color: #1d1d1f;
  border-radius: 20px;
  padding: 16px 14px 14px;
}

.cal-board h2 {
  margin: 0 0 10px;
  padding: 0 4px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.cal-week,
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.cal-week span {
  color: #6e6e73;
  font-size: 11px;
  text-align: center;
  padding: 0 0 8px;
}

.cal-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-height: 52px;
  padding: 6px 0 8px;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
}

.cal-cell.empty {
  pointer-events: none;
}

.cal-cell .num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.cal-cell.wk .num {
  color: #6e6e73;
}

.cal-cell.today .num {
  background: #1d1d1f;
  color: #ececf1;
  border-radius: 50%;
  font-weight: 600;
}

.cal-cell.sel:not(.today) {
  background: rgba(29, 29, 31, 0.08);
}

.cal-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  min-height: 10px;
  max-width: 100%;
}

.cal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 10px;
  box-sizing: border-box;
  box-shadow: 0 0 0 1.5px #dcdce2;
}

.cal-dots .cal-dot + .cal-dot {
  margin-left: -4px;
}

.cal-legend .cal-dot {
  box-shadow: none;
}

.cal-dot.buy {
  background: #248a3d;
}

.cal-dot.ignition {
  background: #0a84ff;
}

.cal-dot.heat {
  background: #c9342a;
}

.cal-nav {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 8px 0 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.cal-nav a,
.cal-nav .nav-disabled {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.cal-nav a:hover {
  color: var(--text);
}

.cal-legend {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 18px 0 4px;
  color: var(--muted);
  font-size: 12px;
}

.cal-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cal-detail {
  margin-top: 8px;
  padding-top: 8px;
}

.cal-detail .item {
  border-top: 0;
  padding: 6px 0;
}

@media (max-width: 860px) {
  .cal-pair {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .cal-board.side {
    display: none;
  }
  .calendar h1 {
    font-size: 32px;
  }
}

.chain-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}

.chain-tabs a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.chain-tabs a.on {
  color: var(--text);
  border-color: var(--brand);
}

.chain-tabs a em {
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
}

.etf-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 24px;
}

.etf-kpis div {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
}

.etf-kpis span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.etf-kpis strong {
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.etf-kpis .pos { color: var(--buy); }
.etf-kpis .neg { color: var(--overheat); }
.etf-table .pos { color: var(--buy); }
.etf-table .neg { color: var(--overheat); }

@media (max-width: 720px) {
  .etf-kpis {
    grid-template-columns: 1fr;
  }
}

.chain-heat-wrap {
  overflow-x: auto;
  margin: 8px 0 28px;
}

.chain-heat {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.chain-heat th,
.chain-heat td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

.chain-heat th:first-child,
.chain-heat td:first-child,
.chain-heat th:nth-child(2),
.chain-heat td:nth-child(2) {
  text-align: left;
}

.chain-heat th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.chain-heat .role {
  color: var(--muted);
  font-size: 12px;
}

.chain-heat .pos {
  color: var(--buy);
}

.chain-heat .neg {
  color: var(--overheat);
}

.chain-range {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
}

.chain-range button {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}

.chain-range button.on {
  color: var(--text);
  border-color: var(--brand);
}

.chain-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 10px 0 18px;
}

.chain-legend label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.chain-legend input {
  accent-color: var(--brand);
}

.chain-legend i {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  display: inline-block;
}

.chain-panes {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.chain-pane {
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}

.chain-pane:last-child {
  border-bottom: 0;
}

.chain-pane-label {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  padding-right: 8px;
}

.chain-pane-label i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex: 0 0 8px;
}

.chain-pane-chart {
  width: 100%;
  height: auto;
  display: block;
}

.chain-tip-host {
  position: relative;
  z-index: 1;
}

.chain-tip-host:hover {
  z-index: 5;
}

.chain-hair {
  stroke: rgba(245, 245, 247, 0.42);
  stroke-width: 1;
  opacity: 0;
  pointer-events: none;
}

.chain-hair.on {
  opacity: 1;
}

.chain-hit {
  fill: #000;
  fill-opacity: 0;
  cursor: crosshair;
}

.chain-dots {
  pointer-events: none;
}

.chain-tip {
  position: absolute;
  z-index: 6;
  pointer-events: none;
  min-width: 148px;
  max-width: 260px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #1c1c1e;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  color: var(--text);
}

.chain-tip-date {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 11px;
}

.chain-tip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.chain-tip-row + .chain-tip-row {
  margin-top: 3px;
}

.chain-tip-row i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex: 0 0 8px;
}

.chain-tip-row span {
  flex: 1;
  color: var(--muted);
}

.chain-tip-row strong {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.chain-embed {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.chain-embed h3 {
  margin: 0 0 8px;
}