:root {
  --bg: #eef4fb;
  --panel: #ffffff;
  --ink: #071f3d;
  --muted: #57708f;
  --line: #d5e2f1;
  --accent: #0c4d9a;
  --accent2: #102a56;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

.hero {
  background: linear-gradient(120deg, #061a36, #0c4d9a);
  color: white;
  padding: 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  opacity: 0.85;
}

h1 {
  margin: 6px 0;
  font-size: 38px;
}

h2 {
  margin-top: 0;
}

.status {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 14px 16px;
  border-radius: 14px;
  max-width: 360px;
}

.layout {
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 8px 22px rgba(7,31,61,0.07);
}

.wide {
  grid-column: 1 / -1;
}

.form {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.form.grid {
  grid-template-columns: repeat(5, minmax(140px, 1fr));
}

input, select, button {
  padding: 12px 13px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 14px;
}

button {
  background: var(--accent2);
  color: white;
  font-weight: bold;
  cursor: pointer;
  border: none;
}

button:hover {
  background: var(--accent);
}

.list {
  display: grid;
  gap: 10px;
}

.item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #f8fbff;
}

.item strong {
  display: block;
  margin-bottom: 5px;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.output {
  white-space: pre-wrap;
  background: #061a36;
  color: #eaf4ff;
  padding: 16px;
  border-radius: 14px;
  min-height: 120px;
  overflow-x: auto;
}

footer {
  padding: 20px 28px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 900px) {
  .hero, .layout {
    display: block;
  }

  .card {
    margin-bottom: 18px;
  }

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