/* SuperByte — pratinjau tautan hasil kerja (PRD#chat-link-preview LP1–LP4 + D-LP5; link-preview.js).
   SATU berkas gaya untuk: kartu output di pesan (pip.html/widget.html, group.html, halaman Chat
   index.html untuk chat-group.js) dan popup/lembar bawah di dokumen HOST (disuntik `installHost`/`open`
   lewat cssHref). Disajikan web lewat /chat-widget/pip/link-preview.css (whitelist widget-shared.js).
   Sistem token consumer (hex literal, palet docs/guide/ui-design-system.md §2). z-index popup 960:
   DI ATAS panel/kartu chat (950–952) karena popup dibuka dari bubble, di bawah banner langganan (1000). */

/* ── kartu output di pesan asisten ── */
.sb-lp-cards { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 2px; }
a.sb-lp-card[href], a.sb-lp-card[href]:hover { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 380px; box-sizing: border-box; padding: 8px 10px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; color: #1f2937; text-decoration: none; line-height: 1.35; text-align: left; white-space: normal; opacity: 1; }
a.sb-lp-card[href]:hover { border-color: #c7d2fe; background: #f9fafb; }
a.sb-lp-card[href]:focus-visible { outline: 2px solid #4f46e5; outline-offset: 2px; }
.sb-lp-ico { flex: none; width: 32px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: #eef2ff; color: #4f46e5; }
.sb-lp-ico[data-kind="sheets"] { background: #dcfce7; color: #166534; }
.sb-lp-ico[data-kind="docs"] { background: #dbeafe; color: #2563eb; }
.sb-lp-ico[data-kind="slides"] { background: #fef3c7; color: #b45309; }
.sb-lp-ico[data-kind="drive"] { background: #f3f4f6; color: #4b5563; }
.sb-lp-ico[data-kind="superbyte_page"] { background: #eef2ff; color: #4f46e5; }
.sb-lp-ico[data-kind="sbfile"] { background: #f3f4f6; color: #374151; }
.sb-lp-ico[data-kind="external"] { background: #f3f4f6; color: #6b7280; }
.sb-lp-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.sb-lp-title { font-size: 14px; font-weight: 600; color: #111827; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-lp-sub { font-size: 12px; color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-lp-go { flex: none; display: inline-flex; color: #9ca3af; }

/* ── popup (desktop ≥ 768 px) ── */
.sb-lp-overlay { position: fixed; inset: 0; z-index: 960; display: flex; align-items: center; justify-content: center; padding: 24px; box-sizing: border-box; background: rgba(0, 0, 0, .4); font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #1f2937; animation: sbLpFade .15s ease-out; }
.sb-lp-dialog { position: relative; display: flex; flex-direction: column; width: min(1040px, 100%); height: min(760px, 100%); background: #fff; border-radius: 16px; box-shadow: 0 25px 50px rgba(0, 0, 0, .15); overflow: hidden; outline: none; }
.sb-lp-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px 14px 18px; border-bottom: 1px solid #e5e7eb; }
.sb-lp-head .sb-lp-ico { width: 36px; height: 36px; border-radius: 10px; }
.sb-lp-htext { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.sb-lp-htitle { font-size: 16px; font-weight: 600; color: #111827; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-lp-hsub { font-size: 12.5px; color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-lp-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: #f3f4f6; }
.sb-lp-seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font-family: inherit; font-weight: 500; font-size: 13px; line-height: 1.2; color: #4b5563; cursor: pointer; }
.sb-lp-seg button.is-on { background: #fff; color: #111827; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
a.sb-lp-btn[href], a.sb-lp-btn[href]:hover, button.sb-lp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; box-sizing: border-box; min-height: 36px; padding: 8px 16px; border-radius: 8px; border: 1px solid #d1d5db; background: #fff; color: #374151; font-family: inherit; font-weight: 500; font-size: 14px; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap; }
a.sb-lp-btn.sb-lp-primary[href] { background: #4f46e5; border-color: #4f46e5; color: #fff; }
a.sb-lp-btn.sb-lp-primary[href]:hover { background: #4338ca; border-color: #4338ca; }
button.sb-lp-btn:hover { background: #f9fafb; }
.sb-lp-btn:focus-visible, .sb-lp-x:focus-visible, .sb-lp-seg button:focus-visible, .sb-lp-tabs button:focus-visible { outline: 2px solid #4f46e5; outline-offset: 2px; }
.sb-lp-x { flex: none; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: transparent; color: #6b7280; cursor: pointer; }
.sb-lp-x:hover { background: #f3f4f6; color: #111827; }
.sb-lp-body { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; background: #f9fafb; overflow: auto; }
.sb-lp-frame { flex: 1 1 auto; width: 100%; height: 100%; min-height: 240px; border: 0; background: #fff; }
/* D-LP5 — pratinjau render-server (Sheets/Docs) di shadow root: wadah gulir fokusable (Esc/Tab/salin
   bawaan dokumen host). Isi bergaya di dalam shadow root (link-preview.js PREVIEW_CSS). */
.sb-lp-doc { flex: 1 1 auto; min-height: 0; overflow: auto; background: #fff; outline: none; }
.sb-lp-doc:focus-visible { outline: 2px solid #4f46e5; outline-offset: -2px; }
/* Bilah rumus berkas lokal (PRD#workspace-pdf-view v1.5 §7.11) — komponen bersama SBLinkPreview.fxBar; gaya sama dengan
   viewer File Kerja (workspace.html). Di luar area gulir .sb-lp-doc → tetap terlihat saat grid digulir. */
.sb-fx { display: flex; flex: none; align-items: stretch; min-height: 36px; border-bottom: 1px solid #e5e7eb; background: #fff; font-size: 13px; }
.sb-fx[hidden] { display: none; }
.sb-fx-ref { flex: none; width: 64px; display: flex; align-items: center; justify-content: center; border-right: 1px solid #e5e7eb; color: #374151; font-weight: 500; font-variant-numeric: tabular-nums; }
.sb-fx-ic { flex: none; display: flex; align-items: center; padding: 0 10px; color: #9ca3af; font-style: italic; font-family: Georgia, 'Times New Roman', serif; border-right: 1px solid #f3f4f6; }
.sb-fx-ic::before { content: 'fx'; }
.sb-fx-val { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; padding: 6px 12px; color: #111827; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 96px; overflow-y: auto; user-select: text; -webkit-user-select: text; }
.sb-fx-val.is-formula { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; }
.sb-fx-val.is-empty { color: #9ca3af; }
@media (max-width: 767px) { .sb-fx { min-height: 44px; font-size: 14px; } }
/* flex:none — overflow-x membuat min-height bilah tab = 0, jadi tanpa ini ia ikut menyusut sebanding tinggi isi .sb-lp-body (200 baris → bilah tab terpotong). */
.sb-lp-tabs { display: flex; gap: 4px; padding: 6px 12px; border-top: 1px solid #e5e7eb; background: #fff; overflow-x: auto; flex: none; }
.sb-lp-tabs[hidden], .sb-lp-foot[hidden] { display: none; }
.sb-lp-tabs button { flex: none; border: 0; background: transparent; padding: 5px 10px; border-radius: 6px; font-family: inherit; font-weight: 500; font-size: 12.5px; line-height: 1.2; color: #4b5563; cursor: pointer; }
.sb-lp-tabs button[aria-selected="true"] { background: #dcfce7; color: #166534; }
.sb-lp-tabs button:hover { background: #f3f4f6; }
.sb-lp-foot { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-top: 1px solid #e5e7eb; font-size: 12.5px; color: #6b7280; }
.sb-lp-dot { flex: none; width: 7px; height: 7px; border-radius: 9999px; background: #22c55e; }
.sb-lp-skel { display: flex; flex-direction: column; gap: 10px; padding: 24px; }
.sb-lp-skel span { display: block; height: 14px; border-radius: 4px; background: #e5e7eb; animation: sbLpPulse 1.2s ease-in-out infinite; }
.sb-lp-skel span:nth-child(1) { width: 40%; } .sb-lp-skel span:nth-child(2) { width: 92%; } .sb-lp-skel span:nth-child(3) { width: 86%; } .sb-lp-skel span:nth-child(4) { width: 70%; }
.sb-lp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sb-lp-meta { display: flex; gap: 14px; align-items: flex-start; margin: 24px; padding: 18px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; max-width: 560px; }
.sb-lp-meta .sb-lp-ico { width: 40px; height: 40px; border-radius: 10px; }
.sb-lp-meta-main { min-width: 0; }
.sb-lp-meta-title { font-size: 15px; font-weight: 600; color: #111827; }
.sb-lp-meta-url { margin-top: 2px; font-size: 12.5px; color: #6b7280; overflow-wrap: anywhere; }
.sb-lp-meta-msg { margin: 10px 0 0; font-size: 13.5px; color: #374151; }
.sb-lp-empty { padding: 32px; text-align: center; color: #6b7280; font-size: 13.5px; }
.sb-lp-slides { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 20px; }
.sb-lp-slide { margin: 0; width: min(760px, 100%); }
.sb-lp-slide-img { aspect-ratio: 16 / 9; border-radius: 8px; border: 1px solid #e5e7eb; background: #e5e7eb; overflow: hidden; animation: sbLpPulse 1.2s ease-in-out infinite; }
.sb-lp-slide.is-loaded .sb-lp-slide-img { aspect-ratio: auto; background: #fff; animation: none; }
.sb-lp-slide img { display: block; width: 100%; height: auto; }
.sb-lp-slide figcaption { margin-top: 4px; font-size: 12px; color: #6b7280; text-align: center; }
.sb-lp-more { font-size: 12.5px; color: #6b7280; }
/* LP2 — gambar berkas workspace / PNG halaman terbit (*.superbyte.page) + PDF */
.sb-lp-shot { display: flex; justify-content: center; align-items: flex-start; padding: 20px; }
.sb-lp-shot img { display: block; max-width: 100%; height: auto; border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.sb-lp-shot.is-file { align-items: center; min-height: 100%; box-sizing: border-box; }
.sb-lp-pdf { background: #525659; }
/* LP3 — Edit langsung: iframe editor Google + teks bantu yang tetap terlihat. `[hidden]` eksplisit
   karena .sb-lp-body/.sb-lp-live ber-display:flex (aturan penulis menimpa [hidden] bawaan UA). */
.sb-lp-seg button:disabled { color: #9ca3af; cursor: default; }
.sb-lp-body[hidden], .sb-lp-live[hidden], .sb-lp-livehelp[hidden] { display: none; }
.sb-lp-live { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; background: #fff; }
.sb-lp-liveframe { min-height: 0; }
.sb-lp-livehelp { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-top: 1px solid #e5e7eb; font-size: 12.5px; color: #4b5563; background: #f9fafb; }
.sb-lp-livehelp svg { flex: none; color: #6b7280; }

/* ── lembar bawah (mobile < 768 px) ── */
.sb-lp-overlay.is-sheet { align-items: flex-end; padding: 0; }
.sb-lp-overlay.is-sheet .sb-lp-dialog { width: 100%; height: auto; max-height: 88vh; border-radius: 16px 16px 0 0; animation: sbLpUp .26s cubic-bezier(.32, .72, 0, 1); padding-bottom: env(safe-area-inset-bottom, 0); }
.sb-lp-grab { width: 40px; height: 4px; margin: 8px auto 0; border-radius: 9999px; background: #d1d5db; }
.sb-lp-overlay.is-sheet .sb-lp-head { border-bottom: 0; padding: 10px 12px 8px 16px; }
.sb-lp-overlay.is-sheet .sb-lp-body { flex: 0 0 auto; height: 38vh; margin: 0 16px; border: 1px solid #e5e7eb; border-radius: 12px; }
.sb-lp-overlay.is-sheet .sb-lp-frame { min-height: 0; }
.sb-lp-overlay.is-sheet .sb-lp-tabs { margin: 0 16px; border-top: 0; padding: 6px 0 0; }
.sb-lp-overlay.is-sheet .sb-lp-meta { margin: 12px; }
.sb-lp-overlay.is-sheet .sb-lp-shot { padding: 10px; }
.sb-lp-actions { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px; }
.sb-lp-actions .sb-lp-btn { width: 100%; min-height: 44px; }
.sb-lp-help { margin: 2px 0 0; font-size: 12px; color: #6b7280; text-align: center; }

@keyframes sbLpPulse { 50% { opacity: .5; } }
@keyframes sbLpFade { from { opacity: 0; } }
@keyframes sbLpUp { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) {
  .sb-lp-overlay, .sb-lp-overlay.is-sheet .sb-lp-dialog, .sb-lp-skel span, .sb-lp-slide-img { animation: none; }
}

/* ── PRD#my-pages MP4 — kartu halaman (mockup layar A) + bingkai Halaman Saya di popup (layar B) ──
   Kartu tetap .sb-lp-card; entri yang tercatat di Halaman Saya mendapat lencana versi/visibilitas dan tautan
   "Buka di Halaman Saya" di sampingnya (.sb-lp-row). Popup: bilah .sb-lp-mpbar di bawah kepala. */
/* Owner 2026-11-04 (mockup W-F) — tombol aksi berada DI DALAM kotak kartu, bukan kotak kedua di sampingnya (dulu kartu menyempit
   dan tinggi keduanya tak sejajar). Baris = bingkai kartu; kartu <a> di dalamnya tanpa bingkai. Lebar cukup: tombol ringkas di
   kanan, tegak lurus di tengah. Sempit (HP, bubble, extension): tombol turun ke bawah selebar kartu — trik flex-grow 999, tanpa
   media query karena lebar bubble ≠ lebar layar. Chevron disembunyikan: aksi utama kini tombol, klik kartu tetap pratinjau. */
.sb-lp-row { display: flex; align-items: center; flex-wrap: wrap; column-gap: 4px; width: 100%; max-width: 520px; box-sizing: border-box;
  border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; overflow: hidden; }
.sb-lp-row:has(> a.sb-lp-card[href]:hover) { border-color: #c7d2fe; }
.sb-lp-cards .sb-lp-row > a.sb-lp-card[href] { flex: 999 1 220px; min-width: 0; max-width: none; border: 0; border-radius: 0; background: transparent; }
.sb-lp-cards .sb-lp-row > a.sb-lp-card[href]:hover { background: #f9fafb; }
.sb-lp-row > a.sb-lp-card .sb-lp-go { display: none; }
.sb-lp-cards .sb-lp-row > a.sb-lp-mp[href], .sb-lp-cards .sb-lp-row > a.sb-lp-mp[href]:hover { flex: 1 0 auto; justify-content: center; margin: 8px 10px; }
a.sb-lp-mp[href], a.sb-lp-mp[href]:hover { flex: none; display: inline-flex; align-items: center; gap: 6px; box-sizing: border-box; min-height: 32px; padding: 5px 12px; border: 1px solid #c7d2fe; border-radius: 8px; background: #fff; color: #4f46e5; font-size: 13px; font-weight: 500; line-height: 1.2; text-decoration: none; white-space: nowrap; opacity: 1; }
a.sb-lp-mp[href]:hover { background: #eef2ff; border-color: #a5b4fc; }
a.sb-lp-mp[href] { --sb-lp-open: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13.5 6H5.25A2.25 2.25 0 003 8.25v10.5A2.25 2.25 0 005.25 21h10.5A2.25 2.25 0 0018 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25'/%3E%3C/svg%3E"); }
a.sb-lp-mp[href]::before { content: ''; flex: none; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--sb-lp-open) center / contain no-repeat; mask: var(--sb-lp-open) center / contain no-repeat; }
/* Gaya tautan bubble (`.message.assistant .bubble a`: garis bawah, warna, overflow-wrap) lebih spesifik dari kartu — dinetralkan. */
.sb-lp-cards .sb-lp-row > a[href], .sb-lp-cards > a.sb-lp-card[href], .sb-lp-cards a.sb-lp-card[href] .sb-lp-title { text-decoration: none; overflow-wrap: normal; }
a.sb-lp-mp[href]:focus-visible { outline: 2px solid #4f46e5; outline-offset: 2px; }
.sb-lp-badges:empty { display: none; }
.sb-lp-subline { display: flex; align-items: center; gap: 6px; min-width: 0; }
.sb-lp-subline > .sb-lp-sub { flex: 0 1 auto; min-width: 0; }
.sb-lp-subline > .sb-lp-badges { flex: none; flex-wrap: nowrap; margin-top: 0; }
.sb-lp-badges { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: 2px; }
.sb-lp-bd { display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px; border-radius: 6px; background: #f3f4f6; color: #374151; font-size: 11.5px; font-weight: 500; line-height: 1.5; white-space: nowrap; }
.sb-lp-bd.is-priv { background: #f3f4f6; color: #374151; }
.sb-lp-bd.is-link { background: #dbeafe; color: #1d4ed8; }
.sb-lp-bd.is-pub { background: #dcfce7; color: #166534; }
.sb-lp-bd.is-exp { background: #fef3c7; color: #b45309; }
/* PRD#my-pages-mp5-7 (mockup W-F) — lencana asal kartu chat: berkas File Kerja "Di SuperByte" / platform Google. */
.sb-lp-bd.is-sb { background: #eef2ff; color: #4338ca; }
.sb-lp-bd.is-g { background: #f3f4f6; color: #374151; }
.sb-lp-mpbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 16px 8px 18px; border-bottom: 1px solid #e5e7eb; background: #fff; flex: none; }
.sb-lp-mpbar .sb-lp-badges { margin-top: 0; }
.sb-lp-ver, .sb-lp-ttl { min-height: 32px; padding: 4px 8px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; color: #111827; font-family: inherit; font-size: 13px; }
.sb-lp-strip { font-size: 12.5px; color: #4f46e5; font-weight: 500; }
.sb-lp-strip[hidden] { display: none; }
.sb-lp-grow { flex: 1 1 auto; }
.sb-lp-mpbar .sb-lp-btn { min-height: 32px; padding: 6px 12px; font-size: 13px; }
.sb-lp-share { display: flex; flex-direction: column; gap: 8px; padding: 12px 18px; border-bottom: 1px solid #e5e7eb; background: #f9fafb; flex: none; font-size: 13px; color: #374151; }
.sb-lp-opt { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.sb-lp-opt input { margin-top: 3px; }
.sb-lp-opt span { display: flex; flex-direction: column; }
.sb-lp-opt b { font-weight: 600; color: #111827; }
.sb-lp-share .sb-lp-ttl { align-self: flex-start; }
.sb-lp-share .sb-lp-help { margin: 0; font-size: 12.5px; color: #6b7280; }
.sb-lp-share-out { display: flex; gap: 8px; align-items: center; }
.sb-lp-share-out:empty { display: none; }
.sb-lp-link { flex: 1 1 auto; min-width: 0; min-height: 32px; padding: 4px 8px; border: 1px solid #d1d5db; border-radius: 8px; font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.sb-lp-share .sb-lp-share-save { align-self: flex-start; }
button.sb-lp-btn.sb-lp-primary { background: #4f46e5; border-color: #4f46e5; color: #fff; }
button.sb-lp-btn.sb-lp-primary:hover { background: #4338ca; }
button.sb-lp-btn:disabled { opacity: .6; cursor: default; }
@media (max-width: 767px) {
  a.sb-lp-mp[href] { min-height: 44px; }
  .sb-lp-overlay.is-sheet .sb-lp-mpbar { padding: 6px 16px 8px; border-bottom: 0; }
  .sb-lp-overlay.is-sheet .sb-lp-mpbar .sb-lp-btn, .sb-lp-ver { min-height: 40px; }
  .sb-lp-overlay.is-sheet .sb-lp-share { padding: 12px 16px; }
}

/* ── PRD#app-chat-voice F3 · LE1 — penampil deck + live edit (mockup live-talk-deck.html; PRD#chat-link-preview §2.6) ──
   SATU penampil untuk popup chat dan panggung live talk (`.sb-lp-stage`, SBLinkPreview.openStage): slide besar + panah +
   baris thumbnail + "Slide N dari M". Slide deck HTML = iframe 1280×720 diskalakan (`--sb-lp-k` dari ResizeObserver);
   iframe tidak menerima pointer (klik = navigasi penampil, bukan isi berkas). Sorot revisi 1,6 dtk = .is-flash. */
.sb-lp-deck { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 12px; box-sizing: border-box; }
.sb-lp-dmain { flex: 1 1 auto; min-height: 160px; display: flex; align-items: center; justify-content: center; gap: 8px; container-type: size; }
.sb-lp-dslide { position: relative; flex: none; width: min(calc(100cqw - 96px), calc(100cqh * 16 / 9)); aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #e5e7eb; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.sb-lp-dslide.is-loaded { background: #fff; }
.sb-lp-dslide img, .sb-lp-dthumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sb-lp-dframe { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; min-height: 0; border: 0; transform: scale(var(--sb-lp-k, .5)); transform-origin: 0 0; pointer-events: none; background: transparent; }
.sb-lp-nav { flex: none; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #e5e7eb; border-radius: 9999px; background: #fff; color: #374151; cursor: pointer; }
.sb-lp-nav:hover:not(:disabled) { background: #f3f4f6; }
.sb-lp-nav:disabled { opacity: .35; cursor: default; }
.sb-lp-nav:focus-visible, .sb-lp-dthumb:focus-visible { outline: 2px solid #4f46e5; outline-offset: 2px; }
.sb-lp-dfoot { flex: none; display: flex; align-items: center; gap: 10px; min-width: 0; }
.sb-lp-dthumbs { flex: 1 1 auto; min-width: 0; display: flex; gap: 8px; overflow-x: auto; padding: 3px; }
.sb-lp-dthumb { position: relative; flex: none; width: 112px; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: #e5e7eb; color: #6b7280; font: 500 12px/1 Inter, -apple-system, 'Segoe UI', Roboto, sans-serif; cursor: pointer; outline: 2px solid transparent; outline-offset: 1px; --sb-lp-k: .0875; }
.sb-lp-dthumb.is-loaded { background: #fff; }
.sb-lp-dthumb.is-on { outline-color: #4f46e5; }
.sb-lp-dpos { flex: none; font-size: 12px; color: #6b7280; white-space: nowrap; }
.sb-lp-dslide.is-flash, .sb-lp-dthumb.is-flash { animation: sbLpFlash 1.6s ease-out; }
.sb-lp-body.is-flash { animation: sbLpFlashIn 1.6s ease-out; }
@keyframes sbLpFlash { 0%, 40% { box-shadow: 0 0 0 4px #f59e0b; } 100% { box-shadow: 0 1px 3px rgba(0, 0, 0, .12); } }
@keyframes sbLpFlashIn { 0%, 40% { box-shadow: inset 0 0 0 3px #f59e0b; } 100% { box-shadow: inset 0 0 0 0 transparent; } }
/* Panggung live talk / Halaman Saya: penampil mengisi wadah pemanggil (tanpa latar modal). */
.sb-lp-stage { display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 0; font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #1f2937; }
.sb-lp-dialog.is-stage { width: 100%; height: 100%; border-radius: 12px; box-shadow: none; border: 1px solid #e5e7eb; }
/* Panggung di wadah sempit (File Kerja HP 360 px): aksi kepala jadi tombol ikon 44 px — label tetap ada untuk pembaca layar
   (teks tersembunyi visual, bukan display:none); toggle Pratinjau/Edit langsung turun ke baris kedua. CSS saja. */
.sb-lp-stage { container-type: inline-size; }
@container (max-width: 400px) {
  .sb-lp-dialog.is-stage .sb-lp-head { flex-wrap: wrap; gap: 8px; padding: 10px 10px 10px 12px; }
  .sb-lp-dialog.is-stage .sb-lp-head .sb-lp-ico { width: 32px; height: 32px; }
  .sb-lp-dialog.is-stage .sb-lp-head a.sb-lp-btn[href] { position: relative; flex: none; width: 44px; min-height: 44px; padding: 0; }
  .sb-lp-dialog.is-stage .sb-lp-head a.sb-lp-btn[href] > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sb-lp-dialog.is-stage .sb-lp-head .sb-lp-seg { order: 3; flex: 1 0 100%; justify-content: center; }
}
.sb-lp-overlay.is-sheet .sb-lp-deck { padding: 10px 8px 8px; }
.sb-lp-overlay.is-sheet .sb-lp-dthumb { width: 40px; display: inline-flex; align-items: center; justify-content: center; }
.sb-lp-overlay.is-sheet .sb-lp-dthumb.is-loaded { width: 72px; --sb-lp-k: .05625; }
/* Kartu output bergambar: thumbnail versi terbaru Halaman Saya di atas baris judul. */
a.sb-lp-card.has-thumb[href] { flex-wrap: wrap; }
.sb-lp-thumb { order: -1; flex: 0 0 100%; aspect-ratio: 16 / 9; margin: -2px 0 2px; border-radius: 8px; overflow: hidden; background: #f3f4f6; border: 1px solid #e5e7eb; }
.sb-lp-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) {
  .sb-lp-dslide.is-flash, .sb-lp-dthumb.is-flash, .sb-lp-body.is-flash { animation: none; outline: 3px solid #f59e0b; outline-offset: -3px; }
}
