﻿        /* Селектор активного ЛС в шапке. */
        .ls-switch {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 14px;
            background: #fff;
            border: 1px solid var(--border);
            border-radius: 999px;
            color: var(--text);
            font-size: 0.9em;
            cursor: pointer;
            transition: border-color 0.18s ease, box-shadow 0.18s ease;
            white-space: nowrap;
            max-width: 220px;
            overflow: hidden;
        }
        .ls-switch:hover { border-color: var(--accent-info); }
        .ls-switch__label {
            color: var(--text-muted);
            font-size: 0.72rem;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            font-weight: 600;
        }
        .ls-switch__value {
            font-weight: 600;
            color: var(--text);
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .ls-switch__caret {
            color: var(--text-muted);
            font-size: 0.75em;
        }
        @media (max-width: 600px) {
            .ls-switch { padding: 6px 10px; max-width: 140px; font-size: 0.85em; }
            .ls-switch__label { display: none; }
        }

        /* Список ЛС в модалке выбора/добавления. */
        .ls-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin: 16px 0 18px;
        }
        .modal-content .ls-list__item {
            display: grid;
            grid-template-columns: 22px 1fr auto;
            align-items: center;
            gap: 14px;
            padding: 14px 16px;
            border: 1px solid var(--border);
            border-radius: 12px;
            background: #fff;
            cursor: pointer;
            transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
            text-align: left;
            width: 100%;
            min-height: 0;
        }
        .modal-content .ls-list__item:hover {
            border-color: var(--accent-info);
            box-shadow: 0 2px 8px rgba(44, 182, 125, 0.08);
        }
        /* В модалке уведомлений радио-кружка нет — две колонки. */
        .modal-content .ls-list__item--notify { grid-template-columns: 1fr auto; }
        .modal-content .ls-list__item--notify:hover {
            border-color: var(--border);
            box-shadow: none;
        }
        .modal-content .ls-list__item.is-active {
            border-color: var(--accent-info);
            background: #f3f8ff;
        }
        .ls-list__radio {
            width: 20px;
            height: 20px;
            border: 2px solid #c8d3df;
            border-radius: 50%;
            position: relative;
            flex-shrink: 0;
            background: #fff;
            box-sizing: border-box;
        }
        .ls-list__item.is-active .ls-list__radio { border-color: var(--accent-info); }
        .ls-list__item.is-active .ls-list__radio::after {
            content: '';
            position: absolute;
            inset: 3px;
            background: var(--accent-info);
            border-radius: 50%;
        }
        .ls-list__main {
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 2px;
            line-height: 1.25;
        }
        .ls-list__num {
            font-weight: 600;
            color: var(--text);
            font-size: 1rem;
        }
        .ls-list__addr {
            font-size: 0.82rem;
            color: var(--text-muted);
            overflow-wrap: anywhere;
            line-height: 1.35;
        }
        @media (max-width: 600px) {
            .modal-content .ls-list__item {
                grid-template-columns: 20px 1fr 32px;
                gap: 10px;
                padding: 12px 12px;
            }
            .modal-content .ls-list__item--notify { grid-template-columns: 1fr auto; }
            .modal-content .ls-list__remove { width: 32px; height: 32px; min-width: 32px; }
            .ls-list__num { font-size: 0.95rem; }
            .ls-list__addr { font-size: 0.78rem; }
        }

        /* Модалка отвязки ЛС в "большом" стиле. */
        .ls-remove-modal {
            width: 460px;
            max-width: 92vw;
            padding: 28px 28px 24px;
            text-align: left;
        }
        .ls-remove__addr {
            font-size: 1.45rem;
            line-height: 1.25;
            font-weight: 700;
            color: var(--text);
            margin: 0 0 8px;
            padding-right: 24px; /* запас под крестик */
        }
        .ls-remove__text {
            color: var(--text-muted);
            font-size: 0.95rem;
            line-height: 1.4;
            margin: 0 0 18px;
        }
        .ls-remove__text > span { color: var(--text); font-weight: 600; }
        .ls-remove__actions {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            margin-top: 8px;
        }
        .modal-content .ls-remove__btn {
            min-height: 48px;
            padding: 12px 16px;
            border-radius: 12px;
            font-weight: 600;
            font-size: 1rem;
            cursor: pointer;
            transition: filter 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
            box-shadow: none;
            margin: 0;
            width: auto;
        }
        .modal-content .ls-remove__btn--primary {
            background: linear-gradient(90deg, #2cb67d 0%, #2ec4b6 100%);
            color: #fff;
            border: 0;
        }
        .modal-content .ls-remove__btn--primary:hover { filter: brightness(0.95); }
        .modal-content .ls-remove__btn--primary:disabled { opacity: 0.6; cursor: not-allowed; }
        .modal-content .ls-remove__btn--cancel {
            background: #fff;
            color: var(--text);
            border: 1.5px solid #d8e2ec;
        }
        .modal-content .ls-remove__btn--cancel:hover { border-color: var(--accent-info); color: var(--accent-info); }

        @media (max-width: 600px) {
            .ls-remove-modal { padding: 22px 20px 20px; }
            .ls-remove__addr { font-size: 1.2rem; }
            .ls-remove__actions { grid-template-columns: 1fr; }
        }

        /* Модалка уведомлений. */
        .notify-modal { padding-top: 24px; }
        .notify-email {
            display: flex;
            flex-direction: column;
            gap: 2px;
            background: #f3f8ff;
            border: 1px solid #dde9f7;
            border-radius: 12px;
            padding: 12px 14px;
            margin: 12px 0 14px;
        }
        .notify-email__label {
            font-size: 0.72rem;
            font-weight: 600;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            color: var(--text-muted);
        }
        .notify-email__value {
            font-size: 1rem;
            font-weight: 600;
            color: var(--text);
            word-break: break-all;
        }
        .notify-toolbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            margin: 6px 0 10px;
        }
        .notify-toolbar__counter {
            font-size: 0.85rem;
            color: var(--text-muted);
        }
        .modal-content .notify-toolbar__toggle-all {
            background: transparent;
            border: 1px solid var(--accent-info);
            color: var(--accent-info);
            border-radius: 8px;
            padding: 6px 14px;
            font-size: 0.85rem;
            font-weight: 500;
            cursor: pointer;
            margin: 0;
            box-shadow: none;
            min-width: 0;
            width: auto;
            transition: background 0.15s ease, color 0.15s ease;
        }
        .modal-content .notify-toolbar__toggle-all:hover {
            background: var(--brand-grad);
            color: #fff;
        }
        .modal-content .notify-toolbar__toggle-all:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
