:root {
  color-scheme: light;
  --canvas: oklch(92% 0.008 220);
  --surface: oklch(99% 0.004 210);
  --surface-soft: oklch(96.5% 0.009 215);
  --ink: oklch(27% 0.075 252);
  --ink-strong: oklch(22% 0.09 252);
  --ink-muted: oklch(49% 0.035 245);
  --line: oklch(89% 0.012 225);
  --mint: #21bda8;
  --mint-dark: #0f5f56;
  --mint-soft: #e7f8f4;
  /* Bankas 참고 카드에서 추출한 선명한 에메랄드 범위 */
  --featured-navy: #082b59;
  --featured-ink: #f4fff9;
  --featured-muted: #f4fff9;
  --featured-line: rgb(244 255 249 / 0.24);
  --up: oklch(51% 0.135 167);
  --up-soft: oklch(93% 0.045 165);
  --down: oklch(55% 0.19 24);
  --down-soft: oklch(94% 0.04 20);
  --warn: oklch(61% 0.135 78);
  --warn-soft: oklch(94% 0.045 82);
  --error: oklch(52% 0.18 24);
  --error-soft: oklch(94% 0.04 20);
  --radius-shell: 28px;
  --radius-card: 18px;
  --radius-control: 12px;
  --shadow-shell: 0 30px 80px oklch(35% 0.04 240 / 0.16);
  --shadow-card: 0 12px 30px oklch(38% 0.035 235 / 0.08);
  --font-sans: "Pretendard Variable", Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--canvas);
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-kerning: normal;
  line-height: 1.5;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

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

h2,
h3,
p {
  margin: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--surface);
  background: var(--ink-strong);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.app-stage {
  min-height: 100dvh;
  padding: clamp(20px, 4vw, 58px);
}

.dashboard-shell {
  width: min(100%, 1320px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid oklch(100% 0 0 / 0.7);
  border-radius: var(--radius-shell);
  background: var(--surface-soft);
  box-shadow: var(--shadow-shell);
}

.dashboard-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 78px;
  padding: 14px clamp(24px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.brand {
  display: inline-flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
}

.brand img {
  display: block;
  width: 148px;
  height: auto;
}

.dashboard-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: var(--surface-soft);
}

.nav-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 10px;
  color: var(--ink-muted);
  font-size: 0.875rem;
  font-weight: 750;
  transition: color 160ms ease, background-color 160ms ease, transform 120ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--ink-strong);
  outline: none;
}

.nav-link.is-active {
  color: var(--surface);
  background: var(--ink-strong);
}

.nav-link:active {
  transform: translateY(1px);
}

.header-state {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 10px;
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

#connection-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
}

#connection-status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warn);
  content: "";
}

#connection-status[data-tone="ok"] {
  color: var(--up);
}

#connection-status[data-tone="ok"]::before {
  background: var(--up);
}

#connection-status[data-tone="warn"] {
  color: var(--warn);
}

#connection-status[data-tone="error"] {
  color: var(--error);
}

#connection-status[data-tone="error"]::before {
  background: var(--error);
}

.dashboard-main {
  display: grid;
  gap: clamp(36px, 5vw, 56px);
  padding: clamp(24px, 4vw, 48px) clamp(20px, 4vw, 52px) clamp(40px, 5vw, 64px);
}

.coin-main {
  min-height: clamp(520px, 72vh, 760px);
  align-content: center;
}

.coin-placeholder {
  width: min(100%, 760px);
  margin-inline: auto;
  padding: clamp(30px, 6vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.coin-placeholder .eyebrow {
  color: var(--mint-dark);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.coin-placeholder h1 {
  max-width: 12ch;
  margin: 12px 0 0;
  color: var(--ink-strong);
  font-size: clamp(2.25rem, 7vw, 4.6rem);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 1.02;
}

.coin-placeholder .lead {
  max-width: 46ch;
  margin: 22px 0 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.coin-placeholder .back-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  margin-top: 30px;
  padding: 0 16px;
  border-radius: 10px;
  color: var(--surface);
  background: var(--ink-strong);
  font-size: 0.82rem;
  font-weight: 800;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  margin-top: 0;
}

.price-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.price-card-featured {
  grid-column: span 6;
  display: flex;
  min-height: 320px;
  flex-direction: column;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--featured-navy);
  color: var(--featured-ink);
  background: var(--featured-navy);
  box-shadow: 0 16px 36px rgb(8 43 89 / 0.2);
}

.price-card-compact {
  grid-column: span 3;
  display: flex;
  min-height: 248px;
  flex-direction: column;
  padding: 20px;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.card-header > div {
  min-width: 0;
}

.card-header h2 {
  margin-top: 2px;
  color: var(--ink-strong);
  font-size: 1.13rem;
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.ticker {
  display: block;
  margin-top: 3px;
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.price-card-featured .ticker {
  color: var(--featured-muted);
}

.price-card-featured .card-header h2 {
  color: var(--featured-ink);
  font-size: 1.42rem;
}

.card-status {
  display: inline-flex;
  min-height: 24px;
  flex: 0 0 auto;
  align-items: center;
  padding: 0 9px;
  border-radius: 8px;
  color: var(--ink-muted);
  background: var(--surface-soft);
  font-size: 0.68rem;
  font-weight: 850;
}

.card-status-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.chart-link {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink-muted);
  background: var(--surface);
  font-size: 0.61rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.chart-link:hover {
  color: var(--mint-dark);
  border-color: color-mix(in srgb, var(--mint) 42%, var(--line));
}

.chart-link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--mint) 32%, transparent);
  outline-offset: 2px;
}

.price-card-featured .chart-link {
  color: var(--featured-ink);
  border-color: rgb(255 255 255 / 0.34);
  background: rgb(255 255 255 / 0.13);
}

.refresh-note {
  color: var(--ink-muted);
  font-size: 0.64rem;
  font-weight: 700;
  white-space: nowrap;
}

.price-card-featured .refresh-note {
  color: var(--featured-muted);
}

.price-card-featured .card-status {
  color: var(--featured-navy);
  background: rgb(255 255 255 / 0.88);
}

.card-status[data-tone="ok"] {
  color: var(--up);
  background: var(--up-soft);
}

.price-card-featured .card-status[data-tone="ok"] {
  color: var(--featured-navy);
  background: rgb(255 255 255 / 0.92);
}

.card-status[data-tone="warn"] {
  color: var(--warn);
  background: var(--warn-soft);
}

.card-status[data-tone="error"] {
  color: var(--error);
  background: var(--error-soft);
}

.current-block {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 10px;
  margin-top: 22px;
}

.current-value {
  min-width: 0;
  color: var(--ink-strong);
  font-size: clamp(1.85rem, 3.6vw, 2.8rem);
  font-weight: 860;
  letter-spacing: -0.055em;
  line-height: 1.08;
  font-variant-numeric: tabular-nums;
}

.price-card-featured .current-value {
  color: var(--featured-ink);
}

.price-card-compact .current-value {
  font-size: clamp(1.45rem, 2vw, 1.85rem);
}

.change-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--ink-muted);
  background: var(--surface-soft);
  font-size: 0.74rem;
  font-weight: 850;
  white-space: nowrap;
}

.change-badge.is-up {
  color: var(--up);
  background: var(--up-soft);
}

.change-badge.is-down {
  color: var(--down);
  background: var(--down-soft);
}

.price-card-featured .change-badge {
  background: rgb(255 255 255 / 0.72);
}

.price-card-featured .change-badge.is-up {
  color: #0f6b45;
  background: rgb(255 255 255 / 0.82);
}

.price-card-featured .change-badge.is-down {
  color: #a33a48;
  background: rgb(255 255 255 / 0.82);
}

.calc-box {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgb(3 24 54 / 0.34);
}

.calc-source,
.calc-formula {
  margin: 0;
  color: var(--featured-muted);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.45;
  word-break: keep-all;
}

.calc-formula {
  color: var(--featured-ink);
  font-variant-numeric: tabular-nums;
}

.calc-box[data-state="unavailable"] .calc-formula {
  color: var(--featured-muted);
}

.comparison-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: auto 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.price-card-featured .comparison-row {
  border-color: var(--featured-line);
}

.comparison-row div {
  min-width: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-soft);
}

.price-card-featured .comparison-row div {
  background: rgb(3 24 54 / 0.34);
}

.comparison-row dt {
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.price-card-featured .comparison-row dt {
  color: var(--featured-muted);
}

.comparison-row dd {
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--ink-strong);
  font-size: 0.94rem;
  font-weight: 820;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-card-featured .comparison-row dd {
  color: var(--featured-ink);
}

.comparison-row dd.is-up {
  color: var(--up);
}

.comparison-row dd.is-down {
  color: var(--down);
}

.price-card-featured .comparison-row dd.is-up {
  color: var(--featured-ink);
}

.price-card-featured .comparison-row dd.is-down {
  color: var(--featured-ink);
}

.signal-section,
.prediction-section,
.indicator-section {
  scroll-margin-top: 24px;
}

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

.signal-market-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.flow-card {
  display: flex;
  min-width: 0;
  height: 100%;
  padding: 20px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.flow-card-header {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.flow-card-header h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 0.98rem;
  font-weight: 850;
  letter-spacing: -0.035em;
}

.flow-unit {
  display: block;
  margin-top: 2px;
  color: var(--ink-muted);
  font-size: 0.66rem;
  font-weight: 720;
  white-space: nowrap;
}

.flow-card-state {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  flex-direction: column;
}

.flow-card-state time {
  color: var(--ink-muted);
  font-size: 0.66rem;
  font-weight: 750;
  white-space: nowrap;
}

.flow-table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  table-layout: fixed;
  color: var(--ink-strong);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.flow-table th,
.flow-table td {
  min-width: 0;
  padding: 8px 2px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  text-align: right;
  text-overflow: clip;
  white-space: nowrap;
}

.flow-table thead th {
  padding-top: 0;
  color: var(--ink-muted);
  font-size: 0.64rem;
  font-weight: 760;
}

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

.flow-table tbody th,
.flow-table tfoot th {
  font-weight: 820;
}

.flow-table td {
  font-weight: 790;
}

.flow-table td[data-tone="buy"] {
  color: var(--up);
}

.flow-table td[data-tone="sell"] {
  color: var(--down);
}

.flow-table td[data-tone="neutral"] {
  color: var(--ink-muted);
}

.flow-snapshot-table th:first-child {
  width: 24%;
}

.flow-history-table th:first-child,
.flow-history-table td:first-child {
  width: 25%;
}

.flow-history-table tfoot th,
.flow-history-table tfoot td {
  padding-top: 10px;
  border-bottom: 0;
  color: var(--ink-strong);
  font-weight: 850;
}

.flow-history-table tbody td[colspan] {
  height: 153px;
  color: var(--ink-muted);
  text-align: center;
}

.flow-market-switch {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
}

.flow-market-switch button {
  min-height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  color: var(--ink-muted);
  background: transparent;
  font: inherit;
  font-size: 0.64rem;
  font-weight: 800;
  cursor: pointer;
}

.flow-market-switch button[aria-pressed="true"] {
  color: var(--mint-dark);
  background: var(--surface);
  box-shadow: 0 1px 5px oklch(38% 0.035 235 / 0.12);
}

.flow-market-switch button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.flow-market-switch button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--mint) 32%, transparent);
  outline-offset: 2px;
}

.flow-summary {
  min-height: 38px;
  margin-top: auto;
  padding-top: 12px;
  color: var(--ink-strong);
  font-size: 0.72rem;
  font-weight: 760;
  line-height: 1.45;
}

.flow-card[data-state="unavailable"] .flow-table td,
.flow-card[data-state="unavailable"] .flow-summary {
  color: var(--ink-muted);
}

.sector-all h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 0.69rem;
  font-weight: 830;
  letter-spacing: -0.025em;
}

.sector-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sector-list-item {
  display: grid;
  min-width: 0;
  align-items: center;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 7px;
  font-variant-numeric: tabular-nums;
}

.sector-rank {
  color: var(--mint-dark);
  font-size: 0.68rem;
  font-weight: 900;
  text-align: center;
}

.sector-row-main {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.sector-name {
  overflow: hidden;
  color: var(--ink-strong);
  font-size: 0.71rem;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sector-etf-name {
  overflow: hidden;
  color: var(--ink-muted);
  font-size: 0.55rem;
  font-weight: 690;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sector-relative {
  color: var(--mint-dark);
  font-size: 0.69rem;
  font-weight: 880;
  text-align: right;
  white-space: nowrap;
}

.sector-bar-track {
  display: block;
  width: 100%;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--mint) 13%, var(--surface));
}

.sector-bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--mint);
}

.sector-all {
  margin-top: 15px;
}

.sector-all-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sector-all-heading > span {
  color: var(--ink-muted);
  font-size: 0.62rem;
  font-weight: 720;
}

.sector-list {
  max-height: 320px;
  margin-top: 7px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: color-mix(in srgb, var(--mint) 38%, var(--line)) transparent;
  scrollbar-width: thin;
}

.sector-list-item {
  min-height: 31px;
  padding: 5px 3px;
  border-bottom: 1px solid var(--line);
}

.sector-list-item:last-child {
  border-bottom: 0;
}

.sector-list-item[data-tone="weak"] .sector-relative,
.sector-list-item[data-tone="weak"] .sector-rank {
  color: var(--ink-muted);
}

.sector-list-item[data-tone="weak"] .sector-bar {
  opacity: 0.38;
}

.sector-list-item[data-tone="unavailable"] {
  opacity: 0.62;
}

.sector-list-item[data-tone="unavailable"] .sector-relative {
  font-size: 0.58rem;
  font-weight: 720;
}

.sector-loading {
  padding: 18px 4px;
  color: var(--ink-muted);
  font-size: 0.68rem;
  line-height: 1.45;
  text-align: center;
}

.sector-note {
  margin-top: 11px;
  color: var(--ink-muted);
  font-size: 0.62rem;
  line-height: 1.45;
}

.signal-card {
  display: flex;
  min-width: 0;
  padding: clamp(22px, 3vw, 30px);
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.market-context-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.market-context-header h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 1.12rem;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.market-context-header > div > span {
  display: block;
  margin-top: 2px;
  color: var(--ink-muted);
  font-size: 0.76rem;
  font-weight: 720;
}

.market-context-headline {
  margin-top: 18px;
  padding: 15px 16px;
  border-left: 3px solid var(--mint);
  border-radius: 0 var(--radius-control) var(--radius-control) 0;
  color: var(--ink-strong);
  background: var(--surface-soft);
  font-size: clamp(0.94rem, 1.4vw, 1.02rem);
  font-weight: 780;
  line-height: 1.55;
  letter-spacing: -0.02em;
}

.market-context-list {
  margin-top: 10px;
}

.market-context-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.market-context-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.market-context-label {
  color: var(--mint-dark);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.01em;
}

.market-context-copy > strong {
  color: var(--ink-strong);
  font-size: 0.9rem;
  font-weight: 820;
  letter-spacing: -0.02em;
}

.market-context-copy > small {
  color: var(--ink-muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.market-context-value {
  display: grid;
  min-width: 92px;
  gap: 2px;
  text-align: right;
}

.market-context-value > strong {
  color: var(--ink-strong);
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.market-context-value > time {
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.market-context-row[data-state="unavailable"] {
  opacity: 0.55;
}

.market-context-pressure {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-control);
  color: var(--ink);
  background: var(--mint-soft);
}

.market-context-pressure[hidden] {
  display: none;
}

.market-context-pressure span {
  font-size: 0.76rem;
  font-weight: 760;
}

.market-context-pressure strong {
  color: var(--ink-strong);
  font-size: 0.84rem;
  font-weight: 880;
  text-align: right;
}

.market-context-note {
  margin-top: 14px;
  color: var(--ink-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

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

.prediction-card {
  display: flex;
  min-width: 0;
  min-height: 315px;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: 0 8px 20px oklch(38% 0.03 235 / 0.06);
}

.prediction-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.prediction-category {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border-radius: 7px;
  color: var(--mint-dark);
  background: var(--mint-soft);
  font-size: 0.64rem;
  font-weight: 830;
  white-space: nowrap;
}

.prediction-deadline {
  color: var(--ink-muted);
  font-size: 0.67rem;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.prediction-card h3 {
  margin-top: 12px;
  color: var(--ink-strong);
  font-size: 1.04rem;
  font-weight: 850;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.prediction-answer {
  margin-top: 15px;
  padding: 15px;
  border: 1px solid oklch(91.5% 0.01 225);
  border-radius: 12px;
  background: var(--surface-soft);
}

.prediction-answer-label {
  display: block;
  color: var(--ink-muted);
  font-size: 0.64rem;
  font-weight: 720;
}

.prediction-outcome {
  display: block;
  min-width: 80px;
  margin-top: 4px;
  color: var(--ink-strong);
  font-size: 0.98rem;
  font-weight: 860;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.prediction-probability-row {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.prediction-probability {
  min-width: 88px;
  color: var(--ink-strong);
  font-size: clamp(2rem, 3vw, 2.45rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}

.prediction-change {
  flex: 0 0 auto;
  padding-bottom: 2px;
  color: var(--ink-muted);
  font-size: 0.66rem;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.prediction-track {
  height: 7px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: oklch(89.5% 0.009 220);
}

.prediction-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: rgb(33 189 168 / 0.68);
  transition: width 350ms ease;
}

.prediction-card[data-probability-band="high"] .prediction-track span {
  background: rgb(33 189 168 / 1);
}

.prediction-card[data-probability-band="medium"] .prediction-track span {
  background: rgb(33 189 168 / 0.68);
}

.prediction-card[data-probability-band="low"] .prediction-track span {
  background: rgb(33 189 168 / 0.38);
}

.prediction-footer {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 15px;
}

.prediction-participation {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 6px;
  color: var(--ink-muted);
  font-size: 0.65rem;
  font-variant-numeric: tabular-nums;
}

.prediction-status {
  font-size: 0.64rem;
  font-weight: 850;
  white-space: nowrap;
}

.prediction-status[data-tone="ok"] {
  color: var(--mint-dark);
}

.prediction-status[data-tone="warn"] {
  color: var(--warn);
}

.prediction-status[data-tone="error"] {
  color: var(--error);
}

.prediction-volume::before {
  content: "·";
  margin-right: 6px;
}

.prediction-source {
  flex: 0 0 auto;
  color: var(--mint-dark);
  font-size: 0.7rem;
  font-weight: 820;
  white-space: nowrap;
}

.prediction-source::after {
  content: " ↗";
}

.prediction-source:focus-visible {
  border-radius: 4px;
  outline: 3px solid rgb(33 189 168 / 0.28);
  outline-offset: 3px;
}

.prediction-card[data-state="unavailable"] .prediction-outcome,
.prediction-card[data-state="unavailable"] .prediction-probability,
.prediction-card[data-state="unavailable"] .prediction-change {
  color: var(--ink-muted);
}

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

.indicator-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  gap: 6px;
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 6px 16px oklch(38% 0.03 235 / 0.05);
}

.indicator-label {
  min-width: 0;
  overflow: hidden;
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.indicator-status {
  align-self: start;
  padding: 3px 5px;
  border-radius: 6px;
  color: var(--up);
  background: var(--up-soft);
  font-size: 0.56rem;
  font-weight: 820;
  white-space: nowrap;
}

.indicator-item strong {
  grid-column: 1 / -1;
  color: var(--ink-strong);
  font-size: clamp(0.95rem, 1.5vw, 1.12rem);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.indicator-hint {
  grid-column: 1 / -1;
  color: var(--ink-muted);
  font-size: 0.64rem;
  font-weight: 700;
}

.indicator-item[data-state="unavailable"] strong {
  color: var(--ink-muted);
}

.indicator-item[data-status="stale"] .indicator-status {
  color: var(--warn);
  background: var(--warn-soft);
}

.indicator-item[data-status="unavailable"] .indicator-status {
  color: var(--error);
  background: var(--error-soft);
}

.data-note {
  margin-top: 12px;
  color: var(--ink-muted);
  font-size: 0.72rem;
  line-height: 1.6;
}

.skeleton {
  color: transparent !important;
  border-radius: 6px;
  background: linear-gradient(100deg, var(--line) 25%, var(--surface) 45%, var(--line) 65%);
  background-size: 220% 100%;
  animation: skeleton-shift 1.2s ease-in-out infinite;
}

.price-card-featured .skeleton {
  background: linear-gradient(100deg, rgb(4 169 116 / 0.72) 25%, rgb(255 255 255 / 0.7) 45%, rgb(4 169 116 / 0.72) 65%);
  background-size: 220% 100%;
}

.current-value.skeleton {
  min-width: 150px;
}

.change-badge.skeleton {
  min-width: 74px;
}

@keyframes skeleton-shift {
  to { background-position: -220% 0; }
}

.noscript-message {
  position: fixed;
  right: 20px;
  bottom: 20px;
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--surface);
  background: var(--ink-strong);
  font-size: 0.85rem;
}

@media (max-width: 1050px) {
  .dashboard-header {
    grid-template-columns: auto 1fr;
  }

  .dashboard-nav {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-self: center;
  }

  .header-state {
    grid-column: 2;
    grid-row: 1;
  }

  .price-card-featured {
    grid-column: span 6;
  }

  .price-card-compact {
    grid-column: span 6;
  }

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

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

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

@media (max-width: 720px) {
  .app-stage {
    padding: 0;
  }

  .dashboard-shell {
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .dashboard-header {
    gap: 10px 14px;
    padding: 12px 18px 10px;
  }

  .brand img {
    width: 126px;
  }

  .dashboard-nav {
    width: 100%;
  }

  .nav-link {
    min-width: 0;
    flex: 1;
    padding: 0 10px;
  }

  .header-state {
    gap: 6px;
  }

  #last-updated {
    display: none;
  }

  .dashboard-main {
    gap: 40px;
    padding: 24px 16px max(40px, env(safe-area-inset-bottom));
  }

  .price-grid {
    gap: 14px;
    margin-top: 0;
  }

  .price-card-featured,
  .price-card-compact {
    grid-column: 1 / -1;
  }

  .price-card-featured {
    min-height: 292px;
    padding: 24px;
  }

  .price-card-compact {
    min-height: 248px;
    padding: 20px;
  }

  .price-card-featured .current-value {
    font-size: clamp(2.2rem, 11vw, 2.85rem);
  }

  .price-card-compact .current-value {
    font-size: 1.85rem;
  }

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

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

  .flow-card {
    min-height: 300px;
    padding: 22px;
  }

  .flow-table {
    font-size: 0.8rem;
  }

  .signal-card {
    padding: 22px;
  }

  .market-context-row {
    gap: 12px;
  }

  .market-context-value {
    min-width: 82px;
  }

  .market-context-copy > strong {
    font-size: 0.86rem;
  }

  .market-context-copy > small {
    font-size: 0.72rem;
  }

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

  .prediction-card {
    min-height: 290px;
  }

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

  .indicator-item {
    padding: 12px 10px;
  }

  .indicator-item strong {
    font-size: 0.95rem;
  }
}

@media (max-width: 390px) {
  .dashboard-main {
    padding-inline: 14px;
  }

  .price-card-featured .current-value {
    font-size: 2.12rem;
  }

  .change-badge {
    white-space: normal;
  }

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

@media (pointer: coarse) {
  .nav-link {
    min-height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
