/* Native placeholders remain readable and disappear as soon as a value is entered. */
body.atelier #blend-form :is(input,textarea)::placeholder {
  color: #536454;
  opacity: 1;
}

/* One percentage value, shared by typing, slider and explicit one-point steps. */
body.atelier #blend-form .blend-percent {
  flex: 0 0 98px;
  align-items: center;
  gap: 4px;
}

body.atelier #blend-form .blend-percent input {
  width: 48px;
  font-variant-numeric: tabular-nums;
}

body.atelier #blend-form .blend-percent-steps {
  display: grid;
  grid-template-rows: repeat(2,24px);
  width: 24px;
  flex: 0 0 24px;
  margin-left: 4px;
}

body.atelier #blend-form .blend-percent-step {
  display: grid;
  place-items: center;
  width: 24px;
  min-width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  border: 1px solid #a4af9c;
  border-radius: 0;
  background: transparent;
  color: #193a29;
  cursor: pointer;
  touch-action: manipulation;
}

body.atelier #blend-form .blend-percent-step:first-child {
  border-radius: 4px 4px 0 0;
}

body.atelier #blend-form .blend-percent-step:last-child {
  border-top: 0;
  border-radius: 0 0 4px 4px;
}

body.atelier #blend-form .blend-percent-step:disabled {
  color: #7b877b;
  cursor: default;
}

body.atelier #blend-form .blend-percent-step:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid #193a29;
  outline-offset: 2px;
}

@media (hover:hover) {
  body.atelier #blend-form .blend-percent-step:hover:not(:disabled) {
    color: #eeebe2;
    background: #193a29;
    border-color: #193a29;
  }
}

@media (max-width:380px) {
  body.atelier #blend-form .blend-row-top {
    display: grid;
    grid-template-columns: 10px minmax(0,1fr) 34px;
    gap: 10px 9px;
  }

  body.atelier #blend-form .blend-row-dot { grid-column: 1; grid-row: 1; }
  body.atelier #blend-form .blend-row-title { grid-column: 2; grid-row: 1; }
  body.atelier #blend-form .blend-remove { grid-column: 3; grid-row: 1; }
  body.atelier #blend-form .blend-percent { grid-column: 2 / -1; grid-row: 2; justify-self: end; }
}
