/* PRD#my-pages MP3 — gaya halaman Halaman Saya (pages/pages.html; dipindah dari <style> inline agar tercache dan tidak
   menambah anggaran inline pra-paint). */
body { font-family: 'Inter', sans-serif; }
/* PRD#my-pages MP3 — Halaman Saya: galeri kartu thumbnail + penampil (mockup disetujui owner 2026-11-02, layar C/D/E/F/G).
   Prefiks pgs-; komponen bersama css/sb-ui.css (tombol, sbUI.pop/confirm, sbMUI.screen). Tanpa transition/animation
   (gerak hanya sbMotion). HP ≤768 (body.sb-mf): satu kolom, chip filter geser horizontal, tanpa FAB. */
.pgs [hidden] { display: none !important; }
.pgs-tb { display: flex; flex-direction: column; gap: 12px; margin: 0 0 16px; }
.pgs-search { position: relative; display: block; max-width: 360px; }
.pgs-search > .nav-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #9ca3af; pointer-events: none; }
.pgs-search input { width: 100%; min-height: 40px; padding: 8px 12px 8px 38px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; background: #fff; color: #111827; }
.pgs-search input:focus { outline: none; border-color: #4f46e5; box-shadow: 0 0 0 2px rgba(79,70,229,.1); }
.pgs-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.pgs-chip { min-height: 32px; padding: 5px 13px; border-radius: 9999px; border: 1px solid #e5e7eb; background: #fff; font: 500 13px Inter, sans-serif; color: #4b5563; white-space: nowrap; cursor: pointer; }
.pgs-chip:hover { background: #f9fafb; }
.pgs-chip.is-on { background: #eef2ff; border-color: #c7d2fe; color: #4f46e5; }
.pgs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.pgs-card { display: flex; flex-direction: column; min-width: 0; padding: 0; text-align: left; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.04); cursor: pointer; font: inherit; color: inherit; }
.pgs-card:hover { border-color: #c7d2fe; }
.pgs-card:focus-visible { outline: 2px solid #4f46e5; outline-offset: 2px; }
.pgs-card-sk { cursor: default; }
.pgs-card-t { position: relative; display: block; aspect-ratio: 16/10; background: #f3f4f6; border-bottom: 1px solid #f3f4f6; overflow: hidden; }
.pgs-th-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.pgs-th-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #6366f1; background: #eef2ff; }
.pgs-th-ph .nav-icon { width: 32px; height: 32px; }
.pgs-th-google, .pgs-th-preview { background: #f3f4f6; color: #4b5563; }
.pgs-card-bd { position: absolute; top: 8px; left: 8px; }
.pgs-card-b { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; }
.pgs-card-name { font-size: 14px; font-weight: 600; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pgs-card-b small { font-size: 12px; color: #6b7280; }
.pgs-card-b .pgs-when { color: #9ca3af; min-height: 18px; }
.pgs-fresh { display: inline-flex; gap: 6px; align-items: center; color: #4f46e5; font-weight: 600; }
.pgs-fresh i { width: 7px; height: 7px; border-radius: 50%; background: #4f46e5; box-shadow: 0 0 0 3px rgba(79,70,229,.2); }
.pgs-bd { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 9999px; font-size: 11px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.pgs-bd .nav-icon { width: 12px; height: 12px; }
.pgs-bd-priv { background: #f3f4f6; color: #4b5563; }
.pgs-bd-link { background: #dbeafe; color: #1d4ed8; }
.pgs-bd-pub { background: #dcfce7; color: #166534; }
.pgs-bd-exp, .pgs-bd-warn { background: #fef3c7; color: #92400e; }
.pgs-bd-ver { background: #eef2ff; color: #4338ca; }
.pgs-bd-g { background: #fff; color: #374151; border: 1px solid #d1d5db; }
.pgs-state, .pgs-stage-box { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 48px 24px; color: #6b7280; font-size: 14px; }
.pgs-state p, .pgs-stage-box p { margin: 0; max-width: 380px; line-height: 1.5; }
.pgs-state-t { font-size: 16px; font-weight: 600; color: #111827 !important; }
.pgs-state-ic { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px; background: #eef2ff; color: #4f46e5; }
.pgs-state-ic .nav-icon { width: 28px; height: 28px; }
.pgs-state-err .pgs-state-ic { background: #fef2f2; color: #dc2626; }
.pgs-state .btn, .pgs-stage-box .btn { margin-top: 8px; }
.pgs-link { margin: 16px 0 0; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: #4f46e5; cursor: pointer; }
.pgs-link:hover { text-decoration: underline; }
/* PRD#my-pages-mp5-7 MP7 (mockup W-F) — pita info: deck/desain/diagram/tautan Google kini di File Kerja. */
.pgs-moved { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 10px 14px; border: 1px solid #c7d2fe; border-radius: 10px; background: #eef2ff; color: #3730a3; font-size: 13px; line-height: 1.5; }
.pgs-moved > .nav-icon { flex: none; width: 18px; height: 18px; }
.pgs-moved > span { flex: 1 1 200px; min-width: 0; }
.pgs-moved .pgs-link { margin: 0; font-size: 13px; text-decoration: none; }
.pgs-moved .pgs-link:hover { text-decoration: underline; }
.pgs-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.pgs-full { width: 100%; justify-content: center; }
.pgs-danger { color: #b91c1c !important; border-color: #fecaca !important; }
.pgs-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; color: #6b7280; overflow-wrap: anywhere; }
.pgs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* Penampil (layar D) — desktop dalam halaman; header + galeri disembunyikan selama terbuka. */
body.pgs-viewing #pagesHead, body.pgs-viewing #pagesGallery { display: none !important; }
.pgs-crumb { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 10px; padding: 4px 0; border: 0; background: none; font: 500 14px Inter, sans-serif; color: #4f46e5; cursor: pointer; }
.pgs-crumb .nav-icon { width: 16px; height: 16px; }
.pgs-v-cols { display: flex; gap: 20px; align-items: flex-start; }
.pgs-v-left { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.pgs-v-h { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pgs-v-tile { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: #eef2ff; color: #4f46e5; flex: none; }
.pgs-v-tile .nav-icon { width: 20px; height: 20px; }
.pgs-v-t { display: flex; flex-direction: column; flex: 1; min-width: 160px; }
.pgs-v-name { font-size: 18px; font-weight: 700; color: #111827; overflow-wrap: anywhere; }
.pgs-v-t small { font-size: 13px; color: #6b7280; }
.pgs-ver { min-height: 34px; padding: 4px 28px 4px 10px; border: 1px solid #d1d5db; border-radius: 8px; background-color: #fff; font: 500 13px Inter, sans-serif; color: #374151; }
.pgs-upd { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 8px; background: #eef2ff; color: #3730a3; font-size: 12.5px; font-weight: 500; }
.pgs-upd i { width: 8px; height: 8px; border-radius: 50%; background: #4f46e5; box-shadow: 0 0 0 4px rgba(79,70,229,.2); }
.pgs-upd small { margin-left: auto; color: #6366f1; font-size: 12px; }
.pgs-stage { min-height: 520px; display: flex; flex-direction: column; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; }
.pgs-stage[data-state="ready"] { border: 0; background: none; }
.pgs-stage-sk { display: block; width: 100%; height: 440px; border-radius: 8px; }
.pgs-stage-box[aria-busy="true"] { padding: 16px; }
.pgs-br { display: flex; flex-direction: column; flex: 1; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; background: #fff; }
.pgs-br-u { display: flex; gap: 6px; align-items: center; padding: 6px 10px; background: #f3f4f6; border-bottom: 1px solid #e5e7eb; font-size: 11.5px; color: #6b7280; }
.pgs-br-u .nav-icon { width: 12px; height: 12px; }
.pgs-frame { display: block; width: 100%; height: calc(100vh - 260px); min-height: 480px; border: 0; background: #fff; }
.pgs-iso { margin: 6px 0 0; font-size: 12px; color: #9ca3af; }
.pgs-v-side { width: 360px; flex: none; display: flex; flex-direction: column; gap: 12px; }
.pgs-vs { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; }
.pgs-vs h4 { margin: 0; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; }
.pgs-vs-acts .pgs-btns .btn { flex: 1; justify-content: center; }
.pgs-st { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 10px; border-radius: 10px; border: 1px solid #e5e7eb; background: #f9fafb; }
.pgs-st-live { border-color: #bbf7d0; background: #f0fdf4; }
.pgs-st-cd { border-color: #fde68a; background: #fffbeb; }
.pgs-st-l { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.pgs-st-l b { font-size: 13px; color: #111827; overflow-wrap: anywhere; }
.pgs-st-l small { font-size: 12px; color: #4b5563; }
.pgs-vrs { display: flex; flex-direction: column; gap: 2px; max-height: 360px; overflow-y: auto; }
.pgs-vr { display: flex; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 8px; }
.pgs-vr.is-cur { background: #eef2ff; }
.pgs-vn { width: 36px; flex: none; padding: 0; border: 0; background: none; font: 700 13px Inter, sans-serif; color: #4338ca; text-align: left; cursor: pointer; }
.pgs-vr-m { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pgs-vr-m b { font-size: 13px; color: #111827; }
.pgs-vr-m small { font-size: 12px; color: #6b7280; }
.pgs-info { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 12.5px; }
.pgs-info dt { color: #6b7280; }
.pgs-info dd { margin: 0; color: #111827; overflow-wrap: anywhere; }
/* Bagikan (layar E): popover diperlebar (desktop) / sheet (HP). */
.sb-pop.pgs-share-pop { width: 400px; max-width: calc(100vw - 16px); }
.pgs-sh { display: flex; flex-direction: column; gap: 8px; }
.pgs-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid #e5e7eb; border-radius: 10px; cursor: pointer; }
.pgs-opt.is-on { border-color: #a5b4fc; background: #f5f7ff; }
.pgs-opt.is-off { opacity: .55; cursor: default; }
.pgs-opt input[type="radio"] { width: 16px; height: 16px; margin: 2px 0 0; flex: none; accent-color: #4f46e5; }
.pgs-opt-m { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.pgs-opt-m b { font-size: 14px; color: #111827; }
.pgs-opt-m small { font-size: 12.5px; color: #6b7280; line-height: 1.45; }
.pgs-ttl-l { margin-top: 4px; font-size: 12px; font-weight: 600; color: #374151; }
.pgs-ttl { display: flex; gap: 6px; flex-wrap: wrap; }
.pgs-lnk { display: flex; gap: 6px; align-items: center; }
.pgs-lnk input, .pgs-sub input { flex: 1; min-width: 0; min-height: 36px; padding: 6px 10px; border: 1px solid #d1d5db; border-radius: 8px; font: 12.5px 'JetBrains Mono', ui-monospace, monospace; color: #111827; background: #fff; }
.pgs-sub { display: flex; gap: 4px; align-items: center; font-size: 13px; color: #6b7280; }
.pgs-note { display: block; margin: 0; font-size: 12.5px; line-height: 1.45; color: #4b5563; }
.pgs-note-info { padding: 8px 10px; border-radius: 8px; background: #eff6ff; color: #1e40af; }
.pgs-note-warn { padding: 8px 10px; border-radius: 8px; background: #fffbeb; color: #92400e; }
.pgs-note-err { color: #b91c1c; }
.pgs-share-pop .sb-pop-foot { display: flex; justify-content: flex-end; gap: 8px; }
/* Riwayat preview (fungsi lama) */
.pgs-hist { display: flex; flex-direction: column; }
.pgs-hist-row { display: flex; flex-wrap: wrap; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid #f3f4f6; font-size: 13px; color: #4b5563; }
.pgs-strike { text-decoration: line-through; }
@media (max-width: 1100px) { .pgs-v-cols { flex-direction: column; } .pgs-v-side { width: 100%; } }
@media (max-width: 768px) {
  body.sb-mf .page-body.pgs { padding: 0 0 calc(100px + var(--sb-sab, 0px)); }
  /* HP: judul menu di header shell sbMUI; header halaman hanya baris keterangan di atas galeri. */
  body.sb-mf .page-header.sb-page-head#pagesHead { display: block; margin: 0; padding: 8px 16px 0; border: 0; background: none; }
  body.sb-mf #pagesHead .page-title { display: none; }
  body.sb-mf #pagesHead .sb-page-sum { display: block; min-height: 0; margin: 0; font-size: 13px; color: #6b7280; }
  .pgs-tb { gap: 8px; margin: 8px 0 12px; }
  .pgs-search { max-width: none; margin: 0 16px; }
  .pgs-search input { min-height: 44px; }
  .pgs-chips { flex-wrap: nowrap; overflow-x: auto; padding: 0 16px 2px; scrollbar-width: none; }
  .pgs-chips::-webkit-scrollbar { display: none; }
  .pgs-chip { min-height: 36px; }
  .pgs-grid { grid-template-columns: 1fr; gap: 12px; padding: 0 16px; }
  .pgs-card-t { aspect-ratio: 2/1; }
  .pgs-link { margin: 12px 16px 0; min-height: 44px; }
  .pgs-moved { margin: 0 16px 12px; }
  .pgs-moved .pgs-link { display: inline-flex; align-items: center; min-height: 44px; margin: 0; }
  /* Penampil HP (layar sbMUI.screen): satu kolom; pratinjau dulu, panel di bawahnya. */
  .pgs-v-hp { padding: 0 0 16px; }
  .pgs-v-hp .pgs-v-cols { flex-direction: column; gap: 12px; }
  .pgs-v-hp .pgs-v-left { width: 100%; gap: 8px; }
  .pgs-v-hp .pgs-v-h { padding: 8px 16px 0; }
  .pgs-v-hp .pgs-upd { margin: 0 16px; }
  .pgs-v-hp .pgs-stage { min-height: 0; border-radius: 0; border-left: 0; border-right: 0; }
  .pgs-v-hp .pgs-br { border-radius: 0; border-left: 0; border-right: 0; }
  .pgs-v-hp .pgs-frame { height: 62vh; min-height: 360px; }
  .pgs-v-hp .pgs-iso { padding: 0 16px; }
  .pgs-v-hp .pgs-v-side { width: auto; padding: 0 16px; }
  .pgs-v-hp .btn { min-height: 44px; }
  .pgs-v-hp .pgs-stage-sk { height: 50vh; }
}
/* PRD#my-pages-external E2 (§10.7; mockup disetujui owner 2026-11-19) — halaman eksternal: kartu host-tebal, penampil tersemat, kartu
   panduan Developer Mode, kartu lampiran tugas, dialog Ubah. Kartu eksternal bukan <button> tunggal karena memuat anchor Buka. */
.pgs-th-external { background: #f0f9ff; color: #0369a1; }
.pgs-bd-own { background: #f3f4f6; color: #374151; }
.pgs-card-ext { cursor: default; }
.pgs-card-ext:hover { border-color: #c7d2fe; }
.pgs-ext-main { display: flex; flex-direction: column; flex: 1 1 auto; width: 100%; min-width: 0; padding: 0; margin: 0; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.pgs-ext-main:focus-visible { outline: 2px solid #4f46e5; outline-offset: -2px; }
.pgs-ext-host { display: block; font-size: 13px; font-weight: 700; color: #111827; overflow-wrap: anywhere; line-height: 1.35; }
.pgs-ext-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.pgs-unm { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #6b7280; }
.pgs-unm .nav-icon { width: 14px; height: 14px; }
.pgs-card-ext .pgs-when { min-height: 0; margin-top: 2px; }
.pgs-ext-act { display: flex; gap: 8px; padding: 0 12px 12px; }
.pgs-ext-act .btn { min-height: 36px; justify-content: center; }
.pgs-ext-act .btn:first-child { flex: 1; }
.pgs-guide { position: relative; display: flex; gap: 12px; margin: 0 0 16px; padding: 14px 44px 14px 14px; border: 1px solid #c7d2fe; border-radius: 12px; background: #eef2ff; color: #3730a3; }
.pgs-guide-ic { flex: none; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: #fff; color: #4f46e5; }
.pgs-guide-ic .nav-icon { width: 20px; height: 20px; }
.pgs-guide-m { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pgs-guide-m small { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #6366f1; }
.pgs-guide-m b { font-size: 14px; color: #1e1b4b; }
.pgs-guide-m .pgs-btns { margin-top: 6px; }
.pgs-guide-steps { margin: 4px 0 0; padding-left: 20px; list-style: decimal; font-size: 13px; line-height: 1.55; color: #3730a3; max-width: 720px; }
.pgs-guide-steps li { margin: 2px 0; padding-left: 2px; }
.pgs-guide-steps code { padding: 1px 6px; border-radius: 6px; background: #fff; color: #1e1b4b; font: 12px 'JetBrains Mono', ui-monospace, monospace; white-space: nowrap; }
.pgs-guide-x { position: absolute; top: 6px; right: 6px; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; border-radius: 8px; background: none; color: #4f46e5; cursor: pointer; }
.pgs-guide-x:hover { background: #e0e7ff; }
.pgs-guide-x .nav-icon { width: 18px; height: 18px; }
/* penampil eksternal: bilah host di LUAR bingkai (anti-spoof T8) */
.pgs-ext-stage { align-items: center; }
.pgs-xbar { flex-wrap: wrap; gap: 8px; padding: 8px 12px; font-size: 12.5px; }
.pgs-xbar .nav-icon { width: 14px; height: 14px; flex: none; }
.pgs-xbar-h { color: #111827; font-weight: 700; overflow-wrap: anywhere; }
.pgs-xbar-o { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; min-height: 28px; color: #4f46e5; font-weight: 600; text-decoration: none; }
.pgs-xbar-o:hover { text-decoration: underline; }
.pgs-iso .btn { margin-left: 8px; vertical-align: middle; }
.pgs-ext-url { max-width: 100%; padding: 6px 10px; border-radius: 8px; background: #f3f4f6; color: #374151; font: 12.5px 'JetBrains Mono', ui-monospace, monospace; overflow-wrap: anywhere; text-align: left; }
.pgs-att { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; }
.pgs-att-ic { flex: none; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; background: #f0f9ff; color: #0369a1; }
.pgs-att-ic .nav-icon { width: 20px; height: 20px; }
.pgs-att-m { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pgs-att-m b { font-size: 13px; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pgs-att-m strong { font-size: 12px; font-weight: 700; color: #111827; overflow-wrap: anywhere; }
.pgs-att-m small { font-size: 11.5px; color: #6b7280; }
@media (min-width: 769px) { .sb-pop.pgs-share-pop .sb-pop-body { max-height: calc(100vh - 190px); overflow-y: auto; } }
.pgs-xf { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.pgs-fld { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: #374151; }
.pgs-fld input[type="text"] { min-height: 40px; padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 8px; font: 400 14px Inter, sans-serif; color: #111827; background: #fff; }
.pgs-fld input[type="text"]:focus { outline: 2px solid #4f46e5; outline-offset: 0; border-color: #4f46e5; }
.pgs-fld input[aria-invalid="true"] { border-color: #b91c1c; }
.pgs-xvis { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.pgs-xvis legend { padding: 0; margin: 0 0 6px; font-size: 13px; font-weight: 600; color: #374151; }
.pgs-xh { margin: 4px 0 0; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; }
@media (max-width: 768px) {
  .pgs-guide { margin: 8px 16px 12px; padding-right: 40px; }
  .pgs-ext-act .btn { min-height: 44px; }
  .pgs-ext-act .btn:not(:first-child) { min-width: 44px; }
  .pgs-fld input[type="text"] { min-height: 44px; font-size: 16px; }
  .pgs-xbar-o { min-height: 44px; }
  .pgs-iso .btn { min-height: 44px; }
  .pgs-v-hp .pgs-iso { padding: 0 16px 8px; }
}
/* Banner pasang PWA (fixed, pwa-install.js) tidak menutup penampil yang terbuka (sejak v0.4 menutup penampil di 360 px). */
body.pgs-viewing #pwaInstallBanner { display: none !important; }
