.tt-hls{--blue:#1366d6;--pale:#eff6ff;--ink:#14263e;--border:#e3eaf3;max-width:1240px;margin:0 auto;color:var(--ink);font-family:inherit;font-size:15px;line-height:1.5}.tt-hls *{box-sizing:border-box}.tt-hls-header{background:linear-gradient(115deg,#1467d6,#2d95ed);color:white;padding:32px;border-radius:20px;display:flex;align-items:center;justify-content:space-between;gap:14px}.tt-hls-eyebrow{font-size:12px;font-weight:800;letter-spacing:1.4px}.tt-hls-header h2{font-size:30px;color:white;margin:6px 0}.tt-hls-header p{color:#e9f3ff;margin:0}.tt-hls-header-icon{font-size:56px}.tt-hls-grades{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:22px 0}.tt-hls-grades a{display:block;text-align:center;background:#fff;padding:17px 6px;border:1px solid var(--border);border-radius:13px;font-size:16px;font-weight:750;text-decoration:none;color:var(--ink)}.tt-hls-grades a.active,.tt-hls-grades a:hover{border-color:var(--blue);background:var(--pale);color:var(--blue)}.tt-hls-filters{padding:18px;border:1px solid var(--border);border-radius:16px;display:grid;grid-template-columns:1fr 1fr 1.3fr auto;gap:12px;align-items:end;background:#fff}.tt-hls label{display:flex;flex-direction:column;gap:5px;font-weight:650;font-size:13px}.tt-hls input,.tt-hls select,.tt-hls textarea{background:#fff;color:var(--ink);border:1px solid #cdd8e6;border-radius:9px;min-height:42px;padding:9px 11px;font:inherit;width:100%;max-width:none}.tt-hls button{background:var(--blue);color:white;border:0;border-radius:9px;padding:11px 18px;font:inherit;font-weight:750;cursor:pointer;min-height:42px}.tt-hls button:hover{background:#084cae}.tt-hls-subjects{margin-top:24px}.tt-hls-chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:11px}.tt-hls-chips a{padding:8px 11px;border:1px solid var(--border);border-radius:99px;color:#334b68;text-decoration:none;font-size:13px}.tt-hls-chips a.selected,.tt-hls-chips a:hover{background:var(--blue);border-color:var(--blue);color:#fff}.tt-hls-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:27px 0 14px}.tt-hls-section-head h3{font-size:22px;margin:0}.tt-hls-section-head span{color:#687b92}.tt-hls-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.tt-hls-card{padding:20px;background:white;border:1px solid var(--border);border-radius:15px;min-height:225px;display:flex;flex-direction:column;box-shadow:0 4px 15px rgba(14,42,80,.035)}.tt-hls-file-icon{padding:8px 10px;background:#e7efff;color:#155bd0;font-weight:800;border-radius:9px;align-self:start;font-size:12px}.tt-hls-file-icon.ppt{background:#fff0e7;color:#c35717}.tt-hls-card-meta{font-size:12px;color:#61738c;margin:12px 0 5px}.tt-hls-card h4{font-size:17px;margin:0 0 8px;color:#152b47}.tt-hls-card p{font-size:13px;color:#5c6f87;margin:0 0 17px}.tt-hls-card-footer{margin-top:auto;display:flex;justify-content:space-between;gap:10px;align-items:center}.tt-hls-card-footer a{color:var(--blue);font-weight:700;text-decoration:none}.tt-hls-card-footer small{color:#697a8f}.tt-hls-empty{grid-column:1/-1;padding:37px 18px;background:#f7faff;border:1px dashed #bdd1e9;border-radius:13px;text-align:center;color:#61738c}.tt-hls-pagination{display:flex;justify-content:center;gap:7px;margin:22px 0}.tt-hls-pagination a{padding:7px 12px;border:1px solid var(--border);border-radius:8px;text-decoration:none}.tt-hls-pagination a.active{background:var(--blue);color:white}.tt-hls-upload{margin-top:30px;background:#f5f9ff;border:1px solid #d9e8fb;border-radius:17px;padding:24px}.tt-hls-upload h3{margin:5px 0;font-size:23px}.tt-hls-upload p{color:#536982}.tt-hls-upload-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:20px}.tt-hls-upload-form .wide{grid-column:1/-1}.tt-hls-upload-form button{justify-self:start}.tt-hls-upload-form small{font-weight:400;color:#60738b}.tt-hls-message{background:#e8f5ee;color:#14583c;border:1px solid #a9d9c3;padding:12px;border-radius:9px}.tt-hls-login{background:white;padding:14px;border-radius:10px}.tt-hls-note{margin:18px 2px;font-size:12px;color:#697a8f}@media(max-width:900px){.tt-hls-filters{grid-template-columns:1fr 1fr}.tt-hls-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.tt-hls-header{padding:21px}.tt-hls-header h2{font-size:23px}.tt-hls-header-icon{display:none}.tt-hls-grades{gap:5px}.tt-hls-grades a{font-size:12px;padding:13px 2px}.tt-hls-filters,.tt-hls-grid,.tt-hls-upload-form{grid-template-columns:1fr}.tt-hls-upload-form .wide{grid-column:auto}.tt-hls-upload{padding:17px}.tt-hls-section-head h3{font-size:18px}}

.tt-hls-progress{margin-top:12px}.tt-hls-progress-bar{height:10px;overflow:hidden;border-radius:30px;background:#e7edf7}.tt-hls-progress-bar span{display:block;width:0;height:100%;background:#216bd6;transition:width .15s ease}.tt-hls-progress-label{display:block;margin-top:6px;color:#52657f}.tt-hls-ajax-message{padding:12px 15px;border-radius:10px;background:#e9f7ee;color:#166534;font-weight:600}.tt-hls-ajax-message.tt-hls-error{background:#fff1f0;color:#a11d20}.tt-hls-send:disabled{opacity:.6;cursor:progress}

/* v0.5.0: inline management and recovery-safe trash */
.tt-hls-card-actions{display:flex;gap:8px;flex-wrap:wrap;border-top:1px solid var(--border);padding-top:12px;margin-top:13px}
.tt-hls .tt-hls-card-actions button{min-height:35px;padding:6px 13px;font-size:13px;background:#edf5ff;color:#0758b7;border:1px solid #c8ddf8}
.tt-hls .tt-hls-card-actions .tt-hls-delete-btn{background:#fff3f2;color:#b32128;border-color:#f2d1d1}
.tt-hls-edit-panel{margin:24px 0;padding:22px;border:1px solid #b8d5fa;border-radius:16px;background:#f6faff;scroll-margin-top:25px}
.tt-hls-edit-panel[hidden]{display:none}
.tt-hls-edit-panel h3{margin:0 0 6px;font-size:22px}
.tt-hls-edit-panel p{color:#526982;font-size:14px}
.tt-hls-edit-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}
.tt-hls-edit-form .wide{grid-column:1/-1}
.tt-hls-edit-actions{display:flex;gap:10px;align-items:center}
.tt-hls .tt-hls-cancel{background:#e6ecf5;color:#273f5a}
.tt-hls-edit-message{border-radius:9px;background:#e9f7ee;color:#166534;padding:10px 12px}
.tt-hls-edit-message.tt-hls-error{background:#fff1f0;color:#a11d20}
@media(max-width:600px){.tt-hls-edit-form{grid-template-columns:1fr}.tt-hls-edit-form .wide{grid-column:auto}}
/* Cover previews – v0.6.0 */
.tt-hls .tt-hls-cover{width:100%;aspect-ratio:16/9;margin-bottom:12px;overflow:hidden;border-radius:12px;background:#e9f0fa;border:1px solid #d9e4f1}
.tt-hls .tt-hls-cover img{width:100%;height:100%;display:block;object-fit:contain;background:#e8ecf1}
.tt-hls .tt-hls-cover-fallback{width:100%;height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;font-size:30px;font-weight:800;color:#1b61af;background:linear-gradient(135deg,#e0f1ff,#f4f8ff)}
.tt-hls .tt-hls-cover-fallback.word{color:#23764e;background:linear-gradient(135deg,#e2f5e8,#f4fff7)}
.tt-hls .tt-hls-cover-fallback small{font-size:12px;font-weight:500;color:#60738b}
.tt-hls .tt-hls-card-actions{flex-wrap:wrap}
.tt-hls .tt-hls-regenerate-btn,.tt-hls .tt-hls-cover-upload-btn{font-size:12px;cursor:pointer}
.tt-hls .tt-hls-cover-hint{font-size:11px;color:#66788a;display:block;margin:-5px 0 8px}
