.weave-sparks, .weave-spark-trails {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 25;
  overflow: hidden;
  pointer-events: none;
  color: var(--spark-color, #cc9e6d);
}
.weave-spark-trails { z-index: 24; }
.weave-sparks {
  --spark-warm: color-mix(in srgb, var(--spark-color, #cc9e6d) 65%, #e5af64);
}
.spark-halo {
  fill: url(#weave-spark-light);
  opacity: var(--spark-glow-opacity);
  r: var(--spark-halo-radius, 16px);
}
.spark-ray { fill: color-mix(in srgb, var(--spark-color) 83%, #fff); }
.spark-core { fill: color-mix(in srgb, var(--spark-color) 36%, #fff); }
.spark-sun-ray { fill: #fff7da; }
.spark-sun-cross { fill: var(--spark-warm); opacity: 0.85; }
.ornament-controls { display: flex; align-items: flex-end; gap: 6px; }
.spark-panel { width: min(380px, calc(100vw - 36px)); }
.spark-panel h2 { margin-bottom: 14px; }
.spark-toolbar,
.spark-colors { display: flex; align-items: center; gap: 10px; }
.spark-toolbar { padding-bottom: 12px; border-bottom: 1px solid #1c302730; }
.spark-toolbar button,
.spark-panel .spark-reset {
  min-height: 44px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.spark-launch { background: #1c3027; color: #eee1d0; border: 1px solid #1c3027; padding: 8px 14px; }
.spark-launch:hover { background: #324940; }
.spark-panel .spark-auto,
.spark-panel .spark-custom {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  min-height: 44px;
  cursor: pointer;
}
.spark-auto input { width: 17px; height: 17px; accent-color: #1c3027; }
.spark-note { font-size: 13px; color: #465248; line-height: 1.35; margin: 10px 0 0; }
.spark-note:empty, .spark-note[hidden] { display: none; }
.spark-choices { display: grid; grid-template-columns: 0.83fr 1.17fr; gap: 10px; margin: 14px 0 4px; }
.spark-block-choice { grid-column: 1 / -1; }
.spark-choices select {
  display: block;
  margin-top: 4px;
  padding: 4px 6px;
  height: 44px;
  font-size: 14px;
  appearance: auto;
}
.spark-ranges { display: grid; gap: 3px; }
.spark-ranges label.ornament-range-label { margin-bottom: 0; }
.spark-ranges output { font-variant-numeric: tabular-nums; }
.spark-ranges input[type="range"] { height: 32px; accent-color: #647665; }
.spark-palette { border: 0; border-top: 1px solid #1c302730; margin: 10px 0 0; padding: 5px 0 0; min-width: 0; }
.spark-palette legend { padding-right: 8px; font-size: 14px; }
.spark-colors { flex-wrap: wrap; gap: 2px; }
.spark-colors button {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; background: none; cursor: pointer;
}
.spark-colors button::before {
  content: ""; width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid #1c302749; background: var(--swatch);
}
.spark-colors button[aria-pressed="true"]::before { outline: 1px solid #1c3027; outline-offset: 3px; }
.spark-panel .spark-custom { margin-left: 8px; }
.spark-custom input { width: 34px; height: 32px; padding: 1px; border: 1px solid #1c302755; background: transparent; cursor: pointer; }
.spark-panel .spark-reset { border: 0; padding: 3px 0; color: #344b3d; background: none; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) {
  .spark-panel { width: min(380px, calc(100vw - 24px)); }
  .spark-choices select { font-size: 16px; }
  .spark-ranges input[type="range"] { height: 40px; }
  .spark-toolbar, .spark-colors { flex-wrap: wrap; }
}
@media print {
  .weave-sparks, .weave-spark-trails, .ornament-controls { display: none; }
}
