:root {
  --bg: #000000;
  --bg-panel: #000000;
  --bg-elevated: #0a0a0a;
  --border: #1a1a1a;
  --border-bright: #2a2a2a;
  --text: #ffffff;
  --text-dim: #888888;
  --text-muted: #555555;
  --accent-high: #ff6b6b;
  --accent-medium: #f0c040;
  --accent-low: #888888;
  --accent-pos: #6ee7a0;
  --accent-neg: #ff8a8a;
  --accent: var(--accent-pos);
  --font: "Kode Mono", ui-monospace, monospace;
  --font-mono: var(--font);
  --gap: 12px;
  --sticky-nav-offset: 56px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  color-scheme: dark;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: var(--text);
  text-decoration: none;
}

a:hover {
  color: var(--text-dim);
  text-decoration: underline;
}

.app {
  max-width: 1680px;
  margin: 0 auto;
  padding: 16px;
  position: relative;
  z-index: 1;
}

.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.015) 0,
    rgba(255, 255, 255, 0.015) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.35;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 255, 255, 0.04), transparent),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.mono-sm {
  font-family: var(--font);
  font-size: 11px;
  line-height: 1.6;
}

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 12px 16px;
  padding-right: 58px;
  margin-bottom: var(--gap);
  border: 1px solid var(--border);
  background: var(--bg);
}

.topbar-brand-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-shrink: 0;
  min-width: 0;
}

.topbar-brand-row .lang-toggle {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  z-index: 2;
}

.topbar-date-row,
.topbar-status-row {
  display: contents;
}

.topbar-date-row .pill-live-badge {
  flex-shrink: 0;
}

.topbar-status-sep {
  display: none;
  color: var(--text-muted);
  user-select: none;
}

.topbar-clock {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  letter-spacing: 0.08em;
}

.brand-icao {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.brand-sep {
  color: var(--text-muted);
}

.brand-name {
  font-size: 12px;
  color: var(--text-dim);
}

.station-switch {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--border-bright);
  background: var(--bg-elevated);
  padding: 3px;
  gap: 3px;
  flex-shrink: 0;
  border-radius: 0;
}

.station-seg {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 78px;
  min-height: 42px;
  padding: 6px 12px;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--bg);
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 11px;
  line-height: 1.1;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.station-seg-code {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
}

.station-seg-label {
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1;
}

.station-seg:hover:not(.active):not(:disabled) {
  color: var(--text);
  border-color: var(--border-bright);
  background: rgba(255, 255, 255, 0.04);
}

.station-seg.active {
  color: var(--accent-pos);
  border-color: rgba(110, 231, 160, 0.5);
  background: rgba(110, 231, 160, 0.1);
  box-shadow: inset 0 0 0 1px rgba(110, 231, 160, 0.12);
}

.station-seg.active .station-seg-label {
  color: rgba(110, 231, 160, 0.8);
}

.station-seg[data-station="LTFM"].active {
  color: var(--accent-medium);
  border-color: rgba(240, 192, 64, 0.5);
  background: rgba(240, 192, 64, 0.1);
  box-shadow: inset 0 0 0 1px rgba(240, 192, 64, 0.12);
}

.station-seg[data-station="LTFM"].active .station-seg-label {
  color: rgba(240, 192, 64, 0.85);
}

.station-seg:disabled {
  opacity: 0.55;
  cursor: wait;
}

.station-seg.loading {
  opacity: 0.7;
  cursor: wait;
}

.station-seg.loading::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 4px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(110, 231, 160, 0.8), transparent);
  animation: station-load 1s linear infinite;
}

.station-seg[data-station="LTFM"].loading::after {
  background: linear-gradient(90deg, transparent, rgba(240, 192, 64, 0.85), transparent);
}

@keyframes station-load {
  0% { transform: translateX(-100%); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

/* legacy alias */
.station-toggle {
  display: inline-flex;
}

.station-btn {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  cursor: pointer;
}

.station-btn.active {
  color: var(--accent);
  border-color: rgba(110, 231, 160, 0.45);
  background: rgba(110, 231, 160, 0.08);
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

.date-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 11px;
  padding: 4px 8px;
  cursor: pointer;
}

.nav-btn:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--border-bright);
  background: rgba(255, 255, 255, 0.04);
}

.nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.nav-btn.active {
  color: var(--text);
  border-color: var(--border-bright);
}

.nav-btn-back {
  color: var(--accent-pos);
  border-color: rgba(110, 231, 160, 0.45);
  background: rgba(110, 231, 160, 0.08);
  font-weight: 600;
  letter-spacing: 0.06em;
  min-height: 36px;
  padding: 6px 12px;
}

.nav-btn-back:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--accent-pos);
  background: rgba(110, 231, 160, 0.16);
}

.lang-toggle {
  min-width: 44px;
  min-height: 44px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-pos);
  border-color: rgba(110, 231, 160, 0.45);
  background: rgba(110, 231, 160, 0.08);
}

.lang-toggle[aria-pressed="true"] {
  color: var(--text);
  background: rgba(110, 231, 160, 0.18);
  box-shadow: inset 0 0 0 1px rgba(110, 231, 160, 0.35);
}

.lang-toggle:hover {
  border-color: var(--accent-pos);
  background: rgba(110, 231, 160, 0.16);
}

.nav-jump.nav-back {
  flex-shrink: 0;
  min-height: 44px;
  padding: 10px 14px;
  border-color: rgba(110, 231, 160, 0.45);
  background: rgba(110, 231, 160, 0.08);
  color: var(--accent-pos);
  font-weight: 600;
}

.nav-jump.nav-back:hover {
  border-color: var(--accent-pos);
  background: rgba(110, 231, 160, 0.16);
  color: var(--text);
}

.panel-head #outlook-back-btn {
  margin-left: auto;
}

.alpha-command,
.hero-row,
.hero,
.tomorrow,
.panel,
.link-dock,
.command-strip {
  scroll-margin-top: calc(var(--sticky-nav-offset) + 12px);
}

.section-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  margin-bottom: var(--gap);
  border: 1px solid var(--border-bright);
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.section-nav::-webkit-scrollbar {
  display: none;
}

.nav-indicator {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  border-radius: 2px;
  background: rgba(110, 231, 160, 0.12);
  border: 1px solid rgba(110, 231, 160, 0.45);
  box-shadow:
    0 0 18px rgba(110, 231, 160, 0.25),
    inset 0 0 12px rgba(110, 231, 160, 0.08);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1),
    width 0.3s ease,
    height 0.3s ease,
    opacity 0.2s ease;
  will-change: transform, width;
}

.nav-indicator.visible {
  opacity: 1;
}

.nav-jump {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 10px;
  letter-spacing: 0.12em;
  padding: 10px 14px;
  cursor: pointer;
  min-height: 40px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.nav-jump.nav-primary.active {
  color: var(--text);
  border-color: transparent;
  background: transparent;
}

.nav-jump:active {
  transform: scale(0.97);
}

.nav-jump:hover,
.nav-jump:focus-visible {
  color: var(--text);
  border-color: var(--text-dim);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.nav-refresh {
  margin-left: auto;
  border-color: var(--border-bright);
}

.nav-label-short {
  display: none;
}

.action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--gap);
  padding: 4px 0;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--border-bright);
  color: var(--text);
  font-family: var(--font);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.15s ease;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text-dim);
  text-decoration: none;
  transform: translateY(-1px);
}

.action-btn.primary {
  background: var(--text);
  color: #000;
  border-color: var(--text);
  font-weight: 700;
}

.action-btn.primary:hover {
  background: #ddd;
  color: #000;
}

/* Alpha command — kompakt tahmin kartı */
.alpha-command {
  margin-bottom: var(--gap);
  padding: 18px 22px;
  border: 1px solid var(--border-bright);
  background: linear-gradient(135deg, #080808 0%, #000 50%, #0a0a0a 100%);
  box-shadow: inset 0 -40px 60px -50px rgba(110, 231, 160, 0.06);
  scroll-margin-top: 72px;
}

.alpha-command.verdict-high {
  border-color: rgba(110, 231, 160, 0.35);
}

.tag-alpha {
  color: var(--accent-pos);
  border-color: rgba(110, 231, 160, 0.4);
}

.alpha-score-badge {
  color: var(--accent-pos);
  letter-spacing: 0.08em;
}

.alpha-grid {
  display: grid;
  grid-template-columns: minmax(130px, 180px) minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
}

.alpha-play {
  min-width: 0;
}

.alpha-verdict-wrap {
  min-width: 0;
  overflow: hidden;
}

/* Alpha mega terminal (legacy — kullanılmıyor) */
.alpha-ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: #050505;
  margin-bottom: 0;
}

.alpha-ticker-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  padding: 8px 0;
  color: var(--accent-pos);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: ticker-scroll 40s linear infinite;
}

.alpha-ticker-track span {
  flex-shrink: 0;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.alpha-mega {
  position: relative;
  margin-bottom: var(--gap);
  padding: 22px 24px 24px;
  border: 1px solid rgba(110, 231, 160, 0.22);
  background: linear-gradient(160deg, #0c0f0c 0%, #000 45%, #080808 100%);
  box-shadow:
    inset 0 -80px 100px -70px rgba(110, 231, 160, 0.08),
    0 0 60px -20px rgba(110, 231, 160, 0.12);
  overflow: hidden;
}

.alpha-mega.verdict-high {
  border-color: rgba(110, 231, 160, 0.45);
  box-shadow:
    inset 0 -80px 100px -70px rgba(110, 231, 160, 0.12),
    0 0 80px -15px rgba(110, 231, 160, 0.25);
}

.alpha-mega-glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 60%;
  background: radial-gradient(ellipse at 50% 0%, rgba(110, 231, 160, 0.12), transparent 70%);
  pointer-events: none;
}

.tag-alpha {
  color: var(--accent-pos);
  border-color: rgba(110, 231, 160, 0.4);
}

.nav-jump.nav-alpha {
  color: var(--accent-pos);
  border-color: rgba(110, 231, 160, 0.35);
}

.alpha-topline {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.alpha-headline {
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.alpha-close {
  margin-left: auto;
  color: var(--text-muted);
}

.alpha-hud {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 24px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.alpha-score-ring {
  position: relative;
  width: 120px;
  height: 120px;
}

.score-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 8;
}

.score-fill {
  fill: none;
  stroke: var(--accent-pos);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s ease;
}

.score-fill.tier-s { stroke: #6ee7a0; filter: drop-shadow(0 0 8px rgba(110, 231, 160, 0.6)); }
.score-fill.tier-a { stroke: #7dd3fc; }
.score-fill.tier-b { stroke: #f0c040; }
.score-fill.tier-c { stroke: #666; }

.score-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-value {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.score-tier {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
}

.score-tier.tier-s { color: var(--accent-pos); }

.alpha-core {
  min-width: 0;
}

.alpha-verdict {
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.alpha-tmax-display {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.alpha-tmax-line {
  display: flex;
  align-items: baseline;
  gap: 2px;
  line-height: 1;
}

.alpha-tmax-num {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.08);
}

.alpha-tmax-unit {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-dim);
}

.alpha-certainty-pill {
  display: inline-block;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.alpha-certainty-pill.net {
  border-color: rgba(110, 231, 160, 0.35);
  color: var(--accent-pos);
}

.alpha-certainty-pill.orta {
  border-color: rgba(240, 192, 64, 0.35);
  color: var(--accent-medium);
}

.alpha-certainty-pill.belirsiz {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
}

.alpha-wu-sub {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

.alpha-verdict.high .alpha-tmax-num {
  text-shadow: 0 0 40px rgba(110, 231, 160, 0.25);
}

.alpha-verdict.low .alpha-tmax-num {
  color: var(--text);
}

.alpha-verdict.med .alpha-tmax-num {
  color: var(--text);
}

.alpha-play-bracket {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.2;
  word-break: break-word;
}

.alpha-play-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px 20px;
}

.alpha-play-grid .alpha-bracket-lead {
  font-size: 18px;
}

.alpha-play-grid .k {
  display: block;
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  margin-bottom: 2px;
}

.alpha-play-grid strong {
  font-size: 16px;
}

.alpha-play-empty {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.5;
}

.alpha-play-empty.forecast-msg strong {
  color: var(--accent-medium);
}

.alpha-cta-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}

.alpha-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 16px 22px;
  background: var(--accent-pos);
  color: #000;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  border: none;
  text-transform: uppercase;
  text-align: center;
}

.alpha-cta.pulse {
  animation: cta-pulse 2.5s ease-in-out infinite;
}

@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(110, 231, 160, 0.45); }
  50% { box-shadow: 0 0 0 12px rgba(110, 231, 160, 0); }
}

.alpha-cta .cta-sub {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  opacity: 0.75;
  margin-top: 4px;
}

.alpha-cta:hover {
  background: #8ef0b8;
  color: #000;
  text-decoration: none;
}

.alpha-cta.secondary {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border-bright);
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font);
  animation: none;
}

.alpha-metrics {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.metric-cell {
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
}

.metric-cell.bad strong { color: var(--accent-neg); }
.metric-cell.ok strong { color: var(--accent-pos); }

.metric-cell .mk {
  display: block;
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.metric-cell strong {
  font-size: 13px;
}

.alpha-dual {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  margin-top: 18px;
}

.alpha-dual-col .subhead {
  margin-bottom: 10px;
}

.alpha-dual-col .subhead.mt {
  margin-top: 16px;
}

.bracket-ladder {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ladder-row {
  display: grid;
  grid-template-columns: 72px 1fr 44px 44px 52px;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font);
  font-size: 11px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.ladder-row.rec {
  border-color: rgba(110, 231, 160, 0.35);
  background: rgba(110, 231, 160, 0.04);
}

.ladder-row:hover {
  border-color: var(--border-bright);
}

.ladder-label {
  white-space: nowrap;
}

.ladder-tag {
  font-size: 8px;
  padding: 1px 4px;
  margin-left: 4px;
  border: 1px solid var(--border);
  vertical-align: middle;
}

.ladder-tag.wu { border-color: rgba(240, 192, 64, 0.5); color: #f0c040; }
.ladder-tag.rec { border-color: rgba(110, 231, 160, 0.5); color: var(--accent-pos); }
.ladder-tag.edge { border-color: rgba(125, 211, 252, 0.5); color: #7dd3fc; }

.ladder-bar-wrap {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.ladder-bar {
  height: 100%;
  background: linear-gradient(90deg, rgba(110, 231, 160, 0.4), var(--accent-pos));
  border-radius: 2px;
}

.ladder-price, .ladder-fair, .ladder-edge {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.playbook-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.play-step {
  display: flex;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.step-n {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent-pos);
  color: var(--accent-pos);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.step-body {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}

.alpha-checklist {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.check-row {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  font-size: 11px;
  border: 1px solid var(--border);
}

.check-row.ok { border-color: rgba(110, 231, 160, 0.2); }
.check-row.fail { border-color: rgba(255, 100, 100, 0.15); }

.check-icon {
  font-weight: 700;
}

.check-row.ok .check-icon { color: var(--accent-pos); }
.check-row.fail .check-icon { color: var(--accent-neg); }

.check-detail {
  color: var(--text-muted);
  font-size: 10px;
}

.alpha-edge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.edge-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: var(--font);
  font-size: 11px;
  cursor: pointer;
}

.edge-chip.lead {
  border-color: var(--accent-pos);
  box-shadow: 0 0 0 1px rgba(110, 231, 160, 0.2);
}

.edge-chip .ec-bracket {
  font-weight: 600;
}

.edge-chip .ec-price {
  color: var(--text);
}

.edge-chip .ec-fair {
  color: var(--text-muted);
  font-size: 10px;
}

.edge-chip .ec-edge {
  font-size: 10px;
}

.pass-reason {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.45;
}

.edge-chip:hover {
  border-color: var(--text-dim);
}

.alpha-snipes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.snipe-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  font-size: 11px;
  background: rgba(255, 255, 255, 0.02);
}

.snipe-card.hot {
  border-color: rgba(125, 211, 252, 0.25);
}

.snipe-card.insider {
  border-color: rgba(240, 192, 64, 0.35);
}

.snipe-dir {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.snipe-meta {
  color: var(--text-dim);
  font-size: 10px;
}

.snipe-reason {
  flex: 1 1 100%;
  color: var(--text-dim);
  font-size: 10px;
}

.alpha-why {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--text-dim);
  font-size: 11px;
}

.alpha-why li {
  margin-bottom: 4px;
}

@media (max-width: 1100px) {
  .alpha-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .alpha-dual {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .alpha-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .alpha-verdict-wrap {
    text-align: center;
  }

  .alpha-tmax-display {
    align-items: center;
  }

  .alpha-tmax-num {
    font-size: 64px;
  }

  .alpha-cta-wrap {
    width: 100%;
  }

  .alpha-cta {
    min-width: 0;
    width: 100%;
  }

  .alpha-hud {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .alpha-score-ring {
    margin: 0 auto;
  }

  .alpha-play-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
  }

  .alpha-edge-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .edge-chip {
    width: 100%;
    justify-content: space-between;
  }

  .ladder-row {
    grid-template-columns: 60px 1fr 40px 48px;
  }

  .ladder-fair {
    display: none;
  }
}

.panel-actions {
  margin-left: auto;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.panel-link {
  font-size: 9px;
  letter-spacing: 0.1em;
  padding: 6px 10px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.panel-link:hover {
  color: var(--text);
  border-color: var(--text-dim);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
}

.top-market-hit {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.top-market-hit:hover {
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.top-market-main {
  display: block;
  font-size: 20px;
  font-weight: 700;
  margin: 4px 0;
}

.clickable {
  cursor: pointer;
}

.clickable-row {
  cursor: pointer;
}

.data-table tbody tr.clickable-row:hover td {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.row-go {
  color: var(--text-muted);
  text-align: center;
  width: 28px;
}

.model-row-link {
  display: grid;
  grid-template-columns: 80px 1fr 48px 20px;
  align-items: center;
  gap: 8px;
  padding: 8px 6px;
  margin: -2px -6px;
  border: 1px solid transparent;
  color: inherit;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.15s ease;
}

.model-row-link:hover {
  border-color: var(--border-bright);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
}

.row-arrow {
  color: var(--text-muted);
  font-size: 11px;
}

.hour-slot {
  cursor: pointer;
  font-family: var(--font);
  color: inherit;
  width: 100%;
  transition: all 0.15s ease;
}

.hour-slot:hover,
.hour-slot:focus-visible {
  border-color: var(--text-dim);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
  transform: translateY(-2px);
}

.outlook-row.clickable {
  width: 100%;
  cursor: pointer;
  font-family: var(--font);
  color: inherit;
  text-align: left;
  transition: all 0.15s ease;
}

.outlook-row.clickable:hover,
.outlook-row.clickable:focus-visible {
  border-color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  outline: none;
}

.source-badge.clickable {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  transition: all 0.15s ease;
}

.source-badge.clickable:hover {
  color: var(--text);
  border-color: var(--text-dim);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
}

.bet-cta {
  display: block;
  margin-top: 12px;
  padding: 12px;
  text-align: center;
  border: 1px solid var(--border-bright);
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 600;
  transition: all 0.15s ease;
}

.bet-cta:hover {
  background: var(--text);
  color: #000;
  text-decoration: none;
}

.inline-link {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  font-size: 10px;
}

.inline-link:hover {
  border-color: var(--text-dim);
  text-decoration: none;
}

.dock-title {
  width: 100%;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.dock-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.dock-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.bet-badge.clickable:hover {
  border-color: var(--text);
  color: var(--text);
}

.intel-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.intel-chip {
  border: 1px solid var(--border);
  padding: 4px 8px;
  font-size: 10px;
  color: var(--text-dim);
}

.pill-live.fetching .dot {
  animation: pulse 0.8s ease-in-out infinite;
}

.pill-live.active-pulse .dot {
  animation: livePulse 1.4s ease-in-out infinite;
  background: var(--accent-pos);
  box-shadow: 0 0 0 0 rgba(18, 183, 106, 0.45);
}

.pill-live.active-pulse {
  border-color: rgba(18, 183, 106, 0.35);
  color: var(--accent-pos);
}

@keyframes livePulse {
  0% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(18, 183, 106, 0.45);
  }
  70% {
    opacity: 0.85;
    box-shadow: 0 0 0 6px rgba(18, 183, 106, 0);
  }
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(18, 183, 106, 0);
  }
}

#refresh-countdown {
  letter-spacing: 0.08em;
  font-size: 9px;
}

.pill-dim.ok {
  color: var(--accent-pos);
}

.pill-dim.err {
  color: var(--accent-high);
}

.line-alarm {
  color: var(--accent-high);
  font-weight: 700;
  margin-bottom: 6px;
}

.line-alarm-detail {
  color: var(--text-dim);
  line-height: 1.45;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.line-dim {
  color: var(--text-muted);
  margin-bottom: 6px;
}

.stat-value.risk.HIGH {
  color: var(--accent-high);
}

.stat-value.risk.MEDIUM {
  color: var(--accent-medium);
}

.stat-value.risk.LOW {
  color: var(--accent-low);
}

.risk.HIGH {
  color: var(--accent-high);
}

.risk.MEDIUM {
  color: var(--accent-medium);
}

.risk.LOW {
  color: var(--text-dim);
}

.edge-pos {
  color: var(--accent-pos);
}

.edge-neg {
  color: var(--accent-neg);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--border-bright);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.pill-live .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text);
}

.pill-dim {
  color: var(--text-muted);
}

/* Hero row — bugün + yarın */
.hero-row {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: var(--gap);
  margin-bottom: var(--gap);
}

.hero-row .hero {
  margin-bottom: 0;
}

.tomorrow {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 24px;
  border: 1px solid var(--border-bright);
  background: linear-gradient(160deg, #060606 0%, #000 60%, #0a0a0a 100%);
  position: relative;
  overflow: hidden;
}

.tomorrow.hidden {
  display: none;
}

.tomorrow.mood-GUNESLI {
  box-shadow: inset 0 -60px 100px -70px rgba(240, 192, 64, 0.07);
}

.tomorrow.mood-BULUTLU {
  box-shadow: inset 0 -60px 100px -70px rgba(148, 163, 184, 0.08);
}

.tomorrow.mood-YAGMUR {
  box-shadow: inset 0 -60px 100px -70px rgba(56, 189, 248, 0.08);
}

.tomorrow-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tomorrow-head h2 {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.tomorrow-head .weather-mood {
  margin-left: auto;
}

.tomorrow-tmax {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
}

.tomorrow-tmax .tmax-num.compact {
  font-size: 52px;
  line-height: 1;
}

.tomorrow-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--text-dim);
}

.tomorrow-meta strong {
  color: var(--text);
}

.top-market-card.compact {
  margin: 0;
  padding: 10px 12px;
}

.top-market-card.compact .top-market-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.top-market-card.compact .tm-bracket {
  font-weight: 600;
  color: var(--accent-pos);
}

.top-market-card.compact .tm-price {
  margin-left: auto;
  font-family: var(--font-mono);
}

.hourly-slots.compact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.hourly-slots.compact .hour-slot {
  padding: 6px 4px;
  font-size: 10px;
}

.tomorrow-models {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tomorrow-models .model-chip {
  padding: 3px 8px;
  border: 1px solid var(--border);
  font-size: 10px;
  color: var(--text-dim);
}

.tomorrow-cta {
  margin-top: auto;
  align-self: flex-start;
  padding: 8px 14px;
  border: 1px solid var(--border-bright);
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  cursor: pointer;
  text-transform: uppercase;
}

.tomorrow-cta:hover,
.tomorrow-cta:focus-visible {
  border-color: var(--accent-pos);
  color: var(--accent-pos);
}

.nav-jump.nav-tomorrow.hidden {
  display: none;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  padding: 28px;
  margin-bottom: var(--gap);
  border: 1px solid var(--border-bright);
  background: linear-gradient(135deg, #050505 0%, #000 55%, #080808 100%);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  scroll-margin-top: 72px;
  min-height: 280px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    120deg,
    rgba(110, 231, 160, 0.35),
    rgba(56, 189, 248, 0.2),
    rgba(240, 192, 64, 0.25),
    rgba(110, 231, 160, 0.35)
  );
  background-size: 220% 220%;
  animation: hero-border-shift 8s ease infinite;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.hero.mood-GUNESLI {
  box-shadow: inset 0 -80px 120px -80px rgba(240, 192, 64, 0.08);
}

.hero.mood-BULUTLU {
  box-shadow: inset 0 -80px 120px -80px rgba(148, 163, 184, 0.1);
}

.hero.mood-YAGMUR {
  box-shadow: inset 0 -80px 120px -80px rgba(56, 189, 248, 0.1);
}

.hero-weather-scene {
  position: relative;
  width: 100%;
  height: 220px;
  min-height: 180px;
  margin: 0 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #030303;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  overflow: hidden;
  isolation: isolate;
}

.hero-weather-scene[data-windy-active="1"] {
  background: #020204;
  cursor: default;
  touch-action: auto;
}

/* .hero-left * sets pointer-events:auto — must beat it so iframe receives pan/drag */
.hero-weather-scene[data-windy-active="1"] .hero-windy-vignette,
.hero-weather-scene[data-windy-active="1"] .hero-windy-scanlines,
.hero-weather-scene[data-windy-active="1"] .hero-scene-canvas,
.hero-weather-scene[data-windy-active="1"] .hero-windy-stats,
.hero-weather-scene[data-windy-active="1"] .hero-windy-loading,
.hero-weather-scene[data-windy-active="1"] .hero-scene-hud {
  pointer-events: none;
}

.hero-weather-scene[data-windy-active="1"] .hero-windy-frame {
  pointer-events: auto;
}

.hero-windy-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 40%, rgba(110, 231, 160, 0.08), transparent 60%),
    #050508;
  background-size: 28px 28px, 28px 28px, auto, auto;
}

.hero-windy-frame {
  position: absolute;
  inset: -12%;
  width: 124%;
  height: 124%;
  border: 0;
  pointer-events: auto;
  filter: saturate(1.05) contrast(1.08) brightness(0.92);
  opacity: 0.96;
}

.hero-windy-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3, 3, 6, 0.55) 0%, transparent 18%, transparent 72%, rgba(3, 3, 6, 0.75) 100%),
    radial-gradient(ellipse at center, transparent 35%, rgba(3, 3, 6, 0.45) 100%);
  z-index: 1;
}

.hero-windy-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.35) 2px,
    rgba(255, 255, 255, 0.35) 3px
  );
  z-index: 2;
}

.hero-windy-stats {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  z-index: 4;
  padding: 4px 8px;
  border: 1px solid rgba(110, 231, 160, 0.18);
  background: rgba(0, 0, 0, 0.62);
  color: rgba(110, 231, 160, 0.82);
  letter-spacing: 0.06em;
  font-size: 9px;
  pointer-events: none;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-windy-loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 3, 6, 0.72);
  color: rgba(110, 231, 160, 0.75);
  letter-spacing: 0.12em;
  font-size: 10px;
  pointer-events: none;
}

.hero-windy-loading.hidden {
  display: none;
}

.hero-weather-scene[data-scene-day="tomorrow"] .hero-windy-stats {
  color: rgba(240, 192, 64, 0.85);
  border-color: rgba(240, 192, 64, 0.22);
}

.hero-weather-scene:active {
  cursor: grabbing;
}

.hero-scene-canvas {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-weather-scene[data-windy-active="1"] .hero-scene-canvas {
  mix-blend-mode: screen;
  opacity: 0.72;
}

/* CSS wireframe fallback when canvas/WebGL boot fails */
.hero-weather-scene[data-scene-fallback="1"]::before,
.hero-weather-scene[data-scene-fallback="1"]::after {
  content: "";
  position: absolute;
  top: 38%;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid rgba(110, 231, 160, 0.55);
  box-shadow:
    0 0 24px rgba(110, 231, 160, 0.18),
    inset 0 0 18px rgba(110, 231, 160, 0.08);
  background: radial-gradient(circle at 35% 35%, rgba(240, 192, 64, 0.2), transparent 62%);
  animation: hero-scene-orb-drift 7s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

.hero-weather-scene[data-scene-fallback="1"]::before {
  left: 22%;
}

.hero-weather-scene[data-windy-active="1"][data-scene-fallback="1"]::before {
  left: 50%;
  transform: translateX(-50%);
}

.hero-weather-scene[data-windy-active="1"][data-scene-fallback="1"]::after {
  display: none;
}

.hero-weather-scene[data-scene-fallback="1"] .hero-scene-canvas {
  opacity: 0;
}

@keyframes hero-scene-orb-drift {
  0% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(-8px) scale(1.04);
  }
}

.hero-scene-tags {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  pointer-events: auto;
  z-index: 5;
}

.scene-tag {
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.55);
  letter-spacing: 0.1em;
  font-size: 9px;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.scene-tag:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.scene-tag.active {
  box-shadow: 0 0 12px rgba(110, 231, 160, 0.12);
}

.scene-tag-now {
  color: rgba(110, 231, 160, 0.85);
  border-color: rgba(110, 231, 160, 0.25);
}

.scene-tag-now.active {
  color: rgba(110, 231, 160, 0.95);
  border-color: rgba(110, 231, 160, 0.45);
  background: rgba(110, 231, 160, 0.08);
}

.scene-tag-future {
  color: rgba(240, 192, 64, 0.85);
  border-color: rgba(240, 192, 64, 0.25);
}

.scene-tag-future.active {
  color: rgba(240, 192, 64, 0.95);
  border-color: rgba(240, 192, 64, 0.45);
  background: rgba(240, 192, 64, 0.08);
}

.hero-scene-hud {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.45);
  color: var(--text-muted);
  letter-spacing: 0.08em;
  font-size: 10px;
  pointer-events: none;
  opacity: 0.7;
  z-index: 5;
}

.hero-weather-scene[data-mood="gunesli"] .hero-scene-hud {
  color: rgba(240, 192, 64, 0.65);
}

.hero-weather-scene[data-mood="bulutlu"] .hero-scene-hud {
  color: rgba(148, 163, 184, 0.75);
}

.hero-weather-scene[data-mood="yagmur"] .hero-scene-hud {
  color: rgba(56, 189, 248, 0.75);
}

.hero-left,
.hero-right {
  position: relative;
  z-index: 1;
}

.hero-left *,
.hero-right * {
  pointer-events: auto;
}

.hero-tmax-wrap {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin: 4px 0 8px;
}

.confidence-ring {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  pointer-events: none;
}

.conf-ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.conf-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 6;
}

.conf-ring-fill {
  fill: none;
  stroke: var(--accent-medium);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.34, 1.1, 0.64, 1), stroke 0.3s ease;
}

.conf-ring-fill.ring-high {
  stroke: var(--accent-pos);
  filter: drop-shadow(0 0 6px rgba(110, 231, 160, 0.55));
}

.conf-ring-fill.ring-med {
  stroke: var(--accent-medium);
}

.conf-ring-fill.ring-low {
  stroke: var(--text-muted);
}

.hero-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.weather-mood {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.mood-badge,
.gauge-level-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid var(--border);
  border-radius: 4px;
  line-height: 1.2;
  white-space: nowrap;
}

.mood-badge.tone-pos,
.gauge-level-badge.tone-pos,
.certainty-badge.tone-pos {
  color: #6ee7a0;
  border-color: rgba(110, 231, 160, 0.35);
  background: rgba(110, 231, 160, 0.08);
}

.mood-badge.tone-warn,
.gauge-level-badge.tone-warn,
.certainty-badge.tone-warn {
  color: #fde68a;
  border-color: rgba(240, 192, 64, 0.35);
  background: rgba(240, 192, 64, 0.08);
}

.mood-badge.tone-info,
.gauge-level-badge.tone-info,
.certainty-badge.tone-info {
  color: #7dd3fc;
  border-color: rgba(125, 211, 252, 0.35);
  background: rgba(125, 211, 252, 0.08);
}

.mood-badge.tone-alert,
.gauge-level-badge.tone-alert,
.certainty-badge.tone-alert {
  color: #ff8a8a;
  border-color: rgba(255, 107, 107, 0.35);
  background: rgba(255, 107, 107, 0.1);
}

.forecast-badge {
  margin-left: auto;
  padding: 4px 10px;
  font-size: 10px;
  letter-spacing: 0.14em;
  border: 1px solid var(--border-bright);
  text-transform: uppercase;
  color: var(--text-dim);
  background: transparent;
}

.forecast-badge.clickable:hover {
  border-color: var(--accent-pos);
  color: var(--accent-pos);
}

/* Legacy aliases — eski sınıf adları */
.bet-badge {
  margin-left: auto;
  padding: 4px 10px;
  font-size: 10px;
  letter-spacing: 0.14em;
  border: 1px solid var(--border-bright);
  text-transform: uppercase;
}

.bet-badge.bet {
  color: #000;
  background: var(--accent-pos);
  border-color: var(--accent-pos);
}

.bet-badge.skip {
  color: var(--text-dim);
  background: transparent;
}

.certainty-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding: 4px 8px;
  font-size: 11px;
  border: 1px solid var(--border);
  color: var(--text-dim);
}

.certainty-badge .cert-label {
  line-height: 1.2;
}

.top-market-card {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border-bright);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
}

.top-market-card a {
  color: var(--text);
  font-weight: 600;
}

.top-market-card .sub {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.prior-day-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 10px;
  border-left: 2px solid var(--accent-medium);
  color: var(--text-dim);
  font-size: 11px;
}

.prior-day-note.hidden {
  display: none;
}

.oracle-notes {
  margin-top: 12px;
  color: var(--text-dim);
}

.oracle-notes .note-line {
  padding: 4px 0 4px 10px;
  border-left: 1px solid var(--border);
  margin-bottom: 4px;
}

.smart-consensus {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  color: var(--text-dim);
}

.smart-consensus strong {
  color: var(--text);
}

.command-strip {
  margin-bottom: var(--gap);
  padding: 14px 16px;
}

.hourly-slots {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.hour-slot {
  padding: 10px 8px;
  border: 1px solid var(--border);
  text-align: center;
  background: var(--bg-elevated);
  transition: border-color 0.2s, transform 0.2s;
}

.hour-slot.peak {
  border-color: rgba(240, 192, 64, 0.85);
  background: rgba(240, 192, 64, 0.06);
  box-shadow:
    0 0 0 1px rgba(240, 192, 64, 0.25),
    0 0 20px rgba(240, 192, 64, 0.18);
  animation: peak-glow 2.4s ease-in-out infinite;
}

.hour-slot.peak .t {
  color: var(--accent-medium);
}

@keyframes peak-glow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(240, 192, 64, 0.25),
      0 0 16px rgba(240, 192, 64, 0.12);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(240, 192, 64, 0.55),
      0 0 28px rgba(240, 192, 64, 0.28);
  }
}

.hour-slot .h {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.hour-slot .t {
  font-size: 18px;
  font-weight: 700;
  margin: 4px 0;
}

.hour-slot .n {
  font-size: 9px;
  color: var(--text-muted);
}

.metar-summary {
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.metar-pressure {
  margin-bottom: 10px;
}

.metar-pressure.hidden {
  display: none;
}

.metar-pressure-box {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--text-muted);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.metar-pressure-box.up {
  border-left-color: #4ade80;
}

.metar-pressure-box.down {
  border-left-color: #60a5fa;
}

.metar-pressure-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.metar-pressure-top .k {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.metar-pressure-top .v {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.metar-pressure-box .d {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-dim);
}

.metar-decode {
  margin-bottom: 12px;
}

.metar-decode.hidden {
  display: none;
}

.metar-decode-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.metar-decode-list li {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.015);
}

.metar-raw-wrap {
  margin-top: 8px;
}

.metar-raw-wrap summary {
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.metar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.cloud-layers {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.layer-row {
  display: grid;
  grid-template-columns: 72px 1fr 44px;
  align-items: center;
  gap: 8px;
}

.layer-row span:first-child {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.layer-bar {
  height: 8px;
  border: 1px solid var(--border);
  background: #050505;
}

.layer-fill {
  height: 100%;
  background: linear-gradient(90deg, #444, #fff);
  transition: width 0.5s ease;
}

.link-dock {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--gap);
  padding: 14px 16px;
}

.dock-link {
  padding: 8px 12px;
  border: 1px solid var(--border);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: all 0.15s ease;
}

.dock-link:hover {
  color: var(--text);
  border-color: var(--text);
  text-decoration: none;
  transform: translateY(-1px);
}

.panel {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #030303 0%, #000 100%);
  padding: 16px;
  transition: border-color 0.2s;
  scroll-margin-top: 72px;
}

.panel:hover {
  border-color: var(--border-bright);
}

.tmax-num {
  font-size: 88px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.04em;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.08);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  min-width: 300px;
}

.stat {
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.intel-card:not(.ops-card),
.sense-card:not(.ops-card) {
  padding: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  border-left: 2px solid var(--border-bright);
}

.intel-card:not(.ops-card):hover,
.sense-card:not(.ops-card):hover {
  border-left-color: var(--text-dim);
}

.radar-map {
  height: 420px;
}

.data-table tr.lead td {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 900px) {
  .hourly-slots {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.label {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.hero-tmax {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
  min-width: 0;
}

.tmax-unit {
  font-size: 28px;
  color: var(--text-dim);
}

.tmax-delta {
  margin-left: 12px;
  font-size: 14px;
  color: var(--text-dim);
}

.hero-sub {
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 12px;
}

.hero-sub strong {
  color: var(--text);
  font-weight: 600;
}

.stat-label {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.stat-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.stat-value.small {
  font-size: 11px;
  font-weight: 500;
}

.pm-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.pm-link:hover {
  color: var(--text);
}

.status-banner {
  margin-bottom: var(--gap);
  padding: 10px 14px;
  border: 1px solid var(--border-bright);
  background: var(--bg-elevated);
  color: var(--text-dim);
  font-size: 11px;
}

.status-banner.hidden {
  display: none;
}

.status-banner.info {
  border-color: #2a3a4a;
  color: #9ec5ff;
}

.status-banner.err {
  border-color: #4a2020;
  color: var(--accent-neg);
}

.pill.loading,
.pill-dim.loading {
  color: #9ec5ff;
}

.panel-meta {
  margin-left: auto;
  color: var(--text-muted);
}

.radar-map {
  width: 100%;
  height: 360px;
  border: 1px solid var(--border);
  background: #050505;
}

.radar-panel {
  border-color: var(--border-bright);
}

.radar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 12px;
  align-items: stretch;
}

.radar-map-col {
  min-width: 0;
}

.radar-intel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  min-height: 280px;
}

.radar-intel-status {
  padding: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
}

.radar-intel-status.level-clear {
  border-color: rgba(110, 231, 160, 0.25);
}

.radar-intel-status.level-watch {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.04);
}

.radar-intel-status.level-rain {
  border-color: rgba(96, 165, 250, 0.4);
  background: rgba(96, 165, 250, 0.06);
}

.radar-intel-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 8px;
  font-size: 10px;
  letter-spacing: 0.16em;
  border: 1px solid var(--border-bright);
  color: var(--text);
}

.radar-intel-status.level-clear .radar-intel-badge {
  color: var(--accent-pos);
  border-color: rgba(110, 231, 160, 0.35);
}

.radar-intel-status.level-watch .radar-intel-badge {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.35);
}

.radar-intel-status.level-rain .radar-intel-badge {
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.35);
}

.radar-intel-headline {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 6px;
}

.radar-intel-detail {
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-dim);
}

.radar-intel-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.radar-intel-metric {
  padding: 8px 10px;
  border: 1px solid var(--border);
  background: var(--bg);
}

.radar-intel-metric .k {
  display: block;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.radar-intel-metric .v {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.radar-intel-hourly {
  border: 1px solid var(--border);
}

.radar-intel-hourly-head {
  padding: 6px 10px;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.radar-intel-hours {
  display: flex;
  gap: 4px;
  padding: 8px;
  overflow-x: auto;
}

.radar-hour-chip {
  flex: 0 0 auto;
  min-width: 44px;
  padding: 6px 4px;
  text-align: center;
  border: 1px solid var(--border);
  background: var(--bg);
}

.radar-hour-chip .h {
  font-size: 9px;
  color: var(--text-muted);
}

.radar-hour-chip .p {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.radar-hour-chip .m {
  font-size: 9px;
  color: var(--text-dim);
}

.radar-intel-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.radar-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.radar-legend-swatch {
  width: 10px;
  height: 10px;
  border: 1px solid var(--border);
}

.radar-intel-sources {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.radar-intel-loading {
  color: var(--text-dim);
  font-size: 11px;
}

.radar-hud {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(110, 231, 160, 0.03), rgba(0, 0, 0, 0.2));
}

.radar-hud-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.12em;
  font-size: 10px;
  color: var(--text-muted);
}

.radar-hud-tag {
  color: var(--accent-pos);
}

.radar-hud-status {
  color: var(--text-dim);
}

.radar-hud-status.ok {
  color: var(--accent-pos);
}

.radar-hud-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
}

.radar-btn {
  font-family: var(--font);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text);
  background: #0a0a0a;
  border: 1px solid var(--border-bright);
  padding: 4px 10px;
  cursor: pointer;
}

.radar-btn:hover {
  border-color: var(--accent-pos);
  color: var(--accent-pos);
}

.radar-scrub {
  flex: 1;
  accent-color: var(--accent-pos);
  height: 4px;
}

.radar-frame-label {
  min-width: 120px;
  text-align: right;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

.radar-note {
  margin-top: 10px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.radar-map .leaflet-container {
  background: #050505;
  font-family: var(--font);
}

.radar-map .leaflet-control-zoom a {
  background: #0a0a0a;
  color: #fff;
  border-color: var(--border);
  font-family: var(--font);
}

.radar-map .leaflet-popup-content {
  font-family: var(--font);
  font-size: 11px;
  letter-spacing: 0.08em;
}

/* Grid */
.grid-main {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  margin-bottom: var(--gap);
}

.span-2 {
  grid-column: span 2;
}

.panel {
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 16px;
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.panel-tag {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--bg);
  background: var(--text);
  padding: 2px 6px;
  font-weight: 700;
}

.panel-head h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text);
}

/* Alarm — structured cards (no tree markers) */
.alarm-panel.active {
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.08);
}

.alarm-panel.active .panel-tag {
  background: rgba(251, 191, 36, 0.18);
  color: #fbbf24;
}

.alarm-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.alarm-hero {
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.alarm-headline {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 8px;
}

.alarm-summary {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-dim);
}

.alarm-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.alarm-metric {
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  min-width: 0;
}

.alarm-metric.primary {
  border-color: var(--border-bright);
}

.alarm-metric.warn {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.04);
}

.alarm-metric-k {
  display: block;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.alarm-metric-v {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}

.alarm-metric-sub {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: var(--text-dim);
}

.alarm-section {
  border: 1px solid var(--border);
  background: var(--bg);
}

.alarm-section-head {
  padding: 8px 12px;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.alarm-rows {
  display: flex;
  flex-direction: column;
}

.alarm-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}

.alarm-row:last-child {
  border-bottom: none;
}

.alarm-row-k {
  flex: 0 0 38%;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.alarm-row-v {
  flex: 1;
  text-align: right;
  color: var(--text);
  line-height: 1.45;
}

.alarm-row-sub {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: var(--text-dim);
}

.alarm-pill {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 6px;
  font-size: 9px;
  letter-spacing: 0.12em;
  border: 1px solid var(--border);
}

.alarm-pill.ok {
  color: var(--accent-pos);
  border-color: rgba(110, 231, 160, 0.35);
}

.alarm-pill.sig {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.35);
}

.alarm-empty {
  padding: 12px;
  color: var(--text-dim);
  font-size: 12px;
}

@media (max-width: 900px) {
  .alarm-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .alarm-row {
    flex-direction: column;
    gap: 4px;
  }

  .alarm-row-k,
  .alarm-row-v {
    flex: none;
    text-align: left;
  }
}

@media (max-width: 600px) {
  .alarm-metrics {
    grid-template-columns: 1fr;
  }
}

.tree-body {
  color: var(--text-dim);
}

.tree-body .line-alarm {
  color: var(--text);
  font-weight: 600;
}

.tree-body .line-key {
  color: var(--text);
}

/* METAR grid cells */
.metar-cell {
  padding: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
}

.metar-cell .k {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.metar-cell .v {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.raw-block {
  margin: 0;
  padding: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 10px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.taf-block {
  min-height: 80px;
  margin: 0;
  padding: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 10px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

canvas {
  width: 100%;
  display: block;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
  border: 1px solid var(--border);
}

.chart-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.chart-block {
  padding: 8px 4px 0;
}

.chart-block-pm {
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 8px;
  color: var(--text-dim);
  font-size: 10px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-item .swatch {
  display: inline-block;
  width: 14px;
  height: 3px;
  border-radius: 1px;
}

.legend-item .swatch.forecast {
  background: rgba(255, 255, 255, 0.45);
}

.legend-item .swatch.future {
  background: var(--accent-pos);
  opacity: 0.85;
}

.temp-chart-wrap {
  position: relative;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.temp-chart-wrap canvas {
  display: block;
  width: 100%;
  cursor: crosshair;
  touch-action: none;
}

.temp-chart-tooltip {
  position: fixed;
  z-index: 200;
  pointer-events: none;
  transform: translate(14px, -50%);
  padding: 8px 10px;
  border: 1px solid var(--border-bright);
  background: rgba(5, 5, 5, 0.94);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.45;
  color: var(--text);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
}

.temp-chart-tooltip.hidden {
  display: none;
}

.temp-chart-tooltip .sub {
  color: var(--text-dim);
  font-size: 10px;
}

.legend-item .swatch.metar {
  background: #f0c040;
}

.legend-item .swatch.tmax {
  background: rgba(240, 192, 64, 0.55);
  border-top: 1px dashed rgba(240, 192, 64, 0.85);
  height: 0;
  width: 16px;
}

.legend-item .swatch.cloud {
  background: rgba(120, 160, 210, 0.45);
  height: 8px;
  width: 10px;
  border-radius: 2px;
}

@media (min-width: 1024px) {
  .temp-chart-wrap {
    max-width: min(1200px, 100%);
    margin-inline: auto;
  }

  #heating-ramp-chart {
    height: clamp(340px, 38vh, 460px);
    min-height: 340px;
  }

  .chart-legend {
    font-size: 12px;
    gap: 12px 20px;
    margin-bottom: 12px;
    max-width: min(1200px, 100%);
    margin-inline: auto;
  }

  .legend-item .swatch {
    width: 18px;
    height: 4px;
  }

  .legend-item .swatch.tmax {
    width: 20px;
  }

  .ramp-summary {
    font-size: 12px;
    max-width: min(1200px, 100%);
    margin-inline: auto;
  }

  .temp-chart-tooltip {
    font-size: 13px;
    padding: 10px 12px;
  }

  .temp-chart-tooltip .sub {
    font-size: 11px;
  }
}

@media (min-width: 1200px) {
  #heating-ramp-chart {
    height: clamp(380px, 42vh, 500px);
    min-height: 380px;
  }

  .chart-legend {
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  #heating-ramp-chart {
    height: 260px;
    min-height: 240px;
  }
}

/* Tahmin güven paneli */
.confidence-panel {
  display: grid;
  grid-template-columns: minmax(140px, 180px) 1fr;
  gap: 16px;
  align-items: stretch;
}

.confidence-gauge {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gauge-ring {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: conic-gradient(
    var(--gauge-color, #f0c040) calc(var(--gauge-pct, 0) * 1%),
    rgba(255, 255, 255, 0.08) 0
  );
  display: grid;
  place-items: center;
  margin: 0 auto;
}

.gauge-ring::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: var(--panel-bg, #0d0d0d);
  border: 1px solid var(--border);
}

.gauge-ring.gauge-high {
  --gauge-color: #34d399;
}

.gauge-ring.gauge-mid {
  --gauge-color: #f0c040;
}

.gauge-ring.gauge-low {
  --gauge-color: #fb7185;
}

.gauge-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.gauge-level-badge {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.gauge-score {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.gauge-label {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gauge-aside {
  text-align: center;
}

.gauge-takeaway {
  font-size: 10px;
  color: var(--text-dim);
  line-height: 1.45;
}

.gauge-floor {
  margin-top: 8px;
  font-size: 10px;
  color: var(--text-muted);
}

.gauge-floor strong {
  color: var(--text);
}

.confidence-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.conf-card {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s;
}

.conf-card.tone-ok {
  border-color: rgba(52, 211, 153, 0.35);
}

.conf-card.tone-caution {
  border-color: rgba(240, 192, 64, 0.4);
}

.conf-card.tone-warn {
  border-color: rgba(251, 113, 133, 0.45);
}

.conf-card-title {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.conf-card-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.conf-card-detail {
  font-size: 10px;
  color: var(--text-dim);
  line-height: 1.4;
}

.confidence-snipe {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.conf-snipe + .conf-snipe {
  margin-top: 6px;
}

.confidence-factors {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
}

.conf-factors-title {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.conf-factor {
  font-size: 10px;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .confidence-panel {
    grid-template-columns: 1fr;
  }
}

.ramp-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 10px;
  padding: 10px 4px 0;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 10px;
  line-height: 1.5;
}

.ramp-summary strong {
  color: var(--text);
}

.runway-bar {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
}

.runway-bar strong {
  color: var(--text);
}

/* Models */
.models-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.models-head {
  display: grid;
  grid-template-columns: 80px 1fr 48px;
  gap: 8px;
  padding: 0 0 4px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 9px;
}

.models-head span:last-child {
  text-align: right;
}

.model-row {
  display: grid;
  grid-template-columns: 80px 1fr 48px auto;
  align-items: center;
  gap: 8px;
}

.model-stale-badge {
  font-size: 9px;
  color: #f79009;
  border: 1px solid rgba(247, 144, 9, 0.45);
  border-radius: 4px;
  padding: 1px 4px;
  text-transform: lowercase;
}

.model-fetched {
  font-size: 9px;
  color: var(--text-dim);
  margin-left: 4px;
}

.panel-subtitle {
  margin: 4px 0 0;
  font-size: 10px;
  color: var(--text-dim);
  font-weight: 400;
}

.model-name {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.model-bar-wrap {
  height: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.model-bar {
  height: 100%;
  background: var(--text-dim);
  transition: width 0.4s ease;
}

.model-val {
  text-align: right;
  font-weight: 600;
}

/* Meters */
.meter-row {
  display: grid;
  grid-template-columns: 56px 1fr 40px;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.meter-row label {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.meter {
  height: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.meter-fill {
  height: 100%;
  background: var(--text-dim);
  transition: width 0.5s ease;
}

.meter-val {
  text-align: right;
  font-size: 11px;
  color: var(--text-dim);
}

/* Table */
.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  text-align: left;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
}

.data-table tr:hover td {
  background: var(--bg-elevated);
  color: var(--text);
}

.data-table tr.lead td {
  color: var(--text);
  font-weight: 600;
}

.edge-pos,
.edge-neg {
  font-weight: 600;
}

/* Forecast summary card */
.forecast-card {
  padding: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
}

.forecast-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  color: var(--text);
}

.forecast-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-dim);
}

.forecast-row:last-child {
  border-bottom: none;
}

.forecast-row strong {
  color: var(--text);
}

.forecast-cta {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 12px;
  border: 1px solid var(--border-bright);
  color: var(--text);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.forecast-cta:hover {
  border-color: var(--accent-pos);
  color: var(--accent-pos);
}

/* Polymarket embedded panel */
.polymarket-panel {
  --pm-accent: #2e90fa;
  --pm-forecast: #f0c040;
  --pm-edge: #6ee7a0;
  --pm-market: #38bdf8;
}

.pm-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: var(--font-mono);
}

.pm-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(46, 144, 250, 0.06), rgba(255, 255, 255, 0.01));
}

.pm-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}

.pm-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.pm-meta {
  color: var(--text-dim);
}

.pm-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pm-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid var(--border-bright);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

.pm-badge.live {
  border-color: rgba(110, 231, 160, 0.35);
  color: var(--pm-edge);
}

.pm-badge.closed {
  border-color: rgba(240, 192, 64, 0.35);
  color: var(--pm-forecast);
}

.pm-badge.resolved {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
}

.pm-open-link {
  flex-shrink: 0;
  padding: 8px 12px;
  border: 1px solid var(--border-bright);
  font-size: 11px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.pm-open-link:hover {
  border-color: var(--pm-accent);
  color: var(--pm-accent);
  text-decoration: none;
}

.pm-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.pm-summary-item {
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.pm-summary-item .k {
  display: block;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.pm-summary-item strong {
  display: block;
  font-size: 18px;
  color: var(--text);
}

.pm-summary-item .sub {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-dim);
}

.pm-summary-item.forecast {
  border-left: 2px solid var(--pm-forecast);
}

.pm-summary-item.market {
  border-left: 2px solid var(--pm-market);
}

.pm-summary-item.edge {
  border-left: 2px solid var(--pm-edge);
}

.pm-brackets {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pm-bracket-row {
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.25s ease,
    transform 0.15s ease;
}

.pm-bracket-row.clickable-row:hover,
.pm-bracket-row.clickable-row:focus-visible {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 8px 24px -12px rgba(56, 189, 248, 0.35);
  transform: translateY(-1px);
}

.pm-bracket-row.is-forecast {
  border-color: rgba(240, 192, 64, 0.35);
  box-shadow: inset 2px 0 0 var(--pm-forecast);
}

.pm-bracket-row.is-edge {
  box-shadow: inset 2px 0 0 var(--pm-edge);
}

.pm-bracket-row.is-market.is-forecast {
  box-shadow: inset 2px 0 0 var(--pm-forecast), inset 4px 0 0 var(--pm-market);
}

.pm-bracket-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.pm-bracket-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.pm-bracket-temp {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.pm-bracket-price {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.pm-flag {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border: 1px solid var(--border);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.pm-flag.forecast {
  border-color: rgba(240, 192, 64, 0.35);
  color: var(--pm-forecast);
}

.pm-flag.edge {
  border-color: rgba(110, 231, 160, 0.35);
  color: var(--pm-edge);
}

.pm-flag.market {
  border-color: rgba(56, 189, 248, 0.35);
  color: var(--pm-market);
}

.pm-flag.dim {
  color: var(--text-muted);
}

.pm-mini-badge {
  font-size: 9px;
  color: var(--text-muted);
}

.pm-prob-track {
  position: relative;
  height: 8px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  overflow: hidden;
}

.pm-prob-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  min-width: 2px;
  width: var(--target-w, 0%);
  animation: pm-bar-fill 0.65s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: calc(var(--pm-i, 0) * 45ms);
}

@keyframes pm-bar-fill {
  from {
    width: 0;
    opacity: 0.35;
  }
  to {
    width: var(--target-w, 0%);
    opacity: 1;
  }
}

.pm-prob-bar.market {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.15), rgba(56, 189, 248, 0.85));
  z-index: 2;
}

.pm-prob-bar.fair {
  background: linear-gradient(90deg, rgba(240, 192, 64, 0.08), rgba(240, 192, 64, 0.45));
  z-index: 1;
  opacity: 0.9;
}

.pm-bracket-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.pm-metric .k {
  display: block;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.pm-metric strong {
  color: var(--text-dim);
  font-weight: 500;
}

.pm-metric strong.edge-pos {
  color: var(--accent-pos);
}

.pm-metric strong.edge-neg {
  color: var(--accent-neg);
}

.pm-mom {
  color: var(--text);
}

.pm-empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--text-dim);
  border: 1px dashed var(--border);
}

.pm-date-badge {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 2px;
}

.pm-date-pill {
  display: inline-flex;
  padding: 4px 10px;
  border: 1px solid var(--border-bright);
  color: var(--text);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.pm-date-resolved {
  color: var(--text-dim);
  font-size: 11px;
}

.pm-date-resolved strong {
  color: var(--pm-forecast);
}

.pm-legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.pm-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.pm-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pm-color, var(--text-dim));
  flex-shrink: 0;
}

.pm-dot.pm-dot-dim {
  background: rgba(255, 255, 255, 0.15);
}

.pm-legend-label {
  font-size: 12px;
  color: var(--text);
}

.pm-legend-pct {
  font-size: 12px;
  color: var(--text-dim);
}

.pm-chart-wrap {
  position: relative;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
  padding: 10px 12px 8px;
}

.pm-chart-wrap canvas {
  cursor: crosshair;
  touch-action: none;
  min-height: 180px;
}

.pm-chart-tooltip {
  position: absolute;
  z-index: 220;
  pointer-events: none;
  transform: translate(-50%, -100%);
  padding: 10px 12px;
  border: 1px solid var(--border-bright);
  background: rgba(5, 5, 5, 0.96);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
  min-width: 120px;
  max-width: min(280px, 92vw);
}

.pm-chart-tooltip.hidden {
  display: none;
}

.pm-tip-time {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.pm-tip-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 3px 0;
  color: var(--text-dim);
}

.pm-tip-line i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pm-tip-line strong {
  margin-left: auto;
  color: var(--text);
}

.pm-header-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.pm-vol-hero {
  text-align: right;
  padding: 8px 12px;
  border: 1px solid var(--border-bright);
  background: rgba(46, 144, 250, 0.06);
}

.pm-vol-hero .k {
  display: block;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.pm-vol-hero .v {
  font-size: 20px;
  font-weight: 700;
  color: var(--pm-accent);
}

.pm-forecast-line {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-dim);
}

.pm-forecast-line strong {
  color: var(--pm-forecast);
}

.pm-date-vol {
  margin-left: 10px;
  color: var(--text-dim);
  font-size: 11px;
}

.pm-date-vol strong {
  color: var(--pm-accent);
}

.pm-chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.pm-chart-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.pm-timeframes {
  display: inline-flex;
  gap: 4px;
}

.pm-tf {
  appearance: none;
  -webkit-appearance: none;
  padding: 4px 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.pm-tf:hover,
.pm-tf.active {
  border-color: var(--pm-accent);
  color: var(--text);
}

#pm-chart {
  display: block;
  width: 100%;
  height: 240px;
  min-height: 180px;
  max-height: 280px;
}

.pm-chart-wrap canvas {
  height: 240px;
  min-height: 180px;
}

.pm-outcomes-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(88px, 0.95fr) minmax(60px, 0.62fr) minmax(112px, 1.05fr);
  gap: 10px;
  padding: 6px 12px;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-bottom: none;
  background: rgba(255, 255, 255, 0.02);
}

.pm-outcomes-head span:nth-child(n + 2) {
  text-align: right;
}

.pm-outcome-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(88px, 0.95fr) minmax(60px, 0.62fr) minmax(112px, 1.05fr);
  gap: 10px;
  align-items: center;
  padding: 12px 12px;
  border: 1px solid var(--border);
  border-top: none;
  background: rgba(255, 255, 255, 0.015);
  transition: background 0.15s ease, box-shadow 0.2s ease;
}

.pm-outcome-row > * {
  min-width: 0;
}

.pm-outcome-row.clickable-row:hover,
.pm-outcome-row.clickable-row:focus-visible {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(255, 255, 255, 0.04);
}

.pm-outcome-row.is-forecast {
  border-color: rgba(240, 192, 64, 0.35);
  box-shadow: inset 2px 0 0 var(--pm-forecast);
}

.pm-outcome-row.is-market {
  box-shadow: inset 2px 0 0 var(--pm-market);
}

.pm-outcome-row.is-edge {
  box-shadow: inset 2px 0 0 var(--pm-edge);
}

.pm-outcome-row.is-winner {
  background: rgba(46, 144, 250, 0.1);
  box-shadow: inset 3px 0 0 var(--pm-accent);
}

.pm-outcome-mid {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-self: stretch;
  gap: 4px;
  overflow: hidden;
}

.pm-outcome-fair {
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  justify-self: stretch;
  overflow: hidden;
}

.pm-outcome-status {
  text-align: right;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  justify-self: stretch;
}

.pm-flag {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 5px;
  font-size: 8px;
  letter-spacing: 0.1em;
  vertical-align: middle;
}

.pm-outcome-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 0 1 auto;
}

.pm-outcome-text {
  min-width: 0;
}

.pm-outcome-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.pm-outcome-vol {
  margin-top: 2px;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.pm-outcome-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 240px;
  justify-content: flex-end;
  min-width: 0;
}

.pm-outcome-bar-wrap {
  flex: 0 0 auto;
  max-width: 220px;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.pm-outcome-bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--pm-color, var(--pm-accent));
  animation: pmBarGrow 0.55s ease forwards;
}

.pm-outcome-ring {
  display: none;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
}

.pm-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 3.5;
}

.pm-ring-fill {
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.45s ease;
}

.pm-ring-text {
  fill: var(--text);
  font-family: var(--font);
  font-size: 8px;
  font-weight: 700;
  dominant-baseline: middle;
}

@keyframes pmBarGrow {
  from {
    width: 0;
  }
  to {
    width: var(--target-w, 0%);
  }
}

.pm-outcome-stats {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pm-outcome-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
  text-align: right;
  white-space: nowrap;
}

.pm-edge-badge {
  display: inline-block;
  font-size: 10px;
  padding: 2px 6px;
  border: 1px solid var(--border);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pm-edge-badge.edge-pos {
  border-color: rgba(110, 231, 160, 0.35);
  color: var(--accent-pos);
}

.pm-edge-badge.edge-neg {
  border-color: rgba(255, 120, 120, 0.35);
  color: var(--accent-neg);
}

.pm-resolved {
  font-size: 10px;
  padding: 2px 6px;
  border: 1px solid var(--border);
  white-space: nowrap;
}

.pm-resolved.yes {
  border-color: rgba(110, 231, 160, 0.35);
  color: var(--accent-pos);
}

.pm-resolved.no {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-dim);
}

.pm-footer {
  padding: 10px 14px;
  border: 1px solid var(--border);
  color: var(--text-dim);
}

.pm-footer-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

@media (max-width: 900px) {
  :root {
    --sticky-nav-offset: 52px;
  }

  .pm-header {
    flex-direction: column;
  }

  .pm-summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pm-header-side {
    align-items: stretch;
    width: 100%;
  }
}

/* Legacy bet card aliases */
.bet-card {
  padding: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
}

.bet-card.BET {
  border-color: var(--accent-pos);
}

.bet-decision {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  color: var(--text);
}

.bet-decision.BET {
  color: var(--accent-pos);
}

.bet-decision.SKIP {
  color: var(--text-dim);
}

.bet-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-dim);
}

.bet-row:last-child {
  border-bottom: none;
}

.bet-row strong {
  color: var(--text);
}

/* Intel / sensing — ops stack cards */
.ops-panel {
  background: linear-gradient(165deg, #060606 0%, #000 55%, #070707 100%);
  border-color: var(--border-bright);
}

.tag-intel {
  background: #7dd3fc;
  color: #000;
}

.tag-sensor {
  background: #a78bfa;
  color: #000;
}

.panel-head-stack {
  flex-wrap: wrap;
  align-items: flex-start;
}

.panel-head-text {
  flex: 1;
  min-width: 200px;
}

.panel-head-stack .panel-sub {
  margin: 4px 0 0;
}

.intel-grid,
.sensing-grid,
.ops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.ops-card {
  display: flex;
  flex-direction: column;
  min-height: 148px;
  padding: 14px 14px 12px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.01) 100%);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  animation: ops-fade-in 0.4s ease backwards;
  animation-delay: calc(var(--ops-i, 0) * 45ms);
}

.ops-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--ops-accent, var(--border-bright));
  opacity: 0.9;
}

.ops-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(255, 255, 255, 0.04), transparent 55%);
  pointer-events: none;
}

.ops-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-2px);
  box-shadow:
    0 10px 28px -14px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.ops-card.sev-high { --ops-accent: #ff6b6b; }
.ops-card.sev-medium { --ops-accent: #f0c040; }
.ops-card.sev-low { --ops-accent: #6ee7a0; }
.ops-card.sev-info { --ops-accent: #7dd3fc; }
.ops-card.sev-neutral,
.ops-card.sev-dim { --ops-accent: #555; }

.ops-card-top {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.ops-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--ops-accent, #7dd3fc);
  border: 1px solid color-mix(in srgb, var(--ops-accent, #7dd3fc) 35%, var(--border));
  border-radius: 6px;
  background: color-mix(in srgb, var(--ops-accent, #7dd3fc) 8%, transparent);
  flex-shrink: 0;
}

.ops-icon .mono-glyph {
  display: block;
  font-size: inherit;
  letter-spacing: inherit;
}

.ops-icon-lg {
  width: 44px;
  height: 44px;
  font-size: 22px;
  font-weight: 700;
  color: #c4b5fd;
  border-color: rgba(167, 139, 250, 0.35);
  background: rgba(167, 139, 250, 0.08);
}

.ops-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ops-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  line-height: 1.35;
}

.ops-badge {
  align-self: flex-start;
  font-size: 8px;
  letter-spacing: 0.14em;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}

.ops-badge.sev-high {
  color: #ffb4b4;
  background: rgba(255, 107, 107, 0.15);
  border: 1px solid rgba(255, 107, 107, 0.35);
}

.ops-badge.sev-medium {
  color: #fde68a;
  background: rgba(240, 192, 64, 0.12);
  border: 1px solid rgba(240, 192, 64, 0.35);
}

.ops-badge.sev-low {
  color: #86efac;
  background: rgba(110, 231, 160, 0.1);
  border: 1px solid rgba(110, 231, 160, 0.3);
}

.ops-badge.sev-info {
  color: #93c5fd;
  background: rgba(125, 211, 252, 0.1);
  border: 1px solid rgba(125, 211, 252, 0.28);
}

.ops-badge.sev-neutral,
.ops-badge.sev-dim {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.ops-badge.ops-badge-pulse {
  animation: badge-alert-pulse 1.8s ease-in-out infinite;
}

@keyframes badge-alert-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.35);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(255, 107, 107, 0);
  }
}

.ops-headline {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 8px;
  flex: 1;
  position: relative;
  z-index: 1;
}

.ops-headline strong {
  color: var(--accent-medium);
  font-weight: 600;
}

.ops-lines {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  z-index: 1;
}

.ops-lines li {
  font-size: 10px;
  line-height: 1.45;
  color: var(--text-dim);
  padding-left: 10px;
  position: relative;
}

.ops-lines li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
}

.ops-lines li strong {
  color: var(--text);
  font-weight: 600;
}

.ops-metric {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 10px;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.ops-metric .k {
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ops-metric .v {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.ops-metric .v.pos { color: var(--accent-pos); }
.ops-metric .v.neg { color: var(--accent-neg); }

.ops-peak-effect {
  margin-top: 6px;
  font-size: 10px;
  line-height: 1.45;
  color: var(--text-muted);
  font-family: var(--font-mono);
  position: relative;
  z-index: 1;
}

.ops-total {
  grid-column: 1 / -1;
  min-height: auto;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: auto 1fr minmax(140px, auto);
  align-items: center;
  gap: 16px;
  background: linear-gradient(90deg, rgba(167, 139, 250, 0.1) 0%, rgba(255, 255, 255, 0.02) 55%);
}

.ops-total::before {
  width: 4px;
  background: #a78bfa;
}

.ops-total-body {
  min-width: 0;
}

.ops-total-label {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.ops-total-value {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ops-total-value.pos { color: var(--accent-pos); }
.ops-total-value.neg { color: var(--accent-neg); }

.ops-total-hint {
  font-size: 10px;
  line-height: 1.45;
  color: var(--text-dim);
  text-align: right;
}

.ops-empty {
  grid-column: 1 / -1;
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 11px;
  border: 1px dashed var(--border);
  border-radius: 8px;
}

@keyframes ops-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Legacy aliases — digest cards still use intel-card class name in other sections */
.intel-card:not(.ops-card),
.sense-card:not(.ops-card) {
  padding: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  border-left: 2px solid var(--border-bright);
}

.intel-status {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* Outlook */
.outlook-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.outlook-row {
  display: grid;
  grid-template-columns: minmax(72px, 0.9fr) minmax(52px, 0.7fr) minmax(40px, 0.5fr) minmax(72px, 1fr) minmax(64px, 0.8fr);
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 11px;
  color: var(--text-dim);
}

.outlook-row.selected {
  border-color: var(--text-dim);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.outlook-row.selected .outlook-day {
  color: var(--text);
}

.outlook-day {
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.outlook-tmax {
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.outlook-conf {
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}

.outlook-mood {
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.outlook-pm {
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.outlook-pm:hover {
  color: var(--text);
}

.outlook-pm.muted {
  opacity: 0.45;
}

.outlook-empty {
  font-size: 11px;
  color: var(--text-muted);
  padding: 8px 2px;
}

.outlook-spread {
  grid-template-columns: 0.8fr 0.8fr 1.2fr 0.6fr;
}

/* Sources */
.sources-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.source-badge {
  font-size: 9px;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.source-badge.ok {
  color: var(--text-dim);
  border-color: var(--border-bright);
}

.source-badge.err {
  color: var(--text-muted);
}

.footer {
  margin-bottom: 24px;
}

.footer-note {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 10px;
}

.panel.hidden {
  display: none;
}

.hidden,
[hidden]:not([hidden="false"]) {
  display: none !important;
}

.digest-grid {
  display: grid;
  gap: 10px;
}

.digest-card {
  position: relative;
  padding: 12px 14px 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--text-muted);
}

.digest-card.digest-canli { border-left-color: #4ade80; }
.digest-card.digest-duzeltme { border-left-color: #60a5fa; }
.digest-card.digest-uyum { border-left-color: #fbbf24; }
.digest-card.digest-model { border-left-color: #a78bfa; }
.digest-card.digest-karar { border-left-color: #f87171; }

.digest-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.digest-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.digest-detail {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-dim);
}

.panel-sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 400;
}

.digest-list {
  margin: 0;
  padding: 0 0 0 18px;
  list-style: none;
}

.digest-list li {
  position: relative;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
}

.digest-list li::before {
  content: "•";
  position: absolute;
  left: -14px;
  color: var(--text-muted);
}

.atmosfer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--gap);
  margin-bottom: var(--gap);
}

.atmos-card {
  border: 1px solid var(--border);
  padding: 12px;
  background: var(--bg-elevated);
}

.atmos-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.atmos-card p {
  margin: 0 0 6px;
  color: var(--text-dim);
  font-size: 11px;
}

.forum-post {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.forum-post a {
  color: var(--text-dim);
  line-height: 1.45;
}

.forum-summary {
  margin-bottom: 8px;
  color: var(--text-dim);
}

.insider-lead {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

/* ── Mono icon design system ── */
.mono-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
  vertical-align: middle;
}

.mono-icon-sm {
  width: 22px;
  height: 22px;
  font-size: 7px;
}

.mono-icon-md {
  width: 28px;
  height: 28px;
  font-size: 8px;
}

.mono-icon-lg {
  width: 36px;
  height: 36px;
  font-size: 9px;
}

.mono-glyph {
  display: block;
  font-size: inherit;
  letter-spacing: inherit;
  line-height: 1;
}

.mono-icon.tone-pos {
  color: #6ee7a0;
  border-color: rgba(110, 231, 160, 0.35);
  background: rgba(110, 231, 160, 0.08);
}

.mono-icon.tone-warn {
  color: #fde68a;
  border-color: rgba(240, 192, 64, 0.35);
  background: rgba(240, 192, 64, 0.08);
}

.mono-icon.tone-alert {
  color: #ff8a8a;
  border-color: rgba(255, 107, 107, 0.35);
  background: rgba(255, 107, 107, 0.1);
}

.mono-icon.tone-info {
  color: #7dd3fc;
  border-color: rgba(125, 211, 252, 0.35);
  background: rgba(125, 211, 252, 0.08);
}

.mono-icon.tone-neutral {
  color: var(--text-dim);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.nav-jump .mono-icon-sm {
  margin-right: 2px;
  vertical-align: -3px;
}

.mono-arrow {
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0;
}

.subhead {
  margin: 12px 0 6px;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .grid-main {
    grid-template-columns: 1fr;
  }

  .hero-row {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: span 1;
  }

  .radar-layout {
    grid-template-columns: 1fr;
  }

  .radar-intel {
    min-height: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 320px;
  }

  .hero-weather-scene {
    height: 200px;
    margin-bottom: 14px;
  }

  .hero-scene-hud {
    font-size: 9px;
    bottom: 34px;
  }

  .hero-scene-tags {
    bottom: 8px;
  }

  .tomorrow-tmax .tmax-num.compact {
    font-size: 44px;
  }

  .tmax-num {
    font-size: 48px;
  }

  .metar-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ops-total {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .ops-total-hint {
    text-align: left;
    max-width: none;
  }

  .ops-grid {
    grid-template-columns: 1fr;
  }

  .app {
    padding: 12px 10px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 12px;
  }

  .section-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    overflow-x: visible;
    flex-wrap: wrap;
    padding: 8px;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  .section-nav .nav-indicator {
    display: none;
  }

  .nav-jump {
    width: 100%;
    min-width: 0;
    margin-left: 0 !important;
    padding: 8px 4px;
    font-size: 8px;
    letter-spacing: 0.06em;
    min-height: 38px;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-jump.nav-back {
    grid-column: 1 / -1;
    min-height: 36px;
  }

  .nav-label-long {
    display: none;
  }

  .nav-label-short {
    display: inline;
  }

  .nav-refresh {
    margin-left: 0;
  }

  .nav-jump.active,
  .nav-jump.nav-primary.active {
    border-color: rgba(110, 231, 160, 0.55);
    color: var(--text);
    background: rgba(110, 231, 160, 0.1);
  }

  .topbar-meta {
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
  }

  .station-switch {
    order: -1;
    width: 100%;
    justify-content: stretch;
  }

  .station-seg {
    flex: 1;
    min-width: 0;
  }

  .brand-name {
    display: inline;
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .lang-toggle {
    margin-left: auto;
  }

  .panel {
    scroll-margin-top: 64px;
  }

  .alpha-command {
    scroll-margin-top: 64px;
  }

  #pm-chart {
    height: 180px;
    min-height: 180px;
  }

  .hero {
    padding: 20px 16px;
  }

  .hero-tmax-wrap {
    gap: 12px;
  }

  .confidence-ring {
    width: 64px;
    height: 64px;
  }

  .panel {
    padding: 14px 12px;
  }

  .command-strip {
    padding: 12px 10px;
  }

  .hourly-slots {
    gap: 6px;
  }

  .hour-slot {
    padding: 12px 6px;
    min-height: 72px;
  }

  .action-bar {
    flex-direction: column;
  }

  .action-btn {
    width: 100%;
  }

  .radar-hud-bar {
    flex-wrap: wrap;
  }

  .radar-scrub {
    flex: 1 1 calc(100% - 56px);
    min-width: 0;
  }

  .radar-map {
    height: 300px;
  }

  .pm-chart-toolbar {
    flex-wrap: wrap;
  }

  .pm-bracket-top {
    flex-wrap: wrap;
  }

  .pm-bracket-label {
    flex: 1 1 100%;
  }

  .nav-refresh {
    margin-left: 0;
  }
}

@media (max-width: 600px) {
  .app {
    padding: 10px 8px;
  }

  .alpha-tmax-num {
    font-size: 56px;
  }

  .alpha-play-grid {
    grid-template-columns: 1fr;
  }

  .alpha-edge-row {
    grid-template-columns: 1fr;
  }

  .alpha-topline {
    gap: 8px;
  }

  .alpha-headline {
    flex: 1 1 100%;
    font-size: 11px;
  }

  .alpha-close {
    margin-left: 0;
  }

  .tmax-num {
    font-size: 56px;
  }

  .tmax-unit {
    font-size: 22px;
  }

  .tomorrow-tmax .tmax-num.compact {
    font-size: 40px;
  }

  .hero-tmax-wrap {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-topline .label {
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
    min-width: 0;
  }

  .stat-value {
    font-size: 16px;
  }

  :root {
    --sticky-nav-offset: 88px;
  }

  .section-nav {
    padding: 6px;
    gap: 4px;
  }

  .nav-jump {
    padding: 7px 2px;
    font-size: 7px;
    min-height: 36px;
  }

  .pm-outcome-ring {
    width: 40px;
    height: 40px;
  }

  .pm-outcome-bar-wrap {
    height: 24px;
    min-height: 24px;
  }

  .pm-chart-wrap canvas,
  #pm-chart {
    height: 180px;
    min-height: 140px;
  }

  .pm-outcome-stats {
    flex-wrap: wrap;
    gap: 6px;
  }

  .pm-bracket-temp {
    font-size: 14px;
  }

  .radar-map {
    height: 240px;
  }

  .radar-hud-top {
    flex-wrap: wrap;
    gap: 6px;
  }

  .radar-frame-label {
    font-size: 9px;
  }

  .topbar-meta {
    flex-wrap: wrap;
    gap: 6px;
  }

  .date-nav {
    flex-wrap: wrap;
  }
}

@keyframes hero-border-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .nav-indicator {
    transition: none;
  }

  .conf-ring-fill {
    transition: none;
  }
}

/* Date nav + panel loading */
.date-nav.is-loading {
  position: relative;
}

.date-nav.is-loading::after {
  content: "…";
  margin-left: 6px;
  color: var(--accent-medium);
  animation: nav-pulse 1s ease-in-out infinite;
}

@keyframes nav-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

.panel-loading {
  position: relative;
}

.panel-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 45%,
    transparent 90%
  );
  background-size: 200% 100%;
  animation: panel-shimmer 1.4s ease-in-out infinite;
  border-radius: inherit;
}

@keyframes panel-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.hero.hero-pending .tmax-num {
  opacity: 0.45;
}

.hero-tmax-wrap {
  flex-wrap: nowrap;
}

.pm-empty,
.outlook-empty,
.ops-empty {
  padding: 16px 12px;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  border: 1px dashed var(--border);
  text-align: center;
}

/* WU conditions dashboard */
.wu-conditions-panel .panel-head {
  margin-bottom: 14px;
}

.wu-forecast-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.wu-forecast-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.15));
  min-height: 132px;
}

.wu-forecast-card .wu-card-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent-pos);
  margin-bottom: 8px;
}

.wu-forecast-card .wu-card-temps {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}

.wu-forecast-card .wu-card-temps .lo {
  color: var(--text-dim);
  font-size: 16px;
}

.wu-forecast-card .wu-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.wu-forecast-card .wu-card-phrase {
  font-size: 11px;
  color: var(--text);
  line-height: 1.45;
}

.wu-key-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.wu-metric-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: var(--bg-elevated);
  min-height: 88px;
}

.wu-metric-card.unavailable {
  opacity: 0.55;
}

.wu-metric-card .k {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.wu-metric-card .v {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.wu-metric-card .sub {
  font-size: 10px;
  color: var(--text-dim);
  line-height: 1.4;
}

.wu-conditions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.wu-cond-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  border: 1px solid var(--border);
  padding: 10px;
  background: rgba(0, 0, 0, 0.2);
  min-width: 0;
}

.wu-cond-cell .k {
  display: block;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.3;
}

.wu-cond-cell .v {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  word-break: break-word;
}

.wu-section-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent-pos);
  margin: 8px 0 10px;
}

.wu-almanac {
  overflow-x: auto;
  margin-bottom: 14px;
}

.wu-almanac table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.wu-almanac th,
.wu-almanac td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
}

.wu-almanac th {
  color: var(--text-muted);
  letter-spacing: 0.08em;
  font-weight: 500;
}

.wu-astronomy {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.wu-astro-cell {
  border: 1px solid var(--border);
  padding: 10px;
  background: rgba(0, 0, 0, 0.18);
}

.wu-astro-cell .k {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.wu-astro-cell .v {
  font-size: 12px;
}

.wu-conditions-notes {
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 10px;
  letter-spacing: 0.05em;
}

@media (max-width: 700px) {
  .wu-forecast-cards {
    grid-template-columns: 1fr;
  }
}

/* ── future.news-inspired polish (terminal fintech) ── */
:root {
  --station-ltac: #6ee7a0;
  --station-ltfm: #f0c040;
  --glow-teal: rgba(110, 231, 160, 0.35);
  --glow-gold: rgba(240, 192, 64, 0.35);
  --panel-glow: rgba(255, 255, 255, 0.03);
}

.tabnum,
.stat-value,
.tmax-num,
.pm-outcome-price,
.pm-outcome-fair,
.pm-legend-pct,
#clock {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.station-switch {
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.station-seg {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border-radius: 999px;
  border-color: transparent;
  background: var(--bg);
  color: var(--text-dim);
  font-family: var(--font);
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.25s ease,
    transform 0.15s ease;
}

.station-seg:hover:not(.active):not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.06);
}

.station-seg.active {
  box-shadow:
    inset 0 0 0 1px rgba(110, 231, 160, 0.18),
    0 0 16px rgba(110, 231, 160, 0.12);
}

.station-seg[data-station="LTFM"].active {
  box-shadow:
    inset 0 0 0 1px rgba(240, 192, 64, 0.18),
    0 0 16px rgba(240, 192, 64, 0.12);
}

.topbar-stat-chips {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.wu-ltfm-note {
  padding: 14px 16px;
  border: 1px dashed var(--border-bright);
  background: rgba(240, 192, 64, 0.05);
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.5;
}

.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--border-bright);
  background: rgba(255, 255, 255, 0.02);
  font-size: 10px;
  letter-spacing: 0.06em;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.stat-chip .k {
  color: var(--text-muted);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.stat-chip .v {
  color: var(--text);
  font-weight: 600;
}

.stat-chip-vol {
  border-color: rgba(56, 189, 248, 0.28);
}

.stat-chip-vol .v {
  color: #38bdf8;
}

.stat-chip-liq {
  border-color: rgba(110, 231, 160, 0.28);
}

.stat-chip-liq .v {
  color: var(--accent-pos);
}

.stat-chip-close .v {
  color: var(--accent-medium);
}

#refresh-countdown.countdown-urgent {
  border-color: rgba(240, 192, 64, 0.45);
  color: var(--accent-medium);
  animation: countdownPulse 1.2s ease-in-out infinite;
}

@keyframes countdownPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(240, 192, 64, 0.25);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(240, 192, 64, 0);
  }
}

@keyframes dataFlash {
  0% {
    color: var(--text);
    text-shadow: 0 0 0 transparent;
  }
  35% {
    color: var(--accent-pos);
    text-shadow: 0 0 18px var(--glow-teal);
  }
  100% {
    color: var(--text);
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.08);
  }
}

.data-flash {
  animation: dataFlash 0.65s ease;
}

@keyframes panelReveal {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.app .panel,
.app .alpha-command,
.app .command-strip,
.app .hero-row > .panel {
  animation: panelReveal 0.42s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.app .grid-main .panel:nth-child(1) { animation-delay: 0.03s; }
.app .grid-main .panel:nth-child(2) { animation-delay: 0.06s; }
.app .grid-main .panel:nth-child(3) { animation-delay: 0.09s; }
.app .grid-main .panel:nth-child(4) { animation-delay: 0.12s; }

.panel {
  box-shadow: inset 0 1px 0 var(--panel-glow);
}

.panel:hover {
  box-shadow:
    inset 0 1px 0 var(--panel-glow),
    0 0 20px rgba(255, 255, 255, 0.02);
}

.alpha-command {
  background:
    linear-gradient(90deg, rgba(110, 231, 160, 0.06), transparent 42%),
    linear-gradient(180deg, #030303 0%, #000 100%);
  box-shadow: inset 2px 0 0 rgba(110, 231, 160, 0.35);
}

.alpha-command.verdict-high {
  box-shadow: inset 2px 0 0 rgba(110, 231, 160, 0.55);
}

.temp-chart-wrap,
.pm-chart-wrap {
  border-color: var(--border-bright);
  background:
    radial-gradient(ellipse 70% 55% at 50% 100%, rgba(110, 231, 160, 0.04), transparent),
    rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

body[data-station="LTFM"] .temp-chart-wrap,
body[data-station="LTFM"] .pm-chart-wrap {
  background:
    radial-gradient(ellipse 70% 55% at 50% 100%, rgba(240, 192, 64, 0.04), transparent),
    rgba(0, 0, 0, 0.35);
}

.temp-chart-tooltip,
.pm-chart-tooltip {
  border-color: rgba(110, 231, 160, 0.22);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(110, 231, 160, 0.08);
}

body[data-station="LTFM"] .temp-chart-tooltip,
body[data-station="LTFM"] .pm-chart-tooltip {
  border-color: rgba(240, 192, 64, 0.22);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(240, 192, 64, 0.08);
}

.pm-timeframes {
  padding: 2px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  gap: 2px;
}

.pm-tf {
  border-radius: 999px;
  border-color: transparent;
  padding: 5px 10px;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.25s ease,
    border-color 0.2s ease;
}

.pm-tf:hover:not(.active) {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.pm-tf.active {
  color: var(--text);
  background: rgba(46, 144, 250, 0.14);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.12);
}

.pm-outcomes-head {
  padding: 5px 12px;
  letter-spacing: 0.16em;
}

.pm-outcome-row {
  position: relative;
  padding: 8px 12px;
  min-height: 42px;
  overflow: hidden;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.22s ease,
    opacity 0.2s ease;
}

.pm-outcome-liquidity {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--liq-w, 0%);
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--pm-color, #2e90fa) 22%, transparent),
    color-mix(in srgb, var(--pm-color, #2e90fa) 6%, transparent) 72%,
    transparent
  );
  pointer-events: none;
  z-index: 0;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  animation: pmLiqReveal 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: calc(var(--pm-i, 0) * 35ms);
}

@keyframes pmLiqReveal {
  from {
    opacity: 0;
    transform: scaleX(0.2);
    transform-origin: left center;
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

.pm-outcome-row > :not(.pm-outcome-liquidity) {
  position: relative;
  z-index: 1;
}

.pm-outcome-row.is-dead {
  opacity: 0.42;
  background: rgba(255, 255, 255, 0.008);
}

.pm-outcome-row.is-dead .pm-outcome-liquidity {
  opacity: 0.35;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent);
}

.pm-outcome-row.is-dead .pm-outcome-label {
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: rgba(255, 255, 255, 0.25);
}

.pm-outcome-row.is-dead .pm-outcome-price,
.pm-outcome-row.is-dead .pm-outcome-fair {
  color: var(--text-muted);
}

.pm-outcome-row.clickable-row:hover,
.pm-outcome-row.clickable-row:focus-visible {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.08);
}

.pm-outcome-bar-wrap {
  height: 4px;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.04);
}

.pm-outcome-bar {
  background: linear-gradient(90deg, color-mix(in srgb, var(--pm-color, #2e90fa) 35%, transparent), var(--pm-color, #2e90fa));
  box-shadow: 0 0 8px color-mix(in srgb, var(--pm-color, #2e90fa) 40%, transparent);
}

.pm-summary-item {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pm-summary-item:hover {
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.03);
}

.nav-jump:hover,
.nav-btn:hover:not(:disabled),
.hour-slot:hover {
  box-shadow: 0 0 12px rgba(110, 231, 160, 0.08);
}

@media (max-width: 900px) {
  .topbar-stat-chips {
    order: 10;
    width: 100%;
    justify-content: flex-end;
  }
}

/* === Mobile finalize: Polymarket chart + panels === */
@media (max-width: 768px) {
  .topbar {
    padding-left: 10px;
    padding-right: 10px;
  }

  .grid-main {
    gap: 12px;
  }

  .panel {
    padding: 12px 10px;
  }

  .pm-chart-wrap {
    padding: 8px 8px 6px;
    overflow: hidden;
  }

  .pm-chart-wrap canvas,
  #pm-chart {
    height: 220px !important;
    min-height: 200px !important;
    width: 100%;
  }

  .pm-chart-toolbar {
    gap: 8px;
    margin-bottom: 6px;
  }

  .pm-chart-label {
    font-size: 9px;
    flex: 1 1 auto;
  }

  .pm-timeframes {
    flex-shrink: 0;
  }

  .pm-legend-row {
    flex-wrap: wrap;
    overflow: visible;
    gap: 6px 10px;
    padding-bottom: 4px;
  }

  .pm-legend-item {
    font-size: 10px;
    white-space: nowrap;
  }

  .pm-date-badge {
    flex-wrap: wrap;
    gap: 6px;
    line-height: 1.4;
  }

  .pm-header .pm-title {
    font-size: 13px;
    line-height: 1.35;
    word-break: break-word;
  }

  .pm-forecast-line,
  .pm-resolution-line {
    font-size: 10px;
    line-height: 1.45;
    word-break: break-word;
  }

  .pm-summary-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .pm-summary-item strong {
    font-size: 16px;
  }

  .pm-summary-item.closure-warn {
    grid-column: 1 / -1;
  }

  .pm-footer-strip {
    font-size: 10px;
    line-height: 1.45;
    word-break: break-word;
  }

  .pm-outcomes-head {
    display: none;
  }

  .pm-outcome-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 10px;
  }

  .pm-outcome-left {
    width: 100%;
  }

  .pm-outcome-mid {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  .pm-outcome-mid::before {
    content: "Olasılık";
    font-size: 8px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
  }

  .pm-outcome-bar-wrap {
    display: block !important;
    max-width: none;
    height: 8px;
    min-height: 8px;
  }

  .pm-outcome-fair {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-align: right;
    font-size: 12px;
  }

  .pm-outcome-fair::before {
    content: "Model";
    font-size: 8px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
  }

  .pm-outcome-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-align: right;
  }

  .pm-outcome-status::before {
    content: "Durum";
    font-size: 8px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
  }

  .pm-edge-badge,
  .pm-resolved {
    font-size: 9px;
    max-width: none;
    white-space: normal;
    text-align: right;
  }

  .confidence-cards {
    grid-template-columns: 1fr;
  }

  .conf-card-value {
    font-size: 14px;
  }

  .forecast-card .forecast-row {
    flex-wrap: wrap;
    gap: 4px 8px;
    align-items: flex-start;
  }

  .forecast-card .forecast-row span:last-child,
  .forecast-card .forecast-row strong {
    text-align: right;
    word-break: break-word;
    max-width: 58%;
  }

  .forecast-card .forecast-row span:first-child {
    word-break: break-word;
    flex: 1 1 40%;
  }

  .status-banner {
    font-size: 11px;
    line-height: 1.4;
    word-break: break-word;
  }

  .panel-sub {
    font-size: 10px;
    line-height: 1.45;
  }

  .wu-oracle-body,
  .tree-line {
    font-size: 11px;
    line-height: 1.45;
    word-break: break-word;
  }

  .wu-conditions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .wu-cond-cell {
    padding: 10px 8px;
  }

  .wu-cond-cell .k {
    font-size: 8px;
    letter-spacing: 0.08em;
  }

  .wu-cond-cell .v {
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  .pm-summary-grid {
    grid-template-columns: 1fr;
  }

  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* === Mobile topbar + nav (≤768px) === */
@media (max-width: 768px) {
  :root {
    --sticky-nav-offset: 76px;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 10px;
    padding-right: 10px;
  }

  .topbar-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
  }

  .topbar-brand-row .lang-toggle {
    position: static;
    transform: none;
    flex-shrink: 0;
  }

  .brand {
    min-width: 0;
    flex: 1;
    letter-spacing: 0.06em;
  }

  .brand-icao {
    font-size: 17px;
  }

  .brand-name {
    font-size: 10px;
    max-width: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topbar-meta {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 8px;
  }

  .topbar-date-row,
  .topbar-status-row {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
  }

  .topbar-date-row {
    gap: 8px;
  }

  .station-switch {
    order: 0;
    width: 100%;
    justify-content: stretch;
  }

  .station-seg {
    flex: 1;
    min-width: 0;
    min-height: 44px;
  }

  .date-nav {
    flex: 1;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px auto;
    align-items: center;
    gap: 4px;
    min-width: 0;
    flex-wrap: nowrap;
  }

  .date-nav-label {
    text-align: center;
    font-size: 10px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 2px;
  }

  .date-nav-btn {
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
  }

  .date-nav-today {
    min-height: 44px;
    padding: 0 10px;
    font-size: 9px;
    letter-spacing: 0.08em;
  }

  .pill-live-badge {
    flex-shrink: 0;
    padding: 5px 8px;
    font-size: 8px;
    letter-spacing: 0.1em;
    gap: 5px;
    border-color: rgba(110, 231, 160, 0.28);
  }

  .pill-live-badge .dot {
    width: 6px;
    height: 6px;
  }

  .pill-live-badge.active-pulse {
    border-color: rgba(18, 183, 106, 0.45);
    color: var(--accent-pos);
    background: rgba(18, 183, 106, 0.08);
  }

  .topbar-status-row {
    gap: 6px;
    flex-wrap: nowrap;
    overflow: hidden;
    padding: 2px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }

  .topbar-status-sep {
    display: inline;
    flex-shrink: 0;
    opacity: 0.45;
  }

  .topbar-clock {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    flex-shrink: 0;
  }

  .topbar-updated,
  .topbar-refresh {
    border: none;
    background: transparent;
    padding: 0;
    font-size: 9px;
    letter-spacing: 0.04em;
    text-transform: none;
    min-width: 0;
  }

  .topbar-updated {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-muted);
  }

  .topbar-refresh {
    flex-shrink: 0;
    margin-left: auto;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .topbar-refresh.countdown-urgent {
    color: var(--accent-medium);
    animation: countdownPulse 1.2s ease-in-out infinite;
  }

  .topbar-source {
    display: none !important;
  }

  .topbar-stat-chips {
    order: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    gap: 8px;
    padding-bottom: 2px;
    justify-content: flex-start;
  }

  .topbar-stat-chips::-webkit-scrollbar {
    display: none;
  }

  .topbar-stat-chips .stat-chip {
    flex-shrink: 0;
  }

  .section-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px 10px;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .section-nav::-webkit-scrollbar {
    display: none;
  }

  .section-nav .nav-indicator {
    display: none;
  }

  .nav-jump {
    width: auto;
    min-width: 44px;
    min-height: 44px;
    margin-left: 0 !important;
    padding: 10px 12px;
    font-size: 9px;
    letter-spacing: 0.08em;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
  }

  .nav-jump.nav-back {
    grid-column: auto;
    min-height: 44px;
    padding: 10px 12px;
  }

  .nav-label-long {
    display: none;
  }

  .nav-label-short {
    display: inline;
  }

  .nav-refresh {
    margin-left: 0;
  }

  .panel,
  .alpha-command {
    scroll-margin-top: calc(var(--sticky-nav-offset) + 8px);
  }
}
