.pya-p36-dialog-open { overflow: hidden; }
.pya-p36-root[hidden] { display: none !important; }
.pya-p36-root { position: fixed; inset: 0; z-index: 140; font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif; }
.pya-p36-backdrop { position: absolute; inset: 0; background: rgba(2, 6, 23, .68); backdrop-filter: blur(4px); }
.pya-p36-sheet { position: absolute; right: 0; top: 0; bottom: 0; width: min(560px, 100%); overflow-y: auto; background: #fff; color: #0f172a; box-shadow: -28px 0 72px -36px rgba(2, 6, 23, .72); }
.pya-p36-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border-bottom: 1px solid #e2e8f0; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.pya-p36-header h2 { margin: 2px 0 0; font-size: 20px; font-weight: 800; }
.pya-p36-kicker { margin: 0; color: #047857; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.pya-p36-close { width: 42px; height: 42px; border: 1px solid #e2e8f0; border-radius: 14px; background: #f8fafc; color: #334155; cursor: pointer; font-weight: 800; }
.pya-p36-arabic { padding: 26px 24px; border-bottom: 1px solid #eee7da; background: #fcfbf7; color: #0f172a; font-family: 'Amiri Quran', 'Noto Naskh Arabic', serif; font-size: clamp(28px, 5vw, 38px); line-height: 2.1; text-align: right; }
.pya-p36-tabs { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 6px; padding: 12px; border-bottom: 1px solid #e2e8f0; background: #f8fafc; }
.pya-p36-tabs button { min-height: 44px; padding: 8px 6px; border: 0; border-radius: 12px; background: transparent; color: #475569; cursor: pointer; font-size: 11px; font-weight: 800; }
.pya-p36-tabs button.is-active { background: #064e3b; color: #fff; }
.pya-p36-body { padding: 24px; }
.pya-p36-label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pya-p36-label { margin: 0 0 12px; color: #047857; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.pya-p36-text { margin: 0; color: #334155; font-size: 15px; line-height: 1.85; white-space: pre-wrap; }
.pya-p36-latin { font-size: 17px; font-weight: 650; }
.pya-p36-arabic-secondary { margin: 18px 0 0; padding-top: 18px; border-top: 1px solid #e2e8f0; color: #475569; font-family: 'Amiri Quran', 'Noto Naskh Arabic', serif; font-size: 24px; line-height: 2; text-align: right; white-space: pre-wrap; }
.pya-p36-arabic-secondary:empty { display: none; }
.pya-p36-source { margin: 18px 0 0; color: #64748b; font-size: 11px; line-height: 1.6; }
.pya-p36-source:not(:empty)::before { content: 'Source : '; font-weight: 800; color: #475569; }
.pya-p36-verified { display: inline-flex; padding: 5px 8px; border-radius: 999px; background: #dcfce7; color: #166534; font-size: 10px; font-weight: 800; }
.pya-p36-select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 14px; background: #fff; color: #0f172a; font: inherit; font-size: 13px; }
.pya-p36-audio-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.pya-p36-primary, .pya-p36-secondary { min-height: 48px; border-radius: 14px; cursor: pointer; font: inherit; font-size: 12px; font-weight: 800; }
.pya-p36-primary { border: 1px solid #059669; background: #10b981; color: #052e24; }
.pya-p36-secondary { border: 1px solid #cbd5e1; background: #f8fafc; color: #334155; }
.pya-p36-footer { margin: 4px 24px 24px; padding: 16px; border: 1px solid #fde68a; border-radius: 16px; background: #fffbeb; color: #92400e; font-size: 11px; line-height: 1.65; }
.pya-p36-close:focus-visible, .pya-p36-tabs button:focus-visible, .pya-p36-primary:focus-visible, .pya-p36-secondary:focus-visible, .pya-p36-select:focus-visible { outline: 3px solid rgba(16,185,129,.32); outline-offset: 2px; }
@media (max-width: 640px) {
  .pya-p36-sheet { top: auto; width: 100%; max-height: 92dvh; border-radius: 24px 24px 0 0; }
  .pya-p36-tabs { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .pya-p36-audio-actions { grid-template-columns: 1fr; }
  .pya-p36-arabic { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .pya-p36-root * { scroll-behavior: auto !important; transition: none !important; }
}
