:root {
  color-scheme: dark;
  --bg: #070b14;
  --panel: rgba(14, 20, 34, 0.84);
  --panel-border: rgba(148, 163, 184, 0.16);
  --text: #e5eefc;
  --muted: #8aa0bf;
  --accent: #63b3ff;
  --accent-strong: #8a6dff;
  --shadow: 0 25px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-block-size: 100vh;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(99, 179, 255, 0.14), transparent 30%),
    radial-gradient(circle at top right, rgba(138, 109, 255, 0.16), transparent 26%),
    linear-gradient(160deg, #05070d 0%, #0b1020 55%, #05070d 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 90%);
}

.shell {
  inline-size: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.8fr);
  gap: 20px;
  align-items: end;
  margin-block-end: 24px;
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.9rem);
  line-height: 0.95;
  max-inline-size: 11ch;
}

.subhead {
  margin: 18px 0 0;
  max-inline-size: 60ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.status-card,
.card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(18px);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.status-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
}

.status-card strong,
.card-header h2,
.history-item h3 {
  display: block;
  margin: 0;
}

.status-card p,
.card-header p,
.helper,
.history-item p,
.history-topline time {
  margin: 0;
  color: var(--muted);
}

.status-dot {
  inline-size: 12px;
  block-size: 12px;
  border-radius: 999px;
  margin-block-start: 6px;
  background: linear-gradient(135deg, #36d399, #63b3ff);
  box-shadow: 0 0 0 6px rgba(54, 211, 153, 0.12);
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
  gap: 20px;
  align-items: start;
}

.card {
  padding: 22px;
}

.card-header {
  margin-block-end: 18px;
}

.card-header h2 {
  font-size: 1.4rem;
  margin-block-end: 8px;
}

label {
  display: grid;
  gap: 8px;
  margin-block-end: 16px;
}

label span {
  color: #c7d5ea;
  font-size: 0.95rem;
}

input,
textarea,
select {
  inline-size: 100%;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  background: rgba(5, 10, 20, 0.72);
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

textarea {
  resize: vertical;
  min-block-size: 150px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(99, 179, 255, 0.8);
  box-shadow: 0 0 0 4px rgba(99, 179, 255, 0.12);
}

.submit-btn {
  inline-size: 100%;
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  font: inherit;
  font-weight: 700;
  color: #06111f;
  cursor: pointer;
  background: linear-gradient(135deg, #63b3ff, #8a6dff);
  box-shadow: 0 18px 40px rgba(99, 179, 255, 0.26);
}

.submit-btn:hover {
  transform: translateY(-1px);
}

.helper {
  margin-block-start: 14px;
  min-block-size: 1.2em;
}

.history-list {
  display: grid;
  gap: 14px;
  max-block-size: 760px;
  overflow: auto;
  padding-inline-end: 4px;
}

.history-item {
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(7, 12, 22, 0.65);
  border-radius: 18px;
  padding: 16px;
}

.history-item h3 {
  margin-block-start: 12px;
  margin-block-end: 8px;
  font-size: 1.02rem;
}

.history-item p {
  white-space: pre-wrap;
  line-height: 1.65;
}

.history-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.type-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.type-added {
  background: rgba(34, 197, 94, 0.16);
  color: #67e8a1;
}

.type-fixed {
  background: rgba(59, 130, 246, 0.16);
  color: #93c5fd;
}

.type-removed {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
}

.type-improved {
  background: rgba(245, 158, 11, 0.16);
  color: #fcd34d;
}

.empty-state {
  border: 1px dashed rgba(148, 163, 184, 0.24);
  border-radius: 18px;
  padding: 28px 18px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero,
  .grid {
    grid-template-columns: 1fr;
  }

  h1 {
    max-inline-size: none;
  }
}
