:root {
  --navy: #1e3a8a;
  --navy-dark: #0f172a;
  --green: #22c55e;
  --red: #ef4444;
  --gray: #64748b;
  --bg: #f1f5f9;
  --card: #ffffff;
  --border: #e2e8f0;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: #0f172a;
}
header.topbar {
  background: var(--navy);
  color: #fff;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 20;
}
header.topbar h1 { font-size: 16px; margin: 0; font-weight: 600; }
header.topbar .who { font-size: 12px; opacity: 0.85; }
button {
  cursor: pointer;
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 600;
  background: var(--navy);
  color: #fff;
}
button.secondary { background: #e2e8f0; color: #0f172a; }
button.danger { background: var(--red); }
button.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.5); }
input, select, textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
}
label { font-size: 12px; font-weight: 600; color: var(--gray); display:block; margin: 8px 0 4px; }
.container { max-width: 900px; margin: 0 auto; padding: 16px; padding-bottom: 80px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}
.tabs { display: flex; gap: 6px; margin-bottom: 14px; overflow-x: auto; }
.tabs button { background: #e2e8f0; color: #0f172a; white-space: nowrap; }
.tabs button.active { background: var(--navy); color: #fff; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 140px; }
.switch {
  position: relative; width: 44px; height: 24px; flex: none;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer; inset: 0;
  background: #cbd5e1; border-radius: 24px; transition: 0.2s;
}
.slider::before {
  content: ""; position: absolute; height: 18px; width: 18px; left: 3px; bottom: 3px;
  background: white; border-radius: 50%; transition: 0.2s;
}
input:checked + .slider { background: var(--green); }
input:checked + .slider::before { transform: translateX(20px); }
.section-toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.section-toggle-row:last-child { border-bottom: none; }
.badge { display:inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.badge.draft { background:#fef3c7; color:#92400e; }
.badge.submitted { background:#dcfce7; color:#166534; }
.badge.verified { background:#dbeafe; color:#1e40af; }
.list-item {
  display:flex; justify-content:space-between; align-items:center;
  padding: 12px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px;
  background: #fff;
}
.entry-row {
  border: 1px dashed var(--border); border-radius: 10px; padding: 10px; margin-bottom: 8px; background:#f8fafc;
}
.entry-row .grid { display:grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.photo-inputs { display:flex; gap:10px; margin-top:8px; }
.photo-inputs label.filebtn {
  flex:1; text-align:center; border: 1px dashed #94a3b8; border-radius: 8px; padding: 10px;
  font-size:12px; color: var(--gray); cursor:pointer; background:#fff;
}
.photo-inputs img.preview { width: 100%; height: 80px; object-fit: cover; border-radius: 8px; margin-top:6px; }
.small { font-size: 12px; color: var(--gray); }
.fab-bar {
  position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--border);
  padding: 10px 16px; display:flex; gap:10px; justify-content:center;
}
a.linklike { color: var(--navy); font-weight: 600; cursor: pointer; }
.center { text-align: center; }
.login-wrap { max-width: 360px; margin: 60px auto; }
.logo-title { text-align:center; margin-bottom: 20px; }
.logo-title h1 { font-size: 18px; color: var(--navy); margin: 6px 0 2px; }
.logo-title p { font-size: 12px; color: var(--gray); margin: 0; }
.error-msg { color: var(--red); font-size: 13px; margin-top: 6px; }
