html.fxr-ai-route,
html.fxr-ai-route body {
  background: #070b12 !important;
}

.fxr-ai-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  background: linear-gradient(180deg, #070b12, #0b111d);
  color: #eef3fb;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.fxr-ai-aside {
  min-height: 100vh;
  padding: 22px 14px;
  border-right: 1px solid rgba(255,255,255,.08);
  background: #080d16;
}

.fxr-ai-brand {
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  color: #fff;
  font-size: 25px;
  font-weight: 900;
  margin-bottom: 22px;
}

.fxr-ai-brand b {
  color: #f0b90b;
}

.fxr-ai-aside nav {
  display: grid;
  gap: 6px;
}

.fxr-ai-aside nav a {
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-radius: 8px;
  color: #98a7bd;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.fxr-ai-aside nav a.is-active,
.fxr-ai-aside nav a:hover {
  color: #fff;
  background: rgba(240,185,11,.13);
}

.fxr-ai-main {
  padding: 24px;
  overflow: auto;
}

.fxr-ai-page {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.fxr-ai-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
}

.fxr-ai-head h1 {
  margin: 0;
  font-size: 25px;
  letter-spacing: 0;
}

.fxr-ai-head p {
  margin: 6px 0 0;
  color: #9aa8bd;
  font-size: 13px;
}

.fxr-ai-refresh {
  border: 1px solid rgba(255,255,255,.12);
  background: #111a29;
  color: #eef3fb;
  border-radius: 8px;
  height: 38px;
  padding: 0 14px;
  font-weight: 800;
  cursor: pointer;
}

.fxr-ai-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.fxr-ai-stat {
  border: 1px solid rgba(255,255,255,.08);
  background: #0e1624;
  border-radius: 8px;
  padding: 14px;
}

.fxr-ai-stat small {
  display: block;
  color: #8f9db2;
  font-size: 12px;
  font-weight: 800;
}

.fxr-ai-stat b {
  display: block;
  margin-top: 6px;
  font-size: 24px;
}

.fxr-ai-list {
  display: grid;
  gap: 10px;
}

.fxr-ai-card {
  border: 1px solid rgba(255,255,255,.08);
  background: #0e1624;
  border-left: 4px solid #4f8cff;
  border-radius: 8px;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.fxr-ai-card.is-critical {
  border-left-color: #ea3943;
}

.fxr-ai-card.is-warn {
  border-left-color: #f0b90b;
}

.fxr-ai-card.is-ok {
  border-left-color: #16c784;
}

.fxr-ai-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.fxr-ai-title {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-weight: 900;
}

.fxr-ai-badge {
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(255,255,255,.08);
  color: #c9d4e5;
  font-size: 11px;
  font-weight: 900;
}

.fxr-ai-badge.sell {
  color: #ff9aa1;
}

.fxr-ai-badge.buy {
  color: #72e0ac;
}

.fxr-ai-time {
  color: #8f9db2;
  font-size: 12px;
  font-weight: 700;
}

.fxr-ai-msg {
  color: #c9d4e5;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.fxr-ai-empty {
  border: 1px dashed rgba(255,255,255,.16);
  color: #9aa8bd;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
}

@media (max-width: 900px) {
  .fxr-ai-shell {
    grid-template-columns: 1fr;
  }

  .fxr-ai-aside {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .fxr-ai-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
