/** 入力はアカウントと量を並べ、画像ボタンは元の比率を守って表示する。 */
#handle-form {
  grid-template-columns: minmax(0, 1fr) 110px minmax(210px, 32%);
  align-items: center;
}
#handle-form .handle-field {
  min-width: 0;
}
#handle-form .handle-field input {
  min-width: 0;
  width: 100%;
}
.quantity-field {
  min-width: 0;
  min-height: 46px;
  background: url('./assets/ui/quantity.webp') center / contain no-repeat;
}
#post-limit {
  width: 100%;
  min-height: 46px;
  padding: 0 23px 0 18px;
  appearance: none;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--ink);
  font: 700 14px/1.4 var(--sans);
  text-align: center;
  cursor: pointer;
}
#post-limit:focus-visible {
  outline: 3px solid #b78340;
  outline-offset: 2px;
}
#post-limit:disabled {
  cursor: wait;
  opacity: .5;
}
#quantity-help {
  display: inline-block;
  margin-left: 1em;
  white-space: nowrap;
}

/* 1000×198pxの原画。幅だけを指定し、画像の縦横比は変更しない。 */
.tasting-sheet .menu-actions {
  display: flex;
  justify-content: center;
}
#save-open,
#save-open:hover:not(:disabled),
#save-open:active:not(:disabled),
#save-open:focus-visible {
  width: min(100%, 250px);
  height: auto;
  min-height: 0;
  aspect-ratio: 500 / 99;
  flex: 0 1 250px;
  padding: 0 38px;
  background: var(--ui-primary) center / contain no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1.4;
}

/* マスターの顔の上から退け、写真の左下の空白にセット中のせりふを置く。 */
body[data-scene='set'] .brewing-caption {
  top: auto;
  bottom: clamp(24px, 5vh, 52px);
  left: 5.5%;
  right: auto;
  width: min(530px, 43%);
  max-width: none;
}
body[data-scene='set'] .brewing-caption h2 {
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.5;
  text-wrap: balance;
}
body[data-scene='set'] .brewing-caption p {
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  #handle-form {
    grid-template-columns: minmax(0, 1fr) 88px;
    gap: 7px;
  }
  #handle-form .handle-field {
    padding-inline: 20px;
  }
  #fetch-button {
    grid-column: 1 / -1;
  }
  .quantity-field,
  #post-limit {
    min-height: 44px;
  }
  #post-limit {
    padding-inline: 13px 18px;
    font-size: 12px;
  }
  #quantity-help {
    margin-left: .6em;
  }
  body[data-scene='set'] .brewing-caption {
    top: auto;
    bottom: 24px;
    left: 22px;
    right: 22px;
    width: auto;
    max-width: none;
  }
  body[data-scene='set'] .brewing-caption h2 {
    font-size: 24px;
  }
  body[data-scene='set'] .brewing-caption p {
    font-size: 12px;
    line-height: 1.7;
  }
}
