#rt-marktblik-wrap {
  --rtmb-bg: #0d1117;
  --rtmb-card: #161b22;
  --rtmb-card-h: #1c2330;
  --rtmb-border: #21262d;
  --rtmb-primary: #1e2d49;
  --rtmb-accent: #fd7014;
  --rtmb-green: #3fb950;
  --rtmb-green-dim: rgba(63,185,80,0.1);
  --rtmb-red: #f85149;
  --rtmb-red-dim: rgba(248,81,73,0.1);
  --rtmb-muted: #6e7681;
  --rtmb-text: #e6edf3;
  --rtmb-sub: #8b949e;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  background: var(--rtmb-bg);
  color: var(--rtmb-text);
  border-radius: 8px;
  overflow: hidden;
}

#rtmb-ticker-bar {
  background: var(--rtmb-primary);
  border-bottom: 1px solid var(--rtmb-border);
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  height: 44px;
  padding: 0 4px;
}
#rtmb-ticker-bar::-webkit-scrollbar { display: none; }

.rtmb-ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-right: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
  white-space: nowrap;
}
.rtmb-ticker-name {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}
.rtmb-ticker-val {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: #fff;
}

#rtmb-main { padding: 24px; }

#rtmb-last-update {
  text-align: right;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--rtmb-muted);
  margin-bottom: 18px;
}

.rtmb-section { margin-bottom: 36px; }
.rtmb-section-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  border-bottom: 1px solid var(--rtmb-border);
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.rtmb-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  color: var(--rtmb-text);
}
.rtmb-section-sub {
  font-size: 11px;
  color: var(--rtmb-muted);
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rtmb-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.rtmb-summary-card {
  background: var(--rtmb-card);
  border: 1px solid var(--rtmb-border);
  border-radius: 6px;
  padding: 12px 14px;
  transition: background 0.15s, border-color 0.15s;
}
.rtmb-summary-card:hover { background: var(--rtmb-card-h); border-color: var(--rtmb-accent); }
.rtmb-summary-card.rtmb-pos-card { border-left: 3px solid var(--rtmb-green); }
.rtmb-summary-card.rtmb-neg-card { border-left: 3px solid var(--rtmb-red); }
.rtmb-sc-name { font-size: 11px; color: var(--rtmb-muted); margin-bottom: 5px; }
.rtmb-sc-price { font-family: 'IBM Plex Mono', monospace; font-size: 15px; font-weight: 500; color: var(--rtmb-text); margin-bottom: 3px; }
.rtmb-sc-change { font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 500; }

.rtmb-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 640px) {
  .rtmb-split { grid-template-columns: 1fr; }
  #rtmb-main { padding: 14px; }
}

.rtmb-panel {
  background: var(--rtmb-card);
  border: 1px solid var(--rtmb-border);
  border-radius: 6px;
  overflow: hidden;
}
.rtmb-panel-hdr {
  padding: 10px 14px;
  border-bottom: 1px solid var(--rtmb-border);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 7px;
}
.rtmb-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.rtmb-winners { color: var(--rtmb-green); }
.rtmb-winners .rtmb-dot { background: var(--rtmb-green); }
.rtmb-losers  { color: var(--rtmb-red); }
.rtmb-losers  .rtmb-dot { background: var(--rtmb-red); }

.rtmb-row {
  display: grid;
  grid-template-columns: 24px 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--rtmb-border);
  transition: background 0.12s;
}
.rtmb-row:last-child { border-bottom: none; }
.rtmb-row:hover { background: var(--rtmb-card-h); }
.rtmb-rank { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--rtmb-muted); text-align: right; }
.rtmb-asset-sym { font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rtmb-asset-name { font-size: 11px; color: var(--rtmb-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rtmb-asset-price { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--rtmb-sub); text-align: right; white-space: nowrap; }
.rtmb-asset-pct { font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 500; text-align: right; white-space: nowrap; min-width: 58px; padding: 2px 6px; border-radius: 3px; }
.rtmb-pos { color: var(--rtmb-green); background: var(--rtmb-green-dim); }
.rtmb-neg { color: var(--rtmb-red); background: var(--rtmb-red-dim); }

.rtmb-loading { padding: 20px; color: var(--rtmb-muted); font-size: 13px; text-align: center; }
.rtmb-shimmer {
  display: inline-block;
  width: 60px; height: 11px;
  background: linear-gradient(90deg, var(--rtmb-border) 25%, var(--rtmb-card-h) 50%, var(--rtmb-border) 75%);
  background-size: 200% 100%;
  animation: rtmb-shimmer 1.5s infinite;
  border-radius: 3px;
  vertical-align: middle;
}
@keyframes rtmb-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
