:root {
  color-scheme: light;
  --bg: #f4f6f1;
  --panel: #fffdf8;
  --text: #17324d;
  --muted: #5d6f82;
  --line: #d8e1e8;
  --accent: #0d3b66;
  --accent-soft: #dcebf8;
  --success: #1c7c54;
  --error: #9f2d2d;
  --shadow: 0 20px 60px rgba(13, 59, 102, 0.12);
  font-family: "Avenir Next", Avenir, Montserrat, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(13, 59, 102, 0.08), transparent 28%),
    linear-gradient(180deg, #f8faf7 0%, var(--bg) 100%);
  color: var(--text);
}

.shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 48px 20px 64px;
}

.hero,
.card {
  background: rgba(255, 253, 248, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(216, 225, 232, 0.85);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero {
  padding: 28px;
}

.card {
  margin-top: 18px;
  padding: 24px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.02;
}

.lede {
  margin-top: 14px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
}

.button-secondary {
  background: var(--accent-soft);
  border-color: rgba(13, 59, 102, 0.14);
  color: var(--accent);
}

.card-detail {
  position: relative;
  overflow: hidden;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(28, 124, 84, 0.12);
  color: var(--success);
  font-weight: 700;
}

.status.status-prepared {
  background: rgba(13, 59, 102, 0.1);
  color: var(--accent);
}

.status.status-sent {
  background: rgba(28, 124, 84, 0.12);
  color: var(--success);
}

.detail-list {
  display: grid;
  gap: 18px;
  margin: 18px 0 0;
}

.detail-list div {
  display: grid;
  gap: 4px;
}

dt {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

dd {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 600;
}

.loading,
.message {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.spinner {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(13, 59, 102, 0.16);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

.message h2 {
  font-size: 1.35rem;
}

.message p {
  line-height: 1.65;
  color: var(--muted);
}

.message.error h2 {
  color: var(--error);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 640px) {
  .shell {
    padding: 24px 14px 40px;
  }

  .hero,
  .card {
    border-radius: 22px;
    padding: 20px;
  }

  .actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
