:root {
  --ink: #16213a; --ink2: #26335a; --paper: #f6f3ea; --card: #fff;
  --line: #e5dfd0; --line2: #f0ebdd; --text: #1d2438; --muted: #667086;
  --gold: #a97a22; --gold2: #d8a33f; --goldbg: #f8edd3;
  --ok: #25744d; --okbg: #e2f3ea; --warn: #86560a; --warnbg: #fcefcf;
  --danger: #b2362c; --dangerbg: #fbe5e2; --info: #274b8f; --infobg: #e4ebf8;
  --r: 12px;
  --shadow: 0 1px 2px rgba(22, 33, 58, .06), 0 8px 24px rgba(22, 33, 58, .06);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 var(--sans); color: var(--text); background: var(--paper); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0; color: var(--ink); }
h1 { font-size: 28px; } h2 { font-size: 20px; } h3 { font-size: 17px; }
p { margin: 0 0 .6em; }
a { color: var(--info); }
.muted { color: var(--muted); } .small { font-size: 13px; } .center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 3px solid var(--gold2); outline-offset: 2px; border-radius: 6px; }

/* ---------- tombol & form ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); font: 600 14px/1.2 var(--sans); cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { background: #faf8f2; border-color: #d6cfbc; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink2); border-color: var(--ink2); }
.btn-gold { background: var(--gold2); border-color: var(--gold2); color: var(--ink); }
.btn-gold:hover { background: #e2b04f; border-color: #e2b04f; }
.btn-danger { color: var(--danger); border-color: #ecc3be; }
.btn-danger:hover { background: var(--dangerbg); border-color: #e3a8a1; }
.btn-danger.solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger.solid:hover { background: #983027; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-sm { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 13px 22px; font-size: 16px; }
.btn-block { width: 100%; }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > label, .lbl { font-weight: 600; font-size: 13px; color: var(--ink2); }
.field .hint { font-size: 12.5px; color: var(--muted); }
input[type=text], input[type=password], input[type=date], input[type=datetime-local], input[type=search], input[type=file], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #d9d2bf; border-radius: 10px; background: #fff; color: var(--text); font: inherit; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(216, 163, 63, .45); border-color: var(--gold2); }
input[type=checkbox], input[type=radio] { accent-color: var(--ink); width: 17px; height: 17px; margin: 0; }
.form-error { color: var(--danger); background: var(--dangerbg); padding: 9px 12px; border-radius: 10px; font-size: 14px; margin-bottom: 12px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row.between { justify-content: space-between; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }

/* ---------- komponen umum ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; }
.card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 700; background: var(--line2); color: var(--muted); white-space: nowrap; }
.badge.ok { background: var(--okbg); color: var(--ok); } .badge.warn { background: var(--warnbg); color: var(--warn); }
.badge.danger { background: var(--dangerbg); color: var(--danger); } .badge.info { background: var(--infobg); color: var(--info); }
.badge.gold { background: var(--goldbg); color: var(--gold); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.chip { display: inline-block; padding: 2px 9px; border-radius: 99px; background: var(--goldbg); color: #7a5817; font-size: 12.5px; font-weight: 600; margin: 2px 4px 2px 0; }
.chip.plain { background: var(--line2); color: var(--ink2); }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty h3 { color: var(--ink); margin-bottom: 6px; }
.notice { padding: 12px 14px; border-radius: 10px; background: var(--warnbg); color: var(--warn); font-size: 14px; margin-bottom: 16px; }
.notice.info { background: var(--infobg); color: var(--info); }
.notice a { color: inherit; font-weight: 700; }
.bar { height: 9px; background: var(--line2); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold2), var(--gold)); border-radius: 99px; transition: width .5s ease; }
.bar.ok > i { background: linear-gradient(90deg, #4aa377, var(--ok)); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: #fbf9f3; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px 14px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fdfbf6; }
td.actions, th.actions { text-align: right; white-space: nowrap; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .grow { flex: 1 1 220px; min-width: 160px; }
.toolbar input, .toolbar select { width: auto; }
.toolbar .grow input { width: 100%; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 4px 0; color: var(--muted); font-size: 13px; flex-wrap: wrap; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head p { color: var(--muted); margin: 6px 0 0; max-width: 62ch; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.hero { position: relative; overflow: hidden; background: var(--ink); color: #eef1fa; padding: 56px clamp(28px, 6vw, 80px); display: flex; flex-direction: column; justify-content: center; }
.hero::before { content: ""; position: absolute; inset: auto -20% -35% auto; width: 90%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 163, 63, .55), rgba(216, 163, 63, 0) 65%); }
.hero::after { content: ""; position: absolute; inset: -30% auto auto -25%; width: 70%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(216, 163, 63, .25); box-shadow: 0 0 0 40px rgba(216, 163, 63, .05), 0 0 0 90px rgba(216, 163, 63, .03); }
.hero > * { position: relative; z-index: 1; }
.hero .trophy { width: 64px; height: 64px; stroke: var(--gold2); stroke-width: 1.4; fill: none; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 22px; }
.hero h1 { color: #fff; font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -.01em; }
.hero p { color: #b9c1d9; font-size: 17px; max-width: 34ch; margin-top: 14px; }
.hero .when { margin-top: 28px; padding: 14px 16px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; background: rgba(255, 255, 255, .06); max-width: 380px; font-size: 14px; }
.hero .when b { color: #fff; }
.login-side { display: grid; place-items: center; padding: 32px 20px; }
.login-card { width: 100%; max-width: 400px; }
.login-card h2 { margin-bottom: 4px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--line2); border-radius: 12px; margin: 18px 0 20px; }
.tabs button { border: 0; background: transparent; padding: 9px; border-radius: 9px; font: 600 14px var(--sans); color: var(--muted); cursor: pointer; }
.tabs button[aria-selected=true] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(22, 33, 58, .15); }
@media (max-width: 820px) {
  .login { grid-template-columns: 1fr; }
  .hero { padding: 36px 24px 40px; }
  .hero .trophy { width: 44px; height: 44px; margin-bottom: 12px; }
  .hero p { font-size: 15px; }
  .hero .when { margin-top: 18px; }
}

/* ---------- shell admin ---------- */
.shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--ink); color: #cdd3e6; padding: 22px 14px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; color: #fff; font: 700 18px var(--serif); }
.brand svg { width: 26px; height: 26px; stroke: var(--gold2); }
.side nav { display: grid; gap: 2px; }
.side .nav { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #cdd3e6; text-decoration: none; font-weight: 600; font-size: 14.5px; }
.side .nav:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.side .nav[aria-current=page] { background: rgba(216, 163, 63, .16); color: #fff; box-shadow: inset 3px 0 0 var(--gold2); }
.side .spacer { flex: 1; }
.side .who { padding: 12px; font-size: 13px; color: #98a1bf; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 8px; }
.side button.nav { background: none; border: 0; cursor: pointer; width: 100%; text-align: left; font-family: var(--sans); }
.main { padding: 30px clamp(16px, 4vw, 48px) 80px; max-width: 1240px; width: 100%; }
@media (max-width: 880px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; align-items: center; overflow-x: auto; padding: 10px; gap: 4px; }
  .brand { padding: 0 10px 0 4px; white-space: nowrap; }
  .side nav { display: flex; gap: 2px; }
  .side .nav { white-space: nowrap; padding: 9px 11px; }
  .side .nav[aria-current=page] { box-shadow: inset 0 -3px 0 var(--gold2); }
  .side .spacer, .side .who { display: none; }
  .side .logout { margin-left: auto; width: auto; }
}

/* ---------- dashboard ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); }
.stat .k { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.stat .v { font: 700 34px/1.1 var(--serif); color: var(--ink); margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat .s { font-size: 13px; color: var(--muted); margin-top: 2px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; }
.steps .tick { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex: none; margin-top: 1px; color: #fff; }
.steps li.done .tick { background: var(--ok); border-color: var(--ok); }
.steps li.done .tick svg { width: 14px; height: 14px; stroke-width: 3; }
.steps li:not(.done) .tick svg { display: none; }
.steps a { font-weight: 700; }

/* ---------- kategori & aturan ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.cards .card + .card { margin-top: 0; }
.cat-card { display: flex; flex-direction: column; gap: 10px; }
.cat-card .chips { min-height: 28px; flex: 1; }
.cat-card .foot { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
.pick-list { max-height: 340px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 4px; margin-top: 8px; }
.pick { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.pick:hover { background: #faf6ea; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px 10px; margin-top: 10px; }
.seg { display: inline-grid; grid-auto-flow: column; padding: 3px; background: var(--line2); border-radius: 10px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 6px 14px; border-radius: 8px; font-weight: 600; font-size: 13.5px; color: var(--muted); }
.seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(22, 33, 58, .15); }
.seg input:focus-visible + span { outline: 3px solid var(--gold2); }
.rule-block + .rule-block { margin-top: 14px; }
.savebar { position: sticky; bottom: 14px; margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: space-between; align-items: center;
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 14px; box-shadow: 0 10px 30px rgba(22, 33, 58, .3); }
.savebar .btn-ghost { color: #fff; }
.savebar .btn[disabled] { opacity: .45; }
.tabs-card + .savebar { margin: 14px 0 0; }

/* ---------- jadwal ---------- */
.mode-opts { display: grid; gap: 10px; margin-bottom: 18px; }
.mode-opt { display: flex; gap: 12px; padding: 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; }
.mode-opt:has(input:checked) { border-color: var(--gold2); background: #fffaf0; box-shadow: 0 0 0 3px rgba(216, 163, 63, .2); }
.mode-opt b { display: block; color: var(--ink); }
.mode-opt span { color: var(--muted); font-size: 13.5px; }

/* ---------- hasil ---------- */
.tabs-card { padding: 0; overflow: hidden; }
.rtabs { display: flex; gap: 4px; overflow-x: auto; padding: 10px 12px 0; border-bottom: 1px solid var(--line); background: #fbf9f3; scrollbar-width: thin; }
.rtab { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 0; border-bottom: 3px solid transparent; background: transparent;
  font: 600 14px var(--sans); color: var(--muted); cursor: pointer; border-radius: 10px 10px 0 0; white-space: nowrap; }
.rtab:hover { color: var(--ink); background: rgba(22, 33, 58, .04); }
.rtab[aria-selected=true] { color: var(--ink); background: #fff; border-bottom-color: var(--gold2); }
.rtab .cnt { min-width: 24px; padding: 1px 7px; border-radius: 99px; background: var(--line2); color: var(--ink2); font-size: 12px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.rtab[aria-selected=true] .cnt { background: var(--goldbg); color: #7a5817; }
.rtabs.plain { background: transparent; padding: 0; margin-bottom: 18px; gap: 2px; }
.rtabs.plain .rtab { font-size: 15px; padding: 11px 18px; }
.rtabs.plain .rtab[aria-selected=true] { background: transparent; }
.rtab .unsaved { width: 8px; height: 8px; border-radius: 50%; background: var(--gold2); box-shadow: 0 0 0 2px #fff; }
.rtab .unsaved[hidden] { display: none; }
.nom-rule { padding: 16px 0; border-top: 1px solid var(--line2); }
.nom-rule:first-of-type { border-top: 0; }
.cls-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 2px 8px; }
.cls-grid .pick { padding: 6px 8px; }
.rpanel { padding: 20px; }
.rpanel[hidden] { display: none; }
.res-row { display: grid; grid-template-columns: minmax(120px, 260px) 1fr 130px; gap: 14px; align-items: center; padding: 8px 0; }
.res-row .nm { font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.res-row .ct { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.res-row .ct small { display: block; font-weight: 500; color: var(--muted); }
.res-row.lead .bar > i { background: linear-gradient(90deg, #e8b951, var(--gold)); }
.res-row:not(.lead) .bar > i { background: #9aa4c2; }
.rank { width: 24px; height: 24px; border-radius: 50%; background: var(--line2); color: var(--ink2); display: inline-grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; }
.lead .rank { background: var(--gold2); color: var(--ink); }
@media (max-width: 640px) { .res-row { grid-template-columns: 1fr 70px; } .res-row .bar { grid-column: 1 / -1; order: 3; } }

/* ---------- dialog ---------- */
dialog { border: 0; border-radius: 18px; padding: 0; width: min(560px, 94vw); max-height: 92vh; box-shadow: 0 24px 70px rgba(22, 33, 58, .4); color: var(--text); background: #fff; }
dialog.wide { width: min(720px, 94vw); }
dialog::backdrop { background: rgba(22, 33, 58, .55); backdrop-filter: blur(2px); }
.dlg { display: flex; flex-direction: column; max-height: 92vh; }
.dlg-head { padding: 20px 22px 4px; }
.dlg-body { padding: 12px 22px 8px; overflow: auto; }
.dlg-foot { padding: 14px 22px 20px; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.err-list { max-height: 200px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 13.5px; background: #fffaf9; }
.err-list div { padding: 3px 0; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin: 6px 0 14px; }
.kv div { background: var(--line2); border-radius: 10px; padding: 10px 12px; }
.kv b { display: block; font: 700 24px var(--serif); color: var(--ink); }

/* ---------- toast ---------- */
#toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 1000; width: min(440px, 92vw); pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: 0 10px 30px rgba(22, 33, 58, .35); font-weight: 600; font-size: 14px; animation: rise .25s ease; }
.toast.err { background: var(--danger); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* ---------- peserta: surat suara ---------- */
.vtop { background: var(--ink); color: #fff; }
.vtop-in { max-width: 820px; margin: 0 auto; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vtop .brand { padding: 0; font-size: 17px; }
.vtop .who { text-align: right; font-size: 13px; color: #b9c1d9; line-height: 1.3; }
.vtop .who b { color: #fff; display: block; font-size: 14px; }
.ballot { max-width: 820px; margin: 0 auto; padding: 26px 16px 140px; }
.ballot-head { margin-bottom: 20px; }
.ballot-head h1 { font-size: 30px; }
.vcat { margin-bottom: 18px; padding: 0; overflow: hidden; }
.vcat .vhead { padding: 18px 20px 12px; display: flex; gap: 14px; }
.vcat .num { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--gold2); font: 700 16px var(--serif); display: grid; place-items: center; flex: none; }
.vcat .vhead { align-items: center; padding-bottom: 8px; }
.vcat .vdesc { margin: 0 20px 14px; padding: 10px 14px; background: #fbf7ea; border-left: 3px solid var(--gold2); border-radius: 8px; color: var(--ink2); font-size: 14.5px; line-height: 1.55; }
.pickbox { padding: 6px 20px 20px; }
.vsel { width: 100%; min-height: 52px; padding: 12px 44px 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--muted); font: 600 16px var(--sans); cursor: pointer;
  appearance: none; -webkit-appearance: none; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316213a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.vsel:hover { border-color: #cfc5a8; }
.vsel:focus-visible { outline: 3px solid var(--gold2); outline-offset: 2px; }
.vsel.has-value { color: var(--ink); border-color: var(--gold2); background-color: #fff9ea; box-shadow: 0 0 0 3px rgba(216, 163, 63, .22); }
.vsel option { color: var(--text); font-weight: 500; }
.voted { margin: 4px 20px 20px; padding: 14px 16px; border-radius: 12px; background: var(--okbg); color: var(--ok); display: flex; align-items: center; gap: 12px; font-weight: 600; }
.voted b { color: var(--ink); }
.vbar { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); z-index: 20; }
.vbar-in { max-width: 820px; margin: 0 auto; display: flex; gap: 14px; align-items: center; justify-content: space-between; }
.vbar .bar { width: 160px; } .vbar .txt { font-weight: 700; font-size: 14px; }
.status-card { text-align: center; padding: 44px 24px; }
.status-card .ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; background: var(--goldbg); color: var(--gold); }
.status-card .ico svg { width: 28px; height: 28px; }
.status-card.ok .ico { background: var(--okbg); color: var(--ok); }
.recap { text-align: left; max-width: 480px; margin: 22px auto 0; display: grid; gap: 8px; }
.recap div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 14px; background: var(--line2); border-radius: 10px; font-size: 14px; }
.recap b { text-align: right; }
@media (max-width: 560px) { .vbar .bar { display: none; } .vbar-in { justify-content: space-between; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- pengaturan perhitungan ---------- */
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset:disabled { opacity: .5; }
.wtable input { width: 96px; text-align: right; padding: 7px 10px; }
.res-row .ct small { white-space: nowrap; }
