/* spot_edit.css — волна 5c: «Редактирование объявления» (route ad_update, доски CabinetEdit и DesktopEdit).
   Только оформление поверх прежней разметки формы: имена полей, порядок узлов и классы, на которые опираются create.js,
   filter.js и Filters::load_filters_ad, не менялись. Цвета и размеры — из токенов spot_ui.css. Мобильная вёрстка первична,
   цели касания не меньше 44px, без зависимости от наведения. Всё ограничено .spot-edit / .spot-edit-page. */

.spot-edit-page {
    background: var(--spot-bg);
}

.spot-edit {
    --spot-edit-gap: 8px;
    padding: 0;
    color: var(--spot-ink);
    font-family: var(--spot-font);
}

.spot-edit-grid {
    display: block;
}

.spot-edit-main {
    min-width: 0;
}

.spot-edit-aside {
    display: none;
}

/* ---------- заголовок ---------- */
.spot-edit .spot-edit-h1 {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 16px var(--spot-gutter) 12px;
    background: var(--spot-surface);
    font-size: 24px;
    line-height: 30px;
    font-weight: 800;
    color: var(--spot-ink);
    overflow-wrap: anywhere;
}

/* на телефоне «назад» уже в шапке */
.spot-edit .spot-edit-back {
    display: none;
}

/* ---------- карточки ---------- */
.spot-edit .spot-edit-form {
    margin: 0;
}

.spot-edit .spot-edit-card,
.spot-edit .spot-edit-dyn {
    margin: 0 0 var(--spot-edit-gap);
    padding: 16px var(--spot-gutter);
    background: var(--spot-surface);
}

/* контейнеры create.js: display задаёт сам create.js (show/hide), здесь только вид */
.spot-edit .ads-create-main-data-delivery.spot-edit-dyn:empty,
.spot-edit .ads-create-main-data-delivery.spot-edit-dyn:not(:has(*)) {
    display: none;
}

.spot-edit .spot-edit-card:first-child {
    padding-top: 4px;
}

.spot-edit .ads-create-main-data-box-item {
    margin: 0 0 20px;
}

.spot-edit .spot-edit-card > .ads-create-main-data-box-item:last-child,
.spot-edit .spot-edit-card > :last-child > .ads-create-main-data-box-item:last-child,
.spot-edit .spot-edit-dyn > .ads-create-main-data-box-item:last-child {
    margin-bottom: 0;
}

.spot-edit .ads-create-subtitle {
    display: block;
    margin: 0 0 10px;
    font-size: 17px;
    line-height: 22px;
    font-weight: 800;
    color: var(--spot-ink);
}

.spot-edit .spot-edit-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.spot-edit .spot-edit-count {
    flex: 0 0 auto;
    font-size: 13px;
    color: var(--spot-mut);
}

.spot-edit .spot-edit-count b {
    font-weight: 600;
}

.spot-edit .create-info {
    display: block;
    margin: 0 0 12px;
    padding: 0;
    background: none;
    border: 0;
    font-size: 13px;
    line-height: 18px;
    color: var(--spot-mut);
}

.spot-edit .create-info > i.la-question-circle {
    display: none;
}

.spot-edit .create-input-length {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 16px;
    color: var(--spot-mut);
}

.spot-edit .msg-error {
    margin-top: 6px;
    font-size: 13px;
    line-height: 18px;
    font-weight: 600;
    color: var(--spot-red-fg);
}

.spot-edit .mb25 {
    margin-bottom: 16px !important;
}

/* ---------- поля ---------- */
.spot-edit .ads-create-input,
.spot-edit .ads-create-textarea,
.spot-edit .filter_item .form-control,
.spot-edit .action-input-search-metro {
    width: 100%;
    min-height: var(--spot-control-h-l);
    padding: 0 14px;
    border: 1px solid var(--spot-field-border) !important;
    border-radius: var(--spot-radius);
    background: var(--spot-surface);
    color: var(--spot-ink);
    font-family: var(--spot-font);
    font-size: 16px;
    line-height: 22px;
    font-weight: 600;
    box-shadow: none;
}

.spot-edit .ads-create-textarea {
    display: block;
    min-height: 140px;
    padding: 12px 14px;
    font-weight: 500;
    resize: vertical;
}

.spot-edit .ads-create-input:focus,
.spot-edit .ads-create-textarea:focus,
.spot-edit .filter_item .form-control:focus,
.spot-edit .action-input-search-metro:focus {
    border-color: var(--spot-focus) !important;
    outline: 2px solid var(--spot-focus);
    outline-offset: 0;
}

.spot-edit .ads-create-input::placeholder,
.spot-edit .ads-create-textarea::placeholder {
    color: var(--spot-mut);
    font-weight: 500;
}

.spot-edit .mt20,
.spot-edit .mt30 {
    margin-top: 0 !important;
}

/* поля с подписью валюты/единиц справа */
.spot-edit .input-dropdown .ads-create-input {
    padding-left: 44px;
}

.spot-edit .input-dropdown-box {
    display: flex;
    align-items: center;
    padding-left: 14px;
    pointer-events: none;
}

.spot-edit .input-dropdown-box .uni-dropdown-bg,
.spot-edit .input-dropdown-box .uni-dropdown {
    pointer-events: auto;
    height: auto;
}

.spot-edit .input-dropdown-name-display {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--spot-ink-2);
}

/* сетка bootstrap внутри карточек: на телефоне колонки — в столбик с отступом */
.spot-edit .spot-edit-card .row,
.spot-edit .spot-edit-dyn .row {
    margin-right: -6px;
    margin-left: -6px;
}

.spot-edit .spot-edit-card .row > [class*="col"],
.spot-edit .spot-edit-dyn .row > [class*="col"] {
    padding-right: 6px;
    padding-left: 6px;
}

/* ---------- категория ---------- */
.spot-edit .ads-update-category-box {
    position: relative;
}

.spot-edit .ads-update-category-box > span {
    display: flex;
    align-items: center;
    min-height: var(--spot-control-h-l);
    padding: 0 14px 0 44px;
    border: 1px solid var(--spot-field-border);
    border-radius: var(--spot-radius);
    background: var(--spot-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%231B1D21' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat left 14px center;
    color: var(--spot-ink);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.spot-edit .ads-update-category-list {
    right: 0;
    left: 0;
    z-index: 30;
    max-height: 60vh;
    overflow: auto;
    padding: 6px;
    border: 1px solid var(--spot-line);
    border-radius: var(--spot-radius);
    background: var(--spot-surface);
    box-shadow: 0 8px 24px rgba(20, 22, 26, .14);
}

.spot-edit .ads-update-category-list:before {
    display: none;
}

.spot-edit .ads-update-category-list span {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    border-radius: var(--spot-radius-s);
    font-size: 15px;
    font-weight: 600;
    color: var(--spot-ink);
    cursor: pointer;
}

.spot-edit .ads-update-category-list span:active {
    background: var(--spot-field);
}

.spot-edit .spot-edit-cat {
    margin-bottom: 16px;
}

/* ---------- фото ---------- */
.spot-edit #dropzone.dropzone {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    min-height: 0 !important;
    margin: 0;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
}

.spot-edit #dropzone .dz-preview {
    position: relative;
    display: block;
    width: auto;
    min-height: 0;
    margin: 0 !important;
    aspect-ratio: 4 / 3;
    border-radius: var(--spot-radius-s);
    overflow: hidden;
    background: var(--spot-field);
}

.spot-edit #dropzone .dz-preview .dz-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
}

/* .image-autofocus центрирует картинку через absolute + translate(-50%,-50%) — здесь картинка заполняет плитку */
.spot-edit #dropzone .dz-preview .dz-image img {
    position: absolute;
    top: 0 !important;
    right: 0 !important;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    min-width: 0;
    min-height: 0;
    object-fit: cover;
    transform: none !important;
    filter: none !important;
}

.spot-edit #dropzone .dz-preview .dz-details,
.spot-edit #dropzone .dz-preview .dz-success-mark,
.spot-edit #dropzone .dz-preview .dz-error-mark {
    display: none;
}

.spot-edit #dropzone .dz-preview .dz-progress {
    right: 8px;
    left: 8px;
    width: auto;
    margin: 0;
    top: auto;
    bottom: 8px;
    height: 6px;
    border-radius: 3px;
}

.spot-edit #dropzone .dz-preview.dz-error .dz-error-message {
    top: 0;
    right: 0;
    left: 0;
    width: auto;
    font-size: 12px;
}

/* кнопки «удалить» и «перетащить»: видимый кружок 28px, зона касания 44px */
.spot-edit #dropzone .dz-dropzone-delete,
.spot-edit #dropzone .dz-dropzone-sortable {
    position: absolute;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: #fff;
    cursor: pointer;
    opacity: 1;
}

.spot-edit #dropzone .dz-dropzone-delete {
    top: 0;
    left: 0;
    right: auto;
}

.spot-edit #dropzone .dz-dropzone-sortable {
    left: 0;
    bottom: 0;
    top: auto;
    right: auto;
    cursor: grab;
    touch-action: none;
}

.spot-edit #dropzone .dz-dropzone-delete::before,
.spot-edit #dropzone .dz-dropzone-sortable::before {
    content: "";
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(20, 22, 26, .62);
}

.spot-edit #dropzone .dz-dropzone-delete i,
.spot-edit #dropzone .dz-dropzone-sortable i {
    position: relative;
    font-size: 16px;
    line-height: 1;
    color: #fff;
}

.spot-edit #dropzone .dz-preview.spot-edit-main-photo::after {
    content: attr(data-main);
    position: absolute;
    right: 6px;
    bottom: 6px;
    z-index: 4;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--spot-red);
    color: #fff;
    font-size: 11px;
    line-height: 15px;
    font-weight: 700;
    pointer-events: none;
}

/* плитка «Добавить фото» (dz-message Dropzone): видна и когда фото уже есть */
.spot-edit #dropzone .dz-message,
.spot-edit #dropzone.dz-started .dz-message {
    display: flex !important;
    align-items: center;
    justify-content: center;
    order: 99;
    margin: 0;
    aspect-ratio: 4 / 3;
    border: 1.5px dashed var(--spot-field-border);
    border-radius: var(--spot-radius-s);
    background: var(--spot-surface);
    color: var(--spot-ink);
    cursor: pointer;
}

.spot-edit #dropzone .dz-message .spot-edit-add {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 4px;
    font-size: 12px;
    line-height: 15px;
    font-weight: 700;
    text-align: center;
}

.spot-edit #dropzone .dz-message:focus-visible {
    outline: 2px solid var(--spot-focus);
    outline-offset: 2px;
}

.spot-edit #dropzone.spot-edit-full .dz-message {
    display: none !important;
}

.spot-edit #dropzone .ui-sortable-placeholder {
    visibility: visible !important;
    border: 1.5px dashed var(--spot-field-border);
    border-radius: var(--spot-radius-s);
    background: var(--spot-field);
}

.spot-edit #dropzone .ui-sortable-helper {
    box-shadow: 0 8px 24px rgba(20, 22, 26, .25);
}

.spot-edit .spot-edit-photos .msg-error[data-name="gallery"] {
    margin-top: 8px;
}

.spot-edit .spot-edit-video {
    margin-top: 16px;
}

.spot-edit .spot-edit-video .ads-create-subtitle {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}

.spot-edit .spot-edit-video .create-info {
    margin: 6px 0 0;
}

/* ---------- переключатели: автопродление, «Договорная», онлайн-показ ---------- */
.spot-edit .spot-edit-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    margin: 0;
    cursor: pointer;
}

.spot-edit .spot-edit-toggle-text {
    flex: 1 1 auto;
    min-width: 0;
}

.spot-edit .spot-edit-toggle-text .ads-create-subtitle {
    margin: 0 0 2px;
    font-size: 15px;
    font-weight: 700;
}

.spot-edit .spot-edit-toggle-text .create-info {
    margin: 0;
}

.spot-edit .spot-edit-sw {
    position: relative;
    flex: 0 0 51px;
    width: 51px;
    height: 31px;
}

.spot-edit .spot-edit-sw input {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.spot-edit .spot-edit-sw > span,
.spot-edit .checkbox-google .checkbox-google-switch {
    position: absolute;
    inset: 0;
    display: block;
    width: 51px;
    height: 31px;
    border-radius: 16px;
    background: #D6D9DE;
    transition: background-color .2s;
}

.spot-edit .spot-edit-sw > span::after,
.spot-edit .checkbox-google .checkbox-google-switch:before {
    content: "";
    position: absolute;
    top: 2px;
    right: 2px;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 4px rgba(20, 22, 26, .2);
    transition: transform .2s;
    animation: none !important;
}

.spot-edit .spot-edit-sw input:checked + span,
.spot-edit .checkbox-google input[type=checkbox]:checked + .checkbox-google-switch {
    background: var(--spot-green);
}

.spot-edit .spot-edit-sw input:checked + span::after,
.spot-edit .checkbox-google input[type=checkbox]:checked + .checkbox-google-switch:before {
    transform: translateX(-20px);
}

.spot-edit .spot-edit-sw input:focus-visible + span,
.spot-edit .checkbox-google input[type=checkbox]:focus-visible + .checkbox-google-switch {
    outline: 2px solid var(--spot-focus);
    outline-offset: 2px;
}

/* bootstrap custom-control switch-вид у checkbox-google (Договорная, Торг, Turbo и т.п.) */
.spot-edit .checkbox-google {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: auto;
    min-height: 44px;
    margin: 0;
    line-height: 20px;
    font-size: 15px;
    font-weight: 700;
    color: var(--spot-ink);
    cursor: pointer;
}

.spot-edit .checkbox-google .checkbox-google-switch {
    position: relative;
    flex: 0 0 51px;
}

.spot-edit .spot-edit-bargain {
    margin-top: 8px !important;
}

.spot-edit .spot-edit-bargain > [class*="col"] {
    flex: 0 0 100%;
    max-width: 100%;
}

.spot-edit .spot-edit-bargain .ads-create-main-data-price-variant {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    height: auto;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    cursor: default;
}

.spot-edit .spot-edit-bargain .spot-edit-toggle-name {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.spot-edit .spot-edit-bargain .checkbox-google {
    float: none;
    margin: 0;
}

.spot-edit .spot-edit-renewal {
    margin-top: 12px;
    margin-bottom: 0;
}

/* онлайн-показ, «Неограниченно» и прочие bootstrap-чекбоксы вне фильтров */
.spot-edit .spot-edit-dyn.ads-create-main-data-online-view .ads-create-subtitle {
    font-size: 15px;
    font-weight: 700;
}

.spot-edit .custom-control {
    min-height: 44px;
    display: flex;
    align-items: center;
    margin-top: 0 !important;
}

.spot-edit .custom-control-label {
    font-size: 15px;
    line-height: 20px;
    font-weight: 600;
    color: var(--spot-ink);
    cursor: pointer;
}

.spot-edit .custom-control-label::before,
.spot-edit .custom-control-label::after {
    top: 0;
    width: 20px;
    height: 20px;
}

.spot-edit .custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
    border-color: var(--spot-ink);
    background-color: var(--spot-inv);
}

.spot-edit .custom-control-label > div {
    margin-top: 0 !important;
}

/* ---------- цена ---------- */
.spot-edit .ads-create-main-data-price > .ads-create-main-data-box-item {
    margin-bottom: 0;
}

/* «Фиксированная / Не фиксированная / Аукцион» — сегменты */
.spot-edit .ads-create-main-data-price > .ads-create-main-data-box-item > .row:first-of-type {
    display: flex;
    flex-wrap: nowrap;
    margin: 0 0 4px;
    padding: 4px;
    border-radius: var(--spot-radius);
    background: var(--spot-field);
}

.spot-edit .ads-create-main-data-price > .ads-create-main-data-box-item > .row:first-of-type > [class*="col"] {
    flex: 1 1 0;
    max-width: none;
    padding: 0;
}

.spot-edit .ads-create-main-data-price .ads-create-main-data-price-variant {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    height: auto;
    margin: 0;
    padding: 4px 8px;
    border: 0;
    border-radius: 9px;
    background: none;
    box-shadow: none;
    text-align: center;
    cursor: pointer;
}

.spot-edit .ads-create-main-data-price .ads-create-main-data-price-variant-name {
    font-size: 14px;
    line-height: 18px;
    font-weight: 700;
    color: var(--spot-ink-2);
}

.spot-edit .ads-create-main-data-price .ads-create-main-data-price-variant-active {
    background: var(--spot-surface);
    box-shadow: 0 1px 3px rgba(20, 22, 26, .15);
}

.spot-edit .ads-create-main-data-price .ads-create-main-data-price-variant-active .ads-create-main-data-price-variant-name {
    color: var(--spot-ink);
}

.spot-edit .ads-create-main-data-price .mb25 {
    margin-bottom: 12px !important;
}

.spot-edit .ads-create-main-data-price-container .row {
    row-gap: 10px;
}

.spot-edit .ads-create-main-data-price-container .row > .col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.spot-edit .ads-create-main-data-price-container .ads-create-main-data-box-item {
    margin-bottom: 0;
}

/* ---------- город ---------- */
.spot-edit .spot-edit-city {
    position: relative;
}

.spot-edit .spot-edit-city .action-input-search-city {
    padding-right: 42px;
    background: var(--spot-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 21s7-6.2 7-11.5A7 7 0 0 0 5 9.5C5 14.8 12 21 12 21z' stroke='%231B1D21' stroke-width='1.8'/%3E%3Ccircle cx='12' cy='9.5' r='2.5' stroke='%231B1D21' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat 14px center;
}

.spot-edit .custom-results {
    z-index: 30;
    max-height: 50vh;
    overflow: auto;
    border: 1px solid var(--spot-line);
    border-radius: var(--spot-radius);
    background: var(--spot-surface);
    box-shadow: 0 8px 24px rgba(20, 22, 26, .14);
}

.spot-edit .custom-results .item-city,
.spot-edit .custom-results > div {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 14px;
    font-size: 15px;
    cursor: pointer;
}

.spot-edit .ads-create-main-data-city-options {
    margin-top: 16px;
}

.spot-edit .uni-select-name {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--spot-control-h-l);
    padding: 0 14px;
    border: 1px solid var(--spot-field-border);
    border-radius: var(--spot-radius);
    background: var(--spot-surface);
    font-size: 16px;
    font-weight: 600;
}

.spot-edit .uni-select-list label {
    min-height: 44px;
    display: flex;
    align-items: center;
}

/* ---------- характеристики (разметка Filters::load_filters_ad: ярлыки-«пилюли» вместо radio) ---------- */
.spot-edit .ads-create-main-data-filters > .ads-create-main-data-box-item > .ads-create-subtitle {
    font-size: 17px;
    font-weight: 800;
}

.spot-edit .filter_item,
.spot-edit .filter-items,
.spot-edit .filter_item-block,
.spot-edit #filter_turbo {
    padding: 14px 0;
    border-top: 1px solid var(--spot-line);
}

.spot-edit .filter_item[style*="display:none"],
.spot-edit .filter_item[style*="display: none"] {
    display: none;
}

.spot-edit .filter_item .ads-create-subtitle,
.spot-edit .filter-items .ads-create-subtitle {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 20px;
    font-weight: 700;
}

.spot-edit .filter_item .row,
.spot-edit .filter-items .row {
    margin: 0 !important;
    gap: 8px !important;
}

.spot-edit .filter_item .row.mb25,
.spot-edit .filter_item .row.mb15 {
    margin-bottom: 0 !important;
}

.spot-edit .filter_item > .row[style*="display: flex"] {
    flex-wrap: wrap;
}

.spot-edit .filter_item .custom-control.custom-radio {
    min-height: 0;
    padding: 0 !important;
}

.spot-edit .filter_item > .row[style*="display: flex"] > .custom-radio {
    flex: 0 0 auto;
    max-width: 100%;
}

.spot-edit .filter_item .btn.css-dsew533 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 8px 14px;
    border: 1px solid var(--spot-line) !important;
    border-radius: var(--spot-radius-s);
    background: var(--spot-surface);
    color: var(--spot-ink);
    font-size: 14px;
    line-height: 18px;
    font-weight: 600 !important;
    text-align: center;
    white-space: normal;
    box-shadow: none;
}

.spot-edit .filter_item .btn.css-dsew533 img {
    flex: 0 0 auto;
    max-height: 28px;
    object-fit: contain;
}

.spot-edit .filter_item .btn-check:checked + .btn.css-dsew533 {
    border-color: var(--spot-ink) !important;
    background: var(--spot-inv);
    color: #fff;
}

.spot-edit .filter_item .btn-check:checked + .btn.css-dsew533 img {
    filter: invert(1);
}

/* марки (сетка 3 колонки), кузов — плитки с иконкой */
.spot-edit #filter_item90 > .row,
.spot-edit .filter_item .row[style*="grid-template-columns"] {
    gap: 8px !important;
}

/* filter.css задаёт #filter_item90/#filter_item309 .btn высоту 90px, скругление 15px и 16px — перекрываем тем же весом (id) */
.spot-edit #filter_item90 .btn.css-dsew533,
.spot-edit #filter_item309 .btn.css-dsew533,
.spot-edit .filter_item .row[style*="grid-template-columns"] .btn.css-dsew533 {
    flex-direction: column;
    height: auto;
    min-height: 72px;
    padding: 8px 4px;
    border-radius: var(--spot-radius-s);
    font-size: 12.5px;
    line-height: 16px;
    hyphens: auto;
    overflow-wrap: normal;
    word-break: normal;
}

.spot-edit .filter_item90_control {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 72px;
    border: 1px dashed var(--spot-field-border);
    border-radius: var(--spot-radius-s);
    font-size: 13px;
    font-weight: 700;
    color: var(--spot-ink);
    cursor: pointer;
}

.spot-edit .filter_item90_control span {
    color: var(--spot-ink);
}

/* цвет кузова: кружок цвета в «пилюле» */
.spot-edit .filter_item .css-gr2388r3 {
    position: static;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin: 0;
    border: 1px solid var(--spot-line);
    border-radius: 50%;
}

.spot-edit .filter_item .css-gr2388r3 + div {
    margin-right: 0 !important;
}

/* поиск по списку марок/моделей */
.spot-edit .filter_item-inpt_box {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin: 0 0 10px;
    padding: 0 14px;
    border: 1px solid var(--spot-field-border);
    border-radius: var(--spot-radius);
    background: var(--spot-surface);
    box-shadow: none;
}

.spot-edit .filter_item-inpt_box span {
    font-size: 14px;
    font-weight: 600;
    color: var(--spot-mut);
}

.spot-edit .filter_item-inpt_box input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 42px;
    border: 0;
    background: none;
    font-size: 16px;
    outline: none;
}

/* числовые и текстовые характеристики (год, объём, VIN): подпись над полем */
.spot-edit .filter-items .row {
    display: block !important;
}

.spot-edit .filter-items .row > .col,
.spot-edit .filter-items .row > [class*="col-"] {
    display: block !important;
    width: 100%;
    max-width: 100%;
    padding: 0 !important;
}

.spot-edit .filter-items .row > .col + .col {
    margin-top: 0;
}

.spot-edit .filter-items .row > .col[style*="display: flex"] {
    display: flex !important;
    gap: 12px;
}

.spot-edit .filter_item .inpt_num {
    width: 100%;
}

/* пробег: км / мили */
.spot-edit .filter_km_wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.spot-edit .filter_km_wrapper > .msg-error {
    grid-column: 1 / -1;
}

.spot-edit .filter_km_box {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
}

.spot-edit .filter_km_box .filter_km {
    width: 100%;
    min-height: var(--spot-control-h-l);
    padding: 0 14px 0 60px;
    border: 1px solid var(--spot-field-border);
    border-radius: var(--spot-radius);
    background: var(--spot-surface);
    font-size: 16px;
    font-weight: 600;
}

.spot-edit .filter_km_box .filter_km:focus {
    border-color: var(--spot-focus);
    outline: 2px solid var(--spot-focus);
    outline-offset: 0;
}

.spot-edit .filter_km_box .filter_km_btn {
    position: absolute;
    left: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 48px;
    height: 40px;
    margin: 0;
    padding: 0 8px;
    border: 0;
    border-radius: var(--spot-radius-s);
    background: var(--spot-field);
    color: var(--spot-ink);
    font-size: 13px;
    line-height: 16px;
    font-weight: 700;
}

.spot-edit .filter_km_box input:focus + .filter_km_btn {
    background: var(--spot-inv);
    color: #fff;
}

/* блок Turbo create.js переносит к «Объёму»; пустой исходный контейнер не показываем */
.spot-edit #filter_turbo:not(:has(*)) {
    display: none;
}

/* «Цена»: сегменты «Фиксированная/Не фиксированная» над подписью поля, как на доске (порядок узлов прежний, только order) */
.spot-edit .ads-create-main-data-price > .ads-create-main-data-box-item {
    display: flex;
    flex-direction: column;
}

.spot-edit .ads-create-main-data-price > .ads-create-main-data-box-item > * {
    order: 3;
}

.spot-edit .ads-create-main-data-price > .ads-create-main-data-box-item > .row:first-of-type {
    order: 1;
}

.spot-edit .ads-create-main-data-price > .ads-create-main-data-box-item > .ads-create-subtitle {
    display: block;
    order: 2;
    margin: 12px 0 8px;
    font-size: 15px;
    font-weight: 700;
}

/* доп. опции (мультимедиа, комфорт…): чекбоксы в две колонки */
.spot-edit .filter_item-dop > div[style*="flex-wrap"] {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 12px !important;
    margin-bottom: 0 !important;
}

.spot-edit .filter_item-dop .custom-control {
    margin: 0 !important;
}

.spot-edit .filter_item-block > div,
.spot-edit #filter_turbo {
    display: flex;
    align-items: center;
}

.spot-edit .filter_item-block .checkbox-google {
    width: 100%;
}

/* строки-итоги мастера подачи (create.js показывает их при выборе значения) */
.spot-edit .filter_item_results {
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 8px 0;
    border-top: 1px solid var(--spot-line);
    font-size: 15px;
}

.spot-edit .filter_item_results .filter_results-data {
    font-weight: 700;
}

/* ---------- панель сохранения ---------- */
.spot-edit .spot-edit-savebar {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin: 0;
    padding: 12px var(--spot-gutter) calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--spot-line);
    background: var(--spot-surface);
}

.spot-edit .ads-create-publish,
.spot-edit .spot-edit-save {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: var(--spot-control-h-l);
    margin: 0;
    padding: 0 16px;
    border: 0;
    border-radius: var(--spot-radius);
    background: var(--spot-red);
    color: #fff;
    font-family: var(--spot-font);
    font-size: 16px;
    line-height: 20px;
    font-weight: 700;
    cursor: pointer;
}

.spot-edit .ads-create-publish:active,
.spot-edit .spot-edit-save:active {
    background: var(--spot-red-dark);
}

.spot-edit .ads-create-publish:disabled,
.spot-edit .spot-edit-save:disabled {
    opacity: .6;
    cursor: default;
}

.spot-edit .ads-create-publish:focus-visible,
.spot-edit .spot-edit-save:focus-visible {
    outline: 2px solid var(--spot-focus);
    outline-offset: 2px;
}

.spot-edit .ads-create-publish .action-load-span-start {
    margin: 0;
}

/* ---------- десктоп (доска DesktopEdit) ---------- */
@media (min-width: 992px) {
    .spot-edit {
        --spot-edit-gap: 12px;
        max-width: 1100px;
        margin: 0 auto;
        padding: 24px var(--spot-gutter-desktop) 48px;
    }

    .spot-edit-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 340px;
        gap: 24px;
        align-items: start;
    }

    .spot-edit .spot-edit-h1 {
        padding: 0 0 16px;
        background: none;
        font-size: 28px;
        line-height: 34px;
    }

    .spot-edit .spot-edit-back {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        margin-right: -10px;
        border-radius: 50%;
        color: var(--spot-ink);
    }

    .spot-edit .spot-edit-back:hover {
        background: var(--spot-field);
    }

    .spot-edit .spot-edit-card,
    .spot-edit .spot-edit-dyn {
        padding: 24px;
        border-radius: var(--spot-radius-l);
    }

    .spot-edit .spot-edit-card:first-child {
        padding-top: 24px;
    }

    .spot-edit .ads-create-subtitle {
        font-size: 18px;
    }

    .spot-edit #dropzone.dropzone {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    /* мышь: кнопки у фото компактнее (зона 36px, кружок 26px) */
    .spot-edit #dropzone .dz-dropzone-delete,
    .spot-edit #dropzone .dz-dropzone-sortable {
        width: 36px;
        height: 36px;
    }

    .spot-edit #dropzone .dz-dropzone-delete::before,
    .spot-edit #dropzone .dz-dropzone-sortable::before {
        top: 5px;
        right: 5px;
        width: 26px;
        height: 26px;
    }

    .spot-edit #filter_item90 > .row,
    .spot-edit .filter_item .row[style*="grid-template-columns"] {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    /* год/объём/VIN — подпись над полем, поля в половину ширины */
    .spot-edit .filter-items .row > .col,
    .spot-edit .filter-items .row > [class*="col-"] {
        max-width: 100%;
    }

    .spot-edit .filter_item-dop > div[style*="flex-wrap"] {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .spot-edit .spot-edit-bargain > [class*="col"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* кнопку сохранения на десктопе даёт правая карточка */
    .spot-edit .spot-edit-savebar {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0 0 0 0);
        border: 0;
    }

    .spot-edit-aside {
        display: block;
        position: sticky;
        top: 24px;
        min-width: 0;
        padding-top: 50px;
    }

    .spot-edit-sum {
        padding: 16px;
        border-radius: var(--spot-radius-l);
        background: var(--spot-surface);
    }

    .spot-edit-sum-img {
        aspect-ratio: 4 / 3;
        margin-bottom: 12px;
        border-radius: var(--spot-radius-s);
        overflow: hidden;
        background: var(--spot-field);
    }

    .spot-edit-sum-img img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .spot-edit-sum-title {
        font-size: 15px;
        line-height: 20px;
        font-weight: 700;
        overflow-wrap: anywhere;
    }

    .spot-edit-sum-price {
        margin-top: 4px;
        font-size: 22px;
        line-height: 28px;
        font-weight: 800;
    }

    .spot-edit-sum-price:empty {
        display: none;
    }

    .spot-edit-sum-sub {
        margin-top: 2px;
        font-size: 13px;
        line-height: 18px;
        color: var(--spot-mut);
    }

    .spot-edit-check {
        margin: 12px 0 16px;
        padding: 12px 0 0;
        border-top: 1px solid var(--spot-line);
        list-style: none;
    }

    .spot-edit-check li {
        position: relative;
        padding: 3px 24px 3px 0;
        font-size: 14px;
        line-height: 20px;
        color: var(--spot-mut);
    }

    .spot-edit-check li::before {
        content: "";
        position: absolute;
        right: 2px;
        top: 7px;
        width: 12px;
        height: 12px;
        border: 1.5px solid var(--spot-field-border);
        border-radius: 50%;
    }

    .spot-edit-check li.spot-on {
        color: var(--spot-ink);
    }

    .spot-edit-check li.spot-on::before {
        top: 6px;
        width: 14px;
        height: 8px;
        border: 0;
        border-right: 2px solid var(--spot-green);
        border-bottom: 2px solid var(--spot-green);
        border-radius: 0;
        transform: rotate(45deg) scale(.8);
    }
}

@media (prefers-reduced-motion: reduce) {
    .spot-edit .spot-edit-sw > span,
    .spot-edit .spot-edit-sw > span::after,
    .spot-edit .checkbox-google .checkbox-google-switch,
    .spot-edit .checkbox-google .checkbox-google-switch:before {
        transition: none;
    }
}

/* кнопка внутри плитки «Добавить фото» (Dropzone 5: <button class="dz-button">) */
.spot-edit #dropzone .dz-message .dz-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: inherit;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.spot-edit #dropzone .dz-message .dz-button:focus-visible {
    outline: 2px solid var(--spot-focus);
    outline-offset: 2px;
}

/* filter.css держит у моделей (302) и года (311) высоту 150px и прокрутку только при наведении — на телефоне список
   обрезался. Здесь: год — по содержимому, модели — список с постоянной прокруткой без наведения. */
.spot-edit #filter_item311 .row {
    height: auto !important;
    overflow: visible !important;
    padding-left: 0;
}

.spot-edit #filter_item302 .row {
    height: auto !important;
    max-height: 236px;
    overflow-y: auto !important;
    padding-left: 0;
    align-content: flex-start;
    -webkit-overflow-scrolling: touch;
}

/* выбранная марка видна и в свёрнутом списке марок (create.js close_mark прячет всё после 8-й) */
.spot-edit #filter_item90 .custom-control:has(.btn-check:checked) {
    display: flex !important;
}
