.app-footer{background:#1e3a5f;color:#e5e7eb;padding:2rem 1rem;margin-top:auto;border-top:3px solid #2563eb;flex-shrink:0}.footer-container{max-width:1200px;margin:0 auto;text-align:center}.footer-disclaimer{margin-bottom:1.5rem;font-size:.85rem;line-height:1.6;color:#d1d5db}.footer-disclaimer p{margin:0}.footer-links{display:flex;justify-content:center;align-items:center;gap:1rem;margin-bottom:1rem;flex-wrap:wrap}.footer-link{color:#93c5fd;text-decoration:none;font-size:.9rem;transition:color .2s}.footer-link:hover{color:#bfdbfe;text-decoration:underline}.footer-separator{color:#6b7280}.footer-copyright{font-size:.85rem;color:#9ca3af;padding-top:1rem;border-top:1px solid #374151}.night-mode .app-footer{background:#0f1419;border-top-color:#60a5fa}.book-selector{min-height:100vh;background:linear-gradient(135deg,#3b82f6,#8b5cf6);padding:40px 20px}.book-selector-container{max-width:1200px;margin:0 auto}.book-selector-header{text-align:center;color:#fff;margin-bottom:50px}.book-selector-header h1{font-size:48px;font-weight:700;margin-bottom:10px}.book-selector-header p{font-size:18px;opacity:.9}.book-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:25px;margin-bottom:40px}.book-card{background:#fff;border-radius:16px;padding:30px;box-shadow:0 10px 30px #00000026;transition:all .3s;cursor:pointer;position:relative;overflow:hidden}.book-card.card-1{transform:rotate(-.5deg)}.book-card.card-2{transform:rotate(.3deg)}.book-card.card-3{transform:rotate(-.2deg)}.book-card.card-4{transform:rotate(.4deg)}.book-card:hover:not(.disabled){transform:translateY(-8px) rotate(0)!important;box-shadow:0 15px 40px #00000040}.book-card.disabled{opacity:.6;cursor:not-allowed}.book-badge{position:absolute;top:15px;right:15px;background:#10b981;color:#fff;padding:4px 12px;border-radius:12px;font-size:11px;font-weight:600;text-transform:uppercase}.book-badge.coming-soon{background:#94a3b8}.book-icon{font-size:48px;margin-bottom:15px}.book-card h2{font-size:22px;color:#1e293b;margin-bottom:8px}.book-code{color:#64748b;font-size:13px;font-family:Courier New,monospace;margin-bottom:15px}.book-description{color:#475569;font-size:14px;line-height:1.5;margin-bottom:20px}.book-stats{display:flex;gap:20px;margin-top:20px;padding-top:20px;border-top:1px solid #e2e8f0}.book-stat{flex:1;text-align:center}.book-stat-value{font-size:24px;font-weight:700;color:#2563eb}.book-stat-label{font-size:11px;color:#64748b;text-transform:uppercase;margin-top:4px}.recent-books{background:#ffffff1a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:16px;padding:25px;color:#fff}.recent-books h3{font-size:18px;margin-bottom:15px;display:flex;align-items:center;gap:8px}.recent-item{background:#ffffff1a;border-radius:8px;padding:12px;margin-bottom:10px;display:flex;justify-content:space-between;align-items:center;cursor:pointer;transition:all .2s}.recent-item:hover{background:#fff3}.recent-item-info{display:flex;align-items:center;gap:12px}.recent-item-info>span{font-size:24px}.recent-item-page{font-size:12px;opacity:.8}.recent-time{opacity:.7;font-size:12px}.bookmarks-section{background:#ffffff1a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:16px;padding:25px;color:#fff;margin-bottom:20px}.bookmarks-section h3{font-size:18px;margin-bottom:15px;display:flex;align-items:center;gap:8px}.bookmarks-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}.bookmark-item{background:#ffffff1a;border-radius:8px;padding:12px;display:flex;align-items:center;gap:10px;cursor:pointer;transition:all .2s}.bookmark-item:hover{background:#fff3}.bookmark-icon{font-size:20px}.bookmark-page{font-size:14px;font-weight:600}.bookmark-book{font-size:11px;opacity:.8}.chapter-sidebar{width:260px;background:#fff;border-right:1px solid #e5e7eb;display:flex;flex-direction:column;transition:all .3s ease;height:100%;overflow:hidden;flex-shrink:0}.chapter-sidebar.collapsed{width:0;padding:0;opacity:0}.sidebar-header{padding:.8rem 1.2rem;background:#2563eb;border-bottom:2px solid #1d4ed8;display:flex;align-items:center;gap:.6rem;flex-shrink:0}.sidebar-header h3{font-size:.85rem;text-transform:uppercase;color:#fff;letter-spacing:.5px;margin:0;flex:1;font-weight:700}.sidebar-close-btn{background:#ffffff26;border:1px solid rgba(255,255,255,.3);border-radius:4px;cursor:pointer;font-size:15px;padding:3px 7px;color:#fff;line-height:1;transition:all .2s;flex-shrink:0}.sidebar-close-btn:hover{background:#ffffff47}.chapter-list{overflow-y:auto;flex:1;padding-bottom:2rem}.chapter-item{padding:.7rem 1.2rem;cursor:pointer;transition:all .2s;border-left:3px solid transparent}.chapter-item:hover{background:#f9fafb;border-left-color:#93c5fd}.chapter-item.active{background:#eff6ff;border-left-color:#2563eb}.chapter-number{font-size:.75rem;color:#2563eb;font-weight:600;margin-bottom:.2rem}.chapter-name{font-size:.9rem;color:#1f2937}.notes-sidebar{width:300px;background:#fafafa;border-left:1px solid #e5e7eb;padding:0;display:flex;flex-direction:column;transition:all .3s ease;height:100%;overflow:hidden;flex-shrink:0}.notes-sidebar.collapsed{width:0;padding:0;opacity:0}.notes-sidebar-inner{flex:1;overflow-y:auto;padding:1.2rem}.notes-header{display:flex;align-items:center;gap:.6rem;padding:.8rem 1.2rem;background:#2563eb;border-bottom:2px solid #1d4ed8;flex-shrink:0}.notes-header h3{font-size:.95rem;color:#fff;margin:0;font-weight:600;flex:1}.notes-close-btn{background:#ffffff26;border:1px solid rgba(255,255,255,.3);border-radius:4px;cursor:pointer;font-size:15px;padding:3px 7px;color:#fff;line-height:1;transition:all .2s;flex-shrink:0}.notes-close-btn:hover{background:#ffffff47}.note-input{width:100%;min-height:120px;padding:.8rem;border:1px solid #d1d5db;border-radius:6px;font-size:.9rem;resize:vertical;font-family:inherit}.linked-text-preview{background:#eff6ff;border:1px solid #bfdbfe;border-radius:6px;padding:.8rem;margin-top:.8rem;font-size:.85rem}.linked-text-header{display:flex;align-items:center;gap:.5rem;font-weight:600;color:#1e40af;margin-bottom:.5rem}.linked-icon{font-size:1rem}.clear-link-btn{margin-left:auto;background:none;border:none;color:#6b7280;cursor:pointer;padding:.2rem .4rem;border-radius:4px;transition:all .2s}.clear-link-btn:hover{background:#fee2e2;color:#dc2626}.linked-text-content{color:#374151;font-style:italic;line-height:1.4}.link-text-btn{width:100%;background:#eff6ff;border:1px solid #bfdbfe;color:#1e40af;padding:.6rem;border-radius:6px;cursor:pointer;font-size:.85rem;font-weight:500;margin-top:.8rem;transition:all .2s}.link-text-btn:hover{background:#dbeafe;border-color:#93c5fd}.tag-input-wrapper{margin-top:.8rem;display:flex;gap:.5rem}.tag-input{flex:1;padding:.5rem;border:1px solid #d1d5db;border-radius:4px;font-size:.85rem}.add-tag-btn{background:#f3f4f6;border:1px solid #d1d5db;padding:.5rem .8rem;border-radius:4px;cursor:pointer;font-size:.85rem;transition:background .2s}.add-tag-btn:hover{background:#e5e7eb}.note-tags-display{display:flex;gap:.4rem;flex-wrap:wrap;margin-top:.5rem}.tag-badge{background:#dbeafe;color:#2563eb;padding:4px 10px;border-radius:12px;font-size:12px;display:inline-flex;align-items:center;gap:4px;cursor:pointer;transition:all .2s}.tag-badge:hover{background:#bfdbfe}.tag-badge.fuel-system{background:#fef3c7;color:#d97706}.tag-badge.instruments{background:#ddd6fe;color:#7c3aed}.tag-badge.weather{background:#d1fae5;color:#059669}.tag-badge.checkride{background:#fce7f3;color:#db2777}.tag-badge.systems{background:#e0e7ff;color:#4f46e5}.tag-badge.performance{background:#ffedd5;color:#ea580c}.remove-tag{cursor:pointer;opacity:.6;font-size:14px;line-height:1}.remove-tag:hover{opacity:1}.save-note-btn{width:100%;background:#2563eb;color:#fff;border:none;padding:.7rem;border-radius:6px;cursor:pointer;font-size:.9rem;margin-top:.8rem;transition:background .2s}.save-note-btn:hover{background:#1d4ed8}.recent-notes{margin-top:2rem}.recent-notes h4{font-size:.85rem;color:#6b7280;margin-bottom:.8rem;text-transform:uppercase}.recent-note-item{background:#f9fafb;padding:.7rem;border-radius:6px;margin-bottom:.6rem;font-size:.85rem;border-left:3px solid #2563eb}.recent-note-page{font-size:.75rem;color:#6b7280;margin-bottom:.3rem}.note-linked-indicator{font-size:.7rem;color:#1e40af;background:#eff6ff;padding:.2rem .4rem;border-radius:4px;margin-bottom:.3rem;display:inline-block}.recent-note-text{color:#374151}.previous-tags{margin-top:.5rem}.previous-tags-label{font-size:.72rem;color:#6b7280;display:block;margin-bottom:.35rem}.previous-tags-chips{display:flex;flex-wrap:wrap;gap:.3rem}.prev-tag-chip{font-size:.72rem;padding:.2rem .55rem;border-radius:999px;border:1px solid #d1d5db;background:#f9fafb;color:#374151;cursor:pointer;transition:background .15s,border-color .15s}.prev-tag-chip:hover:not(:disabled){background:#e0f2fe;border-color:#7dd3fc;color:#0369a1}.prev-tag-chip.selected,.prev-tag-chip:disabled{background:#dbeafe;border-color:#93c5fd;color:#1d4ed8;opacity:.6;cursor:default}.night-mode .previous-tags-label{color:#9ca3af}.night-mode .prev-tag-chip{background:#1f2937;border-color:#374151;color:#d1d5db}.night-mode .prev-tag-chip:hover:not(:disabled){background:#1e3a5f;border-color:#3b82f6;color:#93c5fd}.night-mode .prev-tag-chip.selected{background:#1e3a5f;border-color:#3b82f6;color:#93c5fd}.reader-header{background:#1e3a5f;color:#fff;padding:.6rem 1rem;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;box-shadow:0 2px 6px #0000001a;position:sticky;top:0;z-index:100;gap:.5rem}.reader-left{display:flex;align-items:center;gap:.4rem;justify-content:flex-start}.reader-controls{display:flex;gap:.4rem;align-items:center;justify-content:flex-end;flex-wrap:nowrap}.reader-title{font-size:.9rem;font-weight:600;white-space:nowrap;text-align:center;color:#fff;overflow:hidden;text-overflow:ellipsis;padding:0 .5rem}.reader-controls{display:flex;gap:.5rem;align-items:center;justify-content:flex-end;flex-wrap:nowrap}.header-icon-btn{background:#ffffff1a;border:none;color:#fff;padding:.32rem .6rem;border-radius:6px;cursor:pointer;font-size:.82rem;transition:background .2s;white-space:nowrap;flex-shrink:0}.header-icon-btn:hover{background:#ffffff38}.library-btn,.settings-btn{background:#ffffff26;border:1px solid rgba(255,255,255,.25)}.reader-header.night-mode{background:#0f172a;border-bottom:1px solid #1e3a5f}.page-navigation{display:flex;justify-content:space-between;align-items:center;padding:1.5rem 3rem;background:#fff;border-top:1px solid #e5e7eb;position:sticky;bottom:0;gap:2rem}.nav-btn{background:#2563eb;color:#fff;border:none;padding:.6rem 1.2rem;border-radius:6px;cursor:pointer;font-size:.95rem;display:flex;align-items:center;gap:.4rem;transition:background .2s}.nav-btn:hover:not(:disabled){background:#1d4ed8}.nav-btn:disabled{background:#d1d5db;cursor:not-allowed}.page-jump{display:flex;align-items:center;gap:.6rem}.jump-label,.jump-total{font-size:.9rem;color:#6b7280}.page-jump input{width:60px;padding:.4rem;border:1px solid #d1d5db;border-radius:4px;text-align:center;font-size:.9rem}.bookmark-btn{background:#fff;border:2px solid #f59e0b;color:#f59e0b;padding:.6rem 1.2rem;border-radius:6px;cursor:pointer;font-size:.95rem;font-weight:600;transition:all .2s}.bookmark-btn:hover{background:#fffbeb}.bookmark-btn.bookmarked{background:#f59e0b;color:#fff}.progress-bar{width:200px;height:6px;background:#e5e7eb;border-radius:3px;overflow:hidden}.progress-fill{height:100%;background:#2563eb;transition:width .3s}.acs-modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#0009;display:flex;align-items:center;justify-content:center;z-index:2000;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.acs-modal{background:#fff;border-radius:12px;max-width:600px;width:90%;max-height:80vh;overflow-y:auto;box-shadow:0 20px 60px #0000004d}.acs-modal-header{padding:1.5rem;border-bottom:2px solid #e5e7eb;display:flex;justify-content:space-between;align-items:center;background:#f9fafb;border-radius:12px 12px 0 0}.acs-modal-code{font-size:1.3rem;font-weight:700;color:#1e3a5f}.acs-modal-close{background:none;border:none;font-size:2rem;color:#6b7280;cursor:pointer;line-height:1;padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:6px;transition:all .2s}.acs-modal-close:hover{background:#e5e7eb;color:#1f2937}.acs-modal-content{padding:1.5rem}.acs-modal-section{margin-bottom:1.5rem}.acs-modal-section:last-child{margin-bottom:0}.acs-modal-label{font-size:.85rem;font-weight:600;color:#6b7280;text-transform:uppercase;margin-bottom:.5rem;letter-spacing:.5px}.acs-modal-value{font-size:1rem;color:#1f2937;line-height:1.6}.acs-objectives{list-style:none;padding:0;margin:0}.acs-objectives li{padding:.6rem 0 .6rem 1.5rem;position:relative;color:#374151;line-height:1.6}.acs-objectives li:before{content:"✓";position:absolute;left:0;color:#10b981;font-weight:700}.acs-references{display:flex;gap:.5rem;flex-wrap:wrap}.acs-reference{background:#eff6ff;color:#1e40af;padding:.4rem .8rem;border-radius:6px;font-size:.9rem;font-family:Courier New,monospace;border:1px solid #bfdbfe}.acs-modal-footer{padding:1rem 1.5rem;border-top:1px solid #e5e7eb;display:flex;justify-content:flex-end;background:#f9fafb;border-radius:0 0 12px 12px}.acs-modal-btn{background:#2563eb;color:#fff;border:none;padding:.6rem 1.5rem;border-radius:6px;cursor:pointer;font-size:1rem;font-weight:600;transition:background .2s}.acs-modal-btn:hover{background:#1d4ed8}.night-mode .acs-modal{background:#2d2d2d;color:#e5e5e5}.night-mode .acs-modal-header,.night-mode .acs-modal-footer{background:#1a1a1a;border-color:#404040}.night-mode .acs-modal-code{color:#93c5fd}.night-mode .acs-modal-value,.night-mode .acs-objectives li{color:#d1d5db}.night-mode .acs-modal-close{color:#9ca3af}.night-mode .acs-modal-close:hover{background:#374151;color:#e5e5e5}.night-mode .acs-reference{background:#1e3a5f;color:#93c5fd;border-color:#374151}.content-text{font-size:1.05rem;line-height:1.8;color:#374151;margin-bottom:1.2rem}.content-text h2{font-size:1.4rem;color:#1e3a5f;margin:2rem 0 1rem;font-weight:600}.content-text h3{font-size:1.15rem;color:#1f2937;margin:1.5rem 0 .8rem;font-weight:600}.content-text p{margin-bottom:1.2rem}.acs-badge{display:inline-flex;align-items:center;gap:.3rem;background:#dbeafe;color:#1d4ed8;padding:.25rem .6rem;border-radius:4px;font-size:.8rem;font-weight:600;margin-left:.5rem;cursor:pointer;transition:background .2s}.acs-badge:hover{background:#bfdbfe}.glossary-term{color:#2563eb;cursor:help;border-bottom:2px dotted #2563eb;position:relative;transition:all .2s}.glossary-term:hover{background:#2563eb0d;border-bottom-color:#1d4ed8}.glossary-tooltip{position:absolute;background:#fff;border:2px solid #3b82f6;border-radius:8px;padding:12px 16px;box-shadow:0 4px 12px #00000026;z-index:1000;max-width:400px;min-width:250px;pointer-events:none}.glossary-tooltip-term{font-weight:700;color:#1e3a5f;font-size:.95rem;margin-bottom:6px;border-bottom:1px solid #e5e7eb;padding-bottom:4px}.glossary-tooltip-definition{color:#374151;font-size:.9rem;line-height:1.5}.highlight-menu{position:absolute;background:#fff;border:2px solid #e5e7eb;border-radius:8px;padding:12px;box-shadow:0 4px 12px #00000026;z-index:1000;min-width:200px}.highlight-menu-title{font-size:.85rem;font-weight:600;color:#6b7280;margin-bottom:8px;text-transform:uppercase}.highlight-colors{display:flex;gap:8px;margin-bottom:8px}.highlight-color-btn{width:32px;height:32px;border:2px solid #d1d5db;border-radius:6px;cursor:pointer;transition:all .2s}.highlight-color-btn:hover{transform:scale(1.1);border-color:#2563eb}.highlight-remove{width:100%;background:#fef2f2;border:1px solid #fecaca;color:#dc2626;padding:6px;border-radius:4px;cursor:pointer;font-size:.85rem;transition:background .2s}.highlight-remove:hover{background:#fee2e2}.highlight-menu-divider{height:1px;background:#e5e7eb;margin:8px 0 6px}.highlight-menu-note-label{font-size:.7rem;font-weight:700;text-transform:uppercase;color:#9ca3af;letter-spacing:.5px;margin-bottom:4px}.highlight-create-note{width:100%;background:#eff6ff;border:1px solid #bfdbfe;color:#2563eb;padding:6px;border-radius:4px;cursor:pointer;font-size:.85rem;transition:background .2s}.highlight-create-note:hover{background:#dbeafe}.highlight-yellow{background:#fef3c7;border-radius:2px;display:inline}.highlight-green{background:#d1fae5;border-radius:2px;display:inline}.highlight-blue{background:#dbeafe;border-radius:2px;display:inline}.highlight-pink{background:#fce7f3;border-radius:2px;display:inline}.highlight-orange{background:#ffedd5;border-radius:2px;display:inline}.content-figure{margin:2rem 0;text-align:center}.content-figure figure{display:inline-block;max-width:100%;margin:0}.content-figure img{max-width:100%;height:auto;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 2px 8px #0000001a}.content-figure figcaption{margin-top:.8rem;font-size:.9rem;color:#6b7280;font-style:italic;text-align:left;padding:0 1rem}.content-figure figcaption strong{color:#1e3a5f;font-weight:600}.night-mode .content-text{color:#e5e5e5}.night-mode .content-text h2,.night-mode .content-text h3{color:#93c5fd}.night-mode .content-text p{color:#d1d5db}.night-mode .content-figure figcaption{color:#9ca3af}.night-mode .content-figure figcaption strong{color:#93c5fd}.night-mode .glossary-tooltip{background:#1f2937;border-color:#60a5fa}.night-mode .glossary-tooltip-term{color:#93c5fd;border-bottom-color:#374151}.night-mode .glossary-tooltip-definition{color:#d1d5db}.content-figure-inline{margin:1.5rem auto;text-align:center;max-width:100%}.content-figure-inline img{max-width:100%;max-height:420px;object-fit:contain;border-radius:4px;box-shadow:0 2px 8px #0000001f}.content-figure-inline figcaption{margin-top:.5rem;font-size:.88rem;color:#555;font-style:italic}.content-list{margin:.75rem 0 .75rem 1.5rem;line-height:1.7}.content-list li{margin-bottom:.35rem}.content-subheading{font-size:1rem;font-weight:600;color:#1e3a5f;margin:1rem 0 .4rem}.figure-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;min-height:140px;background:var(--bg-secondary, #f5f5f0);border:1.5px dashed var(--border-color, #ccc);border-radius:6px;color:var(--text-muted, #999);gap:8px}.figure-placeholder-icon{font-size:2rem;opacity:.4}.figure-placeholder-label{font-size:.8rem;font-style:italic;opacity:.6}.content-list .content-list,.content-list .content-list-numbered{margin-top:4px;margin-bottom:4px;padding-left:1.5rem}.content-list-numbered{list-style:decimal;padding-left:1.5rem}.content-list-numbered li{margin-bottom:2px}.reader-page{height:100vh;background:#fdfbf7;display:flex;flex-direction:column;overflow:hidden}.reader-loading{min-height:100vh;display:flex;align-items:center;justify-content:center;font-size:18px;color:#6b7280}.reader-container{display:flex;flex:1;overflow:hidden;position:relative;align-items:stretch;min-height:0}.content-area{flex:1;overflow-y:auto;min-height:0;display:flex;flex-direction:column}.content-area-inner{flex:1;padding:2rem 3rem;max-width:860px;width:100%;margin:0 auto;box-sizing:border-box}.content-area.expanded .content-area-inner{max-width:1100px}.page-header{margin-bottom:2rem;padding-bottom:1rem;border-bottom:2px solid #e5e7eb}.chapter-title{font-size:1.8rem;color:#1e3a5f;margin-bottom:.5rem;font-weight:700}.page-number{font-size:.95rem;color:#6b7280}.sidebar-rail{position:fixed;top:50%;transform:translateY(-50%);display:flex;flex-direction:row;align-items:center;gap:3px;z-index:200;opacity:0;pointer-events:none;transition:opacity .25s}.sidebar-rail.visible{opacity:1;pointer-events:all}.sidebar-rail.left{left:6px}.sidebar-rail.right{right:6px}.rail-arrow{width:26px;height:38px;background:#fff;border:1px solid #d1d5db;border-radius:6px;cursor:pointer;font-size:20px;line-height:1;color:#374151;display:flex;align-items:center;justify-content:center;transition:all .2s;box-shadow:0 1px 4px #0000001a;padding:0}.rail-arrow:hover:not(:disabled){background:#2563eb;color:#fff;border-color:#2563eb}.rail-arrow:disabled{opacity:.3;cursor:not-allowed}.rail-hamburger{width:30px;height:38px;background:#2563eb;border:none;border-radius:6px;cursor:pointer;font-size:15px;color:#fff;display:flex;align-items:center;justify-content:center;transition:all .2s;box-shadow:0 2px 6px #2563eb59}.rail-hamburger:hover{background:#1d4ed8;box-shadow:0 3px 8px #2563eb80}.content-top-nav{display:flex;align-items:center;justify-content:space-between;padding:.5rem 0 1rem;margin-bottom:.5rem;border-bottom:1px solid #e5e7eb}.content-nav-arrow{background:#f3f4f6;border:1px solid #d1d5db;border-radius:6px;padding:.35rem .8rem;font-size:.85rem;color:#374151;cursor:pointer;transition:all .2s}.content-nav-arrow:hover:not(:disabled){background:#2563eb;color:#fff;border-color:#2563eb}.content-nav-arrow:disabled{opacity:.35;cursor:not-allowed}.content-nav-label{font-size:.85rem;color:#6b7280;font-weight:500}body.night-mode{background:#1a1a1a;color:#e5e5e5}.reader-page.night-mode{background:#1a1a1a}.night-mode .content-area{background:#1a1a1a;color:#e5e5e5}.night-mode .chapter-title{color:#93c5fd}.night-mode .page-number{color:#9ca3af}.night-mode .content-text{color:#d1d5db}.night-mode .content-text h2{color:#93c5fd}.night-mode .content-text h3{color:#bfdbfe}.night-mode .sidebar-toggle{background:#2d2d2d;border-color:#404040;color:#e5e5e5}.night-mode .sidebar-toggle:hover{background:#3d3d3d;border-color:#4b5563}.night-mode .chapter-sidebar,.night-mode .notes-sidebar{background:#2d2d2d;border-color:#404040;color:#e5e5e5}.night-mode .chapter-item{color:#d1d5db}.night-mode .chapter-item:hover{background:#3d3d3d}.night-mode .chapter-item.active{background:#374151}.night-mode .note-input,.night-mode .tag-input{background:#374151;border-color:#4b5563;color:#e5e5e5}.night-mode .page-navigation{background:#2d2d2d;border-color:#404040}.night-mode .glossary-tooltip{background:#2d2d2d;border-color:#60a5fa;color:#e5e5e5}.night-mode .glossary-tooltip-term{color:#93c5fd;border-color:#4b5563}.night-mode .highlight-menu{background:#2d2d2d;border-color:#4b5563}.night-mode .highlight-menu-title{color:#9ca3af}.night-mode .glossary-term{border-bottom-color:#60a5fa}.night-mode .glossary-term:hover{background:#60a5fa1a}.night-mode .content-top-nav{border-bottom-color:#374151}.night-mode .content-nav-arrow{background:#374151;border-color:#4b5563;color:#d1d5db}.night-mode .content-nav-arrow:hover:not(:disabled){background:#2563eb;color:#fff}.night-mode .content-nav-label{color:#9ca3af}.night-mode .sidebar-open-btn{background:#2d2d2d;border-color:#404040;color:#e5e5e5}.night-mode .sidebar-close-btn,.night-mode .notes-close-btn{border-color:#4b5563;color:#9ca3af}.night-mode .sidebar-close-btn:hover,.night-mode .notes-close-btn:hover{background:#374151;border-color:#60a5fa;color:#60a5fa}.night-mode .chapter-list{background:#2d2d2d}.night-mode .chapter-number{color:#60a5fa}.night-mode .rail-arrow{background:#2d2d2d;border-color:#4b5563;color:#d1d5db}.night-mode .rail-arrow:hover:not(:disabled){background:#2563eb;color:#fff}.page-nav-bar{background:#1e3a5f;padding:.6rem 1rem;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:.5rem;box-shadow:0 2px 6px #0000001a;position:sticky;top:0;z-index:100}.page-nav-title{font-size:.9rem;font-weight:600;color:#fff;cursor:pointer;transition:opacity .2s;white-space:nowrap;text-align:center;overflow:hidden;text-overflow:ellipsis;padding:0 .5rem}.page-nav-title:hover{opacity:.9}.page-nav-left{display:flex;align-items:center;gap:.4rem;justify-content:flex-start}.page-nav-back{background:#ffffff1a;border:1px solid rgba(255,255,255,.2);color:#fff;padding:.32rem .6rem;border-radius:6px;cursor:pointer;font-size:.82rem;transition:background .2s;white-space:nowrap}.page-nav-back:hover{background:#ffffff38}.page-nav-home{background:#ffffff1f;border:1px solid rgba(255,255,255,.2);color:#fff;padding:.32rem .6rem;border-radius:6px;cursor:pointer;font-size:.82rem;font-weight:600;transition:background .2s;white-space:nowrap}.page-nav-home:hover{background:#ffffff38}.page-nav-links{display:flex;gap:.4rem;flex-wrap:nowrap;justify-content:flex-end}.page-nav-link{background:#ffffff14;border:1px solid rgba(255,255,255,.15);color:#ffffffd9;padding:.32rem .6rem;border-radius:6px;cursor:pointer;font-size:.82rem;transition:all .2s;white-space:nowrap}.page-nav-link:hover{background:#ffffff2e;color:#fff}.page-nav-link.active{background:#2563eb;border-color:#3b82f6;color:#fff}body.night-mode .page-nav-bar{background:#111827;border-bottom-color:#374151}.search-page{min-height:100vh;background:#f9fafb;display:flex;flex-direction:column}.search-container{max-width:860px;margin:0 auto;padding:2rem 2rem 4rem;flex:1;width:100%}.search-hero{text-align:center;margin-bottom:2rem}.search-title{font-size:2rem;font-weight:700;color:#1e3a5f;margin-bottom:.4rem}.search-subtitle{font-size:.95rem;color:#6b7280;margin-bottom:1.2rem}.search-input-wrapper{position:relative}.search-icon-left{position:absolute;left:1rem;top:50%;transform:translateY(-50%);font-size:1.1rem;pointer-events:none}.search-input{width:100%;padding:1rem 3rem 1rem 2.8rem;font-size:1.05rem;border:2px solid #d1d5db;border-radius:12px;background:#fff;box-shadow:0 2px 8px #0000000f;transition:border-color .2s,box-shadow .2s;box-sizing:border-box}.search-input:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1a}.clear-search{position:absolute;right:1rem;top:50%;transform:translateY(-50%);background:#e5e7eb;border:none;width:26px;height:26px;border-radius:50%;cursor:pointer;font-size:1.1rem;display:flex;align-items:center;justify-content:center;transition:background .2s;line-height:1}.clear-search:hover{background:#d1d5db}.search-empty-state{display:flex;flex-direction:column;gap:2rem}.search-section{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:1.3rem 1.5rem}.search-section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem}.search-section-header h3{font-size:.95rem;font-weight:700;color:#1e3a5f;margin:0}.search-clear-btn{background:none;border:none;font-size:.82rem;color:#6b7280;cursor:pointer;padding:0;transition:color .15s}.search-clear-btn:hover{color:#ef4444}.recent-searches-list{display:flex;flex-direction:column;gap:.3rem}.recent-search-item{display:flex;align-items:center;gap:.7rem;padding:.5rem .7rem;background:none;border:none;border-radius:6px;cursor:pointer;font-size:.9rem;color:#374151;text-align:left;transition:background .15s;width:100%}.recent-search-item:hover{background:#f3f4f6}.recent-icon{color:#9ca3af;font-size:.85rem}.popular-topics-grid{display:flex;flex-wrap:wrap;gap:.5rem}.popular-topic-pill{display:inline-flex;align-items:center;gap:.4rem;background:#f3f4f6;border:1px solid #e5e7eb;border-radius:20px;padding:.4rem .9rem;font-size:.85rem;color:#374151;cursor:pointer;transition:all .15s}.popular-topic-pill:hover{background:#eff6ff;border-color:#bfdbfe;color:#2563eb}.quick-categories-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.7rem}@media (max-width: 600px){.quick-categories-grid{grid-template-columns:repeat(2,1fr)}}.quick-category-card{display:flex;align-items:center;gap:.6rem;padding:.7rem 1rem;background:#f9fafb;border:1px solid #e5e7eb;border-radius:8px;cursor:pointer;transition:all .15s;text-align:left}.quick-category-card:hover{background:#eff6ff;border-color:#bfdbfe}.quick-category-icon{font-size:1.2rem}.quick-category-label{flex:1;font-size:.88rem;font-weight:600;color:#1e3a5f}.quick-category-arrow{font-size:.85rem;color:#9ca3af}.search-filters{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.2rem;gap:1rem;flex-wrap:wrap}.filter-chips{display:flex;gap:.5rem;flex-wrap:wrap}.filter-chip{background:#fff;border:2px solid #e5e7eb;padding:.4rem .9rem;border-radius:20px;cursor:pointer;font-size:.85rem;transition:all .2s}.filter-chip:hover{border-color:#2563eb}.filter-chip.active{background:#2563eb;color:#fff;border-color:#2563eb}.sort-select{padding:.4rem .8rem;border:2px solid #e5e7eb;border-radius:6px;background:#fff;cursor:pointer;font-size:.85rem}.results-list{display:flex;flex-direction:column;gap:.8rem}.result-card{background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:1.1rem 1.3rem;cursor:pointer;transition:all .2s}.result-card:hover{border-color:#2563eb;box-shadow:0 2px 10px #2563eb1a}.result-card-top{display:flex;align-items:center;gap:.7rem;margin-bottom:.4rem}.result-type-badge{padding:.2rem .6rem;border-radius:4px;font-size:.72rem;font-weight:700;text-transform:uppercase;flex-shrink:0}.result-breadcrumb{font-size:.8rem;color:#6b7280}.result-title{font-size:1rem;font-weight:600;color:#1e3a5f;margin-bottom:.35rem}.result-snippet{color:#4b5563;font-size:.88rem;line-height:1.6}.search-highlight{background:#fef3c7;color:#92400e;padding:.1rem .2rem;border-radius:2px;font-weight:500}.result-tags{display:flex;gap:.4rem;margin-top:.7rem;flex-wrap:wrap}.result-tag{background:#f3f4f6;color:#4b5563;padding:.2rem .6rem;border-radius:12px;font-size:.78rem}.no-results{text-align:center;padding:3rem 1rem}.no-results-icon{font-size:3rem;margin-bottom:1rem}.no-results p{font-size:1.05rem;color:#374151;margin-bottom:.5rem}.no-results-hint{color:#6b7280;font-size:.9rem;margin-bottom:1.5rem}.no-results-suggestions p{font-size:.9rem;color:#6b7280}.search-hint{text-align:center;color:#6b7280;padding:2rem;font-size:.95rem}.glossary-page{min-height:100vh;background:#f9fafb;display:flex;flex-direction:column}.glossary-header{background:#1e3a5f;color:#fff;padding:1.5rem 2rem;display:flex;align-items:center;gap:2rem;position:sticky;top:0;z-index:100;box-shadow:0 2px 8px #0000001a}.glossary-header h1{font-size:1.8rem;font-weight:600}.glossary-container{max-width:1000px;margin:0 auto;padding:2rem}.glossary-toolbar{display:flex;align-items:center;gap:1.5rem;margin-bottom:1.5rem;flex-wrap:wrap}.glossary-stats{text-align:center}.glossary-search{flex:1;min-width:300px;padding:.8rem 1rem;border:2px solid #e5e7eb;border-radius:6px;font-size:1rem}.glossary-search:focus{outline:none;border-color:#2563eb}.clear-filter{background:#f3f4f6;border:1px solid #e5e7eb;padding:.6rem 1.2rem;border-radius:6px;cursor:pointer;font-size:.9rem;transition:background .2s}.clear-filter:hover{background:#e5e7eb}.alphabet-nav{display:flex;gap:.4rem;flex-wrap:wrap;background:#fff;padding:1rem;border-radius:8px;border:1px solid #e5e7eb;margin-bottom:2rem}.letter-btn{background:#fff;border:2px solid #e5e7eb;width:38px;height:38px;border-radius:6px;cursor:pointer;font-size:.9rem;font-weight:600;transition:all .2s}.letter-btn:hover:not(.disabled){border-color:#2563eb;color:#2563eb}.letter-btn.active{background:#2563eb;color:#fff;border-color:#2563eb}.letter-btn.disabled{opacity:.3;cursor:not-allowed}.results-info{font-size:.95rem;color:#6b7280;margin-bottom:1.5rem}.glossary-content{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:2rem}.letter-section{margin-bottom:3rem}.letter-header{font-size:2.5rem;font-weight:700;color:#2563eb;margin-bottom:1.5rem;padding-bottom:.5rem;border-bottom:3px solid #e5e7eb}.terms-list{display:flex;flex-direction:column;gap:1.5rem}.term-card{padding:1.2rem;background:#f9fafb;border-left:4px solid #2563eb;border-radius:4px}.term-name{font-size:1.2rem;font-weight:700;color:#1e3a5f;margin-bottom:.5rem}.term-definition{color:#374151;font-size:1rem;line-height:1.6;margin-bottom:.8rem}.term-related{font-size:.9rem;color:#6b7280;margin-top:.8rem}.related-label{font-weight:600;margin-right:.5rem}.related-link{background:none;border:none;color:#2563eb;text-decoration:underline;cursor:pointer;padding:0;font-size:inherit}.related-link:hover{color:#1d4ed8}.term-references{font-size:.85rem;color:#6b7280;margin-top:.5rem}.highlight{background:#fef3c7;color:#92400e;padding:.1rem .2rem;border-radius:2px}.no-results{text-align:center;padding:4rem 2rem;color:#6b7280}.no-results p{font-size:1.2rem;margin-bottom:.5rem}.no-results-hint{font-size:1rem;color:#9ca3af}.glossary-page-nav{display:flex;align-items:center;justify-content:space-between;margin-top:2rem;padding:1rem 1.5rem;background:#fff;border:1px solid #e5e7eb;border-radius:8px}.gloss-nav-btn{background:#2563eb;color:#fff;border:none;padding:.6rem 1.4rem;border-radius:6px;font-size:.95rem;font-weight:600;cursor:pointer;transition:background .2s}.gloss-nav-btn:hover:not(:disabled){background:#1d4ed8}.gloss-nav-btn:disabled{background:#e5e7eb;color:#9ca3af;cursor:not-allowed}.gloss-nav-label{font-size:.95rem;color:#374151;font-weight:500}.all-notes-page{min-height:100vh;background:#f3f4f6;display:flex;flex-direction:column}.anotes-toolbar{background:#fff;border-bottom:1px solid #e5e7eb;padding:.6rem 1.5rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}.anotes-toolbar-left{display:flex;align-items:center;gap:.8rem;flex-wrap:wrap}.anotes-toolbar-right{display:flex;align-items:center;gap:.5rem}.anotes-view-toggle{display:flex;background:#f3f4f6;border:1px solid #e5e7eb;border-radius:6px;padding:2px;gap:2px}.anotes-view-toggle button{background:transparent;border:none;padding:.3rem .8rem;border-radius:4px;cursor:pointer;font-size:.82rem;color:#6b7280;transition:all .2s;white-space:nowrap}.anotes-view-toggle button.active{background:#fff;color:#1e3a5f;font-weight:600;box-shadow:0 1px 3px #0000001a}.anotes-active-tags{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap;flex:1;background:#f9fafb;border:1px solid #e5e7eb;border-radius:6px;padding:.3rem .7rem;min-height:34px}.anotes-tags-label{font-size:.82rem;color:#6b7280;font-weight:500}.anotes-active-tag{display:inline-flex;align-items:center;gap:4px;padding:.2rem .6rem;border-radius:20px;font-size:.8rem;font-weight:500}.anotes-active-tag button{background:none;border:none;cursor:pointer;font-size:.9rem;line-height:1;padding:0;opacity:.6}.anotes-active-tag button:hover{opacity:1}.anotes-tag-pills{display:flex;gap:.3rem;flex-wrap:wrap}.anotes-tag-pill{background:#f3f4f6;border:1px solid #d1d5db;border-radius:20px;padding:.2rem .6rem;font-size:.78rem;color:#6b7280;cursor:pointer;transition:all .15s}.anotes-tag-pill:hover{background:#e5e7eb;color:#374151}.anotes-select{padding:.3rem .7rem;border:1px solid #d1d5db;border-radius:6px;background:#fff;font-size:.85rem;color:#374151;cursor:pointer}.anotes-container{max-width:1100px;margin:0 auto;padding:1.5rem 2rem;flex:1;width:100%}.anotes-timeline{display:flex;flex-direction:column;gap:1.5rem}.anotes-date-header{display:flex;align-items:center;gap:.6rem;margin-bottom:.8rem}.anotes-date-dot{width:12px;height:12px;background:#2563eb;border-radius:50%;flex-shrink:0}.anotes-date-label{font-size:1rem;font-weight:700;color:#1e3a5f}.anotes-group-cards{display:flex;flex-direction:column;gap:.8rem}.anotes-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:1rem}.anote-card{background:#fff;border:1px solid #e5e7eb;border-left:4px solid #2563eb;border-radius:8px;padding:1rem 1.2rem;transition:box-shadow .2s}.anote-card:hover{box-shadow:0 2px 10px #00000012}.anote-top{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:.5rem}.anote-location{background:none;border:none;padding:0;cursor:pointer;font-size:.88rem;font-weight:600;color:#2563eb;text-align:left;transition:color .15s}.anote-location:hover{color:#1d4ed8;text-decoration:underline}.anote-time{font-size:.8rem;color:#9ca3af;white-space:nowrap;margin-left:1rem}.anote-content{font-size:.93rem;color:#374151;line-height:1.6;margin-bottom:.8rem}.anote-linked{font-size:.82rem;color:#6b7280;font-style:italic;background:#f9fafb;border-left:2px solid #d1d5db;padding:.3rem .6rem;margin-bottom:.7rem;border-radius:0 4px 4px 0}.anote-footer{display:flex;justify-content:space-between;align-items:center;gap:.8rem;flex-wrap:wrap;padding-top:.7rem;margin-top:.5rem;border-top:1px solid #f0f0f0}.anote-tags{display:flex;gap:.4rem;flex-wrap:wrap}.anote-tag{padding:.2rem .6rem;border-radius:20px;font-size:.78rem;font-weight:500}.anote-actions{display:flex;gap:.4rem;margin-left:auto}.anote-btn{background:#f3f4f6;border:1px solid #e5e7eb;border-radius:5px;padding:.3rem .7rem;font-size:.8rem;cursor:pointer;color:#374151;transition:all .15s;white-space:nowrap}.anote-btn:hover{background:#e5e7eb}.anote-btn.delete{background:#fef2f2;border-color:#fecaca;color:#dc2626}.anote-btn.delete:hover{background:#fee2e2}.anote-btn.share{background:#f0fdf4;border-color:#bbf7d0;color:#16a34a}.anote-btn.edit{background:#eff6ff;border-color:#bfdbfe;color:#2563eb}.anotes-empty{text-align:center;padding:4rem 2rem;color:#6b7280}.anotes-empty p:first-child{font-size:1.2rem;margin-bottom:.5rem}.quizzes-page{min-height:100vh;background:#f9fafb;display:flex;flex-direction:column}.quizzes-header{background:#1e3a5f;color:#fff;padding:1.5rem 2rem;display:flex;align-items:center;gap:2rem;position:sticky;top:0;z-index:100;box-shadow:0 2px 8px #0000001a}.quizzes-header h1{font-size:1.8rem;font-weight:600}.quizzes-container{max-width:1200px;margin:0 auto;padding:2rem}.quizzes-stats{display:flex;gap:3rem;justify-content:center;margin-bottom:2rem}.quiz-stat{text-align:center}.quiz-stat-value{font-size:2.5rem;font-weight:700;color:#2563eb}.quiz-stat-label{font-size:.9rem;color:#6b7280;text-transform:uppercase;margin-top:.3rem}.quizzes-tabs{display:flex;gap:1rem;margin-bottom:2rem;border-bottom:2px solid #e5e7eb}.quiz-tab{background:none;border:none;padding:.8rem 1.5rem;font-size:1rem;font-weight:600;color:#6b7280;cursor:pointer;border-bottom:3px solid transparent;transition:all .2s}.quiz-tab:hover{color:#2563eb}.quiz-tab.active{color:#2563eb;border-bottom-color:#2563eb}.quizzes-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;margin-bottom:3rem}@media (max-width: 1024px){.quizzes-grid{grid-template-columns:repeat(2,1fr)}}@media (max-width: 640px){.quizzes-grid{grid-template-columns:1fr}}.quiz-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:1.5rem;cursor:pointer;transition:all .3s;position:relative}.quiz-card:hover:not(.locked){border-color:#2563eb;box-shadow:0 4px 12px #2563eb26;transform:translateY(-2px)}.quiz-card.locked{opacity:.6;cursor:not-allowed}.quiz-locked-badge{position:absolute;top:1rem;right:1rem;background:#fef2f2;color:#dc2626;padding:.3rem .8rem;border-radius:20px;font-size:.85rem;font-weight:600}.quiz-card-header{display:flex;gap:.5rem;margin-bottom:1rem;flex-wrap:wrap}.quiz-difficulty{color:#fff;padding:.3rem .8rem;border-radius:4px;font-size:.8rem;font-weight:700;text-transform:uppercase}.quiz-chapter,.quiz-certificate{background:#f3f4f6;color:#374151;padding:.3rem .8rem;border-radius:4px;font-size:.8rem;font-weight:600}.quiz-title{font-size:1.2rem;font-weight:700;color:#1e3a5f;margin-bottom:.5rem}.quiz-description{color:#6b7280;font-size:.95rem;line-height:1.5;margin-bottom:1rem}.quiz-meta{display:flex;gap:1.5rem;font-size:.9rem;color:#6b7280;margin-bottom:1rem}.quiz-progress{margin-top:1rem}.quiz-score{font-size:.9rem;color:#374151;font-weight:600;margin-bottom:.5rem}.quiz-progress-bar{height:8px;background:#e5e7eb;border-radius:4px;overflow:hidden}.quiz-progress-fill{height:100%;transition:width .3s;border-radius:4px}.quiz-start-btn{width:100%;background:#2563eb;color:#fff;border:none;padding:.8rem;border-radius:6px;font-size:1rem;font-weight:600;cursor:pointer;transition:background .2s}.quiz-start-btn:hover{background:#1d4ed8}.quiz-card.locked .quiz-start-btn{background:#d1d5db;cursor:not-allowed}.create-custom-quiz{text-align:center;padding:2rem;background:#fff;border:2px dashed #e5e7eb;border-radius:12px}.custom-quiz-btn{background:#10b981;color:#fff;border:none;padding:1rem 2rem;border-radius:8px;font-size:1.1rem;font-weight:600;cursor:pointer;transition:background .2s;margin-bottom:.5rem}.custom-quiz-btn:hover{background:#059669}.custom-quiz-hint{color:#6b7280;font-size:.9rem}.trainers-page{min-height:100vh;background:#f9fafb;display:flex;flex-direction:column}.trainers-container{max-width:1200px;margin:0 auto;padding:2rem;width:100%}.trainers-intro{text-align:center;margin-bottom:2rem}.trainers-intro h2{font-size:2rem;color:#1e3a5f;margin-bottom:.4rem;font-weight:700}.trainers-intro p{font-size:1rem;color:#6b7280}.trainers-tabs{display:flex;gap:0;margin-bottom:2.5rem;border-bottom:2px solid #e5e7eb}.trainer-tab{background:none;border:none;padding:.8rem 1.5rem;font-size:.95rem;font-weight:600;color:#6b7280;cursor:pointer;border-bottom:3px solid transparent;margin-bottom:-2px;transition:all .2s}.trainer-tab:hover{color:#2563eb}.trainer-tab.active{color:#2563eb;border-bottom-color:#2563eb}.trainer-category{margin-bottom:3rem}.category-title{font-size:1.3rem;font-weight:700;color:#1e3a5f;margin-bottom:1.2rem;padding-bottom:.5rem;border-bottom:2px solid #e5e7eb}.trainers-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}@media (max-width: 1024px){.trainers-grid{grid-template-columns:repeat(2,1fr)}}@media (max-width: 640px){.trainers-grid{grid-template-columns:1fr}}.trainer-card{background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 2px 8px #00000014;transition:all .25s;display:flex;flex-direction:column}.trainer-card:hover{transform:translateY(-4px);box-shadow:0 10px 24px #00000021}.trainer-preview{height:160px;display:flex;align-items:center;justify-content:center;position:relative}.trainer-preview-icon{font-size:3.5rem;filter:drop-shadow(0 4px 8px rgba(0,0,0,.2))}.trainer-type-badge{position:absolute;top:1rem;right:1rem;background:#ffffffeb;color:#1e3a5f;padding:.25rem .75rem;border-radius:20px;font-size:.78rem;font-weight:600}.trainer-content{padding:1.3rem;flex:1;display:flex;flex-direction:column}.trainer-title{font-size:1.05rem;font-weight:700;color:#1e3a5f;margin-bottom:.5rem}.trainer-description{color:#6b7280;font-size:.88rem;line-height:1.55;margin-bottom:1rem;flex:1}.trainer-feature-pills{display:flex;flex-wrap:wrap;gap:.4rem;margin-bottom:1rem}.trainer-feature-pill{background:#f3f4f6;border:1px solid #e5e7eb;border-radius:20px;padding:.2rem .6rem;font-size:.78rem;color:#374151;white-space:nowrap}.trainer-meta{display:flex;align-items:center;gap:.6rem;padding-top:.8rem;border-top:1px solid #f3f4f6}.trainer-time{font-size:.83rem;color:#6b7280;flex:1}.trainer-badge{font-size:.78rem;font-weight:600;padding:.2rem .6rem;border-radius:20px}.trainer-badge-popular{background:#fff7ed;color:#c2410c}.trainer-badge-new{background:#fefce8;color:#a16207}.trainer-launch-btn{background:#2563eb;color:#fff;border:none;padding:.5rem 1.1rem;border-radius:7px;font-size:.88rem;font-weight:600;cursor:pointer;transition:background .2s;white-space:nowrap}.trainer-launch-btn:hover{background:#1d4ed8}.coming-soon-section{margin-top:2rem;padding:2rem;background:#fff;border-radius:12px;border:2px dashed #e5e7eb}.coming-soon-section h3{font-size:1.3rem;color:#1e3a5f;margin-bottom:1.2rem;text-align:center}.coming-soon-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1rem}.coming-soon-card{text-align:center;padding:1.2rem;background:#f9fafb;border-radius:8px}.coming-soon-icon{font-size:2.5rem;margin-bottom:.4rem}.coming-soon-title{font-size:.9rem;font-weight:600;color:#6b7280}.terms-page{min-height:100vh;display:flex;flex-direction:column;background:#f9fafb}.terms-header{background:#1e3a5f;color:#fff;padding:2rem;position:sticky;top:0;z-index:100;box-shadow:0 2px 8px #0000001a}.terms-header h1{font-size:2rem;margin:1rem 0 .5rem}.terms-company{font-size:1.1rem;color:#93c5fd;font-weight:500}.terms-content{max-width:900px;margin:0 auto;padding:3rem 2rem;background:#fff;flex:1}.terms-updated{font-size:.9rem;color:#6b7280;margin-bottom:2rem;padding-bottom:1rem;border-bottom:2px solid #e5e7eb}.terms-section{margin-bottom:2.5rem}.terms-section h2{font-size:1.3rem;color:#1e3a5f;margin-bottom:1rem;font-weight:600}.terms-section p{color:#374151;line-height:1.8;margin-bottom:1rem}.terms-section ul{margin:1rem 0;padding-left:2rem}.terms-section li{color:#374151;line-height:1.8;margin-bottom:.5rem}.back-btn{background:#ffffff1a;color:#fff;border:1px solid rgba(255,255,255,.3);padding:.5rem 1rem;border-radius:6px;cursor:pointer;font-size:.95rem;transition:all .2s}.back-btn:hover{background:#fff3;border-color:#ffffff80}.acs-page{min-height:100vh;background:#f9fafb;display:flex;flex-direction:column}.acs-layout{display:flex;flex:1;max-width:1400px;width:100%;margin:0 auto;padding:1.5rem;gap:1.5rem;align-items:flex-start}.acs-area-nav{width:220px;flex-shrink:0;background:#fff;border:1px solid #e5e7eb;border-radius:10px;overflow:hidden;position:sticky;top:1.5rem}.acs-area-nav-title{background:#1e3a5f;color:#fff;font-size:.75rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;padding:.75rem 1rem}.acs-area-btn{display:flex;align-items:flex-start;gap:.6rem;width:100%;padding:.65rem 1rem;background:none;border:none;border-left:3px solid transparent;cursor:pointer;text-align:left;transition:all .15s;border-bottom:1px solid #f3f4f6}.acs-area-btn:hover{background:#f0f4ff;border-left-color:#93c5fd}.acs-area-btn.active{background:#eff6ff;border-left-color:#2563eb}.acs-area-roman{font-size:.8rem;font-weight:700;color:#2563eb;min-width:28px;padding-top:.05rem}.acs-area-label{font-size:.82rem;color:#374151;line-height:1.3}.acs-area-btn.active .acs-area-label{color:#1e3a5f;font-weight:600}.acs-content{flex:1;min-width:0}.acs-area-header{background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:1.5rem;margin-bottom:1rem}.acs-area-number{font-size:.8rem;font-weight:700;color:#2563eb;text-transform:uppercase;letter-spacing:.06em;margin-bottom:.25rem}.acs-area-title{font-size:1.6rem;font-weight:700;color:#1e3a5f;margin:0 0 1rem}.acs-legend{display:flex;gap:1rem;flex-wrap:wrap}.acs-legend-item{font-size:.8rem;font-weight:600;padding:.25rem .75rem;border-radius:20px}.acs-task{background:#fff;border:1px solid #e5e7eb;border-radius:10px;margin-bottom:.75rem;overflow:hidden}.acs-task-header{display:flex;align-items:center;justify-content:space-between;width:100%;padding:1rem 1.25rem;background:none;border:none;cursor:pointer;text-align:left;transition:background .15s}.acs-task-header:hover{background:#f9fafb}.acs-task-label{font-size:1rem;font-weight:700;color:#1e3a5f}.acs-task-toggle{font-size:.75rem;color:#9ca3af;flex-shrink:0}.acs-task-body{padding:0 1.25rem 1.25rem;border-top:1px solid #f3f4f6}.acs-task-refs{font-size:.82rem;color:#6b7280;padding:.75rem 0;font-style:italic}.acs-refs-label{font-weight:600;font-style:normal;color:#374151}.acs-task-objective{font-size:.88rem;color:#374151;padding-bottom:1rem;line-height:1.5}.acs-objective-label{font-weight:700}.acs-element-group{margin-top:1rem;padding-top:1rem;border-top:1px solid #f3f4f6}.acs-element-group-title{font-size:.8rem;font-weight:800;text-transform:uppercase;letter-spacing:.07em;margin-bottom:.25rem}.acs-element-group:first-of-type{margin-top:.5rem;border-top:none}.acs-element-subtext{font-size:.85rem;color:#6b7280;margin-bottom:.75rem;font-style:italic}.acs-element{display:flex;align-items:flex-start;gap:.75rem;width:100%;padding:.6rem .75rem;margin-bottom:.35rem;background:#f9fafb;border:1px solid #e5e7eb;border-left:4px solid transparent;border-radius:6px;cursor:pointer;text-align:left;transition:all .15s}.acs-element:hover{background:#f0f4ff;border-color:#bfdbfe}.acs-element.selected{background:#eff6ff;border-color:#2563eb}.acs-element-code{font-size:.78rem;font-weight:700;font-family:monospace;min-width:90px;padding-top:.1rem;flex-shrink:0}.acs-element-desc{font-size:.88rem;color:#374151;line-height:1.4}.acs-k{border-left-color:#2563eb!important}.acs-k .acs-element-code{color:#2563eb}.acs-k.acs-legend-item{background:#eff6ff;color:#2563eb}.acs-element-group-title.acs-k-title{color:#2563eb}.acs-r{border-left-color:#d97706!important}.acs-r .acs-element-code{color:#d97706}.acs-r.acs-legend-item{background:#fffbeb;color:#d97706}.acs-s{border-left-color:#059669!important}.acs-s .acs-element-code{color:#059669}.acs-s.acs-legend-item{background:#ecfdf5;color:#059669}.acs-element-group-title{color:#1e3a5f}.acs-panel{width:0;flex-shrink:0;background:#fff;border:1px solid #e5e7eb;border-radius:10px;overflow:hidden;transition:width .25s ease;position:sticky;top:1.5rem;max-height:calc(100vh - 3rem);display:flex;flex-direction:column;opacity:0}.acs-panel.open{width:300px;opacity:1}.acs-panel-header{display:flex;align-items:center;justify-content:space-between;padding:.9rem 1rem;background:#1e3a5f;color:#fff;flex-shrink:0}.acs-panel-code{font-family:monospace;font-size:.95rem;font-weight:700;color:#93c5fd}.acs-panel-close{background:#ffffff26;border:1px solid rgba(255,255,255,.3);border-radius:4px;color:#fff;font-size:1.1rem;width:26px;height:26px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s}.acs-panel-close:hover{background:#ffffff47}.acs-panel-body{flex:1;overflow-y:auto;padding:1rem}.acs-panel-section{margin-bottom:1.1rem;padding-bottom:1.1rem;border-bottom:1px solid #f3f4f6}.acs-panel-section:last-child{border-bottom:none;margin-bottom:0}.acs-panel-label{font-size:.72rem;font-weight:700;color:#9ca3af;text-transform:uppercase;letter-spacing:.07em;margin-bottom:.4rem}.acs-panel-value{font-size:.88rem;color:#374151;line-height:1.4}.acs-panel-desc{font-size:.9rem;color:#1e3a5f;font-weight:600;line-height:1.5}.acs-panel-type-badge{display:inline-block;font-size:.8rem;font-weight:700;padding:.25rem .75rem;border-radius:20px}.acs-panel-refs{display:flex;flex-wrap:wrap;gap:.4rem}.acs-ref-tag{font-size:.75rem;background:#f3f4f6;color:#374151;padding:.2rem .5rem;border-radius:4px;font-family:monospace}.acs-panel-pages{display:flex;flex-direction:column;gap:.5rem}.acs-page-card{display:flex;align-items:center;gap:.75rem;padding:.7rem .75rem;background:#f9fafb;border:1px solid #e5e7eb;border-radius:6px;cursor:pointer;text-align:left;transition:all .15s;width:100%;border-left:3px solid #2563eb}.acs-page-card:hover{background:#eff6ff;border-color:#93c5fd}.acs-page-card-num{font-size:.75rem;font-weight:700;color:#2563eb;font-family:monospace;min-width:36px}.acs-page-card-title{font-size:.85rem;color:#374151;line-height:1.3}.acs-page-card-chapter{font-size:.75rem;color:#9ca3af;margin-top:.15rem}.acs-no-pages{text-align:center;padding:1.5rem 1rem;color:#9ca3af}.acs-no-pages-icon{font-size:1.8rem;margin-bottom:.5rem}.acs-no-pages-text{font-size:.88rem;font-weight:600;color:#6b7280;margin-bottom:.25rem}.acs-no-pages-sub{font-size:.8rem;color:#9ca3af}.settings-page{min-height:100vh;background:#f9fafb;display:flex;flex-direction:column}.settings-container{max-width:680px;margin:0 auto;padding:2rem 1.5rem;flex:1}.settings-header{margin-bottom:2rem}.settings-title{font-size:1.8rem;font-weight:700;color:#1e3a5f;margin:0 0 .3rem}.settings-subtitle{font-size:.95rem;color:#6b7280;margin:0}.settings-section{background:#fff;border:1px solid #e5e7eb;border-radius:10px;overflow:hidden;margin-bottom:1.5rem}.settings-section-title{font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:#6b7280;padding:.85rem 1.25rem .6rem;border-bottom:1px solid #f3f4f6;background:#fafafa}.settings-row{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.25rem;border-bottom:1px solid #f3f4f6;gap:1rem}.settings-row:last-of-type{border-bottom:none}.settings-row-info{flex:1}.settings-row-label{font-size:.95rem;font-weight:600;color:#1e3a5f;margin-bottom:.15rem}.settings-row-desc{font-size:.82rem;color:#6b7280;line-height:1.4}.settings-toggle{width:48px;height:26px;border-radius:13px;background:#d1d5db;border:none;cursor:pointer;position:relative;transition:background .2s;flex-shrink:0}.settings-toggle.on{background:#2563eb}.settings-toggle-thumb{position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:left .2s;box-shadow:0 1px 3px #0003}.settings-toggle.on .settings-toggle-thumb{left:25px}.settings-font-controls{display:flex;align-items:center;gap:.5rem;background:#f3f4f6;border-radius:8px;padding:.3rem .5rem;flex-shrink:0}.settings-font-btn{background:#fff;border:1px solid #e5e7eb;border-radius:5px;padding:.3rem .7rem;font-size:.9rem;font-weight:700;cursor:pointer;color:#374151;transition:all .15s;min-width:38px}.settings-font-btn:hover:not(:disabled){background:#2563eb;color:#fff;border-color:#2563eb}.settings-font-btn:disabled{opacity:.35;cursor:not-allowed}.settings-font-value{font-size:.88rem;font-weight:600;color:#374151;min-width:36px;text-align:center}.settings-preview{margin:0 1.25rem 1.25rem;padding:1rem;background:#f9fafb;border:1px solid #e5e7eb;border-radius:8px}.settings-preview-label{font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#9ca3af;margin-bottom:.5rem}.settings-preview-text{color:#374151;line-height:1.6;transition:font-size .2s}.settings-page.night-mode{background:#1a1a1a}.settings-page.night-mode .settings-title{color:#93c5fd}.settings-page.night-mode .settings-subtitle{color:#9ca3af}.settings-page.night-mode .settings-section{background:#2d2d2d;border-color:#404040}.settings-page.night-mode .settings-section-title{background:#262626;color:#9ca3af;border-color:#404040}.settings-page.night-mode .settings-row{border-color:#404040}.settings-page.night-mode .settings-row-label{color:#e5e5e5}.settings-page.night-mode .settings-row-desc{color:#9ca3af}.settings-page.night-mode .settings-preview{background:#1a1a1a;border-color:#404040}.settings-page.night-mode .settings-preview-text{color:#d1d5db}.settings-page.night-mode .settings-font-controls{background:#1a1a1a}.settings-page.night-mode .settings-font-btn{background:#374151;border-color:#4b5563;color:#e5e5e5}.settings-action-btn{padding:.4rem 1rem;border-radius:6px;font-size:.88rem;font-weight:600;cursor:pointer;border:1px solid transparent;transition:all .15s;flex-shrink:0}.export-btn{background:#eff6ff;color:#2563eb;border-color:#bfdbfe}.export-btn:hover{background:#2563eb;color:#fff;border-color:#2563eb}.danger-btn{background:#fef2f2;color:#dc2626;border-color:#fecaca}.danger-btn:hover:not(:disabled){background:#dc2626;color:#fff;border-color:#dc2626}.danger-btn:disabled{opacity:.35;cursor:not-allowed}.danger-all{background:#fff1f2;border-color:#fda4af}.settings-row-danger{background:#fff8f8}.confirm-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000073;display:flex;align-items:center;justify-content:center;z-index:1000}.confirm-dialog{background:#fff;border-radius:12px;padding:2rem;max-width:380px;width:90%;text-align:center;box-shadow:0 20px 60px #0003}.confirm-icon{font-size:2rem;margin-bottom:.75rem}.confirm-message{font-size:.95rem;color:#374151;line-height:1.5;margin-bottom:1.5rem}.confirm-actions{display:flex;gap:.75rem;justify-content:center}.confirm-cancel{padding:.55rem 1.4rem;border-radius:6px;border:1px solid #e5e7eb;background:#fff;color:#374151;font-size:.9rem;font-weight:600;cursor:pointer;transition:background .15s}.confirm-cancel:hover{background:#f9fafb}.confirm-ok{padding:.55rem 1.4rem;border-radius:6px;border:none;background:#dc2626;color:#fff;font-size:.9rem;font-weight:600;cursor:pointer;transition:background .15s}.confirm-ok:hover{background:#b91c1c}.settings-toast{position:fixed;bottom:2rem;left:50%;transform:translate(-50%);background:#1e3a5f;color:#fff;padding:.65rem 1.5rem;border-radius:8px;font-size:.9rem;font-weight:600;box-shadow:0 4px 16px #0003;z-index:1001;animation:toast-in .2s ease}@keyframes toast-in{0%{opacity:0;transform:translate(-50%) translateY(8px)}to{opacity:1;transform:translate(-50%) translateY(0)}}.settings-page.night-mode .confirm-dialog{background:#2d2d2d;color:#e5e5e5}.settings-page.night-mode .confirm-message{color:#d1d5db}.settings-page.night-mode .confirm-cancel{background:#374151;border-color:#4b5563;color:#e5e5e5}.settings-page.night-mode .settings-row-danger{background:#2a1f1f}.settings-page.night-mode .danger-btn{background:#3b1f1f;color:#fca5a5;border-color:#7f1d1d}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:#f9fafb;line-height:1.6;color:#1f2937}h1,h2,h3,h4,h5,h6{font-weight:600;line-height:1.2}button{font-family:inherit;cursor:pointer;border:none;outline:none}input,textarea,select{font-family:inherit;font-size:inherit}.container{max-width:1200px;margin:0 auto;padding:0 20px}.flex{display:flex}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-4{gap:1rem}.hidden{display:none}.glossary-term{border-bottom:2px dotted #3b82f6;cursor:pointer;position:relative;color:inherit;background:none;padding:0;display:inline}.glossary-term:hover{border-bottom-color:#1d4ed8;background:#3b82f60d}.transition{transition:all .2s ease}.transition-slow{transition:all .3s ease}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:#f3f4f6}::-webkit-scrollbar-thumb{background:#d1d5db;border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#9ca3af}
