.editor-intro,
.editor-photos {
  border: 1px solid #dfe9e4;
  border-radius: 16px;
  padding: clamp(18px, 3vw, 34px);
}

.editor-intro h2,
.editor-photos h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.editor-intro label,
.editor-intro #ad-title-help,
.editor-photos .editor-help {
  font-size: .875rem;
}

.editor-intro #ad-title {
  border-radius: 9px;
  font-size: 1rem;
}

.editor-intro .field-meta,
.editor-photos .photo-meta {
  color: #49665e;
  font-size: .8125rem;
}

.editor-category-open {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid #bed6cf;
  border-radius: 10px;
  background: #eef7f4;
  color: #164b43;
  font-size: .9375rem;
  font-weight: 700;
  text-align: start;
}

.editor-category-open:hover { background: #e2f1ec; }

.editor-category-chevron {
  width: 10px;
  height: 10px;
  flex: none;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-2px, -2px);
}

.editor-category-dialog {
  width: min(1040px, calc(100% - 32px));
  max-height: min(86vh, 750px);
  padding: clamp(16px, 3vw, 30px);
  border: 1px solid #cbded6;
  border-radius: 21px;
  color: var(--ink);
}

.editor-category-dialog::backdrop { background: rgb(11 35 31 / 59%); }

.editor-category-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.editor-category-head h2 {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.625rem);
}

.editor-category-close {
  flex: 0 0 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #edf5f1;
  color: #164b43;
  font-size: 1.5rem;
  line-height: 1;
}

.editor-category-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 13px;
  margin-bottom: 16px;
  border: 1px solid #c2d9d0;
  border-radius: 10px;
  color: #275e51;
  background: #f5faf7;
}

.editor-category-search:focus-within {
  border-color: #367565;
  box-shadow: 0 0 0 2px #cce4dc;
}

.editor-category-search .icon { flex: none; }

.editor-category-search input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 0;
  outline: none;
  color: var(--ink);
  background: transparent;
  font-size: 1rem;
}

.editor-category-field { max-width: 680px; }

#editor-category-value > span { display: inline; }
.editor-category-separator { margin: 0 .45em; color: #527c70; }

.editor-category-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 4px;
}

.editor-category-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 76px;
  padding: 9px 12px;
  border: 1px solid #dce8e1;
  border-radius: 12px;
  background: #f8fbf9;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 700;
  text-align: start;
  overflow-wrap: anywhere;
}

.editor-category-tile:hover { background: #e4f3eb; border-color: #a5c8b9; }

.editor-category-tile-art {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 9px;
  background: url('/images/category-studio-grid.png') no-repeat;
  background-size: 400% 400%;
}

.editor-category-tile-security {
  background-image: url('/images/category-security.png');
  background-size: cover;
  background-position: center !important;
}

.editor-category-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.editor-category-tiles[hidden],
.editor-category-columns[hidden],
.editor-category-column[hidden],
.editor-category-back[hidden] { display: none; }

.editor-category-column,
.editor-category-results {
  position: relative;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #91b2a5 #edf4f0;
  border: 1px solid #dae8e1;
  border-radius: 12px;
  background: #f8fbf9;
  padding: 5px 6px;
}

.editor-category-column { height: min(54vh, 460px); }
.editor-category-results { max-height: min(54vh, 460px); }

.editor-category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  margin: 2px 0;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  font-size: .9375rem;
  font-weight: 650;
  line-height: 1.35;
  text-align: start;
  overflow-wrap: anywhere;
}

.editor-category-row:hover,
.editor-category-row[data-active] {
  border-color: #a5c8b9;
  background: #e4f3eb;
}

.editor-category-row:focus-visible { outline-offset: -2px; }

.editor-category-row small {
  display: block;
  margin-top: 3px;
  color: #49665e;
  font-size: .8125rem;
  font-weight: 500;
}

.editor-category-confirm {
  background: #e9f4ee;
  color: #1e5a48;
  font-weight: 800;
}

.editor-category-next {
  width: 8px;
  height: 8px;
  flex: none;
  border: solid #367565;
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
}

.editor-category-back {
  display: inline-block;
  padding: 9px 12px;
  margin-bottom: 9px;
  border: 1px solid #bdd6ca;
  border-radius: 8px;
  color: #1e5a48;
  background: #edf5f1;
  font-size: .875rem;
  font-weight: 750;
}

.editor-category-empty { margin: 16px 0 4px; }

.editor-photos .photo-slot { border-radius: 12px; }
.editor-photos .photo-add {
  gap: 8px;
  min-width: 0;
  background: #eef3f0;
  color: #2d6659;
  font-size: .875rem;
}

.editor-photos .photo-slot .photo-add-primary {
  border: 1px dashed #6a9c8f;
  border-radius: inherit;
  background: #e6f5ed;
}

.editor-photos .photo-add:hover { background: #d9ede4; }
.editor-photos .photo-add span { text-decoration: none; }
.editor-photos .photo-add:focus-visible { outline-offset: -4px; }

@media (max-width: 900px) {
  .editor-category-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .editor-category-columns { grid-template-columns: minmax(0, 1fr); }
  .editor-category-column:not([data-current="true"]) { display: none; }
}

@media (max-width: 560px) {
  .editor-category-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editor-category-tile {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    min-height: 84px;
    padding: 8px;
    gap: 5px;
  }
}


.editor-location-field { max-width: 460px; }
.editor-location-field #editor-location-label { font-size: .875rem; }

.editor-location-check {
  visibility: hidden;
  width: 9px;
  height: 15px;
  flex: none;
  border: solid #35765c;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-2px, -2px);
}

.has-location .editor-location-check { visibility: visible; }

.editor-location-dialog {
  width: min(530px, calc(100% - 32px));
  padding: clamp(16px, 3vw, 26px);
  border: 1px solid #cbded6;
  border-radius: 16px;
}

.editor-location-dialog .editor-category-results { max-height: min(50vh, 360px); }
.editor-location-empty { margin: 10px; }

.editor-additional { border: 1px solid #dfe9e4; border-radius: 16px; }

.editor-seller-type,
#editor-service-type-field {
  max-width: 460px;
}

.editor-seller-type {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.editor-seller-type legend {
  margin-bottom: 8px;
  padding: 0;
  font-size: .875rem;
  font-weight: 600;
}

.editor-seller-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.editor-seller-options input { min-height: 0 !important; }

.editor-seller-options span {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #dce8e1;
  border-radius: 9px;
  background: #f4f8f5;
  color: #164b43;
  font-size: .875rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.editor-seller-options label:hover span { background: #edf6f1; }

.editor-seller-options input:checked + span {
  border-color: #518b71;
  background: #e2f2e9;
  box-shadow: inset 0 0 0 1px #518b71;
}

.editor-seller-options input:focus-visible + span {
  outline: 3px solid #ddaa43;
  outline-offset: 2px;
}

#editor-service-type-field { margin-top: 14px; }

#editor-service-type {
  border-radius: 9px;
  font-size: .9375rem;
}

.listing-additional { margin: 14px 0; }
.listing-additional div { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.listing-additional div + div { margin-top: 6px; }
.listing-additional dt { color: #4c655a; }
.listing-additional dd { margin: 0; font-weight: 700; }
