:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#111827;background:#f5f7fb;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,textarea{font:inherit}.app-shell{min-height:100vh;background:linear-gradient(135deg,rgba(37,99,235,.14),transparent 36%),linear-gradient(315deg,rgba(14,165,233,.13),transparent 42%),#f5f7fb}.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;width:min(1120px,calc(100% - 64px));margin:0 auto;padding:28px 0 20px}.brand-link{display:inline-flex;align-items:center;gap:12px;border:0;padding:0;color:#111827;background:transparent;font-size:1.4rem;font-weight:800;cursor:pointer}.brand-mark{display:grid;place-items:center;width:40px;height:40px;border-radius:8px;color:#fff;background:#111827;font-weight:800}h1,h2,p{margin:0}h1{font-size:1.4rem;letter-spacing:0}.workspace{display:grid;align-items:start;width:min(1120px,calc(100% - 64px));min-height:calc(100vh - 92px);margin:0 auto;padding:24px 0 72px}.upload-layout{display:grid;grid-template-columns:minmax(0,.9fr) minmax(360px,1fr);gap:44px;align-items:center}.auth-layout{display:grid;grid-template-columns:minmax(0,.9fr) minmax(360px,1fr);gap:44px;align-items:start}.player-page{display:grid;gap:22px}.dashboard-page,.settings-page{display:grid;gap:20px}.settings-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:18px;align-items:start}.settings-nav{display:grid;gap:6px;border:1px solid rgba(15,23,42,.08);border-radius:8px;padding:8px;background:#ffffffd1}.settings-nav button{min-height:38px;border:0;border-radius:6px;padding:0 10px;color:#475569;background:transparent;font-size:.84rem;font-weight:800;text-align:left;cursor:pointer}.settings-nav button:hover,.settings-nav button.active{color:#1d4ed8;background:#eff6ff}.dashboard-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.dashboard-title-row{display:flex;align-items:center;gap:12px}.dashboard-heading h2{color:#0f172a;font-size:clamp(1.65rem,2.4vw,2.7rem);line-height:1.05}.dashboard-heading p:not(.eyebrow){margin-top:10px;color:#536071;line-height:1.65}.settings-heading-copy .eyebrow,.settings-heading-copy h2,.settings-heading-copy p{margin-right:0;margin-left:0}.settings-heading-copy h2{margin-top:12px}.settings-heading-copy p{display:inline-flex;align-items:center;gap:8px;margin-top:6px}.settings-heading-copy p span{width:6px;height:6px;border-radius:999px;background:#2563eb}.dashboard-actions{display:flex;align-items:center;gap:10px}.dashboard-actions .preview-button,.dashboard-actions .primary-button{min-height:50px}.compact-button{min-height:36px;border-radius:7px;padding:0 12px;font-size:.82rem}.profile-button{display:inline-flex;align-items:center;gap:10px;min-height:50px;border:1px solid rgba(37,99,235,.18);border-radius:8px;padding:0 12px 0 8px;color:#1f2937;background:#ffffffb8;cursor:pointer;box-shadow:0 12px 28px #2563eb14}.profile-button:hover{border-color:#2563eb5c;background:#eff6ffeb}.profile-initials{display:grid;place-items:center;width:34px;height:34px;border-radius:999px;color:#fff;background:#1d4ed8;font-size:.78rem;font-weight:900}.profile-copy{display:grid;gap:1px;text-align:left}.profile-copy strong{color:#111827;font-size:.86rem;line-height:1.1}.profile-copy small{color:#64748b;font-size:.72rem;font-weight:800;line-height:1.1;text-transform:capitalize}.dashboard-heading>.preview-button{min-height:50px}.video-list,.user-list{display:grid;gap:10px}.video-list-item,.user-list-item,.empty-state{border:1px solid rgba(15,23,42,.08);border-radius:8px;background:#ffffffe0}.video-list-item,.user-list-item{display:grid;align-items:center;gap:16px;width:100%;padding:13px 14px;color:#1f2937;text-align:left}.video-list-item{grid-template-columns:112px minmax(0,1fr) auto}.user-list-item{grid-template-columns:minmax(0,1fr) auto}.video-list-item{cursor:pointer}.video-list-item:hover{border-color:#2563eb61;background:#eff6ff}.video-list-item span,.user-list-item span{display:grid;gap:4px;min-width:0}.video-list-item small,.user-list-item small{color:#64748b;font-size:.78rem}.video-thumb{display:grid;place-items:center;width:112px;aspect-ratio:16 / 9;overflow:hidden;border-radius:6px;color:#fff3;background:#0f172a;font-size:1.25rem}.video-thumb img{width:100%;height:100%;object-fit:cover}.empty-state,.settings-section{padding:50px 16px}.settings-section{display:grid;gap:18px;border:1px solid rgba(15,23,42,.08);border-radius:8px;background:#ffffffe6}.settings-section .sidebar-header{width:min(100%,520px);margin:0 auto}.settings-form{display:grid;gap:15px;width:min(100%,520px);margin:0 auto}.user-list-panel{display:grid;gap:10px;width:min(100%,520px);margin:0 auto}.settings-divider{width:min(100%,520px);height:1px;border:0;margin:8px auto;background:#0f172a14}.settings-form label{gap:6px;color:#64748b;font-size:.78rem;font-weight:800}.settings-form input,.settings-form select{min-height:42px;border:1px solid #dbe3ef;border-radius:8px;padding:0 12px;color:#111827;background:#fff;font-size:.9rem}.settings-form input:disabled,.settings-form select:disabled,.muted-field input{color:#94a3b8;background:#f8fafc}.settings-form .primary-button{width:fit-content;min-height:40px;font-size:.84rem}.empty-state{display:grid;gap:6px;color:#536071}.empty-state h3{margin:0;color:#0f172a}.user-form{display:grid;grid-template-columns:repeat(5,minmax(0,1fr)) auto;gap:8px}.user-form input,.user-form select{min-height:38px;border:1px solid #dbe3ef;border-radius:7px;padding:0 10px;color:#1f2937;background:#fff;font-size:.86rem}.user-form .primary-button{min-height:38px;font-size:.84rem}.editor-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.player-copy h2{margin-top:10px;color:#0f172a;font-size:clamp(1.65rem,2.4vw,2.7rem);line-height:1.05;overflow-wrap:anywhere}.player-copy p:not(.eyebrow){margin-top:10px;color:#536071;line-height:1.65;overflow-wrap:anywhere}.preview-page{display:grid;gap:22px}.preview-player-shell{display:grid;gap:12px}.preview-player-area{position:relative;display:block;width:100%;aspect-ratio:16 / 9;overflow:hidden;border:0;border-radius:8px;padding:0;background:#0f172a;box-shadow:0 28px 80px #0f172a29;cursor:pointer}.preview-video-tile{position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;pointer-events:none}.preview-video-tile.active{opacity:1}.preview-video{width:100%;height:100%;object-fit:contain;pointer-events:none}.player-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:40;display:grid;place-items:center;border:0;color:#fff;background:#0f172a47;pointer-events:none}.play-overlay{font-size:4rem;z-index:50}.play-overlay.over-spinner,.preview-loading-overlay{background:transparent}.mini-spinner{width:54px;height:54px;border:4px solid rgba(255,255,255,.36);border-top-color:#fff;border-radius:999px;animation:spin .85s linear infinite}.preview-bars{position:relative;display:flex;height:34px;overflow:hidden;border-radius:8px;background:#e5edf7}.preview-bars-progress{position:absolute;inset:0 auto 0 0;z-index:0;background:#2563eb24;pointer-events:none}.preview-chapter-bar{position:relative;z-index:1;min-width:36px;border:0;border-right:1px solid #ffffff;padding:0 8px;color:#1e3a8a;background:#2563eb21;font-size:.78rem;font-weight:800;text-align:left;overflow:hidden;cursor:pointer}.preview-chapter-fill{position:absolute;inset:0 auto 0 0;background:#2563eb47;pointer-events:none}.preview-chapter-label{position:relative;z-index:1;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.preview-selector{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}.preview-checkbox{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;border:1px solid #dbe3ef;border-radius:8px;padding:10px 12px;background:#ffffffe6;color:#1f2937}.preview-checkbox input{width:16px;height:16px}.preview-checkbox span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.preview-checkbox small{color:#64748b;font-size:.76rem}.player-layout{display:grid;grid-template-columns:minmax(0,1fr) clamp(340px,34vw,440px);gap:24px;align-items:start;min-width:0}.video-panel{position:relative;display:grid;place-items:center;width:100%;aspect-ratio:16 / 9;min-height:280px;overflow:hidden;border:1px solid rgba(15,23,42,.1);border-radius:8px;padding:0;background:#0f172a;box-shadow:0 28px 80px #0f172a29;cursor:pointer}.video-player{width:100%;height:100%;background:#0f172a}.video-poster{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:cover}.video-poster-placeholder{display:grid;place-items:center;color:#fff3;font-size:3rem}.video-panel:disabled{cursor:default}.video-loading{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;display:grid;place-items:center;background:#0f172ad1}.player-main{display:grid;gap:18px;min-width:0;overflow:hidden}.chapter-timeline-block{display:grid;gap:8px}.timeline-meta{display:flex;justify-content:space-between;color:#64748b;font-size:.84rem;font-weight:700}.chapter-timeline{position:relative;height:72px;padding:0 24px;border:1px solid rgba(15,23,42,.08);border-radius:8px;background:linear-gradient(90deg,rgba(37,99,235,.16) 1px,transparent 1px) 0 0 / 10% 100%,#fff;overflow:hidden}.chapter-bar-lane,.timeline-rail,.timeline-add-lane{position:absolute;right:24px;left:24px}.chapter-bar-lane{top:8px;height:18px}.timeline-rail{top:33px;height:4px;border:0;border-radius:999px;padding:0;background:#d8e0ed;cursor:pointer}.timeline-progress{position:absolute;inset:0 auto 0 0;z-index:1;height:4px;border-radius:999px;background:#2563eb;pointer-events:none}.timeline-add-lane{top:43px;height:24px;border:0;padding:0;background:transparent;cursor:crosshair}.timeline-add-guide{position:absolute;top:-39px;bottom:0;width:1px;background:#2563eb5c;pointer-events:none}.chapter-segment{position:absolute;top:0;z-index:1;height:13px;border:0;border-radius:3px;padding:0;background:#2563eb14;box-shadow:inset 1px 0 #fff,inset -1px 0 #fff;color:#1d4ed8;font-size:.66rem;font-weight:900;line-height:13px;overflow:hidden;text-align:center;cursor:pointer}.chapter-segment:hover,.chapter-segment.active{background:#2563eb3d;color:#1d4ed8}.chapter-segment.selected{box-shadow:inset 0 0 0 1px #2563eb7a,inset 1px 0 #fff,inset -1px 0 #fff}.chapter-segment span{display:block;padding:0 5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:none}.timeline-marker{position:absolute;top:27px;z-index:2;display:grid;justify-items:center;gap:4px;width:max-content;min-height:34px;margin-left:0;border:0;padding:0;color:#1f2937;background:transparent;font-size:.66rem;font-weight:800;cursor:grab;touch-action:none;transform:translate(-50%)}.timeline-marker:before{content:"";width:12px;height:12px;border:2px solid #ffffff;border-radius:999px;background:#2563eb;box-shadow:0 7px 18px #2563eb47}.timeline-marker span{display:block;max-width:32px;pointer-events:none}.timeline-marker.boundary{cursor:pointer}.timeline-marker.boundary:before{background:#0f172a}.timeline-marker.active:before{background:#1d4ed8;box-shadow:0 0 0 5px #2563eb29}.timeline-marker:active{cursor:grabbing}.chapter-editor{display:grid;gap:10px;padding:14px;border:1px solid rgba(15,23,42,.08);border-radius:8px;background:#ffffffe6;box-shadow:0 18px 48px #0f172a1a}.chapter-sidebar{display:grid;gap:8px;min-width:0;max-height:calc(100vh - 220px);overflow:auto;padding:12px;border:1px solid rgba(15,23,42,.08);border-radius:8px;background:#ffffffdb;box-shadow:0 18px 48px #0f172a17}.sidebar-header{color:#334155;font-size:.82rem;font-weight:900;text-transform:uppercase}.chapter-list-item{display:grid;gap:10px;min-width:0;border:1px solid #e2e8f0;border-radius:8px;padding:9px;background:#fff}.chapter-list-item.active,.chapter-list-item:hover{border-color:#2563eb;background:#eff6ff}.chapter-list-item.current{border-color:#2563eb6b;background:#fff}.chapter-list-item.active.current{box-shadow:inset 3px 0 #2563eb}.chapter-list-summary{display:grid;grid-template-columns:34px minmax(0,1fr);gap:9px;width:100%;border:0;padding:0;color:#1f2937;background:transparent;text-align:left;cursor:pointer}.chapter-list-number{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;color:#fff;background:#2563eb;font-size:.72rem;font-weight:900}.chapter-list-summary strong,.chapter-list-summary small{display:block}.chapter-list-summary strong{color:#0f172a;font-size:.8rem}.chapter-list-summary small{margin-top:3px;color:#64748b;font-size:.72rem;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-chapter-editor{display:grid;gap:9px;padding-top:10px;border-top:1px solid #dbe3ef}.chapter-row{display:grid;gap:8px}.two-columns{grid-template-columns:repeat(2,minmax(0,1fr))}.point-editor-row{grid-template-columns:minmax(120px,180px) auto minmax(0,1fr);align-items:end}.point-actions{display:flex;align-items:center;justify-content:flex-start;gap:8px}.save-actions{justify-content:flex-end}.icon-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;width:36px;height:36px;border:1px solid #d5dce8;border-radius:6px;color:#1f2937;background:#fff;font-size:1rem;font-weight:900;cursor:pointer}.nav-icon-button{width:auto;min-width:92px;padding:0 10px;font-size:.74rem;line-height:1}.icon-button i{font-size:.92rem;line-height:1;display:block}.icon-button:hover{border-color:#2563eb;background:#eff6ff}.danger-icon{color:#991b1b;border-color:#fecaca;background:#fff1f2}.icon-button:disabled{cursor:not-allowed;opacity:.5}.adjust-row{grid-template-columns:auto repeat(5,minmax(42px,1fr)) auto repeat(5,minmax(42px,1fr));align-items:center;min-width:0}.adjust-row>span:first-child{color:#334155;font-size:.76rem;font-weight:800}.adjust-row button{min-height:28px;border:1px solid #d5dce8;border-radius:6px;color:#1f2937;background:#fff;font-size:.68rem;font-weight:800;padding:0 6px;cursor:pointer}.adjust-row button:hover{border-color:#2563eb;background:#eff6ff}.adjust-divider{width:1px;height:22px;background:#cbd5e1}.muted-note{color:#64748b;font-size:.9rem;line-height:1.5}.editor-actions{display:flex;justify-content:space-between;gap:12px}.danger-button{min-height:36px;border:1px solid #fecaca;border-radius:6px;padding:0 12px;color:#991b1b;background:#fff1f2;font-size:.76rem;font-weight:800;cursor:pointer}.danger-button:disabled{cursor:not-allowed;opacity:.58}.intro{max-width:520px}.eyebrow{color:#2563eb;font-size:.78rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.intro h2,.status-view h2{margin-top:10px;color:#0f172a;font-size:clamp(2.3rem,4vw,4.6rem);line-height:1;letter-spacing:0}.intro p:not(.eyebrow),.status-view p:not(.eyebrow){margin-top:18px;color:#536071;font-size:1.02rem;line-height:1.7}.upload-panel,.auth-panel{display:grid;gap:16px;padding:22px;border:1px solid rgba(15,23,42,.08);border-radius:8px;background:#ffffffd6;box-shadow:0 28px 80px #0f172a1f;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.auth-form{display:grid;gap:16px}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;border:1px solid #dbe3ef;border-radius:8px;padding:4px;background:#f8fafc}.auth-tabs button{min-height:36px;border:0;border-radius:6px;color:#475569;background:transparent;font-size:.86rem;font-weight:800;cursor:pointer}.auth-tabs button.active{color:#1d4ed8;background:#fff;box-shadow:0 8px 20px #2563eb1a}.dropzone{display:grid;place-items:center;gap:8px;min-height:220px;padding:28px;border:1.5px dashed #9aa7b9;border-radius:8px;color:#1f2937;background:#f8fafc;cursor:pointer;transition:border-color .16s ease,background .16s ease,transform .16s ease}.dropzone:hover,.dropzone.is-dragging{border-color:#2563eb;background:#eff6ff;transform:translateY(-1px)}.dropzone.has-file{border-color:#2563eb;background:#eff6ff}.upload-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:8px;color:#fff;background:#111827;font-size:1.7rem}.drop-title{max-width:100%;color:#111827;font-weight:800;overflow-wrap:anywhere}.drop-meta{color:#64748b;font-size:.92rem}label{display:grid;gap:7px;color:#334155;font-size:.9rem;font-weight:700}.chapter-editor label,.sidebar-chapter-editor label{gap:5px;color:#475569;font-size:.74rem;font-weight:700}input,textarea{width:100%;border:1px solid #d5dce8;border-radius:8px;padding:12px 13px;color:#111827;background:#fff;outline:none}.chapter-editor input,.chapter-editor textarea,.sidebar-chapter-editor input,.sidebar-chapter-editor textarea{border-radius:6px;padding:8px 9px;font-size:.78rem;line-height:1.35}.chapter-editor textarea,.sidebar-chapter-editor textarea{min-height:78px}input:focus,textarea:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb24}textarea{resize:vertical}.primary-button,.secondary-button{min-height:48px;border:0;border-radius:8px;padding:0 18px;font-weight:800;cursor:pointer}.chapter-editor .primary-button,.sidebar-chapter-editor .primary-button{min-height:36px;border-radius:6px;padding:0 12px;font-size:.78rem}.primary-button:disabled{cursor:not-allowed;opacity:.68}.primary-button{color:#fff;background:#111827}.primary-button:hover{background:#263244}.secondary-button{margin-top:28px;color:#fff;background:#2563eb}.preview-button{display:inline-flex;align-items:center;gap:8px;min-height:38px;border:1px solid rgba(37,99,235,.22);border-radius:8px;padding:0 13px;color:#1d4ed8;background:#ffffffb8;font-size:.86rem;font-weight:800;text-decoration:none;white-space:nowrap;box-shadow:0 12px 28px #2563eb14}.preview-button:hover{border-color:#2563eb61;background:#eff6ffeb}.error{border-radius:8px;padding:12px 14px;color:#991b1b;background:#fee2e2;font-size:.92rem}.status-view{display:grid;justify-items:center;max-width:680px;margin:0 auto;text-align:center}.loader{width:64px;height:64px;margin-bottom:24px;border:5px solid #dbeafe;border-top-color:#2563eb;border-radius:999px;animation:spin .9s linear infinite}.success-mark{display:grid;place-items:center;width:64px;height:64px;margin-bottom:24px;border-radius:8px;color:#fff;background:#2563eb;font-size:2rem;font-weight:900}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:820px){.workspace{align-items:start;padding-top:24px}.upload-layout,.auth-layout{grid-template-columns:1fr;gap:28px}.dashboard-heading{flex-direction:column}.dashboard-actions{width:100%}.user-form,.settings-layout{grid-template-columns:1fr}.player-layout{grid-template-columns:1fr;gap:24px}.chapter-sidebar{max-height:none}.two-columns,.point-editor-row,.adjust-row{grid-template-columns:1fr}.point-actions{justify-content:flex-start}.adjust-divider{width:100%;height:1px}.intro h2,.status-view h2{font-size:2.45rem}.editor-heading{align-items:stretch;flex-direction:column}.preview-button{justify-content:center;width:fit-content}.upload-panel{padding:16px}}
