:root {
  color-scheme: light;
  --ink: #29231f;
  --muted: #81766e;
  --paper: #f6f2ec;
  --panel: #fffdf9;
  --line: #e8dfd4;
  --accent: #765b91;
  --accent-dark: #5d4575;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  padding: 48px 20px;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
}
.admin-shell { width: min(100%, 620px); margin: 0 auto; }
.wordmark {
  display: inline-block;
  margin-bottom: 64px;
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
}
h1 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(38px, 8vw, 56px);
  font-weight: 500;
  line-height: 1.08;
}
h1 em { color: var(--accent); font-weight: 500; }
.intro { margin: 14px 0 32px; color: var(--muted); line-height: 1.7; }
.panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
  box-shadow: 0 12px 36px #30251b0a;
}
.panel h2 {
  margin: 0 0 22px;
  font-family: "Playfair Display", serif;
  font-size: 25px;
  font-weight: 500;
}
label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 700; }
input {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: white;
  color: var(--ink);
  font: inherit;
}
button {
  min-height: 46px;
  padding: 12px 17px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
button:disabled { opacity: .5; cursor: wait; }
.primary-button { background: var(--accent); color: white; }
.primary-button:hover { background: var(--accent-dark); }
.secondary-button { background: transparent; color: var(--accent-dark); }
#login-form .primary-button { width: 100%; margin-top: 14px; }
.status-line, .results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.status-line h2 { margin: 0; }
.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #4d966b;
}
.status-dot.closed { background: #b45b52; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
.actions #results-button { grid-column: 1 / -1; }
.message { min-height: 20px; margin: 16px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.results { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.results-heading h2 { margin: 0; }
.results-heading span { color: var(--muted); font-size: 11px; }
.results ol { margin: 20px 0 0; padding: 0; list-style: none; }
.results li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.results li strong { color: var(--accent-dark); }
.logout-button {
  display: block;
  margin: 24px 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--muted);
}
.footnote {
  margin-top: 48px;
  color: #a69a8e;
  text-align: center;
  font-size: 9px;
  letter-spacing: .2em;
}
[hidden] { display: none !important; }
@media (max-width: 480px) {
  body { padding: 28px 16px; }
  .wordmark { margin-bottom: 48px; }
  .panel { padding: 22px; }
}
