:root {
  color-scheme: light;
  --text: #27343a;
  --muted: #727d82;
  --border: #dfe5e7;
  --green: #5ebca6;
  --red: #b34e4e;
  --page: #ffffff;
  --surface: #f7f9f9;
}
* { box-sizing: border-box; }
body {
  background: var(--page);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
}
.auth-shell { margin: 8vh auto; max-width: 440px; padding: 24px; }
.auth-card, .panel { border: 1px solid var(--border); border-radius: 8px; padding: 24px; }
h1 { font-size: 22px; margin: 0 0 8px; }
h2 { font-size: 17px; margin: 0 0 16px; }
p { line-height: 1.5; }
.muted { color: var(--muted); }
label { display: block; font-size: 14px; margin: 16px 0 6px; }
input, select, button { font: inherit; }
input, select { border: 1px solid var(--border); border-radius: 4px; padding: 9px 10px; width: 100%; }
button, .button { background: var(--green); border: 0; border-radius: 4px; color: white; cursor: pointer; display: inline-block; padding: 10px 14px; text-decoration: none; }
button.secondary, .button.secondary { background: var(--surface); border: 1px solid var(--border); color: var(--text); }
button.danger { background: #b34e4e; }
.actions { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.error { color: var(--red); }
.notice { background: var(--surface); border-radius: 4px; padding: 10px; }
.honeypot { height: 1px; left: -10000px; margin: 0; overflow: hidden; position: absolute; top: auto; width: 1px; }
.admin-shell { margin: 28px auto 40px; max-width: 1100px; padding: 0 18px; }
.admin-header { align-items: center; display: flex; gap: 16px; justify-content: space-between; margin-bottom: 20px; }
.section-actions { align-items: center; display: flex; gap: 16px; justify-content: space-between; }
.section-actions h2 { margin-bottom: 0; }
.saved-text { color: var(--green); font-size: 14px; }
.panel { margin-top: 16px; }
.settings-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.settings-grid label { margin-top: 0; }
.check { align-items: center; display: flex; gap: 8px; margin-top: 28px; }
.check input { width: auto; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; min-width: 760px; width: 100%; }
th, td { border-bottom: 1px solid var(--border); padding: 10px 8px; text-align: left; vertical-align: middle; }
th { font-size: 13px; color: var(--muted); font-weight: 500; }
td input, td select { min-width: 110px; padding: 6px; }
@media (max-width: 700px) {
  .admin-header { align-items: flex-start; flex-direction: column; }
  .section-actions { align-items: flex-start; flex-direction: column; gap: 8px; }
  .settings-grid { grid-template-columns: 1fr; }
  .check { margin-top: 0; }
}
