* { -webkit-tap-highlight-color: transparent; }
body { font-family: "Inter", "Noto Sans JP", system-ui, sans-serif; }

.preset-chip {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12px;
  border: 1px solid #475569;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.6);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.preset-chip:hover { border-color: #94a3b8; }
.preset-chip.bg-white { background: #fff; color: #0f172a; border-color: #fff; }

.panel {
  border: 1px solid #1e293b;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.6);
  padding: 12px 16px;
}
.panel summary {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: #e2e8f0;
  cursor: pointer; list-style: none; user-select: none;
}
.panel summary::-webkit-details-marker { display: none; }
.panel summary::after {
  content: "▾"; margin-left: auto; color: #64748b; font-size: 12px;
}
.panel:not([open]) summary::after { content: "▸"; }
.panel-body { margin-top: 14px; display: flex; flex-direction: column; gap: 14px; }

.ctl > .ctl-h {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: #cbd5e1; margin-bottom: 4px;
}
.ctl-h span:last-child { color: #94a3b8; font-size: 11px; width: 28px; text-align: right; font-variant-numeric: tabular-nums; }
.ctl-h > span:first-child { display: inline-flex; align-items: center; gap: 6px; }

.color-dot {
  inline-size: 18px; block-size: 18px; padding: 0;
  border: 1px solid #475569; border-radius: 6px;
  background: transparent; cursor: pointer; vertical-align: -3px;
}
.color-dot::-webkit-color-swatch-wrapper { padding: 1px; }
.color-dot::-webkit-color-swatch { border: none; border-radius: 4px; }
.color-dot::-moz-color-swatch { border: none; border-radius: 4px; }

input[type="range"] {
  width: 100%; height: 6px; border-radius: 9999px;
  appearance: none; -webkit-appearance: none;
  background: #334155; cursor: pointer; outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; border-radius: 9999px;
  background: #fb7185; border: 2px solid #020617;
  box-shadow: 0 1px 2px rgba(0,0,0,.4);
}
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 9999px;
  background: #fb7185; border: 2px solid #020617;
}

canvas, video { display: block; }
