:root {
  --tool-ui-line: #cfcfcf;
  --tool-ui-muted: #696969;
}

:where(body[data-tool-ui], body[data-tool-ui] *) {
  letter-spacing: -0.04em;
  font-kerning: normal;
}

body[data-tool-ui] :where(button, input, select, textarea, output, summary) {
  font-family: Manrope, "Manrope Variable", Arial, sans-serif;
  box-shadow: none;
}

body[data-tool-ui] :where(
  .topbar,
  .settings-panel,
  .cover-panel,
  .guided-demo,
  .detail-toolbar,
  .presentation-controls,
  .sidebar,
  aside,
  .tune-surface,
  .identity-panel
) :where(button, input:not([type="range"]), select, textarea) {
  border-radius: 0;
  box-shadow: none;
}

body[data-tool-ui] :where(
  .settings-panel,
  .cover-panel,
  .guided-demo,
  .detail-toolbar,
  .sidebar,
  aside,
  .tune-surface
) input[type="range"] {
  --tool-progress: 50%;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: ew-resize;
  touch-action: pan-y;
}

body[data-tool-ui] :where(
  .settings-panel,
  .cover-panel,
  .guided-demo,
  .detail-toolbar,
  .sidebar,
  aside,
  .tune-surface
) input[type="range"]::-webkit-slider-runnable-track {
  height: 1px;
  border: 0;
  background: linear-gradient(to right, #000 var(--tool-progress), #ccc var(--tool-progress));
}

body[data-tool-ui] :where(
  .settings-panel,
  .cover-panel,
  .guided-demo,
  .detail-toolbar,
  .sidebar,
  aside,
  .tune-surface
) input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 8px;
  height: 8px;
  margin-top: -3.5px;
  border: 1px solid #000;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 8px transparent;
}

body[data-tool-ui] :where(
  .settings-panel,
  .cover-panel,
  .guided-demo,
  .detail-toolbar,
  .sidebar,
  aside,
  .tune-surface
) input[type="range"]::-moz-range-track {
  height: 1px;
  border: 0;
  background: #ccc;
}

body[data-tool-ui] :where(
  .settings-panel,
  .cover-panel,
  .guided-demo,
  .detail-toolbar,
  .sidebar,
  aside,
  .tune-surface
) input[type="range"]::-moz-range-progress {
  height: 1px;
  background: #000;
}

body[data-tool-ui] :where(
  .settings-panel,
  .cover-panel,
  .guided-demo,
  .detail-toolbar,
  .sidebar,
  aside,
  .tune-surface
) input[type="range"]::-moz-range-thumb {
  width: 7px;
  height: 7px;
  border: 1px solid #000;
  border-radius: 50%;
  background: #fff;
}

body[data-tool-ui="orbit-field"] :where(
  .section-title,
  .more-controls summary,
  .appearance-section summary,
  .canvas-controls summary,
  .material-controls summary,
  .lighting-controls summary,
  .canvas__toolbar > span,
  .canvas-loader
) {
  text-transform: none;
  letter-spacing: -0.04em;
}

body[data-tool-ui="orbit-field"] .sidebar :where(button, .select-button, .clear-button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  box-shadow: none;
  text-align: center;
}

body[data-tool-ui="orbit-field"] .reset-button {
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--tool-ui-line);
  background: #fff;
  text-align: center;
}

body[data-tool-ui="orbit-field"] .reset-button:hover {
  border-color: #000;
  background: #000;
  color: #fff;
}

body[data-tool-ui="paint-mixer"] aside button,
body[data-tool-ui="paint-mixer"] header button,
body[data-tool-ui="paint-mixer"] footer button {
  border-radius: 0;
  box-shadow: none;
}
