*{box-sizing:border-box}[hidden],.is-hidden{display:none!important}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",Arial,sans-serif;background:#f6f7f9;color:#1f2933}a{color:#1769aa;text-decoration:none}input,select,textarea,button{font:inherit}input,select,textarea{width:100%;border:1px solid #cfd7df;border-radius:6px;padding:10px 12px;background:#fff}textarea{resize:vertical}button,.button{display:inline-flex;align-items:center;justify-content:center;border:1px solid #c7d0d9;border-radius:6px;background:#fff;color:#1f2933;padding:10px 14px;cursor:pointer}.primary{background:#1769aa!important;border-color:#1769aa!important;color:#fff!important}.small{padding:6px 10px}.link{border:0;background:transparent;padding:0;color:#1769aa}.danger{color:#b42318}.topbar{height:58px;background:#fff;border-bottom:1px solid #e1e7ec;display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:10}.brand{font-weight:700;color:#111827}.topbar nav{display:flex;gap:18px;align-items:center}.container{max-width:1180px;margin:28px auto;padding:0 20px}.two-col{display:grid;grid-template-columns:minmax(360px,430px) 1fr;gap:20px;align-items:start}.panel{background:#fff;border:1px solid #e1e7ec;border-radius:8px;padding:22px;box-shadow:0 1px 2px rgba(0,0,0,.03)}h1{font-size:24px;margin:0 0 18px}h2{font-size:18px;margin:18px 0 12px}h3{font-size:16px}.page-head p,.muted{color:#667085}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-grid label{display:grid;gap:7px}.wide{grid-column:1/-1}.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.stat{background:#fff;border:1px solid #e1e7ec;border-radius:8px;padding:22px;color:#1f2933}.stat strong{display:block;font-size:34px}.stat span{color:#667085}.auth{min-height:100vh;display:grid;place-items:center;padding:24px}.auth-panel{width:min(420px,100%)}.auth-panel form,.auth-panel{display:grid;gap:14px}.flash{position:fixed;top:14px;left:50%;transform:translateX(-50%);padding:10px 16px;border-radius:6px;background:#e7f7ed;color:#126b39;z-index:99}.flash.error{background:#fdecec;color:#b42318}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{padding:11px 10px;border-bottom:1px solid #edf1f5;text-align:left;vertical-align:top}th{background:#f8fafc;color:#475467;font-weight:600}.clip{max-width:420px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.row-actions{display:flex;gap:10px;align-items:center}.list-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:16px}.list-head h1{margin-bottom:6px}.thumb{max-width:180px;border:1px solid #e1e7ec;border-radius:6px}.field-title{font-weight:600;margin-bottom:8px}.type-panel{border:1px solid #e6ebf0;border-radius:8px;padding:14px;background:#fafbfc}.option-editor{display:grid;gap:10px}.option-editor label{display:grid;grid-template-columns:34px 1fr;gap:8px;align-items:center}.option-editor span,.option-key{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:6px;font-weight:700;flex:0 0 30px}.answer-choice{display:flex;gap:10px;flex-wrap:wrap}.answer-choice label{display:flex!important;align-items:center;gap:6px;border:1px solid #d8e0e8;border-radius:6px;padding:8px 12px;background:#fff}.answer-choice input{width:auto}.modal-lock{overflow:hidden}.modal{display:none;position:fixed;inset:0;z-index:80}.modal.is-open{display:block}.modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.48)}.modal-panel{position:relative;width:min(860px,calc(100vw - 28px));max-height:calc(100vh - 36px);overflow:auto;margin:18px auto;background:#fff;border:1px solid #d8e0e8;border-radius:8px;box-shadow:0 20px 50px rgba(15,23,42,.22);padding:0 22px 22px}.modal-head{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;align-items:center;gap:12px;background:#fff;border-bottom:1px solid #e8edf2;margin:0 -22px 18px;padding:18px 22px}.modal-head h1{margin:0}.icon-button{width:36px;height:36px;border-radius:6px;padding:0;font-size:24px;line-height:1}.question-picker,.student-grid{max-height:380px;overflow:auto;border:1px solid #e1e7ec;border-radius:6px;padding:8px}.check-row{display:flex!important;grid-template-columns:auto 1fr!important;gap:8px!important;align-items:flex-start;padding:7px}.check-row input{width:auto;margin-top:3px}.copy-field{min-width:320px}.home{min-height:calc(100vh - 58px);display:grid;place-items:center;padding:24px}.home-hero{max-width:760px;text-align:center}.home-hero h1{font-size:44px;margin-bottom:12px}.home-hero p{font-size:18px;color:#475467;line-height:1.7}.exam-layout{max-width:900px;margin:24px auto 90px;padding:0 20px}.exam-head{margin-bottom:18px}.question-card,.answer-card{background:#fff;border:1px solid #e1e7ec;border-radius:8px;padding:20px;margin-bottom:16px}.question-title{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:14px}.question-title>div{display:flex;gap:10px;align-items:center}.q-index{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:#1769aa;color:#fff;font-weight:700}.type-badge{border:1px solid #cfe0ef;border-radius:999px;padding:5px 10px;background:#f4f9fd;color:#1769aa;font-size:14px}.question-stem{font-size:17px;line-height:1.75;margin:8px 0 14px}.question-figure{margin:12px 0 18px;text-align:center;background:#f8fafc;border:1px solid #e1e7ec;border-radius:8px;padding:12px}.question-image{max-width:100%;max-height:520px;border-radius:6px}.option-list{display:grid;gap:10px}.option-grid{grid-template-columns:1fr 1fr}.option-list label{display:flex;gap:10px;align-items:flex-start;padding:12px;border:1px solid #d8e0e8;border-radius:8px;background:#fff;cursor:pointer;min-height:56px}.option-list label:has(input:checked){border-color:#1769aa;background:#f4f9fd}.option-list input{width:auto;margin-top:8px}.true-false{grid-template-columns:1fr 1fr}.answer-input{font-size:16px;line-height:1.7}.submit-bar{position:fixed;left:0;right:0;bottom:0;background:#fff;border-top:1px solid #e1e7ec;padding:12px 20px;text-align:center}
.modal-wide{width:min(1080px,calc(100vw - 28px))}.compose-toolbar{display:grid;grid-template-columns:180px 180px 220px 1fr;gap:12px;align-items:end;margin-bottom:14px}.compose-summary{justify-self:end;border:1px solid #d8e0e8;border-radius:8px;padding:11px 14px;background:#f8fafc}.selected-panel{border:1px solid #d8e0e8;border-radius:8px;background:#f8fafc;padding:14px;margin-bottom:14px}.selected-list{display:grid;gap:8px}.selected-item{display:grid;grid-template-columns:34px 1fr auto;gap:10px;align-items:center;background:#fff;border:1px solid #e1e7ec;border-radius:8px;padding:10px}.selected-index{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:6px;background:#1769aa;color:#fff;font-weight:700}.selected-main{min-width:0;display:grid;gap:3px}.selected-main strong{color:#1769aa;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.selected-main em{font-style:normal;color:#344054;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.selected-actions{display:flex;gap:8px}.selected-actions button{padding:6px 10px}.compose-list{display:grid;gap:10px;max-height:46vh;overflow:auto;padding-right:4px}.compose-question{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;border:1px solid #d8e0e8;border-radius:8px;background:#fff;padding:12px;cursor:pointer}.compose-question:hover{border-color:#9dbbd5;background:#fbfdff}.compose-question input{width:auto}.compose-meta{color:#1769aa;font-weight:600}.compose-stem{color:#344054;line-height:1.5}.in-modal{position:sticky;margin:16px -22px -22px}
.compose-question{grid-template-columns:1fr auto}.compose-check{display:grid;grid-template-columns:auto 170px 1fr;gap:12px;align-items:center;cursor:pointer}.preview-body{display:grid;gap:14px}.preview-section{border-top:1px solid #e8edf2;padding-top:12px}.preview-section h3{margin:0 0 8px}.preview-options{margin:0;padding-left:22px;display:grid;gap:8px}.image-options{display:flex!important;flex-wrap:nowrap;gap:12px;overflow-x:auto;padding-bottom:4px}.image-options label{justify-content:center;align-items:center;min-height:58px;min-width:78px;flex:0 0 auto;font-weight:700;font-size:18px}.image-options input{position:absolute;opacity:0;pointer-events:none}.image-options .option-key{width:auto;height:auto;background:transparent;color:inherit;font-size:18px}
.tag-picker{border:1px solid #d8e0e8;border-radius:8px;background:#fff;padding:8px;display:grid;gap:8px}.tag-selected,.tag-cell{display:flex;gap:6px;flex-wrap:wrap}.tag-picker input{border:0;padding:6px;outline:0}.tag-chip{display:inline-flex;align-items:center;gap:6px;border:1px solid #cfe0ef;border-radius:999px;background:#f4f9fd;color:#1769aa;padding:5px 9px;font-size:14px}.tag-chip button{border:0;background:transparent;color:#1769aa;padding:0;font-weight:700}.small-chip{font-size:12px;padding:3px 7px}
.upload-panel{display:grid;gap:10px}.image-preview{max-width:100%;max-height:320px;border:1px solid #d8e0e8;border-radius:8px;background:#fff;object-fit:contain}
.nvr-answer-panel{display:grid;grid-template-columns:220px 1fr;gap:14px;align-items:end}.nvr-answer-panel .field-title{margin-bottom:7px}.nvr-answer-panel .answer-choice{min-height:42px;align-items:center}
input[type=radio],input[type=checkbox]{appearance:none;-webkit-appearance:none;width:18px!important;height:18px;margin:0!important;padding:0!important;border:1.5px solid #98a6b3;background:#fff;display:inline-grid;place-content:center;flex:0 0 18px;vertical-align:middle}input[type=radio]{border-radius:50%}input[type=checkbox]{border-radius:5px}input[type=radio]::before{content:"";width:8px;height:8px;border-radius:50%;background:#1769aa;transform:scale(0);transition:transform .12s ease}input[type=checkbox]::before{content:"";width:9px;height:5px;border-left:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(-45deg) scale(0);margin-top:-2px;transition:transform .12s ease}input[type=radio]:checked,input[type=checkbox]:checked{border-color:#1769aa;background:#fff}input[type=radio]:checked::before{transform:scale(1)}input[type=checkbox]:checked{background:#1769aa}input[type=checkbox]:checked::before{transform:rotate(-45deg) scale(1)}input[type=radio]:focus-visible,input[type=checkbox]:focus-visible{outline:3px solid rgba(23,105,170,.2);outline-offset:2px}.answer-choice label,.option-list label,.check-row,.compose-check{align-items:center!important}
.image-options input[type=radio]{position:absolute!important;opacity:0!important;pointer-events:none!important}.image-options label:has(input:checked){background:#1769aa;color:#fff;border-color:#1769aa}
.markdown-body{line-height:1.75}.question-stem.markdown-body{font-size:17px;margin:8px 0 14px}.markdown-body p{margin:.35em 0}.markdown-body .katex{font-size:1.08em}.grid-md{max-width:520px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.grid-md p{display:inline;margin:0}.data-toolbar{display:grid;grid-template-columns:minmax(220px,1fr) 150px 150px 150px 180px auto auto;gap:10px;align-items:center;margin-bottom:14px}.data-grid-wrap{border:1px solid #e1e7ec;border-radius:8px}.data-grid{table-layout:fixed;min-width:1120px}.data-grid th,.data-grid td{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.data-grid th{position:sticky;top:0;z-index:1}.data-grid th:nth-child(1){width:64px}.data-grid th:nth-child(2){width:100px}.data-grid th:nth-child(3){width:130px}.data-grid th:nth-child(4){width:430px}.data-grid th:nth-child(5){width:220px}.data-grid th:nth-child(6){width:120px}.data-grid th:nth-child(7),.data-grid th:nth-child(8){width:80px}.data-grid th:nth-child(9){width:120px}.nowrap-cell{white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis}
.option-content{min-width:0;line-height:1.55}.option-content p{margin:0}.option-content .katex{font-size:1.04em}
.table-wrap.data-grid-wrap{overflow-x:hidden!important;overflow-y:visible!important;max-height:none;width:100%}.data-grid{width:100%;min-width:0;max-width:100%;table-layout:fixed}.data-grid th,.data-grid td{min-width:0}.data-grid th:nth-child(1){width:46px}.data-grid th:nth-child(2){width:76px}.data-grid th:nth-child(3){width:96px}.data-grid th:nth-child(4){width:auto}.data-grid th:nth-child(5){width:150px}.data-grid th:nth-child(6){width:78px}.data-grid th:nth-child(7),.data-grid th:nth-child(8){width:52px}.data-grid th:nth-child(9){width:86px}.data-grid .tag-cell{max-width:150px;overflow:hidden;flex-wrap:nowrap}.data-grid .row-actions{white-space:nowrap;gap:6px;overflow:hidden}.data-grid .grid-md{max-width:100%}.data-grid .row-actions form{display:inline}
.option-editor label{align-items:start}.option-source.option-latex-input{display:block!important}.option-textwrap{min-width:0;display:grid;gap:4px}.option-vditor{min-width:0}.option-edit-row{display:grid;grid-template-columns:34px minmax(0,1fr) 96px;gap:8px;align-items:start}.option-letter{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:6px;font-weight:700;margin-top:3px;color:inherit}.option-answer{height:38px;margin-top:0;border:1px solid #c7d0d9;border-radius:6px;background:#fff;color:#344054;padding:0 10px;display:inline-flex!important;align-items:center;justify-content:center;gap:6px;white-space:nowrap}.option-answer.is-active{border-color:#1769aa;background:#1769aa;color:#fff}.option-answer input[type=checkbox]{border-color:currentColor;background:transparent}.option-answer.is-active input[type=checkbox]{background:#1769aa;border-color:#fff}
.option-render{margin-top:4px;min-height:0;border:0;background:transparent;padding:0;color:#344054;display:inline}.option-render:empty{display:none}.option-render p{display:inline;margin:0}.option-render .language-math,.option-render .katex{display:inline}.option-render .katex{font-size:1.05em}.option-render .vditor-reset{background:transparent!important;padding:0!important;display:inline}
.option-answer-wrap{width:96px;display:flex;justify-content:stretch}.option-answer-wrap .option-answer{width:100%}
.option-edit-row.is-hidden{display:none}
.data-grid-wrap,.data-grid{contain:inline-size}.data-grid col.col-id{width:4.5%}.data-grid col.col-subject{width:7%}.data-grid col.col-type{width:9%}.data-grid col.col-stem{width:34%}.data-grid col.col-tags{width:14%}.data-grid col.col-answer{width:8%}.data-grid col.col-score{width:5.5%}.data-grid col.col-difficulty{width:5.5%}.data-grid col.col-actions{width:12.5%}.data-toolbar{max-width:100%;overflow:hidden}.data-toolbar>*{min-width:0}.panel{max-width:100%;overflow-x:hidden}
.data-grid .tag-cell{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:center;max-width:none;overflow:hidden}.tag-list{min-width:0;display:flex;gap:4px;flex-wrap:nowrap;overflow:hidden}.tag-full{display:none;grid-column:1/-1;flex-wrap:wrap;white-space:normal;margin-top:4px}.tag-cell.is-expanded .tag-collapsed{display:none}.tag-cell.is-expanded .tag-full{display:flex}.tag-toggle{border:0;background:transparent;color:#1769aa;padding:0;white-space:nowrap}.tag-more{font-size:12px;color:#667085;white-space:nowrap}
@media (max-width:860px){.two-col,.stats,.option-grid,.true-false,.compose-toolbar,.compose-question,.compose-check,.nvr-answer-panel{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.topbar{padding:0 14px}.topbar nav{gap:10px;font-size:14px}.home-hero h1{font-size:32px}.container{margin:18px auto;padding:0 12px}.panel{padding:16px}.question-title,.list-head{align-items:flex-start;flex-direction:column}.question-stem{font-size:16px}.compose-summary{justify-self:stretch}}
.tag-cell{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;white-space:nowrap}.tag-cell .tag-count{min-width:0;color:#667085;overflow:hidden;text-overflow:ellipsis}.tag-preview-btn{padding:6px 10px;border:1px solid #cfd7df;border-radius:6px;background:#fff;color:#1769aa;white-space:nowrap}
.tag-preview-list,.preview-tag-list,.preview-answer-list{display:flex;flex-wrap:wrap;gap:8px}.preview-answer-text{line-height:1.75;color:#1f2933}.preview-option-item{display:grid;grid-template-columns:30px minmax(0,1fr);gap:10px;align-items:start;padding:10px 0;border-bottom:1px solid #edf1f5}.preview-option-item:last-child{border-bottom:0}.preview-option-key,.preview-image-option{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border:1px solid #cfd7df;border-radius:6px;background:#fff;color:#1769aa;font-weight:700;flex:0 0 30px}.preview-option-content{min-width:0;line-height:1.55}.preview-option-content p{margin:0}.preview-image-options{display:flex;flex-wrap:wrap;gap:10px}.preview-image-options .preview-image-option{min-width:54px;width:auto;padding:0 10px}
.nvr-answer-panel{display:grid;grid-template-columns:220px minmax(0,1fr);gap:14px;align-items:start}.nvr-answer-panel .answer-choice{display:grid;grid-template-columns:repeat(auto-fit,minmax(52px,1fr));gap:8px}.nvr-answer-option{display:flex;align-items:center;justify-content:center;gap:6px;border:1px solid #d8e0e8;border-radius:6px;padding:8px 10px;background:#fff}.nvr-answer-option input{width:auto}.nvr-answer-option.is-hidden{display:none!important}
.tag-preview-list .tag-chip{font-size:13px}
.page-stack{display:grid;gap:20px}.panel-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:16px}.panel-head h1{margin-bottom:6px}.panel-head p{margin:0}.workflow-notes{display:flex;gap:10px;flex-wrap:wrap}.workflow-note{display:inline-flex;align-items:center;gap:8px;border:1px solid #d8e0e8;border-radius:999px;background:#f8fafc;padding:7px 12px;color:#475467;font-size:13px}
.tags-input-area{position:relative;display:flex;flex-wrap:wrap;gap:8px;align-items:center;min-height:46px;border:1px solid #cfd7df;border-radius:8px;background:#fff;padding:7px}.tags-input-area:focus-within{border-color:#1769aa;box-shadow:0 0 0 3px rgba(23,105,170,.12)}.tags-input-area input[type=text]{width:auto;min-width:180px;flex:1 1 180px;border:0;padding:7px 4px;outline:0}.selected-tag-item{display:inline-flex;align-items:center;gap:7px;border:1px solid #cfe0ef;border-radius:999px;background:#f4f9fd;color:#1769aa;padding:6px 10px;font-size:14px}.selected-tag-close{width:18px;height:18px;border:0;border-radius:50%;background:transparent;color:#1769aa;padding:0;line-height:1;font-weight:700}.selected-tag-close:hover{background:#dbeefb}.tag-suggestions-dropdown{display:none;position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:6;max-height:260px;overflow:auto;border:1px solid #d8e0e8;border-radius:8px;background:#fff;box-shadow:0 12px 28px rgba(15,23,42,.14);padding:6px}.tag-suggestions-dropdown.is-open{display:grid;gap:4px}.tag-suggestion-item{display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px;border:0;border-radius:6px;background:#fff;padding:9px 10px;text-align:left;color:#1f2933}.tag-suggestion-item:hover{background:#f4f9fd}.tag-suggestion-count{color:#667085;font-size:13px;white-space:nowrap}.tag-suggestion-empty{padding:10px;color:#667085}
.grid-md,.compose-stem,.selected-main em,.selected-main strong,.compose-meta,.compose-question,.question-card,.preview-answer-text,.preview-option-content,.tag-count{min-width:0}
