/* HSK 3.0 / HSK 3 student template V4. Scoped so every other practice tab keeps its existing layout. */
body.hsk3v4-active .work{max-width:none;padding-left:18px;padding-right:18px;--sideW:162px;--workspaceGap:10px}
body.hsk3v4-active .modebar{margin-left:calc(var(--sideW) + var(--workspaceGap))}
body.hsk3v4-active .workspace{grid-template-columns:162px minmax(0,1fr);gap:10px}
body.hsk3v4-active .workspace.collapsed{grid-template-columns:minmax(0,1fr)}
body.hsk3v4-active #workspace #sidebar{width:162px!important}
body.hsk3v4-active #workspace.collapsed #sidebar{width:44px!important;max-width:44px!important}
body.hsk3v4-active .content{min-width:0;max-width:calc(100% - 356px);padding-right:4px}
.hsk3v4-select,.hsk3v4-answer-main,.hsk3v4-intro,.hsk3v4-result{background:#fff;border:1px solid #dfe5ed;border-radius:0 14px 14px 14px;padding:24px;box-shadow:0 12px 32px #14233a0a;color:#202832}
.hsk3v4-select{max-width:1000px}
.hsk3v4-select h1,.hsk3v4-answer-head h2,.hsk3v4-intro h2,.hsk3v4-result h2{font-size:22px;margin:4px 0 7px;letter-spacing:-.3px}
.hsk3v4-select>.desc{margin:0;color:#7f8c9d;font-size:12px;line-height:1.65}
.hsk3v4-select .panel-kicker,.hsk3v4-kicker{font-size:9px;letter-spacing:1.5px;color:#98a3b1;font-weight:900;margin:0 0 5px}
.hsk3v4-levels{display:flex;gap:5px;margin:22px 0 19px;flex-wrap:wrap}
.hsk3v4-levels button{border:1px solid transparent;background:#fff;border-radius:7px;padding:9px 13px;color:#5c6878;font-weight:750}
.hsk3v4-levels button.active{background:#20252c;color:#fff;box-shadow:0 5px 12px #1a26351f}
.hsk3v4-mode-head{margin:21px 0 8px;color:#425166;font-size:12px;font-weight:850}
.hsk3v4-mode-switch{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:4px;background:#edf0f4;border:1px solid #e2e6eb;border-radius:10px}
.hsk3v4-mode-switch button{border:0;background:transparent;color:#596679;border-radius:7px;padding:11px;font-weight:800}
.hsk3v4-mode-switch button.active{background:#fff;color:#202832;box-shadow:0 1px 5px #19233618}
.hsk3v4-paper-head{display:flex;align-items:center;justify-content:space-between;margin:24px 0 12px;padding-bottom:12px;border-bottom:1px solid #e5eaf0}
.hsk3v4-paper-head>div{display:grid;gap:4px}.hsk3v4-paper-head b{font-size:14px}.hsk3v4-paper-head small,.hsk3v4-paper-copy small{font-size:11px;color:#8290a2;line-height:1.55}
.hsk3v4-paper-list{display:grid;gap:8px}
.hsk3v4-paper-card{display:flex;align-items:center;gap:13px;width:100%;border:1px solid #dfe5ed;background:#fbfcfd;border-radius:9px;text-align:left;padding:12px 14px;color:#26313f}
.hsk3v4-paper-card:hover,.hsk3v4-paper-card.selected{background:#f2f7ff;border-color:#8db1eb}
.hsk3v4-paper-mark{display:grid;place-items:center;width:40px;height:40px;border-radius:8px;background:#eff4fc;color:#526782;font-size:11px;font-weight:850;flex:none}
.hsk3v4-paper-copy{display:grid;gap:3px;min-width:0;flex:1}.hsk3v4-paper-copy b{font-size:13px;overflow-wrap:anywhere}
.hsk3v4-paper-select{font-size:11px;font-weight:800;color:#2867c7;white-space:nowrap}
.hsk3v4-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:150px;padding:22px;border:1px dashed #d9e1eb;border-radius:10px;background:#f9fafc;color:#738197;text-align:center;font-size:13px;line-height:1.65}
.hsk3v4-empty.is-error{color:#9e4e51;background:#fffafa}
.hsk3v4-selection-summary{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:17px;padding:13px 14px;background:#f7f9fc;border:1px solid #e1e6ed;border-radius:9px}
.hsk3v4-selection-summary>div{display:grid;gap:4px;min-width:0}.hsk3v4-selection-summary strong{font-size:13px}.hsk3v4-selection-summary span{font-size:11px;color:#79869a}
.hsk3v4-answer-layout{display:block;min-width:0}
body.hsk3v4-active .content:has(.hsk3v4-answer-layout){max-width:100%;padding-right:0}
.hsk3v4-answer-main{width:100%;max-width:1000px;min-width:0;margin-left:0;padding:22px 24px 25px}
.hsk3v4-intro,.hsk3v4-result{max-width:1000px;margin-left:0}
.hsk3v4-answer-head{position:relative;display:flex;align-items:center;justify-content:center;gap:12px;padding-bottom:18px;border-bottom:1px solid #e4e9f0}
.hsk3v4-answer-head>div{min-width:0;text-align:center}
.hsk3v4-answer-head h2{margin:0}
.hsk3v4-answer-head>.btn{position:absolute;right:0;top:50%;transform:translateY(-50%)}
.hsk3v4-answer-head small{font-size:11px;color:#8290a2;overflow-wrap:anywhere}
.hsk3v4-answer-count{display:flex;justify-content:space-between;align-items:center;gap:9px;margin:16px 0;color:#53647b;font-size:12px}
.hsk3v4-answer-count b{background:#f0f3f8;border-radius:6px;padding:6px 9px;color:#4b5d77}
.hsk3v4-answer-count button{border:0;background:transparent;color:#566d8c;text-decoration:underline;font-size:11px}
.hsk3v4-group{border:1px solid #dfe5ec;border-radius:11px;margin:18px 0;background:#fff;overflow:hidden}
.hsk3v4-group>header,.hsk3v4-group-head{display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:14px 17px;background:#f7f9fc;border-bottom:1px solid #e8edf4;position:relative}
.hsk3v4-group-head-row{display:flex;align-items:center;justify-content:space-between;gap:9px;min-height:34px}
.hsk3v4-group-head-row b,.hsk3v4-group>header>b{font-size:14px;font-weight:700;color:#202832;line-height:1.53}
.hsk3v4-group-head-row small,.hsk3v4-group>header>small{background:#edf1f6;color:#64758d;padding:5px 8px;border-radius:6px;font-size:10px;font-weight:800}
.hsk3v4-group-head-audio{justify-content:flex-end}
.hsk3v4-group-head .hsk3v4-shared-material{margin:0;padding:0 54px 0 0;background:transparent;border:0;border-radius:0;font-size:14px;line-height:1.53}
.hsk3v4-group-head .hsk3v4-shared-stem{font-size:14px;font-weight:700;color:#202832;line-height:1.53;margin:0}
.hsk3v4-group-head .hsk3v4-shared-material>strong{display:none}
.hsk3v4-group-head .hsk3v4-stem-instruction,.hsk3v4-group-head .hsk3v4-shared-material>div:not(.hsk3v4-shared-option-grid):not(.hsk3v4-shared-stem){font-size:14px;font-weight:700;color:#202832;line-height:1.53;white-space:pre-wrap}
.hsk3v4-shared-stem{font-size:14px;font-weight:500;color:#202832;line-height:1.65;white-space:pre-wrap;margin:0 0 8px}
.hsk3v4-group-head .hsk3v4-shared-material>.hsk3v4-listen{right:0}
.hsk3v4-group-head .hsk3v4-shared-audio{margin:0;min-height:0;display:flex;align-items:center}
.hsk3v4-group-head-row .hsk3v4-listen{align-self:center;margin:0}
.hsk3v4-group-head .hsk3v4-shared-option-grid{margin-top:8px}
.hsk3v4-group-head .hsk3v4-image-pool{margin:2px 0 0}
.hsk3v4-group-body{padding:14px 17px 16px}
.hsk3v4-material-cluster{margin:0 0 16px;padding:0;border:1px solid #e8edf4;border-radius:9px;overflow:hidden;background:#fff}
.hsk3v4-material-cluster:last-child{margin-bottom:0}
.hsk3v4-material-cluster>.hsk3v4-cluster-head{border-bottom:1px solid #e8edf4;border-radius:0;margin:0}
.hsk3v4-cluster-body{padding:10px 12px 12px}
.hsk3v4-group-body:has(>.hsk3v4-material-cluster){padding:12px 12px 14px}
.hsk3v4-image-pool{position:relative;margin:0 0 14px}.hsk3v4-image-pool.has-audio{padding-right:48px}
.hsk3v4-question-image-pool{margin:0 0 10px}.hsk3v4-question-image-pool>div{grid-template-columns:repeat(3,minmax(0,1fr))}
.hsk3v4-picture-choice{position:relative;display:grid;place-items:center;aspect-ratio:1.88/1;min-height:0;width:100%;margin:0;padding:10px;border:1px solid #dfe5ed;border-radius:9px;background:#f9fafc;overflow:hidden;cursor:pointer;color:inherit;font:inherit;text-align:center}
.hsk3v4-picture-choice>span{position:absolute;left:10px;top:9px;background:#52617a;color:#fff;border-radius:5px;padding:4px 8px;font-size:11px;font-weight:850;z-index:1}
.hsk3v4-picture-choice img{position:static;display:block;width:auto;height:auto;min-width:0;min-height:0;max-width:100%;max-height:100%;object-fit:contain;object-position:center;pointer-events:none}
.hsk3v4-picture-choice.selected{border-color:#2563eb;background:#eff6ff;box-shadow:0 0 0 1px #2563eb}
.hsk3v4-picture-choice.selected>span{background:#2563eb}
.hsk3v4-picture-choice:disabled{cursor:default}
.hsk3v4-picture-choice:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
.hsk3v4-image-pool>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.hsk3v4-image-pool figure{position:relative;display:grid;place-items:center;aspect-ratio:1.88/1;min-height:0;margin:0;padding:10px;border:1px solid #dfe5ed;border-radius:9px;background:#f9fafc;overflow:hidden}
.hsk3v4-image-pool figure>span{position:absolute;left:10px;top:9px;background:#52617a;color:#fff;border-radius:5px;padding:4px 8px;font-size:11px;font-weight:850}
.hsk3v4-image-pool img{position:static;display:block;width:auto;height:auto;min-width:0;min-height:0;max-width:100%;max-height:100%;object-fit:contain;object-position:center;transform:none}
.hsk3v4-question{position:relative;display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:10px;align-items:center;padding:11px 12px;margin:8px 0;border:1px solid #e1e6ed;border-radius:9px;background:#fff;scroll-margin-top:115px}
.hsk3v4-question.is-unnumbered{grid-template-columns:minmax(0,1fr) auto}
.hsk3v4-question.current{border-color:#f0a354;background:#fffaf4;box-shadow:0 0 0 1px #f0a35422}
.hsk3v4-question.answered:not(.current){background:#fbfdff}
.hsk3v4-question-no{font-size:12px;font-weight:850;color:#596b86;text-align:center;font-variant-numeric:tabular-nums}
.hsk3v4-question-body{min-width:0}.hsk3v4-prompt{font-size:12px;line-height:1.75;font-weight:700;margin:0 0 8px;overflow-wrap:anywhere;white-space:pre-wrap}
.hsk3v4-shared-material>div,.hsk3v4-group-head .hsk3v4-shared-material>div:not(.hsk3v4-shared-option-grid),.hsk3v4-example-answer{white-space:pre-wrap}
.hsk3v4-answer-main ruby rt{font-size:calc(1em - 2px)}
.hsk3v4-answer-main ruby+ruby{margin-inline-start:.16em}
.hsk3v4-pinyin{margin:-2px 0 0 17px;color:#64748b;font-size:10px;line-height:1.2}
.hsk3v4-blank{display:inline-block;min-width:55px;height:1em;vertical-align:baseline;border-bottom:1px solid #737f8e;margin:0 4px}
.hsk3v4-hl{font-weight:800;text-decoration:underline;text-underline-offset:2px;text-decoration-thickness:1.5px}
.hsk3v4-a6-fixed-text{display:inline;padding:0 2px;background:linear-gradient(transparent 62%,#d9e4f4 62%);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1.5px;text-decoration-color:#7f92ad;font-weight:700;color:#33485f}
.hsk3v4-a6-passages{display:grid;gap:12px;margin:0 0 14px}
.hsk3v4-a6-passage{display:grid;grid-template-columns:28px minmax(0,1fr);gap:10px;align-items:start}
.hsk3v4-a6-passage-label{display:grid;place-items:center;width:28px;height:28px;border:1px solid #cfd8e6;border-radius:4px;background:#f7f9fc;color:#33485f;font-size:13px;font-weight:800}
.hsk3v4-a6-passage-text{min-width:0;font-size:13px;line-height:1.7;color:#2a384c;overflow-wrap:anywhere}
.hsk3v4-a6-passage.is-fixed .hsk3v4-a6-passage-label{border-color:#9eb4d3;background:#eaf1fa}
.hsk3v4-a6-slots{display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-start;gap:8px 10px;margin-top:4px}
.hsk3v4-a6-slot{display:grid;justify-items:center;gap:4px;min-width:42px}
.hsk3v4-a6-slot-box{appearance:none;-webkit-appearance:none;box-sizing:border-box;width:42px;height:42px;padding:0;border:1.5px solid #9aa8bc;border-radius:2px;background:#fff;color:#243247;font-size:16px;font-weight:800;text-align:center;line-height:40px;cursor:pointer}
.hsk3v4-a6-slot-box:focus{outline:2px solid #7ea2d8;outline-offset:1px}
.hsk3v4-a6-slot.is-fixed .hsk3v4-a6-slot-box{display:grid;place-items:center;border-color:#7f92ad;background:#eef3f9;cursor:default}
.hsk3v4-a6-slot-no{font-size:12px;font-weight:700;color:#4b5c73;line-height:1.2}
.hsk3v4-a6-arrow{align-self:center;margin-top:0;color:#6b7c93;font-size:16px;font-weight:700;line-height:42px}
.hsk3v4-inline-image{display:inline-block;max-width:min(220px,100%);max-height:145px;object-fit:contain;vertical-align:middle;border-radius:5px}
.hsk3v4-media-image{display:block;max-width:min(310px,100%);max-height:210px;object-fit:contain;margin:8px 0;border:1px solid #e0e5ec;border-radius:8px;background:#f7f9fb}
.hsk3v4-writing-compose-wrap{margin:0 0 6px;white-space:nowrap}
.hsk3v4-writing-compose{display:inline-flex;align-items:center;gap:6px;flex-wrap:nowrap;max-width:100%;vertical-align:middle}
.hsk3v4-writing-arrow{flex:none;color:#202832;font-size:14px;font-weight:800;line-height:1}
/* Writing thumbs (incl. HSK6 Q81 chart): 2.5× prior 210×143 cap. */
.hsk3v4-writing-thumb{display:inline-block;max-width:525px;max-height:358px;width:auto;height:auto;object-fit:contain;vertical-align:middle;margin:0;border:1px solid #e0e5ec;border-radius:4px;background:#f7f9fb}
/* HSK5 only: writing thumbs at half the shared max size (525×358 → 263×179). */
body.hsk3v4-level-5 .hsk3v4-writing-thumb{max-width:263px;max-height:179px}
.hsk3v4-example-question .hsk3v4-writing-thumb-answer{border-color:#8eb6e8;background:#edf4ff;box-shadow:0 0 0 1px #c9d8ec}
/* Writing part 2 image: 6× prior ~95px on-screen size (frame was 220×117). */
.hsk3v4-writing-image-frame{display:grid;place-items:center;width:min(100%,570px);aspect-ratio:auto;margin:8px 0;padding:10px;border:1px solid #dfe5ed;border-radius:9px;background:#f9fafc;overflow:hidden}
.hsk3v4-writing-image-frame .hsk3v4-media-image{position:static;display:block;width:auto;height:auto;min-width:0;min-height:0;max-width:min(570px,100%);max-height:570px;object-fit:contain;object-position:center;transform:none;margin:0;border:0;border-radius:0;background:transparent}
.hsk3v4-writing-prompt-row{display:flex;align-items:flex-start;gap:18px;margin:0 0 10px;flex-wrap:wrap}
.hsk3v4-writing-prompt-row .hsk3v4-writing-image-frame{flex:none;margin:0;width:min(100%,570px)}
.hsk3v4-writing-prompt-word{margin:0;font-size:12px;line-height:1.75;font-weight:700;color:#202832}
.hsk3v4-media-video{display:block;width:min(100%,440px);max-height:240px;margin:8px 0}
.hsk3v4-media-missing{display:inline-block;padding:7px 9px;background:#fff8ed;border:1px solid #f0dfc4;border-radius:6px;color:#946a2d;font-size:10px;font-weight:600}
.hsk3v4-choices{display:flex;gap:6px;flex-wrap:wrap}.hsk3v4-choice{display:flex;align-items:center;gap:7px;min-height:38px;max-width:100%;padding:7px 10px;border:1px solid #dfe6ef;border-radius:7px;background:#fff;color:#3d4a5e;text-align:left;font-size:12px;line-height:1.5}
.hsk3v4-question.is-judge-q{align-items:center}
.hsk3v4-question-side{display:flex;align-items:center;gap:8px;flex:none;align-self:center}
/* Old HSK1 R1 (21–25): image then word/ruby on one row; prompt was 12px → +5. */
.hsk3v4-picture-word-row{display:flex;align-items:center;gap:18px;flex-wrap:nowrap;min-width:0}
.hsk3v4-picture-word-image{flex:none;margin:0;max-width:min(220px,42vw);max-height:160px}
.hsk3v4-picture-word-text{margin:0;font-size:17px;line-height:1.55;font-weight:750;color:#202832;min-width:0}
.hsk3v4-picture-word-text ruby{ruby-position:over;ruby-align:center}
.hsk3v4-picture-word-text rt{font-size:.55em;font-weight:600;color:#5a6b82}
.hsk3v4-judge-choices{display:flex;gap:8px;flex-wrap:nowrap;margin:0;align-items:center}
.hsk3v4-choice.is-judge{min-width:44px;width:44px;height:44px;min-height:44px;justify-content:center;padding:0;border-radius:8px;color:#33485f}
.hsk3v4-judge-icon{width:22px;height:22px;display:block;flex:none}
.hsk3v4-choice.is-judge.selected{background:#2563eb;border-color:#2563eb;color:#fff}
.hsk3v4-example-question.is-judge-q .hsk3v4-choice.is-judge:disabled{opacity:1;cursor:default}
.hsk3v4-choice>span{display:grid;place-items:center;width:21px;height:21px;background:#f0f3f7;border-radius:5px;font-size:10px;font-weight:850;flex:none}
.hsk3v4-choice.selected{background:#2563eb;border-color:#2563eb;color:#fff}.hsk3v4-choice.selected>span{background:#ffffff2b;color:#fff}
.hsk3v4-choice.used{opacity:.45;cursor:not-allowed}
.hsk3v4-order-list{display:grid;gap:7px;padding:0;margin:8px 0;list-style:none}
.hsk3v4-order-list li{display:flex;align-items:flex-start;gap:8px;min-height:38px;padding:7px 10px;border:1px solid #dfe6ef;border-radius:7px;background:#fff;color:#3d4a5e;font-size:12px;line-height:1.55}
.hsk3v4-order-list .hsk3v4-a6-unit-no{flex:0 0 auto;margin-top:2px}
.hsk3v4-order-list .hsk3v4-order-text{flex:1;min-width:0;overflow-wrap:anywhere}
.hsk3v4-order-list .hsk3v4-order-controls{display:flex;gap:6px;flex:0 0 auto;margin-left:auto;align-self:center}
.hsk3v4-order-list .hsk3v4-order-controls button{border:1px solid #d5deea;background:#f7f9fc;border-radius:6px;width:28px;height:28px;color:#40516b;cursor:pointer}
.hsk3v4-order-list .hsk3v4-order-controls button:disabled{opacity:.35;cursor:not-allowed}
.hsk3v4-a6-unit-no{display:grid;place-items:center;min-width:28px;height:24px;padding:0 4px;border-radius:6px;background:#edf2f8;font-size:11px;font-weight:700;color:#40516b}
.hsk3v4-a6-sequence{display:grid;gap:10px;margin-top:6px}
.hsk3v4-a6-actions{display:flex;gap:8px;justify-content:flex-end}
.hsk3v4-example-question{background:#f8fafc}.hsk3v4-example-question .hsk3v4-question-no{font-size:13px}.hsk3v4-example-choices .hsk3v4-choice:disabled{opacity:1;cursor:default}.hsk3v4-example-answer{display:inline-flex;align-items:center;min-height:36px;padding:6px 12px;border:1px solid #c9d8ec;border-radius:7px;background:#edf4ff;color:#263f62;font-size:13px;font-weight:750}
.hsk3v4-listen,.hsk3v4-group-audio button,.hsk3v4-audio-chip{align-self:center;border:1px solid #d8e5fb;background:#f1f6ff;color:#2860b1;border-radius:50%;padding:0;width:34px;height:34px;display:grid;place-items:center;font-size:15px;line-height:1;font-weight:750;white-space:nowrap;flex:none}
.hsk3v4-open-answer,.hsk3v4-text-answer{width:100%;min-height:42px;padding:9px 11px;border:1px solid #d9e2ed;border-radius:7px;color:#283648;background:#fff;line-height:1.6}
.hsk3v4-open-answer{min-height:76px;resize:vertical}
.hsk3v4-open-answer.is-essay,.hsk3v4-writing-part1 .hsk3v4-open-answer,.hsk3v4-writing-part1-q .hsk3v4-open-answer,.hsk3v4-writing-part2-q .hsk3v4-open-answer{min-height:152px}
.hsk3v4-blank-inputs{display:grid;gap:7px}.hsk3v4-blank-inputs label{display:flex;align-items:center;gap:8px}.hsk3v4-blank-inputs label span{color:#708098;font-weight:800}
.hsk3v4-oral-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:9px;padding:9px 11px;border:1px solid #dfe6ef;border-radius:8px;background:#f8fafc;color:#40516b;font-size:12px}.hsk3v4-oral-controls button{border:1px solid #cdd8e7;border-radius:7px;background:#fff;padding:7px 12px;color:#263b58;font-weight:700;cursor:pointer}.hsk3v4-oral-controls button:disabled{opacity:.5;cursor:not-allowed}.hsk3v4-oral-status{margin-top:9px;padding:9px 11px;border-radius:8px;background:#edf8f1;color:#20603a;font-size:12px}.hsk3v4-oral-error{display:block;width:100%;color:#a13434;font-size:11px}
.hsk3v4-capability-note{display:block;margin-top:5px;color:#77869a;font-size:11px}
.hsk3v4-shared-material{position:relative;padding:11px 54px 11px 12px;margin:0 0 8px;background:#f7f9fc;border:1px solid #e3e9f0;border-radius:8px;font-size:12px;line-height:1.7}.hsk3v4-shared-material>strong{display:block;color:#596b83;margin-bottom:4px}.hsk3v4-shared-material>.hsk3v4-listen{position:absolute;right:12px;top:50%;transform:translateY(-50%)}.hsk3v4-shared-audio{display:flex;justify-content:flex-end;min-height:38px;margin:0 0 8px}.hsk3v4-image-pool .hsk3v4-shared-audio-button{position:absolute;right:5px;top:50%;transform:translateY(-50%)}.hsk3v4-audio-reference{display:none}
.hsk3v4-shared-option-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:8px}.hsk3v4-shared-option{display:grid;grid-template-columns:27px minmax(0,1fr);align-items:start;gap:8px;min-width:0;padding:8px 10px;border:1px solid #dfe6ef;border-radius:7px;background:#fff}.hsk3v4-shared-option-label{display:grid;place-items:center;width:24px;height:24px;border-radius:6px;background:#edf2f8;color:#465874;font-size:11px;font-weight:800}.hsk3v4-shared-option-text{min-width:0;color:#34445b;white-space:pre-wrap;overflow-wrap:anywhere}
.hsk3v4-group-audio{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 10px}
.hsk3v4-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0 0;margin-top:18px;border-top:1px solid #e7ebf0;color:#64738a;font-size:12px}
.hsk3v4-toolbar>span{display:grid;gap:4px}.hsk3v4-toolbar small{font-size:10px;color:#8692a2}.hsk3v4-toolbar>div{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.hsk3v4-exam-status,.hsk3v4-audio-panel{display:flex;align-items:center;justify-content:space-between;gap:13px;margin:14px 0;padding:12px 14px;border:1px solid #dfe6f0;border-radius:9px;background:#f8fafc}
.hsk3v4-exam-status>div:first-child,.hsk3v4-audio-panel>div{display:grid;gap:4px}.hsk3v4-exam-status small,.hsk3v4-audio-panel small{font-size:11px;color:#7d8ba0}.hsk3v4-timer{font-size:20px;font-weight:850;font-variant-numeric:tabular-nums;color:#273345}.hsk3v4-audio-panel{background:#f1f6ff;border-color:#dce7fa}.hsk3v4-audio-panel>span{font-size:10px;color:#71819a;text-align:right}
.hsk3v4-navigation{position:fixed;z-index:12;top:116px;right:20px;display:flex;flex-direction:column;width:311px;height:calc(100vh - 134px);min-height:300px;max-height:900px;border:1px solid #dce3ed;border-radius:15px;background:#fff;box-shadow:0 12px 34px #20324b12;overflow:hidden}
.hsk3v4-nav-head{padding:17px 18px 12px;border-bottom:1px solid #e7ebf1}.hsk3v4-nav-head>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:8px}.hsk3v4-nav-head b{font-size:15px}.hsk3v4-nav-head strong{font-size:12px;color:#657a99}.hsk3v4-nav-head>small{display:block;margin-top:8px;font-size:10px;color:#8794a7}
.hsk3v4-progress{height:6px;background:#e6ebf1;border-radius:6px;margin:10px 0}.hsk3v4-progress i{display:block;height:100%;border-radius:6px;background:#2869d5;transition:width .15s}
.hsk3v4-legend{display:flex;gap:12px;color:#8592a6;font-size:9px}.hsk3v4-legend span:last-child{color:#e99a33}
.hsk3v4-nav-scroll{padding:3px 16px 12px;overflow:auto;min-height:0;flex:1;overscroll-behavior:contain}
.hsk3v4-nav-section{margin:13px 0 5px;padding-bottom:8px;border-bottom:1px solid #e6ebf1;font-size:13px}
.hsk3v4-nav-group{padding:8px 0 10px;margin-bottom:5px;border-bottom:1px solid #e8edf2}.hsk3v4-nav-group>div:first-child{display:flex;justify-content:space-between;gap:7px;margin-bottom:7px;color:#78879b;font-size:10px}.hsk3v4-nav-group small{font-size:9px}
.hsk3v4-nav-numbers{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
.hsk3v4-nav-num{width:37px;height:37px;border:1px solid #d8e2ef;border-radius:50%;background:#fff;color:#526783;font-size:11px;font-variant-numeric:tabular-nums}
.hsk3v4-nav-num.done{background:#2869d5;border-color:#2869d5;color:#fff}.hsk3v4-nav-num.current{border:1.5px solid #f39a32;background:#fff7ed;color:#e18219;box-shadow:0 0 0 3px #f39a3222}.hsk3v4-nav-num.current.done{background:#f39a32;color:#fff}.hsk3v4-nav-num.locked{opacity:.32;cursor:not-allowed}
.hsk3v4-nav-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 14px;border-top:1px solid #e7ebf1;color:#8090a5;font-size:10px}
.hsk3v4-nav-timer{display:grid;justify-items:center;gap:2px;min-width:88px;padding:6px 10px;border-radius:10px;background:#fff4e8;border:1px solid #f3c48a;box-shadow:inset 0 0 0 1px #fff8ef}
.hsk3v4-nav-timer small{font-size:9px;color:#b06a1c;font-weight:700;letter-spacing:.04em}
.hsk3v4-nav-timer .hsk3v4-timer{font-size:22px;line-height:1;font-weight:900;font-variant-numeric:tabular-nums;color:#c2410c}
.hsk3v4-nav-timer .hsk3v4-timer.is-urgent{color:#dc2626}
.hsk3v4-nav-timer .hsk3v4-timer.is-expired{color:#991b1b}
.hsk3v4-nav-toggle{border:0;background:#f4f6f9;border-radius:8px;width:30px;height:30px;display:inline-grid;place-items:center;color:#667789;flex:none;padding:0;position:absolute;top:14px;right:14px;z-index:2}
.hsk3v4-nav-toggle:hover{background:#e9eef5;color:#1f2937}
.hsk3v4-nav-toggle-ico{display:block}
.hsk3v4-nav-head{padding-right:48px}
.hsk3v4-navigation.is-collapsed{top:50%;right:18px;transform:translateY(-50%);width:auto;min-width:132px;max-width:220px;height:auto;min-height:0;max-height:none;border-radius:14px;box-shadow:0 12px 34px #20324b18;overflow:visible}
.hsk3v4-navigation.is-collapsed .hsk3v4-nav-head,
.hsk3v4-navigation.is-collapsed .hsk3v4-nav-scroll,
.hsk3v4-navigation.is-collapsed .hsk3v4-nav-close{display:none}
.hsk3v4-navigation.is-collapsed .hsk3v4-nav-foot{flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:14px 14px 12px;border-top:0}
.hsk3v4-navigation.is-collapsed .hsk3v4-nav-toggle{position:static;order:4}
.hsk3v4-navigation.is-collapsed .hsk3v4-nav-done,
.hsk3v4-navigation.is-collapsed .hsk3v4-nav-remain{display:block;font-size:11px;font-weight:750;color:#53657c;text-align:center}
.hsk3v4-navigation.is-collapsed .hsk3v4-nav-timer{order:3;min-width:0;width:100%;padding:8px 10px}
.hsk3v4-nav-close,.hsk3v4-nav-launcher{display:none}
.hsk3v4-shared-material.no-listen{padding-right:12px}
/* Text wraps under the floated figure so the right gutter is not left empty. */
.hsk3v4-shared-material.is-text-image{display:block}
.hsk3v4-shared-material.is-text-image::after{content:"";display:table;clear:both}
.hsk3v4-shared-material.is-text-image .hsk3v4-shared-figure{float:right;width:min(260px,42%);max-width:260px;margin:0 0 10px 16px}
.hsk3v4-shared-material.is-text-image .hsk3v4-shared-text{min-width:0;overflow:visible}
.hsk3v4-shared-material.is-text-image .hsk3v4-shared-stem{margin:0}
.hsk3v4-shared-material.is-text-image .hsk3v4-media-image{display:block;width:100%;max-width:100%;max-height:280px;margin:0;object-fit:contain;border:1px solid #e0e5ec;border-radius:8px;background:#f7f9fb}
.hsk3v4-shared-material.is-text-image .hsk3v4-shared-option-grid{clear:both;margin-top:8px;grid-template-columns:repeat(2,minmax(0,1fr))}
.hsk3v4-group-head .hsk3v4-shared-material.is-text-image{padding-right:0}
@media(min-width:1121px){body.hsk3v4-active .modebar{transform:translateX(-22px)}.hsk3v4-select,.hsk3v4-answer-main,.hsk3v4-intro,.hsk3v4-result{position:relative;left:-22px}}
.hsk3v4-intro{padding:28px}.hsk3v4-intro>a{color:#526987;font-size:12px}.hsk3v4-intro>p:not(.hsk3v4-kicker){font-size:12px;color:#7f8c9d}.hsk3v4-intro-actions{display:flex;justify-content:center;gap:8px;margin-top:28px}
.hsk3v4-exam-cover{display:grid;justify-items:center;text-align:center;padding:42px 28px 34px;min-height:520px;background:#fff}
.hsk3v4-cover-brand{margin-top:18px;font-family:"Songti SC","SimSun","Noto Serif SC","Source Han Serif SC",serif;font-size:28px;font-weight:700;letter-spacing:.28em;color:#1f2933}
.hsk3v4-cover-level{margin-top:28px;font-family:"Songti SC","SimSun","Noto Serif SC","Source Han Serif SC",serif;font-size:42px;font-weight:700;letter-spacing:.12em;color:#111827}
.hsk3v4-cover-sample{margin-top:18px;font-family:"Songti SC","SimSun","Noto Serif SC","Source Han Serif SC",serif;font-size:30px;font-weight:700;letter-spacing:.55em;text-indent:.55em;color:#1f2933}
.hsk3v4-cover-notice-title{margin-top:46px;font-family:"Songti SC","SimSun","Noto Serif SC","Source Han Serif SC",serif;font-size:22px;font-weight:700;letter-spacing:.55em;text-indent:.55em;color:#1f2933}
.hsk3v4-cover-notice{margin:18px auto 0;max-width:420px;text-align:left;font-family:"Songti SC","SimSun","Noto Serif SC","Source Han Serif SC",serif;font-size:15px;line-height:1.85;color:#243040}
.hsk3v4-cover-notice p{margin:0 0 4px}.hsk3v4-cover-indent{padding-left:2em}
.hsk3v4-exam-cover .hsk3v4-media-missing{margin-top:16px;max-width:420px}
.hsk3v4-result{padding:28px}.hsk3v4-result>div{display:grid;grid-template-columns:repeat(4,auto);align-items:center;gap:8px 14px;margin:20px 0}.hsk3v4-result>div strong{font-size:21px;color:#2869d5}.hsk3v4-result>div span,.hsk3v4-result>p{font-size:12px;color:#7b899e}
@media(max-width:1120px){body.hsk3v4-active .work{--sideW:210px;--workspaceGap:18px}body.hsk3v4-active .workspace{grid-template-columns:210px minmax(0,1fr);gap:18px}body.hsk3v4-active .content{max-width:calc(100% - 300px)}body.hsk3v4-active .content:has(.hsk3v4-answer-layout){max-width:100%;padding-right:0}.hsk3v4-answer-layout{display:block}.hsk3v4-answer-main{max-width:none}.hsk3v4-navigation,.hsk3v4-navigation.is-collapsed{display:none;top:72px;right:12px;transform:none;width:min(360px,calc(100vw - 24px));height:calc(100vh - 86px);min-height:300px;max-height:none;border-radius:15px}.hsk3v4-navigation.open,.hsk3v4-navigation.open.is-collapsed{display:flex;z-index:41;box-shadow:0 14px 45px #15223730}.hsk3v4-navigation.is-collapsed .hsk3v4-nav-head,.hsk3v4-navigation.is-collapsed .hsk3v4-nav-scroll,.hsk3v4-navigation.is-collapsed .hsk3v4-nav-remain{display:block}.hsk3v4-navigation.is-collapsed .hsk3v4-nav-scroll{display:block;flex:1;overflow:auto}.hsk3v4-navigation.is-collapsed .hsk3v4-nav-foot{flex-direction:row;align-items:center;justify-content:space-between;gap:8px;padding:12px 14px;border-top:1px solid #e7ebf1}.hsk3v4-nav-toggle{display:none}.hsk3v4-nav-launcher{position:fixed;right:16px;bottom:17px;z-index:20;display:block;border:1px solid #dce4ef;border-radius:10px;background:#fff;box-shadow:0 5px 20px #13223a1a;padding:10px 14px;color:#31445d;font-weight:800;font-size:11px}.hsk3v4-nav-close{display:block;position:absolute;top:11px;right:12px;border:0;background:transparent;font-size:22px;color:#758399}.hsk3v4-nav-head{padding-right:45px}}
@media(max-width:760px){body.hsk3v4-active .work{padding:13px 14px 70px;--sideW:0px;--workspaceGap:0px}body.hsk3v4-active .modebar{margin-left:0}body.hsk3v4-active .workspace,body.hsk3v4-active .workspace.collapsed{display:block}body.hsk3v4-active .sidebar,body.hsk3v4-active #mobileSideToggle{display:none}body.hsk3v4-active .content,body.hsk3v4-active .content:has(.hsk3v4-answer-layout){max-width:none;padding:0}.hsk3v4-select,.hsk3v4-answer-main,.hsk3v4-intro,.hsk3v4-result{margin-left:0;padding:17px 15px;border-radius:0 13px 13px 13px}.hsk3v4-select h1,.hsk3v4-answer-head h2{font-size:19px}.hsk3v4-paper-card{padding:10px}.hsk3v4-selection-summary{align-items:stretch;flex-direction:column}.hsk3v4-selection-summary .btn{width:100%}.hsk3v4-question{grid-template-columns:28px minmax(0,1fr);gap:7px;padding:10px 8px}.hsk3v4-question.is-judge-q{grid-template-columns:28px minmax(0,1fr) auto}.hsk3v4-question-side{grid-column:3;grid-row:1;align-self:center}.hsk3v4-listen{grid-column:2;justify-self:start}.hsk3v4-question.is-judge-q .hsk3v4-listen{grid-column:auto;justify-self:auto}.hsk3v4-shared-material{grid-column:1/-1}.hsk3v4-image-pool>div{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.hsk3v4-image-pool figure{min-height:0;aspect-ratio:1.88/1}.hsk3v4-image-pool img{max-height:100%}.hsk3v4-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.hsk3v4-choice{font-size:11px;padding:7px}.hsk3v4-toolbar{align-items:flex-start;flex-direction:column}.hsk3v4-toolbar>div{width:100%;justify-content:flex-start}.hsk3v4-audio-panel{flex-wrap:wrap}.hsk3v4-audio-panel>span{width:100%;text-align:left}.hsk3v4-nav-launcher{right:12px;bottom:12px}.hsk3v4-result>div{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.hsk3v4-shared-option-grid{grid-template-columns:minmax(0,1fr)}.hsk3v4-shared-material.is-text-image .hsk3v4-shared-figure{width:min(220px,46%);max-width:220px;margin:0 0 8px 12px}.hsk3v4-shared-material.is-text-image .hsk3v4-shared-option-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:410px){.hsk3v4-nav-numbers{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.hsk3v4-nav-num{width:34px;height:34px}.hsk3v4-paper-mark{width:33px;height:34px}.hsk3v4-paper-select{font-size:10px}.hsk3v4-answer-head{align-items:center}.hsk3v4-answer-head>.btn{padding:7px 9px;font-size:10px}}
