:root {
  --ink: #1c1915;
  --paper: #f4efe6;
  --card: #fffdf8;
  --line: #e4d9c8;
  --green: #0e6b52;
  --green-dark: #0a4d3b;
  --clay: #9a3b24;
  --muted: #6d645b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(1200px 400px at 10% -10%, #efe2cf 0%, transparent 55%),
    var(--paper);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.45;
}

a { color: var(--green-dark); }

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 7vw;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.25rem;
}

.nav { display: flex; gap: 16px; align-items: center; }
.nav a, .nav button.link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}

.wrap { width: min(920px, 86vw); margin: 36px auto 64px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 16px 40px rgba(60, 40, 20, 0.05);
}

h1 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 560;
  font-size: 2.1rem;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}

.lede { color: var(--muted); margin: 0 0 22px; }

label { display: block; font-weight: 600; margin: 14px 0 6px; }

input, select {
  width: 100%;
  border: 1px solid #d9cdb8;
  background: #fff;
  border-radius: 10px;
  padding: 12px 12px;
  font: inherit;
  color: var(--ink);
}

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

button.primary, a.primary {
  display: inline-block;
  margin-top: 18px;
  background: var(--green);
  color: white;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

button.primary:hover, a.primary:hover { background: var(--green-dark); }

.google {
  display: flex;
  justify-content: center;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 18px;
  text-decoration: none;
  color: var(--ink);
  background: white;
  font-weight: 650;
}

.or {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  margin: 18px 0;
}
.or::before, .or::after { content: ""; height: 1px; background: var(--line); }

.flash {
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.flash.error { background: #fde8e2; color: var(--clay); }
.flash.ok { background: #e5f5ee; color: var(--green-dark); }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }

.actions { display: flex; gap: 10px; align-items: center; margin-top: 8px; justify-content: space-between; }

.password-field { display: flex; gap: 8px; align-items: center; }
.password-field input { flex: 1; }

button.ghost {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
}
button.ghost:hover { border-color: var(--green); color: var(--green-dark); }

.handoff { margin-bottom: 18px; }
.handoff textarea {
  width: 100%;
  min-height: 180px;
  border: 1px solid #d9cdb8;
  border-radius: 12px;
  padding: 14px;
  font: inherit;
  resize: vertical;
  background: #fff;
}

@media (max-width: 720px) {
  .row { grid-template-columns: 1fr; }
  .top { padding: 16px 5vw; }
}
