:root {
  --bg-top: #f6efe3;
  --bg-bottom: #dfe9f3;
  --panel: rgba(255, 255, 255, 0.78);
  --text: #14213d;
  --muted: #5c677d;
  --accent: #ef476f;
  --accent-dark: #b41e42;
  --line: rgba(20, 33, 61, 0.12);
  --ok: #17624f;
  --error: #b42318;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Aptos", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(239, 71, 111, 0.18), transparent 30%),
    linear-gradient(160deg, var(--bg-top), var(--bg-bottom));
}

.shell {
  padding: 20px;
}

.hero {
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--accent-dark);
}

h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}

.subtitle {
  margin: 8px 0 0;
  color: var(--muted);
}

.panel {
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(20, 33, 61, 0.08);
}

.mail-summary {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.field {
  display: block;
  margin-bottom: 14px;
}

.account-box {
  margin-bottom: 18px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(20, 33, 61, 0.05);
}

.mail-status-box {
  margin-bottom: 18px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(239, 71, 111, 0.08);
  border: 1px solid rgba(239, 71, 111, 0.18);
}

.field span {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

input,
select,
textarea,
button {
  width: 100%;
  font: inherit;
}

input,
select,
textarea {
  padding: 12px 14px;
  border: 1px solid rgba(20, 33, 61, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
}

textarea {
  resize: vertical;
}

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

.action-hint {
  min-height: 20px;
  margin: 8px 2px 0;
  font-size: 13px;
  color: var(--muted);
}

button {
  padding: 12px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease, opacity 120ms ease, background 120ms ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: var(--accent-dark);
}

button.secondary {
  background: rgba(20, 33, 61, 0.08);
  color: var(--text);
}

button.ghost {
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  border: 1px solid rgba(20, 33, 61, 0.12);
}

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

.status-panel p {
  margin: 0;
  color: var(--ok);
}

.status-panel p.error {
  color: var(--error);
}

@media (min-width: 640px) {
  .actions {
    grid-template-columns: repeat(3, 1fr);
  }
}
