/* Веб v2 — мобильный паритет с iOS (html.web-features-v2) */

html.web-features-v2 #mainTabbar {
    grid-template-columns: repeat(5, 1fr);
}

html.web-features-v2 .tab.tab-profile-legacy {
    display: none !important;
}

html.web-features-v2 .home-header-sort-legacy,
html.web-features-v2 .home-header-bell-legacy {
    display: none !important;
}

html.web-features-v2 #webV2HomeSortBtn {
    display: inline-flex !important;
}

html.web-features-v2 .home-header-leading {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 32px;
}

html.web-features-v2 #webV2HomeProfileBtn {
    display: inline-flex !important;
}

html.web-features-v2 #webV2HomeProfileBtn svg {
    fill: currentColor;
    stroke: none;
    width: 20px;
    height: 20px;
}

/* Чаты: outline / filled как в TabView */
html.web-features-v2 .tab[data-tab="chats"] .tab-glyph-chats-active {
    display: none;
}
html.web-features-v2 .tab[data-tab="chats"] .tab-glyph-chats-inactive {
    display: block;
}
html.web-features-v2 .tab[data-tab="chats"].active .tab-glyph-chats-inactive {
    display: none;
}
html.web-features-v2 .tab[data-tab="chats"].active .tab-glyph-chats-active {
    display: block;
}

html.web-features-v2 .tabbar .tab-label {
    font-size: 10px;
}

/* Лента «НОМЕРА | ПРОВЕРКА АВТО | АУКЦИОНЫ» как в приложении */
.web-v2-tools-ribbon {
    display: flex;
    align-items: center;
    margin: 0 0 10px;
    padding: 10px 10px 11px;
    background: #fff;
    border-top: 1px solid rgba(60, 60, 67, 0.29);
    border-bottom: 1px solid rgba(60, 60, 67, 0.29);
}

.web-v2-ribbon-btn {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: #000;
    font-size: clamp(10px, 2.65vw, 12px);
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
    padding: 0 2px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.web-v2-ribbon-btn:active {
    opacity: 0.55;
}

/* Превью — только на широком экране (не мешает мобильному UX) */
.web-v2-preview-banner {
    margin: 6px 12px 0;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 243, 205, 0.9);
    color: #664d03;
    font-size: 11px;
    text-align: center;
}

@media (max-width: 900px) {
    .web-v2-preview-banner {
        display: none !important;
    }
}

.web-v2-tab-badge {
    position: absolute;
    top: 2px;
    right: 6px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: #ff3b30;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}

.tab {
    position: relative;
}

.web-v2-tool-screen,
.web-v2-chat-overlay {
    position: fixed;
    inset: 0;
    z-index: 350;
    background: #f2f2f7;
    display: flex;
    flex-direction: column;
    height: 100dvh;
    max-height: 100dvh;
    padding-bottom: 0;
}

body.web-v2-overlay-open,
body.web-v2-chat-open {
    overflow: hidden;
}

body.web-v2-overlay-open #mainTabbar {
    visibility: hidden;
    pointer-events: none;
}

@media (min-width: 600px) {
    .web-v2-tool-screen,
    .web-v2-chat-overlay,
    .web-plates-region-overlay,
    .web-plates-detail-overlay {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        max-width: 430px;
        width: 100%;
    }
}

.web-v2-tool-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: calc(8px + env(safe-area-inset-top, 0)) 12px 8px;
    background: #fff;
    border-bottom: 1px solid rgba(60, 60, 67, 0.29);
}

.web-v2-tool-back {
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: #007aff;
    cursor: pointer;
    padding: 0 4px;
}

.web-v2-tool-title {
    font-size: 17px;
    font-weight: 600;
    margin: 0;
}

.web-v2-chat-header-text {
    flex: 1;
    min-width: 0;
}

.web-v2-chat-subtitle {
    margin: 2px 0 0;
    font-size: 12px;
    font-weight: 400;
    color: #8e8e93;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.web-v2-chat-subtitle.hidden {
    display: none;
}

.web-v2-tool-body {
    flex: 1;
    overflow: auto;
    padding: 12px;
}

.web-v2-chat-messages {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.web-v2-chat-empty {
    margin: auto;
    padding: 24px 16px;
    text-align: center;
    color: #8e8e93;
    font-size: 15px;
}

.web-v2-chat-compose {
    display: flex;
    gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0));
    background: #fff;
    border-top: 1px solid rgba(60, 60, 67, 0.29);
}

.web-v2-chat-input {
    flex: 1;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 15px;
}

.web-v2-chat-send {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    border-radius: 22px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.web-v2-msg {
    position: relative;
    max-width: 85%;
    padding: 8px 12px 22px;
    border-radius: 14px;
    font-size: 15px;
    line-height: 1.35;
    word-break: break-word;
}

.web-v2-msg.mine {
    align-self: flex-end;
    background: #007aff;
    color: #fff;
    padding-right: 12px;
    padding-bottom: 22px;
}

.web-v2-msg.theirs {
    align-self: flex-start;
    background: #e5e7eb;
    color: #111827;
    padding-bottom: 22px;
}

.web-v2-msg-text {
    display: block;
    padding-right: 4px;
}

.web-v2-msg.mine .web-v2-msg-text {
    padding-right: 52px;
}

.web-v2-msg-meta {
    position: absolute;
    right: 10px;
    bottom: 6px;
    display: inline-flex;
    align-items: flex-end;
    gap: 3px;
    font-size: 11px;
    line-height: 1;
    opacity: 0.72;
}

.web-v2-msg.theirs .web-v2-msg-meta {
    right: auto;
    left: 10px;
}

.web-v2-msg-meta time {
    display: inline;
    margin: 0;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.web-v2-msg-status {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    color: currentColor;
    opacity: 0.85;
}

.web-v2-read-marks {
    position: relative;
    display: inline-block;
    width: 15px;
    height: 9px;
    vertical-align: bottom;
}

.web-v2-read-mark {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
}

.web-v2-read-mark--2 {
    left: 4.5px;
    top: -1px;
}

/* Экран «Чаты» — список как в iOS */
.web-v2-chats-header .web-v2-chats-header-spacer {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.web-v2-chats-main {
    padding: 0 !important;
    background: #fff;
}

.web-v2-chat-inbox {
    display: flex;
    flex-direction: column;
    background: #fff;
}

.web-v2-inbox-loading,
.web-v2-inbox-error {
    padding: 16px;
    font-size: 14px;
    color: #8e8e93;
    text-align: center;
}

.web-v2-inbox-stale {
    margin: 12px 16px 20px;
    padding: 16px;
    border-radius: 12px;
    background: #fff3cd;
    border: 1px solid #ffe69c;
    text-align: center;
}

.web-v2-inbox-stale-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: #664d03;
}

.web-v2-inbox-stale-text {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.4;
    color: #664d03;
}

.web-v2-inbox-stale-btn {
    width: 100%;
    max-width: 280px;
}

.web-v2-inbox-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-bottom: 0.5px solid rgba(60, 60, 67, 0.18);
    background: #fff;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.web-v2-inbox-row:active {
    background: #f2f2f7;
}

.web-v2-inbox-avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.web-v2-avatar-blue {
    background: rgba(0, 122, 255, 0.12);
    color: #007aff;
}

.web-v2-avatar-green {
    background: rgba(52, 199, 89, 0.15);
    color: #34c759;
}

.web-v2-avatar-gray {
    background: #e5e5ea;
    color: #636366;
}

.web-v2-inbox-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.web-v2-inbox-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.web-v2-inbox-title {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    line-height: 1.2;
}

.web-v2-inbox-time {
    flex-shrink: 0;
    font-size: 13px;
    color: #8e8e93;
}

.web-v2-inbox-subtitle {
    font-size: 14px;
    color: #8e8e93;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.web-v2-inbox-preview {
    font-size: 14px;
    color: #8e8e93;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.web-v2-inbox-unread {
    flex-shrink: 0;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: #ff3b30;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}

.web-v2-inbox-chevron {
    flex-shrink: 0;
    color: #c7c7cc;
    font-size: 22px;
    font-weight: 300;
    margin-left: -4px;
}

.web-v2-notif-card {
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
    border: 1px solid rgba(60, 60, 67, 0.12);
}

.web-v2-notif-title {
    font-weight: 600;
    font-size: 15px;
    margin: 0 0 6px;
}

.web-v2-notif-body {
    font-size: 14px;
    color: #3a3a3c;
    margin: 0 0 8px;
    line-height: 1.35;
}

.web-v2-notif-time {
    font-size: 12px;
    color: #8e8e93;
    margin: 0;
}

.web-v2-notif-link {
    display: inline-block;
    margin-top: 8px;
    color: #007aff;
    font-size: 14px;
}

.web-v2-card {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid rgba(60, 60, 67, 0.18);
}

.web-v2-plate {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.web-v2-price {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-top: 6px;
}

.web-v2-muted {
    font-size: 13px;
    color: #8e8e93;
    margin-top: 4px;
}

.web-v2-tool-dev {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 240px;
    padding: 32px 20px;
    gap: 10px;
}

.web-v2-tool-dev-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #111827;
}

.web-v2-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin: 10px 0 6px;
}

.web-v2-form input,
.web-v2-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
    box-sizing: border-box;
}

.web-v2-form .btn-blue {
    width: 100%;
    margin-top: 14px;
}

.web-v2-saved-list {
    display: flex;
    flex-direction: column;
}

.web-v2-saved-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 11px 14px;
    background: transparent;
    font-size: 16px;
    line-height: 1.25;
    color: #000;
    border-bottom: 0.5px solid rgba(60, 60, 67, 0.29);
}

.web-v2-saved-item:last-child {
    border-bottom: none;
}

.web-v2-saved-item span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.web-v2-saved-item button {
    border: none;
    background: transparent;
    color: #007aff;
    font-size: 16px;
    font-weight: 400;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.web-v2-saved-list .web-v2-muted {
    margin: 0;
    padding: 14px;
    font-size: 15px;
    color: #8e8e93;
}

.filter-ios-card-saved .web-v2-save-search-btn {
    display: block;
    width: calc(100% - 28px);
    margin: 10px 14px 14px;
    padding: 11px 16px;
    border: 1px solid #007aff;
    border-radius: 10px;
    background: #fff;
    color: #007aff;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
}

html.web-features-v2 #filterVehicleCategorySection .filter-ios-select-full {
    width: 100%;
    text-align: left;
    font-weight: 400;
    font-size: 16px;
    color: #000;
}

.filter-ios-select-full {
    width: 100%;
}

.btn-outline {
    border: 1px solid #007aff;
    color: #007aff;
    background: #fff;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}

/* Лента сразу под баннером, без лишних отступов */
html.web-features-v2 #home .screen-content {
    padding-top: 0;
}

html.web-features-v2 #home .home-banner:not(.hidden) {
    margin-bottom: 14px;
}

html.web-features-v2 #homeBanner.hidden ~ .web-v2-tools-ribbon {
    margin-top: 8px;
}

/* ——— Экран «Номера» (паритет iOS) ——— */
.web-v2-tool-body.web-plates-tool-host {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.web-plates-root {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    height: 100%;
}

.web-plates-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 16px calc(16px + env(safe-area-inset-bottom, 0));
}

.web-v2-tool-body.web-plates-tool-host .web-plates-scroll {
    padding-bottom: calc(200px + env(safe-area-inset-bottom, 0));
}

.web-plates-filter-card {
    background: #fff;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 0.5px solid rgba(60, 60, 67, 0.35);
    margin-bottom: 20px;
}

.web-plates-field {
    margin-bottom: 14px;
}

.web-plates-field:last-child {
    margin-bottom: 0;
}

.web-plates-label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: rgba(60, 60, 67, 0.6);
    margin-bottom: 4px;
}

.web-plates-label-upper {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.web-plates-region-picker-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    min-height: 44px;
    border: none;
    border-radius: 12px;
    background: rgba(118, 118, 128, 0.12);
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.web-plates-region-picker-text {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    color: #000;
    line-height: 1.25;
}

.web-plates-region-picker-text.mono-bold {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 18px;
    font-weight: 700;
}

.web-plates-region-picker-icon {
    color: rgba(60, 60, 67, 0.6);
    font-size: 12px;
}

.web-plates-field-caption,
.web-plates-field-hint {
    font-size: 12px;
    color: rgba(60, 60, 67, 0.45);
    margin: 4px 0 0;
    line-height: 1.35;
}

.web-plates-segmented {
    display: flex;
    background: rgba(118, 118, 128, 0.12);
    border-radius: 9px;
    padding: 2px;
    gap: 0;
}

.web-plates-seg-btn {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: #000;
    font-size: 10px;
    font-weight: 500;
    padding: 7px 2px;
    border-radius: 7px;
    cursor: pointer;
    line-height: 1.2;
    -webkit-tap-highlight-color: transparent;
}

.web-plates-seg-btn.active {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    font-weight: 600;
}

.web-plates-chrome-wrap {
    position: relative;
}

/* Российская табличка */
.ru-plate {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 3px solid #000;
    border-radius: 10px;
    padding: 8px 6px;
    min-height: 56px;
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.ru-plate--card {
    max-width: 100%;
    border-width: 3px;
}

.ru-plate-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    cursor: pointer;
}

.ru-plate--card .ru-plate-main {
    cursor: default;
}

.ru-plate-main-grouped,
.ru-plate-main-row {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ru-plate-char {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: clamp(20px, 5.5vw, 28px);
    font-weight: 700;
    line-height: 1;
}

.ru-plate--card .ru-plate-char {
    font-size: 26px;
}

.ru-plate-char.placeholder {
    color: rgba(0, 0, 0, 0.38);
}

.ru-plate-char.filled {
    color: #000;
}

.ru-plate-gap {
    display: inline-block;
    width: 0.55em;
}

.ru-plate-digit-group,
.ru-plate-letter-group {
    display: inline-flex;
}

.ru-plate-divider {
    width: 2px;
    background: #000;
    margin: 6px 8px;
    flex-shrink: 0;
}

.ru-plate-side {
    width: 76px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
}

.ru-plate--card .ru-plate-side {
    cursor: default;
}

.ru-plate-region-digits {
    display: flex;
    gap: 1px;
}

.ru-plate-region-char {
    font-size: 22px;
}

.ru-plate--card .ru-plate-region-char {
    font-size: 20px;
}

.ru-plate-rus {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
}

.ru-flag {
    display: inline-block;
    width: 22px;
    height: 14px;
    border-radius: 1px;
    overflow: hidden;
    background: linear-gradient(180deg, #fff 33.33%, #0039a6 33.33%, #0039a6 66.66%, #d52b1e 66.66%);
    border: 0.5px solid rgba(0, 0, 0, 0.2);
}

.ru-plate-clear {
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    font-size: 26px;
    color: rgba(60, 60, 67, 0.6);
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.web-plates-section-title {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 12px;
}

.web-plates-listing-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    margin-bottom: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.web-plates-listing-card--matched {
    outline: 1.5px solid rgba(0, 122, 255, 0.85);
}

.web-plates-listing-top {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.web-plates-detail-overlay {
    position: fixed;
    inset: 0;
    z-index: 400;
    background: #f2f2f7;
    display: flex;
    flex-direction: column;
}

.web-plates-detail-overlay.hidden {
    display: none;
}

.web-plates-detail-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: calc(8px + env(safe-area-inset-top, 0)) 12px 8px;
    background: #fff;
    border-bottom: 1px solid rgba(60, 60, 67, 0.29);
}

.web-plates-detail-back {
    border: none;
    background: transparent;
    font-size: 28px;
    color: #007aff;
    cursor: pointer;
    padding: 0 4px;
}

.web-plates-detail-title {
    font-size: 17px;
    font-weight: 600;
    margin: 0;
}

.web-plates-detail-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0));
}

.web-plates-detail-footer {
    flex-shrink: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0));
    background: #fff;
    border-top: 1px solid rgba(60, 60, 67, 0.29);
}

.web-plates-detail-footer.hidden {
    display: none;
}

.web-plates-detail-footer .web-plates-contact-bar {
    padding: 0;
}

.web-plates-detail-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.web-plates-detail-card .ru-plate {
    margin-bottom: 12px;
}

.web-plates-detail-comment {
    font-size: 15px;
    color: rgba(60, 60, 67, 0.6);
    margin: 8px 0 0;
    line-height: 1.35;
}

.web-plates-detail-card .web-plates-contact-bar {
    padding: 12px 0 0;
}

.web-plates-btn-msg--solo {
    background: #007aff;
}

.web-plates-listing-body {
    flex: 1;
    min-width: 0;
}

.web-plates-listing-chevron {
    color: rgba(60, 60, 67, 0.3);
    font-size: 20px;
    font-weight: 600;
    flex-shrink: 0;
}

.web-plates-match-badge {
    display: inline-block;
    margin: 6px 0 0;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(0, 122, 255, 0.14);
    color: #007aff;
    font-size: 12px;
    font-weight: 600;
}

.web-plates-listing-price {
    font-size: 17px;
    font-weight: 700;
    margin: 10px 0 0;
}

.web-plates-listing-region {
    font-size: 15px;
    color: rgba(60, 60, 67, 0.6);
    margin: 4px 0 0;
}

.web-plates-listing-date {
    font-size: 13px;
    color: rgba(60, 60, 67, 0.6);
    margin: 2px 0 0;
}

.web-plates-contact-bar {
    display: flex;
    gap: 10px;
    padding: 0 12px 12px;
}

.web-plates-btn-call,
.web-plates-btn-msg {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 12px;
    padding: 14px 8px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.web-plates-btn-call {
    background: #34c759;
}

.web-plates-btn-msg {
    background: #007aff;
}

.web-plates-btn-icon {
    font-size: 16px;
}

.web-plates-empty,
.web-plates-loading {
    font-size: 15px;
    color: rgba(60, 60, 67, 0.6);
    padding: 8px 0;
}

.web-plates-retry-btn {
    margin-top: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(60, 60, 67, 0.29);
    background: #fff;
    font-size: 15px;
    cursor: pointer;
}

/* Клавиатура номера */
.web-plates-keyboard {
    flex-shrink: 0;
    background: #d1d3d9;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0));
    border-top: 1px solid rgba(60, 60, 67, 0.2);
}

.web-plates-keyboard-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.web-plates-key-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.web-plates-key-row--center {
    justify-content: center;
    max-width: 280px;
    margin: 0 auto;
}

.web-plates-key {
    min-width: 28px;
    flex: 1 1 28px;
    max-width: 36px;
    min-height: 46px;
    border: none;
    border-radius: 8px;
    background: #fcfcfe;
    font-size: 18px;
    font-weight: 500;
    color: #000;
    cursor: pointer;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.web-plates-key--letter {
    font-weight: 600;
}

.web-plates-key--back {
    flex: 1.4 1 48px;
    max-width: 56px;
    font-size: 20px;
}

.web-plates-key.disabled {
    opacity: 0.35;
    pointer-events: none;
}

/* Выбор региона */
.web-plates-region-overlay {
    position: fixed;
    inset: 0;
    z-index: 450;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.web-plates-region-overlay.hidden {
    display: none;
}

.web-plates-region-sheet {
    background: #f2f2f7;
    border-radius: 12px 12px 0 0;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.web-plates-region-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid rgba(60, 60, 67, 0.29);
    border-radius: 12px 12px 0 0;
}

.web-plates-region-title {
    font-size: 17px;
    font-weight: 600;
    margin: 0;
}

.web-plates-region-cancel,
.web-plates-region-done {
    border: none;
    background: transparent;
    font-size: 17px;
    color: #007aff;
    cursor: pointer;
    padding: 4px;
}

.web-plates-region-done {
    font-weight: 600;
}

.web-plates-region-search-wrap {
    padding: 8px 12px;
    background: #fff;
}

.web-plates-region-search {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 10px;
    border: none;
    background: rgba(118, 118, 128, 0.12);
    font-size: 16px;
}

.web-plates-region-list {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0;
}

.web-plates-region-any {
    display: block;
    width: 100%;
    text-align: left;
    padding: 14px 16px;
    border: none;
    background: #fff;
    font-size: 17px;
    cursor: pointer;
    border-bottom: 1px solid rgba(60, 60, 67, 0.12);
}

.web-plates-region-any.selected {
    color: #007aff;
    font-weight: 600;
}

.web-plates-region-group-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px 0 8px;
    background: #fff;
    border-bottom: 1px solid rgba(60, 60, 67, 0.12);
}

.web-plates-region-group-expand {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    min-width: 0;
}

.web-plates-region-group-check {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(60, 60, 67, 0.35);
    flex-shrink: 0;
    background: transparent;
    cursor: pointer;
    margin: 8px 0;
}

.web-plates-region-group-check.on {
    background: #007aff;
    border-color: #007aff;
}

.web-plates-region-group-name {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    min-width: 0;
}

.web-plates-region-group-codes {
    font-size: 12px;
    color: rgba(60, 60, 67, 0.5);
    font-family: ui-monospace, Menlo, monospace;
    flex-shrink: 0;
}

.web-plates-region-group-chevron {
    color: rgba(60, 60, 67, 0.45);
    flex-shrink: 0;
}

.web-plates-region-codes {
    background: #fff;
    padding: 0 16px 4px 24px;
}

.web-plates-region-code-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    padding: 10px 0;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    border-bottom: 1px solid rgba(60, 60, 67, 0.08);
}

.web-plates-region-code-row.selected .web-plates-region-code-mark {
    color: #007aff;
}

.web-plates-region-code-num {
    font-size: 16px;
    font-weight: 600;
    font-family: ui-monospace, Menlo, monospace;
    flex-shrink: 0;
}

.web-plates-region-code-name {
    flex: 1;
    font-size: 14px;
    color: rgba(60, 60, 67, 0.6);
    line-height: 1.3;
}

.web-plates-region-code-mark {
    width: 24px;
    text-align: center;
    font-size: 18px;
    color: transparent;
    flex-shrink: 0;
}

.web-plates-region-empty {
    padding: 16px;
    text-align: center;
    color: rgba(60, 60, 67, 0.6);
}

/* ——— Экран «Проверка авто» ——— */
.web-v2-tool-body.web-reports-tool-host {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.web-reports-root {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    height: 100%;
}

.web-reports-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 16px 24px;
}

.web-reports-card {
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}

.web-reports-card-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
}

.web-reports-card-lead {
    font-size: 15px;
    color: rgba(60, 60, 67, 0.6);
    margin: 0 0 14px;
    line-height: 1.35;
}

.web-reports-banner {
    font-size: 14px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(255, 149, 0, 0.15);
    margin-bottom: 12px;
}

.web-reports-segmented {
    display: flex;
    background: rgba(118, 118, 128, 0.12);
    border-radius: 9px;
    padding: 2px;
    margin-bottom: 12px;
}

.web-reports-seg-btn {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    font-size: 11px;
    font-weight: 500;
    padding: 8px 4px;
    border-radius: 7px;
    cursor: pointer;
    line-height: 1.2;
}

.web-reports-seg-btn.active {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    font-weight: 600;
}

.web-reports-query-display,
.web-reports-query-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: rgba(118, 118, 128, 0.12);
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 16px;
    margin-bottom: 12px;
}

.web-reports-query-display {
    display: block;
    text-align: left;
    cursor: text;
    min-height: 20px;
}

.web-reports-query-display .placeholder {
    color: rgba(60, 60, 67, 0.45);
}

.web-reports-hint {
    font-size: 13px;
    color: rgba(60, 60, 67, 0.55);
    margin: 0 0 10px;
}

.web-reports-error {
    font-size: 13px;
    color: #ff3b30;
    margin: 0 0 10px;
}

.web-reports-precheck {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: rgba(118, 118, 128, 0.12);
    border-radius: 12px;
    margin-bottom: 12px;
}

.web-reports-precheck-img {
    width: 82px;
    height: 62px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.web-reports-precheck-img--empty {
    background: rgba(118, 118, 128, 0.2);
}

.web-reports-precheck-title {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 4px;
}

.web-reports-precheck-sub,
.web-reports-precheck-meta {
    font-size: 12px;
    color: rgba(60, 60, 67, 0.6);
    margin: 0;
    font-family: ui-monospace, Menlo, monospace;
}

.web-reports-btn-outline {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(60, 60, 67, 0.29);
    border-radius: 10px;
    background: #fff;
    font-size: 16px;
    font-weight: 600;
    color: #007aff;
    cursor: pointer;
    margin-bottom: 12px;
}

.web-reports-btn-outline:disabled {
    opacity: 0.45;
}

.web-reports-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.web-reports-price-label {
    font-size: 15px;
    color: rgba(60, 60, 67, 0.6);
}

.web-reports-price-value {
    font-size: 20px;
    font-weight: 700;
}

.web-reports-btn-buy {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: #007aff;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 12px;
}

.web-reports-btn-buy:disabled {
    background: rgba(118, 118, 128, 0.35);
    color: rgba(255, 255, 255, 0.9);
    cursor: default;
}

.web-reports-btn-buy--sm {
    width: auto;
    display: inline-block;
    padding: 10px 16px;
    font-size: 15px;
    margin: 0;
    text-decoration: none;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

a.web-reports-btn-buy--sm,
a.web-reports-open-link {
    color: #fff;
    position: relative;
    z-index: 5;
    -webkit-touch-callout: default;
    cursor: pointer;
    touch-action: manipulation;
}

a.web-reports-open-link {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.web-reports-btn-outline--sm {
    width: auto;
    display: inline-block;
    padding: 10px 16px;
    font-size: 15px;
    margin: 0;
}

.web-reports-support {
    font-size: 13px;
    color: rgba(60, 60, 67, 0.55);
    margin: 0;
    line-height: 1.4;
}

.web-reports-support a {
    color: #007aff;
}

.web-reports-section-title {
    font-size: 17px;
    font-weight: 600;
    margin: 0;
}

.web-reports-history-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.web-reports-history-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(60, 60, 67, 0.2);
    border-top-color: #007aff;
    border-radius: 50%;
    animation: web-reports-spin 0.8s linear infinite;
}

.web-reports-history-spinner.hidden {
    display: none;
}

@keyframes web-reports-spin {
    to {
        transform: rotate(360deg);
    }
}

.web-reports-empty {
    font-size: 15px;
    color: rgba(60, 60, 67, 0.6);
}

.web-reports-history-card {
    background: rgba(118, 118, 128, 0.12);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
}

.web-reports-history-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
}

.web-reports-history-label {
    font-size: 12px;
    color: rgba(60, 60, 67, 0.55);
}

.web-reports-status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 8px;
}

.web-reports-status--ready {
    background: rgba(52, 199, 89, 0.15);
    color: #248a3d;
}

.web-reports-status--failed {
    background: rgba(255, 59, 48, 0.15);
    color: #c41e16;
}

.web-reports-status--processing {
    background: rgba(255, 149, 0, 0.15);
    color: #c93400;
}

.web-reports-status--default {
    background: rgba(118, 118, 128, 0.15);
    color: rgba(60, 60, 67, 0.7);
}

.web-reports-history-value {
    font-family: ui-monospace, Menlo, monospace;
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 4px;
}

.web-reports-history-date {
    font-size: 13px;
    color: rgba(60, 60, 67, 0.55);
    margin: 0 0 8px;
}

.web-reports-history-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.web-reports-retry-vin {
    flex: 1;
    min-width: 140px;
    padding: 10px;
    border: none;
    border-radius: 10px;
    background: #fff;
    font-family: ui-monospace, Menlo, monospace;
    font-size: 15px;
}

.web-reports-keyboard {
    flex-shrink: 0;
    background: #d1d3d9;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0));
    border-top: 1px solid rgba(60, 60, 67, 0.2);
}

.web-reports-keyboard.hidden {
    display: none;
}

.web-reports-history-error {
    padding: 14px;
    background: rgba(118, 118, 128, 0.12);
    border-radius: 12px;
}

.web-reports-history-error-title {
    font-weight: 600;
    margin: 0 0 6px;
}

/* Десктоп: боковая панель — профиль остаётся в сайдбаре */
@media (min-width: 1200px) {
    html.web-features-v2 .tab.tab-profile-legacy {
        display: flex !important;
    }
    html.web-features-v2 #mainTabbar {
        display: flex;
        flex-direction: column;
    }
    html.web-features-v2 #webV2HomeProfileBtn {
        display: none !important;
    }
    html.web-features-v2 .home-header-sort-legacy {
        display: inline-flex !important;
    }
    html.web-features-v2 #webV2HomeSortBtn {
        display: none !important;
    }
    html.web-features-v2 .home-header-bell-legacy {
        display: inline-flex !important;
    }
}
