/* Form Evaluasi & Investasi Iman CSSK 4
   Warna diambil dari logo Catholic Business Community (bronze #775832) di atas kertas hangat. */

:root {
  --paper: #f4eee3;
  --paper-2: #ebe2d1;
  --card: #fffcf7;
  --ink: #261c12;
  --ink-2: #5c4935;
  --ink-3: #75624d;
  --line: #e0d4bf;
  --line-2: #c8b697;
  --bronze: #775832;
  --bronze-2: #5d4323;
  --bronze-3: #3a2914;
  --bronze-tint: #f0e5d1;
  --gold: #d9b67c;
  --ok: #2e6a3d;
  --ok-tint: #e3eedf;
  --due: #a13838;
  --due-tint: #f7e5e0;
  --warn-tint: #f5ead2;
  --ring: 0 0 0 3px rgba(119, 88, 50, .32);
  --shadow: 0 1px 2px rgba(38, 28, 18, .05), 0 10px 28px -14px rgba(38, 28, 18, .18);
  --r: 16px;
  --r-sm: 11px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
  accent-color: var(--bronze);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--line-2) transparent; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--bronze);
}
::selection { background: var(--gold); color: var(--bronze-3); }
h1, h2, h3 { margin: 0; line-height: 1.25; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--bronze); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--bronze-2); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--ring); }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 20px; height: 20px; flex: none; }
.flip { transform: scaleX(-1); }
.muted { color: var(--ink-3); }
.num, .count, .rek-no, .sum-big strong, .totals strong, .fr-count strong, .avg-v strong { font-variant-numeric: tabular-nums; }

/* ---------- Kerangka ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 16px; max-width: 1152px; margin: 0 auto;
}
.brand { display: block; line-height: 0; border-radius: 8px; }
.brand img { width: 94px; }
.topbar-label { font-size: 14px; font-weight: 600; color: var(--ink-2); text-align: right; }

.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px 48px; }
.wrap.wide { max-width: 1152px; }
.wrap.narrow { max-width: 440px; }
.topbar + .wrap, .toast + .wrap { padding-top: 12px; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 22px 20px;
  margin-bottom: 16px;
}
.panel > h1 { font-size: 24px; font-weight: 750; }
.panel > h2, .page-head h2 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.lede { color: var(--ink-2); margin-top: 8px; }
.panel > h1 + .lede { margin-bottom: 20px; }
.fine { font-size: 14px; color: var(--ink-3); margin-top: 12px; text-align: center; }
.empty { color: var(--ink-3); text-align: center; padding: 20px 12px; }
.back { margin: 8px 0 12px; font-size: 15px; font-weight: 600; }
.back a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; min-height: 44px; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px;
  border: 1.5px solid var(--bronze); border-radius: 12px;
  background: var(--bronze); color: #fffaf1;
  font-weight: 650; font-size: 16px; text-decoration: none; cursor: pointer;
  touch-action: manipulation;
  transition: background .15s, border-color .15s, transform .1s, box-shadow .15s;
}
.btn:hover { background: var(--bronze-2); border-color: var(--bronze-2); color: #fffaf1; }
.btn:active { transform: translateY(1px); }
.btn .ic { width: 18px; height: 18px; }
.btn-lg { min-height: 56px; font-size: 17px; }
.btn-block { width: 100%; margin-top: 8px; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14.5px; border-radius: 10px; }
.btn-ghost { background: transparent; color: var(--bronze); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--bronze-tint); color: var(--bronze-2); border-color: var(--bronze); }
.btn-danger { background: transparent; color: var(--due); border-color: #e3bdb5; }
.btn-danger:hover { background: var(--due-tint); color: var(--due); border-color: var(--due); }
.btn.is-loading { opacity: .72; cursor: progress; }
.btn:disabled { cursor: progress; }
.linkbtn {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 8px 4px;
  color: var(--bronze); font-weight: 600; cursor: pointer; min-height: 40px; border-radius: 8px;
}
.linkbtn .ic { width: 16px; height: 16px; }
.iconbtn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px;
  background: none; color: var(--ink-3); cursor: pointer;
}
.iconbtn:hover { background: var(--due-tint); color: var(--due); }

/* ---------- Isian ---------- */
.field { margin-bottom: 16px; }
.field label, .group-pick label { display: block; font-size: 14.5px; font-weight: 650; color: var(--ink-2); margin-bottom: 6px; }
input:not([type=radio]):not([type=checkbox]), select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; line-height: 1.5; min-height: 84px; }
select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23775832' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--bronze); box-shadow: var(--ring); }
input::placeholder, textarea::placeholder { color: #9a8870; }
.has-err input, .has-err select, .has-err textarea { border-color: var(--due); }
.err { display: flex; align-items: flex-start; gap: 6px; color: var(--due); font-size: 14.5px; font-weight: 550; margin-top: 8px; }
.err .ic { width: 17px; height: 17px; margin-top: 2px; }

/* ---------- Catatan ---------- */
.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; margin: 16px 0; font-size: 15px; text-align: left; }
.note .ic { margin-top: 1px; }
.note p + p { margin-top: 8px; }
.note-due, .note-err { background: var(--due-tint); color: #6f2626; }
.note-warn { background: var(--warn-tint); color: #5e4210; }
.note-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 0; right: 0; top: 14px; z-index: 50; margin: 0 auto;
  display: flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100% - 32px);
  padding: 12px 18px; border-radius: 12px; background: var(--bronze-3); color: var(--paper);
  font-weight: 600; font-size: 15px; box-shadow: 0 12px 32px -10px rgba(38, 28, 18, .45);
  animation: toastIn .45s var(--ease);
}
.toast .ic { color: var(--gold); }
.toast.out { opacity: 0; transform: translateY(-8px); transition: opacity .35s, transform .35s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px); } }

/* ---------- Login ---------- */
.page-login {
  background: var(--paper);
}
.login { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.login-band { background: var(--bronze-3); color: var(--paper); text-align: center; padding: 48px 20px 44px; }
.login-logo { width: 180px; margin: 0 auto 26px; display: block; filter: brightness(2.1) saturate(.75); }
.login h1 { font-size: 27px; font-weight: 800; letter-spacing: -.02em; max-width: 400px; margin: 0 auto; }
.login-event { color: var(--gold); margin-top: 10px; font-size: 16px; font-weight: 600; }
.login-card { width: 100%; max-width: 400px; margin: 0 auto; padding: 8px 16px 40px; text-align: center; }
.g-btn { display: flex; justify-content: center; margin: 32px 0 8px; min-height: 44px; }
.login-msg { justify-content: center; }
.login-fine { font-size: 14px; color: var(--ink-3); margin-top: 24px; line-height: 1.55; }
.dev-login { margin-top: 24px; padding: 14px; border: 1px dashed var(--line-2); border-radius: 12px; text-align: left; }
.dev-login label { font-size: 13px; font-weight: 650; color: var(--ink-3); display: block; margin-bottom: 6px; }
.dev-row { display: flex; gap: 8px; }

/* ---------- Perjalanan (progres 7 evaluasi) ---------- */
.journey { background: var(--bronze-3); color: var(--paper); padding: 20px 16px 52px; }
.journey-in { max-width: 608px; margin: 0 auto; }
.hello { font-size: 16px; color: rgba(244, 238, 227, .82); }
.hello strong { color: var(--paper); font-weight: 700; }
.hello-group { font-size: 14px; color: var(--gold); font-weight: 650; margin-top: 2px; }
.beads { list-style: none; margin: 20px 0 0; padding: 0; display: flex; justify-content: space-between; position: relative; }
.beads::before { content: ""; position: absolute; left: 16px; right: 16px; top: 15px; height: 2px; background: rgba(244, 238, 227, .16); }
.bead { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 34px; }
.bead-dot {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bronze-3); border: 2px dashed rgba(244, 238, 227, .32); position: relative;
}
.bead-label { font-size: 13px; font-weight: 700; color: rgba(244, 238, 227, .6); }
.st-done .bead-dot { background: var(--gold); border: 0; color: var(--bronze-3); }
.st-done .bead-dot .ic { width: 17px; height: 17px; stroke-width: 3; }
.st-done .bead-label { color: rgba(244, 238, 227, .85); }
.st-current .bead-dot { background: var(--paper); border: 0; box-shadow: 0 0 0 5px rgba(217, 182, 124, .35); }
.st-current .bead-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--bronze); }
.st-current .bead-label { color: var(--paper); }
.st-due .bead-dot { border: 2px solid #e9a497; }
.st-due .bead-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #e9a497; }
.st-due .bead-label { color: #f1c1b7; }
.journey-count { margin-top: 14px; font-size: 14px; color: rgba(244, 238, 227, .75); }
.journey-count strong { color: var(--gold); font-size: 15px; }
.journey + .wrap { margin-top: -32px; position: relative; }

/* ---------- Form evaluasi ---------- */
.form-head { display: flex; gap: 18px; align-items: stretch; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.form-num {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 64px; padding-right: 18px; border-right: 1px solid var(--line); color: var(--bronze);
}
.form-num span { font-size: 54px; font-weight: 800; line-height: .9; letter-spacing: -.04em; }
.form-num small { font-size: 13px; font-weight: 650; color: var(--ink-3); }
.form-num span + small { margin-top: 4px; }
.form-num small:first-child { margin-bottom: 2px; color: var(--bronze); }
.form-title { min-width: 0; align-self: center; }
.form-title h1 { font-size: 23px; font-weight: 750; }
.form-meta { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; font-size: 15px; color: var(--ink-2); }
.form-meta strong { color: var(--bronze); font-size: 14px; font-weight: 700; }
.form-hint { font-size: 14.5px; color: var(--ink-3); margin-top: 16px; }
.qs { margin: 4px 0 20px; }
.q { border: 0; margin: 0; padding: 20px 0 18px; min-width: 0; }
.q + .q { border-top: 1px solid var(--line); }
.q legend, .q-text label { display: block; padding: 0; margin-bottom: 12px; font-size: 16.5px; font-weight: 550; line-height: 1.45; color: var(--ink); float: left; width: 100%; }
.q-text label { float: none; }
.q legend + * { clear: both; }

.stars { display: flex; align-items: center; gap: 2px; margin-left: -6px; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.stars label { width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer; border-radius: 12px; touch-action: manipulation; }
.stars svg { width: 34px; height: 34px; fill: transparent; stroke: var(--line-2); stroke-width: 1.4; stroke-linejoin: round; transition: fill .18s, stroke .18s, transform .18s var(--ease); }
.stars label:active svg { transform: scale(.88); }
.stars input:focus-visible + label { box-shadow: var(--ring); }
.stars-val { margin-left: 10px; font-size: 14.5px; font-weight: 700; color: var(--bronze); min-width: 7em; }
@media (hover: hover) {
  .stars:has(label:hover) svg { fill: transparent; stroke: var(--line-2); }
  .stars label:hover svg, .stars label:has(~ label:hover) svg { fill: var(--gold); stroke: #b8925a; }
}
.stars:has(input[value="1"]:checked) label:nth-of-type(-n+1) svg,
.stars:has(input[value="2"]:checked) label:nth-of-type(-n+2) svg,
.stars:has(input[value="3"]:checked) label:nth-of-type(-n+3) svg,
.stars:has(input[value="4"]:checked) label:nth-of-type(-n+4) svg,
.stars:has(input[value="5"]:checked) label:nth-of-type(-n+5) svg { fill: var(--bronze); stroke: var(--bronze); }
.stars input:checked + label svg { animation: starPop .42s var(--ease); }
@keyframes starPop { 0% { transform: scale(.7); } 60% { transform: scale(1.14); } 100% { transform: scale(1); } }
.has-err .stars svg { stroke: #d49a90; }

/* ---------- Status tunggu / selesai ---------- */
.state h1 { font-size: 22px; font-weight: 750; margin-top: 14px; }
.state .lede { margin-bottom: 4px; }
.state-mark { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-tint); color: var(--ok); }
.state-mark .ic { width: 26px; height: 26px; stroke-width: 2.4; }
.state-mark.state-wait { background: var(--bronze-tint); color: var(--bronze); }
.state .fine { text-align: left; }
.next { margin-top: 18px; padding: 16px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.next-label { font-size: 13.5px; font-weight: 650; color: var(--ink-3); }
.next-title { font-size: 18px; font-weight: 750; margin-top: 2px; }
.next-sub { color: var(--ink-2); font-size: 15px; }
.next-time { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 650; color: var(--bronze); font-size: 15px; }
.next-time .ic { width: 17px; height: 17px; }

.ii-card { display: flex; gap: 16px; align-items: flex-start; }
.ii-card h2 { font-size: 18px; font-weight: 750; margin: 2px 0 4px; }
.ii-card p { color: var(--ink-2); margin-bottom: 14px; }
.ii-card.is-done p { margin-bottom: 0; }
.ii-icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--bronze-tint); color: var(--bronze); }
.ii-card.is-done .ii-icon { background: var(--ok-tint); color: var(--ok); }

.foot { text-align: center; font-size: 14px; color: var(--ink-3); padding: 16px 0 8px; display: grid; gap: 4px; justify-items: center; }

/* ---------- Investasi Iman ---------- */
.ident { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0 0; padding: 14px 16px; background: var(--paper); border-radius: 12px; }
.ident dt { font-size: 13px; font-weight: 650; color: var(--ink-3); }
.ident dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.pledge { margin: 20px 0 4px; font-size: 17px; font-weight: 600; line-height: 1.45; color: var(--bronze-3); }
.ii-sec { padding: 22px 0 20px; border-top: 1px solid var(--line); margin-top: 18px; }
.pledge + .ii-sec { margin-top: 14px; }
.ii-sec h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 750; margin-bottom: 12px; }
.sec-hint { color: var(--ink-3); font-size: 15px; margin: -4px 0 14px; }
.money-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.money-grid .field { margin: 0; }
.money { display: flex; align-items: center; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-sm); transition: border-color .15s, box-shadow .15s; }
.money:focus-within { border-color: var(--bronze); box-shadow: var(--ring); }
.money span { padding-left: 14px; color: var(--ink-3); font-weight: 600; }
.money input { border: 0 !important; box-shadow: none !important; padding-left: 8px !important; font-weight: 650; font-variant-numeric: tabular-nums; background: transparent !important; }
.rek { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 14px 16px; background: var(--paper); border-radius: 12px; }
.rek-label { font-size: 13px; font-weight: 650; color: var(--ink-3); }
.rek-no { font-size: 19px; font-weight: 800; color: var(--bronze-3); letter-spacing: .01em; }
.rek-name { font-size: 14px; color: var(--ink-2); }
.stepper-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; overflow: hidden; }
.stepper button { width: 50px; border: 0; background: var(--paper); color: var(--bronze); cursor: pointer; display: grid; place-items: center; }
.stepper button:hover { background: var(--bronze-tint); }
.stepper input { width: 72px !important; min-height: 50px !important; border: 0 !important; border-radius: 0 !important; text-align: center; font-size: 20px !important; font-weight: 750; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper-unit { font-weight: 600; color: var(--ink-2); margin-left: -6px; }
.stepper-total { display: flex; flex-direction: column; margin-left: auto; text-align: right; }
.stepper-total span { font-size: 14px; color: var(--ink-3); }
.stepper-total output { font-size: 20px; font-weight: 800; color: var(--bronze); font-variant-numeric: tabular-nums; }
.ajak { display: grid; gap: 8px; margin-bottom: 12px; }
.ajak-head, .ajak-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 8px; }
.ajak-head span { font-size: 13.5px; font-weight: 650; color: var(--ink-3); }
.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.skill { position: relative; }
.skill input[type=checkbox] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.skill label {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 12px;
  background: #fff; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer;
  font-weight: 550; line-height: 1.3; transition: background .15s, border-color .15s;
}
.skill .box { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex: none; color: transparent; background: #fff; transition: background .15s, border-color .15s; }
.skill .box .ic { width: 15px; height: 15px; stroke-width: 3; }
.skill input:checked + label { background: var(--bronze-tint); border-color: var(--bronze); }
.skill input:checked + label .box { background: var(--bronze); border-color: var(--bronze); color: #fff; }
.skill input:focus-visible + label { box-shadow: var(--ring); }
.skill-detail { margin-top: 6px; min-height: 44px !important; font-size: 15px !important; }

/* ---------- Staf: fasil dan admin ---------- */
.page-staff .topbar { border-bottom: 1px solid var(--line); max-width: none; }
.tabs {
  display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none;
  padding: 0 12px; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a { white-space: nowrap; padding: 14px 12px; font-size: 15px; font-weight: 650; color: var(--ink-2); text-decoration: none; box-shadow: inset 0 -2px 0 transparent; }
.tabs a:hover { color: var(--bronze); }
.tabs a[aria-current] { color: var(--bronze); box-shadow: inset 0 -2px 0 var(--bronze); }
.tabs-out { margin-left: auto; }
.page-admin .wrap { padding-top: 24px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; margin-bottom: 18px; }
.page-head > .search, .page-head > .exports { margin-left: auto; }
.page-head h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.page-head .lede { flex-basis: 100%; max-width: 72ch; margin-top: 0; }
.count { font-size: 14px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--bronze-tint); color: var(--bronze); letter-spacing: 0; }
.exports { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.page-head .exports { margin-top: 0; }
.search { display: flex; gap: 8px; }
.search input { min-height: 40px !important; width: 260px !important; }

.form-list { display: grid; gap: 12px; }
.form-row { margin: 0; padding: 18px 20px; }
.fr-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 14px; }
.fr-head h2 { font-size: 18px; font-weight: 750; }
.fr-count { margin-left: auto; color: var(--ink-2); font-size: 14.5px; }
.fr-count strong { font-size: 17px; color: var(--ink); }
.fr-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; align-items: end; }
.fr-fields .field { margin: 0; }
@media (min-width: 900px) {
  .form-row .fr-fields { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .form-row .fr-fields > * { grid-column: span 2; }
  .form-row .fr-fields > .field:nth-child(-n+2) { grid-column: span 3; }
  .form-row.fr-k .fr-fields > * { grid-column: span 2; }
}
.fr-fields .btn { min-height: 48px; }
.badge { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.b-open { background: var(--ok-tint); color: var(--ok); }
.b-wait { background: var(--paper-2); color: var(--ink-2); }
.b-closed { background: var(--due-tint); color: var(--due); }

.tbl-wrap { overflow-x: auto; }
.panel.tbl-wrap { padding: 6px 0; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; }
.data th { text-align: left; font-size: 13px; font-weight: 700; color: var(--ink-3); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data tr:last-child td { border-bottom: 0; }
.data .num { text-align: right; }
.data td.due { color: var(--due); font-weight: 750; }
.data td a { font-weight: 600; }
.data .ic { width: 17px; height: 17px; color: var(--ok); }
.data input { min-height: 40px !important; }
.in-sm { width: 76px !important; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; flex-basis: 100%; }
.chips a { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.chips a:hover { border-color: var(--bronze); color: var(--bronze); }
.chips a[aria-current] { background: var(--bronze); border-color: var(--bronze); color: #fffaf1; }

.avg-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin: 18px 0 8px; }
.avg { padding: 14px 16px; border-radius: 12px; background: var(--paper); }
.avg-q { font-size: 15px; font-weight: 550; min-height: 2.9em; }
.avg-v { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.avg-v strong { font-size: 24px; font-weight: 800; color: var(--bronze-3); }
.bar { flex: 1; height: 8px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--bronze); border-radius: 99px; }
.avg-d { display: flex; gap: 12px; font-size: 13px; color: var(--ink-3); margin-top: 6px; font-variant-numeric: tabular-nums; }
.avg-d b { color: var(--ink-2); }
.txt-q { font-size: 16px; font-weight: 750; margin: 26px 0 6px; }
.txt-list { list-style: none; margin: 0; padding: 0; }
.txt-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.txt-list span { display: block; font-size: 13.5px; color: var(--ink-3); margin-top: 4px; }

.totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.totals > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); }
.totals p { font-size: 14px; font-weight: 650; color: var(--ink-3); }
.totals strong { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--bronze-3); margin: 2px 0; }
.totals span { font-size: 13.5px; color: var(--ink-3); }
.bidang { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px 20px; }
.bd-h { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.bd-h strong { font-size: 13px; padding: 1px 8px; border-radius: 99px; background: var(--bronze-tint); color: var(--bronze); }
.bd-n { font-size: 14.5px; color: var(--ink-2); margin-top: 2px; }

details.ans { border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; margin: 10px 0; }
details.ans summary { cursor: pointer; display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; min-height: 48px; }
details.ans summary span { color: var(--ink-3); font-size: 14px; }
.ans-list { margin: 0 0 12px; }
.ans-list dt { font-size: 13.5px; color: var(--ink-3); }
.ans-list dd { margin: 2px 0 12px; font-weight: 550; }
details.ans form { padding-bottom: 14px; }

.link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.link-grid textarea { font-size: 15px; background: var(--paper); }
.link-grid h2 + textarea { margin-bottom: 0; }
.link-grid .exports + h2 { margin-top: 24px; }
.big-link { font-size: 20px; font-weight: 800; color: var(--bronze); overflow-wrap: anywhere; margin-bottom: 16px; }
.plain { margin: 0; padding-left: 18px; display: grid; gap: 6px; }

.qr { width: 184px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.qr canvas { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.qr-lg { width: 280px; max-width: 100%; }

.group-pick { display: flex; align-items: center; gap: 12px; margin: 20px 0 16px; }
.group-pick label { margin: 0; }
.group-pick select { max-width: 340px; }
.fasil-title { font-size: 22px; font-weight: 800; }
.fasil-sum { margin: 10px 0 16px; }
.sum-big { font-size: 17px; color: var(--ink-2); }
.sum-big strong { font-size: 30px; font-weight: 800; color: var(--bronze); margin-right: 2px; }
.sum-sub { font-size: 15px; color: var(--ink-3); margin-top: 2px; }
table.grid { width: 100%; border-collapse: collapse; font-size: 15px; }
.grid th, .grid td { padding: 10px 2px; border-bottom: 1px solid var(--line); text-align: center; }
.grid thead th { font-size: 13px; font-weight: 750; color: var(--ink-3); }
.grid .c-name { text-align: left; padding-left: 8px; font-weight: 550; min-width: 120px; }
.grid th:not(.c-name), .grid td { width: 27px; }
.grid tbody .c-name { padding-top: 4px; padding-bottom: 4px; }
.nm { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 44px; }
.grid .c-ii { border-left: 1px solid var(--line); }
.grid thead .c-ii .ic { width: 16px; height: 16px; vertical-align: middle; }
.lg-i .ic { width: 15px; height: 15px; }
.grid .row-due th, .grid .row-due td { background: #fbf0ec; }
.s-done .ic { width: 18px; height: 18px; color: var(--ok); stroke-width: 3; vertical-align: middle; }
.s-due i, .lg-due i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--due); vertical-align: middle; }
.s-lock::before, .lg-lock::before { content: ""; display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 1.5px dashed var(--line-2); vertical-align: middle; }
.wa { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--ok); flex: none; }
.wa:hover { background: var(--ok-tint); color: var(--ok); }
.legend { font-size: 13.5px; color: var(--ink-3); margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.lg-i { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; margin-right: 12px; }
.lg { display: inline-flex; }
.lg-done .ic { width: 15px; height: 15px; color: var(--ok); stroke-width: 3; }
.share-grid { display: grid; grid-template-columns: 184px 1fr; gap: 20px; align-items: start; }
.share-text textarea { font-size: 14.5px; background: var(--paper); }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

@media (max-width: 560px) {
  .panel { padding: 20px 16px; }
  .form-num { min-width: 52px; padding-right: 14px; }
  .form-num span { font-size: 46px; }
  .form-title h1 { font-size: 21px; }
  .ident { grid-template-columns: 1fr; gap: 8px; }
  .money-grid { grid-template-columns: 1fr; }
  .share-grid { grid-template-columns: 1fr; }
  .share-grid .qr { margin: 0 auto; }
  .totals { grid-template-columns: 1fr; }
  .search input { width: 100% !important; }
  .search { flex: 1; }
  .group-pick { flex-direction: column; align-items: stretch; gap: 6px; }
  .stars label { width: 46px; height: 48px; }
  .stars svg { width: 32px; height: 32px; }
  .stars-val { flex-basis: 100%; margin: 2px 0 0 6px; }
  .stars-val:empty { display: none; }
  .stars { flex-wrap: wrap; }
}
@media (max-width: 360px) {
  .skills { grid-template-columns: 1fr; }
  .stars label { width: 42px; }
}

/* ---------- Layar live (LED) ---------- */
body.live { background: #1c140c; color: var(--paper); overflow: hidden; }
.lv {
  height: 100vh; height: 100dvh; padding: 2.6vw 3vw; display: grid; gap: 2vw 2.4vw;
  grid-template-columns: 1fr 1.25fr 16vw;
  grid-template-rows: auto auto minmax(0, 1fr);
  grid-template-areas: "head head head" "totals totals qr" "bidang feed feed";
  background: #1c140c;
}
.lv-head { grid-area: head; display: flex; align-items: center; gap: 2vw; }
.lv-logo { width: 9vw; filter: brightness(2.1) saturate(.75); }
.lv-head h1 { font-size: 3.2vw; font-weight: 800; letter-spacing: -.02em; }
.lv-head p { font-size: 1.2vw; color: rgba(244, 238, 227, .7); }
.lv-conn { margin-left: auto; display: flex; align-items: center; gap: .6vw; font-size: 1vw; color: rgba(244, 238, 227, .6); align-self: flex-start; }
.lv-conn i { width: .7vw; height: .7vw; border-radius: 50%; background: #8b7b66; }
.lv-conn.ok i { background: #7fc28e; box-shadow: 0 0 0 .3vw rgba(127, 194, 142, .18); }
.lv-totals { grid-area: totals; display: grid; grid-template-columns: 2.4fr 1fr 1fr 1fr; gap: 1.2vw; }
.lv-t { padding: 1.4vw 1.6vw; border-radius: 1vw; background: rgba(244, 238, 227, .05); border: 1px solid rgba(244, 238, 227, .09); }
.lv-t p { font-size: 1.4vw; font-weight: 650; color: rgba(244, 238, 227, .8); }
.lv-t strong { display: block; font-size: 3.2vw; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin-top: .3vw; font-variant-numeric: tabular-nums; }
.lv-t strong small { font-size: 1.3vw; font-weight: 650; color: rgba(244, 238, 227, .6); letter-spacing: 0; }
.lv-t-main { background: rgba(217, 182, 124, .13); border-color: rgba(217, 182, 124, .32); }
.lv-t-main strong { font-size: 3.7vw; color: var(--gold); white-space: nowrap; }
.lv-sub { font-size: 1.1vw; color: rgba(244, 238, 227, .6); font-variant-numeric: tabular-nums; }
.lv h2 { font-size: 1.6vw; font-weight: 700; color: rgba(244, 238, 227, .66); margin-bottom: 1vw; }
.lv-bidang { grid-area: bidang; min-height: 0; }
.lv-bidang ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .6vw; }
.lv-bidang li { display: grid; grid-template-columns: 15vw 1fr 3vw; align-items: center; gap: 1vw; font-size: 1.5vw; color: rgba(244, 238, 227, .9); line-height: 1.2; }
.b-bar { height: .75vw; border-radius: 99px; background: rgba(244, 238, 227, .08); overflow: hidden; }
.b-bar i { display: block; height: 100%; background: var(--gold); border-radius: 99px; transform-origin: left; transition: transform .9s var(--ease); }
.b-n { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.lv-feed { grid-area: feed; min-height: 0; overflow: hidden; -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }
.lv-feed ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9vw; }
.lv-feed li { padding: .9vw 1.2vw; border-radius: .8vw; background: rgba(244, 238, 227, .06); }
.lv-feed strong { display: block; font-size: 2vw; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-feed span { display: block; font-size: 1.5vw; color: rgba(244, 238, 227, .82); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-feed li.new { animation: feedIn 1.4s var(--ease); }
@keyframes feedIn {
  0% { opacity: 0; transform: translateY(1.2vw); filter: blur(6px); background: rgba(217, 182, 124, .45); }
  45% { opacity: 1; transform: none; filter: blur(0); background: rgba(217, 182, 124, .35); }
  100% { background: rgba(244, 238, 227, .06); }
}
.bump { animation: bump .7s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.06); color: #fff; } 100% { transform: scale(1); } }
.lv-qr { grid-area: qr; align-self: start; text-align: center; }
.lv-qr .qr { width: 100%; border: 0; border-radius: 1vw; background: var(--paper); }
.lv-qr p { font-size: 1.5vw; color: rgba(244, 238, 227, .85); margin-top: 1vw; line-height: 1.4; }
.lv-qr strong { color: var(--paper); overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Multi-event: daftar event, pilihan jawaban, builder pertanyaan ---------- */
.event-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.event-list a {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; min-height: 56px;
  background: #fff; border: 1px solid var(--line-2); border-radius: 12px; text-decoration: none; color: var(--ink);
  transition: border-color .15s, background .15s;
}
.event-list a:hover { border-color: var(--bronze); background: var(--bronze-tint); }
.event-list a:focus-visible { box-shadow: var(--ring); outline: 0; }
.event-list strong { font-weight: 700; }
.event-list span { font-size: 14.5px; color: var(--ink-3); }
.event-list span:empty { display: none; }

.q-sub { display: block; font-size: 14px; font-weight: 500; color: var(--ink-3); margin-top: 2px; }
.opts { display: grid; gap: 8px; margin-top: 10px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt label {
  display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 10px 14px;
  background: #fff; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer;
  font-weight: 550; line-height: 1.35; transition: background .15s, border-color .15s;
}
.opt .box { width: 22px; height: 22px; border-radius: 999px; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex: none; color: transparent; background: #fff; transition: background .15s, border-color .15s; }
.opt-multi .box { border-radius: 7px; }
.opt .box .ic { width: 15px; height: 15px; stroke-width: 3; }
.opt input:checked + label { background: var(--bronze-tint); border-color: var(--bronze); }
.opt input:checked + label .box { background: var(--bronze); border-color: var(--bronze); color: #fff; }
.opt input:focus-visible + label { box-shadow: var(--ring); }
.opt-inline { margin-bottom: 16px; }
.opt-inline label { display: inline-flex; }

.grid-2 { display: grid; gap: 0 16px; }
.grid-edit { display: grid; gap: 0 16px; }
.field-hint { font-size: 13.5px; color: var(--ink-3); margin-top: 6px; line-height: 1.4; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-edit { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .span-2 { grid-column: span 2; }
}
.sec-gap { margin-top: 28px; }
.fine.left { text-align: left; }
.big-link.sm { font-size: 16px; margin-bottom: 0; }
.new-event { margin-top: 28px; }
.new-event > .btn { margin-top: 4px; }
.form-editor .fr-head h1 { font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.fr-title { color: var(--ink); font-weight: 600; margin: -6px 0 14px; }
.fr-title span { color: var(--ink-3); font-weight: 500; }
.b-auto { background: var(--bronze-tint); color: var(--bronze); }
.editor-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.danger-zone { margin-top: 16px; display: flex; justify-content: flex-end; }
.opt-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(80px, 38%) 32px; align-items: center; gap: 10px; font-size: 14.5px; margin-top: 6px; }
.opt-row b { text-align: right; font-variant-numeric: tabular-nums; }

.qb { margin-top: 24px; }
.qb > h2 { font-size: 18px; font-weight: 750; margin-bottom: 12px; }
.qb-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.qb-item { background: #fff; border: 1px solid var(--line-2); border-radius: 12px; padding: 12px; display: grid; gap: 8px; }
.qb-item:focus-within { border-color: var(--bronze); }
.qb-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.qb-no { width: 28px; height: 28px; border-radius: 999px; background: var(--bronze-tint); color: var(--bronze); font-weight: 750; font-size: 14px; display: grid; place-items: center; flex: none; font-variant-numeric: tabular-nums; }
.qb-type { width: auto !important; min-height: 40px !important; font-size: 15px !important; }
.qb-req { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; min-height: 40px; }
.qb-req input { width: 18px; height: 18px; margin: 0; }
.qb-tools { margin-left: auto; display: flex; gap: 4px; }
.qb-btn {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--card);
  color: var(--ink-2); font: 700 18px/1 inherit; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.qb-btn:hover:not(:disabled) { border-color: var(--bronze); color: var(--bronze); }
.qb-btn[data-mv="x"]:hover { border-color: var(--due); color: var(--due); background: var(--due-tint); }
.qb-btn:disabled { opacity: .35; cursor: default; }
.qb-btn:focus-visible { box-shadow: var(--ring); outline: 0; }
.qb-label { min-height: 0 !important; font-weight: 600; }
.qb-opsi-box label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-3); margin-bottom: 4px; }
.qb-opsi-box[hidden] { display: none; }
.new-event > .lede { margin-bottom: 20px; }
@media (max-width: 480px) { .qb-btn { width: 36px; height: 36px; } .qb-type { max-width: 150px; } }
.shift { display: grid; gap: 4px; }
.shift label { font-size: 13.5px; font-weight: 650; color: var(--ink-3); }
.shift-row { display: flex; gap: 8px; }
.shift select { width: auto !important; min-height: 40px !important; font-size: 15px !important; }
.ii-anon { margin: 8px 0 20px; }
.ii-anon label { align-items: flex-start; }
.ii-anon label > span:last-child { display: grid; gap: 2px; }
.ii-anon small { font-size: 14px; font-weight: 450; color: var(--ink-3); }
.qb-type:disabled { opacity: .7; cursor: not-allowed; }
.page-head > .shift { margin-left: auto; }
