/* =========================================================
   SIM Rumah Qur'an An-Nur
   Metafora: Mushaf Tajwid berwarna — tiap modul memakai satu warna kode,
   menu = pita pembatas mushaf, judul halaman = kepala surah, angka = bintang rub' al-hizb.
   ========================================================= */
:root {
  --paper: #f8f1e0;
  --paper-2: #fffcf4;
  --paper-3: #efe5cc;
  --ink: #1d1b3a;
  --ink-2: #4a4766;
  --ink-3: #7a7795;
  --line: #e2d6b8;

  --blue: #2f6fe0;
  --green: #14a058;
  --orange: #f07f1a;
  --purple: #7b4fe0;
  --pink: #e23d82;
  --teal: #0d9ea6;
  --gold: #e5a40e;
  --red: #e04432;
  --sky: #2fa3e6;
  --copper: #c0702a;
  --slate: #59608a;

  --in-ink: #2457c5;
  --out-ink: #b84a0c;

  --c: var(--gold);
  --r: 16px;
  --hard: 4px 4px 0 var(--ink);

  --f-display: 'Fraunces', 'Georgia', serif;
  --f-body: 'Bricolage Grotesque', system-ui, sans-serif;
  --f-hand: 'Caveat', 'Comic Sans MS', cursive;
  --f-ar: 'Amiri', 'Traditional Arabic', serif;

  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%231d1b3a' stroke-opacity='.07'%3E%3Crect x='17' y='17' width='22' height='22'/%3E%3Crect x='17' y='17' width='22' height='22' transform='rotate(45 28 28)'/%3E%3Ccircle cx='28' cy='28' r='4'/%3E%3C/g%3E%3C/svg%3E");
  --star-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.13'%3E%3Crect x='13' y='13' width='18' height='18'/%3E%3Crect x='13' y='13' width='18' height='18' transform='rotate(45 22 22)'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  font-family: var(--f-body); font-size: 15px; line-height: 1.5; color: var(--ink);
  background: var(--paper) var(--star);
  display: grid; grid-template-columns: 268px minmax(0, 1fr);
}
body::after { /* butiran kertas */
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .06; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
h1, h2, h3 { font-family: var(--f-display); line-height: 1.15; margin: 0; font-weight: 700; }
p { margin: 0 0 .6em; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
small { font-size: .82em; }
[hidden] { display: none !important; }
.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.ic .fill, .ic.fill { fill: currentColor; stroke: none; }
.muted { color: var(--ink-3); }
.small { font-size: .85rem; }
.center { text-align: center; }
.grow { flex: 1; }
.hand { font-family: var(--f-hand); font-size: 1.3rem; color: var(--ink-2); line-height: 1.1; }
.printonly { display: none; }
:focus-visible { outline: 3px solid var(--c); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- rail: pita pembatas mushaf ---------- */
.rail {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; overflow-x: visible; z-index: 20;
  background: var(--ink) var(--star-light); color: #ecebff;
  display: flex; flex-direction: column; padding: 18px 0 14px 14px;
  border-right: 3px solid var(--ink);
  scrollbar-width: thin; scrollbar-color: #3b3870 transparent;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 0 14px 18px 4px; }
.brand__mark { position: relative; width: 54px; height: 54px; flex: none; display: grid; place-items: center; }
.brand__mark::before, .brand__mark::after { content: ''; position: absolute; inset: 7px; background: var(--gold); border: 2px solid #fff3; }
.brand__mark::after { transform: rotate(45deg); }
.brand__mark span { position: relative; z-index: 1; font-family: var(--f-ar); font-weight: 700; font-size: 1.25rem; color: var(--ink); line-height: 1; margin-top: -4px; }
.brand__txt small { display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: #a9a6d6; }
.brand__txt b { font-family: var(--f-display); font-size: 1.02rem; line-height: 1.15; display: block; text-wrap: balance; }
.rail__nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.rail__group { margin: 12px 0 4px 6px; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: #8c89bf; }
.rib {
  --rc: var(--gold);
  position: relative; display: flex; align-items: center; gap: 10px;
  padding: 9px 26px 9px 14px; margin-right: 0;
  text-decoration: none; font-weight: 600; font-size: .94rem; color: #e4e2ff;
  border-radius: 10px 0 0 10px;
  box-shadow: inset 5px 0 0 var(--rc);
  transition: background .2s, margin .25s cubic-bezier(.3,1.6,.5,1), color .2s;
}
.rib .ic { color: var(--rc); transition: color .2s; }
.rib__s { display: none; }
.rib:hover { background: color-mix(in srgb, var(--rc) 22%, transparent); }
.rib.is-on {
  background: var(--rc); color: #fff; margin-right: -20px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%);
  box-shadow: inset 5px 0 0 rgba(0,0,0,.18);
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}
.rib.is-on .ic { color: #fff; }
.rib.is-on[data-id="beranda"], .rib.is-on[data-id="agenda"] { color: var(--ink); text-shadow: none; }
.rib.is-on[data-id="beranda"] .ic, .rib.is-on[data-id="agenda"] .ic { color: var(--ink); }
.rail__foot { margin: 16px 14px 0 4px; font-size: .74rem; color: #9895c7; line-height: 1.4; }

/* ---------- stage ---------- */
.stage { min-width: 0; padding: 0 clamp(16px, 3vw, 40px) 40px; }
.topbar { display: flex; align-items: center; gap: 16px; padding: 16px 0 10px; }
.topbar__date { margin: 0; display: flex; flex-direction: column; line-height: 1.2; }
.topbar__date b { font-family: var(--f-display); font-size: 1.05rem; }
.topbar__date span { font-family: var(--f-hand); font-size: 1.15rem; color: var(--ink-2); }
.searchbtn {
  margin-left: auto; display: flex; align-items: center; gap: 10px; cursor: pointer;
  background: var(--paper-2); border: 2px solid var(--ink); border-radius: 999px; padding: 8px 10px 8px 14px; min-width: 260px;
  box-shadow: 3px 3px 0 var(--ink); color: var(--ink-3);
}
.searchbtn span { flex: 1; text-align: left; }
.searchbtn:hover { color: var(--ink); }
kbd { font: 600 .72rem var(--f-body); background: var(--paper-3); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 2px 6px; color: var(--ink-2); }
main { outline: none; }
.foot { margin-top: 40px; text-align: center; font-family: var(--f-hand); font-size: 1.15rem; color: var(--ink-3); }

/* ---------- kepala surah ---------- */
.surah { --sc: var(--c); margin: 6px 0 22px; }
.surah__frame {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--sc) var(--star-light); border: 3px solid var(--ink); border-radius: 18px;
  padding: 12px 18px; box-shadow: var(--hard);
}
.surah__frame::before { content: ''; position: absolute; inset: 5px; border: 1.5px dashed rgba(255,255,255,.55); border-radius: 13px; pointer-events: none; }
.surah__mid {
  position: relative; z-index: 1; text-align: center; background: var(--paper-2); border: 2.5px solid var(--ink);
  border-radius: 999px; padding: 6px clamp(22px, 5vw, 64px) 10px; min-width: min(520px, 70%);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--sc) 55%, white);
}
.surah__ar { display: block; font-family: var(--f-ar); font-size: clamp(1.25rem, 2.6vw, 1.7rem); line-height: 1.5; color: color-mix(in srgb, var(--sc) 70%, var(--ink)); }
.surah__title { font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 900; letter-spacing: -.01em; }
.surah__orn { position: relative; width: 44px; height: 44px; flex: none; }
.surah__orn::before, .surah__orn::after { content: ''; position: absolute; inset: 7px; background: var(--paper-2); border: 2.5px solid var(--ink); }
.surah__orn::after { transform: rotate(45deg); }
.surah__tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.surah__tools select, .surah__tools .search { width: auto; min-width: 180px; }

/* ---------- tombol & input ---------- */
.btn {
  --c2: var(--c);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none; white-space: nowrap;
  background: var(--paper-2); border: 2px solid var(--ink); border-radius: 12px; padding: 9px 15px; font-weight: 700; font-size: .92rem;
  box-shadow: 3px 3px 0 var(--ink); transition: transform .12s, box-shadow .12s, background .15s;
}
.btn .ic { color: var(--c); }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn--solid { background: var(--c); color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.2); }
.btn--solid .ic { color: #fff; }
body[data-mod="beranda"] .surah .btn--solid, body[data-mod="agenda"] .surah .btn--solid { color: var(--ink); text-shadow: none; }
body[data-mod="beranda"] .surah .btn--solid .ic, body[data-mod="agenda"] .surah .btn--solid .ic { color: var(--ink); }
.btn--ghost { background: transparent; box-shadow: none; border-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.btn--ghost:hover { background: var(--paper-2); box-shadow: 3px 3px 0 var(--ink); border-color: var(--ink); }
.btn--sm { padding: 5px 10px; font-size: .82rem; border-radius: 10px; box-shadow: 2px 2px 0 var(--ink); }
.btn--sm.btn--ghost { box-shadow: none; }
.iconbtn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; cursor: pointer; flex: none; text-decoration: none;
  background: var(--paper-2); border: 2px solid var(--ink); border-radius: 50%; color: var(--ink);
  transition: background .15s, transform .12s;
}
.iconbtn:hover { background: color-mix(in srgb, var(--c) 18%, var(--paper-2)); transform: rotate(-6deg); }
.iconbtn--sm { width: 30px; height: 30px; border-width: 1.5px; }
.iconbtn--sm .ic { width: 15px; height: 15px; }
.link { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: .85rem; text-decoration: none; color: color-mix(in srgb, var(--c) 70%, var(--ink)); }
.link:hover { text-decoration: underline; }

input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea {
  width: 100%; background: #fff; border: 2px solid color-mix(in srgb, var(--ink) 28%, transparent); border-radius: 11px; padding: 8px 11px;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 3px 3px 0 var(--c); }
textarea { resize: vertical; line-height: 1.5; }
select { cursor: pointer; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; min-width: 0; }
.field > span { font-size: .8rem; font-weight: 700; letter-spacing: .02em; color: var(--ink-2); }
.field > span small { font-weight: 500; color: var(--ink-3); }
.field--inline { flex-direction: row; align-items: center; gap: 10px; margin: 0; }
.field--inline select { width: auto; }
.field--check { flex-direction: row; align-items: center; gap: 10px; padding-top: 22px; }
.field--check input { width: 20px; height: 20px; accent-color: var(--c); }
.field--check span { font-size: .95rem; }
.search { max-width: 260px; }
.grid2, .grid3, .grid4 { display: grid; gap: 0 14px; }
.grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* ---------- tab & segmen ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.tab {
  --tc: var(--ink);
  cursor: pointer; border: 2px solid var(--ink); background: var(--paper-2); border-radius: 999px; padding: 5px 14px 5px 12px; font-weight: 700; font-size: .88rem;
  display: inline-flex; align-items: center; gap: 7px;
}
.tab::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--tc); }
.tab.is-on { background: var(--tc); color: #fff; box-shadow: 3px 3px 0 var(--ink); }
.tab.is-on::before { background: #fff; }
.seg { display: inline-flex; background: var(--paper-3); border: 2px solid var(--ink); border-radius: 14px; padding: 3px; gap: 3px; }
.seg__b { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; border: 0; background: transparent; border-radius: 10px; padding: 7px 13px; font-weight: 700; font-size: .9rem; text-decoration: none; color: var(--ink-2); }
.seg__b small { background: var(--paper-2); border-radius: 99px; padding: 0 7px; font-size: .75rem; }
.seg__b.is-on { background: var(--ink); color: #fff; }
.seg__b.is-on small { background: var(--c); color: #fff; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.filters select, .filters input { width: auto; min-width: 140px; flex: 1 1 150px; padding: 6px 10px; }
.filters .btn { flex: none; }

/* ---------- kartu ---------- */
.card {
  position: relative; background: var(--paper-2); border: 2px solid var(--ink); border-radius: var(--r);
  padding: 18px; box-shadow: 5px 5px 0 var(--c); min-width: 0;
}
.card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.card__head h2 { font-size: 1.2rem; }
.card--danger { background: color-mix(in srgb, var(--red) 6%, var(--paper-2)); }
.note {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 16px; border: 2px dashed var(--ink-2);
  border-radius: 14px; background: color-mix(in srgb, var(--gold) 12%, var(--paper-2));
}
.note p { margin: 0; flex: 1; }
.note > .ic { width: 24px; height: 24px; color: var(--gold); }
.note--warn { border-color: var(--red); background: color-mix(in srgb, var(--red) 8%, var(--paper-2)); }
.note--warn > .ic { color: var(--red); }
.empty { text-align: center; padding: 24px 12px; color: var(--ink-3); }
.empty__ic { width: 38px; height: 38px; color: color-mix(in srgb, var(--c) 60%, transparent); margin-bottom: 6px; }
.empty p { margin-bottom: 10px; }

/* avatar: bintang delapan berisi inisial */
.ava { --ac: var(--c); position: relative; width: 40px; height: 40px; flex: none; display: inline-grid; place-items: center; font: 800 .78rem var(--f-body); color: #fff; letter-spacing: .02em; }
.ava::before, .ava::after { content: ''; position: absolute; inset: 5px; background: var(--ac); border-radius: 3px; z-index: 0; }
.ava::after { transform: rotate(45deg); }
.ava { z-index: 0; isolation: isolate; text-shadow: 0 1px 0 rgba(0,0,0,.25); }
.ava::before, .ava::after { z-index: -1; }
.ava--sm { width: 32px; height: 32px; font-size: .66rem; }
.ava--sm::before, .ava--sm::after { inset: 4px; }
.ava--lg { width: 62px; height: 62px; font-size: 1.05rem; }
.ava--lg::before, .ava--lg::after { inset: 8px; }
.ava--xl { width: 96px; height: 96px; font-size: 1.6rem; }
.ava--xl::before, .ava--xl::after { inset: 13px; border: 2px solid var(--ink); }

/* medali: bintang rub' al-hizb */
.medals { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 22px; }
.medal { --mc: var(--c); display: flex; align-items: center; gap: 12px; background: var(--paper-2); border: 2px solid var(--ink); border-radius: 18px; padding: 10px 14px 10px 10px; min-width: 0; }
.medal__star { position: relative; width: 78px; height: 78px; flex: none; display: grid; place-items: center; isolation: isolate; }
.medal__star::before, .medal__star::after { content: ''; position: absolute; inset: 11px; background: var(--mc); border: 2.5px solid var(--ink); border-radius: 4px; z-index: -1; }
.medal__star::after { transform: rotate(45deg); }
.medal__star b { font: 900 1.4rem/1 var(--f-display); color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.25); text-align: center; }
.medal__star b small { font-size: .62em; opacity: .85; }
.medal__rp { font-size: .62em; display: inline-block; max-width: 70px; overflow-wrap: anywhere; line-height: 1.05; }
.medal__txt { min-width: 0; display: flex; flex-direction: column; }
.medal__txt span { font-weight: 800; line-height: 1.2; }
.medal__txt small { color: var(--ink-3); }

/* batang kecil */
.bar { --bc: var(--c); display: block; height: 10px; border-radius: 99px; background: color-mix(in srgb, var(--bc) 16%, #fff); border: 1.5px solid var(--ink); overflow: hidden; min-width: 40px; }
.bar i { display: block; height: 100%; background: var(--bc); border-radius: 99px; }

/* predikat: stempel */
.pred { display: inline-block; white-space: nowrap; font: 800 .7rem var(--f-body); letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border: 2px solid currentColor; border-radius: 8px; transform: rotate(-3deg); }
.pred--mumtaz { color: #0f8a4a; background: #e3f6ea; }
.pred--jj { color: #0a7d84; background: #e0f4f5; }
.pred--jayyid { color: #2457c5; background: #e6eefc; }
.pred--maqbul { color: #b45a0a; background: #fdeedd; }
.pred--ulang { color: #c22f1f; background: #fde6e2; }
.jen { --jc: var(--c); display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .03em; padding: 1px 8px; border-radius: 99px; background: color-mix(in srgb, var(--jc) 16%, #fff); color: color-mix(in srgb, var(--jc) 65%, var(--ink)); border: 1.5px solid color-mix(in srgb, var(--jc) 60%, transparent); white-space: nowrap; }

/* titik status */
.dot { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font: 800 .66rem var(--f-body); font-style: normal; color: #fff; }
.dot--H { background: var(--green); }
.dot--T { background: var(--purple); }
.dot--I { background: var(--blue); }
.dot--S { background: var(--orange); }
.dot--A { background: var(--red); }
.dot--none { color: var(--ink-3); background: transparent; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0 0 12px; font-size: .85rem; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--ac); border: 1.5px solid var(--ink); }

/* ---------- tabel ---------- */
.tblwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tblwrap.card { padding: 6px 6px 10px; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th, .tbl td { padding: 9px 10px; text-align: left; vertical-align: middle; border-bottom: 1.5px dotted var(--line); }
.tbl thead th { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); border-bottom: 3px double var(--ink); white-space: nowrap; }
.tbl tbody th { font-weight: 600; }
.tbl tbody tr:hover { background: color-mix(in srgb, var(--c) 7%, transparent); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tr.off { opacity: .5; }
.cellwho { display: flex; align-items: center; gap: 8px; min-width: 170px; }
.cellwho span small { display: block; color: var(--ink-3); font-weight: 500; }
.tbl--grid th, .tbl--grid td { padding: 5px 3px; text-align: center; }
.tbl--grid tbody th { text-align: left; position: sticky; left: 0; background: var(--paper-2); z-index: 1; padding-right: 10px; }
.tbl--grid thead th:first-child { text-align: left; position: sticky; left: 0; background: var(--paper); z-index: 2; }
.tbl--grid .dcol { font-size: .74rem; letter-spacing: 0; text-transform: none; line-height: 1.1; }
.tbl--grid .dcol span { display: block; font-size: .62rem; color: var(--ink-3); }
.tbl--grid .num { padding: 5px 8px; }
.tbl--grid { background: var(--paper-2); border: 2px solid var(--ink); border-radius: 14px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.row-act { display: inline-flex; gap: 5px; justify-content: flex-end; }

/* ---------- BERANDA ---------- */
.hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 260px); gap: 20px; align-items: center;
  background: linear-gradient(135deg, #fff7dc, #ffe9c2 60%, #ffd9b3); border: 3px solid var(--ink); border-radius: 26px;
  padding: clamp(20px, 3.5vw, 40px); margin: 6px 0 22px; box-shadow: 6px 6px 0 var(--ink); overflow: hidden;
}
.hero::before { content: ''; position: absolute; inset: 0; background: var(--star); opacity: .9; pointer-events: none; }
.hero > * { position: relative; }
.hero__title { font-size: clamp(1.9rem, 4.4vw, 3.3rem); font-weight: 900; letter-spacing: -.02em; margin: 2px 0 14px; }
.hero__title em { font-style: italic; color: var(--orange); position: relative; white-space: nowrap; }
.hero__title em::after { content: ''; position: absolute; left: -4px; right: -4px; bottom: .02em; height: .32em; background: var(--gold); opacity: .38; z-index: -1; border-radius: 40% 60% 50% 50%; transform: rotate(-2deg); }
.hero__ayat { font-family: var(--f-ar); font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--teal); margin: 0; line-height: 1.7; }
.hero__tr { font-size: .9rem; color: var(--ink-2); font-style: italic; }
.hero__quick { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.lantern { --glow: .6; text-align: center; }
.lantern__svg { width: min(220px, 100%); height: auto; overflow: visible; filter: drop-shadow(4px 6px 0 rgba(29,27,58,.18)); }
.lantern__halo { opacity: var(--glow); transform-origin: 100px 150px; animation: halo 3.2s ease-in-out infinite; }
.lantern__flame { transform-origin: 100px 166px; animation: flame 1.6s ease-in-out infinite; }
@keyframes halo { 50% { transform: scale(1.06); } }
@keyframes flame { 25% { transform: scaleY(1.06) skewX(2deg); } 75% { transform: scaleY(.95) skewX(-2deg); } }
.lantern__cap { margin: 4px 0 0; font-family: var(--f-hand); font-size: 1.35rem; line-height: 1.1; }
.lantern__cap b { font-family: var(--f-display); font-size: 1.6rem; color: var(--orange); }

.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.bento__stars { grid-column: span 3; }
.bento__halaqah { grid-column: span 3; }
.bento__latest { grid-column: span 2; }
.bento__agenda { grid-column: span 2; }
.bento__kas { grid-column: span 2; }
.bento__todo { grid-column: span 6; }
.stars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.stars li { display: grid; grid-template-columns: 24px 40px minmax(0, 1.3fr) minmax(60px, 1fr) 36px; align-items: center; gap: 8px; }
.stars a { font-weight: 700; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stars a:hover { text-decoration: underline; }
.stars__rank { font: 900 1.15rem var(--f-display); color: var(--orange); text-align: center; }
.stars li:first-child .stars__rank { color: #fff; background: var(--orange); border-radius: 50%; width: 26px; height: 26px; display: grid; place-items: center; border: 2px solid var(--ink); font-size: .9rem; }
.stars b { text-align: right; font-variant-numeric: tabular-nums; }
.hq { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hq li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(80px, 1fr) 46px; grid-template-areas: "n bar v" "s bar v"; align-items: center; column-gap: 12px; padding: 8px 10px; border-radius: 12px; background: color-mix(in srgb, var(--hc) 10%, transparent); border-left: 5px solid var(--hc); }
.hq__name { grid-area: n; font: 700 1.02rem var(--f-display); }
.hq small { grid-area: s; color: var(--ink-3); display: flex; gap: 6px; align-items: center; }
.hq small .dot { width: 18px; height: 18px; font-size: .58rem; }
.hq__bar { grid-area: bar; }
.hq__bar .bar { --bc: var(--hc); }
.hq b { grid-area: v; text-align: right; font-variant-numeric: tabular-nums; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1.5px dotted var(--line); }
.feed li:last-child { border: 0; }
.feed__who { font-weight: 700; font-size: .9rem; min-width: 0; }
.feed__who small { display: block; font-weight: 500; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed .pred { font-size: .6rem; padding: 2px 5px; }
.tear { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tear li { display: flex; align-items: center; gap: 12px; }
.tear li > span:nth-child(2) { flex: 1; min-width: 0; }
.tear li small { display: block; color: var(--ink-3); }
.tear__d { flex: none; width: 52px; text-align: center; background: #fff; border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; font-size: .7rem; font-weight: 700; text-transform: uppercase; line-height: 1.2; padding-bottom: 3px; box-shadow: 2px 2px 0 var(--ink); }
.tear__d b { display: block; background: var(--ac); color: #fff; font: 900 1.25rem/1.35 var(--f-display); margin-bottom: 1px; border-bottom: 2px solid var(--ink); }
.tear--past { opacity: .6; }
.kasmini { display: grid; gap: 12px; }
.kasmini > div { display: grid; grid-template-columns: 60px 1fr; grid-template-areas: "l v" "b b"; gap: 4px 8px; }
.kasmini small { grid-area: l; color: var(--ink-3); }
.kasmini b { grid-area: v; text-align: right; font-family: var(--f-display); font-size: 1.2rem; }
.kasmini .bar { grid-area: b; }
.kasmini__sy { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; margin: 16px 0 0; padding-top: 12px; border-top: 2px dashed var(--line); }
.kasmini__sy .bar { grid-column: span 2; }
.in { color: var(--in-ink); }
.out { color: var(--out-ink); }
.todo { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.todo li { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
.todo li small { display: block; color: var(--ink-3); }
.todo li.late { border-color: var(--red); background: #fff4f2; }
.todo li.late small { color: var(--red); }
.todo li.done > span { text-decoration: line-through; color: var(--ink-3); }
.chk { flex: none; width: 24px; height: 24px; border: 2px solid var(--ink); border-radius: 7px; background: #fff; cursor: pointer; display: grid; place-items: center; padding: 0; color: #fff; }
.chk:hover { background: color-mix(in srgb, var(--teal) 25%, #fff); }
.chk.is-on { background: var(--teal); }
.chk .ic { width: 15px; height: 15px; stroke-width: 3; }
.todo--big { grid-template-columns: 1fr; }

/* ---------- ABSEN ---------- */
.datenav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.datenav__lbl { position: relative; display: flex; align-items: center; gap: 10px; background: var(--paper-2); border: 2px solid var(--ink); border-radius: 14px; padding: 5px 14px; cursor: pointer; box-shadow: 3px 3px 0 var(--c); }
.datenav__lbl span { display: flex; flex-direction: column; line-height: 1.2; }
.datenav__lbl b { font-family: var(--f-display); }
.datenav__lbl small { color: var(--ink-3); }
.datenav__lbl input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.datenav__m { font-family: var(--f-display); font-size: 1.15rem; min-width: 150px; text-align: center; }
.tally { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.tally__i { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 12px; border-radius: 99px; background: color-mix(in srgb, var(--tc) 13%, var(--paper-2)); border: 1.5px solid color-mix(in srgb, var(--tc) 50%, transparent); font-size: .85rem; font-weight: 600; }
.tally__i b { font: 900 1.15rem var(--f-display); color: color-mix(in srgb, var(--tc) 75%, var(--ink)); }
.tally__i--none { --tc: var(--ink-3); }
.absen { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.acard {
  --hc: var(--c);
  background: var(--paper-2); border: 2px solid var(--ink); border-radius: 16px; padding: 12px 14px; display: grid; gap: 10px;
  border-left: 7px solid var(--hc); transition: background .25s, transform .2s;
}
.acard.is-set { background: #fff; }
.acard--H { background: color-mix(in srgb, var(--green) 7%, #fff) !important; }
.acard--A { background: color-mix(in srgb, var(--red) 8%, #fff) !important; }
.acard--S, .acard--I, .acard--T { background: color-mix(in srgb, var(--blue) 5%, #fff) !important; }
.acard__who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.acard__who span { min-width: 0; }
.acard__who b { display: block; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acard__who small { color: var(--ink-3); }
.stamps { display: flex; gap: 8px; }
.stamp {
  --sc: var(--green);
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  font: 900 1.1rem var(--f-display); color: color-mix(in srgb, var(--sc) 80%, var(--ink));
  background: #fff; border: 2px dashed color-mix(in srgb, var(--sc) 60%, transparent);
  transition: transform .2s cubic-bezier(.3,1.8,.5,1), background .15s;
}
.stamp:hover { transform: scale(1.08) rotate(-6deg); border-style: solid; }
.stamp.is-on {
  background: var(--sc); color: #fff; border: 2px solid var(--ink); transform: rotate(-12deg) scale(1.08);
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--sc);
  animation: thump .35s;
}
@keyframes thump { 0% { transform: scale(1.6) rotate(-20deg); opacity: .3; } 70% { transform: scale(.92) rotate(-12deg); } }
.acard__more { display: flex; gap: 8px; }
.mini { display: flex; align-items: center; gap: 6px; }
.mini input, input.mini { padding: 5px 9px !important; font-size: .85rem; border-radius: 9px !important; }
.mini input[type=time] { width: 108px; }
.mini--grow { flex: 1; min-width: 0; }

/* ---------- SETORAN ---------- */
.split { display: grid; grid-template-columns: minmax(340px, 430px) minmax(0, 1fr); gap: 22px; align-items: start; }
.lembar { position: sticky; top: 14px; }
.lembar__head { display: flex; align-items: baseline; justify-content: space-between; margin: -18px -18px 14px; padding: 14px 18px 10px; border-bottom: 2px solid var(--ink); background: repeating-linear-gradient(#fff6e8 0 23px, #f4d9b8 23px 24px); border-radius: 14px 14px 0 0; }
.lembar__head h2 { font-size: 1.25rem; }
.lembar__foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.jenis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.jenis__o { --jc: var(--c); position: relative; cursor: pointer; }
.jenis__o input { position: absolute; opacity: 0; }
.jenis__o span { display: block; border: 2px solid color-mix(in srgb, var(--ink) 25%, transparent); border-radius: 12px; padding: 7px 10px; background: #fff; transition: all .15s; }
.jenis__o b { display: block; font-size: .92rem; }
.jenis__o small { color: var(--ink-3); }
.jenis__o input:checked + span { border-color: var(--ink); background: var(--jc); color: #fff; box-shadow: 3px 3px 0 var(--ink); }
.jenis__o input:checked + span small { color: rgba(255,255,255,.88); }
.jenis__o input:focus-visible + span { outline: 3px solid var(--jc); outline-offset: 2px; }
.fs { display: none; border: 0; padding: 0; margin: 0; min-width: 0; }
.lembar[data-jenis=ziyadah] .fs-quran, .lembar[data-jenis=murajaah] .fs-quran, .lembar[data-jenis=tilawah] .fs-tilawah, .lembar[data-jenis=ujian] .fs-ujian { display: block; }
.hint { font-size: .84rem; background: color-mix(in srgb, var(--orange) 10%, #fff); border-radius: 10px; padding: 8px 10px; border: 1.5px dashed color-mix(in srgb, var(--orange) 55%, transparent); }
.hint .ic { color: var(--orange); }
.hint:empty { display: none; }
.nilai { background: #fff; border: 2px solid var(--ink); border-radius: 14px; padding: 10px 12px; margin-bottom: 12px; }
.nilai__r { display: grid; grid-template-columns: 90px 1fr 34px; align-items: center; gap: 10px; font-weight: 600; font-size: .88rem; }
.nilai__r input { accent-color: var(--orange); width: 100%; }
.nilai__r output { font: 800 1rem var(--f-display); text-align: right; }
.nilai__sum { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding-top: 8px; border-top: 2px dashed var(--line); }
.nilai__sum b { font: 900 1.6rem var(--f-display); color: var(--orange); }
.riwayat { padding-bottom: 12px; }
.slist { list-style: none; margin: 0; padding: 0; }
.slist .day { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 4px; padding-bottom: 4px; border-bottom: 3px double var(--ink); }
.slist .day:first-child { margin-top: 0; }
.slist .day b { font-family: var(--f-display); }
.slist .day small { font-family: var(--f-hand); font-size: 1.05rem; color: var(--ink-3); }
.srow { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto auto; gap: 10px; align-items: center; padding: 8px 4px; border-bottom: 1.5px dotted var(--line); }
.srow--ulang { background: repeating-linear-gradient(-45deg, transparent 0 8px, #fde6e2 8px 9px); }
.srow__who b { display: block; font-size: .93rem; }
.srow__who small { display: block; color: var(--ink-2); }
.srow__note { font-style: italic; color: var(--ink-3) !important; }
.srow__n { display: flex; align-items: flex-end; gap: 2px; height: 26px; }
.srow__n i { width: 5px; border-radius: 2px; background: var(--orange); height: calc((var(--v) - 40) / 60 * 24px + 2px); }
.srow__n i:nth-child(2) { background: var(--teal); }
.srow__n i:nth-child(3) { background: var(--purple); }
.srow__n b { margin-left: 5px; font: 800 .95rem var(--f-display); align-self: center; }
.srow__act { display: flex; gap: 4px; }
.more { width: 100%; margin-top: 12px; }

/* ---------- PROGRES ---------- */
.hqcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 18px; }
.hqcard { --hc: var(--c); text-align: left; cursor: pointer; background: var(--paper-2); border: 2px solid var(--ink); border-radius: 16px; padding: 12px 14px; border-top: 8px solid var(--hc); transition: transform .15s, box-shadow .15s; }
.hqcard:hover { transform: translateY(-2px); box-shadow: 4px 4px 0 var(--hc); }
.hqcard.is-on { background: color-mix(in srgb, var(--hc) 12%, #fff); box-shadow: 5px 5px 0 var(--ink); }
.hqcard__n { display: block; font: 800 1.2rem var(--f-display); }
.hqcard > small { color: var(--ink-3); }
.hqcard__s { display: flex; gap: 12px; margin-top: 10px; }
.hqcard__s span { display: flex; flex-direction: column; font-size: .72rem; color: var(--ink-3); }
.hqcard__s b { font: 800 1.15rem var(--f-display); color: var(--ink); }
.progres-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; margin-bottom: 18px; }
.legendcard h2 { font-size: 1.1rem; margin-bottom: 10px; }
.juzstrip { display: inline-grid; grid-template-columns: repeat(30, 7px); gap: 2px; padding: 3px; border: 1.5px solid var(--ink); border-radius: 6px; background: #fff; vertical-align: middle; }
.juzstrip i { height: 18px; border-radius: 2px; background: rgb(123 79 224 / calc(.07 + var(--p) * .93)); }
.juzstrip--demo { grid-template-columns: repeat(6, 18px); }
.lv { display: inline-block; font-weight: 700; font-size: .85rem; white-space: nowrap; }
.lv small { color: var(--ink-3); font-weight: 500; }
.tbl--prog td small, .tbl--prog .num small { color: var(--ink-3); }
.up { color: var(--green); font-style: normal; }
.down { color: var(--red); font-style: normal; }
.flat { color: var(--ink-3); font-style: normal; font-size: .7em; }

/* grafik kolom */
.vchart { margin: 0; }
.vchart figcaption, .gchart figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 12px; }
.vchart figcaption b, .gchart figcaption b { font-family: var(--f-display); font-size: 1.1rem; }
.vchart__plot, .gchart__plot { display: flex; align-items: flex-end; gap: 10px; height: 190px; padding: 0 4px 26px; border-bottom: 2px solid var(--ink); position: relative; background: repeating-linear-gradient(to top, transparent 0 46px, var(--line) 46px 47px); }
.vchart__col, .gchart__g { position: relative; flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; outline: none; }
.vchart__col > i { width: min(42px, 80%); background: var(--purple); border-radius: 4px 4px 0 0; min-height: 2px; transition: filter .15s; }
.vchart__col em { position: absolute; font: 800 .85rem var(--f-display); font-style: normal; transform: translateY(-4px); }
.vchart__col > small, .gchart__g > small { position: absolute; bottom: -24px; font-size: .72rem; color: var(--ink-3); white-space: nowrap; }
.vchart__tip { position: absolute; bottom: calc(100% - 20px); left: 50%; transform: translate(-50%, 0); background: var(--ink); color: #fff; padding: 6px 10px; border-radius: 10px; font-size: .76rem; line-height: 1.35; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s; z-index: 5; }
.vchart__tip b { display: block; font-size: .9rem; }
.vchart__col:hover .vchart__tip, .vchart__col:focus .vchart__tip, .gchart__g:hover .vchart__tip, .gchart__g:focus .vchart__tip { opacity: 1; }
.vchart__col:hover > i, .gchart__g:hover i { filter: brightness(1.12); }
.vchart__col:has(em) em { bottom: auto; }
.gchart { margin: 0; }
.gchart__bars { display: flex; align-items: flex-end; gap: 2px; height: 100%; width: 100%; justify-content: center; }
.gchart__bars i { width: min(22px, 42%); border-radius: 4px 4px 0 0; min-height: 2px; }
.gchart__bars .in { background: var(--blue); }
.gchart__bars .out { background: var(--orange); }

/* ---------- BUKU PRESTASI ---------- */
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 22px 18px; padding: 10px 0 30px; border-bottom: 14px solid #b9844b; box-shadow: 0 6px 0 #8b5e30; border-radius: 0 0 4px 4px; }
.bookcover {
  --bc: var(--pink);
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; text-decoration: none; color: #fff;
  aspect-ratio: 3 / 4; padding: 14px 12px 12px 24px; border: 2.5px solid var(--ink); border-radius: 6px 14px 14px 6px;
  background: var(--bc) var(--star-light); box-shadow: 5px 5px 0 var(--ink);
  transition: transform .25s cubic-bezier(.3,1.6,.5,1);
}
.bookcover:nth-child(3n+2) { transform: rotate(1.2deg); }
.bookcover:nth-child(4n+3) { transform: rotate(-1.4deg); }
.bookcover:hover { transform: translateY(-8px) rotate(-2deg); }
.bookcover__spine { position: absolute; left: 0; top: 0; bottom: 0; width: 14px; background: rgba(0,0,0,.22); border-right: 2px solid rgba(0,0,0,.25); }
.bookcover__orn { position: absolute; top: 18px; right: 16px; width: 38px; height: 38px; }
.bookcover__orn::before, .bookcover__orn::after { content: ''; position: absolute; inset: 6px; border: 2px solid rgba(255,255,255,.8); }
.bookcover__orn::after { transform: rotate(45deg); }
.bookcover__t { font: 800 1.08rem/1.15 var(--f-display); text-shadow: 0 2px 0 rgba(0,0,0,.25); }
.bookcover__s { font-size: .76rem; opacity: .9; margin-top: 3px; }
.bookcover__b { margin-top: 10px; padding-top: 8px; border-top: 1.5px dashed rgba(255,255,255,.6); font-size: .8rem; display: flex; align-items: center; gap: 4px; }
.bookcover__b b { font-family: var(--f-display); font-size: 1.1rem; }
.book { --bc: var(--pink); display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); border: 3px solid var(--ink); border-radius: 16px; padding: 10px; gap: 0; box-shadow: 8px 8px 0 var(--bc); }
.page { background: var(--paper-2); padding: clamp(16px, 3vw, 32px); min-width: 0; position: relative; }
.page--l { border-radius: 10px 2px 2px 10px; box-shadow: inset -18px 0 22px -18px rgba(29,27,58,.45); }
.page--r { border-radius: 2px 10px 10px 2px; box-shadow: inset 18px 0 22px -18px rgba(29,27,58,.45); }
.kop { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 3px double var(--ink); margin-bottom: 14px; }
.kop__logo { width: 42px; height: 42px; display: grid; place-items: center; background: var(--ink); border-radius: 10px; color: var(--gold); flex: none; }
.kop__logo .ic { width: 26px; height: 26px; }
.kop b { font-family: var(--f-display); font-size: 1.05rem; display: block; }
.kop small { color: var(--ink-3); }
.kop__per { margin-left: auto; font-family: var(--f-hand); font-size: 1.2rem; color: var(--bc, var(--teal)); text-align: right; }
.book__title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 900; text-align: center; margin: 6px 0 16px; }
.book__title::after { content: '۞'; display: block; font-size: 1.1rem; color: var(--bc); margin-top: 2px; }
.book__h { font-size: 1.02rem; margin: 20px 0 10px; display: flex; align-items: center; gap: 8px; }
.book__h::before { content: ''; width: 12px; height: 12px; background: var(--bc); transform: rotate(45deg); flex: none; border: 1.5px solid var(--ink); }
.book__h small { font: 500 .8rem var(--f-body); }
.ident { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.ident .ava { --ac: var(--bc); }
.ident dl { margin: 0; flex: 1; display: grid; gap: 2px; min-width: 0; }
.ident dl div { display: grid; grid-template-columns: 70px 1fr; gap: 8px; font-size: .9rem; border-bottom: 1px dotted var(--line); padding: 2px 0; }
.ident dt { color: var(--ink-3); }
.ident dd { margin: 0; min-width: 0; }
.medals--book { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 4px; }
.medals--book .medal { padding: 6px 10px 6px 6px; border-width: 1.5px; }
.medals--book .medal__star { width: 64px; height: 64px; }
.medals--book .medal__star::before, .medals--book .medal__star::after { inset: 9px; }
.medals--book .medal__star b { font-size: 1.1rem; }
.aspek { display: grid; gap: 8px; }
.aspek__r { display: grid; grid-template-columns: 90px 1fr 34px; align-items: center; gap: 10px; font-size: .9rem; font-weight: 600; }
.aspek__r .bar { --bc: inherit; }
.aspek__r b { text-align: right; font-family: var(--f-display); }
.path { list-style: none; margin: 0 0 6px; padding: 0; display: flex; justify-content: space-between; position: relative; }
.path::before { content: ''; position: absolute; left: 16px; right: 16px; top: 15px; height: 3px; background: var(--line); }
.path li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .62rem; color: var(--ink-3); }
.path li span[lang=ar] { font-family: var(--f-ar); font-size: 1.05rem !important; }
.path li span { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--ink-3); background: var(--paper-2); display: grid; place-items: center; font: 800 .8rem var(--f-display); color: var(--ink-3); }
.path li.done span { background: var(--teal); border-color: var(--ink); color: #fff; }
.path li.now span { background: var(--gold); border-color: var(--ink); color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 35%, transparent); transform: scale(1.12); }
.path li:last-child span { font-size: .6rem; }
.trophies { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.trophies li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: color-mix(in srgb, var(--gold) 12%, #fff); border: 1.5px solid color-mix(in srgb, var(--gold) 60%, transparent); border-radius: 12px; }
.trophies li > .ic { color: var(--gold); width: 26px; height: 26px; }
.trophies li span { flex: 1; min-width: 0; }
.trophies small { display: block; color: var(--ink-3); }
.juzmap { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; }
.jz { --p: 0; position: relative; aspect-ratio: 1; border: 1.5px solid var(--ink); border-radius: 7px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
  background: linear-gradient(to top, color-mix(in srgb, var(--bc) 70%, white) calc(var(--p) * 100%), #fff calc(var(--p) * 100%)); }
.jz b { font: 800 .9rem var(--f-display); position: relative; }
.jz small { font-size: .56rem; font-weight: 700; position: relative; }
.jz.full { background: var(--bc); color: #fff; }
.jz:not(.part):not(.full) { color: var(--ink-3); border-color: var(--line); }
.surahchips { display: flex; flex-wrap: wrap; gap: 5px; margin: 12px 0 0; }
.surahchips span { font-size: .74rem; padding: 2px 8px; border-radius: 99px; border: 1.5px dashed var(--bc); background: #fff; }
.surahchips span.full { border-style: solid; background: color-mix(in srgb, var(--bc) 14%, #fff); font-weight: 600; }
.surahchips small { color: var(--ink-3); }
.tbl--book { font-size: .82rem; }
.tbl--book th, .tbl--book td { padding: 5px 6px; }
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.notes li { display: flex; flex-direction: column; border-left: 3px solid var(--bc); padding-left: 10px; }
.notes small { color: var(--ink-3); }
.rapor-note { background: repeating-linear-gradient(#fff 0 27px, #e5e9f2 27px 28px) !important; line-height: 28px !important; font-family: var(--f-hand); font-size: 1.25rem; padding-top: 0 !important; }
.sign { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; text-align: center; font-size: .82rem; }
.sign--2 { grid-template-columns: repeat(2, 1fr); max-width: 520px; margin-left: auto; }
.sign small { color: var(--ink-3); }
.sign span { display: block; height: 46px; }
.sign b { display: block; border-top: 1.5px solid var(--ink); padding-top: 4px; }

/* ---------- RAPAT ---------- */
.notes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 26px 22px; padding-top: 10px; }
.notecard {
  position: relative; display: flex; flex-direction: column; gap: 6px; text-decoration: none; padding: 30px 18px 16px 50px; min-height: 250px;
  background: repeating-linear-gradient(#fffdf6 0 25px, #cfe0f0 25px 26px); background-position: 0 14px;
  border: 2px solid var(--ink); border-radius: 4px; box-shadow: 5px 5px 0 var(--teal); transition: transform .2s;
}
.notecard::before { content: ''; position: absolute; left: 38px; top: 0; bottom: 0; width: 2px; background: #e98a8a; }
.notecard::after { content: ''; position: absolute; top: -12px; left: 50%; width: 90px; height: 24px; transform: translateX(-50%) rotate(-3deg); background: rgba(13,158,166,.35); border: 1px solid rgba(13,158,166,.5); }
.notecard:nth-child(2n) { transform: rotate(.8deg); }
.notecard:nth-child(3n) { transform: rotate(-1deg); }
.notecard:hover { transform: rotate(0) translateY(-4px); }
.notecard__date { position: absolute; left: 6px; top: 34px; width: 28px; text-align: center; font-size: .6rem; line-height: 1.1; color: var(--ink-3); }
.notecard__date b { display: block; font: 900 1.2rem var(--f-display); color: var(--teal); }
.notecard__kind { font-family: var(--f-hand); font-size: 1.15rem; color: var(--teal); line-height: 1; }
.notecard h2 { font-size: 1.15rem; line-height: 1.25; }
.notecard ol { margin: 4px 0 0; padding-left: 18px; font-size: .86rem; line-height: 26px; }
.notecard__foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .76rem; color: var(--ink-2); padding-top: 8px; }
.notecard__foot span { display: inline-flex; align-items: center; gap: 4px; }
.notecard__foot .warn { color: #fff; background: var(--red); padding: 0 8px; border-radius: 99px; font-weight: 700; }
.notulen {
  position: relative; max-width: 880px; margin: 0 auto; padding: clamp(20px, 4vw, 44px) clamp(18px, 4vw, 48px) clamp(20px, 4vw, 44px) clamp(40px, 7vw, 84px);
  background: repeating-linear-gradient(#fffdf6 0 29px, #d6e3f1 29px 30px); background-position: 0 8px;
  border: 2px solid var(--ink); border-radius: 6px; box-shadow: 7px 7px 0 var(--teal);
}
.notulen::before { content: ''; position: absolute; left: clamp(26px, 5vw, 62px); top: 0; bottom: 0; width: 2px; background: #e98a8a; }
.notulen .kop { background: var(--paper-2); --bc: var(--teal); }
.notulen__t { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 900; margin: 10px 0 14px; }
.notulen h3 { font-size: 1.05rem; margin: 22px 0 6px; color: var(--teal); }
.notulen__meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; margin: 0; }
.notulen__meta div { display: grid; grid-template-columns: 120px 1fr; line-height: 30px; }
.notulen__meta dt { color: var(--ink-3); font-size: .88rem; }
.notulen__meta dd { margin: 0; font-weight: 600; }
.people { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.people span { display: inline-flex; align-items: center; gap: 4px; }
.numlist { margin: 0; padding-left: 22px; line-height: 30px; }
.numlist--deal li::marker { color: var(--teal); font-weight: 800; }
.prose p { line-height: 30px; margin: 0 0 30px; }
.prose p:last-child { margin-bottom: 0; }
.deal { position: absolute; right: clamp(16px, 5vw, 60px); margin-top: -70px; font: 900 1rem var(--f-display); text-transform: uppercase; letter-spacing: .12em; color: var(--red); border: 3px double var(--red); border-radius: 50%; padding: 22px 12px; transform: rotate(-14deg); opacity: .75; pointer-events: none; }
.trow { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) 150px 30px; gap: 8px; margin-bottom: 8px; align-items: center; }
.checks { display: flex; flex-wrap: wrap; gap: 6px; }
.checks label { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1.5px solid var(--line); border-radius: 99px; background: #fff; font-size: .88rem; cursor: pointer; }
.checks input { accent-color: var(--teal); }

/* ---------- AGENDA ---------- */
.agenda { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal__head h2 { font-size: 1.4rem; }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-bottom: 12px; }
.cal__h { text-align: center; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding-bottom: 4px; }
.cal__c { min-height: 88px; background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 4px 5px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cal__c--pad { background: transparent; border-style: dashed; }
.cal__c b { font: 700 .85rem var(--f-display); }
.cal__c i { font-style: normal; font-size: .66rem; font-weight: 700; line-height: 1.2; background: var(--ac); color: #fff; border-radius: 4px; padding: 1px 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal__c small { font-size: .62rem; color: var(--ink-3); }
.cal__c.is-jumat { background: color-mix(in srgb, var(--green) 6%, #fff); }
.cal__c.is-today { border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--sky); }
.cal__c.is-today b { background: var(--sky); color: #fff; border-radius: 6px; padding: 0 5px; align-self: flex-start; }

/* ---------- KAS ---------- */
.kas-top { display: grid; grid-template-columns: minmax(250px, 1fr) minmax(0, 1.5fr) minmax(0, 1.2fr); gap: 18px; margin-bottom: 22px; align-items: stretch; }
.saldo { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px; padding: 22px; color: #fff; background: var(--ink) var(--star-light); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 6px 6px 0 var(--copper); }
.saldo__l { font-family: var(--f-hand); font-size: 1.4rem; color: #ffd98a; }
.saldo__v { font: 900 clamp(1.7rem, 3vw, 2.5rem)/1.1 var(--f-display); color: var(--gold); overflow-wrap: anywhere; }
.saldo__r { margin-top: auto; display: grid; gap: 6px; font-size: .82rem; color: #c9c6ef; }
.saldo__r span { display: flex; justify-content: space-between; gap: 10px; border-top: 1px dashed #ffffff33; padding-top: 6px; }
.saldo__r b { font-size: .95rem; }
.saldo .in { color: #9ec0ff; }
.saldo .out { color: #ffb37a; }
.saldo__coin { position: absolute; right: -20px; top: -20px; color: var(--gold); opacity: .18; }
.saldo__coin .ic { width: 130px; height: 130px; }
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.hbars li { display: grid; grid-template-columns: minmax(80px, 1fr) minmax(60px, 1.3fr) auto; gap: 10px; align-items: center; font-size: .85rem; }
.hbars b { font-variant-numeric: tabular-nums; }
.ledger { background: var(--paper-2); border: 2px solid var(--ink); border-radius: 18px; padding: 16px; box-shadow: 5px 5px 0 var(--copper); }
.tbl--ledger td:nth-child(4), .tbl--ledger td:nth-child(5), .tbl--ledger td:nth-child(6), .tbl--ledger th:nth-child(4), .tbl--ledger th:nth-child(5), .tbl--ledger th:nth-child(6) { border-left: 2px solid color-mix(in srgb, var(--red) 40%, transparent); }
.tbl--ledger tfoot td { font-weight: 800; border-top: 3px double var(--ink); border-bottom: 0; }
.ledger__awal td { background: color-mix(in srgb, var(--gold) 10%, transparent); }
.pos { font-size: .74rem; font-weight: 700; padding: 1px 8px; border-radius: 6px; white-space: nowrap; }
.pos--in { background: #e6eefc; color: var(--in-ink); }
.pos--out { background: #fdeedd; color: var(--out-ink); }
input.rp { font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; letter-spacing: .02em; }

/* ---------- SYAHRIAH ---------- */
.sy-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 34px; padding: 16px 22px; margin-bottom: 18px; background: var(--paper-2); border: 2px solid var(--ink); border-radius: 20px; box-shadow: 5px 5px 0 var(--red); }
.sy-sum > div { display: flex; flex-direction: column; }
.sy-sum small { color: var(--ink-3); }
.sy-sum b { font: 800 1.35rem var(--f-display); }
.sy-sum__ring { --p: 0; width: 96px; height: 96px; border-radius: 50%; background: conic-gradient(var(--red) calc(var(--p) * 360deg), var(--paper-3) 0); display: grid !important; place-items: center; align-content: center; position: relative; border: 2px solid var(--ink); }
.sy-sum__ring::before { content: ''; position: absolute; inset: 12px; background: var(--paper-2); border-radius: 50%; border: 2px solid var(--ink); }
.sy-sum__ring b, .sy-sum__ring span { position: relative; line-height: 1; }
.sy-sum__ring b small { font-size: .6em; }
.sy-sum__ring span { font-size: .7rem; color: var(--ink-3); }
.receipts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-bottom: 14px; }
.rcpt {
  --hc: var(--c);
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 16px 14px 12px;
  background: #fff; border: 2px dashed color-mix(in srgb, var(--ink) 45%, transparent); border-radius: 12px;
}
.rcpt::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: radial-gradient(circle at 6px 0, var(--paper) 5px, var(--hc) 5.5px) 0 0 / 12px 6px repeat-x; }
.rcpt__who { display: flex; align-items: center; gap: 8px; min-width: 0; grid-column: 1 / -1; }
.rcpt__who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rcpt__st { font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--red); }
.rcpt__d { font-size: .82rem; color: var(--ink-2); grid-column: 1; }
.rcpt__act { display: flex; gap: 6px; grid-column: 2; grid-row: 2 / span 2; align-items: center; }
.rcpt--paid { border-style: solid; border-color: var(--green); background: color-mix(in srgb, var(--green) 5%, #fff); }
.rcpt--paid .rcpt__st { color: var(--green); }
.rcpt--paid .btn { grid-column: 2; grid-row: 2 / span 2; }
.rcpt__stamp { position: absolute; right: 6px; bottom: 34px; font: 900 1.1rem var(--f-display); letter-spacing: .1em; color: var(--green); border: 3px solid var(--green); border-radius: 8px; padding: 0 8px; transform: rotate(-16deg); opacity: .25; pointer-events: none; }
.rcpt--free { opacity: .7; border-style: dotted; }
.rcpt--free .rcpt__st { color: var(--ink-3); }

/* ---------- DATA INDUK ---------- */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.pcard { --hc: var(--slate); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 18px 14px 14px; background: var(--paper-2); border: 2px solid var(--ink); border-radius: 18px; box-shadow: 4px 4px 0 var(--hc); }
.pcard.off { opacity: .55; }
.pcard > small { color: var(--ink-3); }
.pcard__meta { font-size: .8rem; color: var(--ink-2); margin: 6px 0 8px; line-height: 1.6; }
.pcard--hq { border-top: 10px solid var(--hc); align-items: flex-start; text-align: left; }
.pcard__hq { font: 900 1.5rem var(--f-display); color: color-mix(in srgb, var(--hc) 70%, var(--ink)); }
.pcard .row-act { margin-top: auto; }
.juzpick { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 4px; }
.juzpick label { position: relative; cursor: pointer; }
.juzpick input { position: absolute; opacity: 0; }
.juzpick span { display: grid; place-items: center; height: 30px; border: 1.5px solid var(--line); border-radius: 7px; font-weight: 700; font-size: .8rem; background: #fff; }
.juzpick input:checked + span { background: var(--purple); color: #fff; border-color: var(--ink); }
.juzpick input:focus-visible + span { outline: 2px solid var(--purple); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches label { cursor: pointer; position: relative; }
.swatches input { position: absolute; opacity: 0; }
.swatches span { display: block; width: 32px; height: 32px; border-radius: 50%; background: var(--ac); border: 2px solid var(--ink); }
.swatches input:checked + span { box-shadow: 0 0 0 3px var(--paper-2), 0 0 0 5px var(--ink); }

/* ---------- PENGATURAN ---------- */
.settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.btnrow { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 10px; }

/* ---------- lembar dialog ---------- */
.sheet { --sc: var(--c); width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 3px solid var(--ink); border-radius: 22px; background: var(--paper-2); box-shadow: 8px 8px 0 var(--sc); color: var(--ink); overflow: hidden; }
.sheet--wide { width: min(880px, calc(100vw - 24px)); }
.sheet::backdrop { background: rgba(29, 27, 58, .55); backdrop-filter: blur(3px); }
.sheet[open] { animation: pop .25s cubic-bezier(.3,1.5,.5,1); }
@keyframes pop { from { transform: translateY(20px) scale(.97); opacity: 0; } }
.sheet__form { display: flex; flex-direction: column; max-height: calc(100vh - 38px); }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; background: var(--sc) var(--star-light); color: #fff; border-bottom: 3px solid var(--ink); }
.sheet__head h2 { font-size: 1.35rem; text-shadow: 0 1px 0 rgba(0,0,0,.2); }
.sheet__ar { font-family: var(--f-ar); font-size: 1.1rem; opacity: .9; display: block; line-height: 1.4; }
.sheet__body { padding: 18px; overflow-y: auto; }
.sheet__foot { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-top: 2px dashed var(--line); background: var(--paper); }
.confirm-msg { font-size: 1rem; line-height: 1.55; }

/* ---------- palet pencarian ---------- */
.palette { width: min(560px, calc(100vw - 24px)); margin: 10vh auto auto; padding: 0; border: 3px solid var(--ink); border-radius: 20px; background: var(--paper-2); box-shadow: 8px 8px 0 var(--gold); }
.palette::backdrop { background: rgba(29, 27, 58, .5); backdrop-filter: blur(3px); }
.pal__in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 2px solid var(--ink); }
.pal__in input { border: 0 !important; box-shadow: none !important; padding: 4px 0 !important; font-size: 1.1rem; background: transparent; }
.pal__list { list-style: none; margin: 0; padding: 8px; max-height: 50vh; overflow-y: auto; }
.pal__list a { --rc: var(--c); display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; text-decoration: none; }
.pal__list a .ic { color: var(--rc); width: 22px; height: 22px; }
.pal__list a small { display: block; color: var(--ink-3); }
.pal__list li.is-on a, .pal__list a:hover { background: color-mix(in srgb, var(--rc) 14%, #fff); }
.pal__none { padding: 16px; color: var(--ink-3); text-align: center; }
.pal__hint { margin: 0; padding: 8px 16px 12px; font-size: .75rem; color: var(--ink-3); display: flex; gap: 6px; align-items: center; }

/* ---------- toast ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 300; display: grid; gap: 10px; max-width: min(420px, calc(100vw - 32px)); }
.toast { display: flex; align-items: center; gap: 10px; padding: 11px 16px; background: var(--ink); color: #fff; border-radius: 14px; border-left: 7px solid var(--green); box-shadow: 4px 4px 0 rgba(29,27,58,.25); animation: tin .3s cubic-bezier(.3,1.5,.5,1); transition: opacity .4s, transform .4s; font-size: .92rem; }
.toast .ic { color: var(--green); }
.toast--err { border-left-color: var(--red); }
.toast--err .ic { color: #ff8b7d; }
.toast.out { opacity: 0; transform: translateX(30px); }
@keyframes tin { from { transform: translateY(20px); opacity: 0; } }

/* ---------- mode server: gerbang, status, akun, peran ---------- */
body.gated { display: block; }
body.gated .rail, body.gated .stage { display: none; }
.gate { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.gate__card { width: min(920px, 100%); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); background: var(--paper-2); border: 3px solid var(--ink); border-radius: 26px; box-shadow: 8px 8px 0 var(--gold); overflow: hidden; }
.gate__side { background: var(--ink) var(--star-light); color: #fff; padding: 36px 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; }
.gate__side .brand__mark { width: 96px; height: 96px; }
.gate__side .brand__mark::before, .gate__side .brand__mark::after { inset: 14px; }
.gate__side .brand__mark span { font-size: 2rem; }
.gate__ar { font-family: var(--f-ar); font-size: 1.8rem; color: var(--gold); margin: 10px 0 0; }
.gate__name { font: 900 1.5rem/1.2 var(--f-display); margin: 0; }
.gate__side .hand { color: #ffd98a; }
.gate__form { padding: clamp(22px, 4vw, 40px); }
.gate__form h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 900; margin-bottom: 8px; }
.gate__form h1 em { color: var(--orange); }
.gate__btn { width: 100%; margin: 6px 0 12px; padding: 12px; font-size: 1rem; --c: var(--green); }
.gate__opts { display: grid; gap: 8px; }
.gate__opts label { position: relative; cursor: pointer; }
.gate__opts input { position: absolute; opacity: 0; }
.gate__opts span { display: block; padding: 9px 12px; border: 2px solid color-mix(in srgb, var(--ink) 22%, transparent); border-radius: 12px; background: #fff; }
.gate__opts b { display: block; }
.gate__opts small { color: var(--ink-3); }
.gate__opts input:checked + span { border-color: var(--ink); box-shadow: 3px 3px 0 var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); }
.gate__opts input:focus-visible + span { outline: 3px solid var(--c); outline-offset: 2px; }
.syncchip { display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; font-weight: 700; padding: 5px 11px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--paper-2); color: var(--ink-2); white-space: nowrap; }
.syncchip i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.syncchip--saving i { background: var(--gold); animation: blink 1s infinite; }
.syncchip--off { border-color: var(--red); color: var(--red); }
.syncchip--off i { background: var(--red); }
@keyframes blink { 50% { opacity: .2; } }
.topbar .syncchip { margin-left: auto; }
.topbar .syncchip:not([hidden]) + .searchbtn { margin-left: 0; }
.mebtn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; background: var(--paper-2); border: 2px solid var(--ink); border-radius: 999px; padding: 3px 14px 3px 4px; font-weight: 700; font-size: .86rem; box-shadow: 3px 3px 0 var(--ink); max-width: 220px; }
.mebtn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rolechip { --rc: var(--slate); display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 2px 9px; border-radius: 99px; background: var(--rc); color: #fff; }
.sheet__h { font-size: 1rem; margin: 16px 0 8px; }
.stamp:disabled { cursor: not-allowed; opacity: .45; transform: none !important; }
.stamp.is-on:disabled { opacity: .9; }
.no-data [data-act^="dt-"], .no-data .surah__tools [data-act^="dt-"] { display: none !important; }
code { font-size: .85em; background: var(--paper-3); padding: 1px 5px; border-radius: 5px; }

/* ---------- responsif ---------- */
@media (max-width: 1280px) {
  .kas-top { grid-template-columns: 1fr 1fr; }
  .kas-top .saldo { grid-column: span 2; }
  .bento__latest, .bento__agenda { grid-column: span 3; }
  .bento__kas { grid-column: span 6; }
}
@media (max-width: 1100px) {
  .split { grid-template-columns: 1fr; }
  .lembar { position: static; }
  .progres-top, .agenda { grid-template-columns: 1fr; }
  .book { grid-template-columns: 1fr; }
  .page--l, .page--r { border-radius: 10px; box-shadow: none; }
  .page--l { margin-bottom: 10px; }
}
@media (max-width: 900px) {
  body { grid-template-columns: 1fr; padding-bottom: 76px; }
  .rail {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; height: auto; z-index: 50; padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    border-right: 0; border-top: 3px solid var(--ink); overflow: visible;
  }
  .brand, .rail__group, .rail__foot { display: none; }
  .rail__nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 4px; scroll-snap-type: x proximity; }
  .rail__nav::-webkit-scrollbar { display: none; }
  .rib { flex-direction: column; gap: 2px; padding: 6px 10px 5px; min-width: 66px; border-radius: 12px; box-shadow: inset 0 -4px 0 var(--rc); font-size: .66rem; scroll-snap-align: center; }
  .rib .ic { width: 20px; height: 20px; }
  .rib__l { display: none; }
  .rib__s { display: block; white-space: nowrap; }
  .rib.is-on { margin-right: 0; clip-path: none; transform: translateY(-6px); box-shadow: 0 3px 0 rgba(0,0,0,.35); }
  .topbar { padding-top: 12px; }
  .searchbtn { min-width: 0; }
  .searchbtn span, .searchbtn kbd { display: none; }
  .mebtn span { display: none; }
  .mebtn { padding: 3px; }
  .syncchip span { display: none; }
  .syncchip { padding: 8px; }
  .gate__card { grid-template-columns: 1fr; }
  .gate__side { padding: 20px; flex-direction: row; flex-wrap: wrap; gap: 4px 14px; }
  .gate__side .brand__mark { width: 60px; height: 60px; }
  .gate__side .brand__mark::before, .gate__side .brand__mark::after { inset: 9px; }
  .gate__side .brand__mark span { font-size: 1.3rem; }
  .gate__ar { display: none; }
  .gate__name { font-size: 1.2rem; text-align: left; }
  .gate__side .hand { width: 100%; text-align: left; margin: 0; display: none; }
  .bento > * { grid-column: span 6 !important; }
  .hero { grid-template-columns: 1fr; }
  .lantern { display: grid; grid-template-columns: 110px 1fr; align-items: center; text-align: left; gap: 10px; }
  .lantern__svg { width: 110px; }
  .settings { grid-template-columns: 1fr; }
  .kas-top { grid-template-columns: 1fr; }
  .kas-top .saldo { grid-column: auto; }
  .toasts { bottom: 90px; right: 12px; left: 12px; max-width: none; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .surah__frame { padding: 8px; gap: 6px; }
  .surah__orn { width: 26px; height: 26px; }
  .surah__orn::before, .surah__orn::after { inset: 4px; border-width: 2px; }
  .surah__mid { min-width: 0; flex: 1; padding: 4px 12px 7px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--sc) 55%, white); }
  .surah__tools { justify-content: flex-start; }
  .grid3, .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span2 { grid-column: span 2; }
  .medals { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .medal { flex-direction: column; text-align: center; padding: 10px 6px; gap: 4px; }
  .medal__star { width: 66px; height: 66px; }
  .medal__star::before, .medal__star::after { inset: 9px; }
  .medal__star b { font-size: 1.15rem; }
  .medals--book .medal { flex-direction: row; text-align: left; }
  .absen { grid-template-columns: 1fr; }
  .stamp { width: 42px; height: 42px; }
  .srow { grid-template-columns: 32px minmax(0, 1fr) auto; }
  .srow__n { display: none; }
  .srow__act { grid-column: 2 / -1; justify-content: flex-end; margin-top: -6px; }
  .datenav__lbl { flex: 1; }
  .toolbar > .btn { width: 100%; }
  .juzmap { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .juzpick { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .ident { flex-direction: column; align-items: flex-start; }
  .sign { grid-template-columns: 1fr 1fr; }
  .sign > div:last-child { grid-column: span 2; }
  .notulen__meta { grid-template-columns: 1fr; }
  .notulen__meta div { grid-template-columns: 110px 1fr; }
  .trow { grid-template-columns: 1fr 1fr 30px; }
  .trow input[name=t_t] { grid-column: 1 / -1; }
  .cal__c { min-height: 58px; padding: 3px; }
  .cal__c i { font-size: 0; height: 6px; padding: 0; }
  .stars li { grid-template-columns: 22px 34px minmax(0, 1fr) 34px; }
  .stars__bar { display: none; }
  .hq li { grid-template-columns: minmax(0, 1fr) 60px 42px; }
  .sy-sum { gap: 12px 22px; }
  .search { max-width: none; flex: 1; }
  .sheet__body { padding: 14px; }
  .filters select, .filters input { flex: 1 1 45%; min-width: 0; }
  .hero__title em { white-space: normal; }
}

/* ---------- gerak dikurangi ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- cetak ---------- */
@media print {
  @page { margin: 12mm; }
  body { display: block; background: #fff; font-size: 11.5pt; }
  body::after, .rail, .topbar, .foot, .surah, .toolbar, .filters, .tabs, .noprint, .row-act, .toasts, .more, .hint, .lembar, .kas-top { display: none !important; }
  .printonly { display: grid !important; }
  .stage { padding: 0; }
  .card, .ledger, .notulen, .book, .tblwrap.card { box-shadow: none !important; }
  .book { background: none; border: 0; padding: 0; display: block; }
  .page { padding: 0; box-shadow: none !important; }
  .page--r { break-before: page; }
  .split { display: block; }
  .tblwrap { overflow: visible; }
  .tbl--grid { font-size: 8pt; }
  .rapor-note { border: 0 !important; resize: none; }
  a { text-decoration: none; }
}
