dialog {
  width: min(400px, calc(100vw - 32px));
  border: 0;
  border-radius: 10px;
  padding: 0;
  background: #fff;
  color: #27272c;
  box-shadow: 0 18px 50px #1e1d2433;
}

dialog::backdrop {
  background: #25232b70;
  backdrop-filter: blur(2px);
}

dialog form {
  position: relative;
  padding: 28px;
}

dialog h2 {
  margin: 0 0 7px;
  font-size: 20px;
  line-height: 1.35;
}

dialog p {
  margin: 0 0 23px;
  color: #898a92;
  font-size: 13px;
}

dialog label {
  display: block;
  margin-top: 15px;
  color: #27272c;
  font-size: 12px;
  font-weight: 600;
}

dialog input,
dialog select {
  display: block;
  width: 100%;
  height: 40px;
  margin-top: 7px;
  padding: 0 10px;
  border: 1px solid #dedbd7;
  border-radius: 6px;
  background: #fff;
  color: #27272c;
  font: 14px 'Noto Sans SC', sans-serif;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #777;
  cursor: pointer;
}

.dialog-close:hover { background: #f3f1ef; }
.dialog-close svg { width: 18px; }

.create {
  width: 100%;
  height: 42px;
  margin-top: 23px;
}

.custom-dimensions {
  display: grid;
  grid-template-columns: 1fr 20px 1fr;
  align-items: end;
  gap: 7px;
  margin-top: 15px;
}

.custom-dimensions label {
  margin: 0;
}

.custom-dimensions span {
  height: 40px;
  display: grid;
  place-items: center;
  color: #96979d;
}

.dimension-note {
  margin: 7px 0 0;
  color: #92939a;
  font-size: 11px;
}

.resize-current {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 6px;
  background: #f6f4f1;
}

.resize-current strong {
  color: #27272c;
  font-family: 'DM Mono', monospace;
}

.resize-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 17px;
}

.resize-presets button {
  height: 30px;
  border: 1px solid #e1ded9;
  border-radius: 5px;
  background: #fff;
  color: #65666c;
  font: 11px 'DM Mono', monospace;
  cursor: pointer;
}

.resize-presets button:hover,
.resize-presets button.active {
  border-color: #f15a63;
  background: #fff1f1;
  color: #d84954;
}
