:root {
  --primary: #1a56db;
  --primary-dark: #1442ab;
  --bg: #f4f6fb;
  --card-bg: #ffffff;
  --text: #1c2434;
  --muted: #6b7280;
  --border: #e5e7eb;
  --success: #067647;
  --success-bg: #ecfdf3;
  --error: #b42318;
  --error-bg: #fef3f2;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  padding-bottom: 70px;
}
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--primary); color: white; padding: 14px 16px;
  position: sticky; top: 0; z-index: 10;
}
.brand { font-weight: 700; font-size: 18px; }
.topbar .btn-link { color: white; text-decoration: underline; background: none; border: none; cursor: pointer; }

.tabbar {
  display: flex; overflow-x: auto; background: white; border-bottom: 1px solid var(--border);
  position: sticky; top: 52px; z-index: 9;
}
.tabbar a {
  padding: 12px 14px; text-decoration: none; color: var(--muted); white-space: nowrap; font-size: 14px;
  border-bottom: 2px solid transparent;
}
.tabbar a.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

main { padding: 14px; max-width: 720px; margin: 0 auto; }
.loading { text-align: center; padding: 40px; color: var(--muted); }

.card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px; margin-bottom: 14px;
}
.card h2 { margin-top: 0; }
.auth-card { max-width: 380px; margin: 40px auto; }

.muted { color: var(--muted); font-size: 13px; }

.form-group { margin-bottom: 12px; display: flex; flex-direction: column; gap: 4px; }
.form-group label { font-size: 13px; font-weight: 600; }
input, select, textarea {
  padding: 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 15px; width: 100%;
  font-family: inherit;
}
textarea { min-height: 70px; }

.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-form input, .inline-form select { width: auto; flex: 1 1 160px; }

.btn {
  border: none; border-radius: 8px; padding: 11px 18px; font-size: 15px; font-weight: 600; cursor: pointer;
}
.btn.primary { background: var(--primary); color: white; }
.btn.primary:hover { background: var(--primary-dark); }
.btn.secondary { background: #eef2ff; color: var(--primary); }
.btn-link { background: none; border: none; color: var(--primary); cursor: pointer; text-decoration: underline; padding: 0; font-size: 13px; }
.btn-row { display: flex; gap: 10px; margin: 12px 0; }

.camera-preview {
  width: 100%; max-height: 320px; background: #000; border-radius: 10px; object-fit: cover; margin: 10px 0;
}

.status { min-height: 18px; font-size: 13px; color: var(--muted); margin: 6px 0; }
.alert { padding: 10px 12px; border-radius: 8px; margin-top: 8px; font-size: 14px; }
.alert.success { background: var(--success-bg); color: var(--success); }
.alert.error { background: var(--error-bg); color: var(--error); }

.badge { padding: 2px 8px; border-radius: 999px; font-size: 12px; background: #eef2ff; color: var(--primary); }
.badge.verified { background: var(--success-bg); color: var(--success); }
.badge.rejected { background: var(--error-bg); color: var(--error); }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border); }

.list-item { display: flex; align-items: center; gap: 10px; padding: 12px 6px; border-bottom: 1px solid var(--border); cursor: pointer; }
.list-item .icon { font-size: 22px; }
.list-item-block { padding: 10px 6px; border-bottom: 1px solid var(--border); font-size: 14px; }

.row-between { display: flex; justify-content: space-between; align-items: center; }
.switch { font-size: 13px; display: flex; align-items: center; gap: 6px; }
