/* Ayah Studio v50 — opt-in Quranic word insights. Study tools stay out of exported video. */
.wi50-launch{background:#102b36;border:1px solid #507478;border-radius:14px;padding:14px;margin:16px 0;color:#e6f0ed}
.wi50-launch strong{display:block;font-size:15px;margin-bottom:6px;color:#efd5a0}
.wi50-launch p{font-size:12px;line-height:1.55;margin:5px 0 12px;color:#bed1ce}
.wi50-button,.wi50-word,.wi50-tab,.wi50-ref,.wi50-close,.wi50-action{font:inherit;cursor:pointer}
.wi50-button{display:inline-flex;align-items:center;justify-content:center;background:#caa76c;color:#122b34;border:1px solid #caa76c;border-radius:10px;min-height:44px;padding:9px 14px;font-weight:750;font-size:13px}
.wi50-button:disabled{opacity:.6;cursor:not-allowed}
.wi50-result{font-size:12px!important;color:#cee3d8!important;line-height:1.6!important;margin-top:12px!important}
.wi50-words{display:flex;flex-wrap:wrap;gap:10px;margin:13px 0 4px}
.wi50-word{display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:6px;background:#f7f4ec;color:#202d29;min-width:96px;max-width:175px;flex:0 1 auto;border:1px solid #d2c9b6;border-radius:12px;padding:9px 12px;min-height:86px;text-align:center}
.wi50-word strong{font-family:'Amiri Quran','Amiri',serif;font-size:23px;color:#223529;direction:rtl;line-height:1.55;overflow-wrap:anywhere}
.wi50-word small{font-size:11px;color:#4e6157;line-height:1.35;overflow-wrap:anywhere}
.wi50-word:hover,.wi50-word:focus-visible{border-color:#c69e5d;outline:2px solid #c69e5d;outline-offset:1px}
.wi50-open{margin-top:6px;padding:7px 9px;min-height:36px;font:600 11px system-ui;border:1px solid #739188;background:#183c3b;color:#f5eee0;border-radius:8px;cursor:pointer}
#panel-quran .wi50-launch{background:#102e37;color:#f3f2e8}
#panel-quran .wi50-launch strong{color:#efd4a3}
.wi50-dialog{position:fixed;inset:0;max-width:none;max-height:none;width:100%;height:100%;margin:0;padding:0;border:0;background:rgba(6,19,16,.65);z-index:999999;overscroll-behavior:contain}
.wi50-dialog:not([open]){display:none}
.wi50-dialog::backdrop{background:rgba(6,19,16,.65)}
.wi50-sheet{position:absolute;bottom:0;left:0;right:0;margin:0 auto;max-height:min(94dvh,920px);overflow-y:auto;width:min(100%,700px);background:#fdfdfa;border-radius:23px 23px 0 0;box-shadow:0 0 50px rgba(0,0,0,.32);color:#24322c;font:15px/1.55 system-ui,-apple-system,"Segoe UI",sans-serif;padding:15px 18px 28px;scrollbar-width:thin}
.wi50-handle{width:40px;height:5px;background:#cfd7d0;border-radius:6px;margin:0 auto 15px}
.wi50-sheet h2{font-size:20px;margin:5px 0 10px;text-align:center;color:#172f25;line-height:1.35}
.wi50-head{padding:14px;border:1px solid #e1e7df;border-radius:14px;text-align:center;background:#fcfbf6}
.wi50-arabic{font:normal 38px/1.9 'Amiri Quran','Amiri',serif;direction:rtl;color:#9d7d2e}
.wi50-meaning{font-size:17px;font-weight:650;color:#49554e;overflow-wrap:anywhere}
.wi50-phonetics{font-size:12px;color:#6e8076}
.wi50-refs{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin:9px 0 0}
.wi50-chip{border:1px solid #d9e4d7;border-radius:30px;padding:5px 11px;color:#3c7350;font-size:12px;background:#f2f7ee}
.wi50-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;background:#f0f3ef;padding:6px;margin:15px -4px 0;border-radius:14px;position:sticky;top:0;z-index:2}
.wi50-tab{border:0;background:transparent;color:#4f5e55;font-size:12px;padding:10px 3px;border-radius:10px;min-height:43px}
.wi50-tab[aria-selected=true]{background:#fff;color:#176e42;box-shadow:0 2px 7px #0002;font-weight:700}
.wi50-body{padding:15px 2px 10px;min-height:160px}
.wi50-body h3{font-size:15px;color:#22372a;margin:4px 0 10px}
.wi50-body p{line-height:1.6;margin:8px 0;color:#52665a;font-size:13px}
.wi50-facts{display:grid;grid-template-columns:minmax(90px,125px) 1fr;gap:8px 12px;margin:13px 0}
.wi50-facts dt{font-size:12px;color:#6b8070}
.wi50-facts dd{margin:0;color:#23392c;overflow-wrap:anywhere}
.wi50-body a{color:#21764a;text-underline-offset:3px;font-weight:600}
.wi50-refslist{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}
.wi50-ref{background:#f1f7ef;color:#226a45;border:1px solid #c4dcca;border-radius:9px;min-height:39px;padding:6px 12px;font-size:12px}
.wi50-count{font-size:22px;font-weight:700;color:#256b45}
.wi50-actions{border-top:1px solid #e2e8e2;display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;padding-top:14px}
.wi50-action{background:#438a5f;border:1px solid #438a5f;color:white;border-radius:10px;min-height:43px;padding:8px 12px;font-size:13px;font-weight:650}
.wi50-action.secondary{color:#397c55;background:#fff}
.wi50-action:disabled{opacity:.5;cursor:not-allowed}
.wi50-close{border:0;border-top:1px solid #e0e8df;background:#fff;color:#478b5b;margin:13px -18px -28px;width:calc(100% + 36px);min-height:58px;font-size:15px}
.wi50-toast{color:#39764d;font-size:12px;margin-top:8px;min-height:20px}
.wi50-sheet :is(button,a):focus-visible{outline:3px solid #397e56;outline-offset:2px}
@media(max-width:430px){.wi50-sheet{padding:12px 12px 23px}.wi50-word{flex:1 1 100px}.wi50-tab{font-size:11px}.wi50-close{margin-left:-12px;margin-right:-12px;width:calc(100% + 24px)}}

.wi50-button.wi50-outline{background:transparent;color:#e5ecd7;border-color:#779a91}
.wi50-button.wi50-outline:hover{background:#20463f}
#panel-style .wi50-button{display:inline-flex;background:#caa76c;color:#102832;border:1px solid #caa76c;border-radius:10px;padding:9px 14px;min-height:43px;font-size:12px;font-weight:750;max-width:100%}
#panel-style .wi50-button.wi50-outline{background:#153640;color:#e6ebdf;border-color:#729590}
