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

:root {
  --bg: #101217;
  --bg-soft: #161b22;
  --bg-card: rgba(16, 20, 28, 0.88);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f6fb;
  --muted: #aeb7c8;
  --accent: #ff6b35;
  --accent-soft: #ff9a3c;
  --success: #16a34a;
  --danger: #e11d48;
  --neutral: #3b82f6;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "IBM Plex Sans", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 107, 53, 0.18), transparent 32%),
    radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.16), transparent 28%),
    linear-gradient(180deg, #11151c 0%, #0b0d12 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button,
.button-link {
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.15rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
  color: #180d08;
  font-weight: 700;
  cursor: pointer;
}

button.secondary,
.ghost-button,
.tiny-button {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
}

.tiny-button {
  padding: 0.45rem 0.8rem;
}

input,
select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.9rem 1rem;
}

label {
  display: grid;
  gap: 0.5rem;
}

.shell {
  width: min(1180px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 1rem 0 2rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin: 1rem 0 1.5rem;
  padding: 1rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.topbar h1,
.hero-card h2,
.panel h2,
.login-card h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.03em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.nav a,
.nav form {
  display: inline-flex;
}

.nav a {
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
}

.nav a.active {
  background: rgba(255, 107, 53, 0.14);
  color: #ffd4c2;
}

.content {
  display: grid;
  gap: 1.25rem;
}

.panel,
.hero-card,
.login-card,
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.panel,
.hero-card,
.login-card {
  padding: 1.4rem;
}

.hero-card,
.panel-header,
.actions-row,
.stats-inline,
.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.stat-card {
  padding: 1.2rem;
}

.stat-label,
.eyebrow {
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: #ffb08f;
}

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

.stack,
.inline-form {
  display: grid;
  gap: 0.9rem;
}

.inline-form {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 0.9rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.84rem;
  border: 1px solid transparent;
}

.pill.success,
.pill.claimed {
  background: rgba(22, 163, 74, 0.14);
  border-color: rgba(22, 163, 74, 0.28);
}

.pill.failed {
  background: rgba(225, 29, 72, 0.14);
  border-color: rgba(225, 29, 72, 0.28);
}

.pill.partial,
.pill.skipped,
.pill.neutral {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.28);
}

.notice {
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.notice.success {
  background: rgba(22, 163, 74, 0.12);
}

.notice.error {
  background: rgba(225, 29, 72, 0.12);
}

.notice.info {
  background: rgba(59, 130, 246, 0.12);
}

.inline-link {
  color: #ffc6ae;
}

.text-danger {
  color: #ff9ab4;
}

code {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.4rem;
  border-radius: 8px;
}

.login-card {
  width: min(460px, 100%);
  margin: 5rem auto 0;
}

@media (max-width: 720px) {
  .shell {
    width: min(100vw - 1rem, 100%);
  }

  .topbar {
    align-items: flex-start;
  }

  .inline-form {
    grid-template-columns: 1fr;
  }
}
