/* KaTeX 0.16 (MIT) — woff2 only, offline */
.katex{font:normal 1.21em KaTeX_Main,Times New Roman,serif;line-height:1.2;position:relative;text-indent:0;text-rendering:auto}.katex *{-ms-high-contrast-adjust:none!important;border-color:currentColor}.katex .katex-version:after{content:"0.16.47"}.katex .katex-mathml{border:0;-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;overflow:hidden;padding:0;position:absolute;width:1px}.katex .katex-html>.newline{display:block}.katex .base{position:relative;white-space:nowrap;width:-webkit-min-content;width:-moz-min-content;width:min-content}.katex .base,.katex .strut{display:inline-block}.katex .textbf{font-weight:700}.katex .textit{font-style:italic}.katex .textrm{font-family:KaTeX_Main}.katex .textsf{font-family:KaTeX_SansSerif}.katex .texttt{font-family:KaTeX_Typewriter}.katex .mathnormal{font-family:KaTeX_Math;font-style:italic}.katex .mathit{font-family:KaTeX_Main;font-style:italic}.katex .mathrm{font-style:normal}.katex .mathbf{font-family:KaTeX_Main;font-weight:700}.katex .boldsymbol{font-family:KaTeX_Math;font-style:italic;font-weight:700}.katex .amsrm,.katex .mathbb,.katex .textbb{font-family:KaTeX_AMS}.katex .mathcal{font-family:KaTeX_Caligraphic}.katex .mathfrak,.katex .textfrak{font-family:KaTeX_Fraktur}.katex .mathboldfrak,.katex .textboldfrak{font-family:KaTeX_Fraktur;font-weight:700}.katex .mathtt{font-family:KaTeX_Typewriter}.katex .mathscr,.katex .textscr{font-family:KaTeX_Script}.katex .mathsf,.katex .textsf{font-family:KaTeX_SansSerif}.katex .mathboldsf,.katex .textboldsf{font-family:KaTeX_SansSerif;font-weight:700}.katex .mathitsf,.katex .mathsfit,.katex .textitsf{font-family:KaTeX_SansSerif;font-style:italic}.katex .mainrm{font-family:KaTeX_Main;font-style:normal}.katex .vlist-t{border-collapse:collapse;display:inline-table;table-layout:fixed}.katex .vlist-r{display:table-row}.katex .vlist{display:table-cell;position:relative;vertical-align:bottom}.katex .vlist>span{display:block;height:0;position:relative}.katex .vlist>span>span{display:inline-block}.katex .vlist>span>.pstrut{overflow:hidden;width:0}.katex .vlist-t2{margin-right:-2px}.katex .vlist-s{display:table-cell;font-size:1px;min-width:2px;vertical-align:bottom;width:2px}.katex .vbox{align-items:baseline;display:inline-flex;flex-direction:column}.katex .hbox{width:100%}.katex .hbox,.katex .thinbox{display:inline-flex;flex-direction:row}.katex .thinbox{max-width:0;width:0}.katex .msupsub{text-align:left}.katex .mfrac>span>span{text-align:center}.katex .mfrac .frac-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .hdashline,.katex .hline,.katex .mfrac .frac-line,.katex .overline .overline-line,.katex .rule,.katex .underline .underline-line{min-height:1px}.katex .mspace{display:inline-block}.katex .smash{display:inline;line-height:0}.katex .clap,.katex .llap,.katex .rlap{position:relative;width:0}.katex .clap>.inner,.katex .llap>.inner,.katex .rlap>.inner{position:absolute}.katex .clap>.fix,.katex .llap>.fix,.katex .rlap>.fix{display:inline-block}.katex .llap>.inner{right:0}.katex .clap>.inner,.katex .rlap>.inner{left:0}.katex .clap>.inner>span{margin-left:-50%;margin-right:50%}.katex .rule{border:0 solid;display:inline-block;position:relative}.katex .hline,.katex .overline .overline-line,.katex .underline .underline-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .hdashline{border-bottom-style:dashed;display:inline-block;width:100%}.katex .sqrt>.root{margin-left:.2777777778em;margin-right:-.5555555556em}.katex .fontsize-ensurer.reset-size1.size1,.katex .sizing.reset-size1.size1{font-size:1em}.katex .fontsize-ensurer.reset-size1.size2,.katex .sizing.reset-size1.size2{font-size:1.2em}.katex .fontsize-ensurer.reset-size1.size3,.katex .sizing.reset-size1.size3{font-size:1.4em}.katex .fontsize-ensurer.reset-size1.size4,.katex .sizing.reset-size1.size4{font-size:1.6em}.katex .fontsize-ensurer.reset-size1.size5,.katex .sizing.reset-size1.size5{font-size:1.8em}.katex .fontsize-ensurer.reset-size1.size6,.katex .sizing.reset-size1.size6{font-size:2em}.katex .fontsize-ensurer.reset-size1.size7,.katex .sizing.reset-size1.size7{font-size:2.4em}.katex .fontsize-ensurer.reset-size1.size8,.katex .sizing.reset-size1.size8{font-size:2.88em}.katex .fontsize-ensurer.reset-size1.size9,.katex .sizing.reset-size1.size9{font-size:3.456em}.katex .fontsize-ensurer.reset-size1.size10,.katex .sizing.reset-size1.size10{font-size:4.148em}.katex .fontsize-ensurer.reset-size1.size11,.katex .sizing.reset-size1.size11{font-size:4.976em}.katex .fontsize-ensurer.reset-size2.size1,.katex .sizing.reset-size2.size1{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size2.size2,.katex .sizing.reset-size2.size2{font-size:1em}.katex .fontsize-ensurer.reset-size2.size3,.katex .sizing.reset-size2.size3{font-size:1.1666666667em}.katex .fontsize-ensurer.reset-size2.size4,.katex .sizing.reset-size2.size4{font-size:1.3333333333em}.katex .fontsize-ensurer.reset-size2.size5,.katex .sizing.reset-size2.size5{font-size:1.5em}.katex .fontsize-ensurer.reset-size2.size6,.katex .sizing.reset-size2.size6{font-size:1.6666666667em}.katex .fontsize-ensurer.reset-size2.size7,.katex .sizing.reset-size2.size7{font-size:2em}.katex .fontsize-ensurer.reset-size2.size8,.katex .sizing.reset-size2.size8{font-size:2.4em}.katex .fontsize-ensurer.reset-size2.size9,.katex .sizing.reset-size2.size9{font-size:2.88em}.katex .fontsize-ensurer.reset-size2.size10,.katex .sizing.reset-size2.size10{font-size:3.4566666667em}.katex .fontsize-ensurer.reset-size2.size11,.katex .sizing.reset-size2.size11{font-size:4.1466666667em}.katex .fontsize-ensurer.reset-size3.size1,.katex .sizing.reset-size3.size1{font-size:.7142857143em}.katex .fontsize-ensurer.reset-size3.size2,.katex .sizing.reset-size3.size2{font-size:.8571428571em}.katex .fontsize-ensurer.reset-size3.size3,.katex .sizing.reset-size3.size3{font-size:1em}.katex .fontsize-ensurer.reset-size3.size4,.katex .sizing.reset-size3.size4{font-size:1.1428571429em}.katex .fontsize-ensurer.reset-size3.size5,.katex .sizing.reset-size3.size5{font-size:1.2857142857em}.katex .fontsize-ensurer.reset-size3.size6,.katex .sizing.reset-size3.size6{font-size:1.4285714286em}.katex .fontsize-ensurer.reset-size3.size7,.katex .sizing.reset-size3.size7{font-size:1.7142857143em}.katex .fontsize-ensurer.reset-size3.size8,.katex .sizing.reset-size3.size8{font-size:2.0571428571em}.katex .fontsize-ensurer.reset-size3.size9,.katex .sizing.reset-size3.size9{font-size:2.4685714286em}.katex .fontsize-ensurer.reset-size3.size10,.katex .sizing.reset-size3.size10{font-size:2.9628571429em}.katex .fontsize-ensurer.reset-size3.size11,.katex .sizing.reset-size3.size11{font-size:3.5542857143em}.katex .fontsize-ensurer.reset-size4.size1,.katex .sizing.reset-size4.size1{font-size:.625em}.katex .fontsize-ensurer.reset-size4.size2,.katex .sizing.reset-size4.size2{font-size:.75em}.katex .fontsize-ensurer.reset-size4.size3,.katex .sizing.reset-size4.size3{font-size:.875em}.katex .fontsize-ensurer.reset-size4.size4,.katex .sizing.reset-size4.size4{font-size:1em}.katex .fontsize-ensurer.reset-size4.size5,.katex .sizing.reset-size4.size5{font-size:1.125em}.katex .fontsize-ensurer.reset-size4.size6,.katex .sizing.reset-size4.size6{font-size:1.25em}.katex .fontsize-ensurer.reset-size4.size7,.katex .sizing.reset-size4.size7{font-size:1.5em}.katex .fontsize-ensurer.reset-size4.size8,.katex .sizing.reset-size4.size8{font-size:1.8em}.katex .fontsize-ensurer.reset-size4.size9,.katex .sizing.reset-size4.size9{font-size:2.16em}.katex .fontsize-ensurer.reset-size4.size10,.katex .sizing.reset-size4.size10{font-size:2.5925em}.katex .fontsize-ensurer.reset-size4.size11,.katex .sizing.reset-size4.size11{font-size:3.11em}.katex .fontsize-ensurer.reset-size5.size1,.katex .sizing.reset-size5.size1{font-size:.5555555556em}.katex .fontsize-ensurer.reset-size5.size2,.katex .sizing.reset-size5.size2{font-size:.6666666667em}.katex .fontsize-ensurer.reset-size5.size3,.katex .sizing.reset-size5.size3{font-size:.7777777778em}.katex .fontsize-ensurer.reset-size5.size4,.katex .sizing.reset-size5.size4{font-size:.8888888889em}.katex .fontsize-ensurer.reset-size5.size5,.katex .sizing.reset-size5.size5{font-size:1em}.katex .fontsize-ensurer.reset-size5.size6,.katex .sizing.reset-size5.size6{font-size:1.1111111111em}.katex .fontsize-ensurer.reset-size5.size7,.katex .sizing.reset-size5.size7{font-size:1.3333333333em}.katex .fontsize-ensurer.reset-size5.size8,.katex .sizing.reset-size5.size8{font-size:1.6em}.katex .fontsize-ensurer.reset-size5.size9,.katex .sizing.reset-size5.size9{font-size:1.92em}.katex .fontsize-ensurer.reset-size5.size10,.katex .sizing.reset-size5.size10{font-size:2.3044444444em}.katex .fontsize-ensurer.reset-size5.size11,.katex .sizing.reset-size5.size11{font-size:2.7644444444em}.katex .fontsize-ensurer.reset-size6.size1,.katex .sizing.reset-size6.size1{font-size:.5em}.katex .fontsize-ensurer.reset-size6.size2,.katex .sizing.reset-size6.size2{font-size:.6em}.katex .fontsize-ensurer.reset-size6.size3,.katex .sizing.reset-size6.size3{font-size:.7em}.katex .fontsize-ensurer.reset-size6.size4,.katex .sizing.reset-size6.size4{font-size:.8em}.katex .fontsize-ensurer.reset-size6.size5,.katex .sizing.reset-size6.size5{font-size:.9em}.katex .fontsize-ensurer.reset-size6.size6,.katex .sizing.reset-size6.size6{font-size:1em}.katex .fontsize-ensurer.reset-size6.size7,.katex .sizing.reset-size6.size7{font-size:1.2em}.katex .fontsize-ensurer.reset-size6.size8,.katex .sizing.reset-size6.size8{font-size:1.44em}.katex .fontsize-ensurer.reset-size6.size9,.katex .sizing.reset-size6.size9{font-size:1.728em}.katex .fontsize-ensurer.reset-size6.size10,.katex .sizing.reset-size6.size10{font-size:2.074em}.katex .fontsize-ensurer.reset-size6.size11,.katex .sizing.reset-size6.size11{font-size:2.488em}.katex .fontsize-ensurer.reset-size7.size1,.katex .sizing.reset-size7.size1{font-size:.4166666667em}.katex .fontsize-ensurer.reset-size7.size2,.katex .sizing.reset-size7.size2{font-size:.5em}.katex .fontsize-ensurer.reset-size7.size3,.katex .sizing.reset-size7.size3{font-size:.5833333333em}.katex .fontsize-ensurer.reset-size7.size4,.katex .sizing.reset-size7.size4{font-size:.6666666667em}.katex .fontsize-ensurer.reset-size7.size5,.katex .sizing.reset-size7.size5{font-size:.75em}.katex .fontsize-ensurer.reset-size7.size6,.katex .sizing.reset-size7.size6{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size7.size7,.katex .sizing.reset-size7.size7{font-size:1em}.katex .fontsize-ensurer.reset-size7.size8,.katex .sizing.reset-size7.size8{font-size:1.2em}.katex .fontsize-ensurer.reset-size7.size9,.katex .sizing.reset-size7.size9{font-size:1.44em}.katex .fontsize-ensurer.reset-size7.size10,.katex .sizing.reset-size7.size10{font-size:1.7283333333em}.katex .fontsize-ensurer.reset-size7.size11,.katex .sizing.reset-size7.size11{font-size:2.0733333333em}.katex .fontsize-ensurer.reset-size8.size1,.katex .sizing.reset-size8.size1{font-size:.3472222222em}.katex .fontsize-ensurer.reset-size8.size2,.katex .sizing.reset-size8.size2{font-size:.4166666667em}.katex .fontsize-ensurer.reset-size8.size3,.katex .sizing.reset-size8.size3{font-size:.4861111111em}.katex .fontsize-ensurer.reset-size8.size4,.katex .sizing.reset-size8.size4{font-size:.5555555556em}.katex .fontsize-ensurer.reset-size8.size5,.katex .sizing.reset-size8.size5{font-size:.625em}.katex .fontsize-ensurer.reset-size8.size6,.katex .sizing.reset-size8.size6{font-size:.6944444444em}.katex .fontsize-ensurer.reset-size8.size7,.katex .sizing.reset-size8.size7{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size8.size8,.katex .sizing.reset-size8.size8{font-size:1em}.katex .fontsize-ensurer.reset-size8.size9,.katex .sizing.reset-size8.size9{font-size:1.2em}.katex .fontsize-ensurer.reset-size8.size10,.katex .sizing.reset-size8.size10{font-size:1.4402777778em}.katex .fontsize-ensurer.reset-size8.size11,.katex .sizing.reset-size8.size11{font-size:1.7277777778em}.katex .fontsize-ensurer.reset-size9.size1,.katex .sizing.reset-size9.size1{font-size:.2893518519em}.katex .fontsize-ensurer.reset-size9.size2,.katex .sizing.reset-size9.size2{font-size:.3472222222em}.katex .fontsize-ensurer.reset-size9.size3,.katex .sizing.reset-size9.size3{font-size:.4050925926em}.katex .fontsize-ensurer.reset-size9.size4,.katex .sizing.reset-size9.size4{font-size:.462962963em}.katex .fontsize-ensurer.reset-size9.size5,.katex .sizing.reset-size9.size5{font-size:.5208333333em}.katex .fontsize-ensurer.reset-size9.size6,.katex .sizing.reset-size9.size6{font-size:.5787037037em}.katex .fontsize-ensurer.reset-size9.size7,.katex .sizing.reset-size9.size7{font-size:.6944444444em}.katex .fontsize-ensurer.reset-size9.size8,.katex .sizing.reset-size9.size8{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size9.size9,.katex .sizing.reset-size9.size9{font-size:1em}.katex .fontsize-ensurer.reset-size9.size10,.katex .sizing.reset-size9.size10{font-size:1.2002314815em}.katex .fontsize-ensurer.reset-size9.size11,.katex .sizing.reset-size9.size11{font-size:1.4398148148em}.katex .fontsize-ensurer.reset-size10.size1,.katex .sizing.reset-size10.size1{font-size:.2410800386em}.katex .fontsize-ensurer.reset-size10.size2,.katex .sizing.reset-size10.size2{font-size:.2892960463em}.katex .fontsize-ensurer.reset-size10.size3,.katex .sizing.reset-size10.size3{font-size:.337512054em}.katex .fontsize-ensurer.reset-size10.size4,.katex .sizing.reset-size10.size4{font-size:.3857280617em}.katex .fontsize-ensurer.reset-size10.size5,.katex .sizing.reset-size10.size5{font-size:.4339440694em}.katex .fontsize-ensurer.reset-size10.size6,.katex .sizing.reset-size10.size6{font-size:.4821600771em}.katex .fontsize-ensurer.reset-size10.size7,.katex .sizing.reset-size10.size7{font-size:.5785920926em}.katex .fontsize-ensurer.reset-size10.size8,.katex .sizing.reset-size10.size8{font-size:.6943105111em}.katex .fontsize-ensurer.reset-size10.size9,.katex .sizing.reset-size10.size9{font-size:.8331726133em}.katex .fontsize-ensurer.reset-size10.size10,.katex .sizing.reset-size10.size10{font-size:1em}.katex .fontsize-ensurer.reset-size10.size11,.katex .sizing.reset-size10.size11{font-size:1.1996142719em}.katex .fontsize-ensurer.reset-size11.size1,.katex .sizing.reset-size11.size1{font-size:.2009646302em}.katex .fontsize-ensurer.reset-size11.size2,.katex .sizing.reset-size11.size2{font-size:.2411575563em}.katex .fontsize-ensurer.reset-size11.size3,.katex .sizing.reset-size11.size3{font-size:.2813504823em}.katex .fontsize-ensurer.reset-size11.size4,.katex .sizing.reset-size11.size4{font-size:.3215434084em}.katex .fontsize-ensurer.reset-size11.size5,.katex .sizing.reset-size11.size5{font-size:.3617363344em}.katex .fontsize-ensurer.reset-size11.size6,.katex .sizing.reset-size11.size6{font-size:.4019292605em}.katex .fontsize-ensurer.reset-size11.size7,.katex .sizing.reset-size11.size7{font-size:.4823151125em}.katex .fontsize-ensurer.reset-size11.size8,.katex .sizing.reset-size11.size8{font-size:.578778135em}.katex .fontsize-ensurer.reset-size11.size9,.katex .sizing.reset-size11.size9{font-size:.6945337621em}.katex .fontsize-ensurer.reset-size11.size10,.katex .sizing.reset-size11.size10{font-size:.8336012862em}.katex .fontsize-ensurer.reset-size11.size11,.katex .sizing.reset-size11.size11{font-size:1em}.katex .delimsizing.size1{font-family:KaTeX_Size1}.katex .delimsizing.size2{font-family:KaTeX_Size2}.katex .delimsizing.size3{font-family:KaTeX_Size3}.katex .delimsizing.size4{font-family:KaTeX_Size4}.katex .delimsizing.mult .delim-size1>span{font-family:KaTeX_Size1}.katex .delimsizing.mult .delim-size4>span{font-family:KaTeX_Size4}.katex .nulldelimiter{display:inline-block;width:.12em}.katex .delimcenter,.katex .op-symbol{position:relative}.katex .op-symbol.small-op{font-family:KaTeX_Size1}.katex .op-symbol.large-op{font-family:KaTeX_Size2}.katex .accent>.vlist-t,.katex .op-limits>.vlist-t{text-align:center}.katex .accent .accent-body{position:relative}.katex .accent .accent-body:not(.accent-full){width:0}.katex .overlay{display:block}.katex .mtable .vertical-separator{display:inline-block;min-width:1px}.katex .mtable .arraycolsep{display:inline-block}.katex .mtable .col-align-c>.vlist-t{text-align:center}.katex .mtable .col-align-l>.vlist-t{text-align:left}.katex .mtable .col-align-r>.vlist-t{text-align:right}.katex .svg-align{text-align:left}.katex svg{fill:currentColor;stroke:currentColor;display:block;height:inherit;position:absolute;width:100%}.katex svg path{stroke:none}.katex svg{fill-rule:nonzero;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1}.katex img{border-style:none;max-height:none;max-width:none;min-height:0;min-width:0}.katex .stretchy{display:block;overflow:hidden;position:relative;width:100%}.katex .stretchy:after,.katex .stretchy:before{content:""}.katex .hide-tail{overflow:hidden;position:relative;width:100%}.katex .halfarrow-left{left:0;overflow:hidden;position:absolute;width:50.2%}.katex .halfarrow-right{overflow:hidden;position:absolute;right:0;width:50.2%}.katex .brace-left{left:0;overflow:hidden;position:absolute;width:25.1%}.katex .brace-center{left:25%;overflow:hidden;position:absolute;width:50%}.katex .brace-right{overflow:hidden;position:absolute;right:0;width:25.1%}.katex .x-arrow-pad{padding:0 .5em}.katex .cd-arrow-pad{padding:0 .55556em 0 .27778em}.katex .mover,.katex .munder,.katex .x-arrow{text-align:center}.katex .boxpad{padding:0 .3em}.katex .fbox,.katex .fcolorbox{border:.04em solid;box-sizing:border-box}.katex .cancel-pad{padding:0 .2em}.katex .cancel-lap{margin-left:-.2em;margin-right:-.2em}.katex .sout{border-bottom-style:solid;border-bottom-width:.08em}.katex .angl{border-right:.049em solid;border-top:.049em solid;box-sizing:border-box;margin-right:.03889em}.katex .anglpad{padding:0 .03889em}.katex .eqn-num:before{content:"(" counter(katexEqnNo) ")";counter-increment:katexEqnNo}.katex .mml-eqn-num:before{content:"(" counter(mmlEqnNo) ")";counter-increment:mmlEqnNo}.katex .mtr-glue{width:50%}.katex .cd-vert-arrow{display:inline-block;position:relative}.katex .cd-label-left{display:inline-block;position:absolute;right:calc(50% + .3em);text-align:left}.katex .cd-label-right{display:inline-block;left:calc(50% + .3em);position:absolute;text-align:right}.katex-display{display:block;margin:1em 0;text-align:center}.katex-display>.katex{display:block;text-align:center;white-space:nowrap}.katex-display>.katex>.katex-html{display:block;position:relative}.katex-display>.katex>.katex-html>.tag{position:absolute;right:0}.katex-display.leqno>.katex>.katex-html>.tag{left:0;right:auto}.katex-display.fleqn>.katex{padding-left:2em;text-align:left}body{counter-reset:katexEqnNo mmlEqnNo}

/* Huatu presenter console */
:root {
  --huatu-tools-red: var(--huatu-red, #c53030);
  --huatu-tools-ink: #20242d;
  --huatu-tools-muted: #69717f;
  --huatu-tools-line: rgba(32, 36, 45, .11);
  --huatu-tools-panel: rgba(255, 255, 255, .975);
}

.huatu-tools,
.huatu-tools * { box-sizing: border-box; }

.huatu-tools {
  position: fixed;
  left: 18px;
  bottom: 68px;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  color: var(--huatu-tools-ink);
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  opacity: 1;
  pointer-events: none;
  transform: translateX(0);
  transition: opacity .22s ease, transform .22s ease, filter .22s ease;
}

.huatu-tools.is-hidden { opacity: 0; pointer-events: none; transform: translateX(-72px); }
.huatu-tools.is-idle:not(.open):not(:focus-within) { opacity:0; transform:translateY(6px); }
.huatu-tools.is-idle:not(.open):not(:focus-within) .huatu-tools-trigger { pointer-events:none; }

.huatu-tools-hotzone {
  position: fixed;
  left: 0;
  bottom: 56px;
  width: 72px;
  height: 94px;
  z-index: 79;
  pointer-events: none;
  background: transparent;
}

.huatu-tools-trigger {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 26px 0fr;
  align-items: center;
  gap: 0;
  min-width: 50px;
  height: 50px;
  padding: 0 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .74);
  border-radius: 15px;
  background: rgba(30, 34, 43, .94);
  color: #fff;
  box-shadow: 0 14px 34px rgba(20, 24, 31, .22), inset 0 1px 0 rgba(255,255,255,.12);
  cursor: pointer;
  backdrop-filter: blur(18px);
  transition: grid-template-columns .22s ease, min-width .22s ease, background .18s ease, transform .18s ease;
}
.huatu-tools:not(.is-hidden) .huatu-tools-trigger { pointer-events: auto; }

.huatu-tools-trigger:hover,
.huatu-tools-trigger:focus-visible {
  min-width: 136px;
  grid-template-columns: 26px 1fr;
  background: #20242d;
  transform: translateY(-1px);
}

.huatu-tools.open .huatu-tools-trigger { display:flex; position:absolute; left:0; bottom:0; }
.huatu-tools.open .huatu-tools-panel { margin-bottom:64px; max-height:calc(100vh - 154px); }
.huatu-tools-trigger-icon,
.huatu-tool-icon,
.huatu-icon-button { display: grid; place-items: center; }
.huatu-tools-trigger-icon svg,
.huatu-tool-icon svg,
.huatu-icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.huatu-tools-trigger-label {
  padding-left: 8px;
  overflow: hidden;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .02em;
}
.huatu-tools-active-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border: 2px solid #20242d;
  border-radius: 50%;
  background: transparent;
}
.huatu-tools.has-active-tool .huatu-tools-active-dot { background: #ff5364; box-shadow: 0 0 0 3px rgba(255, 83, 100, .18); }

.huatu-tools-panel {
  width: 296px;
  max-height: min(810px, calc(100vh - 90px));
  overflow: hidden;
  border: 1px solid rgba(32, 36, 45, .11);
  border-radius: 22px;
  background: var(--huatu-tools-panel);
  box-shadow: 0 28px 72px rgba(20, 24, 31, .22), 0 2px 8px rgba(20, 24, 31, .08);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-16px) scale(.97);
  transform-origin: left bottom;
  backdrop-filter: blur(24px) saturate(1.2);
  transition: opacity .2s ease, transform .2s cubic-bezier(.2,.8,.2,1);
}
.huatu-tools.open .huatu-tools-panel { opacity: 1; pointer-events: auto; transform: translateX(0) scale(1); }

.huatu-tools-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 15px 16px 13px 18px;
  border-bottom: 1px solid var(--huatu-tools-line);
  background: linear-gradient(135deg, rgba(197,48,48,.09), rgba(255,255,255,.4) 58%);
}
.huatu-tools-header > div:first-child { display: grid; gap: 3px; }
.huatu-tools-header strong { font-size: 17px; line-height: 1.2; letter-spacing: .02em; }
.huatu-tools-eyebrow { color: var(--huatu-tools-red); font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.huatu-tools-header-actions { display: flex; gap: 5px; }
.huatu-icon-button {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #575e6c;
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}
.huatu-icon-button:hover,
.huatu-icon-button[aria-expanded="true"] { background: rgba(197,48,48,.1); color: var(--huatu-tools-red); }

.huatu-tools-scroll {
  max-height: calc(min(810px, 100vh - 90px) - 116px);
  padding: 2px 14px 10px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(32,36,45,.18) transparent;
}
.huatu-tool-group { padding: 13px 0 15px; border-bottom: 1px solid var(--huatu-tools-line); }
.huatu-tool-group:last-of-type { border-bottom: 0; }
.huatu-tool-group-heading { display: flex; align-items: baseline; justify-content: space-between; margin: 0 3px 9px; }
.huatu-tool-group-heading span { font-size: 12px; font-weight: 760; letter-spacing: .06em; }
.huatu-tool-group-heading small { color: var(--huatu-tools-muted); font-size: 10px; }
.huatu-tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.huatu-tool-grid--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.huatu-tool-grid--print { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.huatu-tool-output { display: grid; gap: 7px; }

.huatu-tool-button {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: #f5f6f8;
  color: var(--huatu-tools-ink);
  text-align: left;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.huatu-tool-button:hover { border-color: rgba(32,36,45,.1); background: #fff; box-shadow: 0 7px 20px rgba(31,36,45,.08); transform: translateY(-1px); }
.huatu-tool-button.active {
  border-color: color-mix(in srgb, var(--huatu-tools-red) 30%, transparent);
  background: color-mix(in srgb, var(--huatu-tools-red) 9%, white);
  color: #8f1e28;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--huatu-tools-red) 8%, transparent);
}
.huatu-tool-button:disabled { opacity: .38; cursor: not-allowed; transform: none; box-shadow: none; }
.huatu-tool-button:focus-visible,
.huatu-tools-trigger:focus-visible,
.huatu-icon-button:focus-visible { outline: 3px solid color-mix(in srgb, var(--huatu-tools-red) 28%, transparent); outline-offset: 2px; }
.huatu-tool-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fff;
  color: #505766;
  box-shadow: inset 0 0 0 1px rgba(32,36,45,.07);
}
.huatu-tool-button.active .huatu-tool-icon,
.huatu-tool-button.is-primary .huatu-tool-icon { background: var(--huatu-tools-red); color: #fff; box-shadow: none; }
.huatu-tool-copy { display: grid; gap: 2px; min-width: 0; }
.huatu-tool-copy strong { overflow: hidden; color: inherit; font-size: 12px; line-height: 1.2; white-space: nowrap; text-overflow: ellipsis; }
.huatu-tool-copy small { overflow: hidden; color: var(--huatu-tools-muted); font-size: 9px; line-height: 1.25; white-space: nowrap; text-overflow: ellipsis; }
.huatu-tool-button kbd,
.huatu-tools-help kbd {
  min-width: 20px;
  padding: 3px 5px;
  border: 1px solid rgba(32,36,45,.11);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: #fff;
  color: #747b88;
  font: 700 9px/1 "SFMono-Regular", Consolas, monospace;
  text-align: center;
}
.huatu-tool-button.is-compact {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 5px;
  min-height: 68px;
  padding: 8px 4px 7px;
  text-align: center;
}
.huatu-tool-button.is-compact .huatu-tool-copy small,
.huatu-tool-button.is-compact kbd { display: none; }
.huatu-tool-button.is-compact .huatu-tool-copy strong { font-size: 11px; }
.huatu-tool-button.is-wide { grid-template-columns: 38px minmax(0, 1fr) auto; min-height: 54px; padding: 8px 10px; }
.huatu-tool-button.is-primary { border-color: rgba(197,48,48,.16); background: rgba(197,48,48,.06); }
.huatu-tool-button.is-busy { opacity: .72; }
.huatu-tool-button.is-busy .huatu-tool-icon svg { animation: huatu-tools-spin 1s linear infinite; }

.huatu-tools-help {
  margin: 4px 0 8px;
  padding: 13px 14px;
  border: 1px solid rgba(197,48,48,.14);
  border-radius: 14px;
  background: rgba(197,48,48,.055);
  color: #3d424d;
}
.huatu-tools-help[hidden] { display: none; }
.huatu-tools.help-open .huatu-tool-group { display: none; }
.huatu-tools.help-open .huatu-tools-help { margin-top: 12px; }
.huatu-tools-help strong { display: block; margin-bottom: 6px; font-size: 12px; }
.huatu-tools-help p { margin: 0 0 9px; color: #626a77; font-size: 10px; line-height: 1.55; }
.huatu-tools-help ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 10px; }
.huatu-tools-help li { display: flex; align-items: center; gap: 7px; }

.huatu-tools-footer {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 7px;
  min-height: 46px;
  padding: 0 16px;
  border-top: 1px solid var(--huatu-tools-line);
  background: rgba(246,247,249,.92);
  color: #4e5562;
  font-size: 10px;
}
.huatu-tools-footer small { color: #8a919d; font-size: 9px; }
.huatu-tools-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #33a46f; box-shadow: 0 0 0 3px rgba(51,164,111,.12); }
.huatu-tools.has-active-tool .huatu-tools-status-dot { background: var(--huatu-tools-red); box-shadow: 0 0 0 3px rgba(197,48,48,.12); }

.huatu-tools-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 10030;
  max-width: min(272px, calc(100vw - 32px));
  font-family: system-ui, sans-serif;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(30,34,43,.94);
  color: #fff;
  box-shadow: 0 10px 28px rgba(20,24,31,.18);
  font-size: 10px;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%,6px);
  transition: opacity .16s ease, transform .16s ease;
}
.huatu-tools-toast.show { opacity: 1; transform: translate(-50%,0); }
.huatu-tools-toast[data-tone="error"] { background: #9c2630; }
.huatu-tools-toast[data-tone="success"] { background: #22734f; }

.huatu-presenter-guide {
  position:fixed; left:50%; bottom:24px; z-index:96;
  width:min(520px,calc(100vw - 32px));
  color:#f4f6f8; font-family:"PingFang SC","Microsoft YaHei",-apple-system,BlinkMacSystemFont,sans-serif;
  opacity:0; transform:translate(-50%,18px) scale(.98); pointer-events:none;
  transition:opacity .2s ease,transform .24s cubic-bezier(.2,.8,.2,1);
}
.huatu-presenter-guide[hidden] { display:none; }
.huatu-presenter-guide.open { opacity:1; transform:translate(-50%,0) scale(1); pointer-events:auto; }
.huatu-presenter-guide-card {
  padding:18px 20px 16px; border:1px solid rgba(255,255,255,.14); border-radius:18px;
  background:rgba(24,28,36,.96); box-shadow:0 24px 70px rgba(15,18,24,.38);
  backdrop-filter:blur(22px) saturate(1.15);
}
.huatu-presenter-guide-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.huatu-presenter-guide-top span { color:#ff9b9b; font-size:10px; font-weight:800; letter-spacing:.14em; }
.huatu-presenter-guide-top button { width:30px; height:30px; border:0; border-radius:9px; background:rgba(255,255,255,.07); color:#fff; font-size:20px; cursor:pointer; }
.huatu-presenter-guide h2 { margin:0 0 13px; color:#fff; font-size:19px; line-height:1.35; letter-spacing:.01em; }
.huatu-presenter-guide ol { display:grid; gap:8px; margin:0; padding:0; list-style:none; counter-reset:guide-step; }
.huatu-presenter-guide li { counter-increment:guide-step; display:grid; grid-template-columns:24px 92px 1fr; align-items:start; gap:7px; color:#b9c0ca; font-size:12px; line-height:1.55; }
.huatu-presenter-guide li::before { content:counter(guide-step); display:grid; place-items:center; width:20px; height:20px; margin-top:1px; border-radius:50%; background:#c53030; color:#fff; font-size:10px; font-weight:800; }
.huatu-presenter-guide li strong { color:#fff; font-size:12px; }
.huatu-presenter-guide-actions { display:grid; grid-template-columns:1fr 1.25fr; gap:9px; margin-top:15px; }
.huatu-presenter-guide-actions button { min-height:40px; padding:0 12px; border:1px solid rgba(255,255,255,.14); border-radius:11px; background:rgba(255,255,255,.07); color:#fff; font:700 12px/1 "PingFang SC","Microsoft YaHei",sans-serif; cursor:pointer; }
.huatu-presenter-guide-actions button.primary { border-color:#c53030; background:#c53030; }
.huatu-presenter-guide-actions button:hover { transform:translateY(-1px); filter:brightness(1.08); }
.huatu-presenter-guide p { margin:12px 0 0; color:#8f98a5; font-size:10px; line-height:1.5; }
.huatu-presenter-guide kbd { display:inline-grid; place-items:center; min-width:20px; padding:2px 5px; border:1px solid rgba(255,255,255,.14); border-radius:5px; background:rgba(255,255,255,.08); color:#fff; font:700 9px/1.2 "SFMono-Regular",Consolas,monospace; }

.slide > .huatu-slide-ink { position:absolute !important; inset:0 !important; width:100% !important; height:100% !important; margin:0 !important; padding:0 !important; z-index:70; pointer-events:none; cursor:crosshair; }
.huatu-slide-ink.active { pointer-events:auto; touch-action:none; user-select:none; }
body.waterfall .huatu-slide-ink.active { touch-action:pan-y; }
#huatu-laser-pointer {
  position: fixed;
  display: none;
  width: 18px;
  height: 18px;
  z-index: 75;
  pointer-events: none;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255,255,255,.92);
  border-radius: 50%;
  background: #e4293f;
  box-shadow: 0 0 0 5px rgba(228,41,63,.16), 0 0 24px rgba(228,41,63,.9);
}
#huatu-spotlight { position: fixed; inset: 0; display: none; z-index: 69; pointer-events: none; background: radial-gradient(circle at 50% 50%, transparent 110px, rgba(0,0,0,.82) 150px); }

.huatu-print-ink-layer { display: none; }

/* Classroom board */
.huatu-classroom-board {
  --board-bg:#fffdf8; --board-ink:#222831; --board-muted:#6c7480; --board-line:#d9dde3;
  --board-panel:#f5f3ee; --board-accent:#c53030; --board-red:#c53030; --board-blue:#245fa8;
  --board-yellow:#9a6700; --board-green:#187255;
  position:fixed; z-index:90; display:grid; grid-template-rows:auto minmax(0,1fr) auto;
  overflow:hidden; border:1px solid rgba(28,34,42,.18); border-radius:18px;
  background:var(--board-bg); color:var(--board-ink);
  box-shadow:0 28px 90px rgba(20,26,34,.28),0 0 0 1px rgba(255,255,255,.55) inset;
  font-family:'PingFang SC','Microsoft YaHei',sans-serif;
}
.huatu-classroom-board.controls-hidden { grid-template-rows:0 minmax(0,1fr) 0; }
.huatu-classroom-board[hidden] { display:none!important; }
.huatu-classroom-board[data-theme="black"] {
  --board-bg:#17231f; --board-ink:#f7f3e8; --board-muted:#aab8b1; --board-line:#35473f;
  --board-panel:#101a17; --board-accent:#ff7676; --board-red:#ff7676; --board-blue:#75adff;
  --board-yellow:#ffd166; --board-green:#6ed5a7;
  border-color:#32463e; box-shadow:0 30px 100px rgba(0,0,0,.48),0 0 0 1px rgba(255,255,255,.04) inset;
}
.huatu-classroom-board[data-layout="half"] { top:10px; bottom:10px; width:calc(50vw - 10px); min-width:520px; }
.huatu-classroom-board[data-layout="half"][data-dock="right"] { right:10px; left:auto; }
.huatu-classroom-board[data-layout="half"][data-dock="left"] { left:10px; right:auto; }
.huatu-classroom-board[data-layout="full"] { inset:0; width:auto; height:auto; border:0; border-radius:0; }
.huatu-classroom-board[data-layout="quarter"] { min-width:360px; min-height:300px; }
.huatu-board-head {
  min-width:0; display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:10px 12px 10px 16px; border-bottom:1px solid var(--board-line); background:color-mix(in srgb,var(--board-panel) 92%,transparent);
  overflow:hidden; user-select:none; opacity:1; transform:translateY(0);
  transition:opacity .18s ease,transform .2s ease;
}
.huatu-board-identity { min-width:0; display:grid; gap:2px; }
.huatu-board-identity span { color:var(--board-accent); font-size:12px; font-weight:800; letter-spacing:.14em; }
.huatu-board-identity strong { overflow:hidden; max-width:36ch; color:var(--board-muted); font-size:11px; font-weight:600; white-space:nowrap; text-overflow:ellipsis; }
.huatu-board-head-actions { min-width:0; display:flex; align-items:center; justify-content:flex-end; gap:5px; overflow-x:auto; scrollbar-width:none; }
.huatu-board-head-actions::-webkit-scrollbar { display:none; }
.huatu-board-head-actions button,.huatu-board-tools button {
  min-height:34px; padding:0 10px; border:1px solid var(--board-line); border-radius:8px;
  background:transparent; color:var(--board-ink); font:700 11px/1 "PingFang SC","Microsoft YaHei",sans-serif; white-space:nowrap; cursor:pointer;
}
.huatu-board-head-actions button:hover,.huatu-board-tools button:hover { border-color:var(--board-accent); color:var(--board-accent); }
.huatu-board-head-actions button.active,.huatu-board-tools button.active { border-color:var(--board-accent); background:var(--board-accent); color:#fff; }
.huatu-board-head-actions button:disabled,.huatu-board-tools button:disabled { opacity:.3; cursor:not-allowed; }
.huatu-board-head-actions .huatu-board-close { width:34px; padding:0; font-size:20px; line-height:1; }
.huatu-board-canvas-wrap { position:relative; min-width:0; min-height:0; overflow:hidden; background:var(--board-bg); }
.huatu-board-canvas-wrap::before {
  content:''; position:absolute; inset:0; pointer-events:none; opacity:.35;
  background-image:linear-gradient(var(--board-line) 1px,transparent 1px),linear-gradient(90deg,var(--board-line) 1px,transparent 1px);
  background-size:32px 32px;
}
.huatu-classroom-board[data-theme="black"] .huatu-board-canvas-wrap::before { opacity:.16; }
.huatu-board-canvas-wrap canvas { position:absolute; inset:0; width:100%; height:100%; touch-action:none; cursor:crosshair; }
.huatu-board-empty { position:absolute; inset:0; display:grid; place-content:center; gap:7px; color:var(--board-muted); text-align:center; pointer-events:none; }
.huatu-board-empty[hidden] { display:none; }
.huatu-board-empty strong { color:var(--board-ink); font-size:20px; }
.huatu-board-empty span { font-size:11px; }
.huatu-board-tools {
  display:grid; grid-template-columns:minmax(0,1fr); grid-template-areas:"tools" "pages" "output";
  align-items:center; gap:7px 10px; min-width:0; padding:8px 12px 9px;
  overflow:hidden; border-top:1px solid var(--board-line); background:var(--board-panel);
  opacity:1; transform:translateY(0); transition:opacity .18s ease,transform .2s ease;
}
.huatu-classroom-board.controls-hidden .huatu-board-head {
  min-height:0; padding-top:0; padding-bottom:0; border-bottom-width:0; opacity:0; pointer-events:none; transform:translateY(-12px);
}
.huatu-classroom-board.controls-hidden .huatu-board-tools {
  min-height:0; padding-top:0; padding-bottom:0; border-top-width:0; opacity:0; pointer-events:none; transform:translateY(12px);
}
.huatu-board-hotzone {
  position:absolute; left:0; right:0; z-index:5; height:20px; pointer-events:none;
}
.huatu-board-hotzone--top { top:0; }
.huatu-board-hotzone--bottom { bottom:0; }
.huatu-classroom-board.controls-hidden .huatu-board-hotzone { pointer-events:auto; }
.huatu-board-reveal {
  position:absolute; right:14px; bottom:14px; z-index:6; min-width:58px; height:36px; padding:0 13px;
  border:1px solid color-mix(in srgb,var(--board-accent) 38%,var(--board-line)); border-radius:999px;
  background:color-mix(in srgb,var(--board-panel) 92%,transparent); color:var(--board-accent);
  box-shadow:0 8px 24px rgba(20,26,34,.18); font:800 11px/1 "PingFang SC","Microsoft YaHei",sans-serif; letter-spacing:.08em;
  cursor:pointer; opacity:0; pointer-events:none; transform:translateY(8px);
  transition:opacity .18s ease,transform .2s ease,background .18s ease;
  backdrop-filter:blur(12px);
}
.huatu-classroom-board.controls-hidden .huatu-board-reveal { opacity:.82; pointer-events:auto; transform:translateY(0); }
.huatu-classroom-board.controls-hidden .huatu-board-reveal:hover,
.huatu-classroom-board.controls-hidden .huatu-board-reveal:focus-visible { opacity:1; background:var(--board-panel); }
.huatu-board-toolset,.huatu-board-pagebar,.huatu-board-output { display:flex; align-items:center; gap:5px; min-width:0; }
.huatu-board-toolset { grid-area:tools; overflow-x:auto; scrollbar-width:thin; }
.huatu-board-pagebar { grid-area:pages; flex-wrap:wrap; }
.huatu-board-output { grid-area:output; justify-self:stretch; flex-wrap:wrap; overflow-x:auto; scrollbar-width:thin; }
.huatu-board-pagebar span { min-width:46px; color:var(--board-muted); font:700 11px/1 ui-monospace,SFMono-Regular,Consolas,monospace; text-align:center; }
.huatu-board-colors,.huatu-board-widths { display:flex; align-items:center; gap:4px; }
.huatu-board-colors button { width:25px; min-height:25px; padding:0; border:2px solid transparent; border-radius:50%; background:var(--swatch); box-shadow:0 0 0 1px var(--board-line); }
.huatu-board-colors button.active { border-color:var(--board-bg); box-shadow:0 0 0 2px var(--board-accent); }
.huatu-board-colors [data-board-color="ink"] { --swatch:var(--board-ink); }
.huatu-board-colors [data-board-color="red"] { --swatch:var(--board-red); }
.huatu-board-colors [data-board-color="blue"] { --swatch:var(--board-blue); }
.huatu-board-colors [data-board-color="yellow"] { --swatch:var(--board-yellow); }
.huatu-board-colors [data-board-color="green"] { --swatch:var(--board-green); }
.huatu-board-widths button { min-width:30px; padding:0 6px; }
.huatu-board-resize {
  position:absolute; right:0; bottom:0; z-index:3; width:22px; height:22px; cursor:nwse-resize;
  background:linear-gradient(135deg,transparent 52%,var(--board-accent) 53%,var(--board-accent) 60%,transparent 61%,transparent 69%,var(--board-accent) 70%,var(--board-accent) 77%,transparent 78%);
}
.huatu-classroom-board:not([data-layout="quarter"]) .huatu-board-resize { display:none; }
body.huatu-board-window { overflow:hidden!important; background:#17231f!important; }
body.huatu-board-window > :not(#huatu-classroom-board):not(script):not(style) { display:none!important; }
body.huatu-board-window #huatu-classroom-board { display:grid!important; }

/* Typed notes: a paper column with clear levels; follows the board's white / black theme. */
.huatu-classroom-board { --note-mark:#ffe58a; --note-callout:rgba(197,48,48,.08); }
.huatu-classroom-board[data-theme="black"] { --note-mark:rgba(255,209,102,.34); --note-callout:rgba(255,118,118,.12); }
.huatu-note { position:absolute; inset:0; z-index:2; display:grid; grid-template-rows:auto minmax(0,1fr); background:var(--board-bg); --note-scale:1; }
.huatu-note[hidden] { display:none; }
.huatu-note-bar { display:flex; flex-wrap:wrap; align-items:center; gap:6px 8px; padding:8px 14px; border-bottom:1px solid var(--board-line); background:var(--board-panel); }
.huatu-note-group { display:flex; align-items:center; gap:2px; padding-right:8px; border-right:1px solid var(--board-line); }
.huatu-note-group:last-child { border-right:0; padding-right:0; }
.huatu-note-bar button { min-height:30px; padding:0 9px; border:1px solid transparent; border-radius:7px; background:transparent; color:var(--board-ink); font:700 12px/1 "PingFang SC","Microsoft YaHei",sans-serif; white-space:nowrap; cursor:pointer; }
.huatu-note-bar button:hover { border-color:var(--board-line); background:var(--board-bg); color:var(--board-accent); }
.huatu-note-bar button:focus-visible { outline:2px solid var(--board-accent); outline-offset:1px; }
.huatu-note-swatch { display:inline-block; padding:1px 4px; border-radius:3px; }
.huatu-note-swatch--mark { background:var(--note-mark); color:var(--board-ink); }
.huatu-note-swatch--red { color:var(--board-red); }
.huatu-note-scroll { min-height:0; overflow:auto; overscroll-behavior:contain; scrollbar-width:thin; }
.huatu-note-paper { box-sizing:border-box; max-width:calc(780px * var(--note-scale)); margin:0 auto; padding:26px 40px 96px;
  color:var(--board-ink); font:400 calc(18px * var(--note-scale))/1.75 "HT Sans","PingFang SC","Microsoft YaHei",sans-serif; }
.huatu-note-title { display:block; width:100%; padding:0; border:0; outline:0; background:transparent; color:var(--board-ink);
  font:800 1.62em/1.3 "HT Serif","Songti SC","STSong",serif; }
.huatu-note-title::placeholder { color:var(--board-muted); }
.huatu-note-meta { margin:6px 0 20px; padding-bottom:14px; border-bottom:1px solid var(--board-line); color:var(--board-muted); font-size:.68em; letter-spacing:.05em; }
.huatu-note-doc { position:relative; min-height:45vh; outline:0; caret-color:var(--board-accent); word-break:break-word; }
.huatu-note-doc.is-empty::before { content:attr(data-placeholder); position:absolute; color:var(--board-muted); pointer-events:none; font-size:.86em; }
.huatu-note-doc > :first-child { margin-top:0; }
.huatu-note-doc h2 { margin:1.15em 0 .45em; padding-bottom:.28em; border-bottom:2px solid var(--board-accent); font:800 1.42em/1.3 "HT Serif","Songti SC","STSong",serif; }
.huatu-note-doc h3 { margin:1em 0 .4em; padding-left:.6em; border-left:4px solid var(--board-accent); font:800 1.15em/1.4 "HT Sans","PingFang SC",sans-serif; }
.huatu-note-doc p { margin:.3em 0; }
.huatu-note-doc ul,.huatu-note-doc ol { margin:.3em 0 .55em; padding-left:1.55em; }
.huatu-note-doc li { margin:.15em 0; padding-left:.15em; }
.huatu-note-doc li::marker { color:var(--board-accent); font-weight:800; }
.huatu-note-doc ul ul,.huatu-note-doc ol ul { list-style:circle; }
.huatu-note-doc ul ul ul { list-style:square; }
.huatu-note-doc ul ul,.huatu-note-doc ol ol,.huatu-note-doc ul ol,.huatu-note-doc ol ul { margin:.1em 0 .2em; font-size:.96em; }
.huatu-note-doc ul.todo { list-style:none; padding-left:.1em; }
.huatu-note-doc ul.todo > li { position:relative; padding-left:1.75em; }
.huatu-note-doc ul.todo > li::before { content:""; position:absolute; left:0; top:.38em; width:1em; height:1em; box-sizing:border-box; border:2px solid var(--board-accent); border-radius:4px; cursor:pointer; }
.huatu-note-doc ul.todo > li[data-done="1"] { color:var(--board-muted); text-decoration:line-through; }
.huatu-note-doc ul.todo > li[data-done="1"]::before { background:var(--board-accent); }
.huatu-note-doc ul.todo > li[data-done="1"]::after { content:""; position:absolute; left:.33em; top:.5em; width:.3em; height:.55em; border:solid #fff; border-width:0 2px 2px 0; transform:rotate(45deg); }
.huatu-note-doc blockquote { margin:.75em 0; padding:.6em .95em .65em 1em; border-left:4px solid var(--board-accent); border-radius:0 10px 10px 0; background:var(--note-callout); }
.huatu-note-doc blockquote::before { content:"重点"; display:block; margin-bottom:.1em; color:var(--board-accent); font-size:.66em; font-weight:800; letter-spacing:.18em; }
.huatu-note-doc mark { padding:0 .12em; border-radius:3px; background:var(--note-mark); color:inherit; }
.huatu-note-doc span.red { color:var(--board-red); font-weight:800; }
.huatu-note-doc strong,.huatu-note-doc b { font-weight:800; }
.huatu-note-doc hr { margin:1.1em 0; border:0; border-top:1px dashed var(--board-line); }
.huatu-board-notehint { display:none; color:var(--board-muted); font-size:11px; white-space:nowrap; }
.huatu-classroom-board[data-kind="note"] .huatu-board-toolset > :not(.huatu-board-notehint) { display:none; }
.huatu-classroom-board[data-kind="note"] .huatu-board-notehint { display:inline; }
.huatu-classroom-board[data-kind="note"] .huatu-board-canvas-wrap::before { display:none; }
.huatu-board-toast { position:absolute; left:50%; bottom:76px; z-index:8; max-width:80%; padding:9px 16px; border-radius:999px;
  background:rgba(20,26,34,.88); color:#fff; font:700 12px/1.4 "PingFang SC","Microsoft YaHei",sans-serif; text-align:center; opacity:0; pointer-events:none; transform:translate(-50%,8px); transition:opacity .18s ease,transform .2s ease; }
.huatu-board-toast.show { opacity:1; transform:translate(-50%,0); }
.huatu-board-output button[data-board-action="copy"],.huatu-board-output button[data-board-action="markdown"] { border-color:color-mix(in srgb,var(--board-accent) 45%,var(--board-line)); color:var(--board-accent); }

@media (max-width:900px) {
  .huatu-classroom-board[data-layout="half"] { width:calc(58vw - 8px); min-width:430px; }
  .huatu-board-head { align-items:flex-start; }
  .huatu-board-identity strong { max-width:20ch; }
}
@media (max-height:660px) {
  .huatu-board-head { padding-top:7px; padding-bottom:7px; }
  .huatu-board-tools { padding-top:6px; padding-bottom:6px; }
  .huatu-board-head-actions button,.huatu-board-tools button { min-height:28px; }
}

@keyframes huatu-tools-spin { to { transform: rotate(360deg); } }
@media (max-height: 720px) {
  .huatu-tools { bottom: 28px; }
  .huatu-tools-panel { width: 282px; }
  .huatu-tool-group { padding: 10px 0 11px; }
  .huatu-tool-button { min-height: 52px; }
  .huatu-tool-button.is-compact { min-height: 58px; }
  .huatu-tool-copy small { display: none; }
}
@media (max-width: 680px) {
  .huatu-tools { left: 10px; bottom: 18px; }
  .huatu-tools-panel { width: min(296px, calc(100vw - 20px)); }
  .huatu-presenter-guide { bottom:12px; }
  .huatu-presenter-guide li { grid-template-columns:22px 1fr; }
  .huatu-presenter-guide li span { grid-column:2; }
  .huatu-presenter-guide-actions { grid-template-columns:1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .huatu-tools,
  .huatu-tools-panel,
  .huatu-tools-trigger,
  .huatu-tool-button,
  .huatu-tools-toast { transition: none; }
}
@media print {
  .huatu-tools-toast,
  .huatu-chrome-tooltip,
  .huatu-tools,
  .huatu-tools-hotzone,
  .huatu-slide-ink,
  #huatu-laser-pointer,
  #huatu-spotlight,
  #huatu-classroom-board { display: none !important; }
  .huatu-presenter-guide { display:none !important; }
  body.huatu-print-ink .huatu-print-ink-layer {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: fill !important;
    z-index: 70 !important;
    pointer-events: none !important;
  }
}

.huatu-presenter-hint {
  position:fixed; left:50%; bottom:22px; z-index:95; display:flex; align-items:center; gap:10px;
  padding:9px 10px 9px 16px; border-radius:999px; color:#f4f6f8; font-size:14px; line-height:1.3;
  font-family:"PingFang SC","Microsoft YaHei",-apple-system,BlinkMacSystemFont,sans-serif;
  background:rgba(24,28,36,.86); box-shadow:0 10px 30px rgba(15,18,24,.25);
  opacity:0; transform:translate(-50%,10px); transition:opacity .25s ease,transform .25s ease; pointer-events:none;
}
.huatu-presenter-hint.open { opacity:1; transform:translate(-50%,0); pointer-events:auto; }
.huatu-presenter-hint kbd { padding:1px 6px; border-radius:5px; background:rgba(255,255,255,.16); font:inherit; }
.huatu-presenter-hint button { border:0; background:none; color:inherit; font-size:18px; line-height:1; cursor:pointer; opacity:.7; }
@media print { .huatu-presenter-hint { display:none !important; } }
body[data-board-open] .huatu-presenter-hint { display:none !important; }

/* ================= In-place text editing ================= */
body.huatu-text-editing [data-edit-id] { outline: 2px dashed rgba(197,48,48,.35); outline-offset: 3px; border-radius: 4px; cursor: text; transition: outline-color .15s ease, background-color .15s ease; }
body.huatu-text-editing [data-edit-id]:hover { outline-color: rgba(197,48,48,.7); background: rgba(255,244,214,.35); }
body.huatu-text-editing [data-edit-id]:focus { outline: 3px solid #c53030; background: rgba(255,244,214,.55); }
body.huatu-text-editing [data-edit-id][data-edit-overflow] { outline: 3px solid #e53e3e; background: rgba(254,215,215,.6); }
body.huatu-text-editing .huatu-tools, body.huatu-text-editing .huatu-tools-hotzone { display: none !important; }
.huatu-edit-banner {
  position: fixed; left: 50%; top: 14px; transform: translateX(-50%); z-index: 120; display: flex; align-items: center; gap: 12px;
  max-width: calc(100vw - 24px); padding: 8px 10px 8px 16px; border-radius: 14px; color: #f4f6f8;
  font: 14px/1.4 "PingFang SC","Microsoft YaHei",-apple-system,BlinkMacSystemFont,sans-serif;
  background: rgba(24,28,36,.94); box-shadow: 0 14px 40px rgba(15,18,24,.3);
}
.huatu-edit-banner[hidden] { display: none; }
.huatu-edit-banner strong { color: #ffb4b4; white-space: nowrap; }
.huatu-edit-banner span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #d6dbe3; }
.huatu-edit-banner button { flex: 0 0 auto; padding: 6px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 9px; color: inherit; background: transparent; font: "PingFang SC","Microsoft YaHei",sans-serif; cursor: pointer; }
.huatu-edit-banner button.primary { border-color: #c53030; background: #c53030; }
@media print { .huatu-edit-banner { display: none !important; } [data-edit-id] { outline: none !important; background: none !important; } }

/* Classroom writing: stable controls and progressive disclosure. */
.huatu-board-head { overflow:visible; gap:8px; }
.huatu-board-head-actions { overflow:visible; flex-shrink:0; }
.huatu-board-more, .huatu-board-output { position:relative; }
.huatu-board-more summary, .huatu-board-output summary { list-style:none; cursor:pointer; padding:9px 12px; border:1px solid var(--board-line); border-radius:8px; font-size:12px; font-weight:600; }
.huatu-board-more summary::-webkit-details-marker,.huatu-board-output summary::-webkit-details-marker { display:none; }
.huatu-board-more-menu,.huatu-board-output-menu { position:absolute; right:0; z-index:12; display:grid; gap:6px; padding:10px; width:220px; border:1px solid var(--board-line); border-radius:12px; background:var(--board-panel); box-shadow:0 10px 30px #0003; }
.huatu-board-more-menu { top:calc(100% + 8px); }
.huatu-board-output-menu { bottom:calc(100% + 8px); grid-template-columns:1fr 1fr; }
.huatu-board-tools { grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"tools tools" "pages output"; overflow:visible; }
.huatu-board-output { display:block; overflow:visible; justify-self:end; }
.huatu-classroom-board[data-kind="note"] .huatu-board-toolset { display:none; }
.huatu-note-paper { padding:22px 28px 64px; font-size:calc(17px * var(--note-scale)); }
.huatu-note-title { font-size:1.35em; }
.huatu-note-meta { margin:6px 0 14px; font-size:.72em; }
.huatu-note-doc h2 { font-size:1.2em; }
.huatu-note-doc h3 { font-size:1.08em; }
.huatu-board-directory { position:absolute; inset:0 auto 0 0; z-index:15; width:min(360px,100%); background:var(--board-panel); color:var(--board-ink); padding:16px; box-shadow:12px 0 40px #0003; display:grid; grid-template-rows:auto auto minmax(0,1fr); gap:12px; }
.huatu-board-directory[hidden] { display:none; }
.huatu-board-directory header { display:flex; align-items:center; justify-content:space-between; }
.huatu-board-directory button,.huatu-board-directory input { background:var(--board-bg); color:var(--board-ink); border:1px solid var(--board-line); border-radius:8px; padding:10px; font:inherit; }
.huatu-board-directory-list { overflow:auto; display:flex; flex-direction:column; gap:8px; }
.huatu-board-directory-list button { display:grid; gap:6px; text-align:left; cursor:pointer; }
.huatu-board-directory-list button.active { border-color:var(--board-accent); }
.huatu-board-directory-list small { color:var(--board-muted); }
@media(max-width:700px) {
 .huatu-board-head { flex-wrap:wrap; }
 .huatu-board-head-actions { flex-wrap:wrap; }
 .huatu-classroom-board[data-layout="half"] { min-width:0; width:calc(100vw - 20px); }
 .huatu-board-tools { grid-template-columns:minmax(0,1fr); grid-template-areas:"tools" "pages" "output"; }
 .huatu-board-output { justify-self:start; }
 .huatu-note-paper { padding:16px 18px 48px; }
}
.huatu-board-save { display:flex; flex-wrap:wrap; align-items:center; gap:4px; letter-spacing:0!important; }
.huatu-board-save small { color:var(--board-muted); font-size:10px; }
.huatu-board-save button { padding:3px 5px; background:transparent; border:1px solid var(--board-line); border-radius:5px; color:var(--board-ink); font:10px "PingFang SC","Microsoft YaHei",sans-serif; cursor:pointer; }
.huatu-board-save [hidden] { display:none; }
.huatu-board-head:has(.huatu-board-save) { align-items:flex-start; }
/* Deck typography must not override the note editor. */
#huatu-classroom-board .huatu-note-doc h2 { font-size:1.2em!important; line-height:1.35!important; }
#huatu-classroom-board .huatu-note-doc h3 { font-size:1.08em!important; line-height:1.45!important; }
#huatu-classroom-board .huatu-note-doc p,#huatu-classroom-board .huatu-note-doc li { font-size:1em!important; line-height:1.75!important; }
body[data-board-open] > .huatu-hub-launcher { top:auto; bottom:18px; left:86px; right:auto; padding:8px 12px; }
.huatu-board-head,.huatu-board-tools { position:relative; z-index:5; }
/* Board and toolbox share one classroom window language. */
.huatu-classroom-board { --board-bg:#fffdf9; --board-panel:#faf9f6; --board-line:#e8e6e1; container-type:inline-size; container-name:classroom-board; border-color:#dddcd7; border-radius:16px; box-shadow:0 24px 80px #17201b26; }
.huatu-board-head,.huatu-board-head:has(.huatu-board-save) { height:54px; box-sizing:border-box; padding:8px 12px; align-items:center; flex-wrap:nowrap; gap:10px; }
.huatu-board-identity { flex:1; gap:3px; }
.huatu-board-identity > span { font-size:13px; font-weight:650; letter-spacing:.02em; color:var(--board-ink); white-space:nowrap; }
.huatu-board-identity > strong { display:none; }
.huatu-board-save { flex-wrap:nowrap; }
.huatu-board-save small { font-size:10px; font-weight:400; letter-spacing:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.huatu-board-save button { font-size:10px; }
.huatu-board-head-actions { gap:8px; flex-wrap:nowrap; }
.huatu-board-modes,.huatu-board-layouts { display:flex; align-items:center; padding:3px; gap:2px; background:color-mix(in srgb,var(--board-panel) 90%,var(--board-ink) 6%); border-radius:10px; }
.huatu-board-head-actions button { min-height:30px; height:30px; padding:0 10px; border:0; border-radius:7px; font-size:12px; font-weight:550; }
.huatu-board-head-actions button.active { background:var(--board-bg); color:var(--board-accent); box-shadow:0 1px 4px #20202014; }
.huatu-board-head-actions .huatu-board-icon { width:30px; min-width:30px; padding:6px; display:inline-flex; align-items:center; justify-content:center; }
.huatu-board-icon svg { width:17px; height:17px; }
.huatu-board-more summary { height:30px; box-sizing:border-box; padding:7px 8px; border:0; background:transparent; font-size:12px; }
.huatu-board-more-menu { width:220px; box-sizing:border-box; background:var(--board-bg); }
.huatu-board-more-menu button { width:100%; text-align:left; }
.huatu-board-shortcuts { margin:4px 0!important; padding:10px 8px; border-top:1px solid var(--board-line); color:var(--board-muted); font-size:11px!important; line-height:1.8!important; font-weight:400; }
.huatu-note-bar { padding:7px 12px; gap:4px; background:var(--board-bg); }
.huatu-note-bar button { min-height:28px; padding:0 7px; font-size:12px; font-weight:500; }
.huatu-note-group { gap:0; padding-right:6px; }
.huatu-note-options { position:relative; margin-left:auto; }
.huatu-note-options summary { list-style:none; padding:7px; border-radius:7px; font-size:12px; cursor:pointer; }
.huatu-note-options summary::-webkit-details-marker,.huatu-board-new summary::-webkit-details-marker { display:none; }
.huatu-note-options-menu { position:absolute; right:0; top:calc(100% + 8px); width:240px; padding:12px; display:grid; gap:8px; z-index:10; background:var(--board-bg); border:1px solid var(--board-line); border-radius:12px; box-shadow:0 12px 35px #17201b26; }
.huatu-note-options-menu .huatu-note-group { border:0; flex-wrap:wrap; }
.huatu-note-paper { max-width:760px; padding:28px 32px 64px; }
.huatu-note-title { font-family:'PingFang SC','Microsoft YaHei',sans-serif; font-size:1.45em; line-height:1.4; font-weight:650; }
.huatu-note-meta { font-size:11px; margin:7px 0 24px; padding:0; border:0; letter-spacing:0; }
.huatu-note-doc.is-empty::before { font-size:15px; font-weight:400; }
.huatu-board-tools { padding:8px 12px; gap:7px; }
.huatu-classroom-board[data-kind="note"] .huatu-board-tools { grid-template-areas:'pages output'; }
.huatu-board-pagebar { gap:4px; flex-wrap:nowrap; }
.huatu-board-tools button,.huatu-board-output summary,.huatu-board-new summary { min-height:30px; box-sizing:border-box; padding:7px 9px; font-size:12px; font-weight:500; border-color:transparent; border-radius:7px; background:transparent; }
.huatu-board-pagebar > button[data-board-action='prev'],.huatu-board-pagebar > button[data-board-action='next'] { width:28px; padding:0; font-size:20px; }
.huatu-board-new { position:relative; }
.huatu-board-new summary { list-style:none; cursor:pointer; color:var(--board-accent); }
.huatu-board-new-menu { position:absolute; bottom:calc(100% + 10px); right:0; width:150px; padding:8px; background:var(--board-bg); border:1px solid var(--board-line); border-radius:12px; box-shadow:0 12px 35px #17201b26; z-index:12; display:grid; }
.huatu-board-output-menu button { border:1px solid var(--board-line); }
.huatu-classroom-board summary:focus-visible { outline:2px solid var(--board-accent); outline-offset:2px; }
@container classroom-board (max-width:560px) {
 .huatu-board-head,.huatu-board-head:has(.huatu-board-save) { padding:8px; gap:5px; }
 .huatu-board-head-actions { gap:4px; }
 .huatu-board-head-actions button { padding:0 7px; }
 .huatu-board-head-actions .huatu-board-icon { width:28px; min-width:28px; }
 .huatu-board-identity > span { font-size:12px; }
 .huatu-board-tools { padding:7px 8px; grid-template-columns:minmax(0,1fr) auto; grid-template-areas:'tools tools' 'pages output'; }
 .huatu-note-paper { padding:22px 22px 48px; }
 .huatu-note-bar { padding:6px 8px; }
}
@container classroom-board (max-width:400px) {
 .huatu-board-identity > span { font-size:11px; }
 .huatu-board-head-actions { gap:2px; }
 .huatu-board-modes,.huatu-board-layouts { padding:2px; }
 .huatu-board-head-actions button { padding:0 5px; font-size:11px; }
 .huatu-board-more summary { padding:7px 4px; font-size:11px; }
 .huatu-note-paper { padding:18px 18px 40px; }
 .huatu-note-bar button { padding:0 5px; font-size:11px; }
 .huatu-note-group { padding-right:3px; }
}
.huatu-board-save small { font-size:11px; }
.huatu-note-blocks { position:relative; }
.huatu-note-blocks > summary { display:none; }
.huatu-note-blocks:not([open]) > .huatu-note-blocks-menu,.huatu-note-blocks-menu { display:flex; }
@container classroom-board (max-width:640px) {
 .huatu-note-bar { flex-wrap:nowrap; gap:3px; }
 .huatu-note-blocks > summary { display:block; list-style:none; padding:7px; font-size:12px; cursor:pointer; border:1px solid var(--board-line); border-radius:7px; }
 .huatu-note-blocks > summary::-webkit-details-marker { display:none; }
 .huatu-note-blocks:not([open]) > .huatu-note-blocks-menu { display:none; }
 .huatu-note-blocks-menu { position:absolute; left:0; top:calc(100% + 8px); width:210px; padding:10px; display:grid; gap:7px; z-index:10; background:var(--board-bg); border:1px solid var(--board-line); border-radius:12px; box-shadow:0 12px 35px #17201b26; }
 .huatu-note-blocks-menu .huatu-note-group { flex-wrap:wrap; border:0; }
 .huatu-note-options summary { padding:7px 5px; font-size:11px; }
}
.huatu-board-head-actions button.active svg { color:var(--board-accent); stroke:var(--board-accent); }

/* Hints are mounted outside panels so narrow chrome never clips them. */
.huatu-chrome-tooltip{position:fixed;z-index:2147483647;max-width:min(300px,calc(100vw - 16px));padding:7px 10px;border-radius:7px;background:#26303b;color:#fff;font:500 12px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;box-shadow:0 3px 12px #0002;pointer-events:none;white-space:normal}
.huatu-chrome-tooltip[hidden]{display:none}

/* Ephemeral laser trail is separate from printable annotation ink. */
#huatu-laser-tail { position:fixed; inset:0; width:100vw; height:100vh; z-index:74; pointer-events:none; }
.huatu-laser-settings { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:10px; color:var(--huatu-tools-muted); font:12px/1.4 "PingFang SC",sans-serif; }
.huatu-laser-settings > div { display:flex; padding:3px; border:1px solid var(--huatu-tools-line); border-radius:9px; background:rgba(32,36,45,.035); }
.huatu-laser-settings button { border:0; border-radius:6px; padding:5px 12px; background:transparent; color:inherit; font:inherit; cursor:pointer; }
.huatu-laser-settings button[aria-pressed="true"] { background:#c53030; color:#fff; }
.huatu-laser-settings button:focus-visible { outline:2px solid var(--huatu-tools-red); outline-offset:2px; }
.huatu-laser-settings small { font-size:10px; color:var(--huatu-tools-muted); }
@media print { #huatu-laser-tail { display:none !important; } }

#huatu-laser-tail.active { pointer-events:auto; touch-action:none; user-select:none; cursor:crosshair; }

/* Classroom clock uses screen pixels rather than the slide's projected scale. */
#huatu-classroom-timer,#huatu-classroom-timer-mini{box-sizing:border-box;font:14px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif!important;letter-spacing:normal;color:#f5f7f6}
#huatu-classroom-timer[hidden],#huatu-classroom-timer-mini[hidden]{display:none!important}
#huatu-classroom-timer{position:fixed;inset:0;z-index:2147483600;background:radial-gradient(ellipse at 50% 30%,#183c36,#0c1717 75%);display:flex;flex-direction:column;padding:24px 32px;overflow:auto;overscroll-behavior:contain;touch-action:pan-y}
#huatu-classroom-timer *,#huatu-classroom-timer-mini *{box-sizing:border-box}
#huatu-classroom-timer header{display:flex;justify-content:space-between;align-items:center;gap:12px}
#huatu-classroom-timer header strong{font-size:16px;letter-spacing:.08em;color:#b5cbc5}
#huatu-classroom-timer button,#huatu-classroom-timer-mini button{font:inherit!important;line-height:1.4!important;border:1px solid #ffffff24;border-radius:12px;background:#ffffff0c;color:inherit;padding:10px 18px;cursor:pointer;min-height:42px;white-space:nowrap}
#huatu-classroom-timer button:hover,#huatu-classroom-timer-mini button:hover{background:#ffffff1b}
#huatu-classroom-timer button:focus-visible,#huatu-classroom-timer input:focus-visible,#huatu-classroom-timer-mini button:focus-visible{outline:3px solid #e4c16b;outline-offset:3px}
#huatu-classroom-timer button[aria-pressed="true"]{background:#e3f2ec;color:#173e33;border-color:#e3f2ec}
.huatu-clock-content{width:min(780px,100%);margin:auto;display:flex;flex-direction:column;align-items:center;gap:18px;padding:24px 0}
.huatu-clock-modes{display:flex;gap:6px;padding:5px;background:#ffffff08;border:1px solid #ffffff14;border-radius:17px}
#huatu-classroom-timer .huatu-clock-title{font:inherit!important;text-align:center;width:min(420px,100%);background:transparent;border:0;border-bottom:1px solid #ffffff15;color:#d4e0dc;padding:8px;outline-offset:2px;font-size:18px!important}
.huatu-clock-title::placeholder{color:#819891}
#huatu-classroom-timer .huatu-clock-time{font:600 clamp(76px,17vw,210px)/1.05 -apple-system,BlinkMacSystemFont,sans-serif!important;font-variant-numeric:tabular-nums;letter-spacing:-.045em;white-space:nowrap;color:#f6faf8;text-shadow:0 4px 40px #0002}
.huatu-clock-status{color:#a9c5ba;letter-spacing:.15em;font-size:16px}
.huatu-clock-presets{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}
.huatu-clock-custom{display:flex;justify-content:center;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px;color:#9eb7ad;font-size:13px}
#huatu-classroom-timer input[type="number"]{font:inherit!important;width:70px;text-align:center;border:1px solid #ffffff30;border-radius:8px;background:#ffffff08;color:white;padding:8px;margin:0 6px}
.huatu-clock-custom [data-clock-error]{color:#ffd4aa;width:100%;text-align:center}
.huatu-clock-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}
#huatu-classroom-timer .is-primary{background:#e2f1ea;color:#174537;border-color:transparent;min-width:145px;font-weight:600!important}
.huatu-clock-sound{display:flex;align-items:center;gap:8px;color:#91a99e;font-size:13px}
.huatu-clock-sound input{accent-color:#cde9db}
.huatu-clock-confirm{padding:16px;border:1px solid #e8ce8b66;border-radius:14px;background:#342e1f;display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:center;color:#fff0c6}
.huatu-clock-confirm[hidden]{display:none!important}
#huatu-classroom-timer footer{text-align:center;color:#68847a;font-size:12px;padding-top:12px}
#huatu-classroom-timer .huatu-clock-chrome{transition:opacity .25s ease}
#huatu-classroom-timer.is-idle .huatu-clock-chrome{opacity:0}
#huatu-classroom-timer-mini{position:fixed;right:22px;bottom:22px;z-index:2147483600;display:flex;align-items:stretch;background:#172c27;box-shadow:0 8px 32px #0003;border:1px solid #ffffff25;border-radius:16px;overflow:hidden}
#huatu-classroom-timer-mini button{border:0;border-radius:0;background:transparent;padding:10px 16px}
#huatu-classroom-timer-mini [data-clock-action="expand"]{display:flex;align-items:center;gap:12px}
#huatu-classroom-timer-mini [data-clock-mini-status]{color:#aac5b8;font-size:12px}
#huatu-classroom-timer-mini strong{font-size:26px;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:-.025em}
#huatu-classroom-timer-mini [data-clock-action="dismiss"]{border-left:1px solid #ffffff16;color:#a8bfb4;font-size:22px!important}
@media(max-width:600px){#huatu-classroom-timer{padding:16px}.huatu-clock-content{gap:14px;padding:20px 0}#huatu-classroom-timer button{padding:9px 12px}.huatu-clock-presets{gap:6px}#huatu-classroom-timer-mini{right:12px;bottom:12px}.huatu-clock-confirm{font-size:13px}}
@media(prefers-reduced-motion:reduce){#huatu-classroom-timer .huatu-clock-chrome{transition:none}}
@media print{#huatu-classroom-timer,#huatu-classroom-timer-mini{display:none!important}}
#huatu-classroom-timer.is-idle .huatu-clock-title{border-color:transparent}
#huatu-classroom-timer.is-idle .huatu-clock-title::placeholder{color:transparent}
#huatu-classroom-timer.is-idle .huatu-clock-title{border-color:transparent}
#huatu-classroom-timer.is-idle .huatu-clock-title::placeholder{color:transparent}
#huatu-classroom-timer{background:radial-gradient(ellipse at 50% 30%,#343230,#171819 75%)}
#huatu-classroom-timer header strong,.huatu-clock-status{color:#c7c2b8}
#huatu-classroom-timer button[aria-pressed="true"]{background:#f4f1eb;color:#292b30;border-color:#f4f1eb}
#huatu-classroom-timer .is-primary{background:#c53030;color:#fff}
#huatu-classroom-timer-mini{max-width:calc(100vw - 16px);flex-wrap:wrap;background:#f7f5f0;color:#292d34;border:1px solid #dcd9d2;box-shadow:0 6px 24px #1c20251c;border-radius:14px;user-select:none}
#huatu-classroom-timer-mini button{color:#34383f;padding:9px 12px;min-height:42px}
#huatu-classroom-timer-mini button:hover{background:#ece9e2}
#huatu-classroom-timer-mini [data-clock-drag]{cursor:grab;color:#92908b;touch-action:none;padding:9px 8px}
#huatu-classroom-timer-mini [data-clock-drag]:active{cursor:grabbing}
#huatu-classroom-timer-mini [data-clock-mini-status]{color:#74746f}
#huatu-classroom-timer-mini [data-clock-action="expand"]{gap:8px;padding:9px 8px}
#huatu-classroom-timer-mini strong{font-size:24px;color:#292d34}
#huatu-classroom-timer-mini [data-clock-action="mini-start"]{color:#b72c2c;font-weight:600!important}
#huatu-classroom-timer-mini [data-clock-action="dismiss"]{color:#777973;border-left:1px solid #dedbd5;padding:9px 10px}
#huatu-classroom-timer-mini [data-clock-mini-confirm]{width:100%;border-top:1px solid #dedbd5;padding:8px 12px;display:flex;align-items:center;gap:8px;color:#605b53;font-size:12px}
#huatu-classroom-timer-mini [data-clock-mini-confirm][hidden]{display:none!important}
#huatu-classroom-timer-mini [data-clock-mini-confirm] span{margin-right:auto}
#huatu-classroom-timer-mini [data-clock-mini-confirm] button{min-height:32px;padding:5px 10px;border:1px solid #ddd8d0;border-radius:8px}
#huatu-classroom-timer-mini [data-clock-action="mini-confirm"]{background:#c53030;color:white;border-color:#c53030!important}
@media(max-width:420px){#huatu-classroom-timer-mini [data-clock-mini-status]{display:none}#huatu-classroom-timer-mini button{padding:8px 10px}#huatu-classroom-timer-mini strong{font-size:23px}}
/* Classroom launchers are destinations, not selected tools. */
.huatu-classroom-launchers .huatu-tool-button{background:#fff;border:1px solid #e6e7e9;border-radius:13px;min-height:58px;box-shadow:0 2px 7px #20242d03}
.huatu-classroom-launchers .huatu-tool-icon{background:#f5f5f3;color:#424954;box-shadow:none;border:1px solid #e8e8e3;border-radius:10px}
.huatu-classroom-launchers .huatu-tool-copy strong{font-size:13px}
.huatu-classroom-launchers .huatu-tool-copy small{font-size:10px;color:#737984}
.huatu-classroom-launchers .huatu-tool-button:hover{background:#fafaf8;border-color:#cfd1d5;box-shadow:0 4px 12px #20242d08}
/* Cohesive presenter chrome, refined from the classroom concept study. */
.huatu-tools-panel{background:#fff;border:1px solid #e4e6ea;border-radius:16px;box-shadow:0 12px 40px #252a3021;backdrop-filter:none}
.huatu-tools-header{background:#f5f6f8;min-height:56px;padding:10px 14px;border-color:#e4e6ea}
.huatu-tools-header strong{font-size:16px;letter-spacing:0}
.huatu-tools-scroll{max-height:calc(min(810px,100vh - 90px) - 102px);padding:0 14px 10px}
.huatu-tool-group{padding:12px 0;border-color:#e9eaed}
.huatu-tool-group-heading span{letter-spacing:0;font-size:12px}
.huatu-tool-group[aria-labelledby="huatu-group-present"]>.huatu-tool-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.huatu-tool-group[aria-labelledby="huatu-group-present"] .huatu-tool-grid .huatu-tool-button{display:flex;flex-direction:column;justify-content:center;gap:5px;min-height:70px;padding:8px 2px;text-align:center;border:1px solid #e3e5e8;background:#fff}
.huatu-tool-group[aria-labelledby="huatu-group-present"] .huatu-tool-grid .huatu-tool-copy strong{font-size:11px;overflow:visible}
.huatu-tool-group[aria-labelledby="huatu-group-present"] .huatu-tool-grid small,.huatu-tool-group[aria-labelledby="huatu-group-present"] .huatu-tool-grid kbd{display:none}
.huatu-tool-group[aria-labelledby="huatu-group-present"] .huatu-tool-icon{background:transparent;box-shadow:none;width:28px;height:28px}
.huatu-tool-group[aria-labelledby="huatu-group-present"] .huatu-tool-button.active{background:#fbefee;border-color:#e6aaa7;color:#b52b2b}
.huatu-tool-group[aria-labelledby="huatu-group-present"] .huatu-tool-button.active .huatu-tool-icon{color:#b52b2b}
.huatu-tool-button.is-ink-clear{min-height:30px;margin-top:5px;padding:4px 6px;background:transparent;border:0;grid-template-columns:18px 1fr auto;width:100%}
.is-ink-clear .huatu-tool-icon{width:18px;height:18px;background:transparent;box-shadow:none}
.is-ink-clear .huatu-tool-icon svg{width:14px;height:14px}
.is-ink-clear .huatu-tool-copy strong{font-size:10px;font-weight:500}
.huatu-classroom-launchers .huatu-tool-button{background:#fff;border-color:#e4e6ea;border-radius:10px;min-height:58px}
.huatu-classroom-launchers .huatu-tool-icon{background:#f3f4f6;border-color:transparent}
.huatu-tools-footer{background:#f5f6f8;border-color:#e4e6ea}
@media(prefers-reduced-motion:reduce){.huatu-tools,.huatu-tools-panel,.huatu-tool-button,.huatu-tools-trigger{transition:none}}
/* Classroom writing surfaces: calm chrome, legible content, consistent groups. */
.huatu-classroom-board { --board-bg:#fff; --board-panel:#f5f6f8; --board-ink:#292d34; --board-muted:#707781; --board-line:#e4e6ea; border-color:#dfe2e7; box-shadow:0 18px 60px #292d3426; }
.huatu-classroom-board[data-theme='black'] { --board-bg:#17231f; --board-panel:#1d2924; --board-ink:#f7f3e8; --board-muted:#b2bcb5; --board-line:#35473f; }
.huatu-board-head { background:var(--board-panel); }
.huatu-board-modes,.huatu-board-layouts { background:transparent; padding:2px; border:1px solid var(--board-line); border-radius:8px; }
.huatu-board-head-actions .huatu-board-modes button { padding:0 12px; }
.huatu-board-head-actions .huatu-board-modes button.active { background:color-mix(in srgb,var(--board-accent) 7%,var(--board-bg)); box-shadow:none; color:var(--board-accent); }
.huatu-board-head-actions .huatu-board-layouts button.active { background:var(--board-bg); color:var(--board-ink); box-shadow:0 1px 3px #292d3412; }
.huatu-board-head-actions .huatu-board-layouts button.active svg { color:var(--board-ink); stroke:var(--board-ink); }
.huatu-board-head-actions button:hover,.huatu-board-more summary:hover { background:color-mix(in srgb,var(--board-ink) 5%,var(--board-panel)); color:var(--board-ink); }
.huatu-note-bar { background:var(--board-panel); gap:5px; }
.huatu-note-bar button { font-weight:500; border-radius:6px; }
.huatu-note-bar button:hover,.huatu-note-options summary:hover,.huatu-note-blocks summary:hover { background:var(--board-bg); color:var(--board-ink); border-color:var(--board-line); }
.huatu-note-swatch--mark { padding:2px 5px; }
.huatu-note-paper { padding-top:30px; }
.huatu-note-meta { color:var(--board-muted); line-height:1.6; }
.huatu-note-doc.is-empty::before { color:var(--board-muted); }
.huatu-board-tools { background:var(--board-panel); padding:9px 12px; gap:8px; }
.huatu-board-pagebar { gap:5px; }
.huatu-board-pagebar > [data-board-action='directory'],.huatu-board-new summary,.huatu-board-output summary { border:1px solid var(--board-line); background:var(--board-bg); padding:7px 11px; color:var(--board-ink); border-radius:8px; font-size:12px; }
.huatu-board-new { margin-left:auto; }
.huatu-board-pagebar > [data-board-action='directory'] { margin-right:6px; }
.huatu-board-pagebar span { color:var(--board-ink); font-weight:500; }
.huatu-board-tools button:hover,.huatu-board-new summary:hover,.huatu-board-output summary:hover { border-color:color-mix(in srgb,var(--board-ink) 25%,var(--board-line)); background:var(--board-bg); color:var(--board-ink); }
.huatu-board-toolset { gap:6px; padding-bottom:7px; margin-bottom:2px; border-bottom:1px solid var(--board-line); }
.huatu-board-toolset > button { border:1px solid transparent; padding:6px 9px; }
.huatu-board-toolset > button.active { color:var(--board-accent); border-color:color-mix(in srgb,var(--board-accent) 25%,var(--board-line)); background:color-mix(in srgb,var(--board-accent) 6%,var(--board-bg)); }
.huatu-board-colors,.huatu-board-widths { padding:0 7px; border-left:1px solid var(--board-line); }
.huatu-board-more-menu,.huatu-board-output-menu,.huatu-board-new-menu,.huatu-note-options-menu,.huatu-note-blocks-menu { border-color:var(--board-line); box-shadow:0 12px 32px #292d341f; }
@container classroom-board (max-width:560px) {
 .huatu-board-head-actions .huatu-board-modes button { padding:0 8px; }
 .huatu-board-tools { padding:8px; gap:7px; }
 .huatu-board-pagebar { gap:3px; }
 .huatu-board-pagebar > [data-board-action='directory'],.huatu-board-new summary,.huatu-board-output summary { padding:7px 8px; }
 .huatu-note-bar { gap:3px; }
 .huatu-note-paper { padding-top:24px; }
}
@container classroom-board (max-width:400px) {
 .huatu-board-head-actions .huatu-board-modes button { padding:0 5px; }
 .huatu-note-bar button,.huatu-note-options summary { font-size:12px; }
 .huatu-note-options summary { padding-left:3px; padding-right:3px; }
 .huatu-board-pagebar > [data-board-action='directory'] { margin-right:2px; }
}

.huatu-classroom-launchers .huatu-tool-output{gap:0}
.huatu-classroom-launchers .huatu-tool-button{border:0;border-radius:8px;box-shadow:none;background:transparent;min-height:62px;padding:9px 7px}
.huatu-classroom-launchers .huatu-tool-button+.huatu-tool-button{border-top:1px solid #eceef0;border-radius:0}
.huatu-classroom-launchers .huatu-tool-button:hover{background:#f5f6f8;box-shadow:none;transform:none}
.huatu-classroom-launchers .huatu-tool-copy strong{font-size:13px}
.huatu-console-disclosure>summary{list-style:none;cursor:pointer;padding:3px 0}
.huatu-console-disclosure>summary::-webkit-details-marker{display:none}
.huatu-console-disclosure>summary .huatu-tool-group-heading{margin-bottom:0}
.huatu-console-disclosure>summary small{display:none}
.huatu-console-disclosure>summary .huatu-tool-group-heading:after{content:'›';font-size:18px;color:#7d838d}
.huatu-console-disclosure[open]>summary .huatu-tool-group-heading:after{content:'⌄'}
.huatu-console-disclosure[open]>summary{margin-bottom:10px}
.huatu-console-disclosure>summary:focus-visible{outline:2px solid #c5303055;outline-offset:4px;border-radius:5px}
.huatu-tools-panel .huatu-tool-group{padding:10px 0}
.huatu-classroom-launchers .huatu-tool-button{min-height:54px}
.huatu-tool-group[aria-labelledby="huatu-group-present"] .huatu-tool-grid .huatu-tool-button{min-height:64px}
.huatu-tools-panel .huatu-laser-settings [aria-pressed="true"]{background:#fff;color:#292d34;border-color:#d8dce2;box-shadow:0 1px 3px #20242d0a}

/* Compact settings for the active presentation annotation tool. */
.huatu-annotation-settings{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;color:var(--huatu-tools-muted);font:12px/1.4 "PingFang SC",sans-serif}
.huatu-annotation-settings[hidden]{display:none}
.huatu-annotation-settings>div{display:flex;gap:2px;padding:3px;border:1px solid var(--huatu-tools-line);border-radius:9px;background:#f4f5f7}
.huatu-annotation-settings button{min-width:38px;padding:5px 10px;border:1px solid transparent;border-radius:6px;background:transparent;color:#626975;font:inherit;cursor:pointer}
.huatu-annotation-settings button[aria-pressed="true"]{background:#fff;border-color:#d8dce2;color:#292d34;box-shadow:0 1px 3px #20242d0a}
.huatu-annotation-settings button:focus-visible{outline:2px solid var(--huatu-tools-red);outline-offset:2px}

.huatu-laser-settings[hidden]{display:none}
/* Active annotation tools must remain unmistakable, including without colour. */
.huatu-tools-panel .huatu-tool-group[aria-labelledby="huatu-group-present"] .huatu-tool-button.active{border:2px solid #c53030;background:#fff0ef;color:#a72323;box-shadow:0 0 0 2px #c530300b}
.huatu-tools-panel .huatu-tool-group[aria-labelledby="huatu-group-present"] .huatu-tool-button.active::after{content:'✓';position:absolute;top:3px;right:4px;width:14px;height:14px;display:grid;place-items:center;border-radius:50%;background:#c53030;color:white;font:bold 10px/1 system-ui}
.huatu-tools-panel .huatu-tool-group[aria-labelledby="huatu-group-present"] .huatu-tool-button.active .huatu-tool-icon{background:#c53030;color:white;border-radius:7px}
.huatu-tools-panel .huatu-tool-button.active .huatu-tool-copy strong{font-weight:750}
.huatu-tools-panel .huatu-annotation-settings [aria-pressed="true"],.huatu-tools-panel .huatu-laser-settings [aria-pressed="true"]{background:#fff;color:#20242d;border-color:#8b929d;box-shadow:0 0 0 1px #8b929d33;font-weight:700}

/* Modern writing workspace: shared console chrome with a quiet, readable document. */
.huatu-classroom-board { border-radius:14px; --board-panel:#f5f6f8; }
.huatu-board-head,.huatu-board-head:has(.huatu-board-save) { height:56px; padding:9px 14px; }
.huatu-board-identity > span { font-size:14px; letter-spacing:0; font-weight:650; }
.huatu-board-save small { font-size:11px; font-variant-numeric:tabular-nums; }
.huatu-board-modes,.huatu-board-layouts { background:color-mix(in srgb,var(--board-ink) 4%,var(--board-bg)); border:0; padding:3px; gap:2px; }
.huatu-board-head-actions .huatu-board-modes button.active { background:var(--board-bg); color:var(--board-accent); box-shadow:0 1px 3px #20242d12; }
.huatu-board-head-actions .huatu-board-layouts button.active { box-shadow:0 1px 3px #20242d12; }
.huatu-note-bar { background:var(--board-bg); padding:8px 14px; border-bottom-color:var(--board-line); }
.huatu-note-bar button { height:30px; min-height:30px; color:var(--board-muted); }
.huatu-note-bar button:hover { color:var(--board-ink); background:var(--board-panel); border-color:transparent; }
.huatu-note-bar button:focus-visible { color:var(--board-ink); outline:2px solid var(--board-accent); outline-offset:1px; }
.huatu-note-scroll { scrollbar-color:color-mix(in srgb,var(--board-muted) 30%,transparent) transparent; }
.huatu-note-paper { max-width:800px; padding:36px 40px 80px; font-family:-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif; line-height:1.85; }
.huatu-note-title { font-family:inherit; font-size:1.6em; font-weight:700; line-height:1.35; letter-spacing:-.025em; padding-bottom:3px; }
.huatu-note-title:focus { box-shadow:0 2px 0 color-mix(in srgb,var(--board-accent) 35%,transparent); }
.huatu-note-meta { margin:9px 0 28px; font-size:11px; line-height:1.6; }
.huatu-note-doc { line-height:1.85; }
.huatu-note-doc h2 { font-family:inherit; font-size:1.3em; font-weight:700; line-height:1.5; padding-bottom:0; border-bottom:0; margin:1.2em 0 .45em; }
.huatu-note-doc h3 { font-family:inherit; font-weight:650; font-size:1.08em; border-left-width:3px; padding-left:.6em; }
.huatu-note-doc blockquote { border-left-width:3px; border-radius:0 8px 8px 0; padding:.65em 1em; }
.huatu-note-doc blockquote::before { letter-spacing:.05em; font-weight:650; }
.huatu-board-tools { background:var(--board-panel); padding:9px 14px; }
.huatu-board-pagebar > [data-board-action='directory'],.huatu-board-new summary,.huatu-board-output summary { border-color:transparent; background:transparent; }
.huatu-board-pagebar > [data-board-action='directory']:hover,.huatu-board-new summary:hover,.huatu-board-output summary:hover { background:var(--board-bg); border-color:var(--board-line); }
.huatu-board-new summary { color:var(--board-accent); font-weight:600; }
@container classroom-board (max-width:560px) {
 .huatu-board-head,.huatu-board-head:has(.huatu-board-save) { padding:8px; }
 .huatu-board-identity > span { font-size:12px; }
 .huatu-note-bar { padding:7px 8px; }
 .huatu-note-paper { padding:24px 22px 56px; }
 .huatu-note-title { font-size:1.45em; }
 .huatu-board-tools { padding:8px; }
}
@container classroom-board (max-width:400px) {
 .huatu-board-identity > span { font-size:11px; }
 .huatu-note-paper { padding:20px 18px 48px; }
 .huatu-note-meta { margin-bottom:22px; }
}

/* Board controls: actual ink colours and one coherent writing-mode switch. */
.huatu-classroom-board .huatu-board-head-actions .huatu-board-modes { background:#e9ecf0; padding:4px; border-radius:10px; gap:2px; }
.huatu-classroom-board .huatu-board-modes button { height:32px; min-height:32px; min-width:48px; border:0; border-radius:7px; background:transparent; padding:0 12px; }
.huatu-classroom-board .huatu-board-modes button.active { background:var(--board-bg); color:var(--board-accent); box-shadow:0 1px 4px #20242d18; font-weight:700; }
.huatu-classroom-board .huatu-board-tools .huatu-board-colors { gap:10px; padding:0 12px; }
.huatu-classroom-board .huatu-board-tools .huatu-board-colors button,
.huatu-classroom-board .huatu-board-tools .huatu-board-colors button.active,
.huatu-classroom-board .huatu-board-tools .huatu-board-colors button:hover { flex:0 0 28px; width:28px; height:28px; min-height:28px; padding:0; border:3px solid var(--board-panel); border-radius:50%; background:var(--swatch); box-shadow:0 0 0 1px var(--board-line); }
.huatu-classroom-board .huatu-board-tools .huatu-board-colors button.active { box-shadow:0 0 0 2px var(--board-accent); }
.huatu-classroom-board .huatu-board-tools .huatu-board-colors button:focus-visible { outline:2px solid var(--board-ink); outline-offset:4px; }
.huatu-classroom-board .huatu-board-widths button { display:flex; align-items:center; gap:6px; border-radius:6px; padding:6px 8px; }
.huatu-classroom-board .huatu-board-widths button:before { content:''; display:block; width:14px; height:3px; border-radius:3px; background:currentColor; }
.huatu-classroom-board .huatu-board-widths [data-board-width="5"]:before { height:5px; }
.huatu-classroom-board .huatu-board-widths [data-board-width="9"]:before { height:8px; }
.huatu-classroom-board .huatu-board-widths button.active { color:var(--board-ink); background:var(--board-bg); box-shadow:0 0 0 1px var(--board-line); }
.huatu-board-directory { width:min(360px,100%); padding:16px; background:var(--board-bg); grid-template-rows:auto auto minmax(0,1fr) auto; box-shadow:12px 0 36px #20242d24; border-right:1px solid var(--board-line); }
.huatu-board-directory header div { display:grid; gap:4px; }
.huatu-board-directory header strong { font-size:16px; }
.huatu-board-directory header small { font-size:11px; color:var(--board-muted); }
.huatu-board-directory header button { width:32px; height:32px; padding:0; background:transparent; border:0; font-size:22px; }
.huatu-board-directory input { font-size:12px; background:var(--board-panel); }
.huatu-board-directory-list { gap:8px; }
.huatu-board-directory-list button { position:relative; display:grid; grid-template-columns:20px 72px minmax(0,1fr); gap:10px; align-items:center; padding:12px 10px; border:1px solid var(--board-line); border-radius:10px; background:var(--board-bg); }
.huatu-board-directory-list button.active { border-color:var(--board-accent); background:color-mix(in srgb,var(--board-accent) 3%,var(--board-bg)); box-shadow:0 0 0 1px var(--board-accent); }
.huatu-board-page-number { font:600 11px/1.4 system-ui; color:var(--board-muted); }
.huatu-board-page-preview { width:72px; height:48px; overflow:hidden; display:block; border:1px solid var(--board-line); border-radius:5px; background:var(--board-panel); font-size:6px; line-height:1.6; padding:5px; color:var(--board-muted); }
.huatu-board-page-preview:has(svg) { padding:0; }
.huatu-board-page-preview svg { width:100%; height:100%; }
.huatu-board-page-copy { display:grid; min-width:0; gap:5px; }
.huatu-board-page-copy strong { font-size:12px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.huatu-board-page-copy small { font-size:10px; }
.huatu-board-page-current { color:var(--board-accent); font-size:10px; font-weight:650; }
.huatu-board-page-no-results { text-align:center; padding:40px 12px; color:var(--board-muted); font-size:12px; }
.huatu-board-directory footer { display:flex; gap:8px; border-top:1px solid var(--board-line); padding-top:12px; }
.huatu-board-directory footer button { flex:1; font-size:12px; background:var(--board-panel); cursor:pointer; }
.huatu-board-directory button:focus-visible { outline:2px solid var(--board-accent); outline-offset:2px; }
@container classroom-board (max-width:560px) { .huatu-classroom-board .huatu-board-tools .huatu-board-colors { gap:7px; padding:0 8px; } .huatu-classroom-board .huatu-board-widths button:before { display:none; } }
/* Scope card children against presentation-template span decorators. */
.huatu-board-directory .huatu-board-page-number,.huatu-board-directory .huatu-board-page-preview,.huatu-board-directory .huatu-board-page-copy,.huatu-board-directory .huatu-board-page-current { position:static; inset:auto; float:none; transform:none; margin:0; box-shadow:none; border-radius:0; background:transparent; letter-spacing:normal; text-align:left; }
.huatu-board-directory .huatu-board-page-number { grid-column:1; grid-row:1; width:auto; height:auto; padding:0; display:block; }
.huatu-board-directory .huatu-board-page-preview { grid-column:2; grid-row:1; width:72px; height:48px; padding:5px; display:block; border-radius:5px; background:var(--board-panel); }
.huatu-board-directory .huatu-board-page-preview:has(svg) { padding:0; }
.huatu-board-directory .huatu-board-page-copy { grid-column:3; grid-row:1; width:auto; height:auto; display:grid; gap:5px; padding:0; }
.huatu-board-directory .huatu-board-page-current { width:auto; height:auto; padding:0; display:block; }
.huatu-classroom-board .huatu-board-widths button.active { border:1px solid var(--board-line); }
.huatu-board-page-row { border:1px solid var(--board-line); border-radius:10px; overflow:hidden; flex-shrink:0; }
.huatu-board-page-row:has([aria-current="page"]) { border-color:var(--board-accent); }
.huatu-board-directory-list .huatu-board-page-row > button { width:100%; border:0; border-radius:0; box-shadow:none; }
.huatu-board-page-actions { display:flex; align-items:center; justify-content:flex-end; gap:6px; padding:4px 9px 8px; background:var(--board-bg); }
.huatu-board-directory-list .huatu-board-page-actions button { display:grid; place-items:center; width:30px; height:28px; padding:4px; border:0; border-radius:5px; background:var(--board-panel); font-size:15px; }
.huatu-board-page-actions button svg,.huatu-board-toolset [data-board-action="undo"] svg,.huatu-board-toolset [data-board-action="redo"] svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.huatu-board-page-actions button:disabled { opacity:.3; cursor:default; }
.huatu-board-page-actions span { font-size:11px; margin-right:auto; color:var(--board-muted); }
.huatu-board-directory-list .huatu-board-page-actions [data-directory-confirm] { width:auto; padding:4px 10px; color:var(--board-accent); font-size:12px; }
.huatu-board-toolset [data-board-action="undo"],.huatu-board-toolset [data-board-action="redo"] { display:grid; place-items:center; min-width:32px; padding:5px; }
.huatu-note-bar [data-note-cmd="undo"] svg,.huatu-note-bar [data-note-cmd="redo"] svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }

/* Academy entry: one folded-book mark, restrained red bookmark. */
.huatu-tools-trigger { border-radius:16px; background:#282d36; box-shadow:0 8px 24px #20242d26,inset 0 1px 0 #ffffff14; }
.huatu-tools-trigger-icon svg { width:26px; height:26px; stroke-width:1.6; }
.huatu-academy-signature { display:flex; align-items:center; gap:8px; border:0; padding:0; background:transparent; color:var(--huatu-tools-ink); font:inherit; cursor:pointer; }
.huatu-academy-signature>span { display:grid; place-items:center; width:26px; height:26px; }
.huatu-academy-signature svg { width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round; }
.huatu-academy-signature:focus-visible,.huatu-entry-mode:focus-visible { outline:2px solid var(--huatu-tools-red);outline-offset:4px;border-radius:5px; }
.huatu-entry-mode { border:1px solid #dde1e6;border-radius:6px;padding:4px 7px;background:#fff;color:#68717e;font-family:inherit;font-size:10px;font-weight:500;line-height:1.4;cursor:pointer; }
.huatu-entry-mode:hover { color:var(--huatu-tools-ink);border-color:#adb5bf; }
@media(prefers-reduced-motion:reduce) { .huatu-tools.is-idle { transform:none; } }

.huatu-tools-active-dot { opacity:0; }
.huatu-tools.has-active-tool .huatu-tools-active-dot { opacity:1; }

.huatu-celebration { position:fixed;inset:0;z-index:10020;overflow:hidden;pointer-events:none;background:radial-gradient(ellipse at 50% 43%,#39403438 0%,transparent 65%),rgba(10,17,25,.92);animation:huatu-celebration-veil 3.6s ease both; }
.huatu-celebration-copy { position:absolute;left:50%;top:48%;z-index:2;transform:translate(-50%,-50%);display:grid;justify-items:center;gap:24px;max-width:calc(100vw - 36px);width:max-content;text-align:center;padding:28px 12px;animation:huatu-celebration-copy 3.6s ease both;font-family:"Kaiti SC","STKaiti","KaiTi","Songti SC",serif; }
.huatu-celebration-copy::before { content:"";width:40px;height:1px;background:linear-gradient(90deg,transparent,#d6b878,transparent); }
.huatu-celebration-copy strong { color:#f5e8cb;font-family:inherit;font-size:clamp(76px,13vw,148px);font-weight:400;line-height:1.2;letter-spacing:.22em;text-indent:.22em;text-shadow:0 2px 32px #e6be7226; }
.huatu-celebration-copy span { color:#c7c3b8;font-family:"Songti SC","SimSun",serif;font-size:clamp(12px,1.8vw,16px);line-height:1.8;letter-spacing:.12em; }
.huatu-celebration i { position:absolute;top:-20px;width:7px;height:12px;border-radius:1px;animation:huatu-confetti var(--fall) var(--delay) cubic-bezier(.2,.55,.55,1) both; }
.huatu-celebration i.is-burst { animation-name:huatu-confetti-burst;animation-timing-function:linear; }
.huatu-celebration i:nth-of-type(5n) { border-radius:50%; }
@keyframes huatu-confetti-burst {
  0% { opacity:0;transform:translate(0,0) rotate(0); }
  7% { opacity:1; }
  38% { opacity:1;transform:translate(var(--mid-x),var(--peak-y)) rotate(calc(var(--turn)*.4)) scaleX(.65); }
  68% { opacity:1;transform:translate(var(--late-x),var(--late-y)) rotate(calc(var(--turn)*.75)) scaleX(1); }
  100% { opacity:0;transform:translate(var(--launch-x),40vh) rotate(var(--turn)) scaleX(.6); }
}
@keyframes huatu-celebration-veil { 0%{opacity:0} 10%,84%{opacity:1} 100%{opacity:0} }
@keyframes huatu-confetti { from { opacity:1;transform:translate(0,-20px) rotate(0); } to { opacity:0;transform:translate(var(--drift),110vh) rotate(var(--turn)); } }
@keyframes huatu-celebration-copy { 0%,6%{opacity:0;scale:.97;filter:blur(4px)} 18%,80%{opacity:1;scale:1;filter:blur(0)} 100%{opacity:0;scale:1;filter:blur(0)} }
@media(prefers-reduced-motion:reduce) { .huatu-celebration i{display:none}.huatu-celebration,.huatu-celebration-copy{animation:none} }
@media print { .huatu-celebration{display:none!important} }

.huatu-celebration [data-celebration-sound] { position:absolute;right:24px;bottom:24px;pointer-events:auto;border:1px solid #e8d9b52e;background:#141d27b3;border-radius:999px;padding:8px 12px;color:#c8c4b9;font:12px/1.4 system-ui,sans-serif;cursor:pointer; }
.huatu-celebration [data-celebration-sound]:hover { color:#f5e8cb;border-color:#d6b878; }
.huatu-celebration [data-celebration-sound]:focus-visible { outline:2px solid #d6b878;outline-offset:4px; }
.huatu-celebration [data-celebration-sound]:disabled { opacity:.6;cursor:default; }
@media(max-width:480px) { .huatu-celebration [data-celebration-sound] { right:16px;bottom:16px; } }

/* Navigation: one full-width mode switch, then one separate destination. */
.huatu-tool-group[aria-labelledby="huatu-group-view"] .huatu-laser-settings { margin:0 0 10px; display:block; }
.huatu-tool-group[aria-labelledby="huatu-group-view"] .huatu-laser-settings > div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px; width:100%; box-sizing:border-box; padding:4px; border-color:#e4e6ea; border-radius:10px; background:#f5f6f8; }
.huatu-tool-group[aria-labelledby="huatu-group-view"] [data-reading-mode] { min-height:34px; padding:6px 8px; border:1px solid transparent; border-radius:7px; font-size:12px; text-align:center; }
.huatu-tool-group[aria-labelledby="huatu-group-view"] [data-reading-mode][aria-pressed="true"] { border-color:#e0e3e8; box-shadow:0 1px 3px #20242d0a; }
.huatu-tool-group[aria-labelledby="huatu-group-view"] [data-tool="slide-overview"] { width:100%; box-sizing:border-box; min-height:58px; grid-template-columns:32px minmax(0,1fr) auto; gap:10px; padding:10px; border:1px solid #e4e6ea; border-radius:10px; background:#fff; }
.huatu-tool-group[aria-labelledby="huatu-group-view"] [data-tool="slide-overview"]:hover { background:#f7f8fa; border-color:#cbd0d8; transform:none; }
.huatu-tool-group[aria-labelledby="huatu-group-view"] .huatu-tool-icon { width:32px; height:32px; border-radius:8px; background:#f2f4f7; color:#596273; box-shadow:none; }
.huatu-tool-group[aria-labelledby="huatu-group-view"] .huatu-tool-copy strong { font-size:13px; }
.huatu-tool-group[aria-labelledby="huatu-group-view"] .huatu-tool-copy small { font-size:10px; color:#7a8290; }

/* Brief chrome motion: content and hit targets retain their final geometry. */
.huatu-tools-panel { transform:translateY(4px); transition:opacity .18s ease,transform .18s ease; }
.huatu-tools.open .huatu-tools-panel { transform:translateY(0); }
.huatu-tools .huatu-tool-button:hover { transform:none; }
.huatu-tools-panel .huatu-tool-group[aria-labelledby="huatu-group-present"] .huatu-tool-button.active { border-width:1px; outline:1px solid #c53030; outline-offset:-2px; }
.huatu-tools [data-tool="entry-mode"] { min-width:76px; }
.huatu-tools [data-tool="pptx"] .huatu-tool-copy small { white-space:nowrap; }
.huatu-tools :is(button,summary):focus-visible,
.huatu-classroom-board :is(button,summary):focus-visible { outline:2px solid #356ec6; outline-offset:3px; }
.huatu-classroom-board [data-board-tool],.huatu-classroom-board [data-board-layout],.huatu-classroom-board [data-board-width] { position:relative; }
.huatu-classroom-board [data-board-tool][aria-pressed="true"]::after,
.huatu-classroom-board [data-board-layout][aria-pressed="true"]::after,
.huatu-classroom-board [data-board-width][aria-pressed="true"]::after { content:'✓'; position:absolute; right:1px; top:0; font-size:10px; line-height:1; }
@media(prefers-reduced-motion:reduce) {
  .huatu-tools-panel { transition:none; transform:none; }
}
@media print {
  .huatu-tools-panel { transition:none!important; animation:none!important; transform:none!important; }
}

/* Quiet authorship in training tool surfaces. */
.huatu-training-credit{display:flex;align-items:baseline;gap:8px;padding:0 14px 12px;color:#6b747e;font:400 10px/1.6 "PingFang SC","Microsoft YaHei",sans-serif;letter-spacing:.06em}
.huatu-training-credit small{font-size:9px;color:#858d96;letter-spacing:.12em}
.huatu-presenter-guide .huatu-training-credit-dark{margin-top:14px;padding:10px 0 0;border-top:1px solid rgba(255,255,255,.1);color:#b4bdc8}
.huatu-training-credit-dark small{color:#98a3b0}

.huatu-academy-signature>span.huatu-training-title{display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:auto;height:auto}
.huatu-training-title small{font:500 8px/1.2 "Helvetica Neue",Arial,sans-serif;letter-spacing:.15em;color:#747d88}
.huatu-training-credit{padding:11px 14px 10px;justify-content:space-between;gap:6px;border-bottom:1px solid #edf0f2;letter-spacing:.04em}
.huatu-training-credit small{font:500 7px/1.6 "Helvetica Neue",Arial,sans-serif;letter-spacing:.1em;white-space:nowrap;color:#747d88}
.huatu-presenter-guide .huatu-training-credit-dark{justify-content:flex-start;gap:12px;border-bottom:0}

.huatu-hub-launcher{position:fixed;right:18px;top:72px;z-index:10005;border:1px solid #d5dce5;border-radius:10px;background:#fff;color:#243349;padding:10px 14px;font:600 14px system-ui;box-shadow:0 3px 15px #10203018;cursor:pointer}#huatu-tool-hub{position:fixed;inset:3vh 3vw;z-index:10010;display:flex;flex-direction:column;background:#f7f9fc;color:#243349;border:1px solid #cbd5e1;border-radius:14px;box-shadow:0 15px 80px #0006;font:16px/1.5 system-ui,sans-serif;overflow:hidden}#huatu-tool-hub[hidden],#huatu-tool-hub [hidden]{display:none!important}#huatu-tool-hub header{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;border-bottom:1px solid #dce3ed;flex-shrink:0}#huatu-tool-hub button,#huatu-tool-hub a{font:inherit;cursor:pointer}#huatu-tool-hub button{border:1px solid #d2dce9;background:white;color:#243349;border-radius:7px;padding:7px 11px}#huatu-tool-hub button:hover{background:#e9eff9}#huatu-tool-hub a{color:#245db5;text-decoration:none}#huatu-tool-hub button:focus-visible,#huatu-tool-hub a:focus-visible,#huatu-tool-hub input:focus-visible{outline:3px solid #6b9eff;outline-offset:2px}#huatu-tool-hub .huatu-hub-window-actions,#huatu-tool-hub .huatu-hub-catalog-actions,#huatu-tool-hub .huatu-hub-form-actions,#huatu-tool-hub .huatu-hub-view-actions{display:flex;gap:8px;flex-wrap:wrap}.huatu-hub-catalog{padding:22px;overflow:auto;flex:1;min-height:0}.huatu-hub-search{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:20px}#huatu-tool-hub input{box-sizing:border-box;border:1px solid #cbd5e1;border-radius:7px;background:#fff;color:#243349;padding:9px 12px;font:inherit;min-width:0}.huatu-hub-search>input{flex:1;min-width:180px}.huatu-hub-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(280px,100%),1fr));gap:16px}.huatu-hub-card{background:#fff;border:1px solid #dce3ed;border-radius:12px;padding:18px;display:flex;flex-direction:column;gap:12px;min-width:0}#huatu-tool-hub .huatu-hub-card-title{text-align:left;font-weight:700;border:0;padding:0;font-size:19px;background:transparent}.huatu-hub-card small{color:#5f7088;overflow-wrap:anywhere}.huatu-hub-card>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:auto}#huatu-tool-hub form{display:flex;gap:14px;flex-wrap:wrap;background:#eef3fb;border:1px solid #cbd9ee;padding:18px;border-radius:10px;margin-bottom:20px}#huatu-tool-hub label{display:flex;flex-direction:column;gap:5px;flex:1;min-width:200px}.huatu-hub-form-actions{align-items:end}.huatu-hub-viewer{display:flex;flex-direction:column;flex:1;min-height:0}.huatu-hub-viewer nav{display:flex;align-items:center;gap:18px;padding:10px 16px;flex-wrap:wrap;border-bottom:1px solid #dce3ed}.huatu-hub-current{flex:1;overflow-wrap:anywhere}#huatu-tool-hub iframe{width:100%;flex:1;min-height:0;border:0;background:white}#huatu-tool-hub footer{font-size:13px;padding:10px 18px;background:#edf2f8;color:#465b76;border-top:1px solid #dce3ed;flex-shrink:0}#huatu-tool-hub footer button{font-size:13px;padding:2px 8px}@media(max-width:800px){#huatu-tool-hub[data-layout="full"]{inset:8px;border-radius:10px}.huatu-hub-catalog{padding:14px}#huatu-tool-hub header{padding:10px 14px}.huatu-hub-viewer nav{gap:10px}.huatu-hub-launcher{right:10px;top:64px;padding:8px 10px}}@media print{#huatu-tool-hub,.huatu-hub-launcher{display:none!important}}

#huatu-tool-hub{box-sizing:border-box;inset:auto}
#huatu-tool-hub[data-layout="half"]{top:8px;bottom:8px;width:var(--hub-width,50vw);border-radius:12px}
#huatu-tool-hub[data-layout="half"][data-dock="right"]{right:0;left:auto}
#huatu-tool-hub[data-layout="half"][data-dock="left"]{left:0;right:auto}
#huatu-tool-hub[data-layout="full"]{inset:0;width:auto;height:auto;border:0;border-radius:0}
#huatu-tool-hub[data-layout="quarter"]{left:var(--hub-x);top:var(--hub-y);width:var(--hub-w);height:var(--hub-h)}
#huatu-tool-hub header{gap:8px;flex-wrap:wrap;padding:10px 16px}
#huatu-tool-hub header>strong{font-size:16px;white-space:nowrap}
#huatu-tool-hub .huatu-hub-window-actions{gap:5px}
#huatu-tool-hub .huatu-hub-window-actions button{font-size:13px;padding:5px 8px}
#huatu-tool-hub [aria-pressed="true"]{background:#dce9fc;border-color:#6c95d3}
#huatu-tool-hub[data-layout="quarter"] header{cursor:move;touch-action:none}
.huatu-hub-splitter,.huatu-hub-resize{display:none;position:absolute;z-index:2;touch-action:none}
#huatu-tool-hub[data-layout="half"] .huatu-hub-splitter{display:block;top:0;bottom:0;width:12px;cursor:col-resize}
#huatu-tool-hub[data-dock="right"] .huatu-hub-splitter{left:0}
#huatu-tool-hub[data-dock="left"] .huatu-hub-splitter{right:0}
.huatu-hub-splitter:hover,.huatu-hub-splitter:focus-visible{background:#76a4ee55;outline:2px solid #76a4ee;outline-offset:-2px}
#huatu-tool-hub[data-layout="half"][data-dock="right"]{padding-left:12px}
#huatu-tool-hub[data-layout="half"][data-dock="left"]{padding-right:12px}
#huatu-tool-hub[data-layout="quarter"] .huatu-hub-resize{display:block;right:0;bottom:0;width:22px;height:22px;cursor:nwse-resize;background:linear-gradient(135deg,transparent 55%,#7692b7 56%,#7692b7 62%,transparent 63%,transparent 74%,#7692b7 75%,#7692b7 81%,transparent 82%)}
#huatu-tool-hub.is-adjusting iframe{pointer-events:none}
#huatu-tool-hub.is-adjusting{user-select:none}
#huatu-tool-hub .huatu-hub-viewer nav{gap:8px;padding:8px 12px}
#huatu-tool-hub .huatu-hub-viewer nav button,#huatu-tool-hub .huatu-hub-viewer nav a{font-size:13px}
#huatu-tool-hub .huatu-hub-current{font-size:14px}
@media(max-width:500px){#huatu-tool-hub header{padding:8px}#huatu-tool-hub footer{padding:6px 10px}#huatu-tool-hub .huatu-hub-viewer nav{gap:5px}.huatu-hub-current{flex-basis:100%}}
/* Compact Huatu window chrome: one row, calm surfaces, shared visual hierarchy. */
#huatu-tool-hub{background:#fffdf9;border-color:#dddcd7;box-shadow:0 24px 80px #17201b26;border-radius:16px;color:#262a2e}
#huatu-tool-hub header{flex-wrap:nowrap;height:54px;box-sizing:border-box;padding:8px 12px;gap:12px;background:#faf9f6;border-bottom:1px solid #e8e6e1}
#huatu-tool-hub header>strong{font-size:13px;font-weight:650;letter-spacing:.02em;min-width:0;overflow:hidden;text-overflow:ellipsis;flex:1}
#huatu-tool-hub .huatu-hub-window-actions{flex-wrap:nowrap;gap:2px;align-items:center;flex-shrink:0;padding:3px;background:#efeee9;border-radius:10px}
#huatu-tool-hub .huatu-hub-icon{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;box-sizing:border-box;padding:6px;border:0;background:transparent;border-radius:7px;color:#777b7e;flex-shrink:0;transition:background .15s,color .15s,box-shadow .15s}
#huatu-tool-hub .huatu-hub-icon svg{width:17px;height:17px;flex-shrink:0}
#huatu-tool-hub .huatu-hub-icon:hover{color:#252a2e;background:#e4e3dd}
#huatu-tool-hub .huatu-hub-icon[aria-pressed="true"]{background:#fff;color:#c53030;box-shadow:0 1px 4px #20202014}
#huatu-tool-hub .huatu-hub-window-actions>.huatu-hub-icon:last-child:hover{color:#c53030;background:#fae9e6}
#huatu-tool-hub .huatu-hub-utilities{display:flex;align-items:center;margin-left:5px;padding-left:5px;border-left:1px solid #d8d7d1;gap:2px}
#huatu-tool-hub .huatu-hub-view-actions{gap:2px;flex-wrap:nowrap}
#huatu-tool-hub .huatu-hub-viewer nav{display:none}
#huatu-tool-hub footer{padding:8px 12px;font-size:12px;background:#fff4eb;color:#955529;border-color:#f0ded0}
#huatu-tool-hub[data-layout="full"]{border-radius:0}
#huatu-tool-hub .huatu-hub-catalog-actions button,#huatu-tool-hub .huatu-hub-form-actions button{font-size:13px;border-color:#e0dfd9;border-radius:8px;padding:7px 12px}
#huatu-tool-hub .huatu-hub-catalog-actions button:first-child{background:#c53030;color:white;border-color:#c53030}
@media(max-width:450px){#huatu-tool-hub header{padding:7px 8px;gap:6px}#huatu-tool-hub header>strong{font-size:12px}#huatu-tool-hub .huatu-hub-icon{width:28px;height:28px}#huatu-tool-hub .huatu-hub-utilities{margin-left:2px;padding-left:3px}}
/* Embedded tools retain their responsive viewport; enlargement never shrinks text. */
#huatu-tool-hub{container-type:inline-size;container-name:tool-hub}
#huatu-tool-hub .huatu-hub-frame-shell{position:relative;flex:1;min-height:0;overflow:hidden;background:white}
#huatu-tool-hub .huatu-hub-frame-shell iframe{position:absolute;top:0;left:0;max-width:none;max-height:none;transform-origin:top left;flex:none}
#huatu-tool-hub .huatu-hub-more{position:static}
#huatu-tool-hub summary{list-style:none;cursor:pointer}
#huatu-tool-hub summary::-webkit-details-marker{display:none}
#huatu-tool-hub summary:focus-visible,#huatu-tool-hub select:focus-visible{outline:3px solid #6b9eff;outline-offset:2px}
#huatu-tool-hub .huatu-hub-more-menu{position:absolute;right:12px;top:50px;z-index:5;width:240px;box-sizing:border-box;padding:14px;background:#fffdf9;border:1px solid #dddcd7;border-radius:12px;box-shadow:0 12px 35px #17201b26;display:flex;flex-direction:column;gap:12px}
#huatu-tool-hub .huatu-hub-more-menu label{min-width:0;font-size:12px;color:#62676b;gap:5px;flex:none}
#huatu-tool-hub select{width:100%;font:13px system-ui;color:#262a2e;background:#fff;border:1px solid #deded8;border-radius:7px;padding:7px}
#huatu-tool-hub .huatu-hub-more-menu .huatu-hub-utilities{margin:0;padding:10px 0 0;border-left:0;border-top:1px solid #e8e6e1}
@container tool-hub (max-width:560px){#huatu-tool-hub header{padding:7px 8px;gap:6px}#huatu-tool-hub header>strong{font-size:12px}#huatu-tool-hub .huatu-hub-icon{width:28px;height:28px}#huatu-tool-hub .huatu-hub-more-menu{right:8px;max-width:calc(100% - 16px)}}
#huatu-tool-hub header{position:relative;z-index:3}

/* Hints are mounted outside panels so narrow chrome never clips them. */
.huatu-chrome-tooltip{position:fixed;z-index:2147483647;max-width:min(300px,calc(100vw - 16px));padding:7px 10px;border-radius:7px;background:#26303b;color:#fff;font:500 12px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;box-shadow:0 3px 12px #0002;pointer-events:none;white-space:normal}
.huatu-chrome-tooltip[hidden]{display:none}

@media print { .huatu-chrome-tooltip { display:none!important; } }

/* Flat, neutral classroom chrome; colour marks only the selected layout. */
#huatu-tool-hub{background:#fff;color:#252930;border-color:#e4e6ea;box-shadow:0 16px 48px #19243124}
#huatu-tool-hub header{background:#f5f6f8;border-bottom-color:#e4e6ea;height:52px}
#huatu-tool-hub header>strong{font-size:14px;letter-spacing:0}
#huatu-tool-hub .huatu-hub-window-actions{background:transparent;padding:0;gap:3px}
#huatu-tool-hub .huatu-hub-icon{color:#69717c;border:1px solid transparent}
#huatu-tool-hub .huatu-hub-icon:hover{background:#e9edf2;color:#252930}
#huatu-tool-hub .huatu-hub-icon[aria-pressed="true"]{background:#fff;border-color:#e4e6ea;color:#c53030;box-shadow:0 1px 3px #1b263512}
#huatu-tool-hub .huatu-hub-window-actions>.huatu-hub-icon:last-child{margin-left:4px}
#huatu-tool-hub .huatu-hub-more-menu{background:#fff;border-color:#e4e6ea}
#huatu-tool-hub .huatu-hub-more-menu .huatu-hub-utilities{display:flex;flex-direction:column;align-items:stretch;gap:3px;border-top-color:#e4e6ea}
#huatu-tool-hub .huatu-hub-more-menu .huatu-hub-view-actions{flex-direction:column;gap:3px}
#huatu-tool-hub .huatu-hub-more-menu .huatu-hub-icon{width:100%;height:34px;justify-content:flex-start;gap:10px;padding:6px 8px;font-size:13px;color:#373e49}
#huatu-tool-hub .huatu-hub-more-menu .huatu-hub-icon span{white-space:nowrap}
#huatu-tool-hub .huatu-hub-catalog{background:#fff}
#huatu-tool-hub .huatu-hub-card{background:#fff;border-color:#e4e6ea;border-radius:10px;padding:16px;gap:10px}
#huatu-tool-hub .huatu-hub-card-title{font-size:16px;font-weight:650;color:#252930;line-height:1.5}
#huatu-tool-hub .huatu-hub-card small{font-size:12px;color:#737b86}
#huatu-tool-hub .huatu-hub-card>div{font-size:12px;gap:10px;border-top:1px solid #edf0f3;padding-top:10px}
#huatu-tool-hub .huatu-hub-card>div button{font-size:12px;padding:4px 8px;border-color:#e4e6ea}
#huatu-tool-hub .huatu-hub-card a{color:#52647b}
#huatu-tool-hub input,#huatu-tool-hub select{background:#fff;border-color:#e4e6ea}
#huatu-tool-hub form{background:#f5f6f8;border-color:#e4e6ea}
#huatu-tool-hub .huatu-hub-catalog-actions button,#huatu-tool-hub .huatu-hub-form-actions button{border-color:#e4e6ea}
#huatu-tool-hub .huatu-hub-catalog-actions button:first-child{border-color:#c53030}
@container tool-hub (max-width:360px){#huatu-tool-hub header{gap:5px;padding:7px}#huatu-tool-hub header>strong{font-size:12px}#huatu-tool-hub .huatu-hub-icon{width:26px;height:28px;padding:5px}#huatu-tool-hub .huatu-hub-window-actions{gap:1px}#huatu-tool-hub .huatu-hub-window-actions>.huatu-hub-icon:last-child{margin-left:2px}}

/* Match the writing workspace and presenter console; content owns the viewport. */
#huatu-tool-hub { border-radius:14px; font-family:-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif; }
#huatu-tool-hub header { height:56px; padding:9px 14px; }
#huatu-tool-hub .huatu-hub-window-actions { background:#eceef2; padding:3px; gap:2px; border-radius:8px; }
#huatu-tool-hub .huatu-hub-icon[aria-pressed="true"] { border-color:transparent; box-shadow:0 1px 3px #20242d12; }
#huatu-tool-hub .huatu-hub-more-menu { top:54px; border-radius:10px; padding:12px; box-shadow:0 12px 32px #292d341f; }
#huatu-tool-hub footer { background:#f5f6f8; color:#69717c; border-color:#e4e6ea; font-size:11px; padding:7px 14px; }
#huatu-tool-hub .huatu-hub-catalog { padding:24px; scrollbar-width:thin; scrollbar-color:#c9ced6 transparent; }
#huatu-tool-hub .huatu-hub-search { gap:10px; margin-bottom:20px; }
#huatu-tool-hub .huatu-hub-search>input { min-height:40px; background:#f5f6f8; border-color:transparent; border-radius:8px; font-size:13px; }
#huatu-tool-hub .huatu-hub-list { gap:12px; }
#huatu-tool-hub .huatu-hub-card { border-radius:10px; padding:18px; transition:border-color .15s,background .15s; }
#huatu-tool-hub .huatu-hub-card:hover { border-color:#c6cbd4; background:#fafbfc; }
#huatu-tool-hub .huatu-hub-card-title { font-size:15px; font-weight:650; letter-spacing:-.01em; }
#huatu-tool-hub .huatu-hub-card>div { border-top:0; padding-top:5px; gap:6px; }
#huatu-tool-hub .huatu-hub-card>div button { border-color:transparent; background:#f1f3f6; color:#525b68; border-radius:6px; }
#huatu-tool-hub .huatu-hub-card>div button:hover { background:#e7eaf0; color:#252930; }
#huatu-tool-hub form { border:0; padding:18px; border-radius:10px; font-size:13px; }
#huatu-tool-hub input:focus-visible,#huatu-tool-hub select:focus-visible,#huatu-tool-hub button:focus-visible,#huatu-tool-hub a:focus-visible,#huatu-tool-hub summary:focus-visible { outline:2px solid #c53030; outline-offset:2px; }
@container tool-hub (max-width:560px) {
 #huatu-tool-hub header { padding:8px; }
 #huatu-tool-hub .huatu-hub-catalog { padding:16px; }
 #huatu-tool-hub .huatu-hub-window-actions { gap:1px; padding:2px; }
 #huatu-tool-hub .huatu-hub-search { gap:8px; }
 #huatu-tool-hub .huatu-hub-card { padding:15px; }
}
@container tool-hub (max-width:360px) {
 #huatu-tool-hub .huatu-hub-window-actions { padding:1px; }
 #huatu-tool-hub .huatu-hub-catalog { padding:12px; }
 #huatu-tool-hub .huatu-hub-search>input { min-width:0; width:100%; flex-basis:100%; }
}
@media(prefers-reduced-motion:reduce) { #huatu-tool-hub .huatu-hub-card { transition:none; } }
/* The outer dock keeps exact geometry while its chrome settles. */
#huatu-tool-hub:not([hidden]) { animation:huatu-hub-polish .18s ease; }
#huatu-tool-hub:not([hidden]) > header { animation:huatu-hub-header-polish .18s ease; }
#huatu-tool-hub button,#huatu-tool-hub summary { transition:background-color .15s ease,border-color .15s ease; }
#huatu-tool-hub summary:focus-visible { outline:3px solid #6b9eff;outline-offset:2px; }
@keyframes huatu-hub-polish { from{opacity:.75} to{opacity:1} }
@keyframes huatu-hub-header-polish { from{transform:translateY(4px)} to{transform:translateY(0)} }
@media(prefers-reduced-motion:reduce) { #huatu-tool-hub,#huatu-tool-hub > header { animation:none!important; } #huatu-tool-hub button,#huatu-tool-hub summary { transition:none; } }
@media print { #huatu-tool-hub,#huatu-tool-hub > header { animation:none!important; } }

/* 华图 H5 互动课件 · 视觉系统
 * 1920×1080 画布等比缩放。纸色底、墨色字，品牌红只给关键结论与答案；
 * 甲乙丙固定配色（橙 / 蓝 / 绿），题干高亮、演示、解析里含义一致。 */
:root {
  --paper: #f6f3ee; --panel: #fffdf9; --ink: #1d2126; --ink2: #3b4149; --muted: #858b93; --faint: #b9bcc1; --line: #e3ded5;
  --brand: #c8102e; --brand-soft: #fbe9ec; --ok: #18875a; --ok-soft: #e3f4ec;
  --jia: #e1781d; --jia-soft: #fdf0e3; --yi: #2b72b8; --yi-soft: #e6f0fa; --bing: #2f9465; --bing-soft: #e5f4ec; --total: #59616c;
  --sans: "HT Sans", "PingFang SC", "Microsoft YaHei", sans-serif; --serif: "HT Serif", "Songti SC", "SimSun", serif;
  --num: "DIN Alternate", "Bahnschrift", "HT Sans", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; background: #e9e5de; overflow: hidden; font-family: var(--sans); color: var(--ink); -webkit-font-smoothing: antialiased; }
.viewport { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; overflow: hidden; background: #e9e5de; }
.stage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; background: var(--paper); overflow: hidden; box-shadow: 0 30px 80px rgba(40, 30, 20, .18); will-change: transform; }
.scr { position: absolute; inset: 0; padding: 0 112px; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }
.scr:not(.on), .scr:not(.on) .huatu-slide-ink { pointer-events: none !important; }
.scr.on { opacity: 1; visibility: visible; transition: opacity .35s ease; }
button { font: inherit; color: inherit; }

/* ---------- 顶栏：只写"在哪一章哪一节"，不放装饰 ---------- */
.top { position: absolute; left: 112px; right: 112px; top: 44px; display: flex; justify-content: space-between; align-items: center; font-size: 22px; color: var(--muted); letter-spacing: .02em; }
.top .crumb { display: flex; align-items: center; gap: 12px; }
.top .crumb i { width: 10px; height: 10px; border-radius: 2px; background: var(--brand); }
.top em { font-style: normal; color: var(--faint); }
.top .pos { font-size: 20px; }
.progress { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--brand); transition: width .4s ease; z-index: 5; }

/* ---------- 封面 ---------- */
.scr-cover { display: grid; grid-template-columns: 1fr 760px; align-items: center; gap: 96px; }
.cover-l .course { margin: 0 0 56px; font-size: 26px; color: var(--muted); letter-spacing: .04em; }
.cover-l .no { margin: 0; font-size: 40px; color: var(--brand); font-weight: 700; letter-spacing: .1em; }
.cover-l h1 { margin: 12px 0 0; font-size: 176px; line-height: 1.05; font-weight: 700; letter-spacing: .04em; }
.cover-units { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.cover-units li { display: grid; grid-template-columns: 72px 1fr; grid-template-rows: auto auto; padding: 30px 8px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .2s; }
.cover-units li:hover { background: rgba(255, 255, 255, .6); }
.cover-units .n { grid-row: span 2; font-family: var(--num); font-size: 34px; color: var(--brand); padding-top: 4px; }
.cover-units .t { font-size: 40px; font-weight: 700; }
.cover-units .m { margin-top: 8px; font-size: 22px; color: var(--muted); }

/* ---------- 知识全解：左边讲义原文，右边可操作的演示 ---------- */
.scr-know { display: grid; grid-template-columns: 760px 1fr; gap: 72px; padding-top: 128px; padding-bottom: 78px; }
.know-head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.know-l .eyebrow { margin: 0; font-size: 24px; color: var(--brand); font-weight: 700; letter-spacing: .1em; }
.know-step-bar { display: inline-flex; align-items: center; gap: 10px; }
.know-step-ind { font-size: 17px; font-weight: 700; color: var(--muted); font-family: var(--num); }
.know-step-btn { padding: 5px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--panel); color: var(--ink2); font-size: 16px; font-weight: 700; cursor: pointer; transition: border-color .18s, background .18s, color .18s; }
.know-step-btn.ghost { background: transparent; color: var(--muted); }
.know-step-btn:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.know-l h2 { margin: 12px 0 28px; font-size: 70px; line-height: 1.1; }
.sheet h3 { margin: 22px 0 8px; font-size: 28px; color: var(--brand); display: flex; align-items: center; gap: 11px; }
.sheet h3::before { content: ""; width: 5px; height: 21px; border-radius: 3px; background: currentColor; }
.sheet h3:first-child { margin-top: 0; }
.sheet [data-know-phase][hidden], .sheet [data-know-step][hidden] { display: none; }
.sheet .know-reveal-in { animation: stepIn .38s cubic-bezier(.2, .7, .2, 1); }
.sheet .kl { margin: 0 0 10px 16px; font-size: 28px; line-height: 1.55; color: var(--ink2); }
.sheet .kl-topic { display: flex; align-items: baseline; gap: .45em; margin-top: .42em; color: var(--ink); }
.sheet .kl-topic .kl-n { color: var(--brand); }
.sheet .kl-topic + h3 { margin-top: .45em; font-size: 23px; color: var(--muted); }
.sheet .kl-sub { margin-left: 36px; font-weight: 700; }
.sheet .kl-numbered { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: .38em; }
.kl-n { color: var(--muted); font-weight: 700; }
.kl-copy { min-width: 0; overflow-wrap: anywhere; }
.kl-copy strong { color: var(--ink); font-weight: 700; }
.kl-copy .kl-lead { margin-inline-end: .35em; }
.sheet .kl-formula { padding: .33em .56em; border-inline-start: 2px solid var(--yi); background: #ecf0f2; color: var(--ink); font-weight: 600; }
.sheet .kl-formula + .kl-formula { margin-top: -5px; border-top: 1px solid var(--panel); }
.kl-formula .kl-lead { display: block; font-size: .86em; color: var(--yi); }
.sheet .kl-method { padding-inline-start: .55em; border-inline-start: 3px solid var(--line); }
.know-r { min-height: 0; display: flex; }
.know-r .demo { flex: 1; height: auto; }
.know-r .demo-ctl { gap: 14px; }
.know-r .demo-ctl input[type=range] { width: 210px; }
.know-r .demo-ctl .val { min-width: 44px; }
.know-r .meet-controls { flex-wrap: wrap; gap: 8px 12px; }
.know-r .meet-controls label { flex-basis: 100%; }

/* ---------- 题目屏 ---------- */
.q-main { position: absolute; left: 112px; top: var(--init-top, 150px); width: 1460px; transition: width .5s cubic-bezier(.2, .7, .2, 1), top .5s cubic-bezier(.2, .7, .2, 1); }
.measuring-question .q-main, .measuring-question .q-main * { transition: none !important; }
.q-main.scrollable { max-height: calc(985px - var(--init-top, 150px)); overflow-y: auto; overscroll-behavior: contain; }
.scr-q.solving .q-main.scrollable { max-height: 900px; }
.q-main.scrollable .q-src { position: static; margin-top: 12px; white-space: normal; }
.q-head { display: flex; align-items: center; gap: 22px; margin-bottom: var(--init-head-mb, 30px); }
.q-no { font-size: 60px; font-weight: 700; color: var(--brand); line-height: 1; transition: font-size .5s; }
.q-kind { font-size: 24px; color: var(--muted); letter-spacing: .08em; }
.q-entry-bar { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; }
.q-entry-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 22px; border-radius: 999px; border: 2px solid var(--ink); background: var(--panel); color: var(--ink); font-size: 20px; font-weight: 700; cursor: pointer; transition: background .18s, color .18s, border-color .18s, transform .15s; }
.q-entry-btn:hover { background: var(--ink); color: #fff; }
.q-entry-btn.primary { border-color: var(--brand); background: var(--brand); color: #fff; }
.q-entry-btn.primary:hover { background: #a80d26; border-color: #a80d26; }
.q-entry-btn.ghost { border-color: var(--line); color: var(--ink2); }
.q-entry-btn.ghost:hover { border-color: var(--ink); background: #fff; color: var(--ink); }
.q-entry-btn .q-board-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.q-entry-btn .q-board-dot[hidden] { display: none; }
.q-stem { font-family: var(--serif); font-size: var(--init-stem-fs, 46px); line-height: var(--init-stem-lh, 1.75); text-align: justify; color: var(--ink); transition: font-size .5s cubic-bezier(.2, .7, .2, 1); }
.q-stem mark { background: none; color: inherit; border-radius: 6px; padding: 0 .08em; box-shadow: inset 0 -.32em 0 var(--hl-soft, #f3e6c9); transition: box-shadow .3s, color .3s; }
.q-stem mark.is-focus { color: var(--hl, var(--brand)); box-shadow: inset 0 -.5em 0 var(--hl-soft, #f3e6c9), 0 0 0 3px var(--hl, var(--brand)); }
mark.c-jia, .c-jia { --hl: var(--jia); --hl-soft: var(--jia-soft); }
mark.c-yi, .c-yi { --hl: var(--yi); --hl-soft: var(--yi-soft); }
mark.c-bing, .c-bing { --hl: var(--bing); --hl-soft: var(--bing-soft); }
mark.c-key { --hl: var(--brand); --hl-soft: var(--brand-soft); }
.stem-fig { margin: var(--init-fig-mt, 20px) 0 0; }
.stem-fig img { height: var(--init-fig-h, 260px); max-width: 100%; object-fit: contain; }
.q-opts { list-style: none; margin: var(--init-opts-mt, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.q-opts.long { grid-template-columns: repeat(2, 1fr); }
.q-opts li { display: flex; align-items: center; gap: 18px; min-height: var(--init-opt-h, 92px); padding: 14px 26px; border: 2px solid var(--line); border-radius: 18px; background: var(--panel); font-size: var(--init-opt-fs, 38px); cursor: pointer; transition: border-color .2s, background .2s, transform .15s, font-size .5s, min-height .5s; }
.q-opts li:hover { border-color: var(--faint); }
.q-opts li:active { transform: scale(.98); }
.q-opts li b { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--ink2); font-size: 26px; font-family: var(--num); transition: all .2s; }
.q-opts li span { font-family: var(--num); }
.q-opts li.picked { border-color: var(--ink); }
.q-opts li.picked b { background: var(--ink); color: #fff; border-color: var(--ink); }
.q-opts li.right { border-color: var(--ok); background: var(--ok-soft); }
.q-opts li.right b { background: var(--ok); border-color: var(--ok); color: #fff; }
.q-opts li.wrong { opacity: .45; }
.q-opts li.wrong span { text-decoration: line-through; text-decoration-thickness: 2px; }
.q-opts li.eliminated { opacity: .35; }
.q-opts li.eliminated span { text-decoration: line-through; text-decoration-thickness: 2px; }
.q-src { position: absolute; top: calc(100% + var(--init-src-mt, 36px)); left: 0; margin: 0; font-size: 20px; color: var(--faint); max-width: 1460px; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 进入讲解：题目收到左栏，右栏出现演示 / 参考解析，题目始终可见 */
.q-solve { position: absolute; left: 896px; right: 112px; top: 108px; bottom: 48px; display: flex; flex-direction: column; gap: 12px; opacity: 0; transform: translateX(40px); pointer-events: none; transition: opacity .45s ease .1s, transform .5s cubic-bezier(.2, .7, .2, 1) .05s; }
.scr-q.solving .q-main { width: 720px; top: 112px; }
.scr-q.solving .q-head { margin-bottom: 16px; }
.scr-q.solving .q-entry-bar { display: none; }
.scr-q.solving .q-no { font-size: 42px; }
.scr-q.solving .q-stem { font-size: var(--solve-stem-fs, 31px); line-height: var(--solve-stem-lh, 1.68); }
.scr-q.solving .q-opts { margin-top: var(--solve-opts-mt, 22px); grid-template-columns: repeat(2, 1fr); gap: 12px; }
.scr-q.solving .q-opts.xlong { grid-template-columns: 1fr; }
.scr-q.solving .q-opts li { font-size: var(--solve-opt-fs, 26px); min-height: var(--solve-opt-h, 58px); padding: 7px 14px; border-radius: 14px; line-height: 1.3; }
.scr-q.solving .q-opts li b { width: 34px; height: 34px; font-size: 18px; }
.scr-q.solving .q-src { display: none; }
.scr-q.solving .stem-fig { margin-top: 12px; }
.scr-q.solving .stem-fig img { height: var(--solve-fig-h, 160px); max-width: 100%; object-fit: contain; }
.scr-q.solving .q-solve { opacity: 1; transform: none; pointer-events: auto; }
body.auditing * { transition: none !important; animation: none !important; }

.q-solve-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: none; }
.q-mode-tabs { display: inline-flex; align-items: center; gap: 6px; padding: 4px; border-radius: 999px; background: #ede8df; border: 1.5px solid var(--line); }
.q-mode-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 18px; border: 0; border-radius: 999px; background: transparent; color: var(--ink2); font-size: 19px; font-weight: 700; cursor: pointer; transition: background .18s, color .18s; }
.q-mode-btn:hover { background: rgba(255, 255, 255, .65); color: var(--ink); }
.q-mode-btn.on { background: var(--ink); color: #fff; }
.q-mode-btn[data-q-mode="board"].on { background: var(--brand); color: #fff; }
.q-mode-btn .q-board-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.q-mode-btn.on .q-board-dot { background: #ffd166; }
.q-mode-btn .q-board-dot[hidden] { display: none; }
.q-solve-right { display: inline-flex; align-items: center; gap: 10px; }
.q-back-stem { padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--panel); color: var(--muted); font-size: 16px; font-weight: 700; cursor: pointer; transition: border-color .18s, color .18s; }
.q-back-stem:hover { border-color: var(--ink); color: var(--ink); }
.tabs { display: flex; gap: 8px; flex: none; }
.tabs button { padding: 6px 18px; border: 2px solid var(--line); border-radius: 999px; background: transparent; font-size: 19px; color: var(--muted); cursor: pointer; }
.tabs button.on { border-color: var(--ink); background: var(--ink); color: #fff; }

/* 模式切换布局：演示模式（纯演示）/ 参考解析模式（纯解析，不强制显示演示）/ 同屏模式（演示+解析） */
.q-solve[data-mode="demo"] .q-demo-bar { display: none; }
.q-solve[data-mode="demo"] .demo { height: 540px; }
.q-solve[data-mode="demo"] .steps { flex: 0 0 0; height: 0; min-height: 0; padding: 0; margin: 0; overflow: hidden; opacity: 0; pointer-events: none; }
.q-solve[data-mode="analysis"] .demo { display: none; }
.q-solve[data-mode="analysis"] .q-analysis-bar { display: none; }
.q-solve[data-mode="analysis"] .steps { padding-top: 10px; }
.q-solve[data-mode="both"] .q-demo-bar { display: none; }
.q-solve[data-mode="both"] .q-analysis-bar { display: none; }
.q-solve[data-mode="both"] .demo { height: 430px; }

.q-analysis-bar, .q-demo-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 18px; border-radius: 16px; background: var(--panel); border: 1.5px dashed var(--line); flex: none; }
.q-analysis-hint, .q-demo-hint { font-size: 17px; color: var(--muted); }
.q-bar-actions { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.q-analysis-tog { padding: 6px 16px; border-radius: 999px; border: 1.5px solid var(--ink2); background: transparent; color: var(--ink); font-size: 16px; font-weight: 700; cursor: pointer; transition: background .18s, color .18s, border-color .18s; }
.q-analysis-tog.ghost { border-color: var(--line); color: var(--ink2); }
.q-analysis-tog:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.demo { position: relative; flex: none; height: 470px; border-radius: 24px; background: var(--panel); box-shadow: 0 1px 0 var(--line), 0 18px 40px rgba(60, 45, 25, .07); overflow: hidden; }
.demo-svg { position: absolute; inset: 0; width: 100%; height: 100%; font-family: var(--sans); }
.demo-svg .num { font-family: var(--num); }
.demo-ctl { position: absolute; left: 28px; right: 28px; bottom: 18px; display: flex; align-items: center; gap: 12px; font-size: 20px; color: var(--ink2); z-index: 2; }
.demo-ctl:empty { display: none; }
.demo-ctl .ctl-btn { padding: 8px 20px; border-radius: 999px; border: 2px solid var(--ink); background: var(--ink); color: #fff; font-size: 20px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, opacity .15s; }
.demo-ctl .ctl-btn.ghost { background: transparent; color: var(--ink); }
.demo-ctl .ctl-btn[aria-pressed="false"] { background: transparent; color: var(--ink); }
.demo-ctl .ctl-btn[aria-pressed="true"], .demo-ctl .ctl-btn.active { border-color: var(--brand); background: var(--brand); color: #fff; }
.demo-ctl .ctl-btn.sm { padding: 6px 14px; font-size: 17px; }
.demo-ctl .ctl-btn:disabled { opacity: .38; cursor: default; }
.demo-ctl .ctl-hint { font-size: 15px; color: var(--muted); white-space: nowrap; }
.demo-ctl label { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.demo-ctl input[type=range] { width: 300px; accent-color: var(--brand); }
.demo-ctl.compact { gap: 8px; font-size: 17px; }
.demo-ctl.compact label { gap: 8px; }
.demo-ctl.compact input[type=range] { width: 136px; }
.demo-ctl.compact .val { min-width: 58px; font-size: 20px; }
.demo-ctl .val { min-width: 64px; font-family: var(--num); font-size: 28px; color: var(--ink); font-weight: 700; }
.demo-ctl input[type=text] { width: 220px; padding: 6px 14px; border: 2px solid var(--line); border-radius: 12px; font: inherit; font-family: var(--num); font-size: 26px; background: #fff; }
.demo-ctl .spacer { flex: 1; }

.steps { position: relative; flex: 1; min-height: 0; overflow-y: auto; padding: 4px 6px 4px 4px; scroll-behavior: smooth; }
.steps::-webkit-scrollbar { width: 0; }
.sol-label { margin: 0 0 6px; font-size: 20px; color: var(--muted); }
.step { display: none; margin: 0 0 12px; font-size: 21px; line-height: 1.6; color: var(--muted); cursor: pointer; }
.step.shown { display: block; }
.step.past { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.step.past.open { display: block; }
.step.choice-only { display: none; }
.q-reveal-banner { margin: 14px 0 4px; padding: 10px 18px; border-radius: 12px; background: var(--ok-soft); border: 1.5px solid var(--ok); color: var(--ok); font-size: 21px; font-weight: 700; animation: stepIn .3s ease; }
.q-reveal-banner[hidden] { display: none; }
.q-reveal-banner small { margin-left: 10px; font-weight: 400; font-size: 16px; color: var(--ink2); }
.solve-supplement { margin: 14px 0; color: var(--ink2); font-size: 24px; }
.solve-supplement summary { cursor: pointer; font-weight: 700; }
.supplement-line { margin: 8px 0; }
.step.cur { font-size: 32px; line-height: 1.7; color: var(--ink); cursor: default; animation: stepIn .45s cubic-bezier(.2, .7, .2, 1); }
.step.cur:not(.fig) { padding-inline-start: .65em; border-inline-start: 3px solid var(--brand); }
.sol:has(.step.cur .analysis-chunk) .step.past { display: none; }
.step.cur .analysis-chunk, .step.open .analysis-chunk { display: block; }
.step.cur .analysis-chunk + .analysis-chunk, .step.open .analysis-chunk + .analysis-chunk { margin-top: .35em; }
.step.cur .analysis-lead:has(+ .analysis-chunk) { display: block; margin-bottom: .15em; font-size: .84em; }
.step .lead { color: var(--brand); font-weight: 700; }
.step .inl { height: var(--h, 1.6em); vertical-align: middle; margin: 0 .12em; }
.fig.step { display: none; margin: 0 0 12px; }
.fig.step.shown { display: block; }
.fig img { height: var(--h, 220px); max-width: 100%; }
.missing { color: var(--brand); font-size: .8em; }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- 知识复盘（H5 原生导图 + 讲义原图对照浮层 + 跳题返回） ---------- */
.scr-review { padding-top: 110px; }
.review-wrap { position: absolute; left: 112px; right: 112px; top: 110px; bottom: 80px; display: grid; place-items: center; overflow: hidden; cursor: zoom-in; }
.review-wrap img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; transform-origin: 0 0; }
.review-wrap.zoom { cursor: grab; place-items: start; }
.review-wrap.zoom img { width: auto; height: 2000px; object-fit: initial; }
.review-hint { position: absolute; bottom: 36px; left: 112px; margin: 0; font-size: 20px; color: var(--faint); }

.rm-tools { display: inline-flex; align-items: center; gap: 12px; }
.rm-btn { padding: 7px 18px; border-radius: 999px; border: 2px solid var(--ink); background: var(--ink); color: #fff; font-size: 18px; font-weight: 700; cursor: pointer; transition: background .2s, border-color .2s; }
.rm-btn:hover { background: var(--brand); border-color: var(--brand); }
.rm-btn.ghost { background: var(--panel); color: var(--ink); border-color: var(--line); }
.rm-btn.ghost:hover { border-color: var(--ink); background: #fff; }

.rm-layout { position: absolute; left: 112px; right: 112px; top: 108px; bottom: 70px; display: grid; grid-template-columns: 980px 1fr; gap: 36px; }
.rm-left { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; padding-right: 10px; }
.rm-left::-webkit-scrollbar { width: 6px; }
.rm-left::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.rm-root { display: flex; align-items: center; gap: 18px; padding: 18px 24px; margin-bottom: 16px; border-radius: 18px; background: var(--panel); border: 2px solid var(--ink); cursor: pointer; transition: border-color .2s, box-shadow .2s; flex: none; }
.rm-root.is-sel { border-color: var(--brand); box-shadow: 0 8px 24px rgba(200, 16, 46, .10); }
.rm-root-dot { width: 16px; height: 16px; border-radius: 4px; background: var(--brand); flex: none; }
.rm-root strong { display: block; font-size: 32px; line-height: 1.2; }
.rm-root small { display: block; margin-top: 4px; font-size: 18px; color: var(--muted); }

.rm-tree, .rm-children { list-style: none; margin: 0; padding: 0; }
.rm-tree { display: flex; flex-direction: column; gap: 12px; padding-left: 20px; border-left: 3px solid var(--line); }
.rm-children { display: none; margin: 8px 0 4px 26px; padding-left: 18px; border-left: 2.5px solid var(--line); flex-direction: column; gap: 8px; }
.rm-item.is-open > .rm-children { display: flex; }

.rm-item { position: relative; }
.rm-item::before { content: ""; position: absolute; left: -20px; top: 32px; width: 18px; height: 2.5px; background: var(--line); }
.rm-item.d-2::before, .rm-item.d-3::before { left: -18px; top: 26px; width: 16px; }
.rm-row { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-radius: 16px; background: var(--panel); border: 2px solid var(--line); cursor: pointer; transition: border-color .18s, background .18s, box-shadow .18s; }
.rm-item.d-2 > .rm-row { padding: 11px 18px; border-radius: 14px; }
.rm-item.d-3 > .rm-row { padding: 9px 16px; border-radius: 12px; }
.rm-row:hover { border-color: var(--faint); background: #fff; }
.rm-item.is-sel > .rm-row { border-color: var(--node-col, var(--brand)); background: #fff; box-shadow: 0 8px 22px rgba(40, 30, 20, .08); }
.rm-item.c-brand { --node-col: var(--brand); --node-soft: var(--brand-soft); }
.rm-item.c-jia { --node-col: var(--jia); --node-soft: var(--jia-soft); }
.rm-item.c-yi { --node-col: var(--yi); --node-soft: var(--yi-soft); }
.rm-item.c-bing { --node-col: var(--bing); --node-soft: var(--bing-soft); }
.rm-item.d-1 > .rm-row { border-left: 6px solid var(--node-col, var(--brand)); }

.rm-tog { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--node-soft, var(--paper)); color: var(--node-col, var(--brand)); font-size: 18px; font-weight: 700; transition: transform .2s; }
.rm-item.is-open > .rm-row .rm-tog { transform: rotate(90deg); }
.rm-item.is-leaf > .rm-row .rm-tog { background: transparent; color: var(--node-col, var(--muted)); font-size: 20px; }

.rm-txt { flex: 1; min-width: 0; }
.rm-title-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rm-group { padding: 2px 9px; border-radius: 6px; background: var(--paper); border: 1px solid var(--line); font-size: 15px; font-weight: 700; color: var(--muted); }
.rm-title { font-size: 25px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.rm-item.d-2 > .rm-row .rm-title { font-size: 22px; }
.rm-item.d-3 > .rm-row .rm-title { font-size: 20px; }
.rm-sub { display: block; margin-top: 3px; font-size: 18px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-badges { display: flex; align-items: center; gap: 8px; flex: none; }
.rm-cnt, .rm-qcnt { padding: 3px 10px; border-radius: 999px; font-size: 15px; font-weight: 700; font-family: var(--num); }
.rm-cnt { background: var(--paper); color: var(--ink2); border: 1px solid var(--line); }
.rm-qcnt { background: var(--ok-soft); color: var(--ok); }
.rm-warn-tag { padding: 2px 8px; border-radius: 6px; background: var(--brand-soft); color: var(--brand); font-size: 14px; font-weight: 700; }

.rm-right { min-height: 0; overflow-y: auto; border-radius: 24px; background: var(--panel); border: 1.5px solid var(--line); box-shadow: 0 18px 40px rgba(60, 45, 25, .07); padding: 30px 32px; }
.rm-right::-webkit-scrollbar { width: 6px; }
.rm-right::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.rm-detail .rm-crumb { margin: 0 0 10px; font-size: 17px; color: var(--muted); }
.rm-detail .rm-crumb em { font-style: normal; color: var(--faint); margin: 0 4px; }
.rm-detail h3 { margin: 0 0 10px; font-size: 36px; line-height: 1.25; color: var(--ink); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rm-detail .rm-sum { margin: 0 0 22px; font-size: 21px; color: var(--ink2); line-height: 1.55; }
.rm-sec { margin-top: 22px; }
.rm-sec h4 { margin: 0 0 12px; font-size: 19px; font-weight: 700; color: var(--brand); display: flex; align-items: center; gap: 10px; }
.rm-sec h4::before { content: ""; width: 5px; height: 18px; border-radius: 3px; background: currentColor; }
.rm-formulas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rm-formulas li { padding: 14px 18px; border-radius: 14px; background: var(--paper); border-left: 4px solid var(--brand); font-size: 24px; line-height: 1.65; color: var(--ink); }
.rm-conds { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rm-conds li { position: relative; padding-left: 20px; font-size: 22px; line-height: 1.6; color: var(--ink2); }
.rm-conds li::before { content: "•"; position: absolute; left: 2px; color: var(--brand); font-weight: 700; }
.rm-subchips { display: flex; flex-wrap: wrap; gap: 10px; }
.rm-subchip { padding: 8px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); font-size: 19px; font-weight: 700; color: var(--ink2); cursor: pointer; transition: border-color .18s, color .18s, background .18s; }
.rm-subchip:hover { border-color: var(--brand); color: var(--brand); background: #fff; }
.rm-qlinks { display: flex; flex-direction: column; gap: 10px; }
.rm-qlinks.rm-qlinks-scroll { max-height: 360px; overflow-y: auto; padding-right: 6px; }
.rm-qlinks.rm-qlinks-scroll::-webkit-scrollbar { width: 5px; }
.rm-qlinks.rm-qlinks-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.rm-qlink { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font-size: 20px; cursor: pointer; text-align: left; transition: border-color .18s, transform .15s, background .18s; }
.rm-qlink:hover { border-color: var(--ok); background: var(--ok-soft); transform: translateX(3px); }
.rm-qtag { padding: 2px 9px; border-radius: 6px; background: var(--brand-soft); color: var(--brand); font-size: 15px; font-weight: 700; flex: none; }
.rm-qsrc { padding: 2px 8px; border-radius: 6px; background: var(--paper); border: 1px solid var(--line); color: var(--ink2); font-size: 14px; font-weight: 700; flex: none; }
.rm-qlink b { font-size: 21px; color: var(--ink); flex: none; }
.rm-qlink em { flex: 1; min-width: 0; font-style: normal; font-size: 17px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-qlink i { font-style: normal; font-weight: 700; color: var(--ok); font-size: 22px; flex: none; }
.rm-sec-note { margin: -6px 0 10px; font-size: 16px; color: var(--muted); }
.rm-uncertain-note { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-size: 18px; font-weight: 700; }

.rm-modal { position: absolute; inset: 0; background: rgba(24, 27, 32, .94); z-index: 26; display: flex; flex-direction: column; }
.rm-modal[hidden] { display: none; }
.rm-modal-bar { display: flex; justify-content: space-between; align-items: center; padding: 22px 48px; color: #fff; font-size: 20px; flex: none; }
.rm-modal-body { position: relative; flex: 1; min-height: 0; }
.rm-modal .review-wrap { left: 48px; right: 48px; top: 0; bottom: 32px; background: #fff; border-radius: 18px; padding: 16px; display: flex; align-items: center; justify-content: center; }
.rm-modal .review-wrap img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.rm-modal .review-wrap.zoom { display: block; }
.rm-modal .review-wrap.zoom img { max-width: none; max-height: none; width: auto; height: 2000px; }

.rm-return-pill { position: absolute; top: 34px; right: 248px; z-index: 24; display: none; align-items: center; gap: 10px; padding: 8px 18px; border-radius: 999px; border: 2px solid var(--brand); background: var(--panel); color: var(--brand); font-size: 17px; font-weight: 700; cursor: pointer; box-shadow: 0 8px 22px rgba(200, 16, 46, .14); transition: background .18s, color .18s; }
.rm-return-pill.on { display: inline-flex; }
.rm-return-pill:hover { background: var(--brand); color: #fff; }

/* ---------- 讲师提示 / 目录 / 操作提示 / 断点恢复 ---------- */
.notes-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 460px; padding: 36px 34px; background: #23272d; color: #e9eaec; overflow-y: auto; transform: translateX(100%); transition: transform .3s ease; z-index: 86; font-size: 18px; line-height: 1.7; }
.notes-drawer.open { transform: none; }
.notes-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.notes-head h3 { margin: 0; font-size: 22px; color: #fff; }
.notes-drawer h3 { margin: 0 0 18px; font-size: 22px; color: #fff; }
.notes-drawer h4 { margin: 22px 0 6px; font-size: 18px; color: #f2b8c1; }
.notes-drawer section.cur h4 { color: #fff; }
.notes-drawer p { margin: 0 0 4px; color: #c9ccd1; }
.overview { position: fixed; inset: 0; background: rgba(28, 31, 36, .92); z-index: 95; display: none; padding: 48px 80px 60px; overflow-y: auto; }
.overview.open { display: block; }
.overview-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; color: #fff; }
.overview-bar h3 { margin: 0; font-size: 24px; font-weight: 700; }
.overview-bar .overview-actions { display: flex; align-items: center; gap: 12px; }
.reset-btn { padding: 7px 16px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .1); color: #fff; font-size: 15px; cursor: pointer; transition: background .2s, border-color .2s; }
.reset-btn:hover { background: var(--brand); border-color: var(--brand); }
.overview ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.overview li { padding: 18px 20px; border-radius: 14px; background: rgba(255, 255, 255, .06); color: #e9eaec; font-size: 18px; cursor: pointer; }
.overview li.cur { background: var(--brand); }
.overview li small { display: block; margin-bottom: 4px; color: rgba(255, 255, 255, .5); font-size: 14px; }
.hint { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); max-width: calc(100vw - 24px); overflow: hidden; text-overflow: ellipsis; padding: 8px 18px; border-radius: 999px; background: rgba(29, 33, 38, .82); color: #fff; font-size: 14px; letter-spacing: .04em; z-index: 72; transition: opacity .6s; white-space: nowrap; }
.hint.gone { opacity: 0; pointer-events: none; }
.huatu-presenter-hint { display: none !important; }
.resume-toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); max-width: calc(100vw - 24px); display: flex; align-items: center; gap: 14px; padding: 10px 18px; border-radius: 999px; background: rgba(29, 33, 38, .92); color: #fff; font-size: 15px; z-index: 88; box-shadow: 0 12px 32px rgba(0, 0, 0, .24); transition: opacity .4s; }
.resume-toast.gone { opacity: 0; pointer-events: none; }
.resume-toast button { border: 0; border-radius: 999px; padding: 5px 14px; background: var(--brand); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; }
.resume-toast button.dismiss { background: rgba(255, 255, 255, .16); font-weight: 400; }

/* ---------- 原版培训工作台薄适配补充样式（离线/联网标识、高频导航入口、统一快捷键说明） ---------- */
.huatu-tools { bottom: 20px; }
.huatu-tools-hotzone { bottom: 8px; }
.huatu-tools-panel { display: flex; flex-direction: column; }
.huatu-tools-header, .huatu-tools-footer { flex: none; }
.huatu-tools-scroll { flex: 1 1 auto; min-height: 0; max-height: none; }
.ht-tool-badge { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px; font-size: 9px; font-weight: 700; line-height: 1.4; vertical-align: 1px; }
.ht-tool-badge--offline { background: #e3f4ec; color: #167950; }
.ht-tool-badge--online { background: #fff0db; color: #9a5500; }
.ht-extra-nav-grid { margin-top: 8px; }
.ht-extra-nav-grid .huatu-tool-button { min-height: 52px; padding: 8px 9px; border: 1px solid #e4e6ea; border-radius: 10px; background: #fff; }
.ht-extra-nav-grid .huatu-tool-button:hover { background: #f7f8fa; border-color: #cbd0d8; }
.ht-help-modal { position: fixed; inset: 0; z-index: 10040; display: grid; place-items: center; padding: 24px; background: rgba(20, 24, 31, .64); backdrop-filter: blur(6px); font-family: var(--sans); }
.ht-help-modal[hidden] { display: none !important; }
.ht-help-card { width: min(860px, 100%); max-height: calc(100vh - 48px); overflow: auto; border-radius: 20px; background: #fffdf9; color: var(--ink); border: 1px solid var(--line); box-shadow: 0 24px 72px rgba(15, 20, 28, .32); }
.ht-help-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 24px 16px; border-bottom: 1px solid var(--line); background: #f7f4ee; }
.ht-help-card header strong { display: block; font-size: 20px; }
.ht-help-card header small { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.ht-help-card header button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink2); }
.ht-help-card header button:hover { border-color: var(--brand); color: var(--brand); }
.ht-help-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 20px 24px; }
@media (max-width: 780px) { .ht-help-grid { grid-template-columns: 1fr; } }
.ht-help-col h4 { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--brand); }
.ht-help-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ht-help-col li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--ink2); padding-bottom: 6px; border-bottom: 1px dashed #ece8e0; }
.ht-help-col kbd { flex: none; padding: 2px 7px; border-radius: 6px; border: 1px solid #d5d0c7; border-bottom-width: 2px; background: #fff; font: 700 11px/1.3 "SFMono-Regular", Consolas, monospace; color: var(--ink); }
.ht-help-card footer { padding: 12px 24px 16px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); background: #faf8f4; }
.ht-help-card footer kbd { padding: 1px 6px; border-radius: 5px; border: 1px solid #d5d0c7; background: #fff; font: 700 11px/1.2 monospace; color: var(--ink); }

/* ---------- 半屏板书 / 工具分屏满高重排（960×1080 纵向满高，杜绝 1/4 屏缩略图） ---------- */
.stage.is-half-stage { width: 960px; height: 1080px; }
.stage.is-half-stage .scr { padding: 0 44px; }
.stage.is-half-stage .top { left: 44px; right: 44px; top: 30px; font-size: 20px; }
.stage.is-half-stage .scr-cover { grid-template-columns: 1fr; align-content: center; gap: 36px; }
.stage.is-half-stage .cover-l .course { margin-bottom: 18px; font-size: 22px; }
.stage.is-half-stage .cover-l .no { font-size: 30px; }
.stage.is-half-stage .cover-l h1 { font-size: 108px; }
.stage.is-half-stage .cover-units li { padding: 20px 8px; }
.stage.is-half-stage .cover-units .t { font-size: 32px; }
.stage.is-half-stage .scr-know { grid-template-columns: 1fr; grid-template-rows: minmax(0, auto) minmax(360px, 1fr); gap: 18px; padding-top: 86px; padding-bottom: 32px; }
.stage.is-half-stage .know-l { max-height: 495px; overflow-y: auto; padding-right: 6px; }
.stage.is-half-stage .know-l h2 { font-size: 46px; margin: 8px 0 14px; }
.stage.is-half-stage .know-r { min-height: 360px; }
.stage.is-half-stage .scr-q .q-main { left: 44px; width: 872px; top: var(--init-top, 108px); }
.stage.is-half-stage .scr-q .q-head { margin-bottom: var(--init-head-mb, 20px); gap: 14px; }
.stage.is-half-stage .scr-q .q-no { font-size: 48px; }
.stage.is-half-stage .scr-q .q-entry-btn { padding: 7px 16px; font-size: 18px; }
.stage.is-half-stage .scr-q .q-opts { grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stage.is-half-stage .scr-q .q-opts li { padding: 12px 18px; }
.stage.is-half-stage .scr-q .q-src { max-width: 872px; }
.stage.is-half-stage .scr-q.solving .q-main { left: 44px; width: 872px; top: 82px; }
.stage.is-half-stage .scr-q.solving .q-main.scrollable { max-height: 416px; }
.stage.is-half-stage .scr-q.solving .q-head { margin-bottom: 10px; }
.stage.is-half-stage .scr-q.solving .q-no { font-size: 36px; }
.stage.is-half-stage .scr-q.solving .q-opts { grid-template-columns: repeat(2, 1fr); gap: 8px; }
.stage.is-half-stage .scr-q.solving .q-solve { left: 44px; right: 44px; top: 512px; bottom: 26px; gap: 10px; }
.stage.is-half-stage .scr-q.solving .q-solve[data-mode="demo"] .demo { height: auto; flex: 1; min-height: 360px; }
.stage.is-half-stage .scr-q.solving .q-solve[data-mode="both"] .demo { height: 270px; }
.stage.is-half-stage .rm-layout { left: 44px; right: 44px; top: 90px; bottom: 44px; grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; gap: 16px; }
.stage.is-half-stage .rm-return-pill { right: 44px; top: 22px; }

@media print {
  @page { size: 1920px 1080px; margin: 0; }
  html, body, .viewport { width: 1920px !important; height: 1080px !important; overflow: visible !important; background: var(--paper) !important; }
  .stage { position: static !important; transform: none !important; box-shadow: none !important; }
  .scr:not(.on) { display: none !important; }
  .scr.on { position: relative !important; width: 1920px !important; height: 1080px !important; opacity: 1 !important; visibility: visible !important; }
  .huatu-print-ink-layer { display: block !important; position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; z-index: 70; pointer-events: none; }
  .hint, .notes-drawer, .overview, .rm-return-pill, .resume-toast, #huatu-tools, #huatu-classroom-board, #huatu-tool-hub, #ht-shortcut-help, .huatu-tools-toast { display: none !important; }
}