/* AutoFileFolderPathBlockEditor */

.afp-editor {
  width: 100%;
  max-width: 52rem;
}

.afp-editor__field-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: flex-start;
  gap: 0.45rem 0.5rem;
  min-height: 5.5rem;
  padding: 0.55rem 0.65rem 0.45rem;
  box-sizing: border-box;
  border: 1px solid #dadde5;
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
}

.afp-editor__field-box:focus-within {
  border-color: #0a0a0a;
  box-shadow: 0 0 0 1px rgba(24, 100, 242, 0.15);
}

.afp-editor__input-placeholder {
  flex: 1 1 100%;
  min-height: 4.25rem;
  display: flex;
  align-items: center;
  padding: 0.35rem 0.2rem;
  margin: 0;
  font-size: 13px;
  color: #9aa3ad;
  line-height: 1.35;
  border-radius: 4px;
  border: 1px dashed #e4e7ec;
  background: #fafbfc;
  box-sizing: border-box;
}

.afp-editor__input-placeholder:hover {
  border-color: #d0d6de;
  background: #f5f6f8;
}

/* Invisible tail: drop to append at end of path */
.afp-editor__append-gap {
  flex: 1 1 2.5rem;
  min-width: 2rem;
  min-height: 1.75rem;
  align-self: stretch;
  border-radius: 4px;
  box-sizing: border-box;
}

.afp-editor__append-gap:hover {
  background: rgba(24, 100, 242, 0.06);
}

.afp-editor__pile-caption {
  margin: 0.65rem 0 0.3rem 0;
  padding: 0;
  font-size: 11px;
  font-weight: 600;
  color: #8b939c;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.afp-editor__pile {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.5rem;
  align-items: center;
  padding: 0.6rem 0.65rem;
  border: 1px dashed #c8ced6;
  border-radius: 4px;
  background-color: #f0f1f4;
  min-height: 2.85rem;
  box-sizing: border-box;
  transition: background-color 0.15s, border-color 0.15s;
}

/* Pills */
.afp-editor .afp-editor__block {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.55rem;
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: #2f343a;
  background-color: #dde0e6;
  border: 1px solid #b8c0ca;
  border-radius: 6px;
  cursor: grab;
  user-select: none;
  max-width: 100%;
  word-break: break-word;
  vertical-align: middle;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 1px 2px rgba(45, 52, 60, 0.08);
  box-sizing: border-box;
}

.afp-editor .afp-editor__block:active {
  cursor: grabbing;
}

.afp-editor .afp-editor__block--in-field {
  border-color: #a8b0ba;
  background-color: #e4e7ed;
}

.afp-editor .afp-editor__block--in-field:hover {
  border-color: #0a0a0a;
  background-color: #e8eef8;
}

.afp-editor .afp-editor__block--pile.afp-editor__block--replenish {
  border-style: dashed;
  border-color: #9aa3ad;
  background-color: #d8dce3;
}

.afp-editor .afp-editor__block--pile:hover {
  background-color: #d0d4dc;
  border-color: #a8b0ba;
}

.afp-editor__error {
  margin-top: 0.35rem;
  font-size: 12px;
  color: #c62828;
}

@media (max-width: 640px) {
  .afp-editor__field-box {
    min-height: 4.5rem;
    gap: 0.4rem 0.45rem;
  }

  .afp-editor .afp-editor__block {
    font-size: 10px;
    padding: 0.22rem 0.45rem;
  }
}
