/* Lecture attachments and readers. */
.lecture-media-sheet{max-width:720px}.lecture-material-field{display:grid;gap:12px}.lecture-material-heading label{display:block;font-weight:700}.lecture-material-heading small{display:block;margin-top:5px;color:var(--muted);font-size:.82rem;line-height:1.5}.lecture-current-material{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid color-mix(in srgb,var(--accent) 25%,var(--line));border-radius:14px;background:color-mix(in srgb,var(--accent) 7%,var(--surface));transition:opacity .18s ease}.lecture-current-material.is-replaced{opacity:.45}.lecture-current-material>div{min-width:0;display:grid;gap:3px}.lecture-current-material strong,.lecture-current-url{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lecture-current-material small{color:var(--muted)}.lecture-material-kind{width:max-content;padding:3px 7px;border-radius:999px;background:color-mix(in srgb,var(--accent) 13%,transparent);color:var(--accent);font-size:.72rem;font-weight:750}.lecture-dropzone{min-height:132px;display:grid;place-items:center;align-content:center;gap:5px;padding:18px;border:1.5px dashed color-mix(in srgb,var(--accent) 38%,var(--line));border-radius:18px;background:color-mix(in srgb,var(--accent) 4%,var(--surface));text-align:center;cursor:pointer;transition:border-color .16s ease,background-color .16s ease,transform .16s ease}.lecture-dropzone.dragging,.lecture-dropzone:hover{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 8%,var(--surface))}.lecture-dropzone:active{transform:scale(.995)}.lecture-drop-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:color-mix(in srgb,var(--accent) 12%,transparent);color:var(--accent);font-size:22px;font-weight:700}.lecture-dropzone strong{font-size:.95rem}.lecture-dropzone small{color:var(--muted);font-size:.78rem}.lecture-dropzone b{margin-top:3px;color:var(--accent);font-size:.82rem}.lecture-selected-file{position:relative;display:grid;gap:3px;padding:11px 42px 11px 13px;border:1px solid var(--line);border-radius:13px;background:var(--surface-2)}.lecture-selected-file strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lecture-selected-file small{color:var(--muted);font-size:.76rem}.lecture-selected-file button{position:absolute;inset-inline-end:8px;top:50%;translate:0 -50%;width:30px;height:30px;border:0;border-radius:50%;background:var(--surface-3);color:var(--text);font-size:18px}.lecture-or{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:.75rem}.lecture-or::before,.lecture-or::after{content:"";height:1px;flex:1;background:var(--line)}.lecture-video-link{display:grid;gap:7px;font-weight:650}.lecture-upload-progress{display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px}.lecture-upload-progress>div{height:7px;overflow:hidden;border-radius:999px;background:var(--surface-3)}.lecture-upload-progress i{display:block;width:0;height:100%;background:var(--accent);transition:width .15s ease}.lecture-upload-progress span{min-width:3ch;color:var(--muted);font-size:.78rem;text-align:end}.lecture-media-status{min-height:1.2em;margin:8px 0;color:var(--muted);font-size:.82rem}.lecture-card[data-lecture-media="1"] .subject-card-copy p{color:var(--accent);font-weight:650}

.lecture-video-viewer{position:fixed;inset:0;z-index:320;display:grid;place-items:center;padding:18px;background:rgba(2,4,8,.88);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px)}.lecture-video-panel{width:min(1240px,100%);height:min(820px,calc(100dvh - 36px));display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden;border:1px solid rgba(255,255,255,.11);border-radius:28px;background:#05070a;color:#fff;box-shadow:0 34px 120px rgba(0,0,0,.64);color-scheme:dark}.lecture-video-panel>header{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 14px 12px 20px;border-bottom:1px solid rgba(255,255,255,.09);background:rgba(13,16,22,.96);backdrop-filter:blur(16px)}.lecture-video-panel>header>div:first-child{min-width:0;display:grid;gap:3px}.lecture-video-panel>header span{color:#8f98a7;font-size:.68rem;font-weight:750;text-transform:uppercase;letter-spacing:.1em}.lecture-video-panel>header strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:1rem;font-weight:760}.lecture-video-panel>header>div:last-child{display:flex;align-items:center;gap:7px}.lecture-video-panel header a,.lecture-video-panel header button,.lecture-video-error a{min-height:40px;display:inline-flex;align-items:center;justify-content:center;padding:0 12px;border:1px solid rgba(255,255,255,.13);border-radius:12px;background:rgba(255,255,255,.055);color:#fff;font:inherit;font-size:.78rem;font-weight:650;text-decoration:none;cursor:pointer;transition:background .16s ease,border-color .16s ease,transform .12s ease}.lecture-video-panel header a:hover,.lecture-video-panel header button:hover{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.2)}.lecture-video-panel header button:active{transform:scale(.97)}.lecture-video-panel header button[data-video-close]{width:40px;padding:0;border-radius:50%;font-size:21px}.lecture-video-stage{position:relative;min-height:0;display:grid;place-items:center;overflow:hidden;background:radial-gradient(circle at 50% 45%,#111827 0,#030407 58%,#000 100%)}.lecture-video-stage::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,255,255,.015),transparent 18%);pointer-events:none;z-index:0}.lecture-video-stage iframe,.lecture-video-stage video{position:relative;z-index:1;width:100%;height:100%;border:0;background:#000}.lecture-video-stage iframe{display:block;color-scheme:dark}.lecture-video-stage video{object-fit:contain}.lecture-video-error{position:relative;z-index:2;width:min(430px,calc(100% - 40px));display:grid;place-items:center;gap:10px;padding:28px;border:1px solid rgba(255,255,255,.12);border-radius:20px;background:rgba(255,255,255,.055);text-align:center}.lecture-video-error p{margin:0;color:#9da3ae}

@media(max-width:767px){.lecture-media-sheet{max-width:none}.lecture-current-material{align-items:flex-start;flex-direction:column}.lecture-current-material .btn{width:100%}.lecture-dropzone{min-height:118px}.lecture-video-viewer{padding:0;background:#000}.lecture-video-panel{width:100%;height:100dvh;max-height:none;border:0;border-radius:0;box-shadow:none}.lecture-video-panel>header{min-height:calc(64px + env(safe-area-inset-top));padding:calc(9px + env(safe-area-inset-top)) 12px 9px 14px}.lecture-video-panel header a,.lecture-video-panel header button[data-video-fullscreen]{display:none}.lecture-video-panel header button[data-video-close]{display:inline-flex}.lecture-video-stage{padding-bottom:env(safe-area-inset-bottom);background:#000}}


/* Lecture study tools v2 — lecture-form-only ownership */
.lecture-study-editor-launchers button{min-width:0;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--text);padding:9px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:7px;text-align:start;cursor:pointer}
.lecture-study-editor-launchers button span{width:28px;height:28px;border-radius:9px;background:color-mix(in srgb,var(--accent) 10%,var(--surface));color:var(--accent);display:grid;place-items:center;font-weight:900}
.lecture-study-editor-launchers button b{min-width:0;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lecture-study-editor-launchers button small{color:var(--muted);font-size:9px}
.lecture-study-editor-launchers{margin:18px 0;padding:16px;border:1px solid var(--line);border-radius:20px;background:var(--surface-2)}
.lecture-study-editor-launchers>div:first-child span{color:var(--muted);font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.lecture-study-editor-launchers h3{margin:5px 0 4px;font-size:17px}.lecture-study-editor-launchers p{margin:0;color:var(--muted);font-size:12px}
.lecture-study-editor-launchers>div:last-child{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:14px}
.lecture-study-editor-launchers button{min-height:54px}.lecture-study-editor-launchers button:disabled{opacity:.45;cursor:not-allowed}
.lecture-study-page{width:min(1120px,100%);margin:0 auto;padding:4px 0 130px}
.lecture-study-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px;margin-bottom:16px}
.lecture-study-back{width:46px;height:46px;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--text);font-size:30px;line-height:1;cursor:pointer}
.lecture-study-heading span{display:block;color:var(--muted);font-size:11px;font-weight:800;letter-spacing:.07em;text-transform:uppercase}
.lecture-study-heading h1{margin:5px 0 3px;font:850 clamp(30px,5vw,48px)/1 Manrope,sans-serif;letter-spacing:-.05em}.lecture-study-heading p{margin:0;color:var(--muted);font-size:13px}
.lecture-study-count{min-width:78px;padding:12px;border:1px solid var(--line);border-radius:18px;background:var(--surface);text-align:center}.lecture-study-count strong,.lecture-study-count span{display:block}.lecture-study-count strong{font-size:24px}.lecture-study-count span{color:var(--muted);font-size:10px}
.lecture-study-tabs{display:flex;gap:5px;width:max-content;margin:0 auto 20px;padding:5px;border:1px solid var(--line);border-radius:18px;background:var(--surface)}
.lecture-study-tabs button{min-width:112px;border:0;border-radius:13px;background:transparent;color:var(--muted);padding:10px 16px;font-weight:800;cursor:pointer}.lecture-study-tabs button.active{background:color-mix(in srgb,var(--accent) 12%,var(--surface));color:var(--accent)}
.lecture-study-empty,.lecture-study-missing{min-height:360px;border:1px dashed var(--line);border-radius:28px;background:var(--surface);padding:38px;display:grid;place-items:center;align-content:center;text-align:center}.lecture-study-empty>span{width:66px;height:66px;border-radius:22px;background:color-mix(in srgb,var(--accent) 10%,var(--surface));color:var(--accent);display:grid;place-items:center;font-size:28px;font-weight:900}.lecture-study-empty h2,.lecture-study-missing h1{margin:16px 0 5px}.lecture-study-empty p,.lecture-study-missing p{margin:0 0 18px;color:var(--muted);max-width:520px}
.lecture-study-session{max-width:780px;margin:0 auto}.lecture-study-progress{display:grid;grid-template-columns:auto minmax(120px,1fr);align-items:center;gap:14px;margin-bottom:12px;color:var(--muted);font-size:12px;font-weight:800}.lecture-study-progress i{height:6px;border-radius:99px;background:var(--surface-2);overflow:hidden}.lecture-study-progress i::after{content:"";display:block;width:var(--study-progress);height:100%;border-radius:inherit;background:var(--accent)}
.flashcard-stage{width:100%;min-height:390px;border:1px solid var(--line);border-radius:32px;background:linear-gradient(145deg,var(--surface),color-mix(in srgb,var(--accent) 5%,var(--surface)));color:var(--text);padding:38px;display:grid;place-items:center;align-content:center;gap:24px;text-align:center;box-shadow:0 24px 70px rgba(17,30,55,.09);cursor:pointer}.flashcard-stage>span,.qa-exam-card>span,.mcq-exam-card>span{color:var(--accent);font-size:10px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.flashcard-stage .lecture-study-text{font:850 clamp(24px,5vw,42px)/1.25 Manrope,sans-serif;letter-spacing:-.04em}.flashcard-stage>small{color:var(--muted)}
.lecture-study-image{margin:0;display:grid;gap:8px;place-items:center}.lecture-study-image img{display:block;max-width:100%;max-height:360px;border-radius:18px;object-fit:contain}.lecture-study-image figcaption{color:var(--muted);font-size:10px}
.lecture-study-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:14px}.lecture-study-nav button{min-height:48px;border:1px solid var(--line);border-radius:15px;background:var(--surface);color:var(--text);font-weight:800;cursor:pointer}.lecture-study-nav button:disabled{opacity:.4;cursor:not-allowed}
.qa-exam-card,.mcq-exam-card{border:1px solid var(--line);border-radius:28px;background:var(--surface);padding:28px;box-shadow:0 20px 58px rgba(17,30,55,.07)}.qa-exam-card>.lecture-study-text,.mcq-exam-card>.lecture-study-text{margin:12px 0 24px;font:850 clamp(22px,4vw,34px)/1.3 Manrope,sans-serif;letter-spacing:-.035em}.qa-answer{margin-top:24px;padding-top:22px;border-top:1px solid var(--line)}.qa-answer>span{display:block;color:var(--accent);font-size:10px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.qa-answer .lecture-study-text{margin-top:10px;font-size:18px;line-height:1.55}
.lecture-study-score{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:12px}.lecture-study-score>div{padding:12px;border:1px solid var(--line);border-radius:16px;background:var(--surface);text-align:center}.lecture-study-score span,.lecture-study-score strong{display:block}.lecture-study-score span{color:var(--muted);font-size:10px}.lecture-study-score strong{margin-top:4px;font-size:20px}
.mcq-options{display:grid;gap:9px}.mcq-options>button{min-height:58px;border:1px solid var(--line);border-radius:17px;background:var(--surface-2);color:var(--text);padding:11px 13px;display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:11px;text-align:start;cursor:pointer}.mcq-options>button>b{width:34px;height:34px;border-radius:11px;background:var(--surface);display:grid;place-items:center}.mcq-options>button.correct{border-color:#22a06b;background:#22a06b12}.mcq-options>button.wrong{border-color:#d92d20;background:#d92d2010}.mcq-feedback{margin:14px 0 0;font-weight:800}.mcq-feedback.correct{color:#16803a}.mcq-feedback.wrong{color:#b42318}
.lecture-study-manager{display:grid;gap:16px}.lecture-study-import-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;padding:20px;border:1px solid var(--line);border-radius:24px;background:linear-gradient(135deg,color-mix(in srgb,var(--accent) 7%,var(--surface)),var(--surface))}.lecture-study-import-card span{color:var(--accent);font-size:10px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.lecture-study-import-card h2{margin:5px 0;font-size:20px}.lecture-study-import-card p,.lecture-study-import-card small{display:block;margin:0;color:var(--muted);font-size:12px;line-height:1.5}.lecture-study-import{min-width:146px;min-height:64px;border:1px dashed color-mix(in srgb,var(--accent) 55%,var(--line));border-radius:18px;background:color-mix(in srgb,var(--accent) 7%,var(--surface));display:grid;place-items:center;align-content:center;cursor:pointer}.lecture-study-import b{font-size:13px}.lecture-study-import span{font-size:8px;margin-top:5px}
.lecture-study-notice{margin:0;padding:12px 15px;border-radius:14px;background:var(--surface-2);color:var(--text);font-size:12px}.lecture-study-editor-toolbar{display:flex;justify-content:space-between;align-items:center}.lecture-study-editor-toolbar strong,.lecture-study-editor-toolbar span{display:block}.lecture-study-editor-toolbar strong{font-size:22px}.lecture-study-editor-toolbar span{color:var(--muted);font-size:10px}.lecture-study-editor-toolbar button{border:0;border-radius:14px;background:var(--accent);color:var(--accent-ink);padding:11px 15px;font-weight:800}
.lecture-study-editor-list{display:grid;gap:12px}.lecture-study-editor-row{border:1px solid var(--line);border-radius:22px;background:var(--surface);padding:16px}.lecture-study-editor-row>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}.lecture-study-editor-row>header span,.lecture-study-editor-row>header strong{display:block}.lecture-study-editor-row>header span{color:var(--muted);font-size:10px;text-transform:uppercase}.lecture-study-editor-row>header strong{max-width:680px;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lecture-study-editor-row>header button{width:36px;height:36px;border:0;border-radius:12px;background:#d92d2010;color:#b42318;font-size:20px}
.lecture-study-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.lecture-study-fields.mcq-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.lecture-study-field{min-width:0}.lecture-study-field>span{display:block;margin-bottom:6px;color:var(--muted);font-size:10px;font-weight:800}.lecture-study-field textarea,.lecture-study-field select{width:100%}.lecture-study-field.compact{max-width:220px}.lecture-study-field-preview{margin-top:8px}.lecture-study-field-preview img{max-height:130px}
.lecture-study-editor-empty{padding:34px;border:1px dashed var(--line);border-radius:20px;text-align:center;color:var(--muted)}.lecture-study-editor-footer{display:flex;justify-content:space-between;gap:12px;align-items:center}.lecture-study-delete-set{border:0;background:transparent;color:#b42318;font-weight:800}.lecture-study-delete-set:disabled{opacity:.35}.lecture-study-editor-footer .btn{min-width:180px}
@media(max-width:767px){
  .lecture-study-editor-launchers>div:last-child{grid-template-columns:1fr}
  .lecture-study-page{padding:0 0 120px}.lecture-study-head{grid-template-columns:auto minmax(0,1fr)}.lecture-study-count{display:none}.lecture-study-heading h1{font-size:32px}.lecture-study-heading p{font-size:12px}
  .lecture-study-tabs{width:calc(100% - 24px)}.lecture-study-tabs button{flex:1}
  .flashcard-stage{min-height:330px;padding:24px;border-radius:24px}.qa-exam-card,.mcq-exam-card{padding:18px;border-radius:22px}
  .lecture-study-import-card{grid-template-columns:1fr}.lecture-study-import{width:100%}
  .lecture-study-fields,.lecture-study-fields.mcq-fields{grid-template-columns:1fr}.lecture-study-field.compact{max-width:none}
  .lecture-study-editor-footer{align-items:stretch;flex-direction:column-reverse}.lecture-study-editor-footer .btn,.lecture-study-delete-set{width:100%;min-height:46px}
}
