:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #f5f7fb;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: linear-gradient(180deg, #f7f9fd 0%, #eef2f8 100%); }
.shell { width: min(780px, calc(100% - 28px)); margin: 42px auto; }
.admin-shell { width: min(1280px, calc(100% - 28px)); margin: 36px auto; }
.card { background: #fff; border: 1px solid #e4e8f0; border-radius: 18px; box-shadow: 0 18px 50px rgba(25, 37, 63, .07); padding: clamp(22px, 4vw, 42px); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 800; font-size: .75rem; color: #5a6480; }
h1 { margin: 7px 0 10px; font-size: clamp(2rem, 5vw, 3rem); line-height: 1; }
.intro { color: #667085; line-height: 1.6; margin: 0 0 28px; }
form { display: grid; gap: 22px; }
.grid { display: grid; gap: 16px; }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.phone-grid { display: grid; grid-template-columns: 145px 1fr; gap: 16px; }
.dob-grid { display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 16px; }
label { display: grid; gap: 7px; font-weight: 650; font-size: .92rem; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }
legend { font-weight: 800; margin-bottom: 3px; }
.fieldset-hint { margin: 0; color: #7b849c; font-size: .82rem; }
input, select { width: 100%; border: 1px solid #cfd6e4; border-radius: 10px; padding: 12px 13px; font: inherit; color: inherit; background: #fff; outline: none; }
input:focus, select:focus { border-color: #465fff; box-shadow: 0 0 0 3px rgba(70, 95, 255, .12); }
.required { color: #c92a2a; }
.hint { color: #7b849c; font-weight: 500; font-size: .82rem; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.checks label { display: flex; align-items: center; gap: 8px; border: 1px solid #d9deea; border-radius: 999px; padding: 9px 13px; font-weight: 600; background: #fbfcff; cursor: pointer; }
.checks input { width: auto; accent-color: #1e40af; }
button, .button-link, .small-btn { border: 0; border-radius: 10px; padding: 12px 16px; font: inherit; font-weight: 800; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.primary { background: #172033; color: #fff; }
.primary:hover { background: #25304a; }
.secondary { background: #fff; color: #172033; border: 1px solid #ccd3e1; }
.submit { min-height: 50px; }
button:disabled { opacity: .55; cursor: wait; }
.privacy, .local-warning { color: #7b849c; font-size: .82rem; line-height: 1.5; }
.honeypot { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.message { display: none; padding: 12px 14px; border-radius: 10px; line-height: 1.4; }
.message.success { display: block; background: #ecfdf3; color: #166534; border: 1px solid #bbf7d0; }
.message.error { display: block; background: #fff1f2; color: #9f1239; border: 1px solid #fecdd3; }
.admin-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.admin-header .intro { margin-bottom: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-card { padding: 24px; }
.admin-help { margin-bottom: 20px; padding: 12px 14px; border-radius: 10px; background: #f8faff; border: 1px solid #e0e7ff; color: #475467; font-size: .88rem; line-height: 1.5; }
.search-label { max-width: 500px; margin-bottom: 20px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 980px; }
th, td { text-align: left; vertical-align: top; border-bottom: 1px solid #e8ebf2; padding: 14px 12px; font-size: .9rem; line-height: 1.5; }
th { color: #59647c; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
td a { color: #3046b5; overflow-wrap: anywhere; }
.row-actions { display: flex; flex-direction: column; gap: 7px; }
.small-btn { padding: 8px 10px; font-size: .8rem; background: #eef2ff; color: #293ea4; white-space: nowrap; }
.small-btn.danger { background: #fff1f2; color: #b42318; }
.empty { text-align: center; color: #7b849c; padding: 34px; }
@media (max-width: 680px) {
  .shell, .admin-shell { width: min(100% - 18px, 1280px); margin: 18px auto; }
  .card { border-radius: 14px; padding: 20px; }
  .two, .phone-grid, .dob-grid { grid-template-columns: 1fr; }
  .admin-header { align-items: stretch; flex-direction: column; }
  .actions a { flex: 1; }
}
