:root {
  --bg: #0f1720;
  --bg-soft: #172433;
  --card: rgba(17, 29, 44, 0.88);
  --line: rgba(152, 183, 216, 0.22);
  --text: #e9f2ff;
  --muted: #9db4cf;
  --good: #35d09f;
  --warn: #f3c968;
  --bad: #ff6e7f;
  --accent: #73c2ff;
  --accent-2: #a2f3cf;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 12% 5%, #1f3d5f 0%, #0f1720 45%),
    linear-gradient(140deg, #0b141f, #101f30 60%, #0b141f);
  min-height: 100vh;
}

.top-nav {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.top-nav h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.reports-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.report-chip {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(35, 54, 78, 0.55);
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

.report-chip:hover {
  border-color: var(--accent);
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(65px);
  pointer-events: none;
  opacity: 0.35;
}

.orb-a {
  width: 300px;
  height: 300px;
  background: #2f7ec4;
  top: -80px;
  right: 8%;
}

.orb-b {
  width: 260px;
  height: 260px;
  background: #1e9d88;
  bottom: -100px;
  left: 8%;
}

.layout {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 2rem));
  margin: 1.5rem auto 2.5rem;
  display: grid;
  gap: 1rem;
}

.hero {
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(30, 46, 67, 0.95), rgba(17, 29, 44, 0.85));
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-size: 0.78rem;
}

.hero h1 {
  margin: 0.35rem 0 0.2rem;
  font-size: clamp(1.5rem, 2.7vw, 2.2rem);
}

.subhead {
  margin: 0;
  color: var(--muted);
}

.chips {
  margin-top: 0.85rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.chip {
  font-size: 0.8rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(35, 54, 78, 0.55);
}

.chip.muted {
  color: var(--muted);
}

.panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  background: var(--card);
  backdrop-filter: blur(6px);
}

.panel h2 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.hint {
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-size: 0.9rem;
}

textarea,
button {
  font: inherit;
}

textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(10, 16, 25, 0.75);
  color: var(--text);
  border-radius: 10px;
  padding: 0.7rem;
  resize: vertical;
}

.actions {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn {
  border: 1px solid var(--line);
  background: rgba(48, 72, 102, 0.7);
  color: var(--text);
  padding: 0.45rem 0.8rem;
  border-radius: 9px;
  cursor: pointer;
}

.btn:hover {
  filter: brightness(1.1);
}

.btn.primary {
  background: linear-gradient(160deg, #3b8fd1, #2e6fa8);
  border-color: #6ebcf8;
}

.btn.ghost {
  background: rgba(24, 39, 57, 0.75);
}

.grid.two-up {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.status {
  margin: 0 0 0.55rem;
  font-weight: 600;
}

.status.waiting {
  color: var(--warn);
}

.status.ok {
  color: var(--good);
}

.status.error {
  color: var(--bad);
}

.raw {
  margin: 0;
  background: rgba(8, 14, 22, 0.75);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem;
  max-height: 220px;
  overflow: auto;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.82rem;
}

.raw.tall {
  max-height: 320px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 0.55rem;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.report-table th,
.report-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.55rem;
  text-align: left;
  font-size: 0.88rem;
}

.report-table th {
  background: rgba(20, 34, 51, 0.85);
}

.report-table tr:last-child td {
  border-bottom: none;
}

.report-table a {
  color: var(--accent);
}

.empty {
  color: var(--muted);
}

@media (max-width: 850px) {
  .grid.two-up {
    grid-template-columns: 1fr;
  }
}
