/* ===== Babak · gaya pakej enjin Bab 9, kumpulan 9b (js/pakej-bab-09-9b.js): pelan, mohor, lekat.
   Awalan kelas dan keyframes b9b-. Susun atur diskop dengan .b2-j-<jenis> / .b2-p-<jenis>, body.mod-lebar (pentas 1280 x 720)
   dan body.mod-telefon (390 x 844; telefon pendek @media (max-height:700px)). Palet Babak; warna kumpulan neutral SPEC-BAB-9 §3
   melalui --w (isi), --wd (sempadan) dan --wt (teks). ===== */

/* ---------- Bersama ---------- */
.b9b-goncang{animation:goncang .4s}
/* position !important: klon membawa kelas asal (contohnya .b9b-pl-kad{position:relative}) yang ditakrif kemudian */
.b9b-klon-seret{position:absolute!important;z-index:40;margin:0;pointer-events:none;transition:none!important;box-shadow:0 16px 28px rgba(27,42,92,.32)!important}
.b9b-terbang{position:absolute!important;z-index:40;margin:0!important;pointer-events:none;transition:none!important;overflow:hidden;box-sizing:border-box}
.b2-main .b9b-pelan[data-sibuk],.b2-main .b9b-mohor[data-sibuk],.b2-main .b9b-lekat[data-sibuk]{cursor:progress}
.b2-j-pelan .b2-kad-no,.b2-j-mohor .b2-kad-no,.b2-j-lekat .b2-kad-no{font-size:.875rem;letter-spacing:.04em}
.b2-j-pelan .b2-kad-isi,.b2-j-mohor .b2-kad-isi,.b2-j-lekat .b2-kad-isi{font-size:1.0625rem;overflow-wrap:break-word}
.b2-j-pelan .b2-rujuk-btn,.b2-j-mohor .b2-rujuk-btn,.b2-j-lekat .b2-rujuk-btn{font-size:.875rem;min-height:44px}
.b2-j-pelan .b2-rumus-tokoh li,.b2-j-mohor .b2-rumus-tokoh li,.b2-j-lekat .b2-rumus-tokoh li{font-size:.875rem;line-height:1.35;align-content:start}
.b2-j-pelan .b2-rumus-label,.b2-j-mohor .b2-rumus-label,.b2-j-lekat .b2-rumus-label{font-size:.875rem}
.b2-j-pelan .op,.b2-j-mohor .op,.b2-j-lekat .op{min-height:50px;font-size:.9375rem;overflow-wrap:break-word}
.b9b-menaip::after{content:"";display:inline-block;width:2px;height:1em;margin-left:1px;vertical-align:-.12em;background:currentColor;animation:b9b-kursor .7s steps(1) infinite}
@keyframes b9b-kursor{50%{opacity:0}}
@keyframes b9b-seru{50%{box-shadow:0 0 0 4px rgba(255,201,51,.45)}}
@keyframes b9b-lantun{30%{transform:scale(1.07,.93)}60%{transform:scale(.97,1.03)}100%{transform:none}}
@keyframes b9b-masuk-atas{from{transform:translateY(-12px);opacity:0}to{transform:none;opacity:1}}
/* rumusan */
.b9b-rumus li.b9b-rumus-penuh{grid-column:1/-1}
.b9b-rumus-baris{display:grid;gap:3px}
.b9b-rumus-baris > span{position:relative;padding-left:12px}
.b9b-rumus-baris > span::before{content:"";position:absolute;left:1px;top:.5em;width:6px;height:6px;border-radius:50%;background:var(--teal)}
.b9b-rumus-no{display:inline-grid;place-items:center;width:22px;height:22px;margin-right:6px;border-radius:50%;background:#1F4E8C;color:#fff;font-style:normal;font-size:.875rem;font-weight:900;vertical-align:1px}
.b9b-rumus-pengirim{display:inline-block;margin-right:3px;padding:0 6px;border-radius:6px;background:var(--w);color:var(--wt);font-style:normal;font-weight:900}
.b9b-rumus li.b9b-rumus-bukan{background:#FFF1EC}
.b9b-rumus li.b9b-rumus-jumlah{background:#E7F7F4}
.b9b-rumus-kosong{color:var(--kelabu)!important;font-style:italic}

/* =====================================================================================
   9.4 PELAN · PELAN REID
   ===================================================================================== */
.b9b-pelan{display:grid;gap:10px;min-width:0}
.b9b-pl-meja{position:relative;display:grid;gap:10px;min-width:0;padding:10px;border-radius:22px;
  background:repeating-linear-gradient(92deg,rgba(120,70,20,.07) 0 2px,transparent 2px 11px),linear-gradient(#E4BD80,#D2A263);
  box-shadow:var(--bayang),inset 0 0 0 2px #C08A48}
/* kertas pelan biru */
.b9b-pl-kertas{position:relative;display:grid;gap:7px;min-width:0;padding:11px 12px 9px;border-radius:5px;color:#EAF3FF;
  background-color:#1F4E8C;
  background-image:linear-gradient(rgba(255,255,255,.075) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.075) 1px,transparent 1px),
    linear-gradient(rgba(255,255,255,.13) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.13) 1px,transparent 1px);
  background-size:14px 14px,14px 14px,70px 70px,70px 70px;background-position:-1px -1px;
  box-shadow:0 6px 14px rgba(40,20,5,.35),inset 0 0 0 5px #1F4E8C,inset 0 0 0 6.5px rgba(226,238,255,.7)}
.b9b-pl-kertas.b9b-sinar{animation:b9b-sinar 1.5s ease-out 1}
@keyframes b9b-sinar{0%,100%{box-shadow:0 6px 14px rgba(40,20,5,.35),inset 0 0 0 5px #1F4E8C,inset 0 0 0 6.5px rgba(226,238,255,.7),0 0 0 0 rgba(255,236,150,0)}
  40%{box-shadow:0 6px 14px rgba(40,20,5,.35),inset 0 0 0 5px #1F4E8C,inset 0 0 0 6.5px #fff,0 0 0 6px rgba(255,236,150,.6),0 0 34px 12px rgba(255,236,150,.55)}}
.b9b-pl-pita{position:absolute;z-index:3;width:44px;height:15px;background:rgba(246,234,200,.85);box-shadow:0 1px 2px rgba(0,0,0,.2);pointer-events:none}
.b9b-pl-pita.p1{left:-10px;top:4px;transform:rotate(-38deg)}
.b9b-pl-pita.p2{right:-10px;top:4px;transform:rotate(38deg)}
.b9b-pl-pita.p3{left:-10px;bottom:4px;transform:rotate(38deg)}
.b9b-pl-pita.p4{right:-10px;bottom:4px;transform:rotate(-38deg)}
.b9b-pl-kepala{display:flex;align-items:center;gap:8px;min-width:0;padding:0 2px 6px;border-bottom:1.5px solid rgba(226,238,255,.45)}
.b9b-pl-cap{flex:none;padding:1px 8px;border:1.5px solid rgba(226,238,255,.85);border-radius:4px;font-size:.875rem;font-weight:900;letter-spacing:.14em;text-transform:uppercase}
.b9b-pl-tajuk{flex:1 1 auto;min-width:0;font-size:.875rem;font-weight:800;letter-spacing:.04em;color:rgba(226,238,255,.6);text-transform:uppercase;overflow-wrap:anywhere;line-height:1.2}
.b9b-pl-tajuk.ada{color:#fff;font-weight:900;text-shadow:0 0 10px rgba(255,236,150,.7)}
.b9b-pl-kira{flex:none;padding:2px 9px;border-radius:10px;background:rgba(255,255,255,.15);font-size:.875rem;font-weight:900;white-space:nowrap}
.b9b-pl-kira:empty{display:none}
.b9b-pl-lukisan{position:relative;min-width:0;display:flex;justify-content:center;align-items:center}
.b9b-pl-svg{display:block;width:100%;height:auto;overflow:visible}
.b9b-pl-hiasan circle,.b9b-pl-hiasan path{fill:none;stroke:rgba(226,238,255,.45);stroke-width:1}
.b9b-pl-hiasan path:first-of-type{fill:rgba(226,238,255,.35)}
.b9b-pl-hiasan text{font:900 12px var(--f);fill:rgba(226,238,255,.65)}
.b9b-pl-hantu{cursor:pointer}
.b9b-pl-hantu path{fill:none;stroke:rgba(226,238,255,.42);stroke-width:1.3;stroke-dasharray:3 3;stroke-linecap:round;stroke-linejoin:round;transition:opacity .4s ease}
.b9b-pl-hantu.pudar path{opacity:.2}
.b9b-pelan.ada-pilih .b9b-pl-hantu:not(.pudar) path{stroke:rgba(255,233,166,.7)}
.b9b-pl-dakwat{pointer-events:none;visibility:hidden}
.b9b-pl-dakwat.tampak{visibility:visible}
.b9b-pl-dakwat path{fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1 1;stroke-dashoffset:1;filter:drop-shadow(0 0 1.5px rgba(255,255,255,.55))}
.b9b-pl-penanda{cursor:pointer}
.b9b-pl-hit{fill:transparent}
.b9b-pl-bulat{fill:#1F4E8C;stroke:#FFE9A6;stroke-width:1.7;transition:fill .3s ease,stroke .3s ease}
.b9b-pl-penanda text{font:900 13px var(--f);fill:#FFE9A6;pointer-events:none}
.b9b-pl-penanda.melukis .b9b-pl-bulat{fill:#FFE9A6;stroke:#fff}
.b9b-pl-penanda.melukis text{fill:#1F4E8C}
.b9b-pl-penanda.siap .b9b-pl-bulat{fill:#fff;stroke:#fff}
.b9b-pl-penanda.siap text{fill:#1F4E8C}
.b9b-pl-penanda.dibantu .b9b-pl-bulat{stroke:#FF6B72;stroke-width:2.4;stroke-dasharray:3 2}
.b9b-pl-penanda.salah .b9b-pl-bulat{fill:#F94F55;stroke:#fff}
.b9b-pl-penanda.salah text{fill:#fff}
.b9b-pl-penanda.kilat .b9b-pl-bulat{fill:#1A9A5C;stroke:#fff}
.b9b-pl-penanda.kilat text{fill:#fff}
/* panel bawah lukisan: cip zon, blok penyedia pelan, nota gerak kerja */
.b9b-pl-panel{min-width:0}
.b9b-pl-panel-tajuk{margin:0 0 6px;font-size:.8125rem;font-weight:900;letter-spacing:.12em;text-transform:uppercase;color:#FFE9A6}
.b9b-pl-zon-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;min-width:0}
.b9b-pl-zon{position:relative;display:flex;align-items:center;gap:7px;min-width:0;min-height:48px;padding:4px 22px 4px 6px;border-radius:9px;text-align:left;color:#DDEBFF;
  background:rgba(10,36,78,.5);border:1.5px dashed rgba(226,238,255,.55);transition:background-color .25s ease,border-color .25s ease,transform .15s ease}
.b9b-pl-zon-no{flex:none;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;border:1.7px solid #FFE9A6;color:#FFE9A6;font-size:.875rem;font-weight:900;transition:background-color .3s ease,color .3s ease}
.b9b-pl-zon-teks{display:grid;min-width:0;line-height:1.18}
.b9b-pl-zon-teks small{font-size:.8125rem;font-weight:900;letter-spacing:.1em;text-transform:uppercase;color:#FFE9A6}
.b9b-pl-zon-teks span{font-size:.875rem;font-weight:700;overflow-wrap:break-word}
.b9b-pl-zon-pin{position:absolute;right:3px;top:-6px;width:18px;height:20px;opacity:0;transform:translateY(-8px) rotate(-25deg);transition:opacity .3s ease,transform .4s ease}
.b9b-pl-zon.siap{background:rgba(255,255,255,.14);border:1.5px solid #fff;color:#fff}
.b9b-pl-zon.siap .b9b-pl-zon-teks span{font-weight:900}
.b9b-pl-zon.siap .b9b-pl-zon-no{background:#fff;border-color:#fff;color:#1F4E8C}
.b9b-pl-zon.siap .b9b-pl-zon-pin{opacity:1;transform:none}
.b9b-pl-zon.dibantu{border:2px dashed #FF8A8F}
.b9b-pelan.ada-pilih[data-fasa="kad"] .b9b-pl-zon{border-color:#FFE9A6;animation:b9b-seru 1.3s ease-in-out 2}
.b9b-pl-zon.b9b-dekat{background:rgba(255,233,166,.28);border-style:solid;transform:translateY(-2px)}
.b9b-pl-zon.salah{background:#F94F55;border:2px solid #fff;color:#fff;animation:goncang .4s}
.b9b-pl-zon.salah .b9b-pl-zon-teks small,.b9b-pl-zon.salah .b9b-pl-zon-no{color:#fff;border-color:#fff}
.b9b-pl-zon.kilat{background:#1A9A5C;border:2px solid #fff;color:#fff}
.b9b-pl-zon.kilat .b9b-pl-zon-teks small,.b9b-pl-zon.kilat .b9b-pl-zon-no{color:#fff;border-color:#fff}
.b9b-pl-slot-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.b9b-pl-slot{display:grid;align-content:start;gap:3px;min-width:0;min-height:54px;padding:5px 8px 6px;border-radius:6px;text-align:left;color:#fff;
  background:rgba(10,36,78,.5);border:1.5px solid rgba(226,238,255,.6);transition:background-color .2s ease,border-color .2s ease}
.b9b-pl-slot-label{font-size:.8125rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#FFE9A6;line-height:1.15}
.b9b-pl-slot-nama{min-height:1.3em;border-bottom:1.5px dashed rgba(226,238,255,.5);font-size:.9375rem;font-weight:900;line-height:1.25;overflow-wrap:break-word}
.b9b-pl-slot.isi{background:rgba(255,255,255,.12)}
.b9b-pl-slot.isi .b9b-pl-slot-nama{border-bottom:1.5px solid #fff}
.b9b-pl-slot.dibantu{border:2px dashed #FF8A8F}
.b9b-pelan.ada-pilih .b9b-pl-slot:not(.isi){border-color:#FFE9A6;animation:b9b-seru 1.3s ease-in-out 2}
.b9b-pl-slot.b9b-dekat{background:rgba(255,233,166,.28)}
.b9b-pl-slot.salah{background:#F94F55;border:2px solid #fff;animation:goncang .4s}
.b9b-pl-slot.salah .b9b-pl-slot-label{color:#fff}
.b9b-pl-nota-senarai{display:grid;gap:6px}
.b9b-pl-nota{display:flex;align-items:flex-start;gap:8px;min-height:46px;padding:6px 8px;border-radius:6px;border:1.5px dashed rgba(226,238,255,.55);background:rgba(10,36,78,.45)}
.b9b-pl-nota-no{flex:none;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;border:1.7px solid #FFE9A6;color:#FFE9A6;font-size:.875rem;font-weight:900}
.b9b-pl-nota-teks{min-width:0;font-size:.875rem;font-weight:800;line-height:1.3;color:#fff;overflow-wrap:break-word}
.b9b-pl-nota.isi{border:1.5px solid #fff;background:rgba(255,255,255,.1)}
.b9b-pl-nota.isi .b9b-pl-nota-no{background:#fff;border-color:#fff;color:#1F4E8C}
.b9b-pl-nota.dibantu{border:2px dashed #FF8A8F}
.b9b-pl-gerak.b9b-dekat .b9b-pl-nota:not(.isi){background:rgba(255,233,166,.25)}
.b9b-pl-anggota.masuk,.b9b-pl-gerak.masuk{animation:b9b-masuk-atas .4s ease-out both}
.b9b-pl-kaki{display:grid;gap:2px;padding-top:5px;border-top:1.5px solid rgba(226,238,255,.35)}
.b9b-pl-kaki-baris{font-size:.875rem;font-weight:700;line-height:1.35;color:#DDEBFF}
.b9b-pl-kaki-baris.masuk{animation:b9b-masuk-atas .4s ease-out both}
.b9b-pl-kaki-olahan{padding:0 30px;font-size:.8125rem;font-weight:800;letter-spacing:.04em;color:rgba(226,238,255,.75);text-align:center}
/* kad soalan di atas meja */
.b9b-pl-soal{display:grid;gap:8px;padding:12px;border-radius:18px;background:rgba(255,255,255,.98);box-shadow:var(--bayang)}
.b9b-pl-soal[hidden]{display:none}
.b9b-pl-soal.masuk{animation:b9b-masuk-atas .4s ease-out both}
.b9b-pl-soal-label,.b9b-mh-soal-label,.b9b-lk-soal-label{display:flex;align-items:center;gap:6px;font-size:.875rem;font-weight:900;letter-spacing:.06em;text-transform:uppercase;color:var(--teal-teks)}
.b9b-pl-soal-label .ikon,.b9b-mh-soal-label .ikon,.b9b-lk-soal-label .ikon{width:18px;height:18px}
.b9b-pl-soal-ops,.b9b-mh-soal-ops,.b9b-lk-soal-ops{grid-template-columns:minmax(0,1fr);gap:8px}
.b9b-pelan[data-fasa="soal"] .b9b-pl-kertas{filter:brightness(.8) saturate(.85)}
/* dulang gulungan, kad nama, kad gerak kerja, tong */
.b9b-pl-sisi{display:grid;gap:8px;align-content:start;min-width:0}
.b9b-pl-dulang-kepala{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;font-size:.875rem;font-weight:900;letter-spacing:.04em;text-transform:uppercase;color:#6B3F16}
.b9b-pl-dulang-kira{flex:none;padding:1px 8px;border-radius:9px;background:var(--ink);color:#fff;font-size:.875rem;letter-spacing:0;text-transform:none}
.b9b-pl-dulang-kira:empty{display:none}
.b9b-pl-dulang{display:grid;gap:9px;min-width:0}
.b9b-pl-slot-kad{display:grid;min-width:0}
.b9b-pl-slot-kad.kosong{display:none}
.b9b-pl-kad,.b9b-pl-langkah{position:relative;display:block;width:100%;min-width:0;min-height:64px;padding:14px 12px 10px;border-radius:5px 5px 10px 10px;text-align:left;color:var(--ink);
  background:linear-gradient(#FFFDF6,#FFF5DC);box-shadow:0 4px 0 rgba(120,80,20,.28),inset 0 0 0 1.5px #E6D3A6;touch-action:none;user-select:none;-webkit-user-select:none;
  transition:transform .18s ease,box-shadow .18s ease,background-color .18s ease,opacity .3s ease}
.b9b-pl-kad-gulung{position:absolute;left:-3px;right:-3px;top:-5px;height:12px;border-radius:6px;background:linear-gradient(#F6E7C2,#DDBF80 55%,#C9A55F);box-shadow:0 2px 2px rgba(0,0,0,.18)}
.b9b-pl-kad-teks,.b9b-pl-langkah-teks{display:block;font-size:.9375rem;font-weight:800;line-height:1.3;overflow-wrap:break-word}
.b9b-pl-langkah{padding-top:10px}
.b9b-pl-kad:active,.b9b-pl-langkah:active{transform:translateY(2px)}
.b9b-pl-kad.pilih,.b9b-pl-nama.pilih{transform:translateY(-4px) rotate(-1deg);background:#FFF6D8;box-shadow:0 8px 0 var(--emas-d),inset 0 0 0 3px var(--emas)}
.b9b-pl-kad.salah,.b9b-pl-nama.salah,.b9b-pl-langkah.salah{background:var(--salah-bg);box-shadow:0 4px 0 var(--merah-d),inset 0 0 0 3px #E0555D;color:var(--salah-teks)}
.b9b-pl-kad.masuk{animation:b9b-gulung .42s ease-out both}
@keyframes b9b-gulung{from{transform:scaleY(.25);opacity:0}to{transform:none;opacity:1}}
.b9b-pl-kad.b9b-diseret,.b9b-pl-nama.b9b-diseret,.b9b-pl-langkah.b9b-diseret{opacity:.35}
.b9b-pl-langkah.kilat,.b9b-pl-nama.kilat{background:var(--betul-bg);box-shadow:0 4px 0 #1E9E63,inset 0 0 0 3px var(--hijau)}
.b9b-pl-langkah.guna,.b9b-pl-nama.guna{display:none}
.b9b-pl-nama{display:flex;align-items:center;width:100%;min-width:0;min-height:48px;padding:6px 10px;border-radius:10px;background:#FFFDF6;color:var(--ink);text-align:left;
  box-shadow:0 3px 0 rgba(120,80,20,.25),inset 0 0 0 1.5px #E6D3A6;touch-action:none;user-select:none;-webkit-user-select:none;transition:transform .18s ease,box-shadow .18s ease,opacity .3s ease}
.b9b-pl-nama-teks{font-size:.875rem;font-weight:900;line-height:1.2;overflow-wrap:break-word}
.b9b-pl-nama.tolak{visibility:visible;opacity:.45;background:rgba(255,255,255,.5);box-shadow:none;text-decoration:line-through}
.b9b-pl-renyuk{border-radius:8px;background:#FFF8E6;box-shadow:0 4px 8px rgba(0,0,0,.2)}
.b9b-pl-renyuk.b9b-bola{border-radius:50%!important;background:radial-gradient(circle at 35% 32%,#FFFDF6,#EAD9AE 62%,#CDB47E)!important;box-shadow:inset -3px -3px 6px rgba(120,80,20,.25),0 3px 5px rgba(0,0,0,.2)!important}
.b9b-pl-renyuk.b9b-bola > *{opacity:0}
.b9b-pl-tong{position:relative;display:grid;grid-template-columns:64px minmax(0,1fr);align-items:center;gap:8px;min-height:72px;padding:6px 10px 6px 8px;border-radius:14px;color:#6B3F16;text-align:left;
  background:rgba(255,248,230,.6);border:2px dashed rgba(138,82,38,.5);transition:background-color .2s ease,transform .15s ease,border-color .2s ease}
.b9b-pl-tong-svg{width:64px;height:56px;overflow:visible}
.b9b-pl-tong-badan{fill:#D9A86A;stroke:#8A5226;stroke-width:1.6;stroke-linejoin:round}
.b9b-pl-tong-anyam{fill:none;stroke:#B8743C;stroke-width:1.3}
.b9b-pl-tong-bibir{fill:#B8743C;stroke:#8A5226;stroke-width:1.2}
.b9b-pl-bola circle{fill:#FFF8E6;stroke:#B8743C;stroke-width:1}
.b9b-pl-bola path{fill:none;stroke:#C9A55F;stroke-width:.9}
.b9b-pl-bola.dibantu circle{stroke:#F94F55;stroke-width:1.4}
.b9b-pl-tong-label{font-size:.875rem;font-weight:900;line-height:1.2}
.b9b-pl-tong-kira{position:absolute;right:6px;top:5px;min-width:22px;padding:0 6px;border-radius:10px;background:#8A5226;color:#fff;font-size:.8125rem;font-weight:900;text-align:center}
.b9b-pl-tong-kira:empty{display:none}
.b9b-pelan.ada-pilih .b9b-pl-tong{border-color:var(--emas-d);background:rgba(255,241,191,.75)}
.b9b-pl-tong.b9b-dekat{background:#FFF1BF;transform:translateY(-2px)}
.b9b-pl-tong.salah{background:var(--salah-bg);border:2px solid #E0555D;color:var(--salah-teks);animation:goncang .4s}
.b9b-pl-tong.kilat{background:var(--betul-bg);border:2px solid var(--hijau);color:var(--betul-teks)}
.b9b-pl-tong.terima .b9b-pl-tong-svg{animation:b9b-lantun .5s ease-out}
.b9b-pelan:not([data-fasa="kad"]) .b9b-pl-tong{display:none}
.b9b-pelan[data-fasa="soal"] .b9b-pl-dulang-kepala,.b9b-pelan[data-fasa="soal"] .b9b-pl-dulang,.b9b-pelan[data-fasa="mula"] .b9b-pl-dulang-kepala,.b9b-pelan[data-fasa="tamat"] .b9b-pl-dulang-kepala{display:none}
.b9b-pl-rumus{display:grid;gap:10px}
.b9b-pl-mini-bingkai{justify-self:center;width:min(100%,250px);padding:6px;border-radius:8px;background-color:#1F4E8C;
  background-image:linear-gradient(rgba(255,255,255,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 1px);background-size:12px 12px;box-shadow:var(--lip)}
.b9b-pl-mini{width:100%;height:auto}

/* =====================================================================================
   9.5 MOHOR · MOHOR MEMORANDUM
   ===================================================================================== */
.b9b-mohor{display:grid;gap:10px;min-width:0}
.b9b-mh-bilik{display:grid;gap:10px;min-width:0}
.b9b-mh-meja{min-width:0;padding:8px;border-radius:22px;background:linear-gradient(#A8703C,#8A5226);box-shadow:var(--bayang),inset 0 0 0 2px #6E3F1B}
.b9b-mh-alas{position:relative;display:grid;gap:8px;min-width:0;padding:10px;border-radius:15px;
  background:radial-gradient(rgba(255,255,255,.07) 1px,transparent 1.2px) 0 0/7px 7px,linear-gradient(#1D8174,#12645A);
  box-shadow:inset 0 0 0 2px rgba(0,0,0,.2),inset 0 4px 10px rgba(0,0,0,.25)}
.b9b-mh-atas-meja{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;min-width:0}
.b9b-mh-dulang{display:flex;align-items:center;gap:8px;min-width:0;color:#E7FFF8}
.b9b-mh-timbunan{position:relative;flex:none;width:48px;height:36px}
.b9b-mh-timbunan::before,.b9b-mh-timbunan::after{content:"";position:absolute;left:3px;right:3px;height:25px;border-radius:3px;background:#FFF3D6;box-shadow:0 1px 0 rgba(0,0,0,.25),inset 0 0 0 1px #E3CFA3;transition:opacity .3s ease}
.b9b-mh-timbunan::before{top:1px;transform:rotate(-5deg)}
.b9b-mh-timbunan::after{top:8px;transform:rotate(3deg)}
.b9b-mh-timbunan[data-n="1"]::before,.b9b-mh-timbunan[data-n="0"]::before{opacity:0}
.b9b-mh-timbunan[data-n="0"]::after{opacity:.2}
.b9b-mh-dulang-teks{display:grid;line-height:1.15}
.b9b-mh-dulang-teks small{font-size:.8125rem;font-weight:900;letter-spacing:.03em;text-transform:uppercase;opacity:.85}
.b9b-mh-dulang-kira{font-size:.9375rem;font-weight:900}
.b9b-mh-kaunter{display:flex;align-items:center;gap:7px;padding:4px 5px 4px 9px;border-radius:11px;background:#0D4A43;box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.2)}
.b9b-mh-kaunter small{flex:none;width:min-content;font-size:.8125rem;font-weight:900;letter-spacing:0;line-height:1.1;text-transform:uppercase;color:#CFF5EC}
.b9b-mh-digit{padding:2px 7px;border-radius:7px;background:#1B2A5C;color:#FFE27A;font-size:1.25rem;font-weight:900;letter-spacing:.14em;box-shadow:inset 0 -2px 0 rgba(0,0,0,.35)}
.b9b-mh-kaunter.naik .b9b-mh-digit{animation:b9b-kaunter .64s ease-out}
@keyframes b9b-kaunter{35%{transform:translateY(-2px);box-shadow:inset 0 -2px 0 rgba(0,0,0,.35),0 0 0 3px rgba(255,226,122,.55)}}
.b9b-mh-ruang{position:relative;display:grid;place-items:center;min-width:0;min-height:228px}
.b9b-mh-ruang > *{grid-area:1/1}
/* sampul */
.b9b-mh-sampul{position:relative;width:min(100%,330px);aspect-ratio:100/62;border-radius:5px;background:linear-gradient(#FFF7E1,#FBEAC3);box-shadow:0 7px 14px rgba(0,0,0,.32),inset 0 0 0 1px #E3CFA3}
.b9b-mh-sampul-svg{position:absolute;inset:0;width:100%;height:100%}
.b9b-mh-sampul-kertas{fill:none;stroke:none}
.b9b-mh-sampul-lipat{fill:none;stroke:#EAD6AA;stroke-width:.8}
.b9b-mh-kepak{position:absolute;left:3%;right:3%;top:0;height:8px;border-radius:0 0 50% 50%/0 0 100% 100%;background:#5C3A1E;opacity:0;transition:opacity .3s ease}
.b9b-mh-sampul.terbuka .b9b-mh-kepak{opacity:.5}
.b9b-mh-belah{position:absolute;left:3%;top:3px;height:2px;width:0;background:#6E3F1B}
.b9b-mh-sampul.belah .b9b-mh-belah{width:94%;transition:width .42s linear}
.b9b-mh-sampul-cop{position:absolute;left:7%;top:15%;padding:2px 9px;border:2.5px solid #12998A;border-radius:7px;color:#0C776B;font-size:.8125rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase;transform:rotate(-6deg)}
.b9b-mh-sampul-alamat{position:absolute;left:28%;right:7%;bottom:12%;display:grid;gap:1px;padding-top:4px;border-top:1.5px solid rgba(90,70,48,.3);font-size:.875rem;font-weight:800;line-height:1.25;color:#5A4630}
.b9b-mh-sampul-alamat small{font-size:.8125rem;font-weight:900;letter-spacing:.06em;text-transform:uppercase;color:#8A6E4B}
.b9b-mh-sampul.datang{animation:b9b-sampul-datang .6s ease-out both}
@keyframes b9b-sampul-datang{from{transform:translateX(-150px) rotate(-9deg);opacity:0}to{transform:none;opacity:1}}
.b9b-mh-sampul.turun{animation:b9b-sampul-turun .48s ease-in forwards}
@keyframes b9b-sampul-turun{to{transform:translateY(70px) scale(.9);opacity:0}}
/* surat */
.b9b-mh-surat{position:relative;z-index:2;display:grid;gap:6px;width:min(100%,410px);min-width:0;padding:12px 16px 12px;border-radius:4px;color:var(--ink);
  background:repeating-linear-gradient(#FFFFFF 0 27px,#E9EEF9 27px 28px);box-shadow:0 9px 18px rgba(0,0,0,.32);transform-origin:50% 100%}
.b9b-mh-surat.keluar{animation:b9b-surat-keluar .48s ease-out both}
@keyframes b9b-surat-keluar{0%{transform:translateY(46px) scaleY(.22);opacity:0}55%{opacity:1}100%{transform:none;opacity:1}}
.b9b-mh-surat.lipat{animation:b9b-surat-lipat .43s ease-in forwards}
@keyframes b9b-surat-lipat{to{transform:translateY(34px) scaleY(.3);filter:brightness(.95)}}
.b9b-mh-surat-kepala{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 8px;padding-bottom:3px;border-bottom:2px solid #12998A}
.b9b-mh-surat-kepala b{font-size:.875rem;font-weight:900;letter-spacing:.14em;text-transform:uppercase;color:#0C776B}
.b9b-mh-surat-kepala small{font-size:.8125rem;font-weight:700;color:var(--ink2)}
.b9b-mh-surat-kepada{font-size:.875rem;font-weight:700;line-height:1.3;color:var(--ink2)}
.b9b-mh-surat-isi{font-size:1.125rem;font-weight:800;line-height:1.4;overflow-wrap:break-word}
.b9b-mh-surat-kaki{display:flex;align-items:flex-end;gap:10px;min-height:90px}
.b9b-mh-petunjuk{flex:1 1 auto;display:flex;align-items:flex-start;gap:6px;padding:6px 10px;border-radius:10px;background:#FFF4C9;font-size:.875rem;font-weight:800;line-height:1.3;color:#6B5200}
.b9b-mh-petunjuk .ikon{width:17px;height:17px;flex:none;margin-top:1px}
.b9b-mh-lilin{position:relative;flex:none;width:90px;height:90px;margin-left:auto;display:grid;place-items:center;border-radius:50%;border:2px dashed #9AA7CF}
.b9b-mh-lilin-sedia{padding:0 8px;font-size:.8125rem;font-weight:900;line-height:1.15;text-align:center;color:#7D8FC0}
.b9b-mh-lilin.ada{border-color:transparent}
.b9b-mh-lilin.ada .b9b-mh-lilin-sedia{display:none}
.b9b-mh-surat.b9b-dekat{box-shadow:0 9px 18px rgba(0,0,0,.32),0 0 0 4px var(--emas)}
.b9b-mh-cap{position:absolute;inset:-3px;display:grid;place-items:center;animation:b9b-lilin .3s ease-out both;transition:opacity .3s ease,transform .3s ease}
@keyframes b9b-lilin{from{transform:scale(.3);opacity:.5}to{transform:none;opacity:1}}
.b9b-mh-cap-svg{position:absolute;inset:0;width:100%;height:100%}
.b9b-mh-lilin-luar{fill:var(--wd);stroke:rgba(0,0,0,.2);stroke-width:1.5}
.b9b-mh-lilin-cincin{fill:var(--w);stroke:var(--wt);stroke-width:1.3;stroke-opacity:.4}
.b9b-mh-lilin-retak{fill:none;stroke:#fff;stroke-width:2.8;stroke-linecap:round;stroke-linejoin:round;opacity:0}
.b9b-mh-cap-nama{position:relative;max-width:66px;font-size:.75rem;font-weight:900;line-height:1.1;text-align:center;color:var(--wt);overflow-wrap:break-word}
.b9b-mh-cap.retak{animation:goncang .4s}
.b9b-mh-cap.retak .b9b-mh-lilin-luar{fill:#F94F55}
.b9b-mh-cap.retak .b9b-mh-lilin-cincin{fill:#FFA3A7;stroke:#C9323F}
.b9b-mh-cap.retak .b9b-mh-lilin-retak{opacity:1;transition:opacity .2s ease .05s}
.b9b-mh-cap.retak .b9b-mh-cap-nama{color:#7A1520}
.b9b-mh-cap.hilang{opacity:0;transform:scale(.8)}
.b9b-mh-cap.dibantu .b9b-mh-lilin-luar{stroke:#F94F55;stroke-width:3.4;stroke-dasharray:7 4}
.b9b-mh-aksi{display:flex;align-items:center;justify-content:center;gap:12px}
.b9b-mh-aksi[hidden]{display:none}
/* pisau dan Buka hanya semasa ada sampul untuk dibuka, supaya surat yang terbuka tidak menindih butang */
.b9b-mohor:not([data-fasa="mula"]):not([data-fasa="datang"]):not([data-fasa="buka"]):not([data-fasa="membuka"]) .b9b-mh-aksi{display:none}
.b9b-mh-pisau{display:grid;place-items:center;width:66px;height:50px;border-radius:12px;background:rgba(255,255,255,.14);box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.25);touch-action:none}
.b9b-mh-pisau[disabled]{opacity:.4;cursor:default}
.b9b-mh-pisau-svg{width:50px;height:27px}
.b9b-mh-pisau-terbang{background:none!important;box-shadow:none!important;overflow:visible!important}
.b9b-mh-buka{min-width:150px}
.b9b-mh-buka[disabled]{opacity:.55;cursor:default}
.b9b-mh-buka-ikon{width:30px;height:17px}
.b9b-mh-soal{display:grid;gap:8px;padding:12px;border-radius:16px;background:#fff;box-shadow:var(--bayang)}
.b9b-mh-soal[hidden]{display:none}
.b9b-mh-soal.masuk{animation:b9b-masuk-atas .4s ease-out both}
.b9b-mohor[data-fasa="soal"] .b9b-mh-ruang,.b9b-mohor[data-fasa="tamat"] .b9b-mh-ruang{display:none}
/* rak mohor */
.b9b-mh-rak{display:grid;gap:8px;align-content:start;min-width:0;padding:10px;border-radius:20px;background:linear-gradient(#F0D6A6,#E2BD7E);box-shadow:var(--lip),inset 0 0 0 2px #C9985A}
.b9b-mh-rak-label{font-size:.875rem;font-weight:900;letter-spacing:.05em;text-transform:uppercase;color:#6B3F16}
.b9b-mh-rak-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.b9b-mh-mohor{position:relative;display:grid;justify-items:center;align-content:start;gap:2px;min-width:0;min-height:92px;padding:4px 5px 7px;border-radius:14px;color:var(--ink);
  background:rgba(255,255,255,.6);box-shadow:0 3px 0 rgba(120,80,20,.28);touch-action:none;transition:transform .15s ease,background-color .2s ease,box-shadow .2s ease}
.b9b-mh-mohor-kepala{display:block;width:52px;height:50px}
.b9b-mh-mohor-svg{display:block;width:100%;height:100%;overflow:visible}
.b9b-mh-dasar{fill:var(--w);stroke:var(--wd);stroke-width:1.8}
.b9b-mh-muka{fill:var(--wd)}
.b9b-mh-mohor-label{font-size:.875rem;font-weight:900;line-height:1.15;text-align:center;overflow-wrap:break-word}
@media (hover:hover){.b9b-mohor[data-fasa="mohor"] .b9b-mh-mohor:hover{background:#fff;transform:translateY(-2px)}}
.b9b-mohor[data-fasa="mohor"] .b9b-mh-mohor{box-shadow:0 3px 0 rgba(120,80,20,.28),inset 0 0 0 2px rgba(232,151,26,.55)}
.b9b-mh-mohor.angkat .b9b-mh-mohor-kepala{visibility:hidden}
.b9b-mh-mohor.salah{background:var(--salah-bg);box-shadow:0 3px 0 var(--merah-d),inset 0 0 0 3px #E0555D;animation:goncang .4s}
.b9b-mh-mohor.salah .b9b-mh-mohor-label{color:var(--salah-teks)}
.b9b-mh-mohor.kilat{background:var(--betul-bg);box-shadow:0 3px 0 #1E9E63,inset 0 0 0 3px var(--hijau)}
.b9b-mh-mohor.b9b-diseret{opacity:.4}
.b9b-mh-kepala-terbang{overflow:visible!important}
.b9b-mh-kepala-terbang .b9b-mh-mohor-svg{filter:drop-shadow(0 8px 6px rgba(0,0,0,.28))}
.b9b-mohor[data-fasa="soal"] .b9b-mh-rak,.b9b-mohor[data-fasa="tamat"] .b9b-mh-rak{opacity:.55;pointer-events:none}
/* dulang tema */
.b9b-mh-bekas-baris{display:grid;grid-template-columns:repeat(var(--n,3),minmax(0,1fr));gap:8px;min-width:0}
.b9b-mh-bekas{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;min-width:0;min-height:54px;padding:6px 10px;border-radius:14px;
  color:#fff;background:linear-gradient(#C98B4F,#B37037);box-shadow:0 4px 0 #8A5226,inset 0 2px 0 rgba(255,255,255,.22)}
.b9b-mh-bekas-timbun{position:relative;width:32px;height:26px}
.b9b-mh-bekas-timbun::before,.b9b-mh-bekas-timbun::after{content:"";position:absolute;left:1px;right:1px;height:14px;border-radius:2px;background:#FFFDF6;box-shadow:0 1px 0 rgba(0,0,0,.25);opacity:0;transition:opacity .3s ease}
.b9b-mh-bekas-timbun::before{top:4px;transform:rotate(-4deg)}
.b9b-mh-bekas-timbun::after{top:10px;transform:rotate(3deg)}
.b9b-mh-bekas-timbun:not([data-n])::before,.b9b-mh-bekas-timbun:not([data-n])::after{opacity:.18}
.b9b-mh-bekas-timbun[data-n]::after{opacity:1}
.b9b-mh-bekas-timbun[data-n="2"]::before,.b9b-mh-bekas-timbun[data-n="3"]::before,.b9b-mh-bekas-timbun[data-n="4"]::before{opacity:1}
.b9b-mh-bekas-nama{min-width:0;font-size:.875rem;font-weight:900;line-height:1.2;overflow-wrap:break-word}
.b9b-mh-bekas-kira{min-width:26px;padding:1px 7px;border-radius:10px;background:rgba(0,0,0,.25);font-size:.875rem;text-align:center}
.b9b-mh-bekas.terima{animation:b9b-lantun .5s ease-out}
.b9b-mh-surat-terbang{box-shadow:0 6px 10px rgba(0,0,0,.3)!important}

/* =====================================================================================
   9.6 LEKAT · DRAF BERTAMPAL
   ===================================================================================== */
.b9b-lekat{display:grid;gap:10px;min-width:0}
.b9b-lk-papan{display:grid;gap:10px;min-width:0}
.b9b-lk-gabus{position:relative;min-width:0;padding:14px 12px;border-radius:18px;
  background:radial-gradient(circle at 30% 30%,rgba(90,50,15,.2) 1.1px,transparent 1.6px) 0 0/11px 11px,radial-gradient(circle at 70% 60%,rgba(255,240,210,.28) 1px,transparent 1.5px) 3px 5px/9px 9px,linear-gradient(#CD9C62,#BD8650);
  box-shadow:var(--bayang),inset 0 0 0 7px #8A5226,inset 0 0 0 9px #6E3F1B}
.b9b-lk-helai{position:relative;display:grid;gap:8px;min-width:0;padding:22px 14px 14px;border-radius:3px;background:#FFFEF8;color:var(--ink);box-shadow:0 6px 12px rgba(40,20,5,.35)}
.b9b-lk-pin{position:absolute;top:6px;width:14px;height:14px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#FFF2B8,#E8971A 70%);box-shadow:0 2px 2px rgba(0,0,0,.35)}
.b9b-lk-pin.p1{left:14px}
.b9b-lk-pin.p2{right:14px}
.b9b-lk-helai-kepala{display:grid;justify-items:center;gap:1px;padding:0 20px 6px;border-bottom:2px solid var(--ink);text-align:center}
.b9b-lk-helai-kepala b{font-size:.9375rem;font-weight:900;letter-spacing:.05em;line-height:1.25;text-transform:uppercase}
.b9b-lk-helai-kepala small{font-size:.8125rem;font-weight:700;color:var(--ink2)}
.b9b-lk-senarai{display:grid;gap:6px}
.b9b-lk-li{display:block;min-width:0}
.b9b-lk-baris{position:relative;display:grid;grid-template-columns:22px minmax(0,1fr) auto;align-items:start;gap:3px 8px;width:100%;min-height:48px;padding:6px 8px;border-radius:8px;text-align:left;color:var(--ink);
  background:transparent;border:1.5px dashed #C9D2E6;transition:background-color .2s ease,border-color .2s ease}
.b9b-lk-baris-no{font-size:.9375rem;font-weight:900;line-height:1.35}
.b9b-lk-baris-teks{min-width:0;min-height:1.35em;font-size:.9375rem;font-weight:700;line-height:1.35;letter-spacing:.01em;overflow-wrap:break-word}
.b9b-lk-baris:not(.isi) .b9b-lk-baris-teks:empty{background:repeating-linear-gradient(90deg,#C9D2E6 0 4px,transparent 4px 8px) 0 100%/100% 2px no-repeat}
.b9b-lk-baris.isi{border:1.5px solid #E3E9F7;background:#fff}
.b9b-lk-nota-zon{grid-column:3;grid-row:1 / span 2;display:flex;flex-wrap:wrap;justify-content:flex-end;align-content:flex-start;gap:4px;max-width:140px}
.b9b-lk-nota-zon:empty{display:none}
.b9b-lk-kira{grid-column:2;justify-self:start;padding:0 8px;border-radius:9px;background:#EEF2FB;font-size:.8125rem;font-weight:900;color:var(--ink2)}
.b9b-lk-kira.masuk{animation:lompat .38s ease-out both}
.b9b-lk-baris.ada-nota .b9b-lk-kira,.b9b-lk-tambahan.ada-nota .b9b-lk-kira{background:var(--ink);color:#fff}
.b9b-lekat[data-fasa="lekat"] .b9b-lk-baris,.b9b-lekat[data-fasa="lekat"] .b9b-lk-tambahan{border-color:var(--emas-d);box-shadow:0 0 0 2px rgba(255,201,51,.28)}
.b9b-lk-baris.b9b-dekat,.b9b-lk-tambahan.b9b-dekat{background:#FFF6D8}
.b9b-lk-baris.salah,.b9b-lk-tambahan.salah{background:var(--salah-bg);border:2px solid #E0555D;animation:goncang .4s}
.b9b-lk-baris.kilat,.b9b-lk-tambahan.kilat{background:var(--betul-bg);border:2px solid var(--hijau)}
.b9b-lk-tambahan-kotak{padding-top:2px}
.b9b-lk-tambahan{display:grid;gap:6px;width:100%;min-height:74px;padding:8px 10px;border-radius:10px;text-align:left;color:var(--ink);border:2px dashed #9AA7CF;
  background:repeating-linear-gradient(-45deg,#F7F9FE 0 8px,#EEF2FB 8px 16px);transition:background-color .2s ease,border-color .2s ease}
.b9b-lk-tambahan-kepala{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 8px}
.b9b-lk-tambahan-kepala b{font-size:.9375rem;font-weight:900;letter-spacing:.05em;text-transform:uppercase}
.b9b-lk-tambahan-kepala small{font-size:.8125rem;font-weight:700;color:var(--ink2)}
.b9b-lk-nota-zon.tambahan{max-width:none;justify-content:flex-start}
.b9b-lk-tambahan .b9b-lk-kira{justify-self:start}
/* nota melekit kecil */
.b9b-lk-nota{display:grid;place-items:center;min-width:62px;max-width:96px;min-height:42px;padding:4px 5px;border-radius:2px 2px 9px 2px;background:var(--w);color:var(--wt);font-size:.75rem;font-weight:900;line-height:1.12;text-align:center;overflow-wrap:break-word;
  box-shadow:0 2px 3px rgba(40,20,5,.3);transform:rotate(var(--putar,0deg))}
.b9b-lk-nota.lekat{animation:b9b-lekat .44s ease-out}
@keyframes b9b-lekat{0%{transform:rotate(var(--putar,0deg)) scale(1.3)}60%{transform:rotate(var(--putar,0deg)) scale(.93)}100%{transform:rotate(var(--putar,0deg))}}
.b9b-lk-nota.dibantu{outline:2px dashed #C9323F;outline-offset:1px}
.b9b-lk-nota.salah{background:#F94F55;color:#fff}
.b9b-lk-nota.b9b-terbang{box-shadow:0 10px 16px rgba(27,42,92,.3)}
/* sisi: jalur, kad aktif, pad */
.b9b-lk-sisi{display:grid;gap:8px;align-content:start;min-width:0}
.b9b-lk-sisi-label{font-size:.875rem;font-weight:900;letter-spacing:.05em;text-transform:uppercase;color:var(--teal-teks)}
.b9b-lk-dulang{display:grid;gap:8px;min-width:0}
.b9b-lk-jalur{position:relative;display:block;width:100%;min-width:0;min-height:48px;padding:8px 14px;text-align:left;color:var(--ink);background:#fff;font-size:.9375rem;font-weight:800;line-height:1.3;letter-spacing:.01em;
  box-shadow:0 3px 0 rgba(27,42,92,.16),inset 0 0 0 1.5px #D9E1F2;clip-path:polygon(0 0,100% 0,98.8% 50%,100% 100%,0 100%,1.2% 50%);touch-action:none;user-select:none;-webkit-user-select:none;
  transition:transform .18s ease,opacity .3s ease,background-color .2s ease}
.b9b-lk-jalur-teks{display:block;overflow-wrap:break-word}
.b9b-lk-jalur:active{transform:translateY(2px)}
.b9b-lk-jalur.salah{background:var(--salah-bg);color:var(--salah-teks);box-shadow:inset 0 0 0 2.5px #E0555D;animation:goncang .4s}
.b9b-lk-jalur.guna{display:none}
.b9b-lk-jalur.tolak{opacity:.62;background:#F1F2F6;cursor:default}
.b9b-lk-jalur.tolak .b9b-lk-jalur-teks{text-decoration:line-through;text-decoration-color:rgba(163,34,46,.55);color:var(--ink2)}
.b9b-lk-jalur-cop{position:absolute;right:8px;bottom:4px;padding:0 7px;border:2.5px solid #C9323F;border-radius:6px;color:#C9323F;background:rgba(255,255,255,.9);font-size:.8125rem;font-weight:900;letter-spacing:.04em;text-transform:uppercase;transform:rotate(-5deg)}
.b9b-lk-jalur.b9b-diseret{opacity:.35}
.b9b-lk-jalur.bercop{padding-bottom:28px}
.b9b-lk-aktif{position:relative;display:grid;gap:4px;min-width:0;padding:12px 14px 12px 34px;border-radius:14px;background:#fff;color:var(--ink);box-shadow:var(--bayang);
  transition:background-color .3s ease,transform .3s ease,opacity .25s ease;touch-action:none}
.b9b-lk-aktif.masuk{animation:lompat .38s ease-out both}
.b9b-lk-aktif-petik{position:absolute;left:9px;top:3px;font-size:2rem;font-weight:900;line-height:1;color:var(--teal)}
.b9b-lk-aktif-tag{justify-self:start;padding:1px 8px;border-radius:8px;background:#EEF2FB;font-size:.8125rem;font-weight:900;letter-spacing:.04em;text-transform:uppercase;color:var(--ink2)}
.b9b-lk-aktif-teks{font-size:1rem;font-weight:800;line-height:1.35;overflow-wrap:break-word}
.b9b-lk-aktif.bernota{background:var(--w);color:var(--wt);border-radius:3px 3px 18px 3px;transform:rotate(-1.2deg);box-shadow:0 9px 16px rgba(27,42,92,.25)}
.b9b-lk-aktif.bernota .b9b-lk-aktif-tag{background:rgba(255,255,255,.6);color:var(--wt)}
.b9b-lk-aktif.bernota .b9b-lk-aktif-petik{color:var(--wd)}
.b9b-lk-aktif.dibantu{outline:3px dashed #C9323F;outline-offset:2px}
.b9b-lk-aktif.kosong{opacity:.25}
.b9b-lk-pad-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 10px;padding:0 4px 4px 0}
.b9b-lk-pad{position:relative;display:grid;place-items:center;min-width:0;min-height:62px;padding:8px 8px 10px;border-radius:3px 3px 12px 3px;color:var(--wt);background:var(--w);
  box-shadow:0 2px 0 var(--wd),3px 4px 0 -1px var(--w),3px 4px 0 0 rgba(0,0,0,.14),6px 7px 0 -2px var(--w),6px 7px 0 -1px rgba(0,0,0,.12);
  touch-action:none;transition:transform .15s ease,box-shadow .2s ease}
.b9b-lk-pad-helai{position:absolute;left:0;right:0;top:0;height:8px;border-radius:3px 3px 0 0;background:rgba(0,0,0,.08)}
.b9b-lk-pad-nama{position:relative;font-size:.875rem;font-weight:900;line-height:1.2;text-align:center;overflow-wrap:break-word}
@media (hover:hover){.b9b-lekat[data-fasa="siapa"] .b9b-lk-pad:hover{transform:translateY(-2px)}}
.b9b-lekat[data-fasa="lekat"] .b9b-lk-pad{opacity:.55}
.b9b-lk-pad.kupas{animation:b9b-kupas .32s ease-out}
@keyframes b9b-kupas{40%{transform:translateY(-4px) rotate(-3deg)}100%{transform:none}}
.b9b-lk-pad.salah{background:#F94F55;color:#fff;box-shadow:0 2px 0 #C9323F,0 0 0 3px #fff,0 0 0 5px #F94F55;animation:goncang .4s}
.b9b-lk-pad.kilat{box-shadow:0 2px 0 var(--wd),0 0 0 3px #fff,0 0 0 6px var(--hijau)}
.b9b-lk-pad.b9b-diseret{opacity:.4}
.b9b-lk-kupas{display:grid;place-items:center;padding:6px;border-radius:3px 3px 12px 3px;background:var(--w);color:var(--wt);font-size:.8125rem;font-weight:900;line-height:1.15;text-align:center;box-shadow:0 10px 16px rgba(27,42,92,.3)}
.b9b-lk-soal{display:grid;gap:8px;padding:12px;border-radius:16px;background:#fff;box-shadow:var(--bayang)}
.b9b-lk-soal[hidden]{display:none}
.b9b-lk-soal.masuk{animation:b9b-masuk-atas .4s ease-out both}
.b9b-lk-sisi-label[hidden],.b9b-lk-aktif[hidden],.b9b-lk-pad-grid[hidden],.b9b-lk-dulang[hidden]{display:none}

/* =====================================================================================
   MOD LEBAR (pentas 1280 x 720; .main-badan: left 300, width 720, top 88, bottom 12)
   ===================================================================================== */
body.mod-lebar .b2-main.b2-j-pelan .main-badan,body.mod-lebar .b2-main.b2-j-mohor .main-badan,body.mod-lebar .b2-main.b2-j-lekat .main-badan{left:300px;width:720px;top:88px;bottom:12px;display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden}
body.mod-lebar .b2-p-pelan,body.mod-lebar .b2-p-mohor,body.mod-lebar .b2-p-lekat{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;gap:10px}
body.mod-lebar .b9b-pelan,body.mod-lebar .b9b-mohor,body.mod-lebar .b9b-lekat{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;gap:10px}
body.mod-lebar .b9b-pelan > .b2-atas,body.mod-lebar .b9b-mohor > .b2-atas,body.mod-lebar .b9b-lekat > .b2-atas{flex:none}
body.mod-lebar .b2-j-pelan .b2-kad-isi,body.mod-lebar .b2-j-mohor .b2-kad-isi,body.mod-lebar .b2-j-lekat .b2-kad-isi{font-size:1.1875rem}
body.mod-lebar .b2-j-pelan .b2-kad,body.mod-lebar .b2-j-mohor .b2-kad,body.mod-lebar .b2-j-lekat .b2-kad{padding:9px 20px 10px}
body.mod-lebar .b2-j-mohor .bisik{min-height:48px;padding:7px 14px;font-size:.9375rem;line-height:1.32}
body.mod-lebar .b2-p-pelan > .b2-rumus,body.mod-lebar .b2-p-mohor > .b2-rumus,body.mod-lebar .b2-p-lekat > .b2-rumus{flex:0 1 auto;min-height:0;display:flex;flex-direction:column;gap:10px}
body.mod-lebar .b2-p-pelan > .b2-rumus > *,body.mod-lebar .b2-p-mohor > .b2-rumus > *,body.mod-lebar .b2-p-lekat > .b2-rumus > *{flex:none}
body.mod-lebar .b2-p-pelan > .b2-rumus > .b9b-pl-rumus,body.mod-lebar .b2-p-pelan > .b2-rumus > .b2-rumus-tokoh,
body.mod-lebar .b2-p-mohor > .b2-rumus > .b2-rumus-tokoh,body.mod-lebar .b2-p-lekat > .b2-rumus > .b2-rumus-tokoh{flex:0 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-right:4px}
body.mod-lebar .b2-p-mohor > .b2-rumus > .b2-rumus-tokoh,body.mod-lebar .b2-p-lekat > .b2-rumus > .b2-rumus-tokoh{grid-template-columns:1fr}
/* pelan */
body.mod-lebar .b9b-pl-meja{flex:1 1 auto;min-height:0;grid-template-columns:462px minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:12px;align-items:stretch}
body.mod-lebar .b9b-pl-kertas{min-height:0;display:flex;flex-direction:column;gap:7px}
body.mod-lebar .b9b-pl-kepala,body.mod-lebar .b9b-pl-panel,body.mod-lebar .b9b-pl-kaki{flex:none}
body.mod-lebar .b9b-pl-lukisan{flex:1 1 auto;min-height:0}
body.mod-lebar .b9b-pl-svg{width:100%;height:100%}
body.mod-lebar .b9b-pl-kaki-baris{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.mod-lebar .b9b-pl-sisi{min-height:0;display:flex;flex-direction:column;gap:8px;overflow:hidden}
body.mod-lebar .b9b-pl-sisi > *{flex:none}
body.mod-lebar .b9b-pl-sisi > .bisik{min-height:0;align-items:flex-start;padding:8px 12px;font-size:.875rem;line-height:1.32}
body.mod-lebar .b9b-pl-sisi > .b9b-pl-dulang{flex:0 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;align-content:start;padding:6px 4px 6px 2px}
body.mod-lebar .b9b-pl-kad{min-height:58px}
body.mod-lebar .b9b-pl-zon-grid{gap:5px}
body.mod-lebar .b9b-pl-zon{min-height:44px;padding:3px 16px 3px 6px;gap:6px}
body.mod-lebar .b9b-pl-zon:last-child:nth-child(odd){grid-column:1 / -1}
body.mod-lebar .b9b-pl-dulang-kepala{font-size:.8125rem;letter-spacing:0}
body.mod-lebar .b9b-pl-soal{position:absolute;z-index:6;left:22px;top:50%;width:438px;max-height:calc(100% - 30px);overflow-y:auto;transform:translateY(-50%)}
body.mod-lebar .b9b-pl-soal.masuk{animation:none}
body.mod-lebar .b9b-pl-rumus{grid-template-columns:210px minmax(0,1fr);align-items:start}
body.mod-lebar .b9b-pl-rumus .b2-rumus-tokoh{grid-template-columns:1fr 1fr}
/* mohor */
body.mod-lebar .b9b-mh-bilik{flex:1 1 auto;min-height:0;grid-template-columns:minmax(0,1fr) 256px;grid-template-rows:minmax(0,1fr) auto;gap:10px 12px}
body.mod-lebar .b9b-mh-meja{min-height:0;display:flex}
body.mod-lebar .b9b-mh-alas{flex:1 1 auto;min-height:0;grid-template-rows:auto minmax(0,1fr) auto auto;align-content:stretch}
body.mod-lebar .b9b-mh-ruang{min-height:0}
body.mod-lebar .b9b-mh-rak{min-height:0;overflow:hidden}
body.mod-lebar .b9b-mh-bekas-baris{grid-column:1 / -1;display:flex;gap:8px}
body.mod-lebar .b9b-mh-bekas{flex:1 1 auto;min-width:auto;grid-template-columns:auto minmax(min-content,1fr) auto}

/* rak mohor lebar: mohor padat (kepala 40 px, label 13 px) supaya 8 mohor muat dalam 2 lajur tanpa dipotong */
body.mod-lebar .b9b-mh-rak{padding:8px 9px 9px;gap:6px}
body.mod-lebar .b9b-mh-rak-grid{gap:6px}
body.mod-lebar .b9b-mh-mohor{min-height:0;gap:1px;padding:3px 4px 6px}
body.mod-lebar .b9b-mh-mohor-kepala{width:40px;height:38px}
body.mod-lebar .b9b-mh-mohor-label{font-size:.8125rem;line-height:1.12}
body.mod-lebar .b9b-mh-surat-isi{font-size:1.1875rem}
body.mod-lebar .b9b-mh-soal{align-self:start}
body.mod-lebar .b9b-mohor[data-fasa="soal"] .b9b-mh-alas,body.mod-lebar .b9b-mohor[data-fasa="tamat"] .b9b-mh-alas{grid-template-rows:auto auto;align-content:start}
/* lekat */
body.mod-lebar .b9b-lk-papan{flex:1 1 auto;min-height:0;grid-template-columns:470px minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:12px}
body.mod-lebar .b9b-lk-gabus{min-height:0;overflow-y:auto;overscroll-behavior:contain}
body.mod-lebar .b9b-lk-sisi{min-height:0;display:flex;flex-direction:column;gap:8px;overflow:hidden;padding:10px;border-radius:18px;
  background:#FFF8E6;box-shadow:var(--bayang),inset 0 0 0 2px #EAD9B0}
body.mod-lebar .b9b-lk-sisi > *{flex:none}
body.mod-lebar .b9b-lk-sisi > .bisik{min-height:0;align-items:flex-start;padding:8px 12px;font-size:.875rem;line-height:1.32}
/* lebar: hanya senarai jalur ditatal di dalam panel; bisik dan label kekal kelihatan */
body.mod-lebar .b9b-lk-sisi > .b9b-lk-dulang{flex:0 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:2px 2px 4px}
body.mod-lebar .b9b-lk-aktif-teks{font-size:.9375rem}
body.mod-lebar .b9b-lk-pad{min-height:52px;padding:6px 6px 8px}
/* lebar: helaian draf padat supaya lima baris, nota dan kotak Tuntutan tambahan muat tanpa tatal */
body.mod-lebar .b9b-lk-gabus{padding:12px 12px}
body.mod-lebar .b9b-lk-helai{padding:18px 14px 12px;gap:6px}
body.mod-lebar .b9b-lk-helai-kepala{padding:0 18px 5px}
body.mod-lebar .b9b-lk-helai-kepala b{font-size:.875rem;letter-spacing:.02em}
body.mod-lebar .b9b-lk-senarai{gap:5px}
body.mod-lebar .b9b-lk-baris{min-height:44px;padding:4px 8px}
body.mod-lebar .b9b-lk-tambahan{min-height:56px;padding:6px 10px}

/* =====================================================================================
   TELEFON (390 x 844) dan TELEFON PENDEK (375 x 667)
   ===================================================================================== */
body.mod-telefon .b2-j-pelan .bisik,body.mod-telefon .b2-j-mohor .bisik,body.mod-telefon .b2-j-lekat .bisik{min-height:2.9em;padding:8px 12px}
body.mod-telefon .b9b-pelan,body.mod-telefon .b9b-lekat{display:flex;flex-direction:column;gap:10px}
body.mod-telefon .b9b-pelan > .b2-atas,body.mod-telefon .b9b-lekat > .b2-atas{order:-2}
/* pelan */
body.mod-telefon .b9b-pl-meja{display:flex;flex-direction:column;gap:10px;padding:8px}
body.mod-telefon .b9b-pl-soal{order:-1}
body.mod-telefon .b9b-pl-kertas{padding:10px 10px 8px}
body.mod-telefon .b9b-pl-kepala{flex-wrap:wrap;row-gap:5px}
body.mod-telefon .b9b-pl-tajuk{order:3;flex-basis:100%}
body.mod-telefon .b9b-pl-kira{margin-left:auto}
/* cip zon: satu lajur, setiap cip sebaris (nombor, tag, teks) supaya perkataan panjang tidak terpotong */
body.mod-telefon .b9b-pl-zon-grid{grid-template-columns:minmax(0,1fr);gap:5px}
body.mod-telefon .b9b-pl-zon{display:grid;grid-template-columns:24px 4.9em minmax(0,1fr);align-items:center;column-gap:7px;min-height:44px;padding:4px 22px 4px 7px}
body.mod-telefon .b9b-pl-zon-teks{display:contents}
body.mod-telefon .b9b-pl-zon-teks small{grid-column:2;min-width:0}
body.mod-telefon .b9b-pl-zon-teks span{grid-column:3;line-height:1.22}
body.mod-telefon .b9b-pl-sisi{position:fixed;left:0;right:0;bottom:0;z-index:20;max-width:560px;margin:0 auto;grid-template-columns:minmax(0,1fr) 92px;gap:6px 8px;
  padding:8px 10px max(10px,env(safe-area-inset-bottom));border-radius:18px 18px 0 0;background:#F6E9CD;box-shadow:0 -6px 18px rgba(27,42,92,.22),inset 0 2px 0 #fff}
body.mod-telefon .b9b-pl-dulang-kepala{grid-column:1 / -1}
body.mod-telefon .b9b-pl-dulang.mod-kad{padding:6px 8px 4px 0}
body.mod-telefon .b9b-pl-dulang.mod-kad .b9b-pl-kad{min-height:84px;height:100%;padding:14px 12px 10px}
/* timbunan gulungan yang belum dibuka di belakang gulungan semasa */
body.mod-telefon .b9b-pl-dulang.mod-kad.timbun .b9b-pl-slot-kad{border-radius:5px 5px 10px 10px;box-shadow:4px 5px 0 -1px #EBDDB9,8px 10px 0 -2px #DCC99B}
body.mod-telefon .b9b-pl-dulang.mod-nama,body.mod-telefon .b9b-pl-dulang.mod-langkah{grid-column:1 / -1}
body.mod-telefon .b9b-pl-dulang.mod-nama{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
body.mod-telefon .b9b-pl-dulang.mod-langkah{gap:7px}
body.mod-telefon .b9b-pl-langkah{min-height:52px;padding:9px 12px}
body.mod-telefon .b9b-pl-tong{grid-template-columns:1fr;justify-items:center;align-content:center;gap:2px;min-height:0;padding:4px;text-align:center}
body.mod-telefon .b9b-pl-tong-svg{width:50px;height:44px}
body.mod-telefon .b9b-pl-tong-label{font-size:.875rem;line-height:1.15}
body.mod-telefon .b9b-pelan[data-fasa="soal"] .b9b-pl-sisi,body.mod-telefon .b9b-pelan[data-fasa="mula"] .b9b-pl-sisi,body.mod-telefon .b9b-pelan[data-fasa="tamat"] .b9b-pl-sisi{display:none}
/* mohor */
body.mod-telefon .b9b-mh-ruang{min-height:214px}
body.mod-telefon .b9b-mh-surat{padding:10px 12px}
body.mod-telefon .b9b-mh-surat-kepada{display:none}
body.mod-telefon .b9b-mh-surat-kaki{min-height:82px}
body.mod-telefon .b9b-mh-lilin{width:82px;height:82px}
body.mod-telefon .b9b-mh-rak-grid{gap:7px}
body.mod-telefon .b9b-mh-mohor{grid-template-columns:40px minmax(0,1fr);justify-items:start;align-items:center;column-gap:6px;min-height:54px;padding:4px 8px 4px 4px;text-align:left}
body.mod-telefon .b9b-mh-mohor-kepala{width:40px;height:40px}
body.mod-telefon .b9b-mh-mohor-label{text-align:left}
body.mod-telefon .b9b-mh-bekas-baris{display:flex;flex-wrap:wrap;gap:6px}
body.mod-telefon .b9b-mh-bekas{flex:1 1 auto;grid-template-columns:minmax(0,1fr) auto;min-height:44px;padding:5px 8px 5px 10px}
body.mod-telefon .b9b-mh-bekas-timbun{display:none}
/* lekat */
body.mod-telefon .b9b-lk-papan{display:flex;flex-direction:column;gap:10px}
body.mod-telefon .b9b-lk-gabus{padding:12px 9px}
body.mod-telefon .b9b-lk-helai{padding:22px 10px 12px}
body.mod-telefon .b9b-lk-baris{grid-template-columns:22px minmax(0,1fr)}
body.mod-telefon .b9b-lk-nota-zon{grid-column:2;grid-row:auto;max-width:none;justify-content:flex-start}
body.mod-telefon .b9b-lk-nota-zon.tambahan{grid-column:auto}
body.mod-telefon .b9b-lk-sisi{position:fixed;left:0;right:0;bottom:0;z-index:20;max-width:560px;max-height:64vh;margin:0 auto;overflow-y:auto;overscroll-behavior:contain;
  padding:8px 12px max(10px,env(safe-area-inset-bottom));border-radius:18px 18px 0 0;background:#FFFCF3;box-shadow:0 -6px 18px rgba(27,42,92,.2),inset 0 2px 0 #fff}
/* jalur klausa: senarai menegak dalam helaian bawah (helaian ditatal jika panjang); jalur yang sudah ditaip dilipat */
body.mod-telefon .b9b-lk-dulang{grid-template-columns:minmax(0,1fr);gap:6px;padding:2px 2px 4px}
body.mod-telefon .b9b-lk-jalur{touch-action:pan-y;min-height:44px;padding:7px 12px;font-size:.875rem;line-height:1.3}
body.mod-telefon .b9b-lk-jalur.bercop{padding-bottom:28px}
body.mod-telefon .b9b-lekat[data-fasa="draf"] .b9b-lk-sisi{max-height:38vh}
body.mod-telefon .b9b-lk-pad-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 8px}
body.mod-telefon .b9b-lk-pad{min-height:54px;padding:6px 5px 8px}
body.mod-telefon .b9b-lk-aktif{padding:10px 12px 10px 30px}
body.mod-telefon .b9b-lk-aktif-petik{font-size:1.75rem;left:8px}
body.mod-telefon .b9b-lekat[data-fasa="lekat"] .b9b-lk-aktif{padding:7px 10px 8px 28px}
body.mod-telefon .b9b-lekat[data-fasa="lekat"] .b9b-lk-aktif-teks{font-size:.9375rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body.mod-telefon .b9b-lekat[data-fasa="soal"] .b9b-lk-sisi,body.mod-telefon .b9b-lekat[data-fasa="tamat"] .b9b-lk-sisi,body.mod-telefon .b9b-lekat[data-fasa="mula"] .b9b-lk-sisi{
  position:static;order:-1;max-width:none;max-height:none;margin:0;padding:0;overflow:visible;border-radius:0;background:none;box-shadow:none}
@media (max-height:700px){
  body.mod-telefon .b2-j-pelan .bisik,body.mod-telefon .b2-j-mohor .bisik,body.mod-telefon .b2-j-lekat .bisik{min-height:2.6em;padding:6px 12px;font-size:.875rem;line-height:1.32}
  body.mod-telefon .b2-j-pelan .b2-kad-isi,body.mod-telefon .b2-j-mohor .b2-kad-isi,body.mod-telefon .b2-j-lekat .b2-kad-isi{font-size:1rem}
  body.mod-telefon .b9b-pl-dulang.mod-kad .b9b-pl-kad{min-height:80px;padding:12px 8px 8px}
  body.mod-telefon .b9b-pl-zon{min-height:46px}
  body.mod-telefon .b9b-mh-ruang{min-height:200px}
  body.mod-telefon .b9b-mh-surat-isi{font-size:1.0625rem;line-height:1.35}
  body.mod-telefon .b9b-mh-surat-kaki{min-height:76px}
  body.mod-telefon .b9b-mh-lilin{width:76px;height:76px}
  body.mod-telefon .b9b-mh-alas{padding:8px;gap:6px}
  body.mod-telefon .b9b-mh-mohor{min-height:50px}
  body.mod-telefon .b9b-lk-pad{min-height:50px}
  body.mod-telefon .b9b-lk-aktif-teks{font-size:.9375rem}
}
@media (max-width:370px){
  body.mod-telefon .b9b-pl-zon-teks span{font-size:.875rem}
  body.mod-telefon .b9b-mh-mohor{grid-template-columns:34px minmax(0,1fr)}
  body.mod-telefon .b9b-mh-mohor-kepala{width:34px;height:34px}
}
@media (prefers-reduced-motion:reduce){
  .b9b-pl-kad.masuk,.b9b-pl-kertas.b9b-sinar,.b9b-pl-anggota.masuk,.b9b-pl-gerak.masuk,.b9b-pl-kaki-baris.masuk,.b9b-pl-soal.masuk,.b9b-pl-tong.terima .b9b-pl-tong-svg,
  .b9b-pelan.ada-pilih .b9b-pl-zon,.b9b-pelan.ada-pilih .b9b-pl-slot,.b9b-mh-kaunter.naik .b9b-mh-digit,.b9b-mh-bekas.terima,.b9b-mh-soal.masuk,
  .b9b-lk-nota.lekat,.b9b-lk-aktif.masuk,.b9b-lk-pad.kupas,.b9b-lk-kira.masuk,.b9b-lk-soal.masuk,.b9b-menaip::after{animation:none}
  /* keadaan akhir yang biasanya dicapai melalui animasi */
  .b9b-mh-sampul.datang,.b9b-mh-surat.keluar{animation:none;transform:none;opacity:1}
  .b9b-mh-sampul.turun{animation:none;opacity:0}
  .b9b-mh-surat.lipat{animation:none;transform:translateY(34px) scaleY(.3)}
  .b9b-mh-cap{animation:none;transform:none;opacity:1}
  .b9b-mh-cap.hilang{opacity:0}
  .b9b-mh-sampul.belah .b9b-mh-belah{transition:none}
  .b9b-pl-zon-pin,.b9b-mh-kepak{transition:none}
}
