/* Bài 11 only. Compact handwriting panels and a touch-safe practice square. */
.shell>main:has(>.stroke-rules-lesson){max-width:1430px;padding:16px 22px 48px}
.stroke-rules-lesson{--hr-blue:#096deb;--hr-ink:#18334f;--hr-muted:#506b81;--hr-line:#deE8f1;color:var(--hr-ink);font-size:15px;line-height:1.6;background:white;max-width:1390px;margin:0 auto;padding:0;overflow-wrap:anywhere}
.stroke-rules-lesson *{box-sizing:border-box}
.stroke-rules-lesson [hidden]{display:none!important}
.stroke-rules-lesson h1,.stroke-rules-lesson h2,.stroke-rules-lesson h3,.stroke-rules-lesson p{margin:0 0 12px;color:inherit}
.stroke-rules-lesson h1{font-size:clamp(25px,2.35vw,34px);line-height:1.25;letter-spacing:-.6px}
.stroke-rules-lesson h2{font-size:19px;line-height:1.4}
.stroke-rules-lesson h3{font-size:16px;line-height:1.5}
.stroke-rules-lesson small{display:block;font-size:12px;line-height:1.5}
.stroke-rules-lesson button,.stroke-rules-lesson a,.stroke-rules-lesson summary{touch-action:manipulation}
.stroke-rules-lesson button{font:inherit;font-size:13px;font-weight:650;min-width:44px;min-height:44px;line-height:1.45;border-radius:7px;box-shadow:none;cursor:pointer;white-space:normal}
.stroke-rules-lesson button:disabled{opacity:.6;cursor:default}
.stroke-rules-lesson button:focus-visible,.stroke-rules-lesson a:focus-visible,.stroke-rules-lesson summary:focus-visible,.stroke-rules-lesson input:focus-visible,.stroke-rules-lesson textarea:focus-visible{outline:3px solid #075cb9;outline-offset:3px}
.stroke-rules-lesson .hr-primary{padding:10px 15px;background:#0867e3;color:white;border:1px solid #0867e3}
.stroke-rules-lesson .hr-secondary{padding:8px 11px;background:#f3f8ff;border:1px solid #cfdeed;color:#205785}
.stroke-rules-lesson .hr-secondary:hover{background:#e9f2ff}
.stroke-rules-lesson .hr-icon{width:19px;height:19px;display:inline-block;vertical-align:middle;margin-right:5px;flex-shrink:0}
.stroke-rules-lesson .hr-layout{display:grid;grid-template-columns:195px minmax(0,1fr);gap:20px;align-items:start}
.stroke-rules-lesson .hr-sidebar{display:block;position:static;width:auto;height:auto;margin:0;padding:0;border:0;min-width:0}
.stroke-rules-lesson .hr-main{min-width:0}
.stroke-rules-lesson .hr-course{border:1px solid #e0eaf1;border-radius:10px;background:#fbfdff;padding:8px;position:sticky;top:110px}
.stroke-rules-lesson .hr-course summary{min-height:44px;padding:8px 5px;font-size:14px;color:#193e69;font-weight:750;cursor:pointer;list-style:none}
.stroke-rules-lesson .hr-course summary small{font-size:10px;margin-top:3px;font-weight:400}
.stroke-rules-lesson .hr-course nav{display:grid;gap:4px;margin-top:5px}
.stroke-rules-lesson .hr-course nav a{display:flex;align-items:center;gap:7px;padding:8px 5px;min-height:44px;line-height:1.35;font-size:11px;color:#234c72;text-decoration:none;border-radius:7px}
.stroke-rules-lesson .hr-course nav a>b{display:grid;place-items:center;min-width:23px;height:23px;background:#edf3fb;border-radius:5px;color:#265481}
.stroke-rules-lesson .hr-course nav a>span{display:block;min-width:0;flex:1}
.stroke-rules-lesson .hr-course nav a[aria-current=page]{color:#fff;background:#096deb}
.stroke-rules-lesson .hr-course nav a[aria-current=page]>b{background:#fff;color:#096deb}
.stroke-rules-lesson .hr-course-progress{padding:14px 5px;font-size:12px;border-top:1px solid #e4edf4;margin-top:12px}
.stroke-rules-lesson .hr-desktop-toc{margin-top:16px}
.stroke-rules-lesson .hr-desktop-toc h2{font-size:14px}
.stroke-rules-lesson .hr-toc{display:grid;gap:5px}
.stroke-rules-lesson .hr-toc button{display:flex;align-items:center;gap:8px;text-align:left;background:#fff;border:0;padding:6px;font-size:12px}
.stroke-rules-lesson .hr-toc button span{display:block;min-width:0}
.stroke-rules-lesson .hr-toc button b{min-width:20px;color:#2773be}
.stroke-rules-lesson .hr-toc [aria-current=step]{background:#edf5ff}
.stroke-rules-lesson .hr-mobile-toc{display:none}
.stroke-rules-lesson .hr-topbar{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-bottom:10px}
.stroke-rules-lesson .hr-breadcrumb{font-size:11px;display:flex;gap:7px;flex-wrap:wrap}
.stroke-rules-lesson .hr-breadcrumb a{color:#286aab;text-decoration:none}
.stroke-rules-lesson .hr-footer{display:flex;gap:9px;justify-content:space-between;min-width:0}
.stroke-rules-lesson .hr-footer a{display:flex;align-items:center;min-height:44px;min-width:0;text-decoration:none;background:#f0f6ff;border:1px solid #cfe0f1;border-radius:7px;color:#255c95;padding:9px 12px;font-size:12px}
.stroke-rules-lesson .hr-footer a>span{display:block;min-width:0}
.stroke-rules-lesson .hr-footer small{font-size:10px;margin-top:3px}
.stroke-rules-lesson .hr-footer .hr-next{background:#096deb;color:white;border-color:#096deb}
.stroke-rules-lesson .hr-topbar .hr-footer{flex-shrink:0}
.stroke-rules-lesson .hr-hero{display:block;position:relative;height:auto;min-height:215px;border-radius:11px;background:#eaf6ff;isolation:isolate;overflow:hidden;padding:22px}
.stroke-rules-lesson .hr-hero-copy{display:block;width:calc(100% - 190px);height:auto;position:relative;z-index:1}
.stroke-rules-lesson .hr-landscape{position:absolute;inset:0 0 0 auto;width:50%;height:100%;object-fit:cover;z-index:-2}
.stroke-rules-lesson .hr-hero:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#eaf6ff 40%,#eaf6fff0 55%,#eaf6ff33 85%)}
.stroke-rules-lesson .hr-student{position:absolute;width:205px;height:205px;object-fit:contain;right:0;bottom:-12px}
.stroke-rules-lesson .hr-badge{display:inline-block;background:#096deb;color:white;font-size:12px;font-weight:700;border-radius:6px;padding:3px 12px;margin-bottom:9px}
.stroke-rules-lesson .hr-subtitle{font-size:16px}
.stroke-rules-lesson .hr-hero-copy>p:not(.hr-subtitle){font-size:13px;max-width:520px}
.stroke-rules-lesson .hr-meta{display:flex;flex-wrap:wrap;gap:10px;font-size:11px;margin-top:13px}
.stroke-rules-lesson .hr-meta>span{display:flex;align-items:center;gap:3px}
.stroke-rules-lesson .hr-inline-progress{font-size:12px;color:var(--hr-muted);padding:12px 2px}
.stroke-rules-lesson .hr-inline-progress label{display:flex;justify-content:space-between;color:#254867}
.stroke-rules-lesson progress{width:100%;height:7px;display:block;border:0;border-radius:7px;background:#e8eff5;accent-color:#096deb;margin:6px 0}
.stroke-rules-lesson progress::-webkit-progress-bar{border-radius:7px;background:#e8eff5}
.stroke-rules-lesson progress::-webkit-progress-value{border-radius:7px;background:#096deb}
.stroke-rules-lesson .hr-goals{border:1px solid #d6eee5;background:#edf9f4;padding:16px 18px;border-radius:10px;margin-bottom:14px}
.stroke-rules-lesson .hr-goals h2{font-size:17px}
.stroke-rules-lesson .hr-goals ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 18px;padding:0;margin:0;list-style:none;font-size:12px}
.stroke-rules-lesson .hr-goals li{position:relative;padding-left:20px}
.stroke-rules-lesson .hr-goals li:before{content:'✓';position:absolute;left:0;color:#087d63;font-weight:750}
.stroke-rules-lesson .hr-audio-note{font-size:12px;color:#526e83;background:#f6faff;border:1px solid #e3edf4;padding:10px 14px;border-radius:8px;margin:14px 0}
.stroke-rules-lesson .hr-audio-note p{margin:0}
.stroke-rules-lesson .hr-audio-note .hr-actions{margin:5px 0 0;gap:8px}
.stroke-rules-lesson .hr-audio-note button{font-size:12px;padding:5px 10px}
.stroke-rules-lesson .hr-audio-note a{color:#2468a5;min-height:44px;display:flex;align-items:center}
.stroke-rules-lesson .hr-hero-character{position:absolute;right:25px;top:22px;width:145px;height:145px;display:grid;place-items:center;background:#fffaf0dc;border:1px solid #e9dec8;border-radius:8px;transform:rotate(6deg);color:#376984}
.stroke-rules-lesson .hr-hero-character b{font-family:'KaiTi','STKaiti',serif;font-size:70px;font-weight:500;line-height:1}
.stroke-rules-lesson .hr-hero-character span{font-size:14px}
.stroke-rules-lesson .hr-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.stroke-rules-lesson .hr-panel{border:1px solid var(--hr-line);border-radius:10px;padding:16px;background:#fff;min-width:0;scroll-margin-top:115px}
.stroke-rules-lesson .hr-panel-heading{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.stroke-rules-lesson .hr-panel-heading h2{font-size:17px;margin:0}
.stroke-rules-lesson .hr-number{width:30px;min-width:30px;height:30px;display:grid;place-items:center;background:#096deb;border-radius:6px;color:#fff;font-size:17px;font-weight:700}
.stroke-rules-lesson .hr-panel:nth-child(4n+1) .hr-number{background:#d9336b}
.stroke-rules-lesson .hr-panel:nth-child(4n+2) .hr-number{background:#007bb0}
.stroke-rules-lesson .hr-panel:nth-child(4n+3) .hr-number{background:#087e66}
.stroke-rules-lesson .hr-panel:nth-child(4n) .hr-number{background:#975c09}
.stroke-rules-lesson .hr-explanation,.stroke-rules-lesson .hr-panel>p{font-size:13px;line-height:1.7}
.stroke-rules-lesson .hr-tabs{display:flex;gap:4px;flex-wrap:wrap;background:#f4f9ff;padding:4px;border-radius:7px;margin:10px 0}
.stroke-rules-lesson .hr-tabs button{flex:1;padding:6px 9px;font-size:12px;background:transparent;border:0;color:#315d84}
.stroke-rules-lesson button[aria-pressed=true],.stroke-rules-lesson .hr-question-nav button[aria-current=step]{background:#096deb;border-color:#096deb;color:#fff}
.stroke-rules-lesson .hr-intro-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.stroke-rules-lesson .hr-triple{display:flex;flex-direction:column;align-items:center;text-align:center;padding:10px 5px;background:#f4f9ff;border-radius:8px;font-size:13px}
.stroke-rules-lesson .hr-triple strong{font-size:27px;font-weight:600;line-height:1.6;color:#164c83}
.stroke-rules-lesson .hr-pinyin{color:#265f99}
.stroke-rules-lesson .hr-component{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 3px}
.stroke-rules-lesson .hr-component div{display:flex;flex-direction:column;align-items:center;text-align:center;flex:1;font-size:12px}
.stroke-rules-lesson .hr-component strong{font-size:28px;color:#165b92}
.stroke-rules-lesson .hr-note{border-left:3px solid #31a581;background:#eff9f6;padding:10px;font-size:12px;margin:10px 0}
.stroke-rules-lesson .hr-structures{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.stroke-rules-lesson .hr-structures article{min-width:0;text-align:center;font-size:11px;padding:6px 2px;background:#f8fbff;border-radius:6px}
.stroke-rules-lesson .hr-structures strong{font-size:33px;display:block;line-height:1.7}
.stroke-rules-lesson .hr-structures small{font-size:10px}
.stroke-rules-lesson .hr-structures button{font-size:11px;padding:5px}
.stroke-rules-lesson .hr-strokes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.stroke-rules-lesson .hr-strokes button{background:#fff;border:1px solid #deebf6;padding:4px;text-align:center;color:#16477e}
.stroke-rules-lesson .hr-strokes button[aria-pressed=true]{background:#eef7ff;border:2px solid #096deb;color:#16477e}
.stroke-rules-lesson .hr-stroke-svg{width:100%;height:58px;display:block}
.stroke-rules-lesson .hr-stroke-detail{display:flex;align-items:center;gap:10px;border-radius:7px;padding:10px 0;margin:8px 0}
.stroke-rules-lesson .hr-stroke-detail>.hr-stroke-svg{width:90px;min-width:70px;height:90px}
.stroke-rules-lesson .hr-stroke-detail p{font-size:12px;margin-bottom:6px}
.stroke-rules-lesson .hr-rules{display:grid;gap:5px}
.stroke-rules-lesson .hr-rules button{display:flex;align-items:center;gap:8px;text-align:left;font-size:12px;padding:6px 10px}
.stroke-rules-lesson .hr-rules button>span{display:block;flex:1;min-width:0}
.stroke-rules-lesson .hr-rules strong{font-size:24px;font-weight:500}
.stroke-rules-lesson .hr-char-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.stroke-rules-lesson .hr-char-grid article{display:flex;flex-direction:column;align-items:center;text-align:center;border:1px solid #dbe8f4;border-radius:7px;padding:8px 5px;min-width:0;font-size:12px;background:#fff}
.stroke-rules-lesson .hr-char-grid article[data-selected=true]{border-color:#1174dd;background:#f2f8ff}
.stroke-rules-lesson .hr-char-grid strong{font-size:39px;line-height:1.5;font-weight:500;color:#253a50}
.stroke-rules-lesson .hr-char-grid small{min-height:18px;font-size:11px}
.stroke-rules-lesson .hr-char-grid button{width:100%;font-size:11px;padding:5px;margin-top:4px}
.stroke-rules-lesson .hr-pager{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:12px;font-size:12px}
.stroke-rules-lesson .hr-select-label{display:flex;align-items:center;gap:8px;font-size:12px;margin-bottom:12px}
.stroke-rules-lesson select{font:inherit;font-size:16px;min-height:44px;width:100%;max-width:100%;min-width:0;background:#f9fcff;border:1px solid #d4e3f2;border-radius:6px;color:#214369;padding:6px}
.stroke-rules-lesson .hr-selected-info{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.stroke-rules-lesson .hr-selected-info>strong{font-size:30px}
.stroke-rules-lesson .hr-selected-info>div{flex:1;min-width:0;font-size:12px}
.stroke-rules-lesson .hr-workspace{display:grid;grid-template-columns:minmax(0,1fr) 110px;gap:10px;align-items:start}
.stroke-rules-lesson .hr-square{aspect-ratio:1;border:1px solid #93baf4;border-radius:8px;min-width:0;background:#fcfeff;overflow:hidden}
.stroke-rules-lesson .hr-square svg{display:block;width:100%;height:auto;aspect-ratio:1;max-width:100%}
.stroke-rules-lesson #hr-pad{touch-action:none;user-select:none;cursor:crosshair}
.stroke-rules-lesson #hr-pad *{pointer-events:none}
.stroke-rules-lesson .hr-tools{display:grid;gap:5px}
.stroke-rules-lesson .hr-tools button{font-size:11px;padding:6px}
.stroke-rules-lesson .hr-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.stroke-rules-lesson .hr-steps button{min-width:0;padding:4px;font-size:10px;display:flex;flex-direction:column;align-items:center;background:white;border:1px solid #d8e7f4;color:#385b7c}
.stroke-rules-lesson .hr-steps svg{width:100%;max-width:72px;height:auto;aspect-ratio:1}
.stroke-rules-lesson .hr-steps button span{display:block;line-height:1.4}
.stroke-rules-lesson .hr-muted{color:#506b81;font-size:12px;line-height:1.6;margin-top:10px}
.stroke-rules-lesson .hr-word{display:flex;align-items:center;gap:10px;margin:10px 0}
.stroke-rules-lesson .hr-word>.hr-triple{flex:1}
.stroke-rules-lesson .hr-word-chars{display:flex;gap:10px}
.stroke-rules-lesson .hr-word-chars article{flex:1;text-align:center;border:1px solid #dbe6ee;border-radius:8px;padding:10px 5px}
.stroke-rules-lesson .hr-word-chars b{font-size:32px;display:block}
.stroke-rules-lesson .hr-word-chars button{margin-top:7px}
.stroke-rules-lesson .hr-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.stroke-rules-lesson .hr-exercise{margin-top:12px;padding-top:6px;border-top:1px solid #dce8f3}
.stroke-rules-lesson details summary{min-height:44px;cursor:pointer;font-size:13px;line-height:1.5;padding:10px 0;color:#245d8b}
.stroke-rules-lesson .hr-section-end{margin-top:12px;display:flex;justify-content:flex-end}
.stroke-rules-lesson .hr-section-end button{font-size:12px}
.stroke-rules-lesson .hr-question{padding:12px 0}
.stroke-rules-lesson .hr-question h3{font-size:15px}
.stroke-rules-lesson .hr-options{display:grid;gap:7px;margin-top:12px}
.stroke-rules-lesson .hr-options button{display:flex;align-items:center;text-align:left;gap:10px}
.stroke-rules-lesson .hr-options button span{flex:1;min-width:0}
.stroke-rules-lesson .hr-options button strong{font-size:11px}
.stroke-rules-lesson .hr-options button:disabled{opacity:1}
.stroke-rules-lesson [data-correct=true]{background:#e9f9f1;color:#135e48;border-color:#6bb599}
.stroke-rules-lesson [data-wrong=true]{background:#fff1f1;color:#9a283a;border-color:#d899a2}
.stroke-rules-lesson .hr-feedback{background:#f1f7fb;color:#244e74;padding:12px;border-radius:7px;margin-top:10px;font-size:13px}
.stroke-rules-lesson .hr-feedback p:last-child{margin:0}
.stroke-rules-lesson .hr-order-tasks{display:grid;gap:12px;margin:10px 0}
.stroke-rules-lesson .hr-order-tasks article{border:1px solid #d9e7f3;border-radius:8px;padding:12px;font-size:12px}
.stroke-rules-lesson .hr-order-tiles{display:flex;flex-wrap:wrap;gap:6px}
.stroke-rules-lesson .hr-order-tiles button{font-size:12px}
.stroke-rules-lesson .hr-panel ul,.stroke-rules-lesson .hr-panel ol{padding-left:22px;font-size:13px;line-height:1.7}
.stroke-rules-lesson textarea{width:100%;max-width:100%;min-height:80px;font:inherit;font-size:16px;border:1px solid #bdd2e5;border-radius:7px;padding:10px;resize:vertical;margin:8px 0}
.stroke-rules-lesson .hr-check{display:flex;gap:8px;align-items:center;min-height:44px;font-size:13px}
.stroke-rules-lesson input[type=checkbox]{width:20px;height:20px;flex-shrink:0;accent-color:#096deb}
.stroke-rules-lesson .hr-exam-banner{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:#edf7ff;border:1px solid #d5e6f6;border-radius:10px;padding:18px;margin:18px 0}
.stroke-rules-lesson .hr-exam-banner>div{flex:1;min-width:180px}
.stroke-rules-lesson .hr-question-nav{display:flex;gap:5px;flex-wrap:wrap;margin:12px 0}
.stroke-rules-lesson .hr-question-nav button{padding:5px}
.stroke-rules-lesson .hr-exam,.stroke-rules-lesson .hr-results{margin:18px 0}
.stroke-rules-lesson .hr-score{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:15px 0}
.stroke-rules-lesson .hr-score>div{background:#f0f8ff;text-align:center;border-radius:8px;padding:12px 5px}
.stroke-rules-lesson .hr-score b{font-size:24px;display:block;color:#145da2}
.stroke-rules-lesson .hr-score span{font-size:12px}
.stroke-rules-lesson .hr-review{margin:16px 0}
.stroke-rules-lesson .hr-review details{border-top:1px solid #e0eaf3;padding:5px}
.stroke-rules-lesson .hr-bottom-actions{display:flex;flex-wrap:wrap;gap:9px;align-items:center;margin:20px 0}
.stroke-rules-lesson .hr-footer{display:flex;gap:10px;justify-content:space-between;margin:0;min-width:0}
.stroke-rules-lesson .hr-footer a{display:flex;flex-direction:column;justify-content:center;border:1px solid #d5e4f6;background:#f6faff;color:#21609a;border-radius:7px;padding:7px 12px;min-height:44px;text-decoration:none;font-size:12px;line-height:1.4;min-width:0}
.stroke-rules-lesson .hr-footer a:last-child{text-align:right}
.stroke-rules-lesson .hr-footer small{font-size:10px;color:inherit}
.stroke-rules-lesson .hr-bottom-actions>.hr-footer{flex:1}
.stroke-rules-lesson .hr-topbar{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px;font-size:11px}
.stroke-rules-lesson .hr-topbar .hr-footer{gap:6px}
.stroke-rules-lesson .hr-sources{font-size:12px;margin-top:15px}
.stroke-rules-lesson .hr-sources a{color:#195e9e;overflow-wrap:anywhere}
.stroke-rules-lesson .hr-mobile-toc{display:none;margin:12px 0}
@media(max-width:1150px){.stroke-rules-lesson .hr-panels{grid-template-columns:minmax(0,1fr)}.stroke-rules-lesson .hr-workspace{grid-template-columns:minmax(0,320px) minmax(100px,1fr)}.stroke-rules-lesson .hr-steps{grid-template-columns:repeat(8,minmax(0,1fr))}}
@media(max-width:850px){.shell>main:has(>.stroke-rules-lesson){padding:12px 14px 35px}.stroke-rules-lesson .hr-layout{grid-template-columns:minmax(0,1fr);gap:12px}.stroke-rules-lesson .hr-course{position:static}.stroke-rules-lesson .hr-desktop-toc{display:none}.stroke-rules-lesson .hr-mobile-toc{display:block}.stroke-rules-lesson .hr-course nav{grid-template-columns:repeat(2,minmax(0,1fr))}.stroke-rules-lesson .hr-course nav a{font-size:12px}.stroke-rules-lesson .hr-hero-copy{padding-right:0}}
@media(max-width:600px){.stroke-rules-lesson .hr-hero-character{display:none}.stroke-rules-lesson .hr-hero-copy{width:100%;padding-right:0}.stroke-rules-lesson .hr-hero{padding:18px}.stroke-rules-lesson .hr-landscape{opacity:.13}.stroke-rules-lesson .hr-goals ul{grid-template-columns:minmax(0,1fr);font-size:13px}.stroke-rules-lesson .hr-topbar{align-items:flex-start;flex-direction:column}.stroke-rules-lesson .hr-topbar .hr-footer{width:100%}.stroke-rules-lesson .hr-panel{padding:14px}.stroke-rules-lesson .hr-workspace{grid-template-columns:minmax(0,1fr) 105px}.stroke-rules-lesson .hr-steps{grid-template-columns:repeat(4,minmax(0,1fr))}.stroke-rules-lesson .hr-structures{grid-template-columns:repeat(2,minmax(0,1fr))}.stroke-rules-lesson .hr-score{grid-template-columns:repeat(2,minmax(0,1fr))}.stroke-rules-lesson .hr-course nav{grid-template-columns:minmax(0,1fr)}.stroke-rules-lesson .hr-bottom-actions>.hr-footer{flex-basis:100%}.stroke-rules-lesson .hr-exam-banner>button{flex:1}}
@media(max-width:380px){.stroke-rules-lesson .hr-workspace{grid-template-columns:minmax(0,1fr)}.stroke-rules-lesson .hr-square{max-width:280px;margin:0 auto;width:100%}.stroke-rules-lesson .hr-tools{grid-template-columns:repeat(2,minmax(0,1fr))}.stroke-rules-lesson .hr-char-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stroke-rules-lesson .hr-strokes{grid-template-columns:repeat(4,minmax(0,1fr))}.stroke-rules-lesson .hr-intro-grid{gap:4px}.stroke-rules-lesson .hr-triple strong{font-size:23px}}
@media(prefers-reduced-motion:reduce){.stroke-rules-lesson *{scroll-behavior:auto;transition:none}}

/* Bài 11 follows the reference: full-width learning sections, compact rule cards. */
.stroke-rules-lesson .hr-panels{grid-template-columns:minmax(0,1fr)}
.stroke-rules-lesson .hr-strokes{grid-template-columns:repeat(8,minmax(0,1fr))}
.stroke-rules-lesson .hr-rules{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.stroke-rules-lesson .hr-rules button{display:flex;flex-direction:column;text-align:center;gap:4px;padding:12px 8px;align-items:center}
.stroke-rules-lesson .hr-rules button>span{flex:none;display:block;font-size:13px}
.stroke-rules-lesson .hr-rules button>strong{font-size:34px;line-height:1.3}
.stroke-rules-lesson .hr-rules button small{font-size:11px}
.stroke-rules-lesson .hr-rule-detail{padding:14px;background:#f4f9ff;border-radius:8px;margin-top:12px;font-size:14px}
.stroke-rules-lesson .hr-rule-detail h3{font-size:16px}
.stroke-rules-lesson .hr-sequence{font-weight:650;color:#155d9f}
.stroke-rules-lesson .hr-character-tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin-bottom:16px}
.stroke-rules-lesson .hr-character-tabs b{display:block;font-size:25px;line-height:1.5}
.stroke-rules-lesson .hr-character-tabs small{font-size:11px}
.stroke-rules-lesson .hr-demo-layout{display:grid;grid-template-columns:minmax(180px,280px) minmax(0,1fr);gap:18px;align-items:start}
.stroke-rules-lesson .hr-steps{grid-template-columns:repeat(4,minmax(0,1fr))}
.stroke-rules-lesson .hr-workspace{grid-template-columns:minmax(0,320px) minmax(0,1fr);gap:18px}
.stroke-rules-lesson .hr-workspace .hr-tools{justify-items:start;align-content:start}
.stroke-rules-lesson .hr-workspace .hr-tools button{min-width:140px;font-size:13px}
.stroke-rules-lesson .hr-table-scroll{overflow-x:auto;width:100%;max-width:100%}
.stroke-rules-lesson table{border-collapse:collapse;width:100%;min-width:540px;font-size:13px}
.stroke-rules-lesson th,.stroke-rules-lesson td{text-align:left;vertical-align:top;padding:10px;border:1px solid #dce7ef}
.stroke-rules-lesson th{background:#edf6ff}
.stroke-rules-lesson .hr-panel:nth-child(n) .hr-number{background:#087b91}
@media(max-width:700px){.stroke-rules-lesson .hr-strokes{grid-template-columns:repeat(4,minmax(0,1fr))}.stroke-rules-lesson .hr-rules{grid-template-columns:repeat(2,minmax(0,1fr))}.stroke-rules-lesson .hr-demo-layout{grid-template-columns:minmax(0,1fr)}.stroke-rules-lesson .hr-demo-layout .hr-square{max-width:280px;margin:auto}.stroke-rules-lesson .hr-character-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:500px){.stroke-rules-lesson .hr-workspace{grid-template-columns:minmax(0,1fr)}.stroke-rules-lesson .hr-workspace .hr-square{max-width:280px;margin:auto;width:100%}.stroke-rules-lesson .hr-workspace .hr-tools{display:flex;flex-wrap:wrap;gap:8px}.stroke-rules-lesson .hr-tools>h3,.stroke-rules-lesson .hr-tools>p{flex-basis:100%;margin:0}.stroke-rules-lesson .hr-workspace .hr-tools button{min-width:44px;flex:1}.stroke-rules-lesson .hr-character-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}}
