#pg-creator #me-favorites-panel > .me-panel-head {
  align-items: center;
  padding-block: 10px;
}

#pg-creator .me-favorite-folder-actions :is(#me-fav-create, #me-fav-delete) {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding-inline: 9px;
  border-radius: 5px;
  font: 550 12px/1.25 var(--font-ui);
}

#pg-creator .me-favorite-folder-actions :is(#me-fav-create, #me-fav-delete)[hidden] {
  display: none;
}

#pg-creator .me-favorite-folder-actions #me-fav-create .rw-icon {
  flex: none;
  width: 13px;
  height: 13px;
  color: var(--me-teal);
}

#pg-creator .me-favorite-folder-actions :is(#me-fav-create, #me-fav-delete):focus-visible,
:is(#favorite-create-dialog, #pg-creator #me-fav-delete-dialog) :is(input, button):focus-visible {
  outline: 2px solid #087f79;
  outline-offset: 2px;
}

:is(#favorite-create-dialog, #me-fav-delete-dialog) {
  --favorite-line: #cbd7d9;
  --favorite-ink: #172d38;
  --favorite-accent: #087f79;
  --favorite-accent-hover: #066e69;
}

#pg-creator #me-fav-delete-dialog {
  --favorite-accent: var(--me-danger, #a13d42);
  --favorite-accent-hover: #8d3035;
}

#favorite-create-dialog {
  position: fixed;
  inset: 0;
  width: min(360px, calc(100vw - 32px));
  height: fit-content;
  max-height: calc(100dvh - 32px);
  max-width: none;
  margin: auto;
  padding: 0;
  border: 1px solid #d9e2e4;
  border-radius: 10px;
  background: #fff;
  color: var(--favorite-ink);
  box-shadow: 0 16px 48px rgba(7, 24, 32, .21);
  font: 400 14px/1.45 var(--font-ui, system-ui);
}

#favorite-create-dialog::backdrop {
  background: rgba(7, 24, 32, .44);
}

#favorite-create-dialog form {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 16px;
}

#favorite-create-dialog header {
  display: flex;
  align-items: center;
  gap: 8px;
}

#favorite-create-dialog h2 {
  margin: 0;
  font: 650 16px/1.35 var(--font-ui, system-ui);
  color: inherit;
}

#favorite-create-dialog .favorite-create-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 5px;
  background: #e9f5f3;
  color: var(--favorite-accent);
}

#favorite-create-dialog .favorite-create-icon .rw-icon {
  width: 16px;
  height: 16px;
}

#favorite-create-dialog .favorite-create-field {
  display: grid;
  gap: 6px;
}

#favorite-create-dialog label {
  color: #536973;
  font-size: 12px;
  font-weight: 550;
}

#favorite-create-dialog input {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 6px 9px;
  border: 1px solid var(--favorite-line);
  border-radius: 5px;
  background: #fff;
  color: inherit;
  font: inherit;
}

#favorite-create-dialog input::placeholder {
  color: #667983;
}

#favorite-create-dialog input[aria-invalid="true"] {
  border-color: #a13d42;
}

#favorite-create-error {
  margin: 0;
  color: #a13d42;
  font-size: 12px;
  overflow-wrap: anywhere;
}

#favorite-create-error:empty {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#favorite-create-dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  padding-top: 3px;
}

#pg-creator #me-fav-delete-dialog footer {
  gap: 7px;
  padding-block: 10px 12px;
}

#me-fav-delete-dialog .me-password-fields {
  row-gap: 8px;
}

#me-fav-delete-dialog .favorite-delete-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 2px 0;
  color: var(--favorite-ink);
  font: 550 13px/1.45 var(--font-ui, system-ui);
  cursor: pointer;
}

#me-fav-delete-dialog .favorite-delete-option input {
  appearance: auto;
  flex: none;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--me-danger, #a13d42);
}

:is(#favorite-create-dialog, #pg-creator #me-fav-delete-dialog) footer button {
  width: auto;
  min-width: 58px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--favorite-line);
  border-radius: 5px;
  background: #fff;
  color: inherit;
  font: 600 12px/1.3 var(--font-ui, system-ui);
  cursor: pointer;
}

:is(#favorite-create-dialog, #pg-creator #me-fav-delete-dialog) footer button[type="submit"] {
  border-color: var(--favorite-accent);
  background: var(--favorite-accent);
  color: #fff;
}

:is(#favorite-create-dialog, #pg-creator #me-fav-delete-dialog) footer button:hover:not(:disabled) {
  border-color: var(--favorite-accent-hover);
}

:is(#favorite-create-dialog, #pg-creator #me-fav-delete-dialog) footer button[type="submit"]:hover:not(:disabled) {
  background: var(--favorite-accent-hover);
}

:is(#favorite-create-dialog, #pg-creator #me-fav-delete-dialog) footer button:disabled {
  opacity: .6;
  cursor: wait;
}

@media (pointer: coarse) {
  #pg-creator .me-favorite-folder-actions :is(#me-fav-create, #me-fav-delete),
  #favorite-create-dialog input,
  #me-fav-delete-dialog .favorite-delete-option,
  :is(#favorite-create-dialog, #pg-creator #me-fav-delete-dialog) footer button {
    min-height: 44px;
  }

  #favorite-create-dialog input {
    font-size: 16px;
  }
}

#pg-creator #me-view-favorites #me-fav-folders .ff-folder.on{background:#e6f3f1;color:var(--ed-ink);box-shadow:none}
