:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --text: #2a2622;
  --text-muted: #6b645c;
  --accent: #3f5d4e;
  --accent-text: #ffffff;
  --border: #e7e1d7;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1a17;
    --surface: #26231f;
    --text: #efece6;
    --text-muted: #a49c90;
    --accent: #6fa98a;
    --accent-text: #15241d;
    --border: #3a352e;
  }
}

* { box-sizing: border-box; }
body {
  font-family: "Georgia", "Iowan Old Style", serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
}
.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4rem;
}
h1 {
  font-size: 2rem;
  font-weight: 500;
  margin: 0 0 0.3rem;
  letter-spacing: 0.01em;
}
.subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 2.2rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.8rem;
}
.back {
  display: inline-block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.back:hover { color: var(--text); }
label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
input {
  width: 100%;
  padding: 0.65rem 0.8rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  margin-bottom: 1rem;
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
button {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.65rem 1.4rem;
  background: var(--accent);
  color: var(--accent-text);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
button:hover { opacity: 0.92; }
a.button {
  display: inline-block;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.65rem 1.4rem;
  background: var(--accent);
  color: var(--accent-text);
  border-radius: 8px;
}
#status { font-size: 0.9rem; margin-top: 0.3rem; min-height: 1.2em; }
table { border-collapse: collapse; width: 100%; margin-top: 1rem; }
th, td { text-align: left; padding: 0.55rem 0.4rem; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
th { color: var(--text-muted); font-weight: 500; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
footer { margin-top: 3rem; font-size: 0.85rem; color: var(--text-muted); }
footer a { color: var(--text-muted); }
