:root{--blue:#1d4ed8;--orange:#f97316;--bg:#f8fafc;--text:#0f172a;--muted:#64748b;--border:#e2e8f0;--card:#fff}*{box-sizing:border-box}body{margin:0;font-family:Segoe UI,Arial,sans-serif;background:var(--bg);color:var(--text)}a{color:var(--blue);text-decoration:none}.topbar{display:flex;align-items:center;justify-content:space-between;padding:14px 28px;background:#fff;border-bottom:1px solid var(--border);position:sticky;top:0}.brand a{font-weight:700;font-size:20px;color:var(--text)}nav{display:flex;gap:16px;align-items:center}.container{max-width:1160px;margin:28px auto;padding:0 20px}.card{background:var(--card);border:1px solid var(--border);border-radius:14px;padding:20px;margin-bottom:18px;box-shadow:0 4px 14px rgba(15,23,42,.04)}.login-card{max-width:420px;margin:40px auto}.grid{display:grid;gap:16px}.cards{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}.two{grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}.num{font-size:34px;font-weight:800;color:var(--blue)}.page-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.btn,button.btn{background:var(--blue);color:#fff;border:0;border-radius:10px;padding:10px 14px;font-weight:600;cursor:pointer}.btn.secondary{background:#e2e8f0;color:#0f172a}.inline-form{display:inline}.inline-form button{border:0;background:transparent;color:var(--blue);cursor:pointer;font:inherit}.filter{display:flex;gap:10px;margin:14px 0 18px}.filter input,.filter select,input,select,textarea{width:100%;max-width:100%;padding:10px;border:1px solid var(--border);border-radius:10px;background:#fff}table{width:100%;border-collapse:collapse;background:#fff}.table{border:1px solid var(--border);border-radius:12px;overflow:hidden}th,td{padding:11px;border-bottom:1px solid var(--border);text-align:left;vertical-align:top}th{background:#f1f5f9;font-weight:700}.detail{display:grid;grid-template-columns:220px 1fr;gap:10px 18px}.detail dt{font-weight:700;color:var(--muted)}.alert{background:#ecfdf5;border:1px solid #bbf7d0;padding:12px 14px;border-radius:10px;margin-bottom:16px}.muted{color:var(--muted)}.form-card p{display:grid;gap:6px;margin-bottom:14px}.errorlist{color:#b91c1c}@media(max-width:700px){.topbar{display:block}.topbar nav{margin-top:12px;flex-wrap:wrap}.page-head{display:block}.detail{grid-template-columns:1fr}.filter{display:block}.filter>*{margin-bottom:10px}}
.actions{display:flex;gap:10px;flex-wrap:wrap}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:10px 0 16px}.stats-grid div{background:#f8fafc;border:1px solid var(--border);border-radius:12px;padding:14px}.stats-grid strong{display:block;font-size:28px;color:var(--blue)}.stats-grid span{color:var(--muted)}.alert-list{display:grid;gap:8px}.alert-item{background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;border-radius:10px;padding:10px 12px}.page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.page-header h1{margin-bottom:4px}.page-header p{margin-top:0;color:var(--muted)}
.version-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  font-size: 12px;
  font-weight: 600;
}
.footer {
  margin: 24px auto 12px;
  max-width: 1100px;
  padding: 12px 16px;
  color: #6b7280;
  font-size: 12px;
  text-align: center;
}

.compact-card{padding:14px 16px}.last-number{font-weight:800;color:var(--blue);margin-left:6px}.small{font-size:13px;margin-top:4px}

.number-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.number-card {
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  padding: 10px 12px;
  background: #f8fafc;
}
.number-label {
  font-size: 13px;
  color: #475569;
  margin-bottom: 4px;
}
.number-value {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}
.badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e8f0ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
}

.org-tree, .org-tree ul { list-style: none; margin-left: 0; padding-left: 1.2rem; }
.org-tree li { margin: .4rem 0; }
.org-tree a { font-weight: 600; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; }


/* Organization dashboard */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(15,23,42,.04);
}
.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}
.stat-card strong {
  display: block;
  color: var(--blue);
  font-size: 30px;
  line-height: 1.1;
}
.stat-card small {
  display: block;
  color: var(--muted);
  margin-top: 6px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.section-head h2,
.card h2 {
  margin-top: 0;
}
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}
.leader-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: #f8fafc;
}
.leader-card.empty {
  background: #fff7ed;
  border-color: #fed7aa;
}
.leader-unit {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}
.leader-person {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 3px;
}
.mini-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
}
.dashboard-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}
.unit-card-list {
  display: grid;
  gap: 10px;
}
.unit-mini-card {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #f8fafc;
}
.unit-mini-card a {
  font-weight: 700;
}
.unit-mini-card span {
  display: block;
  margin-top: 4px;
}
.unit-mini-card.with-number strong {
  min-width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8f0ff;
  color: var(--blue);
}
.notice-card {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  border-radius: 14px;
  padding: 13px 16px;
  margin-bottom: 18px;
}
.notice-card a {
  color: #9a3412;
  font-weight: 700;
  text-decoration: underline;
}
@media(max-width:700px){
  .dashboard-columns {
    grid-template-columns: 1fr;
  }
  .section-head {
    display: block;
  }
}


/* Organization non-command relations */
.relation-card-list {
  display: grid;
  gap: 12px;
}
.relation-card {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(130px, .7fr) minmax(160px, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: #f8fafc;
}
.relation-card p {
  grid-column: 1 / -1;
  margin: 0;
}
.relation-node {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  text-align: center;
  font-weight: 700;
}
.relation-arrow {
  position: relative;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.relation-arrow::before {
  content: "";
  display: block;
  border-top: 2px dashed #64748b;
  margin: 0 0 6px;
}
.relation-arrow::after {
  content: "›";
  position: absolute;
  right: -2px;
  top: -12px;
  font-size: 26px;
  color: #64748b;
}
.relation-card.coordination .relation-arrow::before {
  border-top-style: dotted;
}
.relation-card.support .relation-arrow::before,
.relation-card.functional .relation-arrow::before {
  border-top-style: solid;
}
@media(max-width:700px){
  .relation-card {
    grid-template-columns: 1fr;
  }
  .relation-arrow::after {
    content: "↓";
    position: static;
    display: block;
    line-height: 1;
  }
}

/* Organization edit/history actions */
.row-actions {
  white-space: nowrap;
}
.row-actions .mini-link {
  margin-right: 10px;
}
.mini-link.danger {
  color: #b91c1c;
}
.btn.danger-btn,
button.danger-btn {
  background: #b91c1c;
  color: #fff;
}
.confirm-card {
  max-width: 720px;
}
.confirm-box {
  display: grid;
  gap: 4px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin: 12px 0;
}


.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.mini-link.danger {
  color: #b91c1c;
}
.danger-btn {
  background: #b91c1c;
}
.confirm-box {
  display: grid;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fafc;
  padding: 12px 14px;
  margin: 10px 0 14px;
}
.replace-summary-card {
  background: #f8fafc;
}

/* Organization relation CRUD */
.relation-list {
  display: grid;
  gap: 10px;
  padding-left: 0;
  list-style: none;
}
.relation-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: #f8fafc;
}
.relation-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  justify-content: center;
  padding-top: 2px;
}
@media(max-width:700px){
  .relation-list li {
    display: block;
  }
  .relation-list .row-actions {
    margin-top: 8px;
  }
}


/* Person card */
.person-card-shell {
  display: flex;
  justify-content: center;
  margin: 24px 0;
}
.person-id-card {
  width: 100%;
  max-width: 720px;
  color: #0f172a;
  border-radius: 20px;
  padding: 24px;
  border: 2px solid #cbd5e1;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}
.person-id-card__header,
.person-id-card__footer,
.person-id-card__body {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}
.person-id-card__header {
  align-items: flex-start;
  border-bottom: 1px solid rgba(148, 163, 184, .35);
  padding-bottom: 16px;
}
.person-id-card__eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 700;
  opacity: .85;
}
.person-id-card__header h2 {
  margin: 6px 0 0;
}
.person-id-card__status {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.7);
  white-space: nowrap;
}
.person-id-card__body {
  align-items: center;
  padding: 20px 0;
}
.person-id-card__identity {
  display: grid;
  gap: 14px;
  flex: 1;
}
.person-id-card__field {
  display: grid;
  gap: 4px;
}
.person-id-card__field span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #475569;
}
.person-id-card__field strong {
  font-size: 20px;
  line-height: 1.3;
}
.person-id-card__field.optional strong {
  font-size: 16px;
}
.person-id-card__qr-wrap {
  min-width: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.person-id-card__qr {
  width: 170px;
  height: 170px;
  background: #fff;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, .45);
}
.person-id-card__footer {
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, .35);
  color: #475569;
  font-size: 13px;
}
.person-card-jemaat {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-color: #10b981;
}
.person-card-jemaat .person-id-card__status {
  color: #065f46;
}
.person-card-simpatisan {
  background: linear-gradient(135deg, #faf5ff 0%, #e9d5ff 100%);
  border-color: #8b5cf6;
}
.person-card-simpatisan .person-id-card__status {
  color: #6d28d9;
}
.person-card-non-member {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-color: #64748b;
}
.person-card-non-member .person-id-card__status {
  color: #334155;
}
.break-all {
  word-break: break-all;
}
.validation-card {
  max-width: 720px;
  margin: 0 auto;
}
.validation-badge {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  margin-bottom: 12px;
}
.validation-badge.success {
  background: #dcfce7;
  color: #166534;
}
.validation-badge.invalid {
  background: #fee2e2;
  color: #991b1b;
}
.validation-invalid {
  border-left: 6px solid #dc2626;
}
.validation-detail {
  margin-top: 18px;
}
@media print {
  .topbar, .footer, .page-head, .alert, .compact-card { display: none !important; }
  body { background: #fff; }
  .container { width: auto; max-width: none; margin: 0; padding: 0; }
  .person-card-shell { margin: 0; }
  .person-id-card { box-shadow: none; margin: 0; max-width: none; page-break-inside: avoid; }
}
@media (max-width: 760px) {
  .person-id-card__body,
  .person-id-card__header,
  .person-id-card__footer { flex-direction: column; }
  .person-id-card__qr-wrap { min-width: 0; }
}


/* Organization dashboard grouping */
.majelis-group-list {
  display: grid;
  gap: 16px;
}
.majelis-group-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
}
.majelis-group-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.majelis-group-head h3 {
  margin: 0 0 4px;
}
.org-tree-root-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  align-items: start;
  padding-left: 0;
}
.org-tree-root-row > li {
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}
.org-tree-root-row > li > a {
  font-weight: 800;
}
.org-tree-root-row ul {
  margin-top: 10px;
}

/* Letters module */
.letter-status-card h2 { margin: 4px 0 0; }
.letter-status-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.letter-body-preview { background: #f8fafc; border: 1px solid var(--border); border-radius: 12px; padding: 16px; line-height: 1.6; }
.action-form textarea { min-height: 90px; }
@media(max-width:700px){ .letter-status-row { display: block; } }

/* Letter assets */
.letter-asset-thumb {
  max-width: 140px;
  max-height: 72px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
}
.letter-asset-preview {
  max-width: 100%;
  max-height: 260px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
}


/* Letter notifications */
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  margin-left: 4px;
}
.notification-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.notification-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  text-decoration: none;
}
.notification-card strong {
  display: block;
  font-size: 28px;
  line-height: 1;
  margin-bottom: 8px;
}
.notification-card.warning {
  border-left: 6px solid #f59e0b;
}
.notification-card.success {
  border-left: 6px solid #10b981;
}
.notification-card.info {
  border-left: 6px solid #3b82f6;
}

/* v0.4.27 public mobile-first and PWA basics */
.nav-toggle{display:none}.nav-toggle-label{display:none}.main-nav{display:flex;gap:16px;align-items:center}.nav-login{background:var(--blue);color:#fff;padding:8px 12px;border-radius:999px}.public-hero{border:1px solid var(--border);border-radius:24px;padding:34px 24px;margin-bottom:18px;background:linear-gradient(135deg,#eff6ff,#fff7ed);box-shadow:0 8px 28px rgba(15,23,42,.06)}.public-hero h1{font-size:clamp(30px,5vw,54px);line-height:1.05;margin:8px 0 10px}.public-hero p{font-size:18px;color:var(--muted);max-width:680px}.eyebrow{display:inline-flex;padding:5px 10px;border-radius:999px;background:#e8f0ff;color:var(--blue);font-weight:800;font-size:12px;letter-spacing:.04em;text-transform:uppercase}.hero-actions,.quick-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.public-section h2{margin-top:0}.public-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}.service-card{border:1px solid var(--border);border-radius:16px;padding:15px;background:#f8fafc;display:grid;gap:5px}.service-card strong{font-size:17px}.service-card span{font-weight:700;color:var(--blue)}.service-card small{color:var(--muted)}.post-carousel-row{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;padding:4px 2px 12px}.ig-post-card{flex:0 0 min(360px,88vw);scroll-snap-align:start;background:#fff;border:1px solid var(--border);border-radius:20px;padding:14px;box-shadow:0 4px 14px rgba(15,23,42,.04)}.ig-post-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.ig-post-card h3{margin:8px 0 12px}.slide-strip{display:flex;overflow-x:auto;gap:10px;scroll-snap-type:x mandatory}.slide-card{flex:0 0 100%;scroll-snap-align:start;border:1px solid var(--border);border-radius:16px;overflow:hidden;background:#f8fafc}.slide-card img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover}.slide-card p{padding:12px;margin:0;line-height:1.5}.image-placeholder.square{aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#dbeafe,#ffedd5);color:#334155;font-weight:900;text-align:center;padding:18px}.image-placeholder.square span{border:2px dashed rgba(51,65,85,.35);border-radius:18px;width:76%;height:76%;display:flex;align-items:center;justify-content:center}.info-list{display:grid;gap:12px}.info-list article{border:1px solid var(--border);border-radius:14px;background:#f8fafc;padding:12px}.info-list p{margin:6px 0 0;color:var(--muted)}
@media(max-width:800px){.topbar{display:grid;grid-template-columns:1fr auto;gap:10px;padding:12px 16px}.brand{align-self:center}.nav-toggle-label{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--border);border-radius:999px;padding:8px 12px;background:#fff;color:var(--text);font-weight:800;cursor:pointer}.main-nav{grid-column:1/-1;display:none;flex-direction:column;align-items:stretch;gap:8px;padding-top:8px}.main-nav a,.main-nav .inline-form button{padding:12px;border:1px solid var(--border);border-radius:12px;background:#f8fafc;text-align:left}.nav-toggle:checked~.main-nav{display:flex}.container{margin:18px auto;padding:0 14px}.public-hero{padding:24px 18px;border-radius:20px}.public-hero p{font-size:16px}.hero-actions .btn,.quick-actions .btn{width:100%;text-align:center}.card{padding:16px;border-radius:16px}.section-head{display:block}.public-card-grid{grid-template-columns:1fr}.ig-post-card{flex-basis:92vw}.footer{padding-bottom:24px}}

/* v0.4.28 admin content and jemaat management */
.admin-tile { min-height: 190px; display: flex; flex-direction: column; justify-content: space-between; }
.admin-slide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.slide-admin-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 14px; border: 1px solid var(--border); }
.btn.danger, .danger { background: #b91c1c !important; color: #fff !important; }
.badge.ok { background: #dcfce7; color: #166534; }
.badge.warn { background: #fff7ed; color: #9a3412; }
.badge.muted-badge { background: #e5e7eb; color: #374151; }
.flag-chip { display: inline-block; margin: 2px 4px 2px 0; padding: 3px 8px; border-radius: 999px; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; font-size: 12px; font-weight: 700; }
.advanced-filter { display: grid; grid-template-columns: 1.3fr repeat(3, minmax(150px, .9fr)) auto; align-items: center; }
@media(max-width:900px){
  .advanced-filter { grid-template-columns: 1fr; }
  .responsive-table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* v0.4.29 public home ordering and date-based service schedule */
.compact-posts .ig-post-card{flex-basis:min(320px,84vw)}
.dated-service-card{position:relative;gap:7px}
.dated-service-card .service-date{display:inline-flex;width:max-content;border-radius:999px;background:#eef2ff;color:#3730a3;padding:4px 9px;font-weight:800}
.dated-service-card em{font-style:normal;color:var(--muted);font-size:12px;font-weight:700}
.slide-number{padding:0 12px 12px;margin-top:-2px;color:var(--muted);font-size:12px;font-weight:800;text-align:right}
@media(max-width:800px){.compact-posts .ig-post-card{flex-basis:88vw}.dated-service-card .service-date{font-size:12px}}

/* v0.4.30 - Member dashboard mobile-first */
.member-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  background: linear-gradient(135deg, #eff6ff, #fff7ed);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: 0 6px 18px rgba(15,23,42,.05);
}
.member-hero h1 { margin: 4px 0 8px; font-size: clamp(28px, 5vw, 42px); }
.member-hero p { margin: 0; color: var(--muted); max-width: 680px; }
.eyebrow {
  display: inline-block;
  color: var(--orange);
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 12px;
}
.stacked-mobile { align-items: flex-end; }
.member-list { display: grid; gap: 10px; }
.member-list.compact { gap: 8px; }
.member-list-item {
  display: grid;
  gap: 3px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fafc;
  padding: 12px;
}
.member-list-item.slim { padding: 10px 12px; }
.member-list-item strong { color: var(--text); }
.member-list-item small,
.member-list-item span,
.member-list-item em { color: var(--muted); font-style: normal; }
.member-profile-list {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 8px 12px;
  margin: 0;
}
.member-profile-list dt { color: var(--muted); font-weight: 700; }
.member-profile-list dd { margin: 0; }
@media(max-width:700px){
  .member-hero { display: grid; padding: 18px; }
  .stacked-mobile { align-items: stretch; }
  .stacked-mobile .btn { display: block; text-align: center; margin-bottom: 8px; }
  .member-profile-list { grid-template-columns: 1fr; gap: 3px; }
  .member-profile-list dd { margin-bottom: 8px; }
}


/* v0.4.31 - Logo GPdI and simplified member home */
.brand{display:flex;align-items:center;gap:8px;min-width:0}.brand-link{display:inline-flex;align-items:center;gap:10px;color:var(--text);font-weight:800;min-width:0}.brand-logo{width:38px;height:38px;border-radius:10px;object-fit:contain;background:#fff;border:1px solid var(--border);padding:2px;flex:0 0 auto}.brand-link span{white-space:nowrap}.action-card{display:flex;flex-direction:column;justify-content:space-between;min-height:180px}.notice-card{background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;border-radius:14px;padding:12px 14px;margin-bottom:18px;font-weight:700}
@media(max-width:800px){.brand-link span{font-size:16px}.brand-logo{width:34px;height:34px}.version-badge{font-size:11px;margin-left:0}.brand{gap:6px}}

/* v0.4.32 - Schedule carousel and pagination */
.schedule-carousel-row{
  display:flex;
  gap:14px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  padding:4px 2px 12px;
  -webkit-overflow-scrolling:touch;
}
.schedule-carousel-card{
  flex:0 0 min(280px,82vw);
  scroll-snap-align:start;
  min-height:150px;
}
.swipe-hint{
  margin:0;
  font-size:13px;
  font-weight:600;
}
.schedule-list{
  display:grid;
  gap:12px;
}
.schedule-list-card{
  margin-bottom:0;
}
.pagination{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin:18px 0 8px;
}
.page-link,.page-info{
  border:1px solid var(--border);
  border-radius:999px;
  background:#fff;
  padding:9px 13px;
  font-weight:700;
}
.page-link.disabled{
  color:var(--muted);
  background:#f1f5f9;
}
@media(max-width:800px){
  .schedule-carousel-card{flex-basis:84vw;}
  .pagination{justify-content:stretch;}
  .page-link,.page-info{text-align:center;flex:1 1 auto;}
}

/* v0.4.33 - Carousel dots, first comer, and public registration forms */
.carousel-dots{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  margin:8px 0 4px;
}
.carousel-dots button{
  width:10px;
  height:10px;
  border-radius:999px;
  border:0;
  background:#cbd5e1;
  cursor:pointer;
  padding:0;
  transition:transform .18s ease, background .18s ease, width .18s ease;
}
.carousel-dots button.active{
  width:22px;
  background:var(--blue);
}
.carousel-dots.compact{
  margin-top:10px;
}
.carousel-dots.compact button{
  width:8px;
  height:8px;
}
.carousel-dots.compact button.active{
  width:18px;
}
.first-comer-card{
  border-left:6px solid var(--orange);
}
.public-mini-form{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  align-items:start;
}
.public-mini-form p{
  display:grid;
  gap:6px;
  margin:0;
}
.public-mini-form p:nth-child(4),
.public-mini-form button{
  grid-column:1 / -1;
}
.public-mini-form ul,
.public-registration-form ul{
  list-style:none;
  padding:0;
  margin:4px 0 0;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.public-mini-form li,
.public-registration-form li{
  display:inline-flex;
  gap:6px;
  align-items:center;
  padding:8px 10px;
  border:1px solid var(--border);
  border-radius:999px;
  background:#f8fafc;
}
.public-mini-form input[type="radio"],
.public-registration-form input[type="radio"]{
  width:auto;
}
.public-registration-form form{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.public-registration-form p{
  margin:0;
  display:grid;
  gap:6px;
}
.public-registration-form p:nth-child(11),
.public-registration-form p:nth-child(12),
.public-registration-form button{
  grid-column:1 / -1;
}
@media(max-width:800px){
  .public-mini-form,
  .public-registration-form form{grid-template-columns:1fr;}
  .public-mini-form p:nth-child(4),
  .public-mini-form button,
  .public-registration-form p:nth-child(11),
  .public-registration-form p:nth-child(12),
  .public-registration-form button{grid-column:auto;}
  .carousel-dots{gap:7px;}
  .carousel-dots button{width:9px;height:9px;}
  .carousel-dots button.active{width:20px;}
}

/* v0.4.33 - Carousel dots, first comer, and public registration forms */
.carousel-dots{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  margin:8px 0 4px;
}
.carousel-dots button{
  width:10px;
  height:10px;
  border-radius:999px;
  border:0;
  background:#cbd5e1;
  cursor:pointer;
  padding:0;
  transition:transform .18s ease, background .18s ease, width .18s ease;
}
.carousel-dots button.active{
  width:22px;
  background:var(--blue);
}
.carousel-dots.compact{
  margin-top:10px;
}
.carousel-dots.compact button{
  width:8px;
  height:8px;
}
.carousel-dots.compact button.active{
  width:18px;
}
.first-comer-card{
  border-left:6px solid var(--orange);
}
.public-mini-form{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  align-items:start;
}
.public-mini-form p{
  display:grid;
  gap:6px;
  margin:0;
}
.public-mini-form p:nth-child(4),
.public-mini-form button{
  grid-column:1 / -1;
}
.public-mini-form ul,
.public-registration-form ul{
  list-style:none;
  padding:0;
  margin:4px 0 0;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.public-mini-form li,
.public-registration-form li{
  display:inline-flex;
  gap:6px;
  align-items:center;
  padding:8px 10px;
  border:1px solid var(--border);
  border-radius:999px;
  background:#f8fafc;
}
.public-mini-form input[type="radio"],
.public-registration-form input[type="radio"]{
  width:auto;
}
.public-registration-form form{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.public-registration-form p{
  margin:0;
  display:grid;
  gap:6px;
}
.public-registration-form p:nth-child(11),
.public-registration-form p:nth-child(12),
.public-registration-form button{
  grid-column:1 / -1;
}
@media(max-width:800px){
  .public-mini-form,
  .public-registration-form form{grid-template-columns:1fr;}
  .public-mini-form p:nth-child(4),
  .public-mini-form button,
  .public-registration-form p:nth-child(11),
  .public-registration-form p:nth-child(12),
  .public-registration-form button{grid-column:auto;}
  .carousel-dots{gap:7px;}
  .carousel-dots button{width:9px;height:9px;}
  .carousel-dots button.active{width:20px;}
}

/* v0.4.35 - First Comer dropdown and public content badges */
.first-comer-cta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
}
.compact-hero{
  padding:26px 22px;
}
.first-comer-form-page{
  max-width:760px;
  margin-left:auto;
  margin-right:auto;
}
.standalone-form{
  grid-template-columns:1fr;
}
.standalone-form p,
.standalone-form button{
  grid-column:auto;
}
.btn.whatsapp{
  background:#16a34a;
  color:#fff;
}
.table-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
@media(max-width:800px){
  .first-comer-cta{display:block;}
  .first-comer-cta .actions{margin-top:12px;}
  .first-comer-cta .btn{width:100%;text-align:center;}
}


/* v0.4.35 - Public content notification badges */
.public-notice strong { color: #9a3412; }
.admin-tile .nav-badge { vertical-align: middle; }
.form-select { appearance: auto; }

/* v0.4.36 - schedule archive behavior, mobile menu, radio forms, PDF validation */
@media(max-width:800px){
  .main-nav a.nav-login{
    background:#e8f0ff;
    color:var(--blue);
    border-color:#bfdbfe;
    font-weight:800;
  }
}
.public-registration-form .form-field{
  display:grid;
  gap:7px;
}
.public-registration-form .field-label{
  font-weight:600;
}
.public-registration-form .full-span,
.public-registration-form button.full-span{
  grid-column:1 / -1;
}
.public-registration-form .inline-radio-list{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  padding:0;
  margin:0;
  list-style:none;
}
.public-registration-form .inline-radio-list > div,
.public-registration-form .inline-radio-list li{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:1px solid var(--border);
  border-radius:999px;
  background:#f8fafc;
  padding:8px 12px;
}
.public-registration-form .inline-radio-list label{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin:0;
  cursor:pointer;
}
.public-registration-form .inline-radio-list input[type="radio"]{
  width:auto;
  margin:0;
}
.validation-upload-card{max-width:900px;}
.or-divider{display:flex;align-items:center;gap:12px;margin:8px 0;color:var(--muted);font-weight:700;}
.or-divider:before,.or-divider:after{content:"";height:1px;background:var(--border);flex:1;}
.validation-badge{display:inline-flex;border-radius:999px;padding:5px 10px;font-weight:900;font-size:12px;letter-spacing:.05em;}
.validation-badge.success{background:#dcfce7;color:#166534;}
.validation-badge.invalid{background:#fee2e2;color:#991b1b;}
.inline-approval-form .btn:disabled{opacity:.55;cursor:not-allowed;}
@media(max-width:800px){
  .public-registration-form .full-span,
  .public-registration-form button.full-span{grid-column:auto;}
  .public-registration-form .inline-radio-list{display:grid;grid-template-columns:1fr;}
  .public-registration-form .inline-radio-list > div,
  .public-registration-form .inline-radio-list li{border-radius:14px;}
}

/* v0.4.37 - Custom forms */
.custom-form-option-list,
.inline-radio-list{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.inline-radio-list li,
.inline-radio-list > div{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:1px solid var(--border);
  border-radius:999px;
  background:#f8fafc;
  padding:8px 12px;
}
.inline-radio-list label{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin:0;
  cursor:pointer;
}
.inline-radio-list input[type="radio"],
.inline-radio-list input[type="checkbox"]{
  width:auto;
  margin:0;
}
@media(max-width:800px){
  .inline-radio-list{display:grid;grid-template-columns:1fr;}
  .inline-radio-list li,
  .inline-radio-list > div{border-radius:14px;}
}

/* v0.4.41 - Custom form selectable options and upload preview */
.custom-form-field{
  display:grid;
  gap:6px;
  margin-bottom:16px;
}
.custom-form-field > label{
  font-weight:700;
}
.inline-radio-list{
  width:100%;
}
.inline-radio-list li,
.inline-radio-list > div{
  position:relative;
  transition:background .16s ease,border-color .16s ease,box-shadow .16s ease,color .16s ease;
}
.inline-radio-list li:has(input:checked),
.inline-radio-list > div:has(input:checked){
  background:#dbeafe;
  border-color:#1d4ed8;
  box-shadow:0 0 0 2px rgba(29,78,216,.12);
  color:#0f172a;
}
.inline-radio-list li:has(input:focus-visible),
.inline-radio-list > div:has(input:focus-visible){
  outline:2px solid rgba(29,78,216,.35);
  outline-offset:2px;
}
.inline-radio-list input[type="radio"],
.inline-radio-list input[type="checkbox"]{
  width:18px;
  height:18px;
  min-width:18px;
  accent-color:var(--blue);
}
.inline-radio-list label{
  width:100%;
  min-height:24px;
  font-weight:600;
}
.form-card input[type="file"]{
  padding:12px;
  background:#fff;
  border:1px dashed #94a3b8;
  border-radius:12px;
}
.upload-preview{
  margin-top:10px;
}
.upload-preview img{
  max-width:240px;
  max-height:240px;
  border:1px solid var(--border);
  border-radius:12px;
  object-fit:cover;
}
@media(max-width:800px){
  .inline-radio-list li,
  .inline-radio-list > div{
    padding:13px 14px;
  }
  .inline-radio-list input[type="radio"],
  .inline-radio-list input[type="checkbox"]{
    width:20px;
    height:20px;
    min-width:20px;
  }
}

/* v0.4.42 - Hotfix layer navbar vs selectable form options */
.topbar,
.site-header,
.navbar,
.main-navbar,
.header,
nav.main-nav{
  position:sticky;
  top:0;
  z-index:9999;
  background:#fff;
}
.inline-radio-list,
.inline-radio-list li,
.inline-radio-list > div,
.inline-radio-list label,
.choice-card,
.choice-option,
.form-check,
.form-check-label{
  position:relative;
  z-index:1;
}
.form-card,
.card,
.page-content,
main.container{
  position:relative;
  z-index:1;
}

/* v0.4.44 - Rekap pengisian formulir */
.recap-summary-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:14px;
  margin:18px 0;
}
.recap-summary-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:18px;
  box-shadow:0 4px 14px rgba(15,23,42,.04);
}
.recap-summary-card span{
  display:block;
  color:var(--muted);
  font-size:13px;
  font-weight:700;
  margin-bottom:8px;
}
.recap-summary-card strong{
  display:block;
  color:var(--blue);
  font-size:36px;
  line-height:1;
}
.recap-summary-card small{
  display:block;
  color:var(--muted);
  margin-top:8px;
}
.recap-chart-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:18px;
}
.recap-chart-box{
  border:1px solid var(--border);
  border-radius:16px;
  padding:16px;
  background:#f8fafc;
}
.recap-chart-box h3{margin-top:0;}
.bar-chart{
  display:flex;
  align-items:end;
  gap:6px;
  min-height:230px;
  overflow-x:auto;
  padding:8px 4px 0;
}
.bar-item{
  min-width:34px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-end;
  gap:5px;
}
.bar-track{
  width:20px;
  height:150px;
  border-radius:999px;
  background:#e2e8f0;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
}
.bar-fill{
  width:100%;
  min-height:2px;
  border-radius:999px 999px 0 0;
  background:#1d4ed8;
}
.bar-value{
  font-size:12px;
  font-weight:700;
  color:#334155;
}
.bar-label{
  writing-mode:vertical-rl;
  transform:rotate(180deg);
  font-size:11px;
  color:var(--muted);
}
.line-chart svg{
  width:100%;
  height:230px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:14px;
  padding:8px;
}
.chart-axis{stroke:#cbd5e1;stroke-width:2;}
.chart-line{fill:none;stroke:#1d4ed8;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;}
.chart-dot{fill:#fff;stroke:#1d4ed8;stroke-width:3;}
.line-chart-labels{
  display:flex;
  justify-content:space-between;
  color:var(--muted);
  font-size:12px;
  margin-top:6px;
}
.recap-filter{
  display:grid;
  grid-template-columns:minmax(220px,1fr) 170px auto auto;
  gap:10px;
  margin:0 0 14px;
  align-items:center;
}
.pagination{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  margin-top:18px;
}
.pagination a,
.pagination span{
  border:1px solid var(--border);
  border-radius:10px;
  padding:8px 11px;
  background:#fff;
  font-weight:700;
}
.pagination .current{
  background:var(--blue);
  border-color:var(--blue);
  color:#fff;
}
.pagination .disabled{
  color:#94a3b8;
  background:#f8fafc;
}
@media(max-width:800px){
  .recap-filter{grid-template-columns:1fr;}
  .recap-chart-grid{grid-template-columns:1fr;}
}

/* v0.4.45 - Hotfix rekap formulir dan reset respons */
.btn.danger,
button.btn.danger{
  background:#dc2626;
  border-color:#dc2626;
  color:#fff;
}
.btn.danger:hover,
button.btn.danger:hover{
  background:#b91c1c;
  border-color:#b91c1c;
  color:#fff;
}
.bar-track{
  height:150px;
  min-height:150px;
}
.bar-fill{
  display:block;
  transition:height .25s ease;
}
.danger-zone{
  border-color:#fecaca;
  background:#fffafa;
}
.reset-count-box{
  display:inline-flex;
  flex-direction:column;
  gap:6px;
  border:1px solid #fecaca;
  background:#fff;
  border-radius:16px;
  padding:16px 20px;
  margin:10px 0 16px;
}
.reset-count-box span{
  color:#64748b;
  font-weight:700;
  font-size:13px;
}
.reset-count-box strong{
  color:#dc2626;
  font-size:38px;
  line-height:1;
}
.reset-confirm-form{
  display:grid;
  gap:10px;
  max-width:420px;
  margin-top:18px;
}
.reset-confirm-form input{
  padding:12px 14px;
  border:1px solid #cbd5e1;
  border-radius:12px;
  font:inherit;
}

/* v0.4.46 - validasi respons formulir */
.status-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.status-summary-card {
  display: block;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  color: inherit;
}
.status-summary-card:hover,
.status-summary-card.active {
  border-color: #2563eb;
  box-shadow: 0 8px 24px rgba(37, 99, 235, .12);
}
.status-summary-card span {
  display: block;
  color: #6b7280;
  font-size: .9rem;
}
.status-summary-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.6rem;
}
.status-badge,
.badge.warning {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.status-new { background: #eef2ff; color: #3730a3; }
.status-review { background: #fff7ed; color: #9a3412; }
.status-needs_revision { background: #fef2f2; color: #991b1b; }
.status-validated { background: #ecfdf5; color: #065f46; }
.status-dummy { background: #f3f4f6; color: #374151; }
.badge.warning { background: #fef3c7; color: #92400e; margin-top: 4px; }

/* v0.4.47 - Mode Pendataan Keluarga */
.family-form-card .section-head{margin-bottom:14px;}
.family-member-head{margin-top:28px;align-items:center;}
.family-empty-state{border:1px dashed #cbd5e1;border-radius:16px;padding:18px;background:#f8fafc;color:#64748b;margin-bottom:16px;}
.family-member-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px;margin:16px 0 22px;}
.family-member-card{display:flex;gap:12px;align-items:center;border:1px solid #dbe3ef;border-radius:18px;background:#fff;padding:14px;box-shadow:0 10px 24px rgba(15,23,42,.06);}
.family-member-status{width:34px;height:34px;border-radius:999px;display:flex;align-items:center;justify-content:center;font-weight:800;flex:0 0 auto;}
.family-member-status.ok{background:#dcfce7;color:#166534;}
.family-member-status.warn{background:#fef3c7;color:#92400e;}
.family-member-main{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1;}
.family-member-main strong{color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.family-member-main span{font-size:.86rem;color:#64748b;}
.family-member-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;}
.family-member-actions button{border:1px solid #cbd5e1;background:#f8fafc;border-radius:999px;padding:7px 10px;cursor:pointer;font:inherit;font-size:.86rem;}
.family-member-actions button:hover{background:#eef2ff;}
.family-modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.55);z-index:10000;display:none;align-items:center;justify-content:center;padding:20px;}
.family-modal-backdrop.show{display:flex;}
.family-modal-card{width:min(680px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:22px;padding:22px;box-shadow:0 30px 80px rgba(15,23,42,.28);}
.family-modal-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px;}
.family-modal-head h2{margin:0;}
.family-modal-close{width:34px;height:34px;border-radius:999px;border:1px solid #cbd5e1;background:#fff;font-size:24px;line-height:1;cursor:pointer;}
.family-modal-fields{display:grid;grid-template-columns:1fr;gap:12px;}
.family-modal-fields input,.family-modal-fields select,.family-modal-fields textarea{width:100%;padding:11px 12px;border:1px solid #dbe3ef;border-radius:12px;font:inherit;}
@media (max-width:640px){.family-member-card{align-items:flex-start}.family-member-actions{width:100%;justify-content:flex-start}.family-modal-card{padding:18px}}


.access-code-box {
    margin: 1.25rem 0;
    padding: 1rem;
    border: 1px solid #c7d2fe;
    background: #eef2ff;
    border-radius: 14px;
}
.access-code-number {
    display: inline-block;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: .35rem;
    font-weight: 800;
    color: #1e3a8a;
    background: #ffffff;
    border: 1px dashed #64748b;
    border-radius: 12px;
    padding: .75rem 1rem;
    margin: .25rem 0 .75rem 0;
}

/* v0.4.49 - Kode akses keluarga */
.access-help-box {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #fde68a;
  background: #fffbeb;
  border-radius: 14px;
}
.access-admin-card .actions, .inline-form {
  display: inline-flex;
  gap: .5rem;
  flex-wrap: wrap;
  align-items: center;
}
.access-code-inline {
  display: inline-block;
  font-size: 1.25rem;
  letter-spacing: .18em;
  padding: .25rem .55rem;
  border-radius: 10px;
  background: #eef2ff;
  color: #3730a3;
}

/* v0.4.50 - Header grouping and mobile app-like navigation */
.app-header {
  z-index: 10000;
  gap: 18px;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.nav-toggle-label {
  display: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 13px;
  font-weight: 800;
  color: #0f172a;
  background: #fff;
  cursor: pointer;
}
.grouped-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.grouped-nav > a,
.grouped-nav .inline-form button,
.nav-group-trigger {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #0f172a;
  font-weight: 700;
  font-size: 14px;
  background: transparent;
  cursor: pointer;
}
.grouped-nav > a:hover,
.grouped-nav .inline-form button:hover,
.nav-group:hover .nav-group-trigger,
.nav-group:focus-within .nav-group-trigger {
  background: #eff6ff;
  color: var(--blue);
  border-color: #bfdbfe;
}
.nav-group {
  position: relative;
}
.nav-group-trigger::after {
  content: "⌄";
  margin-left: 6px;
  font-size: 12px;
  line-height: 1;
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 235px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(15,23,42,.14);
  padding: 8px;
  display: none;
  z-index: 10001;
}
.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown {
  display: grid;
  gap: 3px;
}
.nav-dropdown a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 11px;
  border-radius: 12px;
  color: #0f172a;
  font-weight: 650;
}
.nav-dropdown a:hover {
  background: #f1f5f9;
  color: var(--blue);
}
.nav-badge {
  display: inline-flex;
  min-width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f97316;
  color: #fff;
  font-size: 11px;
  padding: 0 6px;
}
.mobile-bottom-nav {
  display: none;
}
@media(max-width: 820px) {
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }
  .topbar.app-header {
    display: flex;
    padding: 11px 16px;
  }
  .brand-link span {
    font-size: 16px;
  }
  .brand-logo {
    width: 34px;
    height: 34px;
  }
  .nav-toggle-label {
    display: inline-flex;
    margin-left: auto;
  }
  .grouped-nav {
    display: none;
    position: fixed;
    left: 12px;
    right: 12px;
    top: 66px;
    max-height: calc(100vh - 155px);
    overflow: auto;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 22px 60px rgba(15,23,42,.18);
    z-index: 10002;
  }
  .nav-toggle:checked ~ .grouped-nav {
    display: grid;
    gap: 6px;
  }
  .grouped-nav > a,
  .grouped-nav .inline-form button,
  .nav-group-trigger {
    width: 100%;
    justify-content: space-between;
    border-radius: 12px;
    background: #f8fafc;
    border-color: var(--border);
  }
  .nav-group {
    width: 100%;
  }
  .nav-dropdown {
    position: static;
    display: grid;
    min-width: 0;
    box-shadow: none;
    border: 0;
    background: #fff;
    padding: 4px 0 4px 12px;
  }
  .nav-dropdown a {
    padding: 9px 10px;
    border-left: 3px solid #dbeafe;
    border-radius: 10px;
  }
  .nav-logout-form {
    width: 100%;
  }
  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.98);
    border-top: 1px solid var(--border);
    box-shadow: 0 -10px 35px rgba(15,23,42,.12);
    z-index: 10003;
  }
  .mobile-bottom-nav a,
  .mobile-bottom-nav label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 52px;
    border-radius: 14px;
    color: #334155;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
  }
  .mobile-bottom-nav a:hover,
  .mobile-bottom-nav label:hover,
  .nav-toggle:checked ~ .mobile-bottom-nav label {
    background: #eff6ff;
    color: var(--blue);
  }
  .bottom-nav-icon {
    font-size: 20px;
    line-height: 1;
  }
  .footer {
    margin-bottom: calc(82px + env(safe-area-inset-bottom));
  }
}
@media(min-width: 821px) {
  .topbar.app-header {
    display: flex;
  }
}

/* v0.4.51 - upload file/foto pada mode pendataan keluarga */
.family-upload-note{display:block;margin-bottom:8px;}
.family-member-main span{line-height:1.35;}
