:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0b090d;
  color: #f8f5f6;
  --panel: #17141a;
  --line: #302a33;
  --pink: #edbfc7;
  --gold: #b78c43;
  --muted: #aaa2ac;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 80% 0, #2b1d25 0, transparent 34%), #0b090d; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.shell { width: min(1160px, calc(100% - 32px)); margin: 0 auto; padding-bottom: 72px; }
.topbar { min-height: 82px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand, .userActions, .hero, .historyHeader, .formFooter { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); margin-top: 3px; }
.flame { display: grid; place-items: center; width: 42px; height: 42px; background: var(--pink); color: #261d22; border-radius: 14px; font-size: 28px; transform: rotate(18deg); }
.loginCard { width: min(480px, 100%); margin: 12vh auto 0; padding: 40px; border: 1px solid var(--line); border-radius: 28px; background: rgba(23,20,26,.96); box-shadow: 0 24px 80px rgba(0,0,0,.35); text-align: center; }
.loginCard h1 { margin: 18px 0 10px; }
.loginCard p { color: var(--muted); line-height: 1.6; }
.mark { margin: auto; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; background: var(--pink); color: #251d21; font-weight: 900; }
.hero { padding: 58px 0 28px; }
.hero h1, .historyHeader h2 { margin: 6px 0 0; font-size: clamp(28px, 4vw, 44px); }
.eyebrow { color: var(--pink); font-size: 12px; letter-spacing: .16em; font-weight: 800; }
.statusDot { color: #ccf0d7; border: 1px solid #33583f; padding: 9px 13px; border-radius: 999px; font-size: 13px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 22px; }
.card { background: rgba(23,20,26,.96); border: 1px solid var(--line); border-radius: 22px; }
.formCard, .guidance { padding: 26px; }
label { display: grid; gap: 8px; color: #ded8df; font-size: 14px; font-weight: 700; }
input, textarea, select { width: 100%; border: 1px solid #3b343e; border-radius: 13px; color: #fff; background: #0f0d11; padding: 13px 14px; outline: none; }
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(237,191,199,.12); }
.formCard { display: grid; gap: 18px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.guidance h2 { margin-top: 0; }
.guidance li { color: var(--muted); line-height: 1.55; margin-bottom: 14px; }
.primary, .ghost { border: 0; border-radius: 12px; padding: 12px 18px; font-weight: 800; }
.primary { background: var(--pink); color: #271f23; }
.primary:hover { background: #f6d2d8; }
.ghost { background: #211d23; color: #eee8ef; border: 1px solid var(--line); }
.error { color: #ff9a9a !important; min-height: 22px; }
.historyHeader { margin: 48px 0 18px; }
.history { display: grid; gap: 12px; }
.historyItem { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 20px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; }
.historyItem h3 { margin: 0 0 6px; }
.historyItem p { margin: 0; color: var(--muted); line-height: 1.45; }
.meta { margin-top: 12px !important; font-size: 13px; }
.pill { align-self: start; padding: 7px 10px; border-radius: 999px; background: #28222b; font-size: 12px; font-weight: 800; }
.pill.sent { color: #c9efd5; background: #1f3927; }
.pill.error { color: #ffc2c2; background: #462529; }
.pill.scheduled { color: #f4dfb8; background: #49391f; }
.muted, #formMessage, #userEmail { color: var(--muted); }
@media (max-width: 780px) {
  .layout, .grid2 { grid-template-columns: 1fr; }
  .hero { align-items: flex-start; flex-direction: column; }
  .topbar { padding: 10px 0; }
  #userEmail { display: none; }
  .loginCard { padding: 28px 22px; }
}
