*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}body{font-family:-apple-system,system-ui,Segoe UI,sans-serif;background:var(--tg-theme-bg-color, #ffffff);color:var(--tg-theme-text-color, #111111);font-size:15px;line-height:1.5;min-height:100vh;-webkit-font-smoothing:antialiased}a{color:var(--tg-theme-link-color, #2563eb);text-decoration:none}.screen-center{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;gap:16px;padding:24px;text-align:center}.screen-center .icon{font-size:48px}.screen-center h2{font-size:18px;font-weight:600}.screen-center p{color:var(--tg-theme-hint-color, #6b7280);font-size:14px}@keyframes spin{to{transform:rotate(360deg)}}.spinner{width:36px;height:36px;border:3px solid var(--tg-theme-hint-color, #d1d5db);border-top-color:var(--tg-theme-button-color, #2563eb);border-radius:50%;animation:spin .7s linear infinite}.page{padding:16px 16px 32px}.page-title{font-size:20px;font-weight:700;margin-bottom:16px}.section-title{font-size:13px;font-weight:600;color:var(--tg-theme-hint-color, #6b7280);text-transform:uppercase;letter-spacing:.05em;margin-bottom:8px}.card{background:var(--tg-theme-secondary-bg-color, #f5f5f5);border-radius:12px;padding:16px;margin-bottom:12px}.card-title{font-size:16px;font-weight:600;margin-bottom:4px}.card-desc{font-size:14px;color:var(--tg-theme-hint-color, #6b7280);line-height:1.4}.course-card{background:var(--tg-theme-secondary-bg-color, #f5f5f5);border-radius:16px;overflow:hidden;margin-bottom:12px;cursor:pointer;transition:opacity .15s;-webkit-tap-highlight-color:transparent}.course-card:active{opacity:.7}.course-card-img{width:100%;height:140px;object-fit:cover;display:block;background:var(--tg-theme-hint-color, #d1d5db)}.course-card-img-placeholder{width:100%;height:140px;background:linear-gradient(135deg,#667eea,#764ba2);display:flex;align-items:center;justify-content:center;font-size:40px}.course-card-body{padding:14px 16px}.course-card-title{font-size:16px;font-weight:600;margin-bottom:4px}.course-card-desc{font-size:13px;color:var(--tg-theme-hint-color, #6b7280);line-height:1.4}.course-card-footer{display:flex;align-items:center;justify-content:space-between;margin-top:10px}.badge{display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border-radius:100px;font-size:12px;font-weight:600}.badge-green{background:#22c55e26;color:#16a34a}.badge-gray{background:#6b72801f;color:var(--tg-theme-hint-color, #6b7280)}.badge-blue{background:#2563eb1f;color:#2563eb}.badge-lock{background:#9ca3af26;color:var(--tg-theme-hint-color, #9ca3af)}.module-block{margin-bottom:16px}.module-header{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;background:var(--tg-theme-secondary-bg-color, #f5f5f5);border-radius:12px 12px 0 0;font-weight:600;font-size:15px;cursor:pointer;-webkit-tap-highlight-color:transparent}.module-header.collapsed{border-radius:12px}.module-chevron{font-size:12px;color:var(--tg-theme-hint-color, #9ca3af);transition:transform .2s}.module-header.collapsed .module-chevron{transform:rotate(-90deg)}.lesson-list{background:var(--tg-theme-secondary-bg-color, #f5f5f5);border-radius:0 0 12px 12px}.lesson-item{display:flex;align-items:center;gap:12px;padding:12px 14px;border-top:1px solid rgba(0,0,0,.06);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:opacity .15s;text-decoration:none;color:inherit}.lesson-item:active{opacity:.6}.lesson-item.locked{cursor:default;opacity:.5}.lesson-item.locked:active{opacity:.5}.lesson-icon{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:14px;flex-shrink:0;background:#6b72801a}.lesson-icon.completed{background:#22c55e26}.lesson-icon.unlocked{background:#2563eb1f}.lesson-title{flex:1;font-size:14px;line-height:1.4}.lesson-type{font-size:12px;color:var(--tg-theme-hint-color, #9ca3af)}.lesson-content{padding:16px}.lesson-content h1{font-size:20px;font-weight:700;margin-bottom:12px}.prose{font-size:15px;line-height:1.7}.prose p{margin-bottom:12px}.prose h2,.prose h3{font-weight:600;margin:16px 0 8px}.prose ul,.prose ol{padding-left:20px;margin-bottom:12px}.prose li{margin-bottom:4px}.prose img{max-width:100%;border-radius:8px}.prose code{background:#0000000f;padding:2px 5px;border-radius:4px;font-size:13px}.prose pre{background:#0000000f;border-radius:8px;padding:12px;overflow-x:auto;margin-bottom:12px}.prose pre code{background:none;padding:0}.media-player{width:100%;border-radius:12px;margin-bottom:16px;background:#000}audio.media-player{background:var(--tg-theme-secondary-bg-color, #f5f5f5)}.media-loading{background:var(--tg-theme-secondary-bg-color, #f5f5f5);border-radius:12px;padding:32px;text-align:center;color:var(--tg-theme-hint-color, #6b7280);font-size:14px;margin-bottom:16px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:12px 20px;border-radius:12px;border:none;cursor:pointer;font-size:15px;font-weight:600;transition:opacity .15s;width:100%;-webkit-tap-highlight-color:transparent}.btn:active{opacity:.7}.btn:disabled{opacity:.4;cursor:not-allowed}.btn-primary{background:var(--tg-theme-button-color, #2563eb);color:var(--tg-theme-button-text-color, #ffffff)}.btn-secondary{background:var(--tg-theme-secondary-bg-color, #f5f5f5);color:var(--tg-theme-text-color, #111111)}.btn-success{background:#22c55e26;color:#16a34a}.course-header{margin-bottom:20px}.course-header-img{width:100%;height:160px;object-fit:cover;border-radius:16px;margin-bottom:14px;background:linear-gradient(135deg,#667eea,#764ba2)}.course-header-badges{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.progress-wrap{margin-bottom:16px}.progress-label{display:flex;justify-content:space-between;font-size:13px;color:var(--tg-theme-hint-color, #6b7280);margin-bottom:6px}.progress-bar{height:6px;background:#00000014;border-radius:100px;overflow:hidden}.progress-fill{height:100%;background:var(--tg-theme-button-color, #2563eb);border-radius:100px;transition:width .3s}.empty{text-align:center;padding:48px 24px;color:var(--tg-theme-hint-color, #6b7280);font-size:14px}.empty .icon{font-size:40px;margin-bottom:12px}.error-text{color:#ef4444;font-size:14px;text-align:center;padding:16px}
