/* Isolated additions; the Qur'an DOM, data and renderer retain their source code. */
:root { --lw-reading-veil: .20; }
[hidden] { display:none!important; }
#lw-surface {
  position:fixed;inset:0;z-index:-2;width:100%;height:100%;
  pointer-events:none;visibility:hidden;
}
body.lw-ready #lw-surface { visibility:visible; }
body::before { z-index:-3; }
body.lw-ready::before { visibility:hidden; }
body::after { background:rgba(255,255,255,var(--lw-reading-veil)); }
/* Keep the original water clearly visible. Panels get enough contrast for reading. */
.panel,#settingsPanel,.surahPanel,.dictionaryPanel { background:rgba(247,255,255,.91)!important; }
.header,.rail { background:rgba(245,255,255,.70)!important; }
.reader { padding-bottom:max(80px,env(safe-area-inset-bottom)); }
.lw-icon { width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round; }
.lw-quick { display:flex;align-items:center;gap:6px;justify-self:start;direction:ltr; }
.lw-quick button { font-size:12px;padding:0 10px;min-height:34px; }
.lw-settings { direction:ltr;text-align:left; }
.lw-settings .settingTitle { line-height:1.5; }
.lw-settings p { font-size:12px;line-height:1.55;margin:8px 0 14px;color:#385b65; }
.lw-actions { display:flex;gap:6px;flex-wrap:wrap;margin:8px 0 14px; }
.lw-actions button,.lw-back-button {
  min-height:42px;padding:9px 12px;border:1px solid #c9dfe3;border-radius:12px;
  background:#f1fbfc;color:#184b58;font:inherit;font-size:12px;cursor:pointer;
}
.lw-actions button[aria-pressed="true"] { background:#236373;color:#fff;border-color:#236373; }
.lw-settings label { display:block;font-size:12px;line-height:1.6;margin:14px 0 4px;color:#244b58; }
.lw-settings output { float:right;font-weight:650; }
.lw-settings input[type="range"] { width:100%;accent-color:#236373;height:30px;margin:0; }
.lw-settings .lw-on-row { display:flex;align-items:center;justify-content:space-between;gap:8px; }
.lw-settings .lw-on-row label { margin:0;font-size:14px;font-weight:650; }
.lw-settings input[type="checkbox"] { width:20px;height:20px;accent-color:#236373; }
.lw-settings button:disabled { opacity:.5;cursor:default; }
.lw-settings button:focus-visible,.lw-quick button:focus-visible,#lw-toggle:focus-visible,.lw-back-button:focus-visible { outline:3px solid #26799b;outline-offset:3px; }
#lw-message { font-size:12px;line-height:1.5;color:#805136; }
#lw-drag-hint { position:fixed;bottom:max(16px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:60;direction:ltr;padding:6px;border-radius:18px;background:#f0ffffed;box-shadow:0 5px 25px #20555d22;white-space:nowrap; }
body.lw-drag .reader { touch-action:none;user-select:none;-webkit-user-select:none; }
@media(max-width:520px) {
  .lw-quick button { padding:0 8px;font-size:11px; }
  .lw-actions { gap:5px; }
  .lw-actions button { padding:8px;font-size:11px; }
}
