/* TechLine личный кабинет — общие стили */
        .tl-preview-wrap {
            background: var(--light-color, #f4f6f9);
            border-radius: 12px;
            padding: 20px;
            border: 1px solid var(--card-border, rgba(0,0,0,0.08));
        }
        .tl-sidebar,
        .tl-main-card {
            background: var(--card-bg, #fff);
            border: 1px solid var(--card-border, rgba(0,0,0,0.125));
            border-radius: 10px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
        }
        .tl-sidebar {
            padding: 20px;
            position: sticky;
            top: 16px;
            max-height: calc(100vh - 32px);
            overflow: auto;
            border-left: 4px solid var(--primary-color, #6b7fd7);
        }
        .tl-avatar {
            width: 72px;
            height: 72px;
            border-radius: 10px;
            background: var(--light-color, #e9ecef);
            color: var(--text-muted, #6c757d);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 26px;
            font-weight: 600;
            overflow: hidden;
            border: 1px solid var(--card-border, #dee2e6);
        }
        .tl-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .tl-menu-link {
            display: block;
            padding: 8px 12px;
            border-radius: 6px;
            color: var(--text-color, #212529);
            text-decoration: none;
            font-size: 13px;
            line-height: 1.4;
            border: 1px solid transparent;
        }
        .tl-menu-link:hover {
            background: color-mix(in srgb, var(--primary-color, #6b7fd7) 10%, transparent);
            color: var(--primary-color, #6b7fd7);
        }
        .tl-menu-link.active {
            background: color-mix(in srgb, var(--primary-color, #6b7fd7) 22%, transparent);
            color: var(--text-color, #212529);
            border-color: color-mix(in srgb, var(--primary-color, #6b7fd7) 35%, var(--card-border));
            font-weight: 600;
        }
        .tl-menu-section {
            margin-top: 16px;
        }
        .tl-menu-section-title {
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: var(--text-color, #212529);
            margin: 0 12px 8px;
        }
        .tl-menu-note {
            font-size: 11px;
            color: var(--text-muted, #6c757d);
            margin-left: 6px;
        }
        .tl-menu-badge {
            display: inline-block;
            margin-left: 6px;
            min-width: 18px;
            padding: 0 6px;
            border-radius: 4px;
            background: var(--primary-color, #6b7fd7);
            color: #fff;
            font-size: 10px;
            line-height: 18px;
            text-align: center;
            vertical-align: middle;
            font-weight: 600;
        }
        .tl-main-card {
            padding: 22px;
        }
        .tl-hero {
            border-radius: 10px;
            background: linear-gradient(120deg, var(--navbar-bg, #343a40) 0%, var(--primary-color, #6b7fd7) 55%, #4a5db0 100%);
            color: #fff;
            padding: 22px 24px;
            min-height: 96px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
        }
        .tl-hero .btn-light {
            border-radius: 6px;
            font-weight: 600;
        }
        .tl-orders-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
            gap: 12px;
        }
        .tl-order-item {
            border: 1px solid var(--card-border, #dee2e6);
            border-radius: 8px;
            padding: 14px;
            background: var(--light-color, #f8f9fa);
            transition: border-color 0.15s ease, box-shadow 0.15s ease;
        }
        .tl-order-item:hover {
            border-color: var(--primary-color, #6b7fd7);
            box-shadow: 0 2px 8px rgba(107, 127, 215, 0.14);
        }
        .tl-order-status {
            font-size: 12px;
            color: var(--text-muted, #6c757d);
        }
        .tl-section-sub {
            color: var(--text-muted, #6c757d);
            margin-bottom: 16px;
            max-width: 720px;
        }
        .tl-section-title {
            font-size: 28px;
            font-weight: 700;
            color: var(--text-color, #212529);
            margin-bottom: 6px;
        }
        .tl-carousel-wrap {
            position: relative;
        }
        .tl-carousel-track {
            display: grid;
            grid-auto-flow: column;
            grid-auto-columns: minmax(220px, 1fr);
            gap: 12px;
            overflow-x: auto;
            scroll-behavior: smooth;
            padding-bottom: 4px;
        }
        .tl-carousel-track::-webkit-scrollbar {
            height: 6px;
        }
        .tl-carousel-track::-webkit-scrollbar-thumb {
            background: var(--secondary-color, #adb5bd);
            border-radius: 6px;
        }
        .tl-carousel-btn {
            position: absolute;
            right: -8px;
            top: 50%;
            transform: translateY(-50%);
            border: 1px solid var(--card-border, #dee2e6);
            width: 36px;
            height: 36px;
            border-radius: 8px;
            background: var(--card-bg, #fff);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            color: var(--text-color, #212529);
            font-size: 16px;
            font-weight: 700;
            z-index: 2;
        }
        .tl-rate-card {
            position: relative;
            border: 1px solid var(--card-border, #dee2e6);
            border-radius: 10px;
            padding: 14px;
            background: var(--card-bg, #fff);
            min-height: 204px;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }
        .tl-close-rate {
            position: absolute;
            right: 10px;
            top: 8px;
            z-index: 3;
            border: none;
            background: var(--light-color, #e9ecef);
            color: var(--text-muted, #6c757d);
            width: 26px;
            height: 26px;
            border-radius: 6px;
            line-height: 1;
            font-size: 14px;
            padding: 0;
        }
        .tl-rate-img {
            width: 74px;
            height: 74px;
            border-radius: 8px;
            object-fit: cover;
            margin-bottom: 10px;
            border: 1px solid var(--card-border, #dee2e6);
        }
        .tl-rate-title {
            font-size: 14px;
            line-height: 1.35;
            color: var(--text-color, #212529);
            margin-bottom: 10px;
            min-height: 40px;
        }
        .tl-rate-hit {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            flex: 1 1 auto;
            width: 100%;
            min-height: 0;
            color: inherit;
            text-decoration: none;
        }
        .tl-rate-hit:hover .tl-rate-title {
            color: var(--primary-color, #6b7fd7);
        }
        .tl-stars {
            display: inline-flex;
            gap: 4px;
            position: relative;
            z-index: 2;
        }
        .tl-star-btn {
            border: none;
            background: transparent;
            color: #ced4da;
            font-size: 22px;
            line-height: 1;
            padding: 0;
            cursor: pointer;
        }
        .tl-star-btn.active {
            color: var(--warning-color, #ffc107);
        }
        .tl-star-btn.hover-preview {
            color: var(--warning-color, #ffc107);
        }
        .tl-product-card {
            border: 1px solid var(--card-border, #dee2e6);
            border-radius: 10px;
            padding: 12px;
            background: var(--card-bg, #fff);
            min-height: 284px;
        }
        .tl-product-img {
            width: 100%;
            height: 160px;
            border-radius: 8px;
            object-fit: cover;
            margin-bottom: 8px;
            border: 1px solid var(--card-border, #e9ecef);
        }
        .tl-price-now {
            color: var(--primary-color, #6b7fd7);
            font-size: 22px;
            font-weight: 700;
            line-height: 1.2;
        }
        .tl-price-old {
            color: var(--text-muted, #6c757d);
            text-decoration: line-through;
            margin-left: 6px;
            font-size: 13px;
        }
        .tl-discount {
            color: var(--danger-color, #dc3545);
            font-size: 13px;
            margin-left: 6px;
        }
        .tl-stock {
            color: var(--text-muted, #6c757d);
            font-size: 12px;
            margin-bottom: 4px;
        }
        .tl-name-mini {
            color: var(--text-color, #212529);
            font-size: 14px;
            line-height: 1.35;
            min-height: 38px;
        }
        .tl-rec-box {
            border: 1px solid var(--card-border, #dee2e6);
            border-radius: 8px;
            padding: 12px 14px;
            background: var(--light-color, #f8f9fa);
        }
        .review-modal .modal-content {
            border: 0;
            border-radius: 12px;
            overflow: hidden;
        }
        .review-head {
            display: flex;
            gap: 10px;
            align-items: center;
        }
        .review-head img {
            width: 48px;
            height: 48px;
            border-radius: 8px;
            object-fit: cover;
            border: 1px solid var(--card-border, #dee2e6);
        }
        .review-stars-box {
            background: var(--light-color, #f0f3f8);
            border-radius: 10px;
            padding: 10px 12px;
            margin-top: 10px;
        }
        .review-stars-box .tl-star-btn {
            font-size: 32px;
        }
        .review-upload-box {
            border-radius: 8px;
            background: var(--light-color, #f3f6fb);
            border: 1px dashed var(--input-border, #ced4da);
            text-align: center;
            padding: 18px 12px;
            color: var(--text-muted, #6c757d);
        }
        .review-toggle {
            background: var(--light-color, #f0f3f8);
            border-radius: 8px;
            padding: 10px 12px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .tl-role-pill {
            display: inline-block;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            padding: 4px 10px;
            border-radius: 999px;
            background: rgba(107, 127, 215, 0.14);
            color: var(--primary-color, #6b7fd7);
            margin-bottom: 10px;
        }
        .tl-quick-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 12px;
        }
        .tl-quick-card {
            border: 1px solid var(--card-border, #dee2e6);
            border-radius: 10px;
            padding: 14px 16px;
            background: var(--card-bg, #fff);
            text-decoration: none;
            color: inherit;
            display: block;
            transition: border-color 0.15s ease, box-shadow 0.15s ease;
        }
        .tl-quick-card:hover {
            border-color: var(--primary-color, #6b7fd7);
            box-shadow: 0 2px 10px rgba(107, 127, 215, 0.12);
        }
        .tl-quick-card .tl-q-title {
            font-weight: 600;
            font-size: 14px;
            margin-bottom: 4px;
        }
        .tl-quick-card .tl-q-desc {
            font-size: 12px;
            color: var(--text-muted, #6c757d);
            line-height: 1.35;
        }

        .tl-seller-stat-tile {
            border: 1px solid var(--card-border, #dee2e6);
            border-radius: 10px;
            padding: 12px 14px;
            background: var(--light-color, #f8f9fa);
            height: 100%;
            transition: border-color 0.15s ease, box-shadow 0.15s ease;
        }
        a.tl-seller-stat-tile:hover {
            border-color: var(--primary-color, #6b7fd7);
            box-shadow: 0 2px 8px rgba(107, 127, 215, 0.12);
        }
        .tl-seller-stat-tile--alert {
            border-color: color-mix(in srgb, #fd7e14 55%, var(--card-border, #dee2e6));
            background: color-mix(in srgb, #fd7e14 8%, var(--light-color, #f8f9fa));
        }
        .tl-seller-stat-label {
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            color: var(--text-muted, #6c757d);
            margin-bottom: 4px;
        }
        .tl-seller-stat-value {
            font-size: 1.15rem;
            font-weight: 700;
            color: var(--text-color, #212529);
        }

/* Подстраницы: формы и списки */
.tl-cabinet-page-head-note {
    color: var(--text-muted, #6c757d);
    margin-bottom: 16px;
    max-width: 720px;
}
.tl-form-section {
    border: 1px solid var(--card-border, #dee2e6);
    border-radius: 10px;
    padding: 16px;
    margin-top: 14px;
    background: var(--light-color, #f8f9fa);
}
.tl-page-title-row {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-color, #212529);
    margin-bottom: 12px;
}
.tab-btn, .year-btn {
    border: 1px solid var(--card-border, #dee2e6);
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 12px;
    text-decoration: none;
    color: var(--text-color, #29405e);
    background: var(--card-bg, #fff);
}
.tab-btn.active, .year-btn.active {
    background: var(--navbar-bg, #343a40);
    border-color: var(--navbar-bg, #343a40);
    color: #fff;
}
.order-card {
    border: 1px solid var(--card-border, #dee2e6);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
    background: var(--card-bg, #fff);
}
.order-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color, #2c4362);
    line-height: 1.2;
}
.order-status-chip {
    font-size: 11px;
    border-radius: 999px;
    padding: 3px 10px;
    font-weight: 700;
}
.order-status-chip.delivered { background: #e8f7ef; color: #118a4b; }
.order-status-chip.progress { background: #eef4ff; color: #1e63ff; }
.order-status-chip.cancelled { background: #fdecef; color: #c13749; }
.items-row { display: flex; gap: 10px; overflow: auto; padding-top: 8px; }
.item-mini { min-width: 84px; max-width: 84px; }
.item-mini img {
    width: 84px;
    height: 84px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--card-border, #dee2e6);
}
.item-mini-name { font-size: 11px; color: var(--text-color, #1f2f46); line-height: 1.2; margin-top: 4px; height: 28px; overflow: hidden; }
.item-mini-price { font-size: 12px; font-weight: 700; color: var(--text-color, #0f1724); }

/* Редактирование профиля */
.tl-avatar-upload-wrap {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--card-border, #dee2e6);
    background: var(--light-color, #e9ecef);
}
.tl-avatar-preview-btn {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    z-index: 1;
    cursor: zoom-in;
}
.tl-avatar-preview-btn img,
.tl-avatar-preview-btn > div {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}
.tl-avatar-change-fab {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 6px;
    background: rgba(20, 38, 63, 0.78);
    color: #fff;
    font-size: 13px;
    line-height: 1;
    z-index: 3;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tl-avatar-change-fab:hover {
    background: rgba(20, 38, 63, 0.95);
}
.tl-avatar-upload-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tl-muted-note {
    color: var(--text-muted, #6c757d);
    font-size: 14px;
    line-height: 1.45;
}

/* Сообщения (двухпанельный чат) */
.tl-messages-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 680px;
    padding: 0;
    overflow: hidden;
}
.tl-thread-list {
    border-right: 1px solid var(--card-border, #dee2e6);
    overflow: auto;
    padding: 8px;
}

/* Вкладки режима в хабе уведомлений: отдельные скруглённые кнопки */
.tl-hub-mode-tabs {
    gap: 0.5rem;
}
.tl-hub-mode-tabs .tl-hub-tab {
    border-radius: 9999px !important;
    min-height: 2.25rem;
    padding-left: 0.9rem;
    padding-right: 0.9rem;
    font-size: 0.8rem;
    white-space: nowrap;
}
.tl-hub-mode-tabs .tl-hub-tab.opacity-75 {
    opacity: 0.82;
}
.tl-thread-head {
    font-weight: 700;
    margin: 6px 8px 10px;
}
.tl-chat-tools {
    display: grid;
    gap: 6px;
}
.tl-thread-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 8px;
    padding: 10px;
    border-radius: 10px;
    color: var(--text-color, #212529);
    margin-bottom: 4px;
    border: 1px solid transparent;
    align-items: start;
}
.tl-thread-item:hover,
.tl-thread-item.active {
    background: rgba(107, 127, 215, 0.12);
}
.tl-thread-item-pinned {
    border-color: color-mix(in srgb, var(--primary-color, #6b7fd7) 45%, transparent);
}
.tl-thread-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}
.tl-thread-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
    min-width: 2.75rem;
}
.tl-thread-pin {
    font-size: 14px;
    line-height: 1;
    opacity: 0.85;
    cursor: pointer;
    color: var(--primary-color, #6b7fd7);
    user-select: none;
    background: none;
    border: none;
    padding: 0;
}
.tl-thread-pin:hover {
    opacity: 1;
}
.tl-thread-title {
    font-weight: 700;
    font-size: 14px;
}
.tl-thread-sub {
    font-size: 12px;
    color: var(--text-muted, #6c757d);
    line-height: 1.25;
    max-height: 32px;
    overflow: hidden;
}
.tl-thread-date {
    font-size: 11px;
    color: var(--text-muted, #6c757d);
}
.tl-hub-mode-tabs .badge {
    font-size: 10px;
    min-width: 1.25rem;
}
.tl-thread-counter {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--primary-color, #6b7fd7);
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
    font-weight: 600;
}
.tl-chat-pane {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.tl-chat-header {
    border-bottom: 1px solid var(--card-border, #dee2e6);
    padding: 10px 14px;
}
.tl-chat-header-title {
    font-weight: 700;
}
.tl-chat-body {
    flex: 1;
    overflow: auto;
    background: var(--light-color, #f8f9fa);
    padding: 14px;
}
.tl-chat-empty {
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted, #6c757d);
    font-weight: 600;
}
.tl-chat-msg {
    max-width: 76%;
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.35;
}
.tl-chat-msg-other {
    background: var(--card-bg, #e9ecef);
    color: var(--text-color, #212529);
    border: 1px solid var(--card-border, #dee2e6);
    margin-right: auto;
}
.tl-chat-msg-unread {
    box-shadow: inset 3px 0 0 var(--primary-color, #0d6efd);
}
.tl-msg-read-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary-color, #0d6efd);
    white-space: nowrap;
}
.tl-msg-read-badge--read {
    color: var(--text-muted, #6c757d);
    font-weight: 600;
}
.tl-chat-msg-me {
    background: rgba(107, 127, 215, 0.2);
    color: #0d47a1;
    margin-left: auto;
}

.tl-chat-attachment a {
    font-size: 12px;
    text-decoration: underline;
    word-break: break-word;
}
.tl-chat-order-ref {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.tl-chat-msg-me .tl-chat-order-ref {
    color: #fff;
}
.tl-chat-role {
    font-size: 12px;
    color: var(--text-muted, #6c757d);
    margin-bottom: 4px;
}
.tl-msg-time {
    font-size: 11px;
    color: var(--text-muted, #6c757d);
    text-align: right;
    margin-top: 4px;
}
.tl-chat-order-card {
    background: var(--card-bg, #e9ecef);
    color: var(--text-color, #212529);
    border: 1px solid var(--card-border, #dee2e6);
    border-radius: 12px;
    padding: 10px 12px;
    max-width: 78%;
    margin-bottom: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.tl-chat-order-card .fw-semibold,
.tl-chat-order-card .tl-order-card-title {
    color: var(--text-color, #212529);
}
.tl-hub-order-thread .tl-chat-order-card {
    max-width: 100%;
}
.tl-hub-order-thread .tl-chat-form {
    display: none !important;
}
.tl-chat-body-order-feed {
    background: var(--card-bg, #fff);
}
.tl-chat-date-sep {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted, #6c757d);
    margin: 12px 0 10px;
    font-weight: 600;
}
.tl-order-card-body {
    font-size: 14px;
    line-height: 1.45;
    white-space: pre-wrap;
    color: var(--text-color, #212529);
    opacity: 0.92;
}
.tl-chat-order-card .tl-msg-time {
    color: var(--text-muted, #6c757d);
}
.tl-order-badge {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--danger-color, #dc3545);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 6px;
}
.tl-chat-form {
    border-top: 1px solid var(--card-border, #dee2e6);
    padding: 10px;
    background: var(--card-bg, #fff);
}
@media (max-width: 991px) {
    .tl-messages-shell {
        grid-template-columns: 1fr;
        min-height: 480px;
    }
    .tl-thread-list {
        border-right: 0;
        border-bottom: 1px solid var(--card-border, #dee2e6);
        max-height: 240px;
    }
}

/* Электронные чеки (кабинет) */
.tl-receipt-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.tl-receipt-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-color, #212529);
    background: var(--light-color, #e9ecef);
    border: 1px solid transparent;
    transition: background 0.15s ease, color 0.15s ease;
}
.tl-receipt-tab:hover {
    background: color-mix(in srgb, var(--primary-color, #0d6efd) 14%, var(--light-color, #e9ecef));
    color: var(--text-color, #212529);
}
.tl-receipt-tab.active {
    background: var(--primary-color, #0d6efd);
    color: #fff;
    border-color: var(--primary-color, #0d6efd);
}
.tl-receipt-tab-count {
    min-width: 20px;
    text-align: center;
    font-size: 12px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.08);
}
.tl-receipt-tab.active .tl-receipt-tab-count {
    background: rgba(255, 255, 255, 0.25);
}
.tl-receipt-month {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted, #6c757d);
    margin: 20px 0 10px;
}
.tl-receipt-month:first-child {
    margin-top: 0;
}
.tl-receipt-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    margin-bottom: 10px;
    background: var(--card-bg, #fff);
    border: 1px solid var(--card-border, #dee2e6);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.tl-receipt-card-main {
    flex: 1 1 200px;
    min-width: 0;
}
.tl-receipt-order-link {
    color: var(--primary-color, #0d6efd);
    text-decoration: none;
}
.tl-receipt-order-link:hover {
    text-decoration: underline;
}
.tl-receipt-date {
    margin-top: 4px;
}
.tl-receipt-card-sum {
    font-size: 16px;
    flex: 0 0 auto;
}
.tl-receipt-download {
    min-width: 108px;
}

/* Учётная запись (внутренние блоки) */
.tl-account-inner .section-line {
    border-top: 1px solid var(--card-border, #dee2e6);
    margin: 16px 0;
}
.tl-account-inner .muted {
    color: var(--text-muted, #6c757d);
    font-size: 13px;
}
.tl-account-inner .danger-note {
    color: var(--danger-color, #dc3545);
    font-size: 13px;
}
.tl-account-inner .device-card {
    background: var(--card-bg, #fff);
    border: 1px solid var(--card-border, #dee2e6);
    border-radius: 8px;
    padding: 9px 10px;
    margin-bottom: 8px;
}

/* Сетка мини-карточек товара (купленные, возвраты, «для меня») */
.tl-purchases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
@media (max-width: 575.98px) {
    .tl-purchases-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}
.tl-product-card-mini {
    border: 1px solid var(--card-border, #dee2e6);
    border-radius: 10px;
    padding: 10px;
    background: var(--card-bg, #fff);
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
}
.tl-product-img-mini {
    width: 100%;
    height: 170px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 8px;
    border: 1px solid var(--card-border, #e9ecef);
}
.tl-purchase-price {
    color: var(--primary-color, #6b7fd7);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 4px;
}
.tl-purchase-name {
    color: var(--text-color, #212529);
    font-size: 13px;
    line-height: 1.3;
    min-height: 52px;
}
.tl-btn-mini {
    font-size: 12px;
    padding: 6px 8px;
    border-radius: 8px;
}
/* Кнопки в мини-карточке: основная на всю ширину, иконки — отдельный ряд (без наложения) */
.tl-purchase-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}
.tl-purchase-actions__primary {
    width: 100%;
    font-size: 12px;
    font-weight: 600;
    padding: 7px 10px;
    line-height: 1.25;
    white-space: normal;
    text-align: center;
}
.tl-purchase-actions__icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
}
.tl-purchase-actions__icons .btn {
    flex: 0 0 auto;
    min-width: 40px;
    padding: 6px 10px;
}
.tl-sort-select {
    max-width: 220px;
    border-radius: 8px;
}
.tl-returns-empty {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}
.tl-money-note {
    background: var(--light-color, #f8f9fa);
    border: 1px solid var(--card-border, #dee2e6);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    color: var(--text-color, #212529);
}
.tl-faq-card .list-group-item {
    font-size: 13px;
}

.tl-stock-note {
    color: var(--text-muted, #6c757d);
    font-size: 12px;
    margin-top: 4px;
}

/* Сравнение товаров */
.tl-compare-tabs a {
    font-size: 12px;
    color: var(--text-muted, #6c757d);
    text-decoration: none;
    padding: 6px 8px;
    border-bottom: 2px solid transparent;
    display: inline-block;
}
.tl-compare-tabs a.active {
    color: var(--primary-color, #6b7fd7);
    border-color: var(--primary-color, #6b7fd7);
    font-weight: 600;
}
.tl-compare-products-row,
.tl-compare-values-row {
    display: flex;
    gap: 16px;
    flex-wrap: nowrap;
    min-width: max-content;
}
.tl-compare-product-col,
.tl-compare-val-cell {
    width: 190px;
    min-width: 190px;
}
.tl-compare-img {
    width: 84px;
    height: 84px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--card-border, #dee2e6);
}
.tl-compare-criteria-row {
    border-top: 1px solid var(--card-border, #dee2e6);
}
.tl-compare-criteria-label {
    font-weight: 600;
    color: var(--text-color, #212529);
    width: 220px;
    flex-shrink: 0;
}
.tl-main-card.tl-compare-scroll {
    overflow-x: auto;
}

/* Вопросы и ответы */
.tl-qa-top-tabs {
    border-bottom: 1px solid var(--card-border, #dee2e6);
    margin-bottom: 16px;
}
.tl-qa-top-tab {
    display: inline-block;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--text-muted, #6c757d);
    font-weight: 700;
    border-bottom: 3px solid transparent;
}
.tl-qa-top-tab.active {
    color: var(--text-color, #212529);
    border-bottom-color: var(--primary-color, #6b7fd7);
}
.tl-qa-pill-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.tl-qa-pill-tab {
    border: none;
    border-radius: 999px;
    padding: 8px 14px;
    background: var(--light-color, #e9ecef);
    color: var(--text-color, #212529);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}
.tl-qa-pill-tab.active {
    background: var(--primary-color, #6b7fd7);
    color: #fff;
}
.tl-qa-card {
    border: 1px solid var(--card-border, #dee2e6);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
    background: var(--card-bg, #fff);
}
.tl-qa-product {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.tl-qa-product img {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--card-border, #dee2e6);
}
.tl-qa-empty {
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    color: var(--text-muted, #6c757d);
}

/* Мои отзывы (карусель оценки + список) */
.tl-rev-carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 4px;
}
.tl-rev-rate-card {
    position: relative;
    border: 1px solid var(--card-border, #dee2e6);
    border-radius: 10px;
    padding: 12px;
    background: var(--light-color, #f8f9fa);
    min-height: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.tl-rev-rate-img {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 10px;
    border: 1px solid var(--card-border, #dee2e6);
}
.tl-rev-rate-title {
    font-size: 14px;
    min-height: 42px;
    color: var(--text-color, #212529);
    margin-bottom: 8px;
}
.tl-rev-hit {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    color: inherit;
    text-decoration: none;
}
.tl-rev-hit:hover .tl-rev-rate-title {
    color: var(--primary-color, #6b7fd7);
}
.tl-rev-stars {
    display: inline-flex;
    gap: 3px;
    position: relative;
    z-index: 2;
}
.tl-rev-star-btn {
    border: none;
    background: transparent;
    color: #ced4da;
    font-size: 22px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}
.tl-rev-star-btn.active {
    color: var(--warning-color, #ffc107);
}
.tl-rev-star-btn.hover-preview {
    color: var(--warning-color, #ffc107);
}
.tl-rev-tabs {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.tl-rev-tab {
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    text-decoration: none;
    background: var(--light-color, #e9ecef);
    color: var(--text-color, #212529);
}
.tl-rev-tab.active {
    background: var(--navbar-bg, #343a40);
    color: #fff;
}
.tl-rev-count {
    background: rgba(107, 127, 215, 0.16);
    color: var(--primary-color, #6b7fd7);
    border-radius: 999px;
    padding: 1px 6px;
    font-size: 11px;
    margin-left: 4px;
    font-weight: 600;
}
.tl-rev-row {
    border: 1px solid var(--card-border, #dee2e6);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
    background: var(--card-bg, #fff);
    margin-bottom: 10px;
}
.tl-rev-left {
    display: flex;
    gap: 10px;
    min-width: 0;
}
.tl-rev-left img {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--card-border, #dee2e6);
}
.tl-rev-meta {
    font-size: 12px;
    color: var(--text-muted, #6c757d);
}
.tl-rev-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #28a745;
    display: inline-block;
    margin-right: 6px;
    vertical-align: middle;
}
.tl-rev-product {
    color: var(--text-color, #212529);
    font-weight: 600;
    text-decoration: none;
}
.tl-rev-actions {
    display: flex;
    gap: 6px;
}
.tl-rev-empty {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    color: var(--text-muted, #6c757d);
}

/* Уведомления: блоки формы */
.tl-settings-block {
    border-top: 1px solid var(--card-border, #dee2e6);
    padding-top: 14px;
    margin-top: 14px;
}
.tl-settings-block.tl-settings-block-first {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
}
.tl-block-title {
    font-weight: 700;
    margin-bottom: 2px;
}
.tl-block-sub {
    font-size: 12px;
    color: var(--text-muted, #6c757d);
    margin-bottom: 8px;
}

.tl-account-inner .secure-note {
    background: var(--light-color, #f8f9fa);
    border: 1px solid var(--card-border, #dee2e6);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12px;
    color: var(--text-muted, #6c757d);
}
.tl-wallet-balance-card {
    max-width: 280px;
    border: 1px solid var(--card-border, #dee2e6);
    border-radius: 10px;
    padding: 12px;
    background: var(--card-bg, #fff);
}

/* Кабинет админа/менеджера: футер внизу, без налезания на контент */
html {
    height: 100%;
}
body:has(.tl-preview-wrap) {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}
body:has(.tl-preview-wrap) > main.tl-admin-manager-main {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    padding-bottom: 1.5rem;
}
.tl-cabinet-main {
    min-width: 0;
    width: 100%;
}
body:has(.tl-preview-wrap) > footer.site-footer,
body:has(.tl-preview-wrap) footer.site-footer {
    flex-shrink: 0;
    margin-top: auto;
}

/* Админка новостей (/admin/news) */
.tl-news-page .tl-news-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.tl-news-tabs.nav {
    gap: 6px;
}
.tl-news-tabs .nav-link {
    border-radius: 8px;
    color: var(--text-color, #212529);
    border: 1px solid var(--card-border, #dee2e6);
    padding: 0.4rem 0.85rem;
    font-size: 13px;
    font-weight: 500;
}
.tl-news-tabs .nav-link:hover {
    background: color-mix(in srgb, var(--primary-color, #6b7fd7) 8%, transparent);
    border-color: rgba(112, 132, 216, 0.35);
    color: var(--primary-color, #5a6bc4);
}
.tl-news-tabs .nav-link.active {
    background: rgba(112, 132, 216, 0.18);
    color: #1f2b3d;
    border-color: rgba(112, 132, 216, 0.45);
    font-weight: 600;
}
.tl-news-table {
    margin-bottom: 0;
    font-size: 14px;
}
.tl-news-table thead th {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted, #6c757d);
    border-bottom-width: 1px;
    background: var(--light-color, #f8f9fa);
}
.tl-news-table tbody tr:hover {
    background: color-mix(in srgb, var(--primary-color, #6b7fd7) 4%, transparent);
}
.tl-news-status-pill {
    display: inline-block;
    padding: 0.28rem 0.65rem;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    border-radius: 999px;
    line-height: 1.25;
    border: 1px solid transparent;
    white-space: nowrap;
}
.tl-news-status-pill.is-draft {
    background: var(--light-color, #e9ecef);
    color: var(--text-muted, #495057);
    border-color: var(--card-border, #ced4da);
}
.tl-news-status-pill.is-scheduled {
    background: rgba(13, 110, 253, 0.12);
    color: #084298;
    border-color: rgba(13, 110, 253, 0.28);
}
.tl-news-status-pill.is-published {
    background: rgba(25, 135, 84, 0.14);
    color: #0f5132;
    border-color: rgba(25, 135, 84, 0.35);
}
.tl-news-status-pill.is-unpublished {
    background: rgba(220, 53, 69, 0.1);
    color: #842029;
    border-color: rgba(220, 53, 69, 0.28);
}
.tl-news-pin-yes {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    background: rgba(255, 193, 7, 0.22);
    color: #664d03;
    border: 1px solid rgba(255, 193, 7, 0.45);
}

/* Центр алертов (/admin/alerts) */
.tl-alerts-kpi .tl-order-item {
    text-align: center;
    min-height: 72px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.tl-alerts-kpi .tl-order-item strong {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-color, #212529);
}
.tl-alerts-kpi .tl-order-item .small {
    font-size: 11px;
    color: var(--text-muted, #6c757d);
    line-height: 1.25;
}
.tl-alerts-list .list-group-item {
    border-color: var(--card-border, #dee2e6);
}
.tl-alerts-list .list-group-item.tl-alert-row-unread {
    background: color-mix(in srgb, var(--primary-color, #6b7fd7) 7%, var(--card-bg, #fff));
    border-left: 3px solid var(--primary-color, #6b7fd7);
    padding-left: calc(1rem - 2px);
}
.tl-alerts-type-pill {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
    background: var(--light-color, #e9ecef);
    color: var(--text-muted, #495057);
}