/* Режим экономии CPU (админ → Нагрузка) */
.load-economy-banner {
    margin: 10px 16px 0;
    padding: 10px 14px;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    color: #92400e;
    font-size: 14px;
    line-height: 1.4;
}
.load-economy-banner a {
    color: #b45309;
    font-weight: 600;
}

/* Основные стили */
body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    color: #2c3e50;

    margin: 0;
    padding: 0;
    width: 100%;
    position: relative;
}

* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

*::-webkit-scrollbar {
    display: none;
}


.wrapper {
    position: relative;
    height: 100%;
}

#qr-shaded-region {
    position: absolute !important;
    border-width: 175px 70px !important;
    border-style: solid !important;
    border-color: rgb(0 0 0) !important;
    box-sizing: border-box !important;
    inset: 0px !important;
}

.qr-hint {
    margin: 12px 0 18px;
    text-align: center;
    font-size: 16px;
    color: #2c3e50;
    font-weight: 500;
    opacity: .9;
}

#qr-camera {
    text-align: center;
    position: absolute;
    top: 0;
    z-index: 999;
    bottom: 0;
    height: 100vh;
    background: #ffffff;
}

#qr-camera > .modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1000;
    color: #fff;
    background: rgba(17, 24, 39, 0.55);
}

#qr-camera > .modal-close:hover {
    background: rgba(17, 24, 39, 0.75);
}

#qr-camera > .modal-close:active {
    background: rgba(17, 24, 39, 0.9);
}

.bus-loader {
    width: 100%;
    height: 80px;
    position: relative;
    overflow: hidden;
}

.bus-loader img {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    /* размер автобуса */
    animation: bus-move 1.4s linear infinite;
    opacity: 0.9;
}

/* Профиль: skeleton пока нет кеша */
.profile-bus-list-skeleton {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 8px 0 16px;
}

.profile-bus-list-skeleton__row {
    height: 88px;
    border-radius: 8px;
    background: linear-gradient(90deg, #e2e8f0 0%, #f1f5f9 40%, #e2e8f0 80%);
    background-size: 200% 100%;
    animation: profile-skeleton-shimmer 1.2s ease-in-out infinite;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

@keyframes profile-skeleton-shimmer {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

/* Показан кеш, идёт фоновое обновление */
#bus-list.bus-list--stale-refresh {
    position: relative;
    opacity: 0.97;
}

#bus-list.bus-list--stale-refresh::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, #22c55e, #3b82f6, #22c55e);
    background-size: 200% 100%;
    animation: profile-skeleton-shimmer 1s linear infinite;
    z-index: 2;
    pointer-events: none;
}

/* Ошибка загрузки: баннер поверх списка (есть кеш) */
.bus-list-error-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-size: 0.95rem;
}

.bus-list-error-banner__retry {
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid #991b1b;
    background: #fff;
    color: #991b1b;
    font-size: 0.9rem;
    cursor: pointer;
}

.bus-list-error-banner__retry:hover {
    background: #fff1f2;
}

/* Ошибка без кеша */
.profile-bus-list-error {
    margin: 24px auto;
    max-width: 360px;
    padding: 24px 20px;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.profile-bus-list-error__text {
    margin: 0 0 16px;
    color: #374151;
    line-height: 1.45;
}

/* Пустой профиль (нет остановок) */
.profile-empty-buses {
    margin: 32px auto;
    max-width: 400px;
    padding: 40px 24px;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.profile-empty-buses__text {
    margin: 0 0 20px;
    font-size: 1.05rem;
    color: #4a5568;
    line-height: 1.45;
}

.profile-empty-buses__btn {
    min-width: 200px;
    padding: 12px 24px;
    border-radius: 999px;
    border: none;
    background: #111827;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    box-shadow: 0 2px 8px rgba(17, 24, 39, 0.25);
}

.profile-empty-buses__btn:hover {
    background: #1f2937;
}

.profile-empty-buses__btn:active {
    transform: scale(0.98);
}

.profile-empty-buses__btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.35);
}

/* Анимация: справа → налево */
@keyframes bus-move {
    0% {
        right: 110%;
    }

    100% {
        right: -20%;
    }
}

video {
    width: 100% !important;
    height: 600px !important;
    max-width: 100%;
}

h1 {
    text-align: center;
    color: #2c3e50;

    font-size: 36px;
    margin: 20px 0;
}

.form-container {
    display: none;
    width: 100%;
    background: #fff;
    padding: 20px;
    margin: 20px auto;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.form-container-normal {
    width: 100%;
    background: #fff;
    padding: 20px;
    margin: 20px auto;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.form-container.active {
    display: block;
}

.form-container h2 {
    text-align: center;
    color: #2c3e50;

    font-size: 24px;
    margin-bottom: 20px;
}

.form-container form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    box-sizing: border-box;
}

.form-container input {

    padding: 8px;
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.form-container button {
    padding: 8px 10px;
    border-radius: 999px;
    border: none;
    background: #111827;
    color: #ffffff;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    justify-content: center;
}

.form-container button:hover {
    background-color: #111827b8;
}

.form-container p {
    text-align: center;
    margin-top: 10px;
}

.form-container a {
    color: #2c3e50;

    text-decoration: none;
}

.form-container a:hover {
    text-decoration: underline;
}

.toggle-buttons {
    text-align: center;
    margin-bottom: 20px;
}

.toggle-buttons button {
    padding: 10px;
    margin: 5px;
    cursor: pointer;
    background-color: #007bff;
    color: #2c3e50;

    border: none;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.toggle-buttons button:hover {
    background-color: #0056b3;
}

.error {
    color: #2c3e50;

    text-align: center;
    margin-bottom: 10px;
}

.success {
    color: #2c3e50;

    text-align: center;
    margin-bottom: 10px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background-color: #aed2f9;
    color: #2c3e50;

    padding: 10px 20px;
    border-radius: 5px;
}

.header h1 {
    margin: 0;
    font-size: 20px;
}

.button-add {
    padding: 10px 20px;

    background: rgba(255, 255, 255, 0);

    backdrop-filter: blur(10px) saturate(300%);
    -webkit-backdrop-filter: blur(10px) saturate(300%);

    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    color: #2c3e50;
    border: none;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button-add:hover {
    background-color: #218838;
}

.bus-list-item {
    position: relative;
    display: block;
    align-items: center;
    padding: 10px;
    border: 1px solid #ccc;
    margin-bottom: 10px;
    border-radius: 5px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.bus-list-item div {
    align-items: center;
}

.bus-list-link {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 1;
}

.bus-list-item span {
    position: relative;
    font-size: 16px;
    color: #111827;

}

/* Инструкция при отсутствии остановок (профиль) */
.empty-state-instruction {
    margin: 16px 0;
    padding: 20px 16px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    text-align: left;
}

.empty-state-instruction__title {
    margin: 0 0 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
}

.empty-state-instruction__intro {
    margin: 0 0 14px;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #475569;
}

.empty-state-instruction__steps {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
}

.empty-state-instruction__install-title {
    margin: 1.25rem 0 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.empty-state-instruction__install-usage {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #475569;
}

.empty-state-instruction__install-subtitle {
    margin: 0.5rem 0 0.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #475569;
}

.empty-state-instruction__install-steps {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.55;
    white-space: pre-line;
}

/* Показываем только блок для текущего устройства */
.empty-state-instruction__install-block {
    display: none;
}
.empty-state-instruction__install.device-ios .empty-state-instruction__install-block--ios {
    display: block;
}
.empty-state-instruction__install.device-android .empty-state-instruction__install-block--android {
    display: block;
}
.empty-state-instruction__install.device-desktop {
    display: none;
}
.empty-state-instruction__install-android-hint {
    margin-bottom: 0.75rem;
}

/* Кнопка «Добавить на главный экран» для Android — в стиле приложения */
.empty-state-install-btn {
    margin-top: 0.5rem;
    width: 100%;
    max-width: 280px;
    padding: 12px 24px;
    border-radius: 999px;
    border: none;
    background: #111827;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    box-shadow: 0 2px 8px rgba(17, 24, 39, 0.25);
}
.empty-state-install-btn:hover {
    background: #1f2937;
}
.empty-state-install-btn:active {
    transform: scale(0.98);
}
.empty-state-install-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.35);
}


.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    padding-top: 52px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    z-index: 50001;
}

.popup > .modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
}

.popup.active {
    display: block;
}

.popup input {
    width: 100%;
    height: 35px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}


.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 50000;
}

.overlay.active {
    display: block;
}

#qr-camera {
    display: none;
}

.user-info {
    text-align: center;
    font-size: 16px;
    margin-bottom: 10px;
    color: #2c3e50;

}

.user-name {
    font-weight: bold;
    color: #2c3e50;

}

.user-actions {
    text-align: center;
    margin-bottom: 20px;
}

.action-link {
    color: #2c3e50;

    text-decoration: none;
    margin: 0 5px;
    font-size: 16px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.action-link:hover {
    color: #2c3e50;

    text-decoration: underline;
}

/* Мобильная версия */
@media (max-width: 480px) {
    h1 {
        font-size: 24px;
    }

    .form-container,
    .form-container-normal {
        padding: 15px;
        margin: 10px auto;
        box-shadow: none;
    }

    .form-container h2 {
        font-size: 20px;
    }

    .form-container button {
        font-size: 14px;
        padding: 8px;
        white-space: normal;
    }

    .toggle-buttons button {
        font-size: 14px;
        padding: 8px;
    }

    .delete-btn {
        font-size: 12px;
    }

    .popup {
        padding: 40px;
    }

    .popup button {
        font-size: 16px;
        padding: 8px;
        height: 40px;
    }

    .popup input {
        width: 100%;
        height: 40px;
        padding: 10px;
        margin-bottom: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 16px;
        box-sizing: border-box;
    }

    .header h1 {
        margin: 0;
        font-size: 17px;
    }

    .button-add {
        font-size: 12px;
    }

}


/* Контейнер для селектора */
.line-selector-container {
    margin-bottom: 10px;
}

/* Метка для селектора */
.line-selector-label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

/* Селектор */
.line-selector {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    background-color: #f9f9f9;
    transition: border-color 0.3s;
}

.line-selector:focus {
    border-color: #007bff;
    outline: none;
}

/* Выбранная информация */
.selected-info {
    margin-top: 10px;
    font-size: 14px;
    color: #2c3e50;

}

.bus-time-stack {
    display: inline;
    margin-top: 0;
}

.bus-time-value {
    display: inline;
    font-size: inherit;
    line-height: inherit;
    font-weight: 500;
}

.bus-delay-note {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Fahrtausfall: отступ от времени, красное мигание */
.bus-ausfall {
    margin-left: 0.5em;
    color: #c00;
    font-weight: 600;
    animation: bus-ausfall-blink 1s ease-in-out infinite;
}
@keyframes bus-ausfall-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

/* Бегущая строка FIS внизу блока */
.fis-marquee-wrap {
    border-top: 1px solid #eee;
    overflow: hidden;
    max-width: 100%;
}
/* Общая бегущая строка под шапкой — отдельный блок над списком остановок */
.global-marquee-wrap {
    border-top: none;
    border-bottom: 1px solid #eee;
    padding: 6px 0;
    margin-bottom: 4px;
}
/* Пустой плейсхолдер до подгрузки бегущей строки — не показывать линию */
.fis-marquee-placeholder:empty {
    border: none;
    display: none;
}
.fis-marquee {
    font-size: 13px;
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: fis-marquee-scroll 30s linear infinite;
}
.fis-marquee a {
    color: #0066cc;
    text-decoration: underline;
}
@keyframes fis-marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Кнопки */
.btn_s_d button {
    margin: 5px;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.btn_s_d .show-btn {
    background-color: #007bff;
    color: #2c3e50;

}

.btn_s_d .show-btn:hover {
    background-color: #0056b3;
}

.btn_s_d .delete-btn {
    background-color: #dc3545;
    color: #2c3e50;

}

.btn_s_d .delete-btn:hover {
    background-color: #c82333;
}

/* Общие стили */
.bus-list-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.stop-name {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;

    display: block;
    margin-bottom: 10px;
}

.bus-info {
    margin-bottom: 15px;
}

.fis-service-message {
    display: block;
    margin-bottom: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.12);
    color: #7f1d1d;
    font-size: 13px;
    line-height: 1.35;
}

.alt-stop-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.alt-stop-apply-btn,
.alt-stop-map-btn {
    border: none;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: 12px;
    padding: 6px 10px;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.alt-stop-map-btn {
    background: #334155;
}

.bus-list-item--alert {
    background-color: #fee2e2 !important;
    border-color: #fca5a5 !important;
}

.bus-list-item--moved {
    background-color: #fee2e2 !important;
}

.bus-list-item--closed {
    background-color: #fecaca !important;
}

/* Стили для селекторов */
.line-selector-container,
.reminder-container {
    margin-bottom: 15px;
}

.line-selector-label,
.reminder-label {
    font-size: 14px;
    font-weight: bold;
    margin-right: 10px;
}

/* Стили кнопок */
.styled-btn {
    padding: 10px 15px;
    font-size: 14px;
    color: #2c3e50;

    background-color: #007bff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-right: 5px;
}

.styled-btn:hover {
    background-color: #0056b3;
}

.danger-btn {
    background-color: #dc3545;
}

.danger-btn:hover {
    background-color: #a71d2a;
}

/* Стили для текста */
.no-data {
    font-size: 14px;
    color: #2c3e50;

}

.no-data-retry-badge {
    position: absolute;
    top: 8px;
    right: 36px;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #1f2937;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.5);
    border-radius: 999px;
    padding: 3px 8px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.1);
    pointer-events: none;
}

.no-data-retry-badge::before {
    content: "";
    width: 10px;
    height: 10px;
    border: 2px solid #d1d5db;
    border-top-color: #475569;
    border-radius: 50%;
    animation: no-data-spin .75s linear infinite;
}

@keyframes no-data-spin {
    to { transform: rotate(360deg); }
}

.button-back {
    border-bottom: none;
    width: 50px;
    height: 50px;
    font-size: 29px;
    align-items: center;
    text-align: center;
    display: flex;
}


/* Выпадающее меню настроек */
.dropdown {
    position: absolute;
    right: 10px;
    top: 0;
    display: inline-block;
    margin-left: .5rem;
    z-index: 20;
}

.dropdown.open {
    z-index: 12030;
}

.settings-btn {
    position: relative;
    z-index: 1;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 8px;
}

.settings-btn:hover {
    background: rgba(0, 0, 0, .06);
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
    min-width: 215px;
    padding: 6px;
    display: none;
    z-index: 12020;
}

.dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-menu button {
    width: 100%;
    font-size: 18px;
    text-align: left;
    background: none;
    border: none;
    padding: 8px 10px;
    cursor: pointer;
    border-radius: 8px;
}

.dropdown-menu button:hover {
    background: #f4f6f8;
}

.dropdown-menu .danger {
    color: #2c3e50;

}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 50000;
    background: rgba(0, 0, 0, .4);
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 14px;
    width: 360px;
    max-width: 92vw;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 6px 6px 14px;
    min-height: 52px;
    border-bottom: 1px solid #eee;
    box-sizing: border-box;
}

.modal-header h3 {
    margin: 0;
    font-size: 16px;
}

/* Unified popup close (×) — 40×40 px */
.modal-close,
.map-popup-close {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    color: #374151;
    font-size: 24px;
    line-height: 1;
    font-weight: 400;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 8px;
    box-sizing: border-box;
}

.modal-close:hover,
.map-popup-close:hover {
    background: #f3f4f6;
}

.modal-close:active,
.map-popup-close:active {
    background: #e5e7eb;
}

.modal-body {
    padding: 14px;
}

.modal-body input {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
}

.modal-body .hint {
    font-size: 12px;
    color: #2c3e50;

    margin-top: 8px;
}

.modal-footer {
    padding: 12px 14px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.modal-footer .primary {
    padding: 8px 10px;
    border-radius: 999px;
    border: none;
    background: #111827;
    color: #ffffff;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Модалка выбора цвета блока */
.block-color-modal {
    width: 320px;
}

.block-color-body {
    padding: 16px 18px;
}

.block-color-hint {
    margin: 0 0 14px;
    font-size: 14px;
    color: #475569;
    line-height: 1.4;
}

.block-color-swatches {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.block-color-swatch {
    width: 100%;
    aspect-ratio: 1;
    border: 2px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.block-color-swatch:hover {
    border-color: #111827;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.block-color-swatch--reset {
    background: #fff !important;
    color: #64748b;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.block-color-swatch--reset:hover {
    background: #f1f5f9 !important;
    color: #111827;
}

.shares-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.share-item {
    text-align: center;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 8px 10px;
}

.share-actions {
    text-align: center;
    display: flex;
    gap: 5px;
    justify-content: center;
    margin: 15px 0 0 0;
}

.share-actions button {
    font-size: 18px;
    background: rgba(255, 255, 255, 0);

    backdrop-filter: blur(10px) saturate(300%);
    -webkit-backdrop-filter: blur(10px) saturate(300%);

    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.line-a-wrapper {
    display: flex;
    gap: 30px;
}

.b-wrapper {
    display: flex;
    gap: 30px;
}

.wrap-btn-line {
    margin-top: 0px !important;
}



.handle {
    cursor: grab;
    margin-right: 10px;
    font-size: 22px;
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 10px 0px 10px 10px;
}

.dragging {
    opacity: 0.6;
}


.notifications {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 300px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    padding: 10px;
}

.notifications h3 {
    margin: 0 0 10px;
    font-size: 16px;
}

.notifications ul {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 300px;
    overflow-y: auto;
}

.notifications li {
    padding: 8px;
    margin-bottom: 6px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.notifications .notif-msg {
    margin-bottom: 4px;
}

.notifications .notif-hide {
    background: #e74c3c;
    color: #2c3e50;

    border: none;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 12px;
}

.error {
    background: #e74c3c;
    color: #2c3e50;

    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    text-align: center;
}

.error a {
    color: #2c3e50;

    text-decoration: underline;
}


.chat-popup {
    position: fixed;
    bottom: 0;
    right: 20px;
    width: 300px;
    height: 400px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px 8px 0 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.chat-header {
    background: #3498db;
    color: #2c3e50;

    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
}

.chat-input {
    display: flex;
    border-top: 1px solid #ccc;
}

.chat-input input {
    flex: 1;
    padding: 8px;
    border: none;
    outline: none;
}

.chat-input button {
    background: #3498db;
    color: #2c3e50;

    border: none;
    padding: 8px 12px;
    cursor: pointer;
}





.shares-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;

    border-radius: 20px;
    padding: 20px;
    width: 320px;
    text-align: center;

    /* ещё прозрачнее */
    background: rgba(255, 255, 255, 0);

    backdrop-filter: blur(10px) saturate(300%);
    -webkit-backdrop-filter: blur(10px) saturate(300%);

    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    color: #2c3e50;

}


.lang-switcher {
    display: flex;
    gap: 6px;
    margin: 30px 0;
    padding: 0 10px;
}

.lang-switcher button {
    right: 12px;
    top: 12px;
    z-index: 30;
    padding: 8px 10px;
    border-radius: 999px;
    border: none;
    background: #111827b8;
    color: #ffffff;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.lang-switcher button:hover {
    background: #eaeaea;
    color: #000;

}

.lang-switcher button.active {
    background: #111827;
    color: #fff;
    border-color: #111827;
}



.btn-tabs {

    padding: 8px 30px;
    border-radius: 999px;
    border: none;
    background: #111827;
    color: #ffffff;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}





.popup button {

    padding: 10px;
    margin-top: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    background: #111827;
    color: #fff;
}

.popup button:hover {
    background-color: #111827b8;
    color: #fff;

}

















.styled-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    padding: 10px 35px 10px 14px;
    font-size: 14px;
    font-weight: 500;

    border: 1px solid #d0d0d0;
    border-radius: 10px;

    background: #fff;
    width: 130px;

    cursor: pointer;
    transition: 0.2s ease;

    background-image: url("data:image/svg+xml;utf8,<svg fill='%23777' height='18' viewBox='0 0 24 24' width='18' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
}

.styled-select:hover {
    border-color: #aaa;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.08);
}

.styled-select:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 6px rgba(74, 144, 226, 0.4);
}

.styled-select option {
    font-size: 14px;
    padding: 10px;
}


.btn-se {
    padding: 8px 30px;
    border-radius: 999px;
    border: none;
    background: #111827;
    color: #ffffff;
    font-size: 12px;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    background-color: #fff;
    color: #3c4043;
    border: 1px solid #dadce0;
    font-weight: 500;
    text-decoration: none;
    white-space: normal;
    transition: background-color 0.2s, box-shadow 0.2s;
}
.btn-google > span {
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
    text-align: center;
}

.btn-google:hover {
    background-color: #f8f9fa;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    color: #3c4043;
}

.fotm-pas input {
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.block-btn-ind {
    display: block;
}

.btn-ind-instal {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    border: none;
    display: block;
    color: #2c3e50;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(6px);
    transition: background 0.3s ease;
    text-decoration: none;
    font-size: 18px;
    width: auto;
    padding: 6px 12px;
    white-space: nowrap;
    margin-top: 20px;
}

.form-container-pas {
    width: 100%;
    background: #fff;
    padding: 20px;
    margin: 20px auto;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}





.form-container-pas {
    width: 100%;
    background: #fff;
    padding: 20px;
    margin: 20px auto;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;

    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-container-pas input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;

    border: 1px solid #ccc;
    border-radius: 5px;

    font-size: 16px;
    box-sizing: border-box;
}

.form-container-pas button {
    padding: 8px 10px;
    border-radius: 999px;
    border: none;

    background: #111827;
    color: #ffffff;

    font-size: 16px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.form-container-pas button:hover {
    background-color: #111827b8;
}

/* ═══════════════════════════════════════════════
   REMINDER SECTION (inside bus-list-item)
═══════════════════════════════════════════════ */

.reminder-section {
    --reminder-gap: 8px;
    border-top: 1px solid #f0f0f0;
    margin-top: var(--reminder-gap);
    padding: var(--reminder-gap);
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--reminder-gap);
    width: 100%;
    box-sizing: border-box;
}

.reminder-section-b {
    border-top: 1px dashed #e8e8e8;
}

.reminder-info {
    font-size: 14px;
    color: #374151;
    margin: 0;
    padding: 0;
    line-height: 1.35;
    word-break: break-word;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--reminder-gap);
    width: 100%;
    box-sizing: border-box;
}

.reminder-summary-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-start;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    font-size: 14px;
    line-height: 1.35;
    text-align: left;
}

.reminder-summary-lines {
    display: inline;
    font-size: 14px;
    line-height: 1.35;
}

.reminder-rule-line {
    display: inline;
    color: #111827;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.35;
}

.reminder-rule-line + .reminder-rule-line::before {
    content: ' · ';
    font-weight: 400;
    color: #6b7280;
}

.reminder-summary-offsets {
    display: block;
    margin: 0;
    padding: 0;
    width: 100%;
    font-size: 14px;
    line-height: 1.35;
    color: #6b7280;
    text-align: left;
}

.reminder-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    margin: 0;
    padding: 0;
    width: 100%;
}

.reminder-actions--primary {
    margin-bottom: 2px;
}

.reminder-actions--pair {
    flex-wrap: nowrap;
    align-items: center;
}

.reminder-edit-btn,
.reminder-delete-btn {
    padding: 5px 14px;
    border-radius: 999px;
    border: none;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.reminder-track-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border-radius: 999px;
    border: none;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
    background: #0f172a;
    color: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}

.reminder-track-btn:hover {
    background: #1e293b;
}

.reminder-track-btn-icon-wrap {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
}

.reminder-track-btn-icon {
    width: 12px;
    height: 12px;
    object-fit: contain;
    display: block;
}

.reminder-track-btn .reminder-track-btn-label {
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.reminder-edit-btn {
    background: #111827;
    color: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}

.reminder-edit-btn:hover {
    background: #1f2b3e;
}

.reminder-delete-btn {
    background: #fee2e2;
    color: #b91c1c;
}

.reminder-delete-btn:hover {
    background: #fecaca;
}

.reminder-countdown {
    font-size: 14px;
    font-weight: 600;
    color: #0f766e;
    margin: 0;
    padding: 0;
    line-height: 1.35;
    font-variant-numeric: tabular-nums;
    text-align: left;
    width: 100%;
    align-self: flex-start;
}

.reminder-push-status,
.profile-push-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    line-height: 1.35;
    color: #6b7280;
    text-align: left;
    width: 100%;
}

.profile-push-status {
    margin: 8px 0 0;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    box-sizing: border-box;
}

.reminder-push-status.is-ok,
.profile-push-status.is-ok {
    color: #166534;
}

.reminder-push-status.is-warn,
.profile-push-status.is-warn {
    color: #b45309;
}

.reminder-push-status.is-error,
.profile-push-status.is-error {
    color: #b91c1c;
}

.push-status-retry-btn {
    margin-left: 0;
    padding: 3px 10px;
    border: 0;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    font-size: 12px;
    line-height: 1.4;
    cursor: pointer;
}

.push-status-retry-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.reminder-add-btn {
    position: relative;
    z-index: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1.5px dashed #d1d5db;
    background: transparent;
    color: #374151;
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.reminder-add-btn:hover {
    border-color: #374151;
    color: #111827;
}

.reminder-primary-btn {
    width: auto;
    max-width: 100%;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    text-align: left;
    white-space: normal;
    border-style: solid;
    border-width: 1px;
    border-color: #d1d5db;
    border-radius: 12px;
    padding: 8px 12px;
    background: #f9fafb;
    color: #111827;
}

.reminder-primary-btn .reminder-primary-main {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.reminder-primary-btn .reminder-primary-sub {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    color: #4b5563;
}

.reminder-primary-btn.reminder-add-btn {
    border-style: dashed;
    border-width: 1.5px;
    background: transparent;
    color: #374151;
}

.reminder-primary-btn.reminder-add-btn .reminder-primary-main {
    color: #111827;
}

.reminder-primary-btn.reminder-add-btn:hover {
    border-color: #374151;
    color: #111827;
}

.reminder-primary-btn.reminder-edit-btn {
    background: #111827;
    border-color: #111827;
    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}

.reminder-primary-btn.reminder-edit-btn .reminder-primary-main,
.reminder-primary-btn.reminder-edit-btn .reminder-primary-sub {
    color: #ffffff;
}

.reminder-primary-btn.reminder-edit-btn:hover {
    background: #1f2b3e;
    border-color: #1f2b3e;
}

.reminder-line-badge {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    color: #111827;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.reminder-line-badge + .reminder-summary-lines::before {
    content: '·';
    margin: 0 6px 0 2px;
    font-weight: 400;
    color: #6b7280;
}

/* Перебиває .bus-list-item span { font-size: 16px } */
.reminder-section .reminder-summary-row,
.reminder-section .reminder-summary-lines,
.reminder-section .reminder-rule-line,
.reminder-section .reminder-summary-offsets {
    font-size: 14px;
    line-height: 1.35;
}

.reminder-section .reminder-line-badge {
    font-size: 16px;
}

/* ═══════════════════════════════════════════════
   REMINDER MODAL
═══════════════════════════════════════════════ */

.reminder-modal {
    width: 360px;
    max-width: 96vw;
    max-height: 92vh;
    overflow-y: auto;
}

.reminder-modal-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 18px;
}

.reminder-stop-label {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 4px;
    font-weight: 600;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

/* Type radio group */
.reminder-type-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reminder-type-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1.5px solid #e5e7eb;
    transition: border-color 0.15s, background 0.15s;
    user-select: none;
}

.reminder-type-option:has(input:checked) {
    border-color: #111827;
    background: #f8f9fa;
}

.reminder-type-option input[type="radio"] {
    accent-color: #111827;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.reminder-type-option span {
    font-size: 14px;
    color: #111827;
}

/* Field row */
.reminder-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reminder-field-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

/* Time input */
.reminder-time-input {
    padding: 9px 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 16px;
    color: #111827;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.15s;
}

.reminder-time-input:focus {
    border-color: #111827;
}

.reminder-time-select {
    padding: 9px 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 16px;
    color: #111827;
    width: 100%;
    box-sizing: border-box;
    outline: none;
}

.reminder-schedule-hint {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.reminder-schedule-note {
    margin: -2px 0 0;
    font-size: 12px;
    line-height: 1.35;
    color: #8a94a6;
}

.reminder-schedule-reset {
    margin: 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 12px;
    line-height: 1.35;
}

.reminder-schedule-groups {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reminder-schedule-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 12px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 13px;
}

.reminder-schedule-loading-spinner {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border: 2px solid #e5e7eb;
    border-top-color: #111827;
    border-radius: 50%;
    animation: reminder-schedule-spin 0.7s linear infinite;
}

@keyframes reminder-schedule-spin {
    to { transform: rotate(360deg); }
}

.reminder-schedule-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    border: 1px solid #eef0f4;
    border-radius: 8px;
    background: #fbfcfe;
}

.reminder-schedule-title {
    font-size: 12px;
    font-weight: 700;
    color: #4b5563;
}

.reminder-schedule-empty {
    margin: 0;
    color: #9ca3af;
    font-size: 12px;
    line-height: 1.35;
}

/* Days of week grid */
.reminder-days-grid {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.day-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.day-btn.active {
    background: #111827;
    border-color: #111827;
    color: #fff;
}

.day-btn:hover:not(.active) {
    border-color: #9ca3af;
    background: #f9fafb;
}

/* Offset checkboxes */
.reminder-offsets-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.reminder-offset-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1.5px solid #e5e7eb;
    cursor: pointer;
    font-size: 13px;
    color: #374151;
    transition: border-color 0.15s, background 0.15s;
    user-select: none;
}

.reminder-offset-label:has(input:checked) {
    border-color: #111827;
    background: #f8f9fa;
    color: #111827;
    font-weight: 600;
}

.reminder-offset-label input[type="checkbox"] {
    accent-color: #111827;
    width: 15px;
    height: 15px;
}

/* Reminder modal — same button geometry as AppDialogs */
.modal-footer #reminderSave {
    min-width: 108px;
    height: 40px;
    padding: 0 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.modal-footer #reminderCancel {
    min-width: 108px;
    height: 40px;
    padding: 0 18px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.modal-footer #reminderCancel:hover {
    background: #f3f4f6;
}

/* ── Mobile tweaks ── */
@media (max-width: 480px) {
    .reminder-days-grid {
        gap: 5px;
    }
    .day-btn {
        width: 34px;
        height: 34px;
        font-size: 11px;
    }
    .reminder-offsets-group {
        gap: 7px;
    }
    .reminder-type-option {
        padding: 8px 10px;
    }
}

/* ── Privacy storage notice ── */
.cookie-banner {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: 14px;
    width: min(720px, calc(100vw - 24px));
    background: #ffffff;
    color: #111827;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    padding: 14px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    z-index: 9999;
    font-size: 13px;
    box-shadow: 0 10px 34px rgba(15, 23, 42, 0.16);
    transform: translateX(-50%) translateY(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cookie-banner__content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.cookie-banner__icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e0f2fe;
    color: #075985;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-weight: 700;
    font-size: 14px;
}

.cookie-banner__copy {
    min-width: 0;
}

.cookie-banner__title {
    margin: 0 0 4px;
    color: #111827;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 700;
}

.cookie-banner__text {
    margin: 0;
    color: #4b5563;
    line-height: 1.45;
}

.cookie-banner__list {
    margin: 7px 0 0;
    padding-left: 17px;
    color: #4b5563;
    line-height: 1.35;
}

.cookie-banner__list li + li {
    margin-top: 3px;
}

.cookie-banner__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-shrink: 0;
    margin-top: 2px;
}

.cookie-banner__link {
    color: #2563eb;
    text-decoration: underline;
    font-size: 13px;
    white-space: nowrap;
}

.cookie-banner__btn {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.cookie-banner__btn:hover {
    background: #1d4ed8;
}

@media (max-width: 640px) {
    .cookie-banner {
        align-items: stretch;
        flex-direction: column;
        bottom: 10px;
        width: calc(100vw - 20px);
        padding: 13px;
    }

    .cookie-banner__actions {
        justify-content: space-between;
        width: 100%;
    }

    .cookie-banner__btn {
        min-width: 116px;
    }
}

/* ── Registration privacy note ── */
.register-privacy-note {
    font-size: 11px;
    color: #6b7280;
    text-align: center;
    margin-top: 6px;
    line-height: 1.4;
}

.register-privacy-note a {
    color: #2563eb;
    text-decoration: underline;
}

/* ── My Data page ── */
.my-data-page {
    max-width: 640px;
    padding: 24px 20px 48px;
}

.my-data-page h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #111827;
}

.data-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 16px;
}

.data-section h3 {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-section-desc {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.55;
    color: #6b7280;
    text-align: left;
}

.data-section--action {
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
}

.data-section--danger .data-section-desc {
    color: #991b1b;
}

.data-action-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.data-import-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 0;
}

.data-section .data-import-form {
    gap: 12px;
}

.data-file-picker {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 14px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.data-file-picker:hover {
    border-color: #93c5fd;
    background: #f8fbff;
}

.data-file-picker:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.data-file-picker-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    background: #111827;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.15s;
}

.data-file-picker:hover .data-file-picker-btn {
    background: #374151;
}

.data-file-picker-name {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    color: #9ca3af;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.data-file-picker-name.is-selected {
    color: #111827;
    font-weight: 500;
}

.data-section--danger {
    border-color: #fca5a5;
    background: #fff5f5;
}

.data-section--danger h3 {
    color: #dc2626;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table tr + tr {
    border-top: 1px solid #f3f4f6;
}

.data-table th {
    text-align: left;
    font-weight: 500;
    color: #6b7280;
    padding: 6px 0;
    width: 46%;
}

.data-table td {
    color: #111827;
    padding: 6px 0;
}

.user-code-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.user-code-value {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #111827;
    background: #f3f4f6;
    padding: 4px 10px;
    border-radius: 6px;
}

.copy-code-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.copy-code-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.copy-code-btn.is-copied {
    background: #ecfdf5;
    border-color: #6ee7b7;
    color: #047857;
}

.data-section form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.data-section input {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 14px;
    color: #111827;
    outline: none;
    transition: border-color 0.15s;
}

.data-section input:focus {
    border-color: #3b82f6;
}

.btn-data {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
    line-height: 1.2;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
    align-self: flex-start;
}

.btn-data:active {
    transform: translateY(1px);
}

.btn-data-icon {
    font-size: 15px;
    line-height: 1;
    opacity: 0.85;
}

.btn-save {
    background: #111827;
    color: #fff;
    align-self: flex-start;
}

.btn-save:hover { background: #374151; }

.btn-export {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    min-width: 0;
}

.btn-export:hover { background: #dbeafe; border-color: #93c5fd; }

.btn-delete {
    background: #dc2626;
    color: #fff;
    border: 1px solid #dc2626;
}

.btn-delete:hover { background: #b91c1c; border-color: #b91c1c; }

.btn-cancel {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-cancel:hover { background: #e5e7eb; }

.delete-btns {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.delete-confirm-text {
    font-size: 13px;
    color: #7f1d1d;
    margin: 0;
}

.edit-msg {
    font-size: 13px;
    padding: 10px 12px;
    border-radius: 8px;
    margin-top: 12px;
    margin-bottom: 0;
}

.edit-msg--ok  { background: #d1fae5; color: #065f46; }
.edit-msg--err { background: #fee2e2; color: #991b1b; }

.data-section-link {
    margin: 12px 0 0;
    font-size: 13px;
}

.data-section-link a {
    color: #3b82f6;
    text-decoration: underline;
}

.data-section-link a:hover {
    color: #2563eb;
}

.data-privacy-link {
    text-align: center;
    font-size: 13px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
}

.data-privacy-link a {
    color: #6b7280;
    text-decoration: underline;
}

.data-section-desc--muted {
    margin-top: -8px;
    font-size: 13px;
}

.data-section-desc--muted a {
    color: #2563eb;
    text-decoration: underline;
}

.link-restore {
    display: inline-block;
    margin-top: 8px;
}

.restore-data-page h2 {
    margin-bottom: 16px;
}

.restore-notice {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.restore-notice--info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
}

.restore-contents-note {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
}

.restore-contents-note__title {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.restore-contents-list {
    margin: 0 0 12px;
    padding-left: 18px;
    font-size: 13px;
    line-height: 1.6;
    color: #4b5563;
}

.restore-contents-note__warn {
    margin: 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    font-size: 13px;
    line-height: 1.5;
    color: #92400e;
}

.restore-profile-preview {
    margin: 0 0 16px;
    display: grid;
    gap: 8px;
}

.restore-profile-preview div {
    display: flex;
    gap: 10px;
    font-size: 14px;
}

.restore-profile-preview dt {
    min-width: 72px;
    margin: 0;
    color: #6b7280;
    font-weight: 500;
}

.restore-profile-preview dd {
    margin: 0;
    color: #111827;
    font-weight: 600;
}

.restore-pending-card {
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
    border-color: #86efac;
}

.restore-stats {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.restore-stats li {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 10px;
    text-align: center;
}

.restore-stats span {
    display: block;
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.restore-stats strong {
    font-size: 20px;
    color: #111827;
}

.restore-account-hint {
    margin: 0 0 16px;
    font-size: 14px;
    color: #374151;
}

.restore-auth-box {
    padding: 14px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
}

.restore-auth-text {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #374151;
}

.restore-auth-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.restore-apply-form,
.restore-clear-form {
    margin-top: 4px;
}

.restore-clear-form {
    margin-top: 8px;
}

.restore-auth-text--muted {
    margin-top: 14px;
    font-size: 13px;
    color: #6b7280;
}

.restore-email-form {
    margin: 0 0 4px;
}

body.set-password-lock {
    overflow: hidden;
}

.set-password-overlay {
    z-index: 10050;
}

.set-password-overlay.active {
    display: flex;
}

.set-password-modal {
    max-width: 420px;
    width: calc(100% - 32px);
}

.set-password-desc {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.5;
    color: #4b5563;
}

.set-password-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.set-password-form input {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
}

@media (max-width: 560px) {
    .restore-stats {
        grid-template-columns: 1fr;
    }
}

/* ── Privacy page ── */
.privacy-page {
    max-width: 760px;
    padding: 24px 20px 48px;
    line-height: 1.7;
    color: #374151;
}

.privacy-page h1 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #111827;
}

.privacy-page h2 {
    font-size: 16px;
    font-weight: 600;
    margin: 28px 0 8px;
    color: #111827;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 4px;
}

.privacy-page p,
.privacy-page li {
    font-size: 14px;
    margin-bottom: 6px;
}

.privacy-page ul {
    padding-left: 20px;
    margin-bottom: 8px;
}

.privacy-page a {
    color: #2563eb;
    text-decoration: none;
}

.privacy-page a:hover {
    text-decoration: underline;
}

.privacy-page small {
    font-size: 12px;
    color: #6b7280;
}

.privacy-page code {
    background: #f3f4f6;
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 12px;
    color: #374151;
}

/* i18n: до загрузки словаря не показывать сырой текст и {{ключи}} */
body.i18n-loading .wrapper {
    opacity: 0;
    transition: opacity 0.15s ease-out;
}

body.i18n-loading #nearestStopsHint,
body.i18n-loading #btn-nearest-stops {
    opacity: 0;
    transition: opacity 0.15s ease-out;
}

body.i18n-loading [data-i18n],
body.i18n-loading [data-i18n-placeholder],
body.i18n-loading .i18n-skeleton {
    color: transparent !important;
    position: relative;
}

body.i18n-loading [data-i18n]::after,
body.i18n-loading [data-i18n-placeholder]::after,
body.i18n-loading .i18n-skeleton::after {
    content: "";
    display: inline-block;
    width: 90px;
    height: 1em;
    border-radius: 6px;
    background: #e5e7eb;
    vertical-align: middle;
}

body.i18n-loading [data-i18n].skeleton-sm::after {
    width: 50px;
}

body.i18n-loading [data-i18n].skeleton-lg::after {
    width: 140px;
}

/* Unified modal action buttons (AppDialogs, reminders, share, etc.) */
.modal-btn {
    min-width: 108px;
    height: 40px;
    padding: 0 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.modal-btn--secondary {
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #374151;
}

.modal-btn--secondary:hover {
    background: #f3f4f6;
}

.modal-btn--primary {
    background: #111827;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.modal-btn--primary:hover {
    background: #1f2937;
}

.modal-btn--danger {
    background: #dc2626;
    color: #fff;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.35);
}

.modal-btn--danger:hover {
    background: #b91c1c;
}

/* AppDialogs (prompt / confirm / alert) */
.app-dialog-overlay {
    z-index: 60000;
}

.app-dialog-message {
    margin: 0;
    line-height: 1.45;
    color: #374151;
    font-size: 14px;
}

.app-dialog-link-wrap {
    margin: 12px 0 0;
}

.app-dialog-link {
    color: #2563eb;
    font-weight: 600;
    text-decoration: underline;
}

.app-dialog-prompt-wrap label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #111827;
}

.app-dialog-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
}

.app-dialog-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
}

.app-dialog-footer--single {
    justify-content: center;
}

.app-dialog-footer--single .modal-btn {
    min-width: 120px;
}

.reminder-next-buses-list {
    display: grid;
    gap: 8px;
    margin-top: 2px;
}

.reminder-next-buses-head {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.reminder-next-buses-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f8fafc;
    color: #111827;
    font-size: 14px;
    line-height: 1.35;
}

.reminder-next-buses-row strong {
    min-width: 18px;
    color: #374151;
}

.reminder-next-buses-add-btn {
    margin-left: auto;
    padding: 5px 10px;
    border: 0;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: 12px;
    line-height: 1.35;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.reminder-next-buses-add-btn:hover {
    background: #1f2937;
}

.reminder-next-buses-add-btn:active {
    transform: scale(0.98);
}

/* ── Route map (план на потом; ROUTE_MAP_ENABLED в profile.php) ── */

.bus-list-item:has(.route-map-btn) .reminder-section {
    padding-right: 48px;
    padding-bottom: 4px;
}

.reminder-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.reminder-footer .reminder-actions {
    flex: 1;
    min-width: 0;
    width: auto;
}

.route-map-btn {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.route-map-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}

.route-map-btn:active {
    transform: translateY(0);
}

.route-map-btn-icon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    display: block;
    object-fit: contain;
}

.bus-list-item .handle {
    z-index: 3;
}

.route-map-overlay {
    position: fixed;
    inset: 0;
    z-index: 12050;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: stretch;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.route-map-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.route-map-open {
    overflow: hidden;
}

.route-map-panel {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    background: #fff;
    display: flex;
    flex-direction: column;
    max-height: 100vh;
    max-height: 100dvh;
}

.route-map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 10px;
    border-bottom: 1px solid #e5e7eb;
}

.route-map-header h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
}

.route-map-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.route-map-canvas-wrap {
    position: relative;
    height: min(48vh, 320px);
    min-height: 220px;
    flex-shrink: 0;
}

#routeMapCanvas {
    width: 100%;
    height: 100%;
    z-index: 1;
}

.route-map-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.72);
    z-index: 5;
}

.route-map-loader.hidden {
    display: none;
}

.route-map-loader-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e5e7eb;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.route-map-stops-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 12px 16px;
    border-top: 1px solid #f0f0f0;
}

.route-map-stop-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 6px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}

.route-map-stop-row.is-current {
    background: #fff7ed;
    border-radius: 8px;
    border-bottom-color: transparent;
    font-weight: 600;
}

.route-map-stop-name {
    flex: 1;
    min-width: 0;
    color: #111827;
    line-height: 1.35;
}

.route-map-stop-eta {
    flex-shrink: 0;
    color: #0f766e;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.route-map-stops-empty {
    margin: 0;
    padding: 12px 4px;
    color: #6b7280;
    font-size: 14px;
}

.route-map-bus-wrap {
    background: transparent;
    border: none;
}

.route-map-bus {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #111827;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    border: 2px solid #fff;
}

.route-map-bus span {
    font-size: 12px !important;
    color: #fff !important;
}

.route-map-user-wrap {
    background: transparent;
    border: none;
}

.route-map-user-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2563eb;
    border: 3px solid #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18), 0 2px 8px rgba(15, 23, 42, 0.25);
}


/* Quick home/work routes */
.quick-place-routes{display:none;max-width:1040px;margin:8px auto 12px;}
.quick-place-routes.is-open{display:block;}
.quick-place-routes__buttons,.quick-place-routes__result,.quick-place-routes__status{border:1px solid #d8dee8;border-radius:8px;background:#fff;box-shadow:0 4px 14px rgba(15,23,42,.08);padding:10px 12px;}
.quick-place-routes__buttons{display:flex;gap:8px;flex-wrap:wrap;}
.quick-place-routes__buttons button,.quick-place-routes__close{border:1px solid #d1d5db;border-radius:8px;background:#111827;color:#fff;font-weight:800;padding:8px 11px;cursor:pointer;}
.quick-place-routes__buttons button+button{background:#fff;color:#111827;}
.quick-place-routes__title{font-weight:800;color:#111827;margin-bottom:6px;}
.quick-place-routes__warnings{display:grid;gap:5px;margin:6px 0;}
.quick-place-routes__warnings p{margin:0;border:1px solid #fde68a;background:#fffbeb;color:#92400e;border-radius:8px;padding:6px 8px;font-size:12px;}
.quick-place-routes__result ol{margin:7px 0 9px;padding-left:22px;}
.quick-place-routes__result li{margin:4px 0;}
@media (max-width:680px){.quick-place-routes{margin:8px 10px 10px}.quick-place-routes__buttons button{flex:1 1 auto}}

.quick-place-routes__live{border:1px solid #bfdbfe;background:#eff6ff;color:#1e40af;border-radius:8px;padding:6px 8px;margin:6px 0;font-size:12px;font-weight:700;}

/* Restore access bridge (email link → PWA) */
.restore-access-bridge {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: #f3f4f6;
}

.restore-access-bridge__card {
  width: min(100%, 420px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  padding: 28px 24px;
  text-align: center;
}

.restore-access-bridge__logo {
  border-radius: 16px;
  margin: 0 auto 16px;
}

.restore-access-bridge__title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  color: #111827;
}

.restore-access-bridge__desc {
  margin: 0 0 20px;
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.45;
}

.restore-access-bridge__spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto 14px;
  border: 3px solid #e5e7eb;
  border-top-color: #111827;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.restore-access-bridge__status {
  margin: 0 0 16px;
  color: #374151;
  font-size: 0.92rem;
}

.restore-access-bridge__open-btn,
.restore-access-bridge__browser-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  text-decoration: none;
  box-sizing: border-box;
}

.restore-access-bridge__browser-btn {
  background: #fff;
  color: #111827;
  border: 1px solid #d1d5db;
}

/* Unified style for bus line selectors */
.line-selector.styled-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 140px;
  min-height: 40px;
  padding: 0 38px 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background-color: #fff;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%2364748b' height='18' viewBox='0 0 24 24' width='18' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}

.line-selector.styled-select:hover {
  border-color: #94a3b8;
  box-shadow: 0 4px 10px rgba(2, 6, 23, 0.08);
}

.line-selector.styled-select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.line-selector.styled-select option {
  font-weight: 500;
}

.line-selector-label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}
