@font-face { font-family: "Panicko"; src: url("assets/fonts/PANICKO.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Poppins"; font-weight: 500; src: url("assets/fonts/Poppins-Medium.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Poppins"; font-weight: 600; src: url("assets/fonts/Poppins-SemiBold.ttf") format("truetype"); font-display: swap; }

:root {
  --purple: #b46bcd;
  --magenta: #ef30a6;
  --pink: #ef3175;
  --navy: #503698;
  --field: #fff6dc;
  --muted: #8a7a99;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: #a8c9e1; }
body { font-family: "Poppins", system-ui, sans-serif; color: var(--navy); }

.page {
  max-width: 480px; min-height: 100vh; margin: 0 auto; padding: 24px 24px 48px;
  background: #fff url("assets/bg.png") top center / 120% auto repeat-y;
}
.head { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.head img { width: 84px; height: 84px; }
.head h1 { font-family: "Panicko", sans-serif; font-weight: 400; color: var(--magenta); font-size: 40px; line-height: 1; }
.lead { color: var(--purple); font-size: 14px; margin: -12px 0 22px; }

.field { margin-bottom: 16px; }
.field label { display: block; color: var(--purple); font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field input {
  width: 100%; height: 48px; padding: 0 14px; border: 2px solid transparent; border-radius: 12px;
  background: var(--field); font: inherit; font-size: 15px; color: #3c2a4d; outline: none;
}
.field input:focus { border-color: var(--purple); }
.row { display: flex; gap: 8px; }
.row input { flex: 1; min-width: 0; }

.btn {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 52px;
  border: 0; border-radius: 12px; background: var(--purple); color: #fff;
  font: 500 18px "Poppins", sans-serif; cursor: pointer; text-decoration: none; transition: opacity .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-sm { width: auto; height: 48px; padding: 0 14px; font-size: 14px; white-space: nowrap; background: var(--magenta); }
.btn-ghost { background: transparent; color: var(--purple); border: 2px solid var(--purple); margin-top: 12px; }

.alt { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.alt a { color: var(--magenta); font-weight: 600; text-decoration: none; }

.msg { display: none; padding: 12px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 16px; line-height: 1.45; }
.msg.show { display: block; }
.msg.err { background: #fde6ef; color: #b0164f; }
.msg.ok { background: #e6f7ee; color: #146c43; }
.msg.info { background: #f1e6f7; color: #6b3a86; }

.hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.done { text-align: center; }
.done h2 { font-family: "Panicko", sans-serif; font-weight: 400; color: var(--magenta); font-size: 34px; margin-bottom: 10px; }
.done p { color: var(--purple); margin-bottom: 8px; }
.code { display: inline-block; margin: 8px 0 22px; padding: 10px 18px; border-radius: 12px; background: var(--field); font-weight: 600; font-size: 20px; letter-spacing: 1px; color: var(--navy); }
.back { display: inline-block; margin-bottom: 14px; color: var(--purple); text-decoration: none; font-size: 14px; }
[hidden] { display: none !important; }

/* ---- tambahan: member area, lupa password, public & vote ---- */
.forgot { text-align: right; margin: -6px 0 14px; font-size: 13px; }
.forgot a { color: var(--magenta); font-weight: 600; text-decoration: none; }
.field select, .field input[type=file] {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid transparent; border-radius: 12px;
  background: var(--field); font: inherit; font-size: 15px; color: #3c2a4d; outline: none;
}
.field select:focus { border-color: var(--purple); }
.opt { font-weight: 500; color: var(--muted); }
.hello { font-family: "Panicko", sans-serif; font-weight: 400; color: var(--magenta); font-size: 30px; margin-bottom: 6px; }
.sub { color: var(--navy); font-size: 16px; font-weight: 600; margin: 22px 0 10px; }
.child { background: rgba(255,255,255,.85); border: 1px solid #eadcf3; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.child-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.cm { font-size: 13px; color: var(--purple); margin-top: 4px; }
.child .upl { display: inline-flex; margin-top: 10px; cursor: pointer; }
.link { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--magenta); font-weight: 600; text-decoration: none; }
.badge { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.badge.ok { background: #e6f7ee; color: #146c43; }
.badge.info { background: #f1e6f7; color: #6b3a86; }
.badge.err { background: #fde6ef; color: #b0164f; }
.badge.warn { background: #fff1d6; color: #8a5a00; }

.search { margin-bottom: 16px; }
.search input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 2px solid transparent; border-radius: 12px; background: var(--field); font: inherit; font-size: 15px; outline: none; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid > .hint { grid-column: 1 / -1; }
.card { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 14px; background: rgba(255,255,255,.9); border: 1px solid #eadcf3; text-decoration: none; color: var(--navy); }
.card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--field); }
.card-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.card b { font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; }
.card-info span { font-size: 11px; color: var(--purple); overflow-wrap: anywhere; }
.card-info .code { color: var(--muted); font-size: 11px; }
.card .vbtn { margin-top: auto; text-align: center; background: var(--magenta); color: #fff; border-radius: 8px; padding: 6px; font-size: 13px; font-weight: 600; }
.pager { display: flex; gap: 10px; margin-top: 16px; }
.btn-half { flex: 1; margin-top: 0; font-size: 14px; height: 44px; }
.linklike { background: none; border: 0; font: inherit; cursor: pointer; padding: 0; }
.member-head { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.member-head img { width: 84px; height: 84px; border-radius: 14px; object-fit: cover; background: var(--field); }
.member-head b { font-size: 18px; color: var(--navy); }
.packets { display: flex; flex-wrap: wrap; gap: 8px; }
.packet { border: 2px solid var(--purple); background: #fff; color: var(--purple); border-radius: 10px; padding: 8px 12px; font: 600 14px "Poppins", sans-serif; cursor: pointer; }
.packet.on { background: var(--purple); color: #fff; }
.total { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 16px; padding: 12px 14px; border-radius: 12px; background: var(--field); color: var(--navy); }
.total b { font-size: 18px; }
.qr { display: flex; justify-content: center; margin: 14px auto 16px; padding: 12px; background: #fff; border-radius: 12px; width: fit-content; }
.loadmore { text-align: center; margin: 16px 0; }
#sentinel { height: 1px; }
.demo-bar { background: #fff1d6; color: #8a5a00; font-size: 12px; font-weight: 600; text-align: center; padding: 8px 10px; border-radius: 10px; margin-bottom: 14px; }
.demo-bar a { color: var(--magenta); }
.child-row { display: flex; gap: 12px; align-items: flex-start; }
.child-pic { width: 64px; height: 64px; flex-shrink: 0; border-radius: 12px; object-fit: cover; background: var(--field); }
.child-body { flex: 1; min-width: 0; }
.cd, .cl { font-size: 12px; color: var(--muted); margin-top: 2px; }
.child-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.child .upl { margin-top: 0; }
.btn-line { background: #fff; color: var(--purple); border: 2px solid var(--purple); }
.pic-field { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.pic-preview { width: 96px; height: 96px; flex-shrink: 0; border-radius: 16px; background: var(--field); border: 2px dashed var(--purple);
  display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; color: var(--purple); font-weight: 600; font-size: 14px; }
.pic-preview img { width: 100%; height: 100%; object-fit: cover; }
.pic-label { display: block; color: var(--purple); font-weight: 600; font-size: 14px; }
.pic-field .hint { margin: 2px 0 8px; }
.field select:disabled { opacity: .6; }
#cancelEdit { margin-top: 10px; }

/* Dasbor orang tua: bedakan tegas "anak terdaftar" vs "form tambah anak" */
.zone { border-radius: 16px; padding: 16px; margin: 18px 0; }
.zone-list { background: rgba(255,255,255,.6); border: 1px solid #eadcf3; }
.zone-form { background: #fff7fc; border: 2px dashed var(--magenta); }
.zone-form.is-edit { background: #fffaf0; border-color: #e0a100; border-style: solid; }
.zone-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.zone-num { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; background: var(--navy); }
.zone-form .zone-num { background: var(--magenta); }
.zone-form.is-edit .zone-num { background: #e0a100; }
.zone-title { color: var(--navy); font-size: 16px; font-weight: 700; margin: 2px 0 2px; }
.zone-count { color: var(--muted); font-weight: 600; }
.zone-sub { color: var(--purple); font-size: 13px; margin: 0; }
.zone-empty { text-align: center; padding: 10px 0; }
.zone .child:last-child { margin-bottom: 0; }
.ach-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.ach-row { display: flex; gap: 8px; }
.ach-row input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 2px solid transparent; border-radius: 12px; background: var(--field); font: inherit; font-size: 15px; color: #3c2a4d; outline: none; }
.ach-row input:focus { border-color: var(--purple); }
.ach-del { width: 48px; flex-shrink: 0; border: 0; border-radius: 12px; background: #fde6ef; color: #b0164f; font-size: 22px; cursor: pointer; }
.ach-title { font-size: 12px; font-weight: 600; color: var(--navy); margin-top: 6px; }
.ach-view { margin: 2px 0 0 18px; font-size: 12px; color: var(--purple); }
.ach-view li + li { margin-top: 2px; }
.member-head { margin-bottom: 14px; }
.profile { background: rgba(255,255,255,.92); border: 1px solid #eadcf3; border-radius: 14px; padding: 14px; margin-bottom: 20px; }
.profile-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.profile-facts dt { color: var(--muted); }
.profile-facts dd { color: var(--navy); font-weight: 600; margin: 0; }
.profile-title { font-size: 15px; font-weight: 600; color: var(--magenta); margin: 14px 0 8px; }
.profile-facts:empty + div .profile-title { margin-top: 0; }
.ach-badges { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ach-badges li { position: relative; padding: 10px 12px 10px 38px; border-radius: 12px; background: var(--field); color: var(--navy); font-size: 14px; line-height: 1.4; }
.ach-badges li::before { content: "★"; position: absolute; left: 14px; top: 9px; color: #fbaf43; font-size: 16px; }
.history { margin-top: 24px; background: rgba(255,255,255,.95); border: 1px solid #eadcf3; border-radius: 16px; padding: 14px; box-shadow: 0 4px 14px rgba(80,54,152,.08); }
.history .profile-title { margin-top: 0; }
.hist-list { list-style: none; display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }
.hist-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px;
  background: rgba(255,255,255,.92); border: 1px solid #eadcf3; }
.hist-who { min-width: 0; display: flex; flex-direction: column; }
.hist-who b { color: var(--navy); font-size: 14px; overflow-wrap: anywhere; }
.hist-who span { color: var(--muted); font-size: 12px; }
.hist-count { flex-shrink: 0; background: var(--magenta); color: #fff; font-weight: 600; font-size: 12px; padding: 4px 10px; border-radius: 999px; }
.zone-count { font-weight: 500; color: var(--muted); font-size: 13px; }
.hist-loading { text-align: center; margin-top: 8px; }
/* pemisah antar bagian halaman detail vote */
.divider { display: flex; align-items: center; gap: 10px; margin: 26px 0 16px; color: var(--purple); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.divider::before, .divider::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, #d9c2ea 30%, #d9c2ea 70%, transparent); }
.divider[hidden] { display: none; }
.history { margin-top: 0; }
/* pemisah antar baris di daftar pemberi vote */
.hist-list { gap: 0; }
.hist-list li { border: 0; border-radius: 0; background: transparent; padding: 12px 4px; border-bottom: 1px dashed #e3d3ee; }
.hist-list li:last-child { border-bottom: 0; }
.hist-list li:nth-child(odd) { background: rgba(251,243,220,.45); }
/* media sosial */
.soc-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 6px; }
.soc-row { display: grid; grid-template-columns: 82px 1fr 92px; gap: 8px; align-items: center; }
.soc-name { font-size: 13px; font-weight: 600; color: var(--navy); }
.soc-row input { min-width: 0; height: 44px; padding: 0 12px; border: 2px solid transparent; border-radius: 12px; background: var(--field); font: inherit; font-size: 14px; color: #3c2a4d; outline: none; }
.soc-row input:focus { border-color: var(--purple); }
.soc-view { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.soc-view span { font-size: 11px; color: var(--purple); background: #f3e8fa; padding: 3px 8px; border-radius: 999px; }
.soc-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.soc-chip { font-size: 13px; font-weight: 600; color: #fff; padding: 7px 12px; border-radius: 999px; text-decoration: none; overflow-wrap: anywhere; }
.soc-chip.soc-instagram { background: linear-gradient(45deg, #f58529, #dd2a7b 50%, #8134af); }
.soc-chip.soc-tiktok { background: #111; }
.soc-chip.soc-youtube { background: #e62117; }
.soc-chip.soc-facebook { background: #1877f2; }
@media (max-width: 360px) { .soc-row { grid-template-columns: 1fr 84px; } .soc-name { grid-column: 1 / -1; } }
/* tombol bagikan */
.share { margin-top: 14px; padding-top: 12px; border-top: 1px dashed #e3d3ee; }
.share-title { font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.share-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sh { width: 36px; height: 36px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border: 0; padding: 0; border-radius: 50%; cursor: pointer; color: #fff; text-decoration: none; transition: transform .15s; }
.sh svg { width: 18px; height: 18px; fill: currentColor; }
.sh:hover { transform: translateY(-2px); }
.sh[hidden] { display: none; }
.sh-native { background: var(--purple); }
.sh-wa { background: #25d366; }
.sh-fb { background: #1877f2; }
.sh-x { background: #111; }
.sh-tg { background: #229ed9; }
.sh-copy { background: #fff; color: var(--purple); box-shadow: inset 0 0 0 2px var(--purple); }
.sh-copy.done { background: #e6f7ee; color: #146c43; box-shadow: inset 0 0 0 2px #146c43; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sh-ig { background: linear-gradient(45deg, #f58529, #dd2a7b 50%, #8134af); }
.sh-th { background: #000; }
.share-note { margin-top: 8px; color: var(--purple); }
/* portal juri */
.judge-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 14px; border-radius: 12px; background: rgba(255,255,255,.92); border: 1px solid #eadcf3; }
.judge-bar .hint { display: block; margin: 0; }
.judge-bar b { color: var(--navy); }
.judge-progress { margin-bottom: 12px; }
.judge-progress .bar { height: 10px; border-radius: 999px; background: #eadcf3; overflow: hidden; }
.judge-progress .bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--purple), var(--magenta)); transition: width .3s; }
.judge-progress .hint { margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip { border: 1px solid #d9c2ea; background: #fff; color: var(--purple); border-radius: 999px; padding: 6px 12px; font: 600 12px "Poppins", sans-serif; cursor: pointer; }
.chip.on { background: var(--purple); border-color: var(--purple); color: #fff; }
.judge-card { font: inherit; text-align: left; cursor: pointer; }
.judge-card .jstate { margin-top: auto; text-align: center; border-radius: 8px; padding: 6px; font-size: 12px; font-weight: 600; background: #fde6ef; color: #b0164f; }
.judge-card.is-part .jstate { background: #fff1d6; color: #8a5a00; }
.judge-card.is-done .jstate { background: #e6f7ee; color: #146c43; }
.crit { background: rgba(255,255,255,.92); border: 1px solid #eadcf3; border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
.crit.empty { border-style: dashed; }
.crit-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; margin-bottom: 8px; }
.crit-head label { color: var(--navy); font-weight: 600; font-size: 14px; }
.crit-w { flex-shrink: 0; font-size: 11px; font-weight: 600; color: var(--purple); background: #f3e8fa; padding: 2px 8px; border-radius: 999px; }
.crit-input { display: flex; gap: 12px; align-items: center; }
.crit-input input[type=range] { flex: 1; accent-color: var(--magenta); height: 28px; }
.crit-input input[type=number] { width: 82px; height: 44px; padding: 0 10px; border: 2px solid transparent; border-radius: 12px; background: var(--field); font: 600 16px "Poppins", sans-serif; color: var(--navy); text-align: center; outline: none; }
.crit-input input[type=number]:focus { border-color: var(--purple); }
.score-total b { font-size: 22px; color: var(--magenta); }
#saveNextBtn { margin-top: 10px; }
.judge-loc { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: -6px 0 14px; font-size: 13px; color: var(--navy); }
.judge-loc .btn { width: auto; flex-shrink: 0; text-decoration: none; }
.crit-auto { background: #f6f1fb; border-style: dashed; }
.crit-auto .hint { margin: 0; }
#totalNote { margin: -8px 0 12px; }
/* check-in */
.count-pill { background: var(--magenta); color: #fff; font-weight: 600; font-size: 13px; padding: 4px 12px; border-radius: 999px; }
.scanner { background: rgba(255,255,255,.95); border: 1px solid #eadcf3; border-radius: 16px; padding: 12px; margin-bottom: 12px; }
.reader { width: 100%; border-radius: 12px; overflow: hidden; background: #1d1430; min-height: 0; }
.reader:empty { display: none; }
.scan-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.scanner .hint { margin-top: 8px; text-align: center; }
.manual input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 2px solid transparent; border-radius: 12px; background: var(--field); font: 600 15px "Poppins", sans-serif; letter-spacing: .5px; outline: none; }
.manual input:focus { border-color: var(--purple); }
.scan-result { display: flex; gap: 14px; align-items: center; margin-top: 14px; padding: 12px; border-radius: 16px; border: 3px solid #eadcf3; background: #fff; }
.scan-result img { width: 96px; height: 96px; flex-shrink: 0; border-radius: 14px; object-fit: cover; background: var(--field); }
.r-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.r-body b { font-size: 18px; color: var(--navy); overflow-wrap: anywhere; }
.r-body span { font-size: 12px; color: var(--muted); }
.r-status { align-self: flex-start; font-size: 12px !important; font-weight: 700; color: #fff !important; padding: 3px 10px; border-radius: 999px; background: var(--muted); }
.scan-result.is-ok { border-color: #34c47a; } .scan-result.is-ok .r-status { background: #1f9d5b; }
.scan-result.is-warn { border-color: #f0b54a; } .scan-result.is-warn .r-status { background: #c98a12; }
.scan-result.is-err { border-color: #e2577f; } .scan-result.is-err .r-status { background: #c0244f; }
.scan-result.is-err b { font-size: 15px; }
.checkin-list { max-height: 360px; overflow-y: auto; }
/* QR check-in */
.qr-btn { background: var(--navy); }
.qr-modal { position: fixed; inset: 0; z-index: 50; background: rgba(32, 18, 56, .6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.qr-modal[hidden] { display: none; }
.qr-sheet { position: relative; width: 100%; max-width: 380px; background: #fff; border-radius: 20px; padding: 22px 20px; text-align: center; }
.qr-close { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f3e8fa; color: var(--purple); font-size: 22px; cursor: pointer; }
.qr-kicker { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--purple); }
.qr-sheet h2 { font-size: 20px; color: var(--navy); margin: 4px 0 12px; }
.qr-box { display: flex; justify-content: center; padding: 12px; margin: 0 auto 8px; border-radius: 14px; border: 2px dashed #d9c2ea; width: fit-content; }
.qr-sheet .code { margin: 6px 0 8px; }
.qr-sheet .hint { margin-top: 6px; }
.absen-tag { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #fff1d6; color: #8a5a00; }
.absen-tag.on { background: #e6f7ee; color: #146c43; }
/* absen kehadiran */
.loc-card { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; margin-bottom: 16px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--purple), var(--magenta)); }
.loc-card .hint { color: rgba(255,255,255,.85); margin: 0; }
.loc-card b { font-size: 20px; }
.kid { display: flex; align-items: center; gap: 12px; padding: 10px; margin-bottom: 10px; border-radius: 14px; background: rgba(255,255,255,.95); border: 1px solid #eadcf3; }
.kid img { width: 56px; height: 56px; flex-shrink: 0; border-radius: 12px; object-fit: cover; background: var(--field); }
.kid-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.kid-info b { color: var(--navy); overflow-wrap: anywhere; }
.kid-info span { font-size: 12px; color: var(--muted); }
.kid .btn { width: auto; flex-shrink: 0; }
.kid.off { opacity: .6; }
.kid.in { border-color: #34c47a; }
.kid-ok { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: #1f9d5b; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.absen-done .btn { margin-top: 10px; }
.absen-check { width: 84px; height: 84px; margin: 6px auto 10px; border-radius: 50%; background: #1f9d5b; color: #fff; font-size: 44px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* ===== Portal juri: tampilan web (desktop) + responsif ===== */
body.wide { background: #f4effa; }
body.wide .page { max-width: 1280px; padding: 0 32px 48px; background: transparent; }
.wtop { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; margin-bottom: 20px; border-bottom: 1px solid #e3d3ee; }
.wbrand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.wbrand img { width: 52px; height: 52px; }
.wbrand span { font-family: "Panicko", sans-serif; font-size: 30px; color: var(--magenta); line-height: 1; }
.wsub { color: var(--muted); font-size: 13px; }
body.wide .judge-bar, body.wide .judge-loc, body.wide .judge-progress, body.wide .demo-bar, body.wide .msg { max-width: none; }
body.wide #loginForm { max-width: 440px; margin: 40px auto; background: #fff; border: 1px solid #eadcf3; border-radius: 18px; padding: 28px; }
body.wide .toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
body.wide .toolbar .search { flex: 1; min-width: 260px; max-width: 460px; margin: 0; }
body.wide .toolbar .chips { margin: 0; }
body.wide .grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
body.wide .judge-card { background: #fff; transition: box-shadow .15s, transform .15s; }
body.wide .judge-card:hover { box-shadow: 0 8px 22px rgba(80,54,152,.12); transform: translateY(-2px); }
body.wide #levelField { max-width: 360px; }
.score-layout { display: grid; grid-template-columns: 360px 1fr; gap: 28px; align-items: start; }
.score-side { position: sticky; top: 16px; background: #fff; border: 1px solid #eadcf3; border-radius: 18px; padding: 18px; }
.score-side .member-head { flex-direction: column; text-align: center; align-items: center; }
.score-side .member-head img { width: 180px; height: 180px; border-radius: 18px; }
.score-side .profile { border: 0; padding: 0; margin: 0; background: transparent; }
.score-main { background: #fff; border: 1px solid #eadcf3; border-radius: 18px; padding: 8px 22px 22px; }
.score-main .divider { margin-top: 14px; }
body.wide .crit-input input[type=range] { height: 32px; }
.score-actions { display: flex; gap: 12px; }
.score-actions .btn { flex: 1; margin-top: 0; }
@media (max-width: 900px) {
  body.wide .page { padding: 0 16px 40px; }
  .wsub { display: none; }
  .score-layout { grid-template-columns: 1fr; gap: 16px; }
  .score-side { position: static; }
  .score-side .member-head { flex-direction: row; text-align: left; }
  .score-side .member-head img { width: 84px; height: 84px; }
  .score-main { padding: 4px 14px 16px; }
}
@media (max-width: 520px) {
  body.wide .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .score-actions { flex-direction: column; }
  .wbrand span { font-size: 24px; }
}
/* rekaman video penampilan (portal juri) */
.rec-panel { margin-bottom: 14px; }
.rec-video { position: relative; border-radius: 14px; overflow: hidden; background: #1d1430; aspect-ratio: 16 / 9; border: 3px solid transparent; }
.rec-panel.on .rec-video { border-color: #e2384d; }
.rec-video video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.rec-badge { position: absolute; top: 8px; left: 8px; display: flex; align-items: center; gap: 6px; background: rgba(0,0,0,.6); color: #fff; font: 700 12px "Poppins", sans-serif; padding: 4px 10px; border-radius: 999px; }
.rec-badge i { width: 9px; height: 9px; border-radius: 50%; background: #ff3b4e; animation: recblink 1s infinite; }
.rec-badge b { font-weight: 600; }
@keyframes recblink { 50% { opacity: .2; } }
.rec-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.rec-toggle { font-size: 13px; font-weight: 600; color: var(--navy); display: flex; align-items: center; gap: 6px; cursor: pointer; }
.rec-row .hint { margin: 0; }
.rec-warn { color: #b0164f; margin-top: 6px; }
.rec-warn .linklike { color: var(--magenta); font-weight: 600; text-decoration: underline; }
.rec-upload { font-size: 12px; font-weight: 600; color: var(--purple); background: #f3e8fa; padding: 4px 10px; border-radius: 999px; }
.vids { display: flex; flex-direction: column; gap: 12px; }
.vid { margin: 0; }
.vid video { width: 100%; border-radius: 12px; background: #000; display: block; max-height: 420px; }
.vid figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 16px; padding: 12px 14px; border-radius: 12px; background: #f6f1fb; border: 1px solid #e3d3ee; font-size: 13px; color: var(--navy); line-height: 1.45; cursor: pointer; }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--magenta); }
.consent[hidden] { display: none; }
/* juri: video besar di area utama, panel nilai ringkas di samping */
.score-layout { grid-template-columns: minmax(0, 1fr) 380px; }
.score-main { padding: 18px; }
.score-main .rec-video { aspect-ratio: 16 / 9; border-radius: 16px; }
.score-main .rec-panel { margin-bottom: 18px; }
.stage-profile { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.stage-profile .member-head { flex-direction: column; align-items: center; text-align: center; margin: 0; }
.stage-profile .member-head img { width: 120px; height: 120px; border-radius: 16px; }
.stage-profile .profile { border: 0; padding: 0; margin: 0; background: transparent; }
.score-side { position: sticky; top: 16px; padding: 14px 16px 18px; }
.score-side .member-head { display: flex; }
.score-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--purple); }
.score-head .linklike { font-size: 12px; text-transform: none; letter-spacing: 0; color: var(--magenta); text-decoration: underline; }
.score-side .divider { margin: 10px 0 8px; }
.score-side .crit { padding: 10px 12px; margin-bottom: 8px; }
.score-side .crit-head label { font-size: 13px; }
.score-side .crit-input input[type=number] { width: 64px; height: 38px; font-size: 15px; }
.score-side .score-total b { font-size: 18px; }
.score-side .score-actions { flex-direction: column; gap: 8px; }
.score-side .score-actions .btn { height: 46px; font-size: 15px; }
.score-side #totalNote, .score-side > .hint { font-size: 11px; }
/* privasi: angka & slider diburamkan sampai juri mengarahkan kursor / mengetik */
.score-side.private .crit-input input[type=number], .score-side.private .crit-input input[type=range], .score-side.private .score-total b { filter: blur(6px); transition: filter .15s; }
.score-side.private .crit:hover .crit-input input, .score-side.private .crit:focus-within .crit-input input,
.score-side.private .score-total:hover b { filter: none; }
@media (max-width: 1100px) { .score-layout { grid-template-columns: minmax(0, 1fr) 340px; } }
@media (max-width: 900px) {
  .score-layout { grid-template-columns: 1fr; }
  .score-side { position: static; }
  .stage-profile { grid-template-columns: 1fr; }
  .stage-profile .member-head { flex-direction: row; text-align: left; }
  .stage-profile .member-head img { width: 84px; height: 84px; }
}
/* penilaian publik */
.pr { background: rgba(255,255,255,.95); border: 1px solid #eadcf3; border-radius: 16px; padding: 14px; }
.pr-locked { text-align: center; padding: 10px; }
.pr-locked b { color: var(--navy); }
.pr .crit-input input[type=number] { width: 82px; height: 44px; }
.pr-quota { margin: -4px 0 14px; }
.pr-quota .bar { height: 8px; border-radius: 999px; background: #eadcf3; overflow: hidden; margin-bottom: 4px; }
.pr-quota .bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #fbaf43, var(--magenta)); }
/* tanda & pemutar rekaman di portal juri */
.judge-card { position: relative; }
.vbadge { position: absolute; top: 18px; left: 18px; background: rgba(20, 10, 40, .78); color: #fff; font: 700 12px "Poppins", sans-serif; padding: 5px 10px; border-radius: 999px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.vbadge:hover, .vbadge:focus { background: var(--magenta); outline: none; }
.replay-btn { width: auto; background: var(--navy); }
.vmodal { position: fixed; inset: 0; z-index: 60; background: rgba(20, 10, 40, .75); display: flex; align-items: center; justify-content: center; padding: 16px; }
.vmodal[hidden] { display: none; }
.vsheet { position: relative; width: 100%; max-width: 900px; max-height: 92vh; overflow-y: auto; background: #fff; border-radius: 18px; padding: 20px; }
.vsheet h2 { font-size: 18px; color: var(--navy); margin: 0 40px 12px 0; }
.vsheet .vid video { max-height: 70vh; }
.rec-mode { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--navy); }
.rec-mode > span { font-weight: 700; }
.rec-mode label { display: flex; align-items: center; gap: 4px; cursor: pointer; font-weight: 600; }
.rec-mode input { accent-color: var(--magenta); }
.rec-btn { width: auto; background: #e2384d; }
.rec-btn.on { background: var(--navy); }
/* pemutar video: satu layar + pilihan sudut kamera */
.player video { width: 100%; border-radius: 14px; background: #000; display: block; max-height: 460px; }
.angle-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.angle-label { font-size: 12px; font-weight: 700; color: var(--navy); margin-right: 2px; }
.angle-tabs button { border: 2px solid var(--purple); background: #fff; color: var(--purple); border-radius: 999px; padding: 5px 14px; font: 600 13px "Poppins", sans-serif; cursor: pointer; }
.angle-tabs button.on { background: var(--purple); color: #fff; }
.player-cap { font-size: 12px; color: var(--muted); margin-top: 6px; }
/* gelombang suara di atas video juri */
.audio-meter { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 64px; border-radius: 12px; background: rgba(15, 8, 30, .55); backdrop-filter: blur(2px); overflow: hidden; border: 2px solid transparent; }
.audio-meter canvas { width: 100%; height: 100%; display: block; }
.audio-meter .mic-state { position: absolute; top: 6px; left: 10px; font: 700 11px "Poppins", sans-serif; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.audio-meter.ok { border-color: rgba(62, 224, 139, .7); }
.audio-meter.bad { border-color: #ff3b4e; background: rgba(120, 10, 30, .6); }
/* tombol simpan di panel nilai juri: tinggi & jarak seragam */
.score-actions { margin-top: 12px; gap: 10px; }
.score-side .score-actions .btn { height: 48px; min-height: 48px; margin: 0; padding: 0 16px; border: 2px solid var(--purple); border-radius: 12px; font: 600 15px/1 "Poppins", sans-serif; box-sizing: border-box; }
.score-side .score-actions .btn:not(.btn-ghost) { background: var(--purple); color: #fff; box-shadow: 0 4px 12px rgba(180, 107, 205, .3); }
.score-side .score-actions .btn-ghost { background: #fff; color: var(--purple); }
.score-side .score-actions .btn-ghost:hover { background: #f6f1fb; }
.score-side .score-actions .btn:disabled { opacity: .55; box-shadow: none; }
#saveState { margin: 4px 0 0; }
.judge-card .qno { font-size: 11px !important; font-weight: 700; color: var(--magenta) !important; letter-spacing: .02em; }
/* kiosk absensi */
body.kiosk .wbrand span { font-size: 28px; }
.kiosk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.kiosk-cam { background: #fff; border: 1px solid #eadcf3; border-radius: 18px; padding: 16px; }
.kiosk-reader { width: 100%; border-radius: 14px; overflow: hidden; background: #1d1430; }
.kiosk-reader[hidden] { display: none; }
.kiosk-reader { min-height: 320px; }
.kiosk-reader video { width: 100% !important; height: auto !important; display: block; border-radius: 14px; }
.kiosk-modes { display: flex; gap: 8px; margin-bottom: 12px; }
.kmode { flex: 1; min-height: 48px; border-radius: 12px; border: 2px solid #d9c8ee; background: #fff; color: #4a3590; font: inherit; font-weight: 700; cursor: pointer; }
.kmode.on { background: #4a3590; border-color: #4a3590; color: #fff; }
.kmode:focus-visible { outline: 3px solid #e0409a; outline-offset: 2px; }
.kiosk-scanicon { font-size: 44px; letter-spacing: -4px; margin-bottom: 12px; }
.kiosk-start { text-align: center; padding: 60px 20px; border-radius: 14px; background: #1d1430; color: #fff; }
.kiosk-start .btn { width: auto; margin: 14px auto 0; padding: 0 24px; }
.kiosk-start .hint { color: #f6c; margin-top: 10px; }
.kiosk-guide { text-align: center; font-size: 18px; color: var(--navy); margin: 12px 0 4px; }
.kiosk-cam .manual { margin-top: 12px; }
.kiosk-side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 14px; }
.kiosk-result { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 22px 16px; border-radius: 18px; background: #fff; border: 4px solid #eadcf3; min-height: 300px; justify-content: center; transition: border-color .2s, background .2s; }
.kiosk-result img { width: 150px; height: 150px; border-radius: 18px; object-fit: cover; background: var(--field); }
.kiosk-result .r-body { align-items: center; }
.kiosk-result .r-body b { font-size: 24px; }
.kiosk-result .r-status { align-self: center; font-size: 14px !important; padding: 5px 14px; }
.kiosk-result.ok { border-color: #34c47a; background: #effbf4; } .kiosk-result.ok .r-status { background: #1f9d5b; }
.kiosk-result.warn { border-color: #f0b54a; background: #fff8e9; } .kiosk-result.warn .r-status { background: #c98a12; }
.kiosk-result.err { border-color: #e2577f; background: #fdeef3; } .kiosk-result.err .r-status { background: #c0244f; }
.kiosk-result.err b { font-size: 17px; }
.kiosk-result.idle b { color: var(--muted); font-size: 18px; }
.kiosk-count { display: flex; align-items: baseline; gap: 10px; padding: 12px 16px; border-radius: 14px; background: #fff; border: 1px solid #eadcf3; }
.kiosk-count b { font-size: 34px; color: var(--magenta); }
.kiosk-count span { color: var(--navy); font-weight: 600; }
.kiosk-side .sub { margin: 4px 0 0; }
@media (max-width: 900px) { .kiosk-grid { grid-template-columns: 1fr; } .kiosk-side { position: static; } .kiosk-result { min-height: 0; } }

/* Info pendaftaran gratis (halaman daftar) */
.promo { display: flex; flex-direction: column; gap: 4px; margin: -8px 0 20px; padding: 14px 16px; border-radius: 14px;
  background: #fff6e0; border: 2px dashed #f0b429; color: #7a4b00; font-size: 14px; line-height: 1.45; }
.promo strong { font-size: 17px; letter-spacing: .3px; color: #b45309; }
.promo-steps { margin: 8px 0 0; padding: 10px 0 0 18px; border-top: 1px dashed #f0b429; font-size: 13px; }
.promo-steps li { margin-bottom: 4px; }
.promo-steps li:last-child { margin-bottom: 0; }
/* popup Ketentuan Peserta (halaman masuk) */
.rules-link { color: var(--magenta); font-weight: 600; text-decoration: underline; }
.rules-sheet { text-align: left; max-width: 440px; max-height: 88vh; overflow-y: auto; }
.rules-sheet h2 { padding-right: 36px; }
.rules-intro { font-size: 14px; color: var(--navy); margin-bottom: 10px; line-height: 1.5; }
.rules-list { margin: 0 0 12px; padding-left: 20px; font-size: 14px; color: var(--navy); line-height: 1.5; }
.rules-list li { margin-bottom: 10px; }
.rules-note { font-size: 13px; color: #8a2b4a; background: #fde8ef; padding: 10px 12px; border-radius: 10px; margin-bottom: 14px; }
.rules-schedule { margin: 4px 0 14px; }
.rules-schedule h3 { font-size: 15px; color: var(--navy); margin: 0 0 8px; }
.sch-item { padding: 10px 12px; border-radius: 12px; background: #f6f1fb; border: 1px solid #e3d3ee; margin-bottom: 8px; }
.sch-title { font-weight: 700; font-size: 14px; color: var(--navy); margin: 0; }
.sch-date { font-size: 13px; color: var(--purple); margin: 2px 0 0; }
.sch-weights { list-style: none; margin: 8px 0 0; padding: 0; font-size: 13px; color: var(--navy); }
.sch-weights li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-top: 1px dashed #e3d3ee; }
.loc-list { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow-y: auto; border: 1px solid #e3d3ee; border-radius: 12px; }
.loc-list li + li { border-top: 1px dashed #e3d3ee; }
.loc-list a { display: flex; flex-direction: column; gap: 1px; padding: 9px 12px; text-decoration: none; color: var(--navy); font-size: 13px; }
.loc-list a:hover { background: #f6f1fb; }
.loc-list b { font-size: 14px; }
.loc-list span { color: #6b5a80; }
.loc-list em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--magenta); }
.rules-info { font-size: 13px; color: #7a4b00; background: #fff6e0; border: 1px dashed #f0b429; padding: 10px 12px; border-radius: 10px; margin: 0 0 14px; }
/* keterangan QRIS (halaman vote & penilaian publik) */
.qris-info { margin: 12px auto 4px; max-width: 420px; padding: 12px 14px; border-radius: 12px; background: #f6f1fb; border: 1px solid #e3d3ee; text-align: left; font-size: 13px; line-height: 1.5; color: var(--navy); }
.qris-info p { margin: 0; }
.qris-info .qris-tip { margin-top: 6px; color: #6b5a80; font-size: 12px; }
.qr-dl { max-width: 260px; margin: 10px auto 0; display: block; }
.qr-dl[hidden] { display: none; }

/* Pesan validasi tepat di bawah field (lihat DprdEvent.fieldError) */
.field input[aria-invalid="true"], .row input[aria-invalid="true"] { border-color: #b0164f; }
.field-err { font-size: 12.5px; color: #b0164f; margin-top: 6px; line-height: 1.4; }

/* iOS Safari otomatis memperbesar halaman bila input ber-font < 16px difokuskan */
@media (max-width: 520px) {
  .field input, .field select, .search input, .ach-row input, .soc-row input, .manual input,
  .score-side .crit-input input[type=number] { font-size: 16px; }
}
.child-actions .wa-group { background: #25d366; color: #fff; text-decoration: none; white-space: normal; max-width: 100%; text-align: center; line-height: 1.3; }
.child-actions .wa-group:hover { background: #1ebe5b; }

/* barcode batang absen di bawah QR */
.qr-barcode { margin: 12px auto 0; background: #fff; border-radius: 10px; padding: 4px; max-width: 100%; }
.qr-barcode svg { display: block; width: 100%; height: auto; max-width: 360px; margin: 0 auto; }

/* absen: tanggal pelaksanaan & peserta belum terverifikasi */
.kiosk-closed { margin: 0 0 14px; padding: 14px 18px; border-radius: 14px; background: #fde8e8; border: 1px solid #f5b5b5; color: #8a1f1f; font-weight: 700; font-size: 17px; text-align: center; }
.pending-box { margin-top: 22px; background: #fff; border: 1px solid #eadcf3; border-radius: 16px; padding: 4px 16px 12px; }
.pending-box > summary { cursor: pointer; padding: 12px 0; font-weight: 700; list-style: none; }
.pending-box > summary::-webkit-details-marker { display: none; }
.pending-box > summary b { display: inline-block; min-width: 28px; padding: 1px 9px; margin-left: 4px; border-radius: 99px; background: #fff3d6; color: #8a5a00; text-align: center; }
.pending-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.pending-tools input { flex: 1 1 260px; padding: 9px 12px; border: 1px solid #d9c8e6; border-radius: 10px; font: inherit; }
.pending-wrap { overflow-x: auto; max-height: 480px; overflow-y: auto; }
.pending-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pending-table th { position: sticky; top: 0; background: #faf5fd; text-align: left; padding: 8px; font-size: 12px; color: #6b5a78; }
.pending-table td { padding: 9px 8px; border-top: 1px dashed #e3d3ee; vertical-align: top; }
.pending-table small { color: #7a6a86; }
.wa-btn { display: inline-block; margin-top: 3px; padding: 2px 8px; border-radius: 99px; background: #e7f8ee; color: #137a3c; font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.st { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.st-wait { background: #fff3d6; color: #8a5a00; }
.st-bad { background: #fde8e8; color: #9b1c1c; }
.st-ok { background: #e7f8ee; color: #137a3c; }
.st-none { background: #eef0f3; color: #4b5563; }

/* audio/video penampilan peserta (member area & portal juri) */
.media-box { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: #faf5fd; border: 1px solid #eadcf3; }
.media-box .ach-title { margin-top: 0; }
.media-note { margin: 4px 0 8px; font-size: 13px; color: #5b4a68; }
.media-list { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.media-list li { display: flex; flex-direction: column; gap: 6px; }
.media-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.media-name { font-size: 13px; font-weight: 600; word-break: break-word; }
.media-player { width: 100%; max-height: 260px; border-radius: 10px; background: #000; }
audio.media-player { background: transparent; height: 40px; }
.media-bar { height: 8px; border-radius: 99px; background: #eadcf3; overflow: hidden; margin: 8px 0 2px; }
.media-bar span { display: block; height: 100%; width: 0; background: #e2339a; transition: width .2s; }
.media-hint { margin: 6px 0 0; font-size: 12px; color: #7a6a86; }
.media-msg { margin: 6px 0 0; font-size: 13px; }
.media-msg.ok { color: #137a3c; }
.media-msg.err { color: #9b1c1c; }
.media-up.disabled { opacity: .6; pointer-events: none; }
.judge-media { margin: 10px 0; }
