/* V4.10: document-first preview and low-friction administration */
.disk-dialog.unified-preview{width:min(1560px,calc(100vw - 28px));max-height:calc(100dvh - 22px);padding:22px;overflow:hidden;display:flex;flex-direction:column;gap:12px}
.unified-preview .disk-dialog-top{flex:0 0 auto;align-items:center;padding:0 4px 7px}
.unified-preview .disk-dialog-top h2{font-size:clamp(17px,1.5vw,23px);margin:0}
.unified-preview .preview-columns{flex:1;min-height:0;grid-template-columns:minmax(0,1fr) minmax(275px,330px);gap:18px}
.unified-preview .preview-content{min-height:0;grid-template-rows:minmax(0,1fr) auto;gap:10px}
.unified-preview .preview-content .disk-preview-frame{height:100%;min-height:400px;min-width:0;background:#f5f8fe;overflow:hidden;border-radius:15px;display:flex;align-items:center;justify-content:center}
.unified-preview .preview-content .preview-document iframe{width:100%;height:100%;min-height:400px;background:#fff}
.unified-preview .preview-content .preview-image img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.unified-preview .preview-content .preview-media video{max-width:100%;max-height:100%;width:100%;height:100%;background:#142440}
.unified-preview .preview-content .preview-audio{min-height:220px;background:linear-gradient(135deg,#e3f3ff,#fff9de)}
.unified-preview .preview-content .preview-audio audio{width:min(95%,600px)}
.unified-preview .preview-tools{max-height:100%;min-height:0;overflow:auto;background:#f7faff;border-radius:18px}
.unified-preview .preview-file-actions{margin-top:0}
.preview-save-state{font-size:12px;color:#2d6a9d;min-height:16px;display:block}
.preview-auto-label{font-size:12px;color:#5a7394;line-height:1.5;display:block;margin:8px 0}
.preview-fallback{font-size:12px;line-height:1.5;color:#6a7c92;margin:0}
.btn-delete-muted{display:inline-flex;align-items:center;justify-content:center;gap:7px;color:#ad3f48;background:#fff7f8;border:1px solid #f7d8dc;white-space:nowrap}
.btn-delete-muted:hover{background:#ffedf0;color:#8e2833;border-color:#ecc2c9}
.admin-actions button[title^="Удалить"]{color:#bb515d}
.admin-actions button[title^="Удалить"]:hover{background:#fff0f1}
.quiz-editor-info{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.quiz-editor-info .btn-delete-muted{margin-left:auto;padding:8px 12px;font-size:12px}
.modal-form .modal-footer{flex-wrap:wrap}
.modal-form .modal-footer .btn-delete-muted{margin-left:auto}
@media(max-width:900px){
 .disk-dialog.unified-preview{overflow-y:auto;display:block;max-height:calc(100dvh - 12px);padding:15px}
 .unified-preview .preview-columns{display:flex;flex-direction:column;gap:15px}
 .unified-preview .preview-content .disk-preview-frame{height:57dvh;min-height:330px}
 .unified-preview .preview-tools{overflow:visible;max-height:none}
}
@media(max-width:500px){
 .disk-dialog.unified-preview{padding:11px;border-radius:17px!important}
 .unified-preview .disk-dialog-top{padding:5px}
 .unified-preview .preview-content .disk-preview-frame{height:50dvh;min-height:250px}
 .unified-preview .preview-content .preview-document iframe{min-height:250px}
 .unified-preview .preview-file-actions .btn{width:100%;justify-content:center}
 .modal-form .modal-footer .btn-delete-muted{margin:5px 0 0;width:100%}
}
.admin-hub-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 17px;margin-bottom:18px;background:#f7faff;border:1px solid #e6eef9;border-radius:17px;color:#637da3;font-size:13px;font-weight:700}
.admin-hub-actions{display:flex;gap:9px;flex-wrap:wrap}
.admin-actions{overflow:visible!important;position:relative}
.admin-edit-quick{display:inline-flex!important;align-items:center;gap:7px;padding:9px 12px!important;width:auto!important;border-radius:11px;color:#275aa3!important;font-size:12px!important;font-weight:750}
.admin-more{position:relative}
.admin-more summary{list-style:none;width:35px;height:35px;display:grid;place-items:center;border-radius:10px;cursor:pointer;color:#396caa;border:1px solid #e4edf9;background:white}
.admin-more summary::-webkit-details-marker{display:none}
.admin-more[open] summary{background:#e7f1ff}
.admin-more-menu{position:absolute;z-index:70;right:0;top:40px;width:185px;display:grid;gap:3px;padding:7px;background:white;border:1px solid #dce7f5;border-radius:14px;box-shadow:0 14px 45px #183b662b}
.admin-more-menu button{display:flex!important;width:100%!important;align-items:center!important;justify-content:flex-start!important;gap:8px;padding:10px!important;border:0;background:transparent;color:#275081!important;border-radius:9px;text-align:left;white-space:normal;font-size:12px!important}
.admin-more-menu button:hover{background:#eef6ff}
.admin-more-menu button.destructive{color:#b13c52!important}
.admin-more-menu button.destructive:hover{background:#fff0f3}
@media(max-width:740px){.admin-hub-toolbar{align-items:flex-start;flex-direction:column}.admin-hub-actions .btn{font-size:12px}.admin-edit-quick{font-size:11px!important;padding:8px!important}.admin-more-menu{right:-4px}.admin-actions{gap:4px!important}}
/* V4.11: quiz answers are chosen visually, never entered by numeric codes. */
.question-answer-chooser{display:grid;gap:7px;margin:10px 0 6px}
.answer-choice-row{display:flex;align-items:center;gap:12px;border:1px solid #d9e5f5;background:#f7fbff;border-radius:12px;padding:10px 13px;cursor:pointer;min-width:0}
.answer-choice-row:hover{background:#edf5ff;border-color:#aacdef}
.answer-choice-row:has(input:checked){border-color:#447fdf;background:#eaf3ff}
.answer-choice-row input{width:18px;height:18px;accent-color:#1956ad;flex:none}
.answer-choice-row span{font-size:14px;font-weight:600;overflow-wrap:anywhere}
.question-correct>small{font-size:12px;color:#73839e}
