:root {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17212f;
  background: #f4f6f9;
}
* { box-sizing: border-box; }
body { margin: 0; padding: 28px 16px; }
.card { max-width: 520px; margin: 0 auto; background: white; border-radius: 20px; padding: 24px; box-shadow: 0 12px 40px #19243a14; }
.badge { color: #b91c1c; font-weight: 800; letter-spacing: .13em; font-size: 12px; }
h1 { margin: 10px 0 6px; font-size: 30px; }
header p { margin: 0 0 20px; color: #667085; }
.notice { padding: 12px; border-radius: 10px; background: #fff5e5; color: #784b00; font-size: 13px; line-height: 1.5; margin-bottom: 16px; }
.notice.ready { background: #eaf7ee; color: #23643a; }
.contact { padding: 15px 0; border-bottom: 1px solid #e8edf2; }
.contact:last-child { border-bottom: 0; }
.contact strong { display: block; font-size: 16px; }
.contact a { display: inline-block; margin-top: 8px; color: #b91c1c; font-weight: 700; text-decoration: none; font-size: 19px; }
.contact small { display: block; margin-top: 5px; color: #667085; }
footer { margin-top: 20px; font-size: 12px; line-height: 1.6; color: #667085; }
footer a { color: #b91c1c; }
@media (max-width: 400px) { .card { padding: 20px; } h1 { font-size: 26px; } }

/* V1.1 local admin */
.admin-card { max-width: 780px; }
h2 { margin: 20px 0 12px; }
h3 { margin: 18px 0 10px; }
label { display: block; margin: 12px 0 6px; font-weight: 650; }
input { width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid #cbd5e1; border-radius: 9px; font: inherit; }
input[readonly] { background: #f1f5f9; color: #475569; }
button, .button-link { display: inline-block; border: 0; border-radius: 9px; background: #b91c1c; color: white; padding: 11px 15px; font: inherit; font-weight: 650; cursor: pointer; text-decoration: none; text-align: center; }
button.secondary { background: #e8edf4; color: #263549; }
button.danger { background: #7f1d1d; }
button.small { padding: 9px 12px; }
button[hidden], [hidden] { display: none !important; }
.toolbar, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0; }
.toolbar input { flex: 1 1 210px; }
.record-list { display: grid; gap: 8px; margin: 12px 0; }
.record-item { text-align: left; overflow-wrap: anywhere; }
.contact-editor { display: grid; grid-template-columns: 1.2fr 1fr 1.3fr auto; gap: 8px; margin-bottom: 10px; align-items: center; }
hr { border: 0; border-top: 1px solid #e2e8f0; margin: 24px 0; }
#feedback { min-height: 22px; color: #365c3e; font-size: 14px; }
@media (max-width: 680px) { .contact-editor { grid-template-columns: 1fr 1fr; } .contact-editor input:nth-child(3) { grid-column: 1 / -1; } }
@media (max-width: 370px) { .contact-editor { grid-template-columns: 1fr; } .contact-editor input:nth-child(3) { grid-column: auto; } }
