.lm-tool {
  --ink: #203438;
  --subtle: #718285;
  --accent: #167466;
  --surface: rgba(255, 255, 255, .97);
  --line: #e4e9e8;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 1.1rem 0 0;
  padding: 0.9rem 1rem 1rem;
  scroll-margin-bottom: 7rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #f5f7f7;
  color: var(--ink);
  box-shadow: 0 12px 40px #203b4314;
}
.lm-tool .lm-tool-source {
  display: none;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #7e9194;
  font-weight: 500;
}

/* Source metadata remains in the document for a later disclosure UI. Image
   attribution is intentionally managed by answer-images and is not hidden. */
.lm-atom-credit { display: none !important; }
.lm-tool h3 { margin: 0.25rem 0 0.35rem; font-size: 1.15rem; font-weight: 500; }
.lm-tool .lm-tool-note { margin: 0 0 0.7rem; font-size: 0.92rem; line-height: 1.7; color: var(--subtle); }
.lm-tool-given { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 0.6rem; margin: 0 0 0.8rem; }
.lm-tool-given-label { font-size: 0.75rem; font-weight: 500; color: #536a6e; }
.lm-tool-given-values { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; }
.lm-tool-explore {
  margin: 0 0 0.85rem;
  padding: 0.9rem 1rem;
  border: 1px solid #ffffffb3;
  border-radius: 19px;
  background: var(--surface);
  box-shadow: 0 12px 40px #203b4321;
}
.lm-tool-explore-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin: 0 0 0.5rem;
}
.lm-tool-explore-label {
  display: block;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: #536a6e;
}
.lm-tool-explore-slider {
  display: block;
  width: 100%;
  height: 22px;
  margin: 0;
  accent-color: var(--accent);
}
.lm-tool-explore-readout {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  background: #edf6f0;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}
.lm-tool-chip {
  padding: 0.2rem 0.55rem;
  border: 0;
  border-radius: 6px;
  background: #edf6f0;
  color: var(--accent);
  font-size: 0.85rem;
}
.lm-tool-steps-title { margin: 0 0 0.45rem; font-size: 0.75rem; font-weight: 500; color: #536a6e; }
.lm-tool-steps {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: #f2f7f5;
  overflow-x: auto;
}
.lm-tool-step { direction: ltr; text-align: center; font-size: 1.02rem; }
.lm-tool[lang="ar"][data-subject="math"] .lm-tool-step,
.lm-tool[lang="ar"] .eb-equation,
.lm-tool[lang="ar"] .eb-math,
.lm-tool[lang="ar"] .eb-proof,
.lm-tool[lang="ar"] .ld-math,
.lm-tool[lang="ar"] .fr-readout,
.lm-tool[lang="ar"] .fr-math,
.lm-tool[lang="ar"] .pc-relation,
.lm-tool[lang="ar"] .eg-math,
.lm-tool[lang="ar"] .lp-equation,
.lm-tool[lang="ar"] .nl-trace {
  direction: rtl;
  unicode-bidi: isolate;
}
.lm-tool-step .katex-display { margin: 0; }
.lm-tool-result {
  margin: 0.8rem 0 0;
  padding: 0.5rem 0.7rem;
  border-radius: 12px;
  background: #edf6f0;
  color: var(--accent);
  font-weight: 500;
}
.lm-tool-equation {
  margin: 0 0 0.6rem;
  padding: 0.5rem 0.8rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid #ffffffb3;
}
.lm-tool-plot-frame {
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 50% 88%, #88b88738 0, transparent 38%),
    radial-gradient(ellipse at 28% 18%, #ffffffed, transparent 60%),
    linear-gradient(180deg, #e2eee0 0%, #f4f8f1 57%, #c6dcc1 100%);
}
.lm-tool-plot-svg { display: block; width: 100%; height: auto; max-height: 22rem; }
.lm-tool-plot-grid line { stroke: #d7e4e2; stroke-width: 1; }
.lm-tool-plot-axes line { stroke: #5d7a76; stroke-width: 1.5; }
.lm-tool-plot-arrow { fill: #5d7a76; }
.lm-tool-plot-ticks text {
  fill: #5b7380;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.lm-tool-plot-ticks text.is-hot { fill: var(--accent); font-weight: 700; }
.lm-tool-plot-axis-names text {
  fill: var(--accent);
  font-size: 14px;
  font-weight: 700;
}
.lm-tool-plot-guides line {
  fill: none;
  stroke: #167466;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-dasharray: 5.5 4;
}
.lm-tool-plot-curve { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linejoin: round; }
.lm-tool-plot-marks circle { fill: var(--accent); }
.lm-tool-plot-marks text { fill: var(--ink); paint-order: stroke; stroke: #edf5f2; stroke-width: 3px; }
.lm-tool-plot-svg.is-live .lm-tool-plot-guides line {
  animation: lm-tool-guide-in 0.85s ease both, lm-tool-guide-flow 2.2s linear 0.85s infinite;
  animation-delay: calc(0.2s + var(--i, 0) * 0.14s), calc(1.05s + var(--i, 0) * 0.14s);
}
.lm-tool-plot-svg.is-live .lm-tool-plot-ticks text {
  animation: lm-tool-tick-in 0.4s ease both;
  animation-delay: calc(var(--i, 0) * 0.05s);
}
.lm-tool-plot-svg.is-live .lm-tool-plot-ticks text.is-hot {
  animation: lm-tool-tick-in 0.4s ease both, lm-tool-tick-hot 1.15s ease 0.45s 1;
}
.lm-tool-plot-svg.is-live .lm-tool-plot-marks circle,
.lm-tool-plot-svg.is-live .lm-tool-plot-marks text {
  animation: lm-tool-mark-in 0.4s ease both;
  animation-delay: calc(0.45s + var(--i, 0) * 0.1s);
}
.lm-tool-plot-svg.is-live .lm-tool-plot-marks circle {
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes lm-tool-guide-in {
  from { stroke-dashoffset: 48; opacity: 0; }
  to { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes lm-tool-guide-flow {
  to { stroke-dashoffset: -18; }
}
@keyframes lm-tool-tick-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes lm-tool-tick-hot {
  0%, 100% { fill: var(--accent, #167466); }
  40% { fill: #203438; }
}
@keyframes lm-tool-mark-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .lm-tool-plot-svg.is-live .lm-tool-plot-guides line,
  .lm-tool-plot-svg.is-live .lm-tool-plot-ticks text,
  .lm-tool-plot-svg.is-live .lm-tool-plot-marks circle,
  .lm-tool-plot-svg.is-live .lm-tool-plot-marks text { animation: none; }
}
.lm-tool-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 0.7rem;
  margin: 0.8rem 0 0;
  font-size: 0.9rem;
}
.lm-tool-facts dt { font-weight: 500; color: #536a6e; }
.lm-tool-facts dd { margin: 0; }
.lm-tool-experiment { margin: 0.85rem 0 0; padding-top: 0; border-top: 0; }
.lm-tool-experiment h4 { margin: 0 0 0.2rem; font-size: 1rem; }
.lm-tool-experiment > .lm-tool-note { font-size: 0.78rem; margin: 0 0 0.55rem; }
.lm-tool-step .katex .mord.text { unicode-bidi: isolate; }
.lm-tool-solution { margin: 0.7rem 0 0; }
.lm-tool-solution > .lm-tool-note { font-size: 0.78rem; margin: 0 0 0.4rem; }
.lm-tool-solution-svg { display: block; width: 100%; height: auto; direction: ltr; }
.lm-tool-solution-flask { fill: #f7fbf8; stroke: #6f8a86; stroke-width: 2; }
.lm-tool-solution-liquid { stroke: none; transition: height 0.2s ease, y 0.2s ease, fill 0.2s ease; }
.lm-tool-solution-dot { fill: #1f5f86; opacity: 0.85; }
.lm-tool-solution-label { fill: #314844; font-size: 11px; }
.lm-tool-solution-beaker { cursor: pointer; outline: none; }
.lm-tool-solution-beaker:hover .lm-tool-solution-flask,
.lm-tool-solution-beaker:focus-visible .lm-tool-solution-flask { stroke: var(--accent); }
.lm-tool-solution-beaker:hover .lm-tool-solution-dot,
.lm-tool-solution-beaker:focus-visible .lm-tool-solution-dot { opacity: 1; }
.lm-tool-stage { direction: ltr; padding: 0.4rem; border-radius: 12px; background: transparent; }
.lm-tool-stage canvas { display: block; width: 100%; height: auto; }
.lm-tool-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.8rem; margin: 0.6rem 0 0; }
.lm-tool-play {
  padding: 0.4rem 0.9rem;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #617276;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
.lm-tool-play:disabled { opacity: 0.5; cursor: default; }
.lm-tool-play:hover:not(:disabled) { background: #e7f3ee; color: var(--accent); }
.lm-tool-play:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.lm-tool-readout { margin: 0; font-size: 0.88rem; font-variant-numeric: tabular-nums; }
.lm-tool-molecule-stage {
  position: relative;
  width: 100%;
  height: 240px;
  margin: 0.6rem 0 0.3rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 50% 88%, #88b88738 0, transparent 38%),
    radial-gradient(ellipse at 28% 18%, #ffffffed, transparent 60%),
    linear-gradient(180deg, #e2eee0 0%, #f4f8f1 57%, #c6dcc1 100%);
  overflow: hidden;
}
.lm-tool-molecule-hint { margin: 0 0 0.4rem; font-size: 0.85rem; color: var(--subtle); }
@media (max-width: 30rem) {
  .lm-tool { padding: 0.8rem; }
  .lm-tool-step { font-size: 0.95rem; }
  .lm-tool-facts { grid-template-columns: 1fr; row-gap: 0.1rem; }
  .lm-tool-facts dd + dt { margin-top: 0.45rem; }
  .lm-tool-molecule-stage { height: 210px; }
}

.lm-tool-stage-card {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  margin: 0 0 0.7rem;
  padding: 0;
  border: 1px solid var(--line, #e4e9e8);
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 50% 88%, #88b88738 0, transparent 38%),
    radial-gradient(ellipse at 28% 18%, #ffffffed, transparent 60%),
    linear-gradient(180deg, #e2eee0 0%, #f4f8f1 57%, #c6dcc1 100%);
}
.lm-tool-stage-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, transparent 50%, #254d2010);
  pointer-events: none;
}
.lm-tool-canvas-caption {
  position: absolute;
  top: 14px;
  inset-inline-start: 16px;
  z-index: 2;
  max-width: calc(100% - 32px);
  pointer-events: none;
}
.lm-tool-kicker {
  margin: 0;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: #7e9194;
  font-weight: 500;
}
.lm-tool-canvas-caption h4 {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink, #203438);
}
.lm-tool-stage-card .lm-tool-stage {
  position: absolute;
  left: 50%;
  top: 44%;
  z-index: 1;
  width: 88%;
  padding: 0;
  background: transparent;
  transform: translate(-50%, -50%);
}
.lm-tool-stage-card.is-svg .lm-tool-stage {
  position: relative;
  left: auto;
  top: auto;
  width: 100%;
  padding: 3.1rem 0.55rem 3.5rem;
  transform: none;
}
.lm-tool-stage-card.is-svg {
  min-height: 0;
}
.lm-tool-stage-card .lm-tool-stage canvas {
  position: relative !important;
  inset: auto !important;
  display: block;
  width: 100% !important;
  height: auto !important;
}
.lm-tool-dock {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.7rem;
  width: max-content;
  max-width: calc(100% - 20px);
  margin: 0;
  padding: 6px 10px;
  background: var(--surface);
  border: 1px solid #ffffffb3;
  border-radius: 18px;
  box-shadow: 0 9px 35px #203b431a, 0 1px 5px #203b4308;
}
.lm-tool-dock .lm-tool-play {
  min-height: 44px;
  padding: 0.45rem 0.85rem;
}
.lm-tool-stage-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;
}

/* Engine-specific sizing only. Colors, card, dock and buttons stay shared. */
.lm-tool-circuit { min-width: 0; }
.lm-tool-circuit-scene { padding: 8px 8px 78px; }
.lm-tool-circuit-stage { width: 100%; height: clamp(280px, 48vw, 430px); min-width: 0; }
.lm-tool-circuit-stage:empty { display: grid; place-items: center; }
.lm-tool-circuit-stage:empty::before { content: attr(data-hint); color: var(--ink); text-align: center; padding: 1rem; }
.lm-tool-circuit-stage iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: 14px; background: var(--surface); }
.lm-tool-circuit .lm-tool-readout { direction: ltr; text-align: center; font-variant-numeric: tabular-nums; }
.lm-tool-rectangle .lm-tool-circuit-stage,
.lm-tool-circle .lm-tool-circuit-stage,
.lm-tool-square .lm-tool-circuit-stage { height: min(58vw, 260px); }
.lm-tool-rectangle .lm-rect-svg,
.lm-tool-circle .lm-rect-svg,
.lm-tool-square .lm-rect-svg { display: block; width: 100%; height: 100%; touch-action: none; }
.lm-tool-rectangle .lm-rect-inspect,
.lm-tool-circle .lm-rect-inspect,
.lm-tool-square .lm-rect-inspect { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.lm-tool-rectangle .lm-rect-inspect-name,
.lm-tool-circle .lm-rect-inspect-name,
.lm-tool-square .lm-rect-inspect-name { font-weight: 700; }
.lm-tool-rectangle .lm-rect-inspect input,
.lm-tool-circle .lm-rect-inspect input,
.lm-tool-square .lm-rect-inspect input { width: 4.2rem; min-height: 44px; box-sizing: border-box; padding: 4px 6px; border: 1px solid #b7d5c5; border-radius: 8px; background: #fff; color: #203438; font: inherit; font-size: 16px; }
.lm-tool-rectangle .lm-rect-cell,
.lm-tool-circle .lm-rect-cell,
.lm-tool-square .lm-rect-cell { fill: #d7efe4; stroke: #167466; stroke-width: 0.6; }
.lm-tool-rectangle .lm-rect-cell.is-new,
.lm-tool-circle .lm-rect-cell.is-new,
.lm-tool-square .lm-rect-cell.is-new { fill: #8fd4b0; }
.lm-tool-rectangle .lm-rect-shape,
.lm-tool-circle .lm-rect-shape,
.lm-tool-square .lm-rect-shape { fill: transparent; stroke: #167466; stroke-width: 2.5; }
.lm-tool-rectangle .lm-rect-march,
.lm-tool-circle .lm-rect-march,
.lm-tool-square .lm-rect-march { fill: #16746614; stroke-dasharray: 8 6; animation: lm-rect-march 1.2s linear infinite; }
.lm-tool-rectangle .lm-rect-hit,
.lm-tool-circle .lm-rect-hit,
.lm-tool-square .lm-rect-hit { fill: transparent; cursor: grab; }
.lm-tool-rectangle .lm-rect-handle,
.lm-tool-circle .lm-rect-handle,
.lm-tool-square .lm-rect-handle { fill: #167466; pointer-events: none; }
.lm-tool-rectangle .lm-rect-handle.is-selected,
.lm-tool-circle .lm-rect-handle.is-selected,
.lm-tool-square .lm-rect-handle.is-selected { fill: #0e4f45; }
.lm-tool-rectangle .lm-rect-label,
.lm-tool-circle .lm-rect-label,
.lm-tool-square .lm-rect-label { fill: #203438; font-size: 13px; font-family: inherit; direction: ltr; unicode-bidi: isolate; }
.lm-tool-rectangle .lm-rect-readout,
.lm-tool-circle .lm-rect-readout,
.lm-tool-square .lm-rect-readout { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; margin: 0; direction: inherit; }
.lm-tool-rectangle .lm-rect-chip,
.lm-tool-circle .lm-rect-chip,
.lm-tool-square .lm-rect-chip { display: inline-flex; align-items: baseline; gap: 6px; }
.lm-tool-rectangle .lm-rect-delta,
.lm-tool-circle .lm-rect-delta,
.lm-tool-square .lm-rect-delta { font-weight: 700; color: #0e4f45; }
.lm-tool-rectangle .lm-rect-delta.is-flash,
.lm-tool-circle .lm-rect-delta.is-flash,
.lm-tool-square .lm-rect-delta.is-flash { animation: lm-rect-flash .6s ease; }
.lm-tool-rectangle.is-reduced .lm-rect-march,
.lm-tool-circle.is-reduced .lm-rect-march,
.lm-tool-square.is-reduced .lm-rect-march { animation: none; }
.lm-tool-rectangle .lm-rect-law,
.lm-tool-circle .lm-rect-law,
.lm-tool-square .lm-rect-law { margin: 0 0 0.6rem; }
.lm-tool-circle .lm-circ-radius { stroke: #167466; stroke-width: 1.6; }
.lm-tool-circle .lm-circ-limit,
.lm-tool-square .lm-circ-limit,
.lm-tool-parallelogram .lm-circ-limit,
.lm-tool-triangle .lm-circ-limit { fill: none; stroke: #16746633; stroke-width: 1.2; stroke-dasharray: 3 5; }
.lm-tool-circle .lm-circ-ghost,
.lm-tool-square .lm-circ-ghost,
.lm-tool-parallelogram .lm-circ-ghost,
.lm-tool-triangle .lm-circ-ghost { fill: none; stroke: #16746688; stroke-width: 1.5; stroke-dasharray: 5 4; }
.lm-tool-parallelogram .lm-tool-circuit-stage { height: min(58vw, 260px); }
.lm-tool-parallelogram .lm-rect-svg { display: block; width: 100%; height: 100%; touch-action: none; }
.lm-tool-parallelogram .lm-rect-inspect { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.lm-tool-parallelogram .lm-rect-inspect-name { font-weight: 700; }
.lm-tool-parallelogram .lm-rect-inspect input { width: 4.2rem; min-height: 44px; box-sizing: border-box; padding: 4px 6px; border: 1px solid #b7d5c5; border-radius: 8px; background: #fff; color: #203438; font: inherit; font-size: 16px; }
.lm-tool-parallelogram .lm-rect-cell { fill: #d7efe4; stroke: #167466; stroke-width: 0.6; }
.lm-tool-parallelogram .lm-rect-cell.is-new { fill: #8fd4b0; }
.lm-tool-parallelogram .lm-rect-shape { fill: transparent; stroke: #167466; stroke-width: 2.5; }
.lm-tool-parallelogram .lm-rect-hit { fill: transparent; cursor: grab; }
.lm-tool-parallelogram .lm-rect-handle { fill: #167466; pointer-events: none; }
.lm-tool-parallelogram .lm-rect-handle.is-selected { fill: #0e4f45; }
.lm-tool-parallelogram .lm-rect-label { fill: #203438; font-size: 13px; font-family: inherit; direction: ltr; unicode-bidi: isolate; }
.lm-tool-parallelogram .lm-rect-readout { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; margin: 0; direction: inherit; }
.lm-tool-parallelogram .lm-rect-chip { display: inline-flex; align-items: baseline; gap: 6px; }
.lm-tool-parallelogram .lm-rect-delta { font-weight: 700; color: #0e4f45; }
.lm-tool-parallelogram .lm-rect-delta.is-flash { animation: lm-rect-flash .6s ease; }
.lm-tool-parallelogram .lm-rect-law { margin: 0 0 0.6rem; }
.lm-tool-parallelogram .lm-circ-limit { fill: none; stroke: #16746633; stroke-width: 1.2; stroke-dasharray: 3 5; }
.lm-tool-parallelogram .lm-circ-ghost { fill: none; stroke: #16746688; stroke-width: 1.5; stroke-dasharray: 5 4; }
.lm-tool-parallelogram .lm-circ-radius { stroke: #167466; stroke-width: 1.6; stroke-dasharray: 4 3; }
.lm-tool-triangle .lm-tool-circuit-stage { height: min(58vw, 260px); }
.lm-tool-triangle .lm-rect-svg { display: block; width: 100%; height: 100%; touch-action: none; }
.lm-tool-triangle .lm-rect-inspect { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.lm-tool-triangle .lm-rect-inspect-name { font-weight: 700; }
.lm-tool-triangle .lm-rect-inspect input { width: 4.2rem; min-height: 44px; box-sizing: border-box; padding: 4px 6px; border: 1px solid #b7d5c5; border-radius: 8px; background: #fff; color: #203438; font: inherit; font-size: 16px; }
.lm-tool-triangle .lm-rect-cell { fill: #d7efe4; stroke: #167466; stroke-width: 0.6; }
.lm-tool-triangle .lm-rect-cell.is-new { fill: #8fd4b0; }
.lm-tool-triangle .lm-rect-shape { fill: transparent; stroke: #167466; stroke-width: 2.5; }
.lm-tool-triangle .lm-rect-hit { fill: transparent; cursor: grab; }
.lm-tool-triangle .lm-rect-handle { fill: #167466; pointer-events: none; }
.lm-tool-triangle .lm-rect-handle.is-selected { fill: #0e4f45; }
.lm-tool-triangle .lm-rect-label { fill: #203438; font-size: 13px; font-family: inherit; direction: ltr; unicode-bidi: isolate; }
.lm-tool-triangle .lm-rect-readout { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; margin: 0; direction: inherit; }
.lm-tool-triangle .lm-rect-chip { display: inline-flex; align-items: baseline; gap: 6px; }
.lm-tool-triangle .lm-rect-delta { font-weight: 700; color: #0e4f45; }
.lm-tool-triangle .lm-rect-delta.is-flash { animation: lm-rect-flash .6s ease; }
.lm-tool-triangle .lm-rect-law { margin: 0 0 0.6rem; }
.lm-tool-triangle .lm-circ-limit { fill: none; stroke: #16746633; stroke-width: 1.2; stroke-dasharray: 3 5; }
.lm-tool-triangle .lm-circ-ghost { fill: none; stroke: #16746688; stroke-width: 1.5; stroke-dasharray: 5 4; }
.lm-tool-triangle .lm-circ-radius { stroke: #167466; stroke-width: 1.6; stroke-dasharray: 4 3; }
.lm-tool-volume .lm-tool-circuit-stage { height: min(58vw, 260px); }
.lm-tool-volume .lm-rect-svg { display: block; width: 100%; height: 100%; touch-action: none; }
.lm-tool-volume .lm-rect-inspect { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.lm-tool-volume .lm-rect-inspect-name { font-weight: 700; }
.lm-tool-volume .lm-rect-inspect input { width: 4.2rem; min-height: 44px; box-sizing: border-box; padding: 4px 6px; border: 1px solid #b7d5c5; border-radius: 8px; background: #fff; color: #203438; font: inherit; font-size: 16px; }
.lm-tool-volume .lm-rect-cell { fill: #d7efe4; stroke: #167466; stroke-width: 0.6; }
.lm-tool-volume .lm-rect-shape { fill: transparent; stroke: #167466; stroke-width: 2; }
.lm-tool-volume .lm-rect-hit { fill: transparent; cursor: grab; }
.lm-tool-volume .lm-rect-handle { fill: #167466; pointer-events: none; }
.lm-tool-volume .lm-rect-handle.is-selected { fill: #0e4f45; }
.lm-tool-volume .lm-rect-label { fill: #203438; font-size: 13px; font-family: inherit; direction: ltr; unicode-bidi: isolate; }
.lm-tool-volume .lm-rect-readout { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; margin: 0; direction: inherit; }
.lm-tool-volume .lm-rect-chip { display: inline-flex; align-items: baseline; gap: 6px; }
.lm-tool-volume .lm-rect-delta { font-weight: 700; color: #0e4f45; }
.lm-tool-volume .lm-rect-delta.is-flash { animation: lm-rect-flash .6s ease; }
.lm-tool-volume .lm-rect-law { margin: 0 0 0.6rem; }
.lm-tool-volume .lm-circ-limit { fill: none; stroke: #16746633; stroke-width: 1.2; stroke-dasharray: 3 5; }
.lm-tool-volume .lm-circ-radius { stroke: #167466; stroke-width: 1.6; stroke-dasharray: 4 3; }
.lm-tool-volume .lm-vol-top { fill: #d7efe4; stroke: #167466; stroke-width: 1.2; }
.lm-tool-volume .lm-vol-left { fill: #b9e0cf; stroke: #167466; stroke-width: 1.2; }
.lm-tool-volume .lm-vol-right { fill: #9fd4bf; stroke: #167466; stroke-width: 1.2; }
.lm-tool-volume .lm-vol-equator { fill: none; stroke: #16746688; stroke-width: 1.2; }
@keyframes lm-rect-march { to { stroke-dashoffset: -28; } }
@keyframes lm-rect-flash { from { background: #d4f0e2; } to { background: transparent; } }
.lm-tool-circuit.is-expanded,
.lm-tool-circuit:fullscreen { position: fixed; inset: 0; z-index: 10000; width: auto; min-width: 0; max-width: none; height: 100%; min-height: 0; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; overflow: hidden; box-sizing: border-box; transform: none; background: #f5f7f7; }
.lm-tool-circuit.is-expanded > :not(.lm-tool-circuit-scene) { display: none !important; }
.lm-tool-circuit.is-expanded .lm-tool-circuit-scene { width: 100%; max-width: none; height: 100%; min-height: 0; margin: 0; padding: max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(78px,calc(70px + env(safe-area-inset-bottom))) max(8px,env(safe-area-inset-left)); border: 0; border-radius: 0; box-sizing: border-box; overflow: hidden; }
.lm-tool-circuit.is-expanded .lm-tool-circuit-stage { width: 100%; max-width: 100%; height: 100%; min-height: 0; overflow: hidden; }
.lm-tool-circuit.is-expanded .lm-tool-circuit-stage iframe { width: 100%; max-width: 100%; border-radius: 0; }
.lm-tool-fullscreen-ancestor{transform:none!important;filter:none!important;perspective:none!important;contain:none!important;content-visibility:visible!important;overflow:visible!important;clip-path:none!important;will-change:auto!important}
.lm-tool-fullscreen,.lm-tool-fullscreen body{overflow:hidden!important}
@media (max-width: 480px) {
  .lm-tool-circuit-scene { padding: 4px 4px 106px; }
  .lm-tool-circuit .lm-tool-dock { width: calc(100% - 20px); }
  .lm-tool-circuit-stage { height: 300px; }
  .lm-tool-circuit.is-expanded .lm-tool-circuit-scene { padding: max(4px,env(safe-area-inset-top)) max(4px,env(safe-area-inset-right)) max(106px,calc(98px + env(safe-area-inset-bottom))) max(4px,env(safe-area-inset-left)); }
}
.lm-tool-sim-wire {
  stroke: #5d7a76;
  stroke-width: 2.4;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.lm-tool-sim-ray {
  stroke: #167466;
  stroke-width: 2.2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.lm-tool-sim-guide {
  stroke: #8aa8a6;
  stroke-width: 1.15;
  stroke-dasharray: 3.5 3;
}
.lm-tool-sim-pulse { fill: #167466; }

.lm-school-controls { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 14px; }
.lm-school-controls label { display: grid; gap: 6px; flex: 1 1 120px; min-width: 0; }
.lm-school-controls select { width: 100%; min-height: 44px; padding: 8px; border: 1px solid #96b8ac; border-radius: 10px; background: #fff; color: #183d32; font: inherit; }
.lm-tool-molecule-controls { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 14px; }
.lm-tool-molecule-controls label { display: grid; gap: 6px; flex: 1 1 160px; min-width: 0; }
.lm-tool-molecule-controls select { width: 100%; min-height: 44px; padding: 8px; border: 1px solid #96b8ac; border-radius: 10px; background: #fff; color: #183d32; font: inherit; }
.lm-school-challenge { padding: 12px; background: #edf7ed; border-inline-start: 3px solid #537e36; border-radius: 8px; }
.lm-school-scene { display: block; width: 100%; max-height: 320px; background: #f3faf6; border-radius: 16px; direction: ltr; }
.lm-school-scene line { stroke-width: 2; }
.lm-school-scene text { font: 11px Arial, sans-serif; }
.lm-school-ink { fill: #193c34; stroke: #193c34; }
.lm-school-normal { fill: #596960; stroke: #596960; stroke-dasharray: 4 4; }
.lm-school-cool { fill: #167466; stroke: #167466; }
.lm-school-warm { fill: #ac451b; stroke: #ac451b; }
.lm-school-paper { fill: white; }
.lm-school-outline { fill: none; stroke: #193c34; stroke-width: 1.5; }
.lm-school-warm_outline { fill: none; stroke: #ac451b; stroke-width: 3; }
.lm-school-wash { fill: #d2e8dc; stroke: #537e36; }
.lm-school-liquid { fill: #d7f3f8; stroke: #8ec4d4; stroke-width: 1; }
.lm-school-liquid_oil { fill: #f8e7b0; stroke: #d4b56a; stroke-width: 1; }
.lm-school-liquid_salt { fill: #d4e8f8; stroke: #8eb4d4; stroke-width: 1; }
.lm-school-liquid_acid { fill: #fde0d6; stroke: #e0b09f; stroke-width: 1; }
.lm-school-liquid_base { fill: #d7eef8; stroke: #8eb8d4; stroke-width: 1; }
.lm-school-liquid_neutral { fill: #e7f0ec; stroke: #b7c9c2; stroke-width: 1; }
.lm-school-sun { fill: #f1c54f; stroke: #80651c; }
.lm-school-metal { fill: #3d4650; stroke: #3d4650; }
.lm-school-flame { fill: #3b96ff; stroke: none; }
.lm-school-blaze { stroke: none; }
.lm-school-scene rect.lm-school-cool { stroke: #193c34; stroke-width: 1; }
.lm-school-scene text { stroke: none; }
.lm-school-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.lm-school-buttons button { min-height: 44px; padding: 10px 20px; border: 1px solid #537e36; border-radius: 12px; background: #236324; color: white; font: inherit; cursor: pointer; }
.lm-school-buttons button[hidden] { display: none; }
.lm-tool-school :is(select, button):focus-visible { outline: 3px solid #ac451b; outline-offset: 3px; }
@media (max-width: 30rem) {
  .lm-tool { border-radius: 16px; }
  .lm-tool-stage-card,
  .lm-tool-plot-frame,
  .lm-tool-molecule-stage { border-radius: 16px; }
  .lm-tool-dock { border-radius: 17px; }
}

/* Shared icon actions across circuits, physics replays and school activities. */
.lm-tool .lm-tool-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  color: #315b2d;
  touch-action: manipulation;
}
.lm-tool .lm-tool-icon-button[hidden] { display: none; }
.lm-tool .lm-tool-icon-button:hover:not(:disabled) { background: #e3efdf; color: #236324; }
.lm-tool .lm-tool-icon-button:focus-visible { outline: 2px solid #537e36; outline-offset: 3px; }
.lm-tool .lm-tool-icon-button[aria-pressed="true"] { background: #dbead5; color: #236324; }
.lm-tool-action-icon { display: block; width: 22px; height: 22px; flex: none; pointer-events: none; }
.lm-school-buttons .lm-tool-icon-button { background: #edf5e8; border-color: #abc79d; }
@media (max-width: 480px) {
  .lm-tool-circuit .lm-tool-dock { width: max-content; }
  .lm-tool-circuit-scene { padding-bottom: 78px; }
}

/* Shared Labebo surfaces; subjects differ only in their small accent details. */
.lm-tool[data-subject="physics"] { --accent: #397986; }
.lm-tool[data-subject="chemistry"] { --accent: #397e87; }
.lm-tool[data-subject="biology"] { --accent: #548052; }
.lm-tool[data-subject="math"] { --accent: #786c95; }
.lm-tool[data-subject="earth_science"] { --accent: #8a7653; }
.lm-tool[data-subject] .lm-tool-source { color: var(--accent); }
.lm-tool-periodic { min-width: 0; }
.lm-atom-header { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.lm-atom-badge { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 62px; height: 70px; flex: 0 0 62px; border: 1px solid #c8dedd; border-radius: 16px; background: #eaf3ef; color: var(--accent); }
.lm-atom-badge small { font: 500 12px/1.3 system-ui, sans-serif; }
.lm-atom-badge strong { font: 600 28px/1.3 system-ui, sans-serif; }
.lm-tool .lm-atom-header h3 { font-size: 1.3rem; margin: 2px 0; }
.lm-atom-family { margin: 0; font-size: .82rem; color: var(--subtle); }
.lm-atom-layout { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
.lm-atom-visual { min-width: 0; margin: 0; padding: 14px 10px; border: 1px solid #dbe6df; border-radius: 22px; background: radial-gradient(ellipse at 50% 35%, #dfefea, #f6f9f5 68%); text-align: center; }
.lm-atom-scene { display: block; width: 100%; max-width: 520px; margin: auto; aspect-ratio: 1; overflow: visible; }
.lm-atom-ring { fill: none; stroke: #87acae70; stroke-width: .9; }
.lm-atom-electrons { transform-origin: 160px 160px; }
.lm-atom-halo { fill: #459baa30; }
.lm-atom-electron { fill: #438d9e; filter: drop-shadow(0 0 2px #62afc1); }
.lm-atom-spark { fill: #fff; }
.lm-atom-core-aura { fill: #6da39c18; }
.lm-atom-core { fill: var(--accent); filter: drop-shadow(0 0 7px #74a7a3); }
.lm-atom-core-symbol { fill: white; font: 600 21px system-ui, sans-serif; }
.lm-atom-protons { fill: var(--accent); font: 500 12px system-ui, sans-serif; }
.lm-atom-caption { display: flex; justify-content: center; align-items: baseline; gap: 7px; color: var(--subtle); font-size: .85rem; }
.lm-atom-caption strong { color: var(--ink); font-size: 1.55rem; font-weight: 500; }
.lm-atom-shells { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 8px 0 12px; }
.lm-atom-shells span { padding: 3px 8px; border: 1px solid #dae5e1; border-radius: 9px; color: var(--accent); background: #ffffffa1; font: 500 12px/1.4 system-ui, sans-serif; }
.lm-atom-actions { display: flex; justify-content: center; gap: 8px; }
.lm-atom-actions[hidden] { display: none; }
.lm-tool .lm-atom-actions button { border: 1px solid #d8e5dc; border-radius: 50%; background: #fff; color: var(--accent); }
.lm-tool .lm-atom-actions button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.lm-atom-information { display: grid; gap: 8px; min-width: 0; width: 100%; align-content: start; }
.lm-atom-properties { min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: visible; }
.lm-atom-properties summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 8px 14px; box-sizing: border-box; list-style: none; cursor: pointer; color: var(--accent); font-size: .85rem; }
.lm-atom-properties summary::-webkit-details-marker { display: none; }
.lm-atom-properties summary svg { width: 18px; height: 18px; flex: none; transform: rotate(90deg); }
.lm-atom-properties[open] summary svg { transform: rotate(-90deg); }
.lm-atom-properties summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.lm-atom-facts {
  display: grid;
  grid-template-columns: minmax(7rem, 1.1fr) minmax(4.5rem, 1fr);
  width: 100%;
  margin: 0;
  border-top: 1px solid var(--line);
  font-size: .85rem;
  color: var(--ink);
}
.lm-atom-facts dt, .lm-atom-facts dd {
  display: block;
  margin: 0;
  padding: 10px 14px;
  min-width: 0;
  min-height: 1.4em;
  overflow-wrap: anywhere;
  border-bottom: 1px solid var(--line);
  visibility: visible;
  opacity: 1;
}
.lm-atom-facts dt { font-weight: 400; color: var(--subtle); text-align: start; }
.lm-atom-facts dd { color: var(--ink); font-weight: 500; text-align: end; }
.lm-atom-facts dt:nth-of-type(even), .lm-atom-facts dd:nth-of-type(even) { background: #f5f8f7; }
.experience-studio .lm-atom-properties summary { padding: 8px 14px; color: var(--accent); font-size: .85rem; }
.lm-atom-model-note, .lm-atom-data-note { margin: 10px 14px; font-size: .78rem; line-height: 1.8; color: var(--subtle); }
.lm-atom-credit { align-items: center; min-height: 44px; margin-inline: 14px; font-size: .73rem; color: var(--accent); }
.lm-atom-dialog { box-sizing: border-box; width: calc(100vw - 24px); max-width: 1200px; height: calc(100dvh - 24px); max-height: calc(100dvh - 24px); padding: 12px; border: 1px solid #cfdfd7; border-radius: 24px; background: #f5f7f7; color: var(--ink); }
.lm-atom-dialog::backdrop { background: #193a365c; backdrop-filter: blur(5px); }
.lm-atom-dialog .lm-atom-visual { box-sizing: border-box; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: auto; }
.lm-atom-dialog .lm-atom-scene { width: min(100%, calc(100dvh - 210px)); max-width: 760px; flex-shrink: 0; }
.lm-atom-dialog .lm-atom-actions { flex-shrink: 0; }
@media (max-width: 600px) {
  .lm-atom-layout { gap: 12px; }
  .lm-atom-visual { padding: 8px 4px 12px; }
  .lm-atom-scene { max-width: 440px; }
  .lm-atom-dialog,.lm-atom-dialog:fullscreen { margin:0;padding:6px;width:100vw;max-width:none;height:100dvh;max-height:100dvh;border:0;border-radius:0; }
  .lm-atom-facts dt, .lm-atom-facts dd { padding: 9px 12px; }
}

@media (max-width: 480px) {
  .lm-atom-facts { grid-template-columns: minmax(0, 1fr); }
  .lm-atom-facts dt { padding-bottom: 2px; border-bottom: 0; }
  .lm-atom-facts dd { text-align: start; padding-top: 0; }
}

.lm-tools-group { margin-block: 1rem; color: #203438; }
.lm-tools-group > .lm-tool-note { color: #718285; font-size: .88rem; line-height: 1.7; }
.lm-tools-group > details { margin-block: .6rem; border: 1px solid #dbe7e2; border-radius: 18px; background: #f5f8f6; overflow: hidden; }
.lm-tools-group > details > summary { padding: .8rem 1rem; min-height: 44px; box-sizing: border-box; cursor: pointer; font-weight: 500; overflow-wrap: anywhere; }
.lm-tools-group > details > summary:focus-visible { outline: 2px solid #167466; outline-offset: -3px; }
.lm-tools-group > details .lm-tool { margin-top: 0; box-shadow: none; }

.lm-circuit-tools-toggle { position: absolute; inset-inline-end: 16px; top: 16px; z-index: 2; background: #fff; }
.lm-circuit-toolbox { position: absolute; inset-inline-end: 8px; top: 8px; bottom: 8px; width: min(310px, calc(100% - 16px)); box-sizing: border-box; overflow: auto; z-index: 6; padding: 12px; border: 1px solid #d2e4da; border-radius: 18px; background: #f5faf7; box-shadow: 0 8px 30px #20343833; }
.lm-circuit-toolbox[hidden] { display: none; }
.lm-circuit-toolbox-header { position: sticky; top: -12px; z-index: 1; background: #f5faf7; padding-block: 6px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lm-circuit-tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-block: 12px; }
.lm-circuit-toolbox .lm-tool-play { min-width: 44px; min-height: 44px; }
/* Compact component values; wiring is tucked into one disclosure. */
.lm-circuit-tool-grid { gap: 4px; margin-block: 4px 10px; }
.lm-circuit-add-battery { background: #deedda; border: 1px solid #bad3b0; }
.lm-circuit-part-row { display: flex; align-items: center; gap: 6px; padding-block: 5px; border-bottom: 1px solid #dce8e1; min-width: 0; }
.lm-circuit-part-name { flex: 0 0 62px; font-size: .78rem; line-height: 1.3; overflow-wrap: anywhere; }
.lm-circuit-parts label { display: flex; flex: 1; flex-direction: row-reverse; align-items: center; gap: 3px; min-width: 0; font-size: .75rem; }
.lm-circuit-parts input { width: 100%; min-width: 0; box-sizing: border-box; min-height: 44px; padding: 4px; border: 1px solid #b7d5c5; border-radius: 8px; background: white; color: #203438; font: inherit; font-size: 16px; }
.lm-circuit-parts .lm-tool-play { flex: 0 0 44px; padding: 4px; }
.lm-circuit-wires > summary { min-height: 44px; padding-block: 12px; box-sizing: border-box; font-size: .85rem; cursor: pointer; }

.lm-workshop-frame { padding: 0.9rem 1rem 1rem; }
.lm-workshop-stage { display: flex; flex-direction: column; gap: 12px; min-height: 0; height: auto; overflow: visible; border: 0; background: transparent; }
.lm-workshop-frame .experience-viewport { position: relative; inset: auto; display: block; min-height: 0; overflow: visible; }
.lm-workshop-dock { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.lm-workshop-dock button { min-height: 44px; min-width: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
.lm-workshop-hint { margin: 0; color: var(--ink); font-size: 0.95rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.lm-workshop-notes { margin: 0; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; background: #fff; color: var(--subtle); font-size: 0.92rem; }
.lm-workshop-notes summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.lm-prior-workshop { margin: 0.75rem 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.lm-prior-workshop > summary { cursor: pointer; min-height: 44px; padding: 10px 14px; font-weight: 650; }

.lm-burn { direction: ltr; display: flex; flex-direction: column; align-items: center; gap: 0.55rem; }
.lm-burn-equation { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.35rem 0.3rem; width: min(100%, 40rem); margin-inline: auto; padding: 0.7rem 0.45rem; border: 1px solid #c5ddd4; border-radius: 16px; background: #f7fbf8; }
.lm-burn-species { flex: 0 0 5.4rem; width: 5.4rem; }
.lm-burn-plus, .lm-burn-arrow { flex: 0 0 auto; color: #167466; font-size: 1.25rem; font-weight: 700; line-height: 1; }
.lm-burn-controls { display: flex; align-items: center; justify-content: center; gap: 0.35rem; }
.lm-burn-step { width: 2rem; height: 2rem; border-radius: 999px; border: 1px solid #6f8a86; background: #fff; color: #203438; font: inherit; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.lm-burn-step:disabled { opacity: 0.35; cursor: default; }
.lm-burn-count { min-width: 1rem; text-align: center; font-weight: 700; color: #203438; }
.lm-burn-molecules { display: flex; flex-wrap: wrap; gap: 0.15rem; justify-content: center; min-height: 2.6rem; margin-top: 0.25rem; }
.lm-burn-mol { width: 2.7rem; height: 2.7rem; overflow: visible; }
.lm-burn-bond { stroke: #7d8b86; stroke-width: 1.5; }
.lm-burn-C { fill: #3d4650; stroke: #22282e; stroke-width: 0.6; }
.lm-burn-O { fill: #e24b4b; stroke: #9d1d1d; stroke-width: 0.6; }
.lm-burn-H { fill: #f7fbff; stroke: #8ea0b3; stroke-width: 0.7; }
.lm-burn-formula { text-align: center; font-size: 0.78rem; color: #314844; margin-top: 0.15rem; }
.lm-burn-tally { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; }
.lm-burn-cell { padding: 0.2rem 0.55rem; border-radius: 999px; background: #f6d7d2; color: #7a2e24; font-size: 0.78rem; font-weight: 650; }
.lm-burn-cell.is-match { background: #d7f0df; color: #146041; }
.lm-burn-celebrate { text-align: center; }
.lm-burn-celebrate[hidden] { display: none; }
.lm-burn-success { margin: 0.25rem 0 0; color: #146041; font-size: 0.85rem; }
.lm-burn-flame { position: relative; width: 1.6rem; height: 2rem; margin: 0 auto; }
.lm-burn-flame i { position: absolute; left: 50%; bottom: 0; display: block; border-radius: 50% 50% 45% 45%; transform: translateX(-50%); transform-origin: center bottom; }
.lm-burn-flame i:nth-child(1) { width: 1.15rem; height: 1.85rem; background: linear-gradient(#fff6c2, #ffc247 42%, #ff5a12); animation: lm-burn-flicker 0.42s ease-in-out infinite alternate; }
.lm-burn-flame i:nth-child(2) { width: 0.55rem; height: 0.95rem; background: #3b96ff; animation: lm-burn-flicker 0.33s ease-in-out infinite alternate-reverse; }
.lm-burn-flame i:nth-child(3) { width: 0.26rem; height: 0.42rem; background: #d7ecff; }
@keyframes lm-burn-flicker { from { transform: translateX(-50%) scaleX(1); } to { transform: translateX(-50%) scaleX(0.82) translateY(-1px); } }
@media (prefers-reduced-motion: reduce) { .lm-burn-flame i { animation: none; } }