.qw-verse-meal{margin:22px 0 18px;padding:16px 0 16px 14px;border-top:1px solid #e4e9df;border-bottom:1px solid #e4e9df;border-left:3px solid #c6a149;color:#173c30;text-align:left;direction:ltr;background:#fffdf4}
.qw-verse-meal[hidden]{display:none!important}
.qw-verse-meal header{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.qw-verse-meal h3{margin:0;font:700 11px/1.6 system-ui;color:#79601e}
.qw-verse-meal h3 span{font-weight:500}
.qw-meal-content{font:400 14px/1.95 system-ui;padding-right:10px;overflow-wrap:anywhere}
.qw-meal-content p{margin:0}
.qw-meal-content button,.qw-grammar-content>button{display:block;min-height:40px;margin-top:10px;padding:7px 12px;border:1px solid #bdd5c7;border-radius:5px;background:white;color:#075a3b;font:600 12px system-ui;cursor:pointer}
.qw-grammar{margin-top:20px;border-top:1px solid #dbe6df;direction:ltr;text-align:left}
.qw-grammar summary{padding:15px 4px;cursor:pointer;color:#075a3b;font:700 14px/1.5 system-ui;min-height:48px}
.qw-grammar-content{font:400 13px/1.8 system-ui;overflow-wrap:anywhere}
.qw-grammar-facts{margin:0}
.qw-grammar-facts>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #e2eae5}
.qw-grammar-facts dt{font:600 12px/1.6 system-ui;color:#62766b}
.qw-grammar-facts dd{margin:0;font:600 13px/1.6 system-ui;color:#173c30}
.qw-grammar-facts dd[lang=ar],.qw-segments b{font-family:AmiriQuran,'Amiri Quran Local',serif;font-size:27px;line-height:1.8;font-weight:400}
.qw-root-count{margin:14px 0;color:#536c5e;font-size:12px}
.qw-grammar h4{font:700 13px/1.6 system-ui;color:#173c30;margin:20px 0 10px}
.qw-segments{display:flex;align-items:center;justify-content:flex-start;gap:8px;flex-wrap:wrap}
.qw-segments>div{flex:1 1 105px;min-width:0;border:1px solid #c9ddce;border-radius:6px;padding:8px;text-align:center;background:#f3f9f5}
.qw-segments b,.qw-segments span,.qw-segments small{display:block}
.qw-segments>div>span{font:600 11px/1.6 system-ui;color:#075a3b}
.qw-segments small{font:400 11px/1.7 system-ui;color:#536c5e;direction:ltr}
.qw-segment-plus{flex:0 0 auto;font:500 18px system-ui;color:#92742c}
.qw-dialog.qw-word-sheet{width:min(490px,calc(100% - 16px));max-height:92dvh;padding:20px;border:1px solid #c8e9d6;border-top:4px solid #bd9a48;border-radius:26px;background:radial-gradient(ellipse at 0 0,#eff8f3 0,transparent 48%),radial-gradient(ellipse at 100% 65%,#f4fbf7 0,transparent 50%),#fffdf7;box-shadow:0 20px 80px #20473135;color:#355141}
.qw-dialog.qw-word-sheet::backdrop{background:#14372a24;backdrop-filter:none}
.qw-word-sheet header h3{font:750 10px/1.5 system-ui;letter-spacing:1.8px;color:#3b6f53}
.qw-word-sheet [data-close]{width:36px;height:36px;background:#ffffffcc;border:1px solid #dcefe4;border-radius:50%;color:#618570}
.qw-word-sheet .qw-detail-arabic{margin:6px 0 0;font-size:46px;line-height:1.9;color:#315340}
.qw-word-sheet>h2{font:750 21px/1.5 system-ui;margin:0;color:#408c61}
.qw-meaning-caption{display:block;text-align:center;font:11px/1.6 system-ui;color:#7e9d8b;margin-top:2px}
.qw-word-sheet .qw-context{font-size:10px;color:#a18c86;margin:10px 0 16px}
.qw-word-summary{margin:0;text-align:left;direction:ltr}
.qw-discovery-heading{display:flex;align-items:center;gap:7px;font:750 12px/1.6 system-ui;color:#53946f;margin-bottom:10px}
.qw-discovery-heading>span{color:#bc9841;font-size:19px}.qw-discovery-heading>small{margin-left:auto;border:1px solid #d0ecdc;border-radius:20px;padding:3px 10px;background:#fff9;font-size:10px;color:#6d9c81}
.qw-fact-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;margin:9px 0;border:1px solid #d6efe1;border-radius:18px;background:linear-gradient(120deg,#ecf8f1,#f9fdfb);box-shadow:0 3px 12px #56886c05}
.qw-fact-card>div{min-width:0}.qw-fact-card small{display:block;font:650 9px/1.6 system-ui;letter-spacing:.7px;color:#75a68a}.qw-fact-card strong{display:block;font:400 31px/1.65 AmiriQuran,'Amiri Quran Local',serif;color:#176342;overflow-wrap:anywhere;text-align:left}.qw-root-card strong{word-spacing:.18em}
.qw-fact-card p{font:12px/1.7 system-ui;color:#4d715c;margin:8px 0}
.qw-fact-card .qw-frequency-info{flex:0 0 50%;text-align:right}.qw-frequency{display:inline-flex;align-items:baseline;gap:5px;padding:3px 10px;background:#ffffffb8;border:1px solid #d7ede0;border-radius:12px;font:11px/1.6 system-ui;color:#6d9e82}.qw-frequency b{font-size:22px;font-weight:750;color:#176342}.qw-frequency-info>small{font-weight:400;font-size:9px;letter-spacing:0;margin-top:5px;line-height:1.5}
.qw-lemma-card{border-color:#d6efe1;background:linear-gradient(120deg,#f4fbf7,#f4faf6)}.qw-lemma-card small{color:#7cb394}.qw-lemma-card strong{color:#2e7250}.qw-lemma-card .qw-frequency{border-color:#d7efe1;color:#77ac8e}.qw-lemma-card .qw-frequency b{color:#2e7250}
.qw-frequency-pending{font:10px/1.7 system-ui;color:#8ba395}.qw-count-scope{font:9px/1.7 system-ui;color:#7e9285;margin:9px 3px 0}.qw-count-scope button{border:0;background:none;text-decoration:underline;color:#529a71;padding:4px;font:inherit;cursor:pointer}
.qw-discovery-loading{padding:18px 12px;border:1px dashed #c9ead7;border-radius:16px;background:#f1f9f4;color:#74ae8d;text-align:center;font:12px/1.8 system-ui}.qw-discovery-loading span{color:#c3a154}.qw-discovery-error{font:12px/1.7 system-ui;color:#6b977e}.qw-word-summary>button{border:1px solid #c5e8d4;background:#f0f9f4;padding:8px 14px;color:#549d73;border-radius:12px;cursor:pointer}
.qw-word-sheet .qw-learning{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:17px}.qw-word-sheet .qw-learning button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:46px;border-radius:15px;border:1px solid #caead8;background:#f2faf5;color:#569b74;font-size:12px;box-shadow:0 3px 7px #538b6b05}.qw-word-sheet .qw-learning [data-state=learning]::before{content:'✦';font-size:17px;color:#bd9b3d}.qw-word-sheet .qw-learning [data-state=known]::before{content:'✓';font-size:17px;color:#548f82}.qw-word-sheet .qw-learning [data-state=reset]{grid-column:1/-1;min-height:28px;padding:5px;border:0;box-shadow:none;background:transparent;color:#99ada2;font-size:10px}
.qw-word-sheet .qw-learning [data-state=learning][aria-pressed=true]{background:#f8eac4;border-color:#dbbd6b;color:#8d6d25}.qw-word-sheet .qw-learning [data-state=known][aria-pressed=true]{background:#e1f0e9;border-color:#9ccbbb;color:#347b68}
.qw-word-sheet .qw-word-audio-actions{grid-template-columns:1fr 1fr;gap:7px;margin-top:9px}.qw-word-sheet .qw-word-audio-actions .qw-listen{min-height:42px;padding:8px;border:1px solid #d9eae0;border-radius:12px;background:#ffffffa8;color:#769e87;font-size:9px}.qw-word-sheet .qw-listen img{width:16px;height:16px;opacity:.75}.qw-word-sheet .qw-listen-ayah .qw-control-icon{filter:none}.qw-word-sheet .qw-dialog-reciter{font-size:9px;color:#8ca295}.qw-word-sheet .qw-feedback{font-size:11px;color:#578477;margin:5px 0}
.qw-word-sheet .qw-grammar{margin-top:12px;border-color:#d9ece1}.qw-word-sheet .qw-grammar summary{padding:13px 10px;color:#5b9d77;background:#eef8f2;border:1px solid #d7efe1;border-radius:13px;min-height:44px;font-size:12px}.qw-word-sheet .qw-grammar-content{padding-top:8px}.qw-word-sheet .qw-grammar h4{color:#87652e}.qw-word-sheet .qw-grammar-facts dd{color:#518f6c}.qw-word-sheet .qw-segments>div{border-color:#d4ecde;border-radius:15px;background:linear-gradient(140deg,#eef8f2,#f7fbf8)}.qw-word-sheet .qw-segments b{color:#579b74}.qw-word-sheet .qw-segments small{color:#819e8d}.qw-word-sheet .qw-segments>div>span{color:#629678}
@media(max-width:350px){.qw-dialog.qw-word-sheet{padding:16px}.qw-word-sheet .qw-detail-arabic{font-size:40px}.qw-word-sheet>h2{font-size:18px}.qw-fact-card{padding:10px 11px;gap:8px}.qw-fact-card strong{font-size:28px}.qw-frequency b{font-size:20px}}

/* Kelime açıklaması, okunan ayetin üzerinde kalabilen kaydırılabilir alt panel. */
.qw-dialog.qw-word-sheet{position:fixed;inset:auto 0 0;width:min(100%,560px);height:min(560px,60dvh);max-height:calc(100dvh - env(safe-area-inset-top,0px));margin:0 auto;padding:0 18px calc(18px + env(safe-area-inset-bottom,0px));overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;border:1px solid #bcddca;border-bottom:0;border-top:3px solid #c9a957;border-radius:24px 24px 0 0;background:linear-gradient(145deg,#f8fcf8 0%,#fffdf5 55%,#f3f8f2 100%);box-shadow:0 -15px 55px #163b3040;scrollbar-width:thin}
.qw-dialog.qw-word-sheet.qw-sheet-expanded{height:88dvh}
.qw-word-sheet .qw-sheet-grab{position:sticky;top:0;z-index:3;display:block;width:88px;height:30px;margin:0 auto 2px;padding:0;border:0;background:linear-gradient(145deg,#f8fcf8,#fffdf5);cursor:ns-resize;touch-action:none}
.qw-word-sheet .qw-sheet-grab::before{content:"";display:block;width:42px;height:4px;margin:auto;border-radius:5px;background:#adcdbb}
.qw-word-sheet header{padding:4px 0 9px;border-bottom:1px solid #deeadf}
.qw-word-sheet header h3{font-size:10px;letter-spacing:1.4px;color:#63846e}
.qw-word-sheet [data-close]{flex:0 0 34px;width:34px;height:34px}
.qw-word-identity{display:grid;grid-template-columns:minmax(80px,auto) minmax(0,1fr);column-gap:15px;align-items:center;padding:10px 2px 12px;border-bottom:1px solid #e2e9dc;text-align:left}
.qw-word-sheet .qw-word-identity .qw-detail-arabic{grid-column:1;grid-row:1/3;max-width:150px;margin:0;font-size:36px;line-height:1.55;text-align:center;overflow-wrap:anywhere}
.qw-word-identity h2{grid-column:2;grid-row:1;min-width:0;margin:0;font:750 21px/1.4 system-ui;color:#206e4b;text-align:left;overflow-wrap:anywhere}
.qw-word-identity .qw-meaning-caption{grid-column:2;grid-row:2;margin:0;text-align:left;color:#658273}
.qw-word-identity .qw-context{grid-column:1/-1;grid-row:3;margin:4px 0 0;color:#7e9184;text-align:left}
.qw-word-sheet .qw-word-summary{padding-top:10px}
.qw-word-sheet .qw-discovery-heading{margin:0 0 5px;font-size:11px}
.qw-word-sheet .qw-fact-card{padding:8px 11px;margin:5px 0;border-radius:13px;background:#ffffffc9;box-shadow:none}
.qw-word-sheet .qw-fact-card small{font-size:9px}
.qw-word-sheet .qw-fact-card strong{font-size:25px;line-height:1.35}
.qw-word-sheet .qw-fact-card .qw-frequency-info{flex-basis:44%}
.qw-word-sheet .qw-frequency{padding:2px 7px;font-size:10px}
.qw-word-sheet .qw-frequency b{font-size:16px}
.qw-word-sheet .qw-count-scope{margin:4px 1px 0;font-size:9px}
.qw-word-sheet .qw-learning{margin-top:10px}
.qw-word-sheet .qw-learning button{min-height:42px;background:#fff;color:#195b3f;font-size:12px}
.qw-word-sheet .qw-grammar{margin:10px 0 0;border:0}
.qw-word-sheet .qw-grammar summary{border:1px solid #b8d8c1;border-radius:13px;background:linear-gradient(90deg,#e7f3e9,#fff7dd);color:#176344;text-align:center;font-size:13px;list-style:none}
.qw-word-sheet .qw-grammar summary::-webkit-details-marker{display:none}
.qw-word-sheet .qw-grammar summary::after{content:"⌄";display:inline-block;margin-left:8px;font-size:17px;line-height:0;vertical-align:middle}
.qw-word-sheet .qw-grammar[open] summary::after{content:"⌃"}
.qw-word-sheet .qw-grammar-content{padding:12px 0 0}
.qw-word-sheet .qw-grammar h4{margin:8px 0 10px;color:#806422;font-size:13px}
.qw-word-sheet .qw-segments{gap:6px}
.qw-word-sheet .qw-segments>div{flex:1 1 85px;padding:7px;border-radius:12px;background:#f4faf5}
.qw-word-sheet .qw-segments b{font-size:25px;line-height:1.4}
.qw-explanation{margin-top:13px;padding:14px;border:1px solid #d8e9db;border-left:3px solid #c8a044;border-radius:14px;background:#fffdf8;font:12px/1.7 system-ui;color:#385744}
.qw-explanation h4{margin:0 0 8px!important;text-transform:uppercase;letter-spacing:.3px}
.qw-explanation>p{margin:0 0 10px}
.qw-explanation strong{color:#1d6b48}
.qw-explanation ol{margin:0;padding:0;list-style:none}
.qw-explanation li{display:flex;align-items:flex-start;gap:10px;padding:10px 0;border-top:1px solid #e8eee7}
.qw-explanation li>div{min-width:0;flex:1}
.qw-explanation li strong[lang=ar],.qw-explanation-root span[lang=ar]{font:400 24px/1.4 AmiriQuran,'Amiri Quran Local',serif;color:#075a3b}
.qw-explanation li p{margin:4px 0 0}
.qw-step-number{display:grid;place-items:center;width:22px;height:22px;flex:0 0 22px;border-radius:50%;background:#e7f3e9;color:#126344;font-weight:750}
.qw-explanation .qw-explanation-root{margin:10px 0 0;padding-top:10px;border-top:1px solid #e8eee7}
.qw-word-sheet .qw-word-audio-actions{margin-top:12px}
@media(max-width:350px){.qw-dialog.qw-word-sheet{padding-inline:12px}.qw-word-sheet .qw-word-identity .qw-detail-arabic{font-size:29px}.qw-word-identity h2{font-size:18px}.qw-word-sheet .qw-fact-card strong{font-size:23px}}


/* Full-width word sheet with natural, non-overlapping text flow. */
.qw-dialog.qw-word-sheet{left:0;right:0;width:100vw;max-width:100vw;margin-left:0;margin-right:0;box-sizing:border-box;border-left:0;border-right:0;padding-left:14px;padding-right:14px}
.qw-word-sheet .qw-word-identity{display:flex;flex-direction:column;align-items:stretch;gap:7px;padding:12px 0 14px;min-width:0}
.qw-word-sheet .qw-word-identity .qw-detail-arabic{display:block;flex:none;max-width:100%;width:100%;height:auto;margin:0;padding:8px 0;font-size:36px;line-height:2.2;text-align:center;white-space:normal;overflow-wrap:anywhere;box-sizing:border-box}
.qw-word-sheet .qw-word-identity>h2{margin:0;font-size:21px;line-height:1.6;text-align:center;overflow-wrap:anywhere}
.qw-word-sheet .qw-word-identity .qw-meaning-caption{margin:0;font:12px/1.6 system-ui;text-align:center}
.qw-word-sheet .qw-word-identity .qw-context{margin:0;font:12px/1.6 system-ui;text-align:center}
.qw-word-sheet .qw-word-summary{padding-top:14px;min-width:0}
.qw-word-sheet .qw-fact-card{align-items:center;gap:12px;padding:10px 12px}
.qw-word-sheet .qw-fact-card>div{min-width:0}
.qw-word-sheet .qw-fact-card strong{display:block;font-size:27px;line-height:1.9;overflow-wrap:anywhere}
.qw-word-sheet .qw-fact-card small{display:block;font-size:11px;line-height:1.6}
.qw-word-sheet .qw-phrase-note{margin:14px 0 8px;font-size:13px;line-height:1.7}
.qw-word-sheet .qw-phrase-arabic{margin:8px 0 14px;line-height:2.1;overflow-wrap:anywhere}
.qw-word-sheet .qw-explanation{line-height:1.8}
