.lg-demo {
  --lg-ink: #293e32;
  --lg-green: #267d68;
  color: var(--lg-ink);
  background: #f7f6ec;
  border: 1px solid #dce3d4;
  border-radius: 22px;
  padding: clamp(16px, 3vw, 28px);
  margin-block: 20px;
  font-family: inherit;
}
.lg-demo-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 16px 22px; margin-bottom: 22px; }
.lg-demo-control { flex: 1 1 160px; min-width: 0; }
.lg-demo-control label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: 12px; font-weight: 650; line-height: 1.4; }
.lg-demo-control output { min-width: 40px; text-align: right; color: #267d68; font-variant-numeric: tabular-nums; }
.lg-demo-control input[type="range"] { display: block; width: 100%; min-height: 28px; margin: 0; accent-color: #267d68; cursor: pointer; }
.lg-demo-control select { width: 100%; min-height: 42px; padding: 8px 28px 8px 12px; background: #fffdf6; color: #293e32; border: 1px solid #cbd6c7; border-radius: 10px; font: inherit; font-size: 13px; cursor: pointer; }
.lg-demo-button { min-height: 42px; border: 1px solid #267d68; border-radius: 999px; padding: 10px 18px; background: #267d68; color: #fffdf6; font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; }
.lg-demo-button-secondary { background: transparent; color: #267d68; border-color: #b8cdbb; }
.lg-demo-button:hover { background: #1e6453; color: #fffdf6; }
.lg-demo-button:disabled { opacity: 0.5; cursor: default; }
.lg-demo :is(button, select, input):focus-visible { outline: 3px solid #c48730; outline-offset: 4px; }
.lg-demo-stage { width: 100%; border-radius: 14px; overflow: hidden; background: #fffdf7; }
.lg-demo-stage svg { display: block; width: 100%; height: auto; min-height: 170px; font-family: inherit; }
.lg-demo-stage svg text { font-family: inherit; font-size: 13px; fill: #35483a; }
.lg-demo-stage svg text[font-size="11"] { font-size: 11px; }
.lg-demo-stage svg text[font-size="12"] { font-size: 12px; }
.lg-demo-stage svg text[font-size="24"] { font-size: 24px; }
.lg-demo-stage svg text[fill="#ffffff"] { fill: #ffffff; }
.lg-demo-stage svg text[fill="#267d68"] { fill: #267d68; }
.lg-demo-stage svg text[fill="#956422"] { fill: #956422; }
.lg-demo-stage svg text[fill="#c48730"] { fill: #996821; }
.lg-demo-stage svg text[fill="#8770b7"] { fill: #756099; }
.lg-gridline { stroke: #e9ebdf; stroke-width: 1; }
.lg-axis { stroke: #cbd3c3; stroke-width: 1.3; }
.lg-demo-readout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.lg-demo-readout > div { display: flex; flex-direction: column; gap: 5px; padding: 12px; border-radius: 12px; background: #eaf0e3; min-width: 0; }
.lg-demo-readout span { font-size: 10px; line-height: 1.4; color: #546b55; }
.lg-demo-readout strong { font-size: clamp(16px, 3vw, 22px); font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.25; overflow-wrap: anywhere; }
.lg-demo-caption { margin: 16px 0 0; font-size: 12px; line-height: 1.7; color: #5c6b5b; }
@media (max-width: 480px) {
  .lg-demo { padding: 12px; border-radius: 16px; }
  .lg-demo-controls { gap: 12px; }
  .lg-demo-control { flex-basis: 130px; }
  .lg-demo-readout { gap: 6px; }
  .lg-demo-readout > div { padding: 9px 7px; }
  .lg-demo-stage { overflow-x: auto; }
  .lg-demo-stage svg { min-width: 420px; }
}
@media (prefers-reduced-motion: reduce) { .lg-demo * { transition: none !important; animation: none !important; } }
body.motion-off .lg-demo *, .lg-demo-static * { transition: none !important; animation: none !important; }
