@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg: #17130f;
  --surface: #211b15;
  --surface-2: #2a231b;
  --line: #3a3025;
  --text: #eee3d3;
  --muted: #9a8a72;
  --amber: #e8a33d;
  --amber-dim: #a97527;
  --green: #6fbf73;
  --red: #d9634f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  line-height: 1.5;
  background-image:
    radial-gradient(circle at 50% -10%, rgba(232, 163, 61, 0.06), transparent 45%);
}

a { color: var(--amber); }

.scanline {
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  background-size: 200% 100%;
  animation: sweep 3.2s linear infinite;
  opacity: 0.7;
}
@keyframes sweep {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .scanline { animation: none; }
}

.wrap { max-width: 880px; margin: 0 auto; padding: 32px 20px 80px; }

.center-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

header.top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 17px;
  color: var(--amber);
}
.brand span { color: var(--muted); font-weight: 400; }

.muted { color: var(--muted); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 20px;
  margin-bottom: 18px;
}

.card h2, .card h3 {
  margin-top: 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
}

label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
  margin-top: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
label:first-child { margin-top: 0; }

input, select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 9px 10px;
  border-radius: 2px;
  font-family: inherit;
  font-size: 14px;
}
input:focus, select:focus, button:focus, .btn:focus {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
}

.auth-card {
  width: 360px;
}

button, .btn {
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--amber-dim);
  background: transparent;
  color: var(--amber);
  padding: 9px 16px;
  border-radius: 2px;
  font-size: 13px;
  letter-spacing: 0.03em;
  transition: background 0.12s ease, color 0.12s ease;
}
button:hover, .btn:hover { background: var(--amber); color: #17130f; }

button.primary {
  background: var(--amber);
  color: #17130f;
  font-weight: 600;
}
button.primary:hover { background: #f2b453; }

button.danger { border-color: #7a3a30; color: var(--red); }
button.danger:hover { background: var(--red); color: #17130f; }

.error {
  color: var(--red);
  font-size: 13px;
  margin-top: 10px;
  border-left: 2px solid var(--red);
  padding-left: 8px;
}

.row { display: flex; gap: 12px; }
.row > * { flex: 1; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  text-align: left;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
}
td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: none; }

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.status-dot.live { background: var(--green); box-shadow: 0 0 6px var(--green); animation: pulse 1.6s ease-in-out infinite; }
.status-dot.idle { background: var(--muted); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.badge {
  display: inline-block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 2px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.badge.placed { color: var(--green); border-color: #2f4f31; }
.badge.failed { color: var(--red); border-color: #5a2e26; }
.badge.skipped { color: var(--muted); }

.config-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.config-meta { color: var(--muted); font-size: 12px; margin-top: 4px; }

.empty { color: var(--muted); font-size: 13px; padding: 12px 0; }

form.inline { display: inline; }

.footer-note {
  margin-top: 40px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
