/* SuperByte — bottom sheet bersama HP (PRD#mobile-web-view §4.4 M4, I16), pasangan js/sb-sheet.js.
   PRD#mobile-web-view §4.7 (C1): dipisah dari custom.css APA ADANYA — dirujuk HANYA HTML yang memuat js/sb-sheet.js,
   tepat SETELAH custom.css (posisi kaskade sama dengan dulu: akhir custom.css). Halaman baru yang memakai sbSheet
   wajib merujuk berkas ini juga. */

/* ── Bottom sheet bersama HP (PRD#mobile-web-view §4.4 M4, I16) — js/sb-sheet.js ──
   Satu komponen sheet untuk HP (≤768 px): detent medium (±50% layar) / large, masuk 300 ms decelerate, keluar 200 ms
   accelerate, scrim 32%, seret pegangan (dan isi saat medium) untuk ganti detent / tutup. Posisi & opacity ditulis
   inline oleh JS (keadaan akhir dulu, lalu animasi sbMotion — pelajaran D10). Tampilan ISI milik pemanggil; di sini
   hanya wadah. z-index lajur 70/71 (docs/guide/ui-design-system.md); sheet dari panel bubble = 960/961. */
.sb-sheet-scrim { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,0.32); opacity: 0; visibility: hidden; pointer-events: none; touch-action: none; }
.sb-sheet-scrim.sb-on { visibility: visible; pointer-events: auto; }
.sb-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 71; display: flex; flex-direction: column; background: #fff;
  border-radius: 16px 16px 0 0; box-shadow: 0 -4px 24px rgba(0,0,0,.14); transform: translate3d(0,100%,0); visibility: hidden;
  outline: none; contain: layout paint; overscroll-behavior: contain; }
.sb-sheet.sb-sheet-hi { z-index: 961; }
/* Kunci gulir halaman selama sheet terbuka (bertingkat: sb-sheet.js menghitung pembuka). */
html.sb-sheet-lock, html.sb-sheet-lock body { overflow: hidden; }
.sb-sheet-scrim.sb-sheet-hi { z-index: 960; }
/* Toast (lapis 80, custom.css) di atas sheet; selama sheet terbuka pindah ke ATAS layar (zona header di bawah scrim),
   bukan menimpa kaki sheet di zona jempol (laporan owner 2026-10-12: hasil Uji koneksi tertutup sheet). Sheet dari
   panel bubble (961) → toast 962. */
@media (max-width: 768px) { html.sb-sheet-lock .toast-container { top: calc(8px + var(--sb-sat)); bottom: auto; } }
html:has(.sb-sheet-scrim.sb-sheet-hi.sb-on) .toast-container { z-index: 962; }
.sb-sheet-drag { flex: none; padding: 8px 16px 6px; touch-action: none; cursor: grab; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.sb-sheet-grabber { display: block; width: 32px; height: 4px; border-radius: 2px; background: #d1d5db; margin: 0 auto; }
.sb-sheet-body { flex: 1 1 auto; min-height: 0; overflow: hidden; touch-action: none; overscroll-behavior: contain;
  padding: 0 8px calc(16px + var(--sb-sab)); }
.sb-sheet.sb-d-large .sb-sheet-body, .sb-sheet.sb-scroll .sb-sheet-body { overflow-y: auto; touch-action: pan-y; }
/* Detent medium = seukuran isi (maks penuh); isi lebih tinggi = body bergulir di detent mana pun (.sb-scroll,
   sb-sheet.js geom) — seret dari isi hanya di puncak gulir ke arah bawah (micro-audit A5 2026-10-11). */
/* Pemilih agent Chat (chat-primary.js) di dalam sheet: kotak dropdown jadi isi sheet — baris menu (session-picker)
   tidak diubah, hanya bingkai/posisi popover yang dilepas. */
.sb-sheet .sbc-menu { position: static; width: auto; max-height: none; overflow: visible; border: 0; border-radius: 0; box-shadow: none; padding: 0; }
