/* ============ Базовые стили / дизайн-токены ============ */
:root {
    --brand: #1f9d74;
    --brand-dark: #178260;
    --brand-soft: #e6f6ee;
    --brand-soft-2: #f4fbf8;
    --brand-border: #cdebe0;
    --text: #222;
    --text-muted: #6c757d;
    --line: #eaeaea;
    --line-soft: #f1f1f1;
    --bg: #f8f9fa;
    --danger: #d94343;
    --warn: #b38024;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: var(--bg);
    color: var(--text);
}

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

/* ============ Шапка ============ */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background-color: white;
    border-bottom: 1px solid var(--line);
    gap: 16px;
    flex-shrink: 0;
}

.header-burger {
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: 20px;
    cursor: pointer;
    transition: all .15s;
}
.header-burger:hover { background: var(--brand-soft-2); color: var(--brand); border-color: var(--brand-border); }

.header-logo {
    color: var(--brand);
    font-weight: 700;
    font-size: 22px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.header-logo i { font-size: 22px; }

.header-nav {
    display: flex;
    gap: 22px;
    flex: 1;
    margin-left: 12px;
}

.header-nav a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    font-size: 15px;
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
    transition: all .15s;
}
.header-nav a:hover,
.header-nav a.active {
    color: var(--brand);
    border-bottom-color: var(--brand);
}

.header-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Селектор языка */
.lang-select-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: #555;
    background: white;
}
.lang-select-wrap i { font-size: 14px; color: var(--brand); }
.lang-select {
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    outline: none;
    cursor: pointer;
}

/* Мобильное меню */
.mobile-menu .offcanvas-header { border-bottom: 1px solid var(--line); }
.mobile-nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: #444;
    font-weight: 500;
    font-size: 15px;
}
.mobile-nav a i { font-size: 18px; width: 22px; text-align: center; color: var(--brand); }
.mobile-nav a:hover { background: var(--brand-soft-2); color: var(--brand); }
.mobile-nav a.text-danger:hover { background: #fae8e8; color: var(--danger) !important; }
.mobile-nav a.text-danger i { color: var(--danger); }
.mobile-nav hr { margin: 8px 4px; border-color: var(--line); opacity: 1; }

/* ============ Кнопки ============ */
.btn {
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all .15s;
}

.btn-outline {
    border-color: var(--brand);
    background: transparent;
    color: var(--brand);
}
.btn-outline:hover { background: var(--brand-soft); }

.btn-primary {
    background-color: var(--brand);
    color: white;
}
.btn-primary:hover { background-color: var(--brand-dark); color: white; }

.rounded-3 { border-radius: var(--radius-sm) !important; }

/* Основной контейнер */
.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Карта */
#map {
    flex: 1;
    height: 100%;
    position: relative;
    z-index: 1;
}

/* Плавающая кнопка "Добавить точку" на карте */
.floating-add-btn {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    padding: 12px 24px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 16px;
}

/* ============ Радио-выбор канала связи ============ */
.contact-radio-row {
    display: flex; gap: 8px;
    margin-bottom: 4px;
}
.contact-radio {
    flex: 1;
    cursor: pointer;
    position: relative;
}
.contact-radio input[type="radio"] {
    position: absolute; opacity: 0; pointer-events: none;
}
.contact-radio span {
    display: flex; align-items: center; justify-content: center;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 13px; font-weight: 600;
    background: #fff;
    transition: all .15s;
    color: var(--muted);
}
.contact-radio:hover span { border-color: var(--brand-border); color: var(--text); }
.contact-radio input[type="radio"]:checked + span {
    border-color: var(--brand);
    background: rgba(31, 157, 116, 0.08);
    color: var(--brand);
}
.contact-field { display: none; }
.contact-field.is-visible { display: block; }

/* Список требований к паролю */
.password-rules {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.password-rules li {
    position: relative;
    padding-left: 18px;
    line-height: 1.6;
}
.password-rules li::before {
    content: "•";
    position: absolute;
    left: 4px;
    color: var(--brand);
    font-weight: 700;
}

/* ============ Уведомления (колокольчик в шапке) ============ */
.notif-dropdown { position: relative; }
.notif-btn {
    background: transparent; border: 1px solid var(--line);
    width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text); cursor: pointer; position: relative;
    transition: background .15s, border-color .15s;
}
.notif-btn:hover { background: #f6f8fa; border-color: #d0d5dd; color: var(--brand); }
.notif-btn i { font-size: 18px; }
.notif-badge {
    position: absolute; top: -2px; right: -2px;
    background: var(--brand-danger, #d94343);
    color: #fff; font-size: 10px; font-weight: 700;
    border-radius: 10px;
    min-width: 18px; height: 18px;
    padding: 0 4px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 2px #fff;
}
.notif-menu {
    width: 340px; max-width: 90vw;
    padding: 0; overflow: hidden;
    border-radius: 12px; box-shadow: 0 10px 32px rgba(16,24,40,.12);
}
.notif-menu-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 16px; border-bottom: 1px solid var(--line);
}
.notif-menu-header .btn-link { font-size: 12px; color: var(--brand); text-decoration: none; }
.notif-item {
    display: block; text-decoration: none; color: var(--text);
    padding: 12px 16px; border-bottom: 1px solid #f0f2f5;
    transition: background .15s;
}
.notif-item:hover { background: #f6f8fa; color: var(--text); }
.notif-item.is-unread { background: rgba(31, 157, 116, 0.06); }
.notif-item.is-unread .notif-item-title { font-weight: 700; }
.notif-item-title { font-size: 13px; margin-bottom: 2px; }
.notif-item-text  { font-size: 12px; color: var(--muted); line-height: 1.4; margin-bottom: 4px; }
.notif-item-date  { font-size: 11px; color: #9aa0a6; }
.notif-item-all {
    display: block; text-align: center;
    padding: 10px 16px;
    color: var(--brand); font-weight: 600; font-size: 13px;
    text-decoration: none;
}
.notif-item-all:hover { background: #f6f8fa; color: var(--brand-dark); }
.notif-empty {
    padding: 24px 16px; text-align: center; color: var(--muted);
}
.notif-empty i { font-size: 28px; display: block; margin-bottom: 8px; }

/* Список уведомлений на странице "Все уведомления" */
.notif-list-item {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f2f5;
}
.notif-list-item:last-child { border-bottom: 0; }
.notif-list-icon {
    width: 36px; height: 36px;
    background: #f6f8fa; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
}

/* ============ Combobox городов (Nominatim search) ============ */
.city-combobox { position: relative; }
.city-combobox-results {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
    margin-top: 4px;
    max-height: 280px;
    overflow-y: auto;
    z-index: 1080;     /* выше .modal-content */
    padding: 4px;
}
.city-combobox-item {
    display: block;
    width: 100%;
    padding: 8px 10px;
    background: transparent;
    border: none;
    text-align: left;
    border-radius: 6px;
    cursor: pointer;
    transition: background .12s;
}
.city-combobox-item:hover,
.city-combobox-item.is-active { background: #f4f6f8; }
.city-combobox-main { font-size: 14px; color: #1f2937; font-weight: 500; }
.city-combobox-sub  { font-size: 11px; color: #6b7280; margin-top: 2px; }

/* Центральный маркер на режиме выбора — красный если вне Сербии */
#centerMarker.marker-invalid i { color: #d94343 !important; filter: drop-shadow(0px 4px 4px rgba(217,67,67,.4)); }
/* Подсказка в карточке selectionUI */
.selection-invalid .card { background: #fff2f2 !important; border: 1px solid #ffcdcd !important; }
.selection-warning {
    display: none;
    padding: 6px 8px;
    margin: 0 0 8px;
    font-size: 12px;
    color: #a82e2e;
    text-align: center;
    background: rgba(217, 67, 67, 0.08);
    border-radius: 6px;
}
.selection-invalid .selection-warning { display: block; }
.selection-invalid .btn-success { opacity: 0.5; cursor: not-allowed; }

/* Боковая панель (Sidebar) */
.sidebar {
    width: 400px;
    background-color: white;
    padding: 20px;
    border-left: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.search-bar {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #bce4d6;
    border-radius: 8px;
    background-color: #eaf6f2;
    margin-bottom: 25px;
    color: #333;
    outline: none;
}

.search-bar::placeholder {
    color: #6db298;
}

.categories-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #222;
}

.category-card {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    gap: 15px;
    background: white;
}

.category-icon {
    width: 40px;
    height: 40px;
    background-color: #eaf6f2;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #1f9d74;
}

.category-info h4 {
    font-size: 16px;
    margin-bottom: 4px;
    color: #333;
}

.category-info p {
    font-size: 13px;
    color: #888;
}

/* Переопределение цветов Bootstrap под ваш фирменный зеленый */
.text-success {
    color: #1f9d74 !important;
}

.btn-success {
    background-color: #1f9d74 !important;
    border-color: #1f9d74 !important;
}

.btn-success:hover {
    background-color: #178260 !important;
}

.form-control:focus,
.form-check-input:focus {
    border-color: #1f9d74;
    box-shadow: 0 0 0 0.25rem rgba(31, 157, 116, 0.25);
}

.form-check-input:checked {
    background-color: #1f9d74;
    border-color: #1f9d74;
}

.input-group-text {
    cursor: pointer;
}

.user-avatar {
    width: 42px;
    height: 42px;
    background-color: #1f9d74;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s;
    text-transform: uppercase; /* Чтобы инициалы всегда были заглавными */
    user-select: none;
}

.user-avatar:hover {
    transform: scale(1.05);
    background-color: #178260;
}

/* Настройка выпадающего списка под стиль проекта */
.dropdown-item:active {
    background-color: #1f9d74;
}

/* Стили для центрального маркера */
#centerMarker {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Смещаем маркер так, чтобы его "острие" было точно по центру */
    transform: translate(-50%, -100%);
    z-index: 1000;
    pointer-events: none; /* ВАЖНО: позволяет кликать и тянуть карту сквозь иконку */
    transition: transform 0.1s ease-in-out;
}

/* Анимация "подпрыгивания" при перетаскивании карты (необязательно, но красиво) */
#map.is-dragging #centerMarker {
    transform: translate(-50%, -120%);
}


/* Кнопка добавления фото (пунктирный квадрат) */
.photo-add-btn {
    width: 85px !important;
    height: 85px !important;
    border: 2px dashed #1f9d74;
    border-radius: 12px;
    background-color: #f4fbf8;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

#photo-upload-container {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.photo-add-btn:hover { background-color: #e6f6ee; }

/* Обертка для миниатюры (фиксированный квадрат 85х85) */
.photo-preview-wrapper {
    position: relative;
    width: 85px !important; /* Жестко задаем ширину */
    height: 85px !important; /* Жестко задаем высоту */
    flex-shrink: 0; /* Чтобы Bootstrap не сжимал их в узком окне */
}

/* Сама миниатюра (фото) */
.photo-preview {
    width: 100% !important;
    height: 100% !important;
    border-radius: 12px; /* Чуть скруглим углы */
    object-fit: cover !important; /* Обязательно: обрезает фото в ровный квадрат */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: block;
}

/* Крестик удаления (справа вверху) */
.remove-photo-btn {
    position: absolute;
    top: -8px; /* Чуть вынесем за пределы фото */
    right: -8px;
    width: 24px; /* Чуть крупнее, чтобы удобнее попадать пальцем */
    height: 24px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid #ddd;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 10; /* Чтобы был поверх фото */
    transition: all 0.2s;
}

.remove-photo-btn:hover {
    background-color: #ffe6e6;
    color: #dc3545;
    border-color: #dc3545;
    transform: scale(1.1);
}

/* Кастомный маркер на карте */
.custom-map-marker {
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid white;
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
    cursor: pointer;
    transition: transform 0.18s;
}
.custom-map-marker:hover { transform: scale(1.15); }
.custom-map-marker.is-cleaned {
    opacity: 0.75;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* Карточка в списке */
.trash-list-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.18s;
    background: white;
    display: flex;
    align-items: center;
    gap: 12px;
}
.trash-list-card:hover {
    border-color: var(--brand-border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.trash-list-card .min-w-0 { min-width: 0; }
.trash-list-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}
.trash-list-thumb-empty {
    background: var(--brand-soft-2);
    color: var(--brand-border);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
}

/* Статусы */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 6px;
}
/* Цвета статусов */
.status-review { background-color: #fcf4e3; color: #b38024; }
.status-review::before { background-color: #b38024; }
.status-need-clean { background-color: #fae8e8; color: #d94343; }
.status-need-clean::before { background-color: #d94343; }
.status-clean { background-color: #e6f6ee; color: #1f9d74; }
.status-clean::before { background-color: #1f9d74; }

/* Галерея в деталях */
.detail-photo-gallery { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; }
.detail-photo-gallery img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; flex-shrink: 0;}


/* ====================== ЛИЧНЫЙ КАБИНЕТ ====================== */

.flash-messages {
    position: fixed;
    top: 84px;
    right: 24px;
    z-index: 1080;
    width: 360px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.flash-messages .alert {
    border: none;
    border-radius: 12px;
    margin: 0;
}
.flash-messages .alert-success {
    background-color: #e6f6ee;
    color: #1f9d74;
}

.account-page {
    flex: 1;
    background-color: #f8f9fa;
    padding: 24px 30px;
    overflow-y: auto;
    min-height: 0;
}

.account-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    max-width: 1280px;
    margin: 0 auto;
    align-items: start;
}

/* Sidebar */
.account-sidebar {
    background: white;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #eaeaea;
    position: sticky;
    top: 24px;
}

.account-sidebar-header {
    padding: 4px 8px 16px;
    border-bottom: 1px solid #f1f1f1;
    margin-bottom: 12px;
}

.account-sidebar-title {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin: 0 0 4px 0;
}

.account-sidebar-subtitle {
    font-size: 13px;
    color: #888;
    margin: 0;
}

.account-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.account-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #555;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.15s;
}

.account-nav-item i { font-size: 16px; width: 18px; text-align: center; }

.account-nav-item:hover {
    background-color: #f4fbf8;
    color: #1f9d74;
}

.account-nav-item.active {
    background-color: #e6f6ee;
    color: #1f9d74;
    font-weight: 600;
}

.account-sidebar-footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #f1f1f1;
}

.account-nav-logout { color: #888; }
.account-nav-logout:hover { color: #d94343; background-color: #fae8e8; }

/* Content */
.account-content { min-width: 0; }

.account-section-header { margin-bottom: 20px; }
.account-section-header h1 {
    font-size: 26px;
    font-weight: 700;
    color: #222;
    margin-bottom: 4px;
}

.account-card {
    background: white;
    border: 1px solid #eaeaea;
    border-radius: 16px;
    padding: 24px;
}

.account-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 12px;
}

.account-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #222;
    margin: 0;
}

.account-card-sub {
    font-size: 13px;
    color: #888;
    margin: 4px 0 0 0;
}

.account-card-total {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.big-number {
    font-size: 28px;
    font-weight: 700;
    color: #1f9d74;
    line-height: 1;
}

/* Chart */
.activity-chart { margin-top: 16px; }
.chart-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    align-items: end;
    height: 160px;
}
.chart-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
}
.chart-bar-wrap {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: flex-end;
    min-height: 4px;
}
.chart-bar {
    width: 100%;
    background: linear-gradient(180deg, #2ec795 0%, #1f9d74 100%);
    border-radius: 6px 6px 0 0;
    min-height: 4px;
    transition: opacity 0.2s;
}
.chart-bar:hover { opacity: 0.85; }
.chart-label {
    font-size: 11px;
    color: #888;
    margin-top: 6px;
    text-transform: capitalize;
}
.chart-value {
    font-size: 11px;
    color: #1f9d74;
    font-weight: 600;
}

/* Recent list */
.recent-list { list-style: none; padding: 0; margin: 0; }
.recent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f1f1;
}
.recent-item:last-child { border-bottom: none; }
.recent-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background-color: #e6f6ee;
    color: #1f9d74;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.recent-info { flex: 1; min-width: 0; }
.recent-title {
    font-weight: 600;
    font-size: 14px;
    color: #222;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.recent-meta {
    font-size: 12px;
    color: #888;
}

/* Notices */
.notice {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 10px;
    align-items: flex-start;
    border: 1px solid transparent;
}
.notice:last-child { margin-bottom: 0; }
.notice-icon { font-size: 18px; line-height: 1; padding-top: 1px; }
.notice-title { font-weight: 600; color: #222; margin-bottom: 2px; }
.notice-text { font-size: 13px; color: #555; }

.notice-info {
    background-color: #e6f6ee;
    border-color: #cdebe0;
}
.notice-info .notice-icon { color: #1f9d74; }

.notice-warning {
    background-color: #fcf4e3;
    border-color: #f3e0b1;
}
.notice-warning .notice-icon { color: #b38024; }

/* Empty state */
.empty-state {
    text-align: center;
    color: #888;
    padding: 24px 0;
}
.empty-state i { font-size: 28px; color: #cdcdcd; }
.empty-state p { margin: 8px 0 0; font-size: 14px; }

/* Profile avatar */
.profile-avatar-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f1f1;
}
.profile-avatar-lg {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #1f9d74;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Toggles (switches) */
.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #f1f1f1;
}
.toggle-row-last { border-bottom: none; }
.toggle-title { font-weight: 600; color: #222; }
.toggle-sub { font-size: 13px; color: #888; margin-top: 2px; }

.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    flex-shrink: 0;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #cfcfcf;
    transition: 0.2s;
    border-radius: 26px;
}
.slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.2s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.switch input:checked + .slider { background-color: #1f9d74; }
.switch input:checked + .slider::before { transform: translateX(20px); }

/* Privacy radios */
.privacy-block {
    padding: 18px 0;
    border-bottom: 1px solid #f1f1f1;
}
.radio-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s;
}
.radio-card:hover { border-color: #1f9d74; background-color: #f9fcfa; }
.radio-card input[type="radio"] {
    margin-top: 2px;
    accent-color: #1f9d74;
}
.radio-card:has(input:checked) {
    border-color: #1f9d74;
    background-color: #f4fbf8;
}

/* Hint box */
.hint-box {
    background-color: #f4fbf8;
    border: 1px solid #cdebe0;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
    color: #555;
}
.hint-box a { color: #1f9d74; font-weight: 600; }

/* My points */
.point-card { padding: 16px; }
.point-card-main {
    display: flex;
    gap: 16px;
}
.point-thumb {
    width: 110px;
    height: 110px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}
.point-thumb-empty {
    background-color: #f4fbf8;
    color: #cdebe0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}
.point-info { flex: 1; min-width: 0; }
.point-title {
    font-size: 16px;
    font-weight: 700;
    color: #222;
}
.point-address i { color: #1f9d74; }

/* ============ Юзер-дропдаун ============ */
.user-avatar {
    border: none;
    padding: 0;
}
.user-dropdown {
    border-radius: var(--radius-md);
    border: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    min-width: 240px;
    padding: 8px;
    margin-top: 8px;
}
.user-dropdown-header {
    padding: 8px 12px 12px;
    border-bottom: 1px solid var(--line-soft);
    margin-bottom: 6px;
}
.user-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: #444;
    transition: all .12s;
}
.user-dropdown .dropdown-item i { font-size: 16px; width: 18px; text-align: center; color: var(--brand); }
.user-dropdown .dropdown-item:hover { background: var(--brand-soft-2); color: var(--brand); }
.user-dropdown .dropdown-item:active { background: var(--brand); color: white; }
.user-dropdown .dropdown-item:active i { color: white; }
.user-dropdown .dropdown-item.text-danger i { color: var(--danger); }
.user-dropdown .dropdown-item.text-danger:hover { background: #fae8e8; color: var(--danger) !important; }
.user-dropdown .dropdown-divider { border-color: var(--line-soft); margin: 6px 4px; }

/* ============ Auth-модалки ============ */
.auth-modal {
    padding: 24px;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    border-radius: var(--radius-lg);
}
.auth-modal .modal-header { padding: 0 0 16px; }
.auth-modal .modal-body { padding: 0; }
.auth-modal .form-label { color: #444; }

.input-group.has-toggle .form-control { border-right: none; }
.input-group.has-toggle .toggle-password {
    background: white;
    border: 1px solid #ced4da;
    border-left: none;
    cursor: pointer;
    color: #888;
    padding: 0 12px;
}
.input-group.has-toggle .toggle-password:hover { color: var(--brand); }
.input-group.has-toggle .form-control:focus { box-shadow: none; border-color: var(--brand); }
.input-group.has-toggle:focus-within {
    border-radius: var(--radius-sm);
    box-shadow: 0 0 0 0.2rem rgba(31, 157, 116, 0.18);
}
.input-group.has-toggle:focus-within .form-control,
.input-group.has-toggle:focus-within .toggle-password {
    border-color: var(--brand);
}
/* Когда поле невалидное — рамка вокруг всей группы */
.input-group.has-toggle:has(.is-invalid) .form-control,
.input-group.has-toggle:has(.is-invalid) .toggle-password {
    border-color: var(--danger);
}
.input-group.has-toggle .invalid-feedback { width: 100%; }

/* +381 префикс */
.input-group.has-prefix .input-group-text {
    background: var(--brand-soft-2);
    border-color: #ced4da;
    color: var(--brand);
    font-weight: 600;
}
.input-group.has-prefix.input-group-invalid .input-group-text { border-color: var(--danger); }

/* Bootstrap is-valid/is-invalid с фирменными цветами */
.form-control.is-valid,
.form-control.is-valid:focus {
    border-color: var(--brand) !important;
    background-image: none;
    padding-right: 0.75rem;
}
.form-control.is-invalid,
.form-control.is-invalid:focus {
    border-color: var(--danger) !important;
    background-image: none;
    padding-right: 0.75rem;
    box-shadow: none;
}
.form-control.is-valid:focus { box-shadow: 0 0 0 0.2rem rgba(31, 157, 116, 0.18); }
.form-control.is-invalid:focus { box-shadow: 0 0 0 0.2rem rgba(217, 67, 67, 0.18); }
.invalid-feedback { font-size: 12.5px; }

.form-check-input.is-invalid { border-color: var(--danger); }
.form-check-input.is-invalid ~ .form-check-label { color: var(--danger); }

/* Индикатор силы пароля */
.password-strength-bar {
    height: 4px;
    background: #ececec;
    border-radius: 2px;
    overflow: hidden;
}
.password-strength-bar span {
    display: block;
    height: 100%;
    width: 0%;
    background: #cfcfcf;
    transition: all .2s;
}
.password-strength[data-strength="1"] .password-strength-bar span { width: 25%; background: #d94343; }
.password-strength[data-strength="2"] .password-strength-bar span { width: 50%; background: #e0a04a; }
.password-strength[data-strength="3"] .password-strength-bar span { width: 75%; background: #4ec392; }
.password-strength[data-strength="4"] .password-strength-bar span { width: 100%; background: var(--brand); }
.password-strength[data-strength="1"] .password-strength-label { color: #d94343; }
.password-strength[data-strength="2"] .password-strength-label { color: #b38024; }
.password-strength[data-strength="3"] .password-strength-label { color: var(--brand); }
.password-strength[data-strength="4"] .password-strength-label { color: var(--brand); font-weight: 600; }

/* ============ Адаптив ============ */
@media (max-width: 991px) {
    .header { padding: 10px 16px; gap: 8px; }
    .header-nav { display: none; }
    .header-logo { font-size: 20px; }
}

@media (max-width: 768px) {
    .account-page { padding: 16px; }
    .account-container { grid-template-columns: 1fr; gap: 16px; }
    .account-sidebar { position: static; }
    .point-card-main { flex-direction: column; }
    .point-thumb { width: 100%; height: 180px; }
    .flash-messages { right: 8px; left: 8px; width: auto; top: 70px; }
    .auth-modal { padding: 18px; }
    .floating-add-btn { bottom: 16px; right: 16px; }
    .activity-chart .chart-grid { height: 120px; gap: 6px; }
    .account-section-header h1 { font-size: 22px; }
}

/* Bottom sheet включаем на ЛЮБОМ touch-устройстве (pointer:coarse)
   ИЛИ если viewport узкий. Это покрывает Yandex/UCBrowser и т.п.,
   у которых ширина может быть >768px из-за интерфейса браузера. */
@media (max-width: 768px), (pointer: coarse) {
    /* ============ Bottom sheet для карты на мобильных ============ */
    .main-content {
        flex-direction: column;
        position: relative;
        height: calc(100vh - 64px);
        overflow: hidden;
    }
    #map {
        height: 100%;
        min-height: 0;
        flex: 1;
    }
    /* Плавающая кнопка над листом */
    .floating-add-btn { bottom: 160px; z-index: 1050; }

    .sidebar {
        position: absolute;
        left: 0; right: 0; bottom: 0;
        width: 100%;
        max-height: none;
        height: 92vh;
        padding: 0 18px 18px;
        border: none;
        border-radius: 18px 18px 0 0;
        box-shadow: 0 -6px 24px rgba(16, 24, 40, 0.12);
        background: #fff;
        overflow-y: auto;
        overscroll-behavior: contain;
        touch-action: pan-y;
        z-index: 1100;
        transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
        will-change: transform;
    }
    /* Три snap-позиции (transform = насколько вниз ушёл лист) */
    .sidebar.sheet-peek { transform: translateY(calc(100% - 140px)); }
    .sidebar.sheet-half { transform: translateY(45vh); }
    .sidebar.sheet-full { transform: translateY(0); }
    .sidebar.is-dragging { transition: none; }
    /* Полностью прячем лист, когда поверх показана модалка
       (login/register/addPoint/reportPoint и т.д.) */
    .sidebar.is-hidden-by-modal {
        transform: translateY(100%) !important;
        pointer-events: none;
    }

    /* Handle сверху листа */
    .sheet-handle {
        position: sticky;
        top: 0;
        left: 0; right: 0;
        width: 100%;
        height: 32px;
        padding: 0;
        margin: 0 -18px 4px;
        width: calc(100% + 36px);
        background: #fff;
        border: none;
        border-radius: 18px 18px 0 0;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: grab;
        z-index: 5;
    }
    .sheet-handle:active { cursor: grabbing; }
    .sheet-grip {
        display: block;
        width: 44px;
        height: 5px;
        border-radius: 3px;
        background: #d0d5dd;
        transition: background 0.15s, width 0.15s;
    }
    .sheet-handle:hover .sheet-grip,
    .sidebar.sheet-full .sheet-grip { background: #98a2b3; }
    .sidebar.sheet-full .sheet-grip { width: 56px; }

    /* В полном экране — даём контенту максимум высоты */
    .sidebar.sheet-full { padding-top: 0; }

    /* Спрячем категорийный sidebar и категории deeper на peek-уровне,
       чтобы видно было только заголовок «Категории» под handle */
    .sidebar.sheet-peek #sidebar-categories,
    .sidebar.sheet-peek #sidebar-list,
    .sidebar.sheet-peek #sidebar-details {
        pointer-events: none;
    }
}

/* Handle нужен только в bottom-sheet режиме. Прячем когда экран широкий
   И устройство НЕ сенсорное (т.е. настоящий десктоп с мышью). */
@media (min-width: 769px) and (pointer: fine) {
    .sheet-handle { display: none; }
}

@media (max-width: 576px) {
    .header { padding: 8px 12px; }
    .header-logo span,
    .header-logo { font-size: 18px; }
    .lang-select-wrap { display: none !important; }
    .btn { padding: 8px 14px; font-size: 13px; }
    .header-controls { gap: 6px; }
    .user-avatar { width: 38px; height: 38px; }
}


/* ============ Категории в сайдбаре карты ============ */
.pollution-card { transition: all .18s; }
.pollution-card:hover {
    border-color: var(--brand-border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.category-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}

/* ============ Radio-карточки типов загрязнения в модалке ============ */
.pollution-radio-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 12px 12px 8px;
    cursor: pointer;
    transition: all .15s;
    margin-left: 0;
}
.pollution-radio-card:hover { border-color: var(--accent, var(--brand)); background: #fbfbfb; }
.pollution-radio-card:has(input:checked) {
    border-color: var(--accent, var(--brand));
    background: color-mix(in srgb, var(--accent, var(--brand)) 8%, white);
}
.pollution-radio-card .form-check-input:checked {
    background-color: var(--accent, var(--brand));
    border-color: var(--accent, var(--brand));
}
.pollution-mini {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

/* ============ Chips типов мусора (форма) ============ */
.trash-type-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.trash-type-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    background: white;
    color: #555;
    font-weight: 500;
    font-size: 13px;
    transition: all .15s;
    user-select: none;
}
.trash-type-chip input { display: none; }
.trash-type-chip:hover {
    border-color: var(--accent, var(--brand));
    color: var(--accent, var(--brand));
}
.trash-type-chip:has(input:checked) {
    background: var(--accent, var(--brand));
    border-color: var(--accent, var(--brand));
    color: white;
}

/* ============ Детальная карточка точки ============ */
#sidebar-details { padding: 0; margin: -20px; }

.detail-back {
    background: #fff;
    border: none;
    color: var(--text);
    font-weight: 600;
    font-size: 13px;
    padding: 12px 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    /* Sticky-вверх, чтобы кнопка «Назад» оставалась видимой при скролле */
    position: sticky;
    top: 0;
    z-index: 10;
    width: 100%;
    border-bottom: 1px solid var(--line);
}
.detail-back:hover { color: var(--brand); }

/* Sticky-кнопка «Назад к категориям» в списке точек выбранной категории */
#sidebar-list > .btn-link {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff !important;
    margin: 0 -20px 12px !important;
    padding: 12px 20px !important;
    border-bottom: 1px solid var(--line);
    width: calc(100% + 40px);
    text-align: left;
}
/* Под handle на мобильном bottom-sheet кнопка «Назад» */
.sidebar.sheet-full #sidebar-list > .btn-link,
.sidebar.sheet-half #sidebar-list > .btn-link,
.sidebar.sheet-peek #sidebar-list > .btn-link {
    top: 32px;   /* высота handle */
}
.sidebar.sheet-full .detail-back,
.sidebar.sheet-half .detail-back,
.sidebar.sheet-peek .detail-back {
    top: 32px;
}

.detail-header {
    color: white;
    padding: 20px;
    border-radius: 0 0 18px 18px;
    position: relative;
}
.detail-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 12px;
}
.detail-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 6px 0;
    line-height: 1.25;
}
.detail-address {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 12px;
}
.detail-address i { margin-right: 4px; }
.detail-status {
    background: white !important;
    color: var(--text) !important;
}
.detail-status::before { display: inline-block !important; }

.detail-body { padding: 20px; }
.detail-block-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-top: 18px;
    margin-bottom: 10px;
}
.detail-block-title:first-child { margin-top: 0; }

.detail-description {
    font-size: 13.5px;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

/* "Что важно знать" */
.safety-tip {
    background: #fff8e6;
    border: 1px solid #ffe2a8;
    border-radius: 12px;
    padding: 12px 14px;
    margin-top: 14px;
}
.safety-tip-head { margin-bottom: 6px; }
.safety-tip-badge {
    display: inline-block;
    background: #f5d27c;
    color: #6b4f17;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.safety-tip-text {
    font-size: 13px;
    color: #6b4f17;
    margin: 0;
    line-height: 1.5;
}

/* Бейджи типов мусора */
.trash-type-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.trash-type-badge {
    display: inline-block;
    padding: 6px 12px;
    color: white;
    font-weight: 600;
    font-size: 12px;
    border-radius: 999px;
    line-height: 1;
}

/* Таймлайн */
.timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--line);
}
.timeline li {
    position: relative;
    padding-left: 22px;
    padding-bottom: 14px;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline-dot {
    position: absolute;
    left: 0;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--brand);
    border: 2px solid white;
    box-shadow: 0 0 0 1px var(--brand);
}
.timeline-date {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
}
.timeline-text {
    font-size: 13px;
    color: #666;
    margin-top: 2px;
    line-height: 1.4;
}

/* Вкладки «Уборки» / «История активности» */
.detail-tabs {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 14px;
}
.detail-tab {
    background: none;
    border: none;
    padding: 6px 0 10px;
    font-size: 14px;
    font-weight: 600;
    color: #9aa0a6;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    transition: color .15s, border-color .15s;
}
.detail-tab:hover { color: var(--text); }
.detail-tab.is-active { color: var(--brand); border-bottom-color: var(--brand); }

.detail-empty-note { font-size: 13px; color: #9aa0a6; margin: 4px 0 0; }

/* Мини-бейдж статуса уборки в таймлайне */
.cleanup-scope-mini {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: 4px;
    vertical-align: middle;
}
.cleanup-scope-mini.scope-full    { background: #e3f6ec; color: #1f9d74; }
.cleanup-scope-mini.scope-partial { background: #fdefdb; color: #b5781f; }

/* Кнопка «Развернуть/Свернуть» — зелёная, без синего подчёркивания */
.timeline-toggle {
    background: none;
    border: none;
    padding: 8px 0 0;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}
.timeline-toggle:hover { color: #18815f; text-decoration: underline; }

/* Действия */
.detail-actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line-soft);
}
.detail-actions .btn { font-size: 13px; padding: 10px 12px; }

/* Закреплённая снизу кнопка действия в карточке точки */
.detail-footer {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 14px 20px;
    border-top: 1px solid var(--line);
    margin-top: auto;
    z-index: 10;
}
.detail-footer .btn { font-weight: 600; padding: 11px 12px; }
/* sidebar-details должен растягиваться, чтобы footer прижимался к низу */
#sidebar-details { display: flex; flex-direction: column; }
#sidebar-details .detail-body { flex: 1 0 auto; }

@media (max-width: 768px) {
    .detail-actions { flex-direction: column; }
    .trash-type-grid { gap: 6px; }
}

/* ============ Модалка «Отметить как убрано» ============ */
.cleanup-progress {
    width: 120px; height: 4px;
    background: #e6efe9;
    border-radius: 999px;
    margin-top: 6px;
    overflow: hidden;
}
.cleanup-progress span {
    display: block; height: 100%;
    background: var(--brand);
    border-radius: 999px;
    transition: width .25s;
}

/* Карточки «что удалось сделать» */
.cleanup-scope-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.cleanup-scope-card {
    text-align: left;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.cleanup-scope-card:hover { border-color: #bfe0d2; }
.cleanup-scope-card.is-active {
    border-color: var(--brand);
    background: #f1faf6;
}
.cleanup-scope-title { font-weight: 700; font-size: 14px; color: var(--text); margin-bottom: 4px; }
.cleanup-scope-desc { font-size: 12px; color: #6b7280; line-height: 1.4; }

/* Фото до/после */
.cleanup-photos-row { display: flex; gap: 28px; }
.cleanup-photos-col { flex: 1; min-width: 0; }
.cleanup-photo-tag {
    display: inline-block;
    font-size: 11px; font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}
.cleanup-photo-tag.tag-before { background: #fde8e8; color: #c0392b; }
.cleanup-photo-tag.tag-after  { background: #e3f6ec; color: #1f9d74; }
.cleanup-photo-list { display: flex; flex-wrap: wrap; gap: 8px; }
.cleanup-photo-item, .cleanup-photo-add {
    width: 56px; height: 56px;
    border-radius: 10px;
    flex-shrink: 0;
}
.cleanup-photo-item { position: relative; overflow: hidden; background: #f1f3f5; }
.cleanup-photo-item img { width: 100%; height: 100%; object-fit: cover; }
.cleanup-photo-remove {
    position: absolute; top: 2px; right: 2px;
    width: 18px; height: 18px;
    border: none; border-radius: 50%;
    background: rgba(255,255,255,.9);
    color: #c0392b;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; cursor: pointer;
    padding: 0;
}
.cleanup-photo-add {
    border: 1.5px dashed #bfe0d2;
    background: #f6fbf8;
    color: var(--brand);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 20px;
}
.cleanup-photo-add:hover { background: #ecf7f1; }

/* Участники */
.cleanup-people { position: relative; }
.cleanup-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cleanup-chips:not(:empty) { margin-bottom: 8px; }
.cleanup-chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: #f1faf6;
    border: 1px solid #cdeadd;
    border-radius: 999px;
    padding: 3px 8px 3px 4px;
    font-size: 13px; font-weight: 500;
    color: var(--text);
}
.cleanup-chip-av {
    width: 22px; height: 22px; border-radius: 50%;
    background: linear-gradient(135deg, #1f9d74, #5d8aa8);
    color: #fff; font-size: 10px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.cleanup-chip button {
    border: none; background: none; color: #9aa0a6;
    padding: 0; display: inline-flex; cursor: pointer;
}
.cleanup-chip button:hover { color: #c0392b; }
.cleanup-people-input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 14px;
    outline: none;
}
.cleanup-people-input:focus { border-color: var(--brand); }
.cleanup-people-results {
    position: absolute;
    left: 0; right: 0; top: 100%;
    margin-top: 4px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(16,24,40,.1);
    z-index: 20;
    overflow: hidden;
    max-height: 240px; overflow-y: auto;
}
.cleanup-people-item {
    display: flex; align-items: center; gap: 10px;
    width: 100%;
    border: none; background: none;
    padding: 9px 12px;
    cursor: pointer;
    text-align: left;
}
.cleanup-people-item:hover { background: #f6fbf8; }
.cleanup-people-name { display: block; font-size: 14px; color: var(--text); }
.cleanup-people-username { display: block; font-size: 12px; color: #9aa0a6; }

/* Поля с суффиксом (литров / ч / м) */
.cleanup-suffix-input {
    position: relative; flex: 1; min-width: 0;
}
.cleanup-suffix-input input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 9px 44px 9px 12px;
    font-size: 14px;
    outline: none;
}
.cleanup-suffix-input input:focus { border-color: var(--brand); }
.cleanup-suffix-input span {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    font-size: 13px; color: #9aa0a6; pointer-events: none;
}
/* убираем стрелки у number-инпутов */
.cleanup-suffix-input input::-webkit-outer-spin-button,
.cleanup-suffix-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cleanup-suffix-input input[type=number] { -moz-appearance: textfield; }

@media (max-width: 480px) {
    .cleanup-scope-grid { grid-template-columns: 1fr; }
    .cleanup-photos-row { gap: 16px; }
}