.admin-root{min-height:100vh;background:#f5f7fa;font-family:Tajawal,sans-serif}.admin-header{background:#fff;border-bottom:1px solid #eef1f5;padding:.75rem 1.5rem;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:100}.admin-header-right{display:flex;align-items:center;gap:.75rem}.admin-home-link{display:flex;align-items:center}.admin-logo-img{height:36px;width:auto}.admin-header-title{font-size:1.1rem;font-weight:700;color:#1a2b4a}.admin-breadcrumb{display:flex;align-items:center;gap:.4rem;font-size:.85rem}.admin-breadcrumb-item{background:none;border:none;color:#0e7f6e;cursor:pointer;font-family:inherit;font-size:inherit;padding:0}.admin-breadcrumb-item:hover{text-decoration:underline}.admin-breadcrumb-sep{color:#aab}.admin-breadcrumb-current{color:#888}.admin-main{max-width:1100px;margin:0 auto;padding:1.5rem 1rem}.admin-main--full{max-width:none;padding:0}.admin-loading{text-align:center;padding:3rem;color:#888;font-size:1.1rem}.admin-section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem}.admin-section-header h2{font-size:1.3rem;font-weight:700;color:#1a2b4a;margin:0}.admin-section-header h3{font-size:1.1rem;font-weight:700;color:#1a2b4a;margin:0}.admin-btn{font-family:Tajawal,sans-serif;background:#f1f5f9;color:#1a2b4a;border:1px solid #e2e8f0;border-radius:6px;cursor:pointer;font-weight:600;padding:.5rem 1rem;font-size:.9rem;transition:all .15s}.admin-btn:hover{background:#e2e8f0}.admin-btn-primary{background:#0e7f6e;color:#fff;padding:.5rem 1rem;font-size:.9rem}.admin-btn-primary:hover{background:#0a6358}.admin-btn-primary:disabled{opacity:.6;cursor:not-allowed}.admin-btn-outline{background:#fff;color:#1a2b4a;border:1px solid #dde1e8;padding:.5rem 1rem;font-size:.9rem}.admin-btn-outline:hover{background:#f0f2f5}.admin-btn-danger{background:#fff;color:#d32f2f;border:1px solid #f5c6c6}.admin-btn-danger:hover{background:#fef0f0}.admin-btn-sm{padding:.35rem .75rem;font-size:.82rem}.admin-btn-xs{padding:.25rem .5rem;font-size:.78rem}.admin-mb{margin-bottom:1rem}.admin-book-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1rem}.admin-book-card{background:#fff;border:1px solid #eef1f5;border-radius:10px;padding:1.2rem;transition:box-shadow .2s}.admin-book-card:hover{box-shadow:0 2px 12px #0000000f}.admin-book-card-top{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:.3rem}.admin-book-card-top h3{font-size:1.05rem;font-weight:700;color:#1a2b4a;margin:0}.admin-status-badge{font-size:.72rem;font-weight:700;padding:.2rem .5rem;border-radius:20px;white-space:nowrap}.admin-status-badge.published{background:#e8f5e9;color:#2e7d32}.admin-status-badge.draft{background:#fff3e0;color:#e65100}.admin-book-author{color:#888;font-size:.85rem;margin:0 0 .25rem}.admin-book-stats{color:#aab;font-size:.8rem;margin:0 0 .75rem}.admin-book-actions{display:flex;gap:.4rem}.admin-form-card{background:#fff;border:1px solid #eef1f5;border-radius:10px;padding:1.2rem;margin-bottom:1rem}.admin-form-card h3{font-size:1.05rem;font-weight:700;color:#1a2b4a;margin:0 0 1rem}.admin-form-row{margin-bottom:.75rem}.admin-form-row label{display:block;font-size:.82rem;font-weight:600;color:#555;margin-bottom:.25rem}.admin-form-row input,.admin-form-row textarea,.admin-form-row select{width:100%;border:1px solid #dde1e8;border-radius:6px;padding:.5rem .6rem;font-family:Tajawal,sans-serif;font-size:.9rem;color:#1a2b4a;background:#fafbfc;box-sizing:border-box}.admin-form-row input:focus,.admin-form-row textarea:focus{outline:none;border-color:#0e7f6e;box-shadow:0 0 0 2px #0e7f6e1a}.admin-form-actions{display:flex;gap:.5rem;margin-top:.75rem}.admin-meta-form{margin-top:1rem;padding-top:1rem;border-top:1px solid #eef1f5}.admin-inline-form{display:flex;align-items:center;gap:.5rem;margin-bottom:.75rem}.admin-inline-form input{flex:1;border:1px solid #dde1e8;border-radius:6px;padding:.4rem .6rem;font-family:Tajawal,sans-serif;font-size:.85rem}.admin-section-card{background:#fff;border:1px solid #eef1f5;border-radius:10px;margin-bottom:.75rem;overflow:hidden}.admin-section-card-header{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;background:#f8f9fb;border-bottom:1px solid #eef1f5}.admin-section-card-header h4{font-size:.95rem;font-weight:700;color:#1a2b4a;margin:0}.admin-page-list{padding:.25rem 0}.admin-page-item{display:flex;align-items:center;gap:.5rem;padding:.5rem 1rem;border-bottom:1px solid #f5f6f8;transition:background .15s}.admin-page-item:last-child{border-bottom:none}.admin-page-item:hover{background:#f8f9fb}.admin-page-num{width:24px;height:24px;border-radius:50%;background:#eef1f5;color:#888;font-size:.75rem;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0}.admin-page-title{flex:1;font-size:.88rem;color:#1a2b4a}.admin-empty-msg{color:#aab;font-size:.85rem;padding:.75rem 1rem;text-align:center}.page-editor{display:flex;flex-direction:column;gap:0}.page-editor-toolbar{display:flex;align-items:center;justify-content:space-between;background:#fff;border:1px solid #eef1f5;border-radius:10px;padding:.5rem .75rem;margin-bottom:1rem}.page-editor-tabs{display:flex;gap:0;border:1px solid #dde1e8;border-radius:6px;overflow:hidden}.page-editor-tab{padding:.35rem .8rem;font-family:Tajawal,sans-serif;font-size:.82rem;font-weight:600;background:#fff;border:none;color:#666;cursor:pointer;border-left:1px solid #dde1e8;transition:all .15s}.page-editor-tab:first-child{border-left:none}.page-editor-tab.active{background:#0e7f6e;color:#fff}.page-editor-tab:hover:not(.active){background:#f0faf7}.page-editor-layout{display:flex;gap:1rem;align-items:flex-start}.page-editor-content{flex:1;min-width:0}.page-title-input{font-size:1.1rem!important;font-weight:700!important}.template-library{width:200px;flex-shrink:0;background:#fff;border:1px solid #eef1f5;border-radius:10px;padding:.75rem;position:sticky;top:70px}.template-library h4{font-size:.85rem;font-weight:700;color:#1a2b4a;margin:0 0 .5rem}.template-btn{display:flex;align-items:center;gap:.4rem;width:100%;padding:.4rem .5rem;border:1px solid #eef1f5;border-radius:6px;background:#fafbfc;font-family:Tajawal,sans-serif;font-size:.8rem;color:#1a2b4a;cursor:pointer;margin-bottom:.3rem;transition:all .15s;text-align:right}.template-btn:hover{background:#e8f5f3;border-color:#0e7f6e}.template-icon{width:22px;text-align:center;font-size:.85rem;flex-shrink:0}.blocks-list{display:flex;flex-direction:column;gap:.5rem}.block-wrapper{background:#fff;border:1px solid #eef1f5;border-radius:8px;overflow:hidden}.block-controls{display:flex;align-items:center;justify-content:space-between;padding:.35rem .6rem;background:#f8f9fb;border-bottom:1px solid #eef1f5}.block-type-label{font-size:.75rem;font-weight:600;color:#0e7f6e}.block-control-btns{display:flex;gap:.2rem}.block-control-btns button{background:transparent;border:1px solid #dde1e8;border-radius:4px;width:24px;height:24px;cursor:pointer;font-size:.75rem;color:#888;display:flex;align-items:center;justify-content:center;transition:all .15s}.block-control-btns button:hover{background:#eef1f5}.block-control-btns button:disabled{opacity:.3;cursor:default}.block-delete{color:#d32f2f!important;border-color:#f5c6c6!important}.block-delete:hover{background:#fef0f0!important}.block-fields{padding:.5rem .6rem;display:flex;flex-direction:column;gap:.4rem}.block-textarea{width:100%;border:1px solid #eef1f5;border-radius:4px;padding:.5rem .6rem;font-family:Tajawal,sans-serif;font-size:.88rem;color:#1a2b4a;resize:vertical;margin:.5rem .6rem;box-sizing:border-box;max-width:calc(100% - 1.2rem)}.block-textarea:focus{outline:none;border-color:#0e7f6e}.block-input{width:100%;border:1px solid #eef1f5;border-radius:4px;padding:.4rem .6rem;font-family:Tajawal,sans-serif;font-size:.88rem;color:#1a2b4a;box-sizing:border-box}.block-input:focus{outline:none;border-color:#0e7f6e}.block-input-sm{max-width:240px}.block-select{border:1px solid #eef1f5;border-radius:4px;padding:.35rem .5rem;font-family:Tajawal,sans-serif;font-size:.82rem;max-width:140px}.block-code{direction:ltr;text-align:left}.block-list-items{padding:.5rem .6rem;display:flex;flex-direction:column;gap:.3rem}.block-list-item{display:flex;align-items:center;gap:.4rem}.block-list-num{width:20px;height:20px;border-radius:50%;background:#eef1f5;color:#888;font-size:.7rem;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0}.block-delete-sm{background:transparent;border:none;color:#d32f2f;cursor:pointer;font-size:.8rem;padding:.15rem .3rem}.wysiwyg-editor{background:#fff;border:1px solid #eef1f5;border-radius:10px;padding:2rem;min-height:400px;max-width:820px;margin:0 auto}.wysiwyg-content .page-header h1{cursor:text;outline:none;min-height:1.5em}.wysiwyg-content .page-header h1:focus{background:#f0f8ff;border-radius:4px}.wysiwyg-block-wrap{position:relative;border:2px solid transparent;border-radius:8px;padding:2px;margin:.3rem -4px;transition:border-color .15s;cursor:pointer}.wysiwyg-block-wrap:hover{border-color:#e0e6ed}.wysiwyg-block-wrap.selected{border-color:#0e7f6e}.wysiwyg-block-toolbar{display:flex;align-items:center;justify-content:space-between;background:#f0faf7;border-radius:6px 6px 0 0;padding:.25rem .5rem;margin:-2px -2px .3rem}.wysiwyg-block-type{font-size:.72rem;font-weight:700;color:#0e7f6e;font-family:Tajawal,sans-serif}.wysiwyg-block-actions{display:flex;gap:.2rem}.wysiwyg-block-actions button{background:#fff;border:1px solid #d0ddd8;border-radius:4px;width:24px;height:24px;cursor:pointer;font-size:.7rem;color:#555;display:flex;align-items:center;justify-content:center}.wysiwyg-block-actions button:hover{background:#e8f5f3}.wysiwyg-block-actions button:disabled{opacity:.3;cursor:default}.wysiwyg-delete-btn{color:#d32f2f!important;border-color:#f5c6c6!important}.wysiwyg-delete-btn:hover{background:#fef0f0!important}.wysiwyg-editable{outline:none;min-height:1em;cursor:text;border-radius:3px;transition:background .15s}.wysiwyg-editable:empty:before{content:attr(data-placeholder);color:#bbb;pointer-events:none}.wysiwyg-editable:focus{background:#0e7f6e0a}.wysiwyg-inline-option{margin-top:.3rem}.wysiwyg-mini-select{border:1px solid #dde1e8;border-radius:4px;padding:.2rem .4rem;font-family:Tajawal,sans-serif;font-size:.75rem;color:#555;background:#fafbfc}.wysiwyg-mini-btn{border:1px solid #dde1e8;border-radius:4px;padding:.2rem .6rem;font-family:Tajawal,sans-serif;font-size:.75rem;color:#555;background:#fafbfc;cursor:pointer}.wysiwyg-mini-btn:hover{background:#eef1f5}.wysiwyg-list-delete{background:transparent;border:none;color:#d32f2f;cursor:pointer;font-size:.7rem;opacity:0;transition:opacity .15s;padding:.1rem .3rem}li:hover .wysiwyg-list-delete{opacity:1}.wysiwyg-add-list-item{list-style:none}.wysiwyg-add-list-item button{background:transparent;border:1px dashed #ccc;border-radius:4px;padding:.2rem .8rem;font-family:Tajawal,sans-serif;font-size:.78rem;color:#888;cursor:pointer}.wysiwyg-add-list-item button:hover{border-color:#0e7f6e;color:#0e7f6e}.wysiwyg-add-area{text-align:center;padding:1.5rem 0 .5rem;position:relative}.wysiwyg-add-btn{background:transparent;border:2px dashed #d0d7e2;border-radius:8px;padding:.6rem 1.5rem;font-family:Tajawal,sans-serif;font-size:.9rem;font-weight:700;color:#888;cursor:pointer;transition:all .15s}.wysiwyg-add-btn:hover{border-color:#0e7f6e;color:#0e7f6e}.wysiwyg-template-popup{display:flex;flex-wrap:wrap;gap:.4rem;justify-content:center;margin-top:.75rem;padding:.75rem;background:#fff;border:1px solid #eef1f5;border-radius:10px;box-shadow:0 4px 16px #00000014}.wysiwyg-template-item{display:flex;align-items:center;gap:.3rem;padding:.4rem .7rem;border:1px solid #eef1f5;border-radius:6px;background:#fafbfc;font-family:Tajawal,sans-serif;font-size:.8rem;color:#1a2b4a;cursor:pointer;transition:all .15s}.wysiwyg-template-item:hover{background:#e8f5f3;border-color:#0e7f6e}.wysiwyg-template-icon{font-size:.85rem}.wysiwyg-raw-textarea{width:100%;border:1px solid #dde1e8;border-radius:6px;padding:.6rem;font-family:monospace;font-size:.82rem;color:#1a2b4a;resize:vertical;direction:ltr;text-align:left;box-sizing:border-box}.wysiwyg-raw-textarea:focus{outline:none;border-color:#0e7f6e}.format-toolbar{position:absolute;z-index:200;display:flex;align-items:center;gap:2px;background:#1a2b4a;border-radius:8px;padding:4px 6px;box-shadow:0 4px 16px #0000002e;transform:translate(-50%);white-space:nowrap}.format-toolbar:after{content:"";position:absolute;bottom:-6px;left:50%;transform:translate(-50%);border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #1a2b4a}.format-btn{background:transparent;border:none;color:#e4e8f0;cursor:pointer;width:28px;height:28px;border-radius:4px;display:flex;align-items:center;justify-content:center;font-size:.85rem;font-family:Georgia,serif;transition:all .12s}.format-btn:hover{background:#ffffff26}.format-btn.active{background:#fff3;color:#fff}.format-sep{width:1px;height:18px;background:#fff3;margin:0 2px}.format-color-btn{font-family:Tajawal,sans-serif}.admin-cover-upload{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.admin-cover-preview{width:80px;height:100px;border-radius:6px;overflow:hidden;border:1px solid #eef1f5}.admin-cover-preview img{width:100%;height:100%;object-fit:cover}.admin-section-draft{border-right:3px solid #f0ad4e;opacity:.85}.admin-section-draft .admin-section-card-header h4{color:#8a7040}.admin-btn-preview{background:#1a2b4a;color:#fff;border:none;text-decoration:none}.admin-btn-preview:hover{background:#2a3b5a}.admin-login-prompt{text-align:center;padding:4rem 2rem}.admin-login-icon{font-size:3rem;margin-bottom:1rem}.admin-login-prompt h2{font-size:1.3rem;font-weight:700;color:#1a2b4a;margin:0 0 .5rem}.admin-login-prompt p{color:#888;font-size:.95rem;margin:0}@media(max-width:768px){.wysiwyg-editor{padding:1rem}.admin-book-grid{grid-template-columns:1fr}}.admin-header-actions{display:flex;align-items:center;gap:.75rem}.admin-tabs-nav{display:flex;gap:.15rem;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:8px;padding:.15rem}.admin-tab{padding:.3rem .75rem;font-family:Tajawal,sans-serif;font-size:.75rem;font-weight:600;background:transparent;border:none;border-radius:5px;color:#64748b;cursor:pointer;transition:background-color .15s,color .15s,box-shadow .15s;white-space:nowrap}.admin-tab.active{background:#fff;color:#0e7f6e;box-shadow:0 1px 3px #0f172a14}.admin-tab:hover:not(.active){background:#fff9;color:#0f172a}@media(max-width:720px){.admin-header{padding:.6rem .75rem;gap:.5rem}.admin-header-actions{gap:.4rem}.admin-tabs-nav{padding:.2rem;gap:.15rem}.admin-tab{padding:.35rem .7rem;font-size:.78rem}}.admin-breadcrumb-bar{background:#fff;border-bottom:1px solid #eef1f5;padding:.4rem 1.5rem}.dashboard{padding:0}.dashboard-title{font-size:1.3rem;font-weight:700;color:#1a2b4a;margin:0 0 1.2rem}.dashboard-stats{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:.8rem;margin-bottom:1.5rem}.stat-card{background:#fff;border:1px solid #eef1f5;border-radius:10px;padding:1rem;display:flex;align-items:center;gap:.8rem;transition:box-shadow .2s}.stat-card:hover{box-shadow:0 4px 16px #0000000f}.stat-card-icon{width:40px;height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:1.1rem;flex-shrink:0;color:#fff}.stat-card-content{display:flex;flex-direction:column}.stat-card-value{font-size:1.3rem;font-weight:800;color:#1a2b4a;line-height:1.2}.stat-card-label{font-size:.72rem;color:#7a8599;font-weight:500}.dashboard-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:1rem;margin-bottom:1rem}.dashboard-section{background:#fff;border:1px solid #eef1f5;border-radius:10px;padding:1rem}.dashboard-full{grid-column:1 / -1}.dashboard-section-title{font-size:.95rem;font-weight:700;color:#1a2b4a;margin:0 0 .8rem;padding-bottom:.5rem;border-bottom:1px solid #eef1f5}.dashboard-table-wrap{overflow-x:auto}.dashboard-table{width:100%;border-collapse:collapse;font-size:.82rem}.dashboard-table th{text-align:right;padding:.5rem .6rem;color:#7a8599;font-weight:600;font-size:.72rem;border-bottom:1px solid #eef1f5;white-space:nowrap}.dashboard-table td{padding:.55rem .6rem;border-bottom:1px solid #f5f7fa;color:#3a4a6b}.dashboard-table tr:hover td{background:#f8fafe}.dashboard-book-name{font-weight:600;color:#1a2b4a!important}.dashboard-status{display:inline-block;font-size:.7rem;font-weight:700;padding:.15rem .5rem;border-radius:10px}.dashboard-status.published{background:#e8f5f0;color:#0e7f6e}.dashboard-status.draft{background:#fff3cd;color:#8a6d00}.dashboard-empty{text-align:center;padding:2rem;color:#7a8599;font-size:.85rem}.activity-list{max-height:400px;overflow-y:auto}.activity-item{display:flex;align-items:center;gap:.6rem;padding:.5rem 0;border-bottom:1px solid #f5f7fa}.activity-item:last-child{border-bottom:none}.activity-avatar{flex-shrink:0}.activity-avatar-img{width:32px;height:32px;border-radius:50%;object-fit:cover}.activity-avatar-placeholder{width:32px;height:32px;border-radius:50%;background:#e8f0fb;color:#1a5fa8;display:flex;align-items:center;justify-content:center;font-size:.8rem;font-weight:700}.activity-info{flex:1;min-width:0;display:flex;flex-direction:column}.activity-user{font-size:.8rem;font-weight:600;color:#1a2b4a}.activity-action{font-size:.72rem;color:#7a8599;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.activity-time{font-size:.68rem;color:#aab3c0;white-space:nowrap;flex-shrink:0}.readers-list{display:flex;flex-direction:column;gap:.5rem}.reader-card{border:1px solid #eef1f5;border-radius:8px;overflow:hidden;transition:box-shadow .2s}.reader-card:hover{box-shadow:0 2px 8px #0000000a}.reader-card-header{display:flex;align-items:center;justify-content:space-between;padding:.7rem .9rem;cursor:pointer;transition:background .15s}.reader-card-header:hover{background:#f8fafe}.reader-card-user{display:flex;align-items:center;gap:.6rem}.reader-avatar{width:36px;height:36px;border-radius:50%;object-fit:cover;flex-shrink:0}.reader-avatar-placeholder{width:36px;height:36px;border-radius:50%;background:#e8f0fb;color:#1a5fa8;display:flex;align-items:center;justify-content:center;font-size:.9rem;font-weight:700;flex-shrink:0}.reader-card-info{display:flex;flex-direction:column}.reader-name{font-size:.88rem;font-weight:600;color:#1a2b4a}.reader-email{font-size:.72rem;color:#7a8599}.reader-card-stats{display:flex;align-items:center;gap:1rem}.reader-stat{display:flex;flex-direction:column;align-items:center}.reader-stat-value{font-size:1rem;font-weight:800;color:#0e7f6e;line-height:1.2}.reader-stat-label{font-size:.62rem;color:#aab3c0}.reader-last-read{font-size:.68rem;color:#aab3c0;white-space:nowrap}.reader-expand-icon{font-size:.65rem;color:#aab3c0}.reader-books-detail{background:#f8fafe;padding:.6rem .9rem;border-top:1px solid #eef1f5}.reader-book-row{display:flex;align-items:center;justify-content:space-between;padding:.4rem 0;gap:.8rem}.reader-book-row:not(:last-child){border-bottom:1px solid #eef1f5}.reader-book-title{font-size:.82rem;font-weight:600;color:#1a2b4a;white-space:nowrap}.reader-book-progress{display:flex;align-items:center;gap:.6rem;flex:1;max-width:260px}.reader-progress-bar{flex:1;height:6px;background:#eef1f5;border-radius:10px;overflow:hidden}.reader-progress-fill{height:100%;background:#0e7f6e;border-radius:10px;transition:width .3s ease}.reader-progress-text{font-size:.7rem;color:#7a8599;white-space:nowrap;min-width:80px;text-align:left}@media(max-width:768px){.dashboard-grid{grid-template-columns:1fr}.dashboard-stats{grid-template-columns:repeat(2,1fr)}.reader-card-stats{gap:.5rem}.reader-book-progress{max-width:150px}}.moderator-desc{color:#6b7c93;font-size:.92rem;margin-bottom:1rem;line-height:1.6}.moderator-add-form{display:flex;flex-direction:column;gap:1rem}.moderator-add-fields{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.moderator-add-fields .admin-form-row label{font-size:.85rem;font-weight:600;color:#1a2b4a;margin-bottom:.3rem;display:block}.moderator-add-fields .admin-form-row input{width:100%;padding:.55rem .8rem;border:1.5px solid #dde3ec;border-radius:8px;font-size:.95rem;font-family:inherit;background:#fafbfc;transition:border-color .2s}.moderator-add-fields .admin-form-row input:focus{border-color:#0e7f6e;outline:none;background:#fff}.moderator-error{color:#d32f2f;font-size:.88rem;margin-top:.4rem}.moderator-list{display:flex;flex-direction:column;gap:0}.moderator-item{display:flex;align-items:center;justify-content:space-between;padding:.9rem 0;border-bottom:1px solid #eef1f5}.moderator-item:last-child{border-bottom:none}.moderator-info{display:flex;align-items:center;gap:.75rem}.moderator-avatar{width:38px;height:38px;border-radius:50%;background:linear-gradient(135deg,#0e7f6e,#3b82f6);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1rem;flex-shrink:0}.moderator-name{font-weight:600;color:#1a2b4a;font-size:.95rem}.moderator-email{color:#6b7c93;font-size:.85rem;direction:ltr;text-align:right}.moderator-meta{display:flex;align-items:center;gap:.8rem}.moderator-date{color:#94a3b8;font-size:.82rem}.admin-btn-danger{background:#fff;color:#d32f2f;border:1.5px solid #fecaca}.admin-btn-danger:hover{background:#fef2f2;border-color:#d32f2f}.admin-btn-sm{padding:.3rem .7rem;font-size:.82rem}.admin-empty-msg{color:#94a3b8;font-size:.92rem;text-align:center;padding:2rem 0}[data-theme=dark] .admin-logo-img{filter:brightness(0) invert(1)}[data-theme=dark] .moderator-desc{color:#94a3b8}[data-theme=dark] .moderator-add-fields .admin-form-row label{color:#e0e6ed}[data-theme=dark] .moderator-add-fields .admin-form-row input{background:#1e293b;border-color:#334155;color:#e0e6ed}[data-theme=dark] .moderator-add-fields .admin-form-row input:focus{border-color:#0e7f6e;background:#0f172a}[data-theme=dark] .moderator-item{border-bottom-color:#1e293b}[data-theme=dark] .moderator-name{color:#e0e6ed}[data-theme=dark] .moderator-email{color:#94a3b8}[data-theme=dark] .admin-btn{background:#1e293b;color:#e2e8f0;border-color:#334155}[data-theme=dark] .admin-btn:hover{background:#334155}[data-theme=dark] .admin-btn-danger{background:transparent;color:#f87171;border-color:#7f1d1d}[data-theme=dark] .admin-btn-danger:hover{background:#1c1c1c;border-color:#f87171}[data-theme=dark] .admin-empty-msg{color:#64748b}@media(max-width:640px){.moderator-add-fields{grid-template-columns:1fr}.moderator-item{flex-direction:column;align-items:flex-start;gap:.6rem}.moderator-meta{align-self:flex-end}}.admin-booklist-wrap{max-width:1100px;margin:0 auto}.admin-booklist-header{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;margin-bottom:1.25rem;flex-wrap:wrap}.admin-booklist-title{font-size:1.5rem;font-weight:800;color:#0f172a;margin:0}.admin-booklist-subtitle{font-size:.85rem;color:#64748b;margin:.25rem 0 0}.admin-booklist-actions{display:flex;gap:.5rem;align-items:center}.admin-search{position:relative}.admin-search-icon{position:absolute;right:.75rem;top:50%;transform:translateY(-50%);color:#94a3b8;pointer-events:none}.admin-search-input{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:.5rem 2.25rem .5rem .75rem;font-size:.875rem;font-family:Tajawal,sans-serif;width:240px;color:#0f172a;transition:border-color .15s}.admin-search-input:focus{outline:none;border-color:#0e7490}.admin-btn-icon{display:inline-flex;align-items:center;gap:.35rem;padding:.35rem .75rem;font-size:.8rem;border-radius:6px}.admin-table{background:#fff;border:1px solid #e2e8f0;border-radius:12px;overflow:hidden;box-shadow:0 1px 3px #0f172a0a}.admin-table-head,.admin-table-row{display:grid;grid-template-columns:60px 1fr 140px 110px 140px;align-items:center;padding:.75rem 1.25rem}.admin-table-head{background:#f8fafc;border-bottom:1px solid #e2e8f0;font-size:.72rem;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:.04em}.admin-table-row{border-bottom:1px solid #f1f5f9;transition:background-color .15s}.admin-table-row:last-child{border-bottom:none}.admin-table-row:hover{background:#f8fafc}.admin-table-row:hover .admin-table-rowactions{opacity:1}.admin-table-cover{width:38px;height:54px;border-radius:4px;box-shadow:0 1px 3px #0f172a26;background:#cbd5e1}.admin-table-bookinfo{min-width:0}.admin-table-booktitle{background:none;border:none;padding:0;font-family:Tajawal,sans-serif;font-weight:700;font-size:.95rem;color:#0f172a;cursor:pointer;text-align:right;display:block;transition:color .15s}.admin-table-booktitle:hover{color:#0e7490}.admin-table-bookauthor{font-size:.78rem;color:#64748b;margin-top:.15rem}.admin-table-stats{display:flex;align-items:center;justify-content:center;gap:.85rem;font-size:.78rem;color:#475569}.admin-table-stats span{display:inline-flex;align-items:center;gap:.25rem}.admin-table-center{display:flex;align-items:center;justify-content:center}.admin-table-rowactions{display:flex;justify-content:center;gap:.25rem;opacity:.55;transition:opacity .15s}.admin-icon-btn{width:32px;height:32px;border-radius:6px;background:transparent;border:none;color:#475569;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:background-color .15s,color .15s}.admin-icon-btn:hover{background:#e2e8f0;color:#0f172a}.admin-icon-btn.admin-icon-edit:hover{background:#cffafe;color:#0e7490}.admin-icon-btn.admin-icon-danger:hover{background:#fee2e2;color:#b91c1c}.admin-table-empty{padding:3rem 1.25rem;text-align:center;color:#94a3b8;font-size:.9rem}.admin-table-footer{display:flex;align-items:center;justify-content:space-between;margin-top:1rem;padding:0 .25rem;font-size:.78rem;color:#64748b}@media(max-width:720px){.admin-booklist-actions{width:100%;flex-wrap:wrap}.admin-search-input{width:100%}.admin-search{flex:1}.admin-table-head,.admin-table-row{grid-template-columns:50px 1fr 100px;padding:.65rem .85rem}.admin-table-head>:nth-child(3),.admin-table-head>:nth-child(4),.admin-table-row>:nth-child(3),.admin-table-row>:nth-child(4){display:none}.admin-table-rowactions{opacity:1;gap:.1rem}.admin-icon-btn{width:28px;height:28px}}[data-theme=dark] .admin-booklist-title{color:#f1f5f9}[data-theme=dark] .admin-booklist-subtitle{color:#94a3b8}[data-theme=dark] .admin-search-input{background:#0f172a;border-color:#334155;color:#f1f5f9}[data-theme=dark] .admin-search-input:focus{border-color:#06b6d4}[data-theme=dark] .admin-table{background:#0f172a;border-color:#334155}[data-theme=dark] .admin-table-head{background:#020617;border-bottom-color:#334155;color:#94a3b8}[data-theme=dark] .admin-table-row{border-bottom-color:#1e293b}[data-theme=dark] .admin-table-row:hover{background:#1e293b}[data-theme=dark] .admin-table-booktitle{color:#f1f5f9}[data-theme=dark] .admin-table-booktitle:hover{color:#06b6d4}[data-theme=dark] .admin-table-bookauthor,[data-theme=dark] .admin-table-stats,[data-theme=dark] .admin-table-footer{color:#94a3b8}[data-theme=dark] .admin-icon-btn{color:#cbd5e1}[data-theme=dark] .admin-icon-btn:hover{background:#334155;color:#f1f5f9}[data-theme=dark] .admin-icon-btn.admin-icon-edit:hover{background:#06b6d426;color:#22d3ee}[data-theme=dark] .admin-icon-btn.admin-icon-danger:hover{background:#dc262633;color:#f87171}.bookeditor-shell{margin:-1.5rem;height:calc(100vh - 64px);display:flex;flex-direction:column;background:#f8fafc;font-family:Tajawal,sans-serif}.bookeditor-header{background:#fff;border-bottom:1px solid #e2e8f0;padding:.65rem 1.25rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}.bookeditor-header-right{display:flex;align-items:center;gap:.75rem;min-width:0}.bookeditor-cover-thumb{width:32px;height:44px;border-radius:4px;background:#cbd5e1;box-shadow:0 1px 3px #0f172a26;flex-shrink:0}.bookeditor-header-title{font-weight:800;color:#0f172a;font-size:.95rem}.bookeditor-header-meta{font-size:.72rem;color:#64748b;margin-top:.1rem}.bookeditor-header-actions{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.bookeditor-iconbtn{background:transparent;border:none;color:#64748b;width:30px;height:30px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:background-color .15s,color .15s}.bookeditor-iconbtn:hover{background:#f1f5f9;color:#0f172a}.bookeditor-btn-primary,.bookeditor-btn-ghost,.bookeditor-btn-danger{font-family:Tajawal,sans-serif;font-size:.82rem;font-weight:700;border-radius:8px;padding:.5rem .85rem;border:1px solid transparent;cursor:pointer;display:inline-flex;align-items:center;gap:.35rem;transition:background-color .15s,border-color .15s,color .15s;text-decoration:none;line-height:1}.bookeditor-btn-primary{background:#0e7490;color:#fff}.bookeditor-btn-primary:hover{background:#0c5e74}.bookeditor-btn-primary:disabled{opacity:.6;cursor:not-allowed}.bookeditor-btn-ghost{background:#fff;color:#475569;border-color:#e2e8f0}.bookeditor-btn-ghost:hover{border-color:#cbd5e1;background:#f8fafc}.bookeditor-btn-danger{background:#fff;color:#b91c1c;border-color:#fecaca}.bookeditor-btn-danger:hover{background:#fef2f2;border-color:#fca5a5}.bookeditor-btn-sm{padding:.4rem .7rem;font-size:.76rem}.bookeditor-btn-xs{padding:.3rem .55rem;font-size:.7rem}.bookeditor-btn-block{width:100%;justify-content:center}.bookeditor-body{flex:1;display:flex;overflow:hidden}.bookeditor-sidebar{width:320px;background:#fff;border-left:1px solid #e2e8f0;display:flex;flex-direction:column;flex-shrink:0}.bookeditor-sidebar-tools{padding:.75rem;border-bottom:1px solid #e2e8f0;display:flex;flex-direction:column;gap:.5rem}.bookeditor-search{position:relative}.bookeditor-search-icon{position:absolute;right:.6rem;top:50%;transform:translateY(-50%);color:#94a3b8;pointer-events:none}.bookeditor-search-input{width:100%;background:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;padding:.45rem 1.85rem .45rem .5rem;font-size:.78rem;font-family:Tajawal,sans-serif;color:#0f172a;transition:border-color .15s,background-color .15s}.bookeditor-search-input:focus{outline:none;border-color:#0e7490;background:#fff}.bookeditor-inline-add{display:flex;gap:.3rem;align-items:center}.bookeditor-inline-add input{flex:1;background:#fff;border:1px solid #0e7490;border-radius:6px;padding:.4rem .55rem;font-size:.8rem;font-family:Tajawal,sans-serif;color:#0f172a}.bookeditor-inline-add input:focus{outline:none}.bookeditor-inline-add-sm input{padding:.3rem .45rem;font-size:.74rem}.bookeditor-tree{flex:1;overflow-y:auto;padding:.5rem}.bookeditor-tree-root{display:flex;align-items:center;gap:.45rem;padding:.45rem .6rem;border-radius:6px;cursor:pointer;font-size:.82rem;font-weight:700;color:#475569;margin-bottom:.3rem;transition:background-color .15s,color .15s}.bookeditor-tree-root:hover{background:#f1f5f9}.bookeditor-tree-root.is-selected{background:#ecfeff;color:#0e7490}.bookeditor-tree-empty{padding:1.5rem .75rem;text-align:center;color:#94a3b8;font-size:.78rem}.bookeditor-tree-section{margin-bottom:.15rem}.bookeditor-tree-secrow{display:flex;align-items:center;gap:.35rem;padding:.4rem .45rem;border-radius:6px;cursor:pointer;transition:background-color .15s}.bookeditor-tree-secrow:hover{background:#f1f5f9}.bookeditor-tree-secrow.is-selected{background:#ecfeff;color:#0e7490}.bookeditor-tree-chev{background:transparent;border:none;padding:0;width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;color:#94a3b8;cursor:pointer;border-radius:3px}.bookeditor-tree-chev:hover{color:#0f172a;background:#0000000d}.bookeditor-tree-icon{color:#64748b;flex-shrink:0}.bookeditor-tree-secrow.is-selected .bookeditor-tree-icon{color:#0e7490}.bookeditor-tree-sectitle{font-size:.82rem;font-weight:700;color:#0f172a;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bookeditor-tree-secrow.is-selected .bookeditor-tree-sectitle{color:#0e7490}.bookeditor-tree-dot{width:6px;height:6px;border-radius:50%;background:#f59e0b;flex-shrink:0}.bookeditor-tree-count{font-size:.65rem;color:#94a3b8;background:#f1f5f9;padding:.05rem .35rem;border-radius:8px;flex-shrink:0}.bookeditor-tree-pages{margin-right:1.25rem;border-right:1px solid #e2e8f0;padding-right:.4rem;margin-top:.1rem}.bookeditor-tree-page{display:flex;align-items:center;gap:.35rem;padding:.3rem .45rem;border-radius:6px;cursor:pointer;font-size:.74rem;color:#475569;transition:background-color .15s,color .15s}.bookeditor-tree-page:hover{background:#f1f5f9}.bookeditor-tree-page.is-selected{background:#cffafe;color:#0c5e74;font-weight:700}.bookeditor-tree-pageicon{color:#94a3b8;flex-shrink:0}.bookeditor-tree-page.is-selected .bookeditor-tree-pageicon{color:#0e7490}.bookeditor-tree-pagenum{font-size:.65rem;color:#94a3b8;width:14px;flex-shrink:0}.bookeditor-tree-pagetitle{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bookeditor-tree-addpage{width:100%;text-align:right;background:transparent;border:none;color:#0e7490;font-size:.7rem;font-family:Tajawal,sans-serif;padding:.3rem .45rem;border-radius:6px;cursor:pointer;display:flex;align-items:center;gap:.3rem;transition:background-color .15s}.bookeditor-tree-addpage:hover{background:#ecfeff}.bookeditor-main{flex:1;overflow-y:auto}.bookeditor-detail{max-width:760px;margin:0 auto;padding:2rem 1.5rem}.bookeditor-breadcrumb{display:flex;align-items:center;gap:.3rem;font-size:.72rem;color:#64748b;margin-bottom:.5rem}.bookeditor-breadcrumb-current{color:#0e7490;font-weight:700}.bookeditor-detail-title{font-size:1.5rem;font-weight:800;color:#0f172a;margin:0 0 1.25rem}.bookeditor-detail-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.25rem;flex-wrap:wrap}.bookeditor-detail-titleinput{flex:1;min-width:200px;background:transparent;border:none;border-bottom:2px solid transparent;font-family:Tajawal,sans-serif;font-size:1.4rem;font-weight:800;color:#0f172a;padding:.25rem .1rem;transition:border-color .15s}.bookeditor-detail-titleinput:focus{outline:none;border-bottom-color:#0e7490}.bookeditor-detail-actions{display:flex;gap:.4rem;flex-wrap:wrap}.bookeditor-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:1.25rem;box-shadow:0 1px 3px #0f172a0a;margin-bottom:1rem}.bookeditor-card-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:.85rem;padding-bottom:.65rem;border-bottom:1px solid #f1f5f9}.bookeditor-card-header h3{margin:0;font-size:.95rem;font-weight:700;color:#0f172a}.bookeditor-card-label{font-size:.65rem;text-transform:uppercase;letter-spacing:.06em;color:#94a3b8;font-weight:700;margin-bottom:.75rem}.bookeditor-card-actions{margin-top:1rem;display:flex;justify-content:flex-end;gap:.5rem}.bookeditor-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:.75rem;margin-bottom:1rem}.bookeditor-stat{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:.85rem 1rem}.bookeditor-stat-value{font-size:1.5rem;font-weight:800;color:#0e7490}.bookeditor-stat-label{font-size:.72rem;color:#64748b;margin-top:.15rem}.bookeditor-info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:.85rem}.bookeditor-info-key{font-size:.68rem;color:#94a3b8;font-weight:700;text-transform:uppercase;letter-spacing:.04em;margin-bottom:.25rem}.bookeditor-info-val{font-size:.88rem;color:#0f172a;font-weight:600}.bookeditor-empty{text-align:center;color:#94a3b8;font-size:.82rem;padding:1.5rem .5rem}.bookeditor-empty-hint{margin-top:1rem;background:#f8fafc;border-radius:8px;padding:1rem}.bookeditor-pagelist{list-style:none;margin:0;padding:0}.bookeditor-pagelist-item{display:flex;align-items:center;gap:.6rem;padding:.55rem .7rem;border-radius:8px;cursor:pointer;transition:background-color .15s}.bookeditor-pagelist-item:hover{background:#f1f5f9}.bookeditor-pagelist-num{width:22px;height:22px;border-radius:50%;background:#e2e8f0;color:#475569;font-size:.7rem;font-weight:700;display:inline-flex;align-items:center;justify-content:center}.bookeditor-pagelist-icon{color:#94a3b8}.bookeditor-pagelist-title{flex:1;font-size:.85rem;color:#0f172a;font-weight:600}.bookeditor-pagelist-chev{color:#cbd5e1;transform:rotate(180deg)}@media(max-width:720px){.bookeditor-shell{height:auto;min-height:calc(100vh - 64px)}.bookeditor-body{flex-direction:column}.bookeditor-sidebar{width:100%;border-left:none;border-bottom:1px solid #e2e8f0;max-height:50vh}.bookeditor-detail{padding:1.25rem 1rem}.bookeditor-detail-titleinput{font-size:1.15rem}}[data-theme=dark] .bookeditor-shell{background:#020617}[data-theme=dark] .bookeditor-header,[data-theme=dark] .bookeditor-sidebar{background:#0f172a;border-color:#1e293b}[data-theme=dark] .bookeditor-header-title{color:#f1f5f9}[data-theme=dark] .bookeditor-header-meta{color:#94a3b8}[data-theme=dark] .bookeditor-iconbtn{color:#cbd5e1}[data-theme=dark] .bookeditor-iconbtn:hover{background:#1e293b;color:#f1f5f9}[data-theme=dark] .bookeditor-btn-primary{background:#06b6d4;color:#042b3a}[data-theme=dark] .bookeditor-btn-primary:hover{background:#22d3ee}[data-theme=dark] .bookeditor-btn-ghost{background:#1e293b;color:#cbd5e1;border-color:#334155}[data-theme=dark] .bookeditor-btn-ghost:hover{background:#334155;border-color:#475569}[data-theme=dark] .bookeditor-btn-danger{background:#1e293b;color:#f87171;border-color:#4b1414}[data-theme=dark] .bookeditor-btn-danger:hover{background:#f871711a}[data-theme=dark] .bookeditor-sidebar-tools{border-bottom-color:#1e293b}[data-theme=dark] .bookeditor-search-input{background:#020617;border-color:#334155;color:#f1f5f9}[data-theme=dark] .bookeditor-search-input:focus{border-color:#06b6d4;background:#0f172a}[data-theme=dark] .bookeditor-inline-add input{background:#020617;border-color:#06b6d4;color:#f1f5f9}[data-theme=dark] .bookeditor-tree-root{color:#cbd5e1}[data-theme=dark] .bookeditor-tree-root:hover,[data-theme=dark] .bookeditor-tree-secrow:hover{background:#1e293b}[data-theme=dark] .bookeditor-tree-root.is-selected,[data-theme=dark] .bookeditor-tree-secrow.is-selected{background:#06b6d426;color:#22d3ee}[data-theme=dark] .bookeditor-tree-icon{color:#94a3b8}[data-theme=dark] .bookeditor-tree-secrow.is-selected .bookeditor-tree-icon,[data-theme=dark] .bookeditor-tree-secrow.is-selected .bookeditor-tree-sectitle{color:#22d3ee}[data-theme=dark] .bookeditor-tree-sectitle{color:#f1f5f9}[data-theme=dark] .bookeditor-tree-count{background:#1e293b;color:#94a3b8}[data-theme=dark] .bookeditor-tree-pages{border-right-color:#334155}[data-theme=dark] .bookeditor-tree-page{color:#cbd5e1}[data-theme=dark] .bookeditor-tree-page:hover{background:#1e293b}[data-theme=dark] .bookeditor-tree-page.is-selected{background:#06b6d433;color:#67e8f9}[data-theme=dark] .bookeditor-tree-page.is-selected .bookeditor-tree-pageicon,[data-theme=dark] .bookeditor-tree-addpage{color:#22d3ee}[data-theme=dark] .bookeditor-tree-addpage:hover{background:#06b6d41a}[data-theme=dark] .bookeditor-detail-title,[data-theme=dark] .bookeditor-detail-titleinput{color:#f1f5f9}[data-theme=dark] .bookeditor-detail-titleinput:focus{border-bottom-color:#06b6d4}[data-theme=dark] .bookeditor-card,[data-theme=dark] .bookeditor-stat{background:#0f172a;border-color:#1e293b}[data-theme=dark] .bookeditor-card-header{border-bottom-color:#1e293b}[data-theme=dark] .bookeditor-card-header h3,[data-theme=dark] .bookeditor-info-val,[data-theme=dark] .bookeditor-pagelist-title{color:#f1f5f9}[data-theme=dark] .bookeditor-stat-value{color:#22d3ee}[data-theme=dark] .bookeditor-pagelist-item:hover{background:#1e293b}[data-theme=dark] .bookeditor-pagelist-num{background:#1e293b;color:#cbd5e1}[data-theme=dark] .bookeditor-empty,[data-theme=dark] .bookeditor-empty-hint{color:#94a3b8}[data-theme=dark] .bookeditor-empty-hint{background:#020617}.admin-theme-toggle{background:transparent;border:1px solid #dde1e8;border-radius:8px;width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;color:#475569;margin-inline-start:.5rem;transition:background-color .15s,color .15s,border-color .15s}.admin-theme-toggle:hover{background:#f1f5f9;color:#0f172a}[data-theme=dark] .admin-root{background:#020617;color:#e2e8f0}[data-theme=dark] .admin-header{background:#0f172a;border-bottom-color:#1e293b}[data-theme=dark] .admin-header-title{color:#f1f5f9}[data-theme=dark] .admin-tabs-nav{background:#0b1220;border-color:#1e293b}[data-theme=dark] .admin-tab{background:transparent;color:#94a3b8}[data-theme=dark] .admin-tab:hover:not(.active){background:#1e293b99;color:#f1f5f9}[data-theme=dark] .admin-tab.active{background:#1e293b;color:#22d3ee;box-shadow:0 1px 3px #0006}[data-theme=dark] .admin-theme-toggle{border-color:#334155;color:#cbd5e1}[data-theme=dark] .admin-theme-toggle:hover{background:#1e293b;color:#f1f5f9}[data-theme=dark] .admin-breadcrumb-bar{background:#0f172a;border-bottom-color:#1e293b}[data-theme=dark] .admin-breadcrumb-item{color:#22d3ee}[data-theme=dark] .admin-breadcrumb-sep,[data-theme=dark] .admin-breadcrumb-current{color:#94a3b8}[data-theme=dark] .admin-section-header h2,[data-theme=dark] .admin-section-header h3{color:#f1f5f9}[data-theme=dark] .admin-loading{color:#94a3b8}[data-theme=dark] .admin-btn-primary{background:#06b6d4;color:#042b3a;border-color:transparent}[data-theme=dark] .admin-btn-primary:hover{background:#22d3ee}[data-theme=dark] .admin-btn-outline{background:transparent;color:#cbd5e1;border-color:#334155}[data-theme=dark] .admin-btn-outline:hover{background:#1e293b}[data-theme=dark] .admin-status-badge.published{background:#22c55e26;color:#4ade80}[data-theme=dark] .admin-status-badge.draft{background:#f59e0b26;color:#fbbf24}[data-theme=dark] .admin-form-card{background:#0f172a;border-color:#1e293b}[data-theme=dark] .admin-form-card h3{color:#f1f5f9}[data-theme=dark] .admin-form-row label{color:#cbd5e1}[data-theme=dark] .admin-form-row input,[data-theme=dark] .admin-form-row textarea,[data-theme=dark] .admin-form-row select{background:#020617;border-color:#334155;color:#f1f5f9}[data-theme=dark] .admin-form-row input:focus,[data-theme=dark] .admin-form-row textarea:focus,[data-theme=dark] .admin-form-row select:focus{border-color:#06b6d4;box-shadow:0 0 0 2px #06b6d42e}[data-theme=dark] .admin-meta-form{border-top-color:#1e293b}[data-theme=dark] .admin-book-author,[data-theme=dark] .admin-book-stats{color:#94a3b8}[data-theme=dark] .admin-login-prompt{background:#0f172a;border-color:#1e293b;color:#cbd5e1}[data-theme=dark] .admin-login-prompt h2{color:#f1f5f9}[data-theme=dark] .admin-login-icon{color:#06b6d4}[data-theme=dark] .admin-page-item{border-bottom-color:#1e293b}[data-theme=dark] .admin-page-item:hover{background:#1e293b}[data-theme=dark] .admin-page-num{background:#1e293b;color:#cbd5e1}[data-theme=dark] .admin-page-title{color:#f1f5f9}.admin-status-badge-btn{border:none;font-family:Tajawal,sans-serif;cursor:pointer;transition:filter .15s,transform .1s,box-shadow .15s}.admin-status-badge-btn:hover{filter:brightness(.95);box-shadow:0 0 0 2px #0e74902e}.admin-status-badge-btn:active{transform:scale(.96)}[data-theme=dark] .admin-status-badge-btn:hover{filter:brightness(1.15);box-shadow:0 0 0 2px #22d3ee40}.ai-usage-header{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:1rem}.ai-usage-pricing-btn{font-family:Tajawal,sans-serif;background:#f1f5f9;color:#0e7f6e;border:1px solid #e2e8f0;border-radius:6px;padding:.3rem .85rem;font-size:.78rem;font-weight:600;cursor:pointer}.ai-usage-pricing-btn:hover{background:#e2e8f0}.ai-usage-pricing{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:1rem;margin-bottom:1rem}.ai-usage-note{margin:0 0 .75rem;color:#475569;font-size:.85rem;line-height:1.6}.ai-usage-hint{margin:.75rem 0 0;color:#64748b;font-size:.78rem;line-height:1.6}.ai-usage-pricing-table{width:100%;border-collapse:collapse;font-size:.82rem}.ai-usage-pricing-table th,.ai-usage-pricing-table td{padding:.45rem .6rem;text-align:right;border-bottom:1px solid #e2e8f0}.ai-usage-pricing-table th{font-weight:600;color:#475569;background:#fff}.ai-usage-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:.6rem}.ai-stat-box{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:.7rem .85rem;display:flex;flex-direction:column;gap:.2rem}.ai-stat-box-highlight{background:linear-gradient(135deg,#ecfeff,#f0fdfa);border-color:#0e7f6e}.ai-stat-label{font-size:.72rem;color:#64748b;font-weight:500}.ai-stat-value{font-size:1.05rem;font-weight:700;color:#0f172a;font-family:Tajawal,sans-serif}.ai-stat-box-highlight .ai-stat-value{color:#0e7f6e}.ai-stat-sub{font-size:.7rem;color:#94a3b8}[data-theme=dark] .ai-usage-pricing-btn{background:#1e293b;color:#22d3ee;border-color:#334155}[data-theme=dark] .ai-usage-pricing-btn:hover{background:#334155}[data-theme=dark] .ai-usage-pricing{background:#0f172a;border-color:#1e293b}[data-theme=dark] .ai-usage-note{color:#cbd5e1}[data-theme=dark] .ai-usage-hint{color:#94a3b8}[data-theme=dark] .ai-usage-pricing-table th,[data-theme=dark] .ai-usage-pricing-table td{border-color:#1e293b;color:#e2e8f0}[data-theme=dark] .ai-usage-pricing-table th{background:#0b1220;color:#94a3b8}[data-theme=dark] .ai-stat-box{background:#0f172a;border-color:#1e293b}[data-theme=dark] .ai-stat-box-highlight{background:linear-gradient(135deg,#042b3a,#052e2a);border-color:#22d3ee}[data-theme=dark] .ai-stat-label{color:#94a3b8}[data-theme=dark] .ai-stat-value{color:#f1f5f9}[data-theme=dark] .ai-stat-box-highlight .ai-stat-value{color:#22d3ee}.bookeditor-content-preview{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:1.25rem 1.5rem;max-height:480px;overflow-y:auto;font-family:Tajawal,sans-serif;font-size:.95rem;line-height:1.85;color:#1e293b}.bookeditor-content-preview h1,.bookeditor-content-preview h2,.bookeditor-content-preview h3,.bookeditor-content-preview h4{font-weight:700;color:#0f172a;margin:1rem 0 .5rem}.bookeditor-content-preview h1{font-size:1.4rem}.bookeditor-content-preview h2{font-size:1.2rem}.bookeditor-content-preview h3{font-size:1.05rem}.bookeditor-content-preview p{margin:0 0 .75rem}.bookeditor-content-preview ul,.bookeditor-content-preview ol{margin:0 0 .75rem;padding-right:1.5rem}.bookeditor-content-preview li{margin-bottom:.3rem}.bookeditor-content-preview blockquote{border-right:3px solid #0e7f6e;padding:.4rem .9rem;margin:.75rem 0;background:#f0fdfa;color:#0f172a;border-radius:4px}.bookeditor-content-preview a{color:#0e7f6e;text-decoration:underline}.bookeditor-content-preview img{max-width:100%;height:auto;border-radius:6px}.bookeditor-content-preview hr{border:none;border-top:1px solid #e2e8f0;margin:1rem 0}.bookeditor-content-preview code{background:#f1f5f9;padding:.1rem .35rem;border-radius:4px;font-size:.85em}[data-theme=dark] .bookeditor-content-preview{background:#0f172a;border-color:#1e293b;color:#e2e8f0}[data-theme=dark] .bookeditor-content-preview h1,[data-theme=dark] .bookeditor-content-preview h2,[data-theme=dark] .bookeditor-content-preview h3,[data-theme=dark] .bookeditor-content-preview h4{color:#f1f5f9}[data-theme=dark] .bookeditor-content-preview blockquote{background:#042b3a;border-right-color:#22d3ee;color:#f1f5f9}[data-theme=dark] .bookeditor-content-preview a{color:#22d3ee}[data-theme=dark] .bookeditor-content-preview hr{border-top-color:#1e293b}[data-theme=dark] .bookeditor-content-preview code{background:#1e293b}.bookeditor-tree-addsection{display:flex;align-items:center;gap:.4rem;width:100%;margin-top:.5rem;padding:.55rem .75rem;background:transparent;border:1px dashed #cbd5e1;border-radius:6px;color:#0e7f6e;font-family:Tajawal,sans-serif;font-size:.82rem;font-weight:600;cursor:pointer;transition:all .15s}.bookeditor-tree-addsection:hover{background:#f0fdfa;border-color:#0e7f6e}.bookeditor-inline-add-section{margin-top:.5rem}[data-theme=dark] .bookeditor-tree-addsection{border-color:#334155;color:#22d3ee}[data-theme=dark] .bookeditor-tree-addsection:hover{background:#042b3a;border-color:#22d3ee}.bookeditor-physical-hint{margin:0 0 .8rem;color:#64748b;font-size:.82rem;line-height:1.6}.bookeditor-physical-row{display:flex;gap:.75rem;align-items:flex-end;flex-wrap:wrap}.bookeditor-physical-field{display:flex;flex-direction:column;gap:.3rem}.bookeditor-physical-field label{font-size:.78rem;color:#475569;font-weight:600}.bookeditor-physical-field input{width:110px;padding:.45rem .7rem;border:1px solid #cbd5e1;border-radius:6px;font-family:Tajawal,sans-serif;font-size:.9rem;background:#fff;color:#0f172a}.bookeditor-physical-field input:focus{outline:none;border-color:#0e7f6e;box-shadow:0 0 0 3px #0e7f6e26}.bookeditor-physical-preview{margin-top:.75rem;display:inline-block;padding:.35rem .75rem;background:#f0fdfa;color:#0e7f6e;border:1px solid #99f6e4;border-radius:6px;font-size:.82rem;font-weight:600}[data-theme=dark] .bookeditor-physical-hint{color:#94a3b8}[data-theme=dark] .bookeditor-physical-field label{color:#cbd5e1}[data-theme=dark] .bookeditor-physical-field input{background:#0f172a;border-color:#334155;color:#f1f5f9}[data-theme=dark] .bookeditor-physical-field input:focus{border-color:#22d3ee;box-shadow:0 0 0 3px #22d3ee33}[data-theme=dark] .bookeditor-physical-preview{background:#042b3a;color:#22d3ee;border-color:#155e75}.attachments-count{background:#f1f5f9;color:#475569;font-size:.72rem;font-weight:700;padding:.15rem .5rem;border-radius:999px}.attachments-hint{margin:0 0 .85rem;color:#64748b;font-size:.82rem;line-height:1.6}.attachments-uploader{display:flex;gap:.5rem;margin-bottom:.85rem;flex-wrap:wrap}.attachments-title-input{flex:1;min-width:200px;padding:.45rem .7rem;border:1px solid #cbd5e1;border-radius:6px;font-family:Tajawal,sans-serif;font-size:.88rem;background:#fff;color:#0f172a}.attachments-title-input:focus{outline:none;border-color:#0e7f6e;box-shadow:0 0 0 3px #0e7f6e26}.attachments-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.5rem}.attachment-item{display:flex;align-items:center;gap:.75rem;padding:.7rem .85rem;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;transition:background .15s}.attachment-item:hover{background:#f1f5f9}.attachment-icon{font-size:1.4rem;width:36px;height:36px;display:flex;align-items:center;justify-content:center;background:#fff;border-radius:6px;border:1px solid #e2e8f0}.attachment-meta{flex:1;min-width:0}.attachment-title{font-weight:600;color:#0f172a;font-size:.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.attachment-sub{display:flex;align-items:center;gap:.5rem;color:#64748b;font-size:.75rem;margin-top:.15rem}.attachment-dot{width:3px;height:3px;border-radius:50%;background:#cbd5e1}.attachment-hidden-badge{display:inline-block;margin-inline-start:.4rem;padding:.05rem .4rem;border-radius:999px;background:#f1f5f9;color:#64748b;font-size:.68rem;font-weight:600;vertical-align:middle}[data-theme=dark] .attachment-hidden-badge{background:#1e293b;color:#94a3b8}.attachment-actions{display:flex;gap:.3rem}.bookeditor-iconbtn-danger{color:#dc2626}.bookeditor-iconbtn-danger:hover{background:#fef2f2}[data-theme=dark] .attachments-count{background:#1e293b;color:#cbd5e1}[data-theme=dark] .attachments-hint{color:#94a3b8}[data-theme=dark] .attachments-title-input{background:#0f172a;border-color:#334155;color:#f1f5f9}[data-theme=dark] .attachments-title-input:focus{border-color:#22d3ee;box-shadow:0 0 0 3px #22d3ee33}[data-theme=dark] .attachment-item{background:#0f172a;border-color:#1e293b}[data-theme=dark] .attachment-item:hover{background:#1e293b}[data-theme=dark] .attachment-icon{background:#020617;border-color:#1e293b}[data-theme=dark] .attachment-title{color:#f1f5f9}[data-theme=dark] .attachment-sub{color:#94a3b8}[data-theme=dark] .attachment-dot{background:#334155}[data-theme=dark] .bookeditor-iconbtn-danger{color:#f87171}[data-theme=dark] .bookeditor-iconbtn-danger:hover{background:#450a0a}.bookeditor-tree-reorder{display:inline-flex;flex-direction:column;gap:1px;margin-inline-start:4px;opacity:0;transition:opacity .15s}.bookeditor-tree-secrow:hover .bookeditor-tree-reorder,.bookeditor-tree-page:hover .bookeditor-tree-reorder,.bookeditor-tree-secrow.is-selected .bookeditor-tree-reorder,.bookeditor-tree-page.is-selected .bookeditor-tree-reorder{opacity:1}.bookeditor-tree-movebtn{width:18px;height:14px;display:inline-flex;align-items:center;justify-content:center;background:transparent;border:none;border-radius:3px;color:#64748b;cursor:pointer;padding:0;transition:all .12s}.bookeditor-tree-movebtn:hover:not(:disabled){background:#0e7f6e1a;color:#0e7f6e}.bookeditor-tree-movebtn:disabled{opacity:.3;cursor:not-allowed}[data-theme=dark] .bookeditor-tree-movebtn{color:#94a3b8}[data-theme=dark] .bookeditor-tree-movebtn:hover:not(:disabled){background:#22d3ee26;color:#5eead4}.mcp-session-status{margin:4px 0 14px}.mcp-session-row{display:flex;flex-wrap:wrap;align-items:center;gap:14px}.mcp-session-badge{font-weight:700;font-size:14px}.mcp-session-badge.mcp-on{color:#0f766e}.mcp-session-badge.mcp-off{color:#94a3b8}.mcp-session-meta{font-size:13px;color:#64748b}.mcp-session-actions{display:flex;flex-wrap:wrap;gap:10px}.mcp-token-reveal{margin-top:16px;padding:14px 16px;border-radius:12px;background:#fff7ed;border:1px solid #fed7aa}.mcp-token-warn{font-size:13.5px;font-weight:600;color:#b45309;margin-bottom:8px}.mcp-token-path{display:inline-block;font-size:12.5px;background:#fffbeb;border:1px solid #fde68a;border-radius:7px;padding:2px 8px;color:#92400e;margin-bottom:10px;direction:ltr}.mcp-token-box{display:flex;align-items:center;gap:10px;background:#1e293b;border-radius:9px;padding:10px 12px;overflow-x:auto}.mcp-token-box code{color:#e2e8f0;font-size:13px;word-break:break-all;flex:1}[data-theme=dark] .mcp-session-meta{color:#94a3b8}[data-theme=dark] .mcp-session-badge.mcp-on{color:#5eead4}[data-theme=dark] .mcp-token-reveal{background:#2a1f0a;border-color:#854d0e}[data-theme=dark] .mcp-token-warn{color:#fbbf24}[data-theme=dark] .mcp-token-path{background:#1c1408;border-color:#854d0e;color:#fcd34d}@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-ease:initial;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--spacing:.25rem;--ease-in-out:cubic-bezier(.4, 0, .2, 1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.visible{visibility:visible}.absolute{position:absolute}.relative{position:relative}.static{position:static}.start{inset-inline-start:var(--spacing)}.end{inset-inline-end:var(--spacing)}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.block{display:block}.flex{display:flex}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.h-full{height:100%}.w-full{width:100%}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.resize{resize:both}.border{border-style:var(--tw-border-style);border-width:1px}.italic{font-style:italic}.underline{text-decoration-line:underline}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}:root{--bg:#f8fafc;--bg-soft:#f1f5f9;--bg-card:#fff;--blue:#0c5e75;--blue-mid:#0e7490;--blue-light:#e0f2f7;--blue-faint:#f0f9fb;--teal:#0e7490;--teal-light:#e0f2f7;--teal-mid:#0891b259;--green:#0d9488;--border:#cbd5e1;--text:#0f172a;--text-mid:#334155;--text-soft:#64748b;--accent:#e8a020;--red-soft:#fdf0f0;--red:#c0392b}[data-theme=dark]{--bg:#020617;--bg-soft:#0f172a;--bg-card:#0f172a;--blue:#06b6d4;--blue-mid:#0891b2;--blue-light:#083344;--blue-faint:#0c1a2e;--teal:#06b6d4;--teal-light:#083344;--teal-mid:#5eead44d;--green:#2dd4bf;--border:#1e293b;--text:#f1f5f9;--text-mid:#cbd5e1;--text-soft:#94a3b8;--accent:#fbbf24;--red-soft:#3a1e1e;--red:#f06060}[data-theme=dark] .library-nav-logo-img,[data-theme=dark] .reader-logo-img{filter:brightness(0)invert()}*,:before,:after{box-sizing:border-box}button,a,[role=button],input,label,summary,[tabindex]{touch-action:manipulation}@media(prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}html{scroll-behavior:smooth}::selection{background:var(--teal)}@supports (color:color-mix(in lab,red,red)){::selection{background:color-mix(in srgb,var(--teal) 25%,transparent)}}button,a,[role=button]{transition:background-color .18s,color .18s,border-color .18s,box-shadow .18s,opacity .18s}button:active:not(:disabled){transform:scale(.98)}button:disabled{cursor:not-allowed}*{scrollbar-width:thin;scrollbar-color:var(--border) transparent}::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:var(--border);background-clip:padding-box;border:2px solid #0000;border-radius:8px}::-webkit-scrollbar-thumb:hover{background:var(--text-soft);background-clip:padding-box;border:2px solid #0000}.stat-card-value,.ai-stat-value,.reader-stat-value,.reader-progress-text,.reader-physical-page{font-variant-numeric:tabular-nums}a:focus-visible,button:focus-visible,input:focus-visible,[contenteditable]:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--teal);outline-offset:2px;border-radius:6px}.nav-search-input:focus-visible{outline:none}.nav-search:focus-within{border-color:var(--teal);background:var(--bg-card);box-shadow:0 0 0 3px var(--teal)}@supports (color:color-mix(in lab,red,red)){.nav-search:focus-within{box-shadow:0 0 0 3px color-mix(in srgb,var(--teal) 15%,transparent)}}html{direction:rtl}body{background:var(--bg-soft);color:var(--text);margin:0;padding:0;font-family:Tajawal,sans-serif;font-size:16px;line-height:1.9}.reader-nav{background:var(--bg-card);color:var(--text);z-index:300;border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;height:56px;padding:0 1rem;display:flex;position:sticky;top:0}.reader-nav:before{border-radius:0;overflow:hidden}[data-theme=dark] .reader-nav{-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#0f172acc}.reader-nav:before{content:"";pointer-events:none;z-index:0;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%230891b2' stroke-width='0.4'%3E%3Cpath d='M30 0 L60 30 L30 60 L0 30 Z' opacity='0.07'/%3E%3Cpath d='M30 10 L50 30 L30 50 L10 30 Z' opacity='0.05'/%3E%3Ccircle cx='30' cy='30' r='8' opacity='0.04'/%3E%3Cpath d='M30 0 L30 10 M60 30 L50 30 M30 60 L30 50 M0 30 L10 30' opacity='0.06'/%3E%3C/g%3E%3C/svg%3E");background-size:60px 60px;position:absolute;inset:0}[data-theme=dark] .reader-nav:before{display:none}.reader-nav>*{z-index:1;position:relative}.reader-nav-right{align-items:center;gap:.75rem;display:flex}.reader-back-btn{border-radius:8px;align-items:center;padding:.2rem;text-decoration:none;transition:all .15s;display:flex}.reader-back-btn:hover{opacity:.8}.reader-logo-img{object-fit:contain;width:auto;height:36px}.reader-library-link{color:var(--text-soft);background:0 0;border-radius:8px;align-items:center;gap:.4rem;padding:.4rem .9rem;font-family:Tajawal,sans-serif;font-size:.85rem;font-weight:600;text-decoration:none;transition:all .18s;display:none}.reader-library-link:hover{color:var(--teal);background:var(--teal-light)}@media(min-width:769px){.reader-library-link{display:flex}}.reader-sidebar-toggle{background:var(--blue-faint);color:var(--text-soft);cursor:pointer;border:none;border-radius:8px;justify-content:center;align-items:center;padding:.4rem .5rem;transition:all .18s;display:flex}.reader-sidebar-toggle:hover{background:var(--blue-light);color:var(--text)}.layout{grid-template-columns:260px 1fr;gap:0;min-height:calc(100vh - 56px);transition:grid-template-columns .3s;display:grid}.layout-collapsed{grid-template-columns:0 1fr}.sidebar{background:var(--bg-soft);border-left:1px solid var(--border);flex-direction:column;width:260px;min-width:0;height:calc(100vh - 56px);padding:0;transition:width .3s,opacity .3s,transform .3s;display:flex;position:sticky;top:56px;overflow:hidden auto}[data-theme=dark] .sidebar{-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#0f172af2}.sidebar-collapsed{opacity:0;pointer-events:none;border-left:none;width:0}.sidebar-book-info{border-bottom:1px solid var(--border);text-align:center;padding:1.2rem 1.2rem 1rem}.sidebar-book-title{color:var(--text);margin:0 0 .2rem;font-family:Tajawal,sans-serif;font-size:1.3rem;font-weight:800}.sidebar-book-author{color:var(--text-soft);margin:0;font-family:Tajawal,sans-serif;font-size:.85rem;font-weight:500}.sidebar-toc-header{border-bottom:1px solid var(--border);background:var(--bg-card);padding:.8rem 1.2rem}.sidebar-toc-top{justify-content:space-between;align-items:center;margin-bottom:.6rem;display:flex}.sidebar-toc-title{color:var(--text);margin:0;font-family:Tajawal,sans-serif;font-size:.88rem;font-weight:700}.sidebar-toc-badge{color:var(--teal);background:var(--teal-light);border-radius:20px;padding:.15rem .55rem;font-size:.72rem;font-weight:600}[data-theme=dark] .sidebar-toc-badge{border:1px solid #06b6d44d;box-shadow:0 0 10px #22d3ee1a}.sidebar-toc-list{flex:1;padding:.5rem 0;overflow-y:auto}.sidebar-label{color:var(--text);cursor:pointer;text-align:right;background:0 0;border:none;border-radius:8px;width:calc(100% - 1.2rem);margin:.2rem .6rem .15rem;padding:.45rem 1rem;font-family:Tajawal,sans-serif;font-size:.82rem;font-weight:700;transition:all .18s;display:block}.sidebar-label:hover{background:var(--blue-faint)}.sidebar-label-active{background:var(--blue-light);color:var(--blue-mid)}.nav-item{cursor:pointer;color:var(--text-mid);text-align:right;background:0 0;border:none;border-radius:8px;align-items:center;gap:.5rem;width:calc(100% - 1.2rem);margin:.1rem .6rem;padding:.4rem 1rem;font-family:Tajawal,sans-serif;font-size:.82rem;text-decoration:none;transition:all .18s;display:flex}.nav-item:hover{background:var(--blue-faint);color:var(--blue-mid)}.nav-item.active{background:var(--teal-light);color:var(--teal);border:1px solid var(--teal);font-weight:700}[data-theme=dark] .nav-item.active{border-color:#06b6d44d;box-shadow:0 0 10px #06b6d41a}.nav-dot{background:var(--border);border-radius:50%;flex-shrink:0;width:7px;height:7px;transition:all .18s}.nav-item.active .nav-dot{background:var(--teal);box-shadow:0 0 0 3px var(--teal-light)}.nav-dot.read{background:var(--teal)}.main-content{background:var(--bg);position:relative;overflow-y:auto}[data-theme=dark] .main-content{background:#020617;box-shadow:inset 10px 0 30px #00000080}.main-content-noise{opacity:.015;pointer-events:none;mix-blend-mode:overlay;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");position:absolute;inset:0}.main-content-inner{z-index:1;max-width:820px;margin:0 auto;padding:2.5rem 3rem;position:relative}.page-header{border-bottom:2px solid var(--blue-light);margin-bottom:2.2rem;padding-bottom:1.2rem}.page-header .tag{background:var(--blue-light);color:var(--blue);letter-spacing:.05em;border-radius:20px;margin-bottom:.6rem;padding:.2rem .8rem;font-size:.75rem;font-weight:700;display:inline-block}.page-header h1{color:var(--text);margin:0;font-family:Tajawal,sans-serif;font-size:1.5rem;font-weight:700}.sec-heading{border-right:4px solid var(--blue);align-items:center;gap:.7rem;margin:2rem 0 1rem;padding-right:.8rem;display:flex}.sec-heading h2{color:var(--text);margin:0;font-family:Tajawal,sans-serif;font-size:1.1rem;font-weight:700}.sec-heading.teal{border-right-color:var(--teal)}.sec-heading.teal h2{color:var(--teal)}.para{color:var(--text-mid);margin-bottom:1rem;line-height:2}.para strong{color:var(--text);font-weight:700}.para em{color:var(--blue);font-style:normal;font-weight:500}.def-box{border:1.5px solid var(--blue-mid);background:var(--blue-faint);border-radius:10px;margin:1.2rem 0;padding:1.3rem 1.4rem 1.1rem;position:relative}.def-box .def-label{background:var(--blue-mid);color:#fff;letter-spacing:.06em;border-radius:20px;padding:.15rem .8rem;font-size:.72rem;font-weight:700;position:absolute;top:-.65rem;right:1rem}.def-box p{color:var(--text);margin:0;font-family:Tajawal,sans-serif;font-size:1.05rem;line-height:2}.def-box.teal{border-color:var(--teal);background:var(--teal-light)}.def-box.teal .def-label{background:var(--teal)}.note-box{border-right:4px solid var(--blue-mid);background:var(--bg-card);color:var(--text-mid);border-radius:0 8px 8px 0;margin:1rem 0;padding:.9rem 1.1rem;font-size:.92rem;line-height:1.85}.note-box .note-title{color:var(--blue);letter-spacing:.04em;margin-bottom:.3rem;font-size:.8rem;font-weight:700}.num-list{margin:.8rem 0 1rem;padding:0;list-style:none}.num-list li{border-bottom:1px solid var(--border);color:var(--text-mid);align-items:flex-start;gap:.9rem;padding:.65rem 0;line-height:1.9;display:flex}.num-list li:last-child{border-bottom:none}.num-list .num{background:var(--blue-light);min-width:26px;height:26px;color:var(--blue);font-feature-settings:"lnum";direction:ltr;unicode-bidi:embed;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;margin-top:3px;font-family:Tajawal,sans-serif;font-size:.82rem;font-weight:700;display:flex}.num-list.teal .num{background:var(--teal-light);color:var(--teal)}.card-grid{grid-template-columns:1fr 1fr;align-items:stretch;gap:1rem;margin:1rem 0;display:grid}.card{background:var(--bg-card);border:1.5px solid var(--border);border-radius:10px;flex-direction:column;justify-content:flex-start;padding:1.1rem;display:flex}.card:hover{box-shadow:0 4px 16px #1a5fa812}.card .card-title{color:var(--blue);align-items:center;gap:.4rem;margin-bottom:.4rem;font-size:.95rem;font-weight:700;display:flex}.card .card-title .dot{background:var(--blue);border-radius:50%;flex-shrink:0;width:8px;height:8px}.card p{color:var(--text-mid);margin:.5rem 0 0;font-size:.88rem;line-height:1.85}.card.teal{border-color:#b2ddd6}.card.teal .card-title{color:var(--teal)}.card.teal .card-title .dot{background:var(--teal)}.card-num{background:var(--blue);color:#fff;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:20px;height:20px;font-size:.72rem;font-weight:700;display:inline-flex}.card.teal .card-num{background:var(--teal)}.card-header-row{justify-content:space-between;align-items:center;gap:.8rem;margin-bottom:.5rem;display:flex}.prob-bar-inline{flex-direction:column;align-items:flex-end;gap:.2rem;min-width:80px;display:flex}.prob-bar-inline .prob-bar{background:var(--border);border-radius:10px;width:80px;height:5px;overflow:hidden}.prob-bar-inline .prob-percent{color:var(--text-soft);text-align:left;margin-top:0;font-size:.74rem}.prob-bar{background:var(--border);border-radius:10px;height:6px;overflow:hidden}.prob-fill{border-radius:10px;height:100%}.tree-wrap{background:var(--bg-card);border:1.5px solid var(--border);border-radius:10px;margin:1.2rem 0;padding:1.5rem 1rem;overflow-x:auto}.tree{flex-direction:column;align-items:center;gap:0;font-family:Tajawal,sans-serif;display:flex}.tree-root{background:var(--blue);color:#fff;border-radius:8px;padding:.45rem 1.8rem;font-size:1rem;font-weight:700}.v-line{background:var(--blue-mid);width:2px;height:22px}.h-bar{align-items:flex-start;gap:1.5rem;display:flex;position:relative}.h-bar:before{content:"";background:var(--blue-mid);height:2px;position:absolute;top:0;left:calc(50% - 100px);right:calc(50% - 100px)}.tree-branch{flex-direction:column;align-items:center;display:flex}.branch-line{background:var(--blue-mid);width:2px;height:18px}.tree-node{background:var(--blue-light);border:1.5px solid var(--blue-mid);color:var(--blue);white-space:nowrap;text-align:center;border-radius:6px;padding:.35rem 1rem;font-size:.9rem}.tree-node.teal{background:var(--teal-light);border-color:var(--teal);color:var(--teal)}.tree-node.soft{border-color:var(--border);color:var(--text-mid);background:#f4f7fb;font-size:.82rem}.styled-table{border-collapse:collapse;width:100%;margin:1rem 0;font-size:.9rem}.styled-table th{background:var(--blue);color:#fff;text-align:right;padding:.7rem 1rem;font-weight:500}.styled-table th:first-child{border-radius:0 6px 0 0}.styled-table th:last-child{border-radius:6px 0 0}.styled-table td{border-bottom:1px solid var(--border);color:var(--text-mid);vertical-align:top;padding:.65rem 1rem;line-height:1.8}.styled-table tr:hover td{background:var(--blue-faint)}.triangle-viz{background:var(--bg-card);border:1.5px solid var(--border);border-radius:10px;flex-wrap:wrap;justify-content:center;align-items:center;gap:.8rem;margin:1.2rem 0;padding:1.2rem 1rem;display:flex}.triangle-step{flex-direction:column;align-items:center;gap:.3rem;display:flex}.triangle-label{color:var(--blue);background:var(--blue-light);border-radius:20px;padding:.15rem .7rem;font-size:.82rem;font-weight:700}.triangle-label.teal{color:var(--teal);background:var(--teal-light)}.triangle-sub{color:var(--text-soft);text-align:center;max-width:110px;font-size:.75rem}.triangle-arrow{color:var(--text-soft);margin-top:-1.5rem;padding:0 .2rem;font-size:1.3rem;font-weight:700}.ilm-title{color:var(--blue);margin-bottom:.4rem;font-size:1rem;font-weight:700;display:block}.ilm-name{color:var(--blue);font-weight:700}.bullet-list{margin:.7rem 0;padding:0;list-style:none}.bullet-list li{color:var(--text-mid);align-items:flex-start;gap:.6rem;padding:.35rem 0;font-size:.95rem;line-height:1.8;display:flex}.bullet-list li:before{content:"";background:var(--blue-mid);border-radius:50%;flex-shrink:0;width:7px;height:7px;margin-top:.55rem}.highlight-box{border:1.5px solid var(--blue-mid);background:var(--blue-light);color:var(--blue);text-align:center;border-radius:8px;margin:.7rem 0;padding:.7rem 1.1rem;font-size:.95rem;font-weight:500}.example-box{border:1.5px solid var(--border);border-right:4px solid var(--teal);background:var(--bg-card);color:var(--text-mid);border-radius:0 8px 8px 0;margin:.7rem 0;padding:.9rem 1.1rem .9rem 1rem;font-size:.93rem;line-height:1.9;position:relative}.example-label{background:var(--teal);color:#fff;letter-spacing:.06em;border-radius:20px;padding:.15rem .8rem;font-size:.72rem;font-weight:700;position:absolute;top:-.65rem;right:1rem}.hawas-row{flex-wrap:wrap;gap:.5rem;margin:.7rem 0;display:flex}.hawas-tag{background:var(--blue-light);border:1.5px solid var(--blue-mid);color:var(--blue);border-radius:20px;padding:.25rem .9rem;font-size:.88rem;font-weight:500}.names-box{border:1.5px solid var(--border);background:var(--bg-card);border-radius:10px;margin:1rem 0;overflow:hidden}.names-row{align-items:stretch;display:flex}.name-item{text-align:center;flex:1;padding:.9rem 1.2rem}.name-divider{background:var(--border);width:1.5px}.name-title{color:var(--blue);font-size:1rem;font-weight:700}.name-desc{text-align:center;color:var(--text-soft);border-top:1px dashed var(--border);padding:.3rem 1rem .7rem;font-size:.82rem}.name-and{color:var(--text-soft);align-items:center;padding:0 .3rem;font-size:.9rem;font-weight:500;display:flex}.parallel-box{border:1.5px solid var(--border);background:var(--bg-card);border-radius:10px;margin-bottom:0;padding:1.2rem 1.4rem;position:relative}.parallel-label{background:var(--blue);color:#fff;letter-spacing:.04em;border-radius:20px;padding:.15rem .9rem;font-size:.72rem;font-weight:700;position:absolute;top:-.65rem;right:1rem}.parallel-bridge{text-align:center;color:var(--text-soft);letter-spacing:.08em;align-items:center;gap:.8rem;padding:.6rem 0;font-size:.88rem;font-weight:700;display:flex}.parallel-bridge:before,.parallel-bridge:after{content:"";background:var(--border);flex:1;height:1.5px}.divider{border:none;border-top:1.5px solid var(--border);margin:2rem 0}.page-section{animation:.25s fadeUp}[data-theme=dark] .page-section svg [stroke="#2472c8" i]{stroke:var(--blue)}[data-theme=dark] .page-section svg [fill="#2472c8" i]{fill:var(--blue)}[data-theme=dark] .page-section svg [stroke="#6b7a99" i]{stroke:var(--text-soft)}[data-theme=dark] .page-section svg [fill="#6b7a99" i]{fill:var(--text-soft)}[data-theme=dark] .page-section svg [stroke="#0e7f6e" i]{stroke:var(--green)}[data-theme=dark] .page-section svg [fill="#0e7f6e" i]{fill:var(--green)}@keyframes fadeUp{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.sidebar-overlay{display:none}.progress-bar-container{padding:0}.progress-bar-label{color:var(--text-soft);justify-content:space-between;margin-bottom:.4rem;font-size:.72rem;display:flex}.progress-bar{background:var(--border);border-radius:10px;height:4px;overflow:hidden}.progress-fill{background:linear-gradient(90deg,var(--teal),var(--blue-mid));border-radius:10px;height:100%;transition:width .4s}[data-theme=dark] .progress-fill{box-shadow:0 0 8px #06b6d499}[data-theme=dark] .progress-bar{height:6px}@media(max-width:768px){.layout{grid-template-columns:1fr}.sidebar{z-index:50;border-left:1px solid var(--border);background:var(--bg-card);width:300px;height:calc(100vh - 56px);position:fixed;top:56px;right:0;transform:translate(100%);box-shadow:-4px 0 20px #00000026}.sidebar.open{transform:translate(0)}.sidebar-overlay{z-index:40;background:#0003;display:none;position:fixed;inset:56px 0 0}.sidebar-overlay.visible{display:block}.main-content-inner{padding:1.5rem 1.2rem}.card-grid{grid-template-columns:1fr}.sidebar-book-info{padding:1.2rem 1rem 1rem}.sidebar-book-title{font-size:1.3rem}}.page-nav-btn{cursor:pointer;color:var(--text);text-align:start;background:0 0;border:none;border-radius:999px;align-items:center;gap:.7rem;max-width:100%;padding:.55rem 1rem;font-family:Tajawal,sans-serif;font-size:.88rem;font-weight:500;transition:all .2s;display:inline-flex}.page-nav-btn:hover{background:#0f172a0d}[data-theme=dark] .page-nav-btn:hover{background:#ffffff0f}.page-nav-stack{flex-direction:column;align-items:flex-start;min-width:0;line-height:1.15;display:flex}.page-nav-label{opacity:.6;letter-spacing:.02em;font-size:.7rem;font-weight:500}.page-nav-title{white-space:nowrap;text-overflow:ellipsis;color:var(--text);min-width:0;max-width:100%;font-size:.92rem;font-weight:600;overflow:hidden}.page-nav-btn{width:100%;min-width:0}.next-btn{justify-content:flex-end}.prev-btn{justify-content:flex-start}.page-nav-arrow{color:var(--blue);flex-shrink:0;font-size:1.05rem;line-height:1;transition:transform .2s}.prev-btn:hover .page-nav-arrow{transform:translate(3px)}.next-btn:hover .page-nav-arrow{transform:translate(-3px)}.next-btn .page-nav-stack{align-items:flex-end}.nav-actions{align-items:center;gap:.5rem;display:flex}.nav-signin-btn{border:1.5px solid var(--border);background:var(--bg-card);color:var(--text-mid);cursor:pointer;border-radius:10px;align-items:center;gap:.4rem;padding:.4rem 1rem;font-family:Tajawal,sans-serif;font-size:.85rem;font-weight:600;text-decoration:none;transition:all .2s;display:flex}.nav-signin-btn:hover{border-color:var(--teal);color:var(--teal);background:var(--teal-light)}.nav-signin-btn svg{flex-shrink:0}.user-menu-wrap{position:relative}.user-menu-trigger{border:1.5px solid var(--border);background:var(--bg-card);color:var(--text);cursor:pointer;border-radius:10px;align-items:center;gap:.45rem;padding:.25rem .6rem .25rem .25rem;font-family:Tajawal,sans-serif;font-size:.85rem;transition:all .2s;display:flex}.user-menu-trigger:hover{border-color:var(--text-soft);background:var(--bg-soft)}.user-menu-avatar{object-fit:cover;border-radius:50%;flex-shrink:0;width:28px;height:28px}.user-menu-avatar-fallback{background:linear-gradient(135deg,var(--teal),var(--blue-mid));color:#fff;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:28px;height:28px;font-size:.8rem;font-weight:700;display:flex}.user-menu-name{text-overflow:ellipsis;white-space:nowrap;max-width:120px;font-weight:500;overflow:hidden}.user-menu-backdrop{z-index:200;position:fixed;inset:0}.user-menu-dropdown{background:var(--bg-card);border:1.5px solid var(--border);z-index:201;border-radius:12px;min-width:220px;animation:.15s ease-out menuSlide;position:absolute;top:calc(100% + 6px);left:0;overflow:hidden;box-shadow:0 8px 32px #0000001f}@keyframes menuSlide{0%{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}.user-menu-dropdown-header{flex-direction:column;gap:.15rem;padding:.8rem 1rem;display:flex}.user-menu-dropdown-name{color:var(--text);font-size:.9rem;font-weight:700}.user-menu-dropdown-email{color:var(--text-soft);text-align:right;direction:ltr;font-size:.78rem}.user-menu-dropdown-divider{background:var(--border);height:1px;margin:0}.user-menu-dropdown-item{width:100%;color:var(--text-mid);cursor:pointer;background:0 0;border:none;align-items:center;gap:.5rem;padding:.65rem 1rem;font-family:Tajawal,sans-serif;font-size:.85rem;transition:background .15s;display:flex}.user-menu-dropdown-item:hover{background:var(--bg-soft)}.user-menu-signout{color:var(--red)}.user-menu-signout:hover{background:var(--red-soft)}.nav-auth-btn{color:#fff;cursor:pointer;background:#ffffff26;border:1px solid #ffffff4d;border-radius:6px;padding:.35rem .9rem;font-family:Tajawal,sans-serif;font-size:.82rem;font-weight:500;text-decoration:none;transition:background .15s}.nav-auth-btn:hover{background:#ffffff40}.library-nav{border-bottom:1px solid var(--border);z-index:100;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:var(--bg-card);justify-content:space-between;align-items:center;height:64px;padding:0 1.5rem;display:flex;position:sticky;top:0}@supports (color:color-mix(in lab,red,red)){.library-nav{background:color-mix(in srgb,var(--bg-card) 80%,transparent)}}[data-theme=dark] .library-nav{background:#0f172acc}.nav-search{background:var(--bg-soft);border:1.5px solid #0000;border-radius:100px;flex:1;align-items:center;gap:.4rem;min-width:180px;max-width:420px;padding:.5rem 1rem;transition:all .25s;display:flex}.nav-search-active{border-color:var(--teal);background:var(--bg-card);box-shadow:0 0 0 3px var(--teal)}@supports (color:color-mix(in lab,red,red)){.nav-search-active{box-shadow:0 0 0 3px color-mix(in srgb,var(--teal) 15%,transparent)}}.nav-search-icon{color:var(--text-soft);flex-shrink:0;transition:color .2s}.nav-search-active .nav-search-icon{color:var(--teal)}.nav-search-input{color:var(--text);direction:rtl;background:0 0;border:none;outline:none;width:100%;font-family:Tajawal,sans-serif;font-size:.88rem}.nav-search-input::placeholder{color:var(--text-soft);opacity:.7}.nav-search-clear{cursor:pointer;color:var(--text-soft);background:0 0;border:none;flex-shrink:0;justify-content:center;align-items:center;padding:0;transition:color .15s;display:flex}.nav-search-clear:hover{color:var(--red)}.library-nav-logo{align-items:center;text-decoration:none;display:flex}.library-nav-logo-img{object-fit:contain;width:auto;height:48px}.library-nav-logo-text{color:var(--text);margin-right:.5rem;font-family:Tajawal,sans-serif;font-size:1.3rem;font-weight:800}.library-nav-auth{border:1.5px solid var(--border);color:var(--text-soft);cursor:pointer;background:0 0;border-radius:8px;padding:.4rem 1.2rem;font-family:Tajawal,sans-serif;font-size:.85rem;text-decoration:none;transition:all .15s}.library-nav-auth:hover{border-color:var(--text);color:var(--text)}.page-footer-card{background:var(--bg-card);border:1px solid var(--border);border-radius:999px;align-items:stretch;gap:.25rem;width:100%;max-width:720px;margin:3rem auto 2rem;padding:.4rem;display:flex;box-shadow:0 1px 2px #0f172a0a,0 8px 24px #0f172a0f}.page-footer-card>.page-footer-side{flex:1 1 0;min-width:0}.page-footer-card>.page-footer-center{flex:none}[data-theme=dark] .page-footer-card{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#0f172ab3;border-color:#ffffff14;box-shadow:0 1px 2px #0003,0 8px 24px #00000059}.page-footer-side{align-items:center;min-width:0;display:flex}.page-footer-side-end{justify-content:flex-end}.page-footer-center{justify-content:center;align-items:center;padding:0 .5rem;display:flex;position:relative}.page-footer-center:before,.page-footer-center:after{content:"";background:var(--border);opacity:.7;width:1px;height:28px;margin:0 .4rem}[data-theme=dark] .page-footer-center:before,[data-theme=dark] .page-footer-center:after{background:#ffffff14}@media(max-width:720px){.page-footer-card{border-radius:22px;flex-wrap:wrap;justify-content:space-between;gap:.35rem;width:100%;padding:.5rem;display:flex}.page-footer-center{border-bottom:1px solid var(--border);order:-1;width:100%;padding:.35rem 0 .6rem}.page-footer-center:before,.page-footer-center:after{display:none}[data-theme=dark] .page-footer-center{border-bottom-color:#ffffff14}.page-nav-title{max-width:120px}}.mark-read-btn,.mark-read-done{white-space:nowrap;border-radius:999px;align-items:center;gap:.45rem;padding:.5rem .9rem;font-family:Tajawal,sans-serif;font-size:.85rem;font-weight:600;line-height:1;transition:all .2s;display:inline-flex}.mark-read-btn{color:var(--teal);border:1px dashed var(--teal-mid);cursor:pointer;background:0 0}.mark-read-btn:hover{background:var(--teal-light);border-style:solid;border-color:var(--teal)}.mark-read-done{color:var(--teal);background:var(--teal-light);border:1px solid #0000}.mark-read-icon{color:#fff;background:currentColor;border-radius:50%;justify-content:center;align-items:center;width:18px;height:18px;display:inline-flex}.mark-read-done .mark-read-icon{background:var(--teal)}.mark-read-btn:hover .mark-read-icon{background:var(--teal);color:#fff}.mark-read-btn .mark-read-icon{color:var(--teal);background:0 0;border:1.5px solid}[data-theme=dark] .mark-read-btn{color:#5eead4;border-color:#5eead44d}[data-theme=dark] .mark-read-btn:hover{background:#5eead414;border-color:#5eead4}[data-theme=dark] .mark-read-done{color:#5eead4;background:#5eead41a}[data-theme=dark] .mark-read-done .mark-read-icon{color:#042b3a;background:#5eead4}[data-theme=dark] .mark-read-btn .mark-read-icon{color:#5eead4}[data-theme=dark] .mark-read-btn:hover .mark-read-icon{color:#042b3a;background:#5eead4}@media(max-width:720px){.mark-read-text{display:none}.mark-read-btn,.mark-read-done{padding:.5rem .6rem}}.site-logo-link{text-decoration:none}.site-logo{color:#fff;font-family:Tajawal,sans-serif;font-size:1.4rem;font-weight:700}.back-to-library{color:#fffc;font-family:Tajawal,sans-serif;font-size:.85rem;text-decoration:none;transition:color .15s}.back-to-library:hover{color:#fff}.library-container{max-width:1100px;margin:0 auto;padding:3rem 2rem 4rem}.library-loading{text-align:center;color:var(--text-soft);padding:3rem;font-size:1rem}.skel-line,.skel-cover,.skel-btn{background:linear-gradient(90deg,var(--bg-soft) 25%,var(--border) 37%,var(--bg-soft) 63%);background-size:400% 100%;border-radius:8px;animation:1.4s infinite skelShimmer}@keyframes skelShimmer{0%{background-position:100% 0}to{background-position:0 0}}.skel-title{width:65%;height:3.2rem;margin-bottom:.4rem}.skel-sub{width:40%;height:1.6rem}.skel-text{width:95%;height:1.3rem}.skel-text-short{width:70%;height:1.3rem}.skel-btn{border-radius:100px;width:200px;height:3rem;margin-top:.8rem}.skel-cover-hero{aspect-ratio:2/3;border-radius:0 12px 12px 4px;width:100%;max-width:380px;margin:0 auto}.skel-card{gap:1.2rem;padding:1rem;display:flex}.skel-cover{aspect-ratio:2/3;border-radius:0 12px 12px 4px;flex-shrink:0;width:100px}.skel-card-body{flex-direction:column;flex:1;justify-content:center;gap:.6rem;display:flex}.skel-tag{width:30%;height:1rem}.skel-ctitle{width:75%;height:1.4rem}.skel-cauthor{width:50%;height:1rem}.library-empty{text-align:center;color:var(--text-soft);padding:3rem}.hero-section{background:var(--bg-card);border-bottom:1px solid var(--border);padding:3rem 0 5rem;position:relative;overflow:hidden}[data-theme=dark] .hero-section{background:#020617}.hero-bg-glow{background:radial-gradient(circle,var(--teal-light) 0%,transparent 70%);pointer-events:none;opacity:.5;border-radius:50%;width:800px;height:800px;position:absolute;top:0;right:0;transform:translate(33%,-50%)}[data-theme=dark] .hero-bg-glow{opacity:1;background:radial-gradient(circle,#06b6d414,#0000 70%)}.hero-container{z-index:1;max-width:1100px;margin:0 auto;padding:0 2rem;position:relative}.hero-editorial-badge{align-items:center;gap:.6rem;margin-bottom:2rem;display:flex}.hero-badge-tag{color:var(--teal);background:var(--teal-light);border:1px solid var(--teal);border-color:var(--teal);border-radius:100px;padding:.25rem .8rem;font-size:.82rem;font-weight:600}@supports (color:color-mix(in lab,red,red)){.hero-badge-tag{border-color:color-mix(in srgb,var(--teal) 30%,transparent)}}.hero-badge-line{background:var(--border);width:2rem;height:1px}.hero-badge-text{color:var(--teal);letter-spacing:.03em;font-size:.82rem;font-weight:500}.hero-grid{grid-template-columns:1fr 380px;align-items:center;gap:4rem;display:grid}.hero-content{flex-direction:column;gap:1.5rem;display:flex}.hero-title{color:var(--text);margin:0;font-family:Tajawal,sans-serif;font-size:3.5rem;font-weight:800;line-height:1.15}.hero-author{color:var(--text-soft);margin:0;font-family:Tajawal,sans-serif;font-size:1.5rem;font-weight:500}.hero-desc-wrap{border-right:4px solid var(--teal);padding-right:1.2rem;position:relative}.hero-desc{color:var(--text-mid);margin:0;font-family:Tajawal,sans-serif;font-size:1.2rem;font-weight:300;line-height:1.9}.hero-meta{color:var(--text-soft);flex-wrap:wrap;align-items:center;gap:1rem;font-size:.9rem;display:flex}.hero-meta-item{align-items:center;gap:.4rem;display:flex}.hero-meta-item svg{color:var(--teal);flex-shrink:0}.hero-meta-dot{background:var(--border);border-radius:50%;width:5px;height:5px}.hero-actions{flex-wrap:wrap;gap:1rem;padding-top:.5rem;display:flex}.hero-btn-primary{background:var(--teal);color:#fff;box-shadow:0 4px 16px var(--teal);border-radius:100px;align-items:center;gap:.5rem;padding:.9rem 2.5rem;font-family:Tajawal,sans-serif;font-size:1.1rem;font-weight:600;text-decoration:none;transition:all .2s;display:inline-flex}@supports (color:color-mix(in lab,red,red)){.hero-btn-primary{box-shadow:0 4px 16px color-mix(in srgb,var(--teal) 25%,transparent)}}.hero-btn-primary:hover{filter:brightness(1.1);box-shadow:0 6px 24px var(--teal);transform:translateY(-1px)}@supports (color:color-mix(in lab,red,red)){.hero-btn-primary:hover{box-shadow:0 6px 24px color-mix(in srgb,var(--teal) 35%,transparent)}}[data-theme=dark] .hero-btn-primary{box-shadow:0 0 20px #0891b24d}[data-theme=dark] .hero-btn-primary:hover{box-shadow:0 0 30px #0891b266}.hero-cover-side{position:relative}.book-cover-wrap{border-radius:0 12px 12px 4px;position:relative;overflow:hidden;box-shadow:0 8px 32px #0003}.book-cover-hero{aspect-ratio:2/3;width:100%;max-width:380px;margin:0 auto;transition:transform .5s}.hero-cover-side:hover .book-cover-hero{transform:translateY(-4px)}.book-cover-sm{aspect-ratio:2/3;width:100%}.book-cover-img{object-fit:cover;width:100%;height:100%}.book-cover-proc{position:relative}.book-cover-pattern{opacity:.1;background-image:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");position:absolute;inset:0}.book-cover-content{text-align:center;color:#fff;flex-direction:column;justify-content:center;align-items:center;gap:.8rem;padding:2rem;display:flex;position:absolute;inset:0}.book-cover-icon{opacity:.8;width:48px;height:48px;margin-bottom:.5rem}.book-cover-title{text-shadow:0 2px 8px #0000004d;margin:0;font-family:Tajawal,sans-serif;font-size:1.5rem;font-weight:700}.book-cover-hero .book-cover-title{font-size:3rem}.book-cover-divider{background:#ffffff4d;width:3rem;height:2px}.book-cover-author{color:#fffc;margin:0;font-family:Tajawal,sans-serif;font-size:1.1rem}.book-cover-spine{mix-blend-mode:overlay;background:linear-gradient(270deg,#fff3,#0000);width:3px;position:absolute;top:0;bottom:0;right:0}.book-cover-badge{color:#fff;background:#b8860be6;border-radius:4px;padding:.2rem .6rem;font-family:Tajawal,sans-serif;font-size:.7rem;font-weight:700;position:absolute;top:.6rem;right:.6rem}.library-grid-section{padding-top:3.5rem}.library-grid-header{justify-content:space-between;align-items:flex-end;margin-bottom:2rem;display:flex}.library-grid-title{color:var(--text);margin:0 0 .3rem;font-family:Tajawal,sans-serif;font-size:1.6rem;font-weight:700}.library-grid-subtitle{color:var(--text-soft);margin:0;font-size:.9rem}.library-editorial-grid{grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.5rem;display:grid}.lib-card{color:inherit;cursor:pointer;border:1px solid #0000;border-radius:16px;gap:1.2rem;padding:1rem;text-decoration:none;transition:all .3s;display:flex}.lib-card:hover{background:var(--bg-card);border-color:var(--border);box-shadow:0 8px 32px #00000014}.lib-card-cover{flex-shrink:0;width:100px}.lib-card:hover .book-cover-wrap{transform:translateY(-2px);box-shadow:0 12px 32px #0003}.lib-card-info{flex-direction:column;justify-content:center;min-width:0;padding:.3rem 0;display:flex}.lib-card-tag{color:var(--text-soft);background:var(--bg-soft);border-radius:4px;align-self:flex-start;margin-bottom:.5rem;padding:.15rem .6rem;font-size:.72rem;font-weight:500}.lib-card-title{color:var(--text);margin:0 0 .2rem;font-family:Tajawal,sans-serif;font-size:1.15rem;font-weight:700;transition:color .2s}.lib-card:hover .lib-card-title{color:var(--teal)}.lib-card-author{color:var(--text-soft);margin:0 0 .6rem;font-size:.85rem}.lib-card-meta{color:var(--text-soft);align-items:center;gap:.4rem;margin-top:auto;font-size:.75rem;display:flex}.lib-card-meta svg{flex-shrink:0}.lib-card-dot{background:var(--border);border-radius:50%;width:4px;height:4px}.lib-card-draft{color:#b8860b;font-weight:600}.books-grid{grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.5rem;display:grid}.search-results-label{color:var(--text-soft);text-align:right;margin-bottom:1.5rem;font-size:.9rem}@media(max-width:768px){.library-nav{height:56px;padding:0 1rem}.library-container{padding:2rem 1rem 3rem}.hero-section{padding:2rem 0 3rem}.hero-grid{grid-template-columns:1fr;gap:2rem}.hero-cover-side{order:-1}.book-cover-hero{max-width:240px}.hero-title{font-size:2.2rem}.hero-author{font-size:1.15rem}.hero-desc{font-size:1rem}.hero-btn-primary{justify-content:center;width:100%}.library-editorial-grid,.books-grid{grid-template-columns:1fr}.user-menu-name,.user-menu-trigger svg:last-child{display:none}.user-menu-trigger{border-radius:50%;padding:.2rem}.nav-signin-btn span,.nav-signin-btn{padding:.35rem .7rem;font-size:.8rem}.nav-search{min-width:0;max-width:180px;padding:.35rem .7rem}.nav-search-input{font-size:.82rem}}.reader-incomplete-banner{background:var(--blue-faint);color:var(--accent);text-align:center;border-bottom:1px solid var(--border);padding:.6rem 1rem;font-family:Tajawal,sans-serif;font-size:.85rem;font-weight:700}.sidebar-draft-sections{margin-top:1rem;padding-top:.5rem}.sidebar-draft-divider{color:var(--accent);letter-spacing:.08em;border-top:1px solid var(--border);padding:.5rem 1.2rem .3rem;font-size:.74rem;font-weight:700}.sidebar-draft-item{color:var(--text-soft);align-items:center;gap:.5rem;padding:.4rem 1.2rem;font-size:.82rem;font-style:italic;display:flex}.sidebar-draft-lock{font-size:.7rem;font-style:normal}.theme-toggle{background:var(--blue-faint);border:1px solid var(--border);cursor:pointer;border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:36px;height:36px;font-size:1.1rem;transition:all .2s;display:flex}.theme-toggle:hover{background:var(--blue-light);border-color:var(--text-soft)}.main-content-inner{position:relative}.reader-physical-page{color:#0e7f6e;letter-spacing:.01em;z-index:2;background:#0e7f6e14;border:1px solid #0e7f6e40;border-radius:20px;padding:.2rem .8rem;font-family:Tajawal,sans-serif;font-size:.75rem;font-weight:700;position:absolute;top:2.5rem;left:3rem}@media(max-width:700px){.reader-physical-page{margin:0 0 1rem;display:inline-block;position:static}}[data-theme=dark] .reader-physical-page{color:#5eead4;background:#22d3ee1a;border-color:#22d3ee4d}.sidebar-attachments{background:#0e7f6e0d;border:1px solid #0e7f6e26;border-radius:10px;margin:0 1rem 1rem;padding:.85rem}.sidebar-attachments-title{color:#0e7f6e;align-items:center;gap:.45rem;margin-bottom:.65rem;font-size:.82rem;font-weight:700;display:flex}.sidebar-attachments-count{color:#fff;background:#0e7f6e;border-radius:999px;margin-inline-start:auto;padding:.1rem .45rem;font-size:.7rem}.sidebar-attachments-list{flex-direction:column;gap:.4rem;margin:0;padding:0;list-style:none;display:flex}.sidebar-attachment{color:inherit;background:#fff;border:1px solid #e2e8f0;border-radius:8px;align-items:center;gap:.6rem;padding:.55rem .65rem;text-decoration:none;transition:all .15s;display:flex}.sidebar-attachment:hover{background:#f0fdfa;border-color:#0e7f6e;transform:translateY(-1px);box-shadow:0 2px 6px #0e7f6e1a}.sidebar-attachment-icon{flex-shrink:0;font-size:1.15rem}.sidebar-attachment-body{flex-direction:column;flex:1;gap:.1rem;min-width:0;display:flex}.sidebar-attachment-title{color:#0f172a;white-space:nowrap;text-overflow:ellipsis;font-size:.82rem;font-weight:600;overflow:hidden}.sidebar-attachment-size{color:#64748b;font-size:.7rem}.sidebar-attachment-arrow{color:#94a3b8;flex-shrink:0}.sidebar-attachment:hover .sidebar-attachment-arrow{color:#0e7f6e}[data-theme=dark] .sidebar-attachments{background:#22d3ee0d;border-color:#22d3ee33}[data-theme=dark] .sidebar-attachments-title{color:#5eead4}[data-theme=dark] .sidebar-attachments-count{color:#042b3a;background:#22d3ee}[data-theme=dark] .sidebar-attachment{background:#0f172a;border-color:#1e293b}[data-theme=dark] .sidebar-attachment:hover{background:#042b3a;border-color:#22d3ee;box-shadow:0 2px 6px #22d3ee26}[data-theme=dark] .sidebar-attachment-title{color:#f1f5f9}[data-theme=dark] .sidebar-attachment-size{color:#94a3b8}[data-theme=dark] .sidebar-attachment-arrow{color:#475569}[data-theme=dark] .sidebar-attachment:hover .sidebar-attachment-arrow{color:#22d3ee}.fn-body{display:none}.fn-ref{cursor:pointer;color:var(--blue);vertical-align:super;-webkit-user-select:none;user-select:none;padding:0 .15em;font-size:.68em;font-weight:700;line-height:0}.fn-ref:hover{text-decoration:underline}.fn-ref:focus-visible{outline:2px solid var(--blue);border-radius:3px}.fn-list-wrap{border-top:1px solid var(--border);margin-top:2.2rem;padding-top:1rem}.fn-list-title{color:var(--blue);margin:0 0 .7rem;font-size:.95rem;font-weight:700}.fn-list{flex-direction:column;gap:.55rem;margin:0;padding:0;list-style:none;display:flex}.fn-list li{color:var(--text-mid);align-items:flex-start;gap:.5rem;font-size:.92rem;line-height:1.9;display:flex}.fn-list-num{background:var(--blue-light);min-width:1.7em;height:1.7em;color:var(--blue);cursor:pointer;border:none;border-radius:50%;flex-shrink:0;font-family:inherit;font-size:.85em;font-weight:700}.fn-list-num:hover{background:var(--blue);color:#fff}.fn-list-body{flex:1}.fn-sheet-overlay{z-index:900;background:#0000004d;position:fixed;inset:0}.fn-sheet{background:var(--bg-card);width:100%;max-width:580px;color:var(--text);border:1px solid var(--border);z-index:901;direction:rtl;border-bottom:none;border-radius:16px 16px 0 0;padding:1rem 1.2rem 1.5rem;animation:.18s fnSheetUp;position:fixed;bottom:0;left:50%;transform:translate(-50%);box-shadow:0 -10px 36px #00000038}@keyframes fnSheetUp{0%{transform:translate(-50%,100%)}to{transform:translate(-50%)}}.fn-sheet-head{justify-content:space-between;align-items:center;margin-bottom:.6rem;display:flex}.fn-sheet-num{color:var(--blue);font-weight:700}.fn-sheet-close{cursor:pointer;color:var(--text-soft);background:0 0;border:none;border-radius:6px;justify-content:center;align-items:center;padding:.2rem .4rem;display:inline-flex}.fn-sheet-close:hover{color:var(--text);background:#0f172a0d}[data-theme=dark] .fn-sheet-close:hover{background:#ffffff0f}.fn-sheet-body{color:var(--text);max-height:42vh;font-size:1rem;line-height:2;overflow-y:auto}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-ease{syntax:"*";inherits:false}
