:root {
  color: #172033;
  background: #eef3ff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

.shell {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.hero {
  margin-bottom: 24px;
  padding: 40px;
  border-radius: 28px;
  color: white;
  background: linear-gradient(135deg, #2457f5, #7a3df0);
  box-shadow: 0 24px 60px rgba(40, 80, 200, 0.25);
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 800;
  opacity: 0.8;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  line-height: 0.95;
  margin-bottom: 16px;
}

.hero p:last-child {
  max-width: 680px;
  margin-bottom: 0;
  font-size: 1.1rem;
  opacity: 0.92;
}

.card {
  margin-top: 20px;
  padding: 24px;
  border: 1px solid rgba(84, 105, 150, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 36px rgba(50, 61, 90, 0.08);
}

form {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 16px;
  align-items: end;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #ccd6ed;
  border-radius: 14px;
  font: inherit;
}

button {
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  color: white;
  background: #2457f5;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

button:disabled {
  opacity: 0.55;
  cursor: wait;
}

button.secondary {
  color: #2457f5;
  background: #e7edff;
}

.actions,
.table-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.actions p {
  margin-bottom: 0;
  color: #5b6578;
}

.message {
  margin: 16px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #e7edff;
}

.message.success {
  color: #0f6b3f;
  background: #dcfce7;
}

.message.error {
  color: #a21c1c;
  background: #fee2e2;
}

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

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

th,
td {
  padding: 14px 10px;
  border-bottom: 1px solid #e5eaf5;
  text-align: left;
}

th {
  color: #5b6578;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 860px) {
  form,
  .actions,
  .table-header {
    display: grid;
    grid-template-columns: 1fr;
  }
}
