/* ═══════════════════════════════════════════════ */
/* SIGNAL DECK FUTURES — Premium Dark Theme       */
/* ═══════════════════════════════════════════════ */

:root {
  /* Core palette */
  --bg-primary: #06090f;
  --bg-secondary: #0c1117;
  --bg-card: rgba(12, 17, 23, 0.85);
  --bg-card-hover: rgba(16, 22, 30, 0.95);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(59, 130, 246, 0.15);

  /* Text */
  --text-primary: #e8edf5;
  --text-secondary: #8b95a8;
  --text-muted: #4a5568;
  --text-bright: #ffffff;

  /* Accents */
  --accent-blue: #3b82f6;
  --accent-indigo: #6366f1;
  --accent-purple: #8b5cf6;

  /* Semantic */
  --bullish: #10b981;
  --bullish-bg: rgba(16, 185, 129, 0.1);
  --bullish-border: rgba(16, 185, 129, 0.25);
  --bearish: #ef4444;
  --bearish-bg: rgba(239, 68, 68, 0.1);
  --bearish-border: rgba(239, 68, 68, 0.25);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.1);
  --warning-border: rgba(245, 158, 11, 0.25);
  --neutral: #64748b;
  --neutral-bg: rgba(100, 116, 139, 0.1);

  /* Sizing */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;

  /* Glow */
  --glow-blue: 0 0 20px rgba(59, 130, 246, 0.15);
  --glow-green: 0 0 20px rgba(16, 185, 129, 0.15);
  --glow-red: 0 0 20px rgba(239, 68, 68, 0.15);
}

/* ─── Reset & Base ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(59, 130, 246, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

/* ─── Top Bar ─── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 56px;
  background: rgba(6, 9, 15, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.topbar-left, .topbar-center, .topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-center { gap: 24px; }

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  display: flex;
  align-items: center;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-sub {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  margin-top: 1px;
}

/* Ticker */
.ticker {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.ticker-secondary { opacity: 0.7; }

.ticker-symbol {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.ticker-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-bright);
}

.ticker-change {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 3px;
}

.ticker-change.up {
  color: var(--bullish);
  background: var(--bullish-bg);
}

.ticker-change.down {
  color: var(--bearish);
  background: var(--bearish-bg);
}

.ticker-change.flat {
  color: var(--text-secondary);
  background: var(--neutral-bg);
}

/* Session Badge */
.session-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--border-subtle);
}

.session-badge.rth {
  background: var(--bullish-bg);
  border-color: var(--bullish-border);
  color: var(--bullish);
}

.session-badge.eth {
  background: var(--warning-bg);
  border-color: var(--warning-border);
  color: var(--warning);
}

.session-badge.pre {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.25);
  color: var(--accent-blue);
}

.session-badge.closed {
  background: var(--bearish-bg);
  border-color: var(--bearish-border);
  color: var(--bearish);
}

.session-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Refresh Timer */
.refresh-timer {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.timer-icon { opacity: 0.5; }

.et-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ─── Disclaimer Banner ─── */
.disclaimer-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 6px 20px;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.08), rgba(239, 68, 68, 0.08));
  border-bottom: 1px solid rgba(245, 158, 11, 0.15);
  font-size: 0.7rem;
  color: var(--warning);
  letter-spacing: 0.02em;
}

.dismiss-btn {
  background: none;
  border: none;
  color: var(--warning);
  cursor: pointer;
  font-size: 0.85rem;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.dismiss-btn:hover { opacity: 1; }

/* ─── Dashboard Grid ─── */
.dashboard {
  display: grid;
  grid-template-columns: 320px 1fr 340px;
  grid-template-rows: auto;
  gap: 12px;
  padding: 12px 16px 24px;
  max-width: 1920px;
  margin: 0 auto;
}

/* Grid placement */
.signal-card     { grid-column: 1; grid-row: 1; }
.entry-card      { grid-column: 1; grid-row: 2; }
.scorecard-card  { grid-column: 1; grid-row: 3; }
.technicals-card { grid-column: 2; grid-row: 1; }
.chart-price     { grid-column: 2; grid-row: 2 / span 2; }
.chart-macd      { grid-column: 2; grid-row: 4; }
.chart-rsi       { grid-column: 3; grid-row: 4; }
.levels-card     { grid-column: 3; grid-row: 1; }
.news-card       { grid-column: 3; grid-row: 2 / span 2; }
.risk-card       { grid-column: 1; grid-row: 4; }
.history-card    { grid-column: 1 / -1; grid-row: 5; }

/* ─── Card Base ─── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: cardFadeIn 0.6s ease-out;
}

.card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

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

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.card-header h2 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.last-update {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: var(--text-muted);
}

/* ─── Signal Card ─── */
.signal-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.signal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 20px;
  border-radius: var(--radius-md);
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: signalPulse 3s ease-in-out infinite;
}

.signal-badge.long {
  background: var(--bullish-bg);
  color: var(--bullish);
  border: 2px solid var(--bullish-border);
  box-shadow: var(--glow-green);
}

.signal-badge.short {
  background: var(--bearish-bg);
  color: var(--bearish);
  border: 2px solid var(--bearish-border);
  box-shadow: var(--glow-red);
}

.signal-badge.wait {
  background: var(--warning-bg);
  color: var(--warning);
  border: 2px solid var(--warning-border);
}

@keyframes signalPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

.signal-meta {
  display: flex;
  gap: 16px;
}

.signal-meta-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.signal-meta-item .label {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.signal-meta-item .value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.signal-reason {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-blue);
}

/* ─── Entry Card ─── */
.no-trade {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 0;
  text-align: center;
}

.no-trade p {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.no-trade span {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.entry-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.entry-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
}

.entry-row.stop { border-left: 3px solid var(--bearish); }
.entry-row.target { border-left: 3px solid var(--bullish); }
.entry-row.rr { border-left: 3px solid var(--accent-blue); }

.entry-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.entry-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-bright);
}

.entry-detail {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* ─── Scorecard ─── */
.scorecard {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.score-row {
  display: grid;
  grid-template-columns: 110px 70px 1fr;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.2s;
}

.score-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.score-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.score-badge.pass {
  background: var(--bullish-bg);
  color: var(--bullish);
  border: 1px solid var(--bullish-border);
}

.score-badge.fail {
  background: var(--bearish-bg);
  color: var(--bearish);
  border: 1px solid var(--bearish-border);
}

.score-badge.neutral, .score-badge.bullish, .score-badge.bearish {
  background: var(--neutral-bg);
  color: var(--neutral);
  border: 1px solid rgba(100, 116, 139, 0.2);
}

.score-badge.bullish {
  background: var(--bullish-bg);
  color: var(--bullish);
  border: 1px solid var(--bullish-border);
}

.score-badge.bearish {
  background: var(--bearish-bg);
  color: var(--bearish);
  border: 1px solid var(--bearish-border);
}

.score-reason {
  font-size: 0.65rem;
  color: var(--text-muted);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-row:hover .score-reason {
  white-space: normal;
}

/* ─── Key Levels ─── */
.levels-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.level-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.2s;
}

.level-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.level-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.level-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ─── Technicals Strip ─── */
.tech-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.tech-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 100px;
  flex: 1;
}

.tech-label {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tech-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.tech-value.bullish { color: var(--bullish); }
.tech-value.bearish { color: var(--bearish); }

/* RSI Bar */
.rsi-bar-wrap {
  position: relative;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--bullish), var(--warning), var(--bearish));
  border-radius: 3px;
  margin-top: 4px;
  opacity: 0.5;
}

.rsi-bar {
  position: absolute;
  top: -3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-bright);
  border: 2px solid var(--bg-primary);
  transition: left 0.8s ease;
  left: 50%;
}

.rsi-zones {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
}

.rsi-zone {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.5rem;
  color: var(--text-muted);
}

/* ─── Charts ─── */
.chart-container {
  position: relative;
  height: 260px;
}

.chart-container.chart-small {
  height: 180px;
}

.chart-interval {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: var(--text-muted);
}

/* ─── News Feed ─── */
.news-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: var(--text-muted);
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 350px;
  overflow-y: auto;
}

.news-item {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.news-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(2px);
}

.news-title {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 4px;
}

.news-meta {
  font-size: 0.6rem;
  color: var(--text-muted);
}

.news-loading {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  padding: 20px;
}

/* ─── Risk Card ─── */
.risk-rules {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.risk-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  font-size: 0.7rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.015);
}

.risk-item strong {
  color: var(--text-primary);
}

.risk-icon { font-size: 0.85rem; }

.mes-math {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.mes-math h3 {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.math-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}

.math-grid span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: var(--text-secondary);
  padding: 3px 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.02);
}

/* ─── Error Overlay ─── */
.error-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.error-content {
  background: var(--bg-secondary);
  border: 1px solid var(--bearish-border);
  border-radius: var(--radius-lg);
  padding: 30px 40px;
  text-align: center;
  max-width: 400px;
}

.error-content h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--warning);
}

.error-content p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.retry-btn {
  background: var(--accent-blue);
  color: white;
  border: none;
  padding: 8px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.8rem;
}

.retry-btn:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

/* ─── Loading State ─── */
.loading-shimmer {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.03) 25%,
    rgba(255,255,255,0.06) 50%,
    rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Animations ─── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.2s; }
.card:nth-child(5) { animation-delay: 0.25s; }
.card:nth-child(6) { animation-delay: 0.3s; }
.card:nth-child(7) { animation-delay: 0.35s; }
.card:nth-child(8) { animation-delay: 0.4s; }
.card:nth-child(9) { animation-delay: 0.45s; }

/* ═══════════════════════════════════════════════ */
/* SIGNAL HISTORY TABLE */
/* ═══════════════════════════════════════════════ */

.history-card {
  padding-bottom: 8px; /* Slightly less padding since table handles spacing */
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#signal-history-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  text-align: left;
}

#signal-history-table th, #signal-history-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

#signal-history-table th {
  background: rgba(255,255,255,0.02);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

#signal-history-table tr:hover {
  background: rgba(255,255,255,0.02);
}

/* ═══════════════════════════════════════════════ */
/* RESPONSIVE LAYOUT */
/* ═══════════════════════════════════════════════ */

/* ─── Responsive ─── */
@media (max-width: 1400px) {
  .dashboard {
    grid-template-columns: 280px 1fr 300px;
  }
}

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

  .signal-card     { grid-column: 1; grid-row: 1; }
  .entry-card      { grid-column: 2; grid-row: 1; }
  .scorecard-card  { grid-column: 1; grid-row: 2; }
  .levels-card     { grid-column: 2; grid-row: 2; }
  .technicals-card { grid-column: 1 / -1; grid-row: 3; }
  .chart-price     { grid-column: 1 / -1; grid-row: 4; }
  .chart-macd      { grid-column: 1; grid-row: 5; }
  .chart-rsi       { grid-column: 2; grid-row: 5; }
  .news-card       { grid-column: 1 / -1; grid-row: 6; }
  .risk-card       { grid-column: 1 / -1; grid-row: 7; }

  /* Keep the main ticker visible, hide secondary tickers to save space */
  .ticker-secondary { display: none; }
}

@media (max-width: 750px) {
  .dashboard {
    grid-template-columns: 1fr;
    padding: 8px;
    gap: 8px;
  }

  .signal-card, .entry-card, .scorecard-card,
  .levels-card, .technicals-card, .chart-price,
  .chart-macd, .chart-rsi, .news-card, .risk-card {
    grid-column: 1;
    grid-row: auto;
  }

  .topbar { 
    padding: 10px; 
    flex-wrap: wrap; 
    height: auto; 
    gap: 12px;
  }
  
  .topbar-left, .topbar-center, .topbar-right {
    width: 100%;
    justify-content: space-between;
  }

  .topbar-center {
    order: 3;
    justify-content: center;
  }

  .et-time { display: none; }

  /* Fix scorecard overflow */
  .score-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 8px;
  }
  .score-badge {
    justify-self: start;
  }

  /* Fix entry row overflow */
  .entry-row {
    flex-wrap: wrap;
    gap: 4px;
  }
  .entry-detail {
    width: 100%;
    text-align: right;
  }

  /* Fix levels grid overflow */
  .levels-grid {
    grid-template-columns: 1fr;
  }
}
