.app-dialog {
  padding: 0;
  max-width: calc(100vw - 30px);
  background: #ffffff;
  color: var(--text);
  overflow: auto;
}
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #efefef;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 10;
}
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid #efefef;
  position: sticky;
  bottom: 0;
  z-index: 10;
}
.field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.field > span:first-child {
  font-weight: 600;
}
.field input:not([type="color"]) {
  border: 1px solid #e3e3e3;
  width: 100%;
  transition: border-color 0.15s;
}
.field select {
  border: 1px solid #e3e3e3;
  width: 100%;
  transition: border-color 0.15s;
}
.field textarea {
  border: 1px solid #e3e3e3;
  width: 100%;
  transition: border-color 0.15s;
}
.field input:focus {
  background: #ffffff;
  outline: 2px solid #8f8f8f33;
  outline-offset: 0;
}
.field select:focus {
  background: #ffffff;
  outline: 2px solid #8f8f8f33;
  outline-offset: 0;
}
.field textarea:focus {
  background: #ffffff;
  outline: 2px solid #8f8f8f33;
  outline-offset: 0;
}
.field > small {
  line-height: 1.8;
}
.field-note {
  line-height: 1.8;
  margin: 0 0 16px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.form-error {
  border: 1px solid #dddddd;
  padding: 12px 14px;
  margin: 12px 27px;
  line-height: 1.7;
}
.color-field {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #e3e3e3;
}
.color-field input {
  width: 28px;
  height: 27px;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}
.account-detail {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 14px;
}
.account-detail .avatar {
  width: 48px;
  height: 48px;
  font-size: 17px;
}
.account-detail p {
  font-size: 12px;
  margin-top: 4px;
}
@media (max-width: 700px) {
  .app-dialog {
    max-width: calc(100vw - 22px);
  }

  .dialog-actions .button-delete {
    margin-right: auto;
  }

  .dialog-actions .button-delete > .icon {
    width: 18px;
    height: 18px;
  }

  .form-error {
    margin: 12px 19px;
  }
}
.app-dialog {
  width: 540px;
  max-height: calc(100vh - 44px);
  border: 0;
  border-radius: 25px;
  box-shadow: 0 25px 90px #26301c33;
}
.dialog-wide {
  width: 610px;
}
.app-dialog::backdrop {
  background: #24311866;
  backdrop-filter: blur(4px);
}
.dialog-header {
  padding: 25px 28px 21px;
  border-color: #edf2e6;
}
.dialog-header h2 {
  font-size: 23px;
}
.dialog-header > .icon-button {
  background: #f2f6eb;
  border-radius: 50%;
}
.dialog-body {
  padding: 26px 28px 13px;
}
.dialog-actions {
  padding: 20px 28px;
  background: #f8fbf3;
  border-color: #e9f0df;
}
.field {
  gap: 8px;
  margin-bottom: 20px;
}
.field > span:first-child {
  font-size: 12px;
}
.field input:not([type="color"]) {
  font-size: 13px;
  padding: 11px 13px;
  border-radius: 10px;
  background: #fff;
}
.field select {
  font-size: 13px;
  padding: 11px 13px;
  border-radius: 10px;
  background: #fff;
}
.field textarea {
  font-size: 13px;
  padding: 11px 13px;
  border-radius: 10px;
  background: #fff;
}
.field input:focus {
  border-color: #9bbe73;
  outline-color: #c7f46455;
}
.field select:focus {
  border-color: #9bbe73;
  outline-color: #c7f46455;
}
.field textarea:focus {
  border-color: #9bbe73;
  outline-color: #c7f46455;
}
.field > small {
  font-size: 10px;
}
.field-note {
  font-size: 10px;
}
.form-grid {
  gap: 17px;
}
.color-field {
  padding: 9px;
  border-radius: 10px;
  border-color: #e1ead5;
  background: #fff;
}
.color-field > span {
  font-size: 10px;
}
.form-error {
  background: #fcf0eb;
  border-color: #f1d8ce;
  color: #a65d51;
  border-radius: 11px;
  font-size: 12px;
}
.field > small {
  color: #7d8177;
}
.field-note {
  color: #7d8177;
}
.color-field > span {
  color: #7d8177;
}
.field input:not([type="color"]) {
  border-color: #e0e5d8;
}
.field select {
  border-color: #e0e5d8;
}
.field textarea {
  border-color: #e0e5d8;
}
.field > span:first-child {
  color: #737e67;
}
@media (max-width: 700px) {
  .field > span:first-child {
    font-size: 11px;
  }

  .field input:not([type="color"]) {
    font-size: 12px;
    padding: 11px;
  }

  .field select {
    font-size: 12px;
    padding: 11px;
  }

  .field textarea {
    font-size: 12px;
    padding: 11px;
  }

  .field-note {
    font-size: 9px;
  }

  .field > small {
    font-size: 9px;
  }

  .form-grid {
    gap: 13px;
  }

  .app-dialog {
    border-radius: 20px;
  }

  .dialog-header {
    padding: 22px 20px 17px;
  }

  .dialog-header h2 {
    font-size: 21px;
  }

  .dialog-body {
    padding: 23px 20px 11px;
  }

  .dialog-actions {
    padding: 17px 20px;
    gap: 9px;
  }

  .dialog-actions .button {
    font-size: 10px;
    padding: 11px 13px;
  }

  .dialog-actions .button-delete {
    font-size: 0;
    padding: 10px 5px;
  }
}
