:root {
  color-scheme: dark;
  --bg: #090a0c;
  --surface: #0e1013;
  --surface-2: #12151a;
  --line: rgba(255,255,255,.075);
  --line-strong: rgba(255,255,255,.13);
  --text: #f4f5f6;
  --muted: #8c929d;
  --muted-2: #5c626d;
  --accent: #c8ff1a;
  --accent-rgb: 200,255,26;
  --brand: #c8ff1a;
  --brand-rgb: 200,255,26;
  --metal: #aab0b5;
  --metal-rgb: 170,176,181;
  --red: #ff7f94;
  --amber: #ffd382;
  --blue: #a7b9ff;
  --shadow: 0 24px 70px rgba(0,0,0,.28);
  --row-win-bg: rgba(178, 231, 34, .095);
  --row-win-hover: rgba(186, 239, 36, .145);
  --row-loss-bg: rgba(255, 92, 117, .105);
  --row-loss-hover: rgba(255, 92, 117, .16);
}

body.light {
  color-scheme: light;
  --bg: #f7f7f5;
  --surface: #ffffff;
  --surface-2: #f3f4f2;
  --line: rgba(20,25,35,.08);
  --line-strong: rgba(20,25,35,.14);
  --text: #121417;
  --muted: #6f747d;
  --muted-2: #a0a4aa;
  --accent: #647d00;
  --accent-rgb: 100,125,0;
  --brand: #b8ef00;
  --brand-rgb: 184,239,0;
  --metal: #676e73;
  --metal-rgb: 103,110,115;
  --red: #c83f58;
  --amber: #9f6b00;
  --blue: #4864c8;
  --shadow: 0 22px 60px rgba(30,40,50,.09);
  --row-win-bg: rgba(100, 125, 0, .085);
  --row-win-hover: rgba(100, 125, 0, .13);
  --row-loss-bg: rgba(200, 63, 88, .085);
  --row-loss-hover: rgba(200, 63, 88, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}
button, input { font: inherit; }
button { cursor: pointer; }

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .022;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.page {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -.02em;
}
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(var(--metal-rgb), .20);
  border-radius: 11px;
  background: #07090b;
  box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb), .035), 0 0 28px rgba(var(--brand-rgb), .045);
}
.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.brand-name {
  letter-spacing: -.025em;
}

.nav-right { display: flex; align-items: center; gap: 16px; }
.live-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.live-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 5px rgba(var(--brand-rgb), .08), 0 0 18px rgba(var(--brand-rgb), .18);
  animation: livePulse 2s infinite;
}
.theme-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  transition: background .2s ease, color .2s ease;
}
.theme-button:hover { background: var(--surface-2); color: var(--text); }
.theme-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.theme-button .moon { fill: currentColor; stroke: none; }
body.light .theme-button .moon { display: none; }
body:not(.light) .theme-button .sun { display: none; }

.current-market {
  position: relative;
  min-height: 286px;
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.current-market::before {
  content: "";
  position: absolute;
  z-index: 5;
  left: 34px;
  right: 34px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--metal-rgb), .20) 18%, rgba(var(--brand-rgb), .78) 50%, rgba(var(--metal-rgb), .20) 82%, transparent);
  opacity: .78;
}
.brand-glint {
  position: absolute;
  z-index: 1;
  right: 5%;
  top: -110px;
  width: 340px;
  height: 230px;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(var(--brand-rgb), .085), rgba(var(--brand-rgb), .018) 42%, transparent 70%);
  filter: blur(12px);
}
.market-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: .95;
}
.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.2) 36%, rgba(0,0,0,.8) 74%, transparent 100%);
  opacity: .65;
}
.market-line {
  position: absolute;
  width: 64%;
  height: 88%;
  right: -2%;
  top: 2%;
  overflow: visible;
}
.market-line path { fill: none; vector-effect: non-scaling-stroke; }
.line-ghost {
  stroke: rgba(var(--accent-rgb), .09);
  stroke-width: 13;
  filter: blur(6px);
}
.line-main {
  stroke: rgba(var(--accent-rgb), .56);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: 950;
  stroke-dashoffset: 950;
  animation: drawSignal 5.8s cubic-bezier(.4,0,.2,1) infinite;
}
.scan {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -12%;
  width: 12%;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb),.055), transparent);
  transform: skewX(-12deg);
  animation: scan 7s linear infinite;
}
.signal-orb {
  position: absolute;
  right: 9%;
  top: 24%;
  width: 142px;
  height: 142px;
  border: 1px solid rgba(var(--accent-rgb), .09);
  border-radius: 50%;
  display: grid;
  place-items: center;
  animation: breathe 3.8s ease-in-out infinite;
}
.signal-orb::before,
.signal-orb::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(var(--accent-rgb), .08);
  border-radius: 50%;
}
.signal-orb::before { inset: 18px; }
.signal-orb::after { inset: 46px; }
.signal-orb span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 25px rgba(var(--accent-rgb), .8), 0 0 70px rgba(var(--accent-rgb), .22);
}

.current-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 286px;
  flex-direction: column;
  justify-content: center;
  padding: 34px clamp(32px, 5vw, 62px);
  background: linear-gradient(90deg, var(--surface) 0%, var(--surface) 36%, rgba(14,16,19,.72) 53%, transparent 76%);
}
body.light .current-content {
  background: linear-gradient(90deg, var(--surface) 0%, var(--surface) 36%, rgba(255,255,255,.72) 53%, transparent 76%);
}
.current-label,
.section-kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--muted);
}
.section-kicker { color: var(--metal); }
.current-label { display: flex; align-items: center; gap: 9px; }
.pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb),.35);
  animation: livePulse 1.8s infinite;
}
.current-content h1 {
  margin: 12px 0 20px;
  max-width: 610px;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(20px, 3vw, 31px);
  line-height: 1.15;
  letter-spacing: -.04em;
  font-weight: 600;
}
.waiting-wrap { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.waiting-state { display: flex; align-items: center; gap: 10px; }
.waiting-word {
  font-size: clamp(34px, 5.3vw, 58px);
  line-height: .95;
  font-weight: 600;
  letter-spacing: -.06em;
  background: linear-gradient(100deg, var(--text) 12%, var(--metal) 72%, var(--text));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
body.light .waiting-word { color: var(--text); background: none; }
.waiting-dots { display: inline-flex; gap: 6px; align-self: flex-end; margin-bottom: 7px; }
.waiting-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted-2);
  animation: waiting 1.35s infinite;
}
.waiting-dots i:nth-child(2) { animation-delay: .16s; }
.waiting-dots i:nth-child(3) { animation-delay: .32s; }
.waiting-wrap p { margin: 0; font-size: 14px; color: var(--muted); }
.current-foot {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted-2);
  font-size: 12px;
}
.divider { width: 2px; height: 2px; border-radius: 50%; background: currentColor; }

.history { padding: 34px 0 42px; }
.history-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
}
.history h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -.045em;
  font-weight: 600;
}
.history-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 5px;
}
.history-winrate {
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.record-count { color: var(--muted); font-size: 13px; }

.toolbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(300px, 48vw);
}
.search svg { width: 16px; height: 16px; fill: none; stroke: var(--muted-2); stroke-width: 1.6; }
.search input {
  width: 100%;
  height: 62px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 14px;
}
.search input::placeholder { color: var(--muted-2); }
.search:focus-within svg { stroke: var(--accent); }
.search:focus-within { text-shadow: 0 0 24px rgba(var(--brand-rgb), .10); }
.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.filter-group { display: flex; gap: 2px; }
.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  transition: .2s ease;
}
.filter-chip:hover { color: var(--text); }
.filter-chip.active {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: inset 0 -1px 0 rgba(var(--brand-rgb), .68);
}

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 900px; }
th {
  height: 54px;
  padding: 0 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  color: var(--metal);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .075em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}
th:first-child, td:first-child { padding-left: 22px; }
th:last-child, td:last-child { padding-right: 22px; }
td {
  height: 78px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  white-space: nowrap;
}
tbody tr { transition: background .18s ease, box-shadow .18s ease; }
tbody tr.outcome-win { background: var(--row-win-bg); }
tbody tr.outcome-loss { background: var(--row-loss-bg); }
tbody tr.outcome-win:hover { background: var(--row-win-hover); box-shadow: inset 3px 0 0 var(--accent); }
tbody tr.outcome-loss:hover { background: var(--row-loss-hover); box-shadow: inset 3px 0 0 var(--red); }
.market-name {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: -.015em;
}
.prediction {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 650;
  letter-spacing: .01em;
}
.direction-arrow {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  border-radius: 6px;
  transition: transform .18s ease, background .18s ease;
}
.direction-arrow svg {
  width: 14px;
  height: 14px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.prediction.up { color: var(--accent); }
.prediction.down { color: var(--red); }
.prediction.up .direction-arrow { background: rgba(var(--accent-rgb), .10); }
.prediction.down .direction-arrow { background: rgba(255,143,159,.10); }
tbody tr:hover .direction-arrow { transform: translateY(-1px); }

.market-flag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 82px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 600;
}
.market-flag.caution { color: var(--red); }
.flag-icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(255,143,159,.10);
}
.flag-icon svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.market-flag.clear { opacity: .58; }
.market-flag.clear .clear-mark {
  width: 22px;
  text-align: center;
  color: var(--muted-2);
}

.confidence {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  padding: 6px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}
.confidence.low { color: var(--muted); background: rgba(var(--metal-rgb), .07); }
.confidence.medium { color: var(--blue); background: rgba(167,185,255,.08); border-color: rgba(167,185,255,.14); }
.confidence.high { color: var(--accent); background: rgba(var(--accent-rgb), .08); border-color: rgba(var(--accent-rgb), .16); }
.confidence.unknown { color: var(--muted-2); }
.result {
  display: inline-flex;
  align-items: center;
  min-width: 49px;
  justify-content: center;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}
.result.win { color: var(--accent); background: rgba(var(--accent-rgb), .08); }
.result.loss { color: var(--red); background: rgba(255,143,159,.08); }
.datetime { display: flex; flex-direction: column; gap: 3px; }
.datetime span:last-child { color: var(--muted-2); font-size: 12px; }
.empty-state { padding: 70px 0; text-align: center; color: var(--muted); font-size: 14px; }

.pagination {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted-2);
  font-size: 12px;
}
.page-controls, #pageButtons { display: flex; align-items: center; gap: 3px; }
.page-controls button {
  min-width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
}
.page-controls button:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
.page-controls button.active {
  background: rgba(var(--brand-rgb), .10);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb), .12);
}
.page-controls button:disabled { opacity: .25; cursor: default; }

.telegram-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 2px 0 18px;
  padding: 16px 18px;
  overflow: hidden;
  border: 1px solid rgba(42,171,238,.20);
  border-radius: 16px;
  background: linear-gradient(120deg, var(--surface), rgba(42,171,238,.045));
  box-shadow: 0 14px 34px rgba(0,0,0,.14);
}
.telegram-top-notice {
  animation: telegramNoticeIn .42s cubic-bezier(.2,.8,.2,1) both;
}
.telegram-panel::after {
  content: "";
  position: absolute;
  right: -52px;
  top: -82px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(42,171,238,.11), transparent 68%);
}
.telegram-copy {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.telegram-brand-badge {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(var(--metal-rgb), .18);
  border-radius: 12px;
  background: #07090b;
  box-shadow: 0 0 0 4px rgba(42,171,238,.045), 0 8px 22px rgba(0,0,0,.22);
}
.telegram-brand-badge img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.telegram-copy h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -.02em;
}
.telegram-copy p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.telegram-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(42,171,238,.27);
  border-radius: 10px;
  color: var(--text);
  background: rgba(42,171,238,.08);
  text-decoration: none;
  font-size: 12px;
  font-weight: 650;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.telegram-link:hover {
  transform: translateY(-1px);
  border-color: rgba(42,171,238,.52);
  background: rgba(42,171,238,.13);
}
.telegram-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #2aabee;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.telegram-arrow { color: var(--muted); font-size: 13px; }

@keyframes telegramNoticeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

footer {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 12px;
}

@keyframes waiting {
  0%, 70%, 100% { opacity: .23; transform: translateY(0); }
  35% { opacity: 1; transform: translateY(-4px); background: var(--accent); }
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .34); }
  70% { box-shadow: 0 0 0 7px rgba(var(--accent-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); }
}
@keyframes drawSignal {
  0% { stroke-dashoffset: 950; opacity: .3; }
  35%, 78% { stroke-dashoffset: 0; opacity: .8; }
  100% { stroke-dashoffset: -950; opacity: .2; }
}
@keyframes scan {
  from { left: -16%; }
  to { left: 112%; }
}
@keyframes breathe {
  0%,100% { transform: scale(.94); opacity: .55; }
  50% { transform: scale(1.04); opacity: 1; }
}

@media (max-width: 780px) {
  .page { width: min(100% - 28px, 1240px); }
  .nav { height: 68px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
  .current-market { min-height: 318px; margin-top: 14px; border-radius: 22px; }
  .current-content { min-height: 318px; padding: 28px 24px; justify-content: flex-end; background: linear-gradient(0deg, var(--surface) 0%, rgba(14,16,19,.92) 48%, transparent 100%); }
  body.light .current-content { background: linear-gradient(0deg, var(--surface) 0%, rgba(255,255,255,.92) 50%, transparent 100%); }
  .market-line { width: 128%; height: 55%; top: -7%; right: -26%; }
  .signal-orb { width: 112px; height: 112px; right: 11%; top: 6%; }
  .current-content h1 { margin: 9px 0 16px; }
  .waiting-word { font-size: clamp(38px, 12vw, 54px); }
  .waiting-wrap p { font-size: 13px; }
  .current-foot { margin-top: 17px; }
  .history { padding-top: 26px; }
  .history-title-row { align-items: flex-start; }
  .history-stats { gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
  .toolbar { min-height: auto; padding: 12px 0; flex-direction: column; align-items: stretch; }
  .toolbar-actions { justify-content: space-between; gap: 8px; }
  .search { width: 100%; }
  .search input { height: 44px; }
  .filter-group { justify-content: flex-start; }
  .pagination { align-items: flex-start; flex-direction: column; padding: 18px 0 24px; }
  .telegram-panel { align-items: stretch; flex-direction: column; gap: 12px; padding: 14px; }
  .telegram-copy { align-items: center; flex-direction: row; gap: 12px; }
  .telegram-link { width: 100%; justify-content: center; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; }
}

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

/* Live public feed states */
.live-state.connection-loading i {
  background: var(--metal);
  box-shadow: 0 0 0 5px rgba(var(--metal-rgb), .06);
}
.live-state.connection-error { color: var(--red); }
.live-state.connection-error i {
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(255,127,148,.07);
  animation-duration: 1s;
}

.current-published {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}
.current-prediction-line {
  display: flex;
  align-items: center;
  gap: 18px;
}
.current-direction {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(35px, 5.3vw, 58px);
  line-height: .95;
  font-weight: 600;
  letter-spacing: -.055em;
}
.current-direction.up { color: var(--accent); }
.current-direction.down { color: var(--red); }
.current-direction-arrow {
  width: .82em;
  height: .82em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 .82em;
  border-radius: .22em;
  background: rgba(var(--accent-rgb), .09);
}
.current-direction-arrow svg {
  width: 58%;
  height: 58%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.current-direction-label { display: inline-block; }
.current-direction.down .current-direction-arrow { background: rgba(255,127,148,.09); }
.current-confidence {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
  color: var(--metal);
  font-size: clamp(15px, 2vw, 20px);
  font-weight: 700;
  letter-spacing: .08em;
}
.current-confidence.low { color: var(--muted); background: rgba(var(--metal-rgb), .07); }
.current-confidence.medium { color: var(--blue); background: rgba(167,185,255,.08); border-color: rgba(167,185,255,.14); }
.current-confidence.high { color: var(--accent); background: rgba(var(--accent-rgb), .08); border-color: rgba(var(--accent-rgb), .16); }
.current-confidence.unknown { color: var(--muted-2); }
.current-settlement-line {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}
.current-caution {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .01em;
}
.current-caution-icon {
  width: 21px;
  height: 21px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(255,143,159,.10);
}
.current-caution-icon svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.current-status-divider { color: var(--muted-2); }

@media (max-width: 780px) {
  .current-prediction-line { gap: 13px; }
  .current-direction { font-size: clamp(38px, 12vw, 54px); }
  .current-confidence { min-width: 82px; padding: 8px 10px; font-size: clamp(14px, 4.5vw, 18px); }
  .current-settlement-line { font-size: 13px; }
}
