@import "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap";:root{--bg:#0a0b0f;--surface:#12141a;--surface2:#1a1d27;--border:#1e2235;--text:#e8eaf0;--text-muted:#5e6680;--accent:#6366f1;--accent2:#8b5cf6;--accent-light:#a5b4fc;--danger:#f87171}*,:before,:after{box-sizing:border-box;margin:0;padding:0}html{font-size:16px}body{background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;font-family:Inter,-apple-system,BlinkMacSystemFont,sans-serif;line-height:1.6}.app-full{min-height:100vh}.app-layout{min-height:100vh;display:flex}.main-content{flex:1;max-width:calc(100vw - 220px);padding:2rem 2.5rem;overflow-y:auto}.author-banner{color:#1a1a1a;text-align:center;background:#ffeb85f2;border:1px solid #ffd43b;border-radius:8px;margin-bottom:1.5rem;padding:12px 18px;font-size:.95rem;font-weight:500;line-height:1.5;box-shadow:0 4px 12px #00000026}.author-banner strong{color:#000;font-weight:700}.btn-primary{background:linear-gradient(135deg, var(--accent), var(--accent2));color:#fff;cursor:pointer;border:none;border-radius:10px;align-items:center;gap:.4rem;padding:.65rem 1.4rem;font-family:Inter,sans-serif;font-size:.9rem;font-weight:600;transition:opacity .2s,transform .15s,box-shadow .2s;display:inline-flex;box-shadow:0 4px 20px #6366f14d}.btn-primary:hover:not(:disabled){opacity:.9;transform:translateY(-1px);box-shadow:0 6px 28px #6366f166}.btn-primary:active:not(:disabled){transform:translateY(0)}.btn-primary:disabled{opacity:.45;cursor:not-allowed}.btn-secondary{background:var(--surface2);border:1px solid var(--border);color:var(--text);cursor:pointer;border-radius:10px;align-items:center;gap:.4rem;padding:.6rem 1.2rem;font-family:Inter,sans-serif;font-size:.88rem;font-weight:500;transition:all .15s;display:inline-flex}.btn-secondary:hover:not(:disabled){border-color:var(--accent);color:var(--accent-light)}.btn-secondary:disabled{opacity:.4;cursor:not-allowed}.btn-danger{color:var(--danger);cursor:pointer;background:#f871711f;border:1px solid #f871714d;border-radius:10px;padding:.65rem 1.2rem;font-family:Inter,sans-serif;font-size:.88rem;font-weight:600;transition:all .15s}.btn-danger:hover{background:#f8717133}.error-box{color:#fca5a5;background:#f871711a;border:1px solid #f871714d;border-radius:8px;align-items:center;gap:.5rem;padding:.7rem 1rem;font-size:.85rem;display:flex}.spinner{border:2px solid #ffffff4d;border-top-color:#fff;border-radius:50%;width:14px;height:14px;animation:.7s linear infinite spin;display:inline-block}.spinner-row{align-items:center;gap:.5rem;display:inline-flex}@keyframes spin{to{transform:rotate(360deg)}}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:var(--border);border-radius:3px}::-webkit-scrollbar-thumb:hover{background:#2e3450}.sidebar{background:var(--surface);border-right:1px solid var(--border);box-sizing:border-box;flex-direction:column;flex-shrink:0;width:220px;min-height:100vh;padding:1.2rem .8rem;display:flex}.sidebar-brand{align-items:center;gap:.6rem;padding:.4rem .6rem 1.4rem;display:flex}.brand-icon{font-size:1.6rem}.brand-name{background:linear-gradient(135deg, var(--accent), var(--accent2));-webkit-text-fill-color:transparent;-webkit-background-clip:text;background-clip:text;font-size:1.05rem;font-weight:700}.profile-mini{background:#6366f114;border:1px solid #6366f133;border-radius:10px;align-items:center;gap:.7rem;margin-bottom:1.2rem;padding:.7rem .8rem;display:flex}.avatar{background:linear-gradient(135deg, var(--accent), var(--accent2));color:#fff;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:36px;height:36px;font-size:1rem;font-weight:700;display:flex}.profile-name{color:var(--text);white-space:nowrap;text-overflow:ellipsis;font-size:.82rem;font-weight:600;overflow:hidden}.profile-msv{color:var(--text-muted);font-family:monospace;font-size:.72rem}.sidebar-nav{flex-direction:column;flex:1;gap:.3rem;display:flex}.nav-item{color:var(--text-muted);cursor:pointer;text-align:left;background:0 0;border:none;border-radius:10px;align-items:center;gap:.7rem;width:100%;padding:.7rem .9rem;font-size:.9rem;font-weight:500;transition:all .15s;display:flex}.nav-item:hover{background:var(--bg);color:var(--text)}.nav-item.active{color:var(--accent-light);background:#6366f11f;font-weight:600}.nav-icon{font-size:1rem}.sidebar-footer{border-top:1px solid var(--border);flex-direction:column;gap:.6rem;padding-top:1rem;display:flex}.btn-feedback{border:1px solid var(--border);width:100%;color:var(--text-muted);text-align:center;box-sizing:border-box;background:#ffffff0a;border-radius:8px;padding:.5rem;font-size:.83rem;text-decoration:none;transition:all .15s;display:block}.btn-feedback:hover{color:var(--text);background:#ffffff14;border-color:#8b5cf6}.btn-logout{border:1px solid var(--border);width:100%;color:var(--text-muted);cursor:pointer;background:0 0;border-radius:8px;padding:.5rem;font-size:.83rem;transition:all .15s}.btn-logout:hover{color:#f87171;background:#f871710f;border-color:#f87171}.footer-note{color:var(--text-muted);text-align:center;opacity:.5;font-size:.68rem}.token-page{background:var(--bg);justify-content:center;align-items:center;min-height:100vh;padding:2rem;display:flex}.token-card{background:var(--surface);border:1px solid var(--border);border-radius:20px;width:100%;max-width:560px;padding:2.5rem;box-shadow:0 0 60px #6366f11f}.token-header{text-align:center;margin-bottom:1.5rem}.token-card .author-banner{margin-bottom:1.5rem;font-size:.88rem}.logo-wrap{background:linear-gradient(135deg, var(--accent), var(--accent2));border-radius:50%;justify-content:center;align-items:center;width:72px;height:72px;margin-bottom:1rem;font-size:2rem;display:inline-flex;box-shadow:0 0 30px #6366f166}.token-header h1{background:linear-gradient(135deg, var(--accent), var(--accent2));-webkit-text-fill-color:transparent;-webkit-background-clip:text;background-clip:text;margin:0 0 .4rem;font-size:1.8rem;font-weight:700}.subtitle{color:var(--text-muted);font-size:.9rem}.mode-switch{justify-content:center;gap:1rem;margin-bottom:2rem;display:flex}.mode-switch button{background:var(--surface);border:1px solid var(--border);color:var(--text-muted);cursor:pointer;border-radius:8px;padding:.75rem 1.5rem;font-size:1rem;font-weight:600;transition:all .2s}.mode-switch button:hover{background:var(--bg);border-color:var(--primary-light)}.mode-switch button.active{background:var(--primary);color:#fff;border-color:var(--primary);box-shadow:0 4px 12px #6366f133}.token-form{flex-direction:column;gap:1.2rem;display:flex}.field-wrap label{color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em;margin-bottom:.5rem;font-size:.85rem;font-weight:600;display:block}.token-textarea{background:var(--bg);border:1px solid var(--border);width:100%;color:var(--text);resize:vertical;box-sizing:border-box;border-radius:10px;padding:.9rem 1rem;font-family:JetBrains Mono,Courier New,monospace;font-size:.78rem;transition:border-color .2s,box-shadow .2s}.token-textarea:focus{border-color:var(--accent);outline:none;box-shadow:0 0 0 3px #6366f126}.token-hint{border-left:3px solid var(--accent);color:var(--text-muted);background:#6366f10f;border-radius:8px;margin-top:1.8rem;padding:1rem 1.2rem;font-size:.83rem;line-height:1.7}.token-hint strong{color:var(--text);margin-bottom:.4rem;display:block}.token-hint ol{margin:.3rem 0 0 1.2rem;padding:0}.token-hint a{color:var(--accent-light);text-decoration:none}.token-hint a:hover{text-decoration:underline}.token-hint kbd{background:var(--border);color:var(--text);border-radius:4px;padding:1px 5px;font-size:.78rem}.token-hint code{color:var(--accent-light);font-family:monospace}.author-info{background:var(--surface);border:1px solid var(--border);border-radius:12px;margin-top:1.5rem;padding:1.2rem;font-size:.85rem}.author-desc{color:var(--text);margin:0 0 .8rem;font-weight:600}.author-sub{color:var(--text-muted);background:var(--bg);border-left:3px solid var(--accent);border-radius:8px;margin:0 0 1rem;padding:.6rem .8rem;font-size:.8rem;line-height:1.5}.author-links{flex-direction:column;gap:.6rem;margin:0;padding:0;list-style:none;display:flex}.author-links li{color:var(--text-muted);align-items:center;display:flex}.author-links a{color:var(--accent-light);font-weight:500;text-decoration:none;transition:color .15s}.author-links a:hover{color:var(--accent);text-decoration:underline}.donate-link{border-top:1px dashed var(--border);flex-direction:column;align-items:center;gap:.8rem;margin-top:.4rem;padding-top:.8rem;display:flex;color:var(--text)!important}.donate-text{align-items:center;width:100%;display:flex}.donate-qr{object-fit:cover;background:#fff;border:2px solid #34d39966;border-radius:12px;width:130px;height:130px;padding:4px;transition:transform .2s,box-shadow .2s;box-shadow:0 4px 12px #0000001a}.donate-qr:hover{z-index:10;transform:scale(1.6);box-shadow:0 8px 24px #0003}.donate-link code{color:#34d399;background:#34d39926;border-radius:6px;margin-left:.4rem;padding:.2rem .5rem;font-family:JetBrains Mono,monospace;font-size:.95rem;font-weight:700}.toast-success{color:#ecfdf5;z-index:9999;background:linear-gradient(135deg,#065f46,#047857);border:1px solid #34d399;border-radius:12px;align-items:center;gap:.6rem;padding:.85rem 1.6rem;font-size:.95rem;font-weight:600;animation:.4s cubic-bezier(.22,1,.36,1) toastSlideIn;display:flex;position:fixed;top:1.5rem;left:50%;transform:translate(-50%);box-shadow:0 8px 32px #10b98159}@keyframes toastSlideIn{0%{opacity:0;transform:translate(-50%)translateY(-20px)}to{opacity:1;transform:translate(-50%)translateY(0)}}.subjects-page{padding:.5rem 0 3rem}.input-group select{background:var(--surface);border:1px solid var(--border);color:var(--text);cursor:pointer;border-radius:8px;min-width:220px;padding:.55rem .8rem;font-family:Inter,sans-serif;font-size:.88rem}.input-group select:focus{border-color:var(--accent);outline:none;box-shadow:0 0 0 3px #6366f126}.edu-info{color:var(--accent-light);background:#6366f114;border:1px solid #6366f133;border-radius:6px;margin-top:.4rem;padding:.2rem .6rem;font-size:.75rem;display:inline-block}.error-box{color:#f87171;background:#f871710f;border:1px solid #f8717133;border-radius:8px;margin-bottom:1rem;padding:.6rem 1rem;font-size:.85rem}.error-box.small{margin:.3rem 0;padding:.4rem .8rem;font-size:.78rem}.result-bar{flex-wrap:wrap;align-items:center;gap:.8rem;margin-bottom:1rem;display:flex}.count-badge{color:var(--accent-light);background:#6366f114;border:1px solid #6366f133;border-radius:10px;padding:.2rem .6rem;font-size:.72rem;font-weight:700}.count-badge.reg{color:#34d399;background:#34d39914;border:1px solid #34d39933}.search-input{background:var(--surface);border:1px solid var(--border);min-width:180px;color:var(--text);border-radius:8px;flex:1;padding:.45rem .8rem;font-family:Inter,sans-serif;font-size:.85rem}.search-input:focus{border-color:var(--accent);outline:none;box-shadow:0 0 0 3px #6366f126}.subjects-list{flex-direction:column;gap:.5rem;display:flex}.subject-card2{background:var(--surface);border:1px solid var(--border);border-radius:12px;transition:border-color .15s;overflow:hidden}.subject-card2:hover{border-color:#6366f14d}.subject-card2.open{border-color:var(--accent)}.subject-card2.registered{border-left:3px solid #34d399}.subject-card2-header{cursor:pointer;justify-content:space-between;align-items:center;gap:.8rem;padding:.8rem 1rem;display:flex}.sub-left{flex-direction:column;flex:1;gap:.2rem;display:flex}.sub-top-row{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.sub-code{color:var(--accent-light);font-family:JetBrains Mono,monospace;font-size:.82rem;font-weight:600}.edu-tag{color:var(--text-muted);background:var(--bg);border:1px solid var(--border);border-radius:4px;padding:.05rem .35rem;font-size:.62rem;font-weight:700}.reg-badge{color:#34d399;background:#34d3991a;border:1px solid #34d39940;border-radius:10px;padding:.08rem .45rem;font-size:.62rem;font-weight:700}.sub-name{color:var(--text);font-size:.88rem;font-weight:500;line-height:1.3}.sub-meta-row{gap:.8rem;display:flex}.sub-meta{color:var(--text-muted);font-size:.72rem}.sub-chevron-wrap{align-items:center;gap:.5rem;display:flex}.arrow-icon{color:var(--text-muted);font-size:1.2rem;transition:transform .2s;display:inline-block}.arrow-icon.open{transform:rotate(90deg)}.arrow-icon.lg{font-size:1.4rem}.classes-panel{padding:0 1rem .8rem}.status-msg{color:#a5b4fc;background:#6366f10f;border:1px solid #6366f126;border-radius:6px;margin-bottom:.5rem;padding:.4rem .7rem;font-size:.78rem}.classes-list{flex-direction:column;gap:.3rem;display:flex}.classes-list-header{color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em;justify-content:space-between;padding:.3rem .6rem;font-size:.68rem;font-weight:600;display:flex}.class-row{background:var(--bg);border:1px solid var(--border);border-radius:8px;transition:border-color .15s;overflow:hidden}.class-row:hover{border-color:#6366f140}.class-row.expanded{border-color:var(--accent)}.class-row-header{cursor:pointer;justify-content:space-between;align-items:center;gap:.5rem;padding:.5rem .7rem;display:flex}.class-row-main{flex-wrap:wrap;flex:1;align-items:center;gap:.5rem;display:flex}.class-code-tag{color:var(--accent-light);font-family:JetBrains Mono,monospace;font-size:.78rem;font-weight:600}.class-id-tag{color:var(--text-muted);background:var(--surface);border:1px solid var(--border);border-radius:4px;padding:.05rem .35rem;font-family:monospace;font-size:.62rem}.class-lop{color:var(--text-muted);font-size:.7rem}.class-row-right{flex-shrink:0;align-items:center;gap:.5rem;display:flex}.pct-wrap{align-items:center;gap:.4rem;display:flex}.pct-bar-bg{background:var(--border);border-radius:2px;width:50px;height:4px;overflow:hidden}.pct-text{text-align:right;min-width:30px;font-size:.72rem;font-weight:700}.btn-register-quick{border:1px solid var(--border);background:var(--surface);cursor:pointer;width:28px;height:28px;color:var(--text);border-radius:6px;justify-content:center;align-items:center;font-size:.8rem;transition:all .15s;display:flex}.btn-register-quick:hover:not(.disabled){background:#34d39914;border-color:#34d399}.btn-register-quick.disabled{opacity:.4;cursor:not-allowed}.reg-msg{border-bottom:1px solid var(--border);padding:.35rem .7rem;font-size:.75rem}.reg-msg.ok{color:#34d399;background:#34d3990f}.reg-msg.fail{color:#f87171;background:#f871710f}.cal-panel{border-top:1px solid var(--border);padding:.5rem .7rem .7rem}.cal-loading{color:var(--text-muted);align-items:center;gap:.5rem;padding:.5rem 0;font-size:.78rem;display:flex}.cal-empty{color:var(--text-muted);padding:.5rem 0;font-size:.78rem}.cal-list{flex-direction:column;gap:.25rem;display:flex}.cal-slot{background:var(--surface);border-radius:6px;align-items:center;gap:.8rem;padding:.3rem .5rem;font-size:.78rem;display:flex}.cal-day{color:var(--accent-light);min-width:28px;font-weight:700}.cal-tiets{color:var(--text)}.cal-room{color:var(--text-muted)}.cal-date{color:var(--text-muted);margin-left:auto;font-size:.7rem}.history-section{margin-top:1.5rem}.history-grid{grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:.7rem;margin-top:.6rem;display:grid}.history-card{background:var(--surface);border:1px solid var(--border);border-radius:10px;flex-direction:column;gap:.3rem;padding:.7rem .9rem;display:flex}.hc-top{justify-content:space-between;align-items:center;display:flex}.hc-code{color:var(--accent-light);font-family:monospace;font-size:.82rem;font-weight:600}.hc-time{color:var(--text-muted);font-size:.68rem}.hc-name{color:var(--text);font-size:.8rem}.hc-classes{flex-wrap:wrap;gap:.3rem;display:flex}.hc-class-tag{color:var(--text-muted);background:var(--bg);border:1px solid var(--border);cursor:default;border-radius:4px;padding:.1rem .35rem;font-family:monospace;font-size:.65rem}.empty-state{text-align:center;color:var(--text-muted);padding:3rem 1rem;font-size:.9rem}.registered-page{padding:.5rem 0 3rem}.control-bar{flex-wrap:wrap;align-items:flex-end;gap:1rem;margin-bottom:1.5rem;display:flex}.input-group{flex-direction:column;gap:.4rem;display:flex}.input-group label{color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em;font-size:.78rem;font-weight:600}.input-group input{background:var(--surface);border:1px solid var(--border);color:var(--text);border-radius:8px;width:180px;padding:.6rem 1rem;font-family:Inter,sans-serif;font-size:.95rem}.input-group input:focus{border-color:var(--accent);outline:none;box-shadow:0 0 0 3px #6366f126}.toast{border-radius:10px;justify-content:space-between;align-items:center;margin-bottom:1rem;padding:.7rem 1rem;font-size:.85rem;animation:.25s fadeIn;display:flex}.toast.ok{color:#34d399;background:#34d3991a;border:1px solid #34d3994d}.toast.fail{color:#f87171;background:#f871711a;border:1px solid #f871714d}.toast-close{color:inherit;cursor:pointer;opacity:.7;background:0 0;border:none;padding:0 .3rem;font-size:1.1rem}.toast-close:hover{opacity:1}.check-classes-section{background:var(--surface);border:1px solid var(--border);border-radius:12px;margin-bottom:1.4rem;padding:1.2rem}.check-classes-title{color:var(--text);margin-bottom:.8rem;font-size:.85rem;font-weight:600}.check-classes-row{gap:.6rem;margin-bottom:.6rem;display:flex}.check-classes-row input{background:var(--bg);border:1px solid var(--border);color:var(--text);border-radius:8px;flex:1;padding:.6rem 1rem;font-family:Inter,sans-serif;font-size:.95rem}.check-classes-row input:focus{border-color:var(--accent);outline:none;box-shadow:0 0 0 3px #6366f126}.check-classes-msg{border-radius:8px;margin-top:.5rem;padding:.6rem .85rem;font-size:.82rem;line-height:1.5}.check-classes-msg.ok{color:#34d399;background:#34d3990f;border:1px solid #34d39933}.check-classes-msg.fail{color:#fbbf24;background:#fbbf240f;border:1px solid #fbbf2440}.summary-bar{background:var(--surface);border:1px solid var(--border);border-radius:12px;flex-wrap:wrap;align-items:center;gap:0;margin-bottom:1.4rem;display:flex;overflow:hidden}.summary-item{flex-direction:column;align-items:center;gap:.2rem;padding:.8rem 1.4rem;display:flex}.summary-label{color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em;font-size:.72rem;font-weight:600}.summary-val{color:var(--text);font-size:1.15rem;font-weight:700}.summary-val.fee{color:#a5b4fc}.summary-val.warn{color:#fbbf24}.summary-divider{background:var(--border);align-self:stretch;width:1px}.reg-list{flex-direction:column;gap:.7rem;display:flex}.reg-card{background:var(--surface);border:1px solid var(--border);border-left:3px solid #0000;border-radius:14px;padding:1.1rem 1.3rem;transition:border-color .15s}.reg-card:hover{border-color:var(--accent)}.reg-card.paid{border-left-color:#34d399}.reg-card.unpaid{border-left-color:#fbbf24}.reg-card-top{justify-content:space-between;align-items:flex-start;gap:1rem;display:flex}.reg-card-left{flex:1}.reg-code-row{flex-wrap:wrap;align-items:center;gap:.6rem;margin-bottom:.4rem;display:flex}.reg-class-code{color:var(--accent-light);background:#6366f114;border:1px solid #6366f133;border-radius:6px;padding:.15rem .5rem;font-family:JetBrains Mono,monospace;font-size:.82rem;font-weight:600}.reg-lop{color:var(--text-muted);background:var(--bg);border:1px solid var(--border);border-radius:5px;padding:.1rem .4rem;font-size:.72rem}.reg-status{border:1px solid;border-radius:10px;padding:.12rem .55rem;font-size:.7rem;font-weight:700}.reg-name{color:var(--text);margin-bottom:.5rem;font-size:.95rem;font-weight:600}.reg-meta-row{flex-wrap:wrap;gap:.8rem;display:flex}.reg-meta{color:var(--text-muted);font-size:.77rem}.reg-meta.fee.paid-fee{color:#34d399}.reg-meta.fee.unpaid-fee{color:#fbbf24}.reg-meta.deadline{color:#f87171}.reg-card-right{flex-shrink:0;align-items:center;display:flex}.btn-cancel{color:#f87171;cursor:pointer;white-space:nowrap;background:#f8717114;border:1px solid #f8717140;border-radius:8px;padding:.45rem .85rem;font-family:Inter,sans-serif;font-size:.83rem;font-weight:600;transition:all .15s}.btn-cancel:hover{background:#f871712e;border-color:#f87171}.no-cancel-badge{color:var(--text-muted);background:var(--bg);border:1px solid var(--border);white-space:nowrap;border-radius:8px;padding:.4rem .7rem;font-size:.72rem}.modal-box{background:var(--surface);border:1px solid var(--border);text-align:center;border-radius:18px;width:90%;max-width:380px;padding:2rem 2.2rem;animation:.2s slideUp;box-shadow:0 24px 60px #00000080}.modal-icon{margin-bottom:.8rem;font-size:2.2rem}.modal-box h3{color:var(--text);margin:0 0 .8rem;font-size:1.1rem;font-weight:700}.modal-box p{color:var(--text-muted);margin:0 0 1.5rem;font-size:.88rem;line-height:1.7}.modal-box p strong{color:var(--text)}.modal-box p code{color:var(--accent-light);font-family:monospace;font-size:.82rem}.modal-actions{justify-content:center;gap:.8rem;display:flex}.btn-danger-solid{color:#fff;cursor:pointer;background:#f87171;border:none;border-radius:10px;align-items:center;gap:.4rem;padding:.6rem 1.3rem;font-family:Inter,sans-serif;font-size:.88rem;font-weight:600;transition:all .15s;display:inline-flex}.btn-danger-solid:hover:not(:disabled){background:#ef4444;transform:translateY(-1px)}.btn-danger-solid:disabled{opacity:.5;cursor:not-allowed}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.reg-card-right{flex-shrink:0;align-items:center;gap:.5rem;display:flex}.btn-schedule{color:var(--accent-light);cursor:pointer;white-space:nowrap;background:#6366f114;border:1px solid #6366f140;border-radius:8px;padding:.45rem .85rem;font-family:Inter,sans-serif;font-size:.83rem;font-weight:600;transition:all .15s}.btn-schedule:hover{border-color:var(--accent);background:#6366f12e}.schedule-modal{flex-direction:column;max-height:88vh;display:flex;overflow-y:auto;text-align:left!important;width:95%!important;max-width:800px!important}.all-schedule-modal{max-width:900px!important}.schedule-table-wrap{border:1px solid var(--border);border-radius:10px;margin-top:.5rem;overflow-x:auto}.schedule-table{border-collapse:collapse;width:100%;font-size:.88rem}.schedule-table th{background:var(--surface2);color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em;text-align:left;border-bottom:1px solid var(--border);white-space:nowrap;padding:.65rem 1rem;font-size:.72rem;font-weight:700}.schedule-table td{border-bottom:1px solid var(--border);color:var(--text);padding:.65rem 1rem;font-size:.85rem}.schedule-table tr:last-child td{border-bottom:none}.schedule-table tr:hover td{background:#ffffff05}.thu-badge{color:var(--accent-light);white-space:nowrap;background:#6366f11a;border:1px solid #6366f140;border-radius:6px;padding:.15rem .5rem;font-size:.75rem;font-weight:700}.tiet-badge{background:var(--bg);border:1px solid var(--border);color:#fbbf24;white-space:nowrap;border-radius:5px;padding:.15rem .45rem;font-family:JetBrains Mono,monospace;font-size:.78rem;font-weight:600}.loai-badge{text-transform:uppercase;white-space:nowrap;border-radius:5px;padding:.15rem .45rem;font-size:.72rem;font-weight:700}.loai-badge.lt{color:#60a5fa;background:#3b82f61f;border:1px solid #3b82f640}.loai-badge.th{color:#34d399;background:#34d3991f;border:1px solid #34d39940}.summary-bar-wrapper{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1.4rem;display:flex}.summary-bar-wrapper .summary-bar{flex:1;margin-bottom:0}.btn-all-schedules{color:#c7d2fe;cursor:pointer;white-space:nowrap;background:linear-gradient(135deg,#6366f133,#a855f733);border:1px solid #6366f166;border-radius:12px;align-items:center;gap:.5rem;padding:.85rem 1.3rem;font-family:Inter,sans-serif;font-size:.88rem;font-weight:600;transition:all .2s;display:flex}.btn-all-schedules:hover{border-color:var(--accent);color:#fff;background:linear-gradient(135deg,#6366f159,#a855f759);transform:translateY(-1px);box-shadow:0 4px 14px #6366f133}.schedule-tabs{border-bottom:1px solid var(--border);gap:.5rem;margin-bottom:1.2rem;padding-bottom:.6rem;display:flex}.tab-btn{border:1px solid var(--border);color:var(--text-muted);cursor:pointer;background:0 0;border-radius:8px;padding:.45rem 1rem;font-family:Inter,sans-serif;font-size:.84rem;font-weight:600;transition:all .15s}.tab-btn:hover{color:var(--text);border-color:var(--text-muted)}.tab-btn.active{border-color:var(--accent);color:var(--accent-light);background:#6366f126}.weekly-schedule-grid{flex-direction:column;gap:.9rem;max-height:60vh;padding-right:.3rem;display:flex;overflow-y:auto}.day-schedule-card{background:var(--bg);border:1px solid var(--border);border-radius:12px;overflow:hidden}.day-schedule-header{background:var(--surface2);border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:.5rem 1rem;display:flex}.day-title{color:var(--accent-light);font-size:.9rem;font-weight:700}.day-count{color:var(--text-muted);font-size:.72rem;font-weight:600}.day-schedule-items{divide-y:1px solid var(--border);flex-direction:column;display:flex}.day-schedule-row{border-bottom:1px solid #ffffff0a;align-items:flex-start;gap:1rem;padding:.75rem 1rem;display:flex}.day-schedule-row:last-child{border-bottom:none}.day-schedule-row .time-col{flex-direction:column;flex-shrink:0;align-items:flex-start;gap:.35rem;width:100px;display:flex}.day-schedule-row .subject-info-col{flex-direction:column;flex:1;gap:.25rem;display:flex}.subject-info-col .subject-name{color:var(--text);font-size:.92rem;font-weight:600}.subject-info-col .subject-sub{flex-wrap:wrap;align-items:center;gap:.6rem;font-size:.78rem;display:flex}.subject-info-col .subject-sub code{color:var(--accent-light);font-size:.76rem}.subject-info-col .room-info{color:#34d399;font-weight:600}.subject-info-col .date-range{color:var(--text-muted);font-size:.74rem}.by-subject-wrap{flex-direction:column;gap:1rem;max-height:60vh;padding-right:.3rem;display:flex;overflow-y:auto}.subject-schedule-block{background:var(--bg);border:1px solid var(--border);border-radius:12px;padding:.8rem 1rem}.subject-block-header{justify-content:space-between;align-items:center;margin-bottom:.6rem;display:flex}.subject-block-header .sub-title{color:var(--text);font-size:.92rem;font-weight:600}.subject-block-header .sub-code code{color:var(--accent-light);font-size:.76rem}.error-box-mini{color:#f87171;background:#f8717114;border-radius:6px;padding:.4rem .6rem;font-size:.8rem}.no-data-mini{color:var(--text-muted);padding:.3rem 0;font-size:.8rem;font-style:italic}.register-page{padding:.5rem 0 2rem}.register-layout{grid-template-columns:1fr 1fr;gap:1.5rem;display:grid}@media (width<=900px){.register-layout{grid-template-columns:1fr}}.config-panel{background:var(--surface);border:1px solid var(--border);border-radius:16px;flex-direction:column;gap:1.2rem;padding:1.6rem;display:flex}.section-label{text-transform:uppercase;letter-spacing:.08em;color:var(--text-muted);font-size:.78rem;font-weight:700}.mode-grid{grid-template-columns:1fr 1fr;gap:.8rem;display:grid}.mode-btn{background:var(--bg);border:2px solid var(--border);cursor:pointer;text-align:left;border-radius:10px;flex-direction:column;gap:.25rem;padding:.75rem .9rem;transition:all .2s;display:flex}.mode-btn:hover{border-color:var(--accent)}.mode-btn.active{border-color:var(--accent);background:#6366f114;box-shadow:0 0 0 3px #6366f11f}.mode-label{color:var(--text);font-size:.85rem;font-weight:600}.mode-desc{color:var(--text-muted);font-size:.72rem}.form-grid{grid-template-columns:1fr 1fr;gap:1rem;display:grid}.field{flex-direction:column;gap:.35rem;display:flex}.field label{color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em;font-size:.78rem;font-weight:600}.field input,.field select{background:var(--bg);border:1px solid var(--border);color:var(--text);box-sizing:border-box;border-radius:8px;width:100%;padding:.55rem .8rem;font-family:Inter,sans-serif;font-size:.9rem;transition:border-color .2s}.field select{cursor:pointer}.field input:focus,.field select:focus{border-color:var(--accent);outline:none;box-shadow:0 0 0 3px #6366f126}.hint{color:var(--text-muted);font-size:.7rem}.hint-inline{color:var(--text-muted);text-transform:none;letter-spacing:0;font-size:.7rem;font-weight:400}.toggle-wrap{color:var(--text);cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;gap:.7rem;font-size:.88rem;display:flex}.toggle-wrap input[type=checkbox]{display:none}.toggle-box{background:var(--border);border-radius:10px;flex-shrink:0;width:36px;height:20px;transition:background .2s;position:relative}.toggle-box:after{content:"";background:#fff;border-radius:50%;width:14px;height:14px;transition:transform .2s;position:absolute;top:3px;left:3px}.toggle-wrap input:checked+.toggle-box{background:var(--accent)}.toggle-wrap input:checked+.toggle-box:after{transform:translate(16px)}.class-picker{flex-direction:column;gap:.7rem;display:flex}.class-item{background:var(--bg);border:1px solid var(--border);cursor:pointer;border-radius:8px;justify-content:space-between;align-items:center;padding:.5rem .75rem;font-size:.82rem;transition:border-color .15s;display:flex}.class-item:hover:not(.full){border-color:var(--accent)}.class-item.selected{border-color:var(--accent);background:#6366f114}.class-item.full{opacity:.45;cursor:not-allowed}.ci-left{align-items:center;gap:.5rem;display:flex}.ci-code{color:var(--accent-light);font-family:monospace;font-weight:600}.ci-lop{color:var(--text-muted);background:var(--surface);border:1px solid var(--border);border-radius:4px;padding:.05rem .35rem;font-size:.72rem}.ci-right{flex-shrink:0;align-items:center;gap:.5rem;display:flex}.pct-bar-bg{background:var(--border);border-radius:2px;height:4px;overflow:hidden}.pct-bar-fill{border-radius:2px;height:100%;transition:width .3s}.ci-pct{text-align:right;min-width:28px;font-size:.72rem;font-weight:700}.full-badge{color:#f87171;background:#f871711a;border:1px solid #f871714d;border-radius:5px;padding:.1rem .4rem;font-size:.65rem;font-weight:700}.form-grid .span-2{grid-column:1/-1}.detect-section{flex-direction:column;gap:.5rem;display:flex}.detect-result{border-radius:8px;padding:.5rem .85rem;font-size:.82rem;line-height:1.5}.detect-result.found{color:#34d399;background:#34d3990f;border:1px solid #34d39933}.detect-result.not-found{color:#fbbf24;background:#fbbf240f;border:1px solid #fbbf2440}.normal-config{flex-direction:column;gap:.7rem;display:flex}.class-list{flex-direction:column;gap:.35rem;max-height:250px;display:flex;overflow-y:auto}.class-item .ci-name{color:var(--text-muted);white-space:nowrap;text-overflow:ellipsis;max-width:200px;margin-left:.3rem;font-size:.75rem;overflow:hidden}.class-item .ci-tc{color:var(--accent-light);background:#6366f114;border:1px solid #6366f133;border-radius:4px;padding:.08rem .35rem;font-size:.68rem}.selected-info{color:#34d399;background:#34d3990f;border:1px solid #34d39933;border-radius:8px;padding:.5rem .8rem;font-size:.82rem}.selected-info.old{color:#a5b4fc;background:#6366f10f;border:1px solid #6366f133}.selected-info strong{color:var(--accent-light)}.action-row{flex-wrap:wrap;gap:.8rem;display:flex}.log-panel{background:var(--surface);border:1px solid var(--border);border-radius:16px;flex-direction:column;display:flex;overflow:hidden}.log-header{border-bottom:1px solid var(--border);color:var(--text);justify-content:space-between;align-items:center;padding:1rem 1.4rem;font-size:.88rem;font-weight:600;display:flex}.log-header-right{align-items:center;gap:.6rem;display:flex}.status-pill{letter-spacing:.04em;border-radius:20px;padding:.2rem .7rem;font-size:.72rem;font-weight:700}.status-pill.running{color:#34d399;background:#34d3991f;border:1px solid #34d3994d}.status-pill.done{color:#94a3b8;background:#94a3b81f;border:1px solid #94a3b84d}.btn-clear{border:1px solid var(--border);color:var(--text-muted);cursor:pointer;background:0 0;border-radius:6px;padding:.2rem .6rem;font-size:.75rem;transition:all .15s}.btn-clear:hover{color:#f87171;border-color:#f87171}.log-scroll{flex-direction:column;flex:1;gap:.2rem;min-height:320px;max-height:420px;padding:.8rem 1rem;font-family:JetBrains Mono,monospace;font-size:.76rem;display:flex;overflow-y:auto}.log-empty{color:var(--text-muted);text-align:center;padding:2rem 0;font-family:Inter,sans-serif}.log-line{color:var(--text);border-radius:4px;gap:.7rem;padding:.2rem .4rem;line-height:1.5;display:flex}.log-line.error{color:#f87171;background:#f871710f}.log-line.success{color:#34d399;background:#34d3990f}.log-line.warn{color:#fbbf24;background:#fbbf240f}.log-time{color:var(--text-muted);flex-shrink:0;padding-top:.1rem;font-size:.68rem}.tip-box{border-top:1px solid var(--border);color:var(--text-muted);padding:.9rem 1.2rem;font-size:.8rem;line-height:1.7}.tip-box strong{color:var(--text);margin-bottom:.3rem;display:block}.tip-box ul{margin:0;padding-left:1.2rem}.tip-box em{color:var(--accent-light);font-style:normal}.guide-page{padding:.5rem 0 3rem}.guide-content{background:var(--surface);border:1px solid var(--border);border-radius:16px;margin-top:1.5rem;padding:1.5rem;box-shadow:0 4px 20px #0000000d}.guide-image-container{background:var(--bg);border:1px solid var(--border);border-radius:8px;justify-content:center;align-items:center;display:flex;overflow:hidden}.guide-image{max-width:100%;height:auto;display:block}.dev-page{padding:.5rem 0 3rem}.dev-badge{color:#f87171;letter-spacing:.08em;background:#f871711f;border:1px solid #f871714d;border-radius:6px;margin-top:.5rem;padding:.2rem .6rem;font-size:.7rem;font-weight:700;display:inline-block}.dev-layout{grid-template-columns:380px 1fr;gap:1.5rem;display:grid}@media (width<=900px){.dev-layout{grid-template-columns:1fr}}.dev-panel{background:var(--surface);border:1px solid var(--border);border-radius:16px;overflow:hidden}.left-panel{flex-direction:column;gap:1.2rem;padding:1.4rem;display:flex}.ep-grid{flex-direction:column;gap:.35rem;display:flex}.ep-btn{background:var(--bg);border:1px solid var(--border);cursor:pointer;color:var(--text);text-align:left;border-radius:8px;align-items:center;gap:.7rem;padding:.55rem .8rem;font-family:Inter,sans-serif;font-size:.83rem;transition:all .15s;display:flex}.ep-btn:hover{border-color:var(--accent)}.ep-btn.active{border-color:var(--accent);background:#6366f114;box-shadow:0 0 0 2px #6366f11f}.method-tag{letter-spacing:.05em;text-align:center;border-radius:4px;flex-shrink:0;min-width:40px;padding:.12rem .4rem;font-size:.62rem;font-weight:700}.method-tag.get{color:#34d399;background:#34d3991f}.method-tag.post{color:#a5b4fc;background:#6366f11f}.method-tag.delete{color:#f87171;background:#f871711f}.method-tag.sm{min-width:32px;padding:.08rem .3rem;font-size:.55rem}.param-grid{flex-direction:column;gap:.7rem;display:flex}.param-field{flex-direction:column;gap:.3rem;display:flex}.param-field label{color:var(--accent-light);font-family:JetBrains Mono,monospace;font-size:.75rem;font-weight:600}.param-field input{background:var(--bg);border:1px solid var(--border);color:var(--text);border-radius:8px;padding:.5rem .8rem;font-family:JetBrains Mono,monospace;font-size:.88rem;transition:border-color .2s}.param-field input:focus{border-color:var(--accent);outline:none;box-shadow:0 0 0 3px #6366f126}.token-preview{flex-direction:column;gap:.3rem;display:flex}.token-preview code{color:var(--text-muted);background:var(--bg);border:1px solid var(--border);word-break:break-all;border-radius:6px;padding:.35rem .6rem;font-family:JetBrains Mono,monospace;font-size:.72rem}.btn-run{color:#fff;cursor:pointer;background:linear-gradient(135deg,#6366f1,#818cf8);border:none;border-radius:10px;justify-content:center;align-items:center;gap:.5rem;padding:.7rem 1.2rem;font-family:Inter,sans-serif;font-size:.9rem;font-weight:600;transition:all .2s;display:flex}.btn-run:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 6px 20px #6366f14d}.btn-run:disabled{opacity:.5;cursor:not-allowed;transform:none}.right-panel{flex-direction:column;display:flex}.result-header{border-bottom:1px solid var(--border);color:var(--text);justify-content:space-between;align-items:center;padding:.9rem 1.2rem;font-size:.88rem;font-weight:600;display:flex}.result-header-right{align-items:center;gap:.6rem;display:flex}.status-chip{letter-spacing:.04em;border-radius:4px;padding:.15rem .5rem;font-size:.68rem;font-weight:700}.status-chip.ok{color:#34d399;background:#34d3991f}.status-chip.err{color:#f87171;background:#f871711f}.elapsed{color:var(--text-muted);font-family:monospace;font-size:.72rem}.body-count{color:#a5b4fc;background:#6366f114;border:1px solid #6366f133;border-radius:10px;padding:.1rem .5rem;font-size:.68rem}.btn-copy{background:var(--bg);border:1px solid var(--border);color:var(--text-muted);cursor:pointer;border-radius:6px;padding:.2rem .5rem;font-size:.72rem;transition:all .15s}.btn-copy:hover{color:var(--accent-light);border-color:var(--accent)}.result-scroll{flex:1;min-height:300px;max-height:450px;padding:0;overflow:auto}.result-empty{height:100%;min-height:200px;color:var(--text-muted);justify-content:center;align-items:center;gap:.6rem;font-size:.88rem;display:flex}.json-view{color:#c4b5fd;white-space:pre-wrap;word-break:break-word;background:var(--bg);margin:0;padding:1rem 1.2rem;font-family:JetBrains Mono,monospace;font-size:.75rem;line-height:1.6}.history-section{border-top:1px solid var(--border)}.history-header{color:var(--text-muted);justify-content:space-between;align-items:center;padding:.6rem 1.2rem;font-size:.8rem;font-weight:600;display:flex}.btn-clear-sm{border:1px solid var(--border);color:var(--text-muted);cursor:pointer;background:0 0;border-radius:5px;padding:.15rem .5rem;font-size:.68rem}.btn-clear-sm:hover{color:#f87171;border-color:#f87171}.history-list{flex-direction:column;max-height:150px;display:flex;overflow-y:auto}.history-item{cursor:pointer;border-bottom:1px solid var(--border);align-items:center;gap:.6rem;padding:.4rem 1.2rem;font-size:.78rem;transition:background .1s;display:flex}.history-item:hover{background:#ffffff05}.history-item.err{background:#f8717108}.hi-label{color:var(--text);flex:1}.hi-time{color:var(--text-muted);font-size:.7rem}.hi-ms{color:var(--text-muted);text-align:right;min-width:45px;font-family:monospace;font-size:.7rem}.modal-overlay{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:1000;background:#000000a6;justify-content:center;align-items:center;animation:.2s fadeIn;display:flex;position:fixed;inset:0}.modal-content{background:var(--surface);border:1px solid var(--border);border-radius:16px;width:90%;max-width:500px;animation:.25s slideUp;overflow:hidden;box-shadow:0 10px 40px #0006}.modal-header{border-bottom:1px solid var(--border);background:#ffffff05;justify-content:space-between;align-items:center;padding:1rem 1.5rem;display:flex}.modal-header h3{color:var(--text);margin:0;font-size:1.1rem;font-weight:600}.btn-close{color:var(--text-muted);cursor:pointer;background:0 0;border:none;padding:0 .2rem;font-size:1.5rem;line-height:1;transition:color .2s}.btn-close:hover{color:var(--danger)}.feedback-form{flex-direction:column;gap:1.2rem;padding:1.5rem;display:flex}.modal-desc{color:var(--text-muted);font-size:.9rem;line-height:1.5}.modal-desc b{color:var(--accent-light)}.feedback-form textarea{border:1px solid var(--border);width:100%;color:var(--text);resize:vertical;background:#0003;border-radius:8px;min-height:100px;padding:1rem;font-family:Inter,sans-serif;font-size:.95rem;transition:border-color .2s}.feedback-form textarea:focus{border-color:var(--accent);outline:none}.modal-actions{justify-content:flex-end;gap:.8rem;margin-top:.5rem;display:flex}
