:root {
  --ink: #14202b;
  --muted: #5b6b76;
  --brand: #1a7a5e;
  --brand-dark: #135c46;
  --bg: #f6f8f7;
  --card: #ffffff;
  --danger: #b3261e;
  --border: #dde3e0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.4;
}

.wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  min-height: 100vh;
}

h1 { font-size: 1.6rem; margin: 0 0 8px; }
h2 { font-size: 1.2rem; margin: 24px 0 8px; }
p.lead { color: var(--muted); margin: 0 0 24px; }

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 16px 0 6px;
}

input[type="text"],
input[type="tel"],
select,
textarea {
  width: 100%;
  font-size: 1.1rem;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
}

textarea { min-height: 80px; resize: vertical; }

.big-input {
  font-size: 1.5rem;
  text-align: center;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 20px;
}

button, .btn {
  display: block;
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  margin-top: 16px;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

button:active, .btn:active { background: var(--brand-dark); }

.btn-secondary {
  background: #fff;
  color: var(--brand);
  border: 2px solid var(--brand);
}

a.footer-link {
  display: block;
  text-align: center;
  margin-top: 32px;
  color: var(--muted);
  font-size: 0.95rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-top: 16px;
}

.error { color: var(--danger); font-size: 0.9rem; margin-top: 6px; }
.muted { color: var(--muted); font-size: 0.9rem; }
.hidden { display: none !important; }

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}
.toggle-row label { margin: 0; }

table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; }

.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.status-unregistered { background: #fef3c7; color: #92400e; }
.status-active { background: #d1fae5; color: #065f46; }
.status-lost { background: #fee2e2; color: #991b1b; }
.status-disabled { background: #e5e7eb; color: #374151; }
