.qm-ayah-dialog{width:min(520px,calc(100% - 24px));max-width:calc(100% - 24px);max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--line,#d1ded6);border-radius:23px;background:var(--surface,var(--paper,#fffdf8));color:var(--ink,#203c30);box-shadow:0 20px 80px #102b3040;overflow:hidden;box-sizing:border-box;direction:ltr;text-align:left}
.qm-ayah-dialog[open]{display:flex;flex-direction:column}.qm-ayah-dialog::backdrop{background:#10271d80}
.qm-ayah-dialog>header{display:flex;align-items:center;gap:10px;padding:14px 18px;border-bottom:1px solid var(--line,#d1ded6);flex-shrink:0}
.qm-ayah-dialog h2{flex:1;min-width:0;margin:0;font:750 20px/1.4 system-ui;color:inherit;overflow-wrap:anywhere}
.qm-ayah-close{width:44px;height:44px;min-width:44px;padding:0;border:0;border-radius:12px;background:var(--pale,#eef4ef);color:var(--ink,#203c30);font-size:26px;cursor:pointer}
.qm-ayah-body{padding:22px 20px;min-height:0;overflow:auto;overscroll-behavior:contain}
.qm-ayah-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:26px}
.qm-ayah-actions button{min-width:0;padding:0;display:grid;justify-items:center;gap:8px;border:0;background:transparent;color:var(--ink,#203c30);cursor:pointer}
.qm-ayah-actions button>span{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:var(--green,#286447);color:var(--surface,#fff)}
.qm-ayah-actions svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.qm-ayah-actions strong{font:650 11px/1.4 system-ui;text-align:center}
.qm-ayah-caption{font:750 10px/1.4 system-ui;letter-spacing:.1em;color:var(--muted,#53685d);margin:0 0 10px}
#qmAyahTranslation{font:400 var(--qm-translation-font-size,16px)/1.8 system-ui;color:inherit;overflow-wrap:anywhere;margin:0}
#qmAyahFeedback{font:650 12px/1.5 system-ui;color:var(--green,#286447);margin:14px 0 0}#qmAyahFeedback:empty{display:none}
.qm-ayah-dialog>footer{padding:12px 18px;border-top:1px solid var(--line,#d1ded6);flex-shrink:0}.qm-ayah-done{width:100%;min-height:44px;padding:10px;border:0;border-radius:12px;background:var(--pale,#eef4ef);color:var(--ink,#203c30);font:700 14px/1.4 system-ui;cursor:pointer}
.qm-ayah-dialog button:focus-visible{outline:3px solid var(--green,#286447);outline-offset:3px}
@media(max-width:600px){.qm-ayah-dialog{margin:auto 12px 12px}.qm-ayah-body{padding:20px 16px}.qm-ayah-dialog h2{font-size:18px}}
/* Five actions remain on one row before the lazily loaded tafsir stylesheet. */
.qm-ayah-actions{grid-template-columns:repeat(5,minmax(0,1fr))}.qm-ayah-actions button>span{width:42px;height:42px}.qm-ayah-actions strong{font-size:10px}.qm-ayah-actions button:disabled{opacity:.55;cursor:wait}
.qm-choose-translation{min-height:44px;margin-top:14px;padding:10px 14px;border:1px solid var(--line);border-radius:12px;background:var(--pale);color:var(--ink);font:650 14px system-ui}.qm-ayah-notes{margin-top:18px;color:var(--ink);font:14px/1.7 system-ui}.qm-ayah-notes li{margin-bottom:10px}
html[data-theme="night"] .qm-ayah-actions button>span{background:#294b39;color:#e0e6d8;box-shadow:none}html[data-theme="night"] .qm-ayah-dialog{background:#101c15;color:#d9e1d7;border-color:#3b5042}html[data-theme="night"] .qm-ayah-caption{color:#a4b5a9}html[data-theme="night"] .qm-ayah-dialog :is(.qm-ayah-close,.qm-ayah-done,.qm-choose-translation){background:#20372a;color:#d9e1d7;border-color:#3b5042}
