/* Kaz Research — design system */

:root {
  --bg: #0a0a0a;
  --card: #131316;
  --card-2: #18181b;
  --border: #1f1f23;
  --border-hover: #2a2a31;
  --text: #ededed;
  --text-2: #a1a1aa;
  --text-3: #71717a;

  --green: #4ade80;
  --red: #f87171;
  --yellow: #facc15;
  --blue: #60a5fa;
  --purple: #c084fc;
  --orange: #fb923c;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  line-height: 1.5;
  min-height: 100vh;
}

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

.mono {
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-feature-settings: 'tnum' on, 'lnum' on;
}

/* ───── Layout ───── */

.shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 48px 96px;
}

@media (max-width: 768px) {
  .shell { padding: 20px 20px 48px; }
}

/* ───── Nav ───── */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 32px;
  margin-bottom: 24px;
}

.brand {
  font-size: 16px;
  color: var(--text-2);
  letter-spacing: -0.01em;
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 15px;
  color: var(--text-2);
}

.nav-links a {
  transition: color 0.15s ease;
}

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

.nav-links .soon {
  color: var(--text-3);
  font-size: 13px;
}

/* ───── Header ───── */

.page-header {
  margin-bottom: 32px;
}

.h-date {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 4px;
}

.h-sub {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-2);
  margin: 0;
  font-feature-settings: 'tnum' on, 'lnum' on;
}

.h-sub .price { color: var(--text); }
.h-sub .change.up { color: var(--green); }
.h-sub .change.down { color: var(--red); }

.divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 24px 0 32px;
}

/* ───── Grid (2x2) ───── */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

/* ───── Card ───── */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.15s ease;
}

.card-link {
  cursor: pointer;
}

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

.card-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-2);
  text-transform: uppercase;
  margin: 0 0 20px;
}

.card-section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-2);
  text-transform: uppercase;
  margin: 0 0 8px;
}

/* ───── TLDR Card ───── */

.tldr-thesis {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0 0 12px;
}

.tldr-core {
  margin: 0 0 16px;
  padding: 16px 18px;
  background: var(--card-2);
  border-radius: 10px;
  border-left: 2px solid var(--text-3);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tldr-core-line {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0;
}

/* Single emphasis rule: only $price gets accent color (orange).
   Everything else stays plain — the typography (font / weight / size)
   already carries the hierarchy. */
.hl-price {
  color: var(--orange);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 0.95em;
}

/* Legacy classes retained as no-ops for safety */
.hl, .hl-num, .hl-key { color: inherit; font-weight: inherit; }

/* Separator within a card */
.tldr-sep {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 20px 0 16px;
}

/* Last evening recap inside the TLDR card */
.tldr-eve-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.tldr-eve-core {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.02);
  border-left: 2px solid var(--text-3);
  margin-bottom: 14px;
}
.tldr-eve-line {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
}
.tldr-eve-trig-label { margin-top: 6px; }

/* Density grid in SETUP card */
.density-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.density-row {
  display: grid;
  grid-template-columns: 56px 56px 1fr;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.015);
}
.density-row.long .density-side { color: var(--green); }
.density-row.short .density-side { color: var(--red); }
.density-row.range .density-side { color: var(--yellow); }
.density-side { font-weight: 600; }
.density-pct {
  font-weight: 600;
  color: var(--text);
}
.density-desc {
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.5;
}

/* Headline signals — emoji prefix rows with optional inline bold */
.tldr-headline-signals {
  list-style: none;
  margin: 8px 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tldr-headline-signals li {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  padding-left: 0;
  word-break: break-word;
}
.tldr-headline-signals li b {
  font-weight: 700;
  color: var(--text);
}

/* Probability shift diff table */
.prob-diff {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 10px 0 16px;
  padding: 12px 14px;
  border-radius: 6px;
  background: rgba(255,255,255,0.02);
  border-left: 2px solid var(--border-hover);
}
.prob-diff-row {
  display: grid;
  grid-template-columns: 1fr 48px 18px 48px 48px;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-2);
}
.prob-diff-row.agg {
  color: var(--text);
  font-weight: 600;
}
.prob-diff-sep {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}
.pd-label { color: var(--text-2); }
.prob-diff-row.agg .pd-label { color: var(--text); }
.pd-prev { color: var(--text-3); text-align: right; }
.pd-arrow { color: var(--text-3); text-align: center; }
.pd-curr { color: var(--text); text-align: right; }
.pd-delta { text-align: right; font-weight: 600; }
.pd-delta.pos { color: var(--green); }
.pd-delta.neg { color: var(--red); }
.pd-delta.zero { color: var(--text-3); }

/* Yesterday recap (collapsible) */
.tldr-recap {
  margin-top: 16px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.tldr-recap-summary {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tldr-recap-summary::before {
  content: "▸";
  display: inline-block;
  transition: transform 0.15s ease;
  color: var(--text-3);
}
.tldr-recap[open] .tldr-recap-summary::before {
  transform: rotate(90deg);
}
.tldr-recap-summary::-webkit-details-marker { display: none; }
.tldr-recap[open] .tldr-headline-signals {
  margin-top: 10px;
}

/* HERO banner — one-sentence essence above the grid */
.hero-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 22px;
  margin: 0 0 24px;
  background: linear-gradient(135deg, rgba(251,146,60,0.06), rgba(251,146,60,0.02));
  border: 1px solid rgba(251,146,60,0.25);
  border-left: 3px solid var(--orange);
  border-radius: 8px;
}
.hero-marker {
  font-size: 20px;
  line-height: 1.4;
  flex-shrink: 0;
}
.hero-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  font-weight: 500;
  letter-spacing: 0.005em;
}
.hero-text b { font-weight: 700; }
@media (max-width: 768px) {
  .hero-banner { padding: 14px 16px; gap: 10px; }
  .hero-text { font-size: 14px; }
}

.tldr-signals {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tldr-signals li {
  font-size: 13px;
  color: var(--text-2);
  padding-left: 14px;
  position: relative;
}

.tldr-signals li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--text-3);
}

.tldr-anchor {
  font-size: 14px;
  color: var(--text);
  margin: 16px 0 0;
  padding: 12px 14px;
  background: var(--card-2);
  border-radius: 10px;
  border-left: 2px solid var(--blue);
}

.tldr-prob {
  display: flex;
  gap: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.tldr-prob .label { color: var(--text-3); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.tldr-prob .val { font-weight: 600; }
.tldr-prob .short .val { color: var(--red); }
.tldr-prob .long .val { color: var(--green); }
.tldr-prob .range .val { color: var(--yellow); }

/* ───── Setup Card ───── */

.setup {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 0;
}

.setup + .setup { border-top: 1px solid var(--border); padding-top: 16px; margin-top: 4px; }

.setup-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

/* Big side tag — 做多 / 做空 */
.setup-side {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.setup-side.long {
  background: rgba(74, 222, 128, 0.16);
  color: var(--green);
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.setup-side.short {
  background: rgba(248, 113, 113, 0.16);
  color: var(--red);
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.setup-label {
  font-size: 15px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.setup-tail {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.setup-name {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

.setup-emph { color: var(--purple); font-size: 13px; }

.setup-grid {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px 14px;
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  font-feature-settings: 'tnum' on;
  align-items: baseline;
}

.setup-grid .k {
  color: var(--text-3);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.setup-grid .v {
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.setup-grid .v-multiline {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.6;
}

.setup-meta {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 4px;
  font-family: 'JetBrains Mono', monospace;
}

.setup-more {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  cursor: pointer;
  text-align: left;
  transition: color 0.15s ease;
}

.setup-more::after {
  content: ' →';
  color: var(--text-3);
}

.setup-more:hover { color: var(--text); }
.setup-more:hover::after { color: var(--text); }

/* ───── Modal ───── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
  animation: modal-fade 180ms ease;
}

.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  max-width: 720px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  animation: modal-slide 200ms ease;
}

.modal::-webkit-scrollbar { width: 8px; }
.modal::-webkit-scrollbar-track { background: transparent; }
.modal::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 4px; }

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}

.modal-close {
  background: transparent;
  border: 0;
  color: var(--text-2);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  padding: 4px 12px;
  border-radius: 6px;
  transition: all 0.15s ease;
  font-family: inherit;
}

.modal-close:hover { color: var(--text); background: var(--card-2); }

.modal-body .setup + .setup {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-top: 6px;
}

@keyframes modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-slide {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ───── Desk Recent ───── */

.desk-recent-label {
  margin: 24px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.desk-recent-day {
  margin-bottom: 14px;
}

.desk-recent-date {
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.desk-recent-row {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 8px;
  padding: 6px 0;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s ease;
  align-items: baseline;
}

.desk-recent-row:hover {
  background: var(--card-2);
  padding-left: 6px;
  padding-right: 6px;
  margin-left: -6px;
  margin-right: -6px;
}

.desk-recent-row-left {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.desk-kind-mini {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-3);
  font-weight: 600;
}

.desk-recent-title {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ───── Desk Card ───── */

.desk-section {
  padding: 8px 0;
}

.desk-section + .desk-section { border-top: 1px solid var(--border); padding-top: 16px; margin-top: 8px; }

.desk-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.desk-kind {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}

.desk-score {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
}

.desk-score.s95 { color: var(--purple); }
.desk-score.s85 { color: var(--green); }
.desk-score.s75 { color: var(--yellow); }
.desk-score.s65 { color: var(--orange); }

.desk-title {
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
  margin: 0;
}

.desk-empty {
  font-size: 14px;
  color: var(--text-3);
  font-style: italic;
}

/* ───── Next Catalyst Card ───── */

.cat-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
  font-family: 'Inter Tight', 'Inter', sans-serif;
}

.cat-importance { display: inline; }

.cat-countdown {
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--yellow);
  margin: 4px 0 6px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.cat-countdown.urgent { color: var(--red); animation: pulse 1.5s ease infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.cat-fc {
  font-size: 13px;
  color: var(--text-2);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 24px;
}

.cat-paths {
  margin-top: 8px;
}

.cat-path {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  padding: 10px 0;
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  align-items: start;
  border-bottom: 1px solid transparent;
}

.cat-path + .cat-path {
  border-top: 1px solid var(--border);
}

.cat-path .cond {
  color: var(--text-2);
  white-space: nowrap;
}

.cat-path .out {
  color: var(--text);
  white-space: normal;
  overflow: visible;
  word-break: break-word;
  line-height: 1.55;
}

.cat-after {
  margin-top: 8px;
}

.cat-after-row {
  display: grid;
  grid-template-columns: 80px 1fr 60px;
  gap: 12px;
  padding: 6px 0;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  align-items: baseline;
}

.cat-after-row .t { color: var(--text-3); }
.cat-after-row .e { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-after-row .fc { color: var(--text-3); text-align: right; }

/* ───── BTC Calendar ───── */

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

.cal-day-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  padding-bottom: 12px;
}

.cal-cell {
  aspect-ratio: 1.1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: border-color 0.15s ease;
  min-height: 110px;
}

.cal-cell:hover { border-color: var(--border-hover); }

.cal-cell.empty {
  background: transparent;
  border: 1px dashed var(--border);
  opacity: 0.3;
  cursor: default;
}

.cal-cell.today {
  border: 1.5px solid var(--blue);
  box-shadow: 0 0 24px rgba(96, 165, 250, 0.12);
}

.cal-cell.future {
  border: 1px dashed var(--border);
  opacity: 0.5;
}

.cal-num {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  color: var(--text);
}

.cal-today-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--blue);
  text-transform: uppercase;
  margin-left: auto;
}

.cal-mid {
  margin-top: auto;
}

.cal-dots {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.cal-dot { display: inline-block; border-radius: 50%; background: var(--text-3); }
.cal-dot.hi { width: 8px; height: 8px; background: var(--red); }
.cal-dot.mid { width: 6px; height: 6px; background: var(--orange); }
.cal-dot.lo { width: 4px; height: 4px; background: var(--yellow); }

.cal-scores {
  display: flex;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-3);
  align-items: baseline;
}

.cal-scores .s {
  font-weight: 600;
}

.cal-scores .s.p { color: var(--purple); }
.cal-scores .s.g { color: var(--green); }
.cal-scores .s.y { color: var(--yellow); }

.cal-flag { color: var(--purple); font-size: 12px; }

/* ───── Toggle ───── */

.toggle-group {
  display: inline-flex;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
}

.toggle-btn {
  padding: 6px 14px;
  font-size: 13px;
  color: var(--text-2);
  background: transparent;
  border: 0;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s ease;
  font-family: inherit;
}

.toggle-btn.active { background: var(--card-2); color: var(--text); }

/* ───── Stocks placeholder ───── */

.stocks-empty {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.stocks-title {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
}

.stocks-em {
  width: 32px;
  border-top: 1px solid var(--border);
  margin: 16px 0;
}

.stocks-msg {
  font-size: 16px;
  color: var(--text-2);
  margin: 0 0 8px;
}

.stocks-list {
  font-size: 13px;
  color: var(--text-3);
  font-family: 'JetBrains Mono', monospace;
}

/* ───── Position page ───── */

.pos-hero-pnl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  margin: 12px 0 6px;
}

.pos-hero-pnl.up { color: var(--green); }
.pos-hero-pnl.down { color: var(--red); }

.pos-hero-sub {
  font-size: 15px;
  color: var(--text-2);
}

.pos-list {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 8px 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  margin: 32px 0;
}

.pos-list .k { color: var(--text-3); }
.pos-list .v { color: var(--text); }

.pos-history {
  margin-top: 32px;
}

.pos-row {
  display: grid;
  grid-template-columns: 120px 1fr 90px 90px;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  align-items: baseline;
}

.pos-row .t { color: var(--text-3); }
.pos-row .a { color: var(--text); }
.pos-row .p { color: var(--text-2); }
.pos-row .pnl { font-weight: 600; text-align: right; }
.pos-row .pnl.up { color: var(--green); }
.pos-row .pnl.down { color: var(--red); }

/* ───── Day detail page ───── */

.day-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--text-2);
}

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

.day-hero-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  margin: 8px 0;
}

.day-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  margin: 32px 0 24px;
  font-size: 14px;
}

.day-tab {
  padding: 12px 0;
  color: var(--text-3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
  background: none;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  font-family: inherit;
}

.day-tab:hover { color: var(--text-2); }
.day-tab.active { color: var(--text); border-bottom-color: var(--blue); }

.day-content {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-2);
}

.day-content h1, .day-content h2, .day-content h3 {
  color: var(--text);
  margin: 28px 0 12px;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  letter-spacing: -0.01em;
}

.day-content h1 { font-size: 22px; }
.day-content h2 { font-size: 18px; }
.day-content h3 { font-size: 15px; font-weight: 600; }

.day-content p { margin: 8px 0; }
.day-content code {
  background: var(--card-2);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}

.day-content pre {
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  overflow-x: auto;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  white-space: pre;
}

.day-content table {
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13px;
  width: 100%;
}

.day-content th, .day-content td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
}

.day-content th { background: var(--card-2); color: var(--text); font-weight: 600; }
.day-content blockquote {
  border-left: 2px solid var(--border);
  padding-left: 16px;
  color: var(--text-3);
  margin: 12px 0;
}

.day-content ul, .day-content ol { padding-left: 24px; }
.day-content li { margin: 4px 0; }
.day-content a { color: var(--blue); }

/* ───── Chart ───── */

.chart-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  margin-top: 24px;
  min-height: 420px;
}

/* ───── Loading ───── */

.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--text-2);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading {
  color: var(--text-3);
  font-size: 13px;
  padding: 24px;
  text-align: center;
}

.error {
  color: var(--red);
  font-size: 13px;
  padding: 24px;
  text-align: center;
}
