.khatma-promo{margin-block:28px;padding:28px;border:1px solid #b39a6266;border-radius:22px;display:flex;gap:24px;align-items:center;justify-content:space-between}.khatma-promo h2{margin:8px 0}.k-app{max-width:1040px;padding-block:30px 60px}.k-intro{text-align:center;max-width:780px;margin:18px auto 30px}.k-intro h1{font-size:clamp(30px,5vw,48px);line-height:1.6}.k-create{max-width:500px;padding:28px;border:1px solid #b39a6266;border-radius:18px;margin:20px auto}.k-create input{margin:12px 0 20px}.k-top{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}.k-progress{height:14px;background:#dcd8ca;border-radius:20px;overflow:hidden;margin-top:25px}.k-progress span{display:block;height:100%;background:#2d7c4b;transition:width .3s}.k-legend{display:flex;justify-content:center;gap:25px}.k-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px}.k-part{border:1px solid #bbb7a8;border-radius:13px;padding:18px 8px;display:flex;flex-direction:column;gap:8px;align-items:center;min-height:115px;background:var(--paper,#f8f7f2);color:inherit;cursor:pointer}.k-part strong{font-size:21px}.k-part span{font-size:15px;overflow-wrap:anywhere}.k-part.reserved{background:#f1e1b8;color:#41351e}.k-part.completed{background:#225a40;color:white}.k-part.mine{outline:2px solid #b39a62;outline-offset:2px}.k-part:hover{box-shadow:0 5px 16px #173e3518}.k-note{font-size:15px;line-height:1.9;padding:20px;border:1px solid #b39a6244;border-radius:13px;margin:25px 0;color:inherit}.k-success{background:#e5efdf;color:#173e35;border-radius:18px;padding:25px}.k-success b{font-size:28px}.k-recent{display:grid;gap:12px}.k-recent a{padding:18px;border:1px solid #b39a6244;border-radius:12px}.k-stack{display:grid;gap:12px;margin:15px 0}.k-reader{max-height:61vh;min-height:250px;overflow-y:auto;border:1px solid #b39a6277;padding:28px;border-radius:18px;background:#fbfaf5;color:#173e35;scrollbar-gutter:stable}.k-reader h2{font:28px Naskh;text-align:center;background:#e8ecdf;padding:10px}.k-verse{font-family:Naskh,serif;font-size:clamp(26px,4vw,34px);line-height:2.3;margin:20px 0;text-align:right}.k-aya{font-size:.73em;white-space:nowrap;color:#807045}.k-reader-nav{display:flex;gap:15px;align-items:center;justify-content:space-between;margin:20px 0}.k-reader-nav span{font-size:14px}.k-reading-title{font-size:24px;text-align:center}.k-source{font-size:14px;line-height:1.8;opacity:.85}.k-source a{text-decoration:underline}#kStatus{min-height:1.5em;font-size:15px;line-height:1.8}#kActionError{color:#a33929;line-height:1.8}@media(max-width:650px){.k-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.k-part{min-height:105px;padding:14px 6px}.khatma-promo{flex-direction:column;align-items:stretch}.k-reader{padding:17px}.k-reader-nav .primary,.k-reader-nav .outline{padding:10px 12px}.k-legend{gap:15px;font-size:14px}.k-app{padding-top:15px}}

.k-reader.mushaf-sheet{max-height:none;min-height:400px;overflow:visible;max-width:720px;margin:20px auto;padding:30px 24px 15px;border:5px double #b39a6277;border-radius:5px;background:#fbfaf5}.mushaf-sheet .k-verse{font-size:clamp(23px,3.7vw,32px);line-height:2.45}.mushaf-page-number{text-align:center;color:#807045;margin-top:22px;font-family:Naskh;font-size:23px}.mushaf-line{display:flex;align-items:baseline;justify-content:space-between;white-space:nowrap;direction:rtl;line-height:1.95;min-height:1.95em}.mushaf-line span{display:inline-block}.mushaf-basmala{text-align:center;font-family:Naskh;font-size:clamp(20px,3.5vw,30px);line-height:1.9;margin-bottom:8px}.mushaf-accessible{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.mushaf-sheet h2{margin:12px 0;border:1px solid #b39a6266;border-radius:3px}@media(max-width:650px){.k-reader.mushaf-sheet{padding:15px 10px 10px;width:100%}.k-reader-nav{gap:8px}.k-reader-nav span{font-size:12px}.k-reader-nav button{font-size:13px!important}}
.k-dedication{margin:12px 0 22px;border:1px solid #b39a6266;border-radius:12px;padding:15px;text-align:right}.k-dedication summary{cursor:pointer;line-height:1.8}.k-dedication p{font-size:14px;line-height:1.9}.k-dedication select{width:100%;min-height:48px;padding:10px;border-radius:9px;background:var(--paper);color:inherit;border:1px solid #b39a6277}.k-consent{display:flex;gap:12px;align-items:flex-start;font-size:16px;line-height:1.9;margin:20px 0}.k-consent input{width:22px!important;height:22px;min-width:22px;min-height:22px;margin:6px 0;accent-color:#245d46}.k-completion-actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-top:22px}.k-dua{font-family:Naskh,serif;font-size:25px;line-height:2.15;text-align:right}.k-dua p{margin:18px 0}.k-dua .k-source{font-family:inherit;font-size:17px;border:1px solid #b39a6266;border-radius:10px;padding:14px;line-height:1.9}.k-card-preview{display:grid;gap:18px;margin:18px auto;max-width:340px}.k-card-preview img{width:100%;height:auto;border:1px solid #b39a6266;border-radius:12px;box-shadow:0 8px 22px #173e3520}#kCardStatus,#kRenameError{line-height:1.9}#kCardButtons[hidden]{display:none}@media(max-width:550px){.k-completion-actions{flex-direction:column;align-items:stretch}.k-dua{font-size:23px}.k-card-preview{max-width:290px}}
.k-dua p{font-size:inherit}.k-dua .k-source{font-size:17px}.k-card-download{display:block;text-align:center;padding:12px;border:1px solid #b39a6266;border-radius:10px;font-size:15px;text-decoration:none!important}
#kDuaPrint{display:none}
@media print{
 @page{size:A4;margin:18mm}
 html,body{height:auto!important;overflow:visible!important;background:white!important;color:#172e27!important}
 body>*:not(#kDuaPrint){display:none!important}
 #kDuaPrint{display:block!important;font-family:Naskh,serif!important;font-size:16pt!important;line-height:1.9!important;direction:rtl;text-align:right}
 #kDuaPrint header{text-align:center;margin-bottom:8mm}
 #kDuaPrint h1{font:26pt Naskh,serif!important;line-height:1.6!important;margin:3mm 0!important}
 #kDuaPrint h2{font:18pt Naskh,serif!important;margin:0!important}
 #kDuaPrint p{font:16pt Naskh,serif!important;line-height:1.9!important;margin:0 0 5mm!important;orphans:3;widows:3}
 #kDuaPrint footer{display:block!important;font:10pt Naskh,serif!important;margin-top:8mm;border-top:1px solid #aaa;padding-top:3mm}
}
