/* Paired teaching plates and the check sheet have independent reading order. */
.stroke-lab{color:#264b44}
.stroke-lab button,.stroke-lab input{font:inherit}
.stroke-lab button:focus-visible,.stroke-lab input:focus-visible{outline:3px solid #945132;outline-offset:3px}
.stroke-phases{display:flex;gap:5px;border-bottom:1px solid #bfcdbd;margin:0 0 14px}
.stroke-phases button{border:0;border-bottom:3px solid transparent;background:transparent;color:#48655b;min-height:42px;padding:6px 22px 10px;font-weight:750}
.stroke-phases small{margin-right:8px;color:inherit;font:italic 14px Georgia,serif}
.stroke-phases button[aria-pressed=true]{border-color:#9c5439;background:#f4e9d4;color:#7c4029;border-radius:6px 6px 0 0}
.stroke-board{border:1px solid #beccbc;border-radius:12px;background:#fdf9ed;overflow:hidden}
.stroke-board-intro{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 22px;background:#e9efe2;border-bottom:1px solid #c8d3bf}
.stroke-lab .stroke-board-intro small,.stroke-coaching>small{color:#865033;font-size:13px;font-weight:bold}
.unit-main .stroke-board-intro h2{font-size:clamp(20px,1.7vw,25px);margin:2px 0}
.unit-main .stroke-board-intro p{margin:0;max-width:28em;font-size:15px;color:#476559}
.stroke-plates{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:16px 16px 8px}
.stroke-plate{display:flex;flex-direction:column;align-items:stretch;text-align:left;border:2px solid #d7d8c4;background:#fffcf3;color:#304f43;border-radius:7px;padding:0;overflow:hidden;cursor:pointer;min-width:0}
.stroke-plate[aria-pressed=true]{border-color:#367468;box-shadow:0 0 0 1px #367468}
.stroke-plate:hover{border-color:#87a291}
.stroke-plate img{width:100%;height:auto;display:block}
.stroke-plate-title{display:flex;gap:12px;align-items:center;padding:9px 13px;background:#f5f1e5}
.stroke-plate[aria-pressed=true] .stroke-plate-title{background:#2c6459;color:#fff8e8}
.stroke-plate-title strong{font:700 18px/1.45 "SimSun",serif}
.stroke-lab .stroke-plate-title small{font-size:13px;color:inherit}
.stroke-figcaption{padding:9px 13px;font-size:14px;line-height:1.6}
.stroke-frame-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 16px 10px;font-size:14px;color:#617263}
.stroke-frame-bar button,.stroke-check-footer button{border:1px solid #99b19e;background:#e9efe3;color:#2b564a;border-radius:5px;padding:6px 12px;min-height:36px;cursor:pointer}
.stroke-workbench{display:grid;grid-template-columns:1.15fr 1fr;align-items:start;gap:16px;margin:15px 0}
.stroke-coaching,.stroke-checks{border:1px solid #d1d6c4;border-radius:8px;background:#fffcf4;padding:18px 20px}
.stroke-coaching h3,.stroke-check-head h3{font:700 22px/1.45 "SimSun",serif;color:#285344}
.stroke-coaching dl{margin:0}
.stroke-coaching dl div{display:grid;grid-template-columns:5em 1fr;gap:8px;border-top:1px solid #e0e1d1;padding:9px 0}
.stroke-coaching dt{font-weight:700;color:#865234}
.stroke-coaching dd{margin:0;line-height:1.7;color:#354d42}
.stroke-check-head,.stroke-check-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.stroke-check-head span,.stroke-check-footer output{font-size:13px;color:#3e6254}
.unit-main .stroke-check-head h3{margin:0}
.unit-main .stroke-checks>p{margin:5px 0 12px;color:#607064;font-size:14px}
.stroke-check-row{border:0;border-bottom:1px solid #dbe1d0;margin:0 0 8px;padding:0 0 7px;min-width:0}
.stroke-check-row legend{padding:0;font-weight:600;font-size:15px;color:#365349}
.stroke-check-row>div{display:flex;gap:18px;margin-top:2px}
.stroke-check-row label{cursor:pointer;font-size:14px;display:flex;align-items:center;gap:5px;padding:2px 0}
.stroke-check-row input{accent-color:#306859;width:16px;height:16px;margin:0}
.stroke-check-row input:checked+span{color:#1b5146;font-weight:700}
.stroke-check-row input[data-check]{accent-color:#955433}
.stroke-check-row input[data-check]:checked+span{color:#844831}
.stroke-check-steps{display:flex;gap:5px;margin:8px 0 9px}
.stroke-check-steps span{position:relative;flex:1;min-width:0;height:5px;overflow:hidden;border-radius:3px;background:#e5e7d9}
.stroke-check-steps span::before{content:"";position:absolute;inset:0;border-radius:inherit;background:#44806d;transform:scaleX(0);transform-origin:left center}
.stroke-check-steps [data-status="pending"]::before{background:#a2653f}
.stroke-check-steps [data-status="done"]::before,.stroke-check-steps [data-status="pending"]::before{transform:scaleX(1)}
.stroke-check-row label span{position:relative;border-radius:4px;padding:1px 3px}
.stroke-check-row input[data-achieved]:checked+span{background:#e2eee3}
.stroke-check-row input[data-check]:checked+span{background:#f5e6d6}
#stroke-check-count{padding:2px 7px;border-radius:4px;font-variant-numeric:tabular-nums}
.stroke-check-footer{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px}
.stroke-check-footer output{line-height:1.45;min-height:2.9em;align-content:center}
.stroke-check-footer button[data-confirmed="true"]{border-color:#598872;background:#deebdf;color:#245640}
@media(prefers-reduced-motion:no-preference){
  .stroke-check-steps span::before{transition:transform 220ms ease-out,background-color 160ms ease-out}
  .stroke-check-row[data-selection="done"] input[data-achieved]:checked+span{animation:stroke-done-ink 260ms ease-out}
  .stroke-check-row[data-selection="pending"] input[data-check]:checked+span{animation:stroke-pending-ink 260ms ease-out}
  .stroke-reviewed-now{animation:stroke-reviewed-ink 420ms ease-out}
  .stroke-check-footer .stroke-confirmed-now{animation:stroke-confirm-ink 390ms ease-out}
  @keyframes stroke-done-ink{from{box-shadow:0 0 0 2px #669278;background:#c6dfcb}to{box-shadow:0 0 0 5px transparent;background:#e2eee3}}
  @keyframes stroke-pending-ink{from{box-shadow:inset 0 -3px #aa713f;background:#ecd1b4}to{box-shadow:inset 0 0 transparent;background:#f5e6d6}}
  @keyframes stroke-reviewed-ink{from{background:#d4e8e4}to{background:transparent}}
  @keyframes stroke-confirm-ink{from{box-shadow:0 0 0 2px #719780}to{box-shadow:0 0 0 6px transparent}}
}
@media(min-width:1200px){.stroke-plates{padding-left:22px;padding-right:22px}.stroke-check-row{position:relative;min-height:36px;padding:3px 0}.stroke-check-row legend{float:left;max-width:53%;line-height:1.7}.stroke-check-row>div{justify-content:flex-end;gap:10px}.stroke-check-row:after{content:'';display:block;clear:both}}
@media(max-width:740px){
  .stroke-board-intro{display:block;padding:12px 14px}.unit-main .stroke-board-intro p{font-size:14px;margin-top:4px}
  .stroke-plates,.stroke-workbench{grid-template-columns:1fr}
  .stroke-plates{padding:10px;gap:6px}
  .stroke-plate:not([aria-pressed=true]) img,.stroke-plate:not([aria-pressed=true]) .stroke-figcaption{display:none}
  .stroke-plate:not([aria-pressed=true]) .stroke-plate-title:after{content:'查看';font-size:13px;margin-left:auto;color:#536957}
  .stroke-phases button{padding:6px 12px;flex:1}
  .stroke-coaching,.stroke-checks{padding:14px}
  .stroke-figcaption{font-size:14px}
  .stroke-frame-bar{padding:3px 10px 10px;align-items:start}.stroke-frame-bar span{max-width:58%}
  .stroke-check-row label{min-height:35px}
}

@media(min-width:900px){
  .stroke-board-intro{padding:11px 18px}
  .stroke-plates{padding-top:11px}
  .stroke-plate img{height:clamp(186px,26vh,260px);object-fit:contain;background:#f8f3e5}
  .stroke-plate-title,.stroke-figcaption{padding-top:7px;padding-bottom:7px}
  .stroke-workbench{margin-top:12px}
}
