:root{--a-bg:#f4f6f8;--a-dark:#191c22;--a-red:#e50914;--a-line:#e0e4e9;--a-muted:#747b86;--a-radius:5px}.mk-admin-login-body{font-family:'Helvetica Neue',Arial,sans-serif;background:#f2f4f7;min-height:100vh;display:flex;align-items:center;justify-content:center;padding:20px}.mk-admin-login-card{width:420px;max-width:100%;background:#fff;border:1px solid var(--a-line);border-radius:var(--a-radius);padding:30px;box-shadow:0 16px 45px rgba(25,31,40,.12)}.mk-login-brand,.mk-admin-logo{font-size:22px;font-weight:800;letter-spacing:-.5px;color:#fff;text-decoration:none}.mk-login-brand{color:#222;margin-bottom:20px}.mk-login-brand span,.mk-admin-logo span{color:var(--a-red)}.mk-login-brand small,.mk-admin-logo small{display:inline-block;font-size:10px;margin-left:7px;letter-spacing:.12em;color:#9096a0}.mk-admin-login-card h1{font-size:25px;margin:0 0 6px}.mk-admin-login-card>p{color:#858b96;margin-bottom:22px}.mk-admin-login-card form{display:grid;gap:13px}.mk-admin-login-card label,.mk-admin-form label,.mk-admin-filter label{display:grid;gap:6px;font-size:13px;font-weight:700;color:#464c55}.mk-admin-login-card input,.mk-admin-form input,.mk-admin-form select,.mk-admin-form textarea,.mk-admin-filter input,.mk-admin-filter select{width:100%;border:1px solid #d7dce3;border-radius:var(--a-radius);height:42px;padding:0 11px;background:#fff;font-size:14px;outline:none}.mk-admin-form textarea{height:auto;padding:10px;resize:vertical}.mk-admin-login-card input:focus,.mk-admin-form input:focus,.mk-admin-form select:focus,.mk-admin-form textarea:focus{border-color:#818894;box-shadow:0 0 0 3px rgba(23,28,36,.06)}.mk-admin-login-card form button,.mk-admin-primary,.mk-admin-filter button{height:42px;border:0;border-radius:var(--a-radius);background:#20242b;color:#fff;font-weight:700;padding:0 16px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}.mk-admin-primary:hover{color:#fff;background:#111}.mk-admin-alert{padding:10px 12px;border-radius:var(--a-radius);font-size:13px;margin-bottom:12px}.mk-admin-alert.error{background:#fef3f2;color:#b42318}.mk-admin-alert.success{background:#ecfdf3;color:#067647}
.mk-admin-header{position:fixed;top:0;left:0;right:0;height:64px;background:var(--a-dark);z-index:1000;display:flex;align-items:center;padding:0 20px;box-shadow:0 2px 9px rgba(0,0,0,.15)}.mk-admin-logo{width:220px}.mk-admin-user{margin-left:auto;display:flex;align-items:center;gap:14px;color:#d5d8de;font-size:13px}.mk-admin-user form{margin:0}.mk-admin-user button{border:1px solid #3e424b;background:#252930;color:#ddd;border-radius:var(--a-radius);height:34px;padding:0 11px}.mk-admin-menu-toggle{display:none;background:none;border:0;color:#fff;font-size:19px}.mk-admin-sidebar{position:fixed;left:0;top:64px;bottom:0;width:220px;background:#22262d;z-index:900;padding:16px 10px}.mk-admin-sidebar nav{display:grid;gap:5px}.mk-admin-sidebar a{display:flex;align-items:center;gap:11px;color:#bfc4cd;padding:12px;border-radius:var(--a-radius);font-size:14px;text-decoration:none}.mk-admin-sidebar a:hover{background:#30343c;color:#fff}.mk-admin-sidebar i{width:18px;text-align:center}.mk-admin-main{margin-left:220px;padding:92px 22px 40px;background:var(--a-bg);min-height:100vh;font-size:14px}.mk-admin-title{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:18px}.mk-admin-title small{font-size:11px;letter-spacing:.16em;color:#9096a1;font-weight:800}.mk-admin-title h1{font-size:27px;margin:2px 0 0;color:#222}.mk-title-actions{display:flex;gap:7px}.mk-admin-secondary{height:42px;border:1px solid #d5dae1;border-radius:var(--a-radius);background:#fff;color:#333;padding:0 14px;display:inline-flex;align-items:center;justify-content:center;font-weight:700;text-decoration:none}.mk-admin-panel,.mk-stat-card,.mk-admin-filter{background:#fff;border:1px solid var(--a-line);border-radius:var(--a-radius);box-shadow:0 5px 16px rgba(25,31,40,.04)}.mk-stat-card{padding:18px 20px;margin-bottom:15px}.mk-stat-card span{display:block;font-size:13px;color:var(--a-muted);margin-bottom:6px}.mk-stat-card strong{font-size:25px;color:#252a31}.mk-admin-panel{padding:18px;margin-bottom:16px}.mk-admin-panel h2{font-size:19px;margin:0 0 15px}.mk-admin-panel h3{font-size:17px}.mk-panel-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.mk-panel-heading h2{margin:0}.mk-panel-heading>a,.mk-panel-heading>span{font-size:12px;color:#777}.mk-admin-table{margin:0}.mk-admin-table th{background:#f7f8fa;border-bottom:1px solid #dfe3e8!important;color:#69717d;font-size:12px;white-space:nowrap}.mk-admin-table td{vertical-align:middle!important;border-color:#edf0f3!important}.mk-admin-table tr.clickable{cursor:pointer}.mk-admin-table tr.clickable:hover{background:#fafbfc}.mk-admin-table a{font-weight:700;color:#252a31}.mk-state{display:inline-block;padding:4px 7px;border-radius:4px;background:#eef1f4;color:#59616d;font-size:11px;font-weight:800}.mk-state.ACTIVE,.mk-state.PUBLISHED{background:#ecfdf3;color:#067647}.mk-state.SUSPENDED,.mk-state.DRAFT{background:#fff6ed;color:#b54708}.mk-state.WITHDRAWN,.mk-state.ARCHIVED{background:#f2f4f7;color:#667085}.mk-admin-filter{padding:12px 12px 4px;margin-bottom:15px}.mk-admin-filter label{margin-bottom:8px}.mk-admin-filter button{width:100%;margin-top:21px}.mk-admin-form .row{margin-bottom:7px}.mk-admin-form label{margin-bottom:12px}.mk-admin-form label small{font-weight:400;color:#8a9099}.mk-admin-primary.full{width:100%}.mk-admin-meta dl{margin:0}.mk-admin-meta dt{font-size:12px;color:#858c96;margin-top:10px}.mk-admin-meta dd{margin:3px 0 0;font-weight:700}.mk-drop-file{position:relative;min-height:120px;border:1px dashed #b8bec7;border-radius:var(--a-radius);display:flex!important;align-items:center;justify-content:center;flex-direction:column;gap:5px;text-align:center;background:#fafbfc;cursor:pointer}.mk-drop-file input{position:absolute;inset:0;opacity:0;cursor:pointer;height:100%}.mk-drop-file i{font-size:26px;color:#8d949e}.mk-drop-file span{font-size:12px;color:#8d949e;font-weight:400}.mk-drop-file.compact{min-height:80px}.mk-inline-check{display:flex!important;align-items:center;gap:7px!important;margin-top:10px}.mk-inline-check input{width:16px!important;height:16px!important;margin:0}.mk-file-meta{font-size:12px;color:#737a84;margin-top:8px}.mk-existing-file{display:flex;align-items:center;gap:10px;padding:11px;background:#f7f8fa;border-radius:var(--a-radius);margin-bottom:10px}.mk-existing-file i{font-size:22px}.mk-existing-file>div{display:grid}.mk-existing-file span{font-size:12px;color:#777}.mk-image-editor{border:1px solid var(--a-line);border-radius:var(--a-radius);overflow:hidden}.mk-image-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:7px;padding:9px;background:#f7f8fa;border-bottom:1px solid var(--a-line)}.mk-image-toolbar select{width:auto;height:36px}.mk-image-toolbar label{margin:0;display:flex;align-items:center;gap:6px}.mk-image-toolbar input[type=range]{width:110px;height:auto}.mk-image-editor canvas{display:block;width:100%;background:repeating-conic-gradient(#eee 0 25%,#fff 0 50%) 50%/20px 20px;touch-action:none}.mk-image-editor-actions{display:flex;justify-content:space-between;align-items:center;padding:9px;background:#fafbfc;border-top:1px solid var(--a-line)}.mk-image-editor-actions span{font-size:11px;color:#777}.mk-edited-list,.mk-existing-media{display:flex;gap:7px;flex-wrap:wrap;padding:9px}.mk-edited-list figure,.mk-existing-media label{width:130px;margin:0;border:1px solid var(--a-line);border-radius:var(--a-radius);overflow:hidden;background:#fff}.mk-edited-list img,.mk-existing-media img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}.mk-edited-list figcaption,.mk-existing-media span{display:block;padding:5px;font-size:11px}.mk-existing-files{display:grid;gap:6px}.mk-existing-files label{display:flex;justify-content:space-between;padding:9px;background:#f7f8fa;border-radius:var(--a-radius);margin:0}.mk-existing-files small{color:#888}.mk-sticky-panel{position:sticky;top:80px}.mk-check-list{padding-left:18px;line-height:1.9;color:#5f6670}.mk-sticky-panel p{font-size:11px;color:#888;margin-top:12px;line-height:1.5}.mk-detail-summary{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.mk-detail-summary>strong,.mk-detail-summary>span:not(.mk-state){padding:5px 8px;background:#f6f7f9;border-radius:4px}.mk-admin-tags{display:flex;gap:5px;flex-wrap:wrap;margin:13px 0}.mk-admin-tags span{padding:4px 7px;background:#f0f2f5;border-radius:4px;font-size:12px}.mk-admin-description{white-space:pre-line;line-height:1.65}.mk-admin-gallery{display:grid;grid-template-columns:repeat(2,1fr);gap:7px}.mk-admin-gallery img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:var(--a-radius)}.mk-qr-panel{text-align:center}.mk-qr-panel img{width:min(260px,100%);border:1px solid var(--a-line);padding:8px}.mk-qr-panel p{font-size:12px;color:#777;line-height:1.5}.mk-admin-panel.danger{border-color:#f4c7c7}.mk-admin-danger{height:40px;border:1px solid #d92d20;background:#fff;color:#b42318;border-radius:var(--a-radius);font-weight:700;width:100%}.mk-preset-buttons{display:flex;gap:5px;margin-top:21px}.mk-preset-buttons a{flex:1;height:42px;border:1px solid #d7dce3;border-radius:var(--a-radius);display:flex;align-items:center;justify-content:center;color:#444;background:#fff}.mk-existing-media{padding:0 0 10px}.mk-existing-media span{display:flex;gap:5px;align-items:center}.mk-existing-media input{width:auto;height:auto}
@media(max-width:991px){.mk-admin-logo{width:auto}.mk-admin-menu-toggle{display:block;margin-left:15px}.mk-admin-sidebar{transform:translateX(-100%);transition:.2s}.mk-admin-sidebar.open{transform:none}.mk-admin-main{margin-left:0;padding:85px 12px 30px}.mk-sticky-panel{position:static}.mk-admin-user span{display:none}.mk-admin-gallery{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.mk-admin-header{height:58px;padding:0 12px}.mk-admin-sidebar{top:58px}.mk-admin-main{padding-top:76px}.mk-admin-title{align-items:flex-start;gap:10px}.mk-admin-title h1{font-size:23px}.mk-title-actions{flex-wrap:wrap;justify-content:flex-end}.mk-admin-panel{padding:12px}.mk-admin-gallery{grid-template-columns:1fr}.mk-image-editor-actions{align-items:stretch;flex-direction:column;gap:7px}.mk-image-editor-actions .mk-admin-primary{width:100%}}

/* ========================================================================== 
   Lecture editor - unified controls / 16:9 two-step image editor
   ========================================================================== */
body.mk-image-editor-open{overflow:hidden!important}
.mk-lecture-editor-page{--le-control-h:44px;--le-radius:5px;--le-ink:#20242b;--le-muted:#707783;--le-line:#dce1e7;--le-soft:#f7f8fa;--le-gold:#8d7440;--le-gold-soft:#f4efe4}
.mk-lecture-editor-page .mk-lecture-form-panel{padding:20px!important;overflow:visible}
.mk-lecture-editor-page .mk-lecture-form-panel>h2{margin-bottom:18px}
.mk-lecture-editor-page .mk-admin-form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),
.mk-lecture-editor-page .mk-admin-form select{height:var(--le-control-h)!important;min-height:var(--le-control-h)!important;padding:0 12px!important;line-height:42px!important;box-sizing:border-box!important;vertical-align:middle!important}
.mk-lecture-editor-page .mk-admin-form select{line-height:normal!important}
.mk-lecture-editor-page .mk-admin-form textarea{padding:12px!important;line-height:1.6!important;box-sizing:border-box!important}
.mk-lecture-editor-page .mk-equal-control-row>[class*="col-"]{display:flex;align-items:stretch}
.mk-lecture-editor-page .mk-equal-control-row>[class*="col-"]>label{width:100%;align-content:start}
.mk-lecture-editor-page .mk-lecture-panel-heading{align-items:flex-start!important;gap:14px;margin-bottom:15px!important}
.mk-lecture-editor-page .mk-lecture-panel-heading>div:first-child{min-width:0}
.mk-lecture-editor-page .mk-lecture-panel-heading h2{margin:0 0 5px!important}
.mk-lecture-editor-page .mk-lecture-panel-heading p{margin:0;color:var(--le-muted);font-size:12px;line-height:1.55}
.mk-lecture-editor-page .mk-current-video{min-height:58px;margin-bottom:12px}
.mk-lecture-editor-page .mk-file-picker-row{display:flex;align-items:center;gap:10px;width:100%;min-height:var(--le-control-h);padding:0;border:1px solid var(--le-line);border-radius:var(--le-radius);background:#fff;overflow:hidden;transition:border-color .18s ease,box-shadow .18s ease}
.mk-lecture-editor-page .mk-file-picker-row:hover{border-color:#b8bec7}
.mk-lecture-editor-page .mk-file-picker-row:focus-within{border-color:#8d949e;box-shadow:0 0 0 3px rgba(32,36,43,.06)}
.mk-lecture-editor-page .mk-file-picker-row.is-error{border-color:#d92d20;box-shadow:0 0 0 3px rgba(217,45,32,.08)}
.mk-lecture-editor-page .mk-file-picker-row-large{min-height:52px}
.mk-lecture-editor-page .mk-file-select-button{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;flex:0 0 auto!important;width:auto!important;min-width:132px!important;height:var(--le-control-h)!important;min-height:var(--le-control-h)!important;margin:0!important;padding:0 15px!important;border:0!important;border-right:1px solid #303640!important;border-radius:4px 0 0 4px!important;background:var(--le-ink)!important;color:#fff!important;font-size:13px!important;font-weight:800!important;line-height:1!important;white-space:nowrap!important;word-break:keep-all!important;cursor:pointer!important;transition:background .18s ease,transform .18s ease!important}
.mk-lecture-editor-page .mk-file-picker-row-large .mk-file-select-button{height:50px!important;min-height:50px!important}
.mk-lecture-editor-page .mk-file-select-button:hover{background:#11151a!important}
.mk-lecture-editor-page .mk-file-select-button i{font-size:14px;line-height:1}
.mk-lecture-editor-page .mk-file-selected-info{display:flex;align-items:center;min-width:0;min-height:var(--le-control-h);padding:0 12px;color:#626a75;font-size:13px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mk-lecture-editor-page .mk-file-picker-row-large .mk-file-selected-info{min-height:50px}
.mk-lecture-editor-page .mk-video-meta{min-height:18px;margin:8px 0 0}
.mk-lecture-editor-page .mk-lecture-inline-check{display:inline-flex!important;align-items:center!important;gap:8px!important;width:auto!important;min-height:24px;margin:9px 0 0!important;white-space:nowrap!important}
.mk-lecture-editor-page .mk-lecture-inline-check input{flex:0 0 16px;width:16px!important;height:16px!important;margin:0!important}
.mk-lecture-editor-page .mk-lecture-inline-check span{line-height:1.3;white-space:nowrap}
.mk-lecture-editor-page .mk-image-summary-badges{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap;flex:0 0 auto}
.mk-lecture-editor-page .mk-image-summary-badges span{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:0 10px;border:1px solid #d9dee4;border-radius:999px;background:#fff;color:#555d68;font-size:11px;font-weight:800;line-height:1;white-space:nowrap}
.mk-lecture-editor-page #thumbnailStatusBadge.is-warning{border-color:#efc7a0;background:#fff8ef;color:#a3560c}
.mk-lecture-editor-page #thumbnailStatusBadge.is-success{border-color:#a7d7b8;background:#effaf2;color:#16723a}
.mk-lecture-editor-page #thumbnailStatusBadge.is-auto{border-color:#d7c8aa;background:var(--le-gold-soft);color:#715b2e}
.mk-lecture-editor-page .mk-image-upload-box{margin-top:2px;padding:13px;border:1px solid #e1e5ea;border-radius:var(--le-radius);background:#fafbfc}
.mk-lecture-editor-page .mk-image-upload-guide{display:flex;align-items:flex-start;gap:7px;margin-top:9px;color:#717986;font-size:12px;line-height:1.55}
.mk-lecture-editor-page .mk-image-upload-guide i{margin-top:2px;color:var(--le-gold)}
.mk-lecture-editor-page .mk-lecture-image-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px!important;width:100%;padding:0!important;margin:0 0 14px!important}
.mk-lecture-editor-page .mk-new-image-grid{margin:14px 0 0!important}
.mk-lecture-editor-page .mk-lecture-image-card{position:relative;width:100%!important;margin:0!important;border:1px solid #dfe3e8!important;border-radius:var(--le-radius)!important;background:#fff!important;overflow:hidden!important;transition:border-color .18s ease,box-shadow .18s ease,opacity .18s ease}
.mk-lecture-editor-page .mk-lecture-image-card:hover{border-color:#c7cdd5!important;box-shadow:0 8px 20px rgba(25,31,40,.07)}
.mk-lecture-editor-page .mk-lecture-image-card.is-marked-delete{opacity:.46;border-color:#e7b7b4!important;background:#fff8f7!important}
.mk-lecture-editor-page .mk-lecture-image-preview{position:relative;width:100%;aspect-ratio:16/9;background:#eef1f4;overflow:hidden}
.mk-lecture-editor-page .mk-lecture-image-preview img{display:block!important;width:100%!important;height:100%!important;aspect-ratio:16/9!important;object-fit:cover!important;background:#f3f4f6}
.mk-lecture-editor-page .mk-image-origin-badge,.mk-lecture-editor-page .mk-image-thumbnail-badge{position:absolute;top:8px;z-index:2;display:inline-flex;align-items:center;justify-content:center;height:24px;padding:0 8px;border-radius:999px;font-size:10px;font-weight:900;letter-spacing:.03em;line-height:1;white-space:nowrap;box-shadow:0 3px 10px rgba(0,0,0,.14)}
.mk-lecture-editor-page .mk-image-origin-badge{left:8px;background:rgba(255,255,255,.94);color:#353b44}
.mk-lecture-editor-page .mk-image-origin-badge.is-new{background:rgba(32,36,43,.93);color:#fff}
.mk-lecture-editor-page .mk-image-thumbnail-badge{right:8px;opacity:0;transform:translateY(-4px);pointer-events:none;background:rgba(141,116,64,.95);color:#fff;transition:opacity .18s ease,transform .18s ease}
.mk-lecture-editor-page .mk-image-thumbnail-badge.is-visible{opacity:1;transform:none}
.mk-lecture-editor-page .mk-lecture-image-card-body{display:flex;flex-direction:column;gap:9px;padding:10px}
.mk-lecture-editor-page .mk-lecture-image-name{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#303640;font-size:12px;line-height:1.35}
.mk-lecture-editor-page .mk-lecture-image-card-actions{display:flex;align-items:center;justify-content:space-between;gap:7px}
.mk-lecture-editor-page .mk-image-check{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;width:auto!important;min-height:32px!important;margin:0!important;padding:0 9px!important;border:1px solid #d8dde4!important;border-radius:4px!important;background:#fff!important;color:#4d5560!important;font-size:11px!important;font-weight:800!important;line-height:1!important;white-space:nowrap!important;cursor:pointer!important;transition:.18s ease!important}
.mk-lecture-editor-page .mk-image-check:hover{border-color:#aeb5bf!important;background:#f8f9fa!important}
.mk-lecture-editor-page .mk-image-check input{flex:0 0 14px!important;width:14px!important;height:14px!important;margin:0!important;accent-color:var(--le-ink)}
.mk-lecture-editor-page .mk-thumbnail-check.is-selected{border-color:#9d8450!important;background:var(--le-gold-soft)!important;color:#6f592d!important}
.mk-lecture-editor-page .mk-thumbnail-check.is-disabled{opacity:.72;cursor:default!important}
.mk-lecture-editor-page .mk-delete-check{color:#9d3a33!important}
.mk-lecture-editor-page .mk-new-image-tools{display:flex;align-items:center;gap:6px}
.mk-lecture-editor-page .mk-image-card-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;height:30px;padding:0 8px;border:1px solid #dce1e7;border-radius:4px;background:#f8f9fa;color:#59616c;font-size:10px;font-weight:800;line-height:1;white-space:nowrap;cursor:pointer}
.mk-lecture-editor-page .mk-image-card-button:hover{border-color:#b9c0c9;background:#fff;color:#242a31}
.mk-lecture-editor-page .mk-image-empty-state{display:flex;align-items:center;justify-content:center;min-height:62px;margin-top:12px;border:1px dashed #d7dce3;border-radius:var(--le-radius);background:#fafbfc;color:#9097a1;font-size:12px;font-weight:600}
.mk-lecture-editor-page .mk-image-empty-state.is-hidden{display:none}
.mk-lecture-editor-page .mk-attachment-existing-list{margin-bottom:12px}
.mk-lecture-editor-page .mk-attachment-existing-list>label{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;min-height:46px!important;margin:0!important;padding:7px 9px!important}
.mk-lecture-editor-page .mk-attachment-existing-list>label>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mk-lecture-editor-page .mk-lecture-check-panel .mk-check-list{margin-bottom:18px}
.mk-lecture-editor-page .mk-lecture-submit-button{min-height:46px}
.mk-lecture-editor-page #introImageSection.has-validation-error{border-color:#e4a7a3!important;box-shadow:0 0 0 3px rgba(217,45,32,.07)!important}

/* image editor modal */
.mk-lecture-image-editor-modal{position:fixed;inset:0;z-index:5000;display:none;align-items:center;justify-content:center;padding:20px}
.mk-lecture-image-editor-modal.is-open{display:flex}
.mk-lecture-image-editor-backdrop{position:absolute;inset:0;background:rgba(4,7,11,.78);backdrop-filter:blur(3px)}
.mk-lecture-image-editor-dialog{position:relative;z-index:1;display:flex;flex-direction:column;width:min(1180px,calc(100vw - 40px));max-height:calc(100vh - 40px);border:1px solid rgba(255,255,255,.12);border-radius:6px;background:#111827;color:#fff;box-shadow:0 30px 90px rgba(0,0,0,.52);overflow:hidden}
.mk-lecture-image-editor-header{display:flex;align-items:center;justify-content:space-between;gap:16px;flex:0 0 auto;padding:15px 18px;border-bottom:1px solid rgba(255,255,255,.12)}
.mk-lecture-image-editor-header small{display:block;margin-bottom:2px;color:rgba(255,255,255,.48);font-size:9px;font-weight:900;letter-spacing:.16em}
.mk-lecture-image-editor-header h2{margin:0;color:#fff;font-size:18px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mk-editor-close{display:inline-flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:36px;border:1px solid rgba(255,255,255,.16);border-radius:4px;background:rgba(255,255,255,.06);color:#fff;font-size:23px;line-height:1;cursor:pointer}
.mk-editor-close:hover{background:rgba(255,255,255,.13)}
.mk-lecture-image-editor-body{flex:1 1 auto;min-height:0;padding:16px 18px 18px;overflow:auto}
.mk-editor-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-width:650px;margin:0 auto 12px}
.mk-editor-step{display:flex;align-items:center;justify-content:center;gap:9px;min-height:46px;padding:8px 12px;border:1px solid rgba(255,255,255,.18);border-radius:5px;background:rgba(255,255,255,.04);color:rgba(255,255,255,.64)}
.mk-editor-step>span{display:inline-flex;align-items:center;justify-content:center;width:25px;height:25px;border-radius:999px;background:rgba(255,255,255,.12);font-size:11px;font-weight:900}
.mk-editor-step strong{font-size:13px;line-height:1;white-space:nowrap}
.mk-editor-step.is-active{border-color:#fff;background:#fff;color:#111827}
.mk-editor-step.is-active>span{background:#111827;color:#fff}
.mk-editor-step.is-complete{border-color:rgba(255,255,255,.45);color:#fff}
.mk-editor-step.is-disabled{opacity:.58}
.mk-editor-guide{max-width:920px;margin:0 auto 14px;color:rgba(255,255,255,.72);font-size:12px;line-height:1.55;text-align:center}
.mk-crop-source-stage-wrap{display:flex;align-items:center;justify-content:center;width:100%;min-height:280px;padding:16px;border:1px solid rgba(255,255,255,.11);border-radius:5px;background:#070b12;overflow:auto}
.mk-crop-source-stage{position:relative;flex:0 0 auto;max-width:100%;max-height:58vh;background:#000;overflow:hidden;touch-action:none;user-select:none;cursor:crosshair}
.mk-crop-source-stage.is-draw-mode{outline:3px solid rgba(196,164,96,.95);outline-offset:3px}
.mk-crop-source-image{display:block;width:100%;height:100%;object-fit:fill;pointer-events:none;user-select:none}
.mk-crop-selection{position:absolute;z-index:3;border:2px solid #fff;box-shadow:0 0 0 9999px rgba(0,0,0,.58);cursor:move;touch-action:none}
.mk-crop-selection:before,.mk-crop-selection:after{content:"";position:absolute;pointer-events:none}
.mk-crop-selection:before{left:33.333%;right:33.333%;top:0;bottom:0;border-left:1px solid rgba(255,255,255,.42);border-right:1px solid rgba(255,255,255,.42)}
.mk-crop-selection:after{top:33.333%;bottom:33.333%;left:0;right:0;border-top:1px solid rgba(255,255,255,.42);border-bottom:1px solid rgba(255,255,255,.42)}
.mk-crop-handle{position:absolute;z-index:5;width:14px;height:14px;border:2px solid #111827;border-radius:999px;background:#fff}
.mk-crop-handle.is-nw{left:0;top:0;transform:translate(-50%,-50%);cursor:nwse-resize}.mk-crop-handle.is-n{left:50%;top:0;transform:translate(-50%,-50%);cursor:ns-resize}.mk-crop-handle.is-ne{right:0;top:0;transform:translate(50%,-50%);cursor:nesw-resize}.mk-crop-handle.is-e{right:0;top:50%;transform:translate(50%,-50%);cursor:ew-resize}.mk-crop-handle.is-se{right:0;bottom:0;transform:translate(50%,50%);cursor:nwse-resize}.mk-crop-handle.is-s{left:50%;bottom:0;transform:translate(-50%,50%);cursor:ns-resize}.mk-crop-handle.is-sw{left:0;bottom:0;transform:translate(-50%,50%);cursor:nesw-resize}.mk-crop-handle.is-w{left:0;top:50%;transform:translate(-50%,-50%);cursor:ew-resize}
.mk-editor-control-card{margin-top:12px;padding:12px;border:1px solid rgba(255,255,255,.12);border-radius:5px;background:rgba(255,255,255,.05)}
.mk-editor-control-card.is-first{margin-top:0}
.mk-editor-control-title{margin-bottom:9px;color:#fff;font-size:12px;font-weight:800;line-height:1.3}
.mk-editor-number-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.mk-editor-number-grid label{display:flex!important;flex-direction:column!important;gap:5px!important;margin:0!important;color:rgba(255,255,255,.7)!important;font-size:11px!important;font-weight:700!important;line-height:1.2!important}
.mk-editor-number-grid input,.mk-background-row input[type="text"]{width:100%;height:40px;border:1px solid rgba(255,255,255,.17);border-radius:4px;padding:0 10px;background:#fff;color:#111827;font-size:13px;outline:none;box-sizing:border-box}
.mk-editor-number-grid input:focus,.mk-background-row input[type="text"]:focus{border-color:#d2bd8a;box-shadow:0 0 0 3px rgba(196,164,96,.13)}
.mk-editor-button-row{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:10px}
.mk-editor-button{display:inline-flex;align-items:center;justify-content:center;min-width:78px;height:38px;padding:0 12px;border:1px solid rgba(255,255,255,.25);border-radius:4px;background:transparent;color:#fff;font-size:11px;font-weight:800;line-height:1;white-space:nowrap;cursor:pointer;transition:.16s ease}
.mk-editor-button:hover,.mk-editor-button.is-active{border-color:#fff;background:#fff;color:#111827}
.mk-editor-button.is-primary{border-color:#fff;background:#fff;color:#111827}
.mk-editor-button.is-primary:hover{background:#e8e8e8}
.mk-editor-next{margin-left:auto}
.mk-placement-layout{display:grid;grid-template-columns:minmax(390px,520px) minmax(0,1fr);gap:16px;align-items:start}
.mk-placement-stage-wrap{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:16px;border:1px solid rgba(255,255,255,.11);border-radius:5px;background:#070b12}
.mk-placement-stage{position:relative;width:min(500px,100%);aspect-ratio:16/9;border:2px solid #fff;border-radius:4px;background:#fff;overflow:hidden;box-shadow:0 18px 46px rgba(0,0,0,.42);touch-action:none}
.mk-placement-image{position:absolute;display:block;max-width:none;max-height:none;user-select:none;touch-action:none;cursor:grab}
.mk-placement-image:active{cursor:grabbing}
.mk-placement-size-label{margin-top:8px;color:rgba(255,255,255,.56);font-size:10px;font-weight:700;letter-spacing:.04em}
.mk-position-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.mk-position-grid .mk-editor-button{min-width:0;width:100%;padding:0 6px}
.mk-fit-buttons{margin-top:0;margin-bottom:10px}
.mk-placement-zoom-row{display:grid;grid-template-columns:40px minmax(0,1fr) 40px auto;align-items:center;gap:8px}
.mk-placement-zoom-row input[type="range"]{width:100%;height:auto;margin:0;accent-color:#d3bb84}
.mk-editor-icon-button{display:inline-flex;align-items:center;justify-content:center;width:40px;height:38px;border:1px solid rgba(255,255,255,.25);border-radius:4px;background:transparent;color:#fff;font-size:18px;line-height:1;cursor:pointer}
.mk-editor-icon-button:hover{background:#fff;color:#111827}
.mk-editor-zoom-value{display:inline-flex;align-items:center;justify-content:center;min-width:68px;height:34px;padding:0 10px;border-radius:999px;background:rgba(255,255,255,.11);color:#fff;font-size:11px;font-weight:800;white-space:nowrap}
.mk-background-row{display:grid;grid-template-columns:64px minmax(0,1fr);gap:9px;align-items:center}
.mk-background-row input[type="color"]{width:64px;height:40px;padding:3px;border:1px solid rgba(255,255,255,.22);border-radius:4px;background:transparent;cursor:pointer}
.mk-lecture-image-editor-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:0 0 auto;min-height:62px;padding:11px 18px;border-top:1px solid rgba(255,255,255,.12)}
.mk-editor-footer-right{display:flex;align-items:center;gap:7px;margin-left:auto}
.mk-lecture-image-editor-modal .is-hidden{display:none!important}

@media(max-width:1100px){.mk-lecture-editor-page .mk-lecture-image-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mk-placement-layout{grid-template-columns:1fr}.mk-placement-stage-wrap{max-width:680px;width:100%;margin:0 auto}.mk-placement-controls{width:100%}}
@media(max-width:767px){.mk-lecture-editor-page .mk-file-picker-row{align-items:stretch;gap:0}.mk-lecture-editor-page .mk-file-select-button{min-width:116px!important;padding:0 11px!important}.mk-lecture-editor-page .mk-file-selected-info{padding:0 9px;font-size:12px}.mk-lecture-editor-page .mk-lecture-panel-heading{flex-direction:column}.mk-lecture-editor-page .mk-image-summary-badges{justify-content:flex-start}.mk-lecture-editor-page .mk-lecture-image-grid{grid-template-columns:1fr}.mk-lecture-editor-page .mk-lecture-inline-check,.mk-lecture-editor-page .mk-lecture-inline-check span{white-space:normal!important}.mk-lecture-image-editor-modal{padding:8px}.mk-lecture-image-editor-dialog{width:calc(100vw - 16px);max-height:calc(100vh - 16px)}.mk-lecture-image-editor-header{padding:12px}.mk-lecture-image-editor-body{padding:12px}.mk-editor-number-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mk-editor-next{width:100%;margin-left:0}.mk-position-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.mk-placement-zoom-row{grid-template-columns:40px minmax(0,1fr) 40px}.mk-editor-zoom-value{grid-column:1/-1;justify-self:center}.mk-lecture-image-editor-footer{padding:10px 12px}.mk-editor-footer-right{gap:5px}.mk-editor-button{min-width:70px;padding:0 9px}.mk-editor-steps{gap:6px}.mk-editor-step{padding:7px}.mk-editor-step strong{font-size:11px}}
@media(max-width:430px){.mk-lecture-editor-page .mk-file-picker-row{display:grid;grid-template-columns:118px minmax(0,1fr)}.mk-lecture-editor-page .mk-file-select-button{width:118px!important;min-width:118px!important}.mk-lecture-editor-page .mk-lecture-image-card-actions{align-items:stretch;flex-direction:column}.mk-lecture-editor-page .mk-image-check{width:100%!important}.mk-lecture-image-editor-header h2{font-size:15px}.mk-editor-step>span{width:22px;height:22px}.mk-editor-number-grid{grid-template-columns:1fr 1fr}}
.mk-lecture-editor-page input[type="file"][hidden],.mk-lecture-editor-page #processedIntroImages[hidden]{display:none!important}

/* =========================================================
 * Lecture video auto-normalization / processing feedback
 * ========================================================= */
.mk-lecture-form-error {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid #d9b56f;
  border-radius: 5px;
  background: #fffaf1;
  color: #3f321f;
}

.mk-lecture-form-error > i {
  flex: 0 0 auto;
  margin-top: 2px;
  color: #8a6228;
  font-size: 16px;
}

.mk-lecture-form-error > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.mk-lecture-form-error strong,
.mk-lecture-form-error span {
  line-height: 1.45;
}

.mk-lecture-form-error strong {
  font-size: 14px;
  font-weight: 800;
}

.mk-lecture-form-error span {
  font-size: 13px;
  color: #755b36;
  word-break: keep-all;
}

.mk-video-normalize-guide {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  padding: 14px 15px;
  border: 1px solid rgba(133, 96, 42, .2);
  border-radius: 5px;
  background: linear-gradient(135deg, #fffdf9, #faf5eb);
}

.mk-video-normalize-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #2c251d;
  color: #e1bd7c;
}

.mk-video-normalize-guide > div:last-child {
  min-width: 0;
}

.mk-video-normalize-guide strong {
  display: block;
  margin-bottom: 5px;
  color: #29231c;
  font-size: 13px;
  font-weight: 800;
}

.mk-video-normalize-guide p {
  margin: 0;
  color: #746857;
  font-size: 12px;
  line-height: 1.65;
  word-break: keep-all;
}

.mk-video-processing-overlay {
  position: fixed;
  z-index: 99999;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(18, 17, 15, .62);
  opacity: 0;
  visibility: hidden;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: opacity .22s ease, visibility 0s linear .22s;
}

.mk-video-processing-overlay[hidden] {
  display: none !important;
}

.mk-video-processing-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.mk-video-processing-card {
  width: min(470px, 100%);
  padding: 30px 28px;
  border: 1px solid rgba(198, 157, 85, .38);
  border-radius: 6px;
  background: #fff;
  color: #26221d;
  text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
  transform: translateY(8px) scale(.985);
  transition: transform .22s ease;
}

.mk-video-processing-overlay.is-visible .mk-video-processing-card {
  transform: translateY(0) scale(1);
}

.mk-video-processing-card strong {
  display: block;
  margin: 12px 0 8px;
  font-size: 17px;
  line-height: 1.45;
}

.mk-video-processing-card p {
  margin: 0;
  color: #625b52;
  font-size: 13px;
  line-height: 1.65;
  word-break: keep-all;
}

.mk-video-processing-card small {
  display: block;
  margin-top: 12px;
  color: #8c8173;
  font-size: 11px;
  line-height: 1.55;
  word-break: keep-all;
}

.mk-video-processing-spinner {
  width: 38px;
  height: 38px;
  margin: 0 auto;
  border: 3px solid #eee7dc;
  border-top-color: #9a6d31;
  border-radius: 50%;
  animation: mkAdminVideoSpin .72s linear infinite;
}

@keyframes mkAdminVideoSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 575.98px) {
  .mk-video-normalize-guide {
    padding: 12px;
  }

  .mk-video-processing-card {
    padding: 26px 20px;
  }
}

.mk-video-format-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  margin-left: 6px;
  padding: 0 7px;
  border: 1px solid rgba(137, 98, 43, .24);
  border-radius: 999px;
  background: #fbf5e9;
  color: #86612d;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  vertical-align: middle;
}
