.sml-engine-ticker-shell {
  --sml-green: #00ff66;
  --sml-blue: #00a3ff;
  --sml-red: #ff4d5f;
  --sml-bg: #050816;
  --sml-panel: rgba(10, 18, 28, 0.9);
  --sml-border: rgba(0, 255, 102, 0.22);
  --sml-text: #e5e7eb;
  --sml-muted: #9ca3af;
  background:
    radial-gradient(circle at top left, rgba(0, 255, 102, 0.12), transparent 28rem),
    linear-gradient(180deg, #07100c 0%, var(--sml-bg) 100%);
  border: 1px solid var(--sml-border);
  border-radius: 18px;
  color: var(--sml-text);
  margin: 24px auto;
  max-width: 1480px;
  overflow: hidden;
  padding: 18px;
  width: min(100%, calc(100vw - 24px));
}

.sml-engine-header {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 14px;
}

.sml-engine-header h2 {
  color: #fff;
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0;
}

.sml-engine-kicker {
  color: var(--sml-green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.sml-engine-sentiment {
  background: rgba(0, 255, 102, 0.12);
  border: 1px solid rgba(0, 255, 102, 0.35);
  border-radius: 999px;
  color: var(--sml-green);
  font-size: 14px;
  font-weight: 800;
  padding: 10px 14px;
  white-space: nowrap;
}

.sml-engine-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.9fr);
}

.sml-engine-card {
  background: var(--sml-panel);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
  min-width: 0;
  padding: 15px;
}

.sml-engine-feed-card {
  grid-row: span 2;
}

.sml-engine-card h3 {
  color: #fff;
  font-size: 15px;
  letter-spacing: 0;
  margin: 0 0 12px;
}

.sml-engine-market-data {
  display: grid;
  gap: 8px 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sml-engine-market-data span {
  color: var(--sml-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.sml-engine-market-data strong {
  color: #fff;
  display: block;
  font-size: 18px;
  min-height: 28px;
}

.sml-engine-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.sml-engine-item {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  color: inherit;
  display: block;
  padding: 12px;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.sml-engine-item:hover,
.sml-engine-item:focus {
  background: rgba(0, 255, 102, 0.08);
  border-color: rgba(0, 255, 102, 0.28);
  color: #fff;
  outline: none;
  transform: translateY(-1px);
}

.sml-engine-item-title {
  color: #fff;
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.sml-engine-item-meta {
  align-items: center;
  color: var(--sml-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 8px;
  margin-top: 7px;
}

.sml-engine-pill {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--sml-muted);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 7px;
  text-transform: uppercase;
}

.sml-engine-pill-bullish {
  background: rgba(0, 255, 102, 0.12);
  border-color: rgba(0, 255, 102, 0.35);
  color: var(--sml-green);
}

.sml-engine-pill-bearish {
  background: rgba(255, 77, 95, 0.13);
  border-color: rgba(255, 77, 95, 0.34);
  color: var(--sml-red);
}

.sml-engine-pill-neutral {
  background: rgba(0, 163, 255, 0.1);
  border-color: rgba(0, 163, 255, 0.25);
  color: #8bd4ff;
}

.sml-engine-discovery-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sml-engine-symbol-chip {
  align-items: center;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  min-width: 0;
  padding: 9px 10px;
  text-decoration: none;
}

.sml-engine-symbol-chip strong {
  color: var(--sml-green);
}

.sml-engine-symbol-chip span {
  color: var(--sml-muted);
  font-size: 12px;
}

.sml-engine-empty {
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  color: var(--sml-muted);
  padding: 14px;
}

.sml-engine-skeleton {
  animation: smlEnginePulse 1.2s ease-in-out infinite;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(0, 255, 102, 0.12), rgba(255, 255, 255, 0.05));
  border-radius: 12px;
  height: 88px;
}

@keyframes smlEnginePulse {
  0% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.55;
  }
}

@media (max-width: 980px) {
  .sml-engine-grid {
    grid-template-columns: 1fr;
  }

  .sml-engine-feed-card {
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .sml-engine-ticker-shell {
    border-radius: 12px;
    padding: 12px;
    width: min(100%, calc(100vw - 10px));
  }

  .sml-engine-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .sml-engine-sentiment {
    white-space: normal;
  }

  .sml-engine-market-data,
  .sml-engine-discovery-grid {
    grid-template-columns: 1fr;
  }
}
