:root {
  --bg: #f4f6f8;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #eef0f3;
  --teal: #14b8a6;
  --teal-dark: #0d9488;
  --teal-soft: #e6f7f5;
  --sidebar-w: 268px;
  --header-h: 56px;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.04);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }

.topbar {
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 15px;
}
.brand .mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, #2dd4bf, #0ea5e9);
  color: #fff; display: grid; place-items: center; font-size: 13px;
}
.userchip {
  display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px;
}
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: #e0f2fe; color: #0369a1; display: grid; place-items: center; font-weight: 700;
}

.menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}
.layout { display: flex; min-height: calc(100vh - var(--header-h)); align-items: flex-start; }
.layar-menu { display: none; }
.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 14px 12px 28px;
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.nav-label {
  font-size: 11px; color: #9ca3af; font-weight: 700; letter-spacing: .08em;
  padding: 10px 12px 6px; text-transform: uppercase;
}
.nav-item, .nav-toggle {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px; color: #374151;
  font-size: 13.5px; font-weight: 600; width: 100%;
  background: none; border: 0; cursor: pointer; text-align: left;
}
.nav-item:hover, .nav-toggle:hover { background: #f3f4f6; }
.nav-item.active {
  background: var(--teal-soft); color: var(--teal-dark);
}
.nav-item .dot, .nav-toggle .dot {
  width: 18px; color: #9ca3af; display: grid; place-items: center;
}
.nav-item.active .dot { color: var(--teal); }
.nav-group .children { padding: 2px 0 8px 12px; }
.nav-group .children.collapsed { display: none; }
.nav-toggle .chev { margin-left: auto; font-size: 11px; color: #9ca3af; }

.content { flex: 1; padding: 26px 32px 48px; max-width: 1180px; }
.page-title { font-size: 28px; font-weight: 800; margin: 0 0 18px; letter-spacing: -0.03em; }
.crumb { color: #94a3b8; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.crumb span { margin: 0 4px; }
.section-title { margin: 0 0 14px; font-size: 16px; }
.btn-ubah { color: #ea580c; font-weight: 700; font-size: 13px; }
.jk { display: inline-flex; border-radius: 8px; padding: 2px 8px; font-size: 12px; font-weight: 700; }
.jk.laki { background: #eff6ff; color: #1d4ed8; }
.jk.perempuan { background: #fdf2f8; color: #be185d; }
.tab-wrap { display: flex; justify-content: center; margin: 8px 0 16px; }
.tab-pills { display: inline-flex; gap: 4px; background: #fff; border: 1px solid #e5e7eb; border-radius: 999px; padding: 4px; }
.tab-pills a { border-radius: 999px; padding: 7px 16px; font-weight: 700; color: #6b7280; }
.tab-pills a.on { background: #fff7ed; color: #ea580c; }
.lvl { display: inline-flex; border-radius: 8px; padding: 2px 8px; font-size: 12px; font-weight: 700; }
.lvl-admin { background: #fee2e2; color: #dc2626; }
.lvl-guru { background: #e0f2fe; color: #0369a1; }
.lvl-siswa { background: #ecfdf5; color: #047857; }
.lvl-aktif { background: #dcfce7; color: #15803d; }
.lvl-off { background: #f3f4f6; color: #6b7280; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; color: #6b7280; font-size: 13px; flex-wrap: wrap; }
.pager-form { display: flex; align-items: center; gap: 8px; }
.pager-form select { width: auto; padding: 6px 8px; }
.warn-box { border-color: #fde68a; background: #fffbeb; }
.warn-title { font-weight: 800; margin-bottom: 6px; }
.warn-box p, .danger-zone p { margin: 0; }
.danger-zone { border-color: #fecaca; }
.kosong-table td { vertical-align: top; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip-row span { background: #f3f4f6; color: #4b5563; border-radius: 8px; padding: 2px 8px; font-size: 12px; font-weight: 700; }
.count { font-weight: 800; }
.count-red { color: #dc2626; }
.count-blue { color: #2563eb; }
.count-green { color: #16a34a; }
.count-amber { color: #d97706; }
.btn-solid-danger { background: #dc2626; color: #fff; }
.btn-solid-danger:hover { background: #b91c1c; }
.info-box { border-color: #bfdbfe; background: #f8fbff; }
.info-box p { margin: 0; }
.hint { color: #6b7280; font-size: 13px; margin: 6px 0 12px; }
.empty-backup { text-align: center; color: #6b7280; padding: 28px 12px; }
.aksi { display: flex; gap: 10px; align-items: center; }
.aksi form { margin: 0; }
.aksi button { background: none; border: 0; color: #dc2626; font-weight: 700; cursor: pointer; padding: 0; }
.btn-green, .btn-amber { border: 0; }
.wajib { color: #dc2626; }
.school-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.school-grid > .card { margin-top: 0; }
.school-grid + .card { margin-top: 16px; }
.modal-back {
  display: none; position: fixed; inset: 0; z-index: 40;
  background: rgba(15, 23, 42, .45); place-items: center; padding: 16px;
}
.modal-back.open { display: grid; }
.modal {
  position: relative; width: min(420px, 100%); background: #fff; border-radius: 16px;
  padding: 28px 24px 20px; text-align: center; box-shadow: 0 20px 50px rgba(15, 23, 42, .18);
}
.modal h3 { margin: 0 0 6px; }
.modal p { margin: 0; color: #6b7280; }
.modal-icon {
  width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%;
  display: grid; place-items: center; background: #fee2e2; color: #dc2626;
}
.modal-x {
  position: absolute; top: 10px; right: 12px; border: 0; background: transparent;
  font-size: 22px; line-height: 1; color: #9ca3af; cursor: pointer;
}
.modal-actions { display: flex; gap: 10px; margin-top: 18px; }
.modal-actions .btn, .modal-actions form { flex: 1; }
.modal-actions form .btn { width: 100%; justify-content: center; }
@media (max-width: 900px) { .school-grid { grid-template-columns: 1fr; } }
.icon-tools { display: flex; gap: 8px; align-items: center; }
.icon-btn {
  display: inline-flex; align-items: center; gap: 4px; border: 1px solid #e5e7eb; background: #fff;
  border-radius: 10px; padding: 8px 10px; cursor: pointer; color: #4b5563; list-style: none;
}
.icon-btn::-webkit-details-marker { display: none; }
.tool-pop { position: relative; }
.tool-pop .pop {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; width: 240px;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .12);
}
.tool-pop .pop label { margin-top: 8px; }
.count-dot {
  min-width: 16px; height: 16px; border-radius: 999px; background: #111827; color: #fff;
  font-size: 10px; font-weight: 800; display: inline-grid; place-items: center; padding: 0 4px;
}
.rombel { display: inline-flex; border-radius: 999px; padding: 2px 8px; background: #fff7ed; color: #c2410c; font-size: 12px; font-weight: 700; }
.sort { color: inherit; font-weight: 700; }
.bulk-bar { display: none; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.bulk-bar.on { display: flex; }
.kode-otomatis { background: #f8fafc; color: #64748b; }
.empty-state { text-align: center; color: #111827; font-weight: 700; padding: 48px 12px; }
.filter-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 12px; font-size: 13px; }
.chip-filter {
  display: inline-flex; align-items: center; gap: 6px; background: #fff7ed; color: #c2410c;
  border-radius: 999px; padding: 4px 10px; font-weight: 700;
}
.chip-filter a, .filter-clear { color: #c2410c; font-weight: 700; text-decoration: none; }
.cell-input { min-width: 180px; }
.pill-green { display: inline-flex; border-radius: 999px; padding: 2px 8px; background: #ecfdf5; color: #15803d; font-size: 12px; font-weight: 700; }
.tautan-hijau { color: #15803d; font-weight: 700; }
.nama-tebal { font-weight: 800; }
.predikat-badge { display: inline-flex; border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 700; }
.pred-amber { background: #fff7ed; color: #c2410c; }
.pred-biru { background: #eff6ff; color: #1d4ed8; }
.pred-hijau { background: #ecfdf5; color: #15803d; }
.cek-aktif {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: #dcfce7; color: #16a34a; font-weight: 800;
}
.cek-non { color: #9ca3af; }
.btn-hapus { border: 0; background: none; color: #dc2626; font-weight: 700; cursor: pointer; padding: 0; }
.modal-lebar { width: min(880px, 100%); text-align: left; padding: 22px 24px 18px; }
.modal-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; align-items: start; }
.tingkat-box { border: 1px solid #e5e7eb; border-radius: 12px; padding: 14px 16px; }
.tingkat-box h3 { margin: 0 0 4px; font-size: 15px; }
.tingkat-box p { margin: 0 0 14px; color: #6b7280; font-size: 13px; }
.tingkat-row { display: flex; gap: 16px; flex-wrap: wrap; }
.tingkat-item { display: flex; align-items: center; gap: 8px; color: #374151; font-size: 13px; line-height: 1.2; }
.saklar {
  appearance: none; width: 42px; height: 24px; border-radius: 999px; border: 0;
  background: #e5e7eb; position: relative; cursor: pointer; flex: 0 0 auto;
}
.saklar::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; top: 3px; left: 3px; box-shadow: 0 1px 2px rgba(0,0,0,.15);
}
.saklar:checked { background: #f59e0b; }
.saklar:checked::after { left: 21px; }
.saklar:disabled { cursor: default; }
@media (max-width: 800px) { .modal-grid { grid-template-columns: 1fr; } }
.cell-num { width: 88px; }
.empty-x {
  width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 50%;
  border: 1px solid #e5e7eb; color: #9ca3af; display: grid; place-items: center;
  font-size: 22px; font-weight: 500;
}
.select-row { display: flex; gap: 6px; align-items: center; }
.select-row select { flex: 1; }
.select-x { border: 0; background: transparent; color: #9ca3af; cursor: pointer; font-size: 18px; line-height: 1; padding: 0 4px; }

.card {
  background: var(--card); border: 1px solid #eef1f4; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px 22px;
}
.card + .card { margin-top: 16px; }

.welcome-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.kicker { color: #64748b; font-size: 12px; font-weight: 700; letter-spacing: .04em; margin-bottom: 8px; }
.welcome-head h2 { margin: 0 0 10px; font-size: 22px; }
.badge {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 8px;
  background: #e8f4ff; color: #2563eb; font-size: 12px; font-weight: 700;
}
.year-pill {
  background: #14b8a6; color: #fff; border: 0; border-radius: 10px;
  padding: 8px 14px; font-size: 12px; font-weight: 700; white-space: nowrap;
}

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.stat {
  border: 1px solid #eef1f4; border-radius: 14px; padding: 14px 16px;
  display: flex; justify-content: space-between; align-items: center;
}
.stat .lbl { font-size: 11px; color: #94a3b8; font-weight: 700; letter-spacing: .04em; }
.stat .val { font-size: 28px; font-weight: 800; margin-top: 4px; }
.iconbox {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 18px;
}
.iconbox.amber { background: #fff7ed; }
.iconbox.green { background: #ecfdf5; }
.iconbox.violet { background: #f5f3ff; }
.iconbox.blue { background: #eff6ff; }

.progress-row { margin: 16px 0 6px; }
.progress-row:first-of-type { margin-top: 8px; }
.progress-meta { display: flex; justify-content: space-between; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.bar { height: 8px; background: #eef2f6; border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 99px; }
.bar.orange > span { background: #f59e0b; }
.bar.blue > span { background: #3b82f6; }
.bar.green > span { background: #22c55e; }
.sub { color: #94a3b8; font-size: 12px; margin-top: 6px; }

.toolbar { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.search {
  border: 1px solid #e5e7eb; border-radius: 10px; padding: 9px 12px; min-width: 240px; background: #fff;
}
.btn {
  display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 10px;
  padding: 9px 14px; font-weight: 700; cursor: pointer; font-size: 13px;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-ghost { background: #f3f4f6; color: #374151; }
.btn-danger { background: #fee2e2; color: #b91c1c; }
.btn-sm { padding: 6px 10px; font-size: 12px; }

table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th {
  text-align: left; font-size: 11px; letter-spacing: .04em; color: #94a3b8;
  padding: 10px 8px; border-bottom: 1px solid var(--line);
}
table.data td { padding: 11px 8px; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
table.data tr:hover td { background: #fafbfc; }
.actions { display: flex; gap: 6px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 12px; font-weight: 700; color: #64748b; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=date], input[type=number], input[type=password], select, textarea {
  width: 100%; border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px 12px; background: #fff;
}
textarea { min-height: 90px; resize: vertical; }
.form-actions { margin-top: 16px; display: flex; gap: 8px; }
.form-stack label { margin-top: 14px; }
.form-stack label:first-of-type { margin-top: 0; }

.flash { padding: 10px 12px; border-radius: 10px; margin-bottom: 14px; font-size: 13px; font-weight: 600; }
.flash.success { background: #ecfdf5; color: #047857; }
.flash.error { background: #fef2f2; color: #b91c1c; }

.login-wrap {
  min-height: 100vh; display: grid; place-items: center;
  background: radial-gradient(circle at top, #e6fffb, #f4f6f8 45%);
}
.login-card { width: 480px; max-width: calc(100vw - 32px); padding: 32px; }
.login-card h1 { margin: 8px 0 4px; }
.login-card p { color: var(--muted); margin: 0 0 22px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; }

.content-wide { max-width: none; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.pilih-kelas { max-width: 420px; margin-bottom: 14px; }
.pilih-kelas select { background: #fff; }
.page-head .page-title { margin: 0; }
.btn-green { background: #16a34a; color: #fff; }
.btn-amber { background: #f59e0b; color: #fff; }
.btn-indigo { background: #4f46e5; color: #fff; }
.btn-blue { background: #2563eb; color: #fff; }
.seg { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.seg a, .seg span {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 10px;
  padding: 8px 12px; font-size: 13px; font-weight: 700; background: #fff; border: 1px solid #e5e7eb; color: #374151;
}
.seg a.on { background: #2563eb; color: #fff; border-color: #2563eb; }
.seg a.on-green { background: #16a34a; color: #fff; border-color: #16a34a; }
.seg a.btn-green { background: #16a34a; color: #fff; border-color: #16a34a; }
.seg a.btn-amber { background: #f59e0b; color: #fff; border-color: #f59e0b; }
.seg a.btn-indigo { background: #4f46e5; color: #fff; border-color: #4f46e5; }
.leger-bar { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin: 14px 0; flex-wrap: wrap; }
.leger-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.leger-rata { max-width: 280px; margin-top: 12px; }
.leger-rata .val { color: #f59e0b; }
.tingkat {
  display: inline-flex; margin-left: 8px; background: #fff7ed; color: #c2410c;
  border-radius: 8px; padding: 2px 8px; font-size: 12px; font-weight: 700;
}
.leger-scroll { overflow: auto; padding: 0; }
table.leger { min-width: 920px; font-size: 13px; }
table.leger th { background: #0f2744; color: #fff; letter-spacing: 0; font-size: 12px; white-space: nowrap; }
table.leger td.num { text-align: center; font-weight: 700; }
table.leger td.ok { color: #15803d; }
table.leger td.bad { color: #dc2626; }
table.leger td.nama { font-weight: 700; white-space: nowrap; }
.pill-lp {
  display: inline-flex; min-width: 28px; justify-content: center; border-radius: 8px;
  background: #eff6ff; color: #1d4ed8; font-weight: 800; font-size: 12px; padding: 2px 6px;
}

.halaman-publik { background: #f4f7fb; }
.pub-top { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 28px; background: #fff; border-bottom: 1px solid #e8eef5; }
.pub-brand { display: flex; gap: 12px; align-items: center; }
.pub-mark { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #16a34a; color: #fff; font-weight: 800; }
.pub-brand strong { display: block; text-transform: uppercase; letter-spacing: .01em; }
.pub-brand span, .hero p, .pub-stat span, .identitas small, .batang small { color: #64748b; }
.pub-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.live { display: inline-flex; align-items: center; gap: 6px; color: #15803d; font-weight: 700; font-size: 13px; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; display: inline-block; }
.pub-wrap { width: min(1180px, calc(100% - 32px)); margin: 20px auto 40px; }
.hero { position: relative; overflow: hidden; color: #fff; border-radius: 22px; padding: 28px 28px 18px; background: linear-gradient(100deg, #0b1f33 0%, #12324a 48%, #0f766e 100%); display: grid; grid-template-columns: 1fr auto; gap: 18px 28px; }
.hero-pill { display: inline-flex; background: rgba(255,255,255,.12); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; }
.hero h1 { margin: 12px 0 8px; font-size: 34px; letter-spacing: -.03em; }
.hero p { max-width: 640px; margin: 0; color: #d6e4ee; }
.hero-side { display: flex; gap: 14px; align-items: center; }
.hero-kicker, .hero-sub { font-size: 12px; color: #d1fae5; }
.hero-angka { font-size: 28px; font-weight: 800; }
.ring { width: 108px; height: 108px; position: relative; }
.ring svg { width: 108px; height: 108px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: rgba(255,255,255,.18); stroke-width: 10; }
.ring .nilai { stroke: #4ade80; stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: calc(326.7 * (1 - var(--nilai) / 100)); }
.ring strong { position: absolute; inset: 0; display: grid; place-items: center; font-size: 18px; }
.hero-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); padding-top: 12px; color: #d6e4ee; font-size: 13px; }
.pub-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.pub-stat { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 16px; padding: 16px; border: 1px solid #e8eef5; }
.pub-stat .lbl { font-size: 11px; font-weight: 800; letter-spacing: .04em; color: #64748b; }
.pub-stat strong { display: block; font-size: 28px; }
.pub-ikon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; }
.hijau .pub-ikon { background: #dcfce7; color: #15803d; }
.oranye .pub-ikon { background: #ffedd5; color: #c2410c; }
.merah .pub-ikon { background: #ffe4e6; color: #e11d48; }
.biru .pub-ikon { background: #dbeafe; color: #1d4ed8; }
.oranye strong { color: #c2410c; }
.merah strong { color: #e11d48; }
.pub-tab { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 8px; margin: 14px 0; background: #fff; border: 1px solid #e8eef5; border-radius: 14px; padding: 6px; }
.pub-tab a { text-align: center; border-radius: 10px; padding: 10px; font-weight: 800; color: #64748b; }
.pub-tab a.on { background: #16a34a; color: #fff; }
.pub-panel { display: grid; gap: 10px; }
.pub-filter { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.status-filter { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.status-filter a, .lencana { border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 800; background: #f1f5f9; color: #475569; }
.status-filter a.on { background: #111827; color: #fff; }
.status-filter a.tuntas.on, .lencana.tuntas, .lencana.lengkap { background: #dcfce7; color: #15803d; }
.status-filter a.proses.on, .lencana.proses { background: #ffedd5; color: #c2410c; }
.status-filter a.belum.on, .lencana.belum { background: #ffe4e6; color: #e11d48; }
.kartu-orang { background: #fff; border: 1px solid #e8eef5; border-radius: 16px; padding: 14px 16px; }
.kartu-orang summary { display: flex; gap: 12px; align-items: center; cursor: pointer; list-style: none; }
.kartu-orang summary::-webkit-details-marker { display: none; }
.kartu-orang ul { margin: 12px 0 0 54px; padding: 0; display: grid; gap: 6px; }
.kartu-orang li { list-style: none; }
.nomor { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #e2e8f0; color: #475569; font-weight: 800; }
.nomor.jadi { background: #dcfce7; color: #15803d; }
.identitas { flex: 1; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.identitas b, .identitas small { width: 100%; }
.batang { min-width: 220px; text-align: right; }
.batang i { display: block; height: 8px; background: #e8eef5; border-radius: 99px; margin: 6px 0; overflow: hidden; }
.batang em { display: block; height: 100%; background: #22c55e; }
.kosong-pub { background: #fff; border-radius: 16px; padding: 28px; text-align: center; color: #64748b; }
@media (max-width: 900px) {
  .hero, .pub-stats, .pub-tab { grid-template-columns: 1fr; }
  .pub-top { align-items: flex-start; flex-direction: column; }
  .batang { text-align: left; min-width: 0; width: 100%; }
}
@media (max-width: 980px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .topbar { padding: 0 12px; gap: 8px; }
  .brand { min-width: 0; }
  .brand span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw; }
  .userchip span:first-child { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .sidebar {
    position: fixed;
    z-index: 30;
    top: var(--header-h);
    left: 0;
    width: min(300px, 88vw);
    flex: none;
    height: calc(100vh - var(--header-h));
    transform: translateX(-105%);
    transition: transform .2s ease;
    box-shadow: none;
    padding: 12px 12px 28px;
  }
  body.menu-buka .sidebar { transform: none; box-shadow: 8px 0 28px rgba(15, 23, 42, .16); }
  .layar-menu {
    position: fixed;
    z-index: 25;
    inset: var(--header-h) 0 0 0;
    background: rgba(15, 23, 42, .42);
  }
  body.menu-buka .layar-menu { display: block; }
  .nav-item, .nav-toggle { font-size: 14px; padding: 10px 12px; }
  .content { padding: 16px 12px 32px; min-width: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .page-title { font-size: 22px; }
  .page-head, .welcome-head, .progress-meta, .toolbar { flex-wrap: wrap; }
  .welcome-head { flex-direction: column; }
  .year-pill { white-space: normal; align-self: flex-start; }
  .kicker { line-height: 1.45; }
  .stats, .leger-stats { grid-template-columns: 1fr; }
  .stat .val { font-size: 22px; }
}
