:root {
  color-scheme: light;
  --bg: #f5f8ff;
  --card: #ffffff;
  --text: #142033;
  --muted: #5f6f89;
  --blue: #1e78e5;
  --blue-dark: #0f46a0;
  --line: #dce7f7;
  --shadow: 0 18px 45px rgba(15, 70, 160, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #ffffff 0%, var(--bg) 52%, #dcecff 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

.app-shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 22px 16px 32px;
}

.hero {
  padding: 28px 4px 20px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue-dark);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

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

h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 8vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero p:last-child {
  margin-bottom: 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(220, 231, 247, 0.9);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 18px;
  margin-top: 16px;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.card-header h2 {
  margin-bottom: 4px;
  font-size: 1.1rem;
}

.card-header p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.4;
}

.email-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  background: #f0f6ff;
  border: 1px solid #d6e8ff;
  border-radius: 18px;
  padding: 12px;
}

code {
  color: var(--blue-dark);
  font-size: 0.98rem;
  word-break: break-all;
}

.actions {
  margin-top: 14px;
}

.primary,
.secondary {
  border: 0;
  border-radius: 16px;
  font-weight: 800;
  cursor: pointer;
  min-height: 46px;
  padding: 0 16px;
}

.primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 22px rgba(30, 120, 229, 0.22);
}

.secondary {
  background: #eaf2ff;
  color: var(--blue-dark);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.full {
  width: 100%;
}

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

.empty {
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 18px;
  padding: 18px;
  text-align: center;
}

.message {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 14px;
}

.message strong {
  display: block;
  margin-bottom: 5px;
  font-size: 0.98rem;
}

.message .meta {
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.message .preview {
  color: #24344f;
  line-height: 1.45;
  font-size: 0.94rem;
  white-space: pre-wrap;
}

@media (min-width: 720px) {
  .app-shell {
    padding-top: 48px;
  }

  .card {
    padding: 24px;
  }
}
