:root {
  --bg: #f3ebe1;
  --surface: #fffdf9;
  --text: #3a2a1c;
  --muted: #7a6552;
  --accent: #8a5a2b;
  --accent-strong: #6e4520;
  --border: #e2d4c4;
  --danger: #a33b2b;
  --ok: #2f6b45;
  --shadow: 0 12px 32px rgba(58, 42, 28, 0.08);
  --radius: 18px;
  font-family: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, #fff8ef 0%, transparent 55%),
    linear-gradient(180deg, #f7f0e7 0%, var(--bg) 100%);
}

.shell {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.card {
  width: min(100%, 26rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.35rem 1.6rem;
}

.login-card { width: min(100%, 24rem); }

.brand {
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -0.03em;
  color: var(--accent-strong);
  text-align: center;
}

.brand-sm {
  font-size: 1.05rem;
  text-align: left;
  margin-bottom: 0.2rem;
}

.lead, .muted {
  color: var(--muted);
  text-align: center;
  margin: 0.35rem 0 1.2rem;
}

.muted { text-align: left; font-size: 0.95rem; }

h1 {
  margin: 0;
  font-size: 1.45rem;
}

h2 {
  margin: 0.4rem 0 0.6rem;
  font-size: 1.2rem;
}

label {
  display: block;
  margin-bottom: 0.9rem;
  font-weight: 600;
  font-size: 0.95rem;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  min-height: 2.8rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.55rem 0.8rem;
  font: inherit;
  background: #fff;
}

.email-compose {
  display: flex;
  align-items: stretch;
  margin-top: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.email-compose input[type="text"] {
  margin: 0;
  border: 0;
  border-radius: 0;
  flex: 1;
  min-width: 0;
}

.email-compose input[type="text"]:focus {
  outline: none;
}

.email-compose:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(138, 90, 43, 0.15);
}

.email-suffix {
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  background: #f6eee4;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  border-left: 1px solid var(--border);
  user-select: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.55rem 1.1rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
}

.btn.primary:hover { background: var(--accent-strong); }

.btn.ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn.wide { width: 100%; margin-top: 0.6rem; }

.error {
  color: var(--danger);
  background: #f8e8e4;
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  margin: 0 0 1rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.date-options {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.option {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  font-weight: 500;
}

.option input { margin-top: 0.2rem; }

.success-box, .confirm-box {
  display: grid;
  gap: 0.7rem;
}

.success-box p, .confirm-box p { margin: 0; line-height: 1.45; }

.actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
