/* ==========================================================================
   09 PUSAT — Pusat Notifikasi, Pusat Kontrol, toast, dan tambahan Dynamic
   Island (tombol tutup, pegangan). Perilaku: js/v2/pusat.js.

   Aturan lapisan (penyebab tampilan "kotak" dan kartu "terpotong" dulu):
   1. Tidak ada latar di wadah. Wadah panel (.pst-panel, .pst-gulir,
      .pst-kolom, .pst-grup, .pst-tumpuk, .pst-slot) tidak punya background,
      border, bayangan, opacity, filter, mask, atau backdrop-filter. Yang
      berkaca hanya permukaan yang terlihat: kartu, modul, pil, toast.
   2. backdrop-filter hanya di permukaan itu sendiri. Induk yang memakai
      opacity < 1, filter, mask, atau backdrop-filter menjadi "backdrop root":
      kaca di dalamnya hanya mengaburkan isi induk, bukan wallpaper. Karena
      itu gerak masuk memakai transform di kolom dan opacity di tiap kartu.
   3. Tidak ada overflow:hidden di wadah yang memuat kartu bergerak. Satu-
      satunya wadah gulir (.pst-gulir) selebar layar, jadi yang terpotong
      hanya tepi layar, seperti iOS.
   4. Pelat tumpukan adalah kartu utuh (radius dan kaca sendiri) yang
      diskalakan .94 / .88 dan digeser ke bawah, bukan potongan 14 px.
   ========================================================================== */

:root {
    --pst-pegas: linear(0, .0446, .1528, .293, .4423, .5851, .7117, .8174, .9009, .963, 1.0061, 1.0335, 1.0484, 1.054, 1.0531, 1.0481, 1.0409, 1.0329, 1.0249, 1.0177, 1.0116, 1.0067, 1.003, 1.0003, .9986, .9976, .9971, .9971, .9973, .9976, .9981, .9985, 1);
    --pst-pegas-halus: linear(0, .0267, .0924, .18, .2774, .3763, .4712, .5588, .6373, .706, .7651, .8149, .8563, .8901, .9175, .9392, .9563, .9695, .9796, .9871, .9925, .9965, .9992, 1.0009, 1.0021, 1.0027, 1.0029, 1.003, 1.0028, 1.0026, 1.0023, 1.002, 1);
    --pst-keluar: cubic-bezier(.4, 0, 1, 1);
    --pst-kaca-bg: var(--lg-regular-bg);
    --pst-kaca-blur: var(--lg-regular-blur);
    --pst-kaca-cc-bg: var(--lg-thin-bg);
    --pst-kaca-cc-blur: var(--lg-thin-blur);
    --pst-garis: rgba(17, 20, 18, .06);
    --pst-rim: linear-gradient(160deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .25) 32%, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, .45));
    --pst-bayang: 0 2px 6px rgba(20, 30, 50, .05), 0 12px 32px -10px rgba(20, 30, 50, .22);
    --pst-isi-bulat: rgba(17, 20, 18, .08);
    --pst-tirai-nc: rgba(245, 244, 239, .3);
    --pst-tirai-cc: rgba(20, 24, 22, .26);
    --pst-tirai-blur: blur(26px) saturate(170%);
    --pst-geser-isi: rgba(255, 255, 255, .96);
    --pst-geser-ikon: #2b302d;
}
html[data-mode="dark"] {
    --pst-garis: rgba(255, 255, 255, .07);
    --pst-rim: linear-gradient(160deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, .06) 32%, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, .12));
    --pst-bayang: 0 2px 6px rgba(0, 0, 0, .35), 0 14px 36px -10px rgba(0, 0, 0, .6);
    --pst-isi-bulat: rgba(255, 255, 255, .12);
    --pst-tirai-nc: rgba(0, 0, 0, .36);
    --pst-tirai-cc: rgba(0, 0, 0, .46);
    --pst-geser-isi: rgba(255, 255, 255, .94);
}
@supports not (transition-timing-function: linear(0, 1)) {
    :root { --pst-pegas: cubic-bezier(.22, 1.16, .36, 1); --pst-pegas-halus: cubic-bezier(.22, 1, .36, 1); }
}

/* ---------- Material kaca (dipakai kartu, modul, pil, toast) ---------- */
.pst-kaca {
    position: relative;
    isolation: isolate;
    border: 0;
    border-radius: var(--pst-r, 24px);
    background: var(--pst-kaca-bg);
    -webkit-backdrop-filter: var(--pst-kaca-blur);
    backdrop-filter: var(--pst-kaca-blur);
    box-shadow: var(--lg-hi), 0 0 0 .5px var(--pst-garis), var(--pst-bayang);
    color: var(--ios-ink);
}
/* Lapisan kristal (kilau atas) dan tepi spekular: anak semu, ikut radius. */
.pst-kaca::before,
.pst-kaca::after {
    content: "";
    position: absolute; inset: 0;
    border-radius: inherit;
    pointer-events: none;
}
.pst-kaca::before { z-index: -1; background: var(--lg-crystal); opacity: .8; }
.pst-kaca::after {
    padding: 1px;
    background: var(--pst-rim);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
/* Sudut kontinu (squircle) bila peramban mendukung corner-shape. */
@supports (corner-shape: squircle) {
    .pst-kartu, .pst-kosong, .pst-mod--2x2, .pst-mod--lebar,
    .pst-kartu::before, .pst-kartu::after, .pst-kosong::before, .pst-kosong::after,
    .pst-mod--2x2::before, .pst-mod--2x2::after, .pst-mod--lebar::before, .pst-mod--lebar::after { corner-shape: superellipse(1.6); }
}

/* ==========================================================================
   PANEL (dasar bersama NC dan CC)
   ========================================================================== */
.ios-panel.pst-panel {
    position: fixed; inset: 0;
    z-index: var(--z-panel);
    padding: 0;
    overflow: visible;
    background: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
    opacity: 1;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0s linear .34s;
}
.ios-panel.pst-panel.is-open { visibility: visible; pointer-events: auto; transition: visibility 0s; }
.pst-tirai {
    position: absolute; inset: 0;
    background: var(--pst-tirai-nc);
    -webkit-backdrop-filter: var(--pst-tirai-blur);
    backdrop-filter: var(--pst-tirai-blur);
    opacity: 0;
    transition: opacity .3s var(--ease-out);
}
.pst-panel--cc .pst-tirai { background: var(--pst-tirai-cc); }
.pst-panel.is-open .pst-tirai { opacity: 1; transition-duration: .4s; }
.pst-gulir {
    position: absolute; inset: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.pst-gulir::-webkit-scrollbar { display: none; }
.pst-kolom {
    position: relative;
    width: min(420px, calc(100vw - 24px));
    min-height: 100%;
    margin: 0 auto;
    padding: calc(var(--safe-t) + 58px) 0 calc(var(--safe-b) + 24px);
    transform-origin: 50% 0;
    transform: translate3d(0, -26px, 0) scale(.94);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}
.pst-panel.is-open .pst-kolom { transform: none; transition: transform .3s var(--pst-pegas); }
.pst-kolom.is-seret { transition: none !important; }
.pst-kolom.is-lepas { transition: transform .5s var(--pst-pegas-halus) !important; }

/* Masuk bertahap: opacity di permukaan kaca itu sendiri (lihat aturan 2). */
.pst-panel :is(.pst-kaca, .pst-masuk) { opacity: 0; transition: opacity .16s ease-out; }
.pst-panel.is-open :is(.pst-kaca, .pst-masuk) { opacity: 1; transition: opacity .34s ease-out calc(var(--i, 0) * 22ms + 50ms); }
.pst-panel.is-open.is-siap :is(.pst-kaca, .pst-masuk) { transition-delay: 0s; }

/* Tombol kecil di kepala panel */
.pst-pil {
    --pst-r: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    height: 34px; padding: 0 14px;
    font: 600 13px/1 var(--font);
    white-space: nowrap;
    cursor: pointer;
    transition: transform var(--dur-fast) var(--spring-snappy), opacity .16s;
}
.pst-pil--kecil { height: 28px; padding: 0 11px; font-size: 12px; }
.pst-pil[hidden], .pst-bulat[hidden] { display: none; }
.pst-bulat {
    --pst-r: 50%;
    width: 36px; height: 36px; flex: none;
    display: inline-grid; place-items: center;
    padding: 0; cursor: pointer;
    transition: transform var(--dur-fast) var(--spring-snappy), opacity .16s;
}
.pst-bulat .ios-ic { width: 17px; height: 17px; }
.pst-bulat--kecil { width: 28px; height: 28px; }
.pst-bulat--kecil .ios-ic { width: 13px; height: 13px; }
:is(.pst-pil, .pst-bulat, .pst-mod, .pst-pintas, .pst-bulat-cc, .pst-wall):active { transform: scale(.94); }
:is(.pst-pil, .pst-bulat, .pst-mod, .pst-pintas, .pst-bulat-cc, .pst-wall, .pst-pegangan, .pst-kartu-isi, .pst-kartu-x, .pst-aksi-hapus):focus-visible {
    outline: 2px solid var(--ios-emerald);
    outline-offset: 2px;
}

/* Pegangan bawah (ketuk atau geser untuk menutup) */
.pst-pegangan {
    display: grid; place-items: center;
    width: 100%; height: 44px; margin-top: 10px;
    border: 0; background: none; padding: 0;
    cursor: pointer;
}
.pst-pegangan span { width: 40px; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--ios-ink) 35%, transparent); }

/* ==========================================================================
   PUSAT NOTIFIKASI
   ========================================================================== */
.pst-nc-kepala {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 10px;
    margin: 0 2px 14px;
    min-height: 44px;
}
.pst-nc-kepala h2 { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: -.025em; color: var(--ios-ink); }
.pst-nc-aksi { display: flex; align-items: center; gap: 6px; min-width: 0; margin-left: auto; }
@media (max-width: 379px) {
    .pst-nc-kepala h2 { font-size: 26px; }
}
.pst-hari {
    margin: 18px 6px 8px;
    font-size: 13px; font-weight: 600; letter-spacing: .01em;
    color: var(--ios-ink-2);
}
.pst-kosong {
    --pst-r: 26px;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 24px 20px;
    text-align: center;
}
.pst-kosong[hidden] { display: none; }
.pst-kosong strong { font-size: 15px; font-weight: 600; }
.pst-kosong span:not(.ios-tile) { font-size: 13px; color: var(--ios-ink-2); }

/* Kelompok */
.pst-grup { position: relative; margin-bottom: 14px; }
.pst-grup-kepala {
    display: flex; align-items: center; gap: 6px;
    min-height: 30px;
    margin: 0 2px 8px 6px;
}
.pst-grup-judul { flex: 1; min-width: 0; font-size: 15px; font-weight: 650; letter-spacing: -.01em; color: var(--ios-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pst-tumpuk {
    position: relative;
    isolation: isolate;      /* z-index pelat lokal; bukan backdrop root */
    display: flex; flex-direction: column; gap: 8px;
}
.pst-slot {
    position: relative;
    z-index: 3;
    transform-origin: 50% 100%;   /* pelat menyusut ke tepi bawah; FLIP di pusat.js memakai titik yang sama */
}

/* Tumpukan tertutup: kartu 1 utuh, kartu 2-3 pelat di belakang, sisanya
   tersembunyi. Ruang pelat = padding bawah daftar. */
.pst-grup.has-many:not(.is-open) .pst-tumpuk { padding-bottom: 18px; }
.pst-grup.has-many.is-dua:not(.is-open) .pst-tumpuk { padding-bottom: 9px; }
.pst-grup.has-many:not(.is-open) .pst-slot:nth-child(n+2) {
    position: absolute;
    left: 0; right: 0; top: 0;
    bottom: 18px;
    pointer-events: none;
}
.pst-grup.has-many.is-dua:not(.is-open) .pst-slot:nth-child(n+2) { bottom: 9px; }
.pst-grup.has-many:not(.is-open) .pst-slot:nth-child(2) { z-index: 2; transform: translate3d(0, 9px, 0) scale(.94); }
.pst-grup.has-many:not(.is-open) .pst-slot:nth-child(n+3) { z-index: 1; transform: translate3d(0, 18px, 0) scale(.88); }
.pst-grup.has-many:not(.is-open) .pst-slot:nth-child(n+2) > .pst-kartu { height: 100%; }
.pst-panel.is-open .pst-grup.has-many:not(.is-open) .pst-slot:nth-child(2) > .pst-kartu { opacity: .86; }
.pst-panel.is-open .pst-grup.has-many:not(.is-open) .pst-slot:nth-child(3) > .pst-kartu { opacity: .62; }
.pst-panel.is-open .pst-grup.has-many:not(.is-open) .pst-slot:nth-child(n+4) > .pst-kartu { opacity: 0; }
.pst-grup.has-many:not(.is-open) .pst-slot:nth-child(n+2) > .pst-kartu > *,
.pst-grup.has-many:not(.is-open) .pst-slot:nth-child(n+2) > .pst-aksi-hapus { opacity: 0; transition: opacity .12s; }
.pst-kartu > * { transition: opacity .28s ease-out .06s; }
/* Ketuk kartu teratas tumpukan tertutup = buka tumpukan */
.pst-grup.has-many:not(.is-open) .pst-slot:first-child .pst-kartu { cursor: pointer; }

/* Kartu notifikasi */
.pst-kartu {
    --pst-r: 24px;
    z-index: 1;
    display: flex; align-items: flex-start; gap: 12px;
    min-height: 64px;
    padding: 12px 14px;
    touch-action: pan-y;
    -webkit-user-select: none; user-select: none;
    -webkit-touch-callout: none;
    will-change: transform;
}
.pst-slot.is-seret > .pst-kartu { transition: none !important; }
.pst-slot.is-lepas > .pst-kartu { transition: transform .52s var(--pst-pegas), opacity .2s; }
.pst-kartu .ios-tile { --size: 38px; border-radius: 10px; margin-top: 1px; }
.pst-kartu-isi { flex: 1; min-width: 0; display: block; color: inherit !important; text-decoration: none !important; -webkit-user-drag: none; }
.pst-kartu-atas { align-items: baseline; }
.pst-kartu-atas strong { font-size: 14px; }
.pst-kartu-teks {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    overflow: hidden;           /* hanya memotong teks, bukan kartu */
    margin-top: 2px;
    font-size: 13.5px; line-height: 1.35;
    color: var(--ios-ink-2);
}
.pst-slot.is-read .pst-kartu-isi { opacity: .72; }
.pst-slot.is-unread .pst-kartu-atas strong::before {
    content: ""; display: inline-block;
    width: 7px; height: 7px; margin: 0 6px 1px 0;
    border-radius: 50%; background: var(--ios-blue);
    vertical-align: middle;
}
/* Tombol x gaya macOS: di sudut kiri atas, tampil saat diarahkan / fokus. */
.pst-kartu-x {
    position: absolute; top: -7px; left: -7px; z-index: 2;
    width: 24px; height: 24px; padding: 0;
    display: grid; place-items: center;
    border: 0; border-radius: 50%;
    background: var(--lg-thick-bg);
    box-shadow: 0 0 0 .5px var(--pst-garis), var(--lg-sh-1);
    color: var(--ios-ink-2);
    cursor: pointer;
    opacity: 0;
    transform: scale(.7);
    transition: opacity .16s, transform .24s var(--spring-snappy);
}
.pst-kartu-x .ios-ic { width: 11px; height: 11px; }
.pst-kartu:hover > .pst-kartu-x, .pst-kartu-x:focus-visible { opacity: 1; transform: none; }
.pst-grup.has-many:not(.is-open) .pst-slot:nth-child(n+2) .pst-kartu-x { visibility: hidden; }

/* Aksi Hapus yang terbuka saat kartu digeser ke kiri */
.pst-aksi-hapus {
    position: absolute; top: 0; bottom: 0; right: 0; z-index: 0;
    width: 76px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    border: 0; border-radius: 22px;
    background: var(--ios-red);
    color: #fff;
    font: 600 12px var(--font);
    cursor: pointer;
    opacity: var(--buka, 0);
    transform: scale(calc(.55 + var(--buka, 0) * .45));
    transition: opacity .2s, transform .4s var(--pst-pegas);
    pointer-events: none;
}
.pst-aksi-hapus .ios-ic { width: 20px; height: 20px; }
.pst-slot.is-seret > .pst-aksi-hapus { transition: none; }
.pst-slot.is-terbuka > .pst-aksi-hapus { pointer-events: auto; }

/* ==========================================================================
   PUSAT KONTROL — kisi modul
   ========================================================================== */
.pst-panel--cc {
    --u: clamp(62px, calc((100vw - 32px - 42px) / 4), 76px);
    --cc-gap: 14px;
}
.pst-panel--cc .pst-kolom { width: calc(var(--u) * 4 + var(--cc-gap) * 3); transform-origin: 100% 0; }
.pst-cc-kepala { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; margin: 0 2px 12px 6px; }
.pst-cc-judul { font-size: 15px; font-weight: 650; color: var(--ios-ink); }
.pst-cc {
    display: grid;
    grid-template-columns: repeat(4, var(--u));
    grid-auto-rows: minmax(var(--u), auto);
    grid-auto-flow: row dense;
    gap: var(--cc-gap);
}
.pst-sel { display: contents; }
.pst-sel[hidden] { display: none; }
.pst-mod {
    --pst-r: 28px;
    --pst-kaca-bg: var(--pst-kaca-cc-bg);
    --pst-kaca-blur: var(--pst-kaca-cc-blur);
    min-width: 0;
    margin: 0;
    padding: 0;
    font: inherit;
    color: var(--ios-ink) !important;
    text-decoration: none !important;
    text-align: left;
    cursor: pointer;
    transition: transform var(--dur-fast) var(--spring-snappy), background-color .2s, color .2s;
}
.pst-mod--2x2 { grid-column: span 2; grid-row: span 2; --pst-r: 32px; }
.pst-mod--2x1 { grid-column: span 2; --pst-r: calc(var(--u) / 2); }
.pst-mod--1x1 { --pst-r: 50%; display: grid; place-items: center; width: var(--u); height: var(--u); }
.pst-mod--geser { grid-row: span 2; --pst-r: calc(var(--u) / 2.4); touch-action: none; cursor: ns-resize; }
.pst-mod--lebar { grid-column: 1 / -1; --pst-r: 30px; }

/* 2x2 empat tombol bulat (mode tampilan + koneksi) */
.pst-mod--4bulat {
    display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
    gap: 10px; padding: 14px;
    place-items: center;
    cursor: default;
}
.pst-bulat-cc {
    width: 100%; max-width: 60px; aspect-ratio: 1;
    display: grid; place-items: center;
    padding: 0; border: 0; border-radius: 50%;
    background: var(--pst-isi-bulat);
    color: var(--ios-ink);
    cursor: pointer;
    transition: background-color .2s, color .2s, transform var(--dur-fast) var(--spring-snappy);
}
.pst-bulat-cc .ios-ic { width: 24px; height: 24px; }
.pst-bulat-cc[aria-pressed="true"] { background: var(--ios-emerald); color: var(--ios-on-accent); }
.pst-bulat-cc.is-info { cursor: default; background: var(--ios-emerald); color: var(--ios-on-accent); }
.pst-bulat-cc.is-info.is-off { background: var(--pst-isi-bulat); color: var(--ios-red); }
.pst-bulat-cc.is-info:active { transform: none; }
.pst-mod-cap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 2x2 wallpaper */
.pst-mod--wall { display: flex; flex-direction: column; padding: 14px 14px 12px; cursor: default; }
.pst-mod-judul { font-size: 12px; font-weight: 600; color: var(--ios-ink-2); }
.pst-mod-nilai { font-size: 14px; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pst-wall-kisi { margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; justify-items: center; }
.pst-wall {
    width: min(100%, 34px); aspect-ratio: 1;
    padding: 0; border: 0; border-radius: 50%;
    background:
        radial-gradient(circle at 28% 26%, var(--wp-1, transparent), transparent 62%),
        radial-gradient(circle at 80% 34%, var(--wp-2, transparent), transparent 60%),
        radial-gradient(circle at 46% 92%, var(--wp-3, transparent), transparent 66%),
        var(--wp-dasar, #e9ebe8);
    box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .14), inset 0 1px 1px rgba(255, 255, 255, .5);
    cursor: pointer;
    transition: transform var(--dur-fast) var(--spring-snappy), box-shadow .2s;
}
.pst-wall[data-wp="mono"] { background: linear-gradient(145deg, #fbfbf9, #d9dcd8); }
html[data-mode="dark"] .pst-wall[data-wp="mono"] { background: linear-gradient(145deg, #3a3d3b, #111312); }
.pst-wall[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ios-ink), inset 0 0 0 2px rgba(255, 255, 255, .7); }

/* Penggeser vertikal (Kaca, Ukuran teks) */
.pst-mod--geser { display: block; }
.pst-geser-isi {
    position: absolute; inset: 0;
    border-radius: inherit;
    background: var(--pst-geser-isi);
    clip-path: inset(calc((1 - var(--isi, .5)) * 100%) 0 0 0);
    transition: clip-path .32s var(--pst-pegas-halus);
}
.pst-mod--geser.is-seret .pst-geser-isi { transition: none; }
.pst-geser-ikon {
    position: absolute; left: 0; right: 0; bottom: 16px;
    display: grid; place-items: center;
    color: var(--pst-geser-ikon);
    transition: color .2s;
}
.pst-geser-ikon .ios-ic { width: 24px; height: 24px; }
.pst-mod--geser.is-rendah .pst-geser-ikon { color: var(--ios-ink); }

/* 1x1 bulat */
.pst-mod-bulat { display: grid; place-items: center; }
.pst-mod--1x1 .ios-ic { width: 25px; height: 25px; }
.pst-panel .pst-mod.pst-mod--1x1[aria-pressed="true"] {
    background: var(--ios-emerald);
    color: var(--ios-on-accent) !important;
    -webkit-backdrop-filter: none; backdrop-filter: none;
}
.pst-panel .pst-mod.pst-mod--1x1[data-saklar="efek"][aria-pressed="true"] { background: var(--ios-orange); color: #fff !important; }

/* 2x1 kapsul: lingkaran ikon + teks */
.pst-mod--2x1 { display: flex; align-items: center; gap: 10px; padding: 0 14px 0 10px; }
.pst-mod--2x1 .pst-mod-bulat {
    width: calc(var(--u) - 22px); height: calc(var(--u) - 22px); flex: none;
    border-radius: 50%;
    background: var(--pst-isi-bulat);
}
.pst-mod--2x1 .pst-mod-bulat.is-aktif { background: var(--ios-emerald); color: var(--ios-on-accent); }
.pst-mod--2x1 .ios-ic { width: 20px; height: 20px; }
.pst-mod-teks { min-width: 0; }
.pst-mod-teks strong, .pst-mod-teks span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pst-mod-teks strong { font-size: 13px; font-weight: 650; }
.pst-mod-teks span { font-size: 11.5px; color: var(--ios-ink-2); }

/* Pintasan (launcher) */
.pst-mod--pintas { display: flex; justify-content: space-around; align-items: flex-start; gap: 4px; padding: 12px 6px 10px; cursor: default; }
.pst-pintas {
    flex: 1 1 0; min-width: 0; max-width: 76px;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    color: var(--ios-ink) !important; text-decoration: none !important;
    transition: transform var(--dur-fast) var(--spring-snappy);
}
.pst-pintas-bulat {
    width: 46px; height: 46px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--pst-isi-bulat);
}
.pst-pintas-bulat .ios-ic { width: 22px; height: 22px; }
.pst-pintas-teks { font-size: 11px; font-weight: 600; line-height: 1.2; text-align: center; color: var(--ios-ink-2); overflow-wrap: anywhere; }

/* Ctrl+K hanya berguna dengan keyboard (sama dengan 08-kaca-cair.css). */
@media (hover: none) { .pst-mod.lg-cc-palet { display: none; } }

/* Desktop dan tablet: panel menempel di kanan atas, di bawah tombol pojok
   (gaya Pusat Kontrol / Notifikasi macOS). */
@media (min-width: 768px) {
    .pst-panel--cc { --u: 74px; }
    .pst-panel--cc .pst-kolom { margin: 0 16px 0 auto; padding-top: calc(var(--safe-t) + 58px); }
}
@media (min-width: 1024px) {
    .pst-panel--nc .pst-kolom { width: 400px; margin: 0 16px 0 auto; padding-top: calc(var(--safe-t) + 58px); transform-origin: 100% 0; }
    .pst-tirai { --pst-tirai-blur: blur(18px) saturate(150%); }
}

/* ==========================================================================
   TOAST: kapsul kaca dari atas
   ========================================================================== */
.ios-toasts {
    position: fixed;
    top: calc(var(--safe-t) + 58px);
    left: 0; right: 0;
    transform: none;
    margin: 0 auto;
    z-index: var(--z-toast);
    width: min(440px, calc(100vw - 24px));
    display: flex; flex-direction: column-reverse; gap: 8px;
    pointer-events: none;
}
.ios-toast.pst-toast {
    --pst-r: 999px;
    pointer-events: auto;
    display: flex; align-items: center; gap: 12px;
    min-height: 58px;
    padding: 9px 20px 9px 10px;
    border: 0;
    border-radius: 999px;
    font-size: 14px;
    box-shadow: var(--lg-hi), 0 0 0 .5px var(--pst-garis), var(--lg-sh-3);
    touch-action: none;
    cursor: grab;
    animation: pst-toast-masuk .28s var(--pst-pegas) backwards;
}
.ios-toast.pst-toast.is-seret { animation: none; transition: none; cursor: grabbing; }
.ios-toast.pst-toast.is-lepas { transition: transform .5s var(--pst-pegas); }
.ios-toast.pst-toast.is-out { animation: pst-toast-keluar .26s var(--pst-keluar) forwards; pointer-events: none; }
.pst-toast-ikon {
    width: 38px; height: 38px; flex: none;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--pst-isi-bulat);
    color: var(--ios-green, var(--ios-emerald));
}
.pst-toast--galat .pst-toast-ikon { color: var(--ios-red); }
.pst-toast--info .pst-toast-ikon { color: var(--ios-blue); }
.pst-toast-ikon .ios-ic { width: 20px; height: 20px; }
.pst-toast-teks { flex: 1; min-width: 0; }
.pst-toast-teks strong { display: block; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pst-toast-teks span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 13px; line-height: 1.3; color: var(--ios-ink-2); }
.pst-toast-teks span:empty { display: none; }
.pst-toast .lg-toast-aksi { border-radius: 999px; }
@keyframes pst-toast-masuk { from { opacity: 0; transform: translate3d(0, -140%, 0) scale(.86); } }
@keyframes pst-toast-keluar { to { opacity: 0; transform: translate3d(0, -130%, 0) scale(.9); } }

/* ==========================================================================
   DYNAMIC ISLAND: tambahan untuk menutup (rupa dasar di 03-navigasi.css)
   ========================================================================== */
.ios-island { touch-action: manipulation; }
.ios-island:is(.is-activity, .is-proses) { cursor: pointer; }
.isl-tutup {
    width: 32px; height: 32px; flex: none;
    display: grid; place-items: center;
    padding: 0; border: 0; border-radius: 16px;
    background: var(--isl-fill-1, rgba(255, 255, 255, .1));
    color: var(--isl-on-2, rgba(255, 255, 255, .62));
    cursor: pointer;
    transition: background-color .15s, color .15s, transform .15s;
}
.isl-tutup:hover { background: var(--isl-fill-2, rgba(255, 255, 255, .16)); color: #fff; }
.isl-tutup:active { transform: scale(.92); }
.isl-tutup:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.isl-tutup .ios-ic { width: 15px; height: 15px; }
.ios-island-panel > .isl-pegangan {
    position: absolute;
    left: 50%; bottom: 6px;
    width: 36px; height: 4px; margin-left: -18px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .26);
    pointer-events: none;
}
/* Proses disembunyikan pengguna: titik pil ringkas berdenyut jingga. */
.ios-island-dot.is-busy { animation: pst-denyut 1.2s ease-in-out infinite alternate; }
@keyframes pst-denyut { from { opacity: 1; } to { opacity: .35; } }

/* ==========================================================================
   CADANGAN: tanpa backdrop-filter, Hemat Efek, perangkat lemah,
   transparansi dikurangi. Permukaan padat, bentuk tetap bulat.
   ========================================================================== */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .pst-kaca { background: var(--lg-solid-fallback); }
    .pst-tirai { background: color-mix(in srgb, var(--ios-bg) 82%, transparent); }
}
html:is([data-efek="hemat"], [data-daya="rendah"]) .pst-kaca {
    -webkit-backdrop-filter: none; backdrop-filter: none;
    background: var(--lg-solid-fallback);
}
html:is([data-efek="hemat"], [data-daya="rendah"]) .pst-tirai {
    -webkit-backdrop-filter: none; backdrop-filter: none;
    background: color-mix(in srgb, var(--ios-bg) 84%, transparent);
}
@media (prefers-reduced-transparency: reduce) {
    .pst-kaca { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--lg-solid-fallback); }
    .pst-tirai { -webkit-backdrop-filter: none; backdrop-filter: none; background: color-mix(in srgb, var(--ios-bg) 88%, transparent); }
}

/* Gerak dikurangi: pergantian keadaan tanpa pegas, geser, atau stagger. */
@media (prefers-reduced-motion: reduce) {
    .pst-panel, .pst-panel *, .pst-panel *::before, .pst-panel *::after,
    .ios-toasts *, .isl-tutup { transition-duration: 1ms !important; transition-delay: 0s !important; animation: none !important; }
    .pst-kolom { transform: none; }
}
html[data-gerak="kurang"] :is(.pst-panel, .pst-panel *, .pst-panel *::before, .pst-panel *::after, .ios-toasts *, .isl-tutup) {
    transition-duration: 1ms !important; transition-delay: 0s !important; animation: none !important;
}
html[data-gerak="kurang"] .pst-kolom { transform: none; }

@media print {
    .pst-panel, .ios-toasts { display: none !important; }
}

/* ==========================================================================
   TOP LAYER: pusat.js mengangkat #iosToasts (dan pulau selama aktivitas di
   atas dialog) dengan popover="manual" supaya tampil di atas <dialog> modal.
   Gaya bawaan popover (inset 0, margin auto, border, padding, latar Canvas,
   overflow auto) dinetralkan agar letak dan rupa tidak berubah.
   ========================================================================== */
.ios-toasts[popover] {
    bottom: auto;
    height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    overflow: visible;
}
.ios-island[popover] { right: auto; bottom: auto; margin: 0; }
.ios-toasts::backdrop, .ios-island::backdrop { display: none; }
/* Sudah tampil: jangan ulang animasi masuk saat wadah ditampilkan ulang. */
.ios-toast.pst-toast.is-tampil:not(.is-out) { animation: none; }

/* Fokus awal panel jatuh ke kolom (bukan tombol), tanpa cincin. */
html[data-ui] .pst-kolom:is(:focus, :focus-visible) { outline: none; box-shadow: none; }
