/* 素材選択と案内画面のダイアログ、および操作結果の通知を表示します。 */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(30, 36, 34, 0.29);
  backdrop-filter: blur(4px);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
}
.backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 105%);
  z-index: 45;
  width: min(100%, 470px);
  max-height: min(88vh, 760px);
  overflow: auto;
  border-radius: 31px 31px 0 0;
  background: #f5f3ec;
  padding: 19px 19px calc(26px + var(--bottom));
  box-shadow: 0 -25px 70px rgba(39, 48, 45, 0.2);
  transition: transform 0.3s cubic-bezier(0.22, 0.74, 0.2, 1);
}
.sheet.open {
  transform: translate(-50%, 0);
}
.handle {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: rgba(39, 48, 45, 0.18);
  margin: 0 auto 18px;
}
.sheet-close {
  position: absolute;
  right: 18px;
  top: 18px;
}
.sheet h3 {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 27px;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin: 12px 0 8px;
}
.sheet > p {
  font-size: 11px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0 45px 17px 0;
}
.material-tabs {
  display: flex;
  gap: 7px;
  overflow: auto;
  margin-bottom: 13px;
}
.material-tab {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 9px;
  white-space: nowrap;
  cursor: pointer;
}
.material-tab.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.material-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.material-option {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  border: 1px solid rgba(39, 48, 45, 0.1);
  border-radius: 18px;
  background: rgba(250, 249, 244, 0.7);
  padding: 11px;
}
.material-wave {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--accent, var(--moss));
  font-size: 16px;
  overflow: hidden;
}
.material-option strong {
  font-size: 12px;
}
.material-option span {
  font-size: 9px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.material-option-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.material-preview {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(39, 48, 45, 0.06);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.material-add {
  height: 38px;
  border: 0;
  border-radius: 13px;
  background: var(--moss-deep);
  color: #fff;
  padding: 0 13px;
  font-size: 9px;
  cursor: pointer;
}
.material-add:disabled {
  background: rgba(39, 48, 45, 0.07);
  color: var(--faint);
  cursor: default;
}
.info-card {
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(250, 249, 244, 0.58);
  padding: 14px;
  margin-top: 10px;
}
.info-card b {
  font-size: 12px;
}
.info-card p {
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted);
  margin: 7px 0 0;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(101px + var(--bottom));
  transform: translate(-50%, 18px);
  z-index: 70;
  width: max-content;
  max-width: calc(100% - 38px);
  background: rgba(39, 48, 45, 0.95);
  color: #f7f5ef;
  border-radius: 15px;
  padding: 11px 15px;
  font-size: 10px;
  line-height: 1.45;
  box-shadow: 0 13px 35px rgba(39, 48, 45, 0.24);
  opacity: 0;
  pointer-events: none;
  transition: 0.22s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
