/* Tool workspace: measured against the supplied 1080 × 644 reference. */
.tool-library{height:40px;border-bottom:1px solid #e1e6da;background:#fff;display:flex;align-items:center;gap:18px;padding:0 30px;font-size:11px;color:#7f8b7c}.tool-library button{padding:9px 4px}.tool-library .active{color:#315e45;border-bottom:2px solid #315e45}.exam-controls-foot .exam-fixed-api{width:100%;margin:0 0 2px;font-size:8px;color:#c5af86}
.tool-shell{min-height:100vh;background:#f6f7f3;padding:40px 0 0}
.tool-header{height:40px;position:fixed;inset:0 0 auto;z-index:20;display:flex;align-items:center;background:#1f2937;color:#d6dce5;border-bottom:1px solid #344152;padding:0 15px;gap:26px;font-size:11px}
.tool-brand{display:flex;align-items:center;gap:6px;padding:0;flex-shrink:0;text-align:left;width:104px}
.tool-brand>b{height:25px;width:25px;background:#195bfa;border-radius:7px;display:grid;place-items:center}
.tool-icon{height:15px;width:15px;vertical-align:middle;flex-shrink:0;filter:brightness(0) invert(.8)}
.tool-brand strong{display:block;font-size:12px;color:#fff;letter-spacing:.3px}.tool-brand small{display:block;font-size:9px;color:#5792ff;margin-top:1px}
.tool-navigation{display:flex;align-items:center;gap:4px;overflow:auto;scrollbar-width:none;flex:1;white-space:nowrap;height:40px}
.tool-navigation button{font-size:11px;padding:7px 12px;border-radius:4px;font-weight:550;white-space:nowrap}.tool-navigation button:hover{background:#29364a}.tool-navigation button.active{color:#5893ff;background:#223650}.tool-navigation button[data-pending]{color:#a5adba}.tool-navigation button[data-pending]:after{content:'待';color:#98a5b8;margin-left:4px;font-size:8px;border:1px solid #3e4c61;padding:0 2px;border-radius:2px}
.tool-account{display:flex;gap:12px;align-items:center;font-size:10px;white-space:nowrap}.tool-account button{padding:4px;color:#a4b0c0}.tool-account>span{color:#8896aa}.tool-account .tool-icon{width:13px;height:13px}
.exam-workbench{height:calc(100vh - 40px);display:grid;grid-template-columns:242px minmax(0,1fr) minmax(0,1fr);background:#101827;color:#d0d8e4;--muted:#8b9ab0;--line:#344052;font-size:11px}
.exam-controls{background:#1f2937;border-right:1px solid #344052;display:flex;flex-direction:column;min-height:0}.exam-controls-scroll{overflow:auto;padding:0 11px;scrollbar-width:thin;flex:1}.tool-caption{font-size:10px;color:#8d9bae;margin:14px 0 7px;font-weight:500}.exam-upload{border:1px dashed #58677c;border-radius:6px;min-height:56px;display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;padding:9px 8px;cursor:pointer;color:#aab7c9}.exam-upload:hover{border-color:#6398ff;background:#25344a}.exam-upload .tool-icon{height:17px;width:17px}.exam-upload span{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.exam-upload small{display:block;width:100%;text-align:center;font-size:8px;color:#8c9db4}.exam-file-links{display:flex;justify-content:space-between;margin-top:5px;color:#91a7c5;font-size:9px}.exam-file-links button{padding:4px 1px}.exam-file-links button:hover{text-decoration:underline;color:#7dacff}
.exam-field{display:flex;flex-direction:column;gap:5px;color:#92a1b7;font-size:9px;margin-bottom:9px}.exam-field select,.exam-field input{width:100%;background:#1f2937;color:#e0e7f1;border:1px solid transparent;border-radius:4px;padding:6px 5px;font-size:11px;height:29px}.exam-field select:hover,.exam-field input:hover{border-color:#4b5d74}.exam-field input{border-color:#3a485d}.exam-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 8px;margin-top:8px}.exam-check{display:flex;gap:6px;align-items:center;font-size:10px;color:#e2e8f2;margin-bottom:8px}.exam-check input{accent-color:#2465f8;width:13px;height:13px;margin:0}.exam-caption{font-size:9px;color:#91a1b8;line-height:1.7}.exam-prompt{width:100%;min-height:135px;resize:vertical;border:1px solid transparent;background:#1f2937;color:#dbe4f1;font-size:11px;line-height:1.6;padding:8px;max-height:350px}.exam-prompt:hover{border-color:#3c4a60}.exam-api-state{display:flex;gap:5px;align-items:center;font-size:9px;color:#aab6c7;margin:13px 0}.exam-api-state span{width:5px;height:5px;border-radius:50%;background:#d8aa5d}.exam-api-state button{margin-left:auto;color:#7da6ed}.exam-warnings{font-size:9px;line-height:1.7;color:#e3c38a}.exam-warnings:empty{display:none}.saved-exams{margin-top:14px}.saved-exams select{border-color:#3a485d}
.exam-controls-foot{display:flex;flex-wrap:wrap;gap:7px;padding:11px 10px 9px;background:#1f2937}.exam-controls-foot>button{padding:10px 8px;border-radius:9px;color:white;font-size:11px;display:flex;gap:7px;align-items:center;justify-content:center;font-weight:600;min-height:35px}.exam-controls-foot .exam-primary{flex:1;background:#1b5bff;box-shadow:0 4px 9px #1555f52e}.exam-controls-foot .exam-primary:hover{background:#3671ff}.exam-controls-foot .exam-secondary{background:#8623df;min-width:68px}.exam-controls-foot .exam-secondary:hover{background:#993bea}.exam-controls-foot small{width:100%;font-size:8px;color:#91a1b8;text-align:center}.exam-controls-foot .tool-icon{filter:brightness(0) invert(1);width:13px;height:13px}
.exam-editor-pane,.exam-preview-pane{background:#1f2937;border:1px solid #344052;border-radius:13px;overflow:hidden;display:flex;flex-direction:column;min-height:0;min-width:0;margin:13px 0 13px 12px}.exam-preview-pane{margin-right:6px;background:#1d2939;border-color:#1d2939}.exam-panel-head{height:31px;min-height:31px;padding:0 11px;display:flex;align-items:center;justify-content:space-between;color:#98a7bb;border-bottom:1px solid #334052;font-size:9px}.exam-panel-head>div:last-child{display:flex;gap:8px;align-items:center}.exam-panel-head strong{font-size:9px;font-weight:500}.exam-panel-head button{padding:4px;font-size:9px;display:inline-flex;align-items:center;gap:4px}.exam-panel-head .tool-icon{height:12px;width:12px}.exam-editor-tabs{display:flex;height:31px;gap:10px}.exam-editor-tabs button{border-radius:0;border-bottom:2px solid transparent;color:#91a0b4}.exam-editor-tabs button.active{border-color:#5b91fb;color:#dce7f8}.exam-panel-head .exam-export{font-size:9px;color:#b8d1ff;border-radius:4px;background:#263c5b;padding:4px 6px}.exam-panel-head .exam-export:hover{background:#31517c}.exam-code-label{padding:8px 12px 3px;font-size:8px;letter-spacing:.3px;color:#8e9eb2;display:flex;justify-content:space-between;gap:8px}.exam-code-label span{font-size:8px;color:#77899f;letter-spacing:0}
#exam-markdown{flex:1;resize:none;border:0;border-radius:0;background:#1f2937;color:#d0d9e6;font-family:"Songti SC","SimSun",serif;font-size:12px;line-height:1.85;padding:8px 12px 20px;width:100%;scrollbar-width:thin;tab-size:4;min-height:0}#exam-markdown:focus{outline:0;background:#202c3c}.exam-editor-foot{height:29px;min-height:29px;border-top:1px solid #344052;display:flex;align-items:center;gap:9px;padding:0 11px;font-size:8px;color:#8e9fb7}.exam-editor-foot span{margin-right:auto}.exam-editor-foot button{font-size:8px;padding:4px 0}.exam-editor-foot button:hover{color:#a6c6ff}
.exam-preview{flex:1;overflow:auto;background:#101827;padding:0 15px 20px 0;scrollbar-width:thin;min-height:0}.exam-sheet-wrap{margin-bottom:16px;width:100%;overflow:hidden}.exam-sheet{background:#fff;color:#15191f;width:794px;min-height:1123px;padding:66px 58px 55px;position:relative;line-height:1.7;font-family:"Songti SC","SimSun",serif;font-size:14px}.exam-page-content h1{font-size:25px;text-align:center;margin:0 0 30px;font-weight:700}.exam-page-content h2{font-size:18px;line-height:1.7;margin:28px 0 18px;font-weight:700;break-after:avoid}.exam-page-content h3,.exam-page-content h4{font-size:16px;margin:20px 0 13px}.exam-page-content p{margin:0 0 16px;white-space:pre-wrap;overflow-wrap:anywhere;min-height:22px}.exam-page-content table{width:100%;border-collapse:collapse;font-size:13px;margin:18px 0 22px;table-layout:fixed;break-inside:avoid}.exam-page-content th,.exam-page-content td{border:1px solid #d3dbe4;padding:8px 12px;text-align:left;overflow-wrap:anywhere;font-weight:400}.exam-page-content th{background:#f3f6fa;font-weight:600}.exam-page-content hr{border:0;border-top:1px solid #9b9b9b;margin:25px 0}.exam-page-footer{display:flex;justify-content:space-between;position:relative;margin-top:55px;font-family:Arial,sans-serif;font-size:9px;color:#8a94a0;border-top:1px solid #d7dce4;padding-top:12px}.two-columns .exam-page-content{column-count:2;column-gap:28px}.exam-empty{color:#9a9fa7}.exam-preview-foot{font-size:8px;color:#8b9bb1;min-height:25px;padding:8px 10px 5px;line-height:1.6}.copy-markdown{width:100%}.tool-help{position:fixed;bottom:33px;right:10px;z-index:5;color:#b5c7e0}.tool-help button{background:#185bfc;border-radius:50%;width:30px;height:30px;display:grid;place-items:center;box-shadow:0 3px 12px #155bff40}.tool-help .tool-icon{filter:brightness(0) invert(1);height:16px;width:16px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.tool-shell .editor-workspace{height:calc(100vh - 113px)}.tool-shell #toast{left:50%}
@media(min-width:1500px){.exam-workbench{grid-template-columns:280px minmax(0,1fr) minmax(0,1fr)}.exam-controls-scroll{padding:0 16px}.exam-prompt{min-height:190px}.exam-field{font-size:11px}.exam-field input,.exam-field select{font-size:12px}.tool-caption{margin-top:20px}.exam-controls-foot{padding:14px 16px}}
@media(max-width:950px){.tool-header{gap:8px;padding:0 9px}.tool-navigation button{padding:7px 8px;font-size:10px}.tool-account>span{display:none}.tool-account{gap:3px}.exam-workbench{grid-template-columns:210px minmax(0,1fr) minmax(0,1fr)}.exam-panel-head{padding:0 7px}.exam-panel-head>div:last-child{gap:2px}#exam-preview-state{display:none}.exam-code-label span{display:none}.exam-preview-foot{font-size:7px}}
@media(max-width:700px){.tool-header{height:48px;gap:12px}.tool-shell{padding-top:48px}.tool-brand{width:96px}.tool-navigation{height:48px}.tool-account button:first-child{display:none}.tool-account button:last-child{font-size:9px}.exam-workbench{height:auto;min-height:calc(100vh - 48px);grid-template-columns:minmax(0,1fr);padding-bottom:15px}.exam-controls{min-height:0;border-right:0;border-bottom:1px solid #344052}.exam-controls-scroll{display:grid;grid-template-columns:1fr 1fr;gap:5px 12px;padding:12px}.exam-controls-scroll>.tool-caption{display:none}.exam-upload{grid-column:1}.exam-file-links{grid-column:1}.exam-controls-scroll>.exam-field{grid-column:2;grid-row:1 / span 2}.exam-form-grid{grid-column:1 / -1;margin:0;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px}.exam-check{grid-column:1;margin:0}.exam-caption{grid-column:2}.exam-prompt{grid-column:1 / -1;min-height:85px;max-height:130px}.exam-api-state,.exam-warnings{grid-column:1 / -1;margin:0}.exam-controls-scroll>.saved-exams{grid-column:1 / -1;grid-row:auto;margin:5px 0 0}.exam-controls-foot{padding:8px 12px}.exam-controls-foot small{width:auto;margin:auto 0;font-size:8px}.exam-editor-pane,.exam-preview-pane{margin:12px 10px 0;border-radius:10px}.exam-editor-pane{height:380px}.exam-preview-pane{height:650px}.exam-code-label span{display:inline}.exam-preview-foot{font-size:8px}.exam-preview{padding-left:10px;padding-right:10px}#exam-preview-state{display:inline}.tool-shell .content{padding:24px 16px}.tool-shell .editor-workspace{height:auto}.tool-help{bottom:15px}.exam-controls-foot>button{flex:initial}.exam-controls-foot .exam-primary{flex:1}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.exam-ai-job{background:#25354c;border:1px solid #3d536f;border-radius:6px;padding:10px;margin:10px 0;color:#c0d2eb;line-height:1.7;font-size:10px;overflow-wrap:anywhere}.exam-ai-job>strong{font-weight:500;display:block}.exam-ai-job>small{display:block;color:#91a8c6;font-size:9px;margin-top:4px}.exam-ai-job>button,.exam-ai-history>button{font-size:10px;padding:5px 8px;border:1px solid #486184;border-radius:4px;color:#c2d9fa;margin-top:8px}.exam-ai-history>button{margin-top:0}.exam-ai-history{margin-bottom:8px}.exam-candidate-note{background:#233650;border-bottom:1px solid #49658a;color:#bfd2ec;padding:10px 12px;line-height:1.7;font-size:10px}.exam-candidate-note>strong{font-size:11px;font-weight:550}.exam-candidate-note p{font-size:9px;color:#9eb4d0;margin:4px 0}.exam-candidate-note>div{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}.exam-candidate-note button{font-size:9px;padding:5px 7px;border:1px solid #476080;border-radius:4px}.exam-candidate-note button.active{border-color:#6499eb;background:#30517a;color:#e1edff}.exam-candidate-note .exam-adopt{background:#1b5fe9;color:#fff;border-color:#417bf1}.exam-controls-foot>button:disabled{opacity:.45;cursor:wait}
@media(max-width:700px){.exam-ai-job,.exam-ai-history{grid-column:1 / -1}.exam-ai-job{margin:5px 0}.exam-controls-foot [data-action="exam-ai-more"]{padding:8px 10px}.exam-candidate-note>strong{font-size:12px}.exam-candidate-note p,.exam-candidate-note button{font-size:10px}}

.exam-ai-controls .exam-primary{flex-basis:100%}.exam-ai-controls .exam-secondary{flex:1}.exam-ai-controls #exam-save-state{flex-basis:100%;width:100%;margin:0;text-align:center}
.exam-layout-fields{display:grid;grid-template-columns:1fr 1fr;gap:5px 10px;margin:6px 0 10px}.exam-layout-fields input{width:100%;background:#263548;color:#e0e9f6;border:1px solid #405069;border-radius:4px;padding:6px;font-size:11px}
.exam-layout-reasons summary{cursor:pointer;font-size:10px;color:#c5d7f1;padding:4px 0}.exam-layout-reasons p{font-size:10px;margin:4px 0;line-height:1.7}
.exam-sheet{font-size:var(--exam-font,14px);line-height:var(--exam-leading,1.65);padding:var(--exam-margin,57px)}.exam-page-content p{font-size:inherit;line-height:inherit;margin-bottom:var(--exam-space,9.33px);min-height:0}.exam-page-content h1{font-size:1.62em;margin:0 0 calc(var(--exam-space,9.33px) + 4px)}.exam-page-content h2{font-size:1.24em;line-height:inherit;margin:0 0 calc(var(--exam-space,9.33px) + 4px)}.exam-page-content h3,.exam-page-content h4{font-size:1.1em;margin:0 0 calc(var(--exam-space,9.33px) + 4px)}.exam-page-content table{font-size:calc(var(--exam-font,14px) - 2px);margin:0 0 13.33px}.exam-page-content th,.exam-page-content td{padding:8px 9.33px}.two-columns .exam-page-content{column-gap:24px}
@media(max-width:700px){.exam-layout-fields{grid-column:1 / -1;margin:0}.exam-layout-fields .exam-field{min-width:0}}
