* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    background: #f8fafc;
    color: #0f172a;
}

body {
    overflow: hidden;
}

#app {
    position: relative;
    height: 100vh;
    width: 100%;
    background: #f8fafc;
}

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3000;
    height: 88px;
    padding: 36px 18px 12px;
    background: rgba(255, 255, 255, 0.96);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.brand {
    font-size: 22px;
    font-weight: 900;
    color: #000000;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-btn {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 14px;
    background: #f1f5f9;
    font-size: 22px;
    cursor: pointer;
}

.map-wrap {
    position: absolute;
    inset: 88px 0 86px 0;
}

#map {
    width: 100%;
    height: 100%;
}

.floating-table-btn {
    position: fixed;
    top: 104px;
    right: 18px;
    z-index: 2500;
    height: 42px;
    padding: 0 16px;
    border: none;
    border-radius: 14px;
    background: #0f172a;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
    cursor: pointer;
}

.bottom-nav {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: 8px;
    z-index: 3500;
    height: 64px;
    padding: 6px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.bottom-nav button {
    border: none;
    border-radius: 14px;
    background: transparent;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.bottom-nav button.active {
    background: #0f172a;
    color: #ffffff;
}

.station-card {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3200;
    background: #ffffff;
    border-radius: 28px 28px 0 0;
    padding: 10px 18px 92px;
    box-shadow: 0 -12px 36px rgba(15, 23, 42, 0.18);
    transform: translateY(105%);
    transition: transform 0.22s ease;
    max-height: 72vh;
    overflow-y: auto;
}

.station-card.open {
    transform: translateY(0);
}

.card-handle,
.sheet-handle {
    width: 64px;
    height: 6px;
    border-radius: 999px;
    background: #d1d5db;
    margin: 4px auto 14px;
}

.card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.card-head h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
}

.card-head p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 15px;
    font-weight: 600;
}

.card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.route-small-btn,
.history-small-btn,
.favorite-small-btn {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.route-small-btn {
    background: #eff6ff;
    color: #2563eb;
}

.history-small-btn {
    background: #f5f3ff;
    color: #7c3aed;
}

.favorite-small-btn {
    background: #fffbeb;
    color: #f59e0b;
}

.status-badge {
    height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
}

.status-green {
    background: #dcfce7;
    color: #166534;
}

.status-yellow {
    background: #fef3c7;
    color: #92400e;
}

.status-red {
    background: #fee2e2;
    color: #991b1b;
}

.status-gray {
    background: #e5e7eb;
    color: #374151;
}

.fuel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.fuel-grid div {
    background: #f8fafc;
    border-radius: 16px;
    padding: 16px 12px;
    text-align: center;
}

.fuel-grid span {
    display: block;
    color: #64748b;
    font-size: 13px;
    margin-bottom: 8px;
}

.fuel-grid strong {
    font-size: 18px;
    font-weight: 900;
}

.info-list {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.info-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 16px;
}

.info-list span {
    color: #64748b;
}

.info-list strong {
    font-weight: 900;
}

.primary-btn {
    width: 100%;
    height: 56px;
    border: none;
    border-radius: 18px;
    background: #2563eb;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
}

.modal,
.search-modal,
.profile-modal,
.history-modal,
.fuel-table-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: rgba(15, 23, 42, 0.32);
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.modal.open,
.search-modal.open,
.profile-modal.open,
.history-modal.open,
.fuel-table-modal.open {
    display: flex;
}

.modal-window,
.search-window,
.profile-window,
.history-window,
.fuel-table-window {
    width: 100%;
    max-width: 680px;
    max-height: 82vh;
    background: #ffffff;
    border-radius: 28px 28px 0 0;
    padding: 10px 18px 22px;
    overflow-y: auto;
}

.modal-top,
.search-head,
.profile-head,
.history-head,
.fuel-table-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.modal-window h2,
.search-window h2,
.profile-window h2,
.history-window h2,
.fuel-table-window h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
}

.modal-window p,
.search-window p,
.profile-window p,
.history-window p,
.fuel-table-window p {
    margin: 6px 0 0;
    font-size: 15px;
    color: #64748b;
}

.icon-close-btn {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 12px;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 24px;
    cursor: pointer;
}

.hidden {
    display: none;
}

.report-item,
.queue-item,
.fuel-choice,
.search-action-btn,
.search-secondary-btn,
.search-brand-btn {
    width: 100%;
    min-height: 58px;
    border: none;
    border-radius: 18px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 16px;
    font-weight: 800;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    margin-bottom: 12px;
    text-align: left;
}

.report-item .left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
}

.green-dot {
    background: #22c55e;
}

.yellow-dot {
    background: #f59e0b;
}

.red-dot {
    background: #ef4444;
}

.search-section-title {
    margin: 14px 0 12px;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.search-brand-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.search-action-btn {
    background: #eff6ff;
    color: #2563eb;
}

.search-secondary-btn {
    background: #f1f5f9;
    color: #0f172a;
}

.fuel-choice strong {
    color: #64748b;
    font-weight: 900;
}

.fuel-choice.selected {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.fuel-choice.selected strong {
    color: #2563eb;
}

.profile-stats {
    display: grid;
    gap: 12px;
    margin: 12px 0 16px;
}

.profile-stats div {
    background: #f8fafc;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.profile-stats span {
    color: #64748b;
    font-size: 15px;
}

.profile-stats strong {
    font-size: 20px;
    font-weight: 900;
}

.profile-action-btn,
.profile-danger-btn {
    width: 100%;
    height: 54px;
    border: none;
    border-radius: 18px;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    margin-bottom: 12px;
}

.profile-action-btn {
    background: #e0f2fe;
    color: #0369a1;
}

.profile-danger-btn {
    background: #fee2e2;
    color: #b91c1c;
}

.history-list,
.fuel-table-list {
    display: grid;
    gap: 10px;
}

.history-row,
.fuel-table-row {
    width: 100%;
    border: none;
    background: #f8fafc;
    border-radius: 16px;
    padding: 14px;
    text-align: left;
}

.history-row-title,
.fuel-table-title {
    font-size: 15px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 6px;
}

.history-row-meta,
.fuel-table-meta {
    font-size: 13px;
    line-height: 1.4;
    color: #475569;
}

.history-row-time,
.fuel-table-updated {
    margin-top: 6px;
    font-size: 12px;
    color: #64748b;
}

.history-empty,
.fuel-table-empty {
    background: #f8fafc;
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    color: #64748b;
    font-weight: 700;
}

.fuel-table-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
}

.fuel-table-main {
    min-width: 0;
    flex: 1;
}

.fuel-table-status {
    min-width: 90px;
    height: 34px;
    border-radius: 999px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
}

.fuel-table-status-green {
    background: #dcfce7;
    color: #166534;
}

.fuel-table-status-yellow {
    background: #fef3c7;
    color: #92400e;
}

.fuel-table-status-red {
    background: #fee2e2;
    color: #991b1b;
}

.fuel-table-status-gray {
    background: #e5e7eb;
    color: #374151;
}

/* ===== Russia map clean design ===== */

#statusFilterPanel,
.status-filter-panel,
.status-filters,
.filter-panel {
    display: none !important;
}

#map {
    background: #eef2f7 !important;
}

.leaflet-container {
    background: #eef2f7 !important;
    font-family: Arial, sans-serif !important;
}

.leaflet-tile-pane {
    filter: saturate(0.92) contrast(1.02) brightness(1.02);
}

.leaflet-control-attribution {
    display: none !important;
}

.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.16) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
}

.leaflet-control-zoom a {
    width: 42px !important;
    height: 42px !important;
    line-height: 42px !important;
    border: none !important;
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 22px !important;
    font-weight: 900 !important;
}

.topbar {
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.top-btn,
.floating-table-btn {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12) !important;
}

.bottom-nav {
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.bottom-nav button.active {
    background: #111827 !important;
    color: #ffffff !important;
}

.station-card {
    border-radius: 30px 30px 0 0 !important;
    box-shadow: 0 -18px 44px rgba(15, 23, 42, 0.20) !important;
}

.primary-btn {
    background: #2563eb !important;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24) !important;
}

.route-small-btn,
.history-small-btn,
.favorite-small-btn {
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.08) !important;
}


/* ===== Report modal fix ===== */

.station-card.station-card-report-hidden {
    transform: translateY(110%) !important;
    pointer-events: none !important;
}

#reportModal.open {
    z-index: 9000 !important;
}

#reportModal .modal-window {
    z-index: 9001 !important;
}

#reportModal .sheet-handle,
#stationCardHandle {
    cursor: pointer;
}


/* ===== Compact filter and clean report flow ===== */

.floating-table-btn,
.fuel-table-modal,
.fuel-table-window {
    display: none !important;
}

.compact-filter {
    position: fixed;
    right: 14px;
    top: 104px;
    z-index: 2600;
    width: 190px;
    display: grid;
    gap: 8px;
}

.compact-filter-toggle {
    width: 100%;
    height: 42px;
    border: none;
    border-radius: 16px;
    background: #0f172a;
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}

.compact-filter-panel {
    display: grid;
    gap: 7px;
    padding: 8px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.compact-filter.collapsed .compact-filter-panel {
    display: none;
}

.status-filter-btn {
    height: 38px;
    border: none;
    border-radius: 13px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
}

.status-filter-btn.active {
    background: #0f172a;
    color: #ffffff;
}

.status-filter-btn span {
    opacity: 0.85;
}

#reportModal.open {
    z-index: 9000 !important;
}

#reportModal .modal-window {
    z-index: 9001 !important;
}

.modal-window {
    max-width: 520px;
}

@media (max-width: 700px) {
    .compact-filter {
        width: 158px;
        right: 10px;
        top: 96px;
    }

    .compact-filter-toggle {
        height: 38px;
        font-size: 13px;
    }

    .status-filter-btn {
        height: 34px;
        font-size: 12px;
    }

    .modal-window {
        max-width: 100%;
    }
}


/* ===== Filter and marker visibility fix ===== */

.compact-filter #statusFilterPanel.compact-filter-panel {
    display: grid !important;
}

.compact-filter.collapsed #statusFilterPanel.compact-filter-panel {
    display: none !important;
}

.leaflet-marker-icon {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.leaflet-marker-pane {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.leaflet-tile-pane {
    opacity: 1 !important;
}



/* ===== markers_stable1 ===== */

.leaflet-marker-icon,
.fuelmap-marker {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.leaflet-marker-pane {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.compact-filter #statusFilterPanel.compact-filter-panel {
    display: grid !important;
}

.compact-filter.collapsed #statusFilterPanel.compact-filter-panel {
    display: none !important;
}


/* ===== markers_cache_fast1 ===== */

.leaflet-marker-pane,
.leaflet-marker-icon,
.fuelmap-marker-front-fix {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 9999 !important;
}

.compact-filter #statusFilterPanel.compact-filter-panel {
    display: grid !important;
}

.compact-filter.collapsed #statusFilterPanel.compact-filter-panel {
    display: none !important;
}

/* prod_clean_1 */
.fuelmap-prod-marker {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* hard_report_2 */
#reportModal.open {
    display: flex !important;
    z-index: 99999 !important;
}

#reportModal .modal-window {
    z-index: 100000 !important;
}

.station-card:not(.open) {
    pointer-events: none;
}

/* city_select_1 */
.city-select-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(15, 23, 42, 0.32);
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.city-select-modal.open {
    display: flex;
}

.city-select-window {
    width: 100%;
    max-width: 520px;
    max-height: 82vh;
    background: #ffffff;
    border-radius: 28px 28px 0 0;
    padding: 10px 18px 24px;
    overflow-y: auto;
}

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

.city-select-head h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
}

.city-select-head p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 15px;
}

.city-select-list {
    display: grid;
    gap: 10px;
}

.city-select-item {
    width: 100%;
    min-height: 54px;
    border: none;
    border-radius: 17px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 16px;
    font-weight: 900;
    text-align: left;
    padding: 0 16px;
    cursor: pointer;
}

.city-select-item:active {
    background: #e2e8f0;
}

/* city_geo_2 */
.city-map-btn {
    position: fixed;
    right: 16px;
    top: 92px;
    z-index: 2000;
    height: 48px;
    min-width: 74px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    color: #0f172a;
    font-size: 15px;
    font-weight: 900;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.16);
    cursor: pointer;
}

.city-select-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(15, 23, 42, 0.32);
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.city-select-modal.open {
    display: flex;
}

.city-select-window {
    width: 100%;
    max-width: 520px;
    max-height: 82vh;
    background: #ffffff;
    border-radius: 28px 28px 0 0;
    padding: 10px 18px 24px;
    overflow-y: auto;
}

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

.city-select-head h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
}

.city-select-head p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 15px;
}

.city-select-list {
    display: grid;
    gap: 10px;
}

.city-select-item {
    width: 100%;
    min-height: 54px;
    border: none;
    border-radius: 17px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 16px;
    font-weight: 900;
    text-align: left;
    padding: 0 16px;
    cursor: pointer;
}

.city-select-item:active {
    background: #e2e8f0;
}

/* city_search_1 */
.city-search-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(15, 23, 42, 0.32);
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.city-search-modal.open {
    display: flex;
}

.city-search-window {
    width: 100%;
    max-width: 520px;
    max-height: 82vh;
    background: #ffffff;
    border-radius: 28px 28px 0 0;
    padding: 10px 18px 24px;
    overflow-y: auto;
}

.city-search-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.city-search-head h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
}

.city-search-head p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 15px;
}

.city-search-input {
    width: 100%;
    height: 54px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 16px;
    font-weight: 800;
    padding: 0 16px;
    outline: none;
    box-sizing: border-box;
    margin-bottom: 14px;
}

.city-search-input:focus {
    border-color: #22c55e;
    background: #ffffff;
}

.city-search-results {
    display: grid;
    gap: 10px;
}

.city-search-item {
    width: 100%;
    min-height: 58px;
    border: none;
    border-radius: 18px;
    background: #f8fafc;
    color: #0f172a;
    text-align: left;
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.city-search-item span {
    font-size: 16px;
    font-weight: 900;
}

.city-search-item small {
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.city-search-item:active {
    background: #e2e8f0;
}

.city-search-empty {
    min-height: 54px;
    display: flex;
    align-items: center;
    color: #64748b;
    font-size: 15px;
    font-weight: 800;
}

/* city_server_search_1 */
.city-search-section-title {
    color: #64748b;
    font-size: 13px;
    font-weight: 900;
    padding: 4px 2px 2px;
}

/* history_1 */
.history-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(15, 23, 42, 0.32);
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.history-modal.open {
    display: flex;
}

.history-window {
    width: 100%;
    max-width: 520px;
    max-height: 82vh;
    background: #ffffff;
    border-radius: 28px 28px 0 0;
    padding: 10px 18px 24px;
    overflow-y: auto;
}

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

.history-head h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
}

.history-head p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 15px;
}

.history-list {
    display: grid;
    gap: 10px;
}

.history-item {
    width: 100%;
    border: none;
    border-radius: 18px;
    background: #f8fafc;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
}

.history-item-main {
    display: grid;
    gap: 4px;
}

.history-item-main strong {
    color: #0f172a;
    font-size: 15px;
    font-weight: 900;
}

.history-item-main span {
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.history-status {
    border-radius: 999px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.history-status.green {
    background: #dcfce7;
    color: #166534;
}

.history-status.yellow {
    background: #fef3c7;
    color: #92400e;
}

.history-status.red {
    background: #fee2e2;
    color: #991b1b;
}

.history-status.gray {
    background: #e5e7eb;
    color: #374151;
}

.history-empty {
    min-height: 56px;
    display: flex;
    align-items: center;
    color: #64748b;
    font-size: 15px;
    font-weight: 800;
}

/* buttons_theme_1 */
.fm-btn-themed {
    border: none !important;
    outline: none !important;
    font-family: inherit !important;
    font-weight: 900 !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent !important;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease !important;
}

.fm-btn-themed:active {
    transform: scale(.96) !important;
}

.fm-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.fm-btn-text {
    line-height: 1;
    white-space: nowrap;
}

/* Плавающие кнопки на карте */
#refreshBtn.fm-city-btn,
#locationBtn.fm-location-btn {
    position: fixed !important;
    right: 14px !important;
    z-index: 2200 !important;

    min-width: 92px !important;
    height: 48px !important;
    padding: 0 14px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;

    border-radius: 18px !important;
    background: rgba(255, 255, 255, .94) !important;
    color: #0f172a !important;
    border: 1px solid rgba(226, 232, 240, .95) !important;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .18) !important;
    backdrop-filter: blur(12px) !important;
}

#refreshBtn.fm-city-btn {
    top: 92px !important;
}

#locationBtn.fm-location-btn {
    top: 150px !important;
}

#refreshBtn.fm-city-btn .fm-btn-icon,
#locationBtn.fm-location-btn .fm-btn-icon {
    width: 26px !important;
    height: 26px !important;
    border-radius: 10px !important;
    background: #dcfce7 !important;
    color: #16a34a !important;
    font-size: 18px !important;
}

#refreshBtn.fm-city-btn .fm-btn-text,
#locationBtn.fm-location-btn .fm-btn-text {
    font-size: 14px !important;
}

/* Кнопка маршрута в карточке */
#routeBtn.fm-route-btn {
    min-height: 52px !important;
    width: 100% !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;

    border-radius: 18px !important;
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
    color: #ffffff !important;
    box-shadow: 0 14px 34px rgba(34, 197, 94, .28) !important;
}

#routeBtn.fm-route-btn .fm-btn-icon {
    width: 28px !important;
    height: 28px !important;
    border-radius: 11px !important;
    background: rgba(255, 255, 255, .22) !important;
    font-size: 18px !important;
}

#routeBtn.fm-route-btn .fm-btn-text {
    font-size: 16px !important;
}

/* Кнопка избранного в карточке */
#favoriteBtn.fm-favorite-btn {
    min-height: 46px !important;
    min-width: 46px !important;
    padding: 0 14px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;

    border-radius: 16px !important;
    background: #f8fafc !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .10) !important;
}

#favoriteBtn.fm-favorite-btn .fm-btn-icon {
    color: #f59e0b !important;
    font-size: 20px !important;
}

#favoriteBtn.fm-favorite-btn .fm-btn-text {
    font-size: 14px !important;
}

#favoriteBtn.fm-favorite-btn.is-favorite {
    background: #fef3c7 !important;
    color: #92400e !important;
    border-color: #fde68a !important;
}

/* Нижняя кнопка Избранное */
#navFavoritesBtn.fm-bottom-fav {
    border-radius: 18px !important;
}

#navFavoritesBtn.fm-bottom-fav.active {
    background: #fef3c7 !important;
    color: #92400e !important;
}

/* На маленьких экранах делаем компактнее */
@media (max-width: 420px) {
    #refreshBtn.fm-city-btn,
    #locationBtn.fm-location-btn {
        min-width: 84px !important;
        height: 44px !important;
        right: 12px !important;
        padding: 0 12px !important;
        border-radius: 16px !important;
    }

    #refreshBtn.fm-city-btn {
        top: 86px !important;
    }

    #locationBtn.fm-location-btn {
        top: 138px !important;
    }

    #refreshBtn.fm-city-btn .fm-btn-text,
    #locationBtn.fm-location-btn .fm-btn-text {
        font-size: 13px !important;
    }

    #favoriteBtn.fm-favorite-btn .fm-btn-text {
        display: none !important;
    }
}

/* buttons_theme_2_compact */
.fm-btn-themed {
    border: none !important;
    outline: none !important;
    font-family: inherit !important;
    font-weight: 900 !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent !important;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease !important;
}

.fm-btn-themed:active {
    transform: scale(.94) !important;
}

.fm-btn-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

.fm-btn-text {
    line-height: 1 !important;
    white-space: nowrap !important;
}

/* Кнопки на карте: компактные, чтобы не перекрывали фильтр */
#refreshBtn.fm-city-btn,
#locationBtn.fm-location-btn {
    position: fixed !important;
    right: 14px !important;
    z-index: 2200 !important;

    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
    height: 50px !important;
    padding: 0 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 18px !important;
    background: rgba(255, 255, 255, .96) !important;
    color: #16a34a !important;
    border: 1px solid rgba(226, 232, 240, .95) !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .16) !important;
    backdrop-filter: blur(12px) !important;
}

#refreshBtn.fm-city-btn {
    top: 96px !important;
}

#locationBtn.fm-location-btn {
    top: 154px !important;
}

#refreshBtn.fm-city-btn .fm-btn-icon,
#locationBtn.fm-location-btn .fm-btn-icon {
    width: 28px !important;
    height: 28px !important;
    border-radius: 12px !important;
    background: #dcfce7 !important;
    color: #16a34a !important;
    font-size: 18px !important;
}

#refreshBtn.fm-city-btn .fm-btn-text,
#locationBtn.fm-location-btn .fm-btn-text {
    display: none !important;
}

/* Строка действий в карточке АЗС */
.fm-card-actions-fixed {
    display: grid !important;
    grid-template-columns: 1fr 54px !important;
    gap: 10px !important;
    align-items: center !important;
    width: 100% !important;
}

/* Маршрут */
#routeBtn.fm-route-btn {
    width: 100% !important;
    min-width: 0 !important;
    height: 52px !important;
    padding: 0 18px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;

    border-radius: 18px !important;
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
    color: #ffffff !important;
    box-shadow: 0 14px 34px rgba(34, 197, 94, .28) !important;
}

#routeBtn.fm-route-btn .fm-btn-icon {
    width: 28px !important;
    height: 28px !important;
    border-radius: 11px !important;
    background: rgba(255, 255, 255, .22) !important;
    font-size: 18px !important;
}

#routeBtn.fm-route-btn .fm-btn-text {
    font-size: 16px !important;
}

/* Избранное в карточке: только круглая звезда */
#favoriteBtn.fm-favorite-btn {
    width: 54px !important;
    min-width: 54px !important;
    max-width: 54px !important;
    height: 52px !important;
    padding: 0 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 18px !important;
    background: #f8fafc !important;
    color: #f59e0b !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .10) !important;
    overflow: hidden !important;
}

#favoriteBtn.fm-favorite-btn .fm-btn-icon {
    color: #f59e0b !important;
    font-size: 22px !important;
}

#favoriteBtn.fm-favorite-btn .fm-btn-text {
    display: none !important;
}

#favoriteBtn.fm-favorite-btn.is-favorite {
    background: #fef3c7 !important;
    color: #92400e !important;
    border-color: #fde68a !important;
}

/* На маленьких экранах */
@media (max-width: 420px) {
    #refreshBtn.fm-city-btn,
    #locationBtn.fm-location-btn {
        right: 12px !important;
        width: 46px !important;
        min-width: 46px !important;
        max-width: 46px !important;
        height: 46px !important;
        border-radius: 16px !important;
    }

    #refreshBtn.fm-city-btn {
        top: 90px !important;
    }

    #locationBtn.fm-location-btn {
        top: 142px !important;
    }

    .fm-card-actions-fixed {
        grid-template-columns: 1fr 50px !important;
        gap: 8px !important;
    }

    #favoriteBtn.fm-favorite-btn {
        width: 50px !important;
        min-width: 50px !important;
        max-width: 50px !important;
    }
}

/* layout_clear_1 */
/* Жёстко переносим кнопки города и гео вниз справа, чтобы они не перекрывали фильтр */
#refreshBtn.fm-map-floating-btn,
#locationBtn.fm-map-floating-btn,
#refreshBtn.fm-city-btn,
#locationBtn.fm-location-btn {
    position: fixed !important;
    top: auto !important;
    left: auto !important;
    right: 14px !important;

    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
    height: 50px !important;
    padding: 0 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    border: 1px solid rgba(226, 232, 240, .95) !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, .97) !important;
    color: #16a34a !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .16) !important;
    backdrop-filter: blur(12px) !important;

    z-index: 2600 !important;
    overflow: hidden !important;
}

#refreshBtn.fm-map-floating-btn,
#refreshBtn.fm-city-btn {
    bottom: 154px !important;
}

#locationBtn.fm-map-floating-btn,
#locationBtn.fm-location-btn {
    bottom: 96px !important;
}

#refreshBtn.fm-map-floating-btn span,
#locationBtn.fm-map-floating-btn span,
#refreshBtn.fm-city-btn .fm-btn-icon,
#locationBtn.fm-location-btn .fm-btn-icon {
    width: 28px !important;
    height: 28px !important;
    border-radius: 12px !important;
    background: #dcfce7 !important;
    color: #16a34a !important;
    font-size: 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#refreshBtn .fm-btn-text,
#locationBtn .fm-btn-text {
    display: none !important;
}

/* Когда открыта карточка АЗС, плавающие кнопки карты не мешают */
#stationCard.open ~ #refreshBtn,
#stationCard.open ~ #locationBtn {
    display: none !important;
}

/* На телефоне чуть ниже и компактнее */
@media (max-width: 420px) {
    #refreshBtn.fm-map-floating-btn,
    #locationBtn.fm-map-floating-btn,
    #refreshBtn.fm-city-btn,
    #locationBtn.fm-location-btn {
        right: 12px !important;
        width: 46px !important;
        min-width: 46px !important;
        max-width: 46px !important;
        height: 46px !important;
        border-radius: 16px !important;
    }

    #refreshBtn.fm-map-floating-btn,
    #refreshBtn.fm-city-btn {
        bottom: 148px !important;
    }

    #locationBtn.fm-map-floating-btn,
    #locationBtn.fm-location-btn {
        bottom: 94px !important;
    }
}

/* floating_controls_1 */
.fm-old-map-btn-hidden {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.fm-map-controls {
    position: fixed;
    right: 18px;
    bottom: 116px;
    z-index: 5000;
    display: grid;
    gap: 10px;
}

.fm-map-control-btn {
    width: 52px;
    height: 52px;
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: 18px;
    background: rgba(255, 255, 255, .97);
    color: #16a34a;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .16);
    backdrop-filter: blur(12px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.fm-map-control-btn span {
    width: 30px;
    height: 30px;
    border-radius: 12px;
    background: #dcfce7;
    color: #16a34a;
    font-size: 19px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fm-map-control-btn:active {
    transform: scale(.94);
}

.fm-city-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(15, 23, 42, 0.32);
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.fm-city-modal.open {
    display: flex;
}

.fm-city-window {
    width: 100%;
    max-width: 520px;
    max-height: 82vh;
    background: #ffffff;
    border-radius: 28px 28px 0 0;
    padding: 10px 18px 24px;
    overflow-y: auto;
}

.fm-city-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.fm-city-head h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
}

.fm-city-head p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 15px;
}

.fm-city-input {
    width: 100%;
    height: 54px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 16px;
    font-weight: 800;
    padding: 0 16px;
    outline: none;
    box-sizing: border-box;
    margin-bottom: 14px;
}

.fm-city-input:focus {
    border-color: #22c55e;
    background: #ffffff;
}

.fm-city-results {
    display: grid;
    gap: 10px;
}

.fm-city-section-title {
    color: #64748b;
    font-size: 13px;
    font-weight: 900;
    padding: 4px 2px 2px;
}

.fm-city-item {
    width: 100%;
    min-height: 58px;
    border: none;
    border-radius: 18px;
    background: #f8fafc;
    color: #0f172a;
    text-align: left;
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.fm-city-item span {
    font-size: 16px;
    font-weight: 900;
}

.fm-city-item small {
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.fm-city-empty {
    min-height: 54px;
    display: flex;
    align-items: center;
    color: #64748b;
    font-size: 15px;
    font-weight: 800;
}

.fm-toast {
    position: fixed;
    left: 50%;
    bottom: 104px;
    transform: translateX(-50%) translateY(16px);
    z-index: 100000;
    min-width: 180px;
    max-width: calc(100vw - 32px);
    padding: 13px 16px;
    border-radius: 18px;
    background: #0f172a;
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    text-align: center;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .28);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

.fm-toast.open {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 420px) {
    .fm-map-controls {
        right: 12px;
        bottom: 104px;
    }

    .fm-map-control-btn {
        width: 48px;
        height: 48px;
        border-radius: 16px;
    }
}

/* header_controls_1 */
.fm-old-map-btn-hidden,
#fmMapControls {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.topbar {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.fm-header-controls {
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.fm-header-btn {
    height: 42px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 15px !important;
    background: #ffffff !important;
    color: #0f172a !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .10) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 0 12px !important;
    cursor: pointer !important;
    font-family: inherit !important;
    font-weight: 900 !important;
}

.fm-header-btn span {
    width: 26px !important;
    height: 26px !important;
    border-radius: 10px !important;
    background: #dcfce7 !important;
    color: #16a34a !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.fm-header-btn b {
    font-size: 14px !important;
    line-height: 1 !important;
}

.fm-header-btn:active {
    transform: scale(.96) !important;
}

@media (max-width: 420px) {
    .fm-header-btn {
        width: 42px !important;
        min-width: 42px !important;
        padding: 0 !important;
    }

    .fm-header-btn b {
        display: none !important;
    }

    .fm-header-controls {
        gap: 7px !important;
    }
}

/* карточка: маршрут + избранное */
.fm-card-actions-fixed {
    display: grid !important;
    grid-template-columns: 1fr 54px !important;
    gap: 10px !important;
    align-items: center !important;
    width: 100% !important;
}

#routeBtn.fm-route-btn {
    width: 100% !important;
    min-width: 0 !important;
    height: 52px !important;
    padding: 0 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    border: none !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
    color: #ffffff !important;
    box-shadow: 0 14px 34px rgba(34, 197, 94, .28) !important;
    font-weight: 900 !important;
}

#routeBtn.fm-route-btn .fm-btn-icon {
    width: 28px !important;
    height: 28px !important;
    border-radius: 11px !important;
    background: rgba(255, 255, 255, .22) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#routeBtn.fm-route-btn .fm-btn-text {
    font-size: 16px !important;
}

#favoriteBtn.fm-favorite-btn {
    width: 54px !important;
    min-width: 54px !important;
    max-width: 54px !important;
    height: 52px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 18px !important;
    background: #f8fafc !important;
    color: #f59e0b !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .10) !important;
    overflow: hidden !important;
}

#favoriteBtn.fm-favorite-btn.is-favorite {
    background: #fef3c7 !important;
    color: #d97706 !important;
    border-color: #fde68a !important;
}

#favoriteBtn.fm-favorite-btn .fm-btn-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* city modal / toast */
.fm-city-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(15, 23, 42, 0.32);
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.fm-city-modal.open {
    display: flex;
}

.fm-city-window {
    width: 100%;
    max-width: 520px;
    max-height: 82vh;
    background: #ffffff;
    border-radius: 28px 28px 0 0;
    padding: 10px 18px 24px;
    overflow-y: auto;
}

.fm-city-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.fm-city-head h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
}

.fm-city-head p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 15px;
}

.fm-city-input {
    width: 100%;
    height: 54px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 16px;
    font-weight: 800;
    padding: 0 16px;
    outline: none;
    box-sizing: border-box;
    margin-bottom: 14px;
}

.fm-city-input:focus {
    border-color: #22c55e;
    background: #ffffff;
}

.fm-city-results {
    display: grid;
    gap: 10px;
}

.fm-city-section-title {
    color: #64748b;
    font-size: 13px;
    font-weight: 900;
    padding: 4px 2px 2px;
}

.fm-city-item {
    width: 100%;
    min-height: 58px;
    border: none;
    border-radius: 18px;
    background: #f8fafc;
    color: #0f172a;
    text-align: left;
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.fm-city-item span {
    font-size: 16px;
    font-weight: 900;
}

.fm-city-item small {
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.fm-city-empty {
    min-height: 54px;
    display: flex;
    align-items: center;
    color: #64748b;
    font-size: 15px;
    font-weight: 800;
}

.fm-toast {
    position: fixed;
    left: 50%;
    bottom: 104px;
    transform: translateX(-50%) translateY(16px);
    z-index: 100000;
    min-width: 180px;
    max-width: calc(100vw - 32px);
    padding: 13px 16px;
    border-radius: 18px;
    background: #0f172a;
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    text-align: center;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .28);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

.fm-toast.open {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* favorite_final_1 */
#favoriteBtn.fm-favorite-btn.is-favorite {
    background: #fef3c7 !important;
    color: #d97706 !important;
    border-color: #facc15 !important;
    box-shadow: 0 0 0 4px rgba(250, 204, 21, .22), 0 10px 24px rgba(15, 23, 42, .14) !important;
}

#favoriteBtn.fm-favorite-btn:not(.is-favorite) {
    background: #f8fafc !important;
    color: #f59e0b !important;
    border-color: #e2e8f0 !important;
}

/* fav_core_1 */
#favoriteBtn.fm-favorite-btn {
    width: 54px !important;
    min-width: 54px !important;
    max-width: 54px !important;
    height: 52px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 18px !important;
    background: #f8fafc !important;
    color: #f59e0b !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .10) !important;
}

#favoriteBtn.fm-favorite-btn.is-favorite {
    background: #fef3c7 !important;
    color: #d97706 !important;
    border-color: #facc15 !important;
    box-shadow: 0 0 0 4px rgba(250,204,21,.24), 0 10px 24px rgba(15,23,42,.14) !important;
}

#favoriteBtn .fm-star-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* panels_close_1 */
.fm-panel-handle {
    width: 100%;
    height: 26px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: -2px 0 8px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.fm-panel-handle span {
    width: 48px;
    height: 5px;
    border-radius: 999px;
    background: #cbd5e1;
    display: block;
}

.fm-closable-panel.open .modal-window,
.fm-closable-panel.open .search-window,
.fm-closable-panel.open .profile-window,
.fm-closable-panel.open .city-search-window,
.fm-closable-panel.open .fm-city-window,
.fm-closable-panel.open [class*='window'] {
    transform: translateY(var(--drag-y, 0)) !important;
    transition: transform .18s ease !important;
}

.fm-closable-panel.dragging .modal-window,
.fm-closable-panel.dragging .search-window,
.fm-closable-panel.dragging .profile-window,
.fm-closable-panel.dragging .city-search-window,
.fm-closable-panel.dragging .fm-city-window,
.fm-closable-panel.dragging [class*='window'] {
    transition: none !important;
}

.fm-closable-panel {
    touch-action: manipulation;
}

.fm-closable-panel .modal-window,
.fm-closable-panel .search-window,
.fm-closable-panel .profile-window,
.fm-closable-panel .city-search-window,
.fm-closable-panel .fm-city-window {
    touch-action: pan-y;
}

/* panels_close_2_one_handle */
.fm-panel-handle {
    display: none !important;
}

.sheet-handle.fm-close-handle {
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent !important;
}

.fm-closable-panel.open .modal-window,
.fm-closable-panel.open .search-window,
.fm-closable-panel.open .profile-window,
.fm-closable-panel.open .city-search-window,
.fm-closable-panel.open .fm-city-window,
.fm-closable-panel.open [class*='window'] {
    transform: translateY(var(--drag-y, 0)) !important;
    transition: transform .18s ease !important;
}

.fm-closable-panel.dragging .modal-window,
.fm-closable-panel.dragging .search-window,
.fm-closable-panel.dragging .profile-window,
.fm-closable-panel.dragging .city-search-window,
.fm-closable-panel.dragging .fm-city-window,
.fm-closable-panel.dragging [class*='window'] {
    transition: none !important;
}

/* brand_name_1 */
.fm-brand {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
    color: #0f172a !important;
    font-weight: 900 !important;
    letter-spacing: -0.02em !important;
}

.fm-brand-logo {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    border-radius: 15px !important;
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 10px 24px rgba(34, 197, 94, .24) !important;
}

.fm-brand-text {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    line-height: 1 !important;
    min-width: 0 !important;
}

.fm-brand-text strong {
    font-size: 21px !important;
    font-weight: 950 !important;
    color: #0f172a !important;
    white-space: nowrap !important;
}

.fm-brand-text small {
    font-size: 12px !important;
    font-weight: 900 !important;
    color: #64748b !important;
    white-space: nowrap !important;
}

@media (max-width: 420px) {
    .fm-brand {
        gap: 8px !important;
    }

    .fm-brand-logo {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        border-radius: 14px !important;
    }

    .fm-brand-text strong {
        font-size: 18px !important;
    }

    .fm-brand-text small {
        font-size: 11px !important;
    }
}

@media (max-width: 360px) {
    .fm-brand-text small {
        display: none !important;
    }

    .fm-brand-text strong {
        font-size: 17px !important;
    }
}
