/* Compact essay controls and paired task writing fields. */
#essay-view.essay-editor-active #essay-editor-app .essay-label{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:8px!important}
#essay-view.essay-editor-active #essay-editor-app .essay-label [data-essay-speak]{margin-left:0!important}
#essay-view.essay-editor-active #essay-editor-app .essay-label .essay-open-translation{display:inline-flex!important;align-items:center!important;min-height:24px!important;margin:0!important;padding:3px 9px!important;border:1px solid #d5c18d!important;border-radius:5px!important;background:#fffaf0!important;color:#87631e!important;font-size:11px!important;line-height:1.2!important;white-space:nowrap!important}
#essay-view.essay-editor-active #essay-editor-app .essay-label .essay-open-translation:hover{border-color:#bd9135!important;background:#fff3d4!important}
#essay-view.essay-editor-active #essay-editor-app .gaokao-task-fields{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:14px!important;align-items:stretch!important}
#essay-view.essay-editor-active #essay-editor-app .gaokao-task-field{display:flex!important;flex-direction:column!important;min-width:0!important}
#essay-view.essay-editor-active #essay-editor-app .gaokao-task-field .gaokao-field-label{display:block!important;margin:0 0 7px!important;color:#284868!important;font-size:12px!important;font-weight:700!important}
#essay-view.essay-editor-active #essay-editor-app .gaokao-task-field textarea{box-sizing:border-box!important;display:block!important;width:100%!important;min-height:265px!important;flex:1 1 auto!important;padding:13px!important;border:1px solid #cbd7e1!important;border-radius:6px!important;background:#fff!important;color:#20364e!important;font:14px/1.8 "Segoe UI","Microsoft YaHei UI",sans-serif!important;resize:vertical!important}
#essay-view.essay-editor-active #essay-editor-app .gaokao-task-field .gaokao-essay-input{font:15px/1.8 Cambria,Georgia,"Times New Roman",serif!important}
#essay-view.essay-editor-active #essay-editor-app .gaokao-task-field textarea:focus{outline:none!important;border-color:#6a91b2!important;box-shadow:0 0 0 2px rgba(49,90,125,.12)!important}
#essay-view.essay-editor-active #essay-editor-app .gaokao-task-field .gaokao-word-count{min-height:18px!important}

/* High-school writing switcher: keep one task spacious and make both choices obvious. */
#essay-view.essay-editor-active #essay-editor-app .gaokao-workbench-layout{display:grid!important;grid-template-columns:minmax(190px,220px) minmax(0,1fr)!important;align-items:start!important;gap:16px!important}
#essay-view.essay-editor-active #essay-editor-app .gaokao-task-tabs{display:grid!important;align-content:start!important;gap:10px!important;min-width:0!important;padding:14px!important;border:1px solid #d6e0e9!important;border-top:3px solid #c49a47!important;border-radius:8px!important;background:linear-gradient(160deg,#f8fafc,#edf3f7)!important}
#essay-view.essay-editor-active #essay-editor-app .gaokao-task-tabs-title{padding:0 2px 3px!important;color:#294663!important;font-size:14px!important;font-weight:800!important}
#essay-view.essay-editor-active #essay-editor-app .gaokao-task-tab{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:5px 8px!important;width:100%!important;min-height:72px!important;padding:12px!important;border:1px solid #cbd8e4!important;border-left:4px solid #8da5ba!important;border-radius:7px!important;background:#fff!important;color:#294663!important;text-align:left!important;cursor:pointer!important;transition:background .15s,border-color .15s,box-shadow .15s!important}
#essay-view.essay-editor-active #essay-editor-app .gaokao-task-tab:hover{border-color:#bb9a56!important;background:#fffdf7!important}
#essay-view.essay-editor-active #essay-editor-app .gaokao-task-tab.active{border-color:#284968!important;border-left-color:#d2a747!important;background:linear-gradient(130deg,#173653,#244b6a)!important;box-shadow:0 3px 0 rgba(34,65,91,.17)!important;color:#fff!important}
#essay-view.essay-editor-active #essay-editor-app .gaokao-task-tab:focus-visible{outline:3px solid #d5a84c!important;outline-offset:2px!important}
#essay-view.essay-editor-active #essay-editor-app .gaokao-task-tab-name{grid-column:1/-1!important;color:inherit!important;font-size:16px!important;font-weight:800!important;letter-spacing:.2px!important;line-height:1.35!important}
#essay-view.essay-editor-active #essay-editor-app .gaokao-task-tab strong{grid-column:1!important;color:#7c612b!important;font-size:12px!important;font-weight:750!important}
#essay-view.essay-editor-active #essay-editor-app .gaokao-task-tab.active strong{color:#f2d58c!important}
#essay-view.essay-editor-active #essay-editor-app .gaokao-task-tabs-note{margin:2px 1px 0!important;color:#6f8295!important;font-size:11px!important;line-height:1.55!important}
#essay-view.essay-editor-active #essay-editor-app .gaokao-task-grid{display:block!important;min-width:0!important}
#essay-view.essay-editor-active #essay-editor-app .gaokao-task-card[hidden]{display:none!important}
#essay-view.essay-editor-active #essay-editor-app .gaokao-task-card{min-width:0!important;margin:0!important}
#essay-view.essay-editor-active #essay-editor-app .gaokao-field-heading{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;min-height:30px!important;margin:0 0 7px!important}
#essay-view.essay-editor-active #essay-editor-app .gaokao-task-field .gaokao-field-heading .gaokao-field-label{margin:0!important}
#essay-view.essay-editor-active #essay-editor-app .gaokao-translation-button{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:31px!important;flex:none!important;padding:5px 12px!important;border:1px solid #c49a47!important;border-radius:5px!important;background:#fff8e8!important;color:#795817!important;font-size:12px!important;font-weight:750!important;line-height:1.2!important;white-space:nowrap!important;cursor:pointer!important}
#essay-view.essay-editor-active #essay-editor-app .gaokao-translation-button:hover{background:#ffefc6!important}
#essay-view.essay-editor-active #essay-editor-app .gaokao-translation-button:focus-visible{outline:2px solid #285477!important;outline-offset:2px!important}

@media(max-width:900px){#essay-view.essay-editor-active #essay-editor-app .gaokao-workbench-layout{grid-template-columns:minmax(160px,185px) minmax(0,1fr)!important;gap:10px!important}#essay-view.essay-editor-active #essay-editor-app .gaokao-task-tabs{padding:10px!important}}
@media(max-width:760px){#essay-view.essay-editor-active #essay-editor-app .gaokao-workbench-layout{grid-template-columns:minmax(0,1fr)!important;gap:10px!important}#essay-view.essay-editor-active #essay-editor-app .gaokao-task-tabs{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;padding:9px!important}#essay-view.essay-editor-active #essay-editor-app .gaokao-task-tabs-title,#essay-view.essay-editor-active #essay-editor-app .gaokao-task-tabs-note{grid-column:1/-1!important}#essay-view.essay-editor-active #essay-editor-app .gaokao-task-tab{min-height:64px!important;padding:9px!important}#essay-view.essay-editor-active #essay-editor-app .gaokao-task-tab-name{font-size:14px!important}#essay-view.essay-editor-active #essay-editor-app .gaokao-task-tab strong{font-size:11px!important}}

/* Account-scoped question-bank analytics. */
#qbank-view.qbank-legacy-launcher #mBody .qbank-legacy-feature-grid .module-feature-btn:nth-child(4n+1){border-top-color:#315f86!important}
#qbank-view.qbank-legacy-launcher #mBody .qbank-legacy-feature-grid .module-feature-btn:nth-child(4n+2){border-top-color:#c59a45!important}
#qbank-view.qbank-legacy-launcher #mBody .qbank-legacy-feature-grid .module-feature-btn:nth-child(4n+3){border-top-color:#39866f!important}
#qbank-view.qbank-legacy-launcher #mBody .qbank-legacy-feature-grid .module-feature-btn:nth-child(4n+4){border-top-color:#ad6652!important}
#qbank-view .qbank-analytics-page{padding:18px 24px 24px;color:#23374e}
#qbank-view .qbank-analytics-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:12px}
#qbank-view .qbank-analytics-metric{display:grid;gap:5px;min-width:0;padding:13px;border:1px solid #d9e2eb;border-radius:9px;background:linear-gradient(145deg,#fff,#f4f8fb)}
#qbank-view .qbank-analytics-metric>span{color:#71849a;font-size:10px}
#qbank-view .qbank-analytics-metric>strong{color:#24466c;font:600 25px/1.1 "Segoe UI","Microsoft YaHei UI",sans-serif}
#qbank-view .qbank-analytics-metric>small{color:#9a8a65;font-size:9px}
#qbank-view .qbank-analytics-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#qbank-view .qbank-analytics-card{min-width:0;padding:14px;border:1px solid #d9e2eb;border-radius:9px;background:#fff;box-shadow:0 3px 12px rgba(28,51,74,.035)}
#qbank-view .qbank-analytics-trend-card{grid-column:1/-1}
#qbank-view .qbank-analytics-title{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:9px}
#qbank-view .qbank-analytics-title h3{margin:0;color:#254568;font-size:13px}
#qbank-view .qbank-analytics-title p{margin:4px 0 0;color:#8b98a7;font-size:9px;line-height:1.55}
#qbank-view .qbank-analytics-title>span{padding:4px 7px;border:1px solid #e6dfcf;border-radius:5px;color:#927644;font-size:8px;white-space:nowrap}
#qbank-view .qbank-score-trend{display:block;width:100%;height:auto;overflow:visible}
#qbank-view .qbank-chart-grid{stroke:#e8edf1;stroke-width:1}
#qbank-view .qbank-chart-axis{fill:#94a0ae;font:10px "Segoe UI",sans-serif}
#qbank-view .qbank-chart-line{fill:none;stroke:#4d805d;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
#qbank-view .qbank-chart-dot{fill:#fff;stroke:#4d805d;stroke-width:3}
#qbank-view .qbank-analytics-bars{display:grid;gap:11px;padding:4px 0}
#qbank-view .qbank-analytics-bar-row{display:grid;grid-template-columns:minmax(75px,115px) minmax(45px,1fr) auto;align-items:center;gap:9px;min-width:0}
#qbank-view .qbank-analytics-bar-row>strong{overflow:hidden;color:#536a80;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
#qbank-view .qbank-analytics-bar-row>small{color:#71849a;font-size:9px;text-align:right;white-space:nowrap}
#qbank-view .qbank-analytics-track{display:block;height:9px;overflow:hidden;border-radius:8px;background:#edf1f4}
#qbank-view .qbank-analytics-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#a8c09b,#4d805d)}
#qbank-view .qbank-analytics-loss-track i{background:linear-gradient(90deg,#e2c77f,#bd765d)}
#qbank-view .qbank-weak-list{display:grid;gap:7px}
#qbank-view .qbank-weak-list article{display:flex;align-items:center;gap:9px;min-width:0;padding:9px;border:1px solid #e7ebef;border-radius:7px;background:#fbfcfd}
#qbank-view .qbank-weak-list article>b{display:grid;place-items:center;width:22px;height:22px;flex:0 0 auto;border-radius:50%;background:#edf2f7;color:#56708a;font-size:9px}
#qbank-view .qbank-weak-list article>span{display:grid;gap:3px;min-width:0;flex:1}
#qbank-view .qbank-weak-list article>span strong{overflow:hidden;color:#435c73;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
#qbank-view .qbank-weak-list article>span small{color:#9aa3ac;font-size:8px}
#qbank-view .qbank-weak-list article>em{color:#b15e4a;font-size:9px;font-style:normal;white-space:nowrap}
#qbank-view .qbank-analytics-empty{padding:20px 8px;color:#95a0a8;font-size:10px;line-height:1.7;text-align:center}
#qbank-view .qbank-analytics-empty-state{display:grid;justify-items:center;padding:42px 20px 28px;text-align:center}
#qbank-view .qbank-analytics-empty-state>span{font-size:35px}
#qbank-view .qbank-analytics-empty-state h3{margin:10px 0 3px;color:#345474;font-size:15px}
#qbank-view .qbank-analytics-empty-state p{max-width:540px;margin:0;color:#8a97a5;font-size:10px;line-height:1.8}
#qbank-view .qbank-analytics-note{margin:12px 0 0;padding:10px 12px;border:1px solid #eee5d0;border-radius:6px;background:#fffcf5;color:#86724a;font-size:9px;line-height:1.75}
@media(max-width:760px){#essay-view.essay-editor-active #essay-editor-app .gaokao-task-fields{grid-template-columns:minmax(0,1fr)!important}#essay-view.essay-editor-active #essay-editor-app .gaokao-task-field textarea{min-height:210px!important}#qbank-view .qbank-analytics-page{padding:14px}#qbank-view .qbank-analytics-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}#qbank-view .qbank-analytics-grid{grid-template-columns:minmax(0,1fr)}#qbank-view .qbank-analytics-trend-card{grid-column:auto}}
@media(max-width:500px){#qbank-view.qbank-legacy-launcher #mBody .qbank-legacy-feature-grid .module-feature-btn{min-height:138px!important}#qbank-view .qbank-analytics-page{padding:12px}#qbank-view .qbank-analytics-metric{padding:10px}#qbank-view .qbank-analytics-metric>strong{font-size:21px}#qbank-view .qbank-analytics-bar-row{grid-template-columns:minmax(62px,82px) minmax(35px,1fr) auto;gap:6px}#qbank-view .qbank-analytics-bar-row>strong,#qbank-view .qbank-analytics-bar-row>small{font-size:8px}#qbank-view .qbank-analytics-card{padding:11px}}
.essay-practice-dialog .practice-translate-prompt{display:grid;width:100%;padding:0;border:0;background:transparent;text-align:left;color:inherit;font:inherit;cursor:pointer}
.essay-practice-dialog .practice-translate-prompt>span{color:inherit;font:inherit}
.essay-practice-dialog .practice-translate-prompt small{margin-top:5px;color:#51728e;font-size:10px;font-weight:600}
.essay-practice-dialog .practice-translate-prompt:hover>span{color:#24577d}
.essay-practice-dialog .practice-translate-prompt:focus-visible{outline:2px solid #b7903d;outline-offset:3px;border-radius:3px}
