.create-test-layout{max-width:1600px;margin:18px auto;padding:0 20px 40px;display:flex;flex-direction:column;gap:16px;height:calc(100vh - 90px)}.create-header{padding:16px 24px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px}.title-meta{display:flex;align-items:center;gap:14px}.title-meta h2{font-size:1.25rem}.title-meta p{font-size:.85rem;color:var(--text-secondary)}.create-top-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.split-container{display:grid;grid-template-columns:1fr 1.15fr;gap:18px;flex:1;min-height:0}.pane-editor,.pane-preview{display:flex;flex-direction:column;overflow:hidden;height:100%}.pane-header{padding:12px 18px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--border-subtle);background:var(--bg-surface-subtle)}.pane-title{display:flex;align-items:center;gap:8px}.editor-dot{width:10px;height:10px;border-radius:50%}.dot-red{background:#ef4444}.dot-yellow{background:#f59e0b}.dot-green{background:#10b981}.pane-label{font-weight:600;font-size:.88rem;margin-left:4px}.editor-area-wrapper{flex:1;position:relative;display:flex;overflow:hidden;background:var(--bg-base)}.editor-gutter{width:48px;background:#080c14;border-right:1px solid var(--border-strong);color:#475569;font-family:var(--font-mono);font-size:.85rem;line-height:1.6;padding:16px 6px 16px 0;text-align:right;user-select:none;overflow:hidden}.gutter-line{height:1.6em;padding-right:6px;transition:background .2s,color .2s}.gutter-line.error-line{background:#ef444459;color:#f87171;font-weight:700;border-right:3px solid #ef4444}#json-dump-input{flex:1;height:100%;background:transparent;color:#38bdf8;font-family:var(--font-mono);font-size:.85rem;line-height:1.6;padding:16px;border:none;outline:none;resize:none;tab-size:2;overflow-y:auto}.json-error-banner{background:#ef444426;border-top:1px solid rgba(239,68,68,.35);padding:12px 16px;max-height:120px;overflow-y:auto}.error-header{display:flex;align-items:center;gap:8px;color:#f87171;font-weight:600;font-size:.85rem;margin-bottom:4px}.error-line-badge{margin-left:auto;background:#ef4444;color:#fff;font-size:.75rem;font-weight:700}.error-details{color:#fca5a5;font-size:.8rem;font-family:var(--font-mono);white-space:pre-wrap}.preview-body{flex:1;overflow-y:auto;padding:20px;display:flex;flex-direction:column;gap:16px}.preview-empty-state{text-align:center;margin:auto;color:var(--text-muted)}.preview-sec-divider{background:#38bdf81f;border:1px solid rgba(56,189,248,.35);border-radius:var(--radius-md);padding:12px 18px;color:#38bdf8;font-size:.92rem;font-weight:700;letter-spacing:.5px;text-transform:uppercase;box-shadow:0 2px 8px #0003}.preview-q-card{background:var(--bg-surface-elevated);border:1px solid var(--border-subtle);border-radius:var(--radius-md);padding:18px;content-visibility:auto;contain-intrinsic-size:0 140px}.preview-q-card:hover{border-color:var(--border-focus)}.preview-q-meta{display:flex;justify-content:space-between;margin-bottom:12px;font-size:.85rem;font-weight:600}.preview-q-text{font-size:1rem;line-height:1.7;margin-bottom:14px;color:var(--text-primary)}.preview-options-list{display:flex;flex-direction:column;gap:8px;margin-bottom:12px}.preview-opt-item{display:flex;align-items:center;gap:10px;padding:8px 12px;background:var(--bg-surface-subtle);border-radius:var(--radius-sm);border:1px solid var(--border-subtle);font-size:.92rem;line-height:1.5}.preview-opt-item.is-correct{background:#22c55e1f;border-color:#22c55e66;color:#4ade80;font-weight:600}.preview-opt-item.is-wrong{background:#ef44441f;border-color:#ef444466;color:#f87171;font-weight:600}.preview-ans-box{background:var(--bg-surface-subtle);border-left:3px solid #3b82f6;padding:10px 14px;border-radius:0 var(--radius-sm) var(--radius-sm) 0;font-size:.9rem;line-height:1.6;margin-top:10px}.preview-ans-box strong{color:var(--primary-color)}.btn-ai-prompt{background:#a855f726;border-color:#a855f766;color:#c084fc}.btn-ai-prompt:hover{background:#a855f740;border-color:#c084fc;color:#fff}.modal-backdrop{position:fixed;top:0;left:0;width:100vw;height:100vh;background:#000000bf;display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px}.modal-box{width:100%;max-width:720px;max-height:85vh;display:flex;flex-direction:column;box-shadow:0 20px 40px #000c;border-color:#a855f766}.modal-box-large{max-width:960px;height:90vh;max-height:90vh;border-color:#38bdf866}.modal-scroll-body{padding:20px;overflow-y:auto;flex:1;display:flex;flex-direction:column;gap:16px;background:var(--bg-surface)}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid var(--border-subtle)}.modal-title{display:flex;align-items:center;gap:10px;font-weight:700;font-size:1.1rem;color:#c084fc}#ai-prompt-modal .modal-box{max-width:880px;max-height:90vh;height:85vh}.prompt-tab-bar{display:flex;justify-content:space-between;align-items:center;background:var(--bg-surface-subtle);border-bottom:1px solid var(--border-subtle);padding:0 16px;gap:8px}.prompt-tab-group{display:flex;gap:6px}.prompt-tab-btn{background:transparent;border:none;color:var(--text-secondary);padding:12px 18px;font-size:.92rem;font-weight:600;cursor:pointer;border-bottom:2px solid transparent;transition:all var(--transition-fast)}.prompt-tab-btn:hover{color:var(--text-primary)}.prompt-tab-btn.active{color:#c084fc;border-bottom-color:#c084fc;background:#a855f714}.modal-body{padding:20px;display:flex;flex-direction:column;gap:12px;overflow-y:auto;flex:1}.modal-desc{font-size:.9rem;color:var(--text-secondary);line-height:1.5}.prompt-text-container{flex:1;min-height:380px;border-radius:var(--radius-md);overflow:hidden;border:1px solid var(--border-strong);background:var(--bg-base);position:relative;display:flex;flex-direction:column}#ai-prompt-textarea{width:100%;height:100%;flex:1;background:var(--bg-base);color:#38bdf8;font-family:var(--font-mono);font-size:.85rem;line-height:1.5;padding:16px;border:none;outline:none;resize:none;overflow-y:auto}.prompt-rendered-view{width:100%;height:100%;flex:1;overflow-y:auto;padding:18px 22px;color:#e2e8f0;font-size:.92rem;line-height:1.65;user-select:text}.prompt-rendered-view h1,.prompt-rendered-view h2,.prompt-rendered-view h3,.prompt-rendered-view h4{color:#c084fc;font-weight:700;margin:18px 0 8px}.prompt-rendered-view h3{font-size:1.05rem;border-bottom:1px solid rgba(192,132,252,.25);padding-bottom:4px;letter-spacing:.3px}.prompt-rendered-view h3 ol,.prompt-rendered-view h3 ul,.prompt-rendered-view h3 li{display:inline;margin:0;padding:0;list-style:none;font-size:inherit;font-weight:inherit;color:inherit}.prompt-rendered-view ul,.prompt-rendered-view ol{margin:8px 0 14px 18px;padding-left:8px}.prompt-rendered-view li{margin-bottom:6px;color:var(--text-secondary)}.prompt-rendered-view li strong{color:#38bdf8;font-weight:600}.prompt-rendered-view code{background:#38bdf81a;color:#38bdf8;padding:2px 6px;border-radius:4px;font-family:var(--font-mono);font-size:.85em;border:1px solid rgba(56,189,248,.2)}.prompt-rendered-view pre.code{background:#090d16;border:1px solid var(--border-subtle);border-radius:8px;padding:14px 16px;overflow-x:auto;margin:12px 0}.prompt-rendered-view pre.code code{background:transparent;border:none;color:#34d399;padding:0;font-size:.83rem;line-height:1.45;display:block}.prompt-rendered-view blockquote{border-left:3px solid #c084fc;margin:10px 0;padding:6px 14px;background:#c084fc0f;border-radius:0 6px 6px 0;color:var(--text-secondary)}.modal-footer{display:flex;justify-content:flex-end;align-items:center;gap:16px;padding:16px 20px;border-top:1px solid var(--border-subtle);background:var(--bg-surface-subtle)}.copy-success-msg{color:#4ade80;font-weight:600;font-size:.88rem}#view-qa-mode{height:100vh;min-height:100vh;max-height:100vh;overflow:hidden;padding:0;margin:0;box-sizing:border-box}.qa-container{width:100%;max-width:100%;height:100vh;max-height:100vh;margin:0;padding:10px 18px 12px;display:flex;flex-direction:column;gap:10px;box-sizing:border-box}.qa-header{display:flex;align-items:center;justify-content:space-between;padding:10px 20px;background:var(--bg-surface);border-radius:var(--radius-lg);border:1px solid var(--border-subtle);flex-shrink:0}.qa-header-left{display:flex;align-items:center;gap:14px}.qa-title-box{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.qa-title-box h3{font-size:1.15rem;margin:0;color:var(--text-primary)}.qa-header-right{display:flex;align-items:center;gap:10px}.qa-hint-shortcut{font-size:.82rem;color:var(--text-muted)}.qa-split-screen{display:flex;flex:1;gap:14px;min-height:0;overflow:hidden}.qa-pane{flex:1;display:flex;flex-direction:column;min-width:0;overflow:hidden;border-radius:var(--radius-lg);background:var(--bg-surface);border:1px solid var(--border-subtle)}.qa-pane-header{display:flex;align-items:center;justify-content:space-between;padding:10px 18px;background:var(--bg-surface-subtle);border-bottom:1px solid var(--border-subtle)}.qa-pane-meta{display:flex;align-items:center;gap:8px}.qa-font-resizer{display:inline-flex;align-items:center;gap:4px;background:#090d16;border:1px solid rgba(255,255,255,.18);border-radius:6px;padding:3px 8px;user-select:none}.qa-pane-body{flex:1;overflow-y:auto;padding:24px 28px}.qa-pane-left{--qa-left-font-scale: 1}.qa-pane-right{--qa-right-font-scale: 1}.qa-pane-left .question-stem{font-size:calc(1.25rem * var(--qa-left-font-scale, 1));line-height:calc(1.85 * var(--qa-left-font-scale, 1));margin-bottom:24px;color:var(--text-primary);font-weight:500}.qa-pane-left .cbt-option-item{cursor:default;padding:12px 18px;margin-bottom:12px;border-radius:var(--radius-md)}.qa-pane-left .cbt-option-label{font-size:calc(1.15rem * var(--qa-left-font-scale, 1));line-height:calc(1.65 * var(--qa-left-font-scale, 1))}.qa-pane-right .qa-solution-body{font-size:calc(1.16rem * var(--qa-right-font-scale, 1));line-height:calc(1.85 * var(--qa-right-font-scale, 1))}.qa-pane .katex{font-size:1.12em}.qa-key-strip{display:flex;align-items:center;gap:14px;background:#10b98114;border:1px solid rgba(16,185,129,.3);border-radius:10px;padding:10px 18px;margin-bottom:18px;flex-wrap:wrap}.qa-key-label{font-size:.88rem;font-weight:800;letter-spacing:.06em;color:#34d399;text-transform:uppercase;flex-shrink:0}.qa-key-pill{background:#10b981;color:#022c22;font-size:.95rem;font-weight:800;padding:3px 12px;border-radius:6px;box-shadow:0 0 10px #10b9814d;font-family:var(--font-mono);flex-shrink:0}.qa-key-val{font-size:1.05rem;color:#f8fafc;font-weight:500;line-height:1.4;display:inline-flex;align-items:center}.qa-solution-card{background:var(--bg-surface-subtle);border:1px solid var(--border-subtle);border-radius:var(--radius-md);padding:22px}.qa-solution-card h4{display:flex;align-items:center;gap:8px;font-size:1.15rem;color:#38bdf8;margin-bottom:16px;padding-bottom:10px;border-bottom:1px solid var(--border-subtle)}.qa-solution-body{color:var(--text-primary)}.qa-solution-empty{color:var(--text-muted);font-style:italic;padding:12px 0}.qa-bottom-bar{display:flex;align-items:center;justify-content:space-between;padding:8px 18px;background:#0b1120f2;border-radius:12px;border:1px solid rgba(255,255,255,.08);box-shadow:0 4px 20px #0006;flex-shrink:0;min-height:50px}.qa-nav-btn{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 18px;font-size:.85rem;font-weight:700;letter-spacing:.04em;border-radius:8px;cursor:pointer;transition:all .2s cubic-bezier(.4,0,.2,1);user-select:none}.qa-btn-prev{background:#1e293bb3;border:1px solid rgba(255,255,255,.12);color:#cbd5e1}.qa-btn-prev:not(:disabled):hover{background:#334155e6;color:#f8fafc;border-color:#38bdf866;box-shadow:0 0 12px #38bdf826;transform:translate(-1px)}.qa-btn-next{background:linear-gradient(135deg,#0284c7,#2563eb);border:1px solid rgba(56,189,248,.35);color:#fff;box-shadow:0 2px 10px #0284c74d}.qa-btn-next:not(:disabled):hover{background:linear-gradient(135deg,#0369a1,#1d4ed8);box-shadow:0 4px 16px #0284c780;transform:translate(1px)}.qa-nav-btn:disabled{opacity:.28;cursor:not-allowed;filter:grayscale(1);pointer-events:none}.qa-bottom-counter{font-size:.88rem;color:#64748b;font-weight:600;font-family:var(--font-mono)}.qa-bottom-counter strong{color:#38bdf8;font-size:1.05rem;font-weight:800}@media(max-width:900px){#view-qa-mode{height:auto;max-height:none;overflow:visible}.qa-container{height:auto;max-height:none;padding:10px 12px 24px}.qa-split-screen{flex-direction:column;height:auto;overflow:visible}.qa-pane{max-height:70vh}.qa-header{flex-direction:column;align-items:stretch;gap:10px}.qa-bottom-bar{position:sticky;bottom:0;z-index:10;padding:10px 16px}}
