/* Original HSK4 Writing Q86–95 · focused 10-question practice */
#writingOrderFocus{width:100%;min-width:0;margin:0 0 28px;color:var(--ink,#18303a)}
#writingOrderFocus[hidden]{display:none!important}
#writingOrderFocusContent{max-width:1320px;margin:auto}
#writingOrderFocus button{cursor:pointer;font:inherit}
#writingOrderFocus button:disabled{cursor:default;opacity:.48}
#writingOrderFocus button:focus-visible,#writingOrderFocus textarea:focus-visible,#writingOrderFocus input:focus-visible{outline:3px solid #2a8e84;outline-offset:3px}
.w10-intro{background:linear-gradient(124deg,#ecf8f5,#f7fbfc);border:1px solid #ceeae4;border-radius:22px;padding:25px 30px;display:flex;align-items:center;justify-content:space-between;gap:26px}
.w10-intro h2{font-size:clamp(24px,2.5vw,36px);line-height:1.14;letter-spacing:-.025em;margin:8px 0 10px}
.w10-intro p{max-width:730px;color:#526676;line-height:1.65;margin:0}
.w10-tags{display:flex;gap:9px;flex-wrap:wrap;margin-top:17px}
.w10-tags span{background:white;border:1px solid #d4ece7;color:#16756f;border-radius:30px;padding:6px 11px;font-size:12px;font-weight:700}
.w10-intro-score{min-width:160px;border-radius:17px;background:#0c6e69;color:#fff;padding:25px;text-align:center;box-shadow:0 10px 30px #0e6d6424}
.w10-intro-score b{font-size:53px;line-height:1;display:block}
.w10-intro-score b small{font-size:13px;font-weight:600}
.w10-intro-score>span{display:block;margin-top:10px;color:#c6f5ed;font-size:12px}
.w10-toolbar,.w10-session-header{display:flex;justify-content:space-between;gap:15px;align-items:center;margin:22px 0 16px}
.w10-toolbar h3{font-size:22px;margin:0 0 4px}
.w10-toolbar small{color:#6b7c8d}
.w10-toolbar-actions,.w10-session-actions{display:flex;gap:10px;flex-wrap:wrap}
.w10-toolbar input{background:white;border:1px solid #dce6e9;border-radius:12px;padding:13px;min-width:190px;color:#233a45}
.w10-history-button,.w10-session-actions button,.w10-actionbar button,.w10-review-end button,.w10-filter,.w10-alternative button{border:1px solid #dce5e6;background:#fff;border-radius:11px;padding:11px 16px;color:#285966;font-weight:700}
.w10-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.w10-paper{display:flex;flex-direction:column;align-items:stretch;gap:11px;text-align:left;min-width:0;background:#fff;border:1px solid #dce8eb;border-radius:18px;padding:18px;transition:box-shadow .2s,border-color .2s,transform .2s}
.w10-paper:hover{border-color:#359d8e;box-shadow:0 12px 26px #0a594113;transform:translateY(-2px)}
.w10-paper-no{font-size:13px;color:#2b948e;font-weight:800}
.w10-paper-type{font-size:11px;text-transform:uppercase;letter-spacing:.04em;font-weight:750;color:#758896}
.w10-paper strong{font-size:27px;color:#172e3a;letter-spacing:-.025em}
.w10-paper>small{color:#6c7b88;font-size:12px;line-height:1.45;min-height:35px}
.w10-paper-footer{margin-top:auto;border-top:1px solid #e9eff0;padding-top:13px;display:flex;justify-content:space-between;font-weight:750;font-size:13px;color:#08766c}
.w10-note{color:#6b7c86;line-height:1.6;font-size:12px;margin-top:20px}
.w10-locked,.w10-empty{padding:34px;border:1px dashed #d1dfdf;border-radius:18px;background:#fff;text-align:center}
.w10-session-header{background:#fff;border:1px solid #e2e9eb;padding:24px;border-radius:18px;margin:0 0 15px}
.w10-session-header h2{font-size:28px;margin:5px 0 9px;line-height:1.2}
.w10-session-header h2 span{color:#0f766e}
.w10-session-header small,.w10-session-header p{color:#6a7d8d;margin:0}
.w10-score-line{display:flex;align-items:center;gap:18px;background:#f0f8f7;border:1px solid #d6ebe6;padding:13px 20px;border-radius:13px;margin-bottom:12px;flex-wrap:wrap}
.w10-score-line strong{font-size:24px;color:#136d68}
.w10-score-line strong small{font-size:12px;color:#718892}
.w10-score-line>span{color:#5f7784;font-size:13px}
.w10-meter{height:7px;background:#d7e9e5;border-radius:9px;flex:1;min-width:100px;overflow:hidden}
.w10-meter i{display:block;height:100%;background:#138176;transition:width .2s}
.w10-nav{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:8px;margin:14px 0}
.w10-nav button{border:1px solid #dce8e7;background:white;color:#43646f;font-weight:750;border-radius:11px;padding:12px 4px}
.w10-nav button.checked{background:#dff2e9;border-color:#b8ddcc;color:#116c59}
.w10-nav button.current{background:#0d746b;border-color:#0d746b;color:white;box-shadow:0 4px 13px #0b71662b}
.w10-exercise{background:white;border-radius:22px;border:1px solid #e2e9ee;padding:clamp(17px,2.7vw,33px);box-shadow:0 8px 20px #23415708}
.w10-qtop{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;color:#567887;font-size:13px}
.w10-qtop b{color:#086c65}
.w10-exercise>h3{font-size:clamp(20px,2vw,29px);margin:20px 0}
.w10-instruction{color:#667c89;margin-bottom:15px;font-size:13px}
.w10-chip-row,.w10-assembled{display:flex;gap:10px;flex-wrap:wrap}
.w10-chip{padding:11px 16px;border:1px solid #dbe6e9;background:#f6f9fb;border-radius:10px;font-size:21px;color:#153041;font-weight:800;min-height:53px}
.w10-chip.used{background:#e5eceb;color:#80909b;opacity:.48}
.w10-answer-zone{border:1px dashed #9ed8d0;background:#f4fbfa;border-radius:14px;margin:20px 0;padding:17px;min-height:95px}
.w10-answer-zone-label{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px;font-size:12px;color:#11786e;letter-spacing:.04em}
.w10-answer-zone-label button{border:0;background:transparent;color:#2d7778;font-size:12px;font-weight:700}
.w10-assembled button{border-radius:9px;background:white;border:1px solid #afd6d1;padding:7px 10px;color:#163b43;font-weight:750;font-size:20px}
.w10-your-choice{color:#8da1a9;font-size:13px}
.w10-label{display:block;font-size:12px;font-weight:800;color:#627a87;margin:17px 0 8px}
.w10-exercise textarea{box-sizing:border-box;width:100%;display:block;min-height:96px;background:#f6f8fa;border:1px solid #e3e8ed;border-radius:12px;resize:vertical;padding:16px;font-size:19px;line-height:1.6;color:#193440}
.w10-exercise textarea:focus{background:#fff;border-color:#179083}
.w10-feedback{border:1px solid #c6e4db;border-radius:16px;background:#f3faf8;padding:21px;margin:22px 0;line-height:1.55}
.w10-feedback-top{display:flex;justify-content:space-between;color:#086f63;margin-bottom:12px}
.w10-feedback-top b{color:#18566c}
.w10-annotation{font-size:12px;text-transform:uppercase;color:#538077;font-weight:800}
.w10-reference-cn{font-size:clamp(23px,2.8vw,34px);font-weight:800;line-height:1.55;margin:8px 0;color:#173441;word-break:break-word}
.w10-reference-py{font-size:16px;line-height:1.6;color:#0c8078;margin-bottom:13px;word-wrap:break-word}
.w10-translation{border-left:3px solid #5bb6a4;padding:8px 15px;background:#fff;border-radius:0 10px 10px 0;margin:14px 0}
.w10-translation span{font-size:11px;font-weight:850;color:#557687;text-transform:uppercase}
.w10-translation p{margin:6px 0;color:#243f4f;font-size:15px}
.w10-grammar{padding:16px;background:#fff;border:1px solid #dce9e8;border-radius:13px;margin:14px 0;color:#304c5a}
.w10-grammar h3{font-size:16px;margin:0 0 7px;color:#155f68}
.w10-grammar>p{margin:0 0 12px}
.w10-why{border-top:1px solid #e4edef;padding-top:10px}
.w10-why strong{font-size:13px;color:#15756e}
.w10-why p{margin:6px 0 0;font-size:14px}
.w10-compare{background:#fff;border-radius:10px;padding:13px 15px;color:#223c4d;margin:13px 0}
.w10-compare small{color:#617a89;display:block;font-weight:800;margin-bottom:5px}
.w10-compare .cn{font-size:19px}
.w10-alternative,.w10-no-ref{font-size:13px;color:#617789}
.w10-alt-button{padding:10px 13px;border-radius:9px;background:#fff;border:1px solid #b7dbd7;color:#14776a}
.w10-manual{display:flex;gap:9px;margin-top:13px}
.w10-manual button{background:#fff;border:1px solid #cce1dd;padding:10px 16px;border-radius:10px}
.w10-manual button.selected{background:#15796f;color:#fff}
.w10-actionbar{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px;padding-top:18px;border-top:1px solid #e7eff0}
.w10-actionbar .primary,.w10-submitbar .primary,.w10-review-end .primary{border:0;background:#0f796f;color:white;border-radius:11px;padding:12px 19px;font-weight:800}
.w10-submitbar{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px;background:#f6faf9;border:1px solid #d9eae6;border-radius:16px;margin:17px 0}
.w10-submitbar strong{display:block;font-size:15px}
.w10-submitbar p{font-size:13px;color:#607988;margin:7px 0 0;line-height:1.5}
.w10-scan{margin:15px 0;text-align:center}
.w10-scan img{max-width:100%;max-height:630px;object-fit:contain;border-radius:10px;background:white;border:1px solid #e3ebed}
.w10-scan figcaption{color:#708491;font-size:12px;margin-top:7px}
.w10-record-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.w10-record{display:flex;flex-direction:column;gap:8px;align-items:flex-start;text-align:left;background:white;border:1px solid #dce7e8;border-radius:15px;padding:20px}
.w10-record>strong{font-size:20px;color:#173741}
.w10-record>span,.w10-record>small{color:#70818e;font-size:12px}
.w10-record>b{font-size:30px;color:#10786f}
.w10-record>b small{font-size:12px;color:#62808b}
.w10-record>.w10-record-open{color:#0e796e;font-weight:750;border-top:1px solid #edf1f3;width:100%;padding-top:10px}
.w10-review-hero{background:#eaf7f3;border:1px solid #d4e8e4;border-radius:18px;padding:23px;display:flex;gap:25px;align-items:center;flex-wrap:wrap;margin-bottom:18px}
.w10-review-score{font-size:48px;font-weight:900;color:#086c60}
.w10-review-score small{font-size:16px}
.w10-review-hero div:nth-child(2){flex:1}
.w10-review-hero div:nth-child(2) p,.w10-review-hero div:nth-child(2) span{font-size:13px;color:#607e87;margin:6px 0}
.w10-review-list{display:grid;gap:13px}
.w10-review-item{background:white;border:1px solid #e1e9e9;border-radius:15px;padding:22px}
.w10-review-item-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e8eeee;padding-bottom:13px;margin-bottom:13px;color:#0e6c69}
.w10-review-item-head span{font-weight:700;color:#65818b;font-size:13px}
.w10-review-end{display:flex;gap:12px;margin:17px 0;flex-wrap:wrap}
.w10-empty h3{margin-top:0}
@media(max-width:1050px){.w10-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.w10-record-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.w10-intro{padding:20px;display:block}.w10-intro-score{display:none}.w10-toolbar,.w10-session-header,.w10-submitbar{flex-direction:column;align-items:stretch}.w10-toolbar-actions{width:100%}.w10-toolbar input{flex:1}.w10-grid,.w10-record-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.w10-nav{grid-template-columns:repeat(5,minmax(0,1fr))}.w10-session-header{padding:19px}.w10-paper{padding:14px}.w10-paper strong{font-size:21px}.w10-exercise{padding:19px}.w10-submitbar .primary{width:100%}.w10-actionbar .primary{flex:1}.w10-review-hero{gap:10px}}
@media(max-width:440px){.w10-grid,.w10-record-grid{grid-template-columns:1fr}.w10-toolbar-actions input{min-width:130px}.w10-reference-cn{font-size:23px}.w10-exercise textarea{font-size:18px}.w10-chip{font-size:19px}}

.w10-vocabulary{margin:14px 0;padding:12px 14px;background:#fff;border:1px solid #dce8e8;border-radius:12px}.w10-vocabulary>strong{display:block;color:#136961;font-size:13px;margin-bottom:9px}.w10-vocabulary>div{display:flex;flex-wrap:wrap;gap:8px}.w10-vocabulary>div span{display:inline-block;padding:8px 10px;border-radius:9px;background:#eff7f6;color:#526e77;font-size:12px}.w10-vocabulary .cn{color:#203b43;font-size:15px}.w10-vocabulary em{color:#0a7b71;font-style:normal}.w10-review-chunks{display:flex;gap:9px;flex-wrap:wrap;margin:8px 0 16px}.w10-review-chunks span{border:1px solid #d9e8e6;border-radius:8px;background:#f8fbfb;padding:8px 12px;font-size:17px}.w10-review-image-link{font-weight:700;color:#0d766e;display:inline-block;margin:6px 0 15px}
.writing-mode-switch{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:600px){.writing-mode-switch{grid-template-columns:1fr}.writing-mode-tab{align-items:center}.writing-mode-tab small{font-size:11px}}


/* Dark-mode parity for the Q86–95-only workspace.
   All selectors are scoped to this workspace so the full Writing page,
   other study pages, and the light theme remain unchanged. */
body.dark #writingOrderFocus {
  color-scheme: dark;
  --w10-card: #152a33;
  --w10-raised: #1b333e;
  --w10-inset: #10262e;
  --w10-border: #34515d;
  --w10-text: #edf8f9;
  --w10-muted: #b4cbd3;
  --w10-accent: #81e0d3;
  --w10-accent-dark: #086e66;
  --w10-success: #153e3c;
  color: var(--w10-text);
}
body.dark #writingOrderFocus :is(.w10-intro,.w10-paper,.w10-locked,.w10-empty,.w10-session-header,.w10-exercise,.w10-record,.w10-review-item) {
  background: var(--w10-card);
  border-color: var(--w10-border);
  color: var(--w10-text);
  box-shadow: none;
}
body.dark #writingOrderFocus .w10-intro {
  background: linear-gradient(125deg,#183a3c,#142a34);
}
body.dark #writingOrderFocus .w10-intro-score {
  background: #0b6660;
  color: #fff;
}
body.dark #writingOrderFocus :is(.w10-score-line,.w10-review-hero,.w10-submitbar,.w10-feedback) {
  background: var(--w10-success);
  border-color: #32635e;
  color: var(--w10-text);
}
body.dark #writingOrderFocus :is(.w10-answer-zone,.w10-translation,.w10-grammar,.w10-compare,.w10-vocabulary) {
  background: var(--w10-inset);
  border-color: var(--w10-border);
  color: var(--w10-text);
}
body.dark #writingOrderFocus :is(.w10-chip,.w10-nav button,.w10-assembled button,.w10-manual button,.w10-alt-button,.w10-review-chunks span,.w10-tags span,.w10-vocabulary>div span) {
  background: var(--w10-raised);
  border-color: var(--w10-border);
  color: var(--w10-text);
}
body.dark #writingOrderFocus :is(.w10-history-button,.w10-session-actions button,.w10-actionbar button,.w10-review-end button,.w10-filter,.w10-alternative button,.w10-review-end .w10-alt-button) {
  background: var(--w10-raised);
  border-color: var(--w10-border);
  color: var(--w10-text);
}
body.dark #writingOrderFocus :is(.w10-toolbar input,.w10-exercise textarea) {
  background: var(--w10-inset);
  border-color: var(--w10-border);
  color: var(--w10-text);
  caret-color: var(--w10-accent);
}
body.dark #writingOrderFocus :is(.w10-toolbar input,.w10-exercise textarea)::placeholder {color:#9eb5be;opacity:1}
body.dark #writingOrderFocus .w10-exercise textarea:focus {
  background:#19333a;
  border-color:var(--w10-accent);
}
body.dark #writingOrderFocus :is(.w10-paper strong,.w10-record>strong,.w10-reference-cn,.w10-translation p,.w10-vocabulary .cn,.w10-compare .cn) {
  color:var(--w10-text);
}
body.dark #writingOrderFocus :is(.w10-intro p,.w10-paper>small,.w10-paper-type,.w10-toolbar small,.w10-note,.w10-session-header small,.w10-session-header p,.w10-score-line>span,.w10-qtop,.w10-instruction,.w10-your-choice,.w10-label,.w10-translation span,.w10-compare small,.w10-record>span,.w10-record>small,.w10-record>b small,.w10-review-hero div:nth-child(2) p,.w10-review-hero div:nth-child(2) span,.w10-review-item-head span,.w10-submitbar p,.w10-alternative,.w10-no-ref,.w10-scan figcaption) {
  color:var(--w10-muted);
}
body.dark #writingOrderFocus :is(.w10-paper-no,.w10-paper-footer,.w10-record>b,.w10-record>.w10-record-open,.w10-session-header h2 span,.w10-score-line strong,.w10-score-line strong small,.w10-qtop b,.w10-answer-zone-label,.w10-answer-zone-label button,.w10-reference-py,.w10-grammar h3,.w10-why strong,.w10-annotation,.w10-vocabulary>strong,.w10-vocabulary em,.w10-review-score,.w10-review-item-head,.w10-review-image-link) {
  color:var(--w10-accent);
}
body.dark #writingOrderFocus .w10-feedback-top,
body.dark #writingOrderFocus .w10-feedback-top b {color:var(--w10-accent)}
body.dark #writingOrderFocus .w10-vocabulary>div span {color:var(--w10-muted)}
body.dark #writingOrderFocus :is(.w10-paper-footer,.w10-record>.w10-record-open,.w10-review-item-head,.w10-why,.w10-actionbar) {
  border-color:var(--w10-border);
}
body.dark #writingOrderFocus .w10-meter {background:#2b4850}
body.dark #writingOrderFocus .w10-meter i {background:#70d5c8}
body.dark #writingOrderFocus .w10-nav button.checked:not(.current) {
  background:#1b4841;
  color:#9ef1d9;
  border-color:#3d8878;
}
body.dark #writingOrderFocus .w10-nav button.current {
  background:#0e8277;
  color:#fff;
  border-color:#2caaa0;
}
body.dark #writingOrderFocus .w10-chip.used {
  background:#23383e;
  color:#b5c6c9;
}
body.dark #writingOrderFocus .w10-answer-zone {border-style:dashed;border-color:#417e76}
body.dark #writingOrderFocus .w10-manual button.selected {
  background:#0e8277;
  color:#fff;
  border-color:#58c7b8;
}
body.dark #writingOrderFocus :is(.w10-actionbar .primary,.w10-submitbar .primary,.w10-review-end .primary) {
  background:#0e8277;
  color:#fff;
  border-color:#0e8277;
}
body.dark #writingOrderFocus :is(.w10-chip,.w10-paper,.w10-record,.w10-history-button,.w10-filter,.w10-actionbar button,.w10-nav button):not(:disabled):hover {
  border-color:#70cdbf;
}
body.dark #writingOrderFocus :is(button,input,textarea):focus-visible {outline-color:#87e5d6}
body.dark #writingOrderFocus .w10-grammar,
body.dark #writingOrderFocus .w10-vocabulary {background:#192f37}
body.dark #writingOrderFocus .w10-translation {border-left-color:#5bc8b7}
/* The original scanned paper is a printed white document; preserve its page colors. */
body.dark #writingOrderFocus .w10-scan img {background:#fff;border-color:var(--w10-border)}
