:root {
  --bg: #faf7f0; --card: #fff; --ink: #2b2a27; --muted: #6b675e;
  --accent: #b97d0c; --accent-dark: #8f6009; --line: #e6dfcf; --err: #b3261e;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.5; }
.wrap { max-width: 560px; margin: 0 auto; padding: 32px 16px; }
header h1 { font-size: 1.55rem; margin: 0 0 4px; }
header p { margin: 0 0 24px; color: var(--muted); }
h1 { font-size: 1.4rem; margin: 0 0 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 24px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
label { display: block; font-weight: 600; margin: 16px 0 6px; }
input[type=text], input[type=email], input[type=tel], input[type=password], select {
  width: 100%; padding: 10px 12px; font: inherit; border: 1px solid #cfc7b5;
  border-radius: 8px; background: #fff; color: var(--ink); }
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.roles { display: grid; gap: 8px; }
.roles label { font-weight: 400; margin: 0; display: flex; gap: 10px; align-items: center;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.roles label:has(input:checked) { border-color: var(--accent); background: #fdf6e7; }
.actions { display: flex; gap: 12px; margin-top: 24px; }
button { font: inherit; font-weight: 600; padding: 10px 22px; border-radius: 8px; border: 0; cursor: pointer; }
.primary { background: var(--accent); color: #fff; margin-left: auto; }
.primary:hover { background: var(--accent-dark); }
.secondary { background: transparent; border: 1px solid #cfc7b5; color: var(--ink); }
.errors { background: #fdecea; border: 1px solid #f3c1bc; color: var(--err);
  border-radius: 8px; padding: 12px 16px; margin-bottom: 8px; }
.errors ul { margin: 0; padding-left: 18px; }
.summary { color: var(--muted); margin: 0; }
.thanks h2 { font-size: 1.25rem; margin-top: 0; }
.hp { position: absolute; left: -9999px; }
[hidden] { display: none !important; }
a { color: var(--accent-dark); }
.admin .wrap { max-width: 1100px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.table-scroll { overflow-x: auto; padding: 0; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f3eee2; white-space: nowrap; }
tbody tr:hover { background: #fcfaf5; }
.table-scroll > p { padding: 24px; margin: 0; }

.syscheck { margin-top: 20px; padding: 16px 20px; }
.syscheck summary { cursor: pointer; font-weight: 600; }
.syscheck table { margin-top: 12px; }
.syscheck th { width: 200px; background: transparent; }
.syscheck tr.bad td, .syscheck tr.bad th { color: var(--err); }
.syscheck p { margin: 12px 0 0; }
