[hidden]{display:none!important}
.catalog-hero{margin-bottom:14px;padding:0}.catalog-hero h1{font-size:clamp(23px,3vw,34px);margin:0}.catalog-breadcrumbs{margin:0 0 20px}.catalog-section{margin-top:16px}
.question-statement{font-size:17px;font-weight:600;line-height:1.65;margin:14px 0;overflow-wrap:anywhere}.question-table-wrap{overflow-x:auto;margin:14px 0;max-width:100%}.question-table{width:100%;border-collapse:collapse;font-size:14px;font-weight:400}.question-table th,.question-table td{padding:10px 13px;border:1px solid #dbe2ef;text-align:left;min-width:75px}.question-table th{background:#eef2ff;color:#313d75}.question-table tr:nth-child(even){background:#f8faff}.table-editor-dialog{width:min(94vw,920px);max-height:90vh;border:0;border-radius:20px;padding:0}.table-editor-dialog .dialog-card{max-width:none;overflow-y:auto;max-height:90vh}.table-editor-dialog textarea{width:100%;min-height:80px;margin-bottom:10px}.table-editor-dialog table input{min-width:110px;width:100%}.table-editor-dialog .btn{margin:6px 4px 6px 0}
.filter-form{margin-bottom:22px;align-items:end}.filter-form .actions{padding-bottom:2px}.filtered-total{border-top:1px solid var(--line);padding-top:18px;color:var(--primary)}.analytics-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.analytics-grid .panel{min-width:0}.analytics-grid h2{font-size:19px}.analytics-grid .chart-wrap{height:290px}.mode-buttons{display:grid;grid-template-columns:1fr 1fr;gap:14px}.mode-buttons .btn{justify-content:center;font-size:17px;padding:18px}.source-toggles{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}.source-toggle{display:flex;align-items:center;gap:10px;padding:12px 16px;border:1px solid #dbe2ef;border-radius:12px;cursor:pointer;background:#fafbff;font-weight:600;flex:1 1 220px}.source-toggle:has(input:checked){border-color:#6563ea;background:#efefff}.source-toggle input{width:18px;height:18px;accent-color:#6563ea}.source-toggle small{display:block;margin-top:4px;font-size:11px;font-weight:400;color:var(--muted)}.source-toggle.locked{opacity:.6;cursor:not-allowed}.combined-builder form{margin-top:20px}.practice-feedback{padding:20px;border-radius:14px;margin:16px 0}.practice-feedback.correct{background:#e7f8ef;color:#08784f}.practice-feedback.wrong{background:#fff1ed;color:#a13428}.practice-feedback p{white-space:pre-wrap}.practice-question .option.correct{border:2px solid #10b981;background:#ecfdf5}.practice-page #practice-status{padding:12px;color:var(--primary)}
@media(max-width:900px){.analytics-grid{grid-template-columns:1fr}.source-toggle{flex-basis:100%}.mode-buttons .btn{font-size:14px;padding:15px 9px}.question-statement{font-size:16px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
@media(min-width:901px){.combined-builder .form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.combined-builder #combined-count{margin:18px 0}.combined-builder form>p:last-child{margin-top:12px;color:var(--muted)}

/* V10: compact study controls, scoped away from other application dialogs. */
/* V11: uncluttered brand, account and always-visible attempt exit. */
.brand-mascot{display:block;width:100%;height:100%;object-fit:contain}
.brand-mark:has(.brand-mascot),.auth-logo>span:has(.brand-mascot),.legal-brand>span:has(.brand-mascot){background:transparent;box-shadow:none;border-radius:0;flex-shrink:0}
.brand-mark .brand-mascot{filter:drop-shadow(0 2px 3px #0002)}
.auth-logo>span:has(.brand-mascot){width:54px;height:54px}
.abandon-form{margin:0;flex-shrink:0}.attempt-controls,.pending-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.abandon-btn{background:#fff1f2;color:#a82d44;border:1px solid #f0c8ce;font-size:12px;padding:10px 13px;white-space:nowrap}
.abandon-btn:hover{background:#ffe4e7;color:#8e2137}.exam-sticky{gap:14px;flex-wrap:wrap}.exam-sticky>div:first-child{min-width:0;flex:1}.exam-sticky .attempt-controls{flex:0 0 auto}
.form-grid.account-password-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}.account-password-grid>.actions{grid-column:1/-1;justify-content:flex-end}
@media(max-width:760px){.form-grid.account-password-grid{grid-template-columns:1fr}.pending-actions{gap:8px}.attempt-controls{gap:10px}.exam-sticky .attempt-controls{width:100%;justify-content:space-between}.abandon-btn{padding:9px 11px}.pending-banner{flex-wrap:wrap;gap:14px}}
.table-editor-dialog[open]{display:block;width:min(92vw,760px)}
.table-editor-dialog,.table-editor-dialog .dialog-card,.practice-setup,.practice-subjects{scrollbar-width:thin;scrollbar-color:#b8bdcd transparent}
.table-editor-dialog .dialog-card{display:block;width:100%;max-width:none;padding:26px;overflow:auto}
.table-editor-dialog .question-table{width:100%}
.question-statement .question-table{width:auto;max-width:100%;font-size:13px}
.question-statement .question-table-wrap{width:fit-content;max-width:100%;margin:14px auto}
.question-statement .question-table td,.question-statement .question-table th{padding:8px 12px;min-width:60px}
.form-grid.exam-filters{grid-template-columns:minmax(140px,1fr) minmax(190px,1.4fr) minmax(120px,.7fr) auto;gap:12px;margin-bottom:12px}
.form-grid.progress-filters{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:0}
.filter-summary{font-size:13px;color:var(--muted);margin:10px 0 18px}
.combined-builder{padding:18px;box-shadow:none}
.bank-study-label{display:flex;align-items:center;gap:9px;margin:0 0 14px;color:var(--ink);font-size:15px}.bank-study-label i{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#efefff;color:var(--primary)}
.finish-learning-btn{background:#eef0ff;color:var(--primary);white-space:nowrap}
.mode-choice{display:flex;align-items:center;text-align:left;gap:12px;border:1px solid #dce2ed;border-radius:13px;padding:17px;background:#f8fafc;color:#475569;font-weight:700;cursor:pointer;transition:background .15s,border-color .15s}
.mode-choice>i{font-size:24px}.mode-choice small{display:block;font-size:11px;font-weight:400;margin-top:5px;line-height:1.5}
.mode-choice[aria-pressed=true]{background:#eeedff;border:2px solid #6963d9;padding:16px;color:#493fa5;box-shadow:0 0 0 3px #6963d910}
.mode-choice[data-mode=SIMULACRO][aria-pressed=true]{background:#fff9ee;border-color:#b78b42;color:#805d22;box-shadow:0 0 0 3px #b78b4210}
.real-start{display:flex;justify-content:flex-end}.practice-setup{width:min(92vw,670px);max-height:88vh;overflow:auto;border-radius:20px}
.practice-setup[open]{display:block}.practice-setup-content{padding:26px;width:100%}.practice-setup header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.practice-setup h2{font-size:22px;margin:0 0 5px}.practice-setup header p{font-size:13px;color:var(--muted)}
.dialog-close{background:#f1f3f8;border:0;border-radius:9px;min-width:36px;height:36px;cursor:pointer;color:#64748b}
.practice-select-head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;font-size:12px;color:var(--muted);margin:15px 0}
.practice-subjects{display:flex;flex-wrap:wrap;gap:8px;max-height:38vh;overflow:auto;padding:3px}
.subject-chip{display:flex;align-items:center;gap:8px;border:1px solid #e0e5ee;border-radius:9px;padding:9px 11px;font-size:12px;font-weight:500;background:#f9fafc;cursor:pointer;max-width:100%;line-height:1.5}
.subject-chip input,.practice-select-head input{width:14px;height:14px;margin:0;flex-shrink:0;accent-color:#625bd2}
.subject-chip:has(input:checked){background:#eeedff;border-color:#7770dc;color:#4941a7}.subject-chip:has(input:disabled){opacity:.55;cursor:not-allowed}
.practice-setup footer{display:flex;flex-wrap:wrap;align-items:end;gap:14px;margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}.practice-setup footer label{width:130px}.practice-setup footer p{font-size:11px;color:var(--muted);flex:1}.practice-setup footer .btn{margin-left:auto}
.practice-page .practice-question .option.correct,.practice-page .practice-question .option.correct:hover{background:#e7f7ed!important;border:1px solid #29a66a!important;color:#146c43}
.practice-page .practice-question .option.wrong,.practice-page .practice-question .option.wrong:hover{background:#fff0f0!important;border:1px solid #d7525d!important;color:#ac2f3a}
.practice-question .option{align-items:center;flex-wrap:wrap}.practice-question .option>span{flex:1;min-width:100px}.answer-verdict{font-size:11px;color:#168154;white-space:nowrap}
.question-image,.explanation-image{display:block;width:auto;max-width:min(100%,760px);max-height:520px;object-fit:contain;margin:16px auto;border-radius:12px}
.zoomable-image{position:relative;width:fit-content;max-width:100%;margin:16px auto}.zoomable-image>.question-image,.zoomable-image>.explanation-image{margin:0}.image-zoom-button{position:absolute;right:10px;bottom:10px;display:flex;align-items:center;gap:6px;border:1px solid #ffffff50;border-radius:999px;padding:8px 11px;background:#111a2ecc;color:#fff;font-size:11px;font-weight:700;backdrop-filter:blur(8px);cursor:pointer;box-shadow:0 5px 18px #111a2e35}.image-zoom-button:hover{background:#111a2e}.image-lightbox{width:min(96vw,1180px);height:min(92vh,820px);max-width:none;max-height:none;background:#0d1423;color:#fff;border-radius:18px}.image-lightbox[open]{display:block}.image-lightbox-shell{height:100%;display:grid;grid-template-rows:auto 1fr}.image-lightbox header{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 18px;border-bottom:1px solid #ffffff1c}.image-lightbox header strong,.image-lightbox header small{display:block}.image-lightbox header small{color:#aeb8ca;font-size:11px;margin-top:3px}.image-lightbox-tools{display:flex;gap:7px}.image-lightbox-tools button{min-width:38px;height:38px;padding:0 10px;border:1px solid #ffffff26;border-radius:9px;background:#ffffff12;color:#fff;cursor:pointer}.image-lightbox-stage{position:relative;display:grid;place-items:center;min-height:0;overflow:hidden;touch-action:none;cursor:grab;background:radial-gradient(circle,#1e2940,#0b111e)}.image-lightbox-stage:active{cursor:grabbing}.image-lightbox-stage img{display:block;max-width:88%;max-height:88%;object-fit:contain;transform-origin:center;will-change:transform;user-select:none;-webkit-user-drag:none}
.image-library-panel{border-top:4px solid var(--primary)}.library-dropzone{position:relative;min-height:150px;border:2px dashed #cfd6e5;border-radius:16px;background:#f8faff;display:grid;place-items:center;align-content:center;gap:6px;text-align:center;color:#68758c;cursor:pointer;transition:.18s}.library-dropzone:hover,.library-dropzone.is-dragging{border-color:var(--primary);background:#efefff;color:#4d49aa}.library-dropzone>i{font-size:34px;color:var(--primary)}.library-dropzone>strong{font-size:15px}.library-dropzone>span{font-size:11px}.library-dropzone input{position:absolute;inset:0;opacity:0;cursor:pointer;margin:0}.library-file-list{font-size:12px;color:var(--muted);overflow-wrap:anywhere}.library-progress{position:relative;overflow:hidden;min-height:42px;border-radius:11px;background:#eef1f7;padding:13px}.library-progress>span{position:absolute;inset:0 auto 0 0;width:0;background:#dcdcff;transition:width .2s}.library-progress>strong{position:relative;font-size:11px}.library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:24px}.library-grid article{display:flex;gap:11px;align-items:center;border:1px solid var(--line);border-radius:12px;padding:10px;min-width:0}.library-grid img{width:74px;height:60px;object-fit:contain;border-radius:8px;background:#f5f7fb}.library-grid article>div{min-width:0}.library-grid strong,.library-grid small,.library-grid span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.library-grid small{color:var(--muted);font-size:10px;margin:4px 0}.library-grid span{color:#168154;font-size:10px}.library-empty{margin:20px 0 0;color:var(--muted)}
.library-category-filter{max-width:720px;margin-bottom:22px}.library-category-filter label{display:grid;gap:7px;font-weight:700}.library-upload-result{border-radius:11px;padding:12px 14px;font-size:12px;font-weight:700}.library-upload-result.success{background:#eaf8f1;color:#08784f}.library-upload-result.warning,.library-upload-result.error{background:#fff1ed;color:#a13428}.library-management-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}.library-card{display:flex;flex-direction:column;min-width:0;border:1px solid var(--line);border-radius:16px;padding:13px;background:#fff}.library-thumb{height:170px;display:grid;place-items:center;border-radius:12px;background:#f5f7fb;overflow:hidden}.library-thumb .zoomable-image{margin:0;width:100%;height:100%;display:grid;place-items:center}.library-thumb .library-card-image{max-width:100%;max-height:170px;border-radius:0}.library-card-copy{display:grid;gap:5px;padding:12px 2px 8px;min-width:0}.library-card-copy>strong{font-size:14px;overflow-wrap:anywhere}.library-card-copy code{font-size:10px;color:var(--muted)}.library-link-count{font-size:11px;font-weight:700}.library-link-count.has-links{color:#168154}.library-link-count.no-links{color:#b45309}.library-assignments{border-top:1px solid var(--line);padding:9px 0;margin-bottom:10px}.library-assignments summary{cursor:pointer;font-size:11px;font-weight:800;color:var(--primary)}.library-assignments ul{list-style:none;padding:7px 0 0;margin:0;display:grid;gap:6px;max-height:190px;overflow:auto}.library-assignments li a{display:grid;gap:2px;padding:7px;border-radius:8px;background:#f7f8fc;font-size:10px}.library-assignments li span{color:var(--muted)}.library-assignments p{font-size:10px;color:var(--muted)}.library-card>form{margin-top:auto;display:flex;justify-content:flex-end}.library-empty-state{min-height:190px;display:grid;place-items:center;align-content:center;gap:7px;color:var(--muted);text-align:center}.library-empty-state>i{font-size:36px;color:#a8afe8}.question-image-source{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 16px;border:1px solid var(--line);border-radius:13px;background:#fafbff}.question-image-source strong,.question-image-source small{display:block}.question-image-source small{margin-top:4px;color:var(--muted)}.source-switch{display:flex;align-items:center;gap:10px;cursor:pointer;white-space:nowrap}.source-switch input{position:absolute;opacity:0}.source-switch>span{position:relative;width:46px;height:26px;border-radius:999px;background:#cbd2df;transition:.18s}.source-switch>span:after{content:"";position:absolute;width:20px;height:20px;left:3px;top:3px;border-radius:50%;background:#fff;box-shadow:0 2px 5px #0002;transition:.18s}.source-switch input:checked+span{background:var(--primary)}.source-switch input:checked+span:after{transform:translateX(20px)}.source-switch b{font-size:12px;color:#45516a}.library-source-preview{display:flex;align-items:center;gap:15px;padding:13px;border-radius:13px;background:#f1f4ff;border:1px solid #dce1ff}.library-source-preview>i{font-size:25px;color:var(--primary)}.library-source-preview>.zoomable-image{margin:0}.library-source-preview img{width:120px;max-height:90px;margin:0}.library-source-preview strong,.library-source-preview small{display:block}.library-source-preview small{margin-top:5px;color:#5c6780}.manual-image-fields{display:grid;gap:12px}.question-image-status.has-image{color:#168154}.question-image-status.no-image{color:#b45309}
.question-navigation{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:18px}.question-navigation span{font-size:12px;color:var(--muted)}.question-navigation button:disabled{opacity:.4;cursor:default}
@media(max-width:900px){.form-grid.exam-filters{grid-template-columns:1fr 1fr}.mode-choice{font-size:13px}.mode-choice>i{font-size:18px}.library-grid{grid-template-columns:1fr 1fr}}
@media(max-width:540px){.form-grid.progress-filters,.form-grid.exam-filters{grid-template-columns:1fr}.mode-buttons{grid-template-columns:1fr}.practice-setup-content,.table-editor-dialog .dialog-card{padding:18px}.practice-setup footer .btn{width:100%}.question-navigation{gap:8px}.question-navigation .btn{font-size:12px;padding:10px}.table-editor-dialog table input{min-width:80px}.library-grid{grid-template-columns:1fr}.image-zoom-button span,.image-lightbox header>div:first-child{display:none}.image-lightbox{width:100vw;height:100dvh;border-radius:0}.image-lightbox-stage img{max-width:94%;max-height:92%}.question-image-source{align-items:flex-start;flex-direction:column}.source-switch{white-space:normal}.library-management-grid{grid-template-columns:1fr}}
